matlab and cardiovascular engineeringkr.mathworks.com/content/dam/mathworks/...heidenreich, p.a., et...

29
MATLAB AND CARDIOVASCULAR ENGINEERING SOLVING PROBLEMS, SAVING TIME Dr Michael Stevens INNOVATIVE CARDIOVASCULAR ENGINEERING AND TECHNOLOGY LABORATORY

Upload: others

Post on 09-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

MATLAB AND CARDIOVASCULAR ENGINEERING

SOLVING PROBLEMS, SAVING TIME

Dr Michael Stevens

INNOVATIVE CARDIOVASCULAR ENGINEERING AND TECHNOLOGY LABORATORY

Page 2: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Using MATLAB in the ICET LAB

• Numerical Model (Computer Simulation)

• Mock Circulation Loop (Mechanical Simulation)

• Design and Tuning of Feedback Control Loops

Page 3: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

1. Terracciano, C.M., L.W. Miller, and M.H. Yacoub, Contemporary use of ventricular assist devices. Annu. Rev. Med., 2010. 61: p. 255-70.2. Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy Statement From the American Heart Association. Circulation, 2011. 123(8): p. 933-944.3. Thunberg, C.A., et al., Ventricular assist devices today and tomorrow. Journal of Cardiothoracic and Vascular Anesthesia, 2010. In Press.

• Prevalence: About 3% of population1,2

• Hospital admissions: Over 1M in US alone per year3

• Costs: $35B USD per year in US2

• Projections: $95B USD per year in US by 2030.2

• Less than 4000 heart transplants performed worldwide per year.

HEART FAILURE

Page 4: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Ventricular Assist Devices - VADs

• Bridge to transplantation

• Bridge to destination

Page 5: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Rise of VAD implantations

Page 6: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

About The ICET LabThe Prince Charles Hospital

Page 7: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Combating cardiovascular disease by serving as a bridge between the engineering department and clinic.

ICET LAB - OUR AIM

Page 8: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Using MATLAB in the ICET LAB

• Numerical Model (Computer Simulation)

• Mock Circulation Loop (Mechanical Simulation)

• Design and Tuning of Feedback Control Loops

Page 9: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Testing VADs

High CostLow repeatabilityRequires proof of

concept

Low CostHigh repeatability

Page 10: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Numerical Model – Lumped Parameter Model

• Developed Dr Einly Lim – University of Malaya

Page 11: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Simulink Model – Cardiovascular System

• Created by PhD Student Frank Nestler

Page 12: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Simulink Model – Pump and Cannula

Page 13: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Validation – Left Ventricular Pressure

Literature Numerical Model

Page 14: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Using MATLAB in the ICET LAB

• Numerical Model (Computer Simulation)

• Mock Circulation Loop (Mechanical Simulation)

• Design and Tuning of Feedback Control Loops

Page 15: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Mock Circulation Loop

Page 16: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Instrumentation and Actuation

P

V

Q

PV

S&R

P

PP P

P

P

P

P

P

V

Q

Q

Q

PV

S&RS&R

16+ Analog inputs5+ Digital outputs7+ Analog OutputsControl @ 2000HzSample @ 100 Hz

S&R

S&R

Page 17: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Simulink Control Model for MCL

Page 18: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Controlling MCL with MATLAB and dSPACE

Simulink Model

dSpace Processor

Compile

DA out

AD in

Page 19: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Mock Circulation Loop In Action

Page 20: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

MCL Validation Literature

MCL

Numerical Model

Page 21: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

MCL Additions – Cerebral Circulation

Literature

Numerical Model

Page 22: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Using MATLAB in the ICET LAB

• Numerical Model (Computer Simulation)

• Mock Circulation Loop (Mechanical Simulation)

• Design and Tuning of Feedback Control Loops

Page 23: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Physiological Control:‘Smart’ Cruise Control for Rotary VADs

Automatically adjust speed to respond to physiological changes• Prevent collapse of ventricle

• Increase flow during exercise

Page 24: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Control System Tuning

• Very complex plant model

• High-order

• Non-linear

• Time and patient variance

• Tuning was performed using gradient descent optimisation.

• Initially developed own optimisation script

• Now use MATLAB Optimisation Toolbox

Page 25: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Optimisation Objective Function

Define Ideal Control + Plant

Behaviour

𝜔𝑛2

𝑠2 + 2ζ𝜔𝑛𝑠 + 𝜔𝑛2

+

- 0

𝑇Value to minimise

𝑥2

C(s) G(s)+-

Controller Plant

Target

Rise TimeSettling TimeOvershoot

Page 26: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Optimising to achieve an ideal response

Page 27: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Control Tuning using Optimisation: Some Considerations.

• Local vs. Global minima.

• Initial Guess of Gains.

• Requires careful selection of objective function and optimisation parameters.

• MATLAB documentation for Optimisation Toolbox very helpful.

Page 28: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Using MATLAB in the ICET LAB

• Numerical Model (Computer Simulation)

• Mock Circulation Loop (Mechanical Simulation)

• Design and Tuning of Feedback Control Loops

Solving Problems, saving time

Page 29: MATLAB AND CARDIOVASCULAR ENGINEERINGkr.mathworks.com/content/dam/mathworks/...Heidenreich, P.A., et al., Forecasting the Future of Cardiovascular Disease in the United States: A Policy

Thank you