Explainable and secure federated learning for privacy-enhancing skin cancer classification using a lightweight multi-scale CNN
Authors:
Open Access
- 28 February 2026
- journal article
- retracted article
- Published by Springer Nature in Scientific Reports
- Vol. 16 (1)
Abstract
Skin diseases pose a major public health challenge, with skin cancer being the most prevalent malignancy. Early detection is critical for improving patient outcomes, yet traditional diagnostic methods rely on expert evaluation, which is limited by clinician variability, image quality, and accessibility constraints. Deep learning (DL)-based models offer automated diagnostic capabilities but require large-scale centralized data aggregation, which conflicts with privacy regulations and poses security risks. Federated Learning (FL) enables collaborative training across multiple hospitals without sharing raw patient data, yet it introduces communication overhead, security vulnerabilities, and interpretability challenges, hindering its real-world deployment. To address these issues, an Encrypted FedAvg-Based Explainable Federated Learning approach has been proposed utilizing a Lightweight Deep Learning Multi-Scale Convolutional Neural Network (LWMS-CNN) for efficient, privacy-enhanced, and interpretable skin cancer diagnosis. The proposed method integrates Homomorphic Encryption (HE) in a simulated federated system for secure model aggregation, privacy enhancements while maintaining strong diagnostic performance. Additionally, SHapley Additive exPlanations (SHAP) and GradCAM enhance interpretability, enabling clinicians to understand AI-driven predictions. Experimental evaluations on the HAM10000 dataset demonstrate that the proposed LWMS-CNN-FL model achieves 98.62% accuracy, with only a 0.3% tradeoff when encryption is applied, ensuring robust security without compromising diagnostic reliability. The model’s generalization ability is further confirmed through assessments on additional benchmark datasets, including ISIC 2019, where it achieved an accuracy of 96.22%, and PAD-UFES-20, where it reached 89.84%. By integrating lightweight deep learning, federated learning, encryption, and explainability, this study presents a scalable, privacy-enhanced, computationally efficient, and clinically interpretable AI-driven solution for secure and accurate early skin cancer detection in world healthcare applications.Keywords
This publication has 51 references indexed in Scilit:
- A novel CNN-ViT-based deep learning model for early skin cancer diagnosisBiomedical Signal Processing and Control, 2025
- Skin cancer classification based on a hybrid deep model and long short-term memoryBiomedical Signal Processing and Control, 2024
- Skin-CAD: Explainable deep learning classification of skin cancer from dermoscopic images by feature selection of dual high-level CNNs features and transfer learningComputers in Biology and Medicine, 2024
- Health data sharing attitudes towards primary and secondary use of data: a systematic revieweClinicalMedicine, 2024
- PAD-UFES-20: A skin lesion dataset composed of patient data and clinical images collected from smartphonesData in Brief, 2020
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based LocalizationInternational Journal of Computer Vision, 2019
- Global Burden of Skin Disease: Inequities and InnovationsCurrent Dermatology Reports, 2017
- Consistency and Standardization of Color in Medical Imaging: a Consensus ReportJournal of Digital Imaging, 2014
- Shapley Value1989
- A new index of power for simplen-person gamesInternational Journal of Game Theory, 1978