Model learns cell and tissue changes correcting for movement and shifts
Horizontal Flow Matching for Single-Cell Spatiotemporal Dynamics
Machine LearningArtificial Intelligence
Summary
Studying how cells change over time is tricky because the images we get can be shifted or rotated, which looks like cells moving when they might not be. The authors created a method called horizontal flow matching that distinguishes real cell changes from simple shifts or rotations in the images. Their model, named HORIZON, can connect different snapshots of tissues and predict how cells are growing and changing over time more accurately than earlier methods. This helps scientists better understand tissue development and cell behavior by correcting for image misalignment.
What this means in practice
- •For bioinformatics teams: Improve analysis pipelines for spatial transcriptomics by accurately tracking tissue and cell changes despite positional shifts in data.
- •For computational pathology groups: Generate continuous models of tissue development from sparse snapshots to better understand disease progression.
Authors
Zihan Wang, Jianzhe Li, Zhenyi Zhang, Peijie Zhou
Abstract
Learning the spatiotemporal dynamics of cells from spatial transcriptomics requires connecting snapshots of different cells acquired in different coordinate frames. A rotation or translation of a section can appear as cell movement and distort the inferred correspondence. We introduce horizontal flow matching, which learns changes in tissue organization, molecular state, and cell abundance up to shared rigid motion. The dynamics follow a continuity--reaction equation whose action assigns no cost to shared rigid motion, and the resulting horizontal projector removes this component from spatial prediction errors during learning and from predicted velocities during generation. An equivalent endpoint problem jointly estimates correspondence and relative pose in Wasserstein--Fisher--Rao geometry and yields analytic paths whose velocity and growth serve as regression targets. Regressing these targets recovers the horizontal dynamics under ideal population conditions. Our model, HORIZON, uses an equivariant transformer to predict velocity and growth from the current tissue, so that a tissue can be generated continuously from a single initial snapshot. On a simulated tissue observed in perturbed coordinate frames, alignment improves reconstruction and projection reduces rigid drift. On four spatial transcriptomics time courses, HORIZON reconstructs tissue geometry, gene expression, and cell abundance more accurately than existing spatial and unbalanced trajectory methods, and interpolates held-out developmental stages.