Abstract
The release of Meta’s Segment Anything Model 2 (SAM2) promised "zero-shot" video segmentation capabilities. However, its performance in the specialized and high-stakes environment of a surgical theater remained unverified. This paper presents the first systematic evaluation of SAM2 across 17 surgical procedures and 9 datasets. We analyze its zero-shot capabilities, the impact of various prompting strategies, and the effectiveness of different finetuning approaches. Our results show that while SAM2 is a powerful baseline, achieving optimal performance requires specific re-initialization strategies and targeted finetuning of the mask decoder and prompt encoder.
Introduction
Surgical video segmentation—identifying tools, organs, and tissues in real-time—is a cornerstone for the next generation of surgical AI. Despite its importance, the field is hampered by the scarcity of high-quality annotated data. Foundation models like SAM2, trained on natural scenes, offer a potential "zero-shot" solution. However, the domain gap between YouTube videos and the chaotic, deformable environment of surgery is significant. This study investigates whether SAM2 can bridge this gap and provide reliable tracking in the operating room.
Methodology
The researchers evaluated SAM2 using a multi-pronged approach:
- Zero-Shot Evaluation: Testing the model out-of-the-box with various prompts, including points, boxes, and masks.
- Re-initialization Strategy: Testing resets of the model’s memory every 30 or 60 frames to combat "tracking drift."
- Finetuning Variants: Exploring which architectural components (Mask Decoder, Prompt Encoder, or Image Encoder) should be updated for surgical data.
- Sparse Finetuning: Comparing image-based versus video-based training to leverage temporal context.
The evaluation utilized a massive benchmark of 9 datasets (e.g., EndoVis2017, SurgicalLive24) covering laparoscopic, robotic, and endoscopic surgeries.
Key Insights and Results
The "30-Frame Rule"
Error accumulation is a major hurdle in surgical video. The study found that re-initializing the model every 30 frames significantly boosted performance, preventing the mask from sliding off deformable tissues or instruments.
Prompting Hierarchy
The quality of the initial prompt is crucial. Initializing with a full mask yielded the best results, followed by bounding boxes. Single-point prompts were found to be the least reliable, often failing to capture the full extent of complex surgical tools.
Selective Finetuning
A surprising finding was that finetuning the Image Encoder actually decreased accuracy, likely due to overfitting on small surgical datasets. Instead, the best performance was achieved by keeping the "natural world" features of the encoder and only tuning the Mask Decoder and Prompt Encoder. On the DSAD dataset, this approach increased mIoU from 32.40% to 80.87%.
Discussion and Limitations
While SAM2 is excellent at tracking rigid instruments even when they exit and re-enter the frame, it still struggles with lighting artifacts (glare, low light) and complex branching anatomical structures like blood vessels. Future work should focus on adaptive solutions for domain-specific artifacts and better integration of temporal consistency.
Conclusion
SAM2 provides a massive leap over previous surgical segmentation methods, achieving a 76.15% mIoU on EndoVis2017 in a zero-shot setting with proper prompting. While not a perfect "out-of-the-box" solution for all surgical tasks, it serves as a powerful foundation that can be significantly enhanced through targeted finetuning and strategic re-initialization.
Summary updated