LesionNet: A Robust Framework for Automated Skin Lesion Classification Using Attention Mechanisms and Multi-Scale Contextual Analysis

Authors:

Abstract
Automated skin lesion classification shows promise for early diagnosis of skin cancer, but its clinical adoption faces challenges such as data leakage and class imbalance. In this paper, we present LesionNet, a robust framework that addresses these issues. We introduce a patient-wise data stratification protocol to mitigate data leakage, and a multi-stage preprocessing pipeline to standardize images. The model integrates CNN backbones with a Convolutional Block Attention Module for feature refinement and an Atrous Spatial Pyramid Pooling block for multi-scale context. Class imbalance is mitigated using Focal Loss and advanced data augmentation techniques, including MixUp and CutMix. It is Validated on the HAM10000 dataset and tested along with two external cohorts: ISIC 2019 and PH2. LesionNet demonstrates strong and generalizable performance, offering a reliable diagnostic tool. Future directions include integration of clinical metadata and prospective real-world validation.