Contrastive Self-Supervised Pretraining and Fine-Tuning for Multi-Class Skin Lesion Classification under Label Scarcity

PDF (981KB), PP.160-176

Views: 0 Downloads: 0

Author(s)

Karthi Govindharaju 1,* Noor Basha 2 Ravikanth Garladinne 3 K. Sunil Kumar 4 Rekha V. 5 C. Sateesh Kumar Reddy 6

1. Department of Artificial Intelligence and Data Science, Saveetha Engineering College, Chennai-600119, India

2. Department of Computer Science and Engineering, Vemana Institute of Technology, Bengaluru-560034, India

3. Department of Computer Science & Engineering, Koneru Lakshmaiah Education Foundation, Deemed to be University, Vaddeswaram, Guntur-52250, India

4. Department of ECE, National Institute of Technology, Warangal-506004, India

5. Department of AI and Data Science Engineering, CHRIST (Deemed to be University), Bengaluru-560029, India

6. Department of Advanced Computer Science Engineering, Vignan's Foundation for Science, Technology & Research, Guntur-522213, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijem.2026.06.09

Received: 29 Jul. 2026 / Revised: 17 Aug. 2026 / Accepted: 22 Oct. 2026 / Published: 8 Dec. 2026

Index Terms

Skin Cancer, Early Diagnosis, Deep Learning, Dermoscopic Images, Lesion Classification, Convolutional Neural Networks, Feature Extraction, Diagnostic Support, Labeled Datasets, Class Imbalance, Self-Supervised Learning, Contrastive Learning

Abstract

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.

Cite This Paper

Karthi Govindharaju, Noor Basha, Ravikanth Garladinne, K. Sunil Kumar, Rekha V., C. Sateesh Kumar Reddy, "Contrastive Self-Supervised Pretraining and Fine-Tuning for Multi-Class Skin Lesion Classification under Label Scarcity", International Journal of Engineering and Manufacturing (IJEM), Vol.16, No.6, pp.160-176, 2026. DOI:10.5815/ijem.2026.06.09

Reference

[1]A. K. Chaurasia et al., “Multi-resolution vision transformer model for histopathological skin cancer subtype classification using whole slide images,” Computers in Biology and Medicine, vol. 196, Art. no. 110724, 2025, doi: 10.1016/j.compbiomed.2025.110724.
[2]A. Shahzaib et al., “Hair removal and lesion segmentation of dermoscopic images for classification of skin cancer using deep neural networks,” Egyptian Informatics Journal, vol. 32, Art. no. 100844, 2025, doi: 10.1016/j.eij.2025.100844.
[3]P. Nanda, D. Rout, and S. Kumari, “Multi-Class Skin Cancer Detection Using CNN-Architecture Based Deep Learning Models,” Procedia Computer Science, vol. 260, pp. 226–235, 2025, doi: 10.1016/j.procs.2025.03.197.
[4]D. Adla et al., “A full-resolution convolutional network with a dynamic graph cut algorithm for skin cancer classification and detection,” Healthcare Analytics, vol. 3, Art. no. 100154, 2023. doi: 10.1016/j.health.2023.100154.
[5]V. D. Midasala et al., “MFEUsLNet: Skin cancer detection and classification using integrated AI with multilevel feature extraction-based unsupervised learning,” Engineering Science and Technology, an International Journal, vol. 51, Art. no. 101632, 2024, doi: 10.1016/j.jestch.2024.101632.
[6]J. S. Thanga Purni and R. Vedhapriyavadhana, “EOSA-Net: A deep learning framework for enhanced multi-class skin cancer classification using optimized convolutional neural networks,” Journal of King Saud University - Computer and Information Sciences, vol. 36, no. 3, Art. no. 102007, 2024, doi: 10.1016/j.jksuci.2024.102007.
[7]S. Adamu et al., “Unleashing the power of Manta Rays Foraging Optimizer: A novel approach for hyper-parameter optimization in skin cancer classification,” Biomedical Signal Processing and Control, vol. 99, Art. no. 106855, 2025, doi: 10.1016/j.bspc.2024.106855.
[8]I. Ahmed et al., “Data Engineering and AI-Powered Skin Cancer Identification for Healthcare Applications,” Procedia Computer Science, vol. 246, pp. 179–188, 2024, doi: 10.1016/j.procs.2024.09.240.
[9]I. A. Kandhro et al., “Performance evaluation of E-VGG19 model: Enhancing real-time skin cancer detection and classification,” Heliyon, vol. 10, no. 10, Art. no. e31488, 2024, doi: 10.1016/j.heliyon.2024.e31488.
[10]A. S. Prabowo et al., “SE-VGG16: Enhanced classification of skin cancer lesions using VGG16 backbone with squeeze-and-excitation blocks,” Procedia Computer Science, vol. 269, pp. 923–932, 2025, doi: 10.1016/j.procs.2025.09.035.
[11]J. Lian et al., “Shifted windowing vision transformer-based skin cancer classification via transfer learning,” Clinics, vol. 80, Art. no. 100724, 2025, doi: 10.1016/j.clinsp.2025.100724.
[12]B. Ozdemir and I. Pacal, “An innovative deep learning framework for skin cancer detection employing ConvNeXtV2 and focal self-attention mechanisms,” Results in Engineering, vol. 25, Art. no. 103692, 2025, doi: 10.1016/j.rineng.2024.103692.
[13]S. Padhy et al., “Temporal integration of ResNet features with LSTM for enhanced skin lesion classification,” Results in Engineering, vol. 25, Art. no. 104201, 2025, doi: 10.1016/j.rineng.2025.104201.
[14]H. Wang, E. Ahn, L. Bi, and J. Kim, “Self-supervised multi-modality learning for multi-label skin lesion classification,” Computer Methods and Programs in Biomedicine, vol. 265, Art. no. 108729, 2025, doi: 10.1016/j.cmpb.2025.108729.
[15]O. Akinrinade and C. Du, “Skin cancer detection using deep machine learning techniques,” Intelligence-Based Medicine, vol. 11, Art. no. 100191, 2025, doi: 10.1016/j.ibmed.2024.100191.
[16]A. T. Ibrahim et al., “Categorical classification of skin cancer using a weighted ensemble of transfer learning with test time augmentation,” Data Science and Management, vol. 8, no. 2, pp. 174–184, 2025, doi: 10.1016/j.dsm.2024.10.002.
[17]N. Aishwarya et al., “Skin Cancer diagnosis with Yolo Deep Neural Network,” Procedia Computer Science, vol. 220, pp. 651–658, 2023, doi: 10.1016/j.procs.2023.03.083.
[18]B. Petracchi et al., “Machine Learning-Based Classification of Skin Cancer Hyperspectral Images,” Procedia Computer Science, vol. 225, pp. 2856–2865, 2023, doi: 10.1016/j.procs.2023.10.278.
[19]P. Vashistha et al., “Federated Averaging Optimization for Efficient Skin Cancer Image Analysis,” Procedia Computer Science, vol. 258, pp. 3794–3803, 2025, doi: 10.1016/j.procs.2025.04.634.
[20]Y. A. C. Yang et al., “Skin disease classification using transfer learning model and fusion strategy,” Intelligence-Based Medicine, vol. 12, Art. no. 100271, 2025, doi: 10.1016/j.ibmed.2025.100271.
[21]K. Yu et al., “A genetic programming approach with adaptive region detection to skin cancer image classification,” Journal of Automation and Intelligence, vol. 3, no. 4, pp. 240–249, 2024, doi: 10.1016/j.jai.2024.08.003.