[Paper Review] SuperCon: Supervised Contrastive Learning for Imbalanced Skin Lesion Classification
This paper proposes SuperCon, a two-stage training strategy that first uses supervised contrastive loss to learn class-aware, separable feature representations, followed by focal loss fine-tuning to improve classifier performance on imbalanced skin lesion datasets. The method achieves state-of-the-art results, improving F1-score and AUC by 0.33 and 0.032 on average over existing methods.
Convolutional neural networks (CNNs) have achieved great success in skin lesion classification. A balanced dataset is required to train a good model. However, due to the appearance of different skin lesions in practice, severe or even deadliest skin lesion types (e.g., melanoma) naturally have quite small amount represented in a dataset. In that, classification performance degradation occurs widely, it is significantly important to have CNNs that work well on class imbalanced skin lesion image dataset. In this paper, we propose SuperCon, a two-stage training strategy to overcome the class imbalance problem on skin lesion classification. It contains two stages: (i) representation training that tries to learn a feature representation that closely aligned among intra-classes and distantly apart from inter-classes, and (ii) classifier fine-tuning that aims to learn a classifier that correctly predict the label based on the learnt representations. In the experimental evaluation, extensive comparisons have been made among our approach and other existing approaches on skin lesion benchmark datasets. The results show that our two-stage training strategy effectively addresses the class imbalance classification problem, and significantly improves existing works in terms of F1-score and AUC score, resulting in state-of-the-art performance.
Motivation & Objective
- Address the challenge of severe class imbalance in skin lesion classification, where malignant (e.g., melanoma) lesions are rare but critical to detect accurately.
- Overcome the limitation of existing methods that are sensitive to data distribution and lack generalization across datasets.
- Improve deep learning models' ability to learn robust, discriminative feature representations independent of class sample imbalance.
- Achieve superior performance on minority classes (e.g., melanoma) without relying on data augmentation or complex ensemble models.
- Develop a training strategy that separates intra-class features while pushing inter-class features apart, even under extreme class imbalance.
Proposed method
- Use supervised contrastive loss in the first stage to learn feature representations that are tightly clustered within each class and well-separated between classes.
- Train the representation head using a contrastive objective that maximizes similarity among same-class samples and minimizes it across different classes.
- Fix the backbone and representation head after the first stage, then fine-tune only the classifier head using focal loss to reduce the influence of majority-class samples.
- Apply focal loss to re-weight cross-entropy loss, focusing training on hard-to-classify samples and minimizing the impact of easily classified majority-class examples.
- Train the two stages sequentially: first representation learning, then classifier fine-tuning with focal loss.
- Use t-SNE visualization to analyze learned feature representations and validate improved class separability.
Experimental results
Research questions
- RQ1Can a two-stage training strategy that decouples representation learning from classifier training improve performance on imbalanced skin lesion classification?
- RQ2Does supervised contrastive learning effectively learn discriminative, class-aware representations even when minority classes are underrepresented?
- RQ3To what extent does combining supervised contrastive loss with focal loss outperform existing data-level, loss-level, or model-level approaches on skin lesion benchmarks?
- RQ4How sensitive is the performance of SuperCon to the number of epochs in the representation training stage?
- RQ5Can the model generalize across datasets with different data distributions, such as ISIC 2019 and ISIC 2020?
Key findings
- SuperCon achieves a 0.33 average improvement in F1-score and 0.032 average improvement in AUC over existing state-of-the-art methods on imbalanced skin lesion datasets.
- On the ISIC 2020 dataset, SuperCon outperforms focal loss by 0.34 in F1-score and 0.30 in AUC, demonstrating superior performance on highly imbalanced data.
- Confusion matrices show that SuperCon achieves high True Positive and True Negative rates simultaneously, unlike methods such as ROS, which trade off high True Negative for high False Positive rates.
- t-SNE visualization confirms that SuperCon learns non-overlapping, well-separated feature representations for different skin lesion classes, unlike Vanilla, Focal-Loss, or ROS.
- The performance of SuperCon is sensitive to the number of epochs in the first stage, indicating that proper hyperparameter tuning is essential for optimal representation learning.
- Adding out-of-distribution data from ISIC 2019 during representation training degrades performance, suggesting that domain shift between datasets negatively affects representation learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.