Giter VIP home page Giter VIP logo

bstim's Introduction

The BSTI Model

The BSTI model is a Bayesian spatio-temporal interaction model, a probabilistic generalized linear model, that predicts aggregated case counts within spatial regions (counties) and time intervals (calendar weeks) using a history of reported cases, temporal features (seasonality and trend) and region-specific as well as demographic information.

The model is implemented in Python and relies on the PyMC3 and Theano packages for computationally efficient sampling.

Key features of the model:

  • a single probabilistic model learns to predict the number of weekly case counts for three different diseases (campylobacteriosis, rotaviralenteritis and Lyme borreliosis) at the county level one week ahead of time
  • a Bayesian Monte Carlo regression approach provides an estimate of the full probability distribution over inferred parameters as well as model predictions.
  • the model learns an interpretable spatio-temporal kernel that captures typical interactions between infection cases of the tested diseases.

Setup

It is recommended to install a local virtual environment for python3, a requirements.txt is provided.

Run virtualenv --no-site-packages --python=python3 .venv followed by pip install requirements.txt to get going.

The experiment is then run by first sampling interactions effects and then the posterior, currently implemented via a SGE scripts ./src/gridjob_sample_ia.sge and ./src/gridjob_sample_posterior.sge . Adapt to different runtimes as needed.

Data sources

Epidemiological data

The data is provided by the Robert Koch Institute, and consists of weekly reports of case counts for three diseases, campylobacteriosis, rotavirus infections and Lyme borreliosis. They are aggregated by county and collected over a time period spanning from the 1st of January 2011 (2013 for borreliosis) to the 31st of December 2017 via the SurvNet surveillance system. Aggregated case counts of diseases with mandatory reporting in Germany is available online.

Covid-19

Covid-19 data is provided by the Robert Koch Institute via the publically accessiable this link. The downloadable CSV table can be found in ./data/raw and is preprocessed to fit the BSTI Model implementation via the notebook ./notebooks/preprocess_covid19_data.ipynb.

Geospatial data

Information about the shape of counties within Germany is publicly provided by the German federal agency for cartography and geodesy (Bundesamt für Kartographie und Geodäsie) (© GeoBasis-DE / BKG 2018) under the dl-de/by-2-0 license.

bstim's People

Contributors

gordonpipa avatar jleugeri avatar ostojanovic avatar pnieters 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.