Echoes of The Heart
1) Motivation and Clinical Problem
Clinically useful echocardiography machine learning models are severely bottlenecked by a lack of labeled data. Public echocardiography datasets are limited in size, diversity, and clinical annotation, while much larger institutional datasets cannot readily be shared because of privacy and governance constraints. This fragmentation is a core problem: because data cannot easily move between institutions, models tend to be trained on narrow, single-site datasets, which limits their generalizability across the diverse patient populations, imaging equipment, and acquisition protocols. Synthetic datasets are one solution to this problem. However, existing solutions that generate synthetic echocardiograms focus on pixel-space video generation, which incurs high computational costs. This is often unnecessary as downstream models only consume latent representations.
The motivation of this project is to generate synthetic data directly in the embedding space of an echo foundation model. Latent-space generation is substantially less computationally demanding than pixel-space generation, making generative augmentation feasible without industrial-scale computational resources. If synthetic latents can train downstream models to parity with real data, institutions could share latent datasets without sharing sensitive patient data, sidestepping the privacy bottleneck. The relative simplicity of working in a compact latent space also makes it far more tractable to condition jointly on multiple clinical axes at once rather than a single axis at a time, which is a crucial prerequisite for future counterfactual and explainability work on diagnostic models.
2) Methodology and Datasets
This project examines whether a generator trained at a labeled source site can preserve clinical signal and improve downstream models at a label-scarce target site. Our approach trains a clinically conditioned generator that produces synthetic latent embeddings in the representation space of a frozen echo foundation encoder. The components are as follows.
Datasets. MIMIC-IV-ECHO serves as the main training and evaluation dataset. For MIMIC, we applied an echocardiographic view and Doppler classifier to filter to only parasternal long axis (PLAX) and apical four-chamber (A4C) B-mode videos, excluding colour Doppler. EchoNet-Dynamic serves as an external evaluation set for transfer targeting left ventricular ejection fraction (LVEF), and already has been filtered to include only A4C B-mode videos.
Encoder and latents. We use frozen pretrained encoders, including one general vision encoder, V-JEPA 2, and three which have been adapted to the echocardiography domain, EchoPrime, EchoJEPA, and EchoCardMAE. EchoPrime yields a 512-dimensional embedding. For V-JEPA 2, EchoJEPA (both ViT-L, hidden dimension 1024), and EchoCardMAE (hidden dimension 384) we investigated cross-attention pooled embeddings.
Generator architecture. The generator is a conditional flow-matching model (a rectified flow model) that learns a velocity field using a residual multilayer perceptron (MLP). We chose flow matching because it is simpler to implement than diffusion, faster to sample from, and effective on small latent spaces.
Conditioning. The model is conditioned jointly on LVEF and aortic stenosis (AS) severity. Conditioning enters the network through zero-initialized adaptive LayerNorm modulation, and we apply classifier-free guidance during sampling.
3) Evaluation
We conducted a comprehensive evaluation of the geometry of the synthetic latents, the fidelity of their conditioning, and their clinical utility.
Distributional fidelity and geometry. We assess how well the synthetic latents cover the source manifold without collapsing, using MMD², PCA-FLD, PCA, and UMAP.
Memorization. We compare synthetic-to-training nearest-neighbor distances against real-to-real distances to check that the model is not replaying its training data.
Conditioning fidelity. We train probes on real latents and apply them to synthetic latents to confirm that the synthetic latents express the requested LVEF and AS labels. LVEF accuracy is measured using R2 and mean absolute error (MAE). For aortic stenosis, the clinical labels were binarized, with moderate or greater aortic stenosis considered a positive label, and we evaluated model performance with area under the receiver operating characteristic curve (AUROC).
Downstream utility and external transfer. The central clinical test evaluates models under real-label scarcity, for example at 5%, 10%, and 25% of subjects. On the EchoNet-Dynamic target dataset, we compared a fixed set of nine methods across target-label budgets ranging from 0 to 1,000. The methods included real-only, synthetic-only, latent interpolation, synthetic augmentation, and a MIMIC-plus-augmentation ensemble.
4) Results and Discussion
Our main findings are (1) the recoverability of clinical signal from each encoder's latents, (2) the fidelity of the synthetic latents produced by the generator, and (3) the effect of synthetic augmentation on downstream performance under label scarcity.
Encoder choice had a strong effect on whether clinical signal could be recovered at all. Under regularized linear probes, EchoPrime exposed the strongest clinical signal in its pooled latents, reaching an LVEF MAE of 7.4 EF points (R2 0.57) and an AS AUROC of 0.74. V-JEPA reached an LVEF MAE of 9.8 points (R2 0.19), while EchoJEPA reached LVEF MAE 10.4 points (R2 0.13); both performed near chance on AS. We attribute these weaker results partly to mean pooling, which discards token structure that self-supervised encoders may rely on. We therefore selected the EchoPrime encoder for subsequent generative experiments.
Using EchoPrime, the generator learned clinically useful source structure. Generated latents expressed the requested LVEF and AS values (LVEF MAE 5.9, AS AUROC 0.75), and nearest-neighbor analysis showed no obvious replay of training examples, indicating that the generator captured the conditional structure of the latent space.
Synthetic augmentation was most beneficial under label scarcity. At a 5% label budget, synthetic augmentation reduced LVEF MAE from 8.29 ± 0.68 (mean±std) to 6.76 ± 0.16 EF points, and improved R2 from -0.104 ± 0.176 to 0.191 ± 0.033. AS AUROC increased from 0.682 ± 0.045 to 0.753 ± 0.005. The improvement therefore reflected both better average performance and greater stability across training runs. We also ran ablations and showed that a generator trained only on the scarce 5% subset gave essentially no benefit, and shuffled-label controls removed the gain entirely, confirming that the benefit arose from transferring correctly conditioned information learned from the larger labelled source dataset.
On the external EchoNet target dataset, a 50:50 ensemble of the unmodified MIMIC predictor and synthetic augmentation performed best for overall LVEF accuracy when target labels were scarce. With no labelled EchoNet examples, the ensemble achieved an MAE of 6.5 EF points (R² 0.55), compared with 6.9 points (R² 0.46) for the transferred MIMIC predictor and 8.7 points (R² −0.11) from predicting the population median. A model trained on the full labelled EchoNet dataset achieved an MAE of 5.4 points (R² 0.67). On the held-out EchoNet test split, the ensemble outperformed target-only training at every label budget from 1 to 25 videos (Holm-adjusted p ≤ 3.7 × 10⁻⁹); with 10 labelled videos, it reduced MAE from 7.37 to 5.91 EF points. However, the original MIMIC predictor remained more accurate among patients with reduced ejection fraction. These results show that synthetic augmentation improves average LVEF accuracy under label scarcity, while the best method still depends on the clinical objective.
In summary, generating synthetic data in the embedding space of an echo foundation model can preserve clinically relevant conditioning and improve overall LVEF estimation when target labels are scarce. The benefit depends on an encoder that exposes clinical signal in its pooled representation, access to a sufficiently large labelled source dataset, and correctly conditioned synthetic examples. The results do not support a single best method: the preferred approach depends on the target-label budget and clinical objective. Future work should evaluate token-level generation, replicate the frozen protocol at additional hospital sites, and assess privacy leakage before synthetic latent sharing is considered safe for clinical deployment.
5) Acknowledgements
We were advised by our instructors, Puya Vahabi and Frederick Nugen. The project builds on the MIMIC-IV-ECHO and EchoNet-Dynamic echocardiography datasets and uses the open-source weights of the EchoPrime, V-JEPA 2, EchoJEPA, and EchoCardMAE models.
