- Rating
- 3
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
This paper proposes SurviFormer, a transformer-based survival model for longitudinal ECG based AFib risk prediction. The model first uses a ResNet-50 encoder to extract ECG embeddings from 10-second ECG recordings. It then applies a causal transformer over a sequence of ECG embeddings, with relative time-gap biases to model irregular visit intervals. The model outputs a discrete hazard function and is trained with a multi-landmark strategy. The authors evaluate the method on the CODE dataset and report external validation on MIMIC-IV.
Strengths and weaknesses
Strengths
- The paper is written well, easy to follow.
- The paper includes several useful evaluation components. The paper compares against static survival baselines and a dynamic survival baseline on CODE. It also reports external validation on MIMIC-IV, bootstrap confidence intervals, ablation studies, etc.
- The planned code release is also a positive point.
Weaknesses
- The survival framing is not fully convincing for the employed dataset and this task.
- The baselines are not sufficient to support the main claim.
- The longitudinal advantage is not fully established.
Questions
Thanks the authors for their submission, and I have the following questions and comments.
-
The main concern is the motivation and validity of framing this task as a standard survival analysis problem. Survival analysis is appropriate when the event time and censoring process are reasonably well defined. However, in this setting/dataset, the true onset time of AFib is generally not observed for a few reasons: 1) each ECG recording is only a short 10-second snapshot. Since AFib can be paroxysmal, the absence of AFib in a 10-second ECG does not mean that the patient is truly AFib-free. 2) A patient may develop AFib shortly after one visit, but the event may only be detected at a later visit (e.g., 10 months later). Therefore, the recorded AFib event time may reflect the time of detection, rather than the true AFib onset time. That said, the model is trained as if it is predicting time to AFib onset, but, in my opinion, it may represent time to AFib detection, making it problematic. The issue is particularly important because the model explicitly uses visit timing and inter-visit gaps. Patients with more frequent ECGs or more clinical encounters may have AFib detected earlier, so the model may partially learn monitoring frequency instead of true AFib progression. Can the authors discuss this issue more explicitly? They should clarify whether the target is true AFib onset or first documented AFib detection.
-
The paper compares against DeepSurv, DeepHit, and DynamicDeepHit. However, simple but important baselines are missing. Since the ECG encoder is already a strong pre-trained ResNet-50 classifier, the paper should compare against simple aggregation baselines over ECG-level risk scores or embeddings, such as last ECG only, mean/max pooling, or a simple MLP over aggregated ECG embeddings. The model also uses visit timing information through relative time-gap attention. Therefore, the paper should include visit-pattern-only baselines using age, sex, number of ECGs, visit frequency, and inter-visit gaps. Without these controlled experiments, it is hard to know whether the gain comes from longitudinal ECG morphology or from clinical monitoring patterns.
-
The paper argues that the transformer exploits the full longitudinal ECG trajectory. However, the ablation using only two visits (Table 3) keeps the same C-index as the full model and mainly hurts calibration. As mentioned in (1), it may be just a detection time, instead of onsite time, the interpretation of Brier/IBS is weakened. Can the authors include stronger longitudinal ablations to clarify whether the model is learning true ECG progression or not?
-
General Comments: a) the abstract emphasizes the full CODE dataset size, but Appendix Table 8 shows that the survival-analysis subset used by the dynamic models is much smaller. The CODE† testset has only 5,237 patients and 111 AFib events, compared with 20,946 patients and 406 events in the full CODE split. The paper should make clearer in the main text and abstract which cohort is used for the main longitudinal survival experiments. b) The paper uses multi-lead clinical ECG recordings, retaining 8 ECG leads. However, many practical longitudinal ECG settings, especially wearable or watch-based monitoring, use Lead-I ECG. Can the authors share their insights on how the proposed method would transfer from 8-lead clinical ECG to single-lead watch ECG?
Limitations
See above
Paper formatting concerns
no
Final justification
The authors have provided a detailed rebuttal and additional experiments that address several of my concerns. I agree that time to first documented AFib is a more accurate endpoint than the true time of AFib onset.
However, this clarification also makes the central contribution less compelling. Even if the model is not simply learning visit patterns, the time of first documentation still depends on when intermittent ECG monitoring happens to capture AFib. I remain unconvinced that predicting this timing-dependent endpoint as a survival task provides sufficient value. Moreover, the results from the rebuttal also suggest limited benefit from the full ECG history. The claims regarding longitudinal progression and the value/claim of historical information should therefore be tightened.
Overall, I appreciate the authors’ response and their efforts. I have increased my score, but I do not strongly support acceptance.
Thank you for the careful and constructive review. We appreciate your recognition of the paper’s clarity and experimental analysis. We agree that the endpoint requires more precise survival framing and that the value of longitudinal ECG history should be separated from potential signals in demographics and visit patterns. We address these points below through revised framing, explicit limitations, and additional ablations.
1. Survival framing (W1, Q1)
We appreciate this important clarification. We agree that the original wording could be read as implying prediction of the unobserved biological onset of AFib. This is not the target of our study. Because these ECGs are irregularly acquired and of short duration rather than continuous monitoring, they cannot determine when AFib first arose biologically or exclude undetected paroxysmal episodes between measurements.
We will therefore revise the manuscript accordingly to define the endpoint as time to first documented AFib in the available ECG record. At each landmark, the model estimates the conditional risk that a patient with no prior documented AFib will receive a subsequent ECG-based AFib documentation. This is aligned with the information available in routine care and avoids interpreting the observed event time as latent disease onset.
Our predictions are evaluated at annual horizons, while the discrete-time hazard is parameterized in 6-month intervals. Accordingly, the model is intended for dynamic risk stratification at clinically relevant time scales, for example to identify patients who may benefit from closer monitoring or further clinical evaluation, rather than to infer an exact AFib onset date. The CODE dataset provides a large source of repeated clinical ECGs with structured annotations, already described and evaluated in prior work. Nevertheless, we aknowledge that these intermittent short recordings cannot establish latent AFib onset or exclude paroxysmal episodes occurring between ECGs. The endpoint is time to first documented AFib.
Therefore, we will add the following limitation:
We hope this revised framing addresses the concern, and we would welcome further guidance on making this distinction clearer in the revision.
2. Monitoring process versus ECG signal (Q1)
We acknowledge that controlled baselines are needed to assess whether performance is driven by ECG morphology or visit patterns. Therefore, we added a visit-pattern-only model using age, sex, prior ECG count, time since first and previous ECG, inter-visit interval statistics, ECG counts in 30/90/365-day windows, recency, and visit index (15 features). It uses the same hazard MLP and training/optimization as SurviFormer.
The visit-pattern model does not improve on age/sex alone, and both are substantially below SurviFormer. In a complementary input-dependence test, zeroing and randomizing ECG embeddings reduces both calibration and discrimination. Thus, recorded monitoring patterns and demographics alone do not account for the model’s performance, indicating that the learned ECG representations are essential (not visit patterns or demographics).
3. Longitudinal value and simple controls (W3, Q2, Q3)
Indeed, the prior two-visit ablation was insufficient to establish what is gained from longitudinal history. We have therefore added the requested controls, all using the same frozen ECG encoder, covariates, landmarking training, and survival evaluation.
In these results, the full-history model has nearly identical discrimination to the latest-ECG model, but consistently better calibration: IBS decreases from 0.038 to 0.030, with improved Brier scores at 1, 3, and 5 years. We will therefore refine the claim to the strongest incremental benefit of longitudinal history is improved calibration of time-resolved documented-AFib risk, rather than a large gain in discrimination beyond the latest ECG.
Order-agnostic mean/max pooling retains some short-horizon discrimination but has worse calibration and much weaker TD-AUC than SurviFormer. This indicates that simple accumulation of historical embeddings does not recover the full model’s long-horizon behavior.
4. Longitudinal cohort and single-lead ECG (Q4)
Thank you for identifying this inconsistency. The CODE$^\dagger$ in the cohort table was intended to denote the subset of patients with at least three ECG visits (at least two pre-event or pre-censoring ECGs). However, under our multi-landmark training procedure, a patient sample can contain a single ECG, so, in practice, we did not impose this restriction. All patients meeting of the CODE selection were used. We will remove this mention to avoid confusion.
Regarding transferability to other setttings, AFib is an important target for wearable devices, and adapting this methodology to wearable ECG data would be a promising and clinically valuable direction. However, clinical-grade ECGs differ substantially from wearable single-lead recordings in electrode type and skin contact, signal quality, sampling and hardware characteristics, motion artifacts, amplitude, and lead configuration. In our view, restricting clinical recordings to lead I or II would not, by itself, establish transferability to wearable ECGs, although it could provide a useful preliminary approximation. Robust validation and adaptation would likely require a dedicated wearable ECG dataset, which, to the best of our knowledge, is currently not publicly available.
Thank you again for your thoughtful and constructive feedback. We hope that our additional analyses and clarifications address your concerns and improve the quality and significance of our work.