Benchmarking deep transfer learning for imbalanced skin cancer classification: Integrating focal loss, explainable AI, and web deployment

Authors

  • Yazid Aufar Informatics Engineering, Politeknik Hasnur, Indonesia Author https://orcid.org/0000-0001-9492-1027
  • Muhammad Daffa Abiyyu Rahman Electrical Engineering, Universitas Lambung Mangkurat, Indonesia Author
  • M. Fadli Ridhani Multimedia Engineering Technology, Politeknik Hasnur, Indonesia Author

DOI:

https://doi.org/10.52465/joscex.v7i1.20

Keywords:

Deep transfer learning, Explainable AI, Focal loss, Skin cancer classification, Web deployment

Abstract

Non-melanoma skin cancer (NMSC) classification faces challenges like severe data imbalance and the "black-box" nature of AI, limiting clinical trust. This study benchmarks four pre-trained convolutional models (ConvNeXt-Tiny, EfficientNetV2-S, DenseNet121, MobileNetV3-Large) for the imbalanced multi-class classification of Squamous Cell Carcinoma, Actinic Keratosis, and benign Nevus. Images were preprocessed using morphological hair removal and inpainting. The methodology integrated a 5-fold Stratified Group-KFold cross-validation, Focal Loss to address class imbalance, and Grad-CAM for Explainable AI (XAI) transparency. Results showed ConvNeXt-Tiny achieved the highest and most stable performance with a Balanced Accuracy of 76.98% (± 0.31 standard deviation) and a Macro F1-Score of 0.7513, significantly outperforming the other architectures. Grad-CAM confirmed the model's precise focus on pathological lesion borders. Ultimately, the optimal model was deployed as a real-time Streamlit web application, establishing a robust and practical clinical decision-support system.

Author Biographies

  • Yazid Aufar, Informatics Engineering, Politeknik Hasnur, Indonesia

    Yazid Aufaris a professional lecturer specializing in Informatics Engineering at Politeknik Hasnur, South Kalimantan, Indonesia. He began his academic journey at Universitas Lambung Mangkurat, where he completedhis undergraduate degree in Computer Science in 2015. To deepen his expertise, he pursued a Master’s degree in Computer Science at the prestigious IPB Universityin Bogor, which he completedin 2019. His primary research interests lie at the forefront of modern technology, specifically in image processing, pattern recognition, machine learning, and deep learning. Through his work, he aims to advance the field of artificial intelligence.

  • M. Fadli Ridhani, Multimedia Engineering Technology, Politeknik Hasnur, Indonesia

    M. Fadli Ridhaniis a lecturer in the field of Multimedia Engineering Technology at Politeknik Hasnur, South Kalimantan, Indonesia. He is actively involved in teaching, research, and academic development related to computing and information technology. He obtained his Bachelor’s degree in Computer Science from Universitas Lambung Mangkurat and completed his Master of Computer Science in 2024 at Universitas Brawijaya, Malang, Indonesia, where he specialized in artificial intelligence and machine learning. His research interests include computer science, software engineering, machine learning, and data-driven systems for real-world applications, particularly in health and social domains. In addition to academic research, he has experience in applied technology development and collaborative projects

Downloads

Published

25-03-2026

Issue

Section

Articles

How to Cite

Benchmarking deep transfer learning for imbalanced skin cancer classification: Integrating focal loss, explainable AI, and web deployment. (2026). Journal of Soft Computing Exploration, 7(1), 55-65. https://doi.org/10.52465/joscex.v7i1.20

Similar Articles

You may also start an advanced similarity search for this article.