TL;DR
This paper introduces STING, a novel "nested" graph neural network (GNN) approach for clustering cells in spatial transcriptomics data. By simultaneously modeling both spatial relationships between cells and gene-gene co-expression within each cell's local neighborhood, STING achieves improved clustering accuracy and can identify biologically relevant gene interactions.
What Problem Does This Paper Address?
Spatial transcriptomics (ST) technologies allow us to map gene expression within the physical context of tissues, offering a powerful lens to understand cellular organization and function. A key task in analyzing ST data is cell clustering, which groups cells with similar expression profiles and spatial locations. Existing methods often rely on graph neural networks (GNNs) that primarily use the spatial proximity of cells (or "spots") to build a graph. However, these methods largely overlook the intricate gene-gene relationships that exist within specific cellular environments. Genes don't act in isolation; their interactions are crucial for cellular function and can vary significantly between different cell types. The authors hypothesize that incorporating these spot-specific gene-gene relationships into the clustering process will lead to more informative cell embeddings and, consequently, more accurate and biologically meaningful clusters.
Methods
STING employs a nested GNN framework, meaning it uses two interconnected GNNs to process the data.
- Inner GNN (Gene-Gene Relation Modeling): For each individual spot (representing a small group of cells), STING constructs a gene-gene co-expression graph. Here, genes are nodes, and edges represent their co-expression. This graph is then fed into an inner GNN (specifically, GATv2 layers) to generate embeddings for each spot that capture these local gene interactions. This is a key innovation, as it moves beyond simply using spatial proximity.
- Outer GNN (Spatial Integration and Reconstruction): The embeddings generated by the inner GNN are then used as features for a sample-wide spatial graph. In this outer graph, spots are nodes, and edges represent their spatial proximity. This outer GNN is designed as an autoencoder to reconstruct the original gene expression data, incorporating both the spatial information and the gene-gene embeddings. It's trained using a combination of mean-squared error loss for reconstruction and a contrastive loss (inspired by Deep Graph Infomax) to learn robust representations.
The final embeddings from the outer GNN are then passed to a standard clustering algorithm (mclust) to produce the spatial cell clusters. The entire STING framework is trained end-to-end.
Datasets
The authors evaluated STING on a comprehensive set of 26 samples across 7 datasets, utilizing data from 5 different spatial sequencing technologies:
- 10x Visium
- MERFISH
- BaristaSeq
- STARmap
- osmFISH
These datasets vary in terms of sample count, cluster count, spot count, and gene count, providing a robust benchmark. The paper notes that for genes exceeding 3,000, they filter to the top 3,000 highly variable genes (HVGs) for pre-processing.
Key Insights and Ideas
- Gene-Gene Relationships Matter for Clustering: The core insight is that local gene-gene interactions within a spot are as important as spatial proximity for accurate cell clustering. Ignoring these relationships leads to less informative embeddings.
- Nested Structure Captures Multi-Scale Information: The "nested" approach is crucial. The inner GNN focuses on fine-grained gene interactions within a spot, while the outer GNN integrates this information with broader spatial context across the entire sample.
- Explainability Through Attention: The use of GATv2 layers in the inner GNN provides attention scores. These scores can be analyzed to identify important genes and gene-gene interactions within specific cell clusters, offering a path towards biological discovery.
- Improved Biological Relevance: By explicitly modeling gene-gene relations, STING can identify pathways and gene interactions that are more specific and relevant to particular cell types, going beyond general gene expression patterns.
Key Results
- Improved Clustering Performance: STING consistently outperforms state-of-the-art methods like GraphST and MuCoST. Sample-by-sample comparisons show a 1.58% improvement over GraphST and a 4.07% improvement over MuCoST in the Adjusted Rand Index (ARI) metric.
- Ablation Study Confirms Importance of Gene-Gene Graphs: Removing the gene-gene relation edges from STING (creating "Edgeless STING") resulted in a significant drop in performance, with a 2.74% decrease in ARI, highlighting the critical contribution of these graphs.
- Qualitative Improvements: Visualizations show that STING produces more spatially coherent clusters, mitigating artifacts seen in baseline methods where clusters are fragmented across the sample.
- Identification of Relevant Genes and Pathways: Experiments on a human breast cancer dataset demonstrated that STING's attention scores can identify important genes and gene-gene relations. These identified genes were linked to more specific and relevant biological pathways (e.g., "Pathways in Cancer") compared to genes identified by GraphST.
- Biologically Relevant Gene-Gene Pair Ranking: STING's ranking of gene-gene pairs showed better correlation with somatic mutation similarities (using COSMIC database data) than a ranking based solely on gene-gene co-expression, suggesting it captures deeper biological relationships.
Limitations and Future Work
- Computational Resources: The paper acknowledges that STING has higher memory requirements due to the generation of spot-specific graphs, which can be a bottleneck for very large samples. The authors suggest potential mitigations like HVG selection or spot downsampling, but note this involves a performance-resource trade-off.
- Outer GNN Flexibility: While the authors used GraphST as their outer GNN, they note that STING's framework is flexible and could potentially be adapted to use other GNN-based autoencoders or even non-GNN methods that accept gene expression matrices as input. This remains an open research question.
- Further Validation of Gene-Gene Relations: While promising, the validation of gene-gene relations relies on indirect evidence like mutation similarity. Direct experimental validation of these identified interactions would strengthen the findings.
Summary updated