SAM2S: Segment Anything in Surgical Videos via Semantic Long-term Tracking

Haofeng Liu, Ziyue Wang, Sudhanshu Mishra, Mingqi Gao, Guanyi Qin +3 more
11/20/2025
cs.CVeess.IVq-bio.TO

No official code found. Best implementation: jinlab-imvr/SAM2S (12 stars, last commit 2026-04-01).

Abstract

Surgical video segmentation is crucial for computer-assisted surgery, enabling precise localization and tracking of instruments and tissues. Interactive Video Object Segmentation (iVOS) models such as Segment Anything Model 2 (SAM2) provide prompt-based flexibility beyond methods with predefined categories, but face challenges in surgical scenarios due to the domain gap and limited long-term tracking. To address these limitations, we construct SA-SV, the largest surgical iVOS benchmark with instance-level spatio-temporal annotations (masklets) spanning eight procedure types (61k frames, 1.6k masklets), enabling comprehensive development and evaluation for long-term tracking and zero-shot generalization. Building on SA-SV, we propose SAM2S, a foundation model enhancing \textbf{SAM2} for \textbf{S}urgical iVOS through: (1) DiveMem, a trainable diverse memory mechanism for robust long-term tracking; (2) temporal semantic learning for instrument understanding; and (3) ambiguity-resilient learning to mitigate annotation inconsistencies across multi-source datasets. Extensive experiments demonstrate that fine-tuning on SA-SV enables substantial performance gains, with SAM2 improving by 12.99 average $\mathcal{J}$\&$\mathcal{F}$ over vanilla SAM2. SAM2S further advances performance to 80.42 average $\mathcal{J}$\&$\mathcal{F}$, surpassing vanilla and fine-tuned SAM2 by 17.10 and 4.11 points respectively, while maintaining 68 FPS real-time inference and strong zero-shot generalization. Code and dataset will be released at https://jinlab-imvr.github.io/SAM2S.

View on arXivView PDF

Code Implementations(1)

jinlab-imvr/SAM2SCommunity70%

Official code implementation for paper "SAM2S: Segment Anything in Surgical Videos via Semantic Long-term Tracking"

121Nov 20, 20256 months ago

Similar Papers

Cite this paper

@article{liu2025sams,
  title  = {SAM2S: Segment Anything in Surgical Videos via Semantic Long-term Tracking},
  author = {Haofeng Liu and Ziyue Wang and Sudhanshu Mishra and Mingqi Gao and Guanyi Qin and Chang Han Low and Alex Y. W. Kong and Yueming Jin},
  year   = {2025},
  eprint = {2511.16618},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.16618v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.16618.svg)](https://codeofpaper.com/paper/2511.16618)

Discussion