Abstract
Deep learning has proven capable of automating key aspects of histopathologic analysis. However, its context-specific nature and continued reliance on large expert-annotated training datasets hinders the development of a critical mass of applications to garner widespread adoption in clinical/research workflows. Here, we present an online collaborative platform that streamlines tissue image annotation to promote the development and sharing of custom computer vision models for PHenotyping And Regional Analysis Of Histology (PHARAOH; https://www.pathologyreports.ai/). Specifically, PHARAOH uses a weakly supervised, human-in-the-loop learning framework whereby patch-level image features are leveraged to organize large swaths of tissue into morphologically-uniform clusters for batched annotation by human experts. By providing cluster-level labels on only a handful of cases, we show how custom PHARAOH models can be developed efficiently and used to guide the quantification of cellular features that correlate with molecular, pathologic and patient outcome data. Both the custom model design and feature extraction pipelines are amenable to crowdsourcing, positioning PHARAOH to become a fully scalable, systems-level solution for the expansion, generalization and cataloging of computational pathology applications.
Introduction
Deep learning holds immense promise for transforming histopathology, yet it faces a significant "data tax." Training robust models typically requires tens of thousands of expert-annotated Whole Slide Images (WSIs). Given that pathologists are highly trained and time-constrained, the manual collection of these massive datasets remains a primary bottleneck. Furthermore, many existing AI tools operate as "black boxes" or "one-size-fits-all" solutions that lack the flexibility to adapt to specific research cohorts or rare diseases. There is a critical need for a scalable, interpretable framework that links specific tissue patterns (phenotypes) to clinical outcomes without requiring months of manual labeling.
Methods
The PHARAOH platform utilizes a multi-step computational pipeline designed to minimize human effort while maximizing model performance.
- Unsupervised Clustering (HAVOC): The system employs a pre-trained Convolutional Neural Network (CNN) to extract "histomorphologic fingerprints," or Deep Learning Feature Vectors (DLFVs), from small tissue patches. These patches are automatically grouped into clusters based on visual similarity.
- Human-in-the-Loop (HITL) Labeling: Instead of annotating thousands of individual patches, a pathologist reviews the clusters and assigns a label to the entire group (e.g., "Tumor," "Stroma," "Inflammation"). This batched annotation process significantly reduces the time required per slide to just 1–2 minutes.
- Weakly Supervised Training: These cluster-level labels are used to fine-tune a custom CNN for automated tissue segmentation across entire cohorts.
- Feature Extraction: Following segmentation, the platform integrates tools like HoVer-Net and CellProfiler to extract over 160 morphometric features, including nuclear size, shape, and texture.
Results
The PHARAOH platform was validated across several high-profile datasets, including TCGA-SKCM (melanoma) and TCGA-KIRC (renal cell carcinoma), as well as local validation cohorts.
Phenotypic Correlation and Interpretability
A key strength of PHARAOH is its ability to identify interpretable morphometric features that align with pathological understanding. For instance, cellularity metrics extracted from the segmented regions showed significant differences across identified tissue types, such as inflammation and tumor regions, providing a bridge between AI outputs and clinical intuition.
Clinical and Prognostic Utility
- Melanoma Survival: PHARAOH-derived scores for Tumor Infiltrating Lymphocytes (TILs) successfully stratified patients into high- and low-survival groups (median survival 109 vs. 66 months, $p = 0.00016$).
- Kidney Cancer Grading: A 3-feature model measuring nuclear atypia, size, and staining aligned significantly with traditional Fuhrman grading.
- Superior Prognosis: An XGBoost model trained on PHARAOH’s morphometric features outperformed traditional hand-crafted models in predicting survival for kidney cancer patients ($p < 0.0001$).
- Efficiency: High spatial agreement with ground-truth manual annotations was achieved with labeling as few as seven cases.
Discussion
PHARAOH addresses the "data tax" of digital pathology by shifting the focus from individual patch annotation to cluster-level labeling. This "human-in-the-loop" approach not only accelerates model development but also ensures that the resulting models are interpretable, identifying specific morphometric drivers of disease progression. By providing an online portal for sharing custom models, PHARAOH aims to become a "Wikipedia" for computational pathology, enabling a crowdsourced library of diagnostic and prognostic tools.
Future work will explore the integration of Vision Transformers (ViTs) and active learning to further refine cluster homogeneity and model accuracy. While currently a powerful research tool, further regulatory validation is required for primary clinical diagnostic use.
Summary updated