Improving trust and confidence in medical skin lesion diagnosis through explainable deep learning

Carlo Metta, Andrea Beretta, Riccardo Guidotti, Yuan Yin, Patrick Gallinari, Salvatore Rinzivillo, Fosca GiannottiInt. J. Data Sci. Anal 2025

Abstract

Deep learning models have demonstrated remarkable accuracy in dermatological diagnosis, often surpassing human experts. However, their "black box" nature limits clinical adoption due to a lack of transparency. This paper presents a customized local, model-agnostic explainer, ABELE (Adversarial Black box Explainer generating Latent Exemplars), designed to provide intuitive visual explanations. By generating synthetic exemplars and counter-exemplars through a Progressive Growing Adversarial Autoencoder (PGAAE), the system offers doctors comparative reasoning that enhances trust and clarifies common misidentifications in skin cancer classification.

Introduction

While deep learning models often outperform human dermatologists in identifying skin cancer, they suffer from a significant "black box" problem. In clinical settings, medical professionals are hesitant to trust a diagnosis—such as "Malignant"—without understanding the underlying reasoning. Existing eXplainable AI (XAI) tools typically rely on saliency maps, which highlight influential pixels. However, these heatmaps are often noisy and difficult for clinicians to interpret. This research addresses the gap between algorithmic performance and clinical utility by providing explanations that resemble real medical cases rather than abstract pixel distributions.

Methodology

The proposed system utilizes a two-part architecture consisting of a high-performance classifier and a specialized explainer.

The Classifier

A standard ResNet architecture was employed, fine-tuned via transfer learning on medical datasets to perform the primary multi-class diagnosis of skin lesions.

The Explainer (ABELE)

The core innovation is ABELE (Adversarial Black box Explainer generating Latent Exemplars), a local, model-agnostic tool. To overcome the "mode collapse" common in standard Generative Adversarial Networks (GANs), the authors implemented a Progressive Growing Adversarial Autoencoder (PGAAE). This architecture scales the resolution of the autoencoder during training from 14x14 to 224x224 pixels, ensuring high-fidelity synthetic image generation.

Architecture of the Adversarial Autoencoder (AAE) and the Discriminator/Decoder (disde) module.

ABELE operates by exploring the "latent space"—the mathematical representation of the image—to identify:

  • Exemplars: Synthetic images that resemble the input and share the same predicted class.
  • Counter-exemplars: Synthetic images that look similar but would result in a different diagnosis.
The Latent Local Rule-based Explainer (llore) workflow, integrating the black box model with latent space exploration.

Experimental Setup

The study utilized the ISIC 2019 (International Skin Imaging Collaboration) dataset, comprising 25,331 training images and a test set of 8,238 images. The model was trained to identify eight diagnostic classes, including Melanoma (MEL), Melanocytic nevus (NV), and Basal cell carcinoma (BCC).

Key Insights and Results

Visual Analogies and Trust

The research suggests that doctors prefer "differential diagnosis" reasoning. Showing a synthetic version of what a "Basal Cell Carcinoma" would look like for a specific patient's lesion is more intuitive than a heatmap. User studies involving 156 participants showed that expert confidence in the AI's decision jumped significantly—in one instance from 39.2% to 61.8%—after viewing ABELE's exemplars.

The Geometry of Cancer

Using Multidimensional Scaling (MDS) to analyze the latent space, researchers discovered that Melanoma resides in the center of the data distribution, while benign lesions are peripheral. This centrality mathematically explains why Melanoma is frequently confused with other classes, as it shares borders with nearly every other category.

Performance Metrics

The ResNet classifier achieved a balanced multi-class accuracy of 0.838. Furthermore, ABELE’s saliency maps were found to be more granular and precise than industry standards like LIME or LORE when measured by "deletion" and "insertion" metrics.

Conclusion and Future Work

While ABELE significantly improves trust, the study noted that expert trust is fragile; a single incorrect diagnosis can cause a sharp drop in confidence that is difficult to recover. Additionally, the computational cost of generating these explanations remains a barrier to real-time clinical use. Future research will focus on optimizing the generative process for real-time applications and extending the framework to other medical imaging domains such as MRI and X-ray analysis.

Summary updated

BibTeX
@article{metta2025improving,
  author = {Carlo Metta and Andrea Beretta and Riccardo Guidotti and Yuan Yin and Patrick Gallinari and Salvatore Rinzivillo and Fosca Giannotti},
  title = {{Improving trust and confidence in medical skin lesion diagnosis through explainable deep learning}},
  journal = {Int. J. Data Sci. Anal.},
  year = {2025},
  doi = {10.1007/s41060-023-00401-z},
}
Figure