Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Telemedicine System for Modeling and Managing Blood Glucose David L. Duke October 26, 2009 Intelligent Diabetes Assistant.

Similar presentations


Presentation on theme: "A Telemedicine System for Modeling and Managing Blood Glucose David L. Duke October 26, 2009 Intelligent Diabetes Assistant."— Presentation transcript:

1 A Telemedicine System for Modeling and Managing Blood Glucose David L. Duke October 26, 2009 Intelligent Diabetes Assistant

2 IDA Thesis ● Individual models, taking into account nutrition, medication, and exercise, with appropriate mathematical modeling, can learn accurate representations of specific patients suitable for providing therapy advice.

3 Proposed Outcomes ● Demonstrate the system that can collect, share, and analyze. ● Demonstrate improvement over previous methods of modeling and blood glucose prediction. ● Demonstrate methods for generating therapy advice from the models.

4 Background and Motivation ● Diabetes occurs when the control system for maintaining normal blood glucose (70-100 mg/dl) fails. – Type 1 = pancreas failure. – Type 2 = insulin utilization failure. ● The primary therapy inputs are meals, medication, and exercise. ● There are over 300,000,000 diabetics in the world.

5 Modeling Task ● Two modeling tasks – Predicting postprandial blood glucose – Continuous dynamic modeling ● Key methods for model improvement – Start with better data – Include the controllable inputs – Model nonlinearities – Uncertainty propagation

6 Start with Better Data ● Three primary controllable components: – Meals, Medication, Exercise -> BG ● Collection system must be: – In situ: data that represents real life. – Accurate: best available measurement – Efficient: simple for patients to use – Complete: collects all primary inputs – Networked: shares data with the care team

7 IDA System ● Patient System – Cellphone, Bodymedia ● Health Care System – Time-line, Meal analysis – Messaging

8 Clinical Collection Protocol ● 16 patients collected data for two weeks. Subjects were to measure: – Pre-meal BG – Postprandial BG – Meal images/carbs – Exercise – All medications ● 9 male, 7 female ● 9 T2DM, 7 T1DM ● Diverse population

9 Descriptive Statistics ● Parameter Min Mean Max – Age (yrs) 19 46 56 – BMI 21 29 43 – Weight (lbs) 121 170 232 – Mean BG (mg/dl) 108 147 229 – Std BG (mg/dl) 15 55 83 – Mean Carb (gm) 35 66 116 – Std Carb (gm) 17 35 68 – Mean Ex. (cal/m) 1.25 1.74 2.73 – Std Ex. (cal/m) 0.40 0.92 1.76 – Number BG 18 60 115

10 Postprandial Prediction Problems ● Determining the variable order ● Modeling method comparison – Linear vs. nonlinear – Joint vs. individual ● Model performance as a function of training set size ● Predicting performance for patient

11 Evaluation Methods ● R 2 coefficient ● Clarke Error grid – A - 20% – B – C – D – E A A B B B B C C C C C C D D D D E E E E

12 Model Input Parameters ● Pre-meal BG ● Time of Postmeal BG ● Exercise 2-1 hr before ● Exercise 1-0 hr before ● Exercise 0-1 hr after ● Exercise 1-2 hr after ● Time of day ● Carbs ● Fat ● Protein ● Calories ● Recent carbs ● Recent fat ● Recent protein ● Recent calories ● Rapid insulin ● Regular Insulin ● Recent Mixed Insulin ● Earlier Mixed Insulin ● Sulfonylureas ● Meglitinides ● Biguanides...

13 Modeling Methods ● Gaussian Process Regression – Linear kernel or Gaussian kernel – Individual, Weighted, or Joint data ● Reduced Rank Gaussian Process Regression with Generic Basis

14 Gaussian Process Regression ● GP Regression can be expressed as least squares minimization with a regularization parameter in the error function. ● This give the solution below for new test points.

15 GP Kernel Functions ● Linear kernel ● Gaussian kernel ● Patient similarity kernel (weighted mixture)

16 RRGP description ● Convert to a generic reduced rank basis and then apply patient specific coefficients. ● Solution found using ALS

17 Variable Order Experiment ● 10 times with randomly selected training and test sets ● GP regression with Gaussian and linear kernel ● Greedy algorithm to select the next variable based on either the R 2 or Clarke metric ● Results were combined using a voting algorithm

18 Variable Order Results

19 Model Performance Experiment ● 10 experiments with random training and test sets. ● Evaluated each model at each variable in previously selected order. ● Combined the results by calculating the mean value of the evaluation metric.

20 Model Performance Results

21 Comparison to Other Results ● IDA: 57% in region A ● Human predictions – 28.5 % – 41.5 % ● Other computational prediction systems – 34 % – 51 % ● Simulated theoretical bound – 43.6 %

22 Model Performance Results ● The Gaussian kernel is better than the linear kernel. ● There is no significant difference between the individual and weighted mixture of patients methods. ● For the interdependent variables like carbohydrates and insulin doses, the model only improves with both measurements are included.

23 Performance for a New Patient Patients with more than 30 valid meal events in their dataset. Converges after 3 days. Patients with more than 30 valid meal events in their dataset. Converges after 3 days.

24 Predicting modeling performance

25 Continuous Models ● Four model were evaluated – ARX – autoregressive with exogenous variables – AR – autoregressive – PM – published physiological model – PM+EX – physiological model with exercise ● Three use cases – Prediction: Model is updated with recent CGM – Real-time: Model is updated with recent BG – Retrospective: Model is update with both past and future BG measurements

26 Physiological Model Components

27 EKF Physiological Model ● The physiological model is implemented as an Extended Kalman Filter. ● The glucose regulatory system is a nonlinear system. ● The uncertainty in a blood glucose prediction or estimate is as important as the actual estimated value when generating therapy advice. ● The EKF propagates the uncertainty through the system.

28 Model Output

29 Optimizing Insulin Sensitivity

30 Results (15 minutes)

31 Comparison of Models AR X Physiological Models

32 Exercise vs Old: Prediction Time Old Model New Model with Exercise

33 Exercise vs Old: Real-time A B C D E Old Model New Model with Exercise

34 Exercise vs Old: Retrospective A B C D E Old Model New Model with Exercise

35 Therapy Advice ● There are two general types of therapy advice ● Real-time – Insulin dose adjustments – Hypoglycemia warnings – Closed-loop control ● Retrospective – Behavior advice – Parameter adjustment

36 Insulin Dose Adjustment ● Combine insulin dose calculated using a common equation with the optimal value estimated using GP regression to shift the suggested dose.

37 Providing Justification ● Justification can be given for a therapy suggestion by referencing similar data from the training set. Similar data can easily be selected using the Gaussian kernel.

38 Hypoglycemia Prediction: ARX

39 Closed-loop Control ● The most common form of closed-loop control being investigated for an artificial pancreas is model predictive control. ● Any improvement in modeling performance can help improve closed-loop control. ● The key limiting factor is the variability in the system, so accounting for exercise and the uncertainty propagation is a positive contribution.

40 Behavior Space Optimization

41 Meal Portion Estimation

42 Finding Similar Meals Similar Meal Images

43 Conclusions ● Demonstrate System: – Data collection. ● Demonstrate Improved Modeling: – Postprandial: performs better than other systems and humans. – Continuous: the method for including exercise improved the published physiological model. ● Demonstrate Advice: – The system can be used to generate many types of real-time and retrospective advice.

44 Acknowledgments ● Carnegie Mellon Qatar ● Hamad Medical Corporation – Mahmoud Zirie and Mazahir Mahmoud ● Qatar Diabetes Association – Katie Nahas and Nedaa El-Khatib ● Qatar National Science Fund

45 Questions?

46 Gaussian Process Regression Include similar patients to help extrapolate (red). Include similar patients to help extrapolate (red). Data from test subject (blue).

47 CGM Quality

48 Raw Patient Data

49 Sample Results

50 Extrapolation and Interpolation New Behavior Repeated Behavior Individual Data Mixture of Patients Moving Average

51 RRGP Error Convergence


Download ppt "A Telemedicine System for Modeling and Managing Blood Glucose David L. Duke October 26, 2009 Intelligent Diabetes Assistant."

Similar presentations


Ads by Google