Efficient and interpretable monkeypox detection using vision transformers with explainable visualizations

Monkeypox is a zoonotic disease that poses diagnostic challenges due to its resemblance to other pox-type skin lesions like measles and chickenpox. Traditional deep learning (DL) methods, especially convolutional neural networks (CNNs), often struggle with generalization when trained on small, imbalanced datasets. These methods also tend to lack interpretability and computational efficiency, limiting their use in real-time, resource-constrained settings. This study introduces a lightweight, explainable DL framework based on EfficientFormerV2, which merges the advantages of convolutional inductive biases with efficient token-mixing strategies. We used the publicly available Monkeypox Skin Image Dataset (MSID), which contains 770 images across four categories: Monkeypox, Chickenpox, Measles, and Normal. Through advanced preprocessing and augmentation, we expanded the dataset to 4,000 images, improving class representation and reducing overfitting. Also, we evaluated five models—EfficientFormerV2, T2T-ViT, DeiT, Xception, and MobileNetV4—using metrics like F1-score, specificity, PR AUC, and Matthews Correlation Coefficient (MCC) with 10-fold stratified cross-validation. EfficientFormerV2 performed the best, achieving an F1-score of 98.73%, specificity of 99.63%, PR AUC of 99.86%, and MCC of 94.15%. We used Grad-CAM visualizations to create class-specific heatmaps for better interpretability. This framework combines an efficient architecture, data-centric augmentation, and explainable AI (XAI), offering high accuracy and low-latency predictions, making it suitable for real-time monkeypox screening, especially in low-resource settings.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-04-30
DOI
https://doi.org/10.5281/zenodo.17151233
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient and interpretable monkeypox detection using vision transformers with explainable visualizations

Zenodo (CERN European Organization for Nuclear Research)
Geochemistry and Geologic Mapping
article

Efficient and interpretable monkeypox detection using vision transformers with explainable visualizations

article en

Abstract

Monkeypox is a zoonotic disease that poses diagnostic challenges due to its resemblance to other pox-type skin lesions like measles and chickenpox. Traditional deep learning (DL) methods, especially convolutional neural networks (CNNs), often struggle with generalization when trained on small, imbalanced datasets. These methods also tend to lack interpretability and computational efficiency, limiting their use in real-time, resource-constrained settings. This study introduces a lightweight, explainable DL framework based on EfficientFormerV2, which merges the advantages of convolutional inductive biases with efficient token-mixing strategies. We used the publicly available Monkeypox Skin Image Dataset (MSID), which contains 770 images across four categories: Monkeypox, Chickenpox, Measles, and Normal. Through advanced preprocessing and augmentation, we expanded the dataset to 4,000 images, improving class representation and reducing overfitting. Also, we evaluated five models—EfficientFormerV2, T2T-ViT, DeiT, Xception, and MobileNetV4—using metrics like F1-score, specificity, PR AUC, and Matthews Correlation Coefficient (MCC) with 10-fold stratified cross-validation. EfficientFormerV2 performed the best, achieving an F1-score of 98.73%, specificity of 99.63%, PR AUC of 99.86%, and MCC of 94.15%. We used Grad-CAM visualizations to create class-specific heatmaps for better interpretability. This framework combines an efficient architecture, data-centric augmentation, and explainable AI (XAI), offering high accuracy and low-latency predictions, making it suitable for real-time monkeypox screening, especially in low-resource settings.

Zenodo (CERN European Organization for Nuclear Research)
BRAC University (BD)
Openalex Percentile: Top 35%
Geochemistry and Geologic Mapping
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.