Cancer ResearchBioinformaticsPeer-reviewed journal article
Counterfactual Diffusion Models for Interpretable Explanations of Artificial Intelligence Models in Pathology
Laura ŽigutytėiD, Tim LenziD, Tianyu HaniD, Nic Gabriel ReitsamiD, Sebastian FoerschiD, Katherine Jane HewittiD, Moritz JesinghausiD, Zunamys Itzell CarreroiD, Michaela UngeriD, Asier Rabasco MeneghettiiD, Georg LurjeiD, Isabella LurjeiD, Sophia HerdaiD, Justus PeiniD, Deniz UlukiD, Carolin Victoria SchneideriD, Alexander T. PearsoniD, Daniel TruhniD, Jakob Nikolas KatheriD
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, offer only limited interpretability regarding the features captured by classifiers. Here, we present MoPaDi (Morphing histoPathology Diffusion), a framework for generating counterfactual explanations for histopathology images that reveal which morphological or style features drive classifier predictions. MoPaDi combines diffusion autoencoders with task-specific multiple instance learning classifiers to manipulate images and flip predictions by modifying relevant features. We evaluated the framework on multiple datasets spanning colorectal, breast, liver, and lung cancers, including tissue type, cancer subtype, and biomarker (microsatellite instability) classification tasks. We assessed counterfactual explanations through quantitative analyses, pathologists evaluations, and independent foundation model-based classifiers. We found that MoPaDi was able to generate realistic counterfactual histopathology images, enabling pathologists to identify morphological features associated with the change in model predictions. Unlike conventional reviews of highly attended regions typical in digital pathology, MoPaDi explanations enabled pathologists to directly identify morphological features driving the classifiers predictions from a limited number of top-contributing tiles. Consistent with the literature, our biomarker classifier associated high microsatellite instability with mucinous differentiation, glandular patterns, and lymphocytic infiltration. Furthermore, MoPaDi revealed that changes in classifier predictions were mainly driven by morphological alterations rather than staining differences. Overall, MoPaDi is a practical framework for counterfactual explanations in computational pathology that reveals model-specific drivers of classification and increases trust in deep learning models.
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 40th percentile
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A human-in-the-loop explanation framework for morphologically transparent AI predictions from whole-slide images
Peiliang Lou, Yitan Zhu, … Chen Wang·npj Digital MedicinePeer-reviewed·May 14, 2026
- Dissecting and directing pathology foundation models
Chanwoo Kim, Jakub Kaczmarzyk, … Su‐In Lee·bioRxiv·Jun 16, 2026
- Evaluating reproducibility of AI algorithms in digital pathology with DAPPER
Andrea Bizzego, Nicole Bussola, … Cesare Furlanello·PLoS Computational BiologyPeer-reviewed·Mar 27, 2019
- DeepMed: A unified, modular pipeline for end-to-end deep learning in computational pathology
M. van Treeck, D. Cifci, … J. N. Kather·bioRxiv·Dec 19, 2021
- Automated acquisition of knowledge beyond pathologists
Yoichiro Yamamoto, Toyonori Tsuzuki, … Go Kimura·bioRxiv·Feb 4, 2019
- Deceptive learning in histopathology
S. Shahamatdar, D. Saeed-Vafa, … T. Serre·bioRxiv·Apr 21, 2022