Show HN: I have trained 15 blood glucose forecasting models on my own data githu...
Show HN @show
Show HN: I have trained 15 blood glucose forecasting models on my own data github.com · 8 points · 1 comments · HN thread
TL;DR A type 1 diabetic developer shares T1DMAI, a repo benchmarking 15-plus blood glucose forecasting models, including their own 31k-parameter transformer, on their personal CGM data and the public MetaboNet dataset. The author reports their model ranks 2nd of 22 on their own data and 7th on MetaboNet, with XGBoost generally leading, and stresses the project is research-only and not a medical device.
- The author's model, D16 DILATE with a 3771-parameter LoRA adapter, is 2nd of 22 on their own 35-day dataset (RMSE 22.8 at 60 min vs XGBoost 22.2) and 7th on MetaboNet (34.6 vs XGBoost 33.2).
- On MetaboNet, the model has the lowest RMSE at 90 min, but every low-RMSE model misses nearly all hypoglycemic lows (XGBoost 0% sensitivity at 60 min), while linear extrapolation catches 58%.
- LoRA adaptation helps at 60 min on both datasets (for example 26.1 to 22.8 on the author's data), but worsens the model at 120 min on MetaboNet (48.0 to 50.4).
- The model is a 16-layer, width-16 encoder-only transformer forecasting 7 quantiles every 5 minutes for 2 hours, trained on 1M simulated people and runs on a phone via ExecuTorch or LiteRT.
- Results are limited: the personal dataset is N=1, the two test sets differ strongly in range and variability, and the prediction bands are uncorrected raw quantiles.
- The README states the code was mostly written by AI and the project is not clinically validated and must not be used for insulin dosing.
Discussion The thread is a single comment, so there is little discussion. The one commenter congratulates the author on the 89% time-in-range and on the research, says they wish more n=1 studies by data-minded diabetics existed, and describes their own small dashboard correlating carbs, insulin, sleep and movement with glucose. The mood is friendly and encouraging.
- Encouraging n=1 self-experimentation by data-savvy diabetics (a few): The commenter is surprised that more in-depth single-person studies are not published by statistically inclined people with diabetes. They praise the author's work and thank them for sharing.
- Personal glucose dashboards reveal useful but humbling patterns (a few): The commenter built a dashboard combining carbs, insulin, sleep and movement data to find correlations. They report some useful insights, including that they should eat less and move more.
#diabetes #glucoseForecasting #machineLearning #CGM #timeSeries #showHN