nnSAM: Plug-and-play Segment Anything Model Improves nnUNet Performance

Yunxiang Li, Bowen Jing, Zihan Li, Jing Wang, You Zhang
9/29/2023
cs.CVeess.IV

No official code found. Best implementation: Kent0n-Li/Medical-Image-Segmentation (289 stars, MIT, last commit 2024-09-10).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

MedSeg: Medical Image Segmentation GUI Toolbox 可视化医学图像分割工具箱

28923HTML, PythonSep 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023nnsam,
  title  = {nnSAM: Plug-and-play Segment Anything Model Improves nnUNet Performance},
  author = {Yunxiang Li and Bowen Jing and Zihan Li and Jing Wang and You Zhang},
  year   = {2023},
  eprint = {2309.16967},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.16967v3}
}

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/2309.16967.svg)](https://codeofpaper.com/paper/2309.16967)

Discussion