Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

SpatialMAGIC: A Hybrid Framework Integrating Graph Diffusion and Spatial Attention for Spatial Transcriptomics Imputation

About

Spatial transcriptomics (ST) enables mapping gene expression with spatial context but is severely affected by high sparsity and technical noise, which conceals true biological signals and hinders downstream analyses. To address these challenges, SpatialMagic was proposed, which is a hybrid imputation model combining MAGIC-based graph diffusion with transformer-based spatial self-attention. The long-range dependencies in the gene expression are captured by graph diffusion, and local neighborhood structure is captured by spatial attention models, which allow for recovering the missing expression values, retaining spatial consistency. Across multiple platforms, SpatialMagic consistently outperforms existing baselines, including MAGIC and attention-based models, achieving peak Adjusted Rand Index (ARI) scores in clustering accuracy of 0.3301 on high-resolution Stereo-Seq data, 0.3074 on Slide-Seq, and 0.4216 on the Sci-Space dataset. Beyond quantitative improvements, SpatialMagic substantially enhances downstream biological analyses by improving the detection of both up- and down-regulated genes while maintaining regulatory consistency across datasets. The pathway enrichment analysis of the recovered genes indicates that they are involved in consistent processes across key metabolic, transport, and neural signaling pathways, suggesting that the framework improves data quality while preserving biological interpretability. Overall, SpatialMagic's hybrid diffusion attention strategy and refinement module outperform state-of-the-art baselines on quantitative metrics and provide a better understanding of the imputed data by preserving tissue architecture and uncovering biologically relevant genes. The source code and datasets are provided in the following link: https://github.com/sayeemzzaman/SpatialMAGIC

Sayeem Bin Zaman, Fahim Hafiz, Riasat Azim• 2026

Related benchmarks

TaskDatasetResultRank
Spatial clusteringDX6_D2_stereo-seq
ARI0.3254
5
Spatial clusteringDT2_D0 stereo-seq
ARI0.3301
5
Spatial clusteringFB2_D1 stereo-seq
ARI29.93
5
Spatial clusteringslide_seq diabetes1 T4
ARI0.2688
5
Spatial clusteringslide_seq WT1_T3
ARI30.74
5
Spatial clusteringGSE166692 scispace
ARI42.16
5
Spatial clusteringstickles_mouse_slideseq
ARI0.2193
5
Runtime analysisStereo-seq DX6
Runtime (s)291.6
2
Runtime analysisStereo-seq DT2
Runtime (s)1.45e+3
2
Runtime analysisStereo-seq FB2
Runtime (s)332.7
2
Showing 10 of 10 rows

Other info

Follow for update