Introduction
The Segment Anything Model (SAM) has set a new standard for image segmentation. However, its application in clinical environments, such as polyp segmentation during colonoscopies, faces two significant hurdles: a substantial domain gap between natural and medical images, and an extreme sensitivity to prompt precision. In high-pressure medical settings, user-provided bounding boxes are often imprecise. PP-SAM (Perturbed Prompts SAM) addresses these issues through a few-shot adaptation framework designed to handle "sloppy" prompts.
Methodology: Learning from Imprecision
The core of PP-SAM is the introduction of Variable Bounding Box Perturbation (BBP) during the fine-tuning phase. Instead of training on perfect ground-truth boxes, the model is exposed to boxes that are randomly jittered by 0 to 50 pixels in all directions. This approach forces the model to focus on the intrinsic features of the polyp rather than the exact boundaries of the prompt.
Strategic Fine-tuning
To prevent overfitting on small medical datasets, the researchers identified an optimal fine-tuning strategy: freezing the mask decoder while updating the image and prompt encoders. This preserves SAM's foundational segmentation capabilities while adapting its visual understanding to the specific characteristics of endoscopic imagery.
Key Results and Evaluation
PP-SAM was evaluated on the Kvasir-SEG dataset and several unseen test sets (ClinicDB, EndoScene, ColonDB) to test generalization.
Robustness to Prompt Noise
The most striking result is the model's resilience to imprecise prompts. While the original SAM's performance degrades rapidly as bounding box perturbations increase, PP-SAM maintains high DICE scores even with significant noise.
As shown in the figure above, even a 1-shot adaptation (using only a single training image) provides a massive boost in reliability. On the Kvasir dataset, 1-shot PP-SAM improved the DICE score by 20% for 50-pixel perturbations and 37% for 100-pixel perturbations over the zero-shot baseline. Furthermore, PP-SAM outperformed specialized state-of-the-art models like PVT-CASCADE, particularly in scenarios with high prompt variability.
Conclusion
PP-SAM demonstrates that robustness in medical AI can be achieved by incorporating variability directly into the training process. By teaching the model to expect and handle "sloppy" human input, and by using strategic parameter freezing, SAM can be effectively adapted to specialized medical tasks with minimal data. Future work will look into expanding this approach to multi-class segmentation and optimizing the architecture for real-time clinical use.
Summary updated