← Back to Publications List

Real-Time Multi-Task Skin Lesion Classification and Segmentation Using Swin Transformer

Students & Supervisors

Student Authors
Afnan Bin Islam Nahin
Bachelor of Science in Computer Science & Engineering, FST
Aman Ullah
Bachelor of Science in Computer Science & Engineering, FST
Supervisors
Shakila Rahman
Lecturer, Faculty, FST

Abstract

Early identification of suspicious skin lesions can support timely clinical assessment, but automated analysis re- mains challenging because dermoscopic images often contain visually similar lesion categories and highly variable lesion characteristics. The objective of this study is to develop and evaluate a unified multi-task deep learning framework that per- forms seven-class skin lesion classification and pixel-level lesion segmentation within a single model while maintaining practical inference speed. To achieve this objective, a Swin Transformer encoder is used to extract hierarchical image features, which are shared by a classification branch and a U-Net-based segmentation decoder. Experiments were conducted on the HAM10000 dataset. Weighted cross-entropy loss and weighted random sampling were applied to reduce the effect of class imbalance, while the segmentation branch was optimized using Binary Cross-Entropy and Dice losses. On the held-out test set, the proposed model achieved 63.54% accuracy, a Macro-F1 score of 64.32%, and a ROC-AUC of 93.97% for classification. For segmentation, it obtained a Dice score of 93.98% and an IoU of 89.36%. The complete multi-task model achieved 72.58 FPS with an average latency of 13.77 ms per image under the experimental benchmark. Compared with ResNet18 + U-Net and EfficientNet- B0 + U-Net, the proposed framework achieved the highest accuracy, ROC-AUC, Dice, and IoU, while EfficientNet-B0 + U- Net achieved the highest Macro-F1 score. These findings show that the proposed framework provides strong joint classification and segmentation performance while retaining real-time-capable inference under the tested configuration.

Keywords

Skin Cancer Dermoscopic Images Vision Transformer Swin Transformer Multi-Task Learning Lesion Classification Lesion Segmentation Deep Learning HAM10000 Real-Time Healthcare Applications.

Publication Details

  • Type of Publication:
  • Conference Name: 5th IEEE International Conference on Biomedical Engineering, Computer and Information Technology for Health (BECITHCON 2026)
  • Date of Conference: 09/04/2026 - 09/04/2026
  • Venue: International University of Business Agriculture and Technology (IUBAT), Dhaka, Bangladesh.
  • Organizer: International University of Business Agriculture and Technology (IUBAT), Dhaka, Bangladesh.