TL;DR
This paper provides the first extensive evaluation of Meta’s Segment Anything Model 2 (SAM 2) across 21 diverse medical imaging datasets. While SAM 2 matches the original SAM’s performance in 2D, its new video-based memory bank allows it to tackle 3D volumes; however, achieving high accuracy in 3D requires specific strategies like bidirectional propagation and box-based prompting.
What Problem Does This Paper Address?
Medical image segmentation is a cornerstone of clinical diagnosis, yet it remains a bottleneck due to the labor-intensive nature of manual annotation. The original Segment Anything Model (SAM) revolutionized 2D segmentation with its "zero-shot" capabilities but struggled with 3D volumes (like CT or MRI) because it lacked a native understanding of spatial continuity between slices.
SAM 2 introduces a memory bank designed for video segmentation, which treats consecutive frames as a sequence. The authors of this paper ask: Can we treat 3D medical volumes as "videos" and use SAM 2 to segment them efficiently? They investigate how different prompting strategies, propagation directions, and mask selection methods affect SAM 2's performance in this specialized domain.
Methods
The researchers evaluated SAM 2 in two primary settings:
- Single-frame 2D Segmentation: Prompts are provided for every individual slice. This serves as a baseline to compare SAM 2 against the original SAM.
- Multi-frame 3D Segmentation: Prompts are provided for only one or a few slices, and SAM 2 uses its memory bank to propagate these masks to the rest of the volume.
To optimize the 3D workflow, the authors proposed and tested 64 different experimental configurations (see Figure 1) involving:
- Initial Frame Selection (F-Mode): Choosing the edge slice, center slice, largest object slice, or three uniform slices.
- Prompting Modes (P-Mode): Using single/multiple points or bounding boxes.
- Propagation Direction (D-Mode): Comparing simple front-to-end propagation vs. bidirectional propagation (starting from the annotated slice and moving both ways).
- Mask Selection (S-Mode): Choosing between SAM 2’s default "highest confidence" mask vs. the "first channel" (which empirically often represents the smallest, most specific area).
Datasets
The study utilizes a massive benchmark of 21 medical datasets (summarized in Figure 2), including:
- 2D Modalities: X-ray (chest, hip) and Ultrasound (breast, kidney, muscle, ovary).
- 3D Modalities: MRI (brain, heart, prostate, spine, breast), CT (colon, liver, pancreas, spleen, multi-organ), and PET/CT.
- Surgical Videos: Cataract surgery, colonoscopy, and echocardiography.
Key Insights and Ideas
- Bidirectional is Best: In 3D volumes, starting at a central, salient slice and propagating in both directions significantly outperforms starting from the first slice. This is because medical objects often appear and disappear; starting at the "edge" gives the model very little information to work with.
- The "First Channel" Trick: For point prompts, SAM 2’s default behavior of picking the "most confident" mask is often sub-par. The authors found that selecting the first output channel (typically the smallest area) yielded better results for specific medical targets like tumors.
- Boxes > Points: Box prompts are much more effective than point prompts for 3D propagation. They provide a clearer spatial constraint that helps the memory bank maintain the object's boundary across slices.
- The Memory Window Gap: SAM 2 was trained with an 8-frame memory window. Since medical volumes often contain hundreds of slices, the model’s performance degrades as it moves further from the annotated slice.
Key Results
- 2D Parity: SAM 2 performs comparably to the original SAM in 2D tasks, achieving high IoU (Intersection over Union) on distinct structures like the ilium (0.908) but struggling with complex textures like spinal gray matter (0.278).
- 3D Performance: The best average 3D performance using a single annotated slice was 0.5222 IoU (with box prompts) and 0.6198 IoU (with ground truth masks).
- Zero-Shot Superiority: SAM 2 outperformed SAM-Med3D (a version of SAM specifically fine-tuned for 3D medical data) on nearly all datasets, highlighting the power of SAM 2’s native temporal backbone.
- Interactive Gains: In interactive settings, "re-initializing" the model with new prompts was more effective than trying to "correct" existing memory, as the latter could introduce instabilities across the volume.
Limitations and Future Work
The authors note that SAM 2 is not yet a "silver bullet" for 3D medical imaging. The primary limitation is the domain gap: SAM 2 was trained on natural videos where motion is relatively smooth. In medical volumes, the "motion" between slices can be abrupt or inconsistent.
Future work should focus on fine-tuning SAM 2's memory bank specifically on medical volumes to handle larger slice counts and the unique textures of radiological data. Additionally, developing more stable interactive correction loops that don't "break" the propagation in other parts of the volume is a high priority.
Summary updated