Abstract
This paper proposes TrafficFlowGAN, a physics-informed flow-based generative adversarial network (GAN) for uncertainty quantification (UQ) of dynamical systems. TrafficFlowGAN adopts a normalizing flow model as the generator to explicitly estimate data likelihood, trained to maximize likelihood while generating synthetic data to fool a convolutional discriminator. The training is regularized using prior physics information (Physics-Informed Deep Learning, PIDL). We demonstrate the model's performance on traffic state estimation (TSE), learning solutions to stochastic differential equations and outperforming baselines on real-world datasets like NGSIM.
Introduction
Uncertainty quantification (UQ) is critical in complex dynamical systems like urban traffic, where randomness arises from sensor noise, boundary conditions (aleatoric uncertainty), and incomplete knowledge of driving behavior (epistemic uncertainty). Traditional physics-based models struggle with high-dimensional data and non-Gaussian noise, while standard GANs often suffer from training instability and mode collapse. Normalizing Flows offer exact likelihood estimation but may lack the structural sharpness or physical consistency required for real-world engineering. TrafficFlowGAN bridges these gaps by fusing these three paradigms into a single, robust framework.
Methods
The TrafficFlowGAN architecture is built on three pillars: a conditional normalizing flow generator, a convolutional discriminator, and physics-informed regularization.
Tripartite Architecture
- Conditional Normalizing Flow Generator: Unlike standard GAN generators, this uses an invertible flow model (based on RealNVP) to perform Maximum Likelihood Estimation (MLE). To enhance stability, sigmoid functions replace standard exponential operations in flow layers, preventing gradient explosion.
- Convolutional Discriminator: By treating spatio-temporal traffic data as images, the CNN discriminator effectively identifies physical patterns like shockwaves and congestion ripples, providing a more informative adversarial signal than simple fully-connected layers.
- Physics Regularization (PIDL): The model is constrained by stochastic Partial Differential Equations (PDEs), such as the ARZ and LWR traffic models. A physics loss term ensures generated states adhere to fundamental laws, like the conservation of vehicles.
Surrogate Learning
To handle unknown physical parameters, the framework includes a surrogate neural network (s-net) that learns hidden physical relationships, such as the speed-density fundamental diagram, simultaneously during training. This allows the model to recover underlying physical laws even when they are not explicitly programmed.
Results and Insights
TrafficFlowGAN was evaluated on synthetic data generated from the ARZ model and real-world vehicle trajectory data from the NGSIM dataset.
- Mitigating Mode Collapse: The integration of likelihood loss from the Flow component prevents the GAN from collapsing to a single mode. If the generator ignores parts of the distribution, the likelihood loss spikes, forcing broader coverage.
- Robustness to Sparse Data: The physics-informed loss acts as a powerful regularizer, allowing the model to accurately "fill in" missing information even when sensor data is sparse (e.g., only a few loop detectors on a long road stretch).
- Performance Metrics: TrafficFlowGAN consistently outperformed baselines in Relative Error (RE) and Kullback-Leibler (KL) divergence, indicating superior accuracy and better matching of uncertainty distributions. While training time is higher than a pure Flow model, it remains computationally efficient for modern hardware.
Conclusion
TrafficFlowGAN represents a significant step forward in UQ for dynamical systems, ensuring that generative predictions remain physically plausible. Future work will focus on improving the model's generalizability across different road geometries and automating the balancing of the multi-component loss function (Likelihood, Adversarial, and Physics).
Summary updated