Abstract
Spatially resolved transcriptomics (SRT) has greatly expanded our understanding of the spatial patterns of gene expression in histological tissue sections. However, most currently available platforms could not provide in situ single-cell spatial transcriptomics, limiting their biological applications. Here, to in silico reconstruct SRT at the single-cell resolution, we propose St2cell which combines deep learning-based frameworks with a novel convex quadratic programming (CQP)-based model. St2cell can thoroughly leverage information in high-resolution (HR) histological images, enabling the accurate segmentation of in situ single cells and identification of their transcriptomics. Applying St2cell on various SRT datasets, we demonstrated the reliability of reconstructed transcriptomics. The single-cell resolution provided by our proposed method greatly promoted the detection of elaborate spatial architectures and further facilitated the integration with single-cell RNA-sequencing data. Moreover, in a breast cancer tissue, St2cell identified general spatial structures and co-occurrence patterns of cell types in the tumor microenvironment. St2cell is also computationally efficient and easily accessible, making it a promising tool for SRT studies.
Introduction
Spatially Resolved Transcriptomics (SRT) has revolutionized biology by enabling researchers to observe gene activity within the structural context of tissue. However, a significant "resolution gap" persists in popular commercial platforms like 10x Visium. These platforms capture data in "spots" roughly 55 µm in diameter, which typically contain between 3 and 30 different cells. Consequently, the resulting data is a blurred average of multiple cell types, hindering the study of fine-grained structures, rare cell niches, and specific cell-to-cell interactions.
St2cell is a novel computational framework designed to bridge this gap. By fusing low-resolution gene expression data with high-resolution (HR) histology images, St2cell "unmixes" multi-cell data points to map individual cell types and gene expression patterns with unprecedented precision.
Methods
The St2cell pipeline operates in three distinct stages to achieve single-cell resolution:
- Cell Localization: The framework utilizes a heatmap regression-based Convolutional Neural Network (LinkNet), trained on extensive public nuclei datasets, to pinpoint the exact coordinates of every cell within an HR histology image.
- Feature Extraction: Using MoCo v2, a contrastive learning framework, the model extracts morphological features (size, shape, staining intensity) from each identified cell. This allows cells to be grouped into "meta-cell types" based on visual appearance.
- Transcriptomics Inference: The core innovation lies in formulating the "unmixing" of spot-level data as a Convex Quadratic Programming (CQP) problem. Assuming that cells with similar morphology share similar gene expression, the model minimizes the error between reconstructed cellular signals and measured spot-level totals to assign specific expression profiles to individual cells.
Key Results and Insights
St2cell demonstrates superior performance in reconstructing spatial architectures that are otherwise invisible at the spot level. In breast cancer benchmarks, St2cell achieved an Adjusted Rand Index (ARI) of 0.278–0.401, significantly outperforming established methods like BayesSpace and SpaGCN.
In the mouse brain, St2cell successfully identified the extremely narrow L6b layer and distinguished between somatic and dendritic layers in the hippocampus—details lost in original spot-level data. Simulation tests showed that St2cell's reconstructed profiles maintained a high correlation (median 0.404) with ground truth, even when input data was intentionally blurred.
A central insight of this work is that a cell's visual appearance in standard H&E staining serves as a powerful proxy for its genetic state. By leveraging deep contrastive learning, St2cell proves that morphology can effectively guide the deconvolution of complex genetic mixtures. Furthermore, the CQP approach is computationally efficient, allowing for the simultaneous reconstruction of the entire genome without the need for gene-specific retraining.
Limitations and Future Work
While powerful, St2cell's performance is tied to the quality of the input histology images; blurry or poorly stained slides can degrade cell localization and feature extraction. Additionally, the model currently assumes that morphologically identical cells share identical expression, which may overlook intrinsic functional variability. Future iterations could integrate scRNA-seq reference data more tightly to further refine expression distributions and account for subtle biological differences between visually similar cells.
Summary updated