Contrastive Self-Supervised Pretraining and Fine-Tuning for Multi-Class Skin Lesion Classification under Label Scarcity
Journal: International Journal of Engineering and Manufacturing @ijem
Article in issue: 6 vol.16, 2026.
Free access
Skin cancer is a growing global health concern, requiring accurate and early diagnosis. Automated deep learning methods have demonstrated potential for assisting dermatologists in analyzing dermoscopic images; however, their performance often depends on the availability of large labeled datasets, while class imbalance and visual similarity among lesion categories remain challenging. To address these limitations, this study proposes a self-supervised contrastive learning framework with supervised fine-tuning for multi-class skin lesion classification under limited-label conditions. The framework employs a ResNet-50 encoder and augmentation-based contrastive pretraining to learn discriminative representations from dermoscopic images without requiring class labels during the pretraining stage. Two augmented views of each image are generated, and the encoder is optimized using the normalized temperature-scaled cross-entropy (NT-Xent) contrastive loss to learn consistent representations. The pretrained encoder is subsequently fine-tuned with labeled samples for seven-class skin lesion classification using the HAM10000 dataset. The proposed framework achieves 88.5% classification accuracy, 83.5% Macro-F1, and a Macro ROC-AUC of 0.941 on the test set. Under limited-label conditions, the proposed approach achieves 69.4% accuracy using only 10% of the available labeled data, compared with 61.8% for the supervised ResNet-50 baseline, corresponding to a 7.6 percentage-point improvement. These results demonstrate the potential of self-supervised contrastive pretraining to improve label efficiency while maintaining robust multi-class skin lesion classification performance.
Short address: https://sciup.org/15020853
IDS: 15020853 | DOI: 10.5815/ijem.2026.06.09