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

STGIC: A graph and image convolution-based method for spatial transcriptomic clustering

Chen Zhang, Junhui Gao, Hong-Yu Chen, Lingxin Kong, Guangshuo Cao, Xiangyu Guo, Wei Liu, Bin Ren, Dong-Qing WeiPLOS Computational Biology 2024

Introduction

Spatial Transcriptomics (ST) has revolutionized biology by enabling researchers to map gene expression directly onto tissue architecture. However, a significant challenge remains: "spatial clustering," or the ability to group thousands of capture spots into biologically distinct functional domains, such as the layers of the human cortex.

Current computational approaches generally fall into two categories: graph-based methods, which treat spots as nodes in a network, and image-based methods, which treat tissue as a grid of pixels. While graph methods are flexible, they often suffer from "over-smoothing" at tissue boundaries. Conversely, image-based methods are powerful but struggle with the non-square, staggered lattices (like the 10x Visium "honeycomb" structure) common in ST platforms. STGIC (Spatial Transcriptomics Graph and Image Convolution) bridges this gap by combining adaptive graph convolutions with a specialized dilated image convolution framework.

Methodology: The STGIC Framework

STGIC employs a two-stage hybrid pipeline designed to capture both global topology and local spatial patterns.

The STGIC pipeline integrates Adaptive Graph Convolution (AGC) for pre-clustering and a Dilated Convolution Framework (DCF) for feature refinement.

1. Adaptive Graph Convolution (AGC)

In the first stage, STGIC uses AGC as a "pre-clusterer." Unlike standard graph neural networks, AGC operates without trainable parameters, instead adaptively determining the optimal neighborhood size to aggregate information for each spot. This process generates high-quality "pseudo-labels" that serve as a guide for the subsequent deep learning stage.

2. Dilated Convolution Framework (DCF)

To leverage the power of Convolutional Neural Networks (CNNs), STGIC converts high-dimensional gene expression data into a "virtual image." Using Principal Component Analysis (PCA), thousands of gene expression values are compressed into 15 "color" channels.

Dilated convolution kernels (2x2 and 3x3) are used to skip "null pixels" in staggered ST lattices, ensuring accurate feature extraction from neighboring spots.

Because ST chips often use staggered lattices, standard image kernels are ineffective. STGIC introduces dilated convolutions (with a dilation rate of 2) to skip over "null pixels" and focus on actual neighboring spots. Furthermore, the weights in these kernels are distance-aware, ensuring that physically closer neighbors exert a stronger influence on feature extraction.

3. Multi-Part Loss Function

The model is optimized using a composite loss function ($L_t$) that includes:

  • Self-supervision ($L_1$): KL divergence to refine cluster distributions.
  • Cross-entropy ($L_2$): Based on the high-confidence pseudo-labels from the AGC stage.
  • Spatial Continuity ($L_3$): Ensuring that neighboring spots maintain similar feature representations.

Key Results and Biological Validation

The authors benchmarked STGIC across several prominent datasets, including the 10x Visium Human DLPFC and Mouse Posterior Brain.

  • State-of-the-Art Performance: On the DLPFC benchmark, STGIC achieved a mean Adjusted Rand Index (ARI) of 0.58, outperforming established baselines like DeepST and BayesSpace.
  • Fine-Grained Resolution: In the mouse olfactory bulb, STGIC successfully delineated all seven anatomical layers, whereas competing methods often blurred the boundaries of the middle layers.
  • Biological Consistency: The identified clusters were highly correlated with known marker genes (e.g., Pcp2 in the cerebellum), confirming that the mathematical clusters correspond to real biological structures.

Conclusion and Future Directions

STGIC demonstrates that combining the strengths of graph and image convolutions can significantly improve the resolution of spatial transcriptomic analysis. While currently optimized for regular lattices like Visium and Stereo-seq, future iterations could adapt the framework for irregular platforms like Slide-seq. By treating gene expression as a multi-channel virtual image, STGIC provides a robust foundation for identifying complex tissue microenvironments across diverse species and sequencing technologies.

Summary updated

BibTeX
@article{zhang2024stgic,
  author = {Chen Zhang and Junhui Gao and Hong-Yu Chen and Lingxin Kong and Guangshuo Cao and Xiangyu Guo and Wei Liu and Bin Ren and Dong-Qing Wei},
  title = {{STGIC: A graph and image convolution-based method for spatial transcriptomic clustering}},
  journal = {PLOS Computational Biology},
  year = {2024},
  doi = {10.1371/journal.pcbi.1011935},
}
Figure