Adapting Vision Foundation Models for Real-time Ultrasound Image Segmentation

Xiaoran Zhang, Eric Z. Chen, Lin Zhao, Xiao Chen, Yikang Liu, Boris Maihe, James S. Duncan, Terrence Chen, Shanhui Sun

Abstract

We propose a novel approach that adapts hierarchical vision foundation models for real-time ultrasound image segmentation. Existing ultrasound segmentation methods often struggle with adaptability to new tasks, relying on costly manual annotations, while real-time approaches generally fail to match state-of-the-art performance. To overcome these limitations, we introduce an adaptive framework that leverages the vision foundation model Hiera to extract multi-scale features, interleaved with DINOv2 representations to enhance visual expressiveness. These enriched features are then decoded to produce precise and robust segmentation. We conduct extensive evaluations on six public datasets and one in-house dataset, covering both cardiac and thyroid ultrasound segmentation. Experiments show that our approach outperforms state-of-the-art methods across multiple datasets and excels with limited supervision, surpassing nnUNet by over 20% on average in the 1% and 10% data settings. Our method achieves ~77 FPS inference speed with TensorRT on a single GPU, enabling real-time clinical applications.

Introduction

Ultrasound imaging is a cornerstone of modern clinical practice due to its non-invasive nature and real-time feedback capabilities. However, automated segmentation—the process of outlining anatomical structures or pathologies—remains a significant challenge. Ultrasound images are characterized by low signal-to-noise ratios, speckle noise, and indistinct anatomical boundaries.

Current AI solutions for ultrasound segmentation face three primary hurdles:

  1. Generalization: Models often fail to perform consistently across different clinical settings or hardware.
  2. Data Scarcity: High-quality manual annotations require expert knowledge and are time-intensive.
  3. Speed-Accuracy Trade-off: High-performance models are often too computationally heavy for real-time use, while faster models frequently sacrifice diagnostic precision.

Methodology

The proposed framework addresses these challenges by adapting large-scale Vision Foundation Models (VFMs) for the specific constraints of ultrasound imaging.

Hiera Backbone and Adapter

The architecture utilizes Hiera, a hierarchical vision transformer designed for efficiency. To adapt this massive model without full retraining, the researchers introduced lightweight Hiera Adapters. These adapters consist of small, trainable bottleneck layers inserted after the multi-scale attention blocks. They allow the model to learn ultrasound-specific features while keeping the core foundation model parameters frozen.

The Hiera Adapter block uses a bottleneck structure with down-projection, activation, and up-projection to adapt the foundation model.

DINOv2 Semantic Boosting and Feature Interleaving

To enhance visual expressiveness, the framework incorporates representations from DINOv2. While Hiera provides structural multi-scale features, DINOv2 excels at capturing global semantic context, which is crucial for distinguishing organs from surrounding tissue in noisy ultrasound scans.

The overall architecture integrates Hiera features with DINOv2 visual semantics through a feature interleaving strategy.

Rather than simple concatenation, the model employs a Feature Interleaving strategy. Features from Hiera and DINOv2 are merged slice-by-slice along the channel dimension, facilitating a more nuanced fusion of local structural details and global semantic meaning.

Hierarchical Decoder

The interleaved, semantically-enriched representations are processed by a hierarchical decoder. This component progressively upsamples coarse information and integrates finer details from the multi-scale features to generate high-resolution segmentation masks.

Experimental Evaluation

The model was evaluated across seven diverse datasets:

  • Cardiac Ultrasound: CAMUS and CardiacUDA public datasets.
  • Thyroid Ultrasound: TN3K, DDTI, Stanford, and TG3K public datasets.
  • In-house Dataset: A private dataset of over 23,000 images to validate real-world performance.

Key Results

  • Real-time Performance: Utilizing TensorRT optimization on an NVIDIA L40s GPU, the model achieved an inference speed of ~77 FPS, significantly exceeding the 30 FPS threshold required for real-time clinical applications.
  • Superior Accuracy: The model ranked first in 9 out of 11 metrics across the tested datasets. Notably, it achieved a Dice Score of 92.01% on the CAMUS cardiac dataset.
  • Data Efficiency: In low-data regimes (1% and 10% supervision), the framework outperformed the industry-standard nnUNet by over 20%. This demonstrates that VFMs can effectively leverage pre-trained knowledge to learn medical tasks with minimal expert annotation.
  • Robustness: In thyroid gland segmentation, the model achieved a 98.41% recall, indicating high reliability in detecting structures even in challenging, low-visibility images.

Conclusion and Future Work

This research demonstrates that hierarchical vision foundation models can be successfully adapted for high-precision, real-time medical imaging tasks. By combining efficient backbones like Hiera with semantic boosters like DINOv2, the framework overcomes traditional trade-offs between speed and accuracy.

Future research will focus on extending this approach to 3D ultrasound and video-based temporal segmentation to capture dynamic anatomical movements. Additionally, the team aims to optimize the model for edge-based and mobile ultrasound devices common in point-of-care settings.

Summary updated

BibTeX
@inproceedings{zhang2025adapting,
  author = {Xiaoran Zhang and Eric Z. Chen and Lin Zhao and Xiao Chen and Yikang Liu and Boris Maihe and James S. Duncan and Terrence Chen and Shanhui Sun},
  title = {{Adapting Vision Foundation Models for Real-time Ultrasound Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
  doi = {10.1007/978-3-032-04971-1\_3},
}
Figure