Where It Moves, It Matters: Referring Surgical Instrument Segmentation via Motion

Meng Wei, Kun Yuan, Shi Li, Yue Zhou, Long Bai, Nassir Navab, Hongliang Ren, Tom Vercauteren, Nicolas Padoy

Here is a concise, engaging summary of the paper, tailored for researchers and engineers interested in medical computer vision and robotic surgery.

TL;DR

This paper introduces SurgRef, a novel motion-guided framework for referring surgical instrument segmentation that localizes tools based on how they move rather than just what they look like. To train this model, the authors curated Ref-IMotion, the largest surgical video dataset featuring dense spatiotemporal masks paired with motion-centric natural language descriptions. SurgRef achieves state-of-the-art accuracy and demonstrates remarkable zero-shot generalization across entirely different surgical procedures and robotic modalities.

What Problem Does This Paper Address?

In an intelligent operating room, a surgical assistant AI needs to understand natural language commands like "cut where the grasper is holding" or "highlight the tool entering from the right." This task—localizing specific objects in a video based on a natural language description—is known as referring video object segmentation.

However, the surgical domain presents brutal challenges for standard vision-language models:

  1. Visual Ambiguity: Surgical scenes are plagued by smoke, bleeding, poor lighting, and multiple identical-looking instruments.
  2. Linguistic Inconsistency: Surgical terminology is highly non-standardized across institutions. A "Prograsp forcep" might be called something entirely different depending on the hospital or region.

Existing methods rely heavily on static appearance cues or explicit tool names, causing them to fail when tools are occluded or when encountering unfamiliar terminology. This paper addresses this gap by shifting the focus from static appearance to dynamic instrument motion (e.g., entry trajectories, retraction patterns, and tool-tissue interactions), which remains highly consistent regardless of the hospital or tool brand.

Methods

SurgRef integrates spatial vision features and textual semantics into a unified, motion-aware transformer architecture.

SurgRef Architecture Overview

Key components of the framework include:

  • Feature Extraction: A Swin Transformer extracts multi-scale visual features from video frames, while a frozen RoBERTa encoder processes the natural language expression.
  • Language-Driven Queries: Instead of using standard generic object queries, SurgRef initializes its queries by directly injecting the text embedding, forcing the model to look for semantically relevant objects from the start.
  • Key-Frame Attention Module: Surgical videos contain massive temporal redundancy. To save compute and focus the model, this module calculates a visual-text alignment score for each frame and adaptively selects only the top-$T'$ most expression-relevant frames (typically $T'=8$) for detailed segmentation.
  • Inter-Frame Attention: A multi-head self-attention mechanism operates across the temporal dimension of the selected keyframes, explicitly capturing the spatiotemporal motion dynamics of the target instrument.

Datasets

The authors introduced Ref-IMotion, currently the largest motion-guided referring segmentation dataset in surgical computer vision. It aggregates and builds upon four widely used public datasets: EndoVis-17, EndoVis-18, CholecSeg8k, and GraSP.

Ref-IMotion Data Generation Pipeline

Ref-IMotion consists of 319 video clips (21,350 total frames) annotated with 718 referring expressions, 358 of which are explicitly motion-based (e.g., "the tool that enters from the top and pulls the gallbladder to the left"). The dataset spans both laparoscopic and robotic modalities across multiple institutions.

Key Insights and Ideas

  • Motion as a Universal Identifier: By training the model to recognize actions (like cauterizing, gliding, or retracting), the framework bypasses the need for explicit tool names. If a model knows what "retracting tissue" looks like, it can segment the tool doing it, even if it has never seen that specific tool model before.
  • Language-Guided Sparsity: Uniformly sampling video frames wastes computation on idle moments. By using language queries to score frame relevance, the Key-Frame Attention module filters out the noise, proving that you don't need to look at every frame to understand continuous motion.

Key Results

SurgRef consistently outperformed general-purpose video segmentation models (like MPG-SAM 2 and VISA) and surgery-specific baselines (VIS-Net) across all subsets of the Ref-IMotion dataset.

  • EndoVis-IM17: Achieved a Region Similarity (J) score of 89.91, outperforming the state-of-the-art MPG-SAM 2 (88.20).
  • EndoVis-IM18: Achieved a mean Contour Accuracy (F) score of 83.05 and a J&F score of 84.48.
  • Zero-Shot Generalization: In a highly challenging cross-domain test, a SurgRef model trained exclusively on robotic prostatectomy data (GraSP-IM) was evaluated directly on laparoscopic cholecystectomy data (CholecSeg8k-IM) without any fine-tuning. It achieved a J&F score of 70.62, demonstrating that motion-centric grounding transfers robustly across entirely different anatomies, toolsets, and surgical approaches.
Qualitative Segmentation Examples

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{wei2026where,
  author = {Meng Wei and Kun Yuan and Shi Li and Yue Zhou and Long Bai and Nassir Navab and Hongliang Ren and Hong Joo Lee and Tom Vercauteren and Nicolas Padoy},
  title = {{Where It Moves, It Matters: Referring Surgical Instrument Segmentation via Motion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i13.38027},
}
Figure