Dynamic contrastive learning guided by class confidence and confusion degree for medical image segmentation

Jingkun Chen, Changrui Chen, Wenjian Huang, Jianguo Zhang, Kurt Debattista, Jungong Han

TL;DR

This paper introduces a novel dynamic contrastive learning framework (CCDC) for medical image segmentation that adaptively selects informative pixels for training based on class confidence and confusion. This approach significantly improves segmentation accuracy by focusing on the most expressive pixels at different stages of training, outperforming existing methods on several challenging datasets.

What Problem Does This Paper Address?

Accurate medical image segmentation is crucial for diagnosis and treatment planning, but training deep learning models for this task is hampered by the scarcity and high cost of pixel-level annotated data. Traditional contrastive learning methods, while effective for other tasks, struggle with the sheer volume of pixels in segmentation, often resorting to computationally expensive or suboptimal sampling strategies. Existing methods also tend to use a fixed sampling strategy throughout training, failing to adapt to the model's evolving performance and changing needs for informative pixels. This paper addresses the challenge of efficiently and effectively leveraging limited annotated data for medical image segmentation by developing a dynamic contrastive learning approach.

Methods

The core of this work is the Intra-Class-Confidence and Inter-Class-Confusion guided Dynamic Contrastive (CCDC) learning framework. Key components include:

  • Dynamic Pixel Selection: Instead of random sampling, CCDC dynamically selects "expressive" pixels for constructing positive and negative pairs. This selection is guided by:
  • Intra-Class Confidence Degree: Measures the model's confidence in classifying pixels within a specific class. This is used to adaptively sample "easiest," "easy," and "hard" pixels for positive pair construction. The sampling strategy shifts from prioritizing easy pixels when the model is weak to hard pixels when it's strong.
  • Inter-Class Confusion Degree: Quantifies how easily a class can be confused with other classes. This is used to mine "hard" negative classes, ensuring that the model learns to distinguish between similar or confusing classes.
  • Region-Level Representations: Pixel-level representations are enhanced by incorporating features from neighboring pixels, creating region-level representations. This leverages spatial consistency, which is crucial for accurate boundary delineation in segmentation.
  • CCDC Loss Function: A novel loss function that integrates the dynamic sampling strategies for both positive and negative pairs, aiming to optimize the model based on the current training phase and class-specific performance.

The framework uses the nnU-Net architecture as a backbone, which is standard for medical image segmentation tasks.

Datasets

The proposed method was evaluated on three publicly available medical image segmentation datasets:

  • MS-CMRSeg Dataset: Contains 45 3D cardiac cases.
  • CHAOS Dataset: Includes 60 3D CT and MRI images for abdominal organ segmentation (liver, kidneys, spleen).
  • ACDC Challenge Dataset: Consists of 100 patients with cardiac MRI scans for left ventricle, myocardium, and right ventricle segmentation.

The paper also mentions conducting additional experiments on the ACDC dataset with varying percentages of training data (5%, 10%, 20%, 40%) to assess performance under limited data conditions.

Key Insights and Ideas

  • Dynamic Sampling is Crucial: The most significant insight is that a static sampling strategy is insufficient for medical image segmentation. The model's needs for informative pixels change as it learns, and dynamically adjusting sampling based on class confidence and confusion leads to better performance.
  • Class Confidence Guides Positive Pairs: By measuring intra-class confidence, the framework can intelligently select easy, medium, or hard pixels to form positive pairs, ensuring that the model learns effectively at different stages of training.
  • Confusion Guides Negative Pairs: Focusing on inter-class confusion helps the model learn to differentiate between challenging classes, which is vital for accurate segmentation, especially in cases of class imbalance or similar-looking structures.
  • Region-Level Context Enhances Segmentation: Incorporating spatial information from neighboring pixels improves the representation and leads to better boundary detection, a common challenge in segmentation.

Key Results

The CCDC framework consistently outperformed state-of-the-art contrastive learning methods across the three evaluated datasets.

  • ACDC Challenge Dataset: The proposed method achieved a mean DSC (Dice Similarity Coefficient) of 87.45%, surpassing other methods like ReCo (86.58%) and ContrastiveSeg (86.70%). The average 95HD (95% Hausdorff Distance) was also the smallest, indicating improved segmentation accuracy.
  • MS-CMRSeg Dataset: CCDC achieved a mean DSC of 81.92%, outperforming methods like RegionContrast (79.86%) and ContrastiveSeg (81.19%).
  • CHAOS Dataset: The method achieved a mean DSC of 67.29%, showing improvements over other contrastive learning approaches.
  • Limited Data Performance: Experiments on the ACDC dataset with varying training data ratios (5% to 40%) demonstrated that CCDC significantly boosts performance, especially when data is extremely limited, highlighting its potential for practical clinical applications.

Limitations and Future Work

  • Dynamic Easy/Hard Boundaries: The authors acknowledge that dynamically adjusting the boundaries between "easy" and "hard" pixels can be challenging in complex datasets.
  • Future Research Directions:
    • Implementing a stopping criterion for training.
  • Exploring the method's applicability to other domains, tasks, and its scalability, efficiency, robustness, and generalization capabilities.
  • Investigating combinations of CCDC with other techniques to further enhance performance.

Summary updated

BibTeX
@article{chen2024dynamic,
  author = {Jingkun Chen and Changrui Chen and Wenjian Huang and Jianguo Zhang and Kurt Debattista and Jungong Han},
  title = {{Dynamic contrastive learning guided by class confidence and confusion degree for medical image segmentation}},
  journal = {Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=PTpDgwIcnTn},
}
Figure