ProCo: Prototype-Aware Contrastive Learning for Long-Tailed Medical Image Classification

Zhixiong Yang, Junwen Pan, Yanzhan Yang, Xiaozhou Shi, Hong-Yu Zhou, Zhicheng Zhang, Cheng Bian

TL;DR

This paper introduces ProCo, a novel contrastive learning framework designed to tackle the significant class imbalance problem in medical image classification. By incorporating category prototypes and an adversarial proto-instance generation strategy, ProCo creates more discriminative feature representations, leading to state-of-the-art performance on challenging long-tailed medical datasets.

What Problem Does This Paper Address?

Medical image classification is a crucial tool in healthcare, but it's plagued by a common issue: highly imbalanced datasets. This imbalance arises because rare diseases or conditions are, by definition, less frequent, leading to datasets where a few "head" categories dominate, while many "tail" categories have very few examples. Standard machine learning models trained on such data tend to become biased towards the majority classes, performing poorly on the underrepresented, often critical, tail classes. Previous attempts to address this, like re-weighting or re-sampling, often struggle to create sufficiently discriminative feature representations, leaving a gap in effective and efficient long-tailed classification.

Methods

ProCo builds upon contrastive learning, a powerful self-supervised technique, and introduces several key innovations:

  • Category Prototype and Adversarial Proto-Instance: Instead of relying solely on individual sample pairs for contrastive learning, ProCo introduces "category prototypes" – learnable representations for each class. These prototypes are then used to generate "adversarial proto-instances." These are essentially synthetic samples created by interpolating between existing samples and prototypes, designed to confuse the model and force it to learn more robust and discriminative features, especially for tail classes. This helps to create more informative positive and negative pairs for contrastive learning.
  • Prototype Recalibration Strategy: To further combat the bias introduced by imbalanced data, ProCo employs a prototype recalibration strategy. This method estimates the "representative level" of each category prototype, effectively adjusting their importance during training. This ensures that prototypes for tail classes, which might otherwise be overshadowed, receive appropriate attention.
  • Unified Proto-Loss: A novel "proto-loss" function is proposed to seamlessly integrate contrastive learning with prototype-based supervised learning. This unified loss function optimizes the framework end-to-end, improving efficiency and performance compared to traditional two-stage approaches.

Datasets

The paper evaluates ProCo on two publicly available, long-tailed medical image classification datasets:

  • ISIC2018: A dataset for skin lesion analysis, featuring 7 classes with an imbalance ratio of 58.
  • APTOS2019: A dataset for blindness detection, with 5 classes and an imbalance ratio of 10.

The authors followed a standard 7:3 train-test split for both datasets.

Key Insights and Ideas

  • Prototypes as Anchors for Robustness: The core idea of using category prototypes as anchors for contrastive learning is a significant departure. It allows the model to learn representations that are not just instance-specific but also class-aware, leading to better generalization on imbalanced data.
  • Adversarial Generation for Tail Classes: The adversarial proto-instance generation is particularly clever. By creating "confusing" synthetic samples, the model is pushed to learn finer distinctions, which is crucial for correctly classifying rare conditions.
  • Recalibration for Fairness: The prototype recalibration strategy is essential for ensuring that tail classes aren't neglected. It acts as a mechanism to "boost" the learning signal from underrepresented categories.
  • End-to-End Simplicity: Unifying the training into a single-stage pipeline with the proto-loss simplifies the training process and likely contributes to the observed efficiency gains.

Key Results

ProCo demonstrated superior performance across both datasets. On ISIC2018, it achieved an accuracy of 0.887 and an F1-score of 0.763. For APTOS2019, it reached an accuracy of 0.837 and an F1-score of 0.674. These results significantly outperformed existing state-of-the-art methods, often by a considerable margin, highlighting the effectiveness of ProCo's approach to long-tailed medical image classification. The ablation studies also confirmed the individual contributions of each proposed module (proto-loss, proto-instance, and recalibration).

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper details the hyperparameters used (e.g., $\gamma$, $\epsilon$, $\beta$), it's common for such methods to be sensitive to these values, which might require careful tuning for new datasets.
  • Generalizability to Other Domains: While ProCo shows strong results on medical imaging, its effectiveness on other long-tailed domains (e.g., natural images, audio) would be an interesting area for future exploration.
  • Computational Cost: Although presented as an end-to-end framework, the generation of adversarial proto-instances and prototype recalibration might add to the computational overhead compared to simpler contrastive methods.

The authors' work provides a strong foundation for future research in robust and fair classification on imbalanced datasets, particularly in critical domains like medical imaging.

Summary updated

BibTeX
@inproceedings{yang2022proco,
  author = {Zhixiong Yang and Junwen Pan and Yanzhan Yang and Xiaozhou Shi and Hong-Yu Zhou and Zhicheng Zhang and Cheng Bian},
  title = {{ProCo: Prototype-Aware Contrastive Learning for Long-Tailed Medical Image Classification}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16452-1\_17},
}

Loading related content...

Figure