CASTLE: Cell-type Aware SpaTial domain detection via contrastive Learning Embedding
Abstract
With advances in spatially resolved transcriptomics across platforms and resolutions, it is now possible to measure gene-expression profiles while preserving the tissue microenvironment. Spatial clustering is central to these analyses, and recent graph neural network (GNN)-based approaches have greatly improved their accuracy. Nevertheless, precisely delineating spatial domain boundaries remains a significant challenge. Here we present a novel method CASTLE (Cell-type Aware SpaTial domain detection via contrastive Learning Embedding) by leveraging cell type information for improved spatial domain detection. CASTLE first integrates spatial proximity to construct a spatial graph, refined from cell-type similarity or expression similarity when cell type information is unavailable. Then, a self-supervised, local-context contrastive objective aligns embeddings with their immediate microenvironments. Evaluated across multiple tissues and technology resolutions, CASTLE outperforms state-of-the-art methods and detects more accurate and stable spatial domains. In downstream analyses, it resolves fine-grained tissue structures and differentiates functional subtypes, supporting more nuanced biological interpretation.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Spatial domains identification in spatial transcriptomics by domain knowledge-aware and subspace-enhanced graph contrastive learning
- Spatially informed clustering, integration, and deconvolution of spatial transcriptomics with GraphST
Yahui Long, Kok Siong Ang, … Jinmiao Chen·Nature CommunicationsPeer-reviewed·Mar 1, 2023
- DisConST: Deciphering Spatial Domains Using Distribution-aware Contrastive Learning for Spatial Transcriptomics
Peimeng Zhen, Xiaofeng Wang, … Tao Wang·bioRxiv·Mar 13, 2025
- Hypergraph Neural Networks Reveal Spatial Domains from Single-cell Transcriptomics Data
Mehrad Soltani, Luis Rueda·bioRxiv·Jul 27, 2025
- SpatialESD: spatial ensemble domain detection in spatial transcriptomics
Hongyan Cao, Gaiqin Liu, … Yuehua Cui·Advanced SciencePeer-reviewed·Feb 12, 2026
- Semantic-Guided Spatial Representation Learning for Spatial Domain Identification
Yawen Lu, Yucheng Xu, … Yanlin Zhang·bioRxiv·Feb 1, 2026