Skip to main content
QUICK REVIEW

[Paper Review] Segment Anything Model for Medical Images?

Yuhao Huang, Xin Yang|PubMed|Apr 28, 2023
Advanced Neural Network ApplicationsComputer Science40 citations
TL;DR

This study evaluates how well the Segment Anything Model (SAM) generalizes to medical image segmentation across a large, multi-modal COSMOS 1050K dataset and analyzes prompting strategies, model sizes, and finetuning effects.

ABSTRACT

The Segment Anything Model (SAM) is the first foundation model for general image segmentation. It has achieved impressive results on various natural image segmentation tasks. However, medical image segmentation (MIS) is more challenging because of the complex modalities, fine anatomical structures, uncertain and complex object boundaries, and wide-range object scales. To fully validate SAM's performance on medical data, we collected and sorted 53 open-source datasets and built a large medical segmentation dataset with 18 modalities, 84 objects, 125 object-modality paired targets, 1050K 2D images, and 6033K masks. We comprehensively analyzed different models and strategies on the so-called COSMOS 1050K dataset. Our findings mainly include the following: (1) SAM showed remarkable performance in some specific objects but was unstable, imperfect, or even totally failed in other situations. (2) SAM with the large ViT-H showed better overall performance than that with the small ViT-B. (3) SAM performed better with manual hints, especially box, than the Everything mode. (4) SAM could help human annotation with high labeling quality and less time. (5) SAM was sensitive to the randomness in the center point and tight box prompts, and may suffer from a serious performance drop. (6) SAM performed better than interactive methods with one or a few points, but will be outpaced as the number of points increases. (7) SAM's performance correlated to different factors, including boundary complexity, intensity differences, etc. (8) Finetuning the SAM on specific medical tasks could improve its average DICE performance by 4.39% and 6.68% for ViT-B and ViT-H, respectively. Codes and models are available at: https://github.com/yuhoo0302/Segment-Anything-Model-for-Medical-Images. We hope that this comprehensive report can help researchers explore the potential of SAM applications in MIS, and guide how to appropriately use and develop SAM.

Motivation & Objective

  • Assess SAM's zero-shot and prompt-based segmentation performance on a large, diverse medical image dataset.
  • Identify factors influencing SAM performance on medical objects, including modality, boundary complexity, and intensity differences.
  • Evaluate how different prompts (points, boxes) and model sizes (ViT-B vs ViT-H) affect MIS segmentation quality.
  • Investigate the benefits of finetuning SAM on medical tasks and its impact on Dice scores across modalities.
  • Provide guidelines for using and developing SAM for medical image segmentation (MIS).

Proposed method

  • Construct COSMOS 1050K by aggregating 53 public MIS datasets across 18 modalities and 84 objects with 6 object-modality targets.
  • Preprocess 2D/3D data to obtain standardized PNG slices and 6033K masks suitable for SAM evaluation.
  • Evaluate SAM in Everything and six manual prompt modes (1 point, 5 points, 5 positives + 5 negatives, one box, one box + 1 point) using a unified point/box selection strategy.
  • Compare two SAM backbones (ViT-B and ViT-H) to assess size-related performance and stability.
  • Apply a mask-matching evaluation (best Dice score across predicted masks) to align SAM outputs with ground truth for each object.
  • Report inference-efficiency improvements by embedding reuse to reduce redundant computations during multi-strategy testing.

Experimental results

Research questions

  • RQ1How does SAM perform on medical images across a wide range of modalities and objects in COSMOS 1050K?
  • RQ2How do different prompts (points vs boxes) and model sizes (ViT-B vs ViT-H) influence segmentation quality in MIS?
  • RQ3Can fine-tuning SAM on medical data improve average Dice scores across objects and modalities?
  • RQ4What object and image characteristics most affect SAM's segmentation performance (e.g., boundary complexity, intensity differences, size)?

Key findings

  • SAM shows strong performance on some objects but is unstable or fails on others in MIS.
  • ViT-H generally outperforms ViT-B in overall performance, particularly with more prompts.
  • Manual prompts (especially box prompts) yield better results than the Everything mode for MIS tasks.
  • SAM can assist human annotation with higher labeling quality and reduced time.
  • Finetuning SAM on medical tasks improves average Dice by 4.39% (ViT-B) and 6.68% (ViT-H).
  • SAM's performance is sensitive to center-point randomness and tight box prompts and may suffer significant drops under these conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.