ExAID: A multimodal explanation framework for computer-aided diagnosis of skin lesions

Adriano Lucieri, Muhammad Naseer Bajwa, Stephan Alexander Braun, Muhammad Imran Malik, Andreas Dengel, Sheraz Ahmed

Introduction

Deep learning models have demonstrated significant potential in medical image analysis, particularly in detecting melanoma from dermoscopic images. However, the adoption of these models in clinical practice is hindered by their "black box" nature. In high-stakes medical environments, clinicians require transparency regarding the reasoning behind an algorithm's diagnosis. While traditional Explainable AI (XAI) methods like saliency maps highlight influential pixels, they fail to provide clinical context. ExAID (Explainable AI for Dermatology) addresses this gap by translating internal neural network states into standardized dermatological concepts, providing clinicians with intuitive textual and visual justifications.

Methodology

ExAID is built upon a standard deep learning backbone (such as ResNet or SEResNeXt) and incorporates three specialized explanation modules designed to bridge the gap between mathematical activations and clinical vocabulary.

The ExAID framework architecture, illustrating the flow from skin image input to diagnostic prediction and multimodal explanations.
  1. Concept Identifier: This module utilizes Concept Activation Vectors (CAVs) to map specific dermatological features (e.g., "Streaks" or "Dots & Globules") to the model's latent space. Linear classifiers are trained on internal activations to determine if the network has recognized these human-understandable features.
  2. Concept Localiser: Using Concept Localisation Maps (CLMs), this module employs a perturbation-based technique—blurring image patches—to observe changes in concept predictions. This generates a spatial heatmap indicating where the model detects specific clinical features.
  3. Decision Explainer: This module converts raw concept scores and their influence on the final prediction into natural language. A rule-based system generates justifications such as, "The lesion has been identified as Nevus due to strong evidence of Regular Dots & Globules..."

Datasets

The framework was developed using two distinct data categories:

  • Disease-level Classification: Models were trained on a combination of ISIC 2019, PH2, and derm7pt datasets, focusing on Melanoma and Nevi. Evaluation was conducted across ISIC 2016, ISIC 2017, and SKINL2.
  • Concept-level Classification: To address the scarcity of concept annotations, the authors utilized the D7PH2 dataset (a combination of PH2 and derm7pt), which contains granular labels for features like Pigment Networks and Blue-Whitish Veils.

Results and Key Insights

The base lesion classifier demonstrated robust performance, achieving an AUC above 0.85 on five out of six test datasets, with a peak of 0.99 on the SKINL2 dataset. At the concept level, the Concept Identifier achieved Macro F1-Scores of 78.74% for Pigment Networks and 71.66% for Blue-Whitish Veils.

The ExAID user interface showing a lesion identified as a Nevus, supported by class predictions, concept classification scores, and a generated textual explanation.

Qualitative analysis suggests that ExAID's explanations are particularly valuable when the model fails. If a misclassification occurs, the textual explanation may reveal that the AI misinterpreted a visual artifact as a clinical concept, allowing the clinician to dismiss the erroneous prediction. Furthermore, the inclusion of "contraindications"—highlighting conflicting evidence—serves as a safety net that prompts further investigation when malignant features are flagged in a benign prediction.

Limitations and Future Work

Despite its success, ExAID faces challenges related to data scarcity and the subjective nature of dermatological annotations. The current perturbation-based localization can produce noisy heatmaps, and the text generation does not yet fully account for the magnitude of a concept's influence. Future research will focus on optimization-based perturbation methods and more nuanced natural language generation, with the ultimate goal of adapting this framework to other medical domains like radiology and histology.

Summary updated

BibTeX
@article{lucieri2022exaid,
  author = {Adriano Lucieri and Muhammad Naseer Bajwa and Stephan Alexander Braun and Muhammad Imran Malik and Andreas Dengel and Sheraz Ahmed},
  title = {{ExAID: A multimodal explanation framework for computer-aided diagnosis of skin lesions}},
  journal = {Comput. Methods Programs Biomed.},
  year = {2022},
  doi = {10.1016/j.cmpb.2022.106620},
}
Figure