Fourier neural operator for learning solutions to macroscopic traffic flow models: Application to the forward and inverse problems

Bilal Thonnam Thodi, Sai Venkata Ramana Ambadipudi, Saif Eddin JabariarXiv 2023 · DOI

Introduction: The Challenge of Macroscopic Traffic Modeling

Macroscopic traffic flow is traditionally modeled using non-linear hyperbolic partial differential equations (PDEs), most notably the Lighthill-Whitham-Richards (LWR) model. These equations are essential for understanding traffic dynamics but present significant computational challenges. Specifically, they produce shocks—sudden jumps in density, such as the back of a traffic jam—and rarefactions, which are gradual clearings of traffic.

Shock and rarefaction solutions in macroscopic traffic flow.

Traditional numerical solvers, like the Godunov scheme, are computationally intensive and constrained by the Courant–Friedrichs–Lowry (CFL) condition, which limits the allowable time step based on spatial resolution. While deep learning approaches like Physics-Informed Neural Networks (PINNs) have emerged, they often struggle with traffic shocks because they rely on differential forms of PDEs; at a shock front, derivatives are undefined, leading to poor convergence.

Methodology: Introducing $\pi$-FNO

To address these limitations, this research introduces the Physics-Informed Fourier Neural Operator ($\pi$-FNO). This framework combines the speed of neural operators with the mathematical rigor of traffic physics.

The $\pi$-FNO architecture rests on three pillars:

  1. Fourier Neural Operator (FNO): Unlike standard neural networks that map discrete vectors, FNOs map between continuous function spaces by operating in the Fourier domain. This allows the model to be "resolution-independent," meaning it can be trained on one grid and evaluated on another.
  2. Integral Physics Loss: This is the core innovation. Instead of penalizing the differential form of the LWR equation, the authors employ the integral form of the conservation law. This ensures that the total number of vehicles is conserved across any space-time block, allowing the model to accurately represent discontinuities like shocks without numerical "blow-up."
  3. Strategic Data Distribution: The model is trained on "elementary" solutions generated from random piecewise constant initial conditions and wavelet-like boundary conditions. This "training diet" enables the model to learn fundamental wave interactions that generalize to complex real-world scenarios.

Data and Training Curriculum

The researchers utilized both synthetic and real-world data:

  • Synthetic Data: Generated using the Godunov scheme, the training set ranged from simple 2-step initial conditions to complex 40-step distributions. This curriculum allowed the model to learn basic dynamics before tackling high-complexity traffic states.
  • Real-World Validation (pNeuma): High-resolution vehicle trajectories from drone footage in Athens, Greece, were used. A small subset of 25 samples was sufficient to fine-tune the simulation-trained model for real-world application.

Results and Performance

The $\pi$-FNO framework demonstrates exceptional accuracy and efficiency across both forward (prediction) and inverse (state estimation) problems.

Model outputs and inputs for simple (Example 1) and complex (Example 2) traffic scenarios.

Key findings include:

  • High Accuracy: The model achieved an overall Mean Absolute Error (MAE) of less than 2.30 vehs/km (under 2.5% error).
  • Physics Regularization: Incorporating the integral physics loss reduced prediction error by nearly 50% compared to a standard, physics-blind FNO.
  • Computational Speed: For state estimation tasks, $\pi$-FNO outperformed traditional methods like the Extended Kalman Filter (EKF) at high resolutions, providing results in a single forward pass.
  • Generalization: A model trained on simple dynamics (e.g., 2-3 vehicle queues) generalized remarkably well to scenarios with up to 40 queues, with error growing only sub-linearly.

Conclusion and Future Directions

The $\pi$-FNO offers a unified, fast, and physically consistent solver for macroscopic traffic flow. By leveraging the integral form of conservation laws, it successfully bridges the gap between deep learning and classical traffic theory.

While highly effective, some limitations remain. The authors noted minor "dispersion" or loss of sharpness in solutions over very long time horizons and some "smearing" at high-frequency boundaries. Future work will focus on scaling this approach from single road links to large-scale, city-wide networks with non-uniform grids.

Summary updated

BibTeX
@misc{thodi2023fourier,
  author = {Bilal Thonnam Thodi and Sai Venkata Ramana Ambadipudi and Saif Eddin Jabari},
  title = {{Fourier neural operator for learning solutions to macroscopic traffic flow models: Application to the forward and inverse problems}},
  year = {2023},
  eprint = {2308.07051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.07051},
}
Figure