Deep Learning for the Pathologic Diagnosis of Hepatocellular Carcinoma, Cholangiocarcinoma, and Metastatic Colorectal Cancer

Cancers (Basel) 2023 AI 5 Explanations View Original
Original Paper (PDF)

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

Plain-English Explanations
Pages 1-2
AI Pathology for the Three Most Challenging Liver Cancer Diagnoses

The Diagnostic Challenge Distinguishing hepatocellular carcinoma (HCC), cholangiocarcinoma (CC), and metastatic colorectal cancer (mCRC) in the liver is one of the most consequential and difficult tasks in hepatopathology. The treatment implications differ dramatically - liver transplantation is appropriate for HCC but contraindicated in CC.

Why This Is Hard CC and mCRC both present as adenocarcinomas on hematoxylin and eosin (H&E) staining, making morphological distinction difficult. Even highly specialized pathologists can find these diagnoses challenging, with inter-observer variation contributing to diagnostic error in a substantial fraction of cases.

The AI Solution Researchers from The Catholic University of Korea developed a two-step deep learning classifier using whole-slide images (WSIs) that distinguishes between the three cancer types with AUC values of 0.998 and 0.995 on internal testing - performance approaching the limit of measurable accuracy.

Training Data Sources WSIs were obtained from TCGA (The Cancer Genome Atlas) for HCC and CC, supplemented with additional CC and mCRC cases from Dankook University Hospital to address class imbalance, totaling 366 HCC, 195 CC, and 179 mCRC slides for training.

TL;DR: A two-step deep learning pipeline trained on whole-slide H&E images from multiple institutions achieved AUC 0.998 for distinguishing HCC from other liver cancers and AUC 0.995 for separating cholangiocarcinoma from metastatic colorectal cancer - clinically consequential distinctions that challenge even expert pathologists.
Pages 3-4
The Two-Step Deep Learning Classification Pipeline

Why Two Steps? Direct three-class classification (HCC vs. CC vs. mCRC) was avoided because of severe class imbalance in available datasets. HCC slides far outnumber CC and mCRC slides. The two-step approach first discriminates HCC from all others (leveraging the large HCC dataset), then separates CC from mCRC (where datasets are more balanced).

Pre-Processing Pipeline WSIs are first processed by a tissue/non-tissue classifier to remove artifacts (air bubbles, compression artifacts, pen marks, out-of-focus regions). A normal/tumor classifier then isolates only the malignant tissue patches (probability > 0.9) for the cancer type classifiers, ensuring the model learns cancer-versus-cancer distinctions rather than cancer-versus-normal.

CNN Architecture Selection Three architectures (AlexNet, ResNet-50, and Inception-v3) were evaluated for the initial normal/tumor classifier. Inception-v3 demonstrated the best performance and was selected for all downstream classification tasks. Tissue image patches of 360 x 360 pixels at 20x magnification were used as inputs.

Five-Fold Cross-Validation Slide-level five-fold cross-validation with 60% training, 20% validation, and 20% test splits ensured rigorous performance assessment. Color normalization and data augmentation (random horizontal and vertical flipping, 90-degree rotation) were applied during training to reduce staining variability and prevent overfitting.

TL;DR: The pipeline sequentially applies a tissue/non-tissue filter, then a normal/tumor classifier (Inception-v3), then two cancer-type classifiers in a balanced two-step design; five-fold cross-validation with color normalization and augmentation ensures rigorous, reproducible performance assessment.
Pages 5-6
Classification Performance on Internal and External Datasets

Normal/Tumor Classification The Inception-v3 normal/tumor classifier achieved AUC values of 0.989 (HCC), 0.988 (CC), and 0.991 (mCRC) - confirming that the model reliably separates malignant tissue from normal liver before cancer type classification begins.

HCC vs. Other (Step 1) The HCC/other cancer type classifier achieved AUC 0.997 (fold with lowest AUC) and 0.999 (fold with highest AUC), with a concatenated AUC of 0.998 (95% CI: 0.997-0.999) - representing near-perfect discrimination of HCC from CC and mCRC on internal validation data.

CC vs. mCRC (Step 2) The second classifier distinguishing CC from mCRC - the clinically most challenging distinction because both present as adenocarcinomas - achieved AUC 0.992 to 0.998 across folds, with a concatenated AUC of 0.995 (95% CI: 0.992-0.998).

External Validation Drop and Recovery When tested on the Seoul St. Mary's Hospital (SSMH) external dataset, the HCC classifier initially showed poor generalizability (AUC = 0.745). After combining SSMH cases with the original training data and retraining, all five folds achieved perfect AUC of 1.000 on the SSMH dataset - demonstrating that diverse training data resolves generalization failures.

TL;DR: Internal validation achieved near-perfect AUC values (0.998 for HCC vs. others; 0.995 for CC vs. mCRC), but external validation revealed poor generalizability (AUC 0.745) that was fully resolved by including external data in retraining - highlighting the critical importance of diverse multi-institutional training.
Pages 7-8
Implications for Liver Pathology Practice

Transplant Decision Support The most immediate clinical impact is in the liver transplantation pathway. Since transplantation is the definitive treatment for early HCC but is contraindicated for CC, an AI pathology tool that reliably distinguishes these two diagnoses could prevent catastrophic transplant errors and help ensure appropriate patient selection.

Reducing Inter-Observer Variability Pathologist inter-observer variability in HCC versus CC diagnosis is well-documented. An AI assistant that provides a quantitative, reproducible second opinion could flag cases where the AI disagrees with the primary pathologist - prompting additional immunohistochemistry or multidisciplinary review.

Global Pathology Access In many high-burden HCC countries (sub-Saharan Africa, Southeast Asia), expert hepatopathologists are scarce. WSI-based AI tools could enable reliable liver cancer typing in settings without subspecialty pathology expertise, improving diagnostic equity.

Integration with Digital Pathology As pathology departments transition from glass slides to digital WSI workflows, AI-assisted classification can be embedded directly into pathology laboratory information systems, providing real-time diagnostic support without disrupting existing pathologist workflows.

TL;DR: The clinical stakes are highest in the transplant setting where HCC/CC distinction determines eligibility for life-saving surgery; AI pathology tools could also reduce inter-observer variability, extend subspecialty expertise to resource-limited settings, and integrate seamlessly into digital pathology workflows.
Pages 8-9
Generalizability and the Path to Clinical Deployment

Generalizability Is the Critical Issue The initial external validation failure (AUC = 0.745) with TCGA-trained models on Korean data highlights that tissue preparation differences, slide scanning protocols, and ethnic differences in tumor morphology can significantly impair model performance when deployed outside the training institution.

Multi-Center Data Collection Required Achieving robust generalizability requires training data from multiple institutions with diverse staining protocols, scanner hardware, and patient populations. The researchers are actively conducting a multi-center collection project, which is the appropriate next step before clinical deployment.

Hard Negative Mining and Transformer Architectures Confusing cases (where morphological features of CC and mCRC overlap) could be addressed through hard negative mining - specifically augmenting training with the most difficult misclassified cases. Vision transformer architectures may further improve performance over CNN-based models for challenging inter-class distinctions.

Immunohistochemistry Integration Current models use only H&E staining. Incorporating AI analysis of immunohistochemical stains (Hepatocyte, GPC-3, CK7, CDX-2) that pathologists routinely use for liver tumor typing could substantially improve accuracy for the most challenging cases that H&E alone cannot resolve.

TL;DR: External validation failure due to inter-institutional staining and scanning differences is the primary obstacle to deployment; solutions include multi-center diverse training data, hard negative mining for challenging cases, and eventual incorporation of immunohistochemistry into the AI analysis pipeline.
Citation: Open Access, 2023. Available at: PMC10670046.