SonoSAM - Segment Anything on Ultrasound Images

Hariharan Ravishankar, Rohan Patil, Vikram Melapudi, Parminder Bhatia, Taha A. Kass-Hout, Pavan AnnangiarXiv 2023

Abstract

In this paper, we present SonoSAMTrack, a system that combines a promptable foundational model for segmenting objects of interest on ultrasound images, called SonoSAM, with a state-of-the-art contour tracking model to propagate segmentations on 2D+t and 3D ultrasound datasets. Fine-tuned and tested exclusively on a rich, diverse set of objects from approximately 200,000 ultrasound image-mask pairs, SonoSAM demonstrates state-of-the-art performance on seven unseen ultrasound datasets, outperforming competing methods by a significant margin. We also extend SonoSAM to 2D+t applications and demonstrate superior performance, making it a valuable tool for generating dense annotations and segmentation of anatomical structures in clinical workflows. Further, to increase practical utility, we propose a two-step process of fine-tuning followed by knowledge distillation to a smaller footprint model without compromising performance. We present detailed qualitative and quantitative comparisons of SonoSAM with state-of-the-art methods showcasing the efficacy of the method, followed by demonstrating the reduction in number of clicks in a dense video annotation problem of adult cardiac ultrasound chamber segmentation using SonoSAMTrack.

Introduction

Deep learning has revolutionized medical imaging, yet it faces a significant "data hunger" problem. In ultrasound (US), obtaining high-quality annotations is a major bottleneck: it requires clinical expertise, is tedious, and becomes nearly impossible for 3D volumes or 2D+t (video) sequences where every frame requires a mask. While foundational models like Meta’s Segment Anything Model (SAM) excel on natural images, they struggle with ultrasound due to low signal-to-noise ratios, acoustic shadows, and "speckle" textures. Furthermore, existing medical adaptations often fail to handle interactive "clicks" effectively or lack the temporal consistency needed to track moving organs across video sequences.

Methodology

To address these challenges, we propose a multi-stage approach to create a robust, deployable system:

SonoSAM and SonoSAMLite

Starting with the SAM ViT-b architecture, we hypothesized that the image encoder already understands general "objectness." Consequently, we froze the heavy encoder (>90% of parameters) and fine-tuned only the prompt encoder and mask decoder on ultrasound data. To ensure viability for real-time use on medical edge devices, we employed knowledge distillation to create SonoSAMLite. This smaller "student" model (ViT-Small, ~30M parameters) mimics the SonoSAM "teacher," resulting in a model one-third the size with nearly identical performance.

SonoSAMTrack and Human-in-the-Loop Workflow

For video applications, we integrated SonoSAM with deAoT (Decoupling features in Hierarchical Propagation), a state-of-the-art tracking algorithm. The system utilizes a human-in-the-loop workflow: a user provides clicks on the first frame, and the tracker propagates those masks. If tracking quality (monitored via Dice Similarity Coefficient, DSC) drops below 90%, the system prompts for a corrective click to reset the tracker.

Experimental Setup

The study utilized a massive, diverse collection of ultrasound data:

  • Training: Approximately 200,000 image-mask pairs covering fetal hearts, thorax, kidneys, and livers, captured across various GE HealthCare devices.
  • Testing: Seven unseen datasets to test generalization, including adult cardiac chambers, fetal heads, breast lesions, and musculoskeletal (MSK) tissue, including public benchmarks like the CAMUS dataset.

Results and Discussion

Figure 1: Distribution of number of clicks versus percentage of images in which average DICE overlap exceeds 80% on 4 different anatomies, alongside cardiac segmentation tracking.

SonoSAM achieved >90% DSC on all test sets, comfortably outperforming RITM, FocalClick, and the original SAM. Notably, MedSAM—despite being trained on multiple medical modalities—often performed the worst on ultrasound, highlighting the necessity of modality-specific fine-tuning.

Key insights from our evaluation include:

  • Partial Fine-tuning Efficacy: Tuning only the specialized decoder for ultrasound textures allows the model to respect unique sonographic boundaries without retraining the entire encoder.
  • Predictability: Unlike standard SAM, which can behave unpredictably in US, SonoSAM’s masks evolve logically as users add clicks.
  • Click Efficiency: In cardiac cine-loops, the average number of interventions required was less than two per loop. On average, the combination of SonoSAM + deAoT required roughly one click per loop to maintain 90% or more dice overlap across all frames.

Conclusion

SonoSAMTrack adapts the "Segment Anything" philosophy to ultrasound by combining a fine-tuned foundational model with efficient video tracking. While the results are impressive, future work will focus on expanding prompt variety (e.g., bounding boxes and text), conducting deeper failure mode analysis for extreme noise, and developing anatomy-specific optimizations for ultra-low-power devices.

Summary updated

BibTeX
@misc{ravishankar2023sonosam,
  author = {Hariharan Ravishankar and Rohan Patil and Vikram Melapudi and Parminder Bhatia and Taha A. Kass-Hout and Pavan Annangi},
  title = {{SonoSAM - Segment Anything on Ultrasound Images}},
  year = {2023},
  eprint = {2310.16872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16872},
}
Figure