Enhancing Skin Cancer Diagnosis Using Swin Transformer with Hybrid Shifted Window-Based Multi-head Self-attention and SwiGLU-Based MLP
Top Cited Papers
Open Access
- 5 June 2024
- journal article
- research article
- Published by Springer Nature in Journal of Imaging Informatics in Medicine
- Vol. 37 (6) , 3174-3192
Abstract
Skin cancer is one of the most frequently occurring cancers worldwide, and early detection is crucial for effective treatment. Dermatologists often face challenges such as heavy data demands, potential human errors, and strict time limits, which can negatively affect diagnostic outcomes. Deep learning–based diagnostic systems offer quick, accurate testing and enhanced research capabilities, providing significant support to dermatologists. In this study, we enhanced the Swin Transformer architecture by implementing the hybrid shifted window-based multi-head self-attention (HSW-MSA) in place of the conventional shifted window-based multi-head self-attention (SW-MSA). This adjustment enables the model to more efficiently process areas of skin cancer overlap, capture finer details, and manage long-range dependencies, while maintaining memory usage and computational efficiency during training. Additionally, the study replaces the standard multi-layer perceptron (MLP) in the Swin Transformer with a SwiGLU-based MLP, an upgraded version of the gated linear unit (GLU) module, to achieve higher accuracy, faster training speeds, and better parameter efficiency. The modified Swin model-base was evaluated using the publicly accessible ISIC 2019 skin dataset with eight classes and was compared against popular convolutional neural networks (CNNs) and cutting-edge vision transformer (ViT) models. In an exhaustive assessment on the unseen test dataset, the proposed Swin-Base model demonstrated exceptional performance, achieving an accuracy of 89.36%, a recall of 85.13%, a precision of 88.22%, and an F1-score of 86.65%, surpassing all previously reported research and deep learning models documented in the literature.Keywords
Funding Information
- Türkiye Sağlık Enstitüleri Başkanlığı (33934)
This publication has 53 references indexed in Scilit:
- DVFNet: A deep feature fusion-based model for the multiclassification of skin cancer utilizing dermoscopy imagesPLOS ONE, 2024
- Biosensors for melanoma skin cancer diagnosticsBiosensors and Bioelectronics, 2024
- Artificial intelligence for skin cancer detection and classification for clinical environment: a systematic reviewFrontiers in Medicine, 2024
- LeaNet: Lightweight U-shaped architecture for high-performance skin cancer image segmentationComputers in Biology and Medicine, 2024
- A survey on deep learning for skin lesion segmentationMedical Image Analysis, 2023
- A novel framework of multiclass skin lesion recognition from dermoscopic images using deep learning and explainable AIFrontiers in Oncology, 2023
- SkinNet‐ENDO: Multiclass skin lesion recognition using deep neural network and Entropy‐Normal distribution optimization algorithm with ELMInternational Journal of Imaging Systems and Technology, 2023
- MaxViT: Multi-axis Vision Transformer2022
- MDFNet: application of multimodal fusion method based on skin image and clinical data to skin cancer classificationJournal of Cancer Research and Clinical Oncology, 2022
- Patch‐based local deep feature extraction for automated skin cancer classificationInternational Journal of Imaging Systems and Technology, 2022