A comprehensive self-attention melanoma analysis using reliable transformers and explainable AI

Early detection and accurate identification of melanoma, the most lethal form of skin cancer, are critical for improving patient survival rates. However, conventional diagnostic tools often fail to detect early-stage melanoma due to limited sensitivity. This research introduces an advanced Vision Transformer (ViT)-based model equipped with explainability features, specifically designed to address the complex challenge of early-stage melanoma detection. Self-attention-based Melanoma Analysis using Reliable Transformers with Explainable Artificial Intelligence (SMART-XAI) combines ViT with self-attention methods and explainable AI techniques like Attention Rollout and Self-Attention Attribution to create a melanoma diagnostic system. The ViT architecture leverages multi-scale feature extraction and self-attention mechanisms to capture both local and global patterns within skin lesion images. By segmenting images into patches, the model effectively identifies critical melanoma features across various scales, enhancing classification accuracy and interpretability. To ensure clinical transparency, the model incorporates explainable artificial intelligence (AI) techniques, namely Attention Rollout and Self-Attention Attribution, which enable the visualization of image regions that influence the modelís decisions. This interpretability allows clinicians to understand the diagnostic rationale behind AI, thereby fostering greater trust and usability in clinical settings. Experimental validation demonstrated strong performance, achieving 96.0 ± 0.87% accuracy, 95.2 ± 0.75% sensitivity, and 94.1 ± 1.05% specificity across 5-fold cross-validation. These results confirm the system’s reliability as an early detection tool for melanoma, while providing interpretable insights for informed clinical decision-making. Overall, the integration of deep learning with explainable AI represents a significant advancement in dermatological diagnostics, particularly for the management of early-stage melanoma.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-02-06
DOI
https://doi.org/10.7717/peerj-cs.3479
Primary Topic
Cutaneous Melanoma Detection and Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A comprehensive self-attention melanoma analysis using reliable transformers and explainable AI

Umar Draz, Sabah Elshafie Mohammed Elshafie, Aisha M. Mashraqi, Khlood M. Mehdar et al.
PeerJ Computer Science
Cutaneous Melanoma Detection and Management
article

A comprehensive self-attention melanoma analysis using reliable transformers and explainable AI

Umar Draz, Sabah Elshafie Mohammed Elshafie, Aisha M. Mashraqi, Khlood M. Mehdar, Tariq Emad Ali, Hanan T. Halawani, Muhammad Irfan, Sana Yasin, Abdullah A. Asiri, Amal Mohammad Shediwah, Isha Yasin
article en

Abstract

Early detection and accurate identification of melanoma, the most lethal form of skin cancer, are critical for improving patient survival rates. However, conventional diagnostic tools often fail to detect early-stage melanoma due to limited sensitivity. This research introduces an advanced Vision Transformer (ViT)-based model equipped with explainability features, specifically designed to address the complex challenge of early-stage melanoma detection. Self-attention-based Melanoma Analysis using Reliable Transformers with Explainable Artificial Intelligence (SMART-XAI) combines ViT with self-attention methods and explainable AI techniques like Attention Rollout and Self-Attention Attribution to create a melanoma diagnostic system. The ViT architecture leverages multi-scale feature extraction and self-attention mechanisms to capture both local and global patterns within skin lesion images. By segmenting images into patches, the model effectively identifies critical melanoma features across various scales, enhancing classification accuracy and interpretability. To ensure clinical transparency, the model incorporates explainable artificial intelligence (AI) techniques, namely Attention Rollout and Self-Attention Attribution, which enable the visualization of image regions that influence the modelís decisions. This interpretability allows clinicians to understand the diagnostic rationale behind AI, thereby fostering greater trust and usability in clinical settings. Experimental validation demonstrated strong performance, achieving 96.0 ± 0.87% accuracy, 95.2 ± 0.75% sensitivity, and 94.1 ± 1.05% specificity across 5-fold cross-validation. These results confirm the system’s reliability as an early detection tool for melanoma, while providing interpretable insights for informed clinical decision-making. Overall, the integration of deep learning with explainable AI represents a significant advancement in dermatological diagnostics, particularly for the management of early-stage melanoma.

PeerJ Computer ScienceVol. 12
University of Okara (PK), University of Sahiwal, Najran University (SA), University of Tabuk (SA)
Peace, Justice and strong institutions
Openalex Percentile: Top 65%
Cutaneous Melanoma Detection and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.