Single-Cell Data Integration and Cell Type Annotation through Contrastive Adversarial Open-set Domain Adaptation

Fatemeh Aminzadeh, Jun Wu, Jingrui He, Morteza Saberi, Fatemeh Vafaee

TL;DR

SAFAARI is a new deep learning framework that solves the "open-set" problem in single-cell analysis—the ability to identify known cell types while correctly flagging novel populations not present in the reference data. By unifying adversarial domain adaptation, supervised contrastive learning, and positive-unlabeled learning, it provides a robust, scalable solution for batch correction, multi-omics integration, and automated cell annotation.

What Problem Does This Paper Address?

Single-cell sequencing has revolutionized biology, but analyzing the resulting data is like trying to assemble a puzzle where the pieces come from different boxes. Two major hurdles persist:

  1. Batch Effects and Domain Shifts: Data from different labs, technologies (e.g., 10x Genomics vs. Smart-seq2), or even different species often look different due to technical noise rather than biology.
  2. The "Closed-Set" Assumption: Most automated annotation tools assume that every cell in a new "query" dataset must belong to one of the categories in the "reference" dataset. In reality, query data often contains novel, rare, or "unknown" cell types. Forcing these into existing categories leads to biological misinterpretation.

The authors introduce SAFAARI (Single-cell Annotation and Fusion with Adversarial Open-Set Domain Adaptation Reliable for Data Integration) to bridge these gaps.

Methods

SAFAARI is a feedforward neural network that maps cells into a shared, low-dimensional latent space. Its innovation lies in a composite objective function that optimizes four distinct losses simultaneously:

  • Source Classification: Learns to identify known cell types from the labeled reference.
  • Positive-Unlabeled (PU) Learning: This is the "open-set" engine. It identifies novel cell types in the query data by flagging cells with low-confidence predictions as "unknown."
  • Adversarial Domain Adaptation: A "discriminator" tries to guess which batch a cell came from, while the "encoder" tries to fool it. This process strips away technical noise, leaving only domain-invariant biological signals.
  • Supervised Contrastive Learning: This pulls cells of the same type together and pushes different types apart in the latent space, ensuring that biological clusters remain distinct even after integration.

Additionally, the model uses SMOTE (Synthetic Minority Over-sampling Technique) to balance the reference data, preventing the model from ignoring rare cell types.

Datasets

The authors benchmarked SAFAARI against seven competing methods (including Seurat V4, Harmony, and Concerto) using a massive array of data:

  • Tabula Muris: A mouse cell atlas used to test "technological domain shifts" (comparing FACS vs. 10x platforms).
  • Human Pancreas & Lung Atlases: Real-world datasets with complex biological shifts (e.g., comparing healthy transplants to diseased biopsies).
  • Cross-Species Muscle Data: Transferring labels between mouse, bovine, and human datasets.
  • Multi-omics: Integrating mismatched layers like scRNA-seq (gene expression) and scATAC-seq (chromatin accessibility), as well as CITE-seq (RNA + Protein).
  • Simulated Data: Complex, nested batch effects generated via the Splatter package.

Key Insights and Ideas

  • The "Unknown" is a Feature, Not a Bug: By treating "unknown" cells as a specific class through PU learning, SAFAARI avoids the "forced classification" trap that plagues traditional tools.
  • Supervision Improves Integration: Unlike unsupervised methods that ignore labels during batch correction, SAFAARI leverages available annotations to guide the fusion of datasets. This leads to much higher "biological conservation"—meaning the integrated data looks more like real biology and less like a blurred average.
  • Unified Architecture: Instead of using one tool for batch correction and another for annotation, SAFAARI does both in a single pass. This prevents the loss of information that often happens during sequential processing steps.

Key Results

  • Superior Open-Set Performance: In scenarios where the query data contained novel cell types, SAFAARI significantly outperformed all competitors (p-value < 4.52E-04), accurately flagging "unknowns" while maintaining high accuracy for known types.
  • Biological Conservation: SAFAARI consistently achieved the highest scores in metrics like Adjusted Rand Index (ARI) and Silhouette Width for cell types, proving it preserves biological identity better than SOTA methods like Harmony or Seurat.
  • Cross-Species Success: The model successfully transferred labels from bovine and mouse references to human targets with 83-91% accuracy, even when cell proportions were vastly different.
  • Scalability: Implemented on GPUs, the framework handled a large-scale CITE-seq atlas of 162,000 cells with ease, demonstrating its readiness for "atlas-scale" projects.

Limitations and Future Work

While SAFAARI is a major step forward, the authors note a few areas for growth:

  • The "Unknown" Bucket: Currently, all novel cell types are lumped into a single "unknown" category. Future versions aim to integrate "Self-supervised Class-Discovering" to automatically cluster these unknowns into distinct new cell types.
  • Multi-Domain Expansion: The current iteration is optimized for source-to-target transfer. The authors plan to extend it to "multi-adversarial" adaptation to integrate many disparate datasets simultaneously.

Summary updated

BibTeX
@misc{aminzadeh2024single,
  author = {Fatemeh Aminzadeh and Jun Wu and Jingrui He and Morteza Saberi and Fatemeh Vafaee},
  title = {{Single-Cell Data Integration and Cell Type Annotation through Contrastive Adversarial Open-set Domain Adaptation}},
  year = {2024},
  url = {https://openreview.net/forum?id=enbIC4H8O7},
}
Figure