Abstract
The Segment Anything Model (SAM) has recently emerged as a groundbreaking foundation model for prompt-driven image segmentation tasks. However, both the original SAM and its medical variants require slice-by-slice manual prompting of target structures, which directly increase the burden for applications. Despite attempts of auto-prompting to turn SAM into a fully automatic manner, it still exhibits subpar performance and lacks of reliability especially in the field of medical imaging. In this paper, we propose UR-SAM, an uncertainty rectified SAM framework to enhance the reliability for auto-prompting medical image segmentation. Building upon a localization framework for automatic prompt generation, our method incorporates a prompt augmentation module to obtain a series of input prompts for SAM for uncertainty estimation and an uncertainty-based rectification module to further utilize the distribution of estimated uncertainty to improve the segmentation performance. Extensive experiments on two public 3D medical datasets covering the segmentation of 35 organs demonstrate that without supplementary training or fine-tuning, our method further improves the segmentation performance with up to 10.7 % and 13.8 % in dice similarity coefficient, demonstrating efficiency and broad capabilities for medical image segmentation without manual prompting.
Introduction
The Segment Anything Model (SAM) has revolutionized image segmentation through its prompt-driven capabilities. However, its application in clinical medical imaging is limited by two primary factors: the heavy burden of manual slice-by-slice prompting in 3D volumes and the lack of reliability in low-contrast regions where boundaries are ambiguous. While auto-prompting methods have been proposed, they often lack robustness; a minor shift in an automated bounding box can lead to significant segmentation errors. UR-SAM addresses these challenges by automating the prompting process and introducing an uncertainty rectification module that turns SAM's prompt sensitivity into a tool for error correction.
Methods
The UR-SAM framework operates through a three-stage pipeline designed to automate and refine medical segmentations:
- Auto-Prompting via Landmark Localization: The system utilizes a specialized model to identify "extreme points" (e.g., top, bottom, lateral boundaries) of target organs. These points are used to generate initial 3D bounding boxes automatically.
- Prompt Augmentation & Uncertainty Estimation: To account for potential inaccuracies in the initial box, UR-SAM generates a series of jittered "noisy" prompts. By running SAM on this ensemble of prompts, the system estimates predictive entropy. High variance in the output indicates regions where the model is uncertain about the boundary.
- Uncertainty Rectification: The framework identifies high-uncertainty regions using class-specific thresholds tailored to organ size. These regions are then rectified by analyzing local image intensity and spatial proximity to certain areas, ensuring that the final mask is both accurate and reliable.
Key Results and Insights
UR-SAM was evaluated on two diverse 3D CT datasets: StructSeg (22 head-and-neck organs) and FLARE 22 (13 abdominal organs). The framework demonstrated substantial performance gains without any additional model fine-tuning:
- Performance Gains: UR-SAM improved the Dice Similarity Coefficient (DSC) by up to 10.7% on StructSeg and 13.8% on FLARE 22 compared to standard auto-prompting baselines.
- Zero-Shot Superiority: Remarkably, UR-SAM using the original SAM backbone often outperformed MedSAM, a version specifically fine-tuned on medical data. This highlights the power of intelligent prompting and post-processing over heavy retraining.
- Sensitivity as a Feature: A core insight of the paper is that SAM’s sensitivity to prompt placement is a proxy for uncertainty. By quantifying this sensitivity, the system can pinpoint exactly where the segmentation is likely to fail and apply targeted corrections.
Conclusion
UR-SAM provides a robust, fully automated solution for medical image segmentation that overcomes the limitations of manual prompting and boundary reliability. By leveraging uncertainty estimation and localized rectification, it achieves state-of-the-art performance in a zero-shot manner. Future work will focus on extending these rectification techniques to other modalities like MRI and ultrasound, where tissue textures are more complex than in CT scans.
Summary updated