Reproducible motor traffic AADT estimation across the Leeds Local Authority
District (E08000035) with AequilibraE and open
network-cleaning tools, validated against Department for Transport (DfT) Annual
Average Daily Flow (AADF) counts.
The starting baseline is the AequilibraE assignment configuration (aon and
ue_bfw variants) from the
aadtbench benchmark (leeds-v1
case). Building on that baseline, this repository quantifies the topological,
computational, and predictive gains of multi-stage OpenStreetMap (OSM) network
cleaning and attribute fusion using open Rust tools developed in the
csis ecosystem.
- Central Leeds motor traffic AADT estimate: Generate a link-level estimate
of daily motor traffic (
motor, pluscar/light-motor andheavysub-classes) across the Leeds LAD road network (data/processed/leeds_lad_aadt.parquet). - Quantify the benefit of network cleaning: Compare five progressive
representations — unfiltered raw OSM (
N0), motor-filtered raw OSM (N1), minimal Python topological cleaning (N2), fullcsisRust graph cleaning and lane/speed welding (N3), and modal-filter-severed strategic motor network (N4) — across link counts, network length, connectivity, runtime, count-site accuracy, and network-wide vehicle-kilometres. - Open vs proprietary ecosystem comparison: Document how open tools
(
AequilibraE,osmget,osmactive,netfit/netclean,netweld,countsget) compare against closed strategic assignment suites such as SATURN (Feature comparison).
paper/index.qmd— Camera-ready Quarto paper with reproducible Python chunks reading committed Parquet caches indata/processed/.paper/figs/— Publication figures generated byscripts/04_make_figures.py.features_table.qmd— Feature comparison of open vs closed motor traffic modelling tools.scripts/— End-to-end Python build pipeline:scripts/01_prepare_counts.py— NormalisescountsgetDfT AADF tables, computes Leeds LAD Major Road Network VKM reference totals, and assigns 5-fold 3 km spatial cross-validation blocks.scripts/02_clean_networks.py— Builds the five network cleaning variants (N0–N4) using Python (geopandas/scipy/shapely) and thecsisRust toolchain (osmget,osmactive,netfit/netclean,netweld).scripts/03_run_assignments.py— Runs the AequilibraE assignment matrix (aon,ue_bfw, multi-class SRN-cordonue_improved, and spatially blockedcsis-style calibration), stepwise ablation, and DfT validation.scripts/04_make_figures.py— Renders all five figures underpaper/figs/.
data/— Committed inputs (leeds-lad.geojson,data/dft/*.parquet) and compact processed caches (data/processed/*.parquet,< 10 MBtotal)..github/workflows/site.yml— Renders and deploys the Quarto website to GitHub Pages on push.
All summary tables, inline metrics, and figures in paper/index.qmd
can be rendered directly from the committed Parquet caches in data/processed/
without requiring external datasets or local Rust binaries:
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt jupyter tabulate
QUARTO_PYTHON=.venv/bin/python quarto renderRendered HTML outputs are written to _site/index.html and
_site/paper/index.html.
Rebuilding data/processed/*.parquet and paper/figs/*.png from raw OSM and
synthetic OD inputs requires:
- Local checkout of the
aadtbenchleeds-v1benchmark case at~/github/robinlovelace/aadtbench/cases/leeds-v1/. - Release binaries of the open Rust network toolchain:
Run the four numbered pipeline scripts in order, then render the Quarto site:
source .venv/bin/activate
python scripts/01_prepare_counts.py
python scripts/02_clean_networks.py
python scripts/03_run_assignments.py
python scripts/04_make_figures.py
QUARTO_PYTHON=.venv/bin/python quarto render| Component | Source / Repository | Path / Role |
|---|---|---|
| Leeds LAD boundary | ONS Open Geography Portal (E08000035, OGL v3.0) |
data/leeds-lad.geojson |
| DfT AADF traffic counts | DfT Road Traffic Statistics via countsget (OGL v3.0) |
data/dft/*.parquet |
| Raw OSM & synthetic OD | aadtbench leeds-v1 case (ODbL 1.0) |
cases/leeds-v1/ |
| PBF highway & barrier ingest | osmget |
scripts/02_clean_networks.py |
| UK modal access & modal filters | osmactive (rules/gb.toml) |
scripts/02_clean_networks.py |
| 14-stage graph consolidation | netfit (netclean crate) |
scripts/02_clean_networks.py |
| Lane & speed limit conflation | netweld |
scripts/02_clean_networks.py |
| Equilibrium assignment | AequilibraE (BFW User Equilibrium) | scripts/03_run_assignments.py |
- DfT AADF traffic counts and ONS administrative boundaries: Contains public sector information licensed under the Open Government Licence v3.0.
- OpenStreetMap network data and derived link geometries: © OpenStreetMap contributors, licensed under the Open Data Commons Open Database License (ODbL) v1.0.