arXiv:2608.30317cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30317

Online Estimation of Dynamic Origin-Destination Matrices Using Reinforcement Learning with Link-Flow Propagation Guidance

Donggyu Min, Dong-Kyu Kim

Abstract

Online dynamic origin–destination (OD) matrix estimation (DODE) calibrates time-dependent OD demand to reproduce observed link-flow trajectories. In online, OD demand should be estimated from current observations and propagated network states while subsequent observations and stochastic dynamic network loading (DNL) outcomes remain uncertain. Recently, reinforcement learning (RL) has emerged as a promising alternative, reducing computational burden by replacing iterative algorithms while being applicable to stochastic environments. However, because the policy is trained offline and deployed online, it must handle varying target link-flow trajectories; since each target trajectory defines the link-flow error used in the reward, the same OD demand vector can require different adjustments, making conventional scalar feedback ambiguous. To address this gap, this study proposes LFPG-RL, which integrates link-flow propagation guidance (LFPG) into proximal policy optimization (PPO). LFPG combines link-flow error sensitivities with the contribution of each OD-time demand component to simulated link flows, transforming aggregate mismatch into OD-specific advantage shaping for PPO actor updates. At deployment, the policy requires only a single forward pass. LFPG-RL is developed and evaluated on 250 weekday trajectories of 15-min link-flow data from a Melbourne arterial network modeled by a link transmission model with stochastic route choice. On held-out trajectories, LFPG-RL achieved an RMSE of 4.69, MAPE of 20.15%, and Pearson correlation of 0.995. These results support the contention that our method is a more efficient and accurate online OD demand calibration method compared to existing ones.

1 Introduction

Traffic simulations are useful for supporting operational decision-making when they remain consistent with observed field conditions. Since route guidance, signal control, and other management strategies are typically tested in simulation, calibration is essential for reliable evaluation [1, 2]. A key element of calibration is dynamic origin-destination (OD) matrix estimation (DODE), which derives time-dependent OD demand inputs that reproduce observed link flows [3–5].

Dynamic OD matrix estimation is complicated by dynamic network loading (DNL), whose effects are nonlinear, time-delayed, and often stochastic [6–8]. Online DODE is even more demanding due to tight computational budgets and the inability to retroactively revise an OD matrix once committed for the current interval. These challenges have motivated a long line of computationally efficient methods [5, 8–12]. While these methods have substantially advanced online calibration, many still

∗^{*}Corresponding author.

Preprint.

require repeated updates or evaluations during operation, limiting their applicability within short decision intervals.

Reinforcement learning (RL) offers an alternative. By formulating DODE as a sequential decision problem, a policy can be trained offline across many scenarios to map the current state—including observed link flows and the propagated network state—to the current OD demand vector. At deployment, this requires only a single forward pass through the learned policy. Recent work has explored this direction, suggesting that RL can be extended to online calibration [13].

Although this amortization reduces the online computational burden, it shifts the primary challenge to policy generalization: whether the pre-trained policy can adapt to various target link-flow trajectories during deployment. Conventional methods, such as sequential filtering and online optimization, can reapply their update or search procedures as new observations arrive for each realized trajectory. In contrast, the RL method must provide a generalized policy effective across different network conditions and target trajectories, rather than one tailored to a single scenario.

This generalization problem is compounded by scalar reward feedback. In each rollout, link-flow mismatch is aggregated into a scalar reward. Consequently, the same OD demand vector can produce different error patterns because the remaining target link-flow trajectory varies across days or network conditions. Conversely, similar scalar rewards may correspond to distinct error patterns. A standard policy-gradient update, therefore, only indicates whether the sampled OD vector improved the aggregate objective, failing to identify the specific OD components that cause downstream link-flow errors. Under DNL, where a single OD component can affect multiple links and subsequent intervals, such scalar feedback provides weak guidance for learning a generalized policy.

To address this limitation, this study proposes LFPG-RL, an RL framework that introduces link-flow propagation guidance (LFPG) for online DODE. The central idea is to use DNL rollouts not only to evaluate candidate OD demand but also as sources of propagation information. For each OD pair and departure interval, a completed rollout records how generated vehicles contribute to downstream link flows. By combining these propagated contributions with link-flow errors, LFPG translates aggregate link-flow mismatch into component-level guidance for the associated OD demand. Similar propagation structures have been exploited in modern gradient-based offline DODE formulations [14], but standard policy-gradient methods do not directly utilize them as learning signals [13].

LFPG-RL incorporates this information through advantage shaping within proximal policy optimization (PPO). Standard generalized advantage estimation (GAE) reduces variance and stabilizes temporal advantage estimation, but still produces a scalar advantage estimate for each decision step [15]. The proposed actor update retains the GAE-based global PPO term and adds a separate LFPG shaping term derived from realized link-flow propagation patterns and local reward sensitivities to downstream errors. This yields policy updates informed not only by aggregate future mismatch, but also by how that mismatch links to specific OD-time demand components through propagated link-flow contributions. The LFPG signal is used strictly during training and requires no additional DNL evaluations at deployment.

In summary, the contributions of this paper are as follows:

  1. We develop an RL-based framework for online DODE, in which the current OD demand vector is estimated from currently available link-flow observations and the propagated network state.

  2. We propose LFPG, which uses DNL rollout records to relate OD-time demand contributions to link-flow errors for different target trajectories.

  3. We incorporate LFPG into PPO actor updates and evaluate LFPG-RL using field data against conventional online baselines.

References (25)