An alternative to origin-destination matrix adjustment: Calibrating mode choice from traffic counts in MATSim

Abdelkader Dib, Milos BalacarXiv 2026

TL;DR

When simulated traffic doesn't match real-world road sensors, transport modelers usually tweak where people are going. This paper flips the script: it keeps everyone's home, workplace, and daily schedule intact, and instead nudges whether individual simulated travellers choose to drive. Tested on the Swiss national transport model, this approach boosts traffic count accuracy significantly while keeping national and regional mode shares spot-on.

What Problem Does This Paper Address?

Traffic counters on a highway tell you how many cars pass by, but they reveal nothing about who is driving, where they started, or where they are headed. In traditional four-step transport models, if simulated traffic doesn't match observed counts, analysts adjust the origin–destination (OD) matrix—essentially shifting trips between zones until the numbers line up.

In activity-based models, however, a synthetic population is carefully built from censuses and travel surveys to assign realistic homes, workplaces, and daily schedules. Moving destinations around solely to fit road sensors throws away that valuable information. The authors ask a different question: if we trust where people live and work, can we fix traffic mismatches simply by calibrating which trips are made by car?

Methods

The authors implement their approach in eqasim, an activity-based pipeline for the MATSim simulator. Unlike standard MATSim setups that score and select among multiple stored daily plans (such as Cadyts), eqasim's discrete mode choice extension lets each agent keep a single daily plan and re-evaluate feasible modes at each iteration.

What's new: Instead of adjusting OD matrices or plan scores, the authors introduce an agent-specific car alternative-specific constant (ASC)—essentially a personal "car-liking" offset—directly into each agent's mode-choice utility.

Here is how it works during a single 400-iteration simulation run:

  1. Spatial pooling: At scheduled iterations, simulated car flows are compared against observed counts. Discrepancies are pooled by ordered origin–destination zone pairs. Notably, even an agent currently taking public transport receives a car-utility nudge if drivers travelling between the same zones encounter a count mismatch.
  2. Adaptive grid refinement: The spatial grid starts coarse (16 km squares) to capture broad motorway patterns, then progressively splits in denser areas (down to 200 m squares) so local corridors can receive distinct corrections.
  3. Aggregate mode-share control: While individual constants shift who drives, an aggregate controller at the national and cantonal levels adjusts shared mode constants so overall mode shares (car, public transport, walking, cycling, and car passenger) remain anchored to survey targets.

Datasets

  • Swiss national eqasim scenario: A 10% population sample (645,589 eligible agents) generated from Swiss census and mobility microdata (Swiss Federal Statistical Office / Microcensus).
  • Traffic counts: 2,371 weekday traffic count observations from Swiss federal and cantonal sources, alongside a separate subset of 216 observations from the Swiss Federal Roads Office (ASTRA) located primarily on major roads.

Key Insights and Ideas

  • Spatial allocation matters: Aggregate car use can be identical regardless of which specific four out of ten travellers drive, but which roads get congested depends entirely on their origins and destinations.
  • Heterogeneous preferences: By iteration 400, roughly half of the eligible agents (49.4%) finished with their initial constant of zero (often due to sparse count coverage or cancelling daily signals). The remaining agents formed a broadly bell-shaped, slightly right-skewed distribution, showing varied local corrections to car propensity.
  • No demographic distortion: Even with individual car constants, simulated mode shares across cantons, trip-distance bins, and age groups closely followed the Microcensus.
  • Border effects: Count stations near the Swiss border barely changed between the baseline and calibrated runs, because most of their traffic consists of fixed cross-border background traffic that does not undergo mode choice.

Key Results

Across all 2,371 count stations at iteration 400, calibrating individual car ASCs substantially improved count agreement:

  • Stations with GEH ≤ 3 (a standard traffic-fit metric) rose from 50.7% to 66.5%.
  • Stations with GEH ≤ 5 increased from 73.5% to 84.4% (+10.9 percentage points).
  • Daily-flow RMSE dropped by 20.8% (from 3,261 to 2,583 vehicles/day), and $R^2$ improved from 0.945 to 0.965.

On the 216 major-road ASTRA stations, GEH ≤ 5 rose from 82.4% to 88.9%, and RMSE fell by 10.8%. However, the mean signed error across all observations became more negative (from -160 to -613 vehicles/day), indicating a slightly greater underestimation on average.

Figure 1: Observed and simulated weekday traffic at 2,371 federal and cantonal observations. Each point uses the same observed flow in both panels. Colours identify the sources. The dashed line denotes equal observed and simulated daily flows.

Limitations and Future Work

  • Late-run drift: Zone-level constants were still shifting between iterations 375 and 390, motivating future work on dynamic, OD-specific learning rates that taper off when mode shifts stop improving the fit.
  • Daily vs. hourly counts: Using daily traffic totals means morning undercounts and evening overcounts on the same corridor can cancel each other out. Hourly counts would allow separate time-of-day corrections.
  • Masking other errors: Count-based mode calibration cannot tell whether a mismatch is truly a mode-choice issue or stems from miscoded road capacities, route costs, or synthetic population noise.
  • Next steps: The authors suggest validating the stability of calibrated constants across different random seeds, holding out entire corridors from calibration, and extending the approach to public transport boardings and bicycle counts.

Summary updated

BibTeX
@misc{dib2026alternative,
  author = {Abdelkader Dib and Milos Balac},
  title = {{An alternative to origin-destination matrix adjustment: Calibrating mode choice from traffic counts in MATSim}},
  year = {2026},
  eprint = {2611.41632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.41632},
}
Figure