Giter VIP home page Giter VIP logo

fosterleejoe / crisp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zalandoresearch/crisp

0.0 2.0 0.0 1.11 MB

A probabilistic graphical model for COVID-19 infection spread through a population based on mutual contacts between pairs of individuals across time as well as test outcomes The C++/Python implementation enables full inference at the scale of millions of contacts between thousands of individuals.

License: MIT License

CMake 0.11% C++ 10.05% Python 13.47% Makefile 1.23% Jupyter Notebook 75.13%

crisp's Introduction

CRISP

Table of Contents

What is CRISP

CRISP (COVID-19 RIsk Score Prediction) is a probabilistic graphical model for COVID-19 infection spread through a population based on the SEIR model extended by (1) mutual contacts between pairs of individuals across time across various channels (e.g., Bluetooth contact traces), as well as (2) test outcomes at given times for infection, exposure and immunity tests. The micro-level model keeps track of the infection state for each individual at every point in time, ranging from susceptible, exposed, infectious to recovered. Our algorithm uses block-Gibbs sampling to draw samples of the latent infection status of each individual over the entire time period of analysis, given the latent infection status of all contacts and test outcome data. Our implementation enables full inference at the scale of millions of contacts between thousands of individuals. To the best of our knowledge, this is a first model for infection spread based on this detailed micro-level data; most infection models are macro-level models that reason over entire populations.

Build Instructions

Tool Setup

This code uses CMake. If you have homebrew installed, try first brew install cmake

Otherwise, see if you can download a pre-compiled binary at https://cmake.org/download/.

Dependencies

We are using PyBind submodules. In order to get these dependencies installed, run

git submodule update --init --recursive

Compilation

In order to compile the C++ Gibbs sampler as a Python library, run the following step

cd code
cmake CMakeLists.txt
make clean
make

Test

If you want to test the code, just run the following command in the code folder

python3 test_gibbs_sampler.py

You can also experiment with the option --setup 1 or --setup 2.

Contributing

Thanks for your interest in contributing! There are many ways to get involved; start with our contributor guidelines and then check these open issues for specific tasks.

Citing CRISP

If you use are interested to read the details about the CRISP model, please have a look at the following paper:

CRISP: A Probabilistic Model for Individual-Level COVID-19 Infection Risk Estimation Based on Contact Data. Ralf Herbrich, Rajeev Rastogi, Roland Vollgraf. arXiv:2006.04942

Biblatex entry:

@online{herbrich2020/online,
  author       = {Ralf Herbrich and Rajeev Rastogi and Roland Vollgraf},
  title        = {CRISP: A Probabilistic Model for Individual-Level COVID-19 Infection Risk Estimation Based on Contact Data},
  date         = {2020-06-09},
  year         = {2020},
  eprintclass  = {cs.SI},
  eprinttype   = {arXiv},
  eprint       = {cs.SI/2006.04942},
}

License

The MIT License (MIT) Copyright © [2020] Zalando SE, https://tech.zalando.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

crisp's People

Contributors

rherbrich74 avatar rvollgraf avatar

Watchers

James Cloos avatar John O. A. 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.