Unlocking the diagnostic potential of electrocardiograms through information transfer from cardiac magnetic resonance imaging

Özgün Turgut, Philip Müller, Paul Hager, Suprosanna Shit, Sophie Starck, Martin J. Menten, Eimo Martens, Daniel Rueckert

TL;DR

This paper presents a novel self-supervised pre-training strategy that transfers high-fidelity structural information from expensive Cardiac Magnetic Resonance (CMR) imaging to low-cost, ubiquitous electrocardiograms (ECGs). By combining masked data modeling with multimodal contrastive learning, the authors enable a standard ECG to predict cardiovascular disease risks and cardiac phenotypes with accuracy levels previously reserved for MRI, improving performance by up to 27%.

What Problem Does This Paper Address?

Cardiovascular disease (CVD) diagnosis often involves a trade-off between accessibility and detail. The electrocardiogram (ECG) is the frontline tool: it’s cheap, fast, and records the heart's electrical activity. However, it struggles to provide precise spatial or structural information about the heart's anatomy.

Conversely, Cardiac Magnetic Resonance (CMR) imaging is the gold standard for structural detail, allowing clinicians to see exactly how the heart is shaped and moving. But CMR is expensive, time-consuming, and requires specialized personnel, making it unsuitable for routine mass screening.

The authors aim to bridge this gap: Can we "teach" an ECG model to recognize the structural patterns typically only visible in a CMR scan? If successful, this would allow for high-quality cardiac screening using only a standard ECG at the point of care.

Methods

The researchers developed a three-stage training pipeline designed to maximize information transfer between modalities:

  1. Masked Data Modeling (MDM): The ECG signal encoder (a Vision Transformer) is first pre-trained unimodally on large amounts of unlabeled ECG data. Using a "Masked Autoencoder" approach, the model learns to reconstruct missing parts of an ECG signal. A high masking ratio (80%) forces the model to learn dense, meaningful representations rather than just memorizing local patterns. Masked Data Modeling (MDM) pipeline
Masked Data Modeling (MDM) pipeline
  1. Multimodal Contrastive Learning (MMCL): The pre-trained ECG encoder is then paired with a CMR image encoder (ResNet50). Using a CLIP-style contrastive loss, the models are trained to align their representations in a shared latent space. This step effectively "grounds" the electrical ECG signal in the physical reality of the CMR image. Multimodal Contrastive Learning (MMCL) pipeline
Multimodal Contrastive Learning (MMCL) pipeline
  1. Fine-tuning and Inference: Finally, the CMR encoder is discarded. The enriched ECG encoder is fine-tuned on specific downstream tasks, such as predicting disease risk (e.g., Atrial Fibrillation) or anatomical phenotypes (e.g., Left Ventricular Ejection Fraction). Overview of the training and inference process
Overview of the training and inference process

Datasets

The study utilizes the UK Biobank, a massive biomedical database.

  • Scale: 40,044 unique subjects with paired 12-lead ECG and CMR imaging data.
  • Split: 28,030 subjects for training, with the remainder used for validation and testing.
  • Targets: The models were evaluated on 3 major diseases (Coronary Artery Disease, Atrial Fibrillation, and Diabetes Mellitus) and 61 distinct cardiac phenotypes derived from CMR images.

Key Insights and Ideas

  • The Power of Pre-conditioning: A major finding is that MDM is a crucial prerequisite for successful multimodal transfer. By first removing the inherent redundancy in ECG signals through masking, the model becomes much more receptive to the structural information provided by the CMR images in the second stage.
  • ECG Outperforming CMR: In a surprising result, the multimodally trained ECG model actually outperformed a fully supervised CMR-only model for predicting certain disease risks (see Table I). This suggests that the ECG captures functional signatures that, when properly interpreted, are more predictive of systemic risk than a static structural snapshot.
  • Spatial Grounding: Through a patch-based interpretability module, the authors qualitatively showed that the ECG encoder learns to focus on relevant anatomical regions, such as the left ventricle, even though it never "sees" an image during inference.
  • Low-Data Efficiency: The approach is remarkably robust in low-data regimes, significantly outperforming supervised baselines when only 1% or 10% of labeled samples are available.

Key Results

The proposed method, MMCL w/ MDM, consistently outperformed all baselines across both classification and regression tasks:

  • Disease Risk Prediction: The model achieved superior ROC AUC scores for Coronary Artery Disease (73.00%), Atrial Fibrillation (74.11%), and Diabetes Mellitus (75.56%), surpassing models trained on tabular data or CMR images alone. Comparison of diagnostic modalities for risk prediction
  • Phenotype Prediction: The model showed a 27.59% improvement in predicting cardiac phenotypes compared to supervised baselines. It successfully estimated complex metrics like Left Ventricular End-Diastolic Volume (LVEDV) solely from the electrical signal. Prediction of cardiac imaging phenotypes from ECG data
  • Self-Supervised Superiority: Compared to other state-of-the-art self-supervised methods like SimCLR or CLOCS, the MDM-based approach provided a significantly stronger foundation for multimodal transfer. Comparison against other self-supervised baseline models
Comparison of diagnostic modalities for risk prediction
Prediction of cardiac imaging phenotypes from ECG data
Comparison against other self-supervised baseline models

Limitations and Future Work

  • Data Scarcity: While the model only needs ECGs for inference, it requires large-scale paired ECG-CMR data for pre-training. Such datasets are currently rare outside of major biobanks.
  • Demographic Bias: The UK Biobank cohort is 95% white. The authors acknowledge that the model's performance and fairness across diverse ethnicities need further investigation.
  • Temporal Alignment: Future work could explore "local" alignment—matching specific time points in the ECG cycle to specific frames in a CMR movie (cine-MRI)—to further refine the information transfer.

Summary updated

BibTeX
@article{turgut2025unlocking,
  author = {Özgün Turgut and Philip Müller and Paul Hager and Suprosanna Shit and Sophie Starck and Martin J. Menten and Eimo Martens and Daniel Rueckert},
  title = {{Unlocking the diagnostic potential of electrocardiograms through information transfer from cardiac magnetic resonance imaging}},
  journal = {Medical Image Analysis},
  year = {2025},
  doi = {10.1016/j.media.2024.103451},
}
Figure