Abstract
The spatial context of single-cell gene expression data is crucial for many downstream analyses, yet often remains inaccessible due to practical and technical limitations. We propose dp-VAE, a representation learning framework capable of reconstructing spatial coordinates from gene expression data. Central to our approach is a distance-preserving regularizer integrated into the loss function, ensuring the model captures spatial context signals. During inference, the latent representation is used to reconstruct spatial context via constrained optimization. We demonstrate the effectiveness of dp-VAE across 27 datasets, highlighting its utility for genomics studies lacking spatial data.
Introduction
A significant challenge in modern genomics is the disconnect between high-resolution single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics (ST). While scRNA-seq provides detailed gene expression profiles, the process typically requires tissue dissociation, which destroys spatial information. Conversely, many ST methods lack single-cell resolution. Reconstructing missing spatial coordinates for single cells using only their gene expression profiles would unlock spatial insights from vast existing libraries of non-spatial data.
Methodology: The dp-VAE Framework
The core of this research is the Distance-Preserving Variational Autoencoder (dp-VAE). Standard VAEs compress high-dimensional data into a latent space optimized for reconstruction. dp-VAE introduces a Distance-Preserving Loss ($\mathcal{L}_{DP}$) to regularize this latent space.
During training, the model utilizes reference datasets where both gene expression ($X$) and spatial coordinates ($S$) are known. The $\mathcal{L}_{DP}$ term constrains the model such that physical proximity in the tissue is mirrored by proximity in the latent space. For inference on non-spatial data, the encoder maps expression to the latent space, and a constrained optimizer (e.g., Multidimensional Scaling) translates these positions into estimated physical coordinates ($\hat{S}$).
Biological and Theoretical Foundations
The feasibility of spatial reconstruction rests on the link between a cell's location and its transcriptional state. Analysis of 27 Visium datasets revealed a statistically significant positive correlation between gene expression similarity and physical proximity in 23 samples. By forcing the latent space to adhere to physical geometry, the model prioritizes marker genes relevant to spatial organization.
Theoretically, this approach is grounded in the bi-Lipschitz condition, which characterizes the degree of distance distortion in a mapping. The authors demonstrate that minimizing the distance-preserving loss directly improves the accuracy and smoothness of the mapping from expression space to physical space.
Experimental Results
The dp-VAE was validated using 27 publicly available Visium Spatial Gene Expression datasets, primarily from the mouse brain. The model demonstrated superior performance in capturing both global tissue architecture and local clusters compared to baseline VAEs.
Experimental results indicate that dp-VAE is highly robust; the training process remains stable even with significant increases in the weight of the distance-preserving regularizer ($\alpha_2$). Furthermore, the model shows potential for transfer learning, though "zero-shot" prediction across different anatomical regions remains challenging due to varying spatial-expression mappings.
Conclusion and Future Directions
While dp-VAE effectively reconstructs spatial context within similar tissue types, out-of-distribution performance remains a limitation. Future work will explore fine-tuning strategies using minimal spatial data to calibrate models for novel tissues and investigate sparse-data learning procedures. This framework represents a significant step toward integrating spatial context into the broader landscape of single-cell analysis.
Summary updated