Sign in
BioinformaticsbioRxiv
Preprint

CASTLE: Cell-type Aware SpaTial domain detection via contrastive Learning Embedding

Aoqi XieiD, Yuehua CuiiD

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.

PDFDOI

02 /Specification & Classification

Click any tag to browse matching papers

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.

Similarity Map
SelectedSame fieldCross-field
THISYang '24Long '23Zhen '25Soltani '25Cao '26Lu '26
78% semantic matchBioinformatics
Gui Yang, Chao Li, Yan Xu·bioRxiv·May 9, 2024· 1 citations