Introduction
Medical image segmentation—the precise identification of organ and lesion boundaries—is fundamental to clinical diagnosis and treatment planning. While foundation models like Meta’s original Segment Anything Model (SAM1) revolutionized natural image processing, their application in medicine has been hindered by a significant "domain gap." Medical scans typically feature lower resolution, distinct textures, and unique noise profiles compared to the natural images used for training generalist models.
The release of Segment Anything Model 2 (SAM2) introduced a unified framework designed for both static images and video sequences. This architectural shift is particularly promising for medical imaging, as 3D volumes (such as CT or MRI scans) can be interpreted as a sequence of 2D slices, akin to video frames. This paper presents the first comprehensive benchmark of SAM2 across 11 medical imaging modalities, evaluating whether it can truly serve as a "segment anything" tool for the clinical domain.
Methodology
The researchers evaluated SAM2 through three distinct experimental lenses:
- Zero-shot Benchmarking: All four SAM2 model sizes (Tiny, Small, Base, Large) were tested against SAM1 and the specialized MedSAM model across 11 modalities, including radiology (CT, MRI, PET, X-ray, Mammography) and visible light/microscopy (Endoscopy, Ultrasound, Fundus, Dermoscopy, Light Microscope, and OCT).
- 3D Propagation Strategy: To segment 3D volumes, the team employed a "middle-out" approach. The model was prompted with a bounding box on the middle slice—where the target anatomy is typically most prominent—and SAM2’s new memory mechanism was used to propagate that mask to the top and bottom slices of the volume.
- Transfer Learning: A pipeline was developed to fine-tune SAM2-Tiny on the FLARE22 abdominal CT dataset. By freezing the domain-agnostic prompt encoder and updating the image encoder and mask decoder, the model was adapted to specific medical textures.
To bridge the gap between research and practice, the authors deployed SAM2 as a 3D Slicer plugin and a Gradio API, enabling clinicians to utilize these models without extensive coding knowledge.
Key Insights and Results
The 2D Performance Gap
Despite SAM2's architectural advancements, the benchmark reveals that specialized models still hold an advantage in 2D tasks. MedSAM outperformed SAM2 in 9 out of the 11 modalities tested. This suggests that the "visual language" of medical imaging is distinct enough that generalist training on natural images cannot fully compensate for a lack of domain-specific data.
The 3D "Video" Advantage
SAM2’s primary strength lies in its temporal memory mechanism. By treating 3D volumes as videos, SAM2-Base demonstrated remarkable improvements over SAM1 and MedSAM for 3D CT and MR scans. This approach effectively mitigates the "error accumulation" common in traditional slice-by-slice segmentation methods. However, the study found that initialization is critical; using a mask generated by a specialist model like MedSAM to "seed" SAM2’s propagation yielded significantly better results than using SAM2’s own initial zero-shot mask.
Fine-tuning and Efficiency
Fine-tuning SAM2-Tiny on abdominal organs led to dramatic performance gains. For instance, the Dice Similarity Coefficient (DSC) for the aorta increased from 18.35% to 63.97%, and the esophagus improved from 33.42% to 79.51%. Interestingly, the study found that larger models (SAM2-L) did not consistently outperform smaller variants in medical tasks, suggesting that model architecture and training data quality are more influential than raw parameter count in this domain.
Limitations and Future Directions
While SAM2 represents a step forward, several challenges remain. The model still struggles with "fuzzy" boundaries and low-contrast images, where errors in the initial frame can propagate through the entire volume. Current implementations are also limited to point, box, and mask prompts. Future work will focus on integrating natural language prompts (e.g., "segment the left kidney") and expanding the benchmark to include 3D Ultrasound and 3D OCT data. Additionally, while SAM2-Tiny is efficient, the computational cost of processing long video sequences remains a barrier for some clinical environments.
Conclusion
SAM2 introduces powerful new capabilities for 3D medical volume segmentation through its video-like memory mechanism. However, for 2D imaging, domain-specific fine-tuning remains essential. The provided transfer learning pipeline and 3D Slicer plugin offer a path forward for clinicians to leverage these foundation models in specialized medical workflows.
Summary updated