cs.LGOct 7, 2026

Learning Traffic Flow Dynamics with Stochastic Physics-Informed Neural Cellular Automata

Authors: Federica Bragone, Matthieu Barreau

Organizations: Department of Decision and Control Systems, KTH Royal Institute of Technology, Stockholm, Sweden

Abstract

Traffic flow modeling is essential for understanding and predicting the collective dynamics of vehicles on road networks. Cellular automata provide a simple, interpretable yet powerful framework for representing these dynamics via local interaction rules, while retaining the ability to reproduce complex macroscopic traffic phenomena. However, learning local transition rules from data while preserving physically meaningful constraints remains challenging, particularly for stochastic models. In this work, we propose a physics-informed neural cellular automaton (PI-NCA) for data-driven traffic flow modeling. Building on the standard neural cellular automaton (NCA), we design a neural architecture that is physically consistent with the road topology and guarantees conservation of the total number of vehicles, thereby constraining the learned transition rules to physically admissible dynamics. We further extend this framework to stochastic dynamics by parameterizing probabilistic transition rules while preserving the same physics-informed constraints. We evaluate the proposed models on multiple traffic scenarios generated by the well-established Nagel-Schreckenberg and Kerner-Klenov-Wolf cellular automata. The results demonstrate that the PI-NCA successfully learns the dynamics of both traffic models and consistently outperforms a standard NCA, while the stochastic extension captures probabilistic transition rules without compromising the imposed physical constraints.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. An Empirical Markov Chain Car-Following (MC-CF) Model

    Date pendingSungyong Chung, Yanlin Zhang, Nachuan Li +2Microscopic Traffic Simulations

  2. CIWI-CKT: Chaos-Informed Wave Interference Feature Fusion and Cross-City Knowledge Transfer for Traffic Flow Forecasting

    Jun 14, 2026Abdul Joseph Fofanah, Lian Wen, David Chen +1Accurate Traffic ForecastingTraffic

  3. SpinFlow: A Physics-Informed Spin Field Framework for Traffic Phase Inference and Transition Detection

    May 22, 2026Haopeng Deng, Fucheng Zheng, Xinhai XiaTrafficCongestion