[Paper Review] SAM-Med2D
SAM-Med2D adapts the Segment Anything Model to medical 2D images by large-scale domain-specific fine-tuning, enabling multi-prompt interactive segmentation with strong generalization across modalities and organs.
The Segment Anything Model (SAM) represents a state-of-the-art research advancement in natural image segmentation, achieving impressive results with input prompts such as points and bounding boxes. However, our evaluation and recent research indicate that directly applying the pretrained SAM to medical image segmentation does not yield satisfactory performance. This limitation primarily arises from significant domain gap between natural images and medical images. To bridge this gap, we introduce SAM-Med2D, the most comprehensive studies on applying SAM to medical 2D images. Specifically, we first collect and curate approximately 4.6M images and 19.7M masks from public and private datasets, constructing a large-scale medical image segmentation dataset encompassing various modalities and objects. Then, we comprehensively fine-tune SAM on this dataset and turn it into SAM-Med2D. Unlike previous methods that only adopt bounding box or point prompts as interactive segmentation approach, we adapt SAM to medical image segmentation through more comprehensive prompts involving bounding boxes, points, and masks. We additionally fine-tune the encoder and decoder of the original SAM to obtain a well-performed SAM-Med2D, leading to the most comprehensive fine-tuning strategies to date. Finally, we conducted a comprehensive evaluation and analysis to investigate the performance of SAM-Med2D in medical image segmentation across various modalities, anatomical structures, and organs. Concurrently, we validated the generalization capability of SAM-Med2D on 9 datasets from MICCAI 2023 challenge. Overall, our approach demonstrated significantly superior performance and generalization capability compared to SAM.
Motivation & Objective
- Bridge the gap between natural-image SAM and medical image segmentation by incorporating medical-domain knowledge.
- Create a large-scale, diverse medical image segmentation dataset to train and fine-tune SAM for medical tasks.
- Develop comprehensive prompt support (points, bounding boxes, and masks) and adapter-based fine-tuning for medical imaging.
- Evaluate SAM-Med2D across multiple modalities and anatomical structures, and test generalization on MICCAI 2023 datasets.
Proposed method
- Assemble and preprocess ~4.6M medical images with 19.7M masks from public/private sources to cover 10 modalities and 31 organs.
- Freeze the image encoder and insert trainable adapters in each Transformer block to learn medical-domain knowledge.
- Fine-tune the prompt encoder for point, bounding box, and mask prompts, and train the mask decoder with simulated interactive segmentation.
- Use dense and sparse prompts, with multiple masks predicted per prompt and loss computed via IoU-based selection during backpropagation.
- Simulate nine-step interactive segmentation per batch, updating adapter, prompt encoder, and mask decoder parameters in early steps, then primarily updating the mask decoder.
Experimental results
Research questions
- RQ1Can SAM-Med2D achieve superior segmentation performance on medical images versus the vanilla SAM?
- RQ2How do different prompts (point, bounding box, mask) affect segmentation quality in medical imaging?
- RQ3Does large-scale medical-domain fine-tuning improve generalization across modalities and unseen MICCAI 2023 datasets?
- RQ4What is the impact of adapter-based fine-tuning on the SAM encoder’s domain adaptation for medical images?
Key findings
- SAM-Med2D achieves higher Dice scores than SAM and FT-SAM across evaluated tasks, with notable gains in the 256x256 resolution and multi-prompt use.
- Point-based prompts become competitive with or surpass bounding boxes when using multiple points in interactive segmentation.
- SAM-Med2D demonstrates strong generalization on 9 MICCAI 2023 datasets, indicating robust performance on unseen medical images.
- The comprehensive prompt-support (points, boxes, masks) and adapters enable broader, more effective medical image segmentation than prior methods.
- Experiments show the benefit of large-scale medical data and domain-adaptive fine-tuning for improving SAM's medical segmentation performance.
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.