Accurately deciphering spatial domains for spatially resolved transcriptomics with stCluster

Tao Wang, Han Shu, Jialu Hu, Yongtian Wang, Jin Chen, Jiajie Peng, Xuequn Shang

TL;DR

This paper introduces stCluster, a novel deep learning framework that accurately identifies distinct cellular regions (spatial domains) within tissues using spatial transcriptomics data. By combining graph contrastive learning and multi-task learning, stCluster effectively integrates gene expression and spatial information, outperforming existing methods in identifying complex tissue structures across various biological scales and technologies.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) is revolutionizing biology by allowing us to map gene expression directly to locations within tissues. This capability is crucial for understanding how cellular organization dictates biological processes and disease mechanisms. A key challenge in ST data analysis is spatial domain identification: grouping "spots" (regions containing cells) that exhibit similar gene expression patterns and are spatially coherent. While previous methods have used graph neural networks (GNNs) to integrate spatial and gene expression data, they often struggle to create truly informative representations, leading to suboptimal accuracy in identifying these complex spatial domains. This limits our ability to fully decipher the intricate cellular relationships and tissue structures.

Methods

stCluster tackles this problem with a novel deep learning framework that integrates two powerful optimization strategies:

  • Graph Contrastive Learning: This technique helps the model learn robust representations by teaching it to distinguish between similar and dissimilar "views" of the data. stCluster creates two "corrupted" versions of the spatial graph (by randomly pruning edges) and trains the model to maximize the similarity of representations from the same spot across these views, while minimizing similarity with representations from different spots. This encourages the model to capture underlying spatial relationships more effectively.
  • Multi-Task Learning: stCluster jointly optimizes for three tasks:
  • Gene Expression Reconstruction (GER): Reconstructing the original gene expression data from the learned representations.
  • Spatial Adjacency Graph (SAG) Reconstruction: Reconstructing the spatial relationships between spots.
  • Spatial Domain Prediction (SDP): Directly predicting the spatial domains using a deep embedding clustering (DEC) algorithm.

By optimizing for these tasks simultaneously, stCluster refines its representations to better capture the complex interplay between gene expression and spatial organization. The core of the model uses a Graph Attention Network (GAT) layer for encoding spatial dependencies.

Datasets

The authors evaluated stCluster on a diverse range of ST datasets generated by different technologies and at various biological scales:

  • Human Dorsolateral Prefrontal Cortex (DLPFC): 12 slices from 10x Visium technology, with manual annotations for cortical layers and white matter.
  • Mouse Brain: Four slices from 10x Genomics.
  • Mouse Organogenesis Spatiotemporal Transcriptomic Atlas (MOSTA): Acquired using Stereo-seq.
  • Zebrafish Embryogenesis Spatiotemporal Transcriptomic Atlas (ZESTA): Acquired using Stereo-seq.
  • Mouse Olfactory Bulb: Datasets from Stereo-seq, 10x Visium, and Spatial Transcriptomics.
  • Mouse Somatosensory Cortex: Dataset from osmFISH.

These datasets cover tissue-level, organ-level, and embryo-level analyses, demonstrating the method's versatility.

Key Insights and Ideas

  • Synergy of Contrastive and Multi-Task Learning: The paper strongly suggests that the combination of graph contrastive learning (for learning robust, generalizable representations from unlabeled data) and multi-task learning (for fine-tuning representations towards specific downstream tasks like domain identification) is key to stCluster's superior performance.
  • Importance of Graph Attention: The use of GAT layers, which adaptively weigh the importance of neighboring spots, is crucial for capturing nuanced spatial relationships compared to standard GCNs.
  • Denoising and Trajectory Enhancement: Beyond domain identification, stCluster's learned representations can also be used to denoise spatial gene expression patterns and improve spatial trajectory inference, highlighting the richness of the learned embeddings.
  • Adaptability Across Platforms and Scales: The method demonstrates consistent performance across different ST technologies (e.g., 10x Visium, Stereo-seq, osmFISH) and biological scales (tissue, organ, embryo), indicating its broad applicability.

Key Results

  • Superior Spatial Domain Identification: stCluster consistently outperformed six state-of-the-art methods (SEDR, SpaGCN, STAGATE, CCST, DeepST, and GraphST) across multiple datasets and metrics (ARI, NMI, IoU). For instance, on the human DLPFC dataset, stCluster achieved an average ARI of 0.58, with a best score of 0.75, significantly improving upon competitors.
  • Accurate Tissue Structure Delineation: The method accurately identified complex structures like cortical layers in the human brain, distinct regions in the mouse brain and olfactory bulb, and various organ tissues in mouse embryos and zebrafish embryos.
  • Enhanced Representation Quality: UMAP visualizations of learned representations showed that stCluster better preserved spot-level spatial organization and domain distinctions compared to other methods.
  • Improved Gene Expression Patterns: stCluster's denoising capabilities were shown to enhance the clarity of spatial gene expression patterns, comparable to specialized denoising methods.

Limitations and Future Work

  • Sensitivity to Initial Parameters: Like many deep learning models, stCluster can be sensitive to initial parameter settings, although the authors attempt to mitigate this with random seeds.
  • Multi-Slice Data Handling: A significant limitation acknowledged is the current inability of stCluster (and other ST clustering methods) to effectively integrate and analyze data from multiple tissue slices simultaneously. The authors plan to develop a "multi-slice joint learning model" to address this in future work.
  • Computational Resources: While stCluster balances performance with efficiency, its computational resource consumption was evaluated, with detailed results provided in supplementary figures.

Summary updated

Abstract

Spatial transcriptomics provides valuable insights into gene expression within the native tissue context, effectively merging molecular data with spatial information to uncover intricate cellular relationships and tissue organizations. In this context, deciphering cellular spatial domains becomes essential for revealing complex cellular dynamics and tissue structures. However, current methods encounter challenges in seamlessly integrating gene expression data with spatial information, resulting in less informative representations of spots and suboptimal accuracy in spatial domain identification. We introduce stCluster, a novel method that integrates graph contrastive learning with multi-task learning to refine informative representations for spatial transcriptomic data, consequently improving spatial domain identification. stCluster first leverages graph contrastive learning technology to obtain discriminative representations capable of recognizing spatially coherent patterns. Through jointly optimizing multiple tasks, stCluster further fine-tunes the representations to be able to capture complex relationships between gene expression and spatial organization. Benchmarked against six state-of-the-art methods, the experimental results reveal its proficiency in accurately identifying complex spatial domains across various datasets and platforms, spanning tissue, organ, and embryo levels. Moreover, stCluster can effectively denoise the spatial gene expression patterns and enhance the spatial trajectory inference. The source code of stCluster is freely available at https://github.com/hannshu/stCluster.
BibTeX
@article{wang2024accurately,
  author = {Tao Wang and Han Shu and Jialu Hu and Yongtian Wang and Jin Chen and Jiajie Peng and Xuequn Shang},
  title = {{Accurately deciphering spatial domains for spatially resolved transcriptomics with stCluster}},
  journal = {Briefings in Bioinformatics},
  year = {2024},
  doi = {10.1093/bib/bbae329},
}
Figure