Abstract
Single-cell RNA sequencing (scRNA-seq) data provides unprecedented information on cell fate decisions; however, the spatial arrangement of cells is often lost. Several recent computational methods have been developed to impute spatial information onto a scRNA-seq dataset through analyzing known spatial expression patterns of a small subset of genes known as a reference atlas. However, there is a lack of comprehensive analysis of the accuracy, precision, and robustness of the mappings, along with the generalizability of these methods, which are often designed for specific systems. We present a system-adaptive deep learning-based method (DEEPsc) to impute spatial information onto a scRNA-seq dataset from a given spatial reference atlas. By introducing a comprehensive set of metrics that evaluate the spatial mapping methods, we compare DEEPsc with four existing methods on four biological systems. We find that while DEEPsc has comparable accuracy to other methods, an improved balance between precision and robustness is achieved. DEEPsc provides a data-adaptive tool to connect scRNA-seq datasets and spatial imaging datasets to analyze cell fate decisions. Our implementation with a uniform API can serve as a portal with access to all the methods investigated in this work for spatial exploration of cell fate decisions in scRNA-seq data. All methods evaluated in this work are implemented as an open-source software with a uniform interface.
Introduction
Single-cell RNA sequencing (scRNA-seq) is a cornerstone of modern biology, enabling the profiling of gene expression in thousands of individual cells. However, the tissue dissociation required for sequencing destroys the spatial context of the sample. Researchers know which genes are active but lose the information regarding where those cells were located.
Existing computational tools attempt to restore this missing context by mapping scRNA-seq data onto a "spatial reference atlas"—a map of landmark genes with known locations. However, many current methods are "brittle," often optimized for specific biological systems and struggling to balance mapping precision with robustness against the inherent noise of sequencing data. We introduce DEEPsc (Deep-learning based Environment for the Extraction of Positional information) to address these limitations through a system-adaptive metric learning approach.
Methodology: The DEEPsc Framework
DEEPsc treats spatial mapping as a metric learning problem. Unlike traditional methods that rely on fixed mathematical distances (such as the 2-norm), DEEPsc utilizes a neural network to learn the optimal way to compare a cell's expression profile to a spatial location for a specific tissue type.
As shown in the workflow above, the process involves three key stages:
- Data Preparation: Common genes between the scRNA-seq data and the spatial atlas are identified, followed by dimensionality reduction and feature selection.
- Training with a Spatial Reference Atlas: Because ground-truth labels for scRNA-seq cells are unavailable, the model is trained using the spatial atlas itself as a proxy. Each spot in the atlas is treated as a "simulated cell," and the network learns to output a high likelihood of origin when a cell matches its home coordinates. Gaussian noise is injected during this phase to ensure the model learns robust, generalized patterns rather than overfitting to perfect atlas data.
- Prediction: The trained network evaluates the likelihood of a given cell's feature vector originating from every position in the atlas. The position with the highest likelihood is selected as the most probable origin.
Evaluating Performance: Precision and Robustness
A significant contribution of this research is the formalization of a comprehensive set of metrics to evaluate spatial mapping. A high-quality map must be both precise (narrowing a cell's location to a specific spot rather than a broad region) and robust (maintaining a stable prediction even when input data is noisy).
Existing methods often sacrifice one of these qualities for the other. DEEPsc is designed to achieve a superior balance. For instance, while non-linear dimensionality reduction techniques like UMAP are popular for visualization, the authors found that Principal Component Analysis (PCA) provided better robustness for spatial mapping, as UMAP was overly sensitive to noise.
Key Results and Benchmarking
DEEPsc was benchmarked against four established methods (Achim, Seurat v1, DistMap, and Peng) across four diverse biological systems: the Zebrafish embryo, Drosophila embryo, murine hair follicle, and murine frontal cortex.
- Superior Generalizability: DEEPsc achieved the highest average performance score across all systems, demonstrating its ability to handle both binarized and continuous expression data.
- Enhanced Robustness: In the murine hair follicle dataset—the smallest and noisiest tested—DEEPsc maintained a stable and accurate map where other methods became erratic.
- Predictive Reproducibility: In k-fold cross-validation, DEEPsc-generated maps were the most effective at predicting the expression levels of genes that were hidden from the model during training.
Limitations and Future Directions
While DEEPsc offers high performance and adaptivity, it requires training a new neural network for every biological system, which can take several hours for very large atlases. Additionally, the current model treats every atlas spot as independent; it does not yet incorporate "spatial awareness" regarding the physical proximity of spots. Future iterations may integrate physical coordinates into the loss function to create even more biologically intuitive mappings. As spatial transcriptomics scales toward whole-transcriptome maps, further optimization of the training pipeline will be essential to handle the increasing complexity of cell-location pairs.
Summary updated