Target-Independent Domain Adaptation for WBC Classification Using Generative Latent Search

Prashant Pandey, Prathosh A. P., Vinay Kyatham, Deepak Mishra, Tathagato Rai Dastidar

Abstract

Automating White Blood Cell (WBC) classification is essential for modern pathology but is frequently hindered by domain shift—performance degradation caused by variations in imaging hardware. We present TIGDA (Target-Independent Generative Domain Adaptation), a framework that achieves domain robustness without requiring target-domain data during training. By utilizing a Variational Auto-Encoder (VAE) to model the source distribution and performing a generative latent search at inference, TIGDA identifies a "closest-clone" in the source domain for any target image. Our results demonstrate that TIGDA significantly outperforms state-of-the-art unsupervised domain adaptation (UDA) methods on multi-camera and cross-modality datasets.

Introduction

Deep learning models for medical imaging are notoriously sensitive to hardware changes. A model trained on images from one microscope often fails when deployed on another due to differences in lenses, lighting, or sensors. Standard Unsupervised Domain Adaptation (UDA) requires a large collection of unlabeled images from the target domain to tune the model. However, in clinical practice, target data is often unavailable beforehand. TIGDA addresses this "target-independent" scenario, allowing a model to remain robust to new domains it has never encountered during training.

The TIGDA Framework

The authors propose a two-stage strategy centered on generative modeling and inference-time optimization.

1. Generative Modeling (Training)

A Variational Auto-Encoder (VAE) is trained exclusively on source data. To ensure the VAE generates high-quality, structurally accurate cells, two specific mechanisms are employed:

  • Edge Concatenation: Structural edges (extracted via a Sobel operator) are fed back into the decoder to reduce blurriness.
  • Perceptual Loss: Features from a pre-trained classifier are used to ensure generated images maintain the semantic characteristics of specific cell types.
The TIGDA training architecture featuring a VAE with edge concatenation and perceptual loss.

2. Generative Latent Search (Inference)

At test time, when an image from an unknown target domain arrives, it is not classified directly. Instead, the system performs an optimization in the VAE's latent space to find a latent vector $z$ that produces an image most similar to the test image.

The generative latent search process at inference time to find the source-domain 'closest-clone'.

This process uses Structural Similarity (SSIM) as the objective function because it focuses on biological structures (nucleus shape, granules) rather than absolute pixel brightness. The resulting "closest-clone"—a source-like proxy of the target image—is then passed to the final classifier.

Experimental Evaluation

The researchers evaluated TIGDA on several benchmarks:

  • WBC Multi-Camera Dataset: 11 cell types captured across three different camera setups (A, B, and C).
  • Cross-Modality WBC: Adapting between Imaging Flow Cytometry and Peripheral Blood Smear images.
  • Office-31: A standard computer vision benchmark to demonstrate the method's general-purpose utility.

Results and Discussion

TIGDA consistently outperformed 12 state-of-the-art UDA methods, including ADDA, CyCADA, and JAN. In the Camera A $\rightarrow$ Camera B task, TIGDA achieved 76.2% accuracy, compared to just 42.7% for the non-adapted baseline and 67.8% for the best competing UDA method (CAN).

Key insights include:

  • The Existence of Clones: Theoretical proof shows that a sufficiently expressive source distribution can provide a close "clone" for related target images.
  • Inference as Optimization: By keeping the model frozen and treating the input as the variable to be optimized, TIGDA avoids the need for target-specific retraining.

Conclusion

TIGDA offers a practical solution for deploying medical AI in environments with diverse hardware. While the inference-time optimization (roughly 600 iterations) is slower than a standard forward pass, the gains in accuracy and target independence make it a compelling choice for real-world clinical applications. Future work will focus on improving inference speed and expanding the method to other medical imaging modalities.

Summary updated

Abstract

Automating the classification of camera-obtained microscopic images of White Blood Cells (WBCs) and related cell subtypes has assumed importance since it aids the laborious manual process of review and diagnosis. Several State-Of-The-Art (SOTA) methods developed using Deep Convolutional Neural Networks suffer from the problem of domain shift - severe performance degradation when they are tested on data (target) obtained in a setting different from that of the training (source). The change in the target data might be caused by factors such as differences in camera/microscope types, lenses, lighting-conditions etc. This problem can potentially be solved using Unsupervised Domain Adaptation (UDA) techniques albeit standard algorithms presuppose the existence of a sufficient amount of unlabelled target data which is not always the case with medical images. In this paper, we propose a method for UDA that is devoid of the need for target data. Given a test image from the target data, we obtain its `closest-clone' from the source data that is used as a proxy in the classifier. We prove the existence of such a clone given that infinite number of data points can be sampled from the source distribution. We propose a method in which a latent-variable generative model based on variational inference is used to simultaneously sample and find the `closest-clone' from the source distribution through an optimization procedure in the latent space. We demonstrate the efficacy of the proposed method over several SOTA UDA methods for WBC classification on datasets captured using different imaging modalities under multiple settings.
BibTeX
@article{pandey2020target,
  author = {Prashant Pandey and Prathosh A. P. and Vinay Kyatham and Deepak Mishra and Tathagato Rai Dastidar},
  title = {{Target-Independent Domain Adaptation for WBC Classification Using Generative Latent Search}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2020},
  url = {https://openreview.net/forum?id=AWu5MM8snkO},
}
Figure