METHODS article

Front. Genet.

Sec. Computational Genomics

Volume 16 - 2025 | doi: 10.3389/fgene.2025.1566675

This article is part of the Research TopicMachine Learning in Single-Cell TranscriptomicsView all articles

stGuide advances label transfer in spatial transcriptomics through attention-based supervised graph representation learning

Provisionally accepted
Yupeng  XuYupeng Xu1Hao  DaiHao Dai2Jinwang  FengJinwang Feng3Keren  XuKeren Xu4Qiu  WangQiu Wang5Pingting  GaoPingting Gao6*Chunman  ZuoChunman Zuo7*
  • 1School of Computer Science and Technology, Donghua University, Shanghai, China
  • 2Key Laboratory of Systems Biology, Shanghai Institute of Biochemistry and Cell Biology, Center for Excellence in Molecular Cell Science, Chinese Academy of Sciences, Shanghai, China
  • 3College of Computer and Information Science, Chongqing Normal University, Chongqing, China
  • 4Department of Colorectal Surgery, Fudan University Shanghai Cancer Center, Shanghai, Shanghai Municipality, China
  • 5Guangdong Institute of Intelligence Science and Technology, Zhuhai, China
  • 6Endoscopy Center and Endoscopy Research Institute, Fudan University, Shanghai, China
  • 7Institute of Artificial Intelligence, Donghua University, Shanghai, China

The final, formatted version of the article will be published soon.

The growing availability of spatial transcriptomics data offers key resources for annotating query datasets using reference datasets. However, batch effects, unbalanced reference annotations, and tissue heterogeneity pose significant challenges to alignment analysis. Here, we present stGuide, an attention-based supervised graph learning model designed for cross-slice alignment and efficient label transfer from reference to query datasets. stGuide leverages supervised representations guided by reference annotations to map query slices into a shared embedding space using an attention-based mechanism. It then assigns spot-level labels by incorporating information from the nearest neighbors in the learned representation. Using human dorsolateral prefrontal cortex and breast cancer datasets, stGuide demonstrates its capabilities by (i) producing category-guided, low-dimensional features with well-mixed slices; (ii) transferring labels effectively across heterogeneous tissues; and(iii) uncovering relationships between clusters. Comparisons with state-of-the-art methods demonstrate that stGuide consistently outperforms existing approaches, positioning it as a robust and versatile tool for spatial transcriptomics analysis.

Keywords: Spatial transcriptomics, Attention-based transfer learning, Graph learning, Batch effects, Label transfer

Received: 25 Jan 2025; Accepted: 05 May 2025.

Copyright: © 2025 Xu, Dai, Feng, Xu, Wang, Gao and Zuo. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Pingting Gao, Endoscopy Center and Endoscopy Research Institute, Fudan University, Shanghai, China
Chunman Zuo, Institute of Artificial Intelligence, Donghua University, Shanghai, China

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.