Abstract
For decades, flow cytometry has allowed for single-cell profiling based on selected biomarkers and is widely used in both clinical and research settings. One major limitation of most conventional flow cytometry analyses is the dependency on a mostly manual gating process. This generally involves sequentially selecting biomarkers to isolate phenotype-associated cell populations, an approach that is both labor-intensive and prone to bias. To address this challenge, we introduce the application of a series of multi-instance learning frameworks for automated flow cytometry data analysis. Our models demonstrate strong performance across diverse biomedical applications, including cancer subtyping based on tumor-infiltrating immune cells, HIV survival stratification, AML minimal residual disease prediction, and COVID-19 severity assessment. We further examine how network architecture affects predictive performance and the detection of rare but clinically significant cell populations. Notably, our models utilize attention mechanisms to directly identify phenotype-associated cell subsets, serving as an interpretable, data-driven alternative to fully manual gating. These findings underscore the potential of multi-instance learning as a scalable and interpretable framework for flow cytometry, with broad applications in precision medicine and translational immunology.
Introduction
Flow cytometry (FCM) is a cornerstone of single-cell technology, measuring dozens of biomarkers across millions of cells per patient. Despite its power, standard analysis relies on "gating"—a manual, subjective process of drawing 2D boundaries to isolate cell types. This approach is labor-intensive and struggles with high-dimensional data (20–40+ biomarkers), often missing complex multi-marker relationships. While deep learning offers a potential solution, many existing methods are "black boxes" or require heavy data subsampling. This research introduces an end-to-end Multiple Instance Learning (MIL) framework capable of processing hundreds of thousands of cells to predict clinical outcomes while identifying the specific cells driving those predictions.
Methods
The authors frame FCM analysis as a Multiple Instance Learning problem, where each patient sample is a "bag" and individual cells are "instances." Labels are provided only at the bag level (e.g., disease state), and the model learns to weight individual cells to make a final prediction.
Three primary architectures were benchmarked:
- Vanilla MIL (vMIL): Uses a Multi-Layer Perceptron to assign class-specific relevance scores directly to cells.
- Attention-based MIL (ABMIL): Employs a separate attention network to learn weights for each cell. Two variants were tested: dependent (attention based on extracted features) and independent (attention based on raw features).
The framework also includes strategies for multi-panel integration and rigorous hyperparameter optimization for instance activation functions (Sigmoid, Softplus, Softmax) and bag normalization.
Datasets and Applications
The versatility of the MIL framework was validated across four clinical contexts:
- Cancer Subtyping (TIL): Distinguishing colorectal from lung cancer using tumor-infiltrating lymphocytes (22 biomarkers).
- HIV Survival (HIVNH): Stratifying patient survival based on T-cell profiles (10 biomarkers).
- Minimal Residual Disease (AML): Detecting rare leukemic blasts (as few as 0.06% of the sample) in a regression task.
- COVID-19 Severity: Assessing severity across a multi-panel dataset (29 biomarkers).
Key Insights and Results
Performance and Interpretability
The simpler vMIL architecture often matched the performance of complex ABMIL models while offering superior direct interpretability. In the TIL dataset, the model achieved an AUC of 0.9454. In the HIVNH dataset, it successfully stratified patients into high- and low-risk groups with high statistical significance (p = 0.0009).
Data-Driven Discovery
A major advantage of this framework is its ability to match known biological signatures without manual gating. By visualizing attention weights, researchers can pinpoint the exact phenotypes associated with a clinical outcome.
For instance, in cancer subtyping, the model automatically identified a CD39+CD127- profile as highly predictive of colorectal cancer. Furthermore, the framework demonstrated extreme sensitivity, successfully detecting disease-related cells even when they constituted only $6 \times 10^{-4}$ of the total population.
Discussion and Limitations
While powerful, the framework currently requires complete biomarker data; samples missing specific channels must be excluded. Additionally, the model may exhibit "incomplete discovery," where it latches onto a sufficient subset of predictive cells and ignores other relevant populations once a classification threshold is met. Future work will focus on flexible encoding to handle missing data and improving the robustness of the discovery process to capture the full spectrum of relevant cell phenotypes.
Summary updated