Hostname: page-component-6898cfcb55-kwdml Total loading time: 0 Render date: 2026-11-11T21:28:29.516Z Has data issue: false hasContentIssue false

Developing image analysis pipelines of whole-slide images: Pre- and post-processing

Published online by Cambridge University Press:  27 August 2020

Byron Smith*
Affiliation:
Department of Health Sciences Research, Mayo Clinic, Rochester, MN, USA
Meyke Hermsen
Affiliation:
Department of Pathology, Radboud University Medical Center, Nijmegen, The Netherlands
Elizabeth Lesser
Affiliation:
Department of Health Sciences Research, Mayo Clinic, Jacksonville, FL, USA
Deepak Ravichandar
Affiliation:
Department of Management Engineering and Consulting, Mayo Clinic, Rochester, MN, USA
Walter Kremers
Affiliation:
Department of Health Sciences Research, Mayo Clinic, Rochester, MN, USAWilliam J. von Liebig Center for Transplantation and Clinical Regeneration, Mayo Clinic, Rochester, MN, USA
*
Address for correspondence: B. Smith, PhD, Department of Health Sciences Research, Mayo Clinic, Rochester, MN, USA. Email: smith.byron@mayo.edu
Rights & Permissions [Opens in a new window]

Abstract

Deep learning has pushed the scope of digital pathology beyond simple digitization and telemedicine. The incorporation of these algorithms in routine workflow is on the horizon and maybe a disruptive technology, reducing processing time, and increasing detection of anomalies. While the newest computational methods enjoy much of the press, incorporating deep learning into standard laboratory workflow requires many more steps than simply training and testing a model. Image analysis using deep learning methods often requires substantial pre- and post-processing order to improve interpretation and prediction. Similar to any data processing pipeline, images must be prepared for modeling and the resultant predictions need further processing for interpretation. Examples include artifact detection, color normalization, image subsampling or tiling, removal of errant predictions, etc. Once processed, predictions are complicated by image file size – typically several gigabytes when unpacked. This forces images to be tiled, meaning that a series of subsamples from the whole-slide image (WSI) are used in modeling. Herein, we review many of these methods as they pertain to the analysis of biopsy slides and discuss the multitude of unique issues that are part of the analysis of very large images.

Information

Type
Review Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Association for Clinical and Translational Science 2020
Figure 0

Fig. 1.Typical flow of a WSI processing pipeline. In several instances, one may have to step backwards or start a stage over due to suboptimal outputs.

Figure 1

Table 1.A summary of select useful functions in image processing in Python and R

Figure 2

Fig. 2.A flowchart of the training process in deep learning. Note that data augmentation is a step that is carried out during the training process.

Figure 3

Fig. 3.(A) Initial WSI, (B) tissue identified by thresholding (green), and (C) tissue identified by thresholding followed by filling hulls. By identifying tissue prior to analysis, slide background can be removed from the analysis.

Figure 4

Fig. 4.Color differences between an (A) Aperio ScanScope v1 and (B) Aperio AT2 slide scanner based on default color profiles using the same slide.

Figure 5

Fig. 5.Tissue tiling based on (A) a regular grid, (B) an overlapping grid, and (C) random tiles.

Figure 6

Fig. 6.Hypothetical predictions of the presence of a glomerulus on a renal transplant biopsy from a deep learning algorithm either (A) by pixel (segmentation) prior to post-processing, (B) by pixel after post-processing, and (C) by tile. Note that raw output from a segmentation model may leave errant pixel predictions as well as hulls within objects of interest.

Figure 7

Fig. 7.Morphological operations using an 11 × 11 filter size followed by hull filling. (A) Dilation, (B) Erosion, (C) Opening, and (D) Closing. Note that in this case, the dilation and closing with small differences in how close the segmentation is to the tissue boundaries.