Dr. Zhihao Jiang Real-Time & Embedded Systems Lab Dept. - - PowerPoint PPT Presentation

dr zhihao jiang
SMART_READER_LITE
LIVE PREVIEW

Dr. Zhihao Jiang Real-Time & Embedded Systems Lab Dept. - - PowerPoint PPT Presentation

Dr. Zhihao Jiang Real-Time & Embedded Systems Lab Dept. Electrical & Systems Engineering University of Pennsylvania zhihaoj@seas.upenn.edu 1 Implantable Pacemaker 2 1990-2000: 600,000 implantable pacemakers were recalled 200,000 of


slide-1
SLIDE 1
  • Dr. Zhihao Jiang

Real-Time & Embedded Systems Lab

  • Dept. Electrical & Systems Engineering

University of Pennsylvania

zhihaoj@seas.upenn.edu

1

slide-2
SLIDE 2

2

Implantable Pacemaker

slide-3
SLIDE 3

1990-2000: 600,000 implantable pacemakers were recalled 200,000 of these recalls were due to software issue 2008-12: 15% of all the medical device recalls (Class I, II & III) due to software

3

slide-4
SLIDE 4
  • Messy Plant:

– Partially understood physiology

  • Large Variability:

– Every patient is different

  • Limited Observability:

– Losing physiological context

4

slide-5
SLIDE 5

Formal Methods Model-based Design Physiological Modeling

High-confidence Software Development for Life-critical Cyber-Physical Systems

5

slide-6
SLIDE 6

“Let our heart models catch bugs before your heart does.”

6

slide-7
SLIDE 7

7

slide-8
SLIDE 8
  • Periodically generates electrical impulses to

initialize heart beats

SA node

slide-9
SLIDE 9
  • An impulse first triggers muscle contractions

in the atria, pushing blood into the ventricles

Atria

slide-10
SLIDE 10
  • Delay at AV node which allows the ventricles

to fill fully

AV node

slide-11
SLIDE 11
  • Strong muscle contractions pump blood out of

the heart

Ventricles

slide-12
SLIDE 12
  • Delay in generation and/or conduction of the

electrical impulses results in low heart rate

Generation Conduction

slide-13
SLIDE 13
  • Local electrical activations

A V

Pacemaker

slide-14
SLIDE 14
  • Generate sensed event when signal above

threshold

A V

AS Pacemaker

Pace Threshold

slide-15
SLIDE 15
  • Same for ventricular channel

A V

AS VS Pacemaker

Pace

slide-16
SLIDE 16
  • Pace atrium when no AS within deadline

A V

V-A

AP AS VS Pacemaker

Pace

slide-17
SLIDE 17
  • Pace ventricle if no VS happen within deadline

A V

V-A

AP

A-V

VP AS VS Pacemaker

Pace

slide-18
SLIDE 18
  • Maximum interval between two ventricular

events (max(V-A)+max(A-V))

A V

V-A

AP

A-V

VP AS VS Pacemaker

Pace

V-V

slide-19
SLIDE 19
  • Unnecessary details
  • Infeasible model identification

19

Cellular Electrophysiology Tong et. al 2014 Deng et. al 2016 Whole heart Electrophysiology

slide-20
SLIDE 20

Refractory Time

Vout

Rest ERP RRP Rest Refractory Time

Vout

Rest ERP RRP Rest

Electrical Conduction System

20

slide-21
SLIDE 21

Node Automata Path Automata

21

slide-22
SLIDE 22

Represent variety of heart conditions using different topologies and timing parameters

22

Normal Sinus Rhythm Atrial Flutter Ventricle Tachycardia AV Nodal Reentry

slide-23
SLIDE 23

23

slide-24
SLIDE 24
  • Condition-specific heart models

24

Expected Response Simulator Stimuli Model of Atrial Flutter

slide-25
SLIDE 25
slide-26
SLIDE 26

26

slide-27
SLIDE 27

Heart On a Chip Analog Interface Commercial Pacemaker

slide-28
SLIDE 28

28

slide-29
SLIDE 29
  • Explore the whole reachable state space of a

model for property violations

  • Widely used in semi-conductor industries for

verifying chip design

M

𝜒

D

29

Counter-example

slide-30
SLIDE 30

30

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

Heart Conditions

Observable Behavior Space

slide-31
SLIDE 31
  • Properties satisfied by M are also satisfied by P1, P2
  • Behaviors not exist in P1, P2 may also be physiologically-valid
  • Is this a valid counter-example?
  • Need a framework to provide context for counter-examples

31

𝜒

D

M

𝜒′

Counter-example

slide-32
SLIDE 32
  • Multiple transitions are enabled
  • Relax guard conditions

32

t==1 if 𝑢 ∈ [1,5] s=1 t==1

slide-33
SLIDE 33
  • Simplify the model to increase non-

determinism for more behavior coverage

33

REST IDLE REST REST RETRO ERP ERP ANTE REST ERP IDLE ERP ERP IDLE REST REST IDLE ERP REST RETRO REST REST IDLE REST REST ANTE REST

Additional Behavior

slide-34
SLIDE 34
  • Combine models of different heart conditions

for more behavior coverage

Trest in [a1, b1] Trest in [a2, b2] Trest in [a3, b3] Trest in [min ai, max bi]

Trest

34

slide-35
SLIDE 35

35

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

Heart Conditions

Observable Behavior Space

slide-36
SLIDE 36

36

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

R2 R2 R2 R2 R1 R1 R1 R1 R1 R2 R2 R2 R2 R2 R2 R2

Heart Conditions

Observable Behavior Space

slide-37
SLIDE 37

37

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

R4 R3 R2 R2 R4 R2 R2 R1 R1 R1 R1 R1 R5 R5 R3 R3 R6 R6 R6 R2 R2 R2 R4 R4 R4 R2 R2 R4 R4 R4 R2 R4 R2 R4 R4 R4

Heart Conditions

Observable Behavior Space

slide-38
SLIDE 38

38

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

R4 R3 R2 R2 R4 R2 R2 R1 R1 R1 R1 R1 R5 R5 R3 R3 R6 R6 R6 R7 R7 R7 R2 R2 R2 R4 R4 R4

𝐼𝑏𝑚𝑚

R2 R2 R4 R4 R4 R2 R4 R2 R4 R4 R4

Heart Conditions

Observable Behavior Space

slide-39
SLIDE 39

39

Normal Sinus Rhythm Bradycardia AV Block Bundle Branch Block Sinus Tachycardia Atrial Flutter AVNRT Atrial Fibrillation Premature Ventricle Contraction Ventricle Tachycardia Ventricle Fibrillation

R4 R3 R2 R2 R4 R2 R2 R1 R1 R1 R1 R1 R5 R5 R3 R3 R6 R6 R6 R7 R7 R7 R2 R2 R2 R4 R4 R4

𝐼𝑏𝑚𝑚

R2 R2 R4 R4 R4 R2 R4 R2 R4 R4 R4

Heart Conditions

Variability Physiological Context

⌐𝜒

Observable Behavior Space

slide-40
SLIDE 40
  • Basic Safety Properties

– Heart rate never go too slow – Pacemaker never increase the heart rate too high

  • Pacemaker Mediated Tachycardia

– Can pacemaker increase heart rate inappropriately? – Are there multiple cases of them? – Can the algorithm terminate the behavior in time?

40

slide-41
SLIDE 41

41

slide-42
SLIDE 42

Model Checking Simulation Platform Testing

UPPAAL Model Stateflow Chart C Code implementation

UPP2SF Model Translation Simulink Coder

Pacemaker Heart

Non- deterministic Deterministic VHM Heart-on-Chip

Refinement HDL Coder

42

slide-43
SLIDE 43

Research Impact

43

Cyber-Physical Systems

ICCPS’11 ECRTS’11 IEEE Proceedings’12

Model-based Design

RTAS’12 (Best Paper Award) TECS’14 FnEDA’16 IEEE Computer’16

Formal Methods

TACAS’12 (Best Paper Nominee) STTT’14 MedCPS’16 HSCC’16

Biomedical Engineering

EMBC’10 EMBC’11 EMBC’16

slide-44
SLIDE 44

Development Clinical Market Heart Modeling Closed-loop Model Checking

Research Summary & Plan

Model Translation Quantitative Validation in-silico Pre-clinical Trials Security Verification Data-driven Modeling

Providing Regulatory-grade Safety Evidence With Computer Models

slide-45
SLIDE 45

Safety Evidence for Medical Devices

Computer Human Animal Bench

Today

Computer Human Animal Bench

Future

45

slide-46
SLIDE 46

Development Clinical Market Heart Modeling Closed-loop Model Checking

Research Summary & Plan

Model Translation Quantitative Validation in-silico Pre-clinical Trials Security Verification Data-driven Modeling

Providing Regulatory-grade Safety Evidence With Computer Models

slide-47
SLIDE 47

The clinical trial

The ultimate closed-loop validation

Animal testing

47

slide-48
SLIDE 48

Shock Coils Right Ventricular Lead Tip & Ring Left Atrium Left Ventricle Right Atrium Right Ventricle

ICD

Can (Shock) Electrode

Atrial Signal Ventricular Signal Shock Signal

AS VS AS AS VS VS Right Atrium Lead Tip & Ring Sense Therapy

Implantable Cardiac Defibrillator

48

slide-49
SLIDE 49

RIGHT

The Rhythm ID Going Head to Head Trial*

49

Primary endpoint: occurrence of inappropriate therapy

*Berger et al., “The Rhythm ID Going Head to Head Trial”, Journal of Cardiovascular EP, Vol. 17, No. 7, July 2006 Select Medtronic ICDs (the control arm) Vitality II ICD (Boston Sci.) (the treatment arm)

Inappropriate Therapy ~2,000 patients, 5 years

Assumed 25% less risk of inappropriate therapy with Vitality II relative to Medtronic ICDs

slide-50
SLIDE 50

RIGHT Trial Results – Inappropriate Therapy

Inappropriate Therapy VITALITY 2: 62.2% Medtronic: 45.9% Majority of the therapy episodes were inappropriate

*Michael R. Gold, Primary results of the Rhythm ID Going Head to Head Trial, Heart Rhythm, Vol 9, No 3, March 2012

50

slide-51
SLIDE 51

Real Patient Data for Adjudication & Extraction Cohort Generation Synthetic Heart Model Generation

Real Patient Data & Heart Models Synthetic Heart Model Generation Complete Generated Population

Adjudicated EGM Database … … Patient A Patient C Patient B

N Patient Records M Episodes

1 2 3

PAC AF VT PVC RVA AV SA VF RBB LVA SVT

Model A1

PAC AF VT PVC RVA AV SA VF RBB LVA SVT

Model AN Boston Scientific ICD Medtronic ICD

PAC AF VT PVC RVA AV SA VF RBB LVA SVT

Model JN

Atrial Channel Ventricular Channel Shock Channel

Generated Electrogram Waveforms

Diagnosis Sensitivity and Specificity

ICD Device Model

Synthetic Heart Model

PAC AF VT PVC RVA AV SA VF RBB LVA SVT

Device Testing & Evaluation

4 Learn Parameter distribution Sampling parameters from distribution 10,000’s Condition- specific Model Generation 10,000’s Condition- specific electrograms Closed-loop evaluation

in-silico Pre-Clinical Trials

NSF Frontiers CyberCardia $4.2M. Started May 2015 to May 2020.

51

slide-52
SLIDE 52

Result 1: Specificity across populations

52

Atrial fibrillation Atrial flutter PVC Non-sustained VT Other SVT Double Tachycardia Ventricular Fibrillation Ventricular Tachycardia

slide-53
SLIDE 53

Result 1: Specificity across populations

53

slide-54
SLIDE 54

Result 2: Patient Condition-level Analysis

54

slide-55
SLIDE 55

55

In-Silico Pre-Clinical Trials Toolchain

Patient Data Management Virtual Cohort Generation Simulated Trial Device in the Loop Trial Results

Unlabeled patient data is annotated Timing and morphology information is extracted Virtual cohort is generated from extracted information Software simulation using virtual cohort Hardware validation with actual physical device Analysis of results

slide-56
SLIDE 56

56

Device-in-the-loop Testing

Device Input … … Device Response

slide-57
SLIDE 57

Understanding the Application Domain

57

slide-58
SLIDE 58

Medical Collaborators

4/12/2017 58

Heart model development and validation, Device algorithm, De-identified Patient data

Director, Electrophysiology Laboratories, Penn Cardiology, Penn Presbyterian Medical Center Electrophysiology Fellow, Hospital of the University of Pennsylvania Director, Cardiac Electrophysiology, Philadelphia VA Medical Center

Developing clinical assist system for atrial fibrillation Heart Model development and validation, ICD discrimination algorithm development, in silico Pre- clinical trials

slide-59
SLIDE 59

Industrial Collaborations

59

Provided algorithm descriptions, sample devices, programmers, testing platform Provided algorithm descriptions, sample devices, programmers, test cases Provided model-based design toolbox Provided software and hardware

slide-60
SLIDE 60

Ed Clarke CMU James Glimm Stony Brook Radu Grosu Stony Brook / Vienna Elizabeth Cherry RIT Sean Gao MIT Sanjay Dixit Director of Cardiac Electrophysiology Philadelphia VA Hospital Arnab Ray Fraunhofer Rick Gray FDA Rahul Mangharam Penn Flavio Fenton Gatech Scott Smolka Stony Brook Rance Cleaveland UMD / Fraunhofer

5 Computer Scientists, 2 Cardiologist,s 1 Physicist, 1 BioMed Engineer, 2 Mathematicians, 1 Electrical Engineer

NSF CPS Frontier

slide-61
SLIDE 61

Thanks!

Questions?

61