arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.07662

MS-ECG-FM: Towards a More Universal Electrocardiogram Foundation Model for Health Monitoring using Multi-source Contrastive Learning

Robert A. Lewis, I-Min Chiu, Kyle Verrier, Karthik Jayaraman Raghuram, Francoise Marvel, Salar Abbaspourazad, Anshuman Mishra, Guillermo Sapiro, Andrew C. Miller, Joseph Futoma

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,

Figure

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

Figure

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.

References (79)