Abstract
Time-series spatial transcriptomics with single-cell resolution provides an opportunity to study cell differentiation, proliferation and migration in physical space over time. However, because sequencing is destructive, reconstructing spatiotemporal dynamics from snapshots remains challenging. In particular, inferring migration is difficult because samples collected at different time points often lie in different coordinate systems across biological replicates. Here we show that spatiotemporal video cassette recorder (stVCR), a generative deep-learning framework, can reconstruct continuous cell differentiation, proliferation, physical-space migration and spatial alignment in an end-to-end manner. The model integrates dynamical optimal transport in an unbalanced setting, density matching that is invariant to rigid transformations, and biologically informed priors to preserve spatial structure. stVCR also enables interpretable analysis of how phenotype transitions interact with spatial migration and proliferation. Using both simulated and real datasets, we demonstrate that stVCR is effective and robust, and we apply it to uncover spatiotemporal dynamics in axolotl brain regeneration and 3D Drosophila embryo development.
This is a preview of subscription content, access via your institution
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$32.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 print issues and online access
$259.00 per year
only $21.58 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to the full article PDF.
USD 39.95
Prices may be subject to local taxes which are calculated during checkout





Similar content being viewed by others
Data availability
All the datasets used in this paper are publicly available. The simulation datasets of synthetic circuits are available at https://github.com/QiangweiPeng/stVCR/tree/main/tutorial. The axolotl brain-regeneration datasets are freely accessible in CNGB Nucleotide Sequence Archive under accession code CNP0002068. Processed data can be downloaded from https://db.cngb.org/stomics/artista/ (ref. 59). The processed 3D Drosophila embryo datasets can be downloaded from the Spateo package53 (https://www.dropbox.com/s/bvstb3en5kc6wui/E7-9h_cellbin_tdr_v2.h5ad?dl=1 and https://www.dropbox.com/s/q02sx6acvcqaf35/E9-10h_cellbin_tdr_v2.h5ad?dl=1).
Code availability
stVCR is implemented in Python and is available at https://github.com/QiangweiPeng/stVCR. The notebooks to reproduce all the results in the paper are available at https://github.com/QiangweiPeng/stVCR/tree/main/tutorial. To reproduce the figures and tables presented in the paper, please visit our Code Ocean capsule at https://doi.org/10.24433/CO.9796381.v1 (ref. 77).
References
Gerri, C., Menchero, S., Mahadevaiah, S. K., Turner, J. M. & Niakan, K. K. Human embryogenesis: a comparative perspective. Annu. Rev. Cell Dev. Biol. 36, 411–440 (2020).
Briggs, J. A. et al. The dynamics of gene expression in vertebrate embryogenesis at single-cell resolution. Science 360, eaar5780 (2018).
Farrell, J. A. et al. Single-cell reconstruction of developmental trajectories during zebrafish embryogenesis. Science 360, eaar3131 (2018).
Tyser, R. C. et al. Single-cell transcriptomic characterization of a gastrulating human embryo. Nature 600, 285–289 (2021).
Lauffenburger, D. A. & Horwitz, A. F. Cell migration: a physically integrated molecular process. Cell 84, 359–369 (1996).
Yamada, K. M. & Sixt, M. Mechanisms of 3D cell migration. Nat. Rev. Mol. Cell Biol. 20, 738–752 (2019).
Ståhl, P. L. et al. Visualization and analysis of gene expression in tissue sections by spatial transcriptomics. Science 353, 78–82 (2016).
Rodriques, S. G. et al. Slide-seq: a scalable technology for measuring genome-wide expression at high spatial resolution. Science 363, 1463–1467 (2019).
Stickels, R. R. et al. Highly sensitive spatial transcriptomics at near-cellular resolution with Slide-seqV2. Nat. Biotechnol. 39, 313–319 (2021).
Chen, A. et al. Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays. Cell 185, 1777–1792 (2022).
Oliveira, M. F. et al. Characterization of immune cell populations in the tumor microenvironment of colorectal cancer using high definition spatial profiling. Preprint at bioRxiv https://doi.org/10.1101/2024.06.04.597233 (2024).
La Manno, G. et al. RNA velocity of single cells. Nature 560, 494–498 (2018).
Bergen, V., Lange, M., Peidli, S., Wolf, F. A. & Theis, F. J. Generalizing RNA velocity to transient cell states through dynamical modeling. Nat. Biotechnol. 38, 1408–1414 (2020).
Gao, M., Qiao, C. & Huang, Y. UniTVelo: temporally unified RNA velocity reinforces single-cell trajectory inference. Nat. Commun. 13, 6586 (2022).
Cui, H. et al. DeepVelo: deep learning extends RNA velocity to multi-lineage systems with cell-specific kinetics. Genome Biol. 25, 27 (2024).
Li, S. et al. A relay velocity model infers cell-dependent RNA velocity. Nat. Biotechnol. 42, 99–108 (2024).
Gayoso, A. et al. Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells. Nat. Methods 21, 50–59 (2024).
Farrell, S., Mani, M. & Goyal, S. Inferring single-cell transcriptomic dynamics with structured latent gene expression dynamics. Cell Rep. Methods 3, 100581 (2023).
Li, T., Shi, J., Wu, Y. & Zhou, P. On the mathematics of RNA velocity I: theoretical analysis. CSIAM Trans. Appl. Math. 2, 1–55 (2021).
Battich, N. et al. Sequencing metabolically labeled transcripts in single cells reveals mRNA turnover strategies. Science 367, 1151–1156 (2020).
Erhard, F. et al. scSLAM-seq reveals core features of transcription dynamics in single cells. Nature 571, 419–423 (2019).
Qiu, Q. et al. Massively parallel and time-resolved RNA sequencing in single cells with scNT-seq. Nat. Methods 17, 991–1001 (2020).
Cao, J., Zhou, W., Steemers, F., Trapnell, C. & Shendure, J. Sci-fate characterizes the dynamics of gene expression in single cells. Nat. Biotechnol. 38, 980–988 (2020).
Hendriks, G.-J. et al. NASC-seq monitors RNA synthesis in single cells. Nat. Commun. 10, 3138 (2019).
Lin, S. et al. Well-TEMP-seq as a microwell-based strategy for massively parallel profiling of single-cell temporal RNA dynamics. Nat. Commun. 14, 1272 (2023).
Qiu, X. et al. Mapping transcriptomic vector fields of single cells. Cell 185, 690–711 (2022).
Peng, Q., Qiu, X. & Li, T. Storm: incorporating transient stochastic dynamics to infer the RNA velocity with metabolic labeling information. PLoS Comput. Biol. 20, e1012606 (2024).
Schiebinger, G. et al. Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell 176, 928–943 (2019).
Bunne, C., Schiebinger, G., Krause, A., Regev, A. & Cuturi, M. Optimal transport for single-cell and spatial omics. Nat. Rev. Methods Prim. 4, 58 (2024).
Zhang, Z., Sun, Y., Peng, Q., Li, T. & Zhou, P. Integrating dynamical systems modeling with spatiotemporal scRNA-seq data analysis. Entropy 27, 453 (2025).
Zhang, Z. et al. Deciphering cell-fate trajectories using spatiotemporal single-cell transcriptomic data. NPJ Syst. Biol. Appl. 12, 2 (2025).
Tong, A., Huang, J., Wolf, G., Van Dijk, D. & Krishnaswamy, S. TrajectoryNet: a dynamic optimal transport network for modeling cellular dynamics. Int. Conf. Mach. Learn. 119, 9526–9536 (2020).
Tong, A. et al. Learning transcriptional and regulatory dynamics driving cancer cell plasticity using neural ODE-based optimal transport. Preprint at bioRxiv https://doi.org/10.1101/2023.03.28.534644 (2023).
Benamou, J.-D. & Brenier, Y. A computational fluid mechanics solution to the Monge-Kantorovich mass transfer problem. Numerische Mathematik 84, 375–393 (2000).
Huguet, G. et al. Manifold interpolating optimal-transport flows for trajectory inference. Adv. Neural Inf. Process. Syst. 35, 29705–29718 (2022).
Tong, A. et al. Improving and generalizing flow-based generative models with minibatch optimal transport. Trans. Mach. Learn. Res. 1–34 (2024).
Neklyudov, K., Brekelmans, R., Severo, D. & Makhzani, A. Action matching: learning stochastic dynamics from samples. In Proc. 40th International Conference on Machine Learning (eds Krause, A. et al.) 25858–25889 (PMLR, 2023).
Neklyudov, K. et al. A computational framework for solving Wasserstein Lagrangian flows. In Proc. 41st International Conference on Machine Learning (eds Salakhutdinov, R. et al.) 37461–37485 (PMLR, 2024).
Zhang, K., Zhu, J., Kong, D. & Zhang, Z. Modeling single cell trajectory using forward-backward stochastic differential equations. PLoS Comput. Biol. 20, e1012015 (2024).
Jiang, Q. & Wan, L. A physics-informed neural SDE network for learning cellular dynamics from time-series scRNA-seq data. Bioinformatics 40, ii120–ii127 (2024).
Tong, A. Y. et al. Simulation-free Schrödinger bridges via score and flow matching. In Proc. 27th International Conference on Artificial Intelligence and Statistics (eds Dasgupta, S. et al.) 1279–1287 (PMLR, 2024).
Pariset, M., Hsieh, Y.-P., Bunne, C., Krause, A. & De Bortoli, V. Unbalanced diffusion Schrödinger bridge. ICML Workshop on New Frontiers in Learning, Control, and Dynamical Systems (2023).
Sha, Y., Qiu, Y., Zhou, P. & Nie, Q. Reconstructing growth and dynamic trajectories from single-cell transcriptomics data. Nat. Mach. Intell. 6, 25–39 (2024).
Chizat, L., Peyré, G., Schmitzer, B. & Vialard, F.-X. An interpolating distance between optimal transport and Fisher–Rao metrics. Found. Computational Math. 18, 1–44 (2018).
Wang, D. et al. Joint velocity-growth flow matching for single-cell dynamics modeling. In Proc. 39th Conference on Neural Information Processing Systems (2025); https://openreview.net/forum?id=aXAkNlbnGa
Peng, Q. et al. WFR-FM: simulation-free dynamic unbalanced optimal transport. In Proc. 14th International Conference on Learning Representations (2026); https://openreview.net/forum?id=1nqu7bK1mm
Zhang, Z., Li, T. & Zhou, P. Learning stochastic dynamics from snapshots through regularized unbalanced optimal transport. In Proc. 13th International Conference on Learning Representations (2025); https://openreview.net/forum?id=gQlxd3Mtru
Bunne, C. et al. Learning single-cell perturbation responses using neural optimal transport. Nat. Methods 20, 1759–1768 (2023).
Zeira, R., Land, M., Strzalkowski, A. & Raphael, B. J. Alignment and integration of spatial transcriptomics data. Nat. Methods 19, 567–575 (2022).
Mémoli, F. Gromov–Wasserstein distances and the metric approach to object matching. Found. Comput, Math. 11, 417–487 (2011).
Klein, D. et al. Mapping cells through time and space with moscot. Nature 638, 1065–1075 (2025).
Scetbon, M. & Cuturi, M. Low-rank optimal transport: approximation, statistics and debiasing. Adv. Neural Inf. Process. Syst. 35, 6802–6814 (2022).
Qiu, X. et al. Spatiotemporal modeling of molecular holograms. Cell 187, 7351–7373 (2024).
Halmos, P. et al. DeST-OT: alignment of spatiotemporal transcriptomics data. Cell Syst. 16, 101160 (2025).
Gu, Y. et al. Topological velocity inference from spatial transcriptomic data. Nat. Biotechnol. https://doi.org/10.1038/s41587-025-02688-8 (2025).
Zhou, P., Bocci, F., Li, T. & Nie, Q. Spatial transition tensor of single cells. Nat. Methods 21, 1053–1062 (2024).
Flamary, R. et al. POT: Python optimal transport. J. Mach. Learn. Res. 22, 1–8 (2021).
Chen, R. T., Rubanova, Y., Bettencourt, J. & Duvenaud, D. K. Neural ordinary differential equations. Adv. Neural Inf. Process. Syst. 31, 6572–6583 (2018).
Wei, X. et al. Single-cell stereo-seq reveals induced progenitor cells involved in axolotl brain regeneration. Science 377, eabp9444 (2022).
Schönemann, P. H. A generalized solution of the orthogonal procrustes problem. Psychometrika 31, 1–10 (1966).
Cheng, M. et al. Three-dimension transcriptomics maps of whole mouse embryo during organogenesis. Preprint at bioRxiv https://doi.org/10.1101/2024.08.17.608366 (2024).
Liu, X., Zeira, R. & Raphael, B. J. Partial alignment of multislice spatially resolved transcriptomics data. Genome Res. 33, 1124–1132 (2023).
Jin, S. et al. Inference and analysis of cell-cell communication using CellChat. Nat. Commun. 12, 1088 (2021).
Efremova, M., Vento-Tormo, M., Teichmann, S. A. & Vento-Tormo, R. CellPhoneDB: inferring cell–cell communication from combined expression of multi-subunit ligand–receptor complexes. Nat. Protoc. 15, 1484–1506 (2020).
Zhang, Z., Wang, Z., Sun, Y., Li, T. & Zhou, P. Modeling cell dynamics and interactions with unbalanced mean field Schrödinger bridge. In Proc. 39th Annual Conference on Advances in Neural Information Processing Systems (2025); https://openreview.net/forum?id=Z6DJJIN8IJ
Ichbiah, S., Delbary, F., McDougall, A., Dumollard, R. & Turlier, H. Embryo mechanics cartography: inference of 3D force atlases from fluorescence microscopy. Nat. Methods 20, 1989–1999 (2023).
Noll, N., Streichan, S. J. & Shraiman, B. I. Variational method for image-based inference of internal stress in epithelial tissues. Phys. Rev. X 10, 011072 (2020).
Wang, K. et al. PhyloVelo enhances transcriptomic velocity field mapping using monotonically expressed genes. Nat. Biotechnol. 42, 778–789 (2024).
Li, C., Virgilio, M. C., Collins, K. L. & Welch, J. D. Multi-omic single-cell velocity models epigenome–transcriptome interactions and improves cell fate prediction. Nat. Biotechnol. 41, 387–398 (2023).
Peyré, G. & Cuturi, M. in Foundations and Trends in Machine Learning Vol. 11, 355–607 (Now Publishers, 2019).
Liero, M., Mielke, A. & Savaré, G. Optimal transport in competition with reaction: the Hellinger–Kantorovich distance and geodesic curves. SIAM J. Math. Anal. 48, 2869–2911 (2016).
Kondratyev, S., Monsaingeon, L. & Vorotnikov, D. A new optimal transport distance on the space of finite Radon measures. Adv. Differential Equ. 21, 1117 – 1164 (2016).
Cohen, S. & Guibasm, L. The earth mover’s distance under transformation sets. Proc. Seventh IEEE Int. Conf. Computer Vis. 2, 1076–1083 (1999).
Shi, J., Aihara, K., Li, T. & Chen, L. Energy landscape decomposition for cell differentiation with proliferation effect. Natl. Sci. Rev. 9, nwac116 (2022).
Bishop, C. M. & Bishop, H. Deep Learning: Foundations and Concepts (Springer Nature, 2024).
Fang, Z., Liu, X. & Peltz, G. GSEApy: a comprehensive package for performing gene set enrichment analysis in Python. Bioinformatics 39, btac757 (2023).
Peng, Q. stVCR: spatiotemporal dynamics of single cell. Code Ocean https://doi.org/10.24433/CO.9796381.v1 (2026).
Acknowledgements
T.L. and Q.P. acknowledge the support of the National Key R&D Program of China under grant 2021YFA1003301, and National Science Foundation of China under grant 12288101. P.Z. acknowledges the support of the National Science Foundation of China under grants 12288101 and 8206100646, and the Fundamental Research Funds for the Central Universities. We also thank the High-performance Computing Platform of Peking University.
Author information
Authors and Affiliations
Contributions
All authors conceived the project. Q.P. designed and implemented the algorithm, and performed data analysis. All authors interpreted the results and wrote the paper. Q.P. wrote the supplementary materials. P.Z. and T.L. supervised the research.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Methods thanks the anonymous reviewers for their contribution to the peer review of this work. Primary Handling Editor: Lin Tang, in collaboration with the Nature Methods team.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information (download PDF )
Supplementary Notes 1–6, Figs. 1–14, captions for Videos 1–16, Tables 1–12 and References.
Supplementary Videos 1–16 (download ZIP )
All supplementary videos of our stVCR paper.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Peng, Q., Zhou, P. & Li, T. stVCR: spatiotemporal dynamics of single cells. Nat Methods 23, 542–553 (2026). https://doi.org/10.1038/s41592-026-03010-3
Received:
Accepted:
Published:
Version of record:
Issue date:
DOI: https://doi.org/10.1038/s41592-026-03010-3


