Manuscript Offprint
arXiv:2610.07662MS-ECG-FM: Towards a More Universal Electrocardiogram Foundation Model for Health Monitoring using Multi-source Contrastive Learning
Abstract
Electrocardiography (ECG) records the electrical activity of the heart, aiding diagnosis by detecting abnormalities in cardiac function. ECG foundation models have demonstrated promising results, but are limited by a reliance on ECG interpretation reports as their sole supervision. Because interpretation reports only capture the subset of waveform information routinely recognized by clinicians, this constrains representation learning to overlook the broader diagnostic signals present in ECG. We introduce a new ECG foundation model — MS-ECG-FM — that is trained through contrastive alignment to multiple distinct clinical note types, including ECG, echocardiography, radiology, and discharge reports. We evaluate MS-ECG-FM on an extended set of ECG detection benchmarks, showing that it comprehensively outperforms existing methods on the full span of conditions that ECG can detect, including in reduced-lead configurations. Different reports improve representations for different diagnostic domains, while multi-source alignment captures their complementary information and produces consistently strong representations across clinically diverse tasks.
Keywords: self-supervised learning, contrastive learning, foundation models, electrocardiography, clinical machine learning, cardiovascular health, EHR
1 Introduction
Electrocardiography (ECG) is a low-cost technology that captures high-dimensional signatures of cardiac electrical activity. Performed millions of times daily, the standard 12-lead ECG serves as the primary instrument for the initial clinical assessment of cardiac function. Recent data curation efforts have made large-scale, well-characterized clinical ECG datasets available to the academic community (e.g., MIMIC-IV-ECG [1]). This has facilitated new research on improving diagnostic technologies using machine learning (ML) and artificial intelligence (AI) to learn from ECG data at scale [2].
Deep learning is highly effective on ECG waveforms given the high-dimensional nature of the signal [2]. Furthermore, given the sparsely or weakly-labeled nature of many ECG datasets (i.e., many ECG waveforms are not annotated or are only paired with weaker forms of supervision such as unparsed text reports), self-supervised learning (SSL) is the leading deep learning paradigm given its ability to bypass these challenges. In SSL, ECG representations are first pre-trained using contrastive or reconstruction-based objectives on large datasets, before transferring the representations (or embeddings) learned in pre-training to downstream tasks [3–8].
Collectively, these data and methods mark the advent of the foundation model era of ECG modeling (ECG-FM), where success is defined by the creation of universal ECG representations: in other words, a comprehensive, information-rich way to encode the ECG signal that can be easily adapted to a broad range of downstream tasks such as condition-specific classifiers. Multimodal contrastive ECG-to-text ECG-FMs, where ECG waveforms are aligned to paired ECG machine text reports, currently produce state-of-the-art (SOTA) ECG representations for a number of downstream tasks [9, 10]. Multitask pre-training — where task labels are derived from machine reports — has also demonstrated SOTA performance [11]. We survey contemporary ECG-FMs in more detail in Table A1.
However, progress towards a truly universal ECG-FM has so far been limited by the exclusive reliance of contemporary methods on machine-generated ECG interpretation reports as their sole source of supervision [8–11]. Historically, these reports have been generated by rules-based systems and they only contain a limited set of statements related to the morphological features of the waveform and the possibility of certain conditions (e.g., rhythm, conduction abnormalities, or ST-segment changes) [12]. By restricting pre-training to only these reports, there is no incentive for the ECG-FM to learn features that are discriminative of conditions beyond those described within them. More formally, this can be understood from an information theory perspective: contrastive objectives (e.g., InfoNCE) maximize a lower bound on the mutual information between views, guiding the encoder to learn only the features that represent this [13, 14]. When this shared information is also discriminative of a downstream outcome,

Fig. 1 Conceptual overview of MS-ECG-FM. MS-ECG-FM is an ECG foundation model that can support a broader range of ECG detection tasks. It is pre-trained using concurrent alignment to ECG, ECHO, chest X-ray and discharge reports to improve the universality of its representations.
the ECG-FM’s representations will transfer well. However, when it is not, the representations can become invariant to task-relevant factors of variation [15], resulting in poor transfer performance on certain tasks (e.g., comparable to using representations from a randomly initialized encoder that has not been trained [16]).
Contrary to the narrow information content of ECG interpretation reports, recent research has demonstrated the utility of ECG to detect a far broader set of conditions [17, 18]. For example, it has been shown that structural heart disease endpoints such as low left ventricular ejection fraction (LVEF) or aortic stenosis (AS) — which are typically diagnosed with an ECHO — can also be detected with ECG [19]. Furthermore, emerging evidence shows other non-cardiac diseases such as chronic kidney disease (CKD) and clinically relevant CKD states such as hyperkalemia can also be detected from ECG [20, 21], as well as pulmonary conditions and obstructive sleep apnea (OSA) [22–24]. We synthesize the full range of conditions and outcomes where there is at least exploratory evidence of ECG detection in Table B1.
Therefore, though the content of ECG reports is restricted to a subset of diseases determined by current clinical usage, this does not imply that ECG recordings are devoid of latent signatures related to many other conditions. Furthermore, by recognizing that an ECG recording is often collected in the context of a broader clinical encounter, notes from other diagnostic tests that assess cardiac function and structure, or indeed broader systemic disease, may be available to jointly supervise the pre-training of an ECG-FM. Used together, these notes can provide broader and more nuanced diagnostic information to learn ECG representations from.
Building from these insights, this work contributes a new ECG foundation model — MS-ECG-FM — that is pre-trained using contrastive alignment to a variety of different clinical notes (e.g., ECG, ECHO, chest X-rays, and discharge summaries) that occur sparsely and asynchronously in a patient's medical record. MS-ECG-FM substantially outperforms existing ECG foundation models across well-established ECG benchmark datasets and, importantly, it addresses the significant blind-spot of prior methods on conditions such as structural heart disease [16]. Beyond a stronger ECG foundation model, we also contribute an extended evaluation framework for ECG-FMs, designed to probe their universality by incorporating more labels and reduced-lead evaluations,
Model: Random MERL D-BETA MELP ECGFounder MS-ECG-FM Rank: ▲ Best * Not sig. diff. from best
a. Performance profile (98 labels)
b. AUROC by dx group

Fig. 2 Comparison of MS-ECG-FM to other contemporary ECG foundation models on 12-lead ECG diagnostic tasks using linear probe evaluations. (a): The performance profile shows that MS-ECG-FM universally outperforms the other methods on the 98 downstream labels. (b): MS-ECG-FM is strongest for all diagnostic groups, with large gains on several important diagnosis (dx) groups. Random refers to a randomly initialized ECG encoder. Significance testing is performed using a paired patient-cluster bootstrap procedure (see Methods). 95% bootstrap confidence intervals are shown. AUROC: area under the receiver operating characteristic curve, ARR: arrhythmia, CD: conduction disturbances, ECG-HYP: hypertrophies detected from ECG, MI: myocardial infarction, ISC/STTC: ischemia and ST/T changes, SHD: structural heart disease, VC: diagnoses that rely on voltage criteria. Conditions by diagnosis group are in Table C1.
as well as to provide clearer takeaways about their abilities through new visualizations (performance profiles) and logical groupings of condition detection tasks. The overarching goal of this work is to provide insights and reusable artifacts to the clinical research community which can facilitate a new generation of more universal, more accurate ECG foundation models to support real-world prevention and diagnostic applications.
MS-ECG-FM universally outperforms contemporary ECG foundation models at disease detection
The MS-ECG-FM modeling and evaluation approach is summarized conceptually in Figure 1. Figure 2 compares MS-ECG-FM's performance to that of contemporary ECG-FMs using the area under the receiver operating characteristic curve (AUROC) score on a broad set of downstream disease detection tasks using held-out data from different hospital systems (see Methods and Supplementary Note C for dataset details). We compare to MERL [8], D-BETA [9] and MELP [10] given their state-of-the-art reported performance on ECG benchmarks, and because they are also pre-trained on
MIMIC-IV-ECG [1], facilitating controlled comparison of results. We also compare to ECGFounder [11] given it is pre-trained on an order of magnitude more data — 10,771,552 ECGs versus at most 800,035 ECGs for MIMIC-IV-ECG. Finally, we include a randomly initialized encoder (Random) with the same encoder architecture as MS-ECG-FM to establish an empirical lower bound on performance [16]. See Supplementary Note A for further details on these methods.
Figure 2.a. shows a performance profile, a visualization we introduce to the ECG-FM benchmarking context [26, 27]. The core goal of foundation models is to provide universal data representations that are consistently strong across a broad set of downstream tasks. A performance profile operationalizes the evaluation of this goal, summarizing the distribution of a model's performance over all binary detection evaluation tasks. Unlike average performance scores which can be overly influenced by outliers (e.g., abnormally strong performance on a small set of tasks) and which discard information about the distribution of performance over tasks, performance profiles are robust and give a more fine-grained view of relative performance on the full evaluation suite. Here we see that MS-ECG-FM's performance distribution is superior to those of the baselines: at all intermediate AUROC thresholds (0.70 to 1.00), it supports a higher proportion of downstream tasks to perform at or above this level.
The diagnosis groups in Figure 2.b. provide further insight on the improvements of MS-ECG-FM over contemporary methods. Performance on arrhythmias (ARR) and ECG-detected hypertrophies (ECG-HYP) is in line with the strongest baseline methods. At the same time, MS-ECG-FM has considerably stronger performance on labels in the conduction disturbances (CD), myocardial infarction (MI), ischemia and ST/T changes (ISC/STTC), structural heart disease (SHD), and voltage criteria related (VC) categories. Overall, the macro-averaged AUROC for MS-ECG-FM across all these tasks is 93.6 compared to 91.5 for ECGFounder, the strongest baseline overall, and 91.2 for MELP, the strongest baseline that uses the same pre-training data.
Finally, to complement Figure 2, we report MS-ECG-FM's performance on the standard ECG-FM benchmark table in Table 1. This table compares the performance of each method on each out-of-distribution dataset (the same underlying datasets as Figure 2, described in Methods) at different fractions of available training labels (1%, 10%, 100%). MS-ECG-FM frequently outperforms other methods by a large margin, and where it is not the strongest model (e.g., PTBXL-Rhythm and some lower label fraction results), its performance is not significantly different from the strongest model with only one exception. Going forwards, we advocate for the diagnostic groupings we propose in Figure 2 as the primary summary of ECG-FM performance because they support intuitive takeaways on an ECG-FM's strengths and weaknesses along clinically meaningful groupings, which in turn can inform prioritization of further data collection or methodological improvements. However, it is important to still report Table 1 here given the de facto status of this table in contemporary literature.
MS-ECG-FM pre-trains only on the train split of this dataset which contains 720,102 ECGs, while the other methods use all 800,035 ECGs.
The Random method is not pre-trained, so an ECG-FM must outperform it to be considered a useful provider of representations for that task. This is less trivial than might be expected, as some information is preserved in embedding spaces defined by randomly initialized encoder weights [25].
Table 1 Comparison of MS-ECG-FM to other contemporary ECG foundation models on standard 12-lead ECG benchmark datasets using linear probe evaluations. MS-ECG-FM is frequently the strongest model by a large margin. When it is not the strongest model (e.g., PTBXL-Rhythm and some lower label fraction results), its performance is often not significantly different from the strongest model. The evaluation metric is AUROC: area under the receiver operating characteristic curve.
| Methods | PTBXL-Super | PTBXL-Sub | PTBXL-Form | PTBXL-Rhythm | CPSC2018 | CSN | EchoNext-Mini | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | |||||||
| Random | 82.0 | 85.2 | 87.0 | 71.7 | 83.1 | 85.7 | 56.9 | 73.0 | 72.6 | 70.0 | 84.6 | 87.3 | 69.5 | 81.3 | 83.6 | 65.2 | 81.5 | 86.2 | 67.1 | 71.3 | 76.1 |
| MERL | 86.3 | 88.5 | 89.9 | 81.0 | 88.5 | 92.0 | 59.3 | 73.5 | 80.7 | 79.2 | 90.7 | 90.1 | 78.9 | 87.6 | 90.2 | 76.6 | 87.8 | 92.4 | 65.5 | 74.2 | 78.3 |
| D-BETA | 86.0 | 88.9 | 89.8 | 81.0 | 86.4 | 90.2 | *67.7 | 78.5 | 85.0 | 89.8 | *95.8 | *96.8 | 88.9 | 92.8 | 95.1 | *82.7 | 90.5 | 94.3 | 69.9 | 74.6 | 76.6 |
| MELP | 86.4 | 89.3 | 90.3 | 81.9 | 90.2 | 92.6 | 69.0 | 81.7 | 85.4 | *89.5 | 96.6 | *96.6 | 87.4 | 92.8 | 94.0 | *81.8 | 90.9 | 94.8 | 69.6 | 76.1 | 78.4 |
| ECGFounder | 85.6 | 88.9 | 90.2 | 82.9 | 89.4 | 92.5 | 64.2 | 77.7 | 86.3 | 83.8 | *96.1 | 97.0 | 83.4 | 92.1 | *95.3 | 83.3 | *92.5 | 95.8 | 68.3 | 77.2 | 79.2 |
| MS-ECG-FM | 89.5 | 92.2 | 93.2 | 84.8 | 92.9 | 95.0 | *66.7 | *81.7 | 89.7 | 85.6 | *96.4 | *96.7 | *88.4 | 94.0 | 95.8 | *82.7 | 93.4 | 96.8 | 74.9 | 81.7 | 83.4 |
The best model in each column is bold; * marks models that are not significantly different from the best per a paired patient-cluster bootstrap significance test (see Methods). Random refers to a randomly initialized ECG encoder. Results are shown for different percentages of available training labels (1%, 10%, 100%).
Each major column header is a different ECG benchmarking dataset, described further in Methods. Each minor column header is a different percentage of available training labels (1%, 10%, 100%).
MS-ECG-FM also supports reduced-lead ECG configurations
12-lead ECG data is generally better characterized given its collection in clinical settings alongside clinical notes and other metadata, thus making it the primary target for pre-training ECG-FMs. However, reduced-lead applications exist in bedside monitors and are becoming more prominent in ambulatory settings — e.g., Holter monitors, patches or wrist-worn wearable devices. Thus, ECG-FMs should be able to support these too. The PhysioNet/Computing in Cardiology Challenge 2021 considered the task of ECG diagnosis using common reduced-lead configurations [28], proposing to study performance with Leads I, II and V2 individually, which are oriented towards the lateral, inferior and anterior walls of the left ventricle, respectively, as well as with several reduced-lead subsets. We make use of these reduced-lead configurations here, reporting results by diagnostic group in Table 2.
When reducing the number of ECG leads available for a task, some information about cardiac function — manifested as electrical potentials in certain directions — becomes irretrievable if it does not occur in the subspace spanned by the remaining leads. However, performance can still be strong for certain conditions in reduced-lead configurations. Table 2 shows that MS-ECG-FM maintains its strong performance, significantly surpassing the baseline methods on average across all tasks, and generally exceeding them on each diagnostic grouping with the exception of arrhythmia. Several steps were taken to promote MS-ECG-FM's reduced-lead transfer performance as discussed further in Methods.
It is also noteworthy that performance on the detection of arrhythmias (ARR) systematically drops off less abruptly for single leads I and II compared to the other diagnostic groups (with the exception of MERL, which underperforms in all reduced-lead configurations). This may be explained by how arrhythmias manifest, mediating the temporal structure of many leads simultaneously, compared to other conditions such as infarction and ischemia, which affect the morphological structure of the ECG in a lead-specific manner due to their regional occurrences in the heart. Relatedly, it is interesting that reduced-lead subsets that contain leads viewing the heart from the three key anatomical angles (i.e., “I, II, V2” and “I, II, III, V2” concurrently view the anterior, inferior and lateral walls) experience only a mild reduction in performance versus the 12-lead setting. Table D1 and Table D2 report performance by lead subset at the level of individual labels, providing further insight on these performance trends (e.g., the relative strengths of single leads I, II and V2 on lateral, inferior and anterior myocardial infarction, respectively).
Alignment to multiple types of clinical report grants MS-ECG-FM universally strong performance
The type of clinical report used for contrastive pre-training has an impact on the quality of an ECG foundation model's representations for specific downstream tasks. No single note type is universally strongest on all downstream tasks due to their different clinical focuses. Figure 3 demonstrates this empirically, where here the number of downstream labels is expanded to 127 to also include International Classification of Diseases (ICD) based labels covering a broader range of conditions for which
Table 2 Performance of MS-ECG-FM and contemporary ECG-FMs on detection tasks with common reduced-lead configurations. With the exception of arrhythmias (ARR) and ECG-HYP detected from single lead V2, MS-ECG-FM is consistently the strongest method. AUROC: area under the receiver operating characteristic curve.
| Single Lead | Lead Subsets | 12-lead | |||||||
|---|---|---|---|---|---|---|---|---|---|
| I (LCX) | II (RCA) | V2 (LAD) | I,II | All limb | I,II,V2 | I,II,III,V2 | 12-lead | ||
| All | Random | 76.4 | 77.7 | 73.7 | 81.1 | 81.7 | 81.0 | 82.3 | 83.6 |
| MERL | 63.5 | 66.6 | 68.5 | 69.7 | 63.5 | 75.8 | 79.0 | 88.8 | |
| D-BETA | 84.4 | 85.6 | 82.2 | 88.2 | 88.3 | 89.3 | 89.2 | 90.3 | |
| MELP | 84.9 | 86.0 | 81.9 | 89.1 | 89.2 | 90.6 | 90.7 | 91.2 | |
| ECGFounder | 86.2 | 86.4 | 83.1 | 89.0 | 88.9 | 90.0 | 90.8 | 91.5 | |
| MS-ECG-FM | 86.9 | 88.1 | 85.0 | 90.8 | 91.2 | 92.5 | 92.7 | 93.6 | |
| ARR | Random | 79.2 | 82.0 | 75.9 | 86.2 | 87.0 | 82.5 | 84.2 | 85.5 |
| MERL | 61.5 | 64.7 | 71.5 | 59.6 | 58.6 | 76.8 | 79.6 | 90.2 | |
| D-BETA | *91.5 | *95.6 | *89.2 | *96.3 | *96.1 | 95.7 | *95.8 | *95.5 | |
| MELP | 91.8 | *96.1 | 88.8 | *96.0 | *96.0 | *95.8 | 96.1 | *96.0 | |
| ECGFounder | 93.7 | *96.3 | 91.6 | 96.6 | 96.5 | 97.1 | 97.0 | *96.4 | |
| MS-ECG-FM | *93.6 | 96.5 | *90.7 | *96.4 | *96.3 | *95.9 | 96.0 | 96.9 | |
| CD | Random | 79.1 | 83.5 | 82.0 | 86.8 | 87.6 | 87.5 | 88.0 | 88.1 |
| MERL | 71.4 | 74.3 | 76.8 | 81.2 | 70.8 | 85.8 | 87.9 | 93.3 | |
| D-BETA | 85.5 | 87.6 | 87.6 | 90.6 | 91.0 | 92.9 | 92.4 | 93.7 | |
| MELP | 86.3 | 89.0 | 88.0 | 92.0 | 92.3 | *94.2 | 94.1 | 94.8 | |
| ECGFounder | 86.4 | 88.7 | 88.2 | 91.3 | 91.6 | 93.5 | 94.2 | 94.9 | |
| MS-ECG-FM | 87.8 | 90.8 | 89.3 | 93.1 | 93.3 | 94.8 | 94.9 | 95.8 | |
| ECG-HYP | Random | 79.5 | 83.8 | 75.9 | 87.1 | 88.0 | 84.9 | 86.0 | *91.4 |
| MERL | 71.4 | 71.9 | 64.9 | 74.0 | 63.7 | 80.2 | 83.8 | *90.9 | |
| D-BETA | 83.4 | 83.5 | *79.7 | 86.4 | 87.0 | 87.5 | 87.1 | 88.7 | |
| MELP | *84.6 | 83.3 | *80.3 | 88.8 | 89.6 | 90.3 | 90.7 | *91.4 | |
| ECGFounder | *85.7 | 85.1 | *80.7 | 89.0 | 89.4 | 90.5 | 91.4 | *92.6 | |
| MS-ECG-FM | 87.7 | 89.2 | 81.5 | 91.5 | 92.7 | 93.6 | 93.8 | 93.9 | |
| MI | Random | 74.5 | 75.8 | 73.7 | 76.5 | 80.5 | 79.6 | 80.2 | 79.4 |
| MERL | 60.1 | 67.6 | 67.1 | 73.5 | 66.8 | 75.4 | 82.5 | 92.2 | |
| D-BETA | 77.1 | *78.7 | *77.7 | 86.6 | 86.8 | *91.7 | *92.0 | 88.6 | |
| MELP | *78.3 | *79.9 | *76.3 | *89.0 | 89.2 | *91.8 | 92.0 | 91.9 | |
| ECGFounder | *79.0 | *79.8 | *77.3 | *87.7 | 87.9 | 87.8 | 92.2 | 89.6 | |
| MS-ECG-FM | 81.0 | 80.4 | 78.2 | 89.3 | 90.5 | 92.7 | 93.8 | 94.4 | |
| ISC/STTC | Random | 79.4 | 81.3 | 70.6 | 83.8 | 84.3 | 83.7 | 84.4 | 84.4 |
| MERL | 60.0 | 64.9 | 64.0 | 65.9 | 60.7 | 75.6 | 80.0 | 90.5 | |
| D-BETA | 82.6 | 84.1 | 73.1 | 89.1 | 89.2 | 88.0 | 87.7 | 90.0 | |
| MELP | 83.5 | 84.2 | 74.3 | 89.3 | 89.2 | 90.0 | 90.3 | 90.7 | |
| ECGFounder | *84.3 | 84.7 | 73.6 | 88.1 | 87.3 | 88.6 | 90.1 | 89.3 | |
| MS-ECG-FM | 85.6 | 86.5 | 77.7 | 90.8 | 90.8 | 91.9 | 91.9 | 92.9 | |
| SHD | Random | 74.7 | 71.7 | 69.5 | 75.0 | 74.4 | 75.3 | 75.3 | 76.1 |
| MERL | 66.4 | 62.6 | 65.0 | 68.2 | 66.9 | 71.9 | 73.5 | 78.3 | |
| D-BETA | 75.2 | 72.6 | 72.3 | 74.9 | 75.3 | 75.8 | 75.9 | 76.6 | |
| MELP | 76.2 | 74.5 | 73.2 | 77.1 | 77.2 | 78.2 | 78.0 | 78.4 | |
| ECGFounder | 77.1 | 75.0 | 73.7 | 77.8 | 78.0 | 78.1 | 78.1 | 79.2 | |
| MS-ECG-FM | 78.8 | 77.5 | 77.1 | 79.7 | 80.5 | 82.1 | 82.2 | 83.4 | |
| VC | Random | 77.6 | 79.4 | 70.3 | 84.9 | 85.1 | 83.2 | 84.1 | 87.2 |
| MERL | 67.7 | 71.5 | 62.6 | 73.8 | 63.7 | 76.4 | 79.3 | 88.0 | |
| D-BETA | 78.7 | 80.4 | 70.6 | 85.1 | 85.2 | 84.5 | 84.1 | 85.8 | |
| MELP | 79.8 | 80.6 | 71.8 | 86.0 | 86.3 | 86.6 | 86.8 | 88.0 | |
| ECGFounder | 80.8 | 80.2 | 72.4 | 85.4 | 85.4 | 85.9 | 86.8 | 88.7 | |
| MS-ECG-FM | 83.1 | 84.8 | 76.0 | 89.1 | 90.0 | 90.3 | 90.6 | 91.7 | |
Linear probe evaluations. Random refers to a randomly initialized ECG encoder. The best model in each column is bold; * marks models that are not significantly different from the best per a paired patient-cluster bootstrap significance test (see Methods).
LCX: left circumflex, RCA: right coronary artery, LAD: left anterior descending, ARR: arrhythmia, CD: conduction disturbances, ECG-HYP: hypertrophies detected from ECG, MI: myocardial infarction, ISC/STTC: ischemia and ST/T changes, SHD: structural heart disease, VC: diagnoses that rely on voltage criteria.
Model: Random ECG-MR ECG-CR ECHO Chest X-ray Discharge MS-ECG-FM Single source oracle ECGFounder Rank: ▲ Best * Not sig. diff. from best
a. Performance profile — MS-ECG-FM vs Single source oracle vs ECGFounder (127 labels)
b. AUROC by dx group

Fig. 3 Contribution of different clinical note types to downstream performance. The single source oracle represents the performance when selecting the strongest single source method on each label. (a): MS-ECG-FM matches the performance of the oracle by learning the union of information across clinical report types. (b): Alignment to different clinical note types results in stronger representations for different diagnostic tasks. Random refers to a randomly initialized ECG encoder. Significance testing is performed using a paired patient-cluster bootstrap procedure (see Methods). 95% bootstrap confidence intervals are shown. AUROC: area under the receiver operating characteristic curve, ARR: arrhythmia, CD: conduction disturbances, ECG-HYP: hypertrophies detected from ECG, MI: myocardial infarction, ISC/STTC: ischemia and ST/T changes, SHD: structural heart disease, VC: diagnoses that rely on voltage criteria, MIMIC-EST: ICD-based task on conditions with established ECG evidence, MIMIC-EXP: ICD-based labels on conditions with exploratory ECG evidence. Conditions by diagnosis group are in Table C1.
there is at least exploratory evidence of detection using ECG (see Table B1). First, Figure 3.a. shows that MS-ECG-FM's multi-source contrastive alignment objective allows it to capture much of the information contained within the five distinct report types. The gray line is an oracle method representing the performance profile of the best single source method for each label: MS-ECG-FM has a very similar performance distribution, suggesting it encodes the union of information across the reports.
Figure 3.b. provides insights on how different clinical note types influence representation quality. ECG cardiologist reports (ECG-CR, AUROC=89.7) are the strongest overall single source, closely followed by ECG machine reports (ECG-MR, AUROC=89.5). These report types are notably stronger than the others in detection
Importantly, these labels are derived from the test set of MIMIC-IV-ECG-Ext-ICD [29] which is derived from MIMIC-IV-ECG [1]. Because multiple baseline ECG-FMs (MERL, D-BETA, MELP) are pre-trained using all 800,035 MIMIC-IV-ECG instances, we only use MIMIC-IV-ECG-Ext-ICD for comparisons between our methods where leakage is strictly controlled by only pre-training on the 720,102 train instances, and ECGFounder which was pre-trained on a different dataset.
of arrhythmias (ARR), conduction disturbances (CD), ischemia and ST/T changes (ISC/STTC), and voltage criteria related conditions (VC). This is likely explained by the frequent and explicit mention of these conditions in the ECG-CR and ECG-MR notes given the clinical use of ECG to detect them. However, alignment to the other sources clearly provides orthogonal value. For example, discharge summaries and chest X-ray notes are the most useful for structural heart disease (SHD) conditions, as well as for the exploratory ECG outcomes grouped under MIMIC-EXP. The utility of all report types for MI detection is also noteworthy, in particular the ECHO and chest X-ray imaging reports. The PTB-XL MI labels [30] are stage-agnostic and, where stage is recorded, they predominantly denote prior rather than acute infarction. The finding that imaging reports are useful might thus reflect documentation on visual evidence of prior MI in these reports.
Table 3 shows results by report type at the level of individual conditions, providing further insight on the strengths of alignment to each source, and further demonstrating the benefit of multi-source alignment. First, we see that the random encoder is only in the not significantly different from best group for right ventricular hypertrophy (RVH), hypertrophic cardiomyopathy (HCM) and cardiac amyloidosis (CA). Therefore, this suggests that aligning to all of these report sources — especially when done concurrently — can significantly improve the quality of ECG-FM representations for the detection of all other conditions tested here, including the exploratory conditions in MIMIC-EXP, for which robust evidence is still emerging (see Table B1). Area under the precision-recall curve (AUPRC) results are reported in Table D3.
It is also worth noting here that the ECG-FM pre-trained in Figure 3 that uses only the ECG machine reports (ECG-MR), which uses MS-ECG-FM's architecture and recipe (except for the multi-source objective), performs better than MERL [8], D-BETA [9] and MELP [10] — methods that were pre-trained with the same machine reports from the MIMIC-IV-ECG dataset [1]. Considering the 98 label evaluation set that can be used to compare to these methods (the same set used in Figure 2), the ECG-MR method here scores an overall AUROC of 92.8 versus 88.8, 90.3 and 91.2 for MERL, D-BETA and MELP, respectively (see Figure E1). This results from several other decisions beyond multi-source alignment that were made in the design of MS-ECG-FM to improve its performance on ECG detection tasks. Briefly, these include the use of pre-processed embeddings from a strong clinical text foundation model during pre-training, the decision not to normalize inputs to preserve amplitude information for voltage criteria based diagnoses (e.g., left ventricular hypertrophy), and a different backbone architecture and pre-training recipe. These are described in detail in Methods, with an experimental ablation study in Supplementary Note E.
3 Discussion
Our experiments show that the clinical information used during pre-training meaningfully shapes the downstream capabilities of an ECG foundation model. Different report types provide complementary supervision, with ECG reports preferentially supporting conventional electrocardiographic diagnoses, while other clinical notes contribute
Performance on these conditions might be explained by their very low prevalence in these datasets.
Table 3 Contribution of different clinical report types to downstream performance for different condition detection tasks. A glossary of condition codes is in Table C2. AUROC: area under the receiver operating characteristic curve.
| Group | Condition | Prevalence % (N) | AUROC | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Random | ECG-MR | ECG-CR | ECHO | Chest | X-ray | Discharge | MS-ECG-FM | ||
| ARR | AFIB | 7.2% (152) | 93.2 | *98.4 | *98.5 | *98.0 | 97.9 | 97.9 | 98.7 |
| STACH | 3.9% (82) | 97.7 | *99.4 | 99.5 | 99.2 | 98.8 | 98.9 | *99.5 | |
| SARRH | 3.7% (77) | 58.2 | 89.8 | *94.1 | 74.0 | 75.0 | 78.7 | 94.4 | |
| SBRAD | 3.1% (64) | 93.5 | *96.5 | *96.6 | 95.8 | *95.4 | *96.4 | 96.7 | |
| SVARR | 0.7% (14) | 84.8 | *95.0 | 96.4 | *94.5 | 92.6 | *94.1 | *95.4 | |
| CD | LAF/LPF Blocks | 8.3% (179) | 90.4 | *98.0 | *97.8 | 96.6 | 96.4 | 96.4 | 98.2 |
| IRBB Block | 5.2% (112) | 85.2 | 97.6 | *97.9 | 95.9 | 96.3 | 95.7 | 98.1 | |
| CLBB Block | 2.5% (54) | 99.6 | *99.8 | *99.6 | 99.9 | *99.6 | *99.9 | *99.8 | |
| CRBB Block | 2.5% (54) | 98.7 | 99.8 | *99.8 | 99.7 | *99.7 | 99.7 | *99.8 | |
| AV Block | 3.8% (82) | 81.6 | 97.6 | *97.9 | 97.3 | *97.5 | 97.3 | 98.1 | |
| IVCD | 3.7% (79) | 73.0 | 78.5 | *78.9 | 77.5 | 76.9 | 77.6 | 80.8 | |
| ECG-HYP | LVH | 9.9% (214) | 92.9 | 95.3 | 94.8 | *94.9 | *94.7 | *94.7 | *95.3 |
| RVH | 0.6% (12) | *94.1 | *95.1 | 95.4 | *92.4 | *91.4 | *92.3 | *91.2 | |
| LAO/LAE | 1.9% (42) | 80.8 | 87.2 | *89.7 | 85.5 | *87.9 | 90.0 | *89.7 | |
| RAO/RAE | 0.5% (10) | 97.6 | *99.1 | *99.4 | 97.1 | 98.9 | *99.0 | 99.5 | |
| MI | Anterior MI | 14.2% (306) | 88.3 | *96.9 | 97.2 | 95.9 | 95.7 | 96.0 | *97.1 |
| Inferior MI | 15.2% (327) | 77.1 | *94.2 | *94.4 | *93.0 | *93.4 | *93.9 | 94.6 | |
| Lateral MI | 0.9% (20) | 72.7 | *91.0 | *90.7 | *88.5 | *91.4 | 91.6 | *91.4 | |
| ISC/STTC | Anterior ISC | 4.3% (93) | 86.6 | *93.8 | *93.8 | 91.0 | 91.4 | 92.3 | 94.1 |
| Inferior ISC | 1.9% (40) | 79.5 | 95.2 | 96.4 | 92.0 | 93.3 | 91.5 | *96.3 | |
| Non-specific ISC | 5.9% (128) | 94.3 | 96.9 | 96.1 | 95.7 | 95.5 | 96.0 | *96.7 | |
| STTC | 10.3% (222) | 84.0 | *89.6 | *89.8 | 87.5 | 87.8 | 87.5 | 90.0 | |
| Non-specific STC | 3.6% (77) | 77.9 | *86.1 | *85.6 | 84.1 | *85.5 | *85.3 | 87.2 | |
| SHD | Reduced LVEF | 17.7% (962) | 84.9 | 89.2 | 89.4 | 90.1 | *90.3 | *90.6 | 90.7 |
| Increased LVWT | 19.5% (1,061) | 73.6 | 77.5 | 76.9 | 77.4 | *77.8 | *78.0 | 78.4 | |
| Aortic Stenosis | 5.3% (286) | 75.9 | 83.5 | 83.5 | *84.4 | 83.6 | *84.7 | 85.4 | |
| Aortic Regurg. | 1.2% (66) | 71.7 | *74.9 | 71.6 | *76.7 | 76.9 | *76.8 | *75.0 | |
| Mitral Regurg. | 6.2% (337) | 77.7 | 82.4 | 82.0 | 82.9 | 83.3 | *84.0 | 84.2 | |
| Tricuspid Regurg. | 6.5% (353) | 77.0 | 82.1 | 82.7 | 83.8 | *84.8 | *84.9 | 85.0 | |
| Pulm. Regurg. | 0.4% (20) | 80.7 | *89.3 | *88.4 | 85.4 | *87.9 | *87.9 | 90.2 | |
| RV Sys. Dys. | 7.7% (419) | 84.4 | 88.2 | 88.4 | *88.8 | *88.8 | *89.3 | 89.5 | |
| Pericardial Eff. | 1.3% (69) | 69.6 | 75.2 | 76.0 | *75.9 | *77.5 | *78.6 | 79.1 | |
| Elevated PASP | 12.8% (699) | 72.1 | 78.0 | 77.5 | 78.7 | 80.3 | *80.0 | *80.3 | |
| Elevated TRV | 6.9% (375) | 69.9 | 76.1 | 75.9 | 77.8 | *79.2 | *79.1 | 80.1 | |
| MIMIC-EST | I21.0-3: STEMI | 1.0% (118) | 81.2 | 90.2 | *92.0 | 90.9 | *93.3 | *92.4 | 93.4 |
| I21.4: NSTEMI | 3.2% (396) | 72.6 | 82.5 | 82.3 | 82.2 | 83.0 | *83.9 | 85.1 | |
| I25.2: Prior MI | 7.1% (880) | 70.2 | 78.5 | 78.4 | *79.4 | *79.6 | *79.3 | 79.8 | |
| I50.2: Sys. HF | 6.1% (760) | 86.7 | 91.2 | 91.2 | *91.7 | *92.0 | *92.1 | 92.2 | |
| I44.1-2: 2/3 AVB | 1.0% (118) | 80.6 | *89.7 | *90.3 | *89.1 | *89.6 | 89.0 | 90.7 | |
| MIMIC-EXP | I25.1: AHD/CAD | 21.4% (2,641) | 72.4 | 79.2 | 79.4 | 79.7 | *80.5 | *80.7 | 81.1 |
| I50.3: Dia. HF | 7.8% (968) | 74.0 | 80.3 | 80.8 | 81.3 | 83.4 | *83.3 | *83.0 | |
| I45.81: LongQT | 0.4% (47) | 69.6 | *81.8 | *81.8 | *81.7 | 84.3 | *81.9 | *82.5 | |
| I30: Pericarditis | 0.3% (32) | 70.5 | *85.2 | *83.1 | *86.1 | 86.9 | *85.0 | *86.4 | |
| I42.0: DCM | 0.1% (17) | 84.4 | 90.9 | 88.3 | *92.5 | 90.6 | *92.4 | 94.0 | |
| I42.1-2: HCM | 0.3% (35) | *75.4 | *79.0 | *76.8 | *76.3 | *78.5 | *78.5 | 82.1 | |
| I42.8: OtherCM | 1.9% (233) | 84.7 | *87.5 | 87.2 | *87.4 | *87.5 | *87.8 | 88.4 | |
| E87.5: HyperK | 4.0% (490) | 68.1 | 76.9 | 77.8 | 77.7 | *80.2 | 80.5 | *80.3 | |
| E87.6: HypoK | 2.8% (348) | 63.3 | 73.1 | 72.8 | 72.3 | *73.7 | *73.9 | 75.2 | |
| E83.52: HyperCa | 0.6% (71) | 55.9 | *67.4 | *65.8 | 63.1 | *68.8 | 69.2 | *68.8 | |
| E83.51: HypoCa | 0.7% (83) | 69.4 | *76.0 | *75.5 | 74.2 | 75.4 | *78.0 | 79.0 | |
| E87.0: HyperNa | 2.1% (254) | 67.7 | 76.6 | 75.8 | 76.9 | 79.1 | *79.0 | *78.9 | |
| E87.1: HypoNa | 5.8% (720) | 63.0 | 68.0 | *68.9 | 68.5 | *69.6 | *69.6 | 70.0 | |
| D50-D64: Anemia | 23.7% (2,931) | 64.0 | 70.8 | 70.8 | 71.2 | *72.8 | 73.4 | *72.9 | |
| G47.33: OSA | 6.9% (848) | 63.2 | 70.4 | 70.5 | *71.3 | *71.4 | *72.0 | 72.2 | |
| I26: PE | 1.3% (163) | 67.7 | *73.4 | 72.5 | *73.0 | *73.1 | *73.6 | 75.1 | |
| I27.2: PHT | 1.4% (178) | 75.0 | 82.2 | 82.2 | 81.8 | 83.7 | *84.4 | 85.5 | |
| J44: COPD | 9.3% (1,150) | 65.5 | 72.8 | 73.9 | 74.1 | *75.4 | 75.7 | *75.7 | |
| J96.0: ARF | 2.0% (250) | 74.3 | 82.0 | 80.2 | 78.4 | *82.9 | 81.9 | 84.1 | |
| N18.1-3: CKD1-3 | 4.3% (533) | 63.8 | 69.4 | 71.1 | 71.0 | 72.2 | 74.2 | 72.5 | |
| N18.4-5: CKD4-5 | 1.5% (185) | 73.8 | 80.0 | 79.6 | 79.8 | *81.6 | 82.2 | *81.4 | |
| N18.6: ESKD | 4.3% (534) | 77.8 | 86.1 | 86.6 | 85.8 | *88.0 | *88.1 | 89.0 | |
| K70/K74: FCL | 3.7% (455) | 63.5 | 78.6 | 78.7 | 78.1 | *81.6 | *82.3 | 82.6 | |
| E05: HyperThy | 0.6% (69) | 46.8 | 47.7 | *54.5 | 56.7 | *55.5 | *55.7 | 50.2 | |
| E85 and I43: CA | 0.0% (6) | *87.3 | *82.9 | *89.3 | *72.9 | *83.1 | *87.8 | 90.9 | |
Linear probe evaluations. Random refers to a randomly initialized ECG encoder. Prevalence is the proportion of positives in the test set the metrics were computed on. The best model is bold; * marks models that are not significantly different from the best per a paired patient-cluster bootstrap significance test (see Methods). By default, only conditions with at least 10 positive and negative cases are shown. †Cardiac amyloidosis is excluded from the MIMIC-EXP aggregate score due to low prevalence but shown here given the emerging interest in its detection.
information relevant to structural and broader disease phenotypes. By jointly learning from these sources, MS-ECG-FM produces representations that are consistently useful across a wider range of downstream tasks than models trained primarily from ECG machine reports (Figure 2). In particular, MS-ECG-FM resolves the diagnostic blind-spots of prior methods, for example in the detection of structural heart disease (SHD) related conditions as assessed by the EchoNext-Mini dataset [16, 31]. These gains are achieved with fewer model parameters than D-BETA [9] and MELP [10] (38.28M parameters versus 63.20M and 62.55M, respectively, see Table A3), and substantially fewer pre-training ECGs than ECGFounder [11] (720k versus 10.7M). This suggests that supervision diversity may be an important axis of ECG-FM scaling alongside model and dataset size.
The source-specific experiments provide insight into why multi-source supervision improves ECG representations (Figure 3). Different forms of clinical documentation reflect the distinct questions that different diagnostic tests are designed to answer. Therefore, they provide complementary views of cardiovascular health. ECG reports primarily describe electrical abnormalities, whereas other clinical sources capture structural, functional, and broader systemic disease information that may not routinely appear in an ECG interpretation. Consistent with this, discharge summaries and chest X-ray reports provided particularly useful supervision on conditions that were less well supported by the ECG reports, including many structural heart disease endpoints, as well as exploratory endpoints such as electrolyte imbalances, pulmonary and metabolic conditions. The contribution of chest X-ray reports may reflect findings such as cardiomegaly, pulmonary edema, pneumonia or pleural effusion that provide indirect information about cardiac structure and pathophysiological status. Discharge summaries provide an even broader clinical view by synthesizing imaging, laboratory, and other diagnostic findings collected during an encounter. Echocardiography reports, despite their direct relevance to structural heart disease, provided weaker supervision in our experiments, which may partly reflect their substantially smaller sample size (81k notes from only 34k unique patients versus at least 331k notes from at least 102k patients for the other report types, see Table F1).
Another important insight from this work is that ECG machine reports (ECG-MR) still provide useful supervision during pre-training, despite their high rates of error and correction by cardiologists [12, 32]. While not as strong overall as the notes reviewed and edited by cardiologists (ECG-CR), they are the second strongest alignment source overall on these tasks (Figure 3), providing useful supervision for conventional ECG-based detection tasks (e.g., arrhythmias and conduction disturbances). Inferior and anterior MI detection is an area where a high rate of cardiologist modification of machine-generated interpretation notes has been reported [32]. Consistent with these findings, we observe that ECG-CR notes result in better classification performance than ECG-MR on inferior MI (94.4 versus 94.2 AUROC) and anterior MI (97.2 versus 96.9 AUROC, see Table 3). However, these improvements are slight. We also see at the diagnostic group level that the two are tied on ischemia and ST/T changes (ISC/STTC, 92.3) and voltage criteria (VC, 91.7) conditions, and that ECG-MR is slightly stronger on structural heart disease (SHD, 81.5 versus 81.1) and exploratory MIMIC outcomes (MIMIC-EXP, 76.5 versus 76.4). Thus, while cardiologist-authored or reviewed ECG reports should be used where available, using ECG machine reports still delivers pre-training benefits, and our findings suggest they should be used concurrently. Future machine learning research could investigate why pre-training that aligns to noisy text sources still produces useful ECG representations.
The good performance demonstrated on conditions that are not typically detected by human ECG readers is also encouraging for the use of AI-enhanced ECG as a digital phenotyping tool [18]. We see that MS-ECG-FM is broadly capable of detecting echocardiographically verified structural heart disease endpoints: not just left ventricular systolic dysfunction (tested here as a binary left ventricular ejection fraction label), but also right-sided heart failure, valvular diseases (including aortic stenosis and regurgitation at all major valves), and pulmonary circulation [33]. MS-ECG-FM's detection performance compares favorably to the official EchoNext-Mini baseline on these same conditions, where the baseline used only supervised learning on the downstream dataset (i.e., a pre-trained foundation model was not used to provide ECG representations) [31]. Furthermore, we observed gains over a randomly initialized encoder in the detection of broad exploratory disease endpoints tested using ICD codes from the medical record (see MIMIC-EXP group in Table 3). These include diastolic heart failure, dilated and other forms of cardiomyopathy (but not hypertrophic cardiomyopathy per ICD10-CM I42.1-2), obstructive sleep apnea, and multiple pulmonary, metabolic, and electrolyte imbalance codes. This corroborates the emerging evidence that ECG can give indications of the presence of even more conditions (as summarized in Table B1). These positive findings also hold for many conditions in reduced-lead configurations (see Tables D1 and D2) which could facilitate preventative ECG-based screening in ambulatory settings (e.g., using wearables).
A related implication is that using the rich clinical supervision available around hospital 12-lead ECGs may be a useful model building strategy even when downstream deployment involves reduced-lead recordings. Clinical 12-lead ECGs are often collected within well-characterized encounters that include imaging, laboratory measurements, and clinical notes, whereas similarly rich supervision is difficult to obtain for ambulatory ECG data. MS-ECG-FM performs well on many conditions when transferring its representations trained on 12-lead ECG data to reduced-lead configurations (Tables 2, D1 and D2). These findings suggest a practical strategy in which representations are first learned from well-characterized clinical 12-lead ECGs and then subsequently adapted to reduced-lead settings. However, because our reduced-lead evaluations were derived from clinical 12-lead recordings rather than natively acquired wearable or ambulatory ECGs, further validation in real-world reduced-lead datasets is needed.
There are several limitations to this work. First, the MIMIC-IV-ECG pre-training distribution is skewed towards an older population (median age of 58 with interquartile range of 43–72) and a sicker population (inpatient or emergency room visits) from a single health system. Therefore, some conditions and states may be under- or over-represented in the training data which could impact performance when the model is deployed on different populations. Relatedly, while we evaluated on a broad set of downstream tasks across multiple diagnostic categories, some low prevalence but clinically acute conditions are not adequately represented in the available evaluation datasets. Furthermore, while we evaluated on several out-of-distribution ECG datasets to test the generalization capabilities of MS-ECG-FM to different hospital systems, performance in new systems may still be attenuated depending on how stark the distribution shift is (e.g., if there are large differences in ECG collection or condition diagnosis protocols). Finally, foundation models are not inherently interpretable, meaning they are not the full solution to the adoption gap.
Beyond addressing these limitations, future work can also consider alternative objectives for multi-source alignment and alignment to other clinical note types (e.g., coronary angiogram reports). The evaluation of MS-ECG-FM on real-world ambulatory reduced-lead datasets would also be valuable. Furthermore, ECG question answering (QA) systems are in the early stages of development with the goal of providing an interactive natural language interface to query what phenomena are present in an ECG waveform [34]. These systems are built using a pre-trained ECG encoder and it would be interesting if MS-ECG-FM is able to support more accurate or broader QA given the rich clinical note sources that were used to pre-train it.
In conclusion, we introduce MS-ECG-FM — a new ECG foundation model that achieves state-of-the-art detection performance on the full spectrum of diseases where there is strong or emerging evidence of ECG detection capabilities. The results show that the clinical information used during pre-training is an important determinant of what an ECG foundation model learns. We also provide insights on which clinical notes are most informative for the detection of different conditions. Finally, we propose an extended evaluation framework for ECG-FMs, which provides clearer summaries of model capabilities, which in turn can be used to prioritize model improvements. We hope this work supports the research community to build stronger ECG-FMs and to evaluate them more thoroughly, so that the next generation can deliver tangible benefits in real-world clinical settings. Hospital systems already store multi-modal notes at far greater scale than we had access to for this work: using these to pre-train a larger MS-ECG-FM could improve performance even beyond the gains shown here.
4 Methods
4.1 MS-ECG-FM data, design and pre-training protocol
Pre-training with MIMIC-IV ECG and clinical report dataset
We use the publicly available MIMIC-IV-ECG dataset to pre-train MS-ECG-FM [1]. This dataset is the largest publicly available ECG dataset with paired clinical notes and it is also used for pre-training by several state-of-the-art ECG foundation models [8–10], allowing for controlled comparison of MS-ECG-FM. MIMIC-IV-ECG provides 800,035 standard 10 s 12-lead ECG recordings from 161,352 patients. We use them at the native 500 Hz sampling rate and the only pre-processing step is to replace missing samples with zero. The demographics of the cohort are median age of 58 (interquartile range: 43–72) and biological sex of 51.8% female, 47.1% male and 1.1% unknown.
MIMIC-IV-ECG provides 800,034 ECG machine interpretation reports after cleaning (ECG-MR). It also contains several types of clinician-authored interpretation reports from ECG recordings (ECG-CR; 490,780), ECHO scans (ECHO-CR; 81,821) and chest X-rays (ChXR-RR; 715,465), as well as the overall discharge summary for a hospital stay (DS; 331,793). More details on each report type and how we preprocess them are in Supplementary Note F. For pre-training, we pair reports to ECG recordings with report-dependent logic: ECG reports have a key to ECG recordings; discharge summaries can be linked to all ECG recordings within a hospital visit using a visit identifier; ECHO and ChXR reports are linked by taking the report closest in time to the ECG recording within a 7-day window.
ECG waveform encoder architecture
Three ECG-specific considerations motivated the design of the transformer-based waveform encoder. First, given ECG leads represent cardiac electrical activity along different axes, and meaningful phenomena are frequently lead or location-specific (e.g., myocardial infarction), lead-specific tokens are created. Second, given well-characterized 12-lead ECG data is more abundant for pre-training, but deployment contexts (e.g., wearable) may only have access to reduced-lead subsets (e.g., Lead-I only), the architecture was explicitly designed to support easy transfer to arbitrary reduced-lead subsets. Third, given fine-grained, millisecond-scale local morphology (e.g., QRS widths and ST deviations) is important for ECG interpretation, depth was added to the ECG tokenizer.
The ECG waveform is first tokenized by a deep, lead-level tokenizer with multiple convolutional layers loosely inspired by Hassani et al. [35], where the depth is included to promote learning richer millisecond-scale features. While lead-level tokens are produced, the tokenizer weights are shared between leads. Given a 10s 12-lead ECG recording and a tokenizer patch size of samples (0.5s at 500 Hz), the tokenizer produces tokens. The tokens are then passed through multiple transformer layers to learn longer-range interactions across time and leads. Temporal order is added using 1D sinusoidal positional encoding, while lead identity is represented using learnable lead embeddings similar to Na et al. [6]. During contrastive pre-training, the final ECG representation is obtained by global average pooling (GAP) over tokens. Downstream GAP is also used for the linear probe evaluations. Further details on the architecture are in Supplementary Note G.1.
Importantly, as several important ECG diagnoses also depend on absolute signal amplitude rather than waveform morphology alone, the ECG waveform is not normalized in MS-ECG-FM. A clear example is left ventricular hypertrophy (LVH), which is identified using voltage criteria — e.g., Sokolow-Lyon or Cornell — that sum R- and S-wave amplitudes in specified leads and compare them against a fixed voltage threshold. This information is easily destroyed by many normalization schemes: for example, per-lead or per-recording normalization (e.g., z-scoring, min-max scaling) rescales each waveform by its own statistic, discarding the scale that voltage criteria depend on. Thus, MS-ECG-FM does not normalize the input waveform. Furthermore, to balance training stability (e.g., vanishing gradients) while preserving amplitude information, batch normalization is used after each convolution in the tokenizer [36]. A per-sample normalization in the tokenizer (e.g., layer normalization [37]) would not have this property. Table E1 ablates several of these components.
Contrastive multi-source alignment objective
MS-ECG-FM is pre-trained by contrastive alignment to multiple types of clinical report. It uses a contrastive objective based on the InfoNCE loss and forms multimodal contrastive pairs composed of the ECG waveform and a clinical report [13, 38]. For each instance in any given batch, the report that the waveform is paired with is stochastically chosen from the set of available reports for that instance. The stochastic selection of a paired report was designed as a form of regularization to promote the learning of a broader feature set. The reports are sparsely available with only an arbitrary subset available for a given ECG. Furthermore, some report types will share more information with the paired ECG than others: ECG machine interpretations are generated exclusively from and describe only the ECG and are thus tightly coupled, while chest X-rays or discharge summaries contain diverse information of which only a fraction may be shared with the ECG. Therefore, if all report types are available simultaneously, there is a risk that an ECG encoder only learns to use simpler features to solve the instance-wise discrimination objective. By stochastically selecting reports in each batch, we posit that the model is incentivized to learn a broader set of discriminative features to improve its downstream performance, especially on more difficult tasks where discriminative ECG waveform features may be more subtle (e.g., the MIMIC-EXP group). Table E2 reports an ablation of alternative multi-source alignment objectives with empirical findings to support this design.
Formally, let be the set of all report types and denote the subset of report types available for instance , with the text of report type . Each time the instance is sampled during pre-training, a single report type is drawn uniformly at random from those available, . The ECG waveform is encoded by the backbone and projected by an ECG projector head . The sampled report is encoded by a frozen text encoder (see next section) and projected by a text projector head . Mini-batches are stochastically sampled with and the multi-source (ms) contrastive objective is
where denotes cosine similarity and the temperature, , is a learnable parameter as in [38].
Alignment to pre-computed text embeddings to stabilize and simplify computation
A key feature of MS-ECG-FM's contrastive learning formulation is its use of pre-computed text embeddings for contrastive alignment, rather than jointly learning a text encoder with the ECG encoder during pre-training as in contemporary methods that also use the MIMIC-IV-ECG reports corpus [8–10]. By default, MedGemma-27B is used as the text encoder for all report modalities [39], where report-level text embeddings are extracted in an offline pre-processing step. Details on MedGemma-27B usage are in Supplementary Note G.
We motivate the use of frozen text embeddings to train MS-ECG-FM as follows. First, clinical text encoders such as MedGemma-27B are trained on orders of magnitude more data with broader distributional coverage than the MIMIC-IV reports corpus. Prior work in the image-text domain has shown the benefits of this approach [40], finding that locking a strong pre-trained encoder in multimodal contrastive pre-training benefits downstream accuracy (especially out-of-distribution). Second, locking the text encoder freezes the disease semantics already encoded in the reports. Given the diseases are described explicitly in the text and MedGemma-27B is already effective at modeling medical language, the pre-training problem reduces to aligning the ECG encoder to fixed text representations, avoiding instability or catastrophic forgetting that could arise from jointly updating both encoders. Finally, there are significant computational benefits to computing text embeddings offline. Fewer activations, parameters and gradients need to be held in memory for text tokens while pre-training the ECG encoder, reducing memory footprint and runtime. These benefits are amplified when multiple long report types must be embedded simultaneously. Table F1 summarizes the median and max token length by report type. Notably, ECHO, chest X-ray and discharge reports would cause significant burden in an online text encoder setup, as they can reach sizes of 1,128, 761 and 15,039 tokens in MIMIC-IV, respectively.
Pre-training recipe
MS-ECG-FM is pre-trained on only the stratified train folds (i.e., folds 0-17) proposed in MIMIC-IV-ECG-Ext-ICD, and uses the validation fold (i.e., fold 18) for model selection [29, 41]. The test fold (i.e., fold 19) is fully held out from pre-training. An unsupervised effective rank metric (RankMe) is computed on the backbone embeddings of MIMIC-IV validation set ECGs and is used to select a pre-trained encoder checkpoint for downstream evaluation [42]. This quantifies the entropy of the singular value distribution of the embeddings – a measure of their effective dimensionality – and has been found to be a useful proxy for downstream performance. In particular, it is useful for identifying when representations collapse to a degenerate form [42]. Importantly, this metric only requires access to the in-distribution pre-training dataset. This differs from recent works that use 100% of MIMIC-IV ECGs for pre-training, and then select a pre-trained model using zero-shot performance on the validation sets of the out-of-distribution (OOD) datasets [8, 10]. We chose our approach as it provides a stronger generalization test: no part of the pre-training process is influenced by OOD data.
MS-ECG-FM is pre-trained for 75,000 optimization steps. Random lead masking (RLM) [43] and a stochastic time-shift are used for augmentation, with the former introduced to promote stronger reduced-lead performance [43]. Full pre-training settings are reported in Supplementary Note G.4. The single-source methods presented in Figure 3 and Table 3 use the same architecture and settings as MS-ECG-FM; their only distinction is that they are aligned to just one report type during pre-training, enabling a controlled comparison on the utility of different report types for different downstream condition detection tasks.
4.2 Extended evaluation of ECG foundation models
Motivated by the goal of developing a more universal ECG-FM — where universality is defined by the utility of its representations in broad downstream tasks — we carefully examined existing ECG-FM benchmarking practices and propose extensions to provide a clearer and more comprehensive assessment of the capabilities of ECG-FM representations.
Downstream evaluation protocol and metrics for evaluation
We use supervised linear probing to evaluate MS-ECG-FM and baseline ECG-FMs. This refers to training a linear classifier on frozen ECG-FM backbone representations (or embeddings). Linear probing is the leading paradigm when the goal is to compare the quality of representations between ECG-FMs with different backbone architectures because it is simple to optimize a single-layer linear classifier on frozen embeddings in a way that is comparable across models. By contrast, fine-tuning foundation models can be challenging given their size and differing architectures: the optimal set of fine-tuning hyperparameters are not known a priori, and it can be compute-intensive to search for the optimal set for each model. We use the standard linear probe settings from the ECG-FM literature, including the same dataset split files to partition instances into training, validation and test sets, and report them in Table H1 [10]. To make evaluation exactly comparable between ECG-FMs, as well as to enable paired statistical tests, we rerun evaluation on the baseline models using their publicly shared pre-trained weights through a seeded pipeline. The area under the receiver operating characteristic curve (AUROC) is the primary evaluation metric. All labels are binary. When aggregating performance across tasks we macro-average the AUROC. We also report the area under the precision-recall curve (AUPRC) for performance at the level of individual tasks in Supplementary Note D.
Extended downstream datasets containing the full range of conditions ECG can detect
We use standard ECG benchmark datasets [8–10]. Furthermore, we incorporate two new benchmark datasets that cover a broader set of diseases and conditions not represented in existing benchmarks but for which there is at least exploratory evidence that ECG can detect. Datasets are marked out-of-distribution (OOD) or in-distribution (ID) relative to the MIMIC-IV-ECG pre-training data. The OOD datasets provide a test of how well the ECG-FMs generalize to different hospital systems, while the ID dataset facilitates testing on broader disease categories. The coverage of conditions by dataset is in Table C3.
- PTB-XL (OOD): 21,799 12-lead ECGs annotated with statements across 71 diagnostic, rhythm and morphology classes, where the test set was reviewed and
Results on the same benchmarks reported by the authors are summarized in Table A2, with scores broadly aligned with those we generate when re-running evaluation in Table 1.
In the ID dataset, patients are disjoint from the pre-training and training patients.
modified by cardiologists [30]. PTB-XL is often used as a benchmark via four multi-label classification tasks — super(-diagnostic), sub(-diagnostic), rhythm and form — where the macro-averaged AUROC across labels is reported.
-
CPSC2018 (OOD): is also a commonly used benchmark dataset [44]. It contains 6,877 12-lead ECGs with labels for rhythm, conduction and morphology abnormalities.
-
CSN (OOD): is another commonly used benchmark dataset [45, 46]. It contains 23,026 12-lead ECGs with labels for rhythm, conduction and morphology abnormalities, as well as a small number of labels from other conditions (e.g., myocardial infarctions).
-
EchoNext-Mini (OOD): 100,000 12-lead ECGs paired with structural heart disease (SHD) labels from paired echocardiographic recordings [31, 47]. This enables extensive evaluation on SHD conditions — an area where there is promising clinical evidence on the utility of ECG for detection but which was under-supported by contemporary ML benchmarks [17, 18]. Labels include left ventricular ejection fractions, right ventricular systolic dysfunction, aortic stenosis and valvular regurgitation severities, and other metrics quantifying heart function or morphology. Consistent with the original work [31, 47], we use the released patient-disjoint splits, in which the validation and test sets contain only the most recent ECG per patient, and the training set contains all ECGs from each patient.
-
MIMIC-IV-ECG-Ext-ICD (ID): 468,005 ECGs from MIMIC-IV linked to hospital discharge ICD10-CM codes [29]. We parse the dataset to create binary ICD10 labels. We include core ischemic and structural heart disease labels, as well as important conditions where there is at least exploratory clinical evidence of detection using ECG (see Table B1) but which are not covered by the other datasets (see Table C3). For example, we include non-ST elevation myocardial infarction (NSTEMI) which is highly acute and important to diagnose and treat expeditiously [48]. These labels are at the visit-level, and we use only the first ECG per visit in the evaluation set.
More informative evaluation of ECG foundation models using diagnostic task groupings and performance profiles
The common practice in the ECG-FM literature is to report the macro-averaged AUROC across all labels in the dataset for datasets 1-3 (with PTB-XL at the superdiagnostic, sub-diagnostic, rhythm and form levels). We also report this table given its status as the de facto benchmark view for ECG-FM comparison [8–10], adding EchoNext-Mini as an additional dataset. However, this method of aggregation is crude as: (i) it obscures valuable information about the strengths and weaknesses of ECG-FMs by condition type as it averages over unrelated conditions that may manifest very differently in the ECG signal; and, (ii) only reporting the mean across many labels obscures the relative distribution of performance between models (e.g., a method may have a higher mean score because it is consistently better than another method on many labels or because it scores very highly on a few isolated labels). Thus, we
Unlabeled ECGs are excluded.
propose two alternative and complementary ways to report and compare ECG-FM performance which provide greater insight to clinical and technical readers.
First, we use datasets 1, 4 and 5 to group labels into clinically intuitive diagnostic categories — e.g., all arrhythmias, myocardial infarctions, structural heart disease conditions. See Table C1 for full documentation on these groups. This facilitates the identification of blind-spots in ECG-FMs by logical diagnostic groupings.
Second, we propose the visualization of performance profiles for ECG-FMs. Pioneered first in the optimization [26] and later in the reinforcement learning literature [27], performance profiles are a complementary cumulative distribution function (or tail distribution) of a method's performance over a set of tasks. In the context of ECG-FMs, we propose that each task is a different diagnostic label and the performance metric is the AUROC. Thus, performance profiles allow us to concisely visualize differences in the performance distributions of different ECG-FMs, in a way that is robust to outliers. Formally, for each ECG-FM, its performance profile is defined by
where there are different labels, is the AUROC score for label , is the indicator function, and is an arbitrary score value, where . A clear benefit of performance profiles is that they give a notion of universality. If the curve for one model is always above that of another model, it is said to stochastically dominate over the set of tasks, and thus it is a universally better model. Further details on performance profiles, including how we compute the confidence bands, are in Supplementary Note H.3.
Formally testing differences in foundation model performance
Finally, to address another limitation in contemporary ECG-FM benchmarking practices, we formally test whether differences in performance between models are statistically significant. We use a paired, patient-level (cluster) bootstrap on the test set of each evaluation dataset, where bootstrap resamples are created by resampling patients with replacement (some patients contribute more than one ECG). The resampled patient indices within each dataset are shared across all labels and all models to enable paired comparisons. We draw bootstrap resamples. Each label and model therefore has a bootstrap distribution of replicates. To compare two models on a label, we difference their scores within each resample and conclude a significant difference at the level if the 95% percentile interval of these paired differences excludes zero. Aggregate comparisons — which we make for AUROC only — apply the same test after first macro-averaging AUROC across labels within each resample.
We select these datasets due to the higher quality of their labels, which are either reviewed by clinicians or derived from reports written by clinicians.
Occasionally, a resample is degenerate because one of the labels has no positive examples. This reduces the effective but does not invalidate the inference. See Supplementary Note H.2.
To avoid visual overload when presenting the results of the significance tests, we first mark the strongest model with a special character or in bold. We then highlight methods that are not significantly different from the highest performing method with a distinct special character. Further details on our testing procedure are in Supplementary Note H.2.
Supplementary information. We provide supplementary information in Supplementary Notes A to H.
Data availability. No proprietary data was used in this work, and no new datasets were generated by the authors. All data used during pre-training and evaluation are available from the curators of these datasets to researchers who complete the required human subjects research training and sign the data use agreement for each dataset.
Code availability. The code used to run experiments can be made available to reviewers on request. We would like to make the code and weights open to researchers at the time of publication. This is pending internal approvals and we should be able to provide more clarity about this during the review process as progress is made on the internal release discussions.
Acknowledgements. The authors wish to thank the following individuals for thoughtful discussion and guidance in support of this work: Achille Nazaret and Matthew Jörke.
Author contributions. R.L., I.C., K.V., A.C.M. and J.F. conceived the initial study. R.L. led the data processing and algorithm development work, with support from I.C., K.V., A.C.M., J.F., A.M. and S.A. All authors including K.J.R., F.M. and G.S. made substantial conceptual and intellectual contributions to the research. R.L. wrote the initial manuscript, which all authors reviewed.
Competing interests. All authors were employed by Apple, Inc. and/or owned Apple, Inc. stock during the preparation of this work. J.F. is currently an employee of Ouraring Inc. His contributions to this work, as well as the statements and opinions expressed, are solely the responsibility of the author and do not represent the official views of Ouraring Inc. J.F. was an employee at Apple Inc. at the time of his contribution to this work, which predates his transition to Ouraring Inc.
Supplementary Note A Review of ECG foundation models
A.1 Contemporary ECG foundation model methods
Table A1 summarizes contemporary ECG foundation models, providing relevant details about their implementation and usage. Several use the same MIMIC-IV-ECG data that our method is trained on, while others are trained on other ECG datasets. Note: none of those using the MIMIC-IV-ECG data make use of the MIMIC-IV clinical notes during pre-training beyond the ECG machine interpretation reports.
Table A1 Review of prominent electrocardiogram foundation models from 2024-2025. indicates models chosen for our experiments due to their strong benchmark performance. indicates MIMIC-IV-ECG was used in pre-training pooled with other datasets.
| Model | Pre-training objective(s) | # Pretrain samples | MIMIC-IV data usage | Available Code Weights | |||
|---|---|---|---|---|---|---|---|
| ECG waveforms | Machine reports | Clinical notes | |||||
| ST-MEM [6] | Tokenizes 12-lead ECG recordings at spatio-temporal level (i.e., patches within individual leads). Then uses a modified masked-autoencoder (MAE) reconstruction objective. | 345,779 | ✕ | ✕ | ✕ | ✓ | ✓ |
| MERL [8] | Multimodal contrastive ECG waveform & machine report objective (InfoNCE). Auxiliary unimodal contrastive ECG w/latent augmentation (InfoNCE). | 800,035 | ✓ | ✓ | ✕ | ✓ | ✓ |
| KED [7] | Multimodal contrastive ECG waveform & LLM-augmented machine report objective, with concurrent use of labels from machine report. | 800,035 | ✓ | ✓ | ✕ | ✓ | ✓ |
| ECG-JEPA [49] | Uses Joint-Embedding Predictive Architecture (JEPA) self-distillation objective where masked latent representations of the ECG from the teacher network are predicted by the student network. | 174,140 | ✕ | ✕ | ✕ | ✓ | ✓ |
| ECG Founder [11] | Supervised multi-label classification with labels sourced from an ECG-machine analysis program. | 10,771,552 | ✕ | ✕ | ✕ | ✓ | ✓ |
| ECG-FM [50] | Contrastive objective that combines wav2vec 2.0 quantized contrastive loss and diversity loss with CMSC from CLOCS. | 873,706 | ✕ | ✕ | ✓ | ✓ | |
| HuBERT-ECG [51] | Follows the HuBERT approach to SSL where latent representations are assigned to clusters (computed offline at each iteration) and then cluster IDs are predicted from masked frames and optimized by cross-entropy loss. | 9,100,000 | ✕ | ✕ | ✓ | ✓ | |
| HeartLang [52] | A QRS-tokenizer is used, which detects the locations of QRS complexes and then segments the ECG into heartbeat-centered patches by lead. Two objectives are used to train the model: a vector-quantized beat-level reconstruction task and a masked ECG sentence-level prediction task. | 800,035 | ✓ | ✕ | ✕ | ✓ | ✓ |
| D-BETA [9] | Hybrid multimodal contrastive ECG waveform & machine report objective (SigLIP), and a masked autoencoder loss on ECG and text encoders. | 800,035 | ✓ | ✓ | ✕ | ✓ | ✓ |
| MELP [10] | Captioning multimodal loss at token-level and multimodal contrastive ECG waveform and machine report objectives at the beat and rhythm-level. | 800,035 | ✓ | ✓ | ✕ | ✓ | ✓ |
A.2 Reported foundation model benchmark results in original literature
We reran evaluation on ECG-FM baselines for our main results in Table 1 and the other main paper figures to ensure (i) the exact same evaluation protocol is used for each method, and (ii) paired bootstrap tests can be performed (which require access to instance-level predictions).
For completeness, we report performance reported by the authors of these methods on the same benchmarks in Table A2. These are derived from the following sources:
• ST-MEM from [6]
• HeartLang from Table 1 in [52]
• MERL from Table 2 in [8]
• D-BETA from Table 2 in [9]
• MELP from Table 2 in [10]
• ECGFounder from Table S13 in [11] (ArXiv [v4] Mon, 4 Aug 2025 10:31:10 UTC (7,335 KB))
Note: we report a systematic improvement in accuracy for all methods on the PTBXL-Sub dataset because we fixed an error in the benchmarking files and code used by most prior work (e.g., [8–10]). Specifically, we found that the column order for 3 codes — AVB, RAO/RAE, ISC — was different in the train split file from the order in the validation and test split files, and the columns were accessed by index in the evaluation scripts. By changing the access pattern to look up labels by name, the performance on these three codes is substantially improved, as now the label definition is consistent between training and evaluation.
Table A2 Linear probe performance of contemporary ECG foundation models as reported in their original papers. Results are shown for different percentages of available training labels (1%, 10%, 100%).
| Methods | PTBXL-Super | PTBXL-Sub | PTBXL-Form | PTBXL-Rhythm | CPSC2018 | CSN | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | |
| ST-MEM [6] | 61.12 | 66.87 | 71.36 | 54.12 | 57.86 | 63.59 | 55.71 | 59.99 | 66.07 | 51.12 | 65.44 | 74.85 | 56.69 | 63.32 | 70.39 | 59.77 | 66.87 | 71.36 |
| HeartLang [52] | 78.94 | 85.59 | 87.52 | 64.68 | 79.34 | 88.91 | 58.70 | 63.99 | 80.23 | 62.08 | 76.22 | 90.34 | 60.44 | 66.26 | 77.87 | 57.94 | 68.93 | 82.49 |
| MERL [8] | 82.39 | 86.27 | 88.67 | 64.90 | 80.56 | 84.72 | 58.26 | 72.43 | 79.65 | 53.33 | 82.88 | 88.34 | 70.33 | 85.32 | 90.57 | 66.60 | 82.74 | 87.95 |
| D-BETA [9] | 83.15 | 88.36 | 90.11 | 77.74 | 82.92 | 85.15 | 70.10 | 78.91 | 83.98 | 86.61 | 92.83 | 96.71 | 85.46 | 91.35 | 94.92 | 80.04 | 87.36 | 90.71 |
| MELP [10] | 85.82 | 87.61 | 87.87 | 79.22 | 84.40 | 87.46 | 63.41 | 76.71 | 83.30 | 88.83 | 94.65 | 96.91 | 88.54 | 91.75 | 94.32 | 78.25 | 84.83 | 90.17 |
| ECGFounder [11] | 79.65 | 87.34 | 91.20 | 75.72 | 81.73 | 88.03 | 61.69 | 68.76 | 82.52 | 70.05 | 88.10 | 93.61 | 64.21 | 79.65 | 83.18 | 64.68 | 75.89 | 84.35 |
Evaluation metric is AUROC: area under the receiver operating characteristic curve.
A.3 Comparison of ECG foundation model capacity
Table A3 reports the number of ECG encoder parameters used to produce the frozen embeddings in our linear-probe evaluations. Counts include only the modules on that forward path: text encoders, unused self-supervised heads (e.g., vector quantizers), and classification heads are excluded. For transformer-based encoders we also report the tokenizer versus transformer split; MELP and D-BETA include a small additional pooling or projection module at probe time.
Table A3 Number of ECG encoder parameters used to produce frozen linear-probe embeddings. Text encoders and unused pre-training or classification heads are excluded. For transformer-based models, tokenizer and transformer counts are listed below the total; MELP and D-BETA additionally use a pooling or projection module at probe time. MS-ECG-FM's default backbone is underlined.
| ECG-FM | Number of ECG encoder parameters |
|---|---|
| Baselines | |
| MERL [8] | 5.47M tokenizer: 0.12M transformer: 5.35M |
| D-BETA [9] | 63.20M tokenizer: 0.60M transformer: 61.42M class embedding, projection, and pooler: 1.18M |
| MELP [10] | 62.55M tokenizer: 0.60M transformer: 61.42M attentional pooler: 0.53M |
| ECGFounder [11] | 30.67M |
| MS-ECG-FM ECGViT | |
| Tiny | 5.40M tokenizer: 0.06M transformer: 5.34M |
| Small | 21.55M tokenizer: 0.25M transformer: 21.30M |
| Middle | 38.28M tokenizer: 0.45M transformer: 37.83M |
| Base | 86.06M tokenizer: 1.01M transformer: 85.05M |
Supplementary Note B Review of clinical ECG machine learning work
Table B1 presents how relevant cardiac and non-cardiac conditions and outcomes are diagnosed in clinical practice. Furthermore, it summarizes the weight of evidence for the use of ECG in detecting each condition. From this recent evidence, it is clear that ECG has broader utility – it can detect many more conditions than those it is used to diagnose in current clinical practice.
Table B1 Summary of diagnostic categories and clinical outcomes and corresponding evidence for their detection or prediction using ECG. Evidence strength is indicated using symbols: strong evidence, promising evidence, exploratory evidence.
| Category | Diagnosis in clinical practice | ECG detection evidence | Evidence strength |
|---|---|---|---|
| Arrhythmias | |||
| Atrial fibrillation (AFib) | Diagnosed from standard ECG (12-lead, 10s) or ambulatory ECG (e.g., with Holter monitors) | [53, 54] | ★ |
| Silent or future atrial fibrillation | AFib is paroxysmal / episodic. No prototypical signatures in the ECG when AFib is not active. However, machine learning can be used to screen for AFib (future or latent) from normal sinus rhythm ECGs. | [55, 56] | ★ |
| Other supraventricular and ventricular arrhythmias | Diagnosed from standard ECG (12-lead, 10s) or ambulatory ECG (e.g., with Holter monitors) | [53, 54] | ★ |
| Conduction Disturbances | ECG-based diagnosis of atrioventricular and intraventricular conduction delays / blocks | [53, 54] | ★ |
| Ischemic Heart Disease | |||
| STE-ACS & STEMI | ECG ST-elevations with confirmatory biomarkers (e.g., troponins). Coronary angiography is the gold-standard. | [57, 58] | ★ |
| NSTE-ACS & NSTEMI | Troponin elevation with supportive ECG and clinical findings. Coronary angiography is the gold-standard. | [48] | ▲ |
| Chronic coronary syndrome (atherosclerosis, etc.) | Stress testing or coronary imaging (e.g., angiography) | [59-61] | ○ |
| Structural Heart Disease | |||
| (Systolic) Heart failure with reduced ejection fraction (HFrEF) | Echocardiography demonstrating reduced left ventricular ejection fraction | [62, 63] | ★ |
| (Diastolic) Heart failure with preserved ejection fraction (HFpEF) | Echocardiography with preserved ejection fraction and evidence of diastolic dysfunction or elevated filling pressures | [33, 64] | ○ |
| Valvular heart disease | Echocardiography with Doppler flow assessment | [17, 33, 65] | ▲ |
| Left ventricular hypertrophy (LVH) | Echocardiography | [66] | ▲ |
| Cardiomyopathies: dilated, hypertrophic, arrhythmogenic right ventricular (ARVC) | Cardiac imaging (ECHO or MRI), genetic testing, and clinical evaluation | [18, 67-69] | ○ |
| Other SHD - e.g., right ventricular dysfunction | Cardiac imaging (ECHO or MRI) | [33, 70] | ○ |
| Other | |||
| Long QT syndrome (LQTS) | ECG, clinical and family history, exclusion of secondary causes, genetic testing | [71] | ▲ |
| Hyperkalemia | Blood chemistry testing (serum potassium) | [20] | ★ |
| Other electrolyte imbalances e.g., calcium and sodium | Blood chemistry testing | [72] | ○ |
| Cardiac amyloidosis | Cardiac imaging (ECHO or MRI) and biopsy | [22, 73] | ○ |
| Acute pericarditis | ECG, ECHO and clinical examination | [74] | ○ |
| Obstructive sleep apnea (OSA) | Polysomnography | [24] | ○ |
| Anemia | Blood hemoglobin measurement | [75] | ○ |
| Chronic kidney disease (CKD) | Estimated glomerular filtration rate from lab tests | [21] | ○ |
| Pulmonary conditions (e.g., pulmonary embolism, hypertension, etc.) | Various chest imaging (e.g., X-Ray, CT), biomarkers, and clinical assessment | [17, 22, 23] | ○ |
| Liver disease | Lab testing and abdominal imaging | [76] | ○ |
| Hyperthyroidism | Thyroid function tests | [77] | ○ |
Supplementary Note C More information on downstream datasets
C.1 Grouping of labels into logical diagnostic groups
Table C1 lists the membership of the diagnosis groups we use in Figure 2 and Figure 3.
C.2 Glossary of condition codes
Table C2 defines the condition codes used in Tables 3 and D1 to D3.
C.3 Disease coverage by dataset
Table C3 summarizes the disease coverage of the different downstream datasets used for evaluation.
Table C1 Diagnosis groups used for aggregated evaluation. Each group pools related binary labels from the indicated dataset sources. Only labels with adequate prevalence are included in the aggregate groups (at least 10 positive and negative class instances). * Only for comparison between internal models and ECGFounder as other external baselines pre-train on all of the MIMIC-IV-ECG data.
| # | Diagnosis group | Dataset source and labels |
|---|---|---|
| 1 | All: all diagnostic labels | External model comparison: all labels from datasets (1) PTB-XL, (2) CPSC2018, (3) CSN, (4) EchoNext-MiniInternal model comparison: all labels from (1) PTB-XL, (2) CPSC2018, (3) CSN, (4) EchoNext-Mini, (5) MIMIC-IV-ECG-Ext-ICD |
| 2 | ARR: arrhythmias | PTB-XL Rhythm: atrial fibrillation (AFIB), sinus tachycardia (STACH), sinus arrhythmia (SARRH), sinus bradycardia (SBRAD), supraventricular arrhythmia (SVARR) |
| 3 | CD: conduction disturbances | PTB-XL Sub: left anterior/left posterior fascicular block (LAFB/LPFB), incomplete right bundle branch block (IRBBB), complete left bundle branch block (CLBBB), complete right bundle branch block (CRBBB), AV block (AVB), non-specific intraventricular conduction disturbance (block) (IVCD) |
| 4 | ECG-HYP: hypertrophy detected from ECG | PTB-XL Sub: left ventricular hypertrophy (LVH), right ventricular hypertrophy (RVH), left atrial overload/enlargement (LAO/LAE), right atrial overload/enlargement (RAO/RAE) |
| 5 | MI: myocardial infarction | PTB-XL Sub: anterior myocardial infarction (AMI), inferior myocardial infarction (IMI), lateral myocardial infarction (LMI) |
| 6 | ISC/STTC: ischemia and ST/T changes | PTB-XL Sub: ischemic in anterior leads (ISCA), ischemic in inferior leads (ISCI), non-specific ischemic (ISC_), ST-T changes (STTC), non-specific ST changes (NST_) |
| 7 | SHD: structural heart disease | EchoNext-Mini: reduced left ventricular ejection fraction (LVEF ≤ 45%), increased left ventricular wall thickness (LVWT ≥ 13 mm), moderate or greater aortic stenosis, moderate or greater aortic regurgitation, moderate or greater mitral regurgitation, moderate or greater tricuspid regurgitation, moderate or greater pulmonary regurgitation, moderate or greater right ventricular systolic dysfunction, moderate or large pericardial effusion, elevated pulmonary artery systolic pressure (PASP ≥ 45 mmHg), elevated tricuspid regurgitation maximum velocity (≥ 3.2 m/s) |
| 8 | VC: voltage criteria diagnoses | PTB-XL Sub: left ventricular hypertrophy (LVH), right ventricular hypertrophy (RVH), left atrial overload/enlargement (LAO/LAE), right atrial overload/enlargement (RAO/RAE), left anterior/left posterior fascicular block (LAFB/LPFB)PTB-XL Form: voltage criteria (QRS) for left ventricular hypertrophy (VCLVH), low QRS voltages in the frontal and horizontal leads (LVOLT), low amplitude T-waves (LOWT)EchoNext-Mini: left ventricular wall thickness (LVWT ≥13 mm) |
| 9 | MIMIC-EST*: MIMIC-IV established ECG diagnoses | MIMIC-IV-ICD: ST-elevation myocardial infarction (I21.0-3), non-ST-elevation myocardial infarction (I21.4), old myocardial infarction (I25.2), systolic heart failure (I50.2), second- or third-degree atrioventricular block (I44.1-2) |
| 10 | MIMIC-EXP*: MIMIC-IV exploratory ECG diagnoses | MIMIC-IV-ICD: atherosclerotic heart disease (I25.1), diastolic heart failure (I50.3), long QT syndrome (I45.81), acute pericarditis (I30), dilated cardiomyopathy (I42.0), hypertrophic cardiomyopathy (I42.1-2), other cardiomyopathies (I42.8), hyperkalemia (E87.5), hypokalemia (E87.6), hypercalcemia (E83.52), hypocalcemia (E83.51), hypernatremia (E87.0), hyponatremia (E87.1), anemia (D50-D53, D55-D64), obstructive sleep apnea (G47.33), pulmonary embolism (I26), secondary pulmonary hypertension (I27.2), chronic obstructive pulmonary disease (J44), acute respiratory failure (J96.0), chronic kidney disease stages 1-3 (N18.1-3), chronic kidney disease stages 4-5 (N18.4-5), end-stage renal disease (N18.6), fibrosis and cirrhosis of the liver (K70.2-3 and K74), hyperthyroidism (E05).Note: cardiac amyloidosis (E85 and I43) is excluded from the aggregate due to low prevalence but included in the label-level tables. |
Table C2 Glossary of condition codes.
| Code | Description |
|---|---|
| AFIB | Atrial fibrillation |
| STACH | Sinus tachycardia |
| SARRH | Sinus arrhythmia |
| SBRAD | Sinus bradycardia |
| SVARR | Supraventricular arrhythmia |
| LAF/LPF Blocks | Left anterior/left posterior fascicular block |
| IRBB Block | Incomplete right bundle branch block |
| CLBB Block | Complete left bundle branch block |
| CRBB Block | Complete right bundle branch block |
| AV Block | Atrioventricular block |
| IVCD | Non-specific intraventricular conduction disturbance |
| LVH | Left ventricular hypertrophy |
| RVH | Right ventricular hypertrophy |
| LAO/LAE | Left atrial overload/enlargement |
| RAO/RAE | Right atrial overload/enlargement |
| Anterior MI | Anterior myocardial infarction |
| Inferior MI | Inferior myocardial infarction |
| Lateral MI | Lateral myocardial infarction |
| Anterior ISC | Ischemic in anterior leads |
| Inferior ISC | Ischemic in inferior leads |
| Non-specific ISC | Non-specific ischemic |
| STTC | ST-T changes |
| Non-specific STC | Non-specific ST changes |
| Reduced LVEF | Reduced left ventricular ejection fraction (45 percent or less) |
| Increased LVWT | Increased left ventricular wall thickness (13 mm or more) |
| Aortic Stenosis | Moderate or greater aortic stenosis |
| Aortic Regurg. | Moderate or greater aortic regurgitation |
| Mitral Regurg. | Moderate or greater mitral regurgitation |
| Tricuspid Regurg. | Moderate or greater tricuspid regurgitation |
| Pulm. Regurg. | Moderate or greater pulmonary regurgitation |
| RV Sys. Dys. | Moderate or greater right ventricular systolic dysfunction |
| Pericardial Eff. | Moderate or large pericardial effusion |
| Elevated PASP | Elevated pulmonary artery systolic pressure (45 mmHg or more) |
| Elevated TRV | Elevated tricuspid regurgitation maximum velocity (3.2 m/s or more) |
| I21.0-3: STEMI | I21.0-3: ST elevation myocardial infarction (STEMI) |
| I21.4: NSTEMI | I21.4: Non-ST elevation myocardial infarction (NSTEMI) |
| I25.2: Prior MI | I25.2: Old myocardial infarction |
| I50.2: Sys. HF | I50.2: Systolic (congestive) heart failure |
| I44.1-2: 2/3 AVB | I44.1-2: Atrioventricular block, second or third degree |
| I25.1: AHD/CAD | I25.1: Atherosclerotic heart disease of native coronary artery |
| I50.3: Dia. HF | I50.3: Diastolic (congestive) heart failure |
| I45.81: LongQT | I45.81: Long QT syndrome |
| I30: Pericarditis | I30: Acute pericarditis |
| I42.0: DCM | I42.0: Dilated cardiomyopathy |
| I42.1-2: HCM | I42.1-2: Hypertrophic cardiomyopathy (HCM) |
| I42.8: OtherCM | I42.8: Other cardiomyopathies |
| E87.5: HyperK | E87.5: Hyperkalemia |
| E87.6: HypoK | E87.6: Hypokalemia |
| E83.52: HyperCa | E83.52: Hypercalcemia |
| E83.51: HypoCa | E83.51: Hypocalcemia |
| E87.0: HyperNa | E87.0: Hyperosmolality and hypernatremia |
| E87.1: HypoNa | E87.1: Hypo-osmolarity and hyponatremia |
| D50-D64: Anemia | D50-D53, D55-D64: Anemia |
| G47.33: OSA | G47.33: Obstructive sleep apnea |
| I26: PE | I26: Pulmonary embolism |
| I27.2: PHT | I27.2: Other secondary pulmonary hypertension |
| J44: COPD | J44: Other chronic obstructive pulmonary disease |
| J96.0: ARF | J96.0: Acute respiratory failure |
| N18.1-3: CKD1-3 | N18.1-3: Chronic kidney disease, stages 1-3 |
| N18.4-5: CKD4-5 | N18.4-5: Chronic kidney disease, stages 4-5 |
| N18.6: ESKD | N18.6: End stage renal disease |
| K70/K74: FCL | K70.2-3 and K74: Fibrosis and cirrhosis of liver |
| E05: HyperThy | E05: Thyrotoxicosis [hyperthyroidism] |
| E85 and I43: CA | E85 and I43: Cardiac amyloidosis |
Table C3 Disease coverage by downstream evaluation datasets. This expanded evaluation suite has more universal coverage of diseases that are detectable from ECGs by expanding it to include EchoNext-Mini and MIMIC-IV-ECG-Ext-ICD. Number of total instances in the dataset is in parentheses. √ indicates the dataset supports the condition, × indicates it does not, and ~ denotes partial or limited support of the condition as currently used. Labels for MIMIC-IV-ECG-Ext-ICD are at the visit-level.
| Category | PTB-XL (21,837) | CPSC2018 (6,877) | CSN (23,026) | EchoNext-Mini (100,000) | MIMIC-IV-ECG-Ext-ICD (468,005) |
| Arrhythmias | ✓ | ✓ | ✓ | ✕ | ✓ |
| Conduction Disturbances | ✓ | ✓ | ✓ | ✕ | ✓ |
| Ischemic Heart Disease | |||||
|---|---|---|---|---|---|
| STE-ACS / STEMI | ✓ | ~ | ~ | ✕ | ✓ |
| NSTE-ACS / NSTEMI | ✕ | ✕ | ✕ | ✕ | ✓ |
| Chronic coronary syndrome (e.g., atherosclerosis, etc.) | ~ | ✕ | ✕ | ✕ | ✓ |
| Structural Heart Disease | |||||
| (Sys.) HFrEF | ✕ | ✕ | ✕ | ✓ | ✓ |
| (Dias.) HFpEF | ✕ | ✕ | ✕ | ✓ | ✓ |
| Valvular heart disease | ✕ | ✕ | ✕ | ✓ | ✓ |
| Left ventricular hypertrophy | ✓ | ✕ | ~ | ✓ | ✓ |
| Cardiomyopathies | ✕ | ✕ | ✕ | ~ | ✓ |
| Other SHD | ✕ | ✕ | ✕ | ✓ | ✓ |
| Other | |||||
| Long QT Syndrome | ✕ | ✕ | ✕ | ✕ | ✓ |
| Hyperkalemia and other electrolyte imbalances | ✕ | ✕ | ✕ | ✕ | ✓ |
| Acute pericarditis | ✕ | ✕ | ✕ | ✕ | ✓ |
| Cardiac amyloidosis | ✕ | ✕ | ✕ | ✕ | ✓ |
| Obstructive sleep apnea (OSA) | ✕ | ✕ | ✕ | ✕ | ✓ |
| Anemia | ✕ | ✕ | ✕ | ✕ | ✓ |
| Chronic kidney disease (CKD) | ✕ | ✕ | ✕ | ✕ | ✓ |
| Pulmonary conditions | ✕ | ✕ | ✕ | ✕ | ✓ |
| Liver disease | ✕ | ✕ | ✕ | ✕ | ✓ |
| Hyperthyroidism | ✕ | ✕ | ✕ | ✕ | ✓ |
| All ICD10 Diseases | ✕ | ✕ | ✕ | ✕ | ✓ |
Supplementary Note D Supplementary experimental results
D.1 Label-level results for MS-ECG-FM by reduced-lead configuration
Tables D1 and D2 report the linear probe AUROC and AUPRC of MS-ECG-FM for the individual labels in Table 3, at the single-lead, reduced-lead and 12-lead configurations used in Table 2.
Table D1 Label-level linear probe AUROC of MS-ECG-FM by lead configuration. A glossary of condition codes is in Table C2.
| Group | Condition | Single Lead | Lead Subsets | 12-lead | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Prevalence % (N) | I (LCX) | II (RCA) | V2 (LAD) | I,II | All limb | I,II,V2 | I,II,III,V2 | 12-lead | ||
| ARR | AFIB | 7.2% (152) | 97.7 | 98.5 | 97.3 | 98.5 | 98.7 | 98.5 | 98.5 | 98.7 |
| STACH | 3.9% (82) | 99.2 | 99.3 | 99.1 | 99.5 | 99.5 | 99.5 | 99.5 | 99.5 | |
| SARRH | 3.7% (77) | 90.0 | 92.7 | 89.3 | 94.1 | 93.4 | 93.5 | 93.4 | 94.4 | |
| SBRAD | 3.1% (64) | 96.1 | 96.1 | 95.9 | 96.3 | 96.1 | 96.1 | 96.0 | 96.7 | |
| SVARR | 0.7% (14) | 84.9 | 96.1 | 71.9 | 93.7 | 93.7 | 91.8 | 92.4 | 95.4 | |
| CD | LAF/LPF Blocks | 8.3% (179) | 79.4 | 95.5 | 76.9 | 97.7 | 98.1 | 98.0 | 98.1 | 98.2 |
| IRBB Block | 5.2% (112) | 79.1 | 82.1 | 90.6 | 86.4 | 86.0 | 95.1 | 94.9 | 98.1 | |
| CLBB Block | 2.5% (54) | 99.8 | 98.1 | 99.9 | 99.4 | 99.3 | 99.5 | 99.7 | 99.8 | |
| CRBB Block | 2.5% (54) | 99.6 | 96.8 | 99.6 | 99.6 | 99.6 | 99.8 | 99.7 | 99.8 | |
| AV Block | 3.8% (82) | 95.7 | 97.8 | 95.6 | 97.9 | 98.1 | 97.7 | 97.8 | 98.1 | |
| IVCD | 3.7% (79) | 72.9 | 74.4 | 73.1 | 77.4 | 78.8 | 78.5 | 79.0 | 80.8 | |
| ECG-HYP | LVH | 9.9% (214) | 86.3 | 83.2 | 79.0 | 90.2 | 90.6 | 91.4 | 91.7 | 95.3 |
| RVH | 0.6% (12) | 92.8 | 88.0 | 89.1 | 92.4 | 94.6 | 97.4 | 97.4 | 91.2 | |
| LAO/LAE | 1.9% (42) | 79.0 | 87.0 | 75.9 | 86.2 | 87.4 | 88.2 | 88.8 | 89.7 | |
| RAO/RAE | 0.5% (10) | 92.6 | 98.5 | 81.9 | 97.4 | 98.2 | 97.2 | 97.4 | 99.5 | |
| MI | Anterior MI | 14.2% (306) | 84.4 | 80.4 | 95.6 | 86.3 | 86.8 | 96.5 | 96.3 | 97.1 |
| Inferior MI | 15.2% (327) | 72.9 | 88.4 | 70.4 | 93.6 | 94.7 | 93.6 | 94.8 | 94.6 | |
| Lateral MI | 0.9% (20) | 85.8 | 72.4 | 68.5 | 87.9 | 90.0 | 88.1 | 90.3 | 91.4 | |
| ISC/STTC | Anterior ISC | 4.3% (93) | 90.3 | 82.7 | 80.0 | 90.9 | 91.2 | 92.4 | 92.5 | 94.1 |
| Inferior ISC | 1.9% (40) | 77.9 | 91.2 | 71.7 | 95.4 | 95.8 | 95.8 | 96.1 | 96.3 | |
| Non-specific ISC | 5.9% (128) | 92.0 | 91.1 | 84.9 | 94.1 | 94.1 | 94.9 | 94.8 | 96.7 | |
| STTC | 10.3% (222) | 81.9 | 84.0 | 74.5 | 86.9 | 87.0 | 88.8 | 88.7 | 90.0 | |
| Non-specific STC | 3.6% (77) | 86.2 | 83.4 | 77.4 | 86.5 | 86.2 | 87.5 | 87.3 | 87.2 | |
| SHD | Reduced LVEF | 17.7% (962) | 86.8 | 85.8 | 84.1 | 88.7 | 88.5 | 89.9 | 89.9 | 90.7 |
| Increased LVWT | 19.5% (1,061) | 73.0 | 72.0 | 71.5 | 74.7 | 74.8 | 76.8 | 77.2 | 78.4 | |
| Aortic Stenosis | 5.3% (286) | 80.1 | 78.7 | 78.3 | 82.3 | 82.3 | 83.5 | 83.9 | 85.4 | |
| Aortic Regurg. | 1.2% (66) | 73.9 | 70.8 | 71.4 | 69.1 | 72.1 | 73.6 | 73.3 | 75.0 | |
| Mitral Regurg. | 6.2% (337) | 81.1 | 79.6 | 79.4 | 81.5 | 81.9 | 82.8 | 82.9 | 84.2 | |
| Tricuspid Regurg. | 6.5% (353) | 79.8 | 78.6 | 80.4 | 81.3 | 81.4 | 83.3 | 83.4 | 85.0 | |
| Pulm. Regurg. | 0.4% (20) | 83.6 | 81.4 | 80.7 | 85.9 | 88.5 | 89.4 | 89.4 | 90.2 | |
| RV Sys. Dys. | 7.7% (419) | 85.5 | 85.3 | 85.3 | 87.3 | 87.5 | 88.6 | 88.8 | 89.5 | |
| Pericardial Eff. | 1.3% (69) | 74.8 | 74.8 | 67.2 | 76.0 | 77.2 | 79.1 | 79.0 | 79.1 | |
| Elevated PASP | 12.8% (699) | 75.1 | 73.5 | 75.8 | 75.8 | 76.4 | 78.3 | 78.5 | 80.3 | |
| Elevated TRV | 6.9% (375) | 72.9 | 71.4 | 73.6 | 74.3 | 74.5 | 77.7 | 77.7 | 80.1 | |
| MIMIC-EST | I21.0-3: STEMI | 1.0% (118) | 81.6 | 84.5 | 82.1 | 91.2 | 91.6 | 92.9 | 93.0 | 93.4 |
| I21.4: NSTEMI | 3.2% (396) | 80.0 | 78.9 | 73.3 | 82.6 | 82.9 | 83.8 | 83.6 | 85.1 | |
| I25.2: Prior MI | 7.1% (880) | 74.4 | 75.0 | 71.0 | 78.0 | 78.4 | 78.6 | 79.1 | 79.8 | |
| I50.2: Sys. HF | 6.1% (760) | 90.1 | 88.2 | 87.0 | 91.3 | 91.5 | 91.6 | 91.5 | 92.2 | |
| I44.1-2: 2/3 AVB | 1.0% (118) | 90.1 | 89.6 | 88.1 | 91.4 | 91.0 | 91.2 | 90.9 | 90.7 | |
| MIMIC-EXP | I25.1: AHD/CAD | 21.4% (2,641) | 77.3 | 76.3 | 73.2 | 79.5 | 80.0 | 80.2 | 80.6 | 81.1 |
| I50.3: Dia. HF | 7.8% (968) | 78.6 | 78.6 | 77.3 | 80.9 | 81.3 | 81.5 | 82.0 | 83.0 | |
| I45.81: LongQT | 0.4% (47) | 82.8 | 81.7 | 78.7 | 82.9 | 81.9 | 83.4 | 82.9 | 82.5 | |
| I30: Pericarditis | 0.3% (32) | 77.4 | 85.9 | 75.2 | 87.2 | 86.6 | 87.0 | 86.3 | 86.4 | |
| I42.0: DCM | 0.1% (17) | 91.7 | 88.2 | 86.6 | 91.8 | 91.6 | 93.2 | 93.1 | 94.0 | |
| I42.1-2: HCM | 0.3% (35) | 74.7 | 75.4 | 78.3 | 78.6 | 79.6 | 78.8 | 82.2 | 82.1 | |
| I42.8: OtherCM | 1.9% (233) | 86.3 | 84.4 | 83.9 | 86.3 | 87.4 | 86.9 | 87.5 | 88.4 | |
| E87.5: HyperK | 4.0% (490) | 72.6 | 74.4 | 72.0 | 76.7 | 77.1 | 78.4 | 78.4 | 80.3 | |
| E87.6: HypoK | 2.8% (348) | 71.4 | 71.8 | 69.7 | 74.3 | 74.6 | 74.4 | 74.7 | 75.2 | |
| E83.52: HyperCa | 0.6% (71) | 62.1 | 63.0 | 65.6 | 65.8 | 65.3 | 68.9 | 68.6 | 68.8 | |
| E83.51: HypoCa | 0.7% (83) | 75.9 | 74.7 | 74.9 | 74.8 | 77.5 | 76.8 | 77.8 | 79.0 | |
| E87.0: HyperNa | 2.1% (254) | 75.5 | 74.1 | 73.0 | 76.1 | 76.8 | 78.3 | 78.4 | 78.9 | |
| E87.1: HypoNa | 5.8% (720) | 67.6 | 65.8 | 66.1 | 68.6 | 68.4 | 70.1 | 69.8 | 70.0 | |
| D50-D64: Anemia | 23.7% (2,931) | 69.2 | 68.4 | 67.1 | 71.2 | 71.0 | 72.5 | 72.1 | 72.9 | |
| G47.33: OSA | 6.9% (848) | 65.9 | 66.2 | 64.8 | 69.2 | 69.9 | 70.1 | 70.8 | 72.2 | |
| I26: PE | 1.3% (163) | 69.2 | 71.8 | 71.7 | 71.4 | 73.5 | 73.4 | 74.4 | 75.1 | |
| I27.2: PHT | 1.4% (178) | 82.6 | 81.6 | 82.1 | 83.8 | 84.1 | 83.9 | 84.5 | 85.5 | |
| J44: COPD | 9.3% (1,150) | 70.8 | 68.5 | 69.0 | 73.0 | 73.8 | 73.7 | 73.9 | 75.7 | |
| J96.0: ARF | 2.0% (250) | 80.6 | 81.3 | 79.9 | 81.5 | 82.7 | 82.5 | 83.3 | 84.1 | |
| N18.1-3: CKD1-3 | 4.3% (533) | 69.2 | 70.2 | 67.0 | 71.8 | 72.2 | 71.4 | 71.9 | 72.5 | |
| N18.4-5: CKD4-5 | 1.5% (185) | 77.6 | 76.0 | 74.9 | 79.0 | 79.4 | 79.1 | 79.4 | 81.4 | |
| N18.6: ESKD | 4.3% (534) | 81.5 | 81.3 | 83.5 | 85.2 | 85.3 | 88.0 | 87.7 | 89.0 | |
| K70/K74: FCL | 3.7% (455) | 73.2 | 74.8 | 70.5 | 76.5 | 77.3 | 79.1 | 79.6 | 82.6 | |
| E05: HyperThy | 0.6% (69) | 59.0 | 52.7 | 52.0 | 53.4 | 54.2 | 56.2 | 54.9 | 50.2 | |
| E85 and I43: CA | 0.0% (6) | 73.5 | 86.4 | 90.7 | 84.0 | 89.4 | 89.7 | 91.9 | 90.9 | |
AUROC: area under the receiver operating characteristic curve. Prevalence is the proportion of positives in the test set the metrics were computed on. Cardiac amyloidosis is excluded from the MIMIC-EXP aggregate score due to low prevalence.
Table D2 Label-level linear probe AUPRC of MS-ECG-FM by lead configuration. A glossary of condition codes is in Table C2.
| Group | Condition | Single Lead | Lead Subsets | 12-lead | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Prevalence % (N) | I (LCX) | II (RCA) | V2 (LAD) | I,II | All limb | I,II,V2 | I,II,III,V2 | |||
| ARR | AFIB | 7.2% (152) | 87.4 | 92.3 | 89.3 | 93.5 | 94.5 | 94.0 | 94.4 | 95.6 |
| STACH | 3.9% (82) | 86.5 | 84.8 | 86.2 | 85.7 | 86.7 | 89.0 | 89.8 | 89.5 | |
| SARRH | 3.7% (77) | 37.8 | 42.4 | 34.1 | 44.9 | 41.2 | 46.1 | 45.0 | 47.7 | |
| SBRAD | 3.1% (64) | 58.0 | 62.5 | 63.7 | 63.4 | 63.5 | 62.0 | 62.7 | 63.3 | |
| SVARR | 0.7% (14) | 5.9 | 30.8 | 2.6 | 28.5 | 25.6 | 34.7 | 32.2 | 48.7 | |
| CD | LAF/LPF Blocks | 8.3% (179) | 35.7 | 77.8 | 31.5 | 82.5 | 83.5 | 83.3 | 83.3 | 83.3 |
| IRBB Block | 5.2% (112) | 22.7 | 23.1 | 56.1 | 27.4 | 25.4 | 63.3 | 61.2 | 74.1 | |
| CLBB Block | 2.5% (54) | 93.8 | 85.6 | 97.2 | 94.9 | 95.2 | 96.7 | 96.1 | 96.6 | |
| CRBB Block | 2.5% (54) | 81.6 | 54.0 | 87.0 | 84.9 | 86.8 | 88.8 | 88.7 | 90.2 | |
| AV Block | 3.8% (82) | 42.4 | 59.1 | 51.7 | 60.5 | 62.2 | 61.1 | 62.9 | 68.1 | |
| IVCD | 3.7% (79) | 12.1 | 12.5 | 13.6 | 17.7 | 18.5 | 18.7 | 19.8 | 21.9 | |
| ECG-HYP | LVH | 9.9% (214) | 51.0 | 43.1 | 36.3 | 58.3 | 59.9 | 60.2 | 61.4 | 76.7 |
| RVH | 0.6% (12) | 27.2 | 8.1 | 26.9 | 14.6 | 14.8 | 18.0 | 22.4 | 22.0 | |
| LAO/LAE | 1.9% (42) | 8.1 | 11.2 | 6.4 | 11.7 | 13.1 | 14.4 | 14.7 | 21.4 | |
| RAO/RAE | 0.5% (10) | 7.1 | 51.6 | 13.2 | 54.5 | 57.5 | 54.0 | 48.7 | 54.1 | |
| MI | Anterior MI | 14.2% (306) | 50.1 | 44.3 | 84.4 | 54.2 | 54.4 | 85.5 | 85.1 | 88.4 |
| Inferior MI | 15.2% (327) | 30.8 | 66.3 | 33.0 | 75.8 | 78.7 | 76.4 | 79.7 | 79.1 | |
| Lateral MI | 0.9% (20) | 10.0 | 2.1 | 2.2 | 13.2 | 11.8 | 15.4 | 15.8 | 9.5 | |
| ISC/STTC | Anterior ISC | 4.3% (93) | 27.9 | 18.6 | 13.9 | 26.9 | 26.1 | 26.4 | 26.8 | 34.6 |
| Inferior ISC | 1.9% (40) | 6.2 | 22.7 | 6.3 | 37.6 | 39.8 | 44.6 | 46.1 | 42.7 | |
| Non-specific ISC | 5.9% (128) | 50.7 | 46.3 | 33.8 | 59.9 | 60.2 | 60.0 | 60.4 | 69.8 | |
| STTC | 10.3% (222) | 32.7 | 37.7 | 27.2 | 43.0 | 42.5 | 47.8 | 47.8 | 52.2 | |
| Non-specific STC | 3.6% (77) | 17.6 | 14.7 | 13.6 | 19.3 | 19.5 | 22.3 | 21.1 | 19.9 | |
| SHD | Reduced LVEF | 17.7% (962) | 64.6 | 61.7 | 59.4 | 69.5 | 69.6 | 72.8 | 73.3 | 75.9 |
| Increased LVWT | 19.5% (1,061) | 38.0 | 37.1 | 37.2 | 40.5 | 40.8 | 43.8 | 44.6 | 46.2 | |
| Aortic Stenosis | 5.3% (286) | 20.4 | 17.8 | 19.3 | 22.3 | 23.2 | 24.3 | 25.7 | 28.5 | |
| Aortic Regurg. | 1.2% (66) | 3.9 | 4.0 | 4.3 | 3.7 | 3.6 | 5.2 | 5.4 | 4.9 | |
| Mitral Regurg. | 6.2% (337) | 22.0 | 21.0 | 22.0 | 24.6 | 25.1 | 26.5 | 27.0 | 29.6 | |
| Tricuspid Regurg. | 6.5% (353) | 24.2 | 23.9 | 25.0 | 27.1 | 28.3 | 29.6 | 31.2 | 32.5 | |
| Pulm. Regurg. | 0.4% (20) | 10.6 | 1.2 | 2.3 | 3.6 | 5.3 | 6.4 | 6.1 | 6.3 | |
| RV Sys. Dys. | 7.7% (419) | 38.4 | 35.4 | 37.9 | 41.8 | 42.8 | 46.4 | 47.1 | 50.6 | |
| Pericardial Eff. | 1.3% (69) | 4.3 | 3.9 | 3.3 | 4.1 | 4.0 | 5.1 | 6.4 | 4.6 | |
| Elevated PASP | 12.8% (699) | 33.3 | 29.8 | 32.0 | 33.4 | 34.1 | 36.1 | 36.5 | 39.1 | |
| Elevated TRV | 6.9% (375) | 18.9 | 16.1 | 17.0 | 19.9 | 20.4 | 21.9 | 22.2 | 25.5 | |
| MIMIC-EST | I21.0-3: STEMI | 1.0% (118) | 19.9 | 24.3 | 23.8 | 40.0 | 42.6 | 48.3 | 49.9 | 51.5 |
| I21.4: NSTEMI | 3.2% (396) | 14.4 | 11.9 | 11.5 | 16.6 | 16.2 | 18.1 | 18.7 | 22.9 | |
| I25.2: Prior MI | 7.1% (880) | 16.8 | 21.7 | 14.5 | 24.8 | 23.7 | 25.0 | 24.7 | 25.1 | |
| I50.2: Sys. HF | 6.1% (760) | 39.0 | 36.2 | 33.2 | 43.7 | 43.9 | 44.3 | 43.9 | 47.8 | |
| I44.1-2: 2/3 AVB | 1.0% (118) | 26.0 | 26.2 | 18.5 | 28.8 | 27.3 | 26.3 | 26.1 | 26.1 | |
| MIMIC-EXP | I25.1: AHD/CAD | 21.4% (2,641) | 45.9 | 46.3 | 41.6 | 50.6 | 51.1 | 52.3 | 52.9 | 53.3 |
| I50.3: Dia. HF | 7.8% (968) | 21.5 | 20.8 | 20.1 | 24.2 | 24.8 | 25.4 | 26.4 | 28.9 | |
| I45.81: LongQT | 0.4% (47) | 6.2 | 3.8 | 4.0 | 4.5 | 10.7 | 4.3 | 7.0 | 5.7 | |
| I30: Pericarditis | 0.3% (32) | 4.7 | 15.6 | 2.0 | 14.0 | 12.2 | 10.3 | 8.7 | 12.5 | |
| I42.0: DCM | 0.1% (17) | 4.1 | 2.2 | 1.8 | 1.9 | 1.7 | 2.3 | 2.2 | 3.6 | |
| I42.1-2: HCM | 0.3% (35) | 0.6 | 1.9 | 1.4 | 1.2 | 1.2 | 1.3 | 1.3 | 1.5 | |
| I42.8: OtherCM | 1.9% (233) | 15.3 | 13.4 | 13.9 | 14.5 | 16.7 | 15.6 | 16.6 | 17.8 | |
| E87.5: HyperK | 4.0% (490) | 11.4 | 15.7 | 12.9 | 16.6 | 18.0 | 18.8 | 19.4 | 22.4 | |
| E87.6: HypoK | 2.8% (348) | 7.0 | 8.7 | 6.7 | 8.9 | 8.9 | 8.5 | 8.6 | 8.9 | |
| E83.52: HyperCa | 0.6% (71) | 1.0 | 1.1 | 1.1 | 1.5 | 1.5 | 2.0 | 1.8 | 2.7 | |
| E83.51: HypoCa | 0.7% (83) | 2.4 | 2.3 | 3.0 | 2.2 | 2.3 | 2.5 | 2.4 | 2.9 | |
| E87.0: HyperNa | 2.1% (254) | 7.1 | 6.1 | 5.3 | 7.3 | 7.3 | 8.4 | 7.7 | 8.1 | |
| E87.1: HypoNa | 5.8% (720) | 10.7 | 10.9 | 9.7 | 12.4 | 11.9 | 13.1 | 12.9 | 12.9 | |
| D50-D64: Anemia | 23.7% (2,931) | 38.2 | 39.7 | 37.0 | 41.4 | 41.9 | 43.1 | 43.1 | 43.9 | |
| G47.33: OSA | 6.9% (848) | 11.8 | 11.0 | 11.4 | 12.7 | 13.4 | 14.3 | 14.7 | 16.6 | |
| I26: PE | 1.3% (163) | 3.4 | 4.5 | 5.7 | 4.6 | 5.1 | 7.0 | 7.1 | 7.5 | |
| I27.2: PHT | 1.4% (178) | 10.9 | 7.4 | 7.3 | 10.1 | 10.3 | 11.1 | 9.9 | 10.7 | |
| J44: COPD | 9.3% (1,150) | 19.7 | 16.7 | 17.8 | 23.1 | 24.2 | 24.2 | 24.8 | 27.3 | |
| J96.0: ARF | 2.0% (250) | 9.0 | 8.4 | 7.7 | 9.7 | 11.6 | 10.2 | 11.7 | 11.7 | |
| N18.1-3: CKD1-3 | 4.3% (533) | 8.1 | 8.8 | 8.0 | 9.1 | 9.7 | 8.8 | 9.4 | 9.5 | |
| N18.4-5: CKD4-5 | 1.5% (185) | 5.5 | 4.7 | 4.9 | 5.7 | 5.5 | 5.4 | 6.0 | 7.8 | |
| N18.6: ESKD | 4.3% (534) | 18.7 | 20.1 | 27.2 | 24.8 | 26.0 | 32.3 | 31.7 | 35.6 | |
| K70/K74: FCL | 3.7% (455) | 11.5 | 13.6 | 9.9 | 15.7 | 17.9 | 20.5 | 21.8 | 25.5 | |
| E05: HyperThy | 0.6% (69) | 0.8 | 0.6 | 0.6 | 0.6 | 0.6 | 0.6 | 0.7 | 0.5 | |
| E85 and I43: CA | 0.0% (6) | 1.0 | 0.8 | 3.2 | 0.6 | 0.7 | 1.0 | 1.3 | 0.6 | |
AUPRC: area under the precision-recall curve. Prevalence is the proportion of positives in the test set the metrics were computed on. Cardiac amyloidosis is excluded from the MIMIC-EXP aggregate score due to low prevalence.
D.2 Label-level results for MS-ECG-FM by clinical report supervision source
Table D3 reports the linear probe AUPRC counterpart of Table 3, for the same labels and alignment sources.
Table D3 Contribution of different clinical note types to MS-ECG-FM AUPRC for different condition labels. A glossary of condition codes is in Table C2.
| Group | Condition | AUPRC | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Prevalence % (N) | Random | ECG-MR | ECG-CR | ECHO | Chest X-ray | Discharge | MS-ECG-FM | ||
| ARR | AFIB | 7.2% (152) | 49.6 | 94.8 | *95.5 | 91.6 | 91.3 | 93.0 | 95.6 |
| STACH | 3.9% (82) | 61.8 | 90.0 | *88.0 | 83.0 | 80.7 | 83.6 | *89.5 | |
| SARRH | 3.7% (77) | 5.3 | 30.8 | *45.0 | 10.6 | 11.4 | 14.3 | 47.7 | |
| SBRAD | 3.1% (64) | 42.0 | 65.3 | *61.5 | 58.4 | *59.7 | 57.2 | *63.3 | |
| SVARR | 0.7% (14) | 2.4 | *35.4 | *32.5 | 28.8 | *36.7 | 32.6 | 48.7 | |
| CD | LAF/LPF Blocks | 8.3% (179) | 52.6 | *82.7 | 83.8 | 76.1 | 77.8 | 76.6 | *83.3 |
| IRBB Block | 5.2% (112) | 26.0 | *70.1 | *71.7 | 57.4 | 59.2 | 55.1 | 74.1 | |
| CLBB Block | 2.5% (54) | 82.6 | *96.7 | 97.0 | *96.1 | 96.0 | *96.2 | *96.6 | |
| CRBB Block | 2.5% (54) | 72.0 | *91.1 | 91.8 | *87.8 | *88.9 | *86.8 | *90.2 | |
| AV Block | 3.8% (82) | 13.4 | *63.2 | *67.4 | *62.4 | *67.6 | *62.9 | 68.1 | |
| IVCD | 3.7% (79) | 11.1 | *20.5 | *21.5 | 16.7 | 16.5 | *17.8 | 21.9 | |
| ECG-HYP | LVH | 9.9% (214) | 61.8 | *76.4 | 73.5 | 71.6 | 72.2 | 70.5 | 76.7 |
| RVH | 0.6% (12) | *13.6 | 30.0 | *23.9 | *15.8 | *21.4 | *23.5 | 22.0 | |
| LAO/LAE | 1.9% (42) | 5.7 | *17.4 | *18.5 | 11.9 | *19.5 | *16.1 | 21.4 | |
| RAO/RAE | 0.5% (10) | 14.2 | *56.6 | 63.9 | 27.6 | *46.4 | *43.6 | *54.1 | |
| MI | Anterior MI | 14.2% (306) | 60.9 | *87.4 | 88.7 | 83.0 | 84.0 | 83.5 | *88.4 |
| Inferior MI | 15.2% (327) | 42.8 | *78.1 | *77.9 | 75.5 | 75.9 | *77.0 | 79.1 | |
| Lateral MI | 0.9% (20) | 3.1 | 12.5 | *10.4 | *6.1 | *11.6 | *8.4 | *9.5 | |
| ISC/STTC | Anterior ISC | 4.3% (93) | 19.5 | *33.6 | 37.9 | 29.8 | 31.6 | 30.5 | *34.6 |
| Inferior ISC | 1.9% (40) | 8.3 | *43.4 | 52.6 | 28.8 | 33.2 | 35.0 | *42.7 | |
| Non-specific ISC | 5.9% (128) | 52.5 | 73.3 | *71.6 | *69.1 | 67.0 | 68.1 | 69.8 | |
| STTC | 10.3% (222) | 32.6 | *49.3 | *48.2 | 44.4 | 43.9 | 44.0 | 52.2 | |
| Non-specific STC | 3.6% (77) | 12.5 | *19.4 | *19.4 | *17.1 | *18.7 | *18.2 | 19.9 | |
| SHD | Reduced LVEF | 17.7% (962) | 58.1 | 70.7 | 71.5 | 74.3 | 74.7 | *74.9 | 75.9 |
| Increased LVWT | 19.5% (1,061) | 41.0 | *45.4 | 44.0 | *45.4 | *45.3 | 46.5 | *46.2 | |
| Aortic Stenosis | 5.3% (286) | 16.3 | *26.7 | 24.7 | 25.1 | 24.8 | *26.6 | 28.5 | |
| Aortic Regurg. | 1.2% (66) | 2.7 | *3.6 | *3.7 | *3.8 | *4.2 | *4.4 | 4.9 | |
| Mitral Regurg. | 6.2% (337) | 20.7 | 24.7 | 24.6 | 26.2 | 26.6 | 26.7 | 29.6 | |
| Tricuspid Regurg. | 6.5% (353) | 19.2 | 28.2 | 29.6 | *30.3 | *31.5 | *31.8 | 32.5 | |
| Pulm. Regurg. | 0.4% (20) | 1.8 | *2.8 | *2.9 | 1.8 | *4.0 | *4.0 | 6.3 | |
| RV Sys. Dys. | 7.7% (419) | 34.3 | *45.6 | 47.1 | *49.0 | *49.2 | *49.7 | 50.6 | |
| Pericardial Eff. | 1.3% (69) | 2.6 | *4.5 | 5.1 | *3.6 | *5.1 | *3.9 | *4.6 | |
| Elevated PASP | 12.8% (699) | 26.6 | 33.9 | 35.6 | 35.4 | *38.5 | *38.7 | 39.1 | |
| Elevated TRV | 6.9% (375) | 13.5 | 19.3 | 20.5 | 21.9 | *23.4 | *24.7 | 25.5 | |
| MIMIC-EST | 121.0-3: STEMI | 1.0% (118) | 16.8 | 42.9 | *48.6 | 45.0 | *48.7 | 45.9 | 51.5 |
| 121.4: NSTEMI | 3.2% (396) | 10.1 | 19.0 | 17.3 | 17.7 | 18.9 | *21.8 | 22.9 | |
| 125.2: Prior MI | 7.1% (880) | 15.4 | *23.9 | *23.9 | *24.6 | *24.1 | *24.9 | 25.1 | |
| 150.2: Sys. HF | 6.1% (760) | 31.9 | 44.2 | 42.5 | *47.3 | *45.2 | *46.3 | 47.8 | |
| 144.1-2: 2/3 AVB | 1.0% (118) | 5.7 | *25.7 | 26.6 | *24.2 | *26.2 | *24.4 | *26.1 | |
| MIMIC-EXP | 125.1: AHD/CAD | 21.4% (2,641) | 40.3 | 50.1 | 50.0 | 50.9 | *52.7 | *52.8 | 53.3 |
| 150.3: Dia. HF | 7.8% (968) | 17.3 | 23.5 | 24.4 | 25.5 | 29.2 | *28.5 | *28.9 | |
| 145.81: LongQT | 0.4% (47) | 1.3 | 9.1 | *5.8 | *4.6 | *7.1 | *7.2 | *5.7 | |
| 130: Pericarditis | 0.3% (32) | 1.5 | 8.2 | 8.5 | *11.8 | 19.1 | 9.1 | *12.5 | |
| 142.0: DCM | 0.1% (17) | 0.8 | *7.8 | *7.4 | 8.2 | *6.6 | *6.5 | *3.6 | |
| 142.1-2: HCM | 0.3% (35) | *0.9 | *1.2 | *1.2 | *1.3 | 1.6 | *1.1 | *1.5 | |
| 142.8: OtherCM | 1.9% (233) | 10.2 | *16.9 | *16.1 | *17.7 | 15.5 | 19.2 | *17.8 | |
| E87.5: HyperK | 4.0% (490) | 9.4 | 15.9 | 18.0 | 16.7 | *20.9 | *21.5 | 22.4 | |
| E87.6: HypoK | 2.8% (348) | 5.1 | 8.6 | 8.2 | *8.6 | *8.7 | 10.3 | *8.9 | |
| E83.52: HyperCa | 0.6% (71) | 0.7 | *1.6 | *1.5 | *2.3 | *2.6 | *2.0 | 2.7 | |
| E83.51: HypoCa | 0.7% (83) | 1.4 | *3.2 | 2.0 | *2.4 | 2.2 | 3.5 | *2.9 | |
| E87.0: HyperNa | 2.1% (254) | 4.1 | *6.9 | *7.6 | *7.9 | *7.9 | *7.6 | 8.1 | |
| E87.1: HypoNa | 5.8% (720) | 9.7 | *11.9 | *11.8 | 11.7 | *12.4 | *12.8 | 12.9 | |
| D50-D64: Anemia | 23.7% (2,931) | 34.8 | 41.0 | 41.3 | 41.6 | *43.6 | 44.2 | *43.9 | |
| G47.33: OSA | 6.9% (848) | 10.6 | 14.5 | 15.1 | *15.2 | *15.8 | *16.2 | 16.6 | |
| 126: PE | 1.3% (163) | 2.6 | *5.7 | *5.9 | *6.0 | *6.9 | 8.0 | *7.5 | |
| 127.2: PHT | 1.4% (178) | 4.6 | 8.2 | 8.0 | *9.3 | *9.6 | *9.8 | 10.7 | |
| 144: COPD | 9.3% (1,150) | 15.0 | 22.0 | 24.9 | 24.8 | *26.5 | *26.4 | 27.3 | |
| 196.0: ARF | 2.0% (250) | 5.4 | *10.2 | *9.3 | 8.0 | 8.9 | *9.7 | 11.7 | |
| N18.1-3: CKD1-3 | 4.3% (533) | 7.5 | 8.5 | *3.6 | 8.5 | 8.8 | 9.9 | *9.5 | |
| N18.4-5: CKD4-5 | 1.5% (185) | 3.9 | 5.2 | 5.0 | 4.9 | 8.0 | *6.6 | *7.8 | |
| N18.6: ESKD | 4.3% (534) | 18.6 | 28.5 | 29.6 | 30.4 | 31.5 | 32.4 | 35.6 | |
| K70/K74: FCL | 3.7% (455) | 6.4 | 18.3 | 16.8 | 16.4 | 23.9 | 27.0 | *25.5 | |
| E05: HyperThy | 0.6% (69) | *0.6 | *0.5 | *0.6 | 0.7 | *0.7 | *0.6 | *0.5 | |
| E85 and I43: CA | 0.0% (6) | *0.7 | *1.6 | *1.1 | 8.7 | *1.8 | *1.8 | *0.6 | |
AUPRC: area under the precision-recall curve. Prevalence is the proportion of positives in the test set the metrics were computed on. The best model is bold; * marks models that are not significantly different from the best per a paired patient-cluster bootstrap significance test (see Methods). †Cardiac amyloidosis is excluded from the MIMIC-EXP aggregate score due to low prevalence.
Supplementary Note E MS-ECG-FM ablations
E.1 Ablation of other key components in MS-ECG-FM
Table E1 ablates other components of MS-ECG-FM's design besides the multi-source alignment objective. MS-ECG-FM does not use input normalization so that amplitude information is preserved for the detection of conditions that rely on voltage criteria. It also uses a deep convolutional tokenizer to promote the learning of stronger local features. Several steps were also taken to improve transfer to reduced-lead configurations. These include using the random lead masking (RLM) augmentation during pre-training [43]. Furthermore, lead-level tokens are produced in the tokenizer (rather than tokenizing patches from all leads into a single token) and the tokenizer weights are shared across leads.
Table E1 Ablation of other MS-ECG-FM components. Results for individual leads are for the All dx group. The MS-ECG-FM row is AUROC per diagnostic group. Other rows are AUROC versus MS-ECG-FM. and mark the sign of the difference. RLM: random lead masking augmentation [43].
| 12-lead | Reduced-lead | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| All ARR | CD ECG-HYP | MI ISC/STTC | SHD | VC | MIMIC-EST | MIMIC-EXP | I | II | V2 | ||||
| MS-ECG-FM | 90.6 | 96.9 | 95.8 | 93.9 | 94.4 | 92.9 | 83.4 | 91.7 | 88.2 | 78.8 | 84.5 | 85.3 | 82.6 |
| Z-score waveform-level | ↓0.5 | ↑0.1 | ↓0.2 | ↓0.5 | 0.0 | ↓1.0 | ↓0.6 | ↓1.1 | ↓0.2 | ↓0.4 | ↓0.6 | ↓0.7 | ↓0.5 |
| Z-score lead-level | ↓0.7 | ↓0.2 | ↓0.2 | ↓2.4 | ↓0.8 | ↓1.1 | ↓1.3 | ↓2.8 | ↓0.3 | ↓0.4 | ↓0.6 | ↓0.8 | ↓0.2 |
| Single layer tokenizer | ↓0.3 | ↑0.5 | ↓0.3 | ↑1.0 | ↓1.0 | ↓0.3 | ↓1.0 | ↑0.5 | ↓0.6 | ↓1.2 | ↓0.5 | ↓0.3 | ↓0.3 |
| No RLM | ↓0.3 | ↑0.1 | ↓0.6 | ↑0.2 | ↑0.4 | ↑0.2 | ↓0.8 | ↓0.1 | ↓0.9 | ↓0.7 | ↓2.3 | ↓2.4 | ↓2.0 |
| No lead-level tokens | ↓0.6 | ↑0.5 | ↓0.4 | ↑0.5 | ↓0.9 | ↓0.8 | ↓1.1 | ↑0.4 | ↓0.6 | ↓1.6 | ↓0.8 | ↓0.7 | ↓1.1 |
| No tokenizer weight sharing | ↓0.2 | ↓0.2 | ↓0.4 | ↑1.0 | ↑0.8 | ↓0.2 | ↓0.2 | ↑0.5 | ↓0.2 | ↓0.3 | ↓0.9 | ↓0.6 | ↓0.4 |
E.2 Ablation of multi-source alignment objectives for MS-ECG-FM
Table E2 shows the performance when pre-training MS-ECG-FM's backbone with alternative multi-source alignment contrastive learning objectives. Average embeddings computes the average embedding over available reports in the batch and aligns the ECG to that. Report-specific batch forms batches containing only ECGs that have a certain report type, and alternates between different report types for different batches. Report-specific projectors has a pair of projector heads for each report type and forms a hybrid loss function in each batch with a term for each report type. MS-ECG-FM uses stochastic pairing which is marginally the strongest approach.
Table E2 Ablation of multi-source alignment objectives. Linear probe AUROC by diagnostic group. Default setting for MS-ECG-FM is underlined and the best per column is highlighted in bold.
| All ARR | CD | ECG-HYP | MI | ISC/STTC | SHD | VC | MIMIC-EST | MIMIC-EXP | ||
|---|---|---|---|---|---|---|---|---|---|---|
| Stochastic pairing | 90.6 | 96.9 | 95.8 | 93.9 | 94.4 | 92.9 | 83.4 | 91.7 | 88.2 | 78.8 |
| Average embeddings | 90.4 | 97.2 | 95.5 | 94.6 | 94.4 | 92.6 | 83.3 | 91.5 | 88.0 | 78.7 |
| Report-specific batch | 90.3 | 96.7 | 95.5 | 94.5 | 93.7 | 92.5 | 83.9 | 91.8 | 88.0 | 78.5 |
| Report-specific projectors | 90.3 | 97.3 | 95.3 | 93.8 | 94.0 | 92.2 | 83.7 | 91.4 | 88.2 | 78.2 |
E.3 Comparison of ECG machine report (ECG-MR) performance to external baselines pre-trained with same reports
Figure E1 compares a model trained using MS-ECG-FM's architecture and recipe except that it is only aligned to the ECG machine interpretation reports in MIMIC-IV-ECG [1]. These are the same notes that the baselines displayed in Figure E1 use for pre-training.

Fig. E1 Comparison of a model pre-trained with MS-ECG-FM's recipe and architecture except that it is only aligned to the ECG machine reports (ECG-MR) to other contemporary ECG foundation models pre-trained with the same MIMIC-IV-ECG machine reports on 12-lead ECG diagnostic tasks using linear probe evaluations. Significance testing is performed using a paired patient-cluster bootstrap procedure (see Methods). 95% bootstrap confidence intervals are shown. AUROC: area under the receiver operating characteristic curve, ARR: arrhythmia, CD: conduction disturbances, ECG-HYP: hypertrophies detected from ECG, MI: myocardial infarction, ISC/STTC: ischemia and ST/T changes, SHD: structural heart disease, VC: diagnoses that rely on voltage criteria. Conditions by diagnosis group are in Table C1.
E.4 Ablation of ECG machine report (ECG-MR) pre-training methods
Table E3 shows performance differences when the pre-training recipe is adjusted using only the ECG machine interpretation reports (ECG-MR). The learned representations are strongest when a frozen text encoder is used and the unsupervised effective rank (RankMe) metric is used to select a checkpoint from pre-training. Performance degrades noticeably when using online text encoders, especially when a zero-shot (ZS) model selection criterion is used.
Table E3 Ablation of pre-training methods when aligning to ECG-MR reports only. Linear probe AUROC by diagnostic group. The frozen-text, ER-checkpoint row is linear-probe AUROC. Other rows are AUROC versus that setting. and mark the sign of the difference.
| Report | Text encoder | Checkpoint | All ARR | CD | ECG-HYP | MI | ISC/STTC | SHD | VC | MIMIC-EST | MIMIC-EXP | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ECG-MR | Frozen | ER | 89.5 | 95.8 | 95.2 | 94.2 | 94.0 | 92.3 | 81.5 | 91.7 | 86.4 | 76.5 |
| ECG-MR | Frozen | ZS | ↓0.1 | ↑0.1 | ↓0.1 | ↑0.2 | ↓0.6 | ↑0.1 | ↓0.4 | ↑0.2 | 0.0 | ↓0.1 |
| ECG-MR | Online | ER | ↓3.9 | ↓5.8 | ↓1.4 | ↓2.6 | ↓4.3 | ↓3.3 | ↓2.5 | ↓3.3 | ↓1.9 | ↓2.2 |
| ECG-MR | Online | ZS | ↓24.7 | ↓26.1 | ↓24.5 | ↓20.6 | ↓26.1 | ↓24.3 | ↓21.8 | ↓24.1 | ↓20.2 | ↓15.5 |
| ECG-MR | Partially online | ER | ↓0.1 | ↑0.7 | ↓0.1 | ↑0.4 | ↓0.1 | ↓0.3 | ↓0.2 | ↑0.2 | ↓0.4 | ↓0.1 |
| ECG-MR | Partially online | ZS | ↓1.5 | ↓1.4 | ↓0.4 | ↓1.6 | ↓2.3 | ↓1.0 | ↓1.3 | ↓1.0 | ↓1.1 | ↓1.6 |
AUROC: area under the receiver operating characteristic curve. Underlined text encoder and checkpoint are the default setting. Frozen uses offline MedGemma-27B embeddings; online jointly updates a MedCPT text encoder (partially online freezes the first 6 layers) [78]. ER is the RankMe / effective-rank pre-training checkpoint; ZS is the checkpoint selected by out-of-distribution zero-shot AUROC as used by MERL [8] and MELP [10].
This is computed on the validation data of some of the out-of-distribution downstream datasets as in MERL [8] and MELP [10]. We include it here only to show how it contributes to degraded performance. As mentioned, we also do not advocate for this metric on the basis that we believe the pre-training recipe should be agnostic to out-of-distribution data for a less biased evaluation.
Supplementary Note F MIMIC-IV clinical reports and waveform preprocessing
F.1 MIMIC-IV-ECG clinical reports
Table F1 summarizes the different medical reports available in the MIMIC-IV-ECG and MIMIC-IV-Note datasets [1, 79]. It also provides details on how we pre-processed and joined them to the MIMIC-IV-ECG waveform instances.
Table F1 Summary of clinical reports in the MIMIC-IV-ECG and MIMIC-IV-Note datasets [1, 79]. We join these reports to the 800,035 available ECG recordings (720,102 in the training set). Multiple ECGs from the same visit may be joined to the same ECHO, Chest X-ray, Discharge Summary, Chest CT or Chest CTA report. The ● symbol denotes that preliminary experiments looking at performance on the validation set (i.e., not test set) suggested that these reports did not provide useful supervision so we excluded them from further analysis (cf. Supplementary Note F.2).
| # Total Notes (Patients) | Length (tokens) | |||||||
|---|---|---|---|---|---|---|---|---|
| Report | Description | Pre-processing / Cleaning | How to join to ECG | Raw | Clean | # Train ECGs w/Notes (Patients) | Median | Max |
| ECG Machine Report (ECG-MR) | Reports and summary measures generated by the ECG machine | Concatenate all statements together; remove one empty report | By study_id | 800,035 (161,352) | 800,034 (161,352) | 720,101 (144,545) | 17 | 125 |
| ECG Cardiologist Report (ECG-CR) | The ECG is read by a cardiologist who then writes a report. They may reference the machine report or ignore it. | (1) Remove clinical indications, (2) Exclude reports with no informative text (e.g., “ECG interpreted by ordering physician, please see corresponding note”) | Joined to waveform_note_links by study_id then to mimic_iv_note_ecg by note_id | 623,566 (105,365) | 490,780 (102,886) | 441,639 (92,377) | 33 | 256 |
| ECHO Cardiologist Report (ECHO-CR) | Ultrasound images of the heart. A cardiologist reviews ECHO images and writes a report. | None | ECG waveform is joined to the closest ECHO report in a 7-day window | 81,821 (34,147) | 81,821 (34,147) | 129,934 (26,944) | 442 | 1,128 |
| Chest X-ray Radiologist Report (ChXR-RR) | X-ray of the chest. Can show cardiomegaly, pulmonary edema, vascular congestion, and other secondary signs of cardiac dysfunction. Radiologist reviews and writes a report. | None | ECG waveform is joined to the closest ChXR report in a 7-day window | 715,465 (119,933) | 715,465 (119,933) | 415,589 (97,686) | 108 | 761 |
| Discharge Summary Physician Report (DS) | Report summarizing a patient's hospitalization including the reason for admission, past medical history, their hospital course (including summaries of various scans and blood/microbiology tests), and any relevant discharge instructions | None | ECG joined to discharge summary for the corresponding hospital stay by hosp_hdm_id or ed_hdm_id | 331,793 (111,647) | 331,793 (111,647) | 326,779 (78,754) | 2,464 | 15,039 |
| Chest CT Radiologist Report (ChCT-RR) | Computed tomography (CT) imaging of the chest. Can show cardiomegaly, pulmonary edema, vascular congestion, and other secondary signs of cardiac dysfunction. Radiologist reviews and writes a report. | None | ECG waveform is joined to the closest ChCT report in a 7-day window | 92,513 (33,447) | 92,513 (33,447) | 51,994 (18,507) | 484 | 2,199 |
| Chest CTA Radiologist Report (ChCTA-RR) | Computed tomography angiography (CTA) targeted to the pulmonary arteries and thoracic aorta that evaluates acute cardiopulmonary conditions like pulmonary embolism or aortic dissection and can show secondary cardiac findings. Radiologist reviews and writes a report. | None | ECG waveform is joined to the closest ChCTA report in a 7-day window | 33,308 (22,125) | 33,308 (22,125) | 49,517 (17,005) | 469 | 2,214 |
F.2 Single source performance of all report types
Table F2 shows the validation set (i.e., not test set) AUROC of all individual clinical note sources. We found that generally the chest CT (ChCT-RR) and chest CTA (ChCTA-RR) reports did not provide good supervision in the single source contrastive learning models. We thus excluded them. Their poor performance might be explained by low mutual information with paired ECGs (given these reports are more focused on pulmonary findings), but also potentially due to the small training set size after joining to an ECG (see Table F1).
Table F2 Linear probe AUROC on the validation set of existing out-of-distribution (OOD) benchmarks. The results are shown for different percentages of available training labels (1%, 10%, 100%). • denotes exclusion from further analysis. Note: these experiments were preliminary with an earlier version of the model, so deviations with the other results in this manuscript are expected.
| Methods | PTBXL-Super | PTBXL-Sub | PTBXL-Form | PTBXL-Rhythm | CPSC2018 | CSN | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | 1% | 10% | 100% | |
| ECG-MR | 88.7 | 91.5 | 92.3 | 77.0 | 87.4 | 88.9 | 64.9 | 79.1 | 86.7 | 81.5 | 96.3 | 97.3 | 83.9 | 90.8 | 92.9 | 81.5 | 89.8 | 94.5 |
| ECG-CR | 88.9 | 92.0 | 93.1 | 80.3 | 87.8 | 90.3 | 67.5 | 80.4 | 88.3 | 91.2 | 96.4 | 98.3 | 86.9 | 92.3 | 94.0 | 79.9 | 91.8 | 97.0 |
| ECHO-CR | 87.3 | 90.0 | 91.7 | 79.2 | 85.6 | 88.6 | 59.0 | 71.6 | 79.1 | 78.9 | 86.2 | 93.1 | 78.3 | 88.6 | 91.7 | 74.0 | 86.7 | 93.2 |
| ChXR-RR | 87.1 | 89.7 | 91.2 | 77.8 | 84.2 | 87.9 | 62.7 | 74.0 | 82.2 | 77.0 | 87.8 | 94.1 | 75.7 | 88.4 | 92.3 | 74.2 | 86.3 | 92.0 |
| DS | 86.5 | 89.9 | 91.6 | 78.3 | 85.7 | 89.1 | 62.9 | 75.9 | 81.8 | 79.8 | 91.5 | 95.7 | 76.7 | 88.8 | 93.3 | 74.3 | 86.4 | 93.5 |
| ChCT-RR • | 85.8 | 88.7 | 90.2 | 77.6 | 84.1 | 86.3 | 56.9 | 71.0 | 78.0 | 80.5 | 87.2 | 92.0 | 71.4 | 84.9 | 88.0 | 70.9 | 83.8 | 87.3 |
| ChCTA-RR • | 82.7 | 85.8 | 87.1 | 72.7 | 79.1 | 81.0 | 56.3 | 66.0 | 73.7 | 75.5 | 81.3 | 87.4 | 67.2 | 79.3 | 82.2 | 66.7 | 78.2 | 82.5 |
F.3 MIMIC-IV-ECG and downstream ECG waveform pre-processing
We deliberately apply minimal pre-processing to the ECG waveforms for MS-ECG-FM pre-training. Each MIMIC-IV-ECG record is 12 leads, 10 s at 500 Hz, in physical units (mV), and the only cleaning step is to replace missing samples with zero.
The downstream benchmark datasets are stored in heterogeneous formats, so we harmonize them to match the pre-training data: lead order is remapped to the MIMIC-IV canonical order, each recording is brought to 10 s at 500 Hz, and amplitudes are converted to millivolts. As with the pre-training data, we apply no filtering or normalization for MS-ECG-FM. For the external baseline methods, we apply the normalization and filtering approach they apply in pre-training so that evaluation is fair. For the reduced-lead evaluations, the retained leads are left unchanged and the absent leads are zero-filled, so the encoder receives its input in the same form as under random lead masking during pre-training.
Supplementary Note G Further details about MS-ECG-FM design and implementation
G.1 ECG waveform encoder architecture
G.1.1 Lead-level tokenizer
Given a 12-lead ECG recording with L leads and T samples, each lead is tokenized independently using a stack of four convolutional blocks whose weights are shared across leads. Each block applies a 1-dimensional convolution (kernel , stride 1) followed by batch normalization, a GELU nonlinearity, and an overlapping max-pooling layer that downsamples time by a factor of 2, 5, 5 and 5 in successive blocks. Channel width grows across blocks (32, 64, 256 and 512) as temporal resolution falls. The tokenizer returns tokens of dimension , where and each token summarizes a patch of samples (0.5 s at 500 Hz); neighboring tokens' receptive fields overlap by roughly one patch. The convolutional weights are shared across leads.
G.1.2 Transformer layers
The L×M lead-level tokens are flattened into a single sequence of LM tokens — 240 for a 10s 12-lead recording — and passed through 12 transformer blocks of width D = 512, with 8 attention heads of dimension 64 and a feed-forward dimension of 2048. Attention is over the joint lead-time sequence, so any token can attend both across time within its own lead and across leads at any time offset; this is the first point in the encoder at which information crosses leads. Temporal order is supplied by a fixed 1-dimensional sinusoidal positional encoding that is shared across leads and generated at the observed token count, so recordings of different durations require no interpolation or re-learning of the encoding. Lead identity is supplied by a learned embedding table holding one D-dimensional vector per lead, which is added to every token of that lead, similar to Na et al. [6]. The two are additive, so each token carries both its time position and its lead identity.
Layer normalization [37] is applied in the transformer block before the attention and feed-forward sublayers. This is compatible with the amplitude-preservation philosophy: by this stage the tokenizer has already mapped absolute voltage into a D-dimensional token. The final ECG representation is obtained by global average pooling over the LM output tokens, both during pre-training and for the linear probe evaluations.
G.2 Contrastive multi-source alignment objective
Projector heads. Both projector heads map into a shared 256-dimensional alignment space and are reused across report types. The ECG projector is a two-layer MLP with hidden dimension of 512 and output dimension of 256. The text projector is a single linear layer from the 5,376-dimensional frozen MedGemma-27B embedding to the same 256-dimensional space, with weights initialized from an orthogonal matrix.
Projector heads are discarded after pre-training: downstream linear probing operates on the backbone embeddings . Projector head embeddings are -normalized before computing the loss.
G.3 MedGemma-27B embedding extraction
To extract report text embeddings, we use vLLM to wrap the MedGemma-27B model and extract embeddings efficiently for each set of reports [39, 80]. To get a report-level embedding, we mean pool report tokens. The raw text embedding dimension is 5,376. We used version google/medgemma-27b-text-it from HuggingFace – https://huggingface.co/google/medgemma-27b-text-it.
G.4 Pre-training recipe
Table G1 summarizes the pre-training configuration. A single NVIDIA H200 GPU was used for pre-training.
Table G1 Pre-training settings for MS-ECG-FM and single-source models.
| Config | Value |
|---|---|
| Optimizer | AdamW |
| Batch size | 512 |
| Learning rate | 2e-4 |
| Weight decay | 0.2 |
| Optimizer momentum | |
| Learning rate schedule | Cosine annealing w/linear warm-up |
| Linear warm-up (start lr) | 5% of steps |
| Final / cosine min LR | 1e-5 |
| Training steps | 75,000 |
| Checkpoint selection metric | RankMe [42] (every 5,000 steps) |
| Precision | bf16-mixed |
| Seed | 42 |
| Temperature init (floor) | 0.07 (0.01) |
| Augmentations | RLM [43] and time-shift |
Supplementary Note H Extended evaluation of ECG foundation models
H.1 Downstream evaluation settings
H.1.1 Linear probing
Table H1 summarizes the training configuration for downstream linear-probing.
Table H1 Linear probe settings for all ECG foundation models.
| Config | Value |
|---|---|
| Optimizer | AdamW |
| Batch size EchoNext-Mini | 1024 |
| Batch size MIMIC-IV-ECG-Ext-ICD | 1024 |
| Batch size PTBXL / CPSC2018 / CSN 1–10% | 16 |
| Batch size PTBXL / CPSC2018 / CSN 100% | 128 |
| Learning rate | 0.001 |
| Weight decay | |
| Optimizer momentum | |
| Learning rate schedule | Cosine annealing w/linear warm-up |
| Linear warm-up (start lr) | |
| Final / cosine min LR | |
| Training epochs | 100 |
| Early stopping | val. AUROC (off for PTBXL/CPSC2018/CSN at 1–10%) |
| Augmentations | None |
H.1.2 Random encoder baseline
In line with Berger et al. [16], we include a randomly initialized encoder as a linear-probe baseline. They recommend this comparison because randomly initialized ECG encoders are often competitive with pre-trained models, so a foundation model should outperform it before its representations are considered useful. The random encoder baseline uses the same ECG encoder architecture as MS-ECG-FM. In the random encoder, each feature is standardized to zero mean and unit variance with a non-affine batch normalization layer before being passed to the linear classifier.
H.2 More details on statistical testing
Resampling a rare label can produce a draw in which one class is absent, leaving the AUROC undefined. We therefore fix the set of labels entering any aggregate before resampling: a label is retained only if it has at least 10 positives and 10 negatives in the full test set. Retained labels can still occasionally have an undefined AUROC in a resample because the patient-level bootstrap does not stratify on prevalence. We therefore exclude any resample in which at least one retained label is undefined, and use this same effective replicate set for all aggregate confidence intervals and tests (this pattern is shared across models, so pairing is preserved). This retains of the 2000 resamples (where the single loss is due to a low-prevalence CSN label), and ensures each replicate's macro-average is taken over the identical label set.
Table 1 is a deliberate exception, because we want the macro-averaged AUROC point estimates there to be consistent with those reported in the prior literature. We therefore average over every label of each dataset, including the low-prevalence ones. We can still formally test differences between methods with the same paired bootstrap: within each replicate we difference the two models' scores label-wise and average over the labels that are non-degenerate in that replicate. A degenerate label drops out of both models simultaneously. This lets us report the de facto benchmark view on its usual terms while adding the formal comparisons that are absent from the literature.
H.3 More details on performance profiles
To add confidence intervals to the performance profiles we compute the estimator for each bootstrap resample b as
The bands in Figures 2, 3 and E1 are bounded by the pointwise 2.5th and 97.5th percentiles of over the effective replicates.
The single source oracle method in Figure 3 takes, on every label, the best score achieved by any single-source model. Writing for the score of the model aligned to report type r on label m, its profile is the same function evaluated on the per-label maxima,
Naturally, this is not a deployable method as it uses information from the test set to select the best method per label. It is intended as a device to characterize the ability of MS-ECG-FM to simultaneously capture the performance benefits of different report types.
References
[1] Gow, B., Pollard, T., Nathanson, L.A., Johnson, A., Moody, B., Fernandes, C., Greenbaum, N., Waks, J.W., Eslami, P., Carbonati, T., et al.: MIMIC-IV-ECG: Diagnostic electrocardiogram matched subset (version 1.0). PhysioNet (2023). RRID:SCR_007345
[2] Wu, Z., Guo, C.: Deep learning and electrocardiography: systematic review of current techniques in cardiovascular disease diagnosis and management. BioMedical Engineering OnLine 24(1), 23 (2025)
[3] Kiyasseh, D., Zhu, T., Clifton, D.A.: Clocs: Contrastive learning of cardiac signals across space, time, and patients. In: International Conference on Machine Learning, pp. 5606–5615 (2021). PMLR
[4] Mehari, T., Strodthoff, N.: Self-supervised representation learning from 12-lead ecg data. Computers in Biology and Medicine 141, 105114 (2022) https://doi.org/10.1016/j.compbiomed.2021.105114
[5] Zhang, H., Liu, W., Shi, J., Chang, S., Wang, H., He, J., Huang, Q.: Maefe: Masked autoencoders family of electrocardiogram for self-supervised pretraining and transfer learning. IEEE Transactions on Instrumentation and Measurement 72, 1–15 (2023) https://doi.org/10.1109/TIM.2022.3228267
[6] Na, Y., Park, M., Tae, Y., Joo, S.: Guiding masked representation learning to capture spatio-temporal relationship of electrocardiogram. In: The Twelfth International Conference on Learning Representations (2024). https://openreview.net/forum?id=WcOohbsF4H
[7] Tian, Y., Li, Z., Jin, Y., Wang, M., Wei, X., Zhao, L., Liu, Y., Liu, J., Liu, C.: Foundation model of ecg diagnosis: Diagnostics and explanations of any form and rhythm on ecg. Cell Reports Medicine 5(12) (2024)
[8] Liu, C., Wan, Z., Ouyang, C., Shah, A., Bai, W., Arcucci, R.: Zero-shot ecg classification with multimodal learning and test-time clinical knowledge enhancement. In: Proceedings of the 41st International Conference on Machine Learning. ICML'24. JMLR.org, Vienna, Austria (2024)
[9] Hung, M.P., Saeed, A., Ma, D.: Boosting masked ECG-text auto-encoders as discriminative learners. In: Forty-second International Conference on Machine Learning (2025). https://openreview.net/forum?id=mM65b81LdM
[10] Wang, F., Xu, J., Yu, L.: From token to rhythm: A multi-scale approach for ECG-language pretraining. In: Forty-second International Conference on Machine Learning (2025). https://openreview.net/forum?id=fUjkoGUre0
[11] Li, J., Aguirre, A.D., Junior, V.M., Jin, J., Liu, C., Zhong, L., Sun, C., Clifford,
G., Westover, M.B., Hong, S.: An electrocardiogram foundation model built on over 10 million recordings. NEJM AI 2(7), 2401033 (2025) https://doi.org/10.1056/AIoa2401033 https://ai.nejm.org/doi/pdf/10.1056/AIoa2401033
[12] Schläpfer, J., Wellens, H.J.: Computer-interpreted electrocardiograms: Benefits and limitations. JACC 70(9), 1183–1192 (2017) https://doi.org/10.1016/j.jacc.2017.07.723 https://www.jacc.org/doi/pdf/10.1016/j.jacc.2017.07.723
[13] Oord, A.v.d., Li, Y., Vinyals, O.: Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748 (2018)
[14] Liang, P.P., Deng, Z., Ma, M.Q., Zou, J.Y., Morency, L.-P., Salakhutdinov, R.: Factorized contrastive learning: Going beyond multi-view redundancy. In: Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S. (eds.) Advances in Neural Information Processing Systems, vol. 36, pp. 32971–32998. Curran Associates, Inc., New Orleans, LA, USA (2023)
[15] Tian, Y., Sun, C., Poole, B., Krishnan, D., Schmid, C., Isola, P.: What makes for good views for contrastive learning? Advances in neural information processing systems 33, 6827–6839 (2020)
[16] Berger, Z.E., Prakah-Asante, D., Guttag, J., Stultz, C.: Position: Evaluation of ECG representations must be fixed. In: Forty-third International Conference on Machine Learning Position Paper Track (2026). https://openreview.net/forum?id=PuoHCDBirR
[17] Attia, Z.I., Harmon, D.M., Behr, E.R., Friedman, P.A.: Application of artificial intelligence to the electrocardiogram. European heart journal 42(46), 4717–4730 (2021)
[18] Siontis, K.C., Noseworthy, P.A., Attia, Z.I., Friedman, P.A.: Artificial intelligence-enhanced electrocardiography in cardiovascular disease management. Nature Reviews Cardiology 18(7), 465–478 (2021)
[19] Yao, X., Rushlow, D.R., Inselman, J.W., McCoy, R.G., Thacher, T.D., Behnken, E.M., Bernard, M.E., Rosas, S.L., Akfaly, A., Misra, A., et al.: Artificial intelligence-enabled electrocardiograms for identification of patients with low ejection fraction: a pragmatic, randomized clinical trial. Nature medicine 27(5), 815–819 (2021)
[20] Galloway, C.D., Valys, A.V., Shreibati, J.B., Treiman, D.L., Petterson, F.L., Gundotra, V.P., Albert, D.E., Attia, Z.I., Carter, R.E., Asirvatham, S.J., Ackerman, M.J., Noseworthy, P.A., Dillon, J.J., Friedman, P.A.: Development and validation of a deep-learning model to screen for hyperkalemia from the electrocardiogram. JAMA Cardiology 4(5), 428–436 (2019) https://doi.org/10.1001/jamacardio.2019.0640
[21] Holmstrom, L., Christensen, M., Yuan, N., Weston Hughes, J., Theurer, J., Jujjavarapu, M., Fatehi, P., Kwan, A., Sandhu, R.K., Ebinger, J., et al.: Deep learning-based electrocardiographic screening for chronic kidney disease. Communications Medicine 3(1), 73 (2023)
[22] Tison, G.H., Zhang, J., Delling, F.N., Deo, R.C.: Automated and interpretable patient ecg profiles for disease detection, tracking, and discovery. Circulation: Cardiovascular Quality and Outcomes 12(9), 005289 (2019)
[23] Wysokinski, W.E., Meverden, R.A., Lopez-Jimenez, F., Harmon, D.M., Medina Inojosa, B.J., Suarez, A.B., Liu, K., Medina Inojosa, J.R., Casanegra, A.I., McBane, R.D., Houghton, D.E.: Electrocardiogram signal analysis with a machine learning model predicts the presence of pulmonary embolism with accuracy dependent on embolism burden. Mayo Clinic Proceedings: Digital Health 2(3), 453–462 (2024) https://doi.org/10.1016/j.mcpdig.2024.03.009
[24] Covassin, N., Liu, K., Bukartyk, J., Timm, P.C., Friedman, P.A., Louis, E.K.S., Attia, Z.I., Somers, V.K.: Deep neural network algorithm using the electrocardiogram for detection of obstructive sleep apnea. JACC: Advances 4(10), 102139 (2025)
[25] Hermann, K., Lampinen, A.: What shapes feature representations? exploring datasets, architectures, and training. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M.F., Lin, H. (eds.) Advances in Neural Information Processing Systems, vol. 33, pp. 9995–10006. Curran Associates, Inc., Virtual (2020)
[26] Dolan, E.D., Moré, J.J.: Benchmarking optimization software with performance profiles. Mathematical programming 91(2), 201–213 (2002)
[27] Agarwal, R., Schwarzer, M., Castro, P.S., Courville, A., Bellemare, M.: Deep reinforcement learning at the edge of the statistical precipice. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems, vol. 34, pp. 29304–29320. Curran Associates, Inc., Virtual (2021)
[28] Reyna, M., Sadr, N., Gu, A., Perez Alday, E.A., Liu, C., Seyedi, S., Shah, A., Clifford, G.: Will Two Do? Varying Dimensions in Electrocardiography: The PhysioNet/Computing in Cardiology Challenge 2021. PhysioNet (2022) https://doi.org/10.13026/34va-7q14. Version 1.0.3
[29] Strothoff, N., Lopez Alcaraz, J.M., Haverkamp, W.: MIMIC-IV-ECG-Ext-ICD: Diagnostic labels for mimic-iv-ecg (version 1.0.0). PhysioNet (2024). RRID:SCR_007345
[30] Wagner, P., Strothoff, N., Bousseljot, R.-D., Kreiseler, D., Lunze, F.I., Samek, W., Schaeffter, T.: PTB-XL, a large publicly available electrocardiography dataset. Scientific data 7(1), 1–15 (2020)
[31] Hughes, J.W., Jing, L., Finer, J., Hartzel, D., Kelsey, C., Long, A., Rocha, D., Ruhl, J., Poterucha, T., Elias, P.: Echonext-mini: A dataset and baseline ai model for detecting structural heart disease from electrocardiograms. NEJM AI 3(5), 2500516 (2026) https://doi.org/10.1056/AIdbp2500516 https://ai.nejm.org/doi/pdf/10.1056/AIdbp2500516
[32] Chiu, I.M., Sahashi, Y., Torbati, S.S., Chugh, S.S., Ouyang, D.: Factors associated with physician modifications to automated ECG interpretations. European Heart Journal - Digital Health, 119 (2025) https://doi.org/10.1093/ehjdh/ztaf119 https://academic.oup.com/ehjdh/advance-article-pdf/doi/10.1093/ehjdh/ztaf119/65224009/ztaf119.pdf
[33] Poterucha, T.J., Jing, L., Ricart, R.P., Adjei-Mosi, M., Finer, J., Hartzel, D., Kelsey, C., Long, A., Rocha, D., Ruhl, J.A., vanMaanen, D., Probst, M.A., Daniels, B., Joshi, S.D., Tastet, O., Corbin, D., Avram, R., Barrios, J.P., Tison, G.H., Chiu, I.-M., Ouyang, D., Volodarskiy, A., Castillo, M., Roedan Oliver, F.A., Malta, P.P., Ye, S., Rosner, G.F., Dizon, J.M., Ali, S.R., Liu, Q., Bradley, C.K., Vaishnava, P., Waksmonski, C.A., DeFilippis, E.M., Agarwal, V., Lebehn, M., Kampaktsis, P.N., Shames, S., Beecy, A.N., Kumaraiah, D., Homma, S., Schwartz, A., Hahn, R.T., Leon, M., Einstein, A.J., Maurer, M.S., Hartman, H.S., Hughes, J.W., Haggerty, C.M., Elias, P.: Detecting structural heart disease from electrocardiograms using AI. Nature 644(8075), 221–230 (2025) https://doi.org/10.1038/s41586-025-09227-0
[34] Lan, X., Wu, F., He, K., Zhao, Q., Hong, S., Feng, M.: GEM: Empowering MLLM for grounded ECG understanding with time series and images. In: The Thirty-ninth Annual Conference on Neural Information Processing Systems (2025). https://openreview.net/forum?id=idtZwmjakN
[35] Hassani, A., Walton, S., Shah, N., Abuduweili, A., Li, J., Shi, H.: Escaping the big data paradigm with compact transformers (2021) arXiv:2104.05704 [cs.CV]
[36] Ioffe, S., Szegedy, C.: Batch normalization: Accelerating deep network training by reducing internal covariate shift. In: Bach, F., Blei, D. (eds.) Proceedings of the 32nd International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 37, pp. 448–456. PMLR, Lille, France (2015). https://proceedings.mlr.press/v37/ioffe15.html
[37] Ba, J.L., Kiros, J.R., Hinton, G.E.: Layer normalization. arXiv preprint arXiv:1607.06450 (2016)
[38] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. In: International Conference on Machine Learning, pp. 8748–8763 (2021). PmLR
[39] Sellergren, A., Kazemzadeh, S., Jaroensri, T., Kiraly, A., Traverse, M.,
Kohlberger, T., Xu, S., Jamil, F., Hughes, C., Lau, C., et al.: Medgemma technical report. arXiv preprint arXiv:2507.05201 (2025)
[40] Zhai, X., Wang, X., Mustafa, B., Steiner, A., Keysers, D., Kolesnikov, A., Beyer, L.: Lit: Zero-shot transfer with locked-image text tuning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18123–18133 (2022)
[41] Strodthoff, N., Lopez Alcaraz, J.M., Haverkamp, W.: Prospects for artificial intelligence-enhanced electrocardiogram as a unified screening tool for cardiac and non-cardiac conditions: an explorative study in emergency care. European Heart Journal-Digital Health 5(4), 454–460 (2024)
[42] Garrido, Q., Balestriero, R., Najman, L., Lecun, Y.: RankMe: Assessing the downstream performance of pretrained self-supervised representations by their rank. In: Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., Scarlett, J. (eds.) Proceedings of the 40th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 202, pp. 10929–10974. PMLR, Honolulu, Hawaii, USA (2023). https://proceedings.mlr.press/v202/garrido23a.html
[43] Oh, J., Chung, H., Kwon, J.-m., Hong, D.-g., Choi, E.: Lead-agnostic self-supervised learning for local and global representations of electrocardiogram. In: Conference on Health, Inference, and Learning, pp. 338–353 (2022). PMLR
[44] Liu, F., Liu, C., Zhao, L., Zhang, X., Wu, X., Xu, X., Liu, Y., Ma, C., Wei, S., He, Z., et al.: 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 (2018)
[45] Zheng, J., Guo, H., Chu, H.: A large scale 12-lead electrocardiogram database for arrhythmia study (version 1.0. 0). PhysioNet (2022) https://doi.org/10.13026/wgex-er52.RRID:SCR_007345
[46] Zheng, J., Chu, H., Struppa, D., Zhang, J., Yacoub, S.M., El-Askary, H., Chang, A., Ehwerhemuepha, L., Abudayyeh, I., Barrett, A., et al.: Optimal multi-stage arrhythmia classification approach. Scientific reports 10(1), 2898 (2020)
[47] Elias, P., Finer, J.: EchoNext: A dataset for detecting echocardiogram-confirmed structural heart disease from ECGs. PhysioNet (2025) https://doi.org/10.13026/3ykd-bf14
[48] Al-Zaiti, S.S., Martin-Gill, C., Zègre-Hemsey, J.K., Bouzid, Z., Faramand, Z., Alrawashdeh, M.O., Gregg, R.E., Helman, S., Riek, N.T., Kraevsky-Phillips, K., et al.: Machine learning for ecg diagnosis and risk stratification of occlusion myocardial infarction. Nature Medicine 29(7), 1804–1813 (2023)
[49] Kim, S.: Learning general representation of 12-lead electrocardiogram with a joint-embedding predictive architecture. arXiv preprint arXiv:2410.08559 (2024)
[50] McKeen, K., Masood, S., Toma, A., Rubin, B., Wang, B.: Ecg-fm: An open electrocardiogram foundation model. JAMIA open 8(5), 122 (2025)
[51] Coppola, E., Savardi, M., Massussi, M., Adamo, M., Metra, M., Signoroni, A.: Hubert-ecg as a self-supervised foundation model for broad and scalable cardiac applications. medRxiv (2025) https://doi.org/10.1101/2024.11.14.24317328 https://www.medrxiv.org/content/early/2025/07/31/2024.11.14.24317328.full.pdf
[52] Jin, J., Wang, H., Li, H., Li, J., Pan, J., Hong, S.: Reading your heart: Learning ECG words and sentences via pre-training ECG language model. In: The Thirteenth International Conference on Learning Representations (2025). https://openreview.net/forum?id=6Hz1Ko087B
[53] Hannun, A.Y., Rajpurkar, P., Haghpanahi, M., Tison, G.H., Bourn, C., Turakhia, M.P., Ng, A.Y.: Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nature medicine 25(1), 65–69 (2019)
[54] Ribeiro, A.H., Ribeiro, M.H., Paixão, G.M., Oliveira, D.M., Gomes, P.R., Canazart, J.A., Ferreira, M.P., Andersson, C.R., Macfarlane, P.W., Meira Jr, W., et al.: Automatic diagnosis of the 12-lead ecg using a deep neural network. Nature communications 11(1), 1760 (2020)
[55] Attia, Z.I., Noseworthy, P.A., Lopez-Jimenez, F., Asirvatham, S.J., Deshmukh, A.J., Gersh, B.J., Carter, R.E., Yao, X., Rabinstein, A.A., Erickson, B.J., et al.: An artificial intelligence-enabled ecg algorithm for the identification of patients with atrial fibrillation during sinus rhythm: a retrospective analysis of outcome prediction. The Lancet 394(10201), 861–867 (2019)
[56] Noseworthy, P.A., Attia, Z.I., Behnken, E.M., Giblon, R.E., Bews, K.A., Liu, S., Gosse, T.A., Linn, Z.D., Deng, Y., Yin, J., et al.: Artificial intelligence-guided screening for atrial fibrillation using electrocardiogram during sinus rhythm: a prospective non-randomised interventional trial. The Lancet 400(10359), 1206–1212 (2022)
[57] Goto, S., Kimura, M., Katsumata, Y., Goto, S., Kamatani, T., Ichihara, G., Ko, S., Sasaki, J., Fukuda, K., Sano, M.: Artificial intelligence to predict needs for urgent revascularization from 12-leads electrocardiography in emergency patients. PloS one 14(1), 0210103 (2019)
[58] Al-Zaiti, S., Besomi, L., Bouzid, Z., Faramand, Z., Frisch, S., Martin-Gill, C., Gregg, R., Saba, S., Callaway, C., Sejdić, E.: Machine learning-based prediction of acute coronary syndrome using only the pre-hospital 12-lead electrocardiogram.
Nature communications 11(1), 3966 (2020)
[59] Awasthi, S., Sachdeva, N., Gupta, Y., Anto, A.G., Asfahan, S., Abbou, R., Bade, S., Sood, S., Hegstrom, L., Vellanki, N., et al.: Identification and risk stratification of coronary disease by artificial intelligence-enabled ecg. EClinicalMedicine 65 (2023)
[60] Park, J., Kim, J., Kang, S.-H., Lee, J., Hong, Y., Chang, H.-J., Cho, Y., Yoon, Y.E.: Artificial intelligence-enhanced electrocardiography analysis as a promising tool for predicting obstructive coronary artery disease in patients with stable angina. European Heart Journal-Digital Health 5(4), 444–453 (2024)
[61] Banerjee, A., Salian, R.S., Vemulapalli, H.S., Sriramoju, A.K., Prajapati, P., Rodriguez-Riascos, J.F., Muthu, P., Iyengar, S.K., Shen, W., Gupta, S.K., et al.: Enhancement of stress ecg performance with machine learning: A single-center study. JACC: Advances 4(10_Part_2), 102141 (2025)
[62] Attia, Z.I., Kapa, S., Lopez-Jimenez, F., McKie, P.M., Ladewig, D.J., Satam, G., Pellikka, P.A., Enriquez-Sarano, M., Noseworthy, P.A., Munger, T.M., et al.: Screening for cardiac contractile dysfunction using an artificial intelligence-enabled electrocardiogram. Nature medicine 25(1), 70–74 (2019)
[63] Attia, Z.I., Kapa, S., Yao, X., Lopez-Jimenez, F., Mohan, T.L., Pellikka, P.A., Carter, R.E., Shah, N.D., Friedman, P.A., Noseworthy, P.A.: Prospective validation of a deep learning electrocardiogram algorithm for the detection of left ventricular systolic dysfunction. Journal of cardiovascular electrophysiology 30(5), 668–674 (2019)
[64] Lee, E., Ito, S., Miranda, W.R., Lopez-Jimenez, F., Kane, G.C., Asirvatham, S.J., Noseworthy, P.A., Friedman, P.A., Carter, R.E., Borlaug, B.A., et al.: Artificial intelligence-enabled ecg for left ventricular diastolic function and filling pressure. npj Digital Medicine 7(1), 4 (2024)
[65] Elias, P., Poterucha, T.J., Rajaram, V., Moller, L.M., Rodriguez, V., Bhave, S., Hahn, R.T., Tison, G., Abreau, S.A., Barrios, J., et al.: Deep learning electrocardiographic analysis for detection of left-sided valvular heart disease. Journal of the American College of Cardiology 80(6), 613–626 (2022)
[66] Li, Y., Zhao, K., Wu, J.: Machine learning in left ventricular hypertrophy detection: Systematic review and meta-analysis. Journal of Medical Internet Research 28, 76637 (2026)
[67] Ko, W.-Y., Siontis, K.C., Attia, Z.I., Carter, R.E., Kapa, S., Ommen, S.R., Demuth, S.J., Ackerman, M.J., Gersh, B.J., Arruda-Olson, A.M., et al.: Detection of hypertrophic cardiomyopathy using a convolutional neural network-enabled electrocardiogram. Journal of the American College of Cardiology 75(7), 722–733 (2020)
[68] Shrivastava, S., Cohen-Shelly, M., Attia, Z.I., Rosenbaum, A.N., Wang, L., Giudicessi, J.R., Redfield, M., Bailey, K., Lopez-Jimenez, F., Lin, G., et al.: Artificial intelligence-enabled electrocardiography to screen patients with dilated cardiomyopathy. The American Journal of Cardiology 155, 121–127 (2021)
[69] Carrick, R.T., Carruth, E.D., Gasperetti, A., Murray, B., Tichnell, C., Gaine, S., Sampognaro, J., Muller, S.A., Asatryan, B., Haggerty, C., et al.: Improved diagnosis of arrhythmogenic right ventricular cardiomyopathy using electrocardiographic deep learning. Heart Rhythm 22(4), 1080–1088 (2025)
[70] Vaid, A., Johnson, K.W., Badgeley, M.A., Somani, S.S., Bicak, M., Landi, I., Russak, A., Zhao, S., Levin, M.A., Freeman, R.S., et al.: Using deep-learning algorithms to simultaneously identify right and left ventricular dysfunction from the electrocardiogram. Cardiovascular Imaging 15(3), 395–410 (2022)
[71] Bos, J.M., Attia, Z.I., Albert, D.E., Noseworthy, P.A., Friedman, P.A., Ackerman, M.J.: Use of artificial intelligence and deep neural networks in evaluation of patients with electrocardiographically concealed long qt syndrome from the surface 12-lead electrocardiogram. JAMA cardiology 6(5), 532–538 (2021)
[72] Kwon, J.-m., Jung, M.-S., Kim, K.-H., Jo, Y.-Y., Shin, J.-H., Cho, Y.-H., Lee, Y.-J., Ban, J.-H., Jeon, K.-H., Lee, S.Y., et al.: Artificial intelligence for detecting electrolyte imbalance using electrocardiography. Annals of Noninvasive Electrocardiology 26(3), 12839 (2021)
[73] Goto, S., Mahara, K., Beussink-Nelson, L., Ikura, H., Katsumata, Y., Endo, J., Gaggin, H.K., Shah, S.J., Itabashi, Y., MacRae, C.A., et al.: Artificial intelligence-enabled fully automated detection of cardiac amyloidosis using electrocardiograms and echocardiograms. Nature communications 12(1), 2726 (2021)
[74] Liu, Y.-L., Lin, C.-S., Cheng, C.-C., Lin, C.: A deep learning algorithm for detecting acute pericarditis by electrocardiogram. Journal of Personalized Medicine 12(7), 1150 (2022)
[75] Kwon, J.-m., Cho, Y., Jeon, K.-H., Cho, S., Kim, K.-H., Baek, S.D., Jeung, S., Park, J., Oh, B.-H.: A deep learning algorithm to detect anaemia with ecgs: a retrospective, multicentre study. The Lancet Digital Health 2(7), 358–367 (2020)
[76] Ahn, J.C., Attia, Z.I., Rattan, P., Mullan, A.F., Buryska, S., Allen, A.M., Kamath, P.S., Friedman, P.A., Shah, V.H., Noseworthy, P.A., et al.: Development of the ai-cirrhosis-ecg score: an electrocardiogram-based deep learning model in cirrhosis. Official journal of the American College of Gastroenterology—ACG 117(3), 424–432 (2022)
[77] Choi, B., Jang, J.H., Son, M., Lee, M.S., Jo, Y.Y., Jeon, J.Y., Jin, U., Soh, M., Park, R.W., Kwon, J.m.: Electrocardiographic biomarker based on machine learning for detecting overt hyperthyroidism. European Heart Journal-Digital Health
3(2), 255–264 (2022)
[78] Jin, Q., Kim, W., Chen, Q., Comeau, D.C., Yeganova, L., Wilbur, W.J., Lu, Z.: Medcpt: Contrastive pre-trained transformers with large-scale pubmed search logs for zero-shot biomedical information retrieval. Bioinformatics 39(11), 651 (2023)
[79] Johnson, A., Pollard, T., Horng, S., Celi, L., Mark, R.: Mimic-iv-note: Deidentified free-text clinical notes. PhysioNet (2023) https://doi.org/10.13026/1n74-ne17
[80] Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C.H., Gonzalez, J.E., Zhang, H., Stoica, I.: Efficient memory management for large language model serving with pagedattention. In: Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles (2023)