Automated quality assessment of large digitised histology cohorts by artificial intelligence

Maryam Haghighat, Lisa Browning, Korsuk Sirinukunwattana, Stefano Malacrino, Nasullah Khalid Alham, Richard Colling, Ying Cui, Emad A. Rakha, Freddie C. Hamdy, Clare Verrill, Jens RittscherScientific 2022

Abstract

Research using whole slide images (WSIs) of histopathology slides has increased exponentially over recent years. Glass slides from retrospective cohorts, some with patient follow-up data are digitised for the development and validation of artificial intelligence (AI) tools. Such resources, therefore, become very important, with the need to ensure that their quality is of the standard necessary for downstream AI development. However, manual quality control of large cohorts of WSIs by visual assessment is unfeasible, and whilst quality control AI algorithms exist, these focus on bespoke aspects of image quality, e.g. focus, or use traditional machine-learning methods, which are unable to classify the range of potential image artefacts that should be considered. In this study, we have trained and validated a multi-task deep neural network to automate the process of quality control of a large retrospective cohort of prostate cases from which glass slides have been scanned several years after production, to determine both the usability of the images at the diagnostic level (considered in this study to be the minimal standard for research) and the common image artefacts present. Using a two-layer approach, quality overlays of WSIs were generated from a quality assessment (QA) undertaken at patch-level at 5× magnification. From these quality overlays the slide-level quality scores were predicted and then compared to those generated by three specialist urological pathologists, with a Pearson correlation of 0.89 for overall 'usability' (at a diagnostic level), and 0.87 and 0.82 for focus and H&E staining quality scores respectively. To demonstrate its wider potential utility, we subsequently applied our QA pipeline to the TCGA prostate cancer cohort and to a colorectal cancer cohort, for comparison. Our model, designated as PathProfiler, indicates comparable predicted usability of images from the cohorts assessed (86-90% of WSIs predicted to be usable), and perhaps more significantly is able to predict WSIs that could benefit from an intervention such as re-scanning or re-staining for quality improvement. We have shown in this study that AI can be used to automate the process of quality control of large retrospective WSI cohorts to maximise their utility for research.

Introduction

In the field of digital pathology, Whole Slide Images (WSIs) are essential for research and AI development. However, many datasets rely on retrospective cohorts—glass slides archived for years that may suffer from degradation, such as stain fading or dust accumulation. When digitized, these artifacts can mislead AI models, a classic "garbage in, garbage out" problem. Manual quality control (QC) of thousands of slides by specialist pathologists is unfeasible and subjective. PathProfiler addresses this by using deep learning to provide a nuanced, human-like assessment of slide quality and usability.

Methods

PathProfiler employs a two-layer deep learning approach. First, a patch-level assessment uses a ResNet18 network to analyze small tissue patches at 5× magnification. It simultaneously predicts six metrics: overall usability, artifact presence, staining quality, focus quality, tissue folding, and other issues like ink or bubbles.

Average quality measures of patches across the ProMPT, TCGA, and FOCUS cohorts, illustrating the prevalence of different artifacts.

Second, these patch-level predictions are aggregated into slide-level predictions. Heatmaps (quality overlays) are generated, from which statistical features are extracted to predict final scores (0–10) for focus and staining, alongside a binary usability label. The model utilizes Huber loss to remain robust against the subjective variability in pathologist labeling.

Results

The model was validated across diverse datasets, including the ProMPT prostate cohort (3,819 slides), TCGA Prostate (449 slides), and the FOCUS colorectal cohort (788 slides).

Human-AI Alignment

PathProfiler achieved a high Pearson correlation with specialist pathologists: 0.89 for overall usability, 0.87 for focus, and 0.82 for staining quality. Notably, the model avoids common pitfalls of traditional QC tools, such as misidentifying gland-free stroma as "blurry," by learning the broader histological context.

Dataset Health and Actionable Insights

The model predicted that 86–90% of WSIs across the cohorts were usable for research. Beyond a simple pass/fail, PathProfiler identifies why a slide failed, such as flagging slides that specifically require re-scanning due to focus issues or re-staining due to fading.

Distribution of WSI usability, focus, and staining scores across the three study cohorts, showing high predicted usability.

Discussion and Conclusion

PathProfiler demonstrates that AI can effectively automate QC for massive digital histology cohorts. While the model showed promise in cross-organ validation (prostate to colorectal), future work will focus on expanding dataset diversity and pursuing regulatory clearance for clinical workflows. By identifying actionable quality issues, PathProfiler ensures that large-scale digital pathology resources are optimized for high-quality research and AI training.

Summary updated

BibTeX
@inproceedings{haghighat2022automated,
  author = {Maryam Haghighat and Lisa Browning and Korsuk Sirinukunwattana and Stefano Malacrino and Nasullah Khalid Alham and Richard Colling and Ying Cui and Emad A. Rakha and Freddie C. Hamdy and Clare Verrill and Jens Rittscher},
  title = {{Automated quality assessment of large digitised histology cohorts by artificial intelligence}},
  booktitle = {Scientific},
  year = {2022},
  doi = {10.1038/s41598-022-08351-5},
}
Figure