Abstract
Spatial transcriptomics technologies generate gene expression profiles with spatial context, requiring spatially informed analysis tools for three key tasks: spatial clustering, multisample integration, and cell-type deconvolution. We present GraphST, a graph self-supervised contrastive learning method that fully exploits spatial transcriptomics data to outperform existing methods. It combines graph neural networks with self-supervised contrastive learning to learn informative and discriminative spot representations by minimizing the embedding distance between spatially adjacent spots and vice versa. We demonstrated GraphST on multiple tissue types and technology platforms. GraphST achieved 10% higher clustering accuracy and better delineated fine-grained tissue structures in brain and embryo tissues. GraphST is also the only method that can jointly analyze multiple tissue slices in vertical or horizontal integration while correcting batch effects. Lastly, GraphST demonstrated superior cell-type deconvolution to capture spatial niches like lymph node germinal centers and exhausted tumor infiltrating T cells in breast tumor tissue.
Introduction
Spatial transcriptomics (ST) has transformed biological research by enabling the mapping of gene expression within its native tissue architecture. However, the complexity of ST data—combining high-dimensional gene expression with precise spatial coordinates—presents significant analytical challenges. Traditional clustering methods often fail to account for spatial context, resulting in fragmented tissue domains. Furthermore, integrating data across multiple samples while managing technical "batch effects" remains a significant hurdle. Finally, low-resolution platforms like 10x Visium require sophisticated deconvolution to identify specific cell types within multi-cell "spots."
Methods
The authors introduce GraphST, a framework that treats tissue samples as graphs where each capture spot is a node connected to its spatial neighbors. The core of GraphST is a self-supervised contrastive learning approach implemented through three specialized modules.
- Spatially Informed Clustering: GraphST utilizes a Graph Neural Network (GNN) to learn spot embeddings. A contrastive strategy minimizes the distance between embeddings of adjacent spots (positive pairs) while maximizing the distance between non-adjacent spots (negative pairs), ensuring biological and spatial coherence.
- Multi-sample Integration: For joint analysis of multiple slices, GraphST aligns samples and constructs a shared neighborhood graph. Feature smoothing across this joint graph implicitly corrects for batch effects without requiring explicit batch labels.
- Cell-type Deconvolution: To map single-cell RNA-seq (scRNA-seq) data onto ST spots, GraphST employs an augmentation-free contrastive mechanism that aligns predicted spatial gene expressions with reconstructed ones to project high-resolution cell-type information onto lower-resolution spatial maps.
Key Insights
- Local Neighborhood Focus: Unlike methods focusing on global patterns, GraphST emphasizes the local niche. This preserves spot-specific variability essential for identifying fine-grained structures.
- Implicit Batch Correction: By treating batch effects as a smoothing problem within a joint graph, GraphST harmonizes data more effectively than dedicated tools like Harmony or scVI.
- Phenotype Mapping: In deconvolution, GraphST transfers complex phenotypes—such as "exhausted" T cell states—directly onto spatial maps, providing immediate clinical relevance.
Results and Discussion
GraphST was validated across diverse platforms (10x Visium, Stereo-seq, Slide-seqV2) and tissue types (human brain, lymph nodes, mouse embryos).
- Superior Accuracy: On the human dorsolateral prefrontal cortex (DLPFC) dataset, GraphST achieved a median Adjusted Rand Index (ARI) of 0.60, a 10% improvement over existing state-of-the-art methods.
- Structural Delineation: In mouse embryos, it successfully identified thin, continuous structures like the epidermis and meninges that other methods failed to capture.
- Clinical Relevance: In breast cancer studies, GraphST accurately localized exhausted tumor-infiltrating T cells to invasive regions, validated by markers like LAG3 and PDCD1.
- Efficiency: The model is highly scalable, processing 100,000 spots in approximately 30 minutes on a standard server.
Limitations and Future Work
While GraphST is highly effective, future work will focus on scaling to sub-cellular resolutions involving millions of spots and extending validation to newer technologies like MERFISH and Nanostring CosMx. Additionally, the optional label refinement step must be applied carefully to avoid over-smoothing extremely fine structures.
Summary updated