nnSAM: Plug-and-play Segment Anything Model Improves nnUNet Performance
Not on the map. Why?
Abstract (arXiv)
Automatic segmentation of medical images is crucial in modern clinical workflows. The Segment Anything Model (SAM) has emerged as a versatile tool for image segmentation without specific domain training, but it requires human prompts and may have limitations in specific domains. Traditional models like nnUNet perform automatic segmentation during inference and are effective in specific domains but need extensive domain-specific training. To combine the strengths of foundational and domain-specific models, we propose nnSAM, integrating SAM's robust feature extraction with nnUNet's automatic configuration to enhance segmentation accuracy on small datasets. Our nnSAM model optimizes two main approaches: leveraging SAM's feature extraction and nnUNet's domain-specific adaptation, and incorporating a boundary shape supervision loss function based on level set functions and curvature calculations to learn anatomical shape priors from limited data. We evaluated nnSAM on four segmentation tasks: brain white matter, liver, lung, and heart segmentation. Our method outperformed others, achieving the highest DICE score of 82.77% and the lowest ASD of 1.14 mm in brain white matter segmentation with 20 training samples, compared to nnUNet's DICE score of 79.25% and ASD of 1.36 mm. A sample size study highlighted nnSAM's advantage with fewer training samples. Our results demonstrate significant improvements in segmentation performance with nnSAM, showcasing its potential for small-sample learning in medical image segmentation.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 19 of its 28 references that are in the map. First posted on arXiv 29 Sep 2023.
Builds on
19 of 28 references.
References · 19
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2023Segment Anythingcited by 8,234
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,558
- 2018Attention U-Net: Learning Where to Look for the Pancreascited by 1,435
- 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,222
- 2019UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentationcited by 586
- 2023Faster Segment Anything: Towards Lightweight SAM for Mobile Applicationscited by 352
- 2023Segment Anything Model for Medical Image Analysis: an Experimental Studycited by 291
- 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 234
- 2020Semi-supervised Medical Image Segmentation through Dual-task Consistencycited by 216
- 2020U-Net and its variants for medical image segmentation: theory and applicationscited by 169
7 more
- 2022LViT: Language meets Vision Transformer in Medical Image Segmentationcited by 111
- 2019Evaluation of Algorithms for Multi-Modality Whole Heart Segmentation: An Open-Access Grand Challengecited by 100
- 2023AutoSAM: Adapting SAM to Medical Images by Overloading the Prompt Encodercited by 70
- 2019Deep Distance Transform for Tubular Structure Segmentation in CT Scanscited by 52
- 2021GT U-Net: A U-Net Like Group Transformer Network for Tooth Root Segmentationcited by 20
- 2021AGMB-Transformer: Anatomy-Guided Multi-Branch Transformer Network for Automated Evaluation of Root Canal Therapycited by 10
- 2020Learning Euler's Elastica Model for Medical Image Segmentationcited by 6
Built on by
Citing papers per year: 2023: 3; 2024: 5; 2025: 4.
12 papers.
- 2024Segment Anything Model for Medical Image Segmentation: Current Applications and Future Directionscited by 97
- 2023SAM-Assisted Remote Sensing Imagery Semantic Segmentation with Object and Boundary Constraintscited by 35
- 2023Continual Self-supervised Learning: Towards Universal Multi-modal Medical Data Representation Learningcited by 34
- 2024ScribFormer: Transformer Makes CNN Work Better for Scribble-based Medical Image Segmentationcited by 24
- 2023Enhancing the Reliability of Segment Anything Model for Auto-Prompting Medical Image Segmentation with Uncertainty Rectificationcited by 8
- 2024Curriculum Prompting Foundation Models for Medical Image Segmentationcited by 6
- 2024Ultrasound SAM Adapter: Adapting SAM for Breast Lesion Segmentation in Ultrasound Imagescited by 4
- 2024A Deep Learning Model for Coronary Artery Segmentation and Quantitative Stenosis Detection in Angiographic Imagescited by 3
- 2025Cross-Modal Interactive Perception Network with Mamba for Lung Tumor Segmentation in PET-CT Imagescited by 3
- 2025Federated Client-tailored Adapter for Medical Image Segmentationcited by 3
- 2025Brain Imaging Foundation Models, Are We There Yet? A Systematic Review of Foundation Models for Brain Imaging and Biomedical Researchcited by 0
- 2025DEAP-3DSAM: Decoder Enhanced and Auto Prompt SAM for 3D Medical Image Segmentationcited by 0
- 2025DEAP-3DSAM: Decoder Enhanced and Auto Prompt SAM for 3D Medical Image Segmentation24 Nov 2025
- 2025Brain Imaging Foundation Models, Are We There Yet? A Systematic Review of Foundation Models for Brain Imaging and Biomedical Research16 Jun 2025
- 2025Federated Client-tailored Adapter for Medical Image Segmentation25 Apr 2025
- 2025Cross-Modal Interactive Perception Network with Mamba for Lung Tumor Segmentation in PET-CT Images21 Mar 2025
- 2024Curriculum Prompting Foundation Models for Medical Image Segmentation1 Sep 2024
- 2024A Deep Learning Model for Coronary Artery Segmentation and Quantitative Stenosis Detection in Angiographic Images1 Jun 2024
- 2024Ultrasound SAM Adapter: Adapting SAM for Breast Lesion Segmentation in Ultrasound Images23 Apr 2024
- 2024ScribFormer: Transformer Makes CNN Work Better for Scribble-based Medical Image Segmentation3 Feb 2024
- 2024Segment Anything Model for Medical Image Segmentation: Current Applications and Future Directions7 Jan 2024
- 2023SAM-Assisted Remote Sensing Imagery Semantic Segmentation with Object and Boundary Constraints5 Dec 2023
- 2023Continual Self-supervised Learning: Towards Universal Multi-modal Medical Data Representation Learning29 Nov 2023
- 2023Enhancing the Reliability of Segment Anything Model for Auto-Prompting Medical Image Segmentation with Uncertainty Rectification17 Nov 2023