Modeling Microenvironment Trajectories on Spatial Transcriptomics with NicheFlow

Stephan Günnemann (Technical University Munich) · Kristiyan Sakalyan (Technical University of Munich) · Alessandro Palma (Helmholtz München) · Filippo Guerranti (Technical University of Munich) · Fabian Theis (Technical University Munich)
cellular microenvironmentscellular statesdisease progressionflow-based generative modelmicroenvironment compositionnicheflowoptimal transportpoint cloudssingle-cell levelspatial architecturespatial transcriptomicsspatiotemporal datatemporal trajectorytissue developmentvariational flow matching

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.