Bioengineering

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

Computational

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

Spotting the Spot: Deep Transformer-Attention Networks for Skin Lesion Analysis — Science Skim