A Hybrid Swin Transformer-Attention U-Net Framework for Dermoscopic Skin Lesion Segmentation

Background: Reliable segmentation of skin lesions in dermoscopic images is hindered by variations in lesion appearance, poorly defined boundaries, imaging artifacts, and differences in acquisition conditions. This study presents SwinAttentionUNet, a hybrid architecture combining hierarchical Transformer-based encoding with attention-guided decoding for skin lesion segmentation. Methods: The proposed model integrates a hierarchical Swin Transformer encoder with an attention-gated U-Net-style decoder. A HAM10000-based dataset was divided at the lesion level using lesion_id, assigning 5229 unique lesions to training, 1120 to validation, and 1121 to an independent test set, with no lesion overlap between subsets. Evaluation incorporated lesion-cluster bootstrap inference and five independent training runs to assess the robustness and consistency of the results. Cross-dataset performance was evaluated on the 600-image ISIC 2017 Task 1 test set without retraining or adaptation. Results: On the HAM10000-based independent test set, SwinAttentionUNet achieved a Dice score of 0.9497, an intersection over union (IoU) of 0.9102, a precision of 0.9517, a recall of 0.9558, and an accuracy of 0.9739. Across five independent training runs, the mean Dice score and IoU were 0.9495 ± 0.0010 and 0.9099 ± 0.0014, respectively. External evaluation on ISIC 2017 yielded a Dice score of 0.9124 and an IoU of 0.8468. Conclusions: SwinAttentionUNet achieved consistent segmentation performance across independent training runs and maintained strong performance on an external dataset without adaptation. These findings support further investigation of the architecture for dermoscopic image analysis, while prospective, multicenter validation is needed to establish its suitability for clinical deployment.

Authors

Institutions

Publication Details

Journal
Life
Published
2026-11-25
DOI
https://doi.org/10.3390/life16121997
Primary Topic
Cutaneous Melanoma Detection and Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Hybrid Swin Transformer-Attention U-Net Framework for Dermoscopic Skin Lesion Segmentation

Aynur SEVİNÇ, Emrah Aslan, Yıldırım ÖZÜPAK
Life
Cutaneous Melanoma Detection and Management
article

A Hybrid Swin Transformer-Attention U-Net Framework for Dermoscopic Skin Lesion Segmentation

Aynur SEVİNÇ, Emrah Aslan, Yıldırım ÖZÜPAK
article en

Abstract

Background: Reliable segmentation of skin lesions in dermoscopic images is hindered by variations in lesion appearance, poorly defined boundaries, imaging artifacts, and differences in acquisition conditions. This study presents SwinAttentionUNet, a hybrid architecture combining hierarchical Transformer-based encoding with attention-guided decoding for skin lesion segmentation. Methods: The proposed model integrates a hierarchical Swin Transformer encoder with an attention-gated U-Net-style decoder. A HAM10000-based dataset was divided at the lesion level using lesion_id, assigning 5229 unique lesions to training, 1120 to validation, and 1121 to an independent test set, with no lesion overlap between subsets. Evaluation incorporated lesion-cluster bootstrap inference and five independent training runs to assess the robustness and consistency of the results. Cross-dataset performance was evaluated on the 600-image ISIC 2017 Task 1 test set without retraining or adaptation. Results: On the HAM10000-based independent test set, SwinAttentionUNet achieved a Dice score of 0.9497, an intersection over union (IoU) of 0.9102, a precision of 0.9517, a recall of 0.9558, and an accuracy of 0.9739. Across five independent training runs, the mean Dice score and IoU were 0.9495 ± 0.0010 and 0.9099 ± 0.0014, respectively. External evaluation on ISIC 2017 yielded a Dice score of 0.9124 and an IoU of 0.8468. Conclusions: SwinAttentionUNet achieved consistent segmentation performance across independent training runs and maintained strong performance on an external dataset without adaptation. These findings support further investigation of the architecture for dermoscopic image analysis, while prospective, multicenter validation is needed to establish its suitability for clinical deployment.

LifeVol. 16(12)
Dicle University (TR)
Cutaneous Melanoma Detection and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon