Giter VIP home page Giter VIP logo

agent-based-epidemic-sim's Introduction

Agent Based Epidemic Simulator

Build Status

This repository hosts an open source agent-based simulator for modeling epidemics at large scale (nation-scale) using parallel and distributed computation.

At a high level, the simulator enables users to model the movement of simulated agents between different locations, and computes the spread of disease based on the interactions between agents who are colocated. The simulator also has interfaces to model the impact of social distancing policies, contact tracing mechanisms, and testing regimens on disease spread.

All aspects of the simulation are parameterized. The user of the simulation is able to define distributions which dictate simulation behavior such as:

  • The size of the population
  • The size and number of locations to visit
  • The length of visits to the locations
  • The between-host transmissibility of the disease
  • The state transition diagram and dwell times of the disease

These parameters can be configured to apply to particular scenarios and can be calibrated against real world data for use in experiments. Please note that this simulator is meant to explore the relative impact and sensitivity of various conditions and interventions and its results must not be interpreted as definitive about exact real world outcomes.

Specific applications of the simulator can be found in the applications subdirectory:

Home Work

This is a simple application where communities are created from pre-specified distributions. The individual agents in these communities spend some portion of every day at their places of work interacting with colleagues, and the rest of their day at home interacting with household members. You can build and run the example as follows.

Native build (Linux)

bazel build -c opt agent_based_epidemic_sim/applications/home_work:main

bazel-bin/agent_based_epidemic_sim/applications/home_work/main \
  --simulation_config_pbtxt_path=agent_based_epidemic_sim/applications/home_work/config.pbtxt \
  --output_file_path=$HOME/output.csv

Docker

docker build -t $USER/abesim .

docker run -t --rm -v $PWD:/root/agent_based_epidemic_sim:cached \
  -v /tmp/output:/tmp/output:delegated \
  -v /tmp/bazel_output:/tmp/bazel_output:delegated \
  $USER/abesim \
  bazel run -c opt agent_based_epidemic_sim/applications/home_work/main -- \
  --simulation_config_pbtxt_path=/root/agent_based_epidemic_sim/agent_based_epidemic_sim/applications/home_work/config.pbtxt \
  --output_file_path=/tmp/output/output.csv

Contact Tracing

The contact tracing application is designed to investigate the effects of different contact tracing strategies, including digital complements to contact tracing, on the spread of disease. Work on this application is ongoing and it is not yet ready to run.

Tests

Native build (Linux)

bazel test agent_based_epidemic_sim/...

Docker

docker build -t $USER/abesim .

docker run -t --rm \
  -v $PWD:/root/agent_based_epidemic_sim:cached  \
  -v /tmp/bazel_output:/tmp/bazel_output:delegated \
  $USER/abesim bazel test agent_based_epidemic_sim/...

Acknowledgements

The computational model used by the simulator is inspired in part by the EpiSimdemics simulator. We also took a great deal of inspiration from the OpenABM simulator.

agent-based-epidemic-sim's People

Contributors

abhishekk-ml avatar cpatrick avatar groeney avatar mattr-google avatar mdikovsky avatar syshafi avatar

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.