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

Spatial transcriptomics analysis of gene expression prediction using exemplar guided graph neural network

Yan Yang, Md Zakir Hossain, Eric A. Stone, Shafin Rahman

TL;DR

This paper introduces EGGN, a novel graph neural network approach for predicting gene expression from spatial transcriptomics data. By leveraging exemplar learning and graph construction, EGGN effectively captures spatial relationships and learns from similar tissue regions, leading to superior gene expression prediction accuracy compared to existing methods.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) is a powerful technique for understanding diseases by measuring gene expression at a fine-grained level within tissue slides. However, current ST methods face challenges:

  • Low Throughput: Analyzing each small region (window) of a tissue slide is time-consuming.
  • Long-Range Dependencies: Gene expression patterns are not isolated to small areas; understanding them requires considering relationships across larger regions of the slide. Existing methods often struggle to capture these long-range dependencies.
  • Skewed Gene Expression Distributions: Some gene expressions are rare, making them difficult to predict accurately.

This paper aims to address these limitations by developing a method that can efficiently and accurately predict gene expression for each window in a tissue slide, while also accounting for spatial context and learning from similar tissue samples.

Methods

The proposed EGGN framework consists of three main components:

  1. Feature Extractor: A pre-trained ResNet model (without its classification layer) is used to embed tissue slide windows into a feature space. This extractor is crucial for identifying similarities between different tissue regions.
  2. Graph Construction: A graph is built where nodes represent both the windows from the tissue slide and "exemplars" (representative tissue regions from a reference dataset). Edges connect these nodes, capturing relationships between:
  3. Windows within the same slide (Ewin-win)

    • Exemplars to exemplars (Eexp-exp)
    • Windows to exemplars (Ewin-exp)
    • Exemplars to windows (Eexp-win) This heterogeneous graph structure allows for rich information propagation.
  4. Exemplar Learning Backbone: A GraphSAGE-based graph convolutional network (GCN) backbone is used to process the graph. A key innovation is the Graph Exemplar Bridging (GEB) block, which is integrated into each layer of the backbone. The GEB block dynamically revises window features by incorporating knowledge from their nearest exemplars and, in turn, updates exemplar features based on window information. This bidirectional interaction allows for adaptive learning. Finally, an attention-based prediction block aggregates information to predict gene expression for each window.

Datasets

The authors evaluated their EGGN framework on two publicly available datasets:

  • STNet dataset: Contains approximately 30,612 slide image windows and corresponding gene expression data from 68 slide images across 23 patients. They focused on predicting the expression of 250 gene types with the largest mean expression.
  • 10xProteomic dataset: Includes 24,263 slide image windows and gene expression pairs from 6 slide images. Similar to the STNet dataset, they selected target gene types based on their mean expression.

Key Insights and Ideas

  • Spatial Relationships Matter More Than Local Features: The paper demonstrates that modeling spatial relationships among windows (using GCNs) is more critical for accurate gene expression prediction than solely focusing on learning features within individual windows.
  • Exemplar Learning for Domain Adaptation: By retrieving and learning from similar tissue exemplars, EGGN effectively overcomes domain shifts and leverages prior knowledge, especially for genes with skewed expression distributions.
  • Bidirectional Interaction is Key: The GEB block's ability to allow information to flow both from exemplars to windows and vice-versa is crucial for dynamically revising features and improving prediction accuracy.
  • Pre-trained Image Encoders are Effective: Surprisingly, a ResNet pre-trained on ImageNet (a dataset of natural images) proved to be an effective feature extractor for spatial transcriptomics data, even though it wasn't trained on biological images. This suggests that general visual texture features can be informative for gene expression prediction.

Key Results

  • Superior Performance: EGGN consistently outperformed state-of-the-art (SOTA) methods on both the STNet and 10xProteomic datasets in terms of PCC (Pearson Correlation Coefficient) metrics, particularly PCC@F, which measures performance on challenging, low-quantile gene types.
  • GCNs Outperform Individual Window Prediction: GCN-based approaches, including EGGN and other SOTA GCNs, showed significantly better PCC-related metrics than methods that predict gene expression independently for each window.
  • Optimal Number of Exemplars: Ablation studies indicated that using 6 exemplars yielded the best PCC@M, while 3 exemplars provided the best MSE and MAE.
  • ResNet18 with L1 Distance is a Strong Baseline for Retrieval: Among various feature extractors and distance metrics tested for exemplar retrieval, ResNet18 with L1 distance provided the best performance, highlighting its ability to capture relevant image textures.

Limitations and Future Work

  • Computational Cost: The current framework requires sampling multiple windows from a slide image to form a graph, which can be computationally expensive.
  • Future Work: The authors plan to explore downsampling and upsampling operations on graphs to build encoder-decoder architectures for broader information propagation. They also aim to investigate more explicit solutions for facilitating information propagation, potentially by exploring different graph structures or attention mechanisms.

Summary updated

BibTeX
@inproceedings{yang2023spatial,
  author = {Yan Yang and Md Zakir Hossain and Eric A. Stone and Shafin Rahman},
  title = {{Spatial transcriptomics analysis of gene expression prediction using exemplar guided graph neural network}},
  booktitle = {Pattern},
  year = {2023},
  doi = {10.1016/j.patcog.2023.109966},
}
Figure