SpaMask: Dual masking graph autoencoder with contrastive learning for spatial transcriptomics
Understanding the spatial locations of cell within tissues is crucial for unraveling the organization of cellular diversity. Recent advancements in spatial resolved transcriptomics (SRT) have enabled the analysis of gene expression while preserving the spatial context within tissues. Spatial domain characterization is a critical first step in SRT data analysis, providing the foundation for subsequent analyses and insights into biological implications. Graph neural networks (GNNs) have emerged as a common tool for addressing this challenge due to the structural nature of SRT data. However, current graph-based deep learning approaches often overlook the instability caused by the high sparsity of SRT data. Masking mechanisms, as an effective self-supervised learning strategy, can enhance the robustness of these models. To this end, we propose SpaMask, dual masking graph autoencoder with contrastive learning for SRT analysis. Unlike previous GNNs, SpaMask masks a portion of spot nodes and spot-to-spot edges to enhance its performance and robustness. SpaMask combines Masked Graph Autoencoders (MGAE) and Masked Graph Contrastive Learning (MGCL) modules, with MGAE using node masking to leverage spatial neighbors for improved clustering accuracy, while MGCL applies edge masking to create a contrastive loss framework that tightens embeddings of adjacent nodes based on spatial proximity and feature similarity. We conducted a comprehensive evaluation of SpaMask on eight datasets from five different platforms. Compared to existing methods, SpaMask achieves superior clustering accuracy and effective batch correction.
Authors
- Wenwen Min (ORCID: https://orcid.org/0000-0002-2558-2911)
- Donghai Fang (ORCID: https://orcid.org/0009-0000-9050-0700)
- Jinyu Chen (ORCID: https://orcid.org/0009-0002-7444-2963)
- Shihua Zhang (ORCID: https://orcid.org/0000-0002-3877-9166)
Institutions
- Yunnan University (CN)
- Chinese Academy of Sciences (CN)
- Beijing University of Technology (CN)
- National Center for Mathematics and Interdisciplinary Sciences (CN)
- Academy of Mathematics and Systems Science (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- PLoS Computational Biology
- Published
- 2025-04-03
- DOI
- https://doi.org/10.1371/journal.pcbi.1012881
- Citations
- 20
- Primary Topic
- Single-cell and spatial transcriptomics
- Type
- article
- Field-Weighted Citation Impact
- 16.12
Funders
- National Natural Science Foundation of China