ResSAT: Enhancing Spatial Transcriptomics Prediction from H&E- Stained Histology Images with Interactive Spot Transformer

Anqi Liu, Yue Zhao, Hui Shen, Zhengming Ding, Hong-Wen DengResearch Square 2024

Abstract

Spatial transcriptomics (ST) revolutionizes RNA quantification with high spatial resolution. Hematoxylin and eosin (H&E) images, the gold standard in medical diagnosis, offer insights into tissue structure, correlating with gene expression patterns. Current methods for predicting spatial gene expression from H&E images often overlook spatial relationships. We introduce ResSAT (Residual networks - Self-Attention Transformer), a framework generating spatially resolved gene expression profiles from H&E images by capturing tissue structures and using a self-attention transformer to enhance prediction. Benchmarking on 10× Visium datasets, ResSAT significantly outperformed existing methods, promising reduced ST profiling costs and rapid acquisition of numerous profiles.

Introduction

Spatial Transcriptomics (ST) has emerged as a breakthrough technology, allowing researchers to map gene activity at specific locations within a tissue sample. Despite its utility, ST remains prohibitively expensive, time-consuming, and dependent on specialized equipment. Conversely, Hematoxylin and Eosin (H&E) staining is the clinical "gold standard"—it is fast, cost-effective, and reveals detailed tissue architecture.

Existing research indicates a strong correlation between tissue morphology and gene expression. However, previous computational models often treat transcriptomic "spots" in isolation, failing to account for the spatial context and cellular interactions that define biological function. ResSAT addresses this gap by integrating local morphological features with global spatial relationships.

Methodology

The ResSAT framework (Residual networks - Self-Attention Transformer) utilizes a two-stage deep learning architecture designed to bridge the gap between image data and transcriptomic profiles.

Feature Extraction

The model employs a ResNet50 backbone to process 224x224 pixel image patches centered on specific transcriptomic spots. This stage focuses on capturing fine-grained morphological details, such as cell shape, density, and local tissue organization.

Interactive Spot Transformer

The core innovation of ResSAT is the Self-Attention Transformer (SAT). Rather than analyzing patches independently, the SAT module calculates "spot-spot interactions." This allows the model to learn how gene expression in one region is influenced by its neighbors, effectively clustering correlated spots to refine predictions based on the broader tissue context.

Dual-Objective Optimization

To ensure spatial context is integrated into the final output, the model is trained using a dual-objective loss function. It minimizes error for both the initial image-to-gene prediction and the refined output from the transformer, ensuring high fidelity to the biological ground truth.

Experimental Results

ResSAT was evaluated using benchmark datasets from the 10x Visium platform, specifically the Mouse Brain Sagittal Anterior (SA) and Sagittal Posterior (SP) datasets. The researchers utilized a "held-out" validation strategy, training on one tissue slice and testing on an independent slice to ensure generalizability.

Global Performance

ResSAT demonstrated a significant lead over state-of-the-art methods such as BLEEP, HisToGene, and ST-Net. In the Sagittal Posterior (SP) dataset, ResSAT achieved a mean Pearson Correlation Coefficient (PCC) of 0.2437, nearly doubling the performance of HisToGene (0.1215).

Performance comparison on global gene expression prediction across different methods.

High-Expression Accuracy

The model's performance was even more pronounced when predicting the top 50 most highly expressed genes (HEGs). In the SP dataset, ResSAT reached a PCC of 0.4003, whereas competitors like ST-Net remained significantly lower at approximately 0.06.

Performance comparison for the top 50 highly expressed genes (HEGs).

Biological Fidelity

Visual analysis of generated heatmaps for specific genes, such as CALB2 and GNG4, showed spatial patterns that were nearly indistinguishable from experimental ground truth. The model successfully identified key biological markers, including NRGN (synaptic plasticity) and PCP2 (Purkinje cell marker).

Discussion and Future Work

Ablation studies confirmed that the Transformer module is critical; removing it led to a substantial drop in performance, proving that spatial context is essential for accurate gene expression prediction.

While ResSAT represents a significant advancement, challenges remain. The absolute correlation of ~0.24 highlights the inherent difficulty of predicting transcriptomics from images alone, as many genes lack a distinct visual signature in H&E stains. Additionally, the scarcity of paired H&E and ST data limits model training. Future work will focus on expanding datasets and moving toward 3D transcriptomic reconstruction, using ResSAT to interpolate gene activity between 2D slices to create volumetric biological maps.

Summary updated

BibTeX
@inproceedings{liu2024ressat,
  author = {Anqi Liu and Yue Zhao and Hui Shen and Zhengming Ding and Hong-Wen Deng},
  title = {{ResSAT: Enhancing Spatial Transcriptomics Prediction from H\&E- Stained Histology Images with Interactive Spot Transformer}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-4707959/v1},
}
Figure