Transformer-aided skin cancer classification using VGG19-based feature encoding
Fallah H. Najjar, Zaid Nidhal Khudhair, Farhan Mohamed, Mohd Shafry Mohd Rahim, Vei Siang Chan, Ali H. Ali
Al-Furat Al-Awsat Technical University · Imam Ja’afar Al-Sadiq University
Key points
From the paper's conclusion- These results demonstrate that our proposed model is effective for skin lesion classification and has significant potential for clinical application as an automated diagnostic tool in dermatology.
Abstract
Skin cancer is among the most widely distributed, deadliest cancers around the globe, and early diagnosis becomes vital to enhance patient survival. Deep learning has demonstrated high potential for automatic skin lesion classification. However, existing Convolutional Neural Networks (CNNs) are still unsatisfactory in terms of dataset reliance, subjection to orientations, and the inability to model long-range global context. To solve this problem, we propose a hybrid model named the VGG19-RSPDA-ViT with the fine-grained local feature captured by VGG19 and the global context provided by Vision Transformers (ViT). The proposed RSPDA enforces rotation invariance and enriches the feature space, which further strengthens generalization on a small training set. To the best of our knowledge, this is the first work to systematically combine feature-map-level rotation/shift augmentation with a CNN-Transformer hybrid model for dermoscopic skin cancer detection. Performance was validated on three benchmark datasets: the Melanoma Skin Cancer Dataset of 10,000 Images (MSK10000) for binary classification and the Human Against Machine with 10,000 training images (HAM10000) and Hospital Pedro Hispano (PH2) for multi-class classification. Our model achieved accuracies of 97.9%, 97.1%, and 98.67% on MSK10000, HAM10000, and PH2 datasets, respectively, with consistently high macro-averaged precision, recall, specificity, and F1 scores across both datasets. VGG19-RSPDA-ViT outperformed existing state-of-the-art methods with superior generalization capabilities. These results demonstrate that our proposed model is effective for skin lesion classification and has significant potential for clinical application as an automated diagnostic tool in dermatology.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SkinFusionNet: MobileNetV2 and vision transformer hybrid deep learning model with automated skin cancer classificationScientific Reports · 2026
- Meta-Learned Ensemble of CNN and Vision Transformers for Imbalanced Skin Cancer ClassificationInternational Journal of Drug Delivery Technology · 2026
- Hybrid vision transformer and graph neural network model with region-adaptive attention for enhanced skin cancer predictionScientific Reports · 2026
- Spotting the Spot: Deep Transformer-Attention Networks for Skin Lesion AnalysisBioengineering · 2026
- Automated skin cancer detection using MedFusionNet with attention-based fusion of ConvNeXt and vision transformerScientific Reports · 2025
- DermaScanAI an explainable hybrid deep learning framework for automated skin lesion classification using dual attention and metadata fusionScientific Reports · 2026