The impact of site-specific digital histology signatures on deep learning model accuracy and bias

Frederick M. Howard, James M. Dolezal, Sara Kochanny, Jefree J. Schulte, Heather Chen, Lara R. Heij, Dezheng Huo, Rita Nanda, Olufunmilayo I. Olopade, Jakob Nikolas Kather, Nicole A. Cipriani, Robert L. Grossman, Alexander T. PearsonNature Communications 2021

Abstract

The Cancer Genome Atlas (TCGA) is one of the largest biorepositories of digital histology. Deep learning (DL) models have been trained on TCGA to predict numerous features directly from histology, including survival, gene expression patterns, and driver mutations. However, we demonstrate that these features vary substantially across tissue submitting sites in TCGA for over 3,000 patients with six cancer subtypes. Additionally, we show that histologic image differences between submitting sites can easily be identified with DL. Site detection remains possible despite commonly used color normalization and augmentation methods, and we quantify the image characteristics constituting this site-specific digital histology signature. We demonstrate that these site-specific signatures lead to biased accuracy for prediction of features including survival, genomic mutations, and tumor stage. Furthermore, ethnicity can also be inferred from site-specific signatures, which must be accounted for to ensure equitable application of DL. These site-specific signatures can lead to overoptimistic estimates of model performance, and we propose a quadratic programming method that abrogates this bias by ensuring models are not trained and validated on samples from the same site.

Introduction

In computational pathology, researchers rely heavily on multi-institutional repositories like The Cancer Genome Atlas (TCGA). While these datasets provide the scale necessary for training deep learning (DL) models, they introduce significant "batch effects." Each submitting site (hospital) employs unique tissue processing protocols, including variations in Hematoxylin and Eosin (H&E) staining, slide scanners, and local patient demographics. This study investigates whether DL models are truly learning biological features or if they are inadvertently exploiting these site-specific visual "fingerprints" to achieve high performance.

Methodology

The researchers investigated the presence and impact of site-specific signatures using several approaches:

  1. Site Prediction: An Xception-based convolutional neural network (CNN) was trained to identify the submitting site of a given histology slide.
  2. Image Quantification: Classical statistical methods (ANOVA) and Haralick texture features were used to measure variations in image characteristics like contrast and homogeneity across sites.
  3. Normalization Evaluation: The efficacy of common mitigation strategies, such as Reinhard and Macenko color normalization and random color augmentation, was tested against site-specific signatures.
  4. Preserved-Site Cross-Validation: The authors introduced a novel validation framework using quadratic programming. This method ensures that all samples from a specific hospital are restricted to either the training or validation set, preventing the model from "memorizing" site-specific artifacts to predict outcomes.
Comparison of color normalization and grayscale conversion methods applied to digital histology slides.

Key Insights

The "Husky vs. Wolf" Problem in Pathology

Similar to AI models that learn to identify wolves based on snow in the background, pathology models can learn site-specific staining styles as proxies for clinical features. If a specific hospital treats a higher proportion of advanced-stage patients, the model may associate that site's unique H&E tint with high-stage cancer rather than identifying actual cellular morphology.

Persistence of Site Signatures

DL models proved remarkably adept at site detection, achieving AUROCs between 0.964 and 0.998. Crucially, site detection remained possible even after aggressive color normalization. This suggests that site signatures are not merely color-based but are embedded in second-order texture features—how pixels relate to their neighbors—which standard normalization fails to eliminate.

Impact on Ancestry and Bias

A critical finding was the model's ability to "predict" genomic ancestry (e.g., African vs. European) from histology. However, when using preserved-site validation, this predictive power often vanished. This indicates that the original accuracy was likely a result of site-level demographic differences rather than biological signals in the tissue itself.

Results

  • Performance Inflation: Switching from standard random cross-validation to preserved-site validation resulted in an average AUROC drop of 0.069 across clinical features.
  • Feature Reliability: Out of 58 features initially deemed predictable, 20 (35.7%) were found to be undetectable when site-specific signatures were isolated.
  • Ancestry Prediction: In the BRCA cohort, the AUROC for ancestry prediction plummeted from 0.798 (standard) to 0.507 (preserved-site), demonstrating that the model was relying on site signatures rather than biological markers of ancestry.

Conclusion

Site-specific signatures in digital histology represent a significant hurdle for the generalizability and equity of deep learning models. While color normalization is a common practice, it is insufficient to remove these "fingerprints." The authors recommend that preserved-site validation, facilitated by mathematical optimization like quadratic programming, should become a standard practice in the field to ensure that models are learning robust, clinically relevant features rather than institutional artifacts.

Summary updated

BibTeX
@inproceedings{howard2021impact,
  author = {Frederick M. Howard and James M. Dolezal and Sara Kochanny and Jefree J. Schulte and Heather Chen and Lara R. Heij and Dezheng Huo and Rita Nanda and Olufunmilayo I. Olopade and Jakob Nikolas Kather and Nicole A. Cipriani and Robert L. Grossman and Alexander T. Pearson},
  title = {{The impact of site-specific digital histology signatures on deep learning model accuracy and bias}},
  booktitle = {Nature Communications},
  year = {2021},
  doi = {10.1038/s41467-021-24698-1},
}
Figure