NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DeepST: A versatile graph contrastive learning framework for spatially informed clustering, integration, and deconvolution of spatial transcriptomics

Yahui Long, Kok Siong Ang, Mengwei Li, Kian Long Kelvin Chong, Raman Sethi, Chengwei Zhong, Hang Xu, Zhiwei Ong, Karishma Sachaphibulkij, Ao Chen, Li Zeng, Huazhu Fu, Min Wu, Lim Hsiu Kim Lina, Longqi Liu, Jinmiao ChenResearch Square 2022

Abstract

Advances in spatial transcriptomics (ST) technologies have enabled gene expression profiling of tissues while retaining spatial context. To effectively exploit this data, spatially informed analysis tools are required. We present DeepST, a versatile graph self-supervised contrastive learning framework that incorporates spatial location information and gene expression profiles to accomplish three key tasks: spatial clustering, ST data integration, and single-cell RNA-seq (scRNA-seq) data transfer onto ST. DeepST combines graph neural networks (GNNs) with self-supervised contrastive learning to learn spot representations in the ST data, and an auto-encoder to extract informative features in the scRNA-seq data. Spatial self-supervised contrastive learning enables the learned spatial spot representation to be more informative and discriminative by minimizing the embedding distance between spatially adjacent spots. DeepST identifies biologically consistent clusters with higher accuracy than competing methods, corrects for batch effects during integration, and outperforms tools like cell2location in cell-type deconvolution. DeepST is a user-friendly and computationally efficient tool for capturing and dissecting the heterogeneity within ST data, enabling biologists to gain insights into cellular states within tissues.

Introduction

Spatial transcriptomics (ST) is a revolutionary field that allows researchers to see which genes are active and where they are active within a tissue. However, the data comes with significant hurdles. First, many platforms (like 10x Visium) have "spots" that are larger than individual cells, meaning one data point is actually a mixture of several cells. Second, biological tissues are 3D, but we usually sequence 2D slices; "stitching" these slices together (integration) is often plagued by technical noise known as batch effects. Finally, existing unsupervised clustering methods often ignore the spatial relationships between spots, leading to fragmented results that do not match actual anatomy.

The DeepST Framework

The core of DeepST is a Graph Self-Supervised Contrastive Learning (SCL) framework. It operates through three main modules:

  1. Graph Construction: It treats each tissue slice as a graph where spots are nodes and edges connect spatially adjacent neighbors.
  2. Contrastive Learning: The model uses a Graph Convolutional Network (GCN) to learn "embeddings" (mathematical representations) of each spot. It employs a "corrupted graph" strategy: it shuffles gene expressions across the tissue while keeping the spatial graph the same. The model is then trained to maximize the similarity between a spot and its real neighbors while minimizing similarity to the "corrupted" versions. This forces the model to learn representations that are both biologically and spatially coherent.
  3. Integration & Deconvolution: For integration, it uses the PASTE algorithm to align slices and then constructs a joint graph to smooth features across batches. For deconvolution, it uses an auto-encoder to project high-resolution single-cell RNA-seq (scRNA-seq) data into the spatial ST space using an augmentation-free contrastive mechanism.
Overview of the DeepST framework for spatial clustering, integration, and deconvolution.

Key Insights and Results

DeepST was validated across a massive variety of platforms and tissues, including 10x Visium, Stereo-seq, and Slide-seqV2. Several key advantages emerged from these benchmarks:

  • Spatial Smoothing as Batch Correction: One of the most elegant features of DeepST is that by forcing neighboring spots (even those from different slices) to have similar representations through the graph, the model implicitly removes batch effects without needing to explicitly model them.
  • Superior Clustering: On the DLPFC dataset, DeepST achieved a median Adjusted Rand Index (ARI) of 0.6, outperforming STAGATE (0.58), BayesSpace (0.51), and Seurat (0.29). It was notably better at identifying thin, difficult-to-capture layers like Layer 4.
  • Robust Integration: In mouse breast cancer serial sections, DeepST successfully mixed slices in UMAP space and identified overlapping spatial domains, whereas competing methods like STAGATE left visible batch separations.
  • High-Resolution Deconvolution: DeepST outperformed the popular cell2location tool in mapping immune cells within breast tumors, accurately delineating T-cell exhaustion patterns in specific tumor regions.

Discussion and Future Directions

Despite its complexity, DeepST is computationally efficient, processing a 100,000-spot mouse embryo dataset in just 30 minutes on a standard GPU. While highly versatile, its performance in deconvolution remains somewhat dependent on the quality and resolution of the scRNA-seq reference used.

Future work will focus on extending DeepST to handle newer subcellular resolution platforms like MERFISH and Nanostring CosMx. Additionally, the authors aim to implement distributed computing and batch training to handle the "big data" era of spatial transcriptomics, where datasets are rapidly approaching millions of spots.

Summary updated

BibTeX
@inproceedings{long2022deepst,
  author = {Yahui Long and Kok Siong Ang and Mengwei Li and Kian Long Kelvin Chong and Raman Sethi and Chengwei Zhong and Hang Xu and Zhiwei Ong and Karishma Sachaphibulkij and Ao Chen and Li Zeng and Huazhu Fu and Min Wu and Lim Hsiu Kim Lina and Longqi Liu and Jinmiao Chen},
  title = {{DeepST: A versatile graph contrastive learning framework for spatially informed clustering, integration, and deconvolution of spatial transcriptomics}},
  booktitle = {Research Square},
  year = {2022},
  doi = {10.21203/rs.3.rs-1965617/v1},
}
Figure