Introduction
Vascular diseases, including stenoses (narrowing) and aneurysms (widening), represent significant clinical challenges that require precise diagnostic imaging for effective intervention. X-ray angiography remains the gold standard for visualizing blood flow and identifying these conditions. However, the manual interpretation of these images is time-consuming and prone to human error or fatigue. While deep learning models like U-Net have improved automated segmentation, they often require extensive, task-specific training data.
The emergence of foundation models, such as Meta’s Segment Anything Model (SAM), offers a new paradigm for medical imaging. However, SAM’s zero-shot performance is often limited by its reliance on precise manual prompts (points or bounding boxes), which are difficult to generate consistently in the low-contrast environment of angiography. This paper introduces Dr-SAM, an end-to-end framework that automates the prompting process and integrates geometric analysis to provide comprehensive vascular diagnostics.
Methodology
The Dr-SAM framework is divided into three distinct stages: vessel extraction, diameter estimation, and anomaly detection.
1. Automated Vessel Extraction
To overcome the limitations of manual prompting, the authors developed a Point Finder algorithm. This component generates a probability map where pixels likely to represent contrast-filled vessels are assigned higher scores. The algorithm samples 100 candidate points and iteratively selects the five most probable vessel points to serve as prompts for SAM’s mask decoder. This automated approach ensures that the model focuses on the relevant vasculature while ignoring background noise and artifacts.
2. Diameter Estimation via Topological Skeletons
Following segmentation, the framework converts the 2D vessel mask into a "topological skeleton"—a one-pixel-wide centerline representing the vessel's path. To ensure accuracy, a pruning algorithm is applied to remove "false" branches caused by segmentation noise. The system then utilizes a distance transform to calculate the distance from each point on the centerline to the nearest edge of the vessel mask. This process effectively measures the vessel's radius at every point along its length, providing a continuous diameter profile.
3. Anomaly Detection and Signal Processing
The calculated diameters are treated as a 1D signal. By analyzing the local extrema of this signal, Dr-SAM identifies potential pathologies. A significant local minimum indicates a stenosis, while a significant local maximum indicates an aneurysm. To improve robustness, the framework employs DBSCAN clustering to filter out noise and a histogram-driven approach to categorize the severity of the detected anomalies.
Experimental Setup
The framework was validated using a newly curated benchmark dataset consisting of 500 angiographic examinations of pelvic-iliac arteries collected between 2018 and 2024. The dataset includes:
- 450 standard-resolution images (386x448).
- 50 high-resolution images (819x950).
- Annotations for 170 images with stenoses and 64 images with aneurysms, verified by two professional vascular surgeons.
Results and Discussion
Dr-SAM demonstrates superior performance compared to both standalone SAM and naive point-selection methods.
Segmentation Performance
The framework achieved a Mean Intersection over Union (mIoU) of 0.859, a significant improvement over the vanilla SAM (0.754) and the naive selection approach (0.807). This suggests that the Point Finder algorithm is highly effective at providing the context SAM needs to succeed in medical domains.
Clinical Utility and Efficiency
Beyond segmentation, Dr-SAM successfully quantifies anomalies, providing specific metrics such as "21% stenosis" or "73% aneurysm." This level of detail is critical for surgical planning. Furthermore, the pipeline is computationally efficient:
- Segmentation: ~0.66 seconds
- Anomaly Detection: ~0.65 seconds
The total processing time of approximately 1.3 seconds per image makes the system suitable for real-time clinical decision support.
Conclusion
Dr-SAM represents a significant step forward in applying foundation models to specialized medical tasks. By automating the prompting process and incorporating geometric skeletonization, the framework provides a robust tool for vascular analysis. Future research will focus on expanding the model's application to coronary and cerebral vasculature and integrating the system into hospital Picture Archiving and Communication Systems (PACS). The authors also intend to release the benchmark dataset and code to support the broader research community.
Summary updated