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

AnnoGCD: a generalized category discovery framework for automatic cell type annotation

Francesco Ceccarelli, Píetro Lió, Sean B. HoldenNAR 2024

TL;DR

This paper introduces AnnoGCD, a novel framework for automatically identifying cell types in single-cell RNA sequencing (scRNA-seq) data. It tackles the challenge of limited labeled data by combining semi-supervised learning for known cell types with unsupervised learning for discovering novel ones, outperforming existing methods, especially on imbalanced datasets.

What Problem Does This Paper Address?

Identifying cell types is crucial for understanding biological systems, but traditional supervised machine learning methods require extensive labeled datasets. This is often impractical in real-world scenarios like scRNA-seq analysis due to the cost and effort of manual annotation, and the inherent nature of biological data where new cell types are constantly being discovered. Existing methods either struggle with novel cell types or require all unlabeled data to be novel. This paper addresses the need for a framework that can accurately classify both known and discover novel cell types from scRNA-seq data, even when the data is imbalanced and only partially labeled.

Methods

AnnoGCD employs a two-step approach:

  1. Semi-supervised Block: This component focuses on identifying and classifying known cell types. It uses an encoder-decoder architecture to learn latent representations of the data. A predictor is trained on labeled data to classify known cell types. Crucially, it then trains multiple One-Class Classifiers (OCCs) on the latent representations of labeled cells to detect instances belonging to each known class. For unlabeled data, a consensus mechanism among these OCCs is used to assign labels to known cell types. This block is trained using a combination of self-supervised (MSE loss) and supervised (cross-entropy loss) objectives.
  2. Unsupervised Block: This component is designed to discover novel cell types from the data that the semi-supervised block couldn't confidently label. It constructs a k-Nearest Neighbors (kNN) graph to capture local cell-to-cell similarities. This graph is then fed into a Deep Graph Infomax (DGI) model to learn rich node embeddings that incorporate both expression and neighborhood information. Finally, a Dirichlet Process Mixture Model (DPMM) is used for non-parametric probabilistic clustering, automatically inferring the number of novel cell types and assigning cells to them.

A final label refinement step uses a nearest neighbor consensus to ensure consistency.

Datasets

The authors evaluated AnnoGCD on five human scRNA-seq datasets:

  • BM-CITE (Human)
  • LUNG-CITE (Human)
  • PBMC-Multiome (Human)
  • PBMC-TEA (Human)
  • PBMC-DOGMA (Human)

They also used a mouse model atlas for comparison. For evaluation, they strategically split cell types into "known" and "novel" categories, with a portion of the "known" types being labeled and the rest, along with all "novel" types, being treated as unlabeled. This setup mimics real-world scenarios with limited annotations and the presence of undiscovered cell types.

Key Insights and Ideas

  • Bridging GCD and AD: The core innovation is combining Generalized Category Discovery (GCD) principles with Anomaly Detection (AD) techniques. This allows the framework to not only identify known categories but also flag and cluster previously unseen ones, a critical capability for biological discovery.
  • Handling Imbalanced Data: Biological datasets are notoriously imbalanced, with rare cell types being difficult to detect. AnnoGCD's robustness to imbalance is a significant advantage over methods that assume balanced distributions.
  • Graph Embeddings for Novelty: Leveraging graph neural networks (specifically DGI) to learn embeddings from kNN graphs is key to capturing complex relationships between cells. This local neighborhood information proves crucial for effectively identifying and clustering novel cell types, outperforming approaches that rely solely on principal components.
  • Semi-supervised for Known, Unsupervised for Novel: The distinct two-step approach is highly effective. The semi-supervised part efficiently re-discovers known cell types, creating a cleaner set of "unknown" cells for the unsupervised block to focus on discovering truly novel categories.

Key Results

  • AnnoGCD demonstrated superior performance in identifying both known and novel cell types across five human scRNA-seq datasets compared to baseline methods like OpenNCD and PBN.
  • The framework achieved the best overall accuracy on all tested datasets.
  • AnnoGCD showed significant robustness in datasets with high class imbalance, as indicated by Gini indexes.
  • Ablation studies confirmed the importance of both the supervised component in the semi-supervised block (for slightly improved known class prediction) and the graph embeddings in the unsupervised block (crucial for novel class discovery).
  • Qualitative visualizations (UMAP plots) showed well-separated clusters, indicating AnnoGCD's ability to learn meaningful biological representations.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper details a cross-validation strategy for hyperparameter selection on known classes, fine-tuning for optimal performance across diverse datasets remains a practical consideration.
  • Manual Annotation for Novel Clusters: While AnnoGCD automatically infers novel clusters, further manual inspection and biological validation (e.g., using over-representation analysis) are still beneficial for definitive annotation, as shown in their analysis of novel clusters.
  • Generalizability to Other Data Types: The authors suggest that AnnoGCD's principles could be extended to other tabular or structured data types beyond scRNA-seq, indicating a promising avenue for future research.
  • Computational Efficiency: While AnnoGCD is described as computationally efficient, further benchmarking against other state-of-the-art methods on larger, more complex datasets would be valuable.

Summary updated

BibTeX
@inproceedings{ceccarelli2024annogcd,
  author = {Francesco Ceccarelli and Píetro Lió and Sean B. Holden},
  title = {{AnnoGCD: a generalized category discovery framework for automatic cell type annotation}},
  booktitle = {NAR},
  year = {2024},
  doi = {10.1093/nargab/lqae166},
}
Figure