NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unsupervised Deep Digital Staining for Microscopic Cell Images via Knowledge Distillation

Ziwang Xu, Lanqing Guo, Shuyan Zhang, Alex C. Kot, Bihan Wen

Introduction

In modern pathology, Hematoxylin and Eosin (H&E) staining is the gold standard for visualizing cellular structures and diagnosing diseases. However, the physical staining process is often slow, expensive, and inherently destructive to tissue samples. "Digital staining"—the use of deep learning to transform unstained images into stained equivalents—has emerged as a promising alternative.

While supervised learning methods have shown success in this domain, they rely on massive datasets of perfectly aligned "before and after" image pairs. In practice, obtaining such pairs is exceptionally difficult; tissue samples frequently deform during physical staining, and capturing the exact same field of view across different modalities is a significant technical challenge. This paper introduces a novel unsupervised framework designed to bridge this gap, specifically focusing on the transformation of dark-field microscopic images into H&E-stained bright-field images.

Problem Statement

Dark-field microscopy provides high contrast for thin, transparent samples, but its light distribution is essentially the inverse of standard bright-field microscopy: it features bright cells on a dark background. Converting these images into H&E-stained bright-field images (dark cells on a bright background) without paired data is a complex image-to-image translation task.

Existing unsupervised generative models, such as CycleGAN, often struggle with this transformation. Without a ground-truth reference, these models frequently "hallucinate" features or shift the positions of cells, leading to structural inaccuracies that would be unacceptable in a clinical diagnostic setting.

Proposed Methodology

The researchers propose a two-stage unsupervised pipeline that decomposes the complex staining task into manageable components: illuminance mapping and colorization.

1. Light Enhancement via Histogram Matching

Because dark-field and bright-field images have roughly inverse illuminance distributions, the framework first applies histogram matching. This step maps the dark-field input into a grayscale "bright-field" equivalent. By normalizing the lighting at the outset, the model establishes a structurally consistent foundation for the subsequent colorization stage.

2. Color-Inversion Distillation

To convert the grayscale image into a realistic H&E-stained output, the authors employ a Teacher-Student knowledge distillation framework:

  • Teacher Model: A network pre-trained on synthetic pairs (existing stained images converted to grayscale) to learn the general stylistic features of H&E staining.
  • Student GAN: This model performs the actual staining. It is guided by a Knowledge Distillation (KD) loss, which forces it to mimic the teacher's stylistic output, and a Content Consistency loss, which ensures that cellular structures remain spatially fixed and undeformed.
  • Multi-scale Discriminators: These components ensure the final output is visually indistinguishable from authentic stained tissue by evaluating the image at multiple resolutions.

Experimental Setup and Dataset

The study introduced the Digital Staining Dataset (DSD) to benchmark the framework. The dataset consists of 559 unstained dark-field images and 559 stained bright-field images at $256 \times 256$ resolution. Crucially, these images are unpaired and represent different tissue structures, reflecting the constraints of real-world clinical data collection.

Results and Discussion

The proposed method was evaluated against leading unsupervised models, including EnlightenGAN, CycleGAN, and CUT.

Quantitative Performance

The framework outperformed competing models across all primary metrics on the DSD dataset:

  • FID (Frechet Inception Distance): Achieved 147.34, indicating superior image quality and diversity.
  • NIQE (Natural Image Quality Evaluator): Scored 7.1665, significantly better than CycleGAN (8.96) and EnlightenGAN (24.7).
  • LPIPS: Achieved 0.3396, demonstrating high perceptual similarity and consistency.

Qualitative Performance

Visually, the proposed method maintained sharp, accurate cell boundaries and realistic H&E textures. While competing methods often produced "rough edges," fake cavities, or failed to distinguish cells from the background, the teacher-student distillation approach provided a "structural anchor" that prevented the hallucinations common in standard GANs.

Conclusion and Future Work

This research demonstrates that by combining histogram matching with knowledge distillation, it is possible to achieve high-fidelity digital staining without the need for paired datasets. This approach effectively utilizes the high contrast of dark-field imaging while maintaining the structural integrity required for pathological analysis.

Future work will focus on expanding the dataset to include a wider variety of tissue types and pathologies. Additionally, further validation is required to determine if the digital stains produced by this method perform as effectively as physical stains when used by pathologists or automated diagnostic tools in clinical workflows.

Summary updated

BibTeX
@inproceedings{xu2023unsupervised,
  author = {Ziwang Xu and Lanqing Guo and Shuyan Zhang and Alex C. Kot and Bihan Wen},
  title = {{Unsupervised Deep Digital Staining for Microscopic Cell Images via Knowledge Distillation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10094569},
}
Figure