Spotting the Spot: Deep Transformer-Attention Networks for Skin Lesion Analysis
S. M. A. Sharif, Rizwan Ali Naqvi, Muhammad Zubair Islam, Amir Haider, Hyung Seok Kim
Key points
From the paper's conclusion- We evaluate the method on the seven-class HAM10000 benchmark against eight skin lesion classification methods and twelve state-of-the-art general-purpose CNN and transformer architectures, all trained under a unified pipeline.
Abstract
Skin cancer is among the most common malignancies worldwide, and early, accurate diagnosis substantially improves patient outcomes. Automated skin lesion classification remains challenging because lesion categories are visually similar and public datasets are highly imbalanced. In this study, we propose a hybrid CNN–transformer framework for multi-class skin lesion classification. A RegNetY-3.2GF backbone extracts high-level features, which are refined by a cascade of novel Residual Transformer-Attention Blocks (RTABs) that use multi-head self-attention with positional encoding and residual connections to capture long-range global context. An attention-guided classifier (AGC) then learns token-level attention weights to aggregate the most discriminative lesion regions before prediction. To counter class imbalance, the network is optimized with a multi-term objective that combines cross-entropy and focal loss. We evaluate the method on the seven-class HAM10000 benchmark against eight skin lesion classification methods and twelve state-of-the-art general-purpose CNN and transformer architectures, all trained under a unified pipeline. The proposed model achieves 90.96% Top-1 and 97.40% Top-2 accuracy, improving Top-1 accuracy by about 3% and Top-2 accuracy by about 1.5% over the best-performing existing skin lesion classifier, with the largest gains on minority lesion classes. We further report the computational cost and inference speed of the model on CPU and GPU platforms to demonstrate its practical applicability.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Automated skin cancer detection using MedFusionNet with attention-based fusion of ConvNeXt and vision transformerScientific Reports · 2025
- Meta-Learned Ensemble of CNN and Vision Transformers for Imbalanced Skin Cancer ClassificationInternational Journal of Drug Delivery Technology · 2026
- Transformer-aided skin cancer classification using VGG19-based feature encodingScientific Reports · 2025
- HLE-ViT: a hierarchical lesion-enhanced global context vision transformer for multi-class skin lesion classificationFrontiers in Medicine · 2026
- An Attention‐Guided Deep Learning Approach for Classifying 39 Skin Lesion TypesInternational Journal of Imaging Systems and Technology · 2025
- DermaScanAI an explainable hybrid deep learning framework for automated skin lesion classification using dual attention and metadata fusionScientific Reports · 2026