Abstract
Surgical video segmentation is critical for AI to interpret spatial-temporal dynamics in surgery, yet model performance is constrained by limited annotated data. The SAM2 model, pretrained on natural videos, offers potential for zero-shot surgical segmentation, but its applicability in complex surgical environments, with challenges like tissue deformation and instrument variability, remains unexplored. We present the first comprehensive evaluation of the zero-shot capability of SAM2 in 9 surgical datasets (17 surgery types), covering laparoscopic, endoscopic, and robotic procedures. We analyze various prompting (points, boxes, mask) and finetuning (dense, sparse) strategies, robustness to surgical challenges, and generalization across procedures and anatomies. Key findings reveal that while SAM2 demonstrates notable zero-shot adaptability in structured scenarios (e.g., instrument segmentation, multi-organ segmentation, and scene segmentation), its performance varies under dynamic surgical conditions, highlighting gaps in handling temporal coherence and domain-specific artifacts. These results highlight future pathways to adaptive data-efficient solutions for the surgical data science field.
Introduction
Artificial Intelligence in the operating room relies heavily on surgical video segmentation—the ability of a model to identify and track instruments, organs, and tissues in real-time. Traditionally, this requires massive amounts of hand-annotated data, which is incredibly expensive and time-consuming to produce because it requires expert medical knowledge.
Foundation models like the original SAM promised a "segment anything" future, but they were built for static images. SAM2 introduced a memory bank for video tracking, but it was trained on natural videos (e.g., pets and people). Surgical environments are a different beast: they feature specular reflections, smoke, blood, deforming tissues, and rapid instrument movements. This study conducts a systematic "stress test" to determine if a model trained on natural videos can effectively generalize to clinical settings without extensive retraining.
Methodology
The evaluation utilized a massive benchmark of 9 datasets covering 17 surgery types, including robotic instruments (EndoVis2017/2018), tissue deformation (EndoNeRF), and multi-organ scenes (DSAD). The researchers also included a private dataset, SurgicalLive24, containing over 168,000 frames from thoracoscopy, laparoscopy, and ureteroscopy.
The performance of SAM2 was tested across several experimental dimensions:
- Zero-Shot Evaluation: Testing out-of-the-box performance on unseen surgical tasks.
- Prompt Engineering: Comparing model responses to various user inputs (points, boxes, masks).
- Re-initialization: Testing periodic "memory resets" (every 30 or 60 frames) to combat tracking drift.
- Ablative Finetuning: Exploring which architectural components (Mask Decoder, Prompt Encoder, or Image Encoder) benefit most from limited surgical data.
Key Insights and Results
The study revealed a clear hierarchy in prompting strategies. Mask prompts—providing the full shape of an object in the initial frame—significantly outperformed bounding boxes and points. In complex surgical scenes where instruments overlap or tissues have indistinct boundaries, detailed shape information is crucial for maintaining tracking accuracy.
The Necessity of "Reminders"
Even with its memory bank, SAM2 struggles with long-term temporal coherence in surgical video. Re-initializing the model every 30 frames led to dramatic performance gains, such as jumping from ~52% to ~76% mIoU on the EndoVis2017 dataset. This suggests that periodic human or automated intervention is currently necessary for clinical-grade reliability.
The Finetuning Paradox
When finetuning on surgical data, "less is more." Training only the Mask Decoder and Prompt Encoder yielded the best results. Attempting to finetune the massive Image Encoder actually degraded performance, likely due to overfitting on relatively small surgical datasets, causing the model to lose the robust features learned during large-scale natural video training.
Performance Benchmarks
- Zero-Shot Power: On the CholecSeg8k dataset, vanilla SAM2 with a mask prompt achieved a 94.32% mAP, significantly outperforming specialized models like CycleSAM (22.40%).
- Multi-Organ Success: In the DSAD dataset, finetuning the Mask Decoder boosted the Mean Intersection over Union (mIoU) from 32.40% to 80.85%.
Discussion and Limitations
While SAM2 represents a significant leap forward, several challenges remain:
- Topology Confusion: The model struggles with branching structures like blood vessels, often confusing arteries and veins within the same bounding box.
- Temporal Drift: The requirement for manual re-initialization every 30-60 frames is a significant bottleneck for real-time applications.
- Environmental Artifacts: Extreme conditions, such as heavy cauterization smoke or lens fogging, still cause the model to lose track of targets.
Conclusion
SAM2 demonstrates impressive zero-shot adaptability in structured surgical scenarios but is not yet a "set it and forget it" solution. It is most effective as a "human-in-the-loop" assistant, thriving on high-quality initial prompts and periodic guidance. Future research should focus on automated re-prompting and more robust memory mechanisms to handle the unique artifacts of the surgical environment.
Summary updated