Resolving challenges in deep learning-based analyses of histopathological images using explanation methods

Miriam Hägele, Philipp Seegerer, Sebastian Lapuschkin, Michael Bockmayr, Wojciech Samek, Frederick Klauschen, Klaus-Robert Müller, Alexander BinderarXiv 2019 · DOI

Abstract

Deep learning has recently gained popularity in digital pathology due to its high prediction quality. However, the medical domain requires explanation and insight for a better understanding beyond standard quantitative performance evaluation. Recently, explanation methods have emerged, which are so far still rarely used in medicine. This work shows their application to generate heatmaps that allow to resolve common challenges encountered in deep learning-based digital histopathology analyses. These challenges comprise biases typically inherent to histopathology data. We study binary classification tasks of tumor tissue discrimination in publicly available haematoxylin and eosin slides of various tumor entities and investigate three types of biases: (1) biases which affect the entire dataset, (2) biases which are by chance correlated with class labels and (3) sampling biases. While standard analyses focus on patch-level evaluation, we advocate pixel-wise heatmaps, which offer a more precise and versatile diagnostic instrument and furthermore help to reveal biases in the data. This insight is shown to not only detect but also to be helpful to remove the effects of common hidden biases, which improves generalization within and across datasets. For example, we could see a trend of improved area under the receiver operating characteristic curve by 5% when reducing a labeling bias. Explanation techniques are thus demonstrated to be a helpful and highly relevant tool for the development and the deployment phases within the life cycle of real-world applications in digital pathology.

Introduction

Deep learning has achieved remarkable accuracy in histopathology, sometimes matching or exceeding human experts. However, the medical field is rightfully hesitant to adopt "black-box" systems. If a model predicts cancer, a pathologist needs to know why. Beyond trust, there is the "Clever Hans" problem: models often achieve high accuracy by latching onto "shortcuts" or biases in the data—such as specific stain colors, tissue folds, or cropping artifacts—rather than actual biological markers. This paper addresses the lack of transparency in digital pathology and provides a framework for using visual explanations to "debug" models and datasets.

Methods

The researchers utilized the GoogLeNet architecture, fine-tuned on histopathological images. To open the black box, they employed Layer-wise Relevance Propagation (LRP). Unlike standard visualization techniques like Grad-CAM or simple probability maps—which often produce blurry, low-resolution blobs—LRP redistributes the model's output prediction back through the network layers to the input pixels.

Visualizing cancer relevance using LRP heatmaps across different tumor entities.

This produces high-resolution heatmaps where red pixels indicate features supporting the classification (e.g., "cancerous") and blue pixels indicate features contradicting it. Specific LRP configurations were used to ensure the heatmaps were both stable and biologically meaningful, aligning with morphological features pathologists use for diagnosis.

Experimental Setup

The study primarily used data from The Cancer Genome Atlas (TCGA) Research Network, focusing on three tumor entities: Cutaneous malignant melanoma (SKCM), Invasive breast cancer (BRCA), and Lung adenocarcinoma (LUAD). To validate the heatmaps, the authors introduced a newly annotated benchmark where a board-certified pathologist manually labeled over 8,400 individual cells. This allowed for quantitative measurement of whether the model's "attention" (relevance) overlapped with actual cancer cells rather than just patch-level labels.

Results and Discussion

The application of LRP heatmaps revealed several critical insights into model behavior and dataset integrity:

  • Debugging Hidden Biases: Heatmaps revealed that without data augmentation, model relevance concentrated in a "bullseye" at the center of images, indicating a labeling bias. Correcting this with spatial augmentations led to a 5% improvement in the Area Under the ROC Curve (AUC).
  • Detecting Class-Correlated Biases: In experiments where images were corrupted with a tiny 5x5 pixel square, the model achieved 100% accuracy by finding the square. LRP heatmaps immediately identified this "cheating" by showing high relevance on the artifact instead of the tissue.
  • Biological Alignment: Quantitative evaluation showed that LRP heatmaps significantly overlapped with expert cell annotations. The ROC curves for cell-level recognition using these heatmaps were far above random baselines, demonstrating that the model was indeed learning relevant biological features.
ROC curves evaluating the alignment of LRP heatmaps with expert-annotated cancer cells.

The models achieved high classification performance, with weighted F1-scores ranging from 0.87 (SKCM) to 0.95 (BRCA). Furthermore, LRP provided much finer granularity than Grad-CAM, which is crucial for identifying small morphological features like individual lymphocytes or nuclear membranes.

Conclusion

This work demonstrates that explanation methods like LRP can transform "black-box" deep learning models into transparent diagnostic tools for digital pathology. By generating pixel-wise heatmaps, researchers can identify and mitigate dataset biases, ensuring models learn genuine biological markers. Future work will focus on translating these visual relevances into human-readable clinical reports and applying these techniques to Whole Slide Images (WSIs) in real-time clinical pipelines to assist pathologists.

Summary updated

BibTeX
@misc{hagele2019resolving,
  author = {Miriam Hägele and Philipp Seegerer and Sebastian Lapuschkin and Michael Bockmayr and Wojciech Samek and Frederick Klauschen and Klaus-Robert Müller and Alexander Binder},
  title = {{Resolving challenges in deep learning-based analyses of histopathological images using explanation methods}},
  year = {2019},
  eprint = {1908.06943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.06943},
}
Figure