Abstract
We propose a few shot learning approach for the problem of hematopoietic cell classification in digital pathology. In hematopoiesis cell classification, the classes correspond to the different stages of the cellular maturation process. Two consecutive stage categories are considered to have a neighborhood relationship, which implies a visual similarity between the two categories. We propose RelationVAE which incorporates these relationships between hematopoietic cell classes to robustly generate more data for the classes with limited training data. Specifically, we first model these relationships using a graphical model, and propose RelationVAE, a deep generative model which implements the graphical model. RelationVAE is trained to optimize the lower bound of the pairwise data likelihood of the graphical model. In this way, it can identify class level features of a specific class from a small number of input images together with the knowledge transferred from visually similar classes, leading to more robust sample synthesis. The experiments on our collected hematopoietic dataset show the improved results of our proposed RelationVAE over a baseline VAE model and other few shot learning methods.
Introduction: The Challenge of Visual Ambiguity in Cell Maturation
In clinical pathology, identifying hematopoietic (blood-forming) cells is critical for diagnosing diseases like leukemia and anemia. However, these cells represent stages in a continuous maturation process rather than isolated categories. This biological reality presents a significant challenge for automated classification.
The challenge for AI is twofold:
- Data Scarcity: Certain maturation stages are rare, making it difficult to collect the large-scale datasets required for deep learning.
- Visual Ambiguity: Because maturation is a gradient, a cell in one stage looks very similar to a cell in the next. Standard classifiers often struggle with these subtle transitions when training data is limited.
Current few-shot learning (FSL) methods typically ignore the rich "side information" available in biology—specifically, the known relationships between cell stages.
Methodology: RelationVAE
To address these challenges, we introduce RelationVAE, a Variational AutoEncoder (VAE) designed to exploit class relationships.
The Graphical Model
Instead of treating every cell category as independent, we utilize a graphical model where "neighboring" classes (consecutive maturation stages) are connected. This allows for effective knowledge transfer: when the model encounters a "novel" class with only one training image, it "borrows" stylistic and structural knowledge from its visually similar "base" neighbors where data is more abundant.
Pairwise Evidence Lower Bound (P-ELBO)
We derived a new mathematical objective function called P-ELBO. This allows the neural network to optimize the likelihood of seeing pairs of related images, ensuring that the generated synthetic data maintains the correct "family resemblance" between stages.
Data Synthesis
Once trained, RelationVAE acts as a "hallucinator." It takes a single image of a rare cell and generates diverse, realistic variations of its features. These synthetic samples are then used to augment the training set for a final classifier, bridging the gap caused by data scarcity.
Experimental Evaluation
Datasets
The study primarily uses a custom Hematopoiesis dataset curated from 19 whole-slide images scanned at 100X magnification, containing 7,433 cell images across 21 categories. The data is split into 12 "base" classes (abundant data) and 9 "novel" classes (limited data). To demonstrate generalizability, we also tested the method on the CUB (Caltech-UCSD Birds) and Stanford Dogs (SDOGs) datasets, using taxonomic hierarchies as the relationship prior.
Key Results
RelationVAE consistently outperformed state-of-the-art few-shot learning methods, particularly in the most difficult 1-shot scenarios:
- Hematopoiesis Dataset: In the 1-shot setting, RelationVAE achieved 62.84% accuracy, surpassing the baseline MultilevelVAE (60.00%) and popular methods like MAML (55.12%) and RelationNet (51.79%).
- Stanford Dogs: It reached 73.08% accuracy in the 1-shot setting, significantly higher than the next best generative baseline (69.8%).
Discussion and Future Work
The core insight of this work is that biological maturation sequences provide a natural "prior" for machine learning models. By informing the model about which classes should look alike, we drastically reduce the feature search space.
While successful, the model currently relies on predefined relationship graphs. Future work could involve learning these relationship graphs automatically from data or applying the framework to other sequential biological processes, such as cancer cell progression. Additionally, while we currently generate feature-level data, future iterations could explore direct image-to-image synthesis to capture finer spatial nuances.
Summary updated