EchoFM: Foundation Model for Generalizable Echocardiogram Analysis

Sekeun Kim, Pengfei Jin, Sifan Song, Cheng Chen, Yiwei Li, Hui Ren, Xiang Li, Tianming Liu, Quanzheng Li · DOI

Introduction

Echocardiography is the primary modality for cardiac imaging due to its accessibility and real-time nature. However, automated analysis is hindered by low signal-to-noise ratios, speckle noise, and complex 3D cardiac motions captured in 2D slices. Traditional deep learning approaches require extensive manual annotations, which are typically limited to specific frames (end-diastole and end-systole). General-purpose foundation models often fail to bridge the domain gap between natural images and the unique periodic dynamics of medical ultrasound. EchoFM addresses these challenges by leveraging the inherent periodicity of cardiac motion through a self-supervised framework trained on over 20 million images.

Methods

EchoFM utilizes a Masked Autoencoder (MAE) architecture with a Vision Transformer (ViT) backbone. It introduces two primary innovations to capture the rhythmic patterns of the heart:

  1. Spatio-Temporal Consistent Masking: Unlike standard MAEs that mask patches randomly, EchoFM ensures that the same spatial regions are masked across different frames. This consistency allows for direct comparison of embeddings and prevents information leakage or distraction from varying density.
  2. Periodic-Driven Contrastive Learning: By utilizing a temporal self-similarity matrix, the model identifies frames representing the same cardiac phase across different beats. These are treated as "positive pairs" in a triplet loss function, forcing the model to learn representations robust to timing but sensitive to cardiac phase.
EchoFM architecture featuring spatio-temporal consistent masking and periodic contrastive loss.

The model is pretrained to reconstruct masked video patches and subsequently fine-tuned for clinical tasks using lightweight adapter layers.

Datasets and Evaluation

The pretraining suite consists of 286,080 videos from 6,500 patients, combining public datasets (CAMUS, EchoNet-Dynamic) with a large internal multi-center dataset from Massachusetts General Hospital and Brigham and Women’s Hospital. This diverse dataset covers conditions such as heart failure and various valvular diseases. Evaluation was conducted on the TMED-2 public benchmark and curated internal datasets for view classification, chamber segmentation, and disease diagnosis.

Key Results and Insights

EchoFM demonstrates state-of-the-art performance across the clinical workflow. By using periodicity as a "free" supervisor, the model learns deep anatomical features without requiring millions of manual labels. It consistently outperforms models pretrained on natural videos, highlighting the necessity of domain-specific pretraining for ultrasound physics.

Comparison of EchoFM accuracy against other foundation models on TMED-2 and internal benchmarks.

Key performance metrics include:

  • View Identification: 94.2% accuracy on TMED-2, surpassing USFM and VideoMAE.
  • Chamber Segmentation: Achieved a Dice score of 90.43 on CAMUS.
  • Disease Diagnosis: Improved Aortic Stenosis detection AUROC by 0.16 compared to ResNet50 baselines.
  • Label Efficiency: Reached an 83.2% Dice score for segmentation using only a fraction of labeled data.

Limitations and Future Work

The model's reliance on periodic motion may be a limitation in cases of irregular heart rhythms, such as atrial fibrillation. Future research will focus on expanding the training set to include rare cardiac events, integrating multimodal clinical data (EHR), and refining algorithms to better handle irregular cardiac cycles.

Summary updated

BibTeX
@article{kim2025echofm,
  author = {Sekeun Kim and Pengfei Jin and Sifan Song and Cheng Chen and Yiwei Li and Hui Ren and Xiang Li and Tianming Liu and Quanzheng Li},
  title = {{EchoFM: Foundation Model for Generalizable Echocardiogram Analysis}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2025},
  doi = {10.1109/tmi.2025.3580713},
}
Figure