Domain adaptation of a video Foundation model for Heart Failure Diagnosis from Echocardiography

Mahyar Bolhassani, Tijana Geroski, Narayana S. Singam, Amir AminiarXiv 2026 · arXiv

TL;DR

This paper demonstrates how to adapt a video foundation model (TimeSformer), originally trained on natural videos, to diagnose heart failure from echocardiography. By using a "phase-aware" strategy that focuses on specific cardiac cycles (systole and diastole), the researchers achieved state-of-the-art results, outperforming traditional 3D CNNs and proving that general-purpose video transformers can bridge the massive "modality gap" between natural scenes and medical ultrasound.

What Problem Does This Paper Address?

Heart failure with reduced ejection fraction (HFrEF) affects millions, yet its diagnosis via echocardiography remains a bottleneck. Manual interpretation is time-consuming and suffers from high inter-observer variability. While deep learning has made strides in medical imaging, most models are either 2D-based (ignoring the crucial temporal dynamics of a beating heart) or built from scratch on small datasets.

The authors tackle the "modality gap"—the difficulty of taking a "Foundation Model" trained on everyday videos (like people walking or opening boxes) and applying it to the noisy, grayscale, and highly specialized world of cardiac ultrasound. Specifically, they want to know if a transformer-based video model can learn to "see" the subtle motion patterns that indicate a failing heart.

Methods

The researchers adapted the TimeSformer architecture, which uses divided space-time attention. Instead of looking at every pixel across every frame simultaneously (which is computationally expensive), the model separately processes spatial features within a frame and temporal features across frames.

Key innovations include:

  • Phase-Aware Clip Generation: Rather than feeding random video segments into the model, they developed a segmentation-free method to identify End-Diastole (ED) and End-Systole (ES) frames. They used a "motion energy" proxy—calculating spatial gradients over time—to find when the heart chamber is at its largest and smallest.
  • Strategic Sampling: They generated clips centered on these cardiac phases to ensure the model captured the most diagnostic moments of contraction and relaxation.
  • Advanced Fine-Tuning: They employed layer-wise learning rate decay. This keeps the "shallow" layers (which capture general shapes and edges) relatively stable while allowing "deeper" layers to adapt aggressively to specific cardiac features.
  • Multi-Clip Inference: During testing, the model looks at three non-overlapping clips from a single study and aggregates the results to ensure robustness.
Fig. 3. ED/ES estimation by cavity proxy calculation over time

Datasets

The study utilized the RVENet A4C dataset, a publicly available collection of apical four-chamber (A4C) view DICOM videos.

  • Scope: 3,583 videos from 944 exams.
  • Classes: The authors focused on a binary split between "Healthy" and "HFrEF" (defined as a Left Ventricular Ejection Fraction ≤ 40%).
  • Preprocessing: Videos were standardized via motion-based cropping to remove background noise and spurious features outside the ultrasound sector.
Fig. 2. preprocessed samples with corresponding masks

Key Insights and Ideas

  • Foundation Models are Transferable: Even though a model was trained on the "Something-Something V2" dataset (natural human actions), its internal understanding of "motion" is robust enough to be repurposed for internal organ dynamics.
  • Full Fine-Tuning is Essential: Simply training a new classification "head" on top of a frozen foundation model (NFT) performed poorly (0.783 AUC). The model needs to "unfreeze" its backbone to truly learn the textures and noise patterns of ultrasound.
  • Temporal Context Matters: The transformer's ability to model long-range dependencies across a cardiac cycle allowed it to outperform 3D ResNet18, a common CNN baseline that often struggles with very long sequences.

Key Results

The Phase-aware TimeSformer with Full Fine-Tuning emerged as the clear winner across all metrics:

Model ROC-AUC F1-Score Accuracy
Phase-aware TimeSformer (Full FT) 0.893 0.783 0.763
3D ResNet18 (Baseline) 0.849 0.732 0.732
TimeSformer (Classifier-only) 0.783 0.702 0.711

The model achieved these results in just 11 epochs, demonstrating the efficiency of starting from a pretrained foundation.

Limitations and Future Work

While successful, the authors note several areas for growth:

  • Dataset Size: The study used a relatively small subset of data (619 total samples for the final task). Larger, more diverse datasets would likely improve generalization.
  • Task Complexity: This was a binary classification (Sick vs. Healthy). Future work could extend this to multi-class disease staging or identifying regional wall motion abnormalities.
  • Medical Pretraining: The authors highlight that there is currently no large-scale "Foundation Model" pretrained specifically on medical videos. Creating one could significantly reduce the domain gap compared to using natural video models.
  • Clinical Integration: The technique shows promise for assessing pericardial disease, filling pressures, and ventricular desynchrony, but these require further validation in clinical settings.

Summary updated

Abstract

The rapid advancement of foundation models has transformed computer vision, yet their adaptation to medical imaging, particularly purpose built foundation models for spatio temporal echocardiography videos, remains limited. In this work, we explore the feasibility of fine tuning a pretrained foundation model for video (TimeSformer) for automated diagnosis of reduced ejection fraction heart failure (HFrEF) from apical four chamber videos. The model is finetuned on the publicly available RVENet A4C dataset with a phase aware clip generation strategy that captures complementary systolic and diastolic dynamics. We employ divided space time attention, layer wise learning rate decay, and multi clip inference to enhance robustness under limited data. Experimental results show that full fine tuning of the proposed model outperforms classifier only tuning and a 3D CNN baseline. These findings highlight the potential of leveraging foundation video models for echocardiography based heart failure diagnosis and motivates further domain adaptation studies in medical imaging.
BibTeX
@misc{bolhassani2026domain,
  author = {Mahyar Bolhassani and Tijana Geroski and Narayana S. Singam and Amir Amini},
  title = {{Domain adaptation of a video Foundation model for Heart Failure Diagnosis from Echocardiography}},
  year = {2026},
  eprint = {2611.13297},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13297},
}
Figure