Abstract
Agent-based epidemic models (ABMs) encode behavioral and policy heterogeneity but are too slow for nightly hospital planning. We develop county-ready surrogates that learn directly from exascale ABM trajectories using Universal Differential Equations (UDEs): mechanistic SEIR-family ODEs with a neural-parameterized contact rate $\kappa_\phi(u,t)$ (no additive residual). Our contributions are threefold: we adapt multiple shooting and an observer-based prediction-error method (PEM) to stabilize identification of neural-augmented epidemiological dynamics across intervention-driven regime shifts; we enforce positivity and mass conservation and show the learned contact-rate parameterization yields a well-posed vector field; and we quantify accuracy, calibration, and compute against ABM ensembles and UDE baselines. On a representative ExaEpi scenario, PEM-UDE reduces mean MSE by 77% relative to single-shooting UDE (3.00 vs. 13.14) and by 20% relative to MS-UDE (3.75). Reliability improves in parallel: empirical coverage of ABM $10$-$90$% and $25$-$75$% bands rises from 0.68/0.43 (UDE) and 0.79/0.55 (MS-UDE) to 0.86/0.61 with PEM-UDE and 0.94/0.69 with MS+PEM-UDE, indicating calibrated uncertainty rather than overconfident fits. Inference runs in seconds on commodity CPUs (20-35 s per $\sim$90-day forecast), enabling nightly ''what-if'' sweeps on a laptop. Relative to a $\sim$100 CPU-hour ABM reference run, this yields $\sim10^{4}\times$ lower wall-clock per scenario. This closes the realism-cadence gap, supports threshold-aware decision-making (e.g., maintaining ICU occupancy $<75$%), preserves mechanistic interpretability, and enables calibrated, risk-aware scenario planning on standard institutional hardware. Beyond epidemics, the ABM$\to$UDE recipe provides a portable path to distill agent-based simulators into fast, trustworthy surrogates for other scientific domains.
Introduction: The Realism-Cadence Gap
During public health crises, hospital networks and county health systems require rapid, pre-emptive decision support. Effective planning involves running hundreds of "what-if" scenarios nightly—for instance, predicting the impact of a 10% increase in local mobility on ICU occupancy.
Currently, decision-makers face a trade-off. Traditional compartmental ODE models are computationally efficient but often fail to capture the complex, granular human behaviors that drive local surges. Conversely, Agent-Based Models (ABMs) provide high-fidelity simulations of individual interactions but are prohibitively slow; a single 70-day scenario can consume 100 CPU-hours. This "realism-cadence gap" prevents the use of high-fidelity models in daily operational workflows.
Methodology: Universal Differential Equations for ABM Distillation
To bridge this gap, we introduce ABM-UDE, a framework that distills exascale ABM trajectories into fast, interpretable Universal Differential Equations (UDEs).
The core of the surrogate is a 7-state SEIR-family ODE system. Unlike standard black-box models, we embed a small neural network directly into the mechanistic infection term to represent the time-varying, behavior-driven contact rate. This structure ensures that the model strictly adheres to physical constraints, such as population mass conservation and non-negative state values.
Stabilizing Neural-Augmented Dynamics
Training UDEs on long-horizon epidemic data is challenging, particularly when abrupt policy interventions (e.g., lockdowns) create sharp regime shifts. Standard "single-shooting" methods often fail to converge or produce unstable dynamics. We employ two key stabilization techniques:
- Multiple Shooting (MS): The training trajectory is partitioned into smaller time windows. The model solves an initial value problem for each segment, with a penalty for discontinuities at the boundaries, effectively shortening the backpropagation horizon.
- Prediction Error Method (PEM): We incorporate an observer-based correction term that continuously "nudges" the latent state toward observed data, preventing the accumulation of integration errors.
Datasets and Evaluation
We evaluated the framework using a representative 89-day epidemic scenario generated by ExaEpi, an exascale agent-based simulator. The scenario includes a significant intervention change-point at day 49. To ensure robustness, we trained on an ensemble of 100 independent ABM realizations, allowing us to evaluate not just mean accuracy but also the calibration of the surrogate's uncertainty bands.
Key Results and Insights
- Massive Computational Speedup: The UDE surrogate generates a 90-day forecast in approximately 32 seconds on a standard laptop CPU. This represents a ~10,000x reduction in wall-clock time compared to the 100 CPU-hour ABM reference.
- Superior Accuracy: The combined MS+PEM-UDE approach achieved a Mean Squared Error (MSE) of 3.00, a 77% improvement over the vanilla single-shooting baseline (MSE of 13.14).
- Calibrated Uncertainty: Reliability is paramount for hospital planning. Our MS+PEM-UDE method achieved 94% empirical coverage of the ABM's 10–90% quantile band, providing planners with trustworthy risk estimates rather than overconfident fits.
- Interpretability: By modulating the contact rate within a mechanistic framework rather than adding a free-form residual, the learned parameters remain epidemiologically meaningful.
Conclusion and Future Directions
ABM-UDE successfully distills the complexity of exascale agent-based simulations into a portable, high-speed surrogate. While this study focused on a representative scenario with fully observable data, future work will address real-world challenges such as partial observability, reporting delays, and noisy hospital time-series data. This framework provides a generalizable path for creating fast, trustworthy surrogates for complex simulators across various scientific domains.
Summary updated