24
0

RP-SAM2: Refining Point Prompts for Stable Surgical Instrument Segmentation

Abstract

Accurate surgical instrument segmentation is essential in cataract surgery for tasks such as skill assessment and workflow optimization. However, limited annotated data makes it difficult to develop fully automatic models. Prompt-based methods like SAM2 offer flexibility yet remain highly sensitive to the point prompt placement, often leading to inconsistent segmentations. We address this issue by introducing RP-SAM2, which incorporates a novel shift block and a compound loss function to stabilize point prompts. Our approach reduces annotator reliance on precise point positioning while maintaining robust segmentation capabilities. Experiments on the Cataract1k dataset demonstrate that RP-SAM2 improves segmentation accuracy, with a 2% mDSC gain, a 21.36% reduction in mHD95, and decreased variance across random single-point prompt results compared to SAM2. Additionally, on the CaDIS dataset, pseudo masks generated by RP-SAM2 for fine-tuning SAM2's mask decoder outperformed those generated by SAM2. These results highlight RP-SAM2 as a practical, stable and reliable solution for semi-automatic instrument segmentation in data-constrained medical settings. The code is available atthis https URL.

View on arXiv
@article{zhaksylyk2025_2504.07117,
  title={ RP-SAM2: Refining Point Prompts for Stable Surgical Instrument Segmentation },
  author={ Nuren Zhaksylyk and Ibrahim Almakky and Jay Paranjape and S. Swaroop Vedula and Shameema Sikder and Vishal M. Patel and Mohammad Yaqub },
  journal={arXiv preprint arXiv:2504.07117},
  year={ 2025 }
}
Comments on this paper