Structure-preserving visualization for single-cell RNA-Seq profiles using deep manifold transformation with batch-correction

Yongjie Xu, Zelin Zang, Jun Xia, Cheng Tan, Yulan Geng, Stan Z. Li

Abstract

Dimensionality reduction and visualization play an important role in biological data analysis, such as data interpretation of single-cell RNA sequences (scRNA-seq). It is desired to have a visualization method that can not only be applicable to various application scenarios, including cell clustering and trajectory inference, but also satisfy a variety of technical requirements, especially the ability to preserve inherent structure of data and handle with batch effects. However, no existing methods can accommodate these requirements in a unified framework. In this paper, we propose a general visualization method, deep visualization (DV), that possesses the ability to preserve inherent structure of data and handle batch effects and is applicable to a variety of datasets from different application domains and dataset scales. The method embeds a given dataset into a 2- or 3-dimensional visualization space, with either a Euclidean or hyperbolic metric depending on a specified task type with type static (at a time point) or dynamic (at a sequence of time points) scRNA-seq data, respectively. Specifically, DV learns a structure graph to describe the relationships between data samples, transforms the data into visualization space while preserving the geometric structure of the data and correcting batch effects in an end-to-end manner. The experimental results on nine datasets in complex tissue from human patients or animal development demonstrate the competitiveness of DV in discovering complex cellular relations, uncovering temporal trajectories, and addressing complex batch factors. We also provide a preliminary attempt to pre-train a DV model for visualization of new incoming data.

Introduction

In single-cell biology, researchers measure the activity of thousands of genes in individual cells, creating massive, high-dimensional datasets. Interpreting this data faces two major hurdles: technical batch effects (noise from different patients or labs) and geometric mismatch. Most traditional tools use Euclidean (flat) space, but biological processes like cell differentiation often follow branching, hierarchical structures that are better represented in hyperbolic space.

Existing workflows often require separate steps for batch correction and dimensionality reduction, which can introduce errors. Deep Visualization (DV) addresses these challenges by providing an end-to-end deep learning framework that performs structure-preserving visualization and batch correction simultaneously.

The Deep Visualization (DV) Framework

DV is built as a parametric deep neural network designed to learn the underlying manifold of scRNA-seq data while scrubbing out technical noise. The architecture is divided into three functional modules:

  1. Structure Module: This module learns a "structure graph" representing cellular relationships. It employs local scale contraction to mitigate the extreme sparsity common in scRNA-seq data.
  2. Batch-Correction Module: By incorporating a "priori batch effect graph" during training, the model disentangles biological signals from technical variations.
  3. Visualization Module: This maps the data into 2D or 3D space. Users can select Euclidean (DV_Eu) for static cell clusters or Hyperbolic (DV_Poin/DV_Lor) geometries to better capture dynamic developmental trajectories.
The DV architecture (a) shows the flow from patient samples to embeddings, while the graph transformation logic (b) illustrates how batch effects are removed during visualization.

Key Insights and Advantages

Hyperbolic Geometry for Lineages

Euclidean space often "crowds" cells when trying to represent hierarchies. In contrast, hyperbolic space expands exponentially as one moves from the center, mirroring how cell lineages branch out. In DV's hyperbolic visualizations, undifferentiated stem cells (the "root") are often automatically placed at the center, with distance from the center serving as a proxy for developmental "pseudo-time."

End-to-End Integration

Unlike "staged" workflows (e.g., Harmony followed by UMAP), DV's integrated approach preserves the global geometric structure of the data more effectively. Because it is parametric, a pre-trained DV model can map new incoming data onto a reference atlas instantly without re-running the entire pipeline.

Experimental Results

The authors validated DV on nine diverse datasets, ranging from small-scale blood cell samples to the massive Human Cell Landscape (600,000 cells). Key findings include:

  • Superior Structure Preservation: DV consistently outperformed PCA, t-SNE, and UMAP in both global and local structure preservation metrics ($Q_{global}$ and $Q_{local}$).
  • Effective Batch Correction: On complex datasets like colon biopsies from 30 different patients, DV achieved higher cell-type classification accuracy compared to standard multi-step methods.
  • Scalability: Training time scales linearly with cell count, making it suitable for "atlas-scale" biological projects.

Conclusion

Deep Visualization (DV) represents a significant step forward in single-cell data analysis. By unifying structure preservation, batch correction, and flexible geometric embeddings into a single deep learning framework, it provides researchers with a more accurate and scalable tool for uncovering the complexities of cellular biology. Future work aims to extend DV to multi-omic data and incorporate semi-supervised learning to further refine its mapping capabilities.

Summary updated

BibTeX
@inproceedings{xu2023structure,
  author = {Yongjie Xu and Zelin Zang and Jun Xia and Cheng Tan and Yulan Geng and Stan Z. Li},
  title = {{Structure-preserving visualization for single-cell RNA-Seq profiles using deep manifold transformation with batch-correction}},
  booktitle = {Communications},
  year = {2023},
  doi = {10.1038/s42003-023-04662-z},
}
Figure