Accuracy of Segment-Anything Model (SAM) in medical image segmentation tasks

Sheng He, Rina Bao, Jingpeng Li, Patricia Ellen Grant, Yangming OuarXiv 2023 · DOI

Introduction

The release of Meta’s Segment Anything Model (SAM) marked a significant milestone in computer vision, introducing a "foundation model" capable of zero-shot segmentation across diverse natural image domains. However, the high-stakes environment of healthcare presents unique challenges. This study provides a critical evaluation of SAM's performance in medical imaging, investigating whether its success on natural images (e.g., cats, cars, trees) translates to specialized tasks like segmenting liver tumors or heart valves without domain-specific fine-tuning.

Methods

The researchers evaluated SAM's zero-shot capabilities using three distinct prompting strategies and compared them against five state-of-the-art (SOTA) medical segmentation models, including U-Net, U-Net++, Attention U-Net, Trans U-Net, and UCTransNet. Unlike SAM, these specialized models were trained directly on the target medical datasets.

Visual demonstration of SAM prompting strategies: (b) Semantic, (c) Point, and (d) Box.

The three SAM variations tested were:

  1. SAM-Semantic: An automatic mode that samples a grid of points to identify structures.
  2. SAM-Point: The model is prompted with a single point at the center of the target.
  3. SAM-Box: The model is provided with a bounding box around the target region.

Datasets and Benchmark

The evaluation utilized a massive benchmark comprising 12 public datasets and 7,451 subjects. This diverse collection covered 10 different organs and structures (including the brain, lung, liver, and heart) across six imaging modalities: MRI, CT, Ultrasound, X-ray, Colonoscopy, and Dermoscopy. The study included both 2D images and 3D volumes, with the latter processed on a slice-by-slice basis.

Key Results

The study revealed a consistent and significant performance gap between SAM and specialized medical models. Across all 12 datasets, SAM’s Dice scores—a standard measure of overlap accuracy—were typically 0.1 to 0.5 lower than those of the specialized models.

Comparison of Dice accuracy across 12 medical datasets between specialized U-Net variants and SAM prompting modes.

Specific findings include:

  • The Pancreas Challenge: In the notoriously difficult, low-contrast Pancreas dataset, SAM-Semantic achieved only 4.64% accuracy, whereas the specialized U-Net reached 77.75%.
  • Best Case Scenarios: SAM performed most effectively on 2D images with high contrast and large targets, such as skin lesions in the ISIC dataset. However, even in these optimal conditions, it failed to outperform specialized SOTA models.
  • Prompting Limitations: While providing a bounding box (SAM-Box) improved performance over point-based or automatic prompts, it did not compensate for SAM's lack of medical domain knowledge. The model often struggled to distinguish pathological tissue from healthy anatomy with similar intensity.

Discussion: The Domain Gap

The underperformance of SAM in medical contexts can be attributed to several factors:

  • Domain Shift: Natural images typically feature sharp edges and distinct color palettes. Medical images are often grayscale, noisy, and characterized by "fuzzy" or low-contrast boundaries that SAM was not trained to interpret.
  • Dimensionality Constraints: SAM is natively a 2D model. When applied to 3D data (CT/MRI), it loses the volumetric context that specialized 3D medical models leverage for higher accuracy.
  • Complexity Correlation: SAM's success is highly correlated with the "Segmentation Ability" (SA) score. It performs adequately on structures that can be segmented via simple intensity thresholding but fails on those requiring complex texture recognition.

Conclusion

While SAM is a groundbreaking tool for general computer vision, it is not yet a "universal solver" for medical imaging. For clinical-grade accuracy, specialized models remain superior. This research highlights the urgent need for medical-specific foundation models (e.g., "MedSAM") and native 3D integration to bridge the performance gap in healthcare applications.

Summary updated

BibTeX
@misc{he2023accuracy,
  author = {Sheng He and Rina Bao and Jingpeng Li and Patricia Ellen Grant and Yangming Ou},
  title = {{Accuracy of Segment-Anything Model (SAM) in medical image segmentation tasks}},
  year = {2023},
  eprint = {2304.09324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.09324},
}
Figure