Skip to main content
Back

TUM's Echo2ECG Reads Heart Structure From Simple ECGs, Beats Models 18x Bigger

Echo2ECG teaches a 7M-parameter ECG model to detect structural heart conditions by training it against full multi-view echocardiograms, beating models 18x its size

Pro

  • Echo2ECG is a new self-supervised framework that trains an ECG encoder against full multi-view echocardiograms to detect structural heart conditions from ECG alone.
  • The key innovation is aligning ECGs to complete multi-view echo studies rather than a single echo view, resolving a representational mismatch in prior methods.
  • At just 7.1M parameters, it outperforms models up to 18x larger, including EchoingECG (126.6M params), on structural heart disease classification.
  • With only 1% of training data, Echo2ECG's features beat nearly all baselines trained on 100% of data -- a strong signal of representation quality.
  • It also enables cross-modal retrieval: finding echo studies with similar cardiac structure using only an ECG as a query.
  • Code is open-source at github.com/michelleespranita/Echo2ECG; pre-trained on ~12K ECG-echo pairs from TUM hospital.

An electrocardiogram is one of the most accessible tools in medicine: cheap, fast, and available almost everywhere. But it has a fundamental blind spot. While ECGs are highly effective at diagnosing electrical heart abnormalities like atrial fibrillation, they cannot directly measure cardiac morphological phenotypes such as left ventricular ejection fraction (LVEF). That measurement, which tells you how well the heart is actually pumping, requires an echocardiogram -- a far more expensive and specialist-dependent procedure.

A team from the Technical University of Munich has now published Echo2ECG, a self-supervised framework that closes this gap by training an ECG encoder against full multi-view echocardiograms. The result is a 7.1M-parameter model that can detect structural cardiac conditions from a standard ECG alone -- and it outperforms models nearly 18 times its size.

Why single-view echos were the wrong teacher

The core insight here is about what previous approaches got wrong. Prior multimodal methods tried to teach ECG models about cardiac structure by aligning them against a single echocardiogram view -- for example, the apical four-chamber (A4C) view, which shows the heart's four chambers from below. The problem is that existing self-supervised methods suffer from a representational mismatch by aligning ECGs to single-view Echos, which only capture local, spatially restricted anatomical snapshots.

This is a fundamental mismatch. An ECG captures the heart's global electrical activity across all chambers and valves simultaneously. A single echo view captures only a slice of the anatomy. Trying to align the two is like asking someone to describe a building's entire floor plan from a single photograph of one room. A single Echo view captures only part of the heart -- the A4C view captures the four chambers but not the aortic valve, which is visible in the PSAX view. In clinical practice, cardiologists integrate information across multiple views to make a diagnosis, and Echo2ECG is designed to mirror that process.

Echo2ECG architecture diagram showing ECG and multi-view echo encoders, view aggregation, and contrastive alignment

How the framework is built

Echo2ECG has four main components working together:

  1. ECG Encoder: A 12-layer tiny transformer initialized from OTIS, a time-series foundation model pre-trained on a multi-domain corpus including MIMIC-IV-ECG. Each ECG is represented by the mean token embedding across the sequence.
  2. Echo Encoder: A MViTv2 (a multiscale video transformer) initialized from EchoPrime, which was trained via multimodal contrastive learning between Echo views and clinical reports from an in-house Cedars-Sinai dataset. This encoder is kept frozen during training -- only the ECG side learns.
  3. Echo View Aggregator: An attention pooling module that takes all the individual view-level embeddings from a single echo study (up to 128 views) and compresses them into one study-level representation. Attention pooling lets the model learn which views are most informative, rather than treating all views equally.
  4. Projection Layers: Modality-specific linear layers that map both the ECG and the aggregated echo embeddings into a shared 512-dimensional space for contrastive alignment.

The framework uses the CLIP contrastive objective: ECG and Echo study embeddings are pulled together for matched pairs and pushed apart for unmatched pairs within a batch. Crucially, the loss runs in both directions -- ECG-to-Echo and Echo-to-ECG -- and the final objective is a weighted combination of both. The ECG encoder, the Echo view aggregator, and the projection layers are fully trainable, while the Echo encoder is kept frozen. Overall, the framework has 12.5M trainable parameters and is trained for 50 epochs.

The training data

The model is pre-trained on paired ECG-Echo studies collected at TUM Klinikum Rechts der Isar. An ECG and an Echo study are a valid pair if they were acquired within 7 days of each other. The training set contains 11,859 pairs from 6,836 patients, with a total of 179,571 individual echo views. ECGs are 12-lead, 10-second recordings at 500 Hz.

For evaluation, the team tested on three separate cohorts: an internal TUM dataset, the publicly available EchoNext dataset, and the UK Biobank. This cross-cohort evaluation is important -- it tests whether the learned representations actually generalize beyond the hospital where the model was trained.

Beating models 18x its size

The results are striking, especially given the model's size. Echo2ECG has 7.1M parameters -- the same as its base ECG encoder OTIS. The largest competitor, EchoingECG, has 126.6M parameters.

On LVEF classification (predicting whether the heart's pumping function is reduced, mildly reduced, or normal):

  • Echo2ECG achieves the highest AUROC on the internal dataset and on EchoNext, improving AUROC by 5.2% and 2.7% respectively over the second-best model on each dataset.
  • On UK Biobank, it ranks second behind PTACL -- a model that was pre-trained using cardiac MRI, a modality that is simply better than echo for LVEF quantification.

On structural heart disease (SHD) classification, the data efficiency story is even more compelling:

  • A kNN classifier trained on just 1% of the ECG features extracted by Echo2ECG outperforms nearly all other models trained on the full 100% dataset.
  • A kNN trained on just 0.1% of Echo2ECG's features outperforms all competing models trained on the same amount of data -- including EchoingECG -- while Echo2ECG remains 18x smaller.
Performance comparison graphs showing Echo2ECG outperforming baselines on SHD classification across training data percentages

The model was also tested on a cross-modal retrieval task: given a query ECG, can the model find echo studies from patients with similar cardiac structure? Echo2ECG achieves the highest Precision@1 and lowest mean rank across all four cardiac phenotypes tested (LV end-diastolic volume, end-systolic volume, stroke volume, and ejection fraction). Notably, EchoingECG -- the closest prior work -- actually performs worse than random retrieval on this task, likely because its training objective prioritizes ECG-text alignment over direct ECG-echo alignment.

The ablation tells the real story

The paper's ablation study cleanly isolates what actually drives the gains. Switching from single-view to multi-view alignment improves AUROC on internal LVEF classification from 0.747 to 0.775 (mean pool) and 0.785 (attention pool). Multi-view alignment consistently outperforms single-view alignment, with attention pooling proving most effective at distilling key morphological features into ECG representations. This confirms that the architectural choice -- aggregating all echo views rather than picking one -- is the core innovation, not just scale or better encoders.

Where it falls short

The authors are candid about the limitations:

  • No temporal synchronization: The model does not account for beat- or phase-level alignment between ECGs and echos. An ECG captures electrical events in milliseconds; an echo captures mechanical motion over a full cardiac cycle. Linking these temporally could unlock even richer representations.
  • Paired data requirement: Although Echo2ECG does not rely on text reports, it still requires paired ECG-Echo studies, which may be scarce at scale. This limits how far the pre-training can be pushed without significant data collection infrastructure.
  • Single institution pre-training: The model is pre-trained on data from one hospital. While the cross-dataset evaluation is encouraging, broader pre-training data would strengthen the generalization claims.

What this unlocks in practice

The practical implication is significant. Structural heart disease -- conditions like reduced ejection fraction, valve disease, and hypertrophic cardiomyopathy -- often goes undetected until it is advanced, partly because echocardiography is not routinely performed. AI-based ECG models have demonstrated the ability to detect morphological phenotypes such as left-sided valvular heart disease and hypertrophic cardiomyopathy, enabling early and accessible health screening. Echo2ECG pushes this further by producing ECG features that are rich enough to be used as-is, without fine-tuning, for a range of structural phenotype tasks.

The cross-modal retrieval capability is also practically interesting. A clinician could query a database of echo studies using only a patient's ECG to find structurally similar cases -- useful for rare disease identification or for building training datasets. The code is available on GitHub, and the model is built on top of publicly accessible foundation models (OTIS and EchoPrime), making it relatively straightforward to reproduce and extend.

The broader lesson from Echo2ECG is about the right level of granularity for cross-modal alignment in medicine. Matching a global signal to a partial anatomical view was always a shaky foundation. Matching it to a complete, multi-angle picture of the organ -- the way a clinician actually reads the data -- turns out to matter a great deal.