[Paper Review] SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation
SurgicalSAM proposes an efficient, end-to-end tuning method for the Segment Anything Model (SAM) to improve surgical instrument segmentation by replacing explicit prompts with a lightweight prototype-based class prompt encoder and contrastive prototype learning. This approach achieves state-of-the-art performance on EndoVis2018 and EndoVis2017 with only 4.65M trainable parameters, significantly enhancing robustness and generalization in the surgical domain.
The Segment Anything Model (SAM) is a powerful foundation model that has revolutionised image segmentation. To apply SAM to surgical instrument segmentation, a common approach is to locate precise points or boxes of instruments and then use them as prompts for SAM in a zero-shot manner. However, we observe two problems with this naive pipeline: (1) the domain gap between natural objects and surgical instruments leads to inferior generalisation of SAM; and (2) SAM relies on precise point or box locations for accurate segmentation, requiring either extensive manual guidance or a well-performing specialist detector for prompt preparation, which leads to a complex multi-stage pipeline. To address these problems, we introduce SurgicalSAM, a novel end-to-end efficient-tuning approach for SAM to effectively integrate surgical-specific information with SAM's pre-trained knowledge for improved generalisation. Specifically, we propose a lightweight prototype-based class prompt encoder for tuning, which directly generates prompt embeddings from class prototypes and eliminates the use of explicit prompts for improved robustness and a simpler pipeline. In addition, to address the low inter-class variance among surgical instrument categories, we propose contrastive prototype learning, further enhancing the discrimination of the class prototypes for more accurate class prompting. The results of extensive experiments on both EndoVis2018 and EndoVis2017 datasets demonstrate that SurgicalSAM achieves state-of-the-art performance while only requiring a small number of tunable parameters. The source code is available at https://github.com/wenxi-yue/SurgicalSAM.
Motivation & Objective
- To address the domain gap between natural objects in SAM and surgical instruments, which leads to poor zero-shot generalization.
- To eliminate reliance on precise bounding boxes or point prompts, which are sensitive to jitter and require complex multi-stage pipelines.
- To improve discrimination among highly similar surgical instrument categories through enhanced class prototype learning.
- To enable efficient, end-to-end tuning of SAM with minimal parameter updates, reducing training and inference costs for clinical deployment.
Proposed method
- A lightweight prototype-based class prompt encoder generates prompt embeddings directly from class prototypes, bypassing explicit point or box prompts.
- The method tunes only the mask decoder and the prototype encoder, keeping the ViT-H image encoder frozen to ensure efficiency.
- Contrastive prototype learning is introduced to enhance inter-class discrimination by minimizing similarity between different instrument classes and maximizing it within the same class.
- The model uses both sparse (prototype-based) and dense (image feature) prompt embeddings to guide the mask decoder, improving segmentation accuracy.
- The class prompt encoder computes similarity maps between image features and class prototypes to activate relevant regions for precise localization.
- The framework is trained end-to-end with a combined loss including mask loss and prototype contrastive loss ($\mathcal{L}_{PCL}$).
Experimental results
Research questions
- RQ1Can a prototype-based prompt encoder improve zero-shot surgical instrument segmentation without relying on explicit bounding boxes or point prompts?
- RQ2How does contrastive prototype learning enhance discrimination among highly similar surgical instrument categories?
- RQ3To what extent does end-to-end fine-tuning of SAM with minimal parameters improve performance on surgical segmentation benchmarks?
- RQ4How robust is the proposed method to prompt noise or variations in prompt location and scale?
- RQ5What is the impact of combining sparse and dense prompt embeddings on segmentation accuracy in surgical endoscopy?
Key findings
- SurgicalSAM achieves a Challenge IoU of 80.33% and mc IoU of 58.87% on the EndoVis2018 dataset, setting a new state-of-the-art.
- The ablation study shows that removing dense prompt embeddings reduces performance to 23.61% Challenge IoU, highlighting their critical role.
- Without sparse prompt embeddings, performance drops to 78.58% Challenge IoU, indicating their importance in accurate localization.
- The contrastive prototype learning method outperforms a CLIP-based text prompt baseline, which achieves only 75.94% Challenge IoU.
- The method demonstrates high robustness to random seed variation, with a standard deviation of only 0.29 for Challenge IoU across repeated experiments.
- Only 4.65 million parameters are fine-tuned, resulting in low training and inference costs while maintaining high performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.