MaSCoT: Medical image Segmentation and Classification with SAM-distilled Convolutional-Transformers approach for robotic surgery.
Authors
Abstract
Accurate and efficient segmentation and semantic recognition of surgical instruments are essential for enabling safe autonomy in robot-assisted surgery. Foundation models such as the Segment Anything Model (SAM) exhibit strong generalization capabilities but remain impractical for real-time deployment due to their high computational cost, reliance on manual prompts, and inherently class-agnostic behavior. In this work, we propose MaSCoT, a lightweight hybrid convolutional-transformer network designed for prompt-free surgical instrument segmentation. MaSCoT combines a CMT-Light encoder with a CNN-based decoder and is trained through a two-stage knowledge-distillation strategy that transfers SAM's segmentation knowledge at complementary levels. First, representation-level knowledge is transferred by aligning the latent features of the SAM and MaSCoT encoders. Subsequently, mask-level knowledge is transferred by training the lightweight CNN decoder to reproduce the segmentation predictions generated by SAM. Although prompting is used by the SAM teacher during knowledge transfer, the resulting MaSCoT network requires no prompts at inference time. A dedicated classification branch is further introduced during supervised fine-tuning to associate semantic instrument labels with the identified foreground regions, resulting in a unified pipeline for binary instrument segmentation and region-wise semantic classification. The proposed framework was trained and evaluated on a combination of the EndoVis and CholecSeg8k datasets, two publicly available surgical datasets, and further assessed on the SurgVu dataset to evaluate generalization capability. Results show that MaSCoT achieves competitive accuracy and precision (Dice 0.9355 vs. 0.9393 and IoU 0.8919 vs. 0.8915 compared to SAM) while operating in real time. These findings demonstrate that MaSCoT delivers accurate, prompt-free surgical instrument segmentation and region-wise semantic classification with minimal computational overhead, making it suitable for integration into resource-constrained clinical systems.