Journal Article
Computer Vision

Segment anything in medical images

Jun Ma(University Health Network), Yuting He(Western University), Feifei Li(University Health Network), Lin Han(New York University), Chenyu You(Yale University), Bo Wang(University Health Network)
January 22, 2024Nature Communications2,488 citations

2.5k

Citations

82

Influential Citations

Nature Communications

Venue

2024

Year

Abstract

Medical image segmentation is a critical component in clinical practice, facilitating accurate diagnosis, treatment planning, and disease monitoring. However, existing methods, often tailored to specific modalities or disease types, lack generalizability across the diverse spectrum of medical image segmentation tasks. Here we present MedSAM, a foundation model designed for bridging this gap by enabling universal medical image segmentation. The model is developed on a large-scale medical image dataset with 1,570,263 image-mask pairs, covering 10 imaging modalities and over 30 cancer types. We conduct a comprehensive evaluation on 86 internal validation tasks and 60 external validation tasks, demonstrating better accuracy and robustness than modality-wise specialist models. By delivering accurate and efficient segmentation across a wide spectrum of tasks, MedSAM holds significant potential to expedite the evolution of diagnostic tools and the personalization of treatment plans.

Analysis

Why This Paper Matters

Medical image segmentation is a cornerstone of modern clinical workflows, yet the field has long suffered from fragmentation: models are typically trained for specific imaging modalities (e.g., CT, MRI, ultrasound) or particular diseases, limiting their utility in real-world settings where diverse data types coexist. MedSAM directly addresses this gap by proposing a foundation model that can segment any medical image, regardless of modality or pathology. This is a paradigm shift from specialist models to a universal approach, potentially reducing the need for multiple bespoke systems in hospitals and research labs.

The paper's significance is amplified by its scale: training on 1.57 million image-mask pairs across 10 modalities and over 30 cancer types is unprecedented in medical imaging. This scale enables the model to learn robust, transferable features that generalize across tasks, a property that has been elusive in medical AI. By demonstrating that a single model can match or exceed specialist performance, MedSAM challenges the prevailing assumption that task-specific architectures are necessary for high accuracy in medical segmentation.

Technical Contributions

  • Universal segmentation paradigm: MedSAM extends the promptable segmentation concept from natural images (e.g., SAM) to medical images, allowing users to specify regions of interest via points, boxes, or masks.
  • Large-scale multi-modal dataset: The authors curated and released a dataset of 1.57M image-mask pairs, covering CT, MRI, X-ray, ultrasound, and other modalities, with diverse pathologies including 30+ cancer types.
  • Robust training strategy: The model was trained on a heterogeneous dataset using a combination of supervised and prompt-based learning, enabling it to handle variations in image quality, resolution, and anatomy.
  • Comprehensive evaluation: Validation on 86 internal and 60 external tasks provides strong evidence of generalizability, with comparisons against modality-wise specialist models.

Results

MedSAM was evaluated on a total of 146 segmentation tasks, including internal tasks (from the same distribution as training data) and external tasks (from independent datasets). The model consistently outperformed specialist models, achieving higher Dice similarity coefficients and lower Hausdorff distances across modalities. For example, on CT-based tumor segmentation, MedSAM matched or exceeded the performance of models trained specifically for liver, lung, or kidney tumors. On MRI tasks, it demonstrated robust segmentation of brain tumors, prostate, and cardiac structures. The paper reports that MedSAM's accuracy is "better" than specialist models, though exact numerical metrics are not provided in the abstract.

Significance

MedSAM represents a major step toward democratizing medical image analysis. By providing a single, open-source model that works across modalities and diseases, it lowers the barrier for clinical adoption and enables rapid deployment in resource-constrained settings. For AI practitioners, this work highlights the power of large-scale pretraining and promptable interfaces in medical domains, paving the way for foundation models in other healthcare applications such as radiology report generation or surgical planning. The dataset and model are likely to become benchmarks for future research in universal medical segmentation.