[Paper Review] Segment Anything in Medical Images and Videos: Benchmark and Deployment
The paper benchmarks SAM2 across 11 medical modalities (2D/3D images and videos), compares with SAM1 and MedSAM, and presents transfer learning, deployment via 3D Slicer and Gradio, plus a case study on medical adaptation.
Recent advances in segmentation foundation models have enabled accurate and efficient segmentation across a wide range of natural images and videos, but their utility to medical data remains unclear. In this work, we first present a comprehensive benchmarking of the Segment Anything Model 2 (SAM2) across 11 medical image modalities and videos and point out its strengths and weaknesses by comparing it to SAM1 and MedSAM. Then, we develop a transfer learning pipeline and demonstrate SAM2 can be quickly adapted to medical domain by fine-tuning. Furthermore, we implement SAM2 as a 3D slicer plugin and Gradio API for efficient 3D image and video segmentation. The code has been made publicly available at \url{https://github.com/bowang-lab/MedSAM}.
Motivation & Objective
- Benchmark SAM2 across 11 medical image modalities (2D/3D images and videos) to identify strengths and weaknesses relative to SAM1 and MedSAM.
- Demonstrate a transfer-learning pipeline to adapt SAM2 to medical imaging tasks.
- Develop practical deployment interfaces (3D Slicer plugin and Gradio API) for efficient medical data annotation.
Proposed method
- Evaluate SAM1 and SAM2 (and MedSAM) across 2D, 3D, and video modalities using bounding box prompts and feature propagation for 3D/video due to prompted segmentation.
- Use middle-slice/first-frame prompts to initialize 2D masks, then propagate to remaining slices/frames.
- Fine-tune SAM2-T on a medical CT dataset with frozen prompt encoder and updated image encoder/mask decoder (AdamW, 6e-5, 1000 epochs).
- Assess performance with Dice Similarity Coefficient (DSC) and Normalized Surface Distance (NSD).
- Provide 3D Slicer plugin and Gradio API to enable non-coding medical workflows for SAM2-based segmentation.
Experimental results
Research questions
- RQ1How does SAM2 perform on a broad set of medical image modalities compared to SAM1 and MedSAM?
- RQ2Can SAM2 be effectively adapted to medical imaging via transfer learning without losing general segmentation capabilities?
- RQ3Do practical interfaces (3D Slicer plugin, Gradio API) enable efficient annotation and deployment of SAM2 for medical data?
- RQ4What is the impact of different model sizes within SAM2 and initialization strategies on 2D/3D medical segmentation performance?
- RQ5How does video segmentation extend SAM2’s utility to medical videos (e.g., ultrasound, endoscopy)?
Key findings
- SAM2 shows mixed results: outperforms SAM1 on MR, dermoscopy, and light microscopy in 2D, but lags in PET and OCT; overall parity across several modalities.
- MedSAM generally achieves higher 2D segmentation accuracy across 9 of 11 modalities, except PET and light microscopy where training data gaps exist.
- For 3D data, SAM2-B often surpasses SAM1, but SAM1 can outperform SAM2 in PET; 3D video-like propagation improves CT and MR segmentation.
- Initializing the middle slice with MedSAM or ground-truth masks substantially improves 3D segmentation (up to ~17.5% DSC and ~33.3% NSD gains with MedSAM; GT larger gains).
- SAM2 provides competitive video segmentation (ultrasound and endoscopy) with DSCs up to 0.8537 (ultrasound) and 0.8397 (endoscopy) for top variants.
- Transfer learning (fine-tuning SAM2-T) yields large gains on abdominal 3D organ segmentation (e.g., liver DSC 0.5802 to 0.9681; NSD 0.3605 to 0.9127).
- A practical deployment path is provided via a 3D Slicer plugin and Gradio API, enabling non-coding medical data annotation with SAM2.
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.