Abstract
Cytometry is an important single cell analysis technology in furthering our understanding of cellular biological processes and in supporting clinical diagnoses across a variety of hematological and immunological conditions. Current data analysis workflows for cytometry data rely on a manual process called gating to classify cells into canonical types. This dependence on human annotation significantly limits the rate, reproducibility, and scope of cytometry’s use in both biological research and clinical practice. We develop a novel Bayesian approach for automated gating that classifies cells into different types by combining cell-level marker measurements with an informative prior. The Bayesian approach allows for the incorporation of biologically-meaningful prior information that captures the domain expertise of human experts. The inference algorithm results in a hierarchically-structured classification of individual cells in a manner that mimics the tree-structured recursive process of manual gating, making the results readily interpretable. The approach can be extended in a natural fashion to handle data from multiple different samples by the incorporation of random effects in the Bayesian model. The proposed approach is evaluated using mass cytometry data, on the problems of unsupervised cell classification and supervised clinical diagnosis, illustrating the benefits of both incorporating prior knowledge and sharing information across multiple samples.
Introduction
Cytometry is a cornerstone of modern single-cell biology, enabling the measurement of dozens of protein markers on millions of individual cells. This capability is vital for diagnosing complex conditions such as leukemia or HIV. However, the standard analytical pipeline remains heavily reliant on "manual gating." In this process, human experts examine 2D scatter plots and manually draw boundaries (gates) around cell clusters, recursively drilling down into sub-populations to identify specific cell types.
This manual approach presents a significant bottleneck: it is labor-intensive, subjective, and fails to scale as technology advances from 10 markers to over 50 in mass cytometry (CyTOF). While automated clustering methods exist, they often function as "black boxes," producing results that are difficult for clinicians to verify or relate to established biological hierarchies. To address this, we propose a novel Bayesian framework that automates gating by mimicking the hierarchical, logic-based approach used by human experts.
Methods: Bayesian Trees and the Mondrian Process
The core of our approach treats the gating process as a hierarchical partitioning problem. We utilize the Mondrian Process (MP), a Bayesian non-parametric prior that partitions a multi-dimensional space into rectangular "cells" using recursive, axis-aligned cuts.
This structure is ideal for cytometry because it perfectly mirrors the tree-like logic of manual gating. By forcing the model to use axis-aligned cuts, the resulting classification is immediately interpretable; a clinician can see exactly which marker thresholds led to a specific cell classification.
Informative Priors and Random Effects
Unlike purely unsupervised methods, our model incorporates Informative Prior Tables. These tables, provided by experts, map known cell types to specific marker profiles (e.g., "CD4 T cells are high in CD4 and low in CD8"). This biological knowledge acts as a search compass, guiding the algorithm toward relevant dimensions in high-dimensional space and preventing it from getting lost in noise.
To handle data from multiple patients or samples, we extended the model with Random Effects (MP-RE). This allows the algorithm to learn a global "template" tree while permitting small, patient-specific offsets in the cut points. This accounts for natural biological and technical variability across subjects.
The model uses Markov Chain Monte Carlo (MCMC) sampling for inference, finding the most likely tree structures and cut points given the observed data and expert priors.
Datasets and Evaluation
The model was rigorously evaluated on two public benchmark mass cytometry (CyTOF) datasets:
- AML (Acute Myeloid Leukemia): Featuring 32 markers and 14 manually gated cell types.
- BMMC (Bone Marrow Mononuclear Cells): Featuring 13 markers and 19 cell types.
- Clinical Diagnosis Set: Data from 5 healthy subjects and 16 AML patients were used to test the model's capacity for supervised clinical classification.
Key Results
Our Bayesian framework achieved state-of-the-art performance across all benchmarks:
- High Accuracy: The model reached 96.9% accuracy on the AML dataset and 92.3% on the BMMC dataset. This performance is comparable to or exceeds existing methods like ACDC or Phenograph, while providing superior interpretability.
- Clinical Success: In a "leave-one-out" cross-validation test for diagnosing AML, the MP-RE model correctly classified all 21 subjects, achieving 100% accuracy.
- Robustness: Sensitivity analysis showed the model is robust to the exact values of prior parameters, as long as the hierarchical importance of markers is maintained.
Discussion and Future Work
The primary strength of this approach is that interpretability is treated as a core feature. By mimicking human logic, the model builds trust with clinicians. Furthermore, the "template" approach via random effects solves the common problem of comparing disparate patient samples in clinical trials.
However, limitations remain. The current reliance on axis-aligned cuts, while mimicking most manual gating, may not capture the nuances of diagonal or polygonal gates used by some experts. Future work will explore non-axis-aligned partitions. Additionally, the computational cost of MCMC sampling is high; optimizing this for massive datasets with millions of cells is a priority. Finally, extending the model to longitudinal data could provide insights into how cell populations evolve over time or in response to therapy.
Summary updated