arXiv:2610.41692cs.LGOct 2026

Manuscript Offprint

arXiv:2610.41692

From WSIs to Bulk, Spatial and Single-Cell Transcriptomics via Multi-Scale Graph Neural Networks

Miguel Andrade, José Almeida, Carlos Santiago, Catarina Barata

Abstract

Understanding the spatial distribution of gene expression is key to studying complex diseases like cancer. While Spatial Transcriptomics (ST) and Single-Cell Transcriptomics (scT) provide high-resolution insights, they remain expensive and scarce. In contrast, standard histopathology Whole-Slide Images (WSIs) paired with bulk RNA sequencing are widely available. This work introduces a Multi-Scale Graph Neural Network (GNN) capable of simultaneously predicting bulk, spatial, and single-cell transcriptomics directly from WSIs. By extracting morphological features using a Pathology Foundation Model (PFM) (UNI2-h) and constructing spatial graphs at both patch and cell levels, the model learns the hierarchical relationships within the tissue. The network is trained on a combined dataset of The Cancer Genome Atlas Program (TCGA), Visium, and Xenium samples across lung, kidney, and breast tissues. A hybrid training strategy is employed, leveraging direct supervision alongside weakly supervised consistency losses to ensure predictions align across biological scales. Results show the model accurately predicts gene expression at the slide level and moderately at the patch level (strongest on Xenium), and achieves moderate correlation at the challenging single-cell level. Furthermore, downstream tasks explore the clinical relevance of these predictions, demonstrating their utility in survival analysis, spatial hazard mapping, and tumor classification via molecular signatures.

1 Introduction

Understanding genes is key to grasping how our body works and evolves, as well as making sense of complex diseases such as cancer. That is why ST and scT may provide critical insights for understanding and effectively treating tumors. The rapid evolution of ST and scT has transformed our understanding of tissue biology by enabling the systematic measurement of expression levels for all or most genes throughout tissue space [1]. Despite their revolutionary potential, these methods remain constrained by high experimental costs (thousands of dollars per slide), and are not yet routine in most hospitals. On the other hand, histopathology is already a common practice in cancer diagnosis, producing hematoxylin and eosin-stained WSIs. WSIs are high-resolution digital representations of histopathology slides that capture the complete morphological context of the tissue. They preserve cellular structures, tissue architecture and spatial organization of cells.

Although ST provides a good understanding of the spatial distribution of genes, it does not offer the finest granularity available. In one patch there are often dozens to hundreds of cells, so the expression of each spot is actually the mixture of the gene expressions of each cell within each patch. scT achieves the finest granularity available, providing the gene expression for each detected cell in a WSI. Additionally, WSIs are often used as a conclusive diagnostic tool because many diseases, including cancer, are characterized by abnormal spatial organization within tissues [2]. By mapping mRNA within tissues, we improve our ability to visualize and interpret biological processes, since abnormal mRNA expression is frequently associated with human tumor initiation, development, progression and metastasis [3].

The relationship between tissue morphology and gene expression arises from the fact that tissue architecture and histological appearance are a direct manifestation of underlying genes at play. Differences in cell type, microenvironmental context and the presence of a tumor can result in characteristic morphological signatures. These morphological features can share a high amount of information with gene expression [4]. Therefore, using WSIs to predict ST and scT represents the next logical step, that not only assists doctors in diagnosing tumor slides but also enables a wide range of downstream tasks such as biomarker discovery and survival prediction.

ST and scT have advanced rapidly in both experimental and computational methods, yet there remains a critical limitation in accurately predicting transcriptomic profiles. Moreover, current deep learning models can infer partial gene expression patterns from histopathology slides. However, their predictions often show limited gene coverage, weak generalization across different tissues, and low accuracy in reconstructing the full transcriptome. While the acquisition of spatial data is expensive and time-consuming, bulk gene expression data, which provides the average gene expression across the whole tissue, is far more accessible and abundant. However, the translation from bulk-level to spatial gene expression profiles remains under-explored.

To bridge this gap, this work leverages three types of data: (1) WSIs paired with bulk gene expression; (2) WSIs paired with ST; and (3) WSIs paired with scT. WSIs are typically divided into smaller, fixed-size patches to enable efficient processing by deep learning models. ST requires that patches align with the spots where mRNA was sequenced (arranged across the WSI in a predefined grid pattern to enable spatially resolved transcriptomic profiling). In addition, in cases where scT data is available, each detected cell has an associated gene expression profile, although these profiles can be very sparse, since each cell may have counts for only a few of the genes in the panel. On the other hand, if only bulk gene expression is available, the spatial information is lost and the gene expression corresponds to the mixture of the whole tissue. This poses a challenge, as the bulk gene expression does not correspond exactly to the WSI and the spatial relationship between the WSI and the genomic data is unknown [5]. Despite this, the bulk gene expression can be reasonably approximated as representative of the average gene expression across the WSI, given that the WSI and the sampled tissue originate from the same primary tumor.

The results obtained by recent studies [6–9] support the hypothesis that, in most cases, morphology encodes sufficient information to approximate gene expression patterns. Consequently, deep learning models trained on paired data WSI-transcriptomics can exploit these correlations to reconstruct spatial gene profile maps directly from WSIs.

Most existing models that have the capability of predicting at the single-cell level employ the same training strategy: treating each spot as a bag of cells and using Multiple Instance Learning (MIL) to predict the spot's gene expression. This way, the model learns how the aggregation of the cell's gene expression should look like through weakly supervised learning. This strategy was employed in a state of the art model, DeepSpot2Cell [10], which leverages a PFM and spatial multi-level context to predict scT using spot-level supervision. A similar approach was proposed in [11]. The methodology is the same, as the spot is represented as a bag of cells, and the cells' gene expression is learned through MIL.

In this work, a Multi-Scale GNN was developed to predict gene expression from WSIs at three levels: bulk, spatial and single-cell. The consistency losses encourage the predictions at these levels to agree.

References (31)