Skip to content

Improving short-term prandial blood glucose outcomes for people with type 1 diabetes, a complex disease that affects nearly 10 million people worldwide. We aim to leverage semi-supervised learning to identify unlabelled meals in time-series blood glucose data, develop meal-scoring functions, and explore causal machine-learning techniques.

Notifications You must be signed in to change notification settings

Cristianofiliped/bg_control

 
 

Repository files navigation

Blood Glucose Control with Wat.ai and Gluroo

Causal Modeling and Time Series Representation Learning for Diabetes Management

TPMs: Christopher Risi, Walker Payne, Dvir Zagury-Grynbaum.

Gluroo aims to simplify diabetes management by streamlining the tracking of fitness, nutrition, and insulin use for People with Diabetes (PWD). This project focuses on improving short-term prandial (during meal-time) and postprandial blood glucose level outcomes for people with Type 1 Diabetes (T1D). This complex disease affects nearly 10 million people worldwide. We aim to leverage semi-supervised learning to identify unlabelled meals in time-series blood glucose data, develop meal-scoring functions, and explore causal machine-learning techniques to suggest optimal treatments for user profiles. We aim to provide actionable insights to PWDs and their care practitioners, enhancing health outcomes and quality of life.

Project Goals

  1. Meal Identification develop the ability to identify unlabelled meals in time series BG data.

    • AI Topics: Feature Engineering, Time Series Representation Learning
  2. Meal Scoring develop the ability to score/evaluate T1D postprandial Blood Glucode Level (BGL) characteristics to serve as a meal-scoring function. Find prandial measures that strongly correlate or predict long-term diabetic health indicators like Time-in-Range (TIR), HbA1C%, Glucose Management Indicator, and Glucose Variability (GV).

    • AI Topics: Feature Engineering, Time Series Forecasting, Time Series Representation Learning
  3. Prandial Interventions and Counterfactuals develop and explore various causal machine learning techniques for estimating the effects of and suggesting pre/postprandial interventions to improve meal scores (uplift modeling, intervention estimations). Develop the ability to provide hindsight (counterfactuals) to PWD, providing interactive experimentation abilities to diabetic care practitioners. This helps PWDs find their personalized best call of action to get intended health results and helps them experiment with different strategies and their direct effects. This is seen in counterfactual estimations as recommendations for better T1D management. E.g. if a user did $X$ during that meal, the glucose response curve would have looked like $Y$.

    • AI Topics: Time Series Causal Modelling, Causal Inference, Intervention and Counterfactual Estimation, Causal AI.
  4. Blood Glucose Controller develop a simulated insulin BG-controller using open source FDA approved blood glucose control simulators.

    • AI Topics: Representation Learning, Time Series Forecasting, Reinforcement Learning.

Background

Diabetes requires a unique way of living. For most, to successfully manage the disease and avoid its long-term adverse effects, you must have detailed fitness and nutrition tracking, not unlike professional athletes or bodybuilders, but with the added complication of knowing how and when to administer insulin. Some can get away without detailed monitoring if they are highly habitual. For most, that’s an undesirable restriction, but where a Person with Diabetes (PWD) falls on that scale is a trade-off that depends on the individual.

At Gluroo, they aim to alleviate PWD's cognitive burden by making fitness, nutrition, and insulin tracking as streamlined as possible. With good tracking and monitoring, the PWD may learn minor behavioural modifications that improve their BG control. Learning these modifications on your own can take months or years of experimentation and often requires waiting months for long meetings with diabetic care professionals to evaluate what changes are necessary. For this project, our aim is to develop tools for improving short-term prandial (meal-time) / postprandial outcomes by providing counterfactuals to PWDs and their diabetic care practitioners.

improved short-term decisions -> improved long-term disease outcomes

Many things impact a ‘relatively successful’ prandial BG behaviour, the main behavioural ones to focus on tend to be insulin dosing quantity, insulin dosing timing, basal insulin requirements, physical activity (in preceding hours and immediately postprandial), quantity of carbohydrates consumed, glycemic index of carbohydrates consumed, alcohol consumed with meal (slows absorption of carbs), amount of fat and protein consumed with meal (slows absorption of carbs but creates a delayed glucose spike).

If we can provide counterfactuals that improve PWD’s postprandial BG characteristics, we will have made thousands to millions of people’s lives significantly easier and more enjoyable, we will be increasing their freedom to enjoy a wider variety of foods safely, and potentially extending their years living a happy and healthy life.

Interesting Background Papers and Links

1. Diabetes Management

Meal Identification / Anomaly Detection
Insulin Bolus Timing

2. Time-Series Representation Learning

3. Causal Modelling

4. Time Series + Causal Modeling

Project Timeline

Month Milestones
September Hired a finalized team who want to work on this project
October Team Onboarding, Diabetes Workshop, Time-Series + Causal Modeling Workshop, Github + MLOps Training, outline of modeling pipeline.
November EDA focuses on identifying meals from BG data, and the setup of our MLOps pipelines.
December EDA focus on meal-time scoring metrics, and evaluation of scoring functions in the MLOps pipelines. Writing a substack article summarizing the results of the various meal-time score metrics with visualizations.
January Extensive training runs for causal modelling and time series representation learning.
February Writing up results for publication, soliciting feedback from advisors, multiple drafts and editing.
March Dissemination of results.
April Project wrap-up, next steps and future work, celebration!

About Us - Short Bios

💉 💧 = T1D

Technical Project Managers:

Christopher Risi 💉 💧

Christopher Risi is a computer science PhD student at the University of Waterloo specializing in artificial intelligence. He works in the University of Waterloo's Computational Health Informatics Lab (CHIL) and as a Consultant, AI Research and Health Insights at Gluroo Imaginations Inc. Christopher's research focuses on finding ways to utilize a wide variety of AI tools for easing and improving diabetes management. Christopher has Latent Autoimmune Diabetes of Adults (LADA) a subtype of T1D.

Walker Payne 💉 💧

Walker Payne is a data scientist at Gluroo. He is also a type 1 diabetic, having been diagnosed nearly 15 years ago.

Dvir Zagury-Grynbaum

Dvir Zagury-Grynbaum is a mathematical physics undergraduate student at the University of Waterloo with research and application experience in causal inference and causal AI. He will bring his expertise to help answer questions standard ML tools have trouble with in finite data scenarios where Randomized Controlled Trials are not always possible, such as diabetes health data scenarios.

Core Members:

Abdullah Shahid 💉 💧

Abdullah Shahid is a computer science undergraduate at the University of Waterloo. Diagnosed with Type 1 Diabetes nearly a decade ago, he has developed a diabetic lifestyle management app as a personal project in the past and has interned at companies like Lyft. He aims to leverage his experience to make life easier for diabetics around the world.

TBD 2

TBD [...]

About

Improving short-term prandial blood glucose outcomes for people with type 1 diabetes, a complex disease that affects nearly 10 million people worldwide. We aim to leverage semi-supervised learning to identify unlabelled meals in time-series blood glucose data, develop meal-scoring functions, and explore causal machine-learning techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%