6 points · by 0xdeadf1sh · 2w ago · 4 comments
In addition to time series input, two additional inputs are provided: insulin (U) and carbs (G, GI) as action curves where U = units of insulin, G = carbs in grams, GI = glycemic index. U is exact, while (G, GI) is my best estimate.
The model is trained to output BG in Kovatchev risk-space using {DILATE,MSE} and pinball loss combined with learned Kendall-Gal weights. The figures above show models trained using DILATE. It can predict 2 hours into the future, infill missing traces, and do backcasts (predictions into the past).
The model is also trained to predict time-of-day given past blood sugar, in contrast to other models that consume time-of-day as input feature. This capability emerges in >=48h context windows (i.e. 48 hours of past CGM trace). Natively the model has a variable context window size of 3.5 - 7.0 days.
The model is still worse than me when it comes to predicting hypoglycemia in the next ~30 minutes.
What you're doing here is far beyond what I did and it's stuff like this that really make me white-pilled on the future. I know you said that the model is worse than you, but just think about how far stuff like this has come and what it might look like in the future.