These are chat archives for nightscout/intend-to-bolus
FYI, if you are using the most updated Hovorka models, for the really scary math, you will likely have to use WinBUGS (with WBDiff and GeoBUGS), which can be used within MATLAB via an inline function using a specific MATLAB toolbox.
The really scary math is not as bad as it appears. Hovorka published some of his WinBUGS code (although it is an autoregressive model, not a Markov Chain Monte Carlo), which makes the dirty work of implementing the models a lot easier to properly do. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3201840/
Actually, looking at the paper I am using for my implementation of the mathematical models, renal and hepatic models have been substituted, using time-varying piecewise linear fluxes in various models:
"The novel component of the present work is the additive time-varying piecewise-linear flux f_sub_g_of_t (μmol/kg/min) to model diurnal changes and other time-varying characteris- tics of glucose kinetics. The plasma glucose concentration G(t) (mmol/l) is obtained as..."
So, if you are into implementing original models (I'm not...I will leave it up to the people at Cambridge) there's a book that's a gold mine
See page 78. They have a whole chapter for the artificial pancreas
Some academic is not going to win against US law. They can make an example out of me. Plus, I wouldn't be nervous unless I didn't have rare autoimmune diseases. Like getting arrested/incarcerated/detained is not really an option for me.
When I was younger, before I knew I had rare autoimmune diseases, I may have felt differently.
The one go to resource would be this. It's the closest thing to an agreed upon model for BG prediction:
A Novel Adaptive-Weighted-Average Framework for Blood Glucose Prediction
But, I will look for improvements for starters
OK, will do AR.
@bewest , I don't know a lot of OOP. Data structures is more of my thing...
It's not a preference. I am just good at math.
Yay! I always root for the Seahawks...I'm from Seattle.