[Paper Review] Generalist Vision Foundation Models for Medical Imaging: A Case Study of Segment Anything Model on Zero-Shot Medical Segmentation
This study evaluates the zero-shot segmentation performance of the Segment Anything Model (SAM) across nine diverse medical imaging benchmarks spanning OCT, MRI, CT, and dermoscopy. Despite strong general-domain performance, SAM shows limited zero-shot capability on medical images—particularly for structured targets like blood vessels—while fine-tuning with minimal data yields dramatic improvements, demonstrating SAM’s strong potential for medical segmentation after adaptation.
In this paper, we examine the recent Segment Anything Model (SAM) on medical images, and report both quantitative and qualitative zero-shot segmentation results on nine medical image segmentation benchmarks, covering various imaging modalities, such as optical coherence tomography (OCT), magnetic resonance imaging (MRI), and computed tomography (CT), as well as different applications including dermatology, ophthalmology, and radiology. Those benchmarks are representative and commonly used in model development. Our experimental results indicate that while SAM presents remarkable segmentation performance on images from the general domain, its zero-shot segmentation ability remains restricted for out-of-distribution images, e.g., medical images. In addition, SAM exhibits inconsistent zero-shot segmentation performance across different unseen medical domains. For certain structured targets, e.g., blood vessels, the zero-shot segmentation of SAM completely failed. In contrast, a simple fine-tuning of it with a small amount of data could lead to remarkable improvement of the segmentation quality, showing the great potential and feasibility of using fine-tuned SAM to achieve accurate medical image segmentation for a precision diagnostics. Our study indicates the versatility of generalist vision foundation models on medical imaging, and their great potential to achieve desired performance through fine-turning and eventually address the challenges associated with accessing large and diverse medical datasets in support of clinical diagnostics.
Motivation & Objective
- To evaluate the zero-shot segmentation performance of the generalist vision foundation model Segment Anything Model (SAM) on diverse medical imaging tasks.
- To identify the limitations of SAM in generalizing to out-of-distribution medical images without fine-tuning.
- To assess whether fine-tuning SAM with small amounts of medical data can significantly improve segmentation accuracy.
- To provide a standardized, comprehensive benchmark of SAM across multiple medical imaging modalities and applications.
- To guide future development of generalist vision foundation models for clinical diagnostics by identifying key challenges and opportunities.
Proposed method
- Evaluated SAM using a standardized prompt protocol: for each instance in the ground truth mask, the centroid of the mask was used as the prompt input.
- Selected the highest-scoring segmentation output from SAM’s three candidate outputs per prompt for evaluation.
- Applied the official ViT-H checkpoint of SAM on a single NVIDIA RTX 3080 GPU to ensure consistent performance evaluation.
- Used Dice coefficient as the primary metric for quantitative comparison across all medical benchmarks.
- Conducted preliminary fine-tuning of SAM on retinal vessel segmentation data to assess performance gains from adaptation.
- Evaluated SAM across nine datasets spanning dermoscopy, ophthalmology, radiology, and pathology, covering OCT, MRI, CT, and endoscopy.
Experimental results
Research questions
- RQ1How well does SAM perform in zero-shot segmentation across diverse medical imaging modalities without any fine-tuning?
- RQ2What are the failure modes of SAM when applied to medical images, particularly for complex anatomical structures like branching blood vessels?
- RQ3To what extent can fine-tuning SAM with a small amount of medical data improve its segmentation performance compared to its zero-shot baseline?
- RQ4How does SAM’s zero-shot performance compare quantitatively to state-of-the-art domain-specific medical segmentation models?
- RQ5What role do prompt engineering and input representation play in the generalization of foundation models like SAM to medical imaging?
Key findings
- SAM demonstrated better zero-shot performance on endoscopic and dermoscopic images than on other modalities, likely due to their similarity to natural RGB images in SAM’s pretraining data.
- SAM completely failed to segment continuous branching structures such as blood vessels in both medical and non-medical (e.g., tree branches) images in zero-shot mode.
- SAM’s zero-shot Dice scores were consistently lower than state-of-the-art medical segmentation models by 0.1–0.4, and in the worst case, by as much as 0.65.
- Fine-tuning SAM on a small retinal vessel dataset led to a dramatic improvement in segmentation quality, indicating strong potential for adaptation.
- The performance gap between zero-shot SAM and SOTA models highlights the limitations of direct transfer from general-domain foundation models to medical imaging.
- The study reveals that prompt consistency and input representation are critical factors, as centroid-based prompts sometimes fail to lie within the region of interest, affecting evaluation reliability.
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.