This work proposes BERT for Spatial Transcriptomics (BertST), a transformer-based framework that reformulates spatial transcriptomics as a graph-to-text representation learning problem, and constructs a task-specific multi-graph representation integrating spatial adjacency, pruned gene-expression similarity, and a fully connected gene-expression graph.
Abstract
Spatial transcriptomics enables the study of gene expression within its native tissue context, providing critical insights into cellular organization and microenvironment-driven biological processes. A key challenge in this field is spatial domain identification, which aims to partition tissue into coherent regions by jointly leveraging gene expression and spatial information. Existing approaches are predominantly based on Graph Neural Networks (GNNs), and approach based on Transformers particularly, Bidirectional Encoder Reppresentation Transformer (BERT) model for modelling both local and long-range dependencies remains largely unexplored. In this work, we propose BERT for Spatial Transcriptomics (BertST), a transformer-based framework that reformulates spatial transcriptomics as a graph-to-text representation learning problem. Building upon the BERTwalk paradigm, we construct a task-specific multi-graph representation integrating spatial adjacency, pruned gene-expression similarity, and a fully connected gene-expression graph. This design enables the modelling of both local spatial structure and global molecular relationships. Random walks over these graphs are treated as sequences, allowing a BERT model to learn contextualised node embeddings. To further enhance representation quality, we introduce a hierarchical multi-graph propagation strategy, where embedding refinement is performed sequentially: first on the fully connected graph to capture global structure, followed by the pruned graph to refine molecular relationships, and finally on the spatial graph to enforce local smoothness. This ordering ensures that global information is effectively distributed and progressively constrained by biologically meaningful neighbourhoods. We also improve computational efficiency by leveraging PecanPy, a fast and scalable implementation of node2vec, enabling efficient random walk generation on dense graphs. Experimental results on multiple 10x Visium datasets, including DLPFC and Human Breast Cancer, demonstrate that BertST consistently outperforms or matches GNN-based methods such as ConST, CCST, and SpaceFlow in terms of Adjusted Rand Index (ARI) and Adjusted Mutual Information (AMI). Overall, BertST highlights the potential of transformer-based architectures for spatial omics analysis by effectively capturing both local and long-range spatial-molecular dependencies, offering a promising alternative to traditional graph-based methods.
A novel Shared-Specific Multi-view Graph Convolutional Network (SSMGCN) is proposed, which consistently outperforms existing methods in spatial domain identification and its unified embedding supports downstream tasks such as cell-type annotation, spatial localization, and functional analysis, providing a robust founda...
Wei Zhang, Dan-Yang Dong, Bang-Yi Zhang et al.· IEEE transactions on computa...· 0 citations
A systematic ablation study providing evidence-based design guidance for spatial transcriptomics GNNs is provided, with findings support using GAT attention and contrastive learning and investing in node feature quality over edge feature complexity.
M. Al-Taie, Firas Hazzaa, Akram Qashou et al.· BMC Bioinformatics· 0 citations
This work introduces spaGFM, a graph foundation model that serializes cellular neighborhoods through random walks to generate transformer-compatible representations of tissue organization that transfer across tissues, disease contexts, and spatial technologies.
Yu Zhong, Fei He, Xiao-Jie Jin et al.· Research Square· 0 citations
StKAN is introduced, a novel framework integrating Kolmogorov-Arnold Network with variational autoencoder to effectively model spatially resolved gene expression with graph attention network and shows strong potential for downstream analyses, offering deeper insights into disease pathology and tumor invasion.
Jing Lin, Ai-Jing Feng, Yan-Kun Cao et al.· Computational biology and ch...· 0 citations
Spatial transcriptomics (ST) profiles gene expression within tissue architecture, but its cost and experimental complexity limit routine use. Predicting spatial expression from routinely available hematoxylin and eosin (HE) images therefore offers a scalable alternative. However, conventional methods often fit high-dim...
Shi-Ting Ruan, Xi-Tong Ling, Qi-Ming He et al.· 0 citations
Abstract Spatial transcriptomics enables high-resolution profiling of gene expression within intact tissue architecture, providing new opportunities to study the spatial organization of tissue structures and cell types. However, identifying spatial domains that are reproducible across samples and individuals remains ch...
Shi-Wei Fu, Han Li, Wei Vivian Li· Briefings in Bioinformatics· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.