bioRxivCancer BiologyPreprint
Examining Batch Effect in Histopathology as a Distributionally Robust Optimization Problem
S. N. Hari, J. Nyman, N. Mehta, F. Dietlein, J. Rosenthal, B. Jiang, A. Chowdhury, H. Elmarakeby, E. Sengupta, R. Umeton, E. M. Van Allen
Abstract
Computer vision (CV) approaches applied to digital pathology have informed biological discovery and development of tools to help inform clinical decision-making. However, batch effects in the images have the potential to introduce spurious confounders and represent a major challenge to effective analysis and interpretation of these data. Standard methods to circumvent learning such confounders include (i) application of image augmentation techniques and (ii) examination of the learning process by evaluating through external validation (e.g., unseen data coming from a comparable dataset collected at another hospital). Here, we show that the source site of a histopathology slide can be learned from the image using CV algorithms in spite of image augmentation, and we explore these source site predictions using interpretability tools. A CV model trained using Empirical Risk Minimization (ERM) risks learning this source-site signal as a spurious correlate in the weak-label regime, which we abate by using a training method with abstention. We find that a patch based classifier trained using abstention outperformed a model trained using ERM by 9.9, 10 and 19.4% F1 in the binary classification tasks of identifying tumor versus normal tissue in lung adenocarcinoma, Gleason score in prostate adenocarcinoma, and tumor tissue grade in clear cell renal cell carcinoma, respectively, at the expense of up to 80% coverage (defined as the percent of tiles not abstained on by the model). Further, by examining the areas abstained by the model, we find that the model trained using abstention is more robust to heterogeneity, artifacts and spurious correlates in the tissue. Thus, a method trained with abstention may offer novel insights into relevant areas of the tissue contributing to a particular phenotype. Together, we suggest using data augmentation methods that help mitigate a digital pathology models reliance on potentially spurious visual features, as well as selecting models that can identify features truly relevant for translational discovery and clinical decision support.
- assay: imaging
- research focus: cell type annotation
- research focus: differential expression
- approach: deep learning
- approach: contrastive learning
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
- The Impact of Digital Histopathology Batch Effect on Deep Learning Model Accuracy and Bias
Frederick Matthew Howard, James M. Dolezal, … Alexander T. Pearson·Nature CommunicationsPeer-reviewed·Jul 20, 2021
- HistoClean: Open-source Software for Histological Image Pre-processing and Augmentation to Improve Development of Robust Convolutional Neural Networks
K. D. McCombe, S. G. Craig, … J. A. James·bioRxiv·Jun 7, 2021
- stainlib: a python library for augmentation and normalization of histopathology H&E images
Sebastian Otálora, Niccolò Marini, … Manfredo Atzori·bioRxiv·May 17, 2022
- A foundation model for generalizable cancer diagnosis and survival prediction from histopathological images
Zhaochang Yang, Ting Wei, … Zhangsheng Yu·Nature CommunicationsPeer-reviewed·Mar 10, 2025
- Counterfactual Diffusion Models for Interpretable Explanations of Artificial Intelligence Models in Pathology
Laura Žigutytė, Tim Lenz, … Jakob Nikolas Kather·Cancer ResearchPeer-reviewed·Jun 17, 2026
- Improving Data Quality, Model Transparency and Performance in Lung Histopathology with Explainable AI
Salma Kazemi Rashed, Mikael Nilsson, Sonja Aits·bioRxiv·Sep 21, 2026