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

Transparent single-cell set classification with kernel mean embeddings

Siyuan Shan, Vishal Athreya Baskaran, Haidong Yi, Jolene Ranek, Natalie Stanley, Junier B. Oliva

TL;DR

This paper introduces Cell Kernel Mean Embedding (CKME), a novel method for classifying biological samples based on high-dimensional single-cell data. CKME offers a transparent and interpretable alternative to complex deep learning models, achieving competitive accuracy while providing insights into individual cell contributions to predictions.

What Problem Does This Paper Address?

Modern single-cell technologies like flow and mass cytometry generate massive datasets, where each biological sample is represented by hundreds of thousands of multidimensional cell feature vectors. Analyzing these "sample-sets" to predict clinical outcomes or phenotypes is computationally expensive and often results in "black box" models that are difficult to interpret. Existing methods either rely on manual gating, which is labor-intensive and sensitive to parameter choices, or use complex deep learning models that, while accurate, obscure the underlying biological mechanisms. This lack of interpretability hinders the ability of researchers to understand how cellular heterogeneity drives disease or treatment response.

Methods

The core of CKME lies in Kernel Mean Embedding (KME). Instead of directly processing the raw set of cell vectors, CKME first transforms each cell's feature vector into a higher-dimensional space using random Fourier features. This transformation approximates a kernel function, allowing for efficient computation. The KME then computes the mean embedding of these transformed cell features for an entire sample-set, effectively creating a single, representative feature vector for the whole sample.

For classification, a linear classifier (specifically, a linear SVM) is trained on these mean embeddings. This linear nature is key to interpretability: the model's output can be traced back to individual cell scores, which are essentially the transformed feature vectors weighted by the learned classifier parameters.

To handle the sheer volume of cells within a sample-set, the paper also employs Kernel Herding (KH) for efficient sub-sampling. KH is a technique that selects a small subset of cells that best approximates the mean embedding of the entire sample, further improving computational efficiency and interpretability without sacrificing accuracy.

Datasets

The authors evaluated CKME on three publicly available, multi-sample-set flow and mass cytometry datasets:

  • Preeclampsia: Profiles immune cells from women with preeclampsia and healthy controls.
  • HVTN (HIV Vaccine Trials Network): Profiles T-cells from samples stimulated with Gag or Env proteins.
  • COVID-19: Analyzes cytokine production by PBMCs from healthy, moderate, and severe COVID-19 patients.

Key Insights and Ideas

  • Interpretability without Sacrificing Accuracy: The primary insight is that it's possible to achieve high classification accuracy on complex biological data using a simple, interpretable linear model, by leveraging kernel methods and random features for featurization.
  • Cell Scores as Meaningful Units: CKME generates individual "cell scores" that are not just arbitrary numbers but reflect a cell's contribution to the overall prediction. These scores exhibit semantically meaningful properties, correlating with cluster-level analyses and providing biological insights.
  • Kernel Herding for Efficiency: Kernel Herding proves to be a more effective sub-sampling strategy than uniform random sampling for maintaining the representativeness of the sample-set's distribution, crucial for accurate and interpretable downstream analysis.
  • Uncovering Biological Mechanisms: The method's transparency allows for detailed analysis, revealing specific cell populations and protein markers associated with clinical phenotypes, which align with and extend existing biological knowledge.

Key Results

  • Competitive Accuracy: CKME achieved comparable or better classification accuracies than state-of-the-art gating-free methods (CytoDx, CellCNN, CytoSet) across all three tested datasets. For instance, on the Preeclampsia dataset, CKME achieved 86.38 ± 1.92 accuracy, outperforming CytoSet (86.55 ± 1.76) and significantly outperforming CytoDx and CellCNN.
  • Drastic Parameter Reduction: CKME uses significantly fewer parameters (e.g., 2.0 x 10³ for all datasets) compared to deep learning models like CytoSet (up to 330.2 x 10³), making it more computationally efficient and easier to train.
  • Interpretable Predictions: The linear nature of the classifier allows for the quantification of individual cell contributions to the final prediction, facilitating biological interpretation.
  • Effective Sub-sampling: Kernel Herding allowed CKME to achieve high accuracy with as few as 50 sub-selected cells per sample-set, demonstrating its efficiency.

Limitations and Future Work

  • Computational Cost of Kernel Herding: While more efficient than processing all cells, Kernel Herding still involves computations that can be intensive for extremely large datasets.
  • Hyperparameter Tuning: Like most machine learning methods, CKME relies on hyperparameter tuning (e.g., kernel bandwidth γ, random feature dimensionality D).
  • Future Directions: The authors suggest exploring alternative synthesizing approaches to Kernel Herding and variants that weigh cells differently. They also propose investigating other methodologies for assessing feature importance in CKME scores, such as fitting local, sparse models.

Summary updated

BibTeX
@inproceedings{shan2022transparent,
  author = {Siyuan Shan and Vishal Athreya Baskaran and Haidong Yi and Jolene Ranek and Natalie Stanley and Junier B. Oliva},
  title = {{Transparent single-cell set classification with kernel mean embeddings}},
  booktitle = {BCB},
  year = {2022},
  doi = {10.1145/3535508.3545538},
}
Figure