A robust stacked ensemble strategy with multi-optimizer CNN models for skin cancer classification

Skin cancer is one of the most prevalent and potentially life-threatening cancers globally, making it a critical area of focus in medical research. Early detection, followed by timely and appropriate treatment, can significantly enhance patient survival outcomes. In recent years, computer-aided diagnostic systems have gained substantial attention for their ability to support accurate and efficient skin cancer diagnosis. This study presents an optimized stacked ensemble strategy to improve skin lesion classification performance. Experiments were conducted on the Melanoma Skin Cancer Dataset using four different convolutional neural network (CNN) architectures, each trained with different optimizers, including Adam, Stochastic Gradient Descent (SGD), Root Mean Square Propagation (RMSprop), and AdaMax (Adamax). All models were trained using categorical cross-entropy loss and evaluated based on validation accuracy, with hyperparameters such as learning rate, batch size, and number of epochs kept constant. More than 90 model combinations were tested using four ensemble strategies: soft and hard voting, weighted voting (using grid search), and stacked ensemble using various meta-learners (Gradient Boosting (GB), k-Nearest Neighbors (KNN), Support Vector Machine (SVM), Logistic Regression (LR), and Naïve Bayes (NB)). The models and ensembles were assessed using standard performance metrics including accuracy, precision, recall, F1-score, and Area Under the Receiver Operating Characteristic Curve (ROC-AUC). Among the evaluated configurations, the stacked ensemble model with Gradient Boosting (GB) as the meta-classifier and M1+M2+M3+M4 as the deep learning base models achieved a validation accuracy of 97.4% and a robust independent test accuracy of 91.80% with a ROC-AUC of 96.87%. The findings demonstrate that ensemble learning, particularly stacked ensembling, significantly enhances classification accuracy and strengthens the reliability of melanoma detection on unseen datasets.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-05-18
DOI
https://doi.org/10.1038/s41598-026-51607-7
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

A robust stacked ensemble strategy with multi-optimizer CNN models for skin cancer classification

Robert Frischer, Yogita Arora, Achin Jain, Ondřej Krejcar et al.
Scientific Reports
Cutaneous Melanoma Detection and Management
article

A robust stacked ensemble strategy with multi-optimizer CNN models for skin cancer classification

Robert Frischer, Yogita Arora, Achin Jain, Ondřej Krejcar, Shruti Vashist, Hamidreza Namazi, Arvind Panwar, Jyoti Agarwal
article en

Abstract

Skin cancer is one of the most prevalent and potentially life-threatening cancers globally, making it a critical area of focus in medical research. Early detection, followed by timely and appropriate treatment, can significantly enhance patient survival outcomes. In recent years, computer-aided diagnostic systems have gained substantial attention for their ability to support accurate and efficient skin cancer diagnosis. This study presents an optimized stacked ensemble strategy to improve skin lesion classification performance. Experiments were conducted on the Melanoma Skin Cancer Dataset using four different convolutional neural network (CNN) architectures, each trained with different optimizers, including Adam, Stochastic Gradient Descent (SGD), Root Mean Square Propagation (RMSprop), and AdaMax (Adamax). All models were trained using categorical cross-entropy loss and evaluated based on validation accuracy, with hyperparameters such as learning rate, batch size, and number of epochs kept constant. More than 90 model combinations were tested using four ensemble strategies: soft and hard voting, weighted voting (using grid search), and stacked ensemble using various meta-learners (Gradient Boosting (GB), k-Nearest Neighbors (KNN), Support Vector Machine (SVM), Logistic Regression (LR), and Naïve Bayes (NB)). The models and ensembles were assessed using standard performance metrics including accuracy, precision, recall, F1-score, and Area Under the Receiver Operating Characteristic Curve (ROC-AUC). Among the evaluated configurations, the stacked ensemble model with Gradient Boosting (GB) as the meta-classifier and M1+M2+M3+M4 as the deep learning base models achieved a validation accuracy of 97.4% and a robust independent test accuracy of 91.80% with a ROC-AUC of 96.87%. The findings demonstrate that ensemble learning, particularly stacked ensembling, significantly enhances classification accuracy and strengthens the reliability of melanoma detection on unseen datasets.

Scientific Reports
Monash University Malaysia (MY), Galgotias University (IN), Škoda (Czechia) (CZ), Škoda Auto University (CZ), Manav Rachna International Institute of Research and Studies (IN), Graphic Era University (IN), University of Hradec Králové (CZ), Bharati Vidyapeeth (Deemed to be University) (IN)
Good health and well-being
Openalex Percentile: Top 6%
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.