A Telemedicine System for Modeling and Managing Blood Glucose

Download Report

Transcript A Telemedicine System for Modeling and Managing Blood Glucose

Intelligent
Intelligent Diabetes
Diabetes Assistant
Assistant
A Telemedicine System for Modeling and
Managing Blood Glucose
David L. Duke
October 26, 2009
IDA
IDA Thesis
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.
Measurement
Measurement
Measurement
Diabetic
Diabetic
Diabetic
Therapy
Therapy
Therapy
Proposed
Proposed Outcomes
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.
Background
Background and
and Motivation
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.
Modeling
Modeling Task
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
Start
Start with
with Better
Better Data
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
–
IDA
IDA System
System
●
Patient System
–
●
Cellphone, Bodymedia
Health Care System
–
–
Time-line, Meal analysis
Messaging
Clinical
Clinical Collection
Collection Protocol
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
Descriptive
Descriptive Statistics
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
Postprandial
Postprandial Prediction
Prediction Problems
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
Evaluation
Evaluation Methods
Methods
●
R2 coefficient
●
Clarke Error grid
–
–
A - 20%
B
–
C
D
–
E
–
E
E
C
C
A
A
B
B
D
D
B
B
D
D
E
E
Model
Model Input
Input Parameters
Parameters
●
Pre-meal BG
●
Recent carbs
●
Time of Postmeal BG
●
Recent fat
●
Exercise 2-1 hr before
●
Recent protein
●
Exercise 1-0 hr before
●
Recent calories
●
Exercise 0-1 hr after
●
Rapid insulin
●
Exercise 1-2 hr after
●
Regular Insulin
●
Time of day
●
Recent Mixed Insulin
●
Carbs
●
Earlier Mixed Insulin
●
Fat
●
Sulfonylureas
●
Protein
●
Meglitinides
●
Calories
●
Biguanides...
Modeling
Modeling Methods
Methods
●
Gaussian Process Regression
–
–
●
Linear kernel or Gaussian kernel
Individual, Weighted, or Joint data
Reduced Rank Gaussian Process Regression
with Generic Basis
Gaussian
Gaussian Process
Process Regression
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.
GP
GP Kernel
Kernel Functions
Functions
●
Linear kernel
●
Gaussian kernel
●
Patient similarity kernel (weighted mixture)
RRGP
RRGP description
description
●
●
Convert to a generic reduced rank basis and
then apply patient specific coefficients.
Solution found using ALS
Variable
Variable Order
Order Experiment
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 R2 or Clarke metric
Results were combined using a voting
algorithm
Variable
Variable Order
Order Results
Results
Model
Model Performance
Performance Experiment
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.
Model
Model Performance
Performance Results
Results
Comparison
Comparison to
to Other
Other Results
Results
●
IDA: 57% in region A
●
Human predictions
–
–
●
Other computational prediction systems
–
–
●
28.5 %
41.5 %
34 %
51 %
Simulated theoretical bound
–
43.6 %
Model
Model Performance
Performance Results
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.
Performance
Performance for
for aa New
New Patient
Patient
Patients
Patients with
with more
more than
than 30
30
valid
valid meal
meal events
events in
in their
their
dataset.
dataset.
Converges
Converges after
after 33 days.
days.
Predicting
Predicting modeling
modeling performance
performance
Continuous
Continuous Models
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
Physiological
Physiological Model
Model Components
Components
EKF
EKF Physiological
Physiological Model
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.
Model
Model Output
Output
Optimizing
Optimizing Insulin
Insulin Sensitivity
Sensitivity
Results
Results (15
(15 minutes)
minutes)
Comparison
Comparison of
of Models
Models
ARX
ARX
Physiological
Physiological Models
Models
Old Model
Model New
New Model
Model with
with Exercise
Exercise
Old
Exercise
Exercise vs
vs Old:
Old: Prediction
Prediction Time
Time
Old Model
Model New
New Model
Model with
with Exercise
Exercise
Old
Exercise
Exercise vs
vs Old:
Old: Real-time
Real-time
A
A
B
B
C
C
D
D
E
E
Old Model
Model New
New Model
Model with
with Exercise
Exercise
Old
Exercise
Exercise vs
vs Old:
Old: Retrospective
Retrospective
A
A
B
B
C
C
D
D
E
E
Therapy
Therapy Advice
Advice
●
There are two general types of therapy advice
●
Real-time
–
Insulin dose adjustments
Hypoglycemia warnings
–
Closed-loop control
–
●
Retrospective
–
–
Behavior advice
Parameter adjustment
Insulin
Insulin Dose
Dose Adjustment
Adjustment
●
Combine insulin dose calculated using a
common equation with the optimal value
estimated using GP regression to shift the
suggested dose.
Providing
Providing Justification
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.
Hypoglycemia
Hypoglycemia Prediction:
Prediction: ARX
ARX
Closed-loop
Closed-loop Control
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.
Behavior
Behavior Space
Space Optimization
Optimization
Meal
Meal Portion
Portion Estimation
Estimation
Similar Meal
Meal Images
Images
Similar
Finding
Finding Similar
Similar Meals
Meals
Conclusions
Conclusions
●
Demonstrate System:
–
●
Demonstrate Improved Modeling:
–
–
●
Data collection.
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.
Acknowledgments
Acknowledgments
●
Carnegie Mellon Qatar
●
Hamad Medical Corporation
–
●
Qatar Diabetes Association
–
●
Mahmoud Zirie and Mazahir Mahmoud
Katie Nahas and Nedaa El-Khatib
Qatar National Science Fund
Questions?
Questions?
Gaussian
Gaussian Process
Process Regression
Regression
Include
Include similar
similar patients
patients
to
to help
help extrapolate
extrapolate (red).
(red).
DDaata
taffrroom
mtteest
st ssuubj
be
jecctt ((bl
bu
luee))..
CGM
CGM Quality
Quality
Raw
Raw Patient
Patient Data
Data
Sample
Sample Results
Results
Mixture of
of Patients
Patients
Mixture
Extrapolation
Extrapolation and
and Interpolation
Interpolation
Individual Data
Data
Individual
ggee
a
r
a
vveer
A
A
ivningg
v
MMoo
New
NewBehavior
Behavior
Repeated
Repeated Behavior
Behavior
RRGP
RRGP Error
Error Convergence
Convergence