nnSAM2: nnUNet-Enhanced One-Prompt SAM2 for Few-shot Multi-Modality Segmentation and Composition Analysis of Lumbar Paraspinal Muscles

Zhongyi Zhang, Julie A. Hides, Enrico De Martino, Abdul Joseph Fofanah, Gervase TuxwortharXiv 2025 · DOI

TL;DR

This paper introduces nnSAM2, a novel framework that combines the generalizability of SAM2 with the 3D contextual awareness of nnU-Net for few-shot segmentation of lumbar paraspinal muscles. It achieves state-of-the-art results using only a single annotated slice per dataset, demonstrating its potential for efficient and accurate medical image analysis across different modalities.

What Problem Does This Paper Address?

Accurate segmentation of lumbar paraspinal muscles (LPM) is crucial for assessing musculoskeletal health and diagnosing conditions like chronic low back pain. Traditional deep learning methods require large, manually annotated datasets, which are costly and time-consuming to create. Few-shot medical image segmentation (FSMIS) aims to alleviate this by learning from minimal data, but existing methods often struggle with cross-modality generalization. This paper addresses the challenge of achieving high-performance LPM segmentation with minimal supervision across different imaging modalities (MRI and CT) by leveraging the strengths of foundation models like SAM2 and robust 3D segmentation networks like nnU-Net.

Methods

The core innovation is the nnSAM2 framework, which operates in two stages:

  • Stage 1: SAM2-based Pseudo-labeling with IoU Confidence Scores: This stage uses SAM2, a powerful general-purpose image segmentation model, to generate initial "pseudo-labels" for LPM. A single annotated slice per dataset is used as a prompt. SAM2's ability to propagate segmentation masks frame-to-frame is leveraged, with an interleaved slice order between a reference and inference volume to ensure anatomical continuity. IoU scores from SAM2 are used as confidence estimates.
  • Stage 2: Iterative Refinement with nnU-Net: The pseudo-labels generated by SAM2 are then refined through three sequential, independent nnU-Net models. This stage incorporates confidence-based filtering and anatomical smoothness constraints to improve label quality and ensure consistency across slices. Each nnU-Net model is trained on progressively refined pseudo-labels from the previous stage, with strict criteria applied at each step to select the most reliable predictions.

This approach combines SAM2's broad generalization capabilities with nnU-Net's 3D contextual awareness without requiring fine-tuning of the foundation models.

Datasets

The study utilized six diverse datasets for training and evaluation:

  • AFL players (MRI, T2W): Private dataset of professional Australian Football League players.
  • Back-pain patients (MRI, T1W and T2W): Publicly released dataset of patients with symptomatic low back pain.
  • AGBRESA study (MRI, Dixon): Dataset from a European Space Agency study on prolonged bed rest effects.
  • TotalSegmentator (CT): Publicly available dataset for multi-organ segmentation.
  • WORD (CT): Publicly available dataset of abdominal CT scans for radiotherapy planning.

These datasets represent a mix of MRI and CT modalities, collected from different institutions and patient cohorts, highlighting the multi-modality and cross-domain nature of the study.

Key Insights and Ideas

  • Leveraging Foundation Models for Medical Segmentation: The paper demonstrates that powerful general-purpose segmentation models like SAM2 can be effectively adapted for specialized medical tasks with minimal supervision, significantly reducing annotation burden.
  • Synergy of SAM2 and nnU-Net: The combination of SAM2's broad generalization and nnU-Net's 3D contextual understanding proves to be a potent strategy for achieving state-of-the-art few-shot segmentation.
  • Minimal Supervision is Sufficient: The study highlights that even with just one annotated slice per dataset, nnSAM2 can achieve statistically comparable results to expert measurements, underscoring its clinical translation potential.
  • Open Science for Reproducibility: Releasing the source code and manual annotations is crucial for promoting reproducibility and accelerating future research in this area.

Key Results

  • Segmentation Performance: nnSAM2 consistently outperformed all benchmark methods (vanilla SAM2, medical SAM2 variants, FAMNet, and TotalSegmentator) across both MRI and CT datasets.
  • On MRI, nnSAM2 achieved Dice Similarity Coefficients (DSCs) of 0.94–0.96.
  • On CT, nnSAM2 achieved DSCs of 0.92–0.93.
  • Muscle Quantification: Automated measurements of muscle volume, fat ratio, and CT attenuation derived from nnSAM2 segmentations were statistically equivalent to expert manual measurements.
  • For muscle volume, equivalence margins were generally small (<8% for MRI, <13% for CT), with high Intraclass Correlation Coefficients (ICCs) (0.86-1.00).
  • For fat ratio (MRI), MAEs were low (0.0089-0.0108) with equivalence margins ≤5% and ICCs of 0.96–0.97.
  • For CT attenuation (HU), mean differences were small (1.97-4.29 HU) with high ICCs (0.92-0.99).

Limitations and Future Work

  • Annotation Quality: While validated by a clinical professor, involving multiple experts in future annotation efforts could further strengthen reliability.
  • Muscle Grouping: The study analyzed LES and MF muscles as a single class due to difficulties in distinguishing them on CT. Future work could explore methods to differentiate these muscles.
  • nnU-Net Reliance: nnSAM2's reliance on nnU-Net refinement might limit performance on extremely small datasets. The authors suggest that for such cases, directly using SAM2 without nnU-Net enhancement could be an alternative.
  • Future Directions: The authors propose nnSAM2 as a data-efficient paradigm for foundation model-based LPM assessment, suggesting its potential for broader applications in medical image analysis.

Summary updated

BibTeX
@misc{zhang2025nnsam,
  author = {Zhongyi Zhang and Julie A. Hides and Enrico De Martino and Abdul Joseph Fofanah and Gervase Tuxworth},
  title = {{nnSAM2: nnUNet-Enhanced One-Prompt SAM2 for Few-shot Multi-Modality Segmentation and Composition Analysis of Lumbar Paraspinal Muscles}},
  year = {2025},
  eprint = {2510.05555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05555},
}
Figure