Abstract
Analysis of flow cytometry data is an essential tool for clinical diagnosis of hematological and immunological conditions. Current clinical workflows rely on a manual process called gating to classify cells into their canonical types. This dependence on human annotation limits the rate, reproducibility, and complexity of flow cytometry analysis. In this paper, we propose using Mondrian processes to perform automated gating by incorporating prior information of the kind used by gating technicians. The method segments cells into types via Bayesian nonparametric trees. Examining the posterior over trees allows for interpretable visualizations and uncertainty quantification - two vital qualities for implementation in clinical practice.
The Challenge of Manual Gating
Flow cytometry (FC) is a cornerstone of clinical immunology, used to diagnose conditions like leukemia and HIV by measuring the physical and chemical characteristics of thousands of cells per second. To make sense of this high-dimensional data, technicians perform manual gating: they look at 2D scatter plots of cell markers and draw boxes (gates) around clusters, then "zoom in" on those cells to look at another pair of markers, repeating the process recursively.
However, manual gating has three major flaws:
- Subjectivity: Different technicians might draw different boxes, leading to poor reproducibility.
- Scalability: Modern FC can measure 50+ markers, making manual 2D inspection slow and prone to missing complex patterns.
- The "Black Box" Trade-off: Existing automated clustering algorithms often provide better speed but lack interpretability. Clinicians find it hard to trust a "black box" that doesn't explain why a cell was classified as a specific type.
Methodology: The Mondrian Process
The authors propose using Mondrian Processes (MPs) to bridge the gap between human intuition and machine efficiency. An MP is a Bayesian nonparametric prior over $kd$-trees. It partitions a space by recursively picking a dimension and drawing an axis-aligned cut—much like the geometric paintings of Piet Mondrian. This structure perfectly mirrors the recursive, axis-aligned nature of manual gating.
Incorporating Expert Priors
The core innovation is how biological knowledge is integrated into the MP. Using a "Prior Information Table," markers for specific cell types are labeled as high expression (+1), low expression (-1), or no information (0).
- Dimension Selection: The model favors "cuts" along dimensions known to be highly discriminative (e.g., CD4 for T-cells).
- Cut Location: Beta distributions are used to favor cuts that separate "high" and "low" expression regions as defined by the expert table.
The resulting Mondrian Process with Gaussian Emissions (MP-GMM) models cells within each leaf of the tree as coming from a Gaussian distribution. Markov chain Monte Carlo (MCMC) is used for posterior inference, allowing the model to quantify uncertainty about gate placement.
Results and Interpretability
The model was evaluated on two public benchmark datasets: AML (Acute Myeloid Leukemia) with 32 markers and BMMC (Bone Marrow Mononuclear Cells) with 13 markers.
The MP-GMM approach achieved high classification accuracy compared to manual gating, reaching 92.2% on AML and 93.3% on BMMC. While slightly lower than the semi-supervised ACDC method, MP-GMM is unsupervised at the cell level and significantly outperforms standard GMMs (86.1% on AML).
Beyond accuracy, the MP provides two critical features for clinical use:
- Interpretability: The MP produces a readable tree, showing exactly which markers were used at each step to isolate a cell population.
- Uncertainty Quantification: By examining the posterior over trees, the model visualizes a range of possible gate locations (seen as a "blur" of lines in Figure 4), helping clinicians identify ambiguous data.
Conclusion
Mondrian Processes offer a powerful framework for automated gating that respects the logic of human clinicians. Future work includes refining emission assumptions beyond Gaussian distributions and extending the model to share statistical strength across multiple individuals in a cohort, allowing for global gating strategies that adapt to individual variations.
Summary updated