All models

Hist2ST

Predicts spatial gene expression from histology patches with a ConvMixer, a Transformer and a graph network.

Molecules, proteins and genomics · 323 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
75.8M
Operations
323
Framework
PyTorch
Recurrent
No
Published
Briefings in Bioinformatics 23(5), 2022
Cited by
211 (as of 28 October 2026)
Authors
Yuansong Zeng, Zhuoyi Wei, Weijiang Yu and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17367
Graph hash
21ff666a17621bae406cb340d169e805f2a1247ee03f82f79066d59b7617d257
Skeleton hash
720264b0a77c7c905604dd2dc2365fe124ba8d8679f6fdc1ea60862dd0d91c89
Architecture hash
ca3a83fc2c1ecef179af16a945ebe6313927e56c85785601fef3970e8f60d996
Diagram SHA-256
671aa6e87004456fe8ce2f394625b085c1b625b810eafb31add471b0dd0bc9bc
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Hist2ST is a deep learning model that predicts RNA-seq expression from histology images, spot by spot across a tissue section. The motivation is that histology images are relatively easy and cheap to obtain.

Hist2ST consists of three modules: the Convmixer, Transformer, and graph neural network. A Convmixer module first applies convolutions to the image patch cropped at each spot. A Transformer module then relates all the patches of a slide to one another through self-attention. A GraphSAGE graph neural network finally passes information along a graph that links each spot to its four nearest neighbors. Three fully connected layers estimate the parameters of a zero-inflated negative binomial (ZINB) distribution for each spot: dropout rate, dispersion and mean.

Because spatial transcriptomics datasets are small, training uses self-distillation, in which each patch is augmented five times through random grayscale, rotation and horizontal flip. On the HER2+ and cSCC datasets, the paper reports mean Pearson correlation coefficients 9% and 11% higher than the second-ranked method, HisToGene. In its ablation study, removing the Transformer module caused a decrease of 11% in average Pearson correlation and removing the graph neural network a decrease of 2%.

Key idea. Hist2ST combines convolutional patch features, Transformer self-attention across spots and a neighbor graph network to predict spatial gene expression from histology images.

  • Hist2ST
  • spatial transcriptomics
  • histology image
  • gene expression prediction
  • H&E whole slide image
  • zero-inflated negative binomial
  • breast cancer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Zeng_2022, title={Spatial transcriptomics prediction from histology jointly through Transformer and graph neural networks}, volume={23}, ISSN={1477-4054}, url={http://dx.doi.org/10.1093/bib/bbac297}, DOI={10.1093/bib/bbac297}, number={5}, journal={Briefings in Bioinformatics}, publisher={Oxford University Press (OUP)}, author={Zeng, Yuansong and Wei, Zhuoyi and Yu, Weijiang and Yin, Rui and Yuan, Yuchen and Li, Bingling and Tang, Zhonghui and Lu, Yutong and Yang, Yuedong}, year={2022}, month=July }