Monkeypox Disease Classification Based on Skin Images Using Hierarchical Swin Transformer-Based Convolutional Neural Network Approach
Abstract
Monkeypox diagnosis can initially be conducted through expert physical examination based on characteristic lesions. However, laboratory confirmation using PCR is still essential, these tests are often hampered by limitations such as high costs, lengthy processing times, and a general lack of detailed symptom knowledge among patients. In light of these issues, image-based diagnostic methods offer a more efficient solution, given that monkeypox manifests as visible lesions on the skin that can be accurately detected using a deep learning. This study employs Transformer network-based deep learning for classifying skin diseases. To improve model robustness and mitigate the limitations of the relatively small dataset, we designed a comprehensive data augmentation pipeline that incorporates both positional and color transformations, including rotation, horizontal and vertical flipping, zooming, shearing, and brightness, contrast, hue, and saturation adjustments. Furthermore, a k-fold cross-validation strategy was employed, where the entire dataset was partitioned into k equal-sized folds to ensure a reliable and unbiased evaluation of the model performance. The Swin Transformer leverages advanced transformer network to analyze images, emphasizing hierarchical relationships within images. Swin Transformer enhances the convolutional Transformer architecture by substituting the standard multi-head-self-attention (MSA) mechanism with a shifted window-based MSA module It enhances efficiency over traditional transformer models by incorporating a shifted window mechanism, which reduces computational demands. The average global accuracy achieved was 0.99 (99%), which is further supported by the AUC values obtained for each disease category. The model achieved an AUC of 1.00 for chickenpox, cowpox, and hand-foot-mouth disease (HFMD), indicating excellent discriminative capability for these classes. Meanwhile, the remaining classes, including healthy skin, measles, and monkeypox, achieved AUC values of 0.99 and 0.98, respectively. These results demonstrate that the proposed Hierarchical Swin Transformer model provides highly reliable classification performance across all skin disease categories included in the dataset.
Keywords
Full Text:
PDFReferences
S. T. Al Awaidy, F. Khamis, M. Sallam, R. M. Ghazy, and H. Zaraket, “Monkeypox (mpox) Outbreak More queries posed as cases soar globally,” Sultan Qaboos Univ. Med. J., vol. 23, no. 1, pp. 1–4, 2023, doi: 10.18295/squmj.8.2022.046.
R. K. Mohapatra et al., “Monkeypox lineages amid the ongoing COVID-19 pandemic: A global public health concern – Correspondence,” International Journal of Surgery, vol. 107, no. September, pp. 9–11, 2022, doi: 10.1016/j.ijsu.2022.106968.
H. Hatami et al., “Demographic, Epidemiologic, and Clinical Characteristics of Human Monkeypox Disease Pre- and Post-2022 Outbreaks: A Systematic Review and Meta-Analysis,” Biomedicines, vol. 11, no. 3, 2023, doi: 10.3390/biomedicines11030957.
T. Nayak et al., “Detection of Monkeypox from skin lesion images using deep learning networks and explainable artificial intelligence,” Applied Mathematics in Science and Engineering, vol. 31, no. 1, 2023, doi: 10.1080/27690911.2023.2225698.
A. A. Aouragh and M. Bahaj, “Comparison Results of Hybrid CNN-Machine Learning Algorithms Architectures for Monkeypox Images Classification,” 2023 3rd International Conference on Innovative Research in Applied Science, Engineering and Technology, IRASET 2023, pp. 1–6, 2023, doi: 10.1109/IRASET57153.2023.10153062.
M. Lakshmi and R. Das, “Classification of Monkeypox Images Using LIME-Enabled Investigation of Deep Convolutional Neural Network,” Diagnostics, vol. 13, no. 9, 2023, doi: 10.3390/diagnostics13091639.
W. Yao, J. Bai, W. Liao, Y. Chen, M. Liu, and Y. Xie, “From CNN to Transformer : A Review of Medical Image Segmentation Models,” Journal of Imaging Informatics in Medicine, vol. 37, no. 4, pp. 1529–1547, 2024, doi: 10.1007/s10278-024-00981-7.
D. Nam and A. Pak, “Overview of Transformer-Based Models for Medical Image Segmentation,” Scientific Journal of Astana IT University, pp. 64–75, 2023, doi: 10.37943/13bkbf2003.
K. He, F. Gou, and J. Wu, “Image segmentation technology based on transformer in medical decision-making system,” IET Image Process., vol. 17, no. 10, pp. 3040–3054, 2023, doi: https://doi.org/10.1049/ipr2.12854.
W. Li, “A Swin Transformer with Dynamic High-Pass Preservation for Remote Sensing Image Pansharpening,” 2023.
Y. Peng, J. Ren, J. Wang, and M. Shi, “Spectral-Swin Transformer with Spatial Feature Extraction Enhancement for Hyperspectral Image Classification,” pp. 1–19, 2023.
M. Tounsi, E. Aram, A. T. Azar, A. Al-Khayyat, and I. K. Ibraheem, “A Comprehensive Review on Biomedical Image Classification using Deep Learning Models,” Engineering, Technology and Applied Science Research, vol. 15, no. 1, pp. 19538–19545, 2025, doi: 10.48084/etasr.8728.
M. M. Ahsan et al., “Deep transfer learning approaches for Monkeypox disease diagnosis,” Expert Syst. Appl., vol. 216, no. January, p. 119483, 2023, doi: 10.1016/j.eswa.2022.119483.
A. A. Abdelhamid et al., “Classification of Monkeypox Images Based on Transfer Learning and the Al-Biruni Earth Radius Optimization Algorithm,” Mathematics, vol. 10, no. 19, 2022, doi: 10.3390/math10193614.
V. H. Sahin, I. Oztel, and G. Yolcu Oztel, “Human Monkeypox Classification from Skin Lesion Images with Deep Pre-trained Network using Mobile Application,” J. Med. Syst., vol. 46, no. 11, 2022, doi: 10.1007/s10916-022-01863-7.
Md. E. Haque, Md. R. Ahmed, R. S. Nila, and S. Islam, “Classification of Human Monkeypox Disease Using Deep Learning Models and Attention Mechanisms,” 2022, [Online]. Available: http://arxiv.org/abs/2211.15459
D. Bala et al., “MonkeyNet: A robust deep convolutional neural network for monkeypox disease detection and classification,” Neural Networks, vol. 161, pp. 757–775, 2023, doi: 10.1016/j.neunet.2023.02.022.
G. Yolcu Oztel, “Vision transformer and CNN-based skin lesion analysis: classification of monkeypox,” Multimed. Tools Appl., vol. 83, no. 28, pp. 71909–71923, 2024, doi: 10.1007/s11042-024-19757-w.
J. F. Ma, P. F. He, C. L. Li, and R. Nie, “Mpox Virus Image Segmentation Based on Multiscale Expansion Convolution,” IEEE Access, vol. 12, no. September, pp. 117608–117616, 2024, doi: 10.1109/ACCESS.2024.3448364.
S. Chakroborty, “A hybrid deep learning framework for early detection of Mpox using image data,” Healthcare Analytics, vol. 7, no. January, p. 100396, 2025, doi: 10.1016/j.health.2025.100396.
S. Vuran, M. Ucan, M. Akin, and M. Kaya, “Multi-Classification of Skin Lesion Images Including Mpox Disease Using Transformer-Based Deep Learning Architectures,” Diagnostics, vol. 15, no. 3, 2025, doi: 10.3390/diagnostics15030374.
S. N. Ali et al., “A web-based mpox skin lesion detection system using state-of-the-art deep learning models considering racial diversity,” Biomed. Signal Process. Control, vol. 98, no. Xx, pp. 1–9, 2024, doi: 10.1016/j.bspc.2024.106742.
Z. Liu et al., “Swin Transformer: Hierarchical Vision Transformer using Shifted Windows,” Proceedings of the IEEE International Conference on Computer Vision, no. Iccv, pp. 9992–10002, 2021, doi: 10.1109/ICCV48922.2021.00986.
W. Shi, J. Xu, and P. Gao, “SSformer: A Lightweight Transformer for Semantic Segmentation,” 2022 IEEE 24th International Workshop on Multimedia Signal Processing, MMSP 2022, pp. 1–5, 2022, doi: 10.1109/MMSP55362.2022.9949177.
P. D. Wulaning Ayu and G. A. Pradipta, “U-Net Tuning Hyperparameter for Segmentation in Amniotic Fluid Ultrasonography Image,” 2022 4th International Conference on Cybernetics and Intelligent System, ICORIS 2022, no. June, 2022, doi: 10.1109/ICORIS56080.2022.10031294.
P. D. W. Ayu, G. A. Pradipta, I. M. D. Susila, D. P. Hostiadi, and M. Liandana, “Deep Learning Based Detection and Classification of Amniotic Fluid Echogenicity Type for Enhanced Prenatal Diagnosis,” International Journal of Intelligent Engineering and Systems, vol. 18, no. 1, pp. 246–267, 2025, doi: 10.22266/ijies2025.0229.18.
M. M. Ahsan, M. R. Uddin, M. Farjana, A. N. Sakib, K. Al Momin, and S. A. Luna, “Image Data collection and implementation of deep learning-based model in detecting Monkeypox disease using modified VGG16,” 2022, [Online]. Available: http://arxiv.org/abs/2206.01862
N. Dahiya et al., “Hyper-parameter tuned deep learning approach for effective human monkeypox disease detection,” Sci. Rep., vol. 13, no. 1, pp. 1–19, 2023, doi: 10.1038/s41598-023-43236-1.
R. Pramanik, B. Banerjee, G. Efimenko, D. Kaplun, and R. Sarkar, “Monkeypox detection from skin lesion images using an amalgamation of CNN models aided with Beta function-based normalization scheme,” PLoS One, vol. 18, no. 4 April, pp. 1–21, 2023, doi: 10.1371/journal.pone.0281815.
L. Muñoz-Saavedra, E. Escobar-Linero, J. Civit-Masot, F. Luna-Perejón, A. Civit, and M. Domínguez-Morales, “A Robust Ensemble of Convolutional Neural Networks for the Detection of Monkeypox Disease from Skin Images,” Sensors, vol. 23, no. 16, pp. 1–24, 2023, doi: 10.3390/s23167134.
M. S. A. M. Al-Gaashani, W. Xu, and E. Y. Obsie, “MobileNetV2-based deep learning architecture with progressive transfer learning for accurate monkeypox detection,” Appl. Soft Comput., vol. 169, no. October 2024, p. 112553, 2025, doi: 10.1016/j.asoc.2024.112553.
DOI: https://doi.org/10.47738/jads.v7i2.1313
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)