SpotDiff: Spatial Gene Expression Imputation Diffusion with Single-Cell RNA Sequencing Data Integration

Tianyi Chen, Yunfei Zhang, Lianxin Xie, Wenjun Shen, Si Wu, Hau-San WongAAAI 2025

Abstract

Spatial Transcriptomics (ST) is a transformative technology for mapping gene expression within its native tissue context. However, high sparsity and "dropout" events often hinder its biological interpretation. We introduce SpotDiff, a novel multi-modal diffusion model designed to solve the sparsity problem in ST. By integrating single-cell RNA sequencing (scRNA-seq) data and natural language "gene prompts," SpotDiff accurately reconstructs missing gene expression values. Our framework leverages a Diffusion Transformer (DiT) architecture conditioned on textual embeddings and aligned scRNA-seq features. Extensive benchmarking across six diverse datasets shows that SpotDiff consistently outperforms state-of-the-art methods in imputation accuracy and downstream biological analysis.

Introduction

Spatial Transcriptomics (ST) allows researchers to observe the spatial organization of gene activity. Despite its potential, ST technologies often suffer from low capture rates, resulting in significant data sparsity. Existing imputation methods, such as Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs), frequently fail to effectively integrate external data sources or capture complex gene-spot associations. Single-cell RNA sequencing (scRNA-seq) offers high-resolution expression data but lacks spatial information. The primary challenge lies in the multi-modal fusion of sparse ST data with high-resolution scRNA-seq references to produce a complete and accurate tissue map.

Methodology

SpotDiff is a conditional diffusion model built upon the Diffusion Transformer (DiT) framework. It introduces three primary innovations to bridge the gap between ST and scRNA-seq data:

  1. Spot-gene Prompt Learning: Utilizing a frozen T5 text encoder, the model generates textual embeddings for each spot based on its gene expression profile. This "narrative" approach helps the model capture both global and local gene associations.
  2. scRNA-seq Integration Network: A 6-layer Unet-based network aligns scRNA-seq data from the same tissue type into the ST spatial domain, providing a stable reference for the diffusion process.
  3. Spatially-Aware Loss ($L_{LOC}$): A specialized loss function ensures biological consistency by encouraging neighboring spots to exhibit similar expression profiles while maintaining the distinctiveness of distant regions.
The SpotDiff architecture, featuring (a) Spot-gene Prompt Learning, (b) scRNA-seq data integration, and (c) the core Diffusion Transformer (DiT) framework.

The model operates through a sequential diffusion process, where masked ST data is progressively denoised and reconstructed, conditioned on the integrated multi-modal features.

Experimental Results

SpotDiff was evaluated on six diverse datasets, including osmFISH, STARmap, and 10x Visium, spanning various tissue types and resolutions.

Imputation Accuracy

SpotDiff consistently achieved superior Pearson Correlation Coefficients (PCC) compared to state-of-the-art baselines like Tangram, SpaFormer, and stMDCI. For instance, on the osmFISH dataset, SpotDiff reached a PCC of 0.3721, surpassing the second-best method (0.3020).

Spatial gene expression maps and Pearson Correlation Coefficients (PCC) comparing SpotDiff (Ours) against baseline methods and Ground Truth across different genes.

Biological Utility

Beyond numerical accuracy, SpotDiff demonstrated significant improvements in downstream tasks. Qualitative analysis showed sharper, more biologically accurate marker gene maps. Furthermore, in cell population clustering tests, SpotDiff achieved the highest Adjusted Rand Index (ARI) scores (e.g., 0.7336 on the Mop dataset), indicating that the imputed data preserves and enhances biological signals.

Discussion and Conclusion

SpotDiff represents a significant advancement in ST data imputation by treating gene expression as a multi-modal problem. The use of natural language processing techniques to encode biological associations and the integration of scRNA-seq data via diffusion models provides a robust framework for tissue reconstruction. While the computational demands of diffusion models and large language model encoders are higher than traditional methods, the gains in accuracy and biological relevance are substantial. Future work will explore extending this multi-modal approach to other omics data, such as spatial proteomics, to further enhance our understanding of tissue architecture.

Summary updated

BibTeX
@inproceedings{chen2025spotdiff,
  author = {Tianyi Chen and Yunfei Zhang and Lianxin Xie and Wenjun Shen and Si Wu and Hau-San Wong},
  title = {{SpotDiff: Spatial Gene Expression Imputation Diffusion with Single-Cell RNA Sequencing Data Integration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i15.33740},
}
Figure