Simulation of pandemic spread

From Simulace.info
Revision as of 20:44, 10 January 2024 by Kopd05 (talk | contribs) (End of the simulation)
Jump to: navigation, search

Title: Simulation of pandemic spread

Author: Daniel Kopecký

Method: Agent-based model

Tool: NetLogo

Introduction and problem definition

Not so long ago we had the COVID-19 pandemic, which showed us the shortcomings in dealing with this type of problem. Pandemic propagation simulation can be a key tool to model, analyse and predict the evolution of a pandemic. This model deals specifically with viral diseases. The aim of this simulation is to be able to predict the spread of a pandemic virus, whereby using appropriate values, it can simulate the approximate development of a pandemic in the Czechia.

Method

An agent-based model in NetLogo is used to simulate the spread of the pandemic. This allows us to code our own scenario using different variables and helps us to get closer to the real pandemic evolution.

Model

The model contains a map of the Czech Republic, where the selected population is randomly scattered at the beginning of the simulation. The inhabitants can move freely within the entire rendered territory. The selected population is already infected and by running the simulation they can infect other uninfected citizens.

Environment

The model is reserved for the Czech Republic. This was achieved using a silhouette of the Czech Republic that was uploaded to NetLogo using this code: ‎import-pcolors "cesko.png"‎.

Agents

People are represented by agents who have three different colors. People who are healthy, but not immune, are green. These people can also be infected by infected individuals. The red colour is used for people who are infected. So these people can spread the virus, get better or die from the virus. Individuals who have had the virus and are now immune to the virus are blue.

Movement

People move randomly around the territory of the Czech Republic. During their movement they may meet other individuals from whom they could potentially be infected.

Spread of infection

The original infected individuals can infect any individual that comes into their vicinity. The variables qurantine.effort, trasmission.rate, and the number of infected around an uninfected individual affect whether an individual becomes infected. If an individual has already been infected but has recovered, this means that it has immunity and therefore cannot be re-infected. Immunity can be turned off when setting up the model.

Recovery from infection

Individuals who are infected have a chance to recover, which is set by the recovery.rate variable. If they recover and immunity is on, the individual's color will change to blue. If immunity is off, the color of the individual will change to green.

Death

If an individual is infected, there is a chance that they will die. This is affected by two variables, namely healthcare.capacity and infected-mortality. Healthcare.capacity is the spare capacity of healthcare facilities. The value ranges from 0 to 1 and represents the maximum % of the population that can be hospitalized at one time. If the % of infected in the population exceeds the capacity limit of the healthcare facilities, the probability of an individual dying rises.

End of the simulation

The simulation ends when the virus stops spreading and the number of infected drops to zero, or when the number of infected equals the population size, or when the virus kills off the entire population.

Variables

  • init-population - Population at the beginning of the simulation
  • init-infected - Number of infected at the start of the simulation
  • recovery.rate - Rate of recovery of infected individuals
  • init-immune - Number of immune individuals at the beginning of the simulation
  • quarantine.effort - Quarantine effort (affects the chance of infecting an individual)
  • transmission.rate - Rate of virus transmission between individuals
  • infected-mortality - Virus mortality rate
  • healthcare.capacity - Capacity of health facilities (affects the rate of death of individuals)
  • immunity? - Turns immunity on or off

Output

Plots

Results

Conclusion

Sources

NetLogo File