Abstract
Deep learning models for medical image segmentation typically require extensive expert-annotated datasets, which are costly and time-consuming to produce. Semi-supervised learning (SSL) offers a solution by leveraging unlabeled data, but current methods often suffer from high computational costs and sensitivity to noise in pseudo-labels. This paper introduces Prototype Contrastive Consistency Segmentation (PCCS), a framework that utilizes class-level prototypes and uncertainty-weighted consistency to improve feature discriminability and robustness. By focusing on boundary-aware sampling and maintaining feature diversity through a Prototype Guide Prototype (PGP) mechanism, PCCS achieves state-of-the-art performance across multiple medical imaging benchmarks, particularly in low-label regimes.
Introduction
The advancement of deep learning in medical imaging has been significantly hindered by the "data hunger" of supervised models. In clinical practice, obtaining thousands of high-quality, pixel-level annotations for tumors or anatomical structures is a laborious process requiring expert radiologists. Semi-supervised learning (SSL) addresses this by utilizing a small set of labeled data alongside a much larger pool of unlabeled images.
A popular strategy in SSL is contrastive learning, which forces the model to learn that similar semantic entities should occupy nearby regions in the feature space. However, traditional pixel-wise contrastive approaches face two major hurdles. First, the computational complexity of comparing every pixel to every other pixel is $O(N^2)$, which is often prohibitive for high-resolution medical images. Second, these methods are highly sensitive to noise; if the model's initial guesses (pseudo-labels) on unlabeled data are incorrect, contrastive learning can reinforce these errors, leading to "hallucinated" features and poor boundary definitions.
The PCCS Framework
To overcome these challenges, the researchers propose Prototype Contrastive Consistency Segmentation (PCCS). The core idea is to move away from individual pixels and instead represent semantic classes as "prototypes"—the average feature representation for a specific class (e.g., "malignant tumor" vs. "background"). This shift not only reduces computational overhead but also provides a more stable global context that is less sensitive to pixel-level outliers.
The PCCS framework introduces three primary innovations to enhance robustness and accuracy:
1. Boundary-Aware Sampling via Signed Distance Maps (SDM)
Most segmentation errors occur at the boundaries between different tissues. PCCS utilizes Signed Distance Maps (SDMs) to calculate the spatial distance of each pixel from the predicted boundary. By focusing the prototype construction on these tricky boundary areas, the model is forced to learn features that are most discriminative where the classification task is hardest.
2. Uncertainty-Weighted Consistency Learning
Not all model predictions are equally reliable. PCCS incorporates an uncertainty-guided mechanism that calculates the entropy of the model's output. If the model is "unsure" about a specific region, the framework automatically down-weights that region's influence on the contrastive loss ($l_{pc}$). This prevents the model from learning from its own incorrect guesses, effectively filtering out noise from unlabeled data.
3. Prototype Guide Prototype (PGP)
In many teacher-student SSL architectures, the teacher network eventually becomes a mirror of the student, leading to a collapse in representation diversity. The PGP module addresses this by maintaining a "historical memory" of features ($v_c$). Instead of the teacher simply copying the student's current state, it incorporates these historical averages to ensure the prototypes remain rich and diverse throughout the training process.
Experimental Evaluation
The PCCS framework was evaluated on three distinct medical imaging tasks to demonstrate its versatility:
- BUSI (Breast Ultrasound): A dataset of 647 images categorized into benign and malignant tumors.
- BML (Breast MRI): A newly collected dataset by the authors containing 1,647 images across three modalities (MIP, T1a, and T2).
- ACDC (Cardiac MRI): A standard benchmark for segmenting the left ventricle, myocardium, and right ventricle.
Key Results and Insights
PCCS consistently outperformed state-of-the-art (SOTA) methods such as Mean-Teacher, CPS, and U2PL across all tested datasets.
On the challenging task of segmenting malignant tumors in the BUSI dataset with only 20% labeled data, PCCS achieved a 63.31% Dice score, outperforming the next best SOTA method by over 10%. On the authors' new BML dataset, PCCS reached an average Dice score of 62.06%, significantly higher than the previous best of 52.81%. In multi-class organ segmentation (ACDC), PCCS achieved the highest average performance with an 86.38% Dice score.
Qualitative results further highlight the framework's strengths. PCCS produces significantly smoother and more accurate boundaries compared to other methods. By using prototypes as noise filters and weighting them by certainty, the model eliminates the "spot-like" false positives and fragmented segmentations common in traditional semi-supervised approaches.
Conclusion and Future Work
Prototype Contrastive Consistency Learning offers a robust and efficient solution to the data scarcity problem in medical image segmentation. By leveraging class-level prototypes and uncertainty-guided weighting, PCCS effectively harnesses unlabeled data while remaining resilient to noise.
While the current results are promising, future research could explore the integration of more advanced backbones, such as Vision Transformers (ViTs), and investigate ways to optimize the computational cost of generating Signed Distance Maps. The success of PCCS on both binary tumor detection and multi-class organ segmentation suggests it has broad applicability across various clinical domains.
The implementation code is available at: https://github.com/comphsh/PCCS.
Summary updated