DeepSpot2Cell: Predicting Virtual Single-Cell Spatial Transcriptomics from H&E images using Spot-Level Supervision

Kalin Nonchev, Glib Manaiev, Viktor Koelzer, Gunnar Ratsch

TL;DR

This paper introduces DeepSpot2Cell, a novel deep learning model that predicts the gene expression of individual cells directly from standard H&E stained histology images. By leveraging pathology foundation models and spatial context, DeepSpot2Cell achieves significant improvements in reconstructing single-cell transcriptomes, paving the way for more detailed cellular analysis in cancer research.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) technologies are revolutionizing our understanding of tissue heterogeneity and disease by mapping gene expression within its spatial context. However, current ST methods often face a trade-off: either they provide whole-transcriptome data but at a coarse resolution (e.g., 10x Visium, where each "spot" contains multiple cells), or they offer single-cell resolution but with limited gene panels (e.g., 10x Xenium). This coarse resolution of spot-based ST makes it difficult to perform accurate single-cell analysis and characterize individual cell types. While H&E images are abundant and cost-effective, bridging the gap between these images and precise single-cell transcriptomic data has been a major challenge. This paper aims to overcome this by predicting virtual single-cell transcriptomes from H&E images, using only spot-level supervision.

Methods

The core of DeepSpot2Cell is a multi-modal deep learning architecture based on the DeepSets framework. This approach is designed to handle variable numbers of cells within each spatial spot. Here's a breakdown of the key components:

  • Pathology Foundation Models (PFMs): The model utilizes pre-trained PFMs (like UNI, Phikon-v2, and H-Optimus-0) to extract rich morphological features from H&E image tiles. These PFMs are crucial for understanding the visual context of the cells.
  • Multi-modal Input Fusion: For each cell within a spot, DeepSpot2Cell takes three types of H&E image inputs:
  • A cropped tile of the cell itself.
  • The full tile of the spot containing the cell.
  • Tiles of neighboring spots. These inputs are processed by PFMs, and their embeddings are then fed through dedicated MLPs.

  • DeepSets Architecture: The processed cell and spot embeddings are concatenated to form an integrated cell representation. Crucially, DeepSpot2Cell aggregates these cell-level representations within a spot using summation. This summation aggregation is permutation-invariant, meaning the order of cells within a spot doesn't matter, and it naturally models the additive nature of gene expression from multiple cells.

  • Spot-Level Supervision: The model is trained using spot-level transcriptomic data, where the aggregated gene expression of cells within a spot is known. This allows it to learn the mapping from H&E images to gene expression without needing explicit single-cell ground truth during training.
  • Inference: During inference, the model uses the cell tile, spot tile, and neighbor tiles to predict the virtual single-cell gene expression profile for individual cells.

Datasets

The study introduces a newly curated benchmark designed for single-cell ST deconvolution and prediction from H&E images. This benchmark consists of:

  • 20 lung cancer samples
  • 7 breast cancer samples
  • 2 pancreatic cancer samples

These samples were derived from 10x Xenium datasets, which provide true single-cell resolution. To mimic the spot-level resolution of 10x Visium, pseudo spot-level gene expression profiles were generated by aggregating single-cell transcript counts within simulated 55µm spatial spots. This benchmark allows for rigorous evaluation of models on tasks like in-sample (IS) deconvolution, out-of-sample (OOS) prediction from unseen samples within the same cohort, and out-of-distribution (OOD) prediction from samples belonging to a different cohort.

Key Insights and Ideas

  • Bridging the Resolution Gap: The most significant insight is the successful prediction of virtual single-cell transcriptomes from coarse spot-level ST data and H&E images. This effectively overcomes the resolution limitations of standard ST technologies.
  • Leveraging Pathology Foundation Models: The integration of PFMs is key, allowing the model to extract meaningful morphological features that correlate with gene expression, even without explicit cell type labels.
  • Spatial Context Matters: Incorporating neighborhood information (neighboring spot tiles) alongside cell and spot-level image data significantly improves prediction accuracy, highlighting the importance of the tissue microenvironment.
  • DeepSets for Cell Aggregation: The use of a permutation-invariant DeepSet architecture with summation aggregation is an elegant way to handle the variable number of cells per spot and model transcript additivity.
  • A Robust Benchmark: The creation of a new, multi-cancer benchmark with true single-cell ground truth is a valuable contribution, enabling more reliable comparisons of deconvolution and prediction methods.

Key Results

DeepSpot2Cell demonstrated substantial improvements over existing super-resolution and deconvolution methods across various cancer datasets:

  • Lung Cancer: Achieved a 46% improvement in cell expression correlation for the top 100 genes in the out-of-sample (OOS) scenario compared to the best competitor (scstGCN).
  • Breast Cancer: Showed over 50% improvement in gene correlations in the more challenging out-of-distribution (OOD) scenario, indicating strong generalization capabilities.
  • Overall Performance: Outperformed previous methods by 46%, 65%, and 38% in cell expression correlation for the top 100 genes across lung, breast, and pancreatic cancer datasets, respectively.
  • Qualitative Results: Figure 2 shows that DeepSpot2Cell produces coherent, spatially structured gene expression patterns for a marker gene (MSLN), unlike the noisy and diffuse predictions from other methods.

Limitations and Future Work

  • Pseudo-Visium Spots: The study used pseudo-Visium spots derived from Xenium data. While this mimics Visium, it may not perfectly replicate real Visium measurements.
  • Limited Gene Panels in Past Data: Experiments relied on older Xenium datasets with fewer genes (~300) compared to newer 5k panels.
  • Cell Segmentation Dependency: The accuracy of cell segmentation is critical. Errors in segmentation can propagate to expression predictions. The benchmark used ground-truth nuclei locations, but real-world applications require accurate computational inference of these locations.
  • Future Directions: The authors suggest further research into the utility of virtual cells for downstream biological applications, such as identifying genes correlated with tissue architecture or genes that are difficult to predict. They also highlight the need to improve cell segmentation methods for better single-cell resolution.

Summary updated

BibTeX
@inproceedings{nonchev2025deepspot,
  author = {Kalin Nonchev and Glib Manaiev and Viktor Koelzer and Gunnar Ratsch},
  title = {{DeepSpot2Cell: Predicting Virtual Single-Cell Spatial Transcriptomics from H\&E images using Spot-Level Supervision}},
  booktitle = {FM4LS @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=ofCkwXQKaz},
}
Figure