The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin...

71
The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September 21-23, 2015, Manly, Australia 1

Transcript of The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin...

Page 1: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

1

The Application of Advanced Control to the Management of Type 1 Diabetes

Graham C. GoodwinUniversity of Newcastle

Australia

Presented at IEEE MSC September 21-23, 2015, Manly, Australia

Page 2: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

2 Motivation

Type 1 Diabetes is a major health issue.

Approximately 8% of the world’s population have (Type 1 or Type 2) diabetes, about 10% of these have Type 1.

Current treatments are intrusive and often lead to poor outcomes.

Consequences of poor blood glucose regulation include: Cardiovascular disease, coma and even death.

Diabetes is the sixth highest cause of death in Australia.

The disease is particularly debilitating for children who need to regularly take blood glucose measurements and to inject insulin at multiple instants every day.

Page 3: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

3 hi

Hi

Page 4: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

4 Relevance to Control Engineering

Some of the control engineering aspects associated with diabetes treatment are:

System identification and parameter estimation

Nonlinear observers with nonstandard prior knowledge

Design of sampling strategies

Design of controllers for systems having significant nonlinearities and constraints on inputs and states

Enunciation of fundamental design trade-offs

Combining feedforward and feedback action

Accounting for the high uncertainty associated with future disturbances

Page 5: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

5

The above concepts, though familiar to control engineers, represent major challenges in the context of diabetes. For example, since patient lives are at stake, there is little or no room for error.

It will be argued that Diabetes management is a quintessential example of how control engineers can contribute to the broader field of personalized chronic disease treatment.

Page 6: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

6 How Tough is the Problem?

Diabetes treatment is extremely difficult!

Many control groups around the world are working on this problem.

Typically “text book” control algorithms are suggested.

Results are often worse, or at best, marginally better than the results obtained by manual treatment.

My honest belief is that we need to take a radically different approach!

Page 7: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

7 Today’s Talk

I will focus on 3 aspects that link Diabetes treatment to contemporary research in Control Theory.

a) Fundamental Limitations for diabetes treatment

b) Multiple daily injections

c) Dealing with disturbance uncertainty

Link to positive systems

Link to sparse optimization

Link to stochastic programming

Page 8: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

8 Outline

1. Context of Research

2. Modelling

3. Control Aspects

4. Conclusions

Page 9: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

9 Outline

1. Context of Research

2. Modelling

3. Control Aspects

4. Conclusions

Page 10: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

10

 Implementation

The AP system will incorporate an insulin pump, a continuous glucose

monitor (sensor), and a phone sized control unit.

Infusion Set and Sensor ‘in situ’

Page 11: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

11 Typical BGL response patient #102

Page 12: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

12 Outline

1. Context of Research

2. Modelling

3. Control Aspects

4. Conclusions

Page 13: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

13 Human Regulatory System

Page 14: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

14 Mathematical Modelling

Page 15: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

15 COMPLICATIONS: 1. Nonlinear 2. Model structure?

Page 16: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

16 Model Fitting for Patient #200

Page 17: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

17 Model Validation for Patient #200

Page 18: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

18 Outline

1. Context of Research

2. Modelling

3. Control Aspects

3.1 Fundamental Limitations

3.2 Multiple Daily Injections

3.3 Dealing with Disturbance Uncertainty

4. Conclusions

Page 19: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

19 Outline

3. Control Aspects

3.1 Fundamental Limitations

3.2 Multiple Daily Injections

3.3 Dealing with Disturbance Uncertainty

Page 20: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

20 Well-known Fundamental Limitation Results

Important in all Control Problems

Bode Sensitivity Integral

Implications

log 0S d

Page 21: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

21

Blood Glucose Regulation is an example of a Positive System

This leads to novel fundamental limitations.

BGL 0

Insulin Flows 0

Disturbances 0

Page 22: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

22

Theorem (Fundamental Limitations: Blood Glucose Regulation)

Let B1 be blood glucose at time T1.

B2 be blood glucose at time T2.

Then if we aim for B1, then

C1, C2, r* are functions of the pulse responses

, .u ft th h

22 1 1B C C F r B

Page 23: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

23

A key aspect of the result is that equality can be achieved by a very special insulin injection policy!

Page 24: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

24 Proof of the Theorem

Let

denote impulse response due to food disturbance

denote impulse response due to bolus injection

dth

uth

Page 25: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

25

Using the principle of superposition, the

response at time t due to a disturbance

sequence and to an input sequence

is

; 0,1,...jd j

; 0,1,...ju j

Page 26: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

26

Apply a single pulse of food at t = 0.

Constrain lower limit of BGL response to be ymin

.

Page 27: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

27 Key Step

For a given ymin occurring at time T2

There exists a best time to apply insulin to avoid low BGL response

2

2

1

min

1 20, 1uT k

T uT k

hy k T c

h

Page 28: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

28 Illustrate the key idea of the proof via pictures

time

insulinT1 T2

A1 A2

insulinfood Produces Undershoot

Page 29: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

29

time

insulinT1 T2

B1

B2

delayedinsulin

food

delay

Page 30: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

30 Implications

It is optimal to apply a Bolus with food and any other strategy leads to a poorer trade-off.

Hence feedback from BGL to insulin unlikely to achieve good results

Go early , go hard!

Page 31: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

31 Nonlinear Version

Because the proof uses time-domain arguments, it can be extended to the case of nonlinear models.

Recent work with Christopher Townsend and Diego Carrasco.

Page 32: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

32 Illustration of Fundamental Limitations: Patient #101

Page 33: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

33 Outline

3. Control Aspects

3.1 Fundamental Limitations

3.2 Multiple Daily Injections

3.3 Dealing with Disturbance Uncertainty

Page 34: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

34

The fundamental limitation result suggests that it is optimal to inject once per meal

However, what happens if we have multiple meals?

Multiple Daily Injections

Page 35: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

35 Question

If we allow r injections in a day, then

When, and

How Much?

Page 36: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

36 Example

Say we divide the period 7am to 11pm into 5 minute intervals and allow 4 injections.

192*191*190*189

4*3*2*1approximately 55 million discrete options!

2 years @ 1 second per option

Page 37: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

37 Need to be Smarter!

Use recent research on sparse optimization

Page 38: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

38 Sparse Optimzation

Common approach is add regularization to the cost function to “promote” sparsity.

Page 39: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

39 Ridge Regression

Lasso

Elastic Net

A combination of Ridge and Lasso

2j

j

G u u

jj

G u u

Page 40: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

40

What is the best choice?

Depends on prior knowledge or desired constraint.

For example, if we want a solution of a given complexity, then we need to count the number of entries in u i.e,

where

0

01 of 0

0 of 0

jj

j j

j

G u u

u u

u

Page 41: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

41

Contours

1

1 1

1

2

22

2

>1

>1

Page 42: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

42

Advantage of regularization: It is convex

Disadvantage of regularization: It doesn’t yield a solution of specified complexity.

We will adopt an alternative approach based on converting the complexity constraint into a bilinear constraint.

Page 43: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

43

Theorem: Equivalent formulation of cardinality constrained optimization

is non-convex due to the bilinear constraint.

: min

cardinality

r uP f u

u r

,

1

1

: min min

0

0 1

n rbi u W

N

i ii

N

ii

i

P f u

u

N r

biP

Page 44: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

44 Recall the Question

If we allow r injections in a day, then

When, and

How Much?

Page 45: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

45 Patient Trials: No Bolus

Page 46: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

46 Patient Trials: One Bolus

Page 47: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

47 Patient Trials: Two Boluses

Page 48: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

48 Patient Trials: Three Boluses

Page 49: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

49 Patient Trials: Four Boluses

Page 50: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

50 Performance Improvement with Number of Boluses

Page 51: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

51 Why isn’t this the ultimate solution?

The above based on the premise of “Ground Hog” day i.e. the food and exercise disturbances repeat

In the real world there is considerable uncertainty about food and exercise patterns

To solve we need an entirely new approach that targets the uncertainty issue!

Page 52: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

52 Outline

3. Control Aspects

3.1 Fundamental Limitations

3.2 Multiple Daily Injections

3.3 Dealing with Disturbance Uncertainty

Page 53: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

53 Typical Food and Exercise Scenarios

Page 54: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

54 Typical Robust Model Predictive Control Formulation

Single Sequence Optimization

1

arg min max , , ,N

optk k k k

U D k

U y u y d

0 1

0 1

,...,

,...,

N

N

U u u

D d d

Page 55: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

55

This solution is not satisfactory since it is too conservative.

Page 56: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

56 Standard MPC Controller

Page 57: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

57

Need to take disturbances more seriously!

Use Rolling Horizon Stochastic Programming (Stochastic Dynamic Programming).

POLICY optimization rather than SEQUENCE optimization

In general computationally intractable

Page 58: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

58 Dealing with computational complexity

Divide disturbances into a finite set of options (scenarios).

Place scenarios in a disturbance tree.

Associate a control sequence with each branch of the tree.

Page 59: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

59 Simple Illustration

Say there are two possible disturbances at t = t* and the disturbance becomes known at t* + 1.

Control sequence for disturbance 1

Control sequence for disturbance 2

However, we only know the disturbance at t* + 1.

Hence add causality constraint

1 1 10 1 1, ,..., Nu u u

2 2 20 1 1, ,..., Nu u u

1 2 for 0,...,i iu u i t

Page 60: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

60 Cost Function

Expectation over all possible disturbance scenarios

With a separate input sequence for each disturbance scenario and subject to causality constraint.

1

, , ,N

jk k k k

j

J y u y d

J E J

Page 61: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

61

Note that this leads to a high dimensional but (a locally) convex optimization problem.

Page 62: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

62 Recall Food and Exercise Scenarios

Page 63: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

63 Standard MPC Controller

Page 64: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

64 Stochastic Dynamic Programming Results

Page 65: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

65

Control Aspects

3.1 Fundamental Limitations

3.2 Multiple Daily Injections

3.3 Dealing with Disturbance Uncertainty

Page 66: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

66 Outline

1. Context of Research

2. Modelling

3. Control Aspects

4. Conclusions

Page 67: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

67 Conclusions

Diabetes is a major health issue.

Half Billion suffers in the world.

Current treatment poor.

Advanced control offers genuine

prospects for improved patient outcomes.

However, we need to go beyond simple

“text book” strategies, eg MPC

Page 68: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

68

Our proposed strategy uses rolling horizon stochastic dynamic programming which, amongst other things, accounts for future disturbance uncertainty.

Finally, I see benefit in all medical and allied health professionals being required, as part of their training, to study Systems and Control!

Page 69: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

69 Acknowledgements

DART Millennium grant, Uni. Newcastle, NCIG

Hunter Medical Research Institute: Dr Bruce King,

Dr Prudence Lopez, Dr Carmel Smart, Dr Megan

Paterson, Tenele Smith, Dr Kirstine Bell.

Engineering Team: Dr Adrian Medioli, Dr Diego

Carrasco, Carly Stephen.

Students: Phan Vinh Hieu, Aaron Matthews, Natalie

Gouind.

Admin Support: Jayne Disney, Amy Crawford.

Page 70: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

70

Our Team

Others: Dr Kirstine Bell, Aaron Matthews, Chris Townsend, Vinh Hieu Phan, Tenele Smith, Natalie Govind

Page 71: The Application of Advanced Control to the Management of Type 1 Diabetes Graham C. Goodwin University of Newcastle Australia Presented at IEEE MSC September.

71

Thank you!