Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 8;15(1):24533.
doi: 10.1038/s41598-025-09938-4.

Explainable deep learning approaches for high precision early melanoma detection using dermoscopic images

Affiliations

Explainable deep learning approaches for high precision early melanoma detection using dermoscopic images

Md Abdullah All Mahmud et al. Sci Rep. .

Abstract

Detecting skin melanoma in the early stage using dermoscopic images presents a complex challenge due to the inherent variability in images. Utilizing dermatology datasets, the study aimed to develop Automated Diagnostic Systems for early skin cancer detection. Existing methods often struggle with diverse skin types, cancer stages, and imaging conditions, highlighting a critical gap in reliability and explainability. The novel approach proposed through this research addresses this gap by utilizing a proposed model with advanced layers, including Global Average Pooling, Batch Normalization, Dropout, and dense layers with ReLU and Swish activations to improve model performance. The proposed model achieved accuracies of 95.23% and 96.48% for the two different datasets, demonstrating its robustness, reliability, and strong performance across other performance metrics. Explainable AI techniques such as Gradient-weighted Class Activation Mapping and Saliency Maps offered insights into the model's decision- making process. These advancements enhance skin cancer diagnostics, provide medical experts with resources for early detection, improve clinical outcomes, and increase acceptance of Deep Learning-based diagnostics in healthcare.

Keywords: Deep learning; Dermoscopic images; Early-stage melanoma detection; Explainable AI; Swish activation.

PubMed Disclaimer

Conflict of interest statement

Declarations. Competing interests: The authors declare no competing interests. Ethical Statement: This study was conducted in full compliance with all applicable ethical standards. Since the research did not involve any direct human or animal subjects, ethical approval was not required. The dermoscopic image datasets used in this study were obtained from publicly available sources.

Figures

Fig. 1
Fig. 1
Images representing the benign classes from the datasets.
Fig. 2
Fig. 2
Images representing the malignant classes from the datasets.
Fig. 3
Fig. 3
Number of images in each class.
Fig. 4
Fig. 4
Proposed model architecture with two classes.
Fig. 5
Fig. 5
Confusion matrix of the proposed model for Dataset 1.
Fig. 6
Fig. 6
The left graph illustrates the accuracy for both training and validation phases for Dataset 1, while the right graph shows the corresponding loss for training and validation.
Fig. 7
Fig. 7
The left graph illustrates the precision for both training and validation phases for Dataset 1, while the right graph shows the corresponding recall for training and validation.
Fig. 8
Fig. 8
Training and validation AUC metrics for Dataset 1.
Fig. 9
Fig. 9
Confusion matrix of the proposed model for Dataset 2.
Fig. 10
Fig. 10
The left graph illustrates the accuracy for both training and validation phases for Dataset 2, while the right graph shows the corresponding loss for training and validation.
Fig. 11
Fig. 11
The left graph illustrates the precision for both training and validation phases for Dataset 2, while the right graph shows the corresponding recall for training and validation.
Fig. 12
Fig. 12
Training and validation AUC metrics for Dataset 2.
Fig. 13
Fig. 13
Explainable AI For all classes of Dataset 1.
Fig. 14
Fig. 14
Explainable AI for all classes of Dataset 2.

Similar articles

Cited by

  • Early-Stage Melanoma Benchmark Dataset.
    Dzieniszewska A, Garbat P, Pietkiewicz P, Piramidowicz R. Dzieniszewska A, et al. Cancers (Basel). 2025 Jul 26;17(15):2476. doi: 10.3390/cancers17152476. Cancers (Basel). 2025. PMID: 40805175 Free PMC article.

References

    1. Inagaki, J., Rodriguez, V. & Bodey, G. P. Causes of death in cancer patients. Cancer33, 568–573 (1974). - PubMed
    1. World Health Organization. Radiation: Ultraviolet (uv) radiation and skin cancer | how common is skin cancer (2023). Accessed: 2023-03-02.
    1. Subramanian, R. R. et al. Skin cancer classification using convolutional neural networks. In 2021 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence), 13–19 (IEEE, 2021).
    1. Piccialli, F., Di Somma, V., Giampaolo, F., Cuomo, S. & Fortino, G. A survey on deep learning in medicine: Why, how and when?. Information Fusion66, 111–137 (2021).
    1. Gandhi, S. A. & Kampp, J. Skin cancer epidemiology, detection, and management. Medical Clinics99, 1323–1335 (2015). - PubMed

MeSH terms