Skip to main content
QUICK REVIEW

[Paper Review] MedSAM2: Segment Anything in 3D Medical Images and Videos

Jun Ma, Zongxin Yang|ArXiv.org|Apr 4, 2025
Advanced Neural Network ApplicationsComputer Science3 citations
TL;DR

MedSAM2 fine-tunes SAM2 on a large 3D medical image and video dataset to enable promptable, memory-assisted segmentation across CT, MRI, PET, ultrasound, and endoscopy. It also demonstrates workflow-boosting annotation pipelines and multi-platform deployment.

ABSTRACT

Medical image and video segmentation is a critical task for precision medicine, which has witnessed considerable progress in developing task or modality-specific and generalist models for 2D images. However, there have been limited studies on building general-purpose models for 3D images and videos with comprehensive user studies. Here, we present MedSAM2, a promptable segmentation foundation model for 3D image and video segmentation. The model is developed by fine-tuning the Segment Anything Model 2 on a large medical dataset with over 455,000 3D image-mask pairs and 76,000 frames, outperforming previous models across a wide range of organs, lesions, and imaging modalities. Furthermore, we implement a human-in-the-loop pipeline to facilitate the creation of large-scale datasets resulting in, to the best of our knowledge, the most extensive user study to date, involving the annotation of 5,000 CT lesions, 3,984 liver MRI lesions, and 251,550 echocardiogram video frames, demonstrating that MedSAM2 can reduce manual costs by more than 85%. MedSAM2 is also integrated into widely used platforms with user-friendly interfaces for local and cloud deployment, making it a practical tool for supporting efficient, scalable, and high-quality segmentation in both research and healthcare environments.

Motivation & Objective

  • Motivate the need for generalist segmentation models in 3D medical imaging and video data.
  • Develop MedSAM2 by fine-tuning SAM2 on a large, diverse medical dataset.
  • Demonstrate improved segmentation accuracy across organs and lesions and modalities.
  • Showcase human-in-the-loop annotation pipelines that reduce labeling costs.
  • Illustrate practical deployment in common medical imaging platforms.

Proposed method

  • Fine-tune the lightweight SAM2.1-Tiny model end-to-end on a large 3D medical image and video dataset.
  • Use a bounding box prompt on the middle slice for 3D volumes and propagate masks bidirectionally along the volume.
  • Incorporate a memory attention module to condition current features on past frames and predictions via a streaming memory bank.
  • Apply a multiscale image encoder (Hierarchical Vision Transformer) for efficient feature extraction.
  • Leverage full-model fine-tuning with adjusted learning rates across components (image encoder, memory, prompt encoder, mask decoder).
  • Evaluate on hold-out 3D datasets and compare with SAM2.1 variants and EfficientMedSAM-Top1.

Experimental results

Research questions

  • RQ1Can a generalist segmentation foundation model be effectively adapted to 3D medical images and videos via full-model fine-tuning?
  • RQ2Does MedSAM2 improve segmentation accuracy and robustness across CT, MRI, PET, ultrasound, and endoscopy data compared to SAM2.1 variants and current SOTA?
  • RQ3Can a memory-based, promptable framework provide stable temporal segmentation in volumetric and video data?
  • RQ4What is the impact of domain-specific fine-tuning on annotation efficiency and large-scale dataset generation?
  • RQ5How feasible is multi-platform deployment of MedSAM2 for practical clinical and research workflows?

Key findings

  • MedSAM2 achieves the highest DSC scores across CT organs, CT lesions, MRI organs, MRI lesions, and PET lesions in hold-out tests.
  • MedSAM2 shows improved robustness and lower variability in ultrasound heart chambers and endoscopy polyps compared with SAM2.1 variants.
  • In video tasks, MedSAM2 yields higher and more consistent segmentation of heart chambers and polyps than SAM2.1 models.
  • Human-in-the-loop annotation with MedSAM2 reduces annotation time by up to 92% and expands dataset size dramatically through iterative fine-tuning.
  • The model integrates into 3D Slicer, terminal, JupyterLab, Colab, and Gradio, enabling flexible local and cloud deployment.

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.