Spatial transcriptomics prediction from histology jointly through Transformer and graph neural networks

Yuansong Zeng, Zhuoyi Wei, Weijiang Yu, Rui Yin, Yuchen Yuan, Bingling Li, Zhonghui Tang, Yutong Lu, Yuedong Yang · DOI

TL;DR

This paper introduces Hist2ST, a novel deep learning model that predicts spatial gene expression from standard histology images. By combining convolutional neural networks for visual features, Transformers for global spatial context, and graph neural networks for local neighborhood relationships, Hist2ST achieves superior accuracy in gene expression prediction and spatial region identification compared to existing methods.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) technologies are revolutionizing biology by mapping gene expression to precise locations within tissues. However, these technologies are expensive and generate limited data. Histology images, on the other hand, are readily available and inexpensive, making them an attractive source for inferring gene expression. Previous methods have struggled to simultaneously leverage both the visual information within histology image patches and the spatial relationships between these patches. This limitation hinders their ability to accurately predict gene expression and identify distinct spatial regions within tissues.

Methods

Hist2ST is a deep learning architecture designed to bridge the gap between histology images and spatial gene expression. It comprises three key modules:

  • Convmixer Module: This module uses convolutional operations to extract 2D visual features from individual image patches corresponding to sequenced spots.
  • Transformer Module: Leveraging the self-attention mechanism, this module captures global spatial dependencies between all image patches across the entire histology slide.
  • Graph Neural Network (GNN) Module: This module explicitly models local spatial relationships by constructing a graph of neighboring spots and applying a GraphSAGE framework to learn from these local interactions.

The features learned by these modules are then used to predict gene expression using a zero-inflated negative binomial (ZINB) distribution. To address the challenge of limited ST data, Hist2ST incorporates a self-distillation mechanism. This involves generating augmented versions of image patches and training the model to learn from the consistency between the predictions of the original and augmented data, thereby mitigating overfitting.

Datasets

The study evaluated Hist2ST on two publicly available spatial transcriptomics datasets:

  • Human HER2-positive breast tumor dataset (HER2+): This dataset consists of histology images, gene expression data, and spatial coordinates from multiple tissue sections.
  • Human cutaneous squamous cell carcinoma (CSCC) dataset: Similar to the HER2+ dataset, this dataset also includes histology images, gene expression, and spatial coordinates.

The authors pre-processed these datasets by dividing histology images into patches and selecting highly variable genes for gene expression data. For evaluation, they employed a leave-one-out cross-validation strategy.

Key Insights and Ideas

  • Synergy of Vision and Spatial Context: The paper demonstrates that effectively predicting gene expression requires integrating both the visual appearance of tissue regions (2D features) and their spatial arrangement (global and local dependencies).
  • Hierarchical Feature Extraction: The combination of CNNs (Convmixer), Transformers, and GNNs provides a powerful hierarchical approach to learning rich representations from histology images for gene expression prediction.
  • Importance of Local Neighborhoods: Explicitly modeling local spatial relationships through GNNs proved crucial, even when global context was captured by the Transformer.
  • Data Augmentation for Small Datasets: The self-distillation mechanism is a clever way to leverage limited ST data by creating synthetic training signals, improving model robustness.
  • Histology as a Proxy for ST: The results strongly suggest that histology images can serve as a valuable and cost-effective proxy for generating high-resolution spatial transcriptomic data.

Key Results

  • Superior Gene Expression Prediction: Hist2ST achieved significantly higher Pearson correlation coefficients (PCC) between observed and predicted gene expression compared to state-of-the-art methods like ST-Net and HisToGene. For instance, it showed a 9% and 11% improvement on the HER2+ and cSCC datasets, respectively.
  • Enhanced Spatial Region Identification: Hist2ST outperformed other methods in accurately identifying spatial regions within tissues, as measured by the Adjusted Rand Index (ARI). It achieved a 7% higher average ARI than HisToGene on the HER2+ dataset.
  • Preservation of Biological Information: Pathway analyses indicated that the gene expression predicted by Hist2ST retained biologically relevant information, with top predicted genes often being known maker genes for the respective cancer types.
  • Ablation Studies: Removing any of the core modules (Convmixer, Transformer, GNN) led to a performance decrease, highlighting the contribution of each component. The Transformer module showed the most significant impact when removed.
  • Efficient Inference: Hist2ST achieved comparable inference times to existing methods.

Limitations and Future Work

  • Data Dependency: While the self-distillation mechanism helps, the performance of deep learning models, including Hist2ST, generally benefits from larger training datasets. The authors note that as more ST data becomes available in the future, models like Hist2ST could be further improved.
  • Potential for Noise in Observed Data: The study observed that in some cases, the predicted gene expression from Hist2ST was more aligned with pathologist annotations than the directly observed gene expression, suggesting that sequencing noise in ST data can be a factor.
  • Future Directions: The paper implicitly suggests that further improvements could come from exploring more advanced GNN architectures, different Transformer variants, or novel self-distillation strategies. The ability to generate spatial transcriptomic data from histology opens avenues for large-scale studies and elucidating molecular signatures of tissues.

Summary updated

BibTeX
@article{zeng2022spatial,
  author = {Yuansong Zeng and Zhuoyi Wei and Weijiang Yu and Rui Yin and Yuchen Yuan and Bingling Li and Zhonghui Tang and Yutong Lu and Yuedong Yang},
  title = {{Spatial transcriptomics prediction from histology jointly through Transformer and graph neural networks}},
  journal = {Briefings in Bioinformatics},
  year = {2022},
  doi = {10.1093/bib/bbac297},
}

Loading related content...

Figure