Show HN: I have trained 15 blood glucose forecasting models on my own data githu...

@best

Show HN: I have trained 15 blood glucose forecasting models on my own data github.com · 11 points · 2 comments · HN thread

TL;DR A type 1 diabetic developer shares T1DMAI, a repo benchmarking 15 blood glucose forecasting models (classical, deep, foundation, and their own 31k-parameter transformer) on their personal CGM data and the public MetaboNet dataset, forecasting 2 hours ahead. The author concludes that XGBoost is best overall, their model comes close, and every model is weak at catching lows, with a research-only disclaimer against medical use.

  • Author's model is a 16-layer, width-16 encoder-only transformer (31k parameters) trained first on 1M simulated people, with an optional 3771-parameter LoRA adapter fine-tuned on real data.
  • On the author's own data (N=1, 35 test days), D16 DILATE + LoRA ranks 2nd of 22 at 30 minutes RMSE, level with XGBoost at 60 and 90 minutes, and catches 40-47% of lows at 60 minutes versus 29% for XGBoost.
  • On MetaboNet (279 test people), the model ranks 7th overall at 60 minutes but has the lowest RMSE at 90 minutes; XGBoost misses nearly all lows (0% sensitivity at 60 minutes).
  • LoRA improves 60-minute RMSE on both datasets but worsens 120-minute RMSE on MetaboNet (48.0 to 50.4).
  • The author stresses the models use future insulin and carb inputs (non-blind on own data), the test sets differ widely, and the project is not clinically validated or meant for insulin dosing.
  • Parts of the code were written by AI, which the author notes openly.

Discussion The thread is short and friendly. Commenters praise the work, with one describing their own n=1 dashboard that correlates carbs, insulin, sleep and movement, and another, a spouse of a person with T1D, saying they appreciate seeing this kind of project. The mood is supportive and light, with a joke about achieving 100% time in range and no real technical debate.

  • Impressive work and welcome n=1 research from diabetics (most): Commenters praise the 89% time in range and the project's value. One says it is surprising there are not more in-depth single-person studies by data-savvy diabetics.
  • Personal data tracking helps but shows lifestyle limits (some): One commenter runs their own dashboard of carbs, insulin, sleep and movement and reports useful insights, while jokingly concluding they should eat less and move more.
  • Family perspective: glad to see the work (a few): A spouse of a person with type 1 diabetes says they appreciate seeing the project, adding a playful note about their own model reaching 100% time in range.

#diabetes #glucoseForecasting #machineLearning #timeSeries #healthTech