A Two-Stage Attention-Enhanced ConvNeXt Framework for Skin Cancer Detection and Classification

Authors

  • Abisha Khadka Department of Computer and Electronics Engineering, Kantipur Engineering College, Dhapakhel, Lalitpur, Nepal
  • Adarsha Basnet Department of Computer and Electronics Engineering, Kantipur Engineering College, Dhapakhel, Lalitpur, Nepal
  • Ishashree Sapkota Department of Computer and Electronics Engineering, Kantipur Engineering College, Dhapakhel, Lalitpur, Nepal
  • Kriti Saiju Department of Computer and Electronics Engineering, Kantipur Engineering College, Dhapakhel, Lalitpur, Nepal

DOI:

https://doi.org/10.3126/injet.v3i2.95498

Keywords:

Skin Cancer Classification, Deep Learning, Convolutional Neural Network, ConvNeXt, Attention Mechanism, Dermatoscopic Image Analysis

Abstract

The rising global incidence of skin cancer has positioned automated dermatological screening as a critical technology for modern healthcare diagnostics. This study introduces a two-stage deep learning framework for skin cancer detection and classification, demonstrating strong performance across diverse dermatoscopic imaging conditions. The proposed approach employs a ConvNeXt-Tiny backbone enhanced with Squeeze and Excitation (SE) and Convolutional Block Attention Module (CBAM) to improve feature recalibration and spatial channel attention. In Stage 1, a binary classifier distinguishes cancerous lesions from normal skin, achieving near-perfect validation accuracy of approximately 100% and an F1-Macro score consistently exceeding 95%, confirming robust generalization with minimal overfitting. In Stage 2, a multi-class classifier categorizes lesions into three clinically significant classes Melanoma (MEL), Basal Cell Carcinoma (BCC), and Vascular Lesions (VASC) achieving a validation accuracy of 94.62% with a weighted F1-score of 95.16%. On the held-out test set, Stage 2 attained an overall accuracy of 90.64%, a macro F1-score of 88.14%, and a weighted F1-score of 90.68%.The proposed two-stage framework was evaluated on a combined dataset sourced from Harvard Dataverse and Kaggle, achieving a testing accuracy of 100% on the Stage 1 binary screening task (cancer vs. normal skin) and a Stage 2 multi-class test accuracy of 90.64% with a macro F1-score of 88.14% across melanoma, basal cell carcinoma, and vascular lesions. These results highlight the framework's potential for reliable, automated skin cancer screening, providing a valuable tool for clinical decision support, early diagnosis, and accessible dermatological care.

Downloads

Download data is not yet available.
Abstract
23
PDF
3

Downloads

Published

2026-06-18

How to Cite

Khadka, A., Basnet, A., Sapkota, I., & Saiju, K. (2026). A Two-Stage Attention-Enhanced ConvNeXt Framework for Skin Cancer Detection and Classification. International Journal on Engineering Technology, 3(2), 34–51. https://doi.org/10.3126/injet.v3i2.95498