Skip to main content
QUICK REVIEW

[Paper Review] HistoCartography: A Toolkit for Graph Analytics in Digital Pathology

Guillaume Jaume, Pushpak Pati|arXiv (Cornell University)|Jul 21, 2021
AI in cancer detectionComputer Science28 references10 citations
TL;DR

HistoCartography is an open-source Python toolkit that standardizes graph analytics in computational pathology by unifying image preprocessing, entity-graph construction, GNN-based learning, and explainability tools. It enables efficient, reproducible workflows for tissue composition analysis, achieving state-of-the-art performance in classification and segmentation tasks across diverse histopathology datasets with real-time inference on large whole-slide images.

ABSTRACT

Advances in entity-graph based analysis of histopathology images have brought in a new paradigm to describe tissue composition, and learn the tissue structure-to-function relationship. Entity-graphs offer flexible and scalable representations to characterize tissue organization, while allowing the incorporation of prior pathological knowledge to further support model interpretability and explainability. However, entity-graph analysis requires prerequisites for image-to-graph translation and knowledge of state-of-the-art machine learning algorithms applied to graph-structured data, which can potentially hinder their adoption. In this work, we aim to alleviate these issues by developing HistoCartography, a standardized python API with necessary preprocessing, machine learning and explainability tools to facilitate graph-analytics in computational pathology. Further, we have benchmarked the computational time and performance on multiple datasets across different imaging types and histopathology tasks to highlight the applicability of the API for building computational pathology workflows.

Motivation & Objective

  • To address the lack of standardized, reusable tools for entity-graph based analysis in computational pathology.
  • To reduce the technical barrier to adopting graph-based methods by unifying preprocessing, graph construction, GNN modeling, and explainability in a single API.
  • To enable researchers to build reproducible, scalable workflows without reinventing low-level components.
  • To benchmark the performance and computational efficiency of graph-based approaches across multiple histopathology tasks and imaging modalities.
  • To promote model interpretability by integrating pathologist-friendly explanation methods such as GraphGradCAM.

Proposed method

  • The toolkit provides a standardized Python API that integrates image preprocessing (e.g., stain normalization, tissue detection) and patch extraction for whole-slide images.
  • Entity-graphs are constructed using nuclei or superpixel-based segmentation, with nodes representing biological entities and edges defined via k-NN or spatial proximity.
  • Node features are extracted using a pretrained ResNet34 on $224 \times 224$ patches centered on entities, ensuring transferable representations.
  • Graph topology is built using thresholded k-NN with $k=5$ and a 50-pixel distance threshold to ensure spatial relevance.
  • GNN models such as CG-GNN, TG-GNN, HACT-Net, and SegGini are implemented using PNA and GIN layers with 64 or 128 hidden units for classification and segmentation.
  • Explainability is enabled via GraphGradCAM, which computes node-level saliency maps using post-hoc feature attribution on trained GNNs.

Experimental results

Research questions

  • RQ1Can a unified, open-source Python toolkit streamline the development of graph-based computational pathology workflows?
  • RQ2How does the performance of graph-based models in HistoCartography compare across diverse histopathology tasks and imaging types?
  • RQ3To what extent does the toolkit support real-time inference on large whole-slide images with varying magnification and size?
  • RQ4Can graph-based models with pathologist-interpretable explanations outperform traditional CNN-based approaches in diagnostic tasks?
  • RQ5How does the integration of prior biological knowledge (e.g., nuclei, glands) enhance model interpretability and clinical relevance?

Key findings

  • HistoCartography achieved a weighted F1 score of 61.5±0.9 on the BRACS dataset using HACT-Net for tumor classification, outperforming baseline models.
  • On the BACH dataset, the toolkit achieved a weighted F1 of 90.7±0.5, demonstrating strong performance on breast cancer classification with tumor region of interest (TRoI) inputs.
  • For prostate cancer segmentation, SegGini achieved a Dice score of 66.0±3.1 on TMA images and 44.3±2.0 on whole-slide images from the UZH and SICAPv2 datasets.
  • The toolkit enabled near real-time inference on graphs with up to $121 \times 10^6$ pixels, demonstrating scalability across whole-slide images.
  • GraphGradCAM provided pathologist-interpretable explanations by highlighting the ten most important nuclei per image, improving model transparency.
  • The benchmarking results confirm that entity-graphs with GNNs can effectively model tissue composition and outperform traditional CNN-based approaches in multiple tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.