Completing spatial transcriptomics data for gene expression prediction benchmarking

Daniela Ruiz, Paula Cárdenas, Leonardo Manrique, Daniela Vega, Gabriel Mateo Mejía Sepúlveda, Pablo Arbeláez

Introduction

Spatial Transcriptomics (ST) is a transformative technology that maps gene activity within tissue samples, providing critical insights into biological structures. However, the field faces two significant challenges: technical noise, specifically "dropout" where gene expression is incorrectly recorded as zero, and a lack of standardized benchmarking for models that predict gene expression from histology (H&E) images. This paper introduces SpaRED, a comprehensive database of 26 standardized ST datasets, and SpaCKLE, a transformer-based model designed to "fill in the blanks" of missing data and enhance downstream prediction accuracy.

The SpaRED Database and Pipeline

To establish a "gold standard" for evaluation, the authors developed the Spatially Resolved Expression Database (SpaRED). This resource comprises 26 public Visium datasets (14 human and 12 mouse) covering nine tissue types, including brain, prostate, and lung. The SpaRED pipeline standardizes these datasets through a rigorous preprocessing workflow:

  • Filtering: Removal of low-quality cells and non-informative genes.
  • Normalization: Implementation of Transcripts Per Million (TPM) and log transformations.
  • Batch Correction: Utilization of the ComBat algorithm to eliminate technical variations between experiments, ensuring models focus on biological signals.

SpaCKLE: Reference-Free Data Completion

The authors proposed SpaCKLE (Spatial transcriptomics Completion with Knowledge from the Local Environment) to mitigate the effects of technical noise. Unlike reference-based methods that require external single-cell data, SpaCKLE is a reference-free transformer model. It employs a masked-autoencoder approach, treating tissue spots as tokens and using self-attention to reconstruct expression values from a 2-hop neighborhood.

Workflow comparing raw data and SpaCKLE-enhanced data for gene expression prediction.

A notable finding during development was that incorporating H&E image features into the SpaCKLE model actually decreased performance by approximately 20%. This suggests that the genetic context of neighboring spots provides a significantly stronger signal for data completion than visual tissue texture.

Benchmarking and Results

The SpaRED benchmark evaluated eight state-of-the-art gene expression prediction models, such as STNet, HisToGene, and EGGN. The results demonstrate that data completion is a "force multiplier": models trained on SpaCKLE-completed data consistently outperformed those trained on raw, noisy data.

The SpaRED Benchmark shows a dramatic reduction in Mean Squared Error (MSE) across multiple models when using SpaCKLE-completed data (blue) versus raw data (red).

Key quantitative results include:

  • Error Reduction: SpaCKLE achieved an 82.5% reduction in Mean Squared Error (MSE) compared to standard median imputation.
  • Correlation Gains: Using SpaCKLE-completed data improved the Pearson Correlation Coefficient (PCC) across all models. In the AHSCC dataset, the top model's correlation increased by 0.36.
  • Model Performance: The benchmark identified simpler architectures, specifically ViT-B+Δ and STNet, as the most consistent performers, often surpassing more complex specialized models that may be prone to overfitting.

Conclusion and Future Directions

The introduction of SpaRED and SpaCKLE provides a robust infrastructure for the spatial transcriptomics community. While the current database is extensive, future work is needed to address tissue imbalances and explore more sophisticated multi-modal fusion techniques to better integrate histology images with genetic data. Additionally, the computational efficiency of graph-based models remains a challenge for larger tissue slides, highlighting a need for more scalable architectures.

Summary updated

BibTeX
@article{ruiz2025completing,
  author = {Daniela Ruiz and Paula Cárdenas and Leonardo Manrique and Daniela Vega and Gabriel Mateo Mejía Sepúlveda and Pablo Arbeláez},
  title = {{Completing spatial transcriptomics data for gene expression prediction benchmarking}},
  journal = {Medical Image Analysis},
  year = {2025},
  doi = {10.1016/j.media.2025.103754},
}
Figure