Adaptive Weighted Ensemble of CNN Models with Focal Loss and Grad-CAM Explainability for Skin Lesion Classification

Abstract Skin cancer is one of the oldest and most widespread forms of cancer globally, and discovering it early is crucial for improving patient outcomes. Traditional diagnosis heavily depends on experience, which may be time-consuming and human-scheduled. Recent developments in algorithms for deep learning, particularly convolutional neural networks (CNNs), provide promising platforms for independent image analysis, but individual models are prone to fail with unstable predictions and weak generalizability. In this research, we have worked with a weighted ensemble transfer learning framework that integrates ResNet34, ResNet50 and EfficientNet-B0 to enhance the utilization of the HAM10000 dataset to sort skin lesions. Each model is individually finetuned. And Ensemble weights are assigned according to validation performance. That ensures a stronger network and a stronger influence on the final prediction at the end. Additionally, Grad-CAM visualisation helps to show where lesions are located. It also confirms that the ensemble focuses on the area that matters clinically. Our tests show that the weighted ensemble method outperforms single CNNs in accuracy and F1 score. It also gives a better understanding and is more dependable. These results show that pairing adaptive weighting with visual details produces a more reliable and clear way of automatically detecting skin cancer for clinics.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-03
DOI
https://doi.org/10.21203/rs.3.rs-11577913/v1
Primary Topic
Cutaneous Melanoma Detection and Management
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Adaptive Weighted Ensemble of CNN Models with Focal Loss and Grad-CAM Explainability for Skin Lesion Classification

Mokabbir Zaman Protik
4 links
Research Square
Cutaneous Melanoma Detection and Management
preprint

Adaptive Weighted Ensemble of CNN Models with Focal Loss and Grad-CAM Explainability for Skin Lesion Classification

Mokabbir Zaman Protik
preprint en

Abstract

Abstract Skin cancer is one of the oldest and most widespread forms of cancer globally, and discovering it early is crucial for improving patient outcomes. Traditional diagnosis heavily depends on experience, which may be time-consuming and human-scheduled. Recent developments in algorithms for deep learning, particularly convolutional neural networks (CNNs), provide promising platforms for independent image analysis, but individual models are prone to fail with unstable predictions and weak generalizability. In this research, we have worked with a weighted ensemble transfer learning framework that integrates ResNet34, ResNet50 and EfficientNet-B0 to enhance the utilization of the HAM10000 dataset to sort skin lesions. Each model is individually finetuned. And Ensemble weights are assigned according to validation performance. That ensures a stronger network and a stronger influence on the final prediction at the end. Additionally, Grad-CAM visualisation helps to show where lesions are located. It also confirms that the ensemble focuses on the area that matters clinically. Our tests show that the weighted ensemble method outperforms single CNNs in accuracy and F1 score. It also gives a better understanding and is more dependable. These results show that pairing adaptive weighting with visual details produces a more reliable and clear way of automatically detecting skin cancer for clinics.

Research Square
People's University of Bangladesh (BD)
Good health and well-being
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
Adaptive Weighted Ensemble of CNN Models with Focal Loss and Grad-CAM Explainability for Skin Lesion Classification — Mokabbir Zaman Protik · Research Square (2026) | TGRS Research Map | TGRS