TU Munich's C-TRIP Predicts Heart Health From MRI Scans Doctors Throw Away
A tri-modal contrastive learning framework predicts cardiac phenotypes from throwaway localizer scans, ECG, and tabular data, sidestepping full cine MRI.
ProTakeaways
- C-TRIP predicts 18 cardiac phenotypes from throwaway localizer MRI scans normally discarded after planning.
- Three-stage pipeline: ViT masked autoencoders, localizer-centric contrastive alignment, then MLP regression head.
- Trained on ~20,000 UK Biobank subjects with paired localizer, 12-lead ECG, and tabular data.
- Matches supervised CMR baseline on structural phenotypes and stays competitive on functional metrics like LVEF.
- Holds up in low-data regimes, with Pearson R above 0.70 using only 1% of fine-tuning samples.
- No public code released; validation limited to single-vendor UK Biobank protocol.
Every cardiac MRI exam starts with a few seconds of coarse localizer images that radiologists use to plan the real scan, then throw away. A group from the Technical University of Munich and Imperial College London built a system that mines those discarded scans, combines them with an ECG and basic patient data during training, and predicts cardiac health metrics that normally require a full cine MRI protocol. They call it C-TRIP, short for Cardiac Tri-modal Representations for Imaging Phenotypes.
Why the gold standard is a bottleneck
Cardiovascular diseases are the leading cause of death, and clinicians rely on cardiac phenotypes like ejection fraction, ventricular mass, and end-diastolic volume to assess risk. These metrics are derived from cine cardiac magnetic resonance imaging (CMR), which is costly and requires high spatio-temporal resolution. A full CMR study needs ECG gating, dedicated hardware, breath-holds, and time on an expensive scanner.
The workaround the authors propose is opportunistic. Every MR examination begins with rapid and coarse localizers for scan planning, which are discarded thereafter. Despite non-diagnostic image quality and lack of temporal information, localizers can provide valuable structural information rapidly. If you can squeeze phenotype predictions out of those throwaway frames, you get a cheap screening tool that piggybacks on scans already being done for other reasons.
Three modalities, one anchor
C-TRIP aligns three data streams that hospitals already collect:
- Localizer MRI gives cheap spatial anatomy but no motion.
- 12-lead ECG gives temporal electrical activity but no anatomy.
- Tabular metadata (BMI, sex, smoking history, QRS duration, and similar features) gives population-level context.
The design choice that matters most is that the localizer sits at the center. The ECG and tabular data are pulled toward it during training, but they are never directly aligned with each other. The authors argue this prevents the model from exploiting non-imaging shortcuts like older patients tending to have specific ECG rhythms, which would let the network cheat by ignoring the actual image.

How the training pipeline works
The pipeline runs in three sequential stages, and only the localizer encoder is used at inference time.
- Stage 1, uni-modal pretraining. Three separate Vision Transformer masked autoencoders learn representations for each modality. All encoders process the 25% visible input, while lightweight decoders reconstruct the randomly masked 75% of the data, minimizing MSE (with cross-entropy for categorical tabular features). ECG signals are chopped into 1D patches; tabular features are tokenized into a shared embedding space.
- Stage 2, contrastive alignment. The three encoders are projected into a shared 256-dimensional space and trained with a localizer-centric InfoNCE loss. The objective pulls the localizer, ECG, and tabular embeddings from the same patient together while pushing embeddings from different patients in the batch apart. Two learnable temperature parameters, one for each pairing, control the sharpness of the contrast.
- Stage 3, phenotype regression. A lightweight MLP head is attached to the localizer encoder and fine-tuned to predict 18 cardiac phenotypes. At this point, the ECG and tabular branches are gone. Inference uses only the localizer image.
Benchmarks on UK Biobank
The team trained on paired multi-modal data from the UK Biobank, with a subject-level split of 14,577 train, 3,177 validation, and 3,123 test participants. Ground truth phenotypes came from full CMR segmentations. Four headline metrics were used to compare methods: left and right ventricular ejection fraction (LVEF, RVEF), left ventricular mass (LVM), and right ventricular end-diastolic volume (RVEDV).
The pattern in the results is worth walking through. A supervised model trained directly on cine CMR unsurprisingly wins on functional metrics like LVEF, since it sees actual cardiac motion. A supervised model on localizers alone is decent on structural metrics but wobbly on functional ones. A supervised ECG-only model performs worst overall. C-TRIP lands close to CMR on functional CPs and matches or beats the localizer baseline on structural CPs, with the tightest limits of agreement across most measurements.
The low-data behavior is where the multi-modal alignment earns its keep. When only 1% of the fine-tuning subset is used, C-TRIP still hits Pearson R above 0.70 on structural phenotypes, while the single-modality baselines collapse. That matters for hospitals that would never have UK Biobank-sized labeled cohorts of their own.
What the model actually learns
Attention maps from the final ViT block show C-TRIP focusing on the left ventricle donut and right ventricle crescent in short-axis slices, while the supervised localizer baseline leaks attention into the lungs and chest wall. The UMAP visualization of the shared latent space shows that localizer and tabular embeddings merge tightly after alignment because males have larger LVMs, LVEF is influenced by sex, and body scale strongly correlates with heart anatomy. The ECG cluster stays more distinct, which the authors read as evidence that electrophysiology carries information the images do not.
Where it falls short
The authors are direct about the caveats. UK Biobank is a gold-standard resource for non-invasive cardiac assessment, but it is also homogeneous: one vendor, one scanner type, and standardized localizer acquisition. Real-world localizers are not standardized across sites, so validating C-TRIP on multi-vendor clinical data is the obvious next step. The CMR baseline in the paper also uses only three time frames per subject to keep the architectures comparable, which understates the full diagnostic capacity of clinical CMR. And functional phenotypes, particularly LVEF, remain harder to nail from static localizers than structural ones, since the localizer cannot see the heart move.
Code and availability
The paper does not link to a public code release or pretrained weights. The methodology builds on published components: ViT masked autoencoders, InfoNCE contrastive alignment, and prior work on visual-tabular cardiac representations and CMR-to-ECG contrastive transfer, so a reasonable reimplementation on UK Biobank data is plausible for anyone with access.
The bigger picture is that opportunistic screening keeps getting more credible. If a scan you were going to do anyway can also flag reduced ejection fraction or abnormal ventricular mass, the marginal cost of cardiac risk assessment drops close to zero. C-TRIP is not going to replace a cardiologist reading a full CMR, but it points at a plausible way to route more patients toward one before they need it.