Giter Site home page Giter Site logo

momoyamasawa / accuratebg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yixiangd/accuratebg

0.0 0.0 0.0 17.57 MB

Patient-specific blood glucose prediction using deep learning, considering the challenges of "small dataset" and "data imbalance"

License: MIT License

Python 99.83% Makefile 0.17%

accuratebg's Introduction

Accurate BG

Repository for paper Deep transfer learning and data augmentation improve glucose levels prediction in type 2 diabetes patients.

Setup

Installation

We recommend you create a virtual environment via Anaconda or Pyenv, then activate the virtual environment and run

>> make dev

We used tensorflow 1.15.0.

Train and test for the OhioT1DM dataset

To test for the OhioT1DM dataset, create a folder named data at the root directory

>> mkdir data/

Then, download the public dataset OhioT1DM here, and move the unzipped folder OhioT1DM into data. (Note that to use the dataset, you need to apply for it with the link provided and we are unfortunately not able to provide the dataset for you.)

To train and test for the OhioT1DM dataset, with our optimal configuration, run

>> cd accurate_bg
>> python3 ohio_main.py --epoch 150

the default prediction horizon is 6, equivalently 30 min. To adjust prediction horizon to 1hr, modify the last line of command in the code block above with

>> python3 ohio_main.py --epoch 150 --prediction_horizon 12

Reference

If you find this repo or our work helpful, we encourage you to cite the paper below.

@article{deng2021deep,
  title={Deep transfer learning and data augmentation improve glucose levels prediction in type 2 diabetes patients},
  author={Deng, Yixiang and Lu, Lu and Aponte, Laura and Angelidi, Angeliki M and Novak, Vera and Karniadakis, George Em and Mantzoros, Christos S},
  journal={NPJ Digital Medicine},
  volume={4},
  number={1},
  pages={1--13},
  year={2021},
  publisher={Nature Publishing Group}
}

accuratebg's People

Contributors

yixiangd avatar momoyamasawa 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.