Coder Social home page Coder Social logo

epic_demics's Introduction

epic_demics

Epic_Demics is a MATLAB © (The MathWorks, Inc.) project and is part of the Agent-Based Modeling and Social System Simulation course (Fall 2019) of ETH Zürich [1].

Autors

  • Group name : Epic Demics
  • Group members : Nicholas Delmotte @nicdel-git, Loris Pedrelli @lpedrelli, Ivan Rojkov @irojkov-ph
  • Project title : A study of the effect of vaccination on an agent-based stochastic SIRS model

Introduction

On the 11th of March 2019, the World Health Organisation (WHO) launched the Global Influenza Strategy for 2019-2030 aimed at preventing seasonal influenza with vaccines, controlling the spread of influenza from animals to humans and preparing for the next influenza pandemics. Seasonal influenza (commonly called flu) is a viral disease which affects worldwide about 3 to 5 million people and causes about 290'000 to 650'000 respiratory deaths per year [2]. In this report the effect of vaccines and the importance of collective vaccination behaviour will be studied by implementing an SIRS model mixed with an agent based model which simulates the human interaction between neighbours. This localised interaction allows us to study the spreading of the disease with regards to the topology the system. To do so, some characteristic quantities of the system, and of its agents, will be defined and then their behaviour will be studied under the variation of different parameters of the model.

Model

This project implements an agent-based stochastic model for SIRS epidemics. SIRS stands for Susceptible-Infected-Recovered-Susceptible and represents the three agent states existing in the system as well as the viral dynamic between them. In other words, a recovered agent from the infected state can with a certain probability become susceptible again. The model is organised as following: starting from a given time, the illness evolves locally during a period of one week (i.e. time unit = week). Then all agents take their vaccination choice depending on their situation and the rewards of their neighbours. Finally, the illness is simulated for another week and so on. The simulation ends after a given number of decision steps (cf. the report for further details).

Reproducibility

For the purpose of reproducibility, we make this project public. You can either download the project or clone it directly using git as following:

git clone https://github.com/irojkov-ph/epic_demics.git

Then open MATLAB © in the right folder and enter the following commands in the command line:

cd epic_demics
main

This command will execute a basic simulation. For other particular simulations you can either decomment the appropriate section in the main.m script or create your own simulation as following:

addpath(['.',filesep,'src',filesep]);
config.parameter1 = value1;
config.parameter2 = value2;
...
start(config);

Where [parameter,value] couples are the values of different parameter implemented in the project.
To stop a simulation just press CRTL+C in the MATLAB © command line.

Parameters that can be simulated

Description Abbreviation In the config parameter Default value
Number of cells along
one side of the system
nb_cell config.nb_cell 50
Number of decision steps N config.nb_decision_step 50

Allow agents to vaccinate themself vaccination config.vaccination true
Allow agents to move in the system dynamic config.dynamic false

Infection rate beta config.beta NaN
Recovery rate gamma config.gamma NaN
Rate at which the vaccin
becomes ineffective
alpha config.alpha 1/(4*6)
Mortality rate mu config.mu NaN
Rate of zero event
(nothing happens event)
zero config.zero 1

Getting infected reward r_ill config.r_ill -10
Recovery reward r_recover config.r_recovery 2
Vaccination reward r_vacc config.r_vacc -4

Patient zero coordinates patient zero config.patient_zero_coord NaN

cf. ./src/compare_config.m file for further details

References

[1] Agent-Based Modeling and Social System Simulation, Computational Social Science, ETH Zürich,
url:https://coss.ethz.ch/education/agentBased.html

[2] Ask the expert: Influenza Q&A, WHO - Influenza (Seasonal), 6 November 2018,
url:https://www.who.int/en/news-room/fact-sheets/detail/influenza-(seasonal), Last consulted 03.12.2019.

epic_demics's People

Contributors

irojkov-ph avatar lpedrelli avatar nicdel-git avatar

Watchers

 avatar

epic_demics's Issues

Clean the code

In system_init we can eliminate beta and mortality matrices
Function nearest_beta and beta_0 are now useless and we can eliminate them

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.