Abstract
Profiling spatial variations of cellular composition and transcriptomic characteristics is important for understanding the physiology and pathology of tissues in health or diseases. Spatial transcriptomics (ST) data are powerful for depicting spatial gene expression but the currently dominating high-throughput technology is yet not at single-cell resolution. On the other hand, single-cell RNA-sequencing (SC) data provide high-throughput transcriptomic information at the single-cell level but lack spatial information. Integrating these two types of data would be ideal for revealing transcriptomic landscapes at single-cell resolution. We developed the method STEM (SpaTially aware EMbedding) for this purpose. It uses deep transfer learning to encode both ST and SC data into a unified spatially aware embedding space, and then uses the embeddings to infer the SC-ST mapping and predict pseudo-spatial adjacency between cells in the SC data. Semi-simulation and real data experiments verified that the embeddings preserved the spatial information and eliminated technical biases between SC and ST data. Besides, we can use attribution analysis in STEM to reveal genes whose expressions dominate spatial information. We applied STEM to data of human squamous cell carcinoma and of hepatic lobule to uncover the spatial localization of rare cell types data and reveal cell-type-specific gene expression variation along a spatial axis. STEM is a powerful tool for mapping SC and ST data to build single-cell level spatial transcriptomic landscapes, and can provide mechanistic insights into the spatial heterogeneity and microenvironments of tissues.
Introduction
In modern biology, researchers utilize two powerful but complementary transcriptomic approaches. Single-cell RNA sequencing (SC) provides high-resolution gene activity data for individual cells but loses spatial context. Conversely, Spatial Transcriptomics (ST) preserves the tissue map but often aggregates multiple cells into a single "spot," blurring fine-grained details. Integrating these data types is essential for understanding complex biological systems, such as tumor-environment interactions or embryonic development. However, existing methods often struggle with the "domain gap"—technical variations between SC and ST collection—and fail to explicitly extract spatial information from gene expression signals.
Methods
STEM (SpaTially aware EMbedding) addresses these challenges through an encoder-predictor architecture based on transfer learning. The framework consists of several key components:
- Shared Encoder: A multi-layer perceptron (MLP) processes gene expression from both SC and ST data, projecting them into a unified latent embedding space.
- Spatial Information Extracting Module: This module ensures that ST spots physically adjacent in the tissue remain close in the latent space, effectively "teaching" the model spatial geography.
- Domain Alignment Module: Using Maximum Mean Discrepancy (MMD), STEM aligns the distributions of SC and ST data to overcome technical biases.
- Attribution Analysis: By employing Integrated Gradients (IG), STEM identifies Spatially Dominant Genes (SDGs)—the specific genes most responsible for a cell's predicted location.
Datasets
The authors validated STEM using a combination of high-resolution "gold standard" datasets and clinical samples:
- Mouse Gastrulation (seqFISH): A single-cell resolution spatial dataset used to simulate low-resolution ST data and test mapping accuracy.
- Mouse Hippocampus (Slide-seq V2): Used to evaluate the model's ability to reconstruct complex brain structures.
- Human Squamous Cell Carcinoma (hSCC): Real-world patient data containing paired SC and ST samples to demonstrate discovery in a clinical context.
Key Results and Insights
STEM consistently outperformed state-of-the-art methods like Seurat, Tangram, and Celltrek across several metrics. On the gastrulation dataset, STEM achieved a Mean Squared Error (MSE) of 16.125 for coordinate prediction, significantly lower than Tangram's 29.275. Furthermore, STEM was twice as effective as the next-best method at identifying a cell's true spatial neighbors (the "hit number").
A core insight of this work is that spatial information is latent within the transcriptome itself. By supervising the latent space with spatial adjacency, STEM transfers robust spatial patterns from ST data to the sparser SC data. In clinical applications, STEM successfully localized rare Tumor-Specific Keratinocytes (TSKs) to the "leading edge" of tumors, matching biological observations through automated integration.
Conclusion
STEM provides a powerful tool for building single-cell level spatial landscapes and uncovering the spatial heterogeneity of tissues. While it relies on the availability of a reference spatial dataset, its ability to identify Spatially Dominant Genes offers unique mechanistic insights. Future work may involve incorporating multi-modal data, such as protein levels or chromatin accessibility, and extending the framework to 3D tissue volumes.
Summary updated