Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Sep 13:13:100140.
doi: 10.1016/j.jpi.2022.100140. eCollection 2022.

Tackling stain variability using CycleGAN-based stain augmentation

Affiliations

Tackling stain variability using CycleGAN-based stain augmentation

Nassim Bouteldja et al. J Pathol Inform. .

Abstract

Background: Considerable inter- and intra-laboratory stain variability exists in pathology, representing a challenge in development and application of deep learning (DL) approaches. Since tackling all sources of stain variability with manual annotation is not feasible, we here investigated and compared unsupervised DL approaches to reduce the consequences of stain variability in kidney pathology.

Methods: We aimed to improve the applicability of a pretrained DL segmentation model to 3 external multi-centric cohorts with large stain variability. In contrast to the traditional approach of training generative adversarial networks (GAN) for stain normalization, we here propose to tackle stain variability by data augmentation. We augment the training data of the pretrained model by the stain variability using CycleGANs and then retrain the model on the stain-augmented dataset. We compared the performance of i/ the unmodified pretrained segmentation model with ii/ CycleGAN-based stain normalization, iii/ a feature-preserving modification to ii/ for improved normalization, and iv/ the proposed stain-augmented model.

Results: The proposed stain-augmented model showed highest mean segmentation accuracy in all external cohorts and maintained comparable performance on the training cohort. However, the increase in performance was only marginal compared to the pretrained model. CycleGAN-based stain normalization suffered from encoded imperceptible information into the normalizations that confused the pretrained model and thus resulted in slightly worse performance.

Conclusions: Our findings suggest that stain variability can be tackled more effectively by augmenting data by it than by following the commonly used approach of normalizing the stain. However, the applicability of this approach providing only a rather slight performance increase has to be weighted against an additional carbon footprint.

Keywords: Deep learning; Digital pathology; Kidney; Segmentation; Stain augmentation; Stain normalization.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

Fig. 1
Fig. 1
Overview of stain variations in all cohorts.
Fig. 2
Fig. 2
Approaches for improved generalization of the pretrained segmentation model to external cohorts. To improve the pretrained model S (i/), CycleGANs are trained for translation between its training cohort AC and the external cohorts, respectively. Stain normalization then uses the CycleGANs to translate the external domains into the training cohort AC for improved application (ii/ + iii/). In contrast, the proposed stain augmentation augments the annotated training data of S by the external stain variations using the CycleGANs (iv/). Then, a new and cohort-independent segmentation model is trained on the stain-augmented annotated training data.
Fig. 3
Fig. 3
Qualitative segmentation results in all external cohorts. For each external, multi-centric cohort, images with 2 representative stain variations are selected (column 1). Their predictions by the proposed stain-augmented model are shown (column 2). They are colored in accordance with Fig. 1, however tubules are colored randomly here to assess the feasibility of their instance separation.
Fig. 4
Fig. 4
Qualitative normalization and segmentation results of all approaches. The pretrained segmentation model is denoted by “Baseline”, the proposed stain augmentation by “StainAugm”, CycleGAN-based stain normalization by “StainNorm”, and its feature-preserving modification by “w/ SegNet”. The stain-normalized translations by the latter 2 approaches are denoted by “NormStainNorm” and “Normw/ SegNet”, respectively. Interfering information got encoded into the stain-normalized images that confused the pretrained segmentation model and led to erroneous predictions (a few marked by red arrows).

Similar articles

Cited by

References

    1. Gurcan M.N., Boucheron L.E., Can A., Madabhushi A., Rajpoot N.M., Yener B. Histopathological image analysis: a review. IEEE Rev Biomed Eng. 2009;2:147–171. - PMC - PubMed
    1. Tellez D., Litjens G., Bandi P., et al. 2019. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. - PubMed
    1. Tschuchnig M.E., Oostingh G.J., Gadermayr M. Generative adversarial networks in digital pathology: a survey on trends and future potential. Patterns (N Y). 2020;1 - PMC - PubMed
    1. Shaban M.T., Baur C., Navab N., Albarqouni S. 2019. Staingan: Stain Style Transfer for Digital Histological Images.
    1. Salehi P., Chalechale A. 2020. Pix2Pix-based Stain-to-Stain Translation: A Solution for Robust Stain Normalization in Histopathology Images Analysis.

LinkOut - more resources