PathologyGAN: Learning deep representations of cancer tissue

Adalberto Claudio Quiros, Roderick Murray‐Smith, Ke Yuan

Abstract

Histopathological images of tumours contain abundant information about how tumours grow and how they interact with their micro-environment. Better understanding of tissue phenotypes in these images could reveal novel determinants of pathological processes underlying cancer, and in turn improve diagnosis and treatment options. Advances of Deep learning makes it ideal to achieve those goals, however, its application is limited by the cost of high quality labels from patients data. Unsupervised learning, in particular, deep generative models with representation learning properties provides an alternative path to further understand cancer tissue phenotypes, capturing tissue morphologies. In this paper, we develop a framework which allows Generative Adversarial Networks (GANs) to capture key tissue features and uses these characteristics to give structure to its latent space. To this end, we trained our model on two different datasets, an H&E colorectal cancer tissue from the National Center for Tumor diseases (NCT, Germany) and an H&E breast cancer tissue from the Netherlands Cancer Institute (NKI, Netherlands) and Vancouver General Hospital (VGH, Canada). Composed of 86 slide images and 576 tissue micro-arrays (TMAs) respectively. We show that our model generates high quality images, with a Frechet Inception Distance (FID) of 16.65 (breast cancer) and 32.05 (colorectal cancer). We further assess the quality of the images with cancer tissue characteristics (e.g. count of cancer, lymphocytes, or stromal cells), using quantitative information to calculate the FID and showing consistent performance of 9.86. Additionally, the latent space of our model shows an interpretable structure and allows semantic vector operations that translate into tissue feature transformations. Furthermore, ratings from two expert pathologists found no significant difference between our generated tissue images from real ones.

Introduction

In oncology, histopathology remains the gold standard for diagnosis. While deep learning has shown immense promise in analyzing tissue images, it typically relies on supervised learning, which requires vast amounts of high-quality labels from expert pathologists. These labels are expensive, time-consuming to produce, and subject to inter-observer variability.

PathologyGAN addresses these limitations by employing an unsupervised generative framework. The goal is to learn a "latent space"—a mathematical representation of features—where spatial organization corresponds to meaningful biological characteristics, such as lymphocyte infiltration or the transition from stroma to tumor tissue. By capturing complex tissue morphologies and interactions without manual labels, the model provides a novel tool for understanding cancer phenotypes.

Methods

PathologyGAN is a hybrid architecture that integrates the strengths of several state-of-the-art Generative Adversarial Networks (GANs). It uses a BigGAN foundation to handle large, diverse datasets and generate high-resolution images. To improve feature disentanglement, the authors incorporated a mapping network and style-mixing techniques from StyleGAN, allowing the model to localize high-level features within the latent space.

The PathologyGAN architecture, featuring a mapping network $M$ that transforms latent space $z$ into $w$, which then conditions the generator $G$ to produce synthetic tissue samples.

Instead of standard Hinge loss, the model employs a Relativistic Average Discriminator (RaGAN), which was found to better preserve morphological structures and prevent visual artifacts during latent space interpolation. The model was trained on two major datasets: 100,000 H&E colorectal cancer images from the NCT (Germany) and 249,000 breast cancer tissue patches from the NKI/VGH (Netherlands/Canada).

Results and Discussion

Image Fidelity and Pathologist Validation

The model achieved high image quality, with a Fréchet Inception Distance (FID) of 16.65 for breast cancer and 32.05 for colorectal cancer. In a "Pathologist Turing Test," two experts were asked to distinguish between real and generated 224x224 patches; their performance was close to random, indicating that the synthetic images are virtually indistinguishable from real patient samples.

Comparison of real and generated tissue patches across various phenotypes, illustrating the model's ability to capture diverse biological structures.

Interpretable Latent Space

Analysis of the latent space using UMAP projections revealed that the model naturally organizes images by biological features like cell density and tissue type. The model supports "tissue arithmetic" via vector operations. For example, adding the latent vector for "Lymphocytes" to the vector for "Stroma" results in a generated image depicting stroma infiltrated by immune cells. This confirms that PathologyGAN learns a disentangled, semantic representation of the tumor micro-environment.

Quantitative Biological Consistency

To validate that the model learns biology rather than just pixel patterns, the authors introduced a "prognostic" FID. By using an external tool (CRImage) to extract cell counts from generated images, they demonstrated that the distribution of cellular characteristics in synthetic tissue closely matches real-world data, achieving a consistent performance metric of 9.86.

Conclusion

PathologyGAN demonstrates that unsupervised deep learning can capture intricate cancer tissue phenotypes and organize them into an interpretable latent space. While current work is limited to 224x224 patches, future scaling to gigapixel whole-slide images and the development of encoders for real-patient data could significantly impact digital pathology and clinical decision-making.

Summary updated

BibTeX
@inproceedings{quiros2020pathologygan,
  author = {Adalberto Claudio Quiros and Roderick Murray‐Smith and Ke Yuan},
  title = {{PathologyGAN: Learning deep representations of cancer tissue}},
  booktitle = {MIDL},
  year = {2020},
}
Figure