Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

23
Ivan Ruchkin, Selva Samuel, Bradley Schmerl, Amanda Rico, and David Garlan Institute for Software Research, Carnegie Mellon University

Transcript of Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Page 1: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Ivan Ruchkin, Selva Samuel, Bradley Schmerl, Amanda Rico, and David Garlan

Institute for Software Research, Carnegie Mellon University

Page 2: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

2

Page 3: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

3

CPS operate in uncertain contexts

Need to adapt to unanticipated situations

Page 4: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

4

System & environment under adaptation

Adaptation with models

Phenomena

Page 5: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

5

System & environment under adaptation

Adaptation with physical models

Physical phenomena

Page 6: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

6

NUC(computer)

Kinect(sensor)

Base(actuator & battery)

Page 7: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

7

Page 8: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

8

Page 9: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Abstractions of physical objects and interactions

Beyond simple discrete models

Objects may be in the system, in the environment, or on the border

Example: power model for TurtleBot

How much does each task consume?

How much power is left given current voltage?

How long does it take to charge?

9

Page 10: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Software models guide state-of-the-art adaptive systems

Physical models are often implicit or assumed

In CPS, we need both software and physical models!

10

Page 11: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

1. Selecting modeling formalism

2. Obtaining physical models

3. Using physical models in adaptation

11

Page 12: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

1. Selecting modeling formalism

2. Obtaining physical models

3. Using physical models in adaptation

12

Page 13: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Many formalisms and tools are available for modeling CPS

Differential equations, signal flow graphs, automata

Position: no single formalism is enough to model adaptive CPS; we need to embrace their multiplicity

13

Page 14: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Evaluate individual formalisms Expressiveness▪ Linear/non-linear, continuous/discrete, classes of

functions (polynomials, transcendental functions, etc.)

Types of analyses supported▪ Trade-off between expressiveness and computing cost

Engineering expertise▪ Novices: higher effort and lower quality

We need approaches to integrate formalisms! Difficult problem, outside of talk’s scope

14

Page 15: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

We chose a linear real-valued regression model

Continuous changes in parameters

Easily embeddable into other models

15

P(v, t) = Av + Bt + C

15time (s)

po

wer

(wh

)

Page 16: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

1. Selecting modeling formalism

2. Obtaining physical models

3. Using physical models in adaptation

16

Page 17: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Goal: maximize value of each model

Analytical power: strength of predictions and explanations

Fragility: amount of rework to accommodate future changes

Computational cost: amount of processing needed for analysis

Position: the way we build physical models affects their value. We need more guidance!

17

Page 18: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Theory-driven

Physical theory dictates first principles

Calibrate with data

18

Data-driven

Collect data first

Then create abstractions from it

time (s)

po

wer

(wh

)

Page 19: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

19

We chose to use data-driven approach

Low expertise with theory-driven models

Ok with low-precision far-horizon predictions

The model is fragile: hard to change

Page 20: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

1. Selecting modeling formalism

2. Obtaining physical models

3. Using physical models in adaptation

20

Page 21: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Software models in adaptation are used for:

State estimation and prediction

Triggering adaptive changes

Choosing adaptive strategy

+ Continuous improvement of models themselves

Position: physical models should also be treated as first-class entities in adaptation

21

Page 22: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Clear representation

Either separate models or explicit embedding

Easier change and reuse

Coordinated use with cyber models

Estimation, prediction, choice

Models themselves should be adapted

Model value & cost should be the guiding factors

Need to reason about model value at run time!

22

Page 23: Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems

Physical models in adaptive CPS are important and difficult to build

23

Challenge Position

Selecting modeling formalism

Embrace multiplicity; use formalisms based on expressiveness, analyses, and expertise.

Obtaining physical models Model value should the guiding factor. More guidance is needed to connect model- building and model value.

Using physical models in adaptation

Physical models should be treated as first-class entities and adapted based on their value at run time.