Embedding System Dynamics in Agent Based Models for Complex Adaptive Systems

Maarika Teose, Kiyan Ahmadizadeh, Eoin O'Mahony, Rebecca L. Smith, Zhao Lu, Stephen P. Ellner, Carla P. Gomes, Yrjo GrohnIJCAI 2011

Abstract

Complex adaptive systems (CAS) are composed of interacting agents, exhibit nonlinear properties such as positive and negative feedback, and tend to produce emergent behavior that cannot be wholly explained by deconstructing the system into its constituent parts. Both system dynamics (equation-based) approaches and agent-based approaches have been used to model such systems, and each has its benefits and drawbacks. In this paper, we introduce a class of agent-based models with an embedded system dynamics model, and detail the semantics of a simulation framework for these models. This model definition, along with the simulation framework, combines agent-based and system dynamics approaches in a way that retains the strengths of both paradigms. We show the applicability of our model by instantiating it for two example complex adaptive systems in the field of Computational Sustainability, drawn from ecology and epidemiology. We then present a more detailed application in epidemiology, in which we compare a previously unstudied intervention strategy to established ones. Our experimental results, unattainable using previous methods, yield insight into the effectiveness of these intervention strategies.

Introduction

Researchers modeling Complex Adaptive Systems (CAS)—such as ecosystems, power grids, or epidemics—usually face a trade-off between two primary methodologies. System Dynamics (SD) uses ordinary differential equations (ODEs) to track macro-level populations (stocks) and flows. While computationally efficient and easy to validate, SD assumes population homogeneity. Conversely, Agent-Based Modeling (ABM) simulates individual agents and their unique interactions, capturing rich heterogeneity but often proving difficult to calibrate and validate against real-world data.

This paper introduces a formal framework for "hybrid" modeling that embeds SD (top-down equations) within ABM (bottom-up individuals). This approach allows researchers to simulate systems where macro-level "physics" (e.g., viral spread) meets micro-level "strategy" (e.g., individual economic decisions).

Methodology: The Embedded Model

The authors propose a formal mathematical definition for an Embedded Model ($M$), defined by a tuple of six components: local state variables ($S$), ODE state variables ($A$), flow rates ($O$), update functions ($U$), demographic functions ($D$), and intervention functions ($V$).

To bridge the gap between continuous equations and discrete agents, the simulation utilizes Gillespie’s $\tau$-leap algorithm. This allows ODE-based flows to be treated as probabilities, making the movement of agents between states (e.g., from Susceptible to Infected) stochastic and discrete rather than a smooth average. This retains the mathematical rigor of differential equations while allowing for the granular logic of individual agents.

Case Study: MAP Disease in Dairy Herds

The framework was evaluated using longitudinal data from Mycobacterium avium subsp. paratuberculosis (MAP) disease control programs. The authors integrated a previously validated ODE model of MAP with agent-level data regarding milk production and reproductive history.

Validation

A critical step was ensuring that the hybrid model remained grounded in established science. The authors compared the disease prevalence results of their embedded model against the original compartment-based ODE model.

Validation of the Embedded Model against the traditional Compartment Model

As shown in the figure above, the hybrid model’s disease prevalence closely matched the original ODE model (KL divergence of 0.0742), proving that the embedding process preserves the underlying epidemiological dynamics.

Intervention Strategies and Results

By tracking individual milk yields—a form of heterogeneity standard ODE models cannot express—the researchers tested a new "Milk-Test-and-Cull" strategy. In this scenario, farmers delay culling infected cows if they still maintain high milk production, balancing economic viability with disease control.

Comparison of Mean MAP Prevalence across different intervention strategies

Experimental results over a 25-year simulation period showed that while the standard "Test-and-Cull" strategy is the fastest way to reduce prevalence, the "Milk-Test-and-Cull" strategy significantly mitigates short-term financial losses without sacrificing the long-term goal of herd eradication. These insights into the effectiveness of economically-minded interventions were previously unattainable using pure SD or ABM methods alone.

Conclusion

This hybrid framework provides a much-needed formal semantics for combining the strengths of System Dynamics and Agent-Based Modeling. While challenges remain regarding computational complexity and policy optimization, the ability to bridge macro-level biological rigor with micro-level economic behavior offers a powerful new tool for studying complex adaptive systems in computational sustainability.

Summary updated

BibTeX
@inproceedings{teose2011embedding,
  author = {Maarika Teose and Kiyan Ahmadizadeh and Eoin O'Mahony and Rebecca L. Smith and Zhao Lu and Stephen P. Ellner and Carla P. Gomes and Yrjo Grohn},
  title = {{Embedding System Dynamics in Agent Based Models for Complex Adaptive Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=BJ4JYSGOZB},
}
Figure