Author-reviewedEvidence: highv1.0.4

Agent-Based Model

An agent-based model (ABM) simulates individuals as agents that follow rules and interact, so outcomes such as infections, costs and QALYs emerge.

Download concept guide
Last reviewed byDr Darrin Baines

Concept Architecture

Agent-Based Models in Health Economic Evaluation

In an agent-based model each person, clinician or organisation is simulated as a separate agent with its own attributes and decision rules, and population results such as case counts, costs and QALYs are totalled after the agents have interacted and changed one another's risks. Health economists use the approach when those interactions change the answer to a decision problem, most often in infectious disease, where screening or vaccinating one person alters the risk faced by others, and in health behaviour and service delivery. The model outputs feed cost-effectiveness analysis, while structure and validation differ from those of other model types. Microsimulation, discrete event simulation, the dynamic transmission model and the system dynamics model have their own pages.

Agents, environment and rules

The ISPOR Simulation Modeling Emerging Good Practices Task Force (Marshall and colleagues, 2015) describes agents as autonomous, interacting objects that sense their environment and act on defined decision rules, and may pursue goals and learn. Chhatwal and He add that agent behaviour is not set by a global controller. In a disease model the agents are people whose attributes, such as age, sex, risk behaviour and disease status, change over time, and the environment is a place such as a hospital, school or neighbourhood. A network defines who can meet, and so infect, whom.

A general notation, given below, shows what each update can depend on.

Xi(t+1)=F(Xi(t), Ni(t), E(t), A(t), Ui(t))X_i(t+1)=F\left(X_i(t),\,N_i(t),\,E(t),\,A(t),\,U_i(t)\right)

where Xi(t)X_i(t) is the state of agent ii at time tt, Ni(t)N_i(t) is the set of agents in contact with agent ii, E(t)E(t) is the state of the environment, A(t)A(t) is the intervention or policy in force, Ui(t)U_i(t) is a random input and FF is the rule set written for the application. Chhatwal and He note that within each cycle the agents update in a set order, so the sequence of events inside a cycle is part of the model specification.

Emergence and indirect effects

Marshall and colleagues name agency, dynamics and structure as the three core concepts of the method, with structure emerging from agent interaction. Unlike isolated Markov cohorts, individuals in a nonlinear system must be simulated in a population context. Chhatwal and He give an example in which individual decisions to vaccinate, or to stay at home when sick, affect the peak of an influenza epidemic.

For economic evaluation the practical consequence is indirect benefit. Chhatwal and He point out that state-transition models and discrete event simulation typically do not capture direct interaction between individuals, such as transmission of infection (entities in discrete event simulation interact mainly by competing for limited resources, a queue logic agent-based models can also implement), so they can underestimate the value of interventions such as human papillomavirus vaccination, which reduces transmission, or HIV treatment, which also reduces onward spread. Effects on people who never receive the intervention are an externality (see vaccination externalities).

Time, open populations and randomness

Time in an agent-based model can advance in fixed cycles, as in a state-transition model, or jump to the next scheduled event, as in discrete event simulation. Chhatwal and He report that fixed steps are often more convenient, because event scheduling makes interactions harder to implement, and that cycles may need a half-cycle correction. Agent-based models can also represent open populations with births and migration, which Markov models generally do not.

Agent-based models are usually stochastic. Chhatwal and He explain that first-order uncertainty, the random variation between simulated histories, is typically higher than in state-transition or discrete event models, because chance acts both within agents and in their interactions, so more Monte Carlo runs are needed; the number needed depends on structure, number of parameters and time horizon, and can be judged qualitatively or from the variance in outcomes. Common random numbers are harder to apply because interaction can change the sequence of events between strategies. One solution they describe is to give each agent its own random seed.

Worked example of how fewer contacts compound through transmission

All numbers here are illustrative. A susceptible agent has three independent contacts with infectious agents in a day, each with a transmission probability of 0.10. The probability of at least one transmission that day is as follows.

P=1−(1−p)k=1−(1−0.10)3=1−0.729=0.271P = 1-(1-p)^{k} = 1-(1-0.10)^{3} = 1-0.729 = 0.271

where PP is the daily probability of infection, p=0.10p = 0.10 is the per-contact transmission probability and k=3k = 3 is the number of contacts. A programme that cuts contacts to two a day gives 1 − 0.81 = 0.19.

An infected agent who is infectious for 5 days and meets 3 different susceptible people a day causes 5 × 3 × 0.10 = 1.5 expected onward infections; with two contacts a day the figure is 5 × 2 × 0.10 = 1.0, a direct reduction of one third. Followed as a simple chain from one index case, the next three generations contain 1.5 + 2.25 + 3.375 = 7.125 infections without the programme and 1 + 1 + 1 = 3 with it, a fall of 58% (4.125 out of 7.125). Counting only the 0.5 infections averted in the first generation would capture about an eighth of the 4.125 averted over three generations. The chain assumes every contact is susceptible, so it overstates growth; an agent-based simulation would deplete susceptible agents, cluster contacts in networks and let behaviour respond to prevalence. The population-level counterpart is the basic reproduction number.

From simulated agents to costs and QALYs

Marshall and colleagues list agent-based model outputs including QALYs, mortality, costs, resource use and bed occupancy. The model is run separately for each strategy. It records events and person-time, attaches unit costs and utility weights, discounts, and averages across runs, as shown below.

ΔC=E[Cint]−E[Ccomp],ΔQ=E[Qint]−E[Qcomp]\Delta C=\mathbb{E}[C_{\text{int}}]-\mathbb{E}[C_{\text{comp}}], \qquad \Delta Q=\mathbb{E}[Q_{\text{int}}]-\mathbb{E}[Q_{\text{comp}}]

where ΔC\Delta C and ΔQ\Delta Q are the incremental cost and QALYs, E\mathbb{E} denotes the mean over simulation runs, and the subscripts denote the intervention and the comparator. The increments feed the ICER.

Chhatwal and He's case study shows how interaction can move the result. They simulated 5,000 people with a hypothetical infectious chronic disease and compared screening 1% of the population each year with no screening, using 5,000 runs per scenario. The ICER of screening ranged from USD 23,091 to USD 60,352 per QALY depending on the contact radius, and infections and deaths averted rose nonlinearly with that radius, a pattern the authors note a state-transition model could not have predicted.

Chhatwal and He describe probabilistic sensitivity analysis in agent-based models as computationally challenging and sometimes impractical, because it combines first-order and second-order uncertainty; Latin hypercube sampling and Gaussian process emulation can reduce the burden. The NICE technology appraisal manual (PMG36, section 4.7.20) asks that model structures limiting the feasibility of probabilistic analysis be specified and justified, and that the choice of structure should not result in failure to characterise uncertainty.

How the method compares with other model types

The ISPOR-SMDM conceptualisation report (Roberts and colleagues, 2012) recommends dynamic transmission, discrete event or agent-based models when individuals interact, and discrete event or agent-based models when the problem involves geography or spatial proximity. The ISPOR-SMDM dynamic transmission report (Pitman and colleagues, 2012) adds that deterministic compartmental models suit average epidemic behaviour in large populations, while stochastic agent-based approaches may be preferred when chance effects, behaviour and disease interaction, or nonrandom mixing matter.

Model typeWhat it representsContrast with an agent-based model
Markov cohort modelShares of a closed cohort moving between statesStatic: no interaction, so no indirect effects
MicrosimulationIndividuals with attributes and historySame individual level; agents also interact and adapt
Discrete event simulationEntities passing through events, queues and resourcesEntities are generally passive and do not learn
Compartmental modelPopulation pools linked by flow equationsTypically homogeneous within compartments, with mixing defined between groups rather than through individual contact networks

The rows follow Chhatwal and He, who add that compartmental models allow analytical insight that agent-based models do not. Terms overlap. Marshall and colleagues treat microsimulation and agent-based modelling as two traditions of individual-based modelling and use the agent-based label for both.

Applications in infectious disease, behaviour and service delivery

Tracy and colleagues report that in public health the method was historically applied almost exclusively to infectious disease transmission and control, where individual interactions give rise to population patterns of incidence. They also describe models of smoking, alcohol, physical inactivity and diet, with obesity and its correlates the most frequent subject of non-communicable disease applications, and tobacco control models that can identify potential unintended consequences. Marshall and colleagues cite health care delivery uses such as the diffusion of new drugs through patient, physician and pharmacist interactions.

Calibration, validation and transparency

Chhatwal and He define calibration as adjusting model inputs until outputs match the observed system; they expect it to be needed more often than in other approaches, for example to estimate an unobserved transmission rate from known incidence. For model validation, the ISPOR-SMDM report by Eddy and colleagues (2012) lists face validity, verification, cross validation, external validation and predictive validation, and Tracy and colleagues point out that validation data should ideally be independent of the data used to build and calibrate the model.

Pitman and colleagues recommend that agent-based models describe the rules governing the agents, input values, initial conditions and all submodels, including movement and mixing. The ODD protocol (Overview, Design concepts, Details), updated by Grimm and colleagues in 2020, gives a seven-element structure designed to make such descriptions easier to write and read and the models easier to replicate. Chapter 4 of the NICE manual (PMG36) does not name agent-based models, but its general requirements apply. Section 4.6.3 says the chosen type of model should be justified for each new decision problem, section 4.6.4 asks for quality assurance and validation results, and section 4.6.1 asks for sensitivity analyses where alternative plausible assumptions exist, a structural uncertainty question for rules about contact and behaviour.

Where agent-based models are misread or misused

Chhatwal and He state that agent-based models can be more challenging to construct and need large computing power, and that they do not replace state-transition, discrete event or compartmental models, which solve many problems efficiently. Bonabeau notes that the right level of detail remains an art more than a science, and that human agents bring soft factors that are hard to quantify, calibrate and sometimes justify. Several misreadings recur.

  1. Individual-level means agent-based. Individuals simulated without interaction or adaptation form a microsimulation, whatever the label.
  2. More detail means more validity. Each added rule brings parameters that need data and testing.
  3. A good fit proves the mechanism. Different contact and transmission rules can reproduce the same incidence, so fit alone does not validate them.

Sources

  • Bonabeau E. Agent-based modeling: methods and techniques for simulating human systems. Proceedings of the National Academy of Sciences of the USA. 2002;99(Suppl 3):7280-7287. https://doi.org/10.1073/pnas.082080899
  • Chhatwal J, He T. Economic evaluations with agent-based modelling: an introduction. PharmacoEconomics. 2015;33(5):423-433. https://doi.org/10.1007/s40273-015-0254-2
  • Eddy DM, Hollingworth W, Caro JJ, Tsevat J, McDonald KM, Wong JB. Model transparency and validation: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-7. Value in Health. 2012;15(6):843-850. https://doi.org/10.1016/j.jval.2012.04.012
  • Grimm V, Railsback SF, Vincenot CE, Berger U, Gallagher C, DeAngelis DL, et al. The ODD protocol for describing agent-based and other simulation models: a second update to improve clarity, replication, and structural realism. Journal of Artificial Societies and Social Simulation. 2020;23(2):7. https://doi.org/10.18564/jasss.4259
  • Marshall DA, Burgos-Liz L, IJzerman MJ, Osgood ND, Padula WV, Higashi MK, et al. Applying dynamic simulation modeling methods in health care delivery research: the SIMULATE checklist. Report of the ISPOR Simulation Modeling Emerging Good Practices Task Force. Value in Health. 2015;18(1):5-16. https://doi.org/10.1016/j.jval.2014.12.001
  • National Institute for Health and Care Excellence. NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36). London: NICE; 2022, last updated 13 October 2026. Sections 4.6.1, 4.6.3, 4.6.4 and 4.7.20.
  • Pitman R, Fisman D, Zaric GS, Postma M, Kretzschmar M, Edmunds J, Brisson M. Dynamic transmission modeling: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-5. Value in Health. 2012;15(6):828-834. https://doi.org/10.1016/j.jval.2012.06.011
  • Roberts M, Russell LB, Paltiel AD, Chambers M, McEwan P, Krahn M. Conceptualizing a model: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-2. Value in Health. 2012;15(6):804-811. https://doi.org/10.1016/j.jval.2012.06.016
  • Tracy M, Cerdá M, Keyes KM. Agent-based modeling in public health: current applications and future directions. Annual Review of Public Health. 2018;39:77-94. https://doi.org/10.1146/annurev-publhealth-040617-014317

Institutional Perspectives (2)

  • WHO

    Individual-Based Models for Vaccines When Risks Differ Across Small Groups

    WHO's guide to economic evaluation of immunisation programmes treats agent-based models as individual-based models, in which each person has characteristics such as age, susceptibility, location and household that govern transmission. It notes their flexibility for dynamic stochastic transmission but also their computing demands and outcomes that are harder to validate and interpret, and suggests them when infection risks differ substantially between many small groups. Its recommendations call for a dynamic model when vaccination is likely to change the force of infection.

    World Health Organization, WHO guide for standardization of economic evaluations of immunization programmes, 2nd edition (WHO/IVB/19.10, 17 October 2019), sections 6.3.1, 6.3.2.3 and 6.6View source →
  • PBAC

    Agent-Based Models for Herd Immunity Only Where Simpler Models Fall Short

    The PBAC guidelines ask applicants to use individual-level models only when a model cannot feasibly be built as a cohort model, and say more complex techniques are unnecessary if simpler models give plausible sensitivity and scenario analyses. In infectious diseases, dynamic or agent-based models that represent herd immunity may be justified if a simple non-dynamic model would not show cost-effectiveness accurately enough. Complex techniques may be less transparent, which can lower the committee's confidence, so their use should be discussed with the Pharmaceutical Evaluation Branch in advance.

    Pharmaceutical Benefits Advisory Committee, Guidelines for preparing a submission to the Pharmaceutical Benefits Advisory Committee, Version 5.0 (September 2016), subsection 3A.2.3 'Computational methods'View source →

Functions & Formulae (4)

F(X_i(t), N_i(t), E(t), A(t), U_i(t)) = X_i(t+1)

Maps the state of agent i at step t, the set of agents in contact with it, the state of the environment, the intervention in force and a random input to the state of that agent at step t+1, the rule X_i(t+1) = F(X_i(t), N_i(t), E(t), A(t), U_i(t)) of the article. In an infection model the rule for a susceptible agent reduces to a per-step infection probability from its k infectious contacts, the complement of the binomial probability of no events (HE-FM-BINOM-002), followed by a comparison of the agent's own uniform random number with that probability. A per-contact probability built from a transmission rate uses the constant-rate conversion HE-FM-TP-001, and a probability observed over another interval is rescaled with HE-FM-TP-003; neither is restated here. Population outputs are averaged over independent runs, and the Monte Carlo standard error of such a mean is the standard deviation across runs divided by the square root of the number of runs, the form of HE-FM-ANTV-002 with one observation per run and the divisor of HE-FM-BSE-001. This package adds the number of runs needed for a target standard error of a mean and of a share of runs. Attack rates and the final size relation are in HE-FN-ATR-001 and HE-CF-ATR-001, the cohort simulation without interaction is HE-FN-CSIM-001, and expected onward infections and the reproduction number belong to the Basic Reproduction Number page. Notation follows the Agent-Based Model article.

  • Per-step infection probability of a susceptible agent from k infectious contacts

    P_inf = 1 - (1 - p)^k

    A susceptible agent with k contacts with infectious agents in one step, each transmitting independently with probability p, escapes infection only if every contact fails, which happens with probability (1 minus p) to the power k, the binomial probability of no events in HE-FM-BINOM-002 with k in place of n. The probability of at least one transmission, P_inf, is the complement; the article writes it P. It rises with k but less than in proportion, because a second transmission to an agent already infected adds nothing, so the sum k times p overstates it and can exceed 1. With one contact the formula returns p and with no contacts it returns zero.

  • One-step infection update of a susceptible agent from its own uniform random number

    P_inf = 1 - (1 - p)^k; X_next = (U < P_inf)

    Turns the per-step infection probability of HE-FM-ABM-001 into the agent's next state by comparing it with a uniform random number U drawn for that agent. The agent becomes infected, X_next equal to 1, when U is below P_inf, and otherwise stays susceptible with X_next equal to 0, so over many draws the share infected approaches P_inf. Drawing U from a stream reserved for the agent, the per-agent seed that Chhatwal and He describe for common random numbers, gives the same agent the same U under each strategy, so a strategy that lowers P_inf can avert that agent's infection and cannot cause it. A single draw against P_inf has the same distribution as one draw per contact against p, which the computational function under HE-FM-ABM-001 uses as an independent check.

  • Monte Carlo runs needed for a target standard error of a mean agent-based model outcome

    R_req = (s_run / e_target)^2

    Inverts the Monte Carlo standard error of a mean over independent runs, s_run divided by the square root of the number of runs (the form of HE-FM-ANTV-002 with one observation per run, with the standard deviation taken with divisor R minus 1 as in HE-FM-BSE-001), to give the number of runs R_req whose standard error equals a chosen target e_target. s_run is the standard deviation of the outcome across a pilot set of runs, for example of mean cost per person or, for an increment, of the paired difference between strategies run with common random numbers. The result is rounded up to a whole number of runs. Halving the target multiplies the runs by four.

  • Monte Carlo runs needed for a target standard error of a share of agent-based model runs

    R_prop = P_exp * (1 - P_exp) / e_share^2

    For an output that is a share of runs, such as the share in which an outbreak becomes a major one, each run gives a 0 or 1 result and the Monte Carlo standard error of the share is the binomial standard error, the square root of P_exp(1 minus P_exp) over the number of runs, the standard error of an estimated binomial probability in HE-FM-BINOM-004. Putting in the expected share and rearranging gives the number of runs R_prop for a target standard error e_share, equation 1 of Morris and colleagues. The product P_exp(1 minus P_exp) is largest at a share of 0.5, so 0.25 divided by the squared target is a worst-case count when the share is unknown.

View all formulae

Library

Publications

5
  • Journal article

    Economic evaluations with agent-based modelling: an introduction — Chhatwal J, He T, Vol. 33, No. 5, pp. 423-433 ed., 2015 (PharmacoEconomics)

    Introduction to agent-based modelling for economic evaluation, cited for emergence as the defining property of such models, the indirect benefits that state-transition and discrete event models can miss, higher first-order uncertainty needing more Monte Carlo runs, calibration, and a screening case study with ICERs of USD 23,091 to 60,352 per QALY.

  • Journal article

    The ODD protocol for describing agent-based and other simulation models: a second update to improve clarity, replication, and structural realism — Grimm V, Railsback SF, Vincenot CE, Berger U, Gallagher C, DeAngelis DL, et al., Vol. 23, No. 2, Article 7 ed., 2020 (Journal of Artificial Societies and Social Simulation)

    Second update of the Overview, Design concepts and Details protocol for describing agent-based and other simulation models, cited for the protocol's seven elements and for its aim of making model descriptions easier to write and read and making models easier to replicate.

  • Journal article

    Agent-based modeling: methods and techniques for simulating human systems — Bonabeau E, Vol. 99, Suppl. 3, pp. 7280-7287 ed., 2002 (Proceedings of the National Academy of Sciences of the USA)

    Paper on agent-based modelling methods and techniques for simulating human systems, cited for the view that building a model at the right level of description, with just enough detail for its purpose, remains an art more than a science, and that human agents bring soft factors that are difficult to quantify, calibrate and sometimes justify.

  • Journal article

    Agent-based modeling in public health: current applications and future directions — Tracy M, Cerdá M, Keyes KM, Vol. 39, pp. 77-94 ed., 2018 (Annual Review of Public Health)

    Review of agent-based modelling in public health, cited for its historical use almost exclusively for infectious disease transmission, its growing use for risky behaviours such as smoking, alcohol consumption, physical inactivity and unhealthy eating, with obesity the most frequent subject, and its advice that validation data be independent of those used to build and calibrate a model.

  • Journal article

    Applying Dynamic Simulation Modeling Methods in Health Care Delivery Research — The SIMULATE Checklist: Report of the ISPOR Simulation Modeling Emerging Good Practices Task Force — Marshall, Burgos-Liz, IJzerman, Osgood, Padula, Higashi, Wong, Pasupathy & Crown, Vol. 18, No. 1 ed., 2015 (Value in Health)

    The first ISPOR dynamic-simulation good-practice report, introducing system dynamics, discrete event simulation and agent-based modelling for health care delivery problems and providing the SIMULATE checklist for their application.

Frequently Asked Questions (7)

  • What is an agent based model?

    An agent-based model (ABM) simulates individuals as agents that follow rules and interact, so outcomes such as infections, costs and QALYs emerge.

    Source: Chhatwal & He 2015

  • What is an agent-based model?

    An agent-based model is a simulation approach that represents individual entities, such as patients or providers, as autonomous agents following behavioural rules, and lets patterns at the level of the whole system emerge from their interactions. Rather than specifying system behaviour directly, it specifies how individual agents act and interact, and observes what results. Bonabeau described how this bottom-up approach can capture phenomena, such as the spread of behaviour or disease, that arise from many individual decisions.

    Source: Bonabeau 2002

  • What kind of simulation is an agent-based model?

    An agent-based model is a simulation built from many individual agents, each following its own rules and interacting with others and with a shared environment. System-level patterns emerge from these local interactions rather than being specified directly. Agents can represent people, organisations or other entities, and they may adapt their behaviour in response to what happens around them. This bottom-up structure suits problems where heterogeneity, networks or feedback between individuals matter. In health, it has been applied to infectious disease spread and to the behaviour of care systems.

    Source: Marshall et al. 2015

  • How does an agent-based model work?

    An agent-based model works by defining a population of agents, each with characteristics and rules governing how it behaves and responds to others and its environment, then simulating their interactions over time. System-level outcomes, such as epidemics, market patterns, or congestion, emerge from the accumulated actions of the agents rather than being imposed. By running the simulation, the modeller observes how individual behaviour and interaction give rise to aggregate patterns, which can be explored under different rules and conditions.

    Source: Bonabeau 2002

  • How does an agent-based model differ from an aggregate model?

    An agent-based model represents individuals separately, each acting by its own rules, and derives system behaviour from their interactions, whereas an aggregate model represents the population by summary parameters, such as average rates, without distinguishing individuals. Agent-based models can capture heterogeneity, interaction, and emergent effects that aggregate models miss, but they are more demanding in data and computation. Aggregate models are simpler and often sufficient when individual variation and interaction do not much affect the outcome of interest.

    Source: Bonabeau 2002

  • When is an agent-based model useful in health?

    An agent-based model is useful in health where outcomes depend on interactions between individuals or on heterogeneity that aggregate models cannot capture, such as the spread of infectious disease through contact, the diffusion of behaviours, or the effects of individual decisions in a health system. By modelling agents and their interactions, it can represent transmission, networks, and adaptation that population-average models omit. It suits questions where the emergent consequences of many individual actions are central to the outcome.

    Source: Bonabeau 2002

  • What are the limitations of agent-based models?

    Agent-based models are demanding in data, since they require specifying the behaviour and interactions of individual agents, which may not be well known, and in computation, since simulating many agents is intensive. Their results can be sensitive to the rules and assumptions chosen, which are often uncertain, and the complexity can make them hard to validate and to interpret. The flexibility that lets them capture emergence also risks over-fitting or unwarranted confidence, so their assumptions and behaviour must be examined carefully.

    Source: Bonabeau 2002

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 20 Oct 2026

Content version: 1.0.4

Canonical Identity

Term code
HE-EM-ABM-001
Wikidata
Q392811

Stable URI · Machine-readable · Resolvable · CC BY 4.0