Abstract
Electrocardiograms (ECG) are electrical recordings of the heart that are critical for diagnosing cardiovascular conditions. ECG language models (ELMs) have recently emerged as a promising framework for ECG classification accompanied by report generation. However, current models cannot forecast future cardiac events despite the immense clinical value for planning earlier intervention. To address this gap, we propose CAMEL, the first ELM that is capable of inference over longer signal durations which enables its forecasting capability. Our key insight is a specialized ECG encoder which enables cross-understanding of ECG signals with text. We train CAMEL using established LLM training procedures, combining LoRA adaptation with a curriculum learning pipeline. Our curriculum includes ECG classification, metrics calculations, and multi-turn conversations to elicit reasoning. CAMEL demonstrates strong zero-shot performance across 6 tasks and 9 datasets, including ECGForecastBench, a new benchmark that we introduce for forecasting arrhythmias. CAMEL is on par with or surpasses ELMs and fully supervised baselines both in- and out-of-distribution, achieving SOTA results on ECGBench (+7.0% absolute average gain) as well as ECGForecastBench (+12.4% over fully supervised models and +21.1% over zero-shot ELMs). 1
1. Introduction
Electrocardiograms (ECG) are multi-dimensional recordings of the heart’s electrical activity and serve as a primary tool for diagnosing and triaging conditions such as heart attacks, arrhythmias, and other cardiac abnormalities (Kaplan Berkaya et al., 2018; Savonitto et al., 1999). From symbolic algorithms and statistical models to CNNs, automated ECG classification has moved from extensive academic study to widespread deployment in both ambulatory and in-hospital environments, as seen in systems like GE’s Marquette 12SL (GE Healthcare, 2019). More recently, foundation models have emerged for jointly processing ECG and text, which we call ECG Language Models (ELMs). ELMs combine ECG representation learning with natural language generation to produce interpretable classifications and reports (Liu et al., 2024b,a; Wang et al., 2025; Lan et al., 2025). Despite their promise, existing ELMs only target classification and do not predict a patient’s future state, thus offering limited support for early intervention.
Forecasting cardiac events from ECG signals is a key challenge for AI in cardiac care. Unlike classification, forecasting requires detecting subtle, prognostic patterns in ECGs to anticipate future adverse events. Such early warning of cardiac events, such as ventricular tachycardia, could allow clinicians to intervene to improve patient outcomes (Pollack et al., 2016; Soar et al., 2021). While classical ML models and CNNs have been applied to this task (Kenet et al., 2023; Rooney et al., 2023), they rely on fully supervised training for fixed-length inputs and offer interpretability only through post-hoc explanations, limiting their ability to generalize across tasks and clinical contexts. In contrast, ELMs contain an LLM backbone trained on clinical knowledge, allowing them to generalize across tasks and generate natural language explanations along with their predictions.
To meet this challenge, we propose CAMEL (Cardiac Autoregressive Model for ECG Language-Modeling), the first general-purpose ELM designed to support long temporal context windows of ECG signals. While existing benchmarks are largely restricted to the classification of 10-second snippets, we introduce ECGForecastBench, a new benchmark for predicting future arrhythmias from baseline normal sinus rhythms as input. Our model generates forecasting reports by leveraging ECG signal statistics with established clinical associations (Zhang et al., 2025). These statistics provide physiologically grounded explanations for the risk of a future cardiac event.
Like prior ELMs, CAMEL builds on a pre-trained large language model backbone, namely MedGemma-4B (Sellergren et al., 2025), to support reasoning and natural language generation. The core insight that allows CAMEL to reason over long temporal contexts of ECG signals is how the integration of signal embeddings with text embeddings operates at the token level. By encoding each one-second segment of each lead in an ECG as an individual token, CAMEL can interleave multiple signal sequences of any duration with textual prompts. This design supports flexibility in both input length and lead configuration, enabling CAMEL to reason over long ECG contexts and variable, potentially incomplete sets of leads common in real-world settings. This is in contrast to prior ELMs, whose contexts are generally restricted to 10-second, 12-lead ECGs (Table 1).
Table 1:
Comparison of ECG foundation models across capabilities. The duration field indicates the ECG lengths supported during training and evaluation for each model. CAMEL is the first ELM to support forecasting, multi-ECG inputs, and long-context signals.
| Tasks | Inputs | |||||
|---|---|---|---|---|---|---|
|
| ||||||
| Model | Input Classification | Report Generation | Forecasting | Modality | # ECGs | Duration (s) |
| ECGFounder (2025b) | ✓ | ✗ | ✗ | waveform | single | 10 |
| ECG-FM (2025) | ✓ | ✗ | ✗ | waveform | single | 10 |
| MERL (2024a) | ✓ | ✗ | ✗ | waveform | single | 10 |
| ECG-Byte (2025) | ✓ | ✗ | ✗ | waveform | single | 10 |
| MELP (2025) | ✓ | ✓ | ✗ | waveform | single | 10 |
| PULSE (2024b) | ✓ | ✓ | ✗ | image, text | multi | 10 |
| GEM (2025) | ✓ | ✓ | ✗ | image, waveform, text | multi | 10 |
|
| ||||||
| CAMEL (Ours) | ✓ | ✓ | ✓ | waveform, text | multi | 0–10K |
To train CAMEL, we introduce a 5-stage curriculum that gradually builds the model’s reasoning and forecasting capabilities. Training starts with an autoencoder stage to learn robust ECG representations. Subsequent stages teach the model multiple-choice and short-answer tasks, understanding of ECG statistics, multi-turn conversational reasoning, and finally the generation of forecasting reports. This curriculum enables CAMEL to compute ECG statistics from long contexts and use them as evidence for clinically grounded forecasts (Fig. 1).
Figure 1:
Example of CAMEL’s forecasting capability. In the top example, CAMEL takes as input normal sinus rhythm ECG at time and correctly forecasts AFIB at minutes by reasoning over the RMSSD, RR-interval, and PAC count (reasoning highlighted). In the bottom example, CAMEL correctly predicts a normal outcome based on accurately extracted statistics.
In summary, the main contributions of this paper are as follows. First, we introduce the architecture for CAMEL, which enables its unique capability to reason over long-duration ECG signals and identify predictive markers of future events. Next, we present a large-scale data generation pipeline that supports curriculum learning for ECG comprehension, including the development of a novel benchmark, ECGForecastBench, for evaluating forecasting of future adverse cardiac events. We then present a staged training algorithm that progressively builds CAMEL’s ECG grounding, reasoning, and forecasting capabilities. Finally, we demonstrate that CAMEL achieves strong zero-shot performance, matching or surpassing fully supervised in- and out-of-distribution baselines.
2. CAMEL Architecture
In this section, we describe CAMEL’s architecture and detail the characteristics that enable its unique capabilities.
As Figure 2, illustrates, CAMEL consists of two main components: 1) a trainable tokenizing encoder that maps ECG segments into vector representations, and 2) a LoRA-adapted LLM that processes the aligned ECG embeddings along with text. Specifically, CAMEL is built upon MedGemma-4B (Sellergren et al., 2025), leveraging its medical language understanding. Together, these jointly trained components produce an end-to-end late-fusion pipeline for ECG-centric multi-turn conversation.
Figure 2:
An overview of the CAMEL architecture. 1-second, single-lead ECG segments from two patients are encoded and combined with text token embeddings. The resulting sequence is processed by an LLM backbone (MedGemma-4B with LoRA adapters) to generate a clinical report. Fixed models are shown in blue, and trainable models are shown in green.
ECG encoder.
We consider a single-lead ECG signal sampled at Hz. A 1-second ECG segment is represented as . To encode the raw waveform, we use a 3-layer CNN which maps each 1-second segment into a latent representation:
In our implementation, we use , and all signals are resampled to the same frequency . This design yields a compact, continuous representation of ECG segments, preserving clinically meaningful features while requiring relatively few tokens to represent long signals.
To integrate ECG representations with the LLM, ECG embeddings must align with the LLM’s hidden token space with dimension . Therefore, we apply a linear projection layer to the ECG embeddings, implemented as a single linear layer
Integrating ECG and text.
Given an ECG signal of seconds with leads, we encode each lead as a sequence of 1-second embeddings:
To explicitly encode structure, we introduce lead start and end special tokens for each input lead, between which the encoded segments are placed:
With this, we are ready to integrate the ECG with text. Given input text , MedGemma’s tokenizer maps each text token to an embedding in the same hidden space. Without loss of generality, CAMEL combines these embeddings with ECG start and end special tokens to form a unified sequence suitable for LLM input,
where denotes concatenation. Note that text may also be placed between ECGs or at the end of the sequence. Furthermore, lead-specific special tokens may appear multiple times, allowing users to provide more than one ECG in a conversation, which can be placed anywhere in a user turn. This design allows for comparative reasoning across ECGs, supporting richer ECG comprehension.
Lead-aware attention masking.
Unlike text, multi-lead ECG signals are not strictly causal when flattened. Specifically, all leads at a given time measure simultaneous projections of the same underlying cardiac electrical activity. To leverage this insight, and enable cross-lead learning, CAMEL uses a custom attention mask that allows the tokens of 1-second ECG segments at the same position (time ) to attend to each other bidirectionally, regardless of prompt lead order. Additionally, ECG embeddings can attend to their corresponding lead boundary markers and all preceding special tokens, while lead boundary markers can attend to all ECG embeddings within their corresponding leads. This design allows the model to learn inter- and intra-lead relationships while preserving the sequential dependencies required for autoregressive text generation.
3. Training
In this section, we describe the 5-stage training pipeline we use to learn ECG representations and translate this to general ECG reasoning and forecasting.
Data preprocessing.
Prior to training, we perform minimal preprocessing to preserve the information in raw data as much as possible while allowing the model to generalize across diverse clinical settings. We apply 50/60 and 0.3Hz band-pass filters and resample each ECG to 256 Hz. We exclude data with persistent (> 5 seconds) zero or NaN values and replace any remaining NaN values with zero.
Stage 1: Autoencoder training.
In the first stage, we use self-supervised learning to train the the CNN-based encoder (i.e., the mapping from raw ECG to ), which will later be used as part of the full CNN+SLP encoder. Given 1-second, single-lead ECG segments, the encoder-decoder pair is optimized with MSE loss to reconstruct the input signal. The training dataset includes over 1 billion ECG segments collected from 13 public datasets (Appendix A).
For subsequent training stages, we connect the CNN-based encoder trained in stage 1 to the LLM via a linear layer, allowing ECG embeddings to be mixed in with text and special token embeddings. We train using ECG-text instruction tuning using a masked autoregressive cross-entropy loss. Unless otherwise specified, we apply lead-wise shuffling and random lead dropping during training to improve robustness to varying input leads. See Appendix A for further training details.
Stage 2: Multiple choice and short answer.
In this next stage, we begin curriculum learning with simpler instructional formats and less challenging ECG-related content than latter stages. Specifically, Stage 2 is restricted to short-answer and multiple-choice questions, primarily targeting high-level ECG classification tasks. The data for Stage 2 are comprised of 20 million samples derived from the Harvard-Emory dataset (Koscova et al., 2024).
Stage 3: Adding statistics questions.
In the third stage, curriculum training incorporates question formats that require fine-grained understanding of ECG statistics. Specifically, we leverage the ECGDeli library (Pilia et al., 2021) to compute lead-specific and global statistics for each sample of the datasets from Stage 2. We then create short-answer questions based on these statistics, including statistics computation such as extracting T-wave amplitude, step-by-step reasoning e.g to extract beat-wise R-R interval and compute heart rate, and multi-ECG comparisons to compare e.g. longer QRS durations. These questions teach clinically meaningful statistics that underlie the diagnoses introduced in Stage 2. Further details about the Stage 3 data are in Appendix C.1.
Stage 4: Multi-turn conversations.
In Stage 4, we unify the classification and statistical reasoning capabilities by training CAMEL with multi-turn conversations with 1 or 2 ECGs. We build on the GEM framework, which first introduced the generation of ECG reports grounded in ECG statistics. (Lan et al., 2025). Using the GE Marquette 12SL manual (GE Healthcare, 2019), we identify clinically important global and lead-specific statistics associated with each diagnosis, which guides the selection of statistics for conversations. To ensure there is substantial diversity, each conversation randomly samples a task type, audience, response format, and dialogue arc (detailed in Appendix C.2). We pass these criteria, along with the selected statistics and diagnosis, to gemini-3-flash-preview to generate the dialogues. Further details about the Stage 4 data are in Appendix C.2. We refer to the model trained up to Stage 4 as CAMEL-Base.
Stage 5: Forecasting.
In the final stage, we train the model to produce evidence-based narratives that reason about future cardiac rhythm transitions over specified time horizons. To construct a forecasting dataset, we use the Icentia11k dataset containing single-lead tracings, spanning multiple days per patient, with beats labeled as normal, atrial fibrillation (AFIB), or atrial flutter (AFL) (Tan et al., 2022). We compile literature-grounded rubrics covering known electrophysiologic substrates, triggers, and temporal risk factors for atrial arrhythmias. These features are verified with cardiologists to ensure clinical plausibility. We generate samples across various input lengths, forecast time horizons, and label transitions, e.g., normal → normal or normal → AFIB. Using the validated features, we generate supervised forecasting examples with gemini-3-flash-preview consisting of a predicted transition label and a structured clinical explanation that links observed temporal trends to future risk (Fig. 1). Further details about the Stage 5 data are in Appendix C.3. We refer to the model trained up to Stage 5 as CAMEL-Forecast.
4. Evaluation
In this section, we evaluate CAMEL against various baselines on downstream tasks such as forecasting, classification, and report generation.
4.1. Experimental Setup
We use the MedGemma-4B-instruct model (Sellergren et al., 2025) as the pretrained LLM backbone. The ECG encoder is comprised of a 3-layer CNN which projects each 256 Hz 1-lead, 1-second ECG segment to a dimension latent space, which is then passed through an SLP to the LLM’s latent token space (). All training is done on 32 B200 NVIDIA GPUs. We fit the LLM backbone with LoRA adapters, each with a rank of . For further compute timing details and hyperparameters, see Appendix A.1. Unless otherwise specified, we evaluate using CAMEL-Base on each task. Given CAMEL’s relatively small parameter size, fine-tuning on the forecasting dataset prioritizes task-specific performance and results in a modest tradeoff in open-ended conversational ability, rather than a loss of core reasoning ability.
4.2. Downstream Tasks & Baselines
Forecasting.
We evaluate forecasting performance on the Icentia11k (Tan et al., 2022) dataset. Icentia11k contains single-lead ECG recordings with NORM, AFIB, and AFL beat-level annotations. We report the F1 score for varying forecasting horizons (time-to-event) and input ECG signal duration. For this task, we use the CAMEL-Forecast model.
Classification.
We evaluate on classifying diagnostic codes using seven datasets: PTB-XL (Wagner et al., 2020), CSN (Zheng et al., 2020), CODE-15% (Ribeiro et al., 2021), CPSC-2018 (Liu et al., 2018), HEEDB (Koscova et al., 2024), Icentia (Tan et al., 2022), and Penn. Penn is a privately sourced ECG dataset from the University of Pennsylvania hospital system, containing 1K 8-lead ECG recordings from ICU units with NORM, Ventricular Fibrillation (VT), and Ventricular Tachycardia (VF) labels. See Appendix A.2 for more details. We report F1 score for zero-shot evaluation and AUROC for linear probing results. Like other baselines, we finetune CAMEL-Base on ECGInstruct (Liu et al., 2024b) for this task.
Report generation.
We evaluate report generation and conversation performance on PTB-XL (Wagner et al., 2020) and MIMIC-IV-ECG (Gow et al., 2023). We utilize GPT-5 to score the responses on diagnostic accuracy, analysis completeness, and relevance based on the predefined criteria used for GEM Lan et al. (2025). We also report traditional NLP metrics: BLEU-1, BLEU-4, METEOR, Rouge, and BERT-F1. Like other baselines, we finetune CAMEL-Base on ECGInstruct (Liu et al., 2024b) for this task.
Question answering.
We use multiple-choice questions from ECGBench (Liu et al., 2024b), sourced from the G12 (Perez Alday et al., 2020) and CSN (Zheng et al., 2020) datasets and ECG-QA Oh et al. (2023), sourced from PTB-XL and MIMIC-IV-ECG. ECG-QA comprises single-ECG questions for general interpretation and multi-ECG questions for comparative analysis of two ECGs. We use accuracy and hamming score.
Multi-turn conversations.
This benchmark comprises two multi-turn task types curated from PTB-XL reports. The first is a two-turn task that requires interpreting a single ECG and subsequently answering questions about it. The second is a three-turn task that requires interpreting two ECG recordings and performing comparative analysis. Following PULSE (Liu et al., 2024b), we use GPT-5 to score the conversation based on diagnostic accuracy, analysis completeness, and instruction adherence.
Grounding.
We create a benchmark of 2K ECG statistics (RR interval, HR, QRS duration, QTc interval, PR interval, QRS amplitude) from CPSC-2018 samples. We report RMSE between the ground truth values computed using ECGDeli (Pilia et al., 2021) and the predicted values.
Baselines.
For baselines, we use MELP (Wang et al., 2025), MERL (Liu et al., 2024a), PULSE (Liu et al., 2024b), and GEM (Lan et al., 2025). MELP and MERL are capable of zero-shot classification of ECG waveforms. Both take a list of classes and ECG as input and return the most likely class based on the cosine similarity. PULSE and GEM are multi-modal LLMs finetuned for ECG interpretation. PULSE uses ECG images as inputs whereas GEM uses both images and waveforms. We use all four baselines for classification tasks, but exclude MERL and MELP on others where a prompt has to be supplied. On the forecasting task we also evaluate on GPT-5.2, augmented with a Code Interpreter, and access to the raw ECG stored as a CSV file.
4.3. Forecasting
We study the effectiveness of CAMEL on forecasting adverse cardiac events. We compare the performance as we vary the forecasting horizon minutes and ECG signal duration seconds in Table 8. Note that unlike CAMEL, baseline ELMs do not support ECG inputs longer than 10 seconds.
The results demonstrate that CAMEL (evaluated on a subset of the test data), outperforms all baselines, including GPT-5.2 by over 10%. Across all models and datasets, we observe that the model performance drops as we increase the forecasting horizon. However, we observe a notable increase in F1 score with longer ECG signals. For 10 minutes inputs, we are providing 40 times more information compared to the standard 10 second ECGs, and the temporal variability in signal aids forecasting.
4.4. Existing Benchmarks
We compare zero-shot performance of CAMEL against baseline models on previously studied tasks: classification, report generation, question answering, and grounded ECG understanding.
Classification.
We present zero-shot classification results using 10-second, full-lead inputs in Tables 2 and 9. For Icentia11k and Penn datasets, we provide 1 and 8 leads respectively, and 12 leads for all other datasets. We additionally evaluate reduced-lead settings to mimic scenarios where fewer leads are available, with results reported in Table 11. For Icentia11k AFIB classification, we vary the input duration seconds to assess the effect of temporal context (Table 10).
Table 2:
Comprehensive evaluation results across three tasks: Forecasting, Classification, and Report Generation. Best results are highlighted in “-” indicates method not evaluated on task/dataset.
| Classification | ECG-QA | Stat | Report | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||||
| PTB-XL | Code15 | CPSC | CSN | HEEDB | Icentia | Penn | Single | Multi | CPSC | PTB-XL | MIMIC | |
|
|
||||||||||||
| Method | F1 | Accuracy | RMSE | LLM | ||||||||
| MERL | 19.22 | 19.72 | 24.86 | 6.38 | 16.33 | 15.80 | 2.53 | - | - | - | - | - |
| MELP | 18.62 | 26.07 | 20.75 | 5.00 | 19.03 | 10.80 | 2.53 | - | - | - | - | - |
| PULSE | 28.06 | 75.90 | 57.08 | 12.62 | 18.62 | 25.15 | 34.12 | 79.07 | 64.41 | 144148 | 18.40 | 22.05 |
| GEM | 29.82 | 80.83 | 61.06 | 8.19 | 19.40 | 18.70 | 33.33 | 80.80 | 65.89 | 304 | 20.45 | 44.65 |
|
| ||||||||||||
| CAMEL | 40.37 | 78.20 | 56.12 | 12.84 | 20.89 | 41.14 | 67.53 | 72.99 | 69.23 | 109 | 19.45 | 62.59 |
In the single-lead telemetry analysis, the sensitivity for classifying AFIB increased as the recording duration increased from 10 to 60 seconds. After 60 seconds, there were only modest improvements in diagnostic metrics, suggesting that longer contexts lengths can help, must most discriminative information is captured within the first minute of telemetry. For full-lead classification, CAMEL achieves the best performance on 7 of 17 tasks, including the out-of-domain CSN and Penn datasets. Notably, CAMEL performs best on 3 of 4 PTB-XL tasks and attains competitive F1 scores on Code15 and HEEDB.
A consistent trend across datasets is that LLM-based models (PULSE, GEM, CAMEL) struggle on tasks with large label spaces, such as HEEDB and CSN (Table 9), whereas non-LLM architectures (e.g., MELP and MERL) maintain strong performance in these multi-class settings.
Linear probing.
To evaluate the quality of the latent representation learned by CAMEL, we conduct linear probing classification experiments where we freeze the parameters of the model and train a linear layer with 1% of the dataset’s training data. We report the results in Table 3. We compare CAMEL-Base to the standard baselines as well as the CAMEL architecture trained solely on ECGInstruct. CAMEL outperforms baselines on both in-domain and out-domain datasets across all tasks, demonstrating that it has learned discriminative representation of the ECG signals. CAMEL’s superior performance to the ECGInstruct-only finetuned version demonstrates the usefulness of the curriculum training for learning representations.
Table 3:
Linear probing performance (AUC [%]) of ECG classification across multiple datasets, 12-leads. Results are reported for different training data proportions (1%, 10%, 100%) CAMEL (ECGInstruct) refers to CAMEL trained only on ECGInstruct data Liu et al. (2024b), whereas CAMEL refers to the model trained on our curriculum specified in § 3.
| Methods | PTBXL-Rhythm | PTBXL-Sub | PTBXL-Form | PTBXL-Super | CPSC2018 | CSN | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||
| Training Ratio | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% |
| MERL (2024a) | 53.33 | 82.88 | 88.34 | 64.90 | 80.56 | 84.72 | 58.70 | 72.43 | 79.65 | 82.39 | 86.27 | 88.67 | 70.33 | 85.22 | 90.57 | 66.60 | 82.74 | 87.95 |
| MELP (2025) | 88.83 | 94.65 | 96.91 | 79.22 | 84.40 | 87.46 | 63.44 | 76.71 | 83.30 | 85.82 | 87.61 | 87.87 | 88.54 | 91.75 | 94.32 | 78.25 | 84.83 | 90.17 |
| PULSE (2024b) | 98.38 | 99.07 | 99.25 | 89.21 | 92.44 | 93.88 | 82.38 | 90.19 | 91.97 | 89.88 | 92.32 | 93.08 | 67.81 | 73.90 | 82.48 | 87.25 | 89.49 | 91.87 |
| GEM (2025) | 97.55 | 98.78 | 99.12 | 89.48 | 92.57 | 93.19 | 83.32 | 88.07 | 90.77 | 87.61 | 91.88 | 93.03 | 74.58 | 82.41 | 91.38 | 87.12 | 90.33 | 91.69 |
| CAMEL (ECGInstruct) | 97.74 | 98.98 | 99.07 | 90.07 | 92.38 | 93.75 | 81.28 | 89.47 | 92.17 | 87.59 | 91.58 | 92.33 | 78.54 | 93.37 | 98.52 | 90.00 | 95.05 | 97.11 |
| CAMEL | 98.13 | 99.17 | 99.39 | 90.52 | 93.41 | 94.14 | 85.98 | 91.14 | 93.27 | 91.40 | 93.73 | 94.73 | 86.04 | 96.15 | 99.40 | 93.52 | 97.17 | 98.36 |
Report generation.
We present the full report generation results in Table 14, and provide an example report generated by CAMEL in Figures 4 and 5. Using LLM-as-a-judge, CAMEL achieves superior performance on MIMIC-IV. CAMEL also comes within 1 point of GEM, the top-performing model on PTB-XL on a 30-point scale. CAMEL also attains competitive scores on the 5 NLP metrics for both MIMIC-IV and PTB-XL, demonstrating strong conversational ability.
Single and Multi-ECG QA.
We report results for the multiple choice and single-ECG questions from ECG-QA, as well as multi-ECG questions, in Table 2. Because Stages 3 and 4 of the curriculum contain diverse multi-ECG questions, CAMEL achieves superior accuracy on multi-ECG questions compared to GEM and PULSE. CAMEL also maintains strong performance on single-ECG questions in ECG-QA, indicating that training on comparative multi-ECG reasoning does not degrade performance in the single-ECG setting.
Statistics.
We report performance on the ECG grounding dataset in Table 2. Compared to the baselines, CAMEL achieves the lowest average RMSE on statistics computations. Notably, CAMEL’s RMSE is nearly half that of GEM, a model trained on ECG reasoning grounded in statistics. This improvement likely stems from our staged curriculum: Stage 3 introduces focused, direct statistical computation questions, while Stage 4 integrates these computations into diagnosis tasks. In contrast, GEM encounters statistics only the context of diagnostic reasoning, without an intermediate phase dedicated to learning the underlying computations.
4.5. Ablation
We study the design components present in the architecture of CAMEL. We vary LoRA adapter usage, special ECG tokens, attentions masks, and train with different combinations on ECGInstruct and evaluate on its counterpart test set ECGBench.
As shown in Table 4, the removal of LoRA significantly negatively impacts the performance. We posit that, due to CAMEL’s relatively simple encoding network, most of the trainable parameters stem from LoRA. LoRA allows pretrained LLM’s transformer blocks to learn deeper and more complex relationships betwen text and ECG.
Table 4:
Architecture ablations (F1 [%]). Training without LoRA adapters leads to poor ECG representations, as evidenced by the zero F-1 scores on PTB-XL tasks. Lead-aware masking, which enables bidirectionality in attention computation for ECG leads, proves be better, or at-par with full masking. Both LoRA adapters and lead-aware masking are necessary for achieving SOTA accuracy.
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | Code15 | CPSC-2018 | CSN |
|---|---|---|---|---|---|---|---|
| No LoRA + Lead-aware masking | 0.00 | 0.00 | 0.00 | 0.00 | 27.35 | 1.18 | 0.00 |
| LoRA + Full masking | 54.39 | 17.22 | 21.34 | 16.98 | 75.13 | 46.69 | 10.15 |
| LoRA + Causal masking | 69.15 | 22.13 | 21.08 | 14.72 | 77.34 | 42.30 | 10.02 |
| LoRA + Lead-aware masking | 75.91 | 26.49 | 34.27 | 19.03 | 81.54 | 51.10 | 14.30 |
Finally, we evaluate CAMEL’s lead-aware attention masking scheme against full bi-directional attention within each ECG block, and vanilla causal attention throughout all tokens. As shown in Table 4, our ECG attention masking scheme outperforms all other options. We attribute the benefits of this scheme primarily due to the nature of ECGs: at time , all leads represent the same state of the heart.
5. Related Work
In this section, we discuss the field of ML-based ECG comprehension and divide it into (i) unimodal ECG foundation models, (ii) multimodal ECG models, including ELMs, (iii) general natural-language-based ECG models, and (iv) long-horizon cardiac event forecasting.
Unimodal ECG foundation models.
Recent advances in foundation models have transformed ECG analysis through large-scale pretraining. HuBERT-ECG (Coppola et al., 2024) uses masked signal reconstruction, predicting masked ECG segments from unmasked context. ECG-FM (McKeen et al., 2025) combines signal masking with contrastive learning across ECG segments. ECGFounder (Li et al., 2025b) employs supervised multi-label classification on expert diagnostic annotations. These foundation models are unimodal, i.e. trained solely on ECG signals during training, and require fine-tuning for downstream tasks.
Multimodal ECG models.
Multimodal models such as MERL (Liu et al., 2024a) enable zero-shot classification through joint learning on ECG records and clinical reports. MELP (Wang et al., 2025) also trains on both modalities, but adds hierarchical supervision at the token, beat, and rhythm-level to align ECG with reports at different time-scales. PULSE (Liu et al., 2024b) is another ECG-text model that performs LLaVA-style finetuning for ECG image analysis. GEM (Lan et al., 2025) jointly trains ECG and text with a conversational dataset grounded in ECG statistics. As noted earlier, the inputs to these models are limited to at most 10 seconds.
Natural language generation & understanding.
Natural language generation-based methods are more powerful, since they implicitly include classification, and can also support report generation and general QA. Recent approaches are trained in a multi-stage fashion, either via self-supervised or contrastive learning. For example, ECG-ReGen (Tang et al., 2024) uses a self-supervised encoder, ECG-Chat (Zhao et al., 2025) employs contrastive learning for feature alignment, MEIT (Wan et al., 2025) focuses on multimodal instruction tuning, and anyECG-chat (Li et al., 2025a) utilizes three-step curriculum training for variable length inputs. Additionally, METS (Li et al., 2024) uses self-supervised learning to train an ECG encoder paired with a frozen language model. A notable exception is ECG-Byte (Han et al., 2025), which bypasses a specialized encoder by directly tokenizing the ECG signal, enabling end-to-end LLM training.
Forecasting cardiac events.
Deep learning and classical ML techniques have also demonstrated potential for long-horizon forecasting of adverse cardiac events. Kenet et al. (2023) apply XGBoost to forecast pediatric cardiac arrest from clinical data, reporting high auROC and auPRC. Kim et al. (2022) also use XGBoost in addition to other classical ML models to forecast in-hospital cardiac arrest for emergency department (ED) patients, reporting high auROC. However, both of these works use clinical features beyond raw ECG, e.g., ED occupancy, limiting their broader applicability. Conversely, Rooney et al. (2023) use convolutional-transformer models for forecasting imminent atrial fibrillation events using only long-term ECG waveforms, demonstrating that such models can learn predictive features from ECG without additional clinical features.
6. Limitations and Future Work
There are two main limitations with CAMEL’s tokenization strategy. While CAMEL can handle ECG segments longer than 10 seconds, the maximum input ECG segment is limited by the context length of the backbone LLM. Additionally, segmenting ECG into 1-second chunks may truncate the QRS complex or fail to capture subtle morphological changes in the signal. For future work, we plan to explore different tokenization strategies such as segmenting based on QRS intervals, which could serve as semantic unit of explanation, or using 5 second ECG segments, which would allow longer duration ECG to fit into the context window.
7. Conclusion
In this work, we introduce CAMEL, an ECG language model for forecasting cardiac events. Unlike prior works, CAMEL supports flexible ECG context windows exceeding 10 seconds, enabling reasoning over longer signals. Its multimodal architecture combines a CNN-based ECG encoder and an LLM with LoRA adapters, and is trained using a 5-stage curriculum that progressively builds ECG understanding and forecasting capability. CAMEL achieves SOTA results on prior benchmarks as well as our newly introduced forecasting benchmark, ECGForecastBench.
Figure 3:
Forecasting performance (Macro-F1) in predicting AFib, AFlutter or Sinus Rhythm across input window and horizon . We report zero-shot results from GPT-5.2 (with Code Interpreter and high effort), PULSE, GEM, and CAMEL, supervised training results for XGB and CNN, and linear probing results for CAMEL Probe. PULSE and GEM only support 10-second ECG inputs . CAMEL outperforms all baselines, with increased performance with higher input windows, highlighting the importance of supporting longer ECG recordings.
Acknowledgments and Disclosure of Funding
This research was supported by ARPA-H program on Safe and Explainable AI under Award D24AC00253-00, NIH Award R01-EB036016, the Google TPU Builders Program, and a gift from AWS AI to ASSET (Penn Engineering Center on Trustworthy AI). We also thank the Penn Advanced Research Computing Center (PARCC) for providing high-performance computing infrastructure for training CAMEL-ECG.
A. Experimental Set-up
Table 5:
Overview of the ECG Datasets.
| Supervision | Dataset Name | Source/Collection | Records | Duration | Leads |
|---|---|---|---|---|---|
| Signal-only | MITDB (2001) | Beth Israel | 48 | 30 m | 2 |
| NTUH (2021) | National Taiwan University Hospital | 1,000 | 10 s | 12 | |
| PTB (2009) | University Clinic Benjamin Franklin | 549 | 30–120 s | 12 | |
| QTDB (1997) | Beth Israel, Multi-center Europe | 105 | 15 m | 2 | |
| SPH (2022) | Shandong Provincial Hospital | 25,770 | 10–60 s | 12 | |
| G12 (2020) | Emory University | 10,344 | 10 s | 12 | |
|
| |||||
| Labels (in-distribution) | Code-15% (2021) | Telehealth Network (Brazil) | 345,779 | 7/10 s | 12 |
| HEEDB (2024) | Harvard University, Emory University | 11,440,211 | 10 s | 12 | |
| Icentia11k (2022) | CardioSTAT (Canada) | 11,000 | 1–2 weeks | 1 | |
| MIMIC-IV (2023) | Beth Israel | 795,546 | 10 s | 12 | |
| PTB-XL (2020) | Schiller AG (Germany) | 21,837 | 10 s | 12 | |
|
| |||||
| Labels (out-of-distribution) | CPSC-2018 (2018) | Multi-center China | 13,256 | 6–144s | 12 |
| CSN (2020) | Chapman University, Shaoxing People’s Hospital, Ningbo First Hospital |
80,938 | 10 s | 12 | |
| Penn | Penn hospital system | 191 | 10 m - 48 hrs | 8 | |
We collect 1 private and 13 public ECG datasets (listed in Table 5). The signal-only datasets are used only in training the autoencoder, i.e. Stage 1. The in-distribution datasets are used in Stages 2, 3 and 4; we only use the Harvard-Emory dataset in Stages 2 and 3 due to data use policies prohibiting LLM API calls. For each in-distribution dataset, we set aside 20% of the records for validation and evaluation and use the remaining records for training. For the out-of-distribution datasets, we do not use any samples for training.
A.1. Hyperparameters
We list all global and stage-specific hyperparameters in Tables 6 and 7.
Table 6:
Hyperparameters for Training Stages 2–5
| Stage | Learning Rate | Epochs | Batch Size | Warmup steps |
|---|---|---|---|---|
| Stage 2 | 1e-4 | 3 | 8 | 500 |
| Stage 3 | 1e-4 | 1 | 8 | 500 |
| Stage 4 | 1e-4 | 9 | 4 | 256 |
| Stage 5 | 1e-4 | 3 | 2 | 256 |
Table 7:
Global Hyperparameters
| Hyperparameter | Value |
|---|---|
| Total Gradient Accumulation Target | 4 |
| Gradient Clipping | 1.0 |
| Optimizer | AdamW |
| Learning rate scheduler | linear |
| LoRA Rank | 128 |
| Mask strategy | semantic |
A.2. Baselines and Tasks
For MERL, we evaluate using ncbi/MedCPT-Query-Encoder text encoder and 1D ResNet18 ECG encoder with embedding dimension 256. For MELP, we evaluate using fuyingw/heart bert text encoder and 8-layer ECG encoder with 12 attention heads, embedding dimension 768, and feed-forward network with embedding dimension 3072. For PULSE, we use PULSE-ECG/PULSE-7B model. For CAMEL, we set max_new_tokens = 1000, temperature = 1.0, and top_p = 0.95.
We divide PTB-XL classification task into superclass, subclass, rhythm, and form, following prior work (Wagner et al., 2020). Similarly, for HEEDB classification, we divide into overall interpretation, conduction, ectopy, ischmeia, rhythm, hypertrophy, and infarct sub-tasks. The ECG-QA dataset contains 3 types of single-ECG questions and 4 types of multi-ECG questions which are sourced from PTB-XL and MIMIC-IV-ECG respectively.
B. Additional Experimental Results
B.1. Forecasting
Table 8:
Forecasting results (F1 [%]) on Icentia. The task is forecasting atrial fibrillation or flutter (abnormal) or normal sinus rhythm at varying horizons and input-windows . We report supervised training results for XGB and CNN, zero-shot results for GPT-5.2, PULSE, GEM, and CAMEL, and linear probing result for CAMEL Probe.
|
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | 10 | 30 | 60 | 120 | 300 | 600 | 10 | 30 | 60 | 120 | 300 | 600 |
| XGB | 59.55 | 55.58 | 56.89 | 56.09 | 59.64 | 55.20 | 56.85 | 56.60 | 58.18 | 57.09 | 58.07 | 56.17 |
| CNN | 46.89 | 54.62 | 53.59 | 50.79 | 52.35 | 53.10 | 49.59 | 54.72 | 57.08 | 54.40 | 52.76 | 50.21 |
| CAMEL Probe | 69.83 | 72.52 | 69.43 | 74.30 | 72.56 | 75.14 | 69.81 | 67.38 | 69.91 | 69.85 | 75.46 | 74.64 |
|
| ||||||||||||
| GPT-5.2 | 43.26 | 47.54 | 48.00 | 48.24 | 54.36 | 51.28 | 37.67 | 46.71 | 51.22 | 54.43 | 49.29 | 52.01 |
| PULSE | 43.21 | - | - | - | - | - | 40.50 | - | - | - | - | - |
| GEM | 32.54 | - | - | - | - | - | 32.95 | - | - | - | - | - |
| CAMEL | 63.28 | 68.88 | 69.23 | 71.37 | 73.42 | 73.18 | 60.04 | 61.27 | 65.44 | 69.59 | 71.34 | 67.53 |
|
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | 10 | 30 | 60 | 120 | 300 | 600 | 10 | 30 | 60 | 120 | 300 | 600 |
| XGB | 54.08 | 54.97 | 54.35 | 57.05 | 56.86 | 53.37 | 57.93 | 57.12 | 53.84 | 55.06 | 56.03 | 57.07 |
| CNN | 48.47 | 53.13 | 46.54 | 46.32 | 57.72 | 48.99 | 48.85 | 51.96 | 53.69 | 51.32 | 49.90 | 56.19 |
| CAMEL Probe | 68.54 | 71.05 | 69.31 | 70.30 | 73.36 | 72.70 | 69.30 | 69.53 | 68.49 | 72.04 | 73.54 | 76.02 |
|
| ||||||||||||
| GPT-5.2 | 43.14 | 53.42 | 52.07 | 51.19 | 58.16 | 56.37 | 46.11 | 56.04 | 47.55 | 55.80 | 50.01 | 55.41 |
| PULSE | 36.67 | - | - | - | - | - | 40.12 | - | - | - | - | - |
| GEM | 33.33 | - | - | - | - | - | 31.49 | - | - | - | - | - |
| CAMEL | 58.07 | 63.58 | 70.15 | 67.15 | 70.73 | 70.48 | 58.54 | 63.91 | 64.28 | 65.99 | 71.37 | 66.90 |
B.2. Input Classification
We report per-task classification results for 10-second 12-lead ECG signals in Table 9. Additionally, we compare the performance of classifying AF across single lead rhythm strips ranging in duration from 10 seconds to 15 minutes (Table 10) and using only a fixed selection of 6, 4, 3, 2, and 1 leads (Table 11).
Table 9:
Full classification results (F1 [%]).
| Method | PTBXL Super | PTBXL Sub | PTBXL Rhythm | PTBXL Form | Code15 Binary | Code15 Multi |
|---|---|---|---|---|---|---|
| MERL | 41.39 | 12.36 | 10.84 | 12.31 | 3.09 | 36.35 |
| MELP | 40.45 | 10.45 | 11.43 | 12.16 | 20.50 | 31.63 |
| PULSE | 73.47 | 8.11 | 18.07 | 12.59 | 62.28 | 89.52 |
| GEM | 75.77 | 8.01 | 20.87 | 14.64 | 71.12 | 90.53 |
| CAMEL | 67.75 | 28.89 | 39.29 | 25.54 | 69.45 | 86.95 |
| Method | HEEDB Binary | HEEDB Conduction | HEEDB Ectopy | HEEDB Ischemia | HEEDB Rhythm | HEEDB Hypertrophy | HEEDB Infarct |
|---|---|---|---|---|---|---|---|
| MERL | 4.27 | 18.05 | 17.41 | 17.21 | 10.86 | 20.67 | 25.81 |
| MELP | 24.96 | 16.56 | 18.26 | 16.97 | 10.62 | 20.42 | 25.43 |
| PULSE | 86.36 | 14.15 | 3.33 | 4.59 | 5.74 | 7.73 | 8.44 |
| GEM | 88.95 | 14.15 | 3.48 | 6.41 | 5.97 | 6.79 | 10.05 |
| CAMEL | 96.41 | 13.78 | 3.61 | 6.69 | 10.05 | 11.45 | 4.21 |
Table 10:
AFIB classification results (F1 [%]) with varying ECG durations (s)
| Method | 10 | 30 | 60 | 120 | 300 | 600 | 900 |
|---|---|---|---|---|---|---|---|
| CAMEL | 46.19 | 41.32 | 40.45 | 45.10 | 58.28 | 64.95 | 64.15 |
Table 11:
Classification results (F1 [%]) with fewer leads at test time.
| (a) Leads I, II, III, aVR, aVL, and aVF. |
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | CPSC-2018 | CSN | Code15-Binary | Code15-Multi |
|---|---|---|---|---|---|---|---|---|
| MERL | 43.15 | 12.48 | 11.23 | 12.95 | 22.52 | 4.87 | 45.31 | 33.14 |
| MELP | 41.35 | 12.09 | 10.81 | 12.52 | 20.90 | 5.67 | 41.57 | 33.65 |
| PULSE | 48.48 | 8.29 | 16.47 | 11.48 | 54.71 | 6.65 | 71.34 | 78.97 |
| GEM | 47.75 | 8.96 | 11.69 | 12.03 | 54.86 | 6.67 | 74.00 | 83.67 |
| CAMEL | 60.79 | 24.35 | 41.89 | 21.42 | 55.46 | 10.58 | 69.48 | 87.99 |
| (b) Leads I, II, III, and V2. |
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | CPSC-2018 | CSN | Code15-Binary | Code15-Multi |
| MERL | 40.60 | 11.96 | 10.96 | 13.02 | 24.16 | 4.15 | 33.54 | 34.56 |
| MELP | 40.14 | 10.87 | 11.00 | 12.91 | 21.44 | 4.46 | 34.58 | 32.48 |
| PULSE | 52.71 | 6.82 | 13.07 | 11.91 | 57.03 | 9.05 | 69.41 | 83.64 |
| GEM | 44.60 | 4.76 | 11.08 | 12.09 | 50.96 | 6.40 | 72.02 | 78.94 |
| CAMEL | 67.39 | 19.15 | 39.75 | 23.30 | 57.78 | 11.33 | 70.21 | 89.15 |
| (c) Leads I, II, and III. |
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | CPSC-2018 | CSN | Code15-Binary | Code15-Multi |
|---|---|---|---|---|---|---|---|---|
| MERL | 40.47 | 12.18 | 10.91 | 12.95 | 24.18 | 3.95 | 33.46 | 34.76 |
| MELP | 40.31 | 11.28 | 11.17 | 12.05 | 22.04 | 5.10 | 37.40 | 34.34 |
| PULSE | 51.97 | 6.35 | 13.26 | 14.39 | 54.89 | 8.71 | 68.24 | 84.14 |
| GEM | 43.18 | 7.17 | 8.74 | 13.92 | 50.26 | 7.09 | 72.24 | 77.21 |
| CAMEL | 67.47 | 18.85 | 38.03 | 25.00 | 59.33 | 10.28 | 69.38 | 89.48 |
| (d) Leads I and II. |
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | CPSC-2018 | CSN | Code15-Binary | Code15-Multi |
|---|---|---|---|---|---|---|---|---|
| MERL | 44.24 | 13.09 | 11.20 | 13.32 | 23.81 | 5.55 | 46.39 | 35.21 |
| MELP | 40.30 | 11.33 | 10.76 | 13.31 | 20.83 | 5.01 | 31.53 | 33.23 |
| PULSE | 43.91 | 5.32 | 13.90 | 11.23 | 51.82 | 4.25 | 66.50 | 72.63 |
| GEM | 43.71 | 9.06 | 5.65 | 13.25 | 43.99 | 7.52 | 71.22 | 57.07 |
| CAMEL | 62.24 | 17.80 | 38.96 | 20.80 | 56.76 | 11.93 | 69.86 | 88.02 |
| (e) Lead II. |
| Method | PTBXL-Super | PTBXL-Sub | PTBXL-Rhythm | PTBXL-Form | CPSC-2018 | CSN | Code15-Binary | Code15-Multi |
|---|---|---|---|---|---|---|---|---|
| MERL | 45.06 | 12.98 | 11.39 | 12.71 | 23.64 | 4.66 | 52.29 | 35.49 |
| MELP | 42.09 | 13.08 | 10.88 | 13.73 | 21.06 | 4.89 | 46.39 | 33.20 |
| PULSE | 38.77 | 5.34 | 12.05 | 11.68 | 41.65 | 5.83 | 67.59 | 59.52 |
| GEM | 44.26 | 6.59 | 5.97 | 10.33 | 34.90 | 8.48 | 70.27 | 50.06 |
| CAMEL | 52.79 | 12.40 | 35.31 | 19.09 | 53.54 | 7.97 | 69.25 | 82.03 |
B.3. Question Answering
Table 13:
Full ECG-QA results (Accuracy [%]) on PTB-XL dataset.
| Method | Single Choose | Single Query | Single Verify | Multi CQ | Multi CV | Multi IQ | Multi IV |
|---|---|---|---|---|---|---|---|
| PULSE | 82.22 | 78.07 | 76.91 | 67.96 | 53.75 | 84.71 | 51.21 |
| GEM | 83.67 | 78.19 | 80.54 | 67.94 | 57.36 | 84.61 | 53.64 |
| CAMEL | 70.69 | 72.38 | 75.89 | 67.83 | 56.85 | 84.17 | 68.06 |
B.4. Report Generation
We present results on evaluating reports using GPT-5.2 as a judge and NLP metrics in Table 14. We show examples of reports generated by CAMEL for datasets PTB-XL (Figure 4) and MIMIC-IV (Figure 5).
Table 14:
Full report generation result.
| (a) PTB-XL |
| Method | LLM | BLEU-1 | BLEU-4 | METEOR | ROUGE | BERT F1 |
|---|---|---|---|---|---|---|
| MELP | † | 13.02 | 1.87 | 11.28 | 18.50 | 44.08 |
| PULSE | 18.40 | 9.37 | 1.44 | 24.53 | 9.91 | 83.95 |
| GEM | 20.45 | 6.05 | 1.30 | 23.70 | 8.02 | 83.47 |
| CAMEL | 19.45 | 14.28 | 1.52 | 31.31 | 10.64 | 84.00 |
| (b) MIMIC-IV. |
| Method | LLM | BLEU-1 | BLEU-4 | METEOR | ROUGE | BERT F1 |
|---|---|---|---|---|---|---|
| PULSE | 40.43 | 6.09 | 0.93 | 20.74 | 8.02 | 83.37 |
| GEM | 44.65 | 50.81 | 11.60 | 35.06 | 23.81 | 87.78 |
| CAMEL | 62.59 | 23.11 | 3.30 | 17.57 | 15.56 | 82.10 |
Figure 4:
Example report generated by CAMEL for a sample from the PTB-XL dataset. The ground truth label is Sinus rhythm. Incomplete right bundle branch block. PR interval is at the upper limit. Otherwise, normal ECG.
Figure 5:
Example of a report generated by CAMEL for a sample from the MIMIC-IV dataset.
C. Training Dataset
C.1. Stage 3
For Stage 3, we generate conversations that require understanding ECG statistics. We use the ECGDeli library (Pilia et al., 2021) to compute lead-specific and global statistics for each sample of the datasets from Stage 2. These statistics include P-QRS-T amplitudes, beat-wise R-R intervals, QRS durations, PR-intervals, ST-segment deviations, ST-slope, and global heart rate metrics.
With these statistics, we use a diverse set of question types to reflect real-world clinical workflows. Example question types include beat-wise statistics retrieval (e.g., verifying specific wave durations), temporal anomaly detection (e.g, identifying premature beats), and comparative analysis (e.g., comparing feature across two ECGs). Answer formats include multiple choice, short-answer, and step-by-step explanations. We provide several examples in Figure 6. We generate approximately 30 million question-answer pairs from ECG samples spanning the HEEDB, Code-15%, PTBXL, and MIMIC-IV datasets.
Figure 6:
Stage 3 conversation examples across the 5 task types.
C.2. Stage 4
The goal of Stage 4 is to generate multi-turn conversational data that has either single-ECG analysis questions or comparison questions. These conversations use statistics learned in Stage 3 as a part of their reasoning. We generate approximately 420K samples with ECGs sourced from MIMIC, PTBXL, and Code15. To generate the first 20K of these conversations, we follow a similar approach as GEM (Lan et al., 2025). Specifically, we take the task types and label formats from ECGInstruct (Liu et al., 2024b) and use gemini-3-flash-preview to generate reasoning (grounded in ECG statistics) along with the final answer. To generate the remaining 400K of these conversations, we again use gemini-3-flash-preview with the following system prompt (abridged):
System Prompt.
You are an expert cardiologist. Generate a realistic clinical dialogue interpreting an ECG according to the specifications below. Always include a clinically supported diagnosis consistent with the report and provided statistics.
Objectives
Realistic clinical reasoning: Reflect how a cardiologist visually analyzes an ECG and arrives at a diagnosis.
Evidence-based diagnosis: Support conclusions with ECG findings and statistics when applicable. Do not cite statistics that contradict the diagnosis.
Logical flow: Present reasoning from basic observations to final diagnosis.
Dialogue constraints
Knowledge asymmetry: The human can see the ECG image only and does not know the statistics or diagnosis.
ECG-dependent: The conversation must require the ECG; avoid questions answerable from text alone.
Role discipline: The human asks questions; the gpt role ONLY answers and explains. GPT must NEVER ask questions.
Human limitations: The human must NOT describe ECG features, morphology, or measurements.
Multi-turn continuity: Each turn should build on prior discussion.
Clinical reasoning rules
Reasoning before conclusions: Each gpt turn must include clinical reasoning before any final answer.
Numeric fidelity: All values must exactly match ground truth, including units and lead-specific details when relevant.
Stepwise computation: When interpreting metrics (e.g., heart rate, intervals), show individual measurements and math before the final value.
No patient history assumptions: Discuss only what is observable from the ECG.
No software references: Interpretation must be framed as human visual analysis only.
Avoid filler language; be direct and clinical.
Formatting rules
Return ONLY a JSON list of turns using DOUBLE QUOTES.
Valid elements: {”from”:”human”,”value”:”...”} or {”from”:”gpt”,”value”:”...”}.
Do not refer to the assistant as “doctor” or “doc”.
If a specific output format (e.g., SOAP) is required, it must be explicitly requested by the human.
Ground truth inputs Stats: {stats str}
Diagnosis: {condition}
{blueprint spec}
Generate the conversation now:
In order to promote greater diversity in the data, we sample from a set of blueprints, including 28 task types, 10 audiences, 13 formats, and 13 dialogue arcs. We list several examples below:
Blueprints.
Task Types
Concise summary: provide a brief clinical summary of the ECG findings
Structured report: generate a structured clinical report with specific fields
QA probing: answer specific questions about ECG features
Clinical explanation: explain the clinical significance of findings
Teaching: teach ECG interpretation concepts using this example
Audiences
Clinician-to-clinician: attending physician to fellow/resident
Clinician to patient: doctor explaining to a patient
Teaching trainee: attending teaching a medical student or junior resident
Paramedic handoff: paramedic to ED physician handoff
Researcher note: research annotation or case documentation
Format
Narrative: free-form narrative text
Bullet list: bulleted list of findings
Soap note: SOAP note structure
Impression findings: findings then impression format
Short answer rationale: evidence and rationale followed by a brief answer
Dialogue Arcs
Direct response: human asks, GPT answers directly
Context volunteered: human volunteers asks whether the diagnosis or explanation would change with additional clinical context
Challenge response: human challenges GPT’s interpretation
Lay translation: human asks for simpler explanation
Next steps: human asks about clinical next steps
We list several examples of conversations produced in Stage 4 below.
Conversation.
User: How does this ECG’s rhythm compare to a typical normal baseline rhythm, and what is your diagnosis?
Assistant: Reasoning: RR intervals (727, 531, 879, 926, 828, 484, 930, 703, 527, 859, 504, 562, 875 ms) show extreme variability (std 168 ms) and absent P waves compared to a steady normal baseline. Comparison: This rhythm is irregular with a heart rate of 84 bpm, unlike a normal P-wave-driven sinus rhythm. Diagnosis: Atrial Fibrillation.
User: Based on these findings, categorize the clinical priorities for the next shift into emergent, urgent, and routine categories.
Assistant: Reasoning: The rhythm is stable Atrial Fibrillation with a controlled rate (84 bpm) and a QRS duration of 115 ms.
Emergent: None; monitor for rapid ventricular response or hypotension.
Urgent: Cardiology consult for anticoagulation and rate/rhythm strategy.
Routine: Continuous telemetry and daily 12-lead ECGs.
Conversation.
User: I need a rapid interpretation of this ECG for an emergency department handoff. Please provide a numbered reasoning walkthrough covering rate, rhythm, axis, and intervals. Use a focused findings and impression format.
Assistant: Reasoning:
Rate: The individual R-R intervals are 762, 770, 590, 863, 773, 762, 770, 754, and 773 ms. The average R-R interval is 757 ms. Calculating the heart rate: 60,000 / 757 = 79 beats per minute.
Rhythm: The rhythm is sinus with a single Premature Atrial Contraction (PAC) identified by an early beat at 590 ms and a compensatory pause of 863 ms.
Axis/Morphology: The QRS shows a deep negative deflection in V1 (amplitude −4.85 mV) and a prominent positive R-wave in V6 (amplitude 4.61 mV).
Intervals: The PR interval is 193 ms. The QRS duration is markedly prolonged at 160 ms (exceeding the 120 ms threshold for a complete block).
Conclusion: The combination of a wide QRS and the specific morphology in V1 and V6 indicates a delay in left ventricular depolarization.
Findings:
Heart Rate: 79 bpm
Rhythm: Sinus with 1 PAC
PR Interval: 193 ms
QRS Duration: 160 ms
Lead V1 QRS Amplitude: −4.85 mV
Lead V6 QRS Amplitude: 4.61 mV
Impression: Left Bundle Branch Block.
User: So the heart rate is about 80 beats per minute with one extra beat. Since the QRS is wide and the main deflection is pointing down in V1, this confirms a Right Bundle Branch Block, correct?
Assistant: Reasoning: In a Right Bundle Branch Block (RBBB), lead V1 typically shows a terminal upward deflection (RSR’ pattern) because the final electrical forces move toward the right ventricle. In this ECG, lead V1 shows a deep, wide S-wave with a negative amplitude of −4.85 mV. The broad, positive R-wave in V6 (4.61 mV) and the wide QRS (160 ms) indicate that the impulse is traveling normally through the right bundle but is delayed reaching the left ventricle, which characterizes a left-sided conduction delay rather than a right-sided one.
Findings:
QRS morphology: Deep S-wave in V1, broad R-wave in V6
QRS duration: 160 ms
Impression: Left Bundle Branch Block (Correction: This is not RBBB).
User: I understand now; the deep downward wave in V1 actually points to a left-sided delay. Can you provide the specific measurements for the P-wave and confirm the final PR interval for the clinical report?
Assistant: Reasoning: The P-wave duration is measured globally at 164 ms with an amplitude of 0.08 mV. Specifically looking at Lead II, the P-wave duration is 113 ms with an amplitude of 0.12 mV. The PR interval is 193 ms, which is within the upper limits of normal (less than 200 ms). These findings, alongside the 160 ms QRS duration, confirm the diagnosis of a significant ventricular conduction delay without a primary AV block.
Findings:
Global P-duration: 164 ms
Lead II P-duration: 113 ms
PR interval: 193 ms
QRS duration: 160 ms
Impression: Left Bundle Branch Block.
C.3. Stage 5
The Stage 5 dataset contains 17K samples, with ECGs sourced from the Icentia11k dataset. Like Stage 4, we use ECGDeli-computed statistics to generate conversations with gemini-3-flash-preview. However, in Stage 5 we focus on single-ECG, single-turn conversations (one question and one response). We first compile a rubric consisting of the most clinically relevant features for forecasting AFIB and AFL, including PR interval prolongation (Smith et al., 2017; Cheng et al., 2009), heightened premature atrial contractions (Farinha et al., 2023), RR irregularity (Wesselius et al., 2021), and increased standard deviation of normal RR interval (SDNN) (Geurts et al., 2023). We verify these features with cardiologists to ensure clinical relevance. We use this rubric to craft a Gemini prompt and select statistics to pass along with the prompt. We provide an abridged system prompt for generating Stage 5 data below.
System Prompt.
You are an expert cardiologist specializing in arrhythmia risk prediction. Using ONLY the ECG statistics provided, produce evidence-based clinical reasoning to forecast whether an AFib or AFlutter event will occur within the next {horizon seconds} seconds.
Interpret the values as if you personally reviewed the ECG and measured them. Do not assume patient history, do not diagnose the current rhythm, and do not reference software, models, or automated interpretation.
Task Given ECG-derived metrics (including beat-level sequences such as RR, PR, QRS, and ectopy markers), produce:
A concise, evidence-grounded clinical reasoning narrative describing near-term rhythm stability.
A forecast of AFib/AFlutter occurrence within {horizon seconds} seconds.
Core rules
Use ONLY the provided statistics; do not invent values or features.
Cite AT MOST 3–4 relevant metrics. Discuss evidence BEFORE forming any opinion.
Ground every claim in specific metrics; reference individual beats explicitly when applicable (1-based).
Numeric fidelity is mandatory. Show math for any derived values.
Do not analyze metrics that contradict the ground-truth event.
No filler, hedging clichés, patient history, or diagnostic statements.
Reasoning objectives (in order)
Evidence extraction: Identify metrics relevant to short-horizon AFib/AFlutter risk (e.g., RR variability, ectopy, atrial surrogates, conduction instability).
Beat-referenced reasoning: Tie claims to specific beats when possible (e.g., “short RR at beat 7”).
Mechanistic interpretation: Explain how observed findings plausibly precede AFib/AFlutter, using only supported relationships.
Forecast formation: Provide a final forecast only after reasoning.
Output requirements
Return ONLY a JSON list of chat turns using double quotes.
Include reasoning before the forecast.
- End with exactly one of:
- Forecast: NORM
- Forecast: ABNORMAL
If ABNORMAL, state whether AFib or AFlutter is more likely, or explicitly say uncertain.
Clinical phrasing constraints
Do NOT refer to inputs as arrays, indices, fields, JSON, or statistics.
Describe missing data clinically (e.g., “no premature atrial beats identified”).
If PAC count is zero or label is NORM, do NOT mention PACs.
Beat references must remain explicit and 1-based (e.g., “beat 5”).
Ground truth inputs ECG STATISTICS: {stats str}
Ground-truth Event after {horizon seconds} seconds: {forecast label}
Generate the response now:
We list several examples of conversations produced in Stage 5 below.
Conversation.
Human: Analyze the ECG signal and predict the cardiac rhythm for the next 60.0 seconds.
NORM: Normal ECG
ABNORM: Atrial Fibrillation or Atrial Flutter
Output one of: NORM or ABNORM.
Assistant: In reviewing the rhythm for short-term risk, I first note the significant irregularity indicated by a high RMSSD of 194 ms and an RR Interval IQR of 128.91 ms. Examining the beat-to-beat timing reveals a severe shortening of the cycle length at beat 21, where the RR interval drops to 348 ms, compared to the mean RR interval of 793 ms. Furthermore, there are six premature atrial contractions identified in the segment, specifically occurring at beat 22, beat 23, beat 27, beat 30, and beat 36. The presence of frequent atrial ectopy, combined with a P-wave duration of 160.16 ms, suggests a high degree of atrial conduction delay and electrical instability. This pattern of frequent premature triggers on a background of high autonomic variability is a common precursor for paroxysmal atrial fibrillation. Given the high RMSSD and frequent ectopy, a transition into atrial fibrillation is likely within the next minute. Forecast: ABNORMAL
Conversation.
Human: Analyze the ECG signal and predict the cardiac rhythm for the next 300.0 seconds.
NORM: Normal ECG
ABNORM: Atrial Fibrillation or Atrial Flutter
Output one of: NORM or ABNORM.
Assistant: In assessing this patient’s rhythm for potential near-term transition into an arrhythmia, I am evaluating the stability of conduction and heart rate variability over the next 300.0 seconds. First, I noticed that the mean RR interval of 1030 ms, which correlates to a heart rate of 57.4 bpm, demonstrates a stable baseline. This is evident in the beat-to-beat consistency, for example, beat 1 at 1066 ms and beat 2 at 1043 ms. Second, the PR interval remains consistent with a mean value of 156 ms, and specific measurements such as beat 1 and beat 4 showing 156 ms and 152 ms respectively, indicating well-maintained atrioventricular conduction without the variations often associated with atrial instability. Third, the RR interval IQR of 71.29 ms, combined with an estimated atrial rate of 58, suggests that while there is physiological variability, the rhythm lacks the chaotic irregularity or rapid atrial activity that would precede a paroxysm of atrial fibrillation. Clinically, the uniformity of the QRS duration at 105.47 ms further supports a stable ventricular response. Given the absence of progressive shortening in the RR intervals or erratic shifts in the PR timing, the risk of a conversion to a tachyarrhythmia in the coming minutes is low. Forecast: NORM
Footnotes
Code and datasets are available at github.com/CAMEL-ECG/CAMEL-inference and huggingface.co/CAMEL-ECG.
Unable to reproduce the result.
References
- Bousseljot R., Kreiseler D., and Schnabel A.. Nutzung der ekg-signaldatenbank cardiodat der ptb über das internet, July 2009. ISSN 1862–278X. URL 10.1515/bmte.1995.40.s1.317. [DOI]
- Cheng Susan, Keyes Michelle J, Larson Martin G, McCabe Elizabeth L, Newton-Cheh Christopher, Levy Daniel, Benjamin Emelia J, Vasan Ramachandran S, and Wang Thomas J. Long-term outcomes in individuals with prolonged PR interval or first-degree atrioventricular block. JAMA, 301(24):2571–2577, June 2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Coppola Edoardo, Savardi Mattia, Massussi Mauro, Adamo Marianna, Metra Marco, and Signoroni Alberto. Hubert-ecg as a self-supervised foundation model for broad and scalable cardiac applications, November 2024. URL 10.1101/2024.11.14.24317328. [DOI]
- Farinha José Maria, Gupta Dhiraj, and Gregory Y H Lip. Frequent premature atrial contractions as a signalling marker of atrial cardiomyopathy, incident atrial fibrillation, and stroke. Cardiovascular Research, 119(2): 429–439, March 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Healthcare GE. Marquette 12SL ECG Analysis Program: Physician’s Guide. General Electric Company, 2019. URL https://www.gehealthcare.com. [Google Scholar]
- Geurts Sven, Tilly Martijn J, Arshi Banafsheh, Stricker Bruno H C, Kors Jan A, Deckers Jaap W, de Groot Natasja M S, Ikram M Arfan, and Kavousi Maryam. Heart rate variability and atrial fibrillation in the general population: a longitudinal and mendelian randomization study. Clin. Res. Cardiol., 112(6):747–758, June 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gow Brian, Pollard Tom, Larry A Nathanson Alistair Johnson, Moody Benjamin, Fernandes Chrystinne, Greenbaum Nathaniel, Jonathan W Waks Parastou Eslami, Carbonati Tanner, Chaudhari Ashish, Herbst Elizabeth, Moukheiber Dana, Berkowitz Seth, Mark Roger, and Horng Steven. Mimic-iv-ecg: Diagnostic electrocardiogram matched subset, 2023. URL https://physionet.org/content/mimic-iv-ecg/1.0/.
- Han William, Duan Chaojing, Rosenberg Michael A., Liu Emerson, and Zhao Ding. Ecg-byte: A tokenizer for end-to-end generative electrocardiogram language modeling, 2025. URL https://arxiv.org/abs/2412.14373.
- Huang Chien Hua, Su Randy, Huang Hui Chun, Lin Katie, Foster Nick, Juergens Nathan, Risley Josh, Haynes Katy, and Obermeyer Ziad. Subtyping cardiac arrest with ecg waveforms: A nightingale open science dataset, 2021. URL 10.48815/N5WC7D. [DOI]
- Berkaya Selcan Kaplan, Uysal Alper Kursat, Efnan Sora Gunal Semih Ergin, Gunal Serkan, and Gulmezoglu M. Bilginer. A survey on ecg analysis. Biomedical Signal Processing and Control, 43:216–235, 2018. ISSN 1746–8094. doi: 10.1016/j.bspc.2018.03.003. URL https://www.sciencedirect.com/science/article/pii/S1746809418300636. [DOI] [Google Scholar]
- Kenet Adam L., Pemmaraju Rahul, Ghate Sejal, Raghunath Shreeya, Zhang Yifan, Yuan Mordred, Wei Tony Y., Desman Jacob M., Greenstein Joseph L., Taylor Casey O., Ruchti Timothy, Fackler James, and Bergmann Jules. A pilot study to predict cardiac arrest in the pediatric intensive care unit. Resuscitation, 185:109740, April 2023. ISSN 0300–9572. doi: 10.1016/j.resuscitation.2023.109740. URL http://dx.doi.org/10.1016/j.resuscitation.2023.109740. [DOI] [PubMed] [Google Scholar]
- Kim Ji Hoon, Choi Arom, Kim Min Joung, Hyun Heejung, Kim Sunhee, and Chang Hyuk-Jae. Development of a machine-learning algorithm to predict in-hospital cardiac arrest for emergency department patients using a nation-wide database. Scientific Reports, 12(1), December 2022. ISSN 2045–2322. doi: 10.1038/s41598-022-26167-1. URL http://dx.doi.org/10.1038/s41598-022-26167-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Koscova Zuzana, Li Qiao, Robichaux Chad, Moura Valdery Manohar Junior, Gupta Aditya, Rosand Jonathan, Aguirre Aaron, Hong Shenda, Albert David E., Xue Joel, Parekh Aarya, Sameni Reza, Reyna Matthew A., Westover M. Brandon, and Cliford Gari D. The harvard-emory ecg database. medRxiv, 2024. doi: 10.1101/2024.09.27.24314503. URL https://www.medrxiv.org/content/early/2024/10/01/2024.09.27.24314503. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Laguna P., Mark R.G., Goldberg A., and Moody G.B.. A database for evaluation of algorithms for measurement of qt and other waveform intervals in the ecg. In Computers in Cardiology 1997, pp. 673–676, 1997. doi: 10.1109/CIC.1997.648140. URL http://dx.doi.org/10.1109/CIC.1997.648140. [DOI] [Google Scholar]
- Lan Xiang, Wu Feng, He Kai, Zhao Qinghao, Hong Shenda, and Feng Mengling. Gem: Empowering mllm for grounded ecg understanding with time series and images, 2025. URL https://arxiv.org/abs/2503.06073.
- Li Haitao, Li Ziyu, Mao Yiheng, Liu Ziyi, Sun Zhoujian, and Huang Zhengxing. anyecg-chat: A generalist ecg-mllm for flexible ecg input and multi-task understanding, 2025a. URL https://arxiv.org/abs/2506.00942.
- Li Jun, Liu Che, Cheng Sibo, Arcucci Rossella, and Hong Shenda. Frozen language model helps ecg zero-shot learning. In Oguz Ipek, Noble Jack, Li Xiaoxiao, Styner Martin, Baumgartner Christian, Rusu Mirabela, Heinmann Tobias, Kontos Despina, Landman Bennett, and Dawant Benoit (eds.), Medical Imaging with Deep Learning, volume 227 of Proceedings of Machine Learning Research, pp. 402–415. PMLR, 10–12 Jul 2024. URL https://proceedings.mlr.press/v227/li24a.html. [Google Scholar]
- Li Jun, Aguirre Aaron D., Moura Valdery Junior, Jin Jiarui, Liu Che, Zhong Lanhai, Sun Chenxi, Clifford Gari, Westover M. Brandon, and Hong Shenda. An electrocardiogram foundation model built on over 10 million recordings. NEJM AI, 2(7), June 2025b. ISSN 2836–9386. doi: 10.1056/aioa2401033. URL http://dx.doi.org/10.1056/AIoa2401033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Liu Che, Wan Zhongwei, Ouyang Cheng, Shah Anand, Bai Wenjia, and Arcucci Rossella. Zero-shot ecg classification with multimodal learning and test-time clinical knowledge enhancement, 2024a. URL https://arxiv.org/abs/2403.06659.
- Liu Feifei, Liu Chengyu, Zhao Lina, Zhang Xiangyu, Wu Xiaoling, Xu Xiaoyan, Liu Yulin, Ma Caiyun, Wei Shoushui, He Zhiqiang, Li Jianqing, and Kwee Eddie Ng Yin. An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection. Journal of Medical Imaging and Health Informatics, 8(7):1368–1373, September 2018. ISSN 2156–7018. doi: 10.1166/jmihi.2018.2442. URL http://dx.doi.org/10.1166/jmihi.2018.2442. [DOI] [Google Scholar]
- Liu Hui, Chen Dan, Chen Da, Zhang Xiyu, Li Huijie, Bian Lipan, Shu Minglei, and Wang Yinglong. A large-scale multi-label 12-lead electrocardiogram database with standardized diagnostic statements, June 2022. ISSN 2052–4463. URL 10.1038/s41597-022-01403-5. [DOI] [PMC free article] [PubMed]
- Liu Ruoqi, Bai Yuelin, Yue Xiang, and Zhang Ping. Teach multimodal llms to comprehend electrocardiographic images, 2024b. URL https://arxiv.org/abs/2410.19008. [DOI] [PMC free article] [PubMed]
- McKeen Kaden, Masood Sameer, Toma Augustin, Rubin Barry, and Wang Bo. Ecg-fm: an open electrocardiogram foundation model, September 2025. ISSN 2574–2531. URL 10.1093/jamiaopen/ooaf122. [DOI] [PMC free article] [PubMed]
- Moody G.B. and Mark R.G.. The impact of the mit-bih arrhythmia database. IEEE Engineering in Medicine and Biology Magazine, 20(3):45–50, 2001. ISSN 0739–5175. doi: 10.1109/51.932724. URL http://dx.doi.org/10.1109/51.932724. [DOI] [PubMed] [Google Scholar]
- Oh Jungwoo, Lee Gyubok, Bae Seongsu, Kwon Joon myoung, and Choi Edward. ECG-QA: A comprehensive question answering dataset combined with electrocardiogram. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. URL https://openreview.net/forum?id=YWJ7Yi4OtH. [Google Scholar]
- Perez Alday Erick A, Gu Annie, Shah Amit J, Robichaux Chad, Wong An-Kwok Ian, Liu Chengyu, Liu Feifei, Rad Ali Bahrami, Elola Andoni, Seyedi Salman, Li Qiao, Sharma Ashish, Clifford Gari D, and Reyna Matthew A. Classification of 12-lead ecgs: the physionet/computing in cardiology challenge 2020. Physiological Measurement, 41(12):124003, December 2020. ISSN 1361–6579. doi: 10.1088/1361-6579/abc960. URL http://dx.doi.org/10.1088/1361-6579/abc960. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Pilia Nicolas, Nagel Claudia, Lenis Gustavo, Becker Silvia, Dössel Olaf, and Loewe Axel. Ecgdeli - an open source ecg delineation toolbox for matlab. SoftwareX, 13:100639, January 2021. ISSN 2352–7110. doi: 10.1016/j.softx.2020.100639. URL http://dx.doi.org/10.1016/j.softx.2020.100639. [DOI] [Google Scholar]
- Pollack Murray M., Holubkov Richard, Funai Tomohiko, Dean J. Michael, Berger John T., Wessel David L., Meert Kathleen, Berg Robert A., Newth Christopher J. L., Harrison Rick E., Carcillo Joseph, Dalton Heidi, Shanley Thomas, Jenkins Tammara L., and Tamburro Robert. The pediatric risk of mortality score: Update 2015*. Pediatric Critical Care Medicine, 17(1):2–9, January 2016. ISSN 1529–7535. doi: 10.1097/pcc.0000000000000558. URL http://dx.doi.org/10.1097/PCC.0000000000000558. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ribeiro Antônio H., Paixao Gabriela M.M, Lima Emilly M., Ribeiro Manoel Horta, Pinto Filho Marcelo M., Gomes Paulo R., Oliveira Derick M., Meira Wagner Jr, Schon Thömas B, and Ribeiro Antonio Luiz P.. Code-15 URL https://zenodo.org/doi/10.5281/zenodo.4916206. [Google Scholar]
- Rooney Sydney R., Kaufman Roman, Murugan Raghavan, Kashani Kianoush B., Pinsky Michael R., Salah Al-Zaiti Artur Dubrawski, Clermont Gilles, and Miller J. Kyle. Forecasting imminent atrial fibrillation in long-term electrocardiogram recordings. Journal of Electrocardiology, 81:111–116, November 2023. ISSN 0022–0736. doi: 10.1016/j.jelectrocard.2023.08.011. URL http://dx.doi.org/10.1016/j.jelectrocard.2023.08.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Savonitto Stefano, Ardissino Diego, Granger Christopher B., Morando Giorgio, Prando Maria D., Mafrici Antonio, Cavallini Claudio, Melandri Giovanni, Thompson Trevor D., Vahanian Alec, Ohman E. Magnus, Califf Robert M, Van de Werf Frans, and Topol Eric J. Prognostic value of the admission electrocardiogram in acute coronary syndromes. JAMA, 281(8):707–713, 02 1999. ISSN 0098–7484. doi: 10.1001/jama.281.8.707. URL https://doi.org/10.1001/jama.281.8.707. [DOI] [PubMed] [Google Scholar]
- Sellergren Andrew, Kazemzadeh Sahar, Jaroensri Tiam, Kiraly Atilla, Traverse Madeleine, Kohlberger Timo, Xu Shawn, Jamil Fayaz, Hughes Cían, Lau Charles, Chen Justin, Mahvar Fereshteh, Yatziv Liron, Chen Tiffany, Sterling Bram, Baby Stefanie Anna, Baby Susanna Maria, Lai Jeremy, Schmidgall Samuel, Yang Lu, Chen Kejia, Bjornsson Per, Reddy Shashir, Brush Ryan, Philbrick Kenneth, Asiedu Mercy, Mezerreg Ines, Hu Howard, Yang Howard, Tiwari Richa, Jansen Sunny, Singh Preeti, Liu Yun, Azizi Shekoofeh, Kamath Aishwarya, Ferret Johan, Pathak Shreya, Vieillard Nino, Merhej Ramona, Perrin Sarah, Matejovicova Tatiana, Ramé Alexandre, Riviere Morgane, Rouillard Louis, Mesnard Thomas, Cideron Geoffrey, Grill Jean bastien, Ramos Sabela, Yvinec Edouard, Casbon Michelle, Buchatskaya Elena, Alayrac Jean-Baptiste, Lepikhin Dmitry, Feinberg Vlad, Borgeaud Sebastian, Andreev Alek, Hardin Cassidy, Dadashi Robert, Hussenot Léonard, Joulin Armand, Bachem Olivier, Matias Yossi, Chou Katherine, Hassidim Avinatan, Goel Kavi, Farabet Clement, Barral Joelle, Warkentin Tris, Shlens Jonathon, Fleet David, Cotruta Victor, Sanseviero Omar, Martins Gus, Kirk Phoebe, Rao Anand, Shetty Shravya, Steiner David F., Kirmizibayrak Can, Pilgrim Rory, Golden Daniel, and Yang Lin. Medgemma technical report, 2025. URL https://arxiv.org/abs/2507.05201.
- Smith Justin W, O’Neal Wesley T, Shoemaker M Benjamin, Chen Lin Y, Alonso Alvaro, Whalen S Patrick, and Soliman Elsayed Z. PR-interval components and atrial fibrillation risk (from the atherosclerosis risk in communities study). Am. J. Cardiol., 119(3):466–472, February 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Soar Jasmeet, Böttiger Bernd W, Carli Pierre, Couper Keith, Deakin Charles D., Djärv Therese, Lott Carsten, Olasveengen Theresa, Paal Peter, Pellis Tommaso, Perkins Gavin D., Sandroni Claudio, and Nolan Jerry P.. European resuscitation council guidelines 2021: Adult advanced life support. Resuscitation, 161:115–151, April 2021. ISSN 0300–9572. doi: 10.1016/j.resuscitation.2021.02.010. URL http://dx.doi.org/10.1016/j.resuscitation.2021.02.010. [DOI] [PubMed] [Google Scholar]
- Tan Shawn, Ortiz-Gagné Satya, Beaudoin-Gagnon Nicolas, Fecteau Pierre, Courville Aaron, Bengio Yoshua, and Cohen Joseph Paul. Icentia11k single lead continuous raw electrocardiogram dataset, 2022. URL https://physionet.org/content/icentia11k-continuous-ecg/1.0/. [Google Scholar]
- Tang Jialu, Xia Tong, Lu Yuan, Mascolo Cecilia, and Saeed Aaqib. Electrocardiogram report generation and question answering via retrieval-augmented self-supervised modeling, 2024. URL https://arxiv.org/abs/2409.08788.
- Wagner Patrick, Strodthoff Nils, Bousseljot Ralf-Dieter, Kreiseler Dieter, Lunze Fatima I., Samek Wojciech, and Schaeffter Tobias. Ptb-xl, a large publicly available electrocardiography dataset. Scientific Data, 7(1), May 2020. ISSN 2052–4463. doi: 10.1038/s41597-020-0495-6. URL http://dx.doi.org/10.1038/s41597-020-0495-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wan Zhongwei, Liu Che, Wang Xin, Tao Chaofan, Shen Hui, Xiong Jing, Arcucci Rossella, Yao Huaxiu, and Zhang Mi. Meit: Multimodal electrocardiogram instruction tuning on large language models for report generation, 2025. URL https://arxiv.org/abs/2403.04945.
- Wang Fuying, Xu Jiacheng, and Yu Lequan. From token to rhythm: A multi-scale approach for ecg-language pretraining, 2025. URL https://arxiv.org/abs/2506.21803.
- Wesselius Fons J, van Schie Mathijs S, De Groot Natasja M S, and Hendriks Richard C. Digital biomarkers and algorithms for detection of atrial fibrillation using surface electrocardiograms: A systematic review. Comput. Biol. Med., 133(104404):104404, June 2021. [DOI] [PubMed] [Google Scholar]
- Zhang Lifan, Li Bingxun, and Wu Lin. Heart rate variability in patients with atrial fibrillation of sinus rhythm or atrial fibrillation: chaos or merit? Ann. Med., 57(1):2478474, December 2025. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhao Yubao, Kang Jiaju, Zhang Tian, Han Puyu, and Chen Tong. Ecg-chat: A large ecg-language model for cardiac disease diagnosis, 2025. URL https://arxiv.org/abs/2408.08849. [Google Scholar]
- Zheng Jianwei, Zhang Jianming, Danioko Sidy, Yao Hai, Guo Hangyuan, and Rakovski Cyril. A 12-lead electrocardiogram database for arrhythmia research covering more than 10, 000 patients. Scientific Data, 7(1), February 2020. ISSN 2052–4463. doi: 10.1038/s41597-020-0386-x. URL http://dx.doi.org/10.1038/s41597-020-0386-x. [DOI] [PMC free article] [PubMed] [Google Scholar]






