Transformer-based skin lesion segmentation using optimized SwinUNet and KL divergence loss on HAM10000 dataset

Abstract Accurate identification of skin lesions is vital for finding skin cancer early, but there are problems like having too many images of one type of lesion and complicated edges around the lesions, which make it hard to get good results. This study presents an enhanced version of the SwinUNet model, accompanied by a loss function based on the Kullback–Leibler (KL) Divergence, to more effectively distinguish skin lesions using the HAM10000 dataset. The new method achieves a Dice score of 91.52 and an Intersection over Union of 92.10, indicating it performs better than other methods and models. Compared with models like SegNet and TransUNet and other loss functions such as Binary Cross-Entropy and Hinge Loss, the SwinUNet with KL Divergence achieves the best overall accuracy of 98.90%. Using SwinUNet’s ability to focus on important parts of the image and the KL Divergence’s help in dealing with the imbalance of different lesion types, this method can reliably identify lesions even in difficult real-world cases. These results show that this approach could be very helpful to dermatologists in making accurate, early diagnoses of skin cancer.

Authors

Institutions

Publication Details

Journal
Discover Applied Sciences
Published
2026-06-26
DOI
https://doi.org/10.1007/s42452-026-08977-4
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
article

Transformer-based skin lesion segmentation using optimized SwinUNet and KL divergence loss on HAM10000 dataset

Irfanullah Khan, Shadab Alam, Mehran Ullah, Vatsala Anand et al.
Discover Applied Sciences
Cutaneous Melanoma Detection and Management
article

Transformer-based skin lesion segmentation using optimized SwinUNet and KL divergence loss on HAM10000 dataset

Irfanullah Khan, Shadab Alam, Mehran Ullah, Vatsala Anand, Mohammed Shuaib
article en

Abstract

Abstract Accurate identification of skin lesions is vital for finding skin cancer early, but there are problems like having too many images of one type of lesion and complicated edges around the lesions, which make it hard to get good results. This study presents an enhanced version of the SwinUNet model, accompanied by a loss function based on the Kullback–Leibler (KL) Divergence, to more effectively distinguish skin lesions using the HAM10000 dataset. The new method achieves a Dice score of 91.52 and an Intersection over Union of 92.10, indicating it performs better than other methods and models. Compared with models like SegNet and TransUNet and other loss functions such as Binary Cross-Entropy and Hinge Loss, the SwinUNet with KL Divergence achieves the best overall accuracy of 98.90%. Using SwinUNet’s ability to focus on important parts of the image and the KL Divergence’s help in dealing with the imbalance of different lesion types, this method can reliably identify lesions even in difficult real-world cases. These results show that this approach could be very helpful to dermatologists in making accurate, early diagnoses of skin cancer.

Discover Applied Sciences
King Fahd University of Petroleum and Minerals (SA), IEC University (IN), University of the West of Scotland (GB), Jazan University (SA)
Openalex Percentile: Top 8%
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.

Transformer-based skin lesion segmentation using optimized SwinUNet and KL divergence loss on HAM10000 dataset — Irfanullah Khan, Shadab Alam, et al. · Discover Applied Sciences (2026) | TGRS Research Map | TGRS