Multimodal Swin Transformer with Hyper-Feature and Attention-Gated Clinical Fusion for Skin Lesion Classification
Clinical photographs and patient metadata are complementary sources of information for automated skin lesion classification. In this study, a multimodal framework is proposed that combines Swin Transformer Tiny (Swin-T), Hyper-Feature Fusion (HFF), and Attention-Gated Clinical Metadata Fusion (AGCMF). HFF combines four levels of hierarchical representations from the Swin Transformer into a 256-dimensional visual embedding. A multilayer perceptron encodes 20 clinical metadata variables into a 64-dimensional representation. The features are concatenated, adaptively gated and projected for six-class classification. Five-fold patient-grouped cross-validation was performed on PAD-UFES-20, which consists of 2298 clinical photographs of 1373 patients. The proposed model obtained 83.55% accuracy without test-time augmentation (TTA), 83.29% with TTA, 82.92% weighted F1, 77.29% macro F1, 75.75% balanced accuracy, 93.12% macro-ROC-AUC, 94.59% weighted ROC-AUC, and Cohen’s kappa of 0.7702. In the ablation experiments, HFF increased the accuracy of the Swin-T model from 78.64% to 80.91%. Clinical feature concatenation increased it to 81.76%, and the complete HFF + AGCMF framework achieved 83.29%. These results indicate that hierarchical visual fusion and adaptive multimodal integration provide complementary benefits. The proposed framework achieved 3.89 percentage points higher accuracy than the image-plus-metadata baseline under the same TTA evaluation setting. A biopsy-exclusion sensitivity analysis also revealed that the performance of the model was only slightly affected by the removal of the diagnostic-verification variable, with the 19-feature model maintaining 82.91% accuracy, 82.53% weighted F1, and 94.21% weighted ROC-AUC. The most difficult category was still squamous cell carcinoma with 41.67% recall. The framework provided effective multimodal representation and improved class discrimination. However, independent external validation is required to assess its clinical generalizability.
Authors
- Rahib Hidayat Abiyev (ORCID: https://orcid.org/0000-0002-2682-7474)
- Kamil Dimililer (ORCID: https://orcid.org/0000-0002-2751-0479)
- Rasha Habeeb (ORCID: https://orcid.org/0000-0001-7744-1814)
Institutions
- Near East University (CY)
Publication Details
- Journal
- Electronics
- Published
- 2026-09-20
- DOI
- https://doi.org/10.3390/electronics15184308
- Primary Topic
- Cutaneous Melanoma Detection and Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00