Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metalcorebear/covid-agent-based-model
Disease propagation ABM generating SIR, severe cases, and R0 over quasi-time.
https://github.com/metalcorebear/covid-agent-based-model
agent-based-modeling agent-based-simulation covid covid-19 epidemics epidemiology mesa project-mesa
Last synced: about 2 months ago
JSON representation
Disease propagation ABM generating SIR, severe cases, and R0 over quasi-time.
- Host: GitHub
- URL: https://github.com/metalcorebear/covid-agent-based-model
- Owner: metalcorebear
- License: mit
- Created: 2020-03-31T22:17:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T01:34:44.000Z (over 2 years ago)
- Last Synced: 2024-10-01T10:10:47.385Z (3 months ago)
- Topics: agent-based-modeling, agent-based-simulation, covid, covid-19, epidemics, epidemiology, mesa, project-mesa
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 37
- Watchers: 4
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# COVID Infection Model
(C) 2020 Mark M. Bailey
## About
This repository contains an agent-based model simulating COVID transmission within social networks using Mesa. Model parameters can be set in the 'model_params.py" file. Produces a dataframe output over quasi-time (steps).This is a work in progress and is intended for research purposes only.
Several parameters were taken from the following report:
https://www.imperial.ac.uk/media/imperial-college/medicine/sph/ide/gida-fellowships/Imperial-College-COVID19-symptom-progression-11-03-2020.pdf## Installation
This model works best with the current GitHub version of Mesa:
`pip install -e git+https://github.com/projectmesa/mesa#egg=mesa`## Model Description
This is an SIR (susceptible, infected, recovered) model for COVID. Model parameters can be set to simulate the changes in these three variables, as well as the reproduction number (R0) and number of severe cases, over time. An R0 less than 1 would indicate that the epidemic is becoming extinguished. This can be used to simulate the effects of social distancing.## Model Parameters
* ptrans = Transmission probability.
* population = Total population within all containers.
* progression_period = Average number of days until a patient seeks treatment.
* progression_sd = Standard deviation of progression_period.
* interactions = Average number of interactions per person per day (decreases with social distancing).
* reinfection_rate = Probability of becoming susceptible again after recovery.
* I0 = Initial probability of being infected.
* death_rate = Probability of dying after being infected after progression_period and before recovery_days.
* recovery_days = Average number of days until recovery.
* recovery_sd = Standard deviation of recovery_days.
* severe = Probability of developing severe, symptomatic disease.
* steps = number of days in simulation.
* chaos (in model_functions.py 'build_network' function) = Adjusting this parameter allows for social distancing compliance uncertainty.## Instructions for Use
* Update parameters in the 'model_params.py' file.
* Execute the 'run.py' script.
`python run.py -o `