Abstract
The Segment Anything Model (SAM), a foundation model trained on over 1.1 billion masks from natural images, has demonstrated remarkable zero-shot capabilities in general computer vision. However, its efficacy in the specialized domain of medical imaging—characterized by low contrast, complex textures, and high clinical stakes—remains under-explored. This study presents the first extensive "stress test" of SAM across 19 diverse medical datasets encompassing 28 segmentation tasks. We evaluate SAM's performance using five prompting strategies and compare it against state-of-the-art interactive medical segmentation models. Our findings reveal that while SAM excels in zero-shot scenarios using bounding boxes, its performance is highly inconsistent across modalities and it lacks the iterative refinement capabilities of specialized medical AI models.
Introduction
Image segmentation is a fundamental task in medical AI, essential for quantifying organ volume, planning radiotherapy, and monitoring tumor progression. Traditionally, developing high-performance segmentation models requires massive, expertly annotated datasets, which are both costly and time-consuming to produce. The emergence of "foundation models" like Meta’s Segment Anything Model (SAM) offers a potential paradigm shift: the ability to perform segmentation on unseen data without task-specific training.
Despite its success on natural images (e.g., cats, cars, and landscapes), the clinical utility of SAM is not guaranteed. Medical images (CT, MRI, Ultrasound) differ significantly from natural photos in terms of signal-to-noise ratios, spatial dimensions, and the subtlety of anatomical boundaries. This paper aims to quantify SAM’s strengths and weaknesses in a clinical context, determining whether a model trained on everyday objects can effectively "zero-shot" its way into the radiology suite.
Methodology
To rigorously evaluate SAM, the researchers simulated various human-in-the-loop workflows using five distinct prompting strategies:
- Single Point: A single click at the center of the largest region.
- Points for Each Region: One click for every disconnected component of an object.
- Single Box: A bounding box around the largest region.
- Boxes for Each Region: Individual boxes for every separate part (e.g., fragmented liver slices).
- Entire Object Box: A single bounding box encompassing all components of the target.
Beyond static prompts, the study evaluated iterative prompting, where the model receives corrective clicks based on its previous errors. SAM’s performance was benchmarked against three specialized interactive segmentation models: RITM, SimpleClick, and FocalClick.
Experimental Setup
The study utilized a comprehensive collection of 19 public datasets, covering 28 segmentation tasks and over 12,000 masks. The evaluation spanned multiple modalities and anatomical regions:
- Modalities: MRI, CT, X-ray, Ultrasound, and PET.
- Anatomies: Brain (tumors and edema), Heart, Spine, Prostate, Breast, Chest, Hip, Kidney, Muscle, Nerve, Liver, Pancreas, and Spleen.
Results and Analysis
Prompting Effectiveness: Boxes vs. Clicks
The experimental results indicate that SAM is significantly more accurate when guided by bounding boxes rather than points. The highest average performance was achieved using "Mode 4" (individual boxes for each part), which yielded an average Intersection over Union (IoU) of 0.6542. This suggests that SAM’s internal representation of "objectness" is more effectively triggered by spatial extent than by isolated coordinates.
The Zero-Shot Advantage and the Iteration Plateau
In single-click scenarios, SAM often outperformed specialized medical models, demonstrating a strong intuitive grasp of object boundaries. However, a critical weakness emerged during iterative refinement. While specialized models like RITM showed drastic improvements as the number of clicks increased (5–9 clicks), SAM’s performance plateaued rapidly. SAM appears "stubborn," often failing to incorporate corrective feedback as effectively as models trained specifically for interactive medical tasks.
Performance Variance
SAM’s performance was highly inconsistent across different tasks. It achieved an impressive IoU of 0.8650 for hip X-rays but struggled significantly with spine MRI, where it recorded a dismal IoU of 0.1135. Generally, SAM performed better on larger, well-defined organs and struggled with small, faint, or highly irregular structures.
Discussion and Limitations
Several factors contribute to the performance gap between SAM and specialized medical models:
- The Domain Gap: SAM lacks "medical common sense." Because it was trained on natural light photos, it does not understand anatomical constraints—such as the expected shape of a liver or the typical appearance of a tumor—leading to jagged edges or anatomically impossible predictions.
- Dimensionality Constraints: SAM is inherently a 2D model. Most clinical data (CT and MRI) is volumetric (3D). Processing these datasets slice-by-slice with SAM ignores crucial cross-slice information, which specialized 3D models utilize to maintain consistency.
- Ambiguity Handling: One notable advantage of SAM is its ability to output multiple valid masks for a single prompt. In medical imaging, where boundaries are often ambiguous, this feature allows clinicians to select the most clinically relevant interpretation.
Conclusion
While SAM represents a significant milestone in computer vision, its current iteration is not a replacement for specialized medical segmentation models. It serves as a powerful tool for initial, zero-shot estimations—particularly when using bounding boxes—but lacks the reliability and iterative refinement necessary for high-stakes clinical applications. Future work should focus on developing "Med-SAM" variants: foundation models fine-tuned on medical-specific data and capable of native 3D volumetric processing.
Summary updated