Addressing Class Imbalance in Semi-supervised Image Segmentation: A Study on Cardiac MRI

Hritam Basak, Sagnik Ghosal, Ram Sarkar · DOI

Introduction

Deep learning has significantly advanced medical image analysis, yet it remains constrained by the high cost of expert annotations. Pixel-level labeling of cardiac MRIs is time-consuming and requires specialized knowledge. Semi-supervised learning (SSL) addresses this by leveraging a small labeled dataset alongside a larger unlabeled pool. However, cardiac segmentation faces a critical challenge: class imbalance. Small anatomical structures like the myocardium or right ventricle are often overshadowed by the background, leading to noisy pseudo-labels and poor model convergence in standard SSL frameworks.

Methodology

The proposed framework extends the Student-Teacher architecture, where a Student network learns from both ground-truth labels and pseudo-labels generated by a Teacher network (an exponential moving average of the Student). To mitigate class imbalance, the authors introduce three primary components:

  1. Confidence Array & Fuzzy Fusion: The model tracks class-wise performance using three metrics: Entropy (uncertainty), Variance (consistency), and Confidence (prediction strength). These are fused using a Gompertz function—a "fuzzy fusion" approach—to create a Cumulative Confidence (CC) score. This score adaptively prioritizes the most relevant metric for each sample.
  2. Robust Class-wise Sampling (RCS): Using the CC score, the model identifies under-performing classes and increases their sampling frequency during unsupervised training.
  3. Dynamic Training Stabilization (DTS): This mechanism modulates loss weights, ensuring that high-confidence samples contribute more to the learning process, thereby filtering out noise from unreliable pseudo-labels.
Overview of the proposed semi-supervised framework and Robust Class-wise Sampling (RCS).

Results

The model was evaluated on the ACDC (Automated Cardiac Diagnosis Challenge) and MMWHS (Multi-Modality Whole Heart Segmentation) benchmarks. The results demonstrate that the "performance-aware" strategy significantly outperforms existing state-of-the-art (SOTA) methods, especially in low-data regimes.

On the ACDC dataset, with only 10% labeled data, the model achieved a Dice Similarity Coefficient (DSC) of 0.889, nearly matching the 0.902 DSC of a fully supervised model. On the MMWHS dataset, the proposed method consistently outperformed competitors by approximately 5% across various labeling ratios.

Comparison of the proposed method against state-of-the-art semi-supervised frameworks on ACDC and MMWHS datasets.

Ablation studies confirmed the efficacy of the individual components. Combining Fuzzy Fusion with RCS improved the baseline DSC by 6.7% to 7.9%, highlighting the synergy between adaptive sampling and performance-based metric fusion.

Discussion and Conclusion

This study demonstrates that the bottleneck in SSL for medical imaging is not just the volume of unlabeled data, but the reliability of pseudo-labels for underrepresented classes. By shifting from frequency-based to performance-based sampling and utilizing fuzzy logic for metric fusion, the framework achieves high accuracy with minimal supervision. Future work will explore incorporating contrastive pre-training to enhance global context understanding and further refining stabilization techniques to handle the inherent noise in medical imaging datasets.

Summary updated

BibTeX
@inproceedings{basak2022addressing,
  author = {Hritam Basak and Sagnik Ghosal and Ram Sarkar},
  title = {{Addressing Class Imbalance in Semi-supervised Image Segmentation: A Study on Cardiac MRI}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  url = {https://openreview.net/forum?id=Odukq92WKU},
}
Figure