Machine Generalize Learning in Agent-Based Models: Going Beyond Surrogate Models for Calibration in ABMs

Sima Najafzadehkhoei, George Vega Yon, Bernardo Modenesi, Derek S. Meyer
9/6/2025
cs.LGq-bio.PEstat.ME

No confident code implementation found for this paper.

Abstract

Calibrating agent-based epidemic models is computationally demanding. We present a supervised machine learning calibrator that learns the inverse mapping from epidemic time series to SIR parameters. A three-layer bidirectional LSTM ingests 60-day incidence together with population size and recovery rate, and outputs transmission probability, contact rate, and R0. Training uses a composite loss with an epidemiology-motivated consistency penalty that encourages R0 \* recovery rate to equal transmission probability \* contact rate. In a 1000-scenario simulation study, we compare the calibrator with Approximate Bayesian Computation (likelihood-free MCMC). The method achieves lower error across all targets (MAE: R0 0.0616 vs 0.275; transmission 0.0715 vs 0.128; contact 1.02 vs 4.24), produces tighter predictive intervals with near nominal coverage, and reduces wall clock time from 77.4 s to 2.35 s per calibration. Although contact rate and transmission probability are partially nonidentifiable, the approach reproduces epidemic curves more faithfully than ABC, enabling fast and practical calibration. We evaluate it on SIR agent based epidemics generated with epiworldR and provide an implementation in R.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{najafzadehkhoei2025machine,
  title  = {Machine Generalize Learning in Agent-Based Models: Going Beyond Surrogate Models for Calibration in ABMs},
  author = {Sima Najafzadehkhoei and George Vega Yon and Bernardo Modenesi and Derek S. Meyer},
  year   = {2025},
  eprint = {2509.07013},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.07013v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.07013.svg)](https://codeofpaper.com/paper/2509.07013)

Discussion