Benchmarking the Robustness of Deep Neural Networks to Common Corruptions in Digital Pathology

Yunlong Zhang, Yuxuan Sun, Honglin Li, Sunyi Zheng, Chenglu Zhu, Lin Yang

Introduction

Deep Neural Networks (DNNs) have demonstrated remarkable potential in automating disease diagnosis from digital pathology slides. However, a significant barrier remains between laboratory success and clinical deployment: the "messiness" of real-world data. While models excel on curated research datasets, they often struggle with the physical and digital artifacts inherent in clinical workflows. This study introduces a standardized benchmark to evaluate how common image corruptions—ranging from scanning artifacts to physical slide defects—impact the reliability of AI in pathology.

The Challenge of Clinical Variability

In digital pathology, images are the product of a complex pipeline involving tissue cutting, staining, scanning, and digital storage. Each step introduces potential distortions, such as defocusing, motion blur, staining variations, and compression artifacts. Unlike natural images (e.g., photos of everyday objects), pathology images rely on extremely subtle interclass differences. The distinction between healthy and malignant cells often hinges on fine-grained textures and nuclear details. Consequently, even minor corruptions can lead to catastrophic model failure.

Methodology: A Standardized Robustness Benchmark

To quantify these vulnerabilities, the researchers developed a benchmark involving nine types of common corruptions, each applied at five levels of severity. These are categorized into four primary groups:

  • Digitization: JPEG compression and pixelation artifacts.
  • Blur: Defocus and motion blur resulting from scanner limitations.
  • Color: Variations in brightness, saturation, and hue, simulating staining inconsistencies.
  • Stain-specific Artifacts: Physical disruptions such as "marks" (pen lines from pathologists) and "bubbles" (air trapped under the coverslip).

Evaluation Metrics

Beyond standard accuracy, the study introduced three specialized metrics to assess model health:

  1. Corruption Error (CE): The average error rate across all corruption types and severities.
  2. Relative Corruption Error (rCE): A measure of how much the error rate increases on corrupted data relative to clean data.
  3. Corruption Error of Confidence (CEC): A novel metric using Kendall Tau logic to determine if a model’s confidence decreases as image quality degrades. Ideally, a model should express lower confidence when processing highly corrupted images.

Datasets

The benchmark was applied to the validation sets of two major collections to create:

  • PatchCamelyon-C: Derived from the Camelyon16 histopathology challenge.
  • LocalTCT-C: A new cytological dataset for cervical cancer screening, sourced from multiple clinical environments.

Key Insights

The Robustness Gap

The study revealed that even top-performing models are highly fragile. Error rates approximately doubled when models were faced with corrupted images. Notably, the progress made in improving "clean" accuracy over the last decade has not translated into improved robustness; high-performing models on standard datasets often remain susceptible to real-world noise.

The Confidence Paradox

A critical finding was the failure of most models on the CEC metric. Instead of becoming more cautious as image quality dropped, many models maintained or even increased their confidence levels. This "confidently wrong" behavior is particularly dangerous in a clinical setting, where an AI should ideally flag low-quality images for human review rather than providing a high-confidence incorrect diagnosis.

Predicting Real-World Performance

The researchers found that performance on standard validation sets is a poor predictor of real-world performance (with correlations sometimes near zero). However, performance on the new corrupted benchmark showed a significantly higher correlation with real-world test sets (jumping from -0.02 to 0.45 on the LocalTCT dataset), making it a much more reliable tool for pre-clinical validation.

Architecture Matters

Vision Transformers (ViTs) generally demonstrated superior robustness compared to traditional Convolutional Neural Networks (CNNs). The global attention mechanisms of ViTs appear to be less easily distracted by local, pixel-level corruptions than the local filters used by CNNs.

Conclusion

This research highlights a significant reliability gap in current pathology AI. While models are becoming more accurate on clean data, they remain vulnerable to the artifacts of the clinical environment. The proposed benchmark provides a vital diagnostic tool for researchers to measure and eventually improve the robustness of diagnostic algorithms, ensuring they are truly ready for the complexities of the clinic.

Summary updated

BibTeX
@inproceedings{zhang2022benchmarking,
  author = {Yunlong Zhang and Yuxuan Sun and Honglin Li and Sunyi Zheng and Chenglu Zhu and Lin Yang},
  title = {{Benchmarking the Robustness of Deep Neural Networks to Common Corruptions in Digital Pathology}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16434-7\_24},
}
Figure