scSemiAE: a deep model with semi-supervised learning for single-cell transcriptomics

Jiayi Dong, Yin Zhang, Fei Wang

Abstract

Single-cell RNA sequencing (scRNA-seq) provides unprecedented resolution into cellular heterogeneity but presents significant computational challenges due to high dimensionality and data sparsity. We present scSemiAE, a semi-supervised deep learning framework that leverages a small fraction of labeled data to guide dimensionality reduction. By combining unsupervised pretraining with a novel fine-tuning objective that optimizes intra-class and inter-class distances, scSemiAE produces high-quality latent representations. Our results demonstrate that scSemiAE significantly outperforms state-of-the-art methods in clustering accuracy and batch effect removal across diverse biological datasets.

Introduction

The advent of single-cell transcriptomics has revolutionized our understanding of biological systems by enabling the profiling of individual cells. However, analyzing scRNA-seq data is difficult because it is high-dimensional (thousands of genes) and extremely sparse, often containing many "dropout" events where gene expression is not captured.

To extract biological meaning, researchers typically employ dimensionality reduction to project data into a low-dimensional "latent space." While unsupervised methods like PCA or standard autoencoders (AE) are common, they do not utilize existing biological knowledge. Conversely, fully supervised methods may fail to identify novel cell types. scSemiAE addresses this gap by using a semi-supervised approach, utilizing the growing abundance of labeled cell atlases to guide the analysis of new, unlabeled datasets.

Methods: The scSemiAE Pipeline

The scSemiAE framework operates through a three-stage pipeline designed to maximize the utility of both labeled and unlabeled data.

The scSemiAE workflow: from pretraining and annotation to fine-tuning the latent space.
  1. Annotation: The process begins by using an existing classifier (e.g., SciBet or Garnett) to predict labels for the target dataset. To ensure high-quality guidance, only predictions with high confidence are retained as "partial labels."
  2. Pretraining: A deep autoencoder is trained on the entire dataset (both labeled and unlabeled) using a reconstruction loss (Mean Squared Error). This step allows the model to learn the underlying global distribution of the gene expression data.
  3. Fine-tuning: The core innovation lies in the fine-tuning stage. The encoder is re-trained using a joint objective function designed to refine the latent space. It minimizes the distance between cells of the same labeled type (intra-class) while maximizing the distance between the centers of different cell types (inter-class).

This "push-pull" mechanism ensures that the resulting latent space is highly discriminative, grouping similar cells while maintaining clear boundaries between distinct populations.

Experimental Evaluation

The model was rigorously evaluated on five diverse scRNA-seq datasets, including mouse brain cells (Cortex), highly unbalanced datasets from the Tabula Muris Senis project (Heart & Limb Muscle), human embryo development states (Embryos), and human pancreatic islet cells sequenced across multiple technologies (Pancreas).

Key Results and Discussion

scSemiAE demonstrated superior performance across multiple metrics, particularly in clustering accuracy and stability.

Comparison of clustering performance (ARI and ACC) across different labeled proportions on four datasets.

Superior Clustering and Stability

In terms of the Adjusted Rand Index (ARI), scSemiAE outperformed baseline methods such as scANVI and netAE by 10–30% on most datasets. Notably, the model maintained high performance even when only 5% of the cells were labeled, highlighting its efficiency in transferring biological knowledge. Furthermore, scSemiAE exhibited lower variance across random samplings, indicating higher reliability for downstream biological interpretation.

Effective Batch Effect Removal

A significant finding was the model's inherent ability to perform batch correction. By forcing cells of the same type to cluster together regardless of their source, scSemiAE naturally mitigates technical noise introduced by different sequencing platforms, often outperforming dedicated batch-correction tools.

Robustness to Unbalanced Data and Trajectory Preservation

The model proved robust in identifying rare cell populations, even in datasets where cell group sizes differed by two orders of magnitude. Unlike some supervised approaches that can fragment continuous biological processes, scSemiAE preserves the global structure of cell differentiation trajectories, which is essential for developmental studies.

Conclusion

scSemiAE provides a powerful and flexible tool for single-cell transcriptomics, bridging the gap between unsupervised discovery and supervised classification. While the model excels at separating distinct cell types, future work will focus on integrating active learning to further minimize manual annotation requirements and improving the detection of multiple rare "micro-clusters."

Summary updated

BibTeX
@article{dong2022scsemiae,
  author = {Jiayi Dong and Yin Zhang and Fei Wang},
  title = {{scSemiAE: a deep model with semi-supervised learning for single-cell transcriptomics}},
  journal = {BMC Bioinformatics},
  year = {2022},
  doi = {10.1186/s12859-022-04703-0},
}
Figure