Coder Social home page Coder Social logo

ghurault / mbml-eczema Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 46 KB

Mechanistic Bayesian Machine Learning model of eczema dynamic

License: GNU General Public License v3.0

Stan 23.76% R 76.24%
eczema bayesian-statistics probabilistic-models timeseries-forecasting mechanistic-models stan

mbml-eczema's Introduction

Personalised prediction of daily eczema severity scores using a mechanistic machine learning model

This repository contains the code written for the article by Hurault et al. (2020), "Personalised prediction of daily eczema severity scores using a mechanistic machine learning model", published in Clinical & Experimental Allergy. The code is written in the R language for statistical computing and the models using the probabilistic programming language Stan.

File structure

The Models folder contains:

  • Our two models
    • BaseModel.stan: the auto-regressive model based on an Exponentially Modified Gaussian distribution.
    • ExtendedModel.stan: an extension of this model to include measurements present in SWET but not in the Flares dataset. This model notably takes into account the quantity and potency of the treatment use in the determination of the different treatment responsiveness, as well as demographic factors.
  • Two benchmarks (the other benchmarks, the uniform and historical forecasts, are computed in the validation.R script)

These models, except the ExtendedModel, can be fitted to the Flares and SWET datasets in fitting.R. The ExtendedModel can be fitted in fitting_ext.R.

Forward chaining is implemented in validation.R and these results analysed in results_validation.R.

Utility functions used within the scripts are available in functions.R. In addition, we used functions from Guillem Hurault's personal package, HuraultMisc.

The Flares and SWET datasets are not available according to our data sharing agreement. During the analysis, these datasets are loaded from a proprietary package TanakaData which includes the raw files as well as data processing functions. Further processing is performed by functions written in functions_data.R.

Nonetheless, it is possible to generate fake data from the prior predictive distribution of the different proposed models. We implement this, as well as prior predictive check and fake data check in prior_fake_check.R.

Finally, plots.R is used to produce several plots present in the paper.

License

This open source version of mbml-eczema is licensed under the GPLv3 license, which can be seen in the LICENSE file.

A closed source version of mbml-eczema is also available without the restrictions of the GPLv3 license with a software usage agreement from Imperial College London. For more information, please contact Vaibhav Sharma.

mbml-eczema's People

Contributors

ghurault avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

tanaka-group

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.