Improving policy-oriented agent-based modeling with history matching: A case study

David O’Gara, Cliff C. Kerr, Daniel J. Klein, Mickaël Binois, Roman Garnett, Ross A. Hammond

TL;DR

This paper introduces a high-efficiency calibration pipeline for complex agent-based models (ABMs) by combining "History Matching" with Gaussian process emulators. By iteratively ruling out over 99% of unpromising parameter space, the authors reduced the required simulations for the COVID-19 model Covasim from over 100,000 to just 5,300, drastically accelerating the path to reliable policy analysis.

What Problem Does This Paper Address?

Agent-Based Models (ABMs) are powerful tools for simulating social dynamics, such as disease spread, because they capture individual-level behaviors and spatial realism. However, they face a "curse of dimensionality" and high computational costs. To be useful for policy, these models must be calibrated—their input parameters must be tuned so the output matches real-world data (e.g., daily hospitalizations or deaths).

Traditional calibration methods often require tens of thousands of expensive simulation runs. For instance, the original calibration of Covasim (a widely used COVID-19 model) took nearly 35 days of computing time. Furthermore, ABMs are stochastic; a parameter set might look like a "good fit" purely due to a lucky random seed. This paper seeks a way to find robust parameter distributions that work across different random seeds while using a fraction of the computational budget.

Methods

The authors propose a sequential, three-stage technical pipeline:

  1. History Matching: Instead of searching for the "best" parameters immediately, this technique uses an implausibility measure to rule out regions of the parameter space that are mathematically unlikely to match observed data.
  2. Heteroskedastic Gaussian Process (hetGP) Emulation: Since running the full ABM is slow, the authors train a "surrogate" model (an emulator) using the hetGPy package. Unlike standard Gaussian processes, a heteroskedastic approach allows the model to account for noise that varies across the parameter space—a critical feature for stochastic simulations.
  3. Approximate Bayesian Computation (ABC): Once the search space is pruned by >99% via History Matching, the authors use ABC (specifically Sequential Monte Carlo) to estimate the posterior distribution of the remaining "not yet ruled out" parameters.

This hybrid approach is novel in the context of high-visibility COVID-19 epidemiological models, combining the pruning power of History Matching with the statistical rigor of ABC.

Datasets

  • King County COVID-19 Data: Time-series of reported diagnoses and deaths for the Seattle metro area (King County, WA) during the initial waves of the pandemic.
  • Synthpops: A library used to generate empirically informed synthetic contact networks representing households, schools, workplaces, and communities.
  • Covasim Version 2.1.2: The core simulation engine, configured with a model population of 225,000 agents (dynamically rescaled to represent 2.25 million residents).

Key Insights and Ideas

  • The Power of "Ruling Out": The authors show that it is much more efficient to identify where the "good" parameters aren't than to hunt for a single "best" point. History matching acts as a massive filter, reducing the candidate pool from 2.5 million points to roughly 21,000.
  • Parameter Interdependence: The study revealed a clear inverse relationship between the transmission rate (beta) and work/community contact reductions (bc_wc1). As the base transmission rate increases, the model requires steeper contact reductions to stay consistent with observed data—an "aha moment" that validates the model's internal logic.
  • Stability Across Seeds: By focusing on the mean behavior of repeated runs during the emulation phase, the resulting parameters are more "invariant" to the random noise inherent in ABMs. This makes the model's policy predictions more stable and trustworthy for decision-makers.

Key Results

  • Massive Speedup: The approach achieved high-fidelity calibration using only 5,300 model runs, compared to the 100,000+ runs required by previous hyperparameter optimization methods.
  • Space Pruning: Four rounds of history matching successfully ruled out over 99% of the initial parameter space volume.
  • Policy Validation: The new calibrated parameters were used to simulate a "Trace-Test-Quarantine" (TTQ) intervention. The results closely matched the findings of the original, more computationally expensive study, proving that the efficiency gain did not come at the cost of accuracy.
  • Age-Distribution Accuracy: The calibrated model successfully reproduced the age-specific histograms of diagnoses and deaths, ensuring the model wasn't just matching the total numbers but also the underlying demographics of the outbreak.

Limitations and Future Work

  • Metric Trade-offs: The authors acknowledge that prioritizing fits for reported cases and deaths might lead to less accurate fits for other metrics, such as the total number of active infections (which is harder to observe empirically).
  • Behavioral Complexity: The model uses a "symptomatic testing odds ratio" as a proxy for complex health-seeking behavior. Future work could involve integrating richer behavioral models to better capture how people react to policy changes.
  • Generalization: While this study focused on Covasim, the authors suggest these methods are directly applicable to the broader "Starsim" suite of models and other high-stakes agent-based simulations in public health.

Summary updated

BibTeX
@inproceedings{ogara2025improving,
  author = {David O’Gara and Cliff C. Kerr and Daniel J. Klein and Mickaël Binois and Roman Garnett and Ross A. Hammond},
  title = {{Improving policy-oriented agent-based modeling with history matching: A case study}},
  booktitle = {Epidemics},
  year = {2025},
  doi = {10.1016/j.epidem.2025.100845},
}

Loading related content...

Figure