From Density to Speed: Velocity-Domain Traffic Modeling with Neural Finite Volume Methods
Zhe Fu
EECS Department, University of California, Berkeley
Technical Report No. UCB/EECS-2026-254
August 14, 2026
http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-254.pdf
Traffic flow theory is written in density because vehicle count, not speed, is what gets conserved. Trajectory and probe data, though, measure speed directly, so using a density model means inferring density first. That mismatch prompts the question this report takes up: when does treating velocity itself as conserved reproduce Lighthill–Whitham–Richards (LWR) density dynamics, and where it does not, is a velocity conservation law still a useful inductive bias for modeling speed?
The answer comes in three parts. Analytically, we show that for genuinely nonlinear density fluxes, a smooth density-to-speed map preserves Rankine–Hugoniot shock speeds across all state pairs only if the map is affine. In that case weak and entropy solutions carry over intact. Outside it they do not, and the velocity law becomes a modeling hypothesis of its own. We then introduce the velocity-domain Neural Finite Volume Method (NFVM), which learns the interface flux inside a finite-volume update. Across seven conservation laws with known entropy solutions and 1,000 held-out test cases each, NFVM cuts three-seed mean RMSE by 7.6–33.5% against first-order Godunov and gives the lowest mean RMSE on four of the seven laws, with high-resolution ENO/WENO taking the other three: a real advantage, but one tied to flux geometry and training distribution. Finally we turn to real traffic data, measured speed from hwy04, a drone-captured highway recording. Here NFVM and a parameter-matched nonconservative CNN both beat every fixed-form baseline at every horizon tested. Given future boundary traces, NFVM reconstructs slightly more accurately than the CNN (3.346 vs. 3.413 m/s); without them the CNN leads at 1, 5, and 10 s and NFVM at 30 s (2.585 vs. 2.667 m/s), though only the 5-s gap survives a dependence-aware interval.
Outside the affine case, then, velocity-domain conservation is better read as a modeling bias whose value depends on the task and the forecast horizon than as an identified physical law.Whether it transfers across roads, traffic regimes, and spatial resolutions is the obvious next question.
Advisors: Alexandre Bayen
BibTeX citation:
@mastersthesis{Fu:EECS-2026-254,
Author= {Fu, Zhe},
Editor= {Bayen, Alexandre and Tomlin, Claire},
Title= {From Density to Speed: Velocity-Domain Traffic Modeling with Neural Finite Volume Methods},
School= {EECS Department, University of California, Berkeley},
Year= {2026},
Month= {Aug},
Url= {http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-254.html},
Number= {UCB/EECS-2026-254},
Abstract= {Traffic flow theory is written in density because vehicle count, not speed, is what gets conserved. Trajectory and probe data, though, measure speed directly, so using a density model means inferring density first. That mismatch prompts the question this report takes up: when does treating velocity itself as conserved reproduce Lighthill–Whitham–Richards (LWR) density dynamics, and where it does not, is a velocity conservation law still a useful inductive bias for modeling speed?
The answer comes in three parts. Analytically, we show that for genuinely nonlinear density fluxes, a smooth density-to-speed map preserves Rankine–Hugoniot shock speeds across all state pairs only if the map is affine. In that case weak and entropy solutions carry over intact. Outside it they do not, and the velocity law becomes a modeling hypothesis of its own. We then introduce the velocity-domain Neural Finite Volume Method (NFVM), which learns the interface flux inside a finite-volume update. Across seven conservation laws with known entropy solutions and 1,000 held-out test cases each, NFVM cuts three-seed mean RMSE by 7.6–33.5% against first-order Godunov and gives the lowest mean RMSE on four of the seven laws, with high-resolution ENO/WENO taking the other three: a real advantage, but one tied to flux geometry and training distribution. Finally we turn to real traffic data, measured speed from hwy04, a drone-captured highway recording. Here NFVM and a parameter-matched nonconservative CNN both beat every fixed-form baseline at every horizon tested. Given future boundary traces, NFVM reconstructs slightly more accurately than the CNN (3.346 vs. 3.413 m/s); without them the CNN leads at 1, 5, and 10 s and NFVM at 30 s (2.585 vs. 2.667 m/s), though only the 5-s gap survives a dependence-aware interval.
Outside the affine case, then, velocity-domain conservation is better read as a modeling bias whose value depends on the task and the forecast horizon than as an identified physical law.Whether it transfers across roads, traffic regimes, and spatial resolutions is the obvious next question.},
}
EndNote citation:
%0 Thesis %A Fu, Zhe %E Bayen, Alexandre %E Tomlin, Claire %T From Density to Speed: Velocity-Domain Traffic Modeling with Neural Finite Volume Methods %I EECS Department, University of California, Berkeley %D 2026 %8 August 14 %@ UCB/EECS-2026-254 %U http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-254.html %F Fu:EECS-2026-254