Cross Prompting Consistency with Segment Anything Model for Semi-supervised Medical Image Segmentation

Juzheng Miao, Cheng Chen, Keli Zhang, Jie Chuai, Quanzheng Li, Pheng-Ann Heng

Introduction

Deep learning has significantly advanced medical image segmentation. However, these models typically require extensive expert-labeled datasets, which are costly and time-consuming to acquire. Semi-supervised learning (SSL) offers a solution by leveraging a small set of labeled data alongside a larger pool of unlabeled images.

Despite their promise, existing SSL methods often suffer from slow initial learning and a significant domain gap when foundation models like the Segment Anything Model (SAM) are applied to medical scans. Furthermore, SAM's high sensitivity to prompt placement makes it challenging to use in SSL settings where prompts are automatically generated from noisy, unlabeled data. To address these challenges, we present CPC-SAM (Cross Prompting Consistency with SAM), a framework that adapts SAM for medical image segmentation with extremely limited labeled data.

Methodology

CPC-SAM integrates SAM into a dual-branch SSL pipeline designed to overcome prompt sensitivity and improve learning efficiency.

Overview of the CPC-SAM framework architecture.

Dual-Branch Architecture

The framework utilizes a shared SAM image encoder and prompt encoder but employs two separate mask decoders ($D_1$ and $D_2$) with different initializations. This diversity in predictions is crucial for effective semi-supervised learning.

SAM-enabled Cross-Prompting

To leverage unlabeled data, Branch 1 generates an initial "unprompted" prediction. The system then automatically identifies a point prompt (typically the center of the largest predicted object) and feeds it to Branch 2. The resulting "prompted" output from Branch 2 serves as a refined pseudo-label to supervise Branch 1. This cross-pollination mechanism prevents the model from reinforcing its own errors, a common issue known as confirmation bias.

Prompt Consistency Regularization (PCR)

To mitigate SAM's sensitivity to prompt location, the authors introduce PCR. For a given object, the model generates two distinct prompts: a stable "center" point and a "random" point. The training objective forces the model to produce consistent segmentation masks regardless of the prompt used, enhancing robustness against the noisy prompts inherent in SSL.

Efficient Fine-tuning

The SAM encoder is fine-tuned using Low-Rank Adaptation (LoRA). This allows the model to adapt to medical image textures efficiently without updating all of its millions of parameters, preserving the foundation model's general knowledge while specializing it for the medical domain.

Experimental Evaluation

The CPC-SAM framework was evaluated on two benchmarks:

  1. BUSI (Breast Ultrasound Images): 647 images for breast cancer segmentation.
  2. ACDC (Automated Cardiac Diagnosis Challenge): 200 cine MRI scans involving three cardiac structures.

The experiments focused on "data-scarce" scenarios, using as few as 10 labeled images for BUSI or a single labeled patient for ACDC.

Results and Key Insights

CPC-SAM demonstrates superior performance compared to existing state-of-the-art (SOTA) semi-supervised methods.

Quantitative comparison of CPC-SAM against state-of-the-art methods.

Performance Gains

On the BUSI dataset with only 10 labels, CPC-SAM achieved a 71.20% Dice score, outperforming the next best method (BCP) by 9.39%. Similarly, on the ACDC dataset with one labeled patient, it reached an 85.56% Dice score, surpassing other SOTA methods like UniMatch and SemiSAM.

Key Insights

  • Foundation Models in SSL: SAM’s pre-trained knowledge provides a significantly higher performance baseline than traditional U-Nets in low-data regimes.
  • Prompting as Refinement: The prompting mechanism acts as a geometric prior, effectively "cleaning up" noisy initial predictions to create better pseudo-labels.
  • Stability is Critical: Ablation studies showed that removing PCR led to a nearly 1% drop in Dice score, confirming that stabilizing the model against prompt variance is essential for successful SSL with SAM.

Conclusion and Future Work

CPC-SAM effectively adapts the Segment Anything Model for medical imaging by addressing its prompt sensitivity through cross-prompting and consistency regularization. While the current implementation focuses on point prompts and heuristic-based prompt generation, future work will explore other prompt modalities (e.g., bounding boxes, scribbles) and more sophisticated prompt selection strategies across a wider range of medical imaging tasks.

Summary updated

BibTeX
@inproceedings{miao2024cross,
  author = {Juzheng Miao and Cheng Chen and Keli Zhang and Jie Chuai and Quanzheng Li and Pheng-Ann Heng},
  title = {{Cross Prompting Consistency with Segment Anything Model for Semi-supervised Medical Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  url = {https://openreview.net/forum?id=evacu3K9hd},
}

Loading related content...

Figure