Histopathology-Stain-Color-Normalization

Deep Convolutional Gaussian Mixture Model for Stain-Color Normalization in Histopathological H&E Images. The TensorFlow GPU implementation.

Overview

Stain-color variation degrades the performance of the computer-aided diagnosis (CAD) systems. In the presence of severe color variarion between training set and test set in histopathological images, current CAD systems including deep learning models suffer from such an undesirable effect. Stain-color normalization is known as a remedy.

Methodology

Stain-color normalization model can be defined as a generative models that by applying on input image can create different color copies of input image to somehow the converted image contain specific chromatic distribution. Our proposed method contains two stage: (1) Fitting a Gaussian mixture model (GMM) by considering the shape and apearance of image content structures. To do so the visual representation and modeling of convolutional neyral networks (CNNs) are exploited. (2) transforming the estimated distribution to any arbitary distribution that computed from a secondary (template) image.

Features

*The tissue class membership, computed by the standard GMM algorithm (middle) and the DCGMM (right); Clusters include nuclei (red), surrounding tissues (green) and the background(blue).*

How to use the code

Prerequisit

Configurations

  1. Specify the dataset diectory containing image patches crpped in predefined with and height.
  2. Specify the logging directory for storing the model trained parameters.
  3. Set the mode switch "mode" in train or prediction. [train]: training the DCGMM for learning the color distribution among images. [prediction]: Use the learned model for color conversion.

Results

Template image

Stain-color conversion

==> ==> ==>

Dataset

For evaluating the algorithm, CAMELYON17 dataset can be used.

Citing DCGMM

If you find DCGMM useful in your research, please consider citing:

Zanjani, F. G., Zinger, S., Bejnordi, B. E., & van der Laak, J. A. (2018). Histopathology Stain-Color Normalization Using Deep Generative Models.

License

Stian-color normalization by using DCGMM is released under the free GNU license.

Acknowledgement

This work was done as a part of 3DPathology project and has been funded by ITEA3 (Grant number: ITEA151003).