T1DMAI - Blood glucose forecasting model zoo trained on personal data
Show HN: I have trained 15 blood glucose forecasting models on my own data
T1DMAI is a GitHub repository by a developer with type 1 diabetes who trained and tested 15 blood glucose forecasting models on their own data. The project includes a custom small transformer that predicts glucose levels 2 hours ahead, along with classical and deep learning models. It provides a comprehensive benchmark, using synthetic data from T1DMSIM and public MetaboNet data. The models are designed for research and educational purposes, not for medical use. The repository includes detailed results, code, and tools like T1DMDROID for running models on a phone. This project offers a transparent, reproducible approach to glucose forecasting, highlighting the potential of personalized AI in diabetes management.
I have type 1 diabetes and I wanna know if I can train a BG forecasting model to help me with my daily management.
- viraptor
It's so cool. I appreciate the detailed architecture doc. I wonder why the time of day is getting predicted rather than provided in data. Did that perform worse? Or is it to explicitly account for people with uncommon schedules?
- hturan
Incredible work! As a T1D I've been gathering as much data as possible (blood glucose, insulin-on-board, food consumed, heart rate, skin temperature, etc.) for exactly this purpose. Can't wait to dive in!
BG forecasting and insulin response has always seemed to me to be such a personal thing (everyone has such a different response based on the various factors, and there are _so_ many factors) that the one-size-fits-all models in CGMs seemed the lowest common denominator. We live in an age where personal data collection is easier than ever (with wearable BLE hardware) and timeseries forecasting models are better than ever, making this research even more valuable.
Thanks so much for publishing your work!
- nuthje
89% TIR, well done! Cool to see the research, I’m surprised there aren’t more in-depth n=1 studies out there from statistics/data-savvy diabetics. I built a small dashboard exactly collating carb, insulin, sleep, and movement data and trying to coax out useful correlations to help manage. Some interesting insights, but clearly I should eat less and move more. Keep up the good work, and thanks for sharing!
- tefkah
Extremely interesting, thanks for sharing!
Have you looked at Timestral at all by any chance?[0]
I'm only dipping my toes into time series models, for somewhat similar reasons.
- user_7832
Thanks for the post OP!
Is there anyway way to use xdrip or nightscout or similar to move the data into your (android) app?
I already use the official Freestyle Librelink app plus jugglucoNG (which btw is amazing if you don't use, has a lot of nice stats), and the latter can already export its data streams.
Side note, I'm very happy to see more (diy) work in this field (ever since AAPS I think). #wearenotwaiting !
(Hashtag context for non T1Ds: diy software, unsurprisingly, has been leagues ahead in capabilities than "official" software.)