Region-Guided CycleGANs for Stain Transfer in Whole Slide Images

Joseph Boyd, Irène Villa, Marie-Christine Mathieu, Eric Deutsch, Nikos Paragios, Maria Vakalopoulou, Stergios Christodoulidis

Introduction

In modern computational pathology, the ability to synthesize specific tissue stains from standard preparations—a process known as "virtual staining"—holds significant promise for clinical workflows. While Hematoxylin and Eosin (H&E) remains the standard for general tissue morphology, Immunohistochemistry (IHC) is often required to identify specific protein expressions or metastatic cell clusters. However, IHC is resource-intensive and time-consuming. This paper introduces a novel Region-guided CycleGAN designed to bridge the gap between H&E and IHC through biologically consistent image-to-image translation.

The Challenge of Biological Consistency

Standard unsupervised image translation models, such as the CycleGAN, are frequently employed for virtual staining because they do not require perfectly registered, pixel-aligned image pairs. However, these models often suffer from "hallucinations," where the generator places stains in biologically incorrect locations or fails to stain relevant structures. This occurs because standard discriminators (like PatchGAN) focus on texture and color distribution rather than the underlying biological entities. In cancer diagnosis, where a brown DAB (3,3'-Diaminobenzidine) stain must precisely correspond to malignant cells, these inconsistencies can lead to false positives or negatives.

Methodology

To address these limitations, the authors propose an extension to the CycleGAN architecture that incorporates object-level supervision through a Region of Interest (RoI) discriminator.

1. RoI-Guided Architecture

While the standard CycleGAN utilizes a PatchGAN discriminator to evaluate the realism of image patches, the proposed model adds a second discriminator focused specifically on cell-level bounding boxes. By utilizing a RoIAlign layer—a technique popularized by Mask R-CNN—the model extracts features from arbitrarily sized cell regions. This forces the generator to ensure that individual cells in the translated IHC image appear biologically plausible compared to real IHC cell structures.

2. The Object Library

The training process is supported by a semi-automatic pipeline used to construct an "Object Library." By applying Laplacian of Gaussian (LoG) filters for blob detection and Otsu thresholding on real IHC slides, the researchers identified over 100,000 cell bounding boxes. This library provides the structural guidance necessary for the RoI discriminator to distinguish between "cancer" and "normal" cell presentations across both H&E and IHC domains.

3. Optimization

The model is trained using a multi-component loss function that combines:

  • Adversarial Loss: Ensuring global image realism.
  • Cycle-Consistency Loss: Ensuring the mapping is reversible and preserves content.
  • RoI-based Adversarial Loss: Ensuring local, cell-level biological accuracy.

Experimental Results

The researchers evaluated the model using two primary datasets: the Gustave Roussy (GR) Dataset (205 WSIs of breast cancer lymph nodes) and the public CAMELYON16 dataset (1,399 H&E slides).

Quantitative Performance

The region-guided approach demonstrated significant improvements over standard CycleGAN and conditional GAN baselines:

  • DICE Similarity Score: On the GR dataset, the DICE score (measuring the overlap between virtual and real stains) improved from a baseline of 0.442 to 0.536.
  • Balanced Accuracy (BAC): The model achieved a BAC of 0.634, compared to 0.490 for the baseline.
  • Generalization: When trained on GR data and tested on the CAMELYON16 dataset, the model maintained a DICE score of 0.533, indicating strong transferability across different clinical sources.

Computational Efficiency

The model is optimized for clinical scale, capable of processing entire whole-slide thumbnails in approximately 14 to 22 seconds, making it a viable tool for real-time pathological review.

Discussion and Conclusion

The primary contribution of this work is the shift from patch-level to object-level supervision in virtual staining. By providing the model with structural cues—essentially telling the GAN "there should be a cell in this box"—the authors mitigate the common pitfalls of unsupervised translation.

While the model significantly reduces hallucinations, some false positives remain where the DAB signal is misplaced. Future work will focus on refining the Object Library and automating the detection pipeline to create a fully self-supervised system applicable to a wider variety of tissue types and staining protocols. Ultimately, this region-guided approach serves as a robust "soft segmentation" tool, highlighting critical areas of interest for pathologists and improving the efficiency of metastatic cell detection.

Summary updated

BibTeX
@inproceedings{boyd2022region,
  author = {Joseph Boyd and Irène Villa and Marie-Christine Mathieu and Eric Deutsch and Nikos Paragios and Maria Vakalopoulou and Stergios Christodoulidis},
  title = {{Region-Guided CycleGANs for Stain Transfer in Whole Slide Images}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  url = {https://openreview.net/forum?id=ONptJ0e0JP},
}
Figure