MediViSTA: Medical Video Segmentation Via Temporal Fusion SAM Adaptation for Echocardiography

Sekeun Kim, Pengfei Jin, Cheng Chen, Kyungsang Kim, Zhiliang Lyu, Hui Ren, Sunghwan Kim, Zhengliang Liu, Aoxiao Zhong, Tianming Liu, Xiang Li, Quanzheng LiIEEE JBHI 2023

Abstract

Despite achieving impressive results in general-purpose semantic segmentation with strong generalization on natural images, the Segment Anything Model (SAM) has shown less precision and stability in medical image segmentation. In particular, the original SAM architecture is designed for 2D natural images and is therefore not support to handle three-dimensional information, which is particularly important for medical imaging modalities that are often volumetric or video data. In this paper, we introduce MediViSTA, a parameter-efficient fine-tuning method designed to adapt the vision foundation model for medical video, with a specific focus on echocardiographic segmentation. To achieve spatial adaptation, we propose a frequency feature fusion technique that injects spatial frequency information from a CNN branch. For temporal adaptation, we integrate temporal adapters within the transformer blocks of the image encoder. Using a fine-tuning strategy, only a small subset of pre-trained parameters is updated, allowing efficient adaptation to echocardiographic data. The effectiveness of our method has been comprehensively evaluated on three datasets, comprising two public datasets and one multi-center in-house dataset. Our method consistently outperforms various state-of-the-art approaches without using any prompts. Furthermore, our model exhibits strong generalization capabilities on unseen datasets, surpassing the second-best approach by 2.15% in Dice and 0.09 in temporal consistency. The results demonstrate the potential of MediViSTA to significantly advance echocardiographical video segmentation, offering improved accuracy and robustness in cardiac assessment applications.

Introduction

Echocardiography serves as the primary diagnostic modality for cardiac assessment due to its non-invasive nature and real-time imaging capabilities. However, the interpretation of echocardiographic videos is notoriously difficult. These images often suffer from low signal-to-noise ratios, acoustic artifacts, and indistinct anatomical boundaries. Furthermore, the heart's complex three-dimensional motion causes structures to appear and disappear across frames, making consistent segmentation a significant challenge for clinicians. Traditionally, manual segmentation is a time-consuming process subject to high inter-observer variability.

Foundation models like the Segment Anything Model (SAM) have demonstrated remarkable zero-shot generalization in natural image segmentation. However, SAM's performance in medical imaging, particularly in video-based modalities like echocardiography, is limited. SAM was primarily designed for 2D natural images and lacks the temporal awareness required to maintain consistency across video frames. Additionally, its transformer-based architecture can struggle with the fine-grained spatial details necessary for delineating blurry ultrasound boundaries. MediViSTA aims to bridge this gap, turning a general-purpose 2D model into a robust medical video specialist.

MediViSTA Architecture

The MediViSTA framework introduces three primary innovations to the standard SAM framework to enable robust medical video segmentation while remaining computationally efficient.

Frequency Feature Fusion (FFM)

While Transformers excel at capturing global context, they often lack the inductive bias needed for local spatial precision. MediViSTA incorporates a parallel CNN-based branch that utilizes Discrete Wavelet Transform (DWT). The DWT decomposes the input image into multiple frequency sub-bands, effectively isolating high-frequency components that correspond to structural edges and textures. These spatial features are then injected into the SAM transformer blocks via a cross-branch attention mechanism, enhancing the model's ability to localize indistinct cardiac boundaries.

Temporal Fusion Attention

To transform SAM into a video-capable model, the authors integrated temporal adapters within the image encoder. Unlike standard temporal models that may only consider past information, this temporal fusion attention mechanism utilizes a sliding window approach. It applies a Gaussian kernel to weight features from both preceding and subsequent frames relative to the target frame. This bidirectional context allows the model to resolve ambiguities in frames where boundaries might be obscured by noise by leveraging clearer information from adjacent time points.

Overview of the MediViSTA architecture, featuring the frequency fusion CNN branch and temporal adapters within the image encoder.

Parameter-Efficient Fine-Tuning (PEFT)

Updating all parameters of a large foundation model like SAM is computationally expensive and risks losing the model's pre-trained knowledge. MediViSTA employs Factorized Tuning (FacT), a PEFT strategy that updates only a small subset (~1.9%) of the total parameters. This approach allows for efficient adaptation to the specific domain of echocardiography while maintaining the robust feature extraction capabilities of the original foundation model. Additionally, the Mask Decoder was redesigned with progressive up-sampling and skip connections to restore segmentations to the original input resolution, overcoming the native resolution limitations of the original SAM architecture.

Experimental Evaluation

The model was rigorously tested on three distinct datasets to evaluate its performance and ability to generalize to new environments:

  • CAMUS: A public dataset of 1,000 patients with apical two-chamber and four-chamber views.
  • EchoNet-Dynamic: A large-scale public dataset containing over 10,000 apical four-chamber (A4C) view videos.
  • Multi-center Internal Dataset: A curated "real-world" test set of 100 patients from Massachusetts General Hospital and Brigham and Women’s Hospital, featuring data from different scanner vendors (GE and Philips).

Key Results and Discussion

MediViSTA consistently outperformed state-of-the-art (SOTA) methods, including specialized medical adaptations of SAM such as SAM3D and Med-SA. On the CAMUS dataset, the model achieved a Dice score of 94.42% for the left ventricular endocardium (LVendo).

One of the most significant findings is the model's exceptional generalization capability. When trained on public data and tested on the unseen multi-center dataset, MediViSTA outperformed the next best competitor by 2.15% in Dice score and showed a 0.09 improvement in temporal consistency. This suggests that the combination of foundation model adaptation and temporal fusion is a powerful path toward clinical robustness across different hospital settings and scanner vendors.

Visual comparison of segmentation results across different datasets. MediViSTA (rightmost) shows the closest alignment with the ground truth compared to other state-of-the-art methods.

The clinical relevance of these results was further validated by calculating the correlation between the model's automated segmentations and key clinical metrics. MediViSTA showed a high Pearson correlation (0.84 to 0.87) with Left Ventricular Ejection Fraction (LVEF) measurements, indicating its potential as a reliable tool for diagnostic assistance.

Conclusion

MediViSTA represents a significant step forward in adapting general-purpose foundation models for specialized medical tasks. By integrating spatial frequency information and temporal context through a parameter-efficient framework, it achieves superior accuracy and robustness in echocardiographic video segmentation. While the current model is optimized for post-acquisition analysis, future work will focus on real-time processing to support point-of-care ultrasound applications and non-expert operators in rapid cardiac interpretation.

Summary updated

BibTeX
@article{kim2023medivista,
  author = {Sekeun Kim and Pengfei Jin and Cheng Chen and Kyungsang Kim and Zhiliang Lyu and Hui Ren and Sunghwan Kim and Zhengliang Liu and Aoxiao Zhong and Tianming Liu and Xiang Li and Quanzheng Li},
  title = {{MediViSTA: Medical Video Segmentation Via Temporal Fusion SAM Adaptation for Echocardiography}},
  journal = {IEEE J. Biomed. Health Informatics},
  year = {2023},
}
Figure