Home▸Articles▸Biology

Understanding Epidemics Through Agent-Based Modeling

A powerful tool for visualizing the spread of diseases in a population.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What is an Epidemic?

An epidemic refers to the rapid spread of a disease within a population. It occurs when the number of cases exceeds what is expected and can be influenced by factors such as pathogen characteristics, host susceptibility, and environmental conditions.

The term 'epidemic' is often used in contrast to 'endemic,' which describes diseases that are consistently present at low levels, and 'pandemic,' which refers to a widespread outbreak affecting multiple countries or continents.

Agent-Based Modeling

Agent-based modeling is a computational technique used in the social sciences and epidemiology to simulate the actions and interactions of autonomous agents (individuals, organizations, or groups) with a view to assessing their effects on the system as a whole. In the context of epidemics, each agent can represent an individual who can be susceptible, infected, recovered, or vaccinated.

This approach allows for detailed exploration of how different interventions and behaviors impact the spread of disease within a population, providing insights that are difficult to obtain through traditional mathematical models.

live demo · related simulation● LIVE

Key Interventions in Epidemic Control

In the 'Epidemic Lab' simulation, key interventions such as social distancing, quarantine measures, and vaccination can be modeled. Social distancing involves reducing close contact between individuals to slow down the spread of disease. Quarantine refers to isolating individuals who may have been exposed but are not yet symptomatic. Vaccination aims to build immunity in a population by introducing harmless parts of pathogens.

These interventions work together to reduce transmission rates and ultimately control or eliminate an epidemic.

SIR Curves

The SIR model is a simple but powerful tool for understanding the dynamics of infectious diseases. It divides the population into three categories: Susceptible (S), Infected (I), and Recovered (R). The model tracks how individuals move between these states over time, providing insights into the progression of an epidemic.

By simulating SIR curves in the 'Epidemic Lab,' users can observe how different interventions affect the trajectory of an epidemic, helping to inform public health policies.

Frequently asked questions

How does social distancing work in the simulation?

Social distancing in the 'Epidemic Lab' reduces the probability of interactions between agents, thereby decreasing the likelihood of disease transmission. This can be modeled by adjusting parameters that control how often and closely individuals come into contact with each other.

Why is vaccination important in controlling an epidemic?

Vaccination helps to build herd immunity, which occurs when a significant portion of a population becomes immune to a disease, thereby reducing its spread. In the 'Epidemic Lab,' vaccinating agents can be modeled by setting their state to recovered and making them immune to future infections.

What does an SIR curve represent?

An SIR curve represents the number of individuals in each of the three categories (Susceptible, Infected, Recovered) over time. These curves help visualize how an epidemic evolves and can be used to predict future trends.

Can the simulation account for different types of pathogens?

Yes, while the 'Epidemic Lab' focuses on a simplified SIR model, it can be adapted to include more complex pathogen characteristics such as incubation periods and varying levels of infectiousness among infected individuals.

Try it live

Everything above runs in your browser — open Epidemic Lab and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Epidemic Lab simulation

What did you find?

Add reproduction steps (optional)