Precomputed Spatial Context for Urban Agent-Based Models: Runtime Gains and Output Trade-Offs
Urban agent-based models repeatedly retrieve spatial context and select destinations from largely static urban data. Precomputing these operations can reduce runtime but may also change simulated outcomes. We evaluate a spatial backend that combines H3-indexed context, cached accessibility and bounded retrieval of real points of interest, with the moving-agent state kept separate, against a continuous-coordinate BallTree reference in Madrid, Cambridge (Massachusetts) and New York City. With shared inputs and scoring parameters, the H3 implementation is 2.9–4.2× faster for one million independent destination decisions and 2.2–3.3× faster in temporal decision loops with 104–105 agents, excluding routing. The cold-start break-even ranges from about 10,000 to 266,000 decisions, and the short New York run remains slower overall. In paired 10,000-agent simulations, the exact destination agreement is 71.1–75.2% for first decisions and 59.2–64.9% across five decisions. H7 origin–destination flows remain strongly correlated (r=0.9945–0.9990), whereas H9 normalized absolute errors reach 0.411–0.537 for flows and 0.449–0.626 for occupancy. Across five population seeds, H9 origin–destination flow deviations exceed between-seed sampling variation only in Cambridge. Comparisons with observed mobility flows show substantial discrepancies for both implementations. The runtime benefit depends on workload and reuse, while the suitability of the approximation depends on the spatial resolution required for the intended analysis.
Authors
- Parfait Atchade-Adelomou (ORCID: https://orcid.org/0000-0003-2725-277X)
- Kent Larson (ORCID: https://orcid.org/0000-0003-4581-7500)
- Luis Alonso (ORCID: https://orcid.org/0000-0001-9471-1484)
- Adrian Mora (ORCID: https://orcid.org/0000-0002-0511-2488)
Institutions
- MIT Media Lab (US)
- Massachusetts Institute of Technology (US)
- Universidad Politécnica de Madrid (ES)
Publication Details
- Journal
- ISPRS International Journal of Geo-Information
- Published
- 2026-12-03
- DOI
- https://doi.org/10.3390/ijgi15120547
- Primary Topic
- Human Mobility and Location-Based Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00