Modeling Microenvironment Trajectories on Spatial Transcriptomics with NicheFlow
Kristiyan Sakalyan, Alessandro Palma, Filippo Guerranti, Fabian J. Theis, Stephan Günnemann
TL;DR
This work tackles the challenge of modeling tissue-scale spatiotemporal dynamics from time-resolved spatial transcriptomics by shifting focus from single cells to cellular microenvironments, i.e., neighborhoods represented as point clouds. It introduces NicheFlow, a flow-based generative model that combines entropic optimal transport with Variational Flow Matching, conditioned on source microenvironments, and implemented via a Microenvironment Transformer backbone. The method uses mixed-factorized posteriors for coordinates and gene expression, enabling joint generation of spatial and transcriptional changes across two consecutive timepoints, and demonstrates superior reconstruction of spatial architecture and cell-type composition across embryonic development, brain development, and aging datasets compared with baselines. The results are supported by a suite of metrics (PSD/SPD, 1NN-F1, GW/FGW, Wasserstein) and qualitative analyses, underscoring the potential of principled, region-level generative modeling for perturbation prediction and multi-omics integration in spatial biology.
Abstract
Understanding the evolution of cellular microenvironments in spatiotemporal data is essential for deciphering tissue development and disease progression. While experimental techniques like spatial transcriptomics now enable high-resolution mapping of tissue organization across space and time, current methods that model cellular evolution operate at the single-cell level, overlooking the coordinated development of cellular states in a tissue. We introduce NicheFlow, a flow-based generative model that infers the temporal trajectory of cellular microenvironments across sequential spatial slides. By representing local cell neighborhoods as point clouds, NicheFlow jointly models the evolution of cell states and spatial coordinates using optimal transport and Variational Flow Matching. Our approach successfully recovers both global spatial architecture and local microenvironment composition across diverse spatiotemporal datasets, from embryonic to brain development.
