[Paper Review] Nonnegative spatial factorization
This paper introduces Nonnegative Spatial Factorization (NSF), a probabilistic dimension reduction model that combines nonnegative matrix factorization with Gaussian processes to identify interpretable, spatially coherent patterns in multivariate spatial transcriptomics data. NSF enhances interpretability through nonnegative factors and loadings, outperforms real-valued models like MEFISTO in identifying generalizable spatial gene expression patterns, and enables quantification of spatial influence via a hybrid spatial/non-spatial extension.
Gaussian processes are widely used for the analysis of spatial data due to their nonparametric flexibility and ability to quantify uncertainty, and recently developed scalable approximations have facilitated application to massive datasets. For multivariate outcomes, linear models of coregionalization combine dimension reduction with spatial correlation. However, their real-valued latent factors and loadings are difficult to interpret because, unlike nonnegative models, they do not recover a parts-based representation. We present nonnegative spatial factorization (NSF), a spatially-aware probabilistic dimension reduction model that naturally encourages sparsity. We compare NSF to real-valued spatial factorizations such as MEFISTO and nonspatial dimension reduction methods using simulations and high-dimensional spatial transcriptomics data. NSF identifies generalizable spatial patterns of gene expression. Since not all patterns of gene expression are spatial, we also propose a hybrid extension of NSF that combines spatial and nonspatial components, enabling quantification of spatial importance for both observations and features. A TensorFlow implementation of NSF is available from https://github.com/willtownes/nsf-paper .
Motivation & Objective
- To address the lack of interpretability in real-valued spatial factorization models for multivariate spatial transcriptomics data.
- To develop a dimension reduction method that preserves spatial structure while enabling parts-based, nonnegative representations of gene expression patterns.
- To quantify the relative importance of spatial versus non-spatial components in gene expression features.
- To provide a scalable, probabilistic framework that operates directly on raw count data without normalization-induced distortions.
- To enable discovery of biologically meaningful spatial patterns in high-dimensional spatial transcriptomics datasets.
Proposed method
- NSF models high-dimensional spatial gene expression data as a nonnegative linear combination of spatially correlated Gaussian process factors.
- The method employs a probabilistic latent variable framework with nonnegative constraints on both factors and loadings to ensure parts-based, interpretable representations.
- It uses a stochastic variational inference approach with sparse precision matrices (SPDE) to enable scalable inference on large spatial datasets.
- A hybrid extension, NSF-H, combines spatial and non-spatial components by modeling features as a mixture of spatial and non-spatial factors.
- The model is trained directly on raw UMI counts using a negative binomial likelihood to avoid normalization artifacts.
- Postprocessing via SPDE-style smoothing ensures loadings matrices are interpretable and rows sum to one across components.
Experimental results
Research questions
- RQ1Can nonnegative spatial factorization recover more interpretable and generalizable spatial patterns in spatial transcriptomics data than real-valued models?
- RQ2How does the inclusion of nonnegativity constraints improve the interpretability of spatially correlated latent factors in multivariate gene expression data?
- RQ3To what extent do spatial patterns in gene expression contribute to the overall structure of the data, and can this be quantified?
- RQ4Can a hybrid model that separates spatial and non-spatial components better capture the true underlying biology in spatial transcriptomics datasets?
- RQ5Does NSF outperform existing methods like MEFISTO and standard scRNA-seq DR tools in identifying biologically relevant spatial patterns?
Key findings
- NSF successfully identifies generalizable spatial patterns of gene expression across multiple spatial transcriptomics datasets, including Visium mouse brain, Slide-seqV2 mouse hippocampus, and XYZeq mouse liver.
- The nonnegative constraints in NSF lead to more interpretable loadings, with genes in each component showing coherent biological functions and cell-type associations.
- In the Visium mouse brain dataset, NSF identified components enriched for known brain regions such as the dentate gyrus and CA1, with GO terms supporting neuronal and synaptic functions.
- The hybrid NSF-H model quantified that 60–80% of gene expression variation in the datasets was spatially driven, depending on the tissue and component.
- NSF outperformed MEFISTO and standard DR methods in identifying biologically relevant spatial patterns, particularly in detecting region-specific gene expression programs.
- The model achieved scalable inference on large datasets (e.g., 180 GB memory for Slide-seqV2) using 12 CPU cores, demonstrating practical applicability to high-dimensional spatial data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.