Skin Cancer Detection using Vision Transformer with GNN and Explainable AI (Grad-CAM)

Skin cancer is a serious disease that affects millions of people worldwide. Better treatment results depend on early detection. Convolutional neural networks (CNNs), which are frequently used to classify skin cancer, are one example of how deep learning has enhanced medical image analysis. CNNs are less successful at identifying global patterns in medical images because they primarily concentrate on local features. Though they process image patches independently and frequently overlook spatial relationships, Vision Transformers (ViTs) help in capturing long-range dependencies through self-attention mechanisms. In order to improve classification, ViT features are refined by integrating Graph Neural Networks (GNNs) to model spatial connections between patches. A ViT-GNN hybrid model for skin cancer detection is presented in this work, in which patch-based features are extracted by ViTs and enhanced by GNNs that capture spatial relationships. Using cross-entropy loss and the AdamW optimizer, the model is trained on a balanced dataset of benign and malignant lesions. To enhance generalization, data augmentation is used. Gradient-weighted Class Activation Mapping (Grad-CAM) identifies key areas impacting predictions to guarantee transparency. Accuracy, precision, recall, F1-score, and a confusion matrix are used to assess performance. The ViT-GNN model performs better than standalone ViTs and CNNs, according to the results, with increased accuracy and dependability. This method enhances model interpretability and classification performance by fusing explainable AI techniques, transformer-based feature extraction, and graph-based spatial learning. The proposed method has strong potential for early and accurate skin cancer detection, making it a valuable tool for clinical applications.

Authors

Institutions

Publication Details

Published
2025-04-24
DOI
https://doi.org/10.1109/amathe65477.2025.11080709
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

Skin Cancer Detection using Vision Transformer with GNN and Explainable AI (Grad-CAM)

Daniel Madan Raja S, Kevin B Baabu
Cutaneous Melanoma Detection and Management
article

Skin Cancer Detection using Vision Transformer with GNN and Explainable AI (Grad-CAM)

Daniel Madan Raja S, Kevin B Baabu
article en

Abstract

Skin cancer is a serious disease that affects millions of people worldwide. Better treatment results depend on early detection. Convolutional neural networks (CNNs), which are frequently used to classify skin cancer, are one example of how deep learning has enhanced medical image analysis. CNNs are less successful at identifying global patterns in medical images because they primarily concentrate on local features. Though they process image patches independently and frequently overlook spatial relationships, Vision Transformers (ViTs) help in capturing long-range dependencies through self-attention mechanisms. In order to improve classification, ViT features are refined by integrating Graph Neural Networks (GNNs) to model spatial connections between patches. A ViT-GNN hybrid model for skin cancer detection is presented in this work, in which patch-based features are extracted by ViTs and enhanced by GNNs that capture spatial relationships. Using cross-entropy loss and the AdamW optimizer, the model is trained on a balanced dataset of benign and malignant lesions. To enhance generalization, data augmentation is used. Gradient-weighted Class Activation Mapping (Grad-CAM) identifies key areas impacting predictions to guarantee transparency. Accuracy, precision, recall, F1-score, and a confusion matrix are used to assess performance. The ViT-GNN model performs better than standalone ViTs and CNNs, according to the results, with increased accuracy and dependability. This method enhances model interpretability and classification performance by fusing explainable AI techniques, transformer-based feature extraction, and graph-based spatial learning. The proposed method has strong potential for early and accurate skin cancer detection, making it a valuable tool for clinical applications.

Karunya University (IN)
Good health and well-being
Openalex Percentile: Top 74%
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.