r/MachineLearning
7/31/2026
![The original title is "I have trained a model to predict my blood sugar [P]"](https://preview.redd.it/v3bputi1cmgh1.png?width=140&height=91&auto=webp&s=5fcaa20e54e37915fc9d5911c43947f4a7ddb940)
The original title is "I have trained a model to predict my blood sugar [P]"
Original: I have trained a model to predict my blood sugar [P]
Short summary
A developer trained an encoder-only BERT-style transformer to predict blood glucose levels 2+ hours ahead using past glucose, carbs, and insulin data. Four model sizes (up to 17M params) were pretrained on simulators and fine-tuned on multiple T1DM datasets, with one variant running on the author's phone. The project is open-sourced under MIT license with trained weights and evaluation data included.
- •Encoder-only transformer predicts future blood glucose from past BG, carbs, and insulin data
- •Four model sizes up to 17M params, fine-tuned on OhioT1DM, AZT1D, and ShanghaiT1DM datasets
- •Open-sourced under MIT license with weights and evaluation data
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



