Git Product home page Git Product logo

openaps-predict's People

Contributors

channemann avatar loudnate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openaps-predict's Issues

Add diyps IOB decay

In support of #17 etc., we should add the DIYPS IOB curve formula. For 3h DIA, it uses a bi-linear activity curve that goes from 0 to peak at 75m, then back down to 0 at 3h. The resulting IOB curve is curvilinear, and looks a lot like the Walsh and Medtronic curves. Those curves can then also be scaled to all other DIAs just by scaling the X axis.

https://github.com/openaps/oref0/blob/master/lib/iob/calculate.js
https://github.com/nightscout/cgm-remote-monitor/blob/master/lib/plugins/iob.js

Add linear IOB decay

To support additional DIA values (as well as partial-hour lengths). This will also address #17.

Add Glucose Momentum Framework

Add initial glucose momentum estimation and enable the easy addition of other short-term predictive models. First pass can simply be a linear extrapolation, for example.

DIA = 2 h

Add predictions (and subsequent downstream calculations) for DIA = 2 h for those with the shortest available DIAs in the minimed pumps.

add an --at option

Would be nice to have an --at option to get just an instantaneous IOB reading as of a provided timestamp (likely usually from read_clock).

Use Exercise Markers in Prediction

Much like meal markers are used in combination with the bolus wizard entries for COB analysis, it would be great to use the exercise marker to adjust the prediction. There are many ways to do this, but one is to predict a drop of x mg/dL over y min for each marker that is placed. Perhaps set it at a 1/2 U ISF equivalent or something (all could be user-configurable). When I'm about to bike or something, I can simply add a marker or two on the pump, which will shift the prediction and adjust accordingly. If I'm exercising longer, I can add more markers.

Might only apply to x23 series, not sure.

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.