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

cytometree: A binary tree algorithm for automatic gating in cytometry analysis

Daniel Commenges, Chariff Alkhassim, Raphaël Gottardo, Boris P. Hejblum, Rodolphe ThiébautCytometry 2018

Abstract

Flow cytometry is a powerful technology that allows the high-throughput quantification of dozens of surface and intracellular proteins at the single-cell level. It has become the most widely used technology for immunophenotyping of cells over the past three decades. Due to the increasing complexity of cytometry experiments (more cells and more markers), traditional manual flow cytometry data analysis has become untenable due to its subjectivity and time-consuming nature. We present a new unsupervised algorithm called “cytometree” to perform automated population discovery (aka gating) in flow cytometry. cytometree is based on the construction of a binary tree, the nodes of which are subpopulations of cells. At each node, the marker distributions are modeled by mixtures of normal distributions. Node splitting is done according to a normalized difference of Akaike information criteria (AIC) between the two models. Post-processing of the tree structure and derived populations allows us to complete the annotation of the derived populations. The algorithm is shown to perform better than the state-of-the-art unsupervised algorithms previously proposed on panels introduced by the Flow Cytometry: Critical Assessment of Population Identification Methods (FlowCAP I) project. The algorithm is also applied to a T-cell panel proposed by the Human Immunology Project Consortium (HIPC) program; it also outperforms the best unsupervised open-source available algorithm while requiring the shortest computation time.

Introduction

In modern immunology and clinical research, flow cytometry serves as the primary tool for measuring dozens of proteins across millions of individual cells. Historically, researchers have relied on "manual gating"—a process where experts draw geometric boundaries around clusters of dots on 2D plots to identify specific cell types, such as T-cells or B-cells.

However, as technological capabilities have expanded to allow for 50+ simultaneous markers, manual gating has reached a breaking point. Exhaustive manual analysis in 50-dimensional space is mathematically impossible, highly subjective, and prohibitively slow. While various automated "unsupervised" algorithms have been developed to address this, many suffer from high computational costs, numerical instability, or results that are difficult for biologists to interpret. The cytometree algorithm was developed to bridge this gap, providing a fast, stable, and biologically intuitive method for automated gating.

Methodology

cytometree mimics the hierarchical logic used by human researchers: the classification of a cell based on whether it expresses a specific protein (+) or does not (-). The algorithm follows a structured, five-step process:

  1. Binary Tree Construction: The algorithm begins with the entire cell population and evaluates every available marker to determine the most informative split.
  2. Mixture Modeling: For each marker, the algorithm compares two statistical models: a single normal distribution (representing a single population) and a mixture of two normal distributions (representing two distinct populations, +/-).
  3. The Splitting Criterion ($D$): To decide which marker provides the most robust split, cytometree uses a normalized difference of the Akaike Information Criterion (AIC). This $D$ value allows the algorithm to compare markers of different scales and population sizes fairly, essentially measuring the information gain achieved by assuming two groups instead of one.
  4. Stopping Power: The tree continues to grow until no remaining marker provides a split that exceeds a user-defined threshold ($t^*$). This prevents the algorithm from over-fitting the data with biologically irrelevant sub-clusters.
  5. Annotation: Since the tree might not use every marker to define a split, a post-processing step evaluates all markers across the final "leaf" populations. This ensures each population receives a complete biological label (e.g., CD3+CD4-CD8+).

Performance and Benchmarking

The researchers evaluated cytometree against two major industry benchmarks to ensure its efficacy across different biological contexts:

  • FlowCAP I: A gold-standard competition dataset featuring five panels, including human Graft-versus-Host Disease (GvHD) and mouse hematopoietic stem cell transplants.
  • HIPC T-cell Panel: A high-dimensional panel from the Human Immunology Project Consortium designed to test algorithm performance across different laboratories and technical variations.

On the FlowCAP I challenge, cytometree achieved a mean F-measure of 0.90, outperforming established unsupervised open-source algorithms like flowMeans. Furthermore, the algorithm demonstrated remarkable efficiency, processing samples in approximately one minute on average—significantly faster than competitors that often require hours for complex datasets.

Key Insights

Simplicity and Stability

While many previous algorithms utilized complex "skewed t-distributions" to account for non-normal data, cytometree utilizes simple normal distributions. The authors found that this approach significantly increases numerical stability and speed without sacrificing accuracy. In practice, most flow cytometry populations are sufficiently close to normal for the purposes of gating.

Biologically Aligned Logic

Unlike "black box" clustering methods, the binary tree structure produces a "gating path" that mirrors the decision-making process of human experts. This transparency makes the results immediately verifiable and trustable for clinicians and researchers.

Robustness

Sensitivity analysis indicates that cytometree is not overly dependent on its primary tuning parameter ($t^*$). A default value of 0.1 proved effective across 175 different samples, suggesting the algorithm is robust to varying data qualities and experimental setups.

Limitations and Future Work

Despite its strengths, cytometree has specific requirements and limitations:

  • Pre-processing: The algorithm is optimized for protein markers and is not intended for "light scatter" channels (FSC/SSC). These must be gated using traditional methods before applying cytometree.
  • Rare Cell Detection: Like most unsupervised methods, it can struggle with populations representing less than 1% of the total sample. Identifying these "needles in a haystack" may still require supervised knowledge.
  • Bimodality Assumption: The core logic assumes markers are primarily bimodal. While post-processing can handle trimodal markers (low, mid, high), the initial tree construction may overlook markers that do not exhibit a clear two-peak split.

Conclusion

cytometree represents a significant step forward in the automation of flow cytometry analysis. By combining information theory with a biologically intuitive tree structure, it provides a high-accuracy, high-speed solution for the challenges of high-dimensional immunophenotyping. An R package named cytometree is currently available on the CRAN repository for public use.

Summary updated

BibTeX
@inproceedings{commenges2018cytometree,
  author = {Daniel Commenges and Chariff Alkhassim and Raphaël Gottardo and Boris P. Hejblum and Rodolphe Thiébaut},
  title = {{cytometree: A binary tree algorithm for automatic gating in cytometry analysis}},
  booktitle = {Cytometry},
  year = {2018},
  doi = {10.1002/cyto.a.23601},
}

Loading related content...

Figure