A Pyramidal Deep Learning Pipeline for Kidney Whole-Slide Histology Images Classification

Sci Rep 2021 AI 6 Explanations View Original
Original Paper (PDF)

Unable to display PDF. Download it here or view on PMC.

Plain-English Explanations
Pages 1-2
Distinguishing ccRCC from Clear Cell Papillary RCC

Renal cell carcinoma encompasses more than 10 distinct histological subtypes with different molecular characteristics, treatment responses, and clinical outcomes. Among these subtypes, clear cell RCC (ccRCC) and clear cell papillary RCC (ccpRCC) represent a particularly challenging diagnostic pair because both tumor types can be composed exclusively of clear cells and can display a predominant tubular or alveolar architecture, creating significant morphological overlap on standard hematoxylin and eosin stained slides.

The clinical significance of accurate distinction between these subtypes is substantial: ccRCC carries a poor prognosis with high metastatic potential and is the most common cause of kidney cancer death, whereas ccpRCC is an indolent tumor with minimal risk of recurrence or metastasis and only one documented case of metastatic behavior in the medical literature. Incorrect classification could lead to either over-treatment of a patient with ccpRCC or under-surveillance of a patient with true ccRCC.

Definitive diagnosis in ambiguous cases currently relies on immunohistochemistry panels that exploit the distinct protein expression profiles of these two subtypes, but immunohistochemistry may not be available in resource-limited settings and requires additional time, cost, and tissue consumption. An automated deep learning system capable of classifying these subtypes directly from hematoxylin and eosin images would provide faster, more accessible, and reproducible diagnostic support for pathologists worldwide.

TL;DR: ccRCC and clear cell papillary RCC share overlapping histological features but have drastically different prognoses, motivating automated deep learning classification from whole-slide images.
Pages 2-3
Dataset Construction and Patch Generation Strategy

The study used 64 whole-slide images obtained from de-identified archived pathology specimens at Indiana University, comprising 30 slides from ccRCC cases, 22 slides from ccpRCC cases, seven slides showing normal renal parenchyma, and five slides showing perirenal fat tissue. A genitourinary pathology expert reviewed and manually segmented each slide into four tissue classes: fat, parenchyma, clear cell papillary RCC, and clear cell RCC.

The 64 whole-slide images were partitioned into two sets: Set 1 containing 44 WSIs for training and internal testing, and Set 2 containing 20 WSIs for final validation. Because whole-slide images are too large to be processed directly by a convolutional neural network, each image was divided into overlapping patches of three sizes: small (250x250 pixels), medium (350x350 pixels), and large (450x450 pixels), with 50 percent overlap between adjacent patches in Set 1 and a five-pixel shift between successive patches in Set 2.

Background patches dominated by empty slide regions were removed, retaining approximately 70 percent of generated patches for training and the remainder for testing. The multi-scale patch generation approach is the defining feature of the pyramidal framework design, enabling each of the three convolutional neural networks to learn from a different spatial resolution of tissue information simultaneously.

TL;DR: 64 whole-slide images from four tissue classes were divided into overlapping patches at three sizes (250, 350, and 450 pixels) for input into three parallel CNNs.
Pages 3-5
Pyramidal CNN Architecture and Preprocessing

The deep learning framework consists of three convolutional neural networks (CNNS, CNNM, CNNL) each processing patches of a specific size. All three networks share identical architectural designs: eight convolutional layers organized into four blocks, each containing two convolutional layers followed by a max-pooling layer, succeeded by two fully connected layers and a softmax classification output. Filters of size 3x3 with stride 1 were used in convolutional layers, with max-pooling using a stride of 2 to progressively reduce spatial dimensions.

Two preprocessing techniques were applied to all patches before CNN input. First, contrast limited adaptive histogram equalization (CLAHE) enhanced local contrast across the patch while preventing noise amplification in homogeneous tissue regions by limiting the amplification factor and using bilinear interpolation between neighboring tile regions. Second, high-pass spatial domain edge enhancement was applied by convolving patches with a sharpening filter to emphasize cellular boundaries and architectural features relevant to tissue classification.

Dropout regularization at rate 0.2 was applied in both convolutional and fully connected layers to prevent overfitting given the relatively small dataset size. Model hyperparameters including number of layers, filter size, learning rate, number of epochs, and optimizer type were selected through grid search, identifying Adam optimizer, learning rate 0.001, and 60 training epochs as optimal. Data augmentation via random rotation, scaling, and flipping was applied to increase effective training set size.

TL;DR: Three parallel CNNs with 8 convolutional layers each process different patch sizes, with CLAHE and edge enhancement preprocessing and dropout regularization to prevent overfitting.
Pages 6-8
Classification Accuracy and Comparison with ResNet Models

The proposed pyramidal framework with generalized Gauss-Markov random field (GGMRF) smoothing achieved average pixel-level accuracy of 0.957, average sensitivity of 0.920, and average specificity of 0.971 across the four tissue classes in the final validation set. These results exceeded the performance of the same framework without GGMRF smoothing (accuracy 0.946), demonstrating the contribution of the spatial consistency enforcement step.

Comparison with two pretrained ResNet models fine-tuned on the kidney histology data showed that the proposed pyramidal approach outperformed both reference architectures. ResNet18 achieved pixel accuracy of 0.942 with sensitivity 0.892 and specificity 0.961, while ResNet34 achieved accuracy 0.937 with sensitivity 0.882 and specificity 0.957. Statistical testing using paired t-tests confirmed that the performance differences were significant (p=0.01 versus ResNet18, p=0.02 versus ResNet34).

Patchwise accuracy analysis showed that patches of 350x350 pixels provided the best individual CNN performance across most tissue classes. Combining classifications from all three CNNs through majority voting produced higher pixel-level accuracy than any single network alone, confirming that multi-scale feature integration is beneficial and that different patch sizes capture complementary morphological information at different spatial scales.

TL;DR: The pyramidal framework with GGMRF smoothing achieved pixel accuracy 0.957, significantly outperforming ResNet18 (0.942) and ResNet34 (0.937) in statistical testing.
Pages 6-7
Majority Voting Fusion and GGMRF Smoothing

The pixel-level classification map was constructed by assigning each pixel the majority class label across all patches containing that pixel, with each patch receiving the label predicted by its corresponding CNN. Because Set 2 patches were generated with a five-pixel shift between successive patches, individual pixels in the validation images belonged to multiple overlapping patches and therefore received multiple candidate labels before majority voting resolved each to a single classification.

GGMRF (Generalized Gauss-Markov Random Field) smoothing was applied to the pixel-level classification maps to enforce spatial consistency and remove isolated misclassified pixels that appear visually inconsistent with their surrounding tissue region. The GGMRF model treats the assigned pixel labels as samples from a statistical image model that penalizes abrupt discontinuities between neighboring pixels, using a maximum a posteriori estimation framework to replace inconsistent isolated labels with spatially coherent alternatives.

The model parameters for GGMRF smoothing were set empirically: alpha of 2 (Gaussian prior distribution), beta of 1.01 (smoothness control), rho of 1, lambda of 5, and neighborhood potential of 2. These settings were calibrated to remove small isolated label inconsistencies while preserving genuine tissue boundaries between morphologically distinct zones such as the interface between tumor and normal parenchyma.

TL;DR: Majority voting across overlapping patches fused multi-CNN predictions to pixel labels, and GGMRF smoothing removed isolated inconsistencies to improve classification map coherence.
Pages 8-9
Clinical Impact and Generalizability of the Pyramidal Framework

This study presents the first deep learning system designed specifically to discriminate clear cell papillary RCC from clear cell RCC on whole-slide histology images, addressing a clinically important diagnostic challenge with significant prognostic implications. The achieved pixel-level accuracy of 0.957 with statistically significant superiority over fine-tuned ResNet architectures demonstrates the value of the pyramidal multi-scale design for this specific classification task.

The computer-aided diagnostic system offers complementary value to the expert pathologist by providing an automated, reproducible, and spatially explicit second opinion on kidney tumor subtype classification. The pixel-level classification maps generated by the framework could be displayed alongside the original whole-slide image, allowing pathologists to rapidly identify regions where the automated system assigns different class labels and focus their detailed review accordingly.

The primary limitation of this study is the small dataset of 64 whole-slide images from a single institution, which restricts conclusions about generalizability to WSIs acquired at other institutions with different scanner hardware, staining protocols, and patient demographics. Expansion to larger multi-institutional WSI datasets and prospective evaluation as a diagnostic aid in pathology workflows would be essential next steps toward clinical deployment of the pyramidal classification system.

TL;DR: The pyramidal deep learning system achieves clinically meaningful classification accuracy for ccRCC versus clear cell papillary RCC but requires multi-institutional validation before pathology workflow integration.
Citation: Open Access, 2021. Available at: PMC8511039.