TransST: transfer learning embedded spatial factor modeling of spatial transcriptomics data

Shuo Shuo Liu, Shikun Wang, Yuxuan Chen, Anil K. Rustgi, Ming Yuan, Jianhua Hu

Introduction

Spatial Transcriptomics (ST) has emerged as a transformative technology in molecular biology, enabling researchers to map gene expression within the structural context of intact tissues. By preserving the spatial coordinates of transcripts, ST provides insights into tissue architecture and cellular interactions that are lost in traditional bulk or single-cell RNA sequencing (scRNA-seq). However, the field currently faces a significant "blurry vision" problem: many ST platforms suffer from limited resolution—where a single capture spot may contain multiple heterogeneous cells—and low sequencing depth, which introduces substantial technical noise.

While high-quality, cell-labeled datasets are increasingly available via scRNA-seq atlases, most existing ST analysis tools treat each experiment in isolation. This failure to incorporate external "prior knowledge" limits the ability to distinguish biological signals from noise. To bridge this gap, we present TransST (Transfer Learning Embedded Spatial Factor Modeling), a novel framework designed to enhance ST data analysis by adaptively leveraging labeled information from external sources.

Methodology

TransST operates through a sophisticated three-step pipeline that integrates transfer learning with spatial statistical modeling:

1. Probabilistic Linear Dimension Reduction (pLDR)

The process begins by analyzing a "source" dataset, typically a well-characterized scRNA-seq atlas. TransST learns a factor loading matrix ($W_0$), which serves as a mathematical map relating high-dimensional gene expression profiles to a lower-dimensional set of biological factors defined by known cell types.

2. Adaptive Transfer Learning

The core innovation of TransST lies in its adaptive transfer mechanism. When analyzing the "target" ST data, the model does not rigidly impose the source map. Instead, it estimates a new loading matrix ($W$) for the target data while applying a Frobenius norm penalty. This penalty encourages $W$ to remain close to $W_0$, allowing the model to benefit from the source data's precision while maintaining the flexibility to capture unique biological features inherent to the target tissue.

3. Spatial Gaussian Mixture Model (spGMM)

In the final stage, TransST performs spatial clustering using a Gaussian Mixture Model integrated with a Markov Random Field (MRF). The MRF incorporates spatial context based on the principle that neighboring spots in a tissue are likely to share functional identities. This spatial smoothing effectively filters out random technical noise, resulting in cleaner, more biologically coherent tissue maps.

Experimental Validation

The researchers validated TransST across a diverse range of synthetic and real-world datasets, including:

  • Human DLPFC: 12 sections of the dorsolateral prefrontal cortex, serving as a gold standard for spatial clustering.
  • Human HER2-positive Breast Cancer: Eight samples used to identify cancer subtypes and stromal components.
  • Mouse Embryo: High-resolution data generated via seqFISH.
  • Human cSCC: Cutaneous Squamous Cell Carcinoma data used to investigate the tumor microenvironment.

Key Results and Insights

Superior Clustering Accuracy

In the DLPFC brain dataset, TransST achieved the highest Adjusted Rand Index (ARI) among competing methods, outperforming established tools such as BayesSpace, SC-MEB, and DR.SC. This demonstrates that transfer learning significantly sharpens the identification of anatomical layers in the brain.

Enhanced Biological Discovery

TransST demonstrated unique capabilities in complex tissue environments. In the breast cancer study, it was the only method capable of clearly distinguishing adipose (fat) tissues from connective tissues. Furthermore, it successfully delineated the boundaries between in situ and invasive cancer regions, providing critical diagnostic context.

Identification of Rare Cell Niches

In the skin cancer (cSCC) study, TransST identified a specific immune-associated cell cluster characterized by the expression of DSC1 and HOPX. This niche was missed by traditional methods, highlighting TransST's sensitivity in detecting subtle biological signals through the use of external priors.

Computational Efficiency

Despite its methodological complexity, TransST is highly scalable. The algorithm is capable of processing datasets containing tens of thousands of spots in under one minute, making it suitable for large-scale spatial transcriptomics projects.

Discussion and Future Work

TransST demonstrates that ST data is often too sparse to stand alone and benefits immensely from "borrowed" knowledge. By treating scRNA-seq data as a corrective lens, TransST provides a clearer view of tissue heterogeneity. However, the model's performance is intrinsically linked to the relevance of the source data. If the source and target datasets are biologically divergent (e.g., different species), the effectiveness of the transfer may decrease.

Future developments will focus on more sophisticated alignment algorithms to handle significant distribution shifts between source and target data, further expanding the utility of transfer learning in the rapidly evolving field of spatial biology.

Summary updated

BibTeX
@article{liu2025transst,
  author = {Shuo Shuo Liu and Shikun Wang and Yuxuan Chen and Anil K. Rustgi and Ming Yuan and Jianhua Hu},
  title = {{TransST: transfer learning embedded spatial factor modeling of spatial transcriptomics data}},
  journal = {BMC Bioinformatics},
  year = {2025},
  doi = {10.1186/s12859-025-06099-z},
}
Figure