Towards Trustable Skin Cancer Diagnosis via Rewriting Model's Decision

Siyuan Yan, Zhen Yu, Xuelin Zhang, Dwarikanath Mahapatra, Shekhar S. Chandra, Monika Janda, H. Peter Soyer, Zongyuan Ge

Abstract

Deep learning models for skin cancer diagnosis often rely on spurious correlations—such as the presence of rulers, dark corners, or skin tone—rather than clinical features. This paper introduces a human-in-the-loop framework designed to identify and "unlearn" these confounding factors. By mapping black-box features to explainable clinical concepts and rewriting the model's decision logic through human feedback, the researchers significantly improve the reliability, fairness, and interpretability of automated dermatological diagnosis.

Introduction

Deep learning has shown immense promise in medical imaging, yet its clinical adoption is hindered by the "black-box" nature of neural networks. In dermatology, models frequently fall victim to the "Clever Hans" effect, where they achieve high accuracy by identifying shortcuts rather than actual pathology. For instance, a model might associate the presence of a surgical ruler or a specific camera artifact with a higher probability of malignancy. If these confounding factors are absent in a clinical setting, the model's performance collapses. This paper addresses these challenges by moving beyond simple explainability toward active intervention in the model's decision-making process.

The Problem: Spurious Correlations in Dermatology

Research indicates that some models can achieve an Area Under the Curve (AUC) of 73% on skin cancer datasets even when the lesions themselves are completely occluded. This suggests that the models are almost entirely relying on background noise or artifacts. These spurious correlations make models fragile and potentially biased, especially across different skin tones. The goal of this work is to provide a mechanism to not only explain why a model made a mistake but to allow clinicians to correct the model’s internal logic.

Proposed Methodology

The authors propose a three-stage pipeline to transform a standard black-box classifier into a trustable, human-interactive system:

1. Global Confounding Concept Discovery (GCCD)

To identify what a model is actually learning, the framework uses GCCD. This algorithm automatically clusters images based on the model's focus. By combining GradCAM heatmaps with Fourier Transforms and spectral clustering, the system groups images that the model perceives as similar. This allows human experts to quickly identify if a cluster is based on clinical features or biases like "dark corners" or "hair."

2. Construction of a Concept Bank

The model’s high-dimensional feature space is mapped onto a human-understandable "concept space." Using Concept Activation Vectors (CAVs), the researchers define both clinical concepts (e.g., "pigmentation network," "streaks") and confounding concepts (e.g., "rulers," "skin tone"). This creates a bridge between the mathematical weights of the network and medical terminology.

3. Model Logic Rewriting

The core innovation is the replacement of the standard classification layer with an explainable logic layer. This allows for human-in-the-loop (XIL) intervention. Experts can provide first-order logic instructions, such as "Ignore rulers when predicting melanoma." The model is then retrained using a Right for the Right Reason (RRR) loss, which penalizes the network if its internal gradients focus on concepts flagged as irrelevant by the human expert.

Experimental Evaluation

Datasets

The study utilized several public datasets (ISIC2016-2020) and introduced ConfDerm, a curated dataset of 3,576 images specifically designed to evaluate confounding factors. ConfDerm contains sub-datasets where specific biases are intentionally tied to certain classes in the training set but absent in the test set. Additionally, the Fitzpatrick17k and DDI datasets were used to evaluate fairness across diverse skin tones.

Key Results

  • Bias Mitigation: On the ConfDerm dataset, a standard CNN's accuracy on melanoma images with "dark corners" was only 23.48% when the corners were removed. After the logic-rewriting intervention, accuracy rose to 84.95%.
  • Skin Tone Fairness: By identifying "dark skin" as a confounding factor and removing it from the decision logic, the researchers improved performance on the DDI dataset, particularly for underrepresented dark skin tones (Fitzpatrick scales V-VI).
  • Interpretability: Unlike heatmaps, which can be ambiguous, the model provides textual logic outputs (e.g., "regular pigmentation AND regular streaks -> Benign") that align with dermatological reasoning.

Discussion and Conclusion

This framework represents a shift from passive AI explanation to active AI correction. By allowing clinicians to "rewrite" the logic of a model, the system ensures that the AI remains focused on medically relevant features. While the discovery of confounding factors still requires some human oversight to label the discovered clusters, the method significantly reduces the manual effort previously required for pixel-wise masking. Future work will focus on further automating concept discovery and testing these interventions in real-time clinical environments to enhance doctor-AI collaboration.

Summary updated

BibTeX
@inproceedings{yan2023towards,
  author = {Siyuan Yan and Zhen Yu and Xuelin Zhang and Dwarikanath Mahapatra and Shekhar S. Chandra and Monika Janda and H. Peter Soyer and Zongyuan Ge},
  title = {{Towards Trustable Skin Cancer Diagnosis via Rewriting Model's Decision}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure