Counterfactual Diffusion Models Provide Interpretable Explanations of Artificial Intelligence Models in Pathology

Deep learning can extract predictive and prognostic biomarkers from histopathology whole-slide images. However, explainable artificial intelligence approaches widely used in digital pathology, such as attention heatmaps and class activation mapping, provide limited insight into the image features associated with classifier outputs. Here, we developed MoPaDi (Morphing histoPathology Diffusion), a framework for generating counterfactual explanations for histopathology images that help identify morphological or stain-related features linked to model predictions. MoPaDi combined diffusion autoencoders with task-specific multiple instance learning classifiers to manipulate images and induce prediction shifts by modifying classifier-associated features. The framework was evaluated on multiple datasets spanning colorectal, breast, liver, and lung cancers, including tasks for tissue type, cancer subtype, and biomarker (microsatellite instability) classification. MoPaDi generated perceptually realistic counterfactual histopathology images, enabling pathologists to identify morphological features associated with changes in model predictions, complementing conventional inspection of highly attended regions in digital pathology. In the microsatellite instability status prediction task, MoPaDi highlighted morphological features linked to classifier predictions, including mucinous differentiation, altered glandular architecture, and lymphocytic infiltration, consistent with prior literature. Analyses separating stain-related from morphology-related components suggested that, in this setting, prediction changes were predominantly associated with morphology-related rather than stain-related alterations. Overall, MoPaDi is a practical framework for counterfactual explanations in computational pathology that supports the evaluation of model-specific decision cues and hypothesis generation.

Authors

Institutions

Publication Details

Journal
Cancer Research
Published
2026-06-17
DOI
https://doi.org/10.1158/0008-5472.can-25-5645
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Counterfactual Diffusion Models Provide Interpretable Explanations of Artificial Intelligence Models in Pathology

Isabella Lurje, Daniel Truhn, Tianyu Han, Moritz Jesinghaus et al.
Cancer Research
AI in cancer detection
article

Counterfactual Diffusion Models Provide Interpretable Explanations of Artificial Intelligence Models in Pathology

Isabella Lurje, Daniel Truhn, Tianyu Han, Moritz Jesinghaus, Katherine Hewitt, Alexander T. Pearson, Nic G. Reitsam, Carolin Victoria Schneider, Deniz Uluk, Asier Rabasco Meneghetti, Zunamys I. Carrero, Sebastian Foersch, Jakob Nikolas Kather, Georg Lurje, Laura Žigutytė, Michaela Unger, Justus Pein, Tim Lenz, Sophia Herda
article en

Abstract

Deep learning can extract predictive and prognostic biomarkers from histopathology whole-slide images. However, explainable artificial intelligence approaches widely used in digital pathology, such as attention heatmaps and class activation mapping, provide limited insight into the image features associated with classifier outputs. Here, we developed MoPaDi (Morphing histoPathology Diffusion), a framework for generating counterfactual explanations for histopathology images that help identify morphological or stain-related features linked to model predictions. MoPaDi combined diffusion autoencoders with task-specific multiple instance learning classifiers to manipulate images and induce prediction shifts by modifying classifier-associated features. The framework was evaluated on multiple datasets spanning colorectal, breast, liver, and lung cancers, including tasks for tissue type, cancer subtype, and biomarker (microsatellite instability) classification. MoPaDi generated perceptually realistic counterfactual histopathology images, enabling pathologists to identify morphological features associated with changes in model predictions, complementing conventional inspection of highly attended regions in digital pathology. In the microsatellite instability status prediction task, MoPaDi highlighted morphological features linked to classifier predictions, including mucinous differentiation, altered glandular architecture, and lymphocytic infiltration, consistent with prior literature. Analyses separating stain-related from morphology-related components suggested that, in this setting, prediction changes were predominantly associated with morphology-related rather than stain-related alterations. Overall, MoPaDi is a practical framework for counterfactual explanations in computational pathology that supports the evaluation of model-specific decision cues and hypothesis generation.

Cancer Research
Technische Hochschule Augsburg (DE), Philipps University of Marburg (DE), University of Augsburg (DE), Johannes Gutenberg University Mainz (DE), University of Chicago (US), University Medical Center of the Johannes Gutenberg University Mainz (DE), Medical University of Vienna (AT), Technische Universität Dresden (DE), Charité - Universitätsmedizin Berlin (DE), RWTH Aachen University (DE)
Peace, Justice and strong institutions
Openalex Percentile: Top 5%
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.