MaskSAM: Auto-Prompt SAM with Mask Classification for Volumetric Medical Image Segmentation

Bin Xie, Hao Tang, Bin Duan, Dawen Cai, Yan Yan +1 more
1/1/2025

No confident code implementation found for this paper.

Abstract

The Segment Anything Model (SAM), a prompt-driven foundation model for natural image segmentation, has demonstrated impressive zero-shot performance. However, SAM is not directly applicable to medical image segmentation due to its inability to predict semantic labels, reliance on additional prompts, and suboptimal performance in this domain.

Show full abstract

To address these limitations, we propose MaskSAM, a novel prompt-free SAM adaptation framework for medical image segmentation based on mask classification. MaskSAM introduces a prompt generator integrated with SAM's image encoder to produce auxiliary classifier tokens, binary masks, and bounding boxes. Each pair of auxiliary mask and box prompts eliminates the need for user-provided prompts. Semantic label prediction is enabled by summing the auxiliary classifier tokens with learnable global classifier tokens in SAM's mask decoder. Additionally, we design a 3D depth-convolution adapter for image embeddings and a 3D depth-MLP adapter for prompt embeddings, which are injected into each transformer block in the image encoder and mask decoder to efficiently fine-tune SAM for volumetric medical imaging. Our method achieves state-of-the-art performance, with a Dice score of 90.52% on AMOS2022, outperforming nnUNet by 2.7%. MaskSAM also surpasses nnUNet by 1.8% on ACDC and 1.0% on the Synapse dataset, demonstrating its effectiveness in medical image segmentation. We release our code at https://github.com/bxie9/MaskSAM.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xie2025masksam,
  title  = {MaskSAM: Auto-Prompt SAM with Mask Classification for Volumetric Medical Image Segmentation},
  author = {Bin Xie and Hao Tang and Bin Duan and Dawen Cai and Yan Yan and G. Agam},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:c8312c29ec1e5db79688cec0e208dbfa95e7d642},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/c8312c29ec1e5db79688cec0e208dbfa95e7d642.svg)](https://codeofpaper.com/paper/c8312c29ec1e5db79688cec0e208dbfa95e7d642)

Discussion