Process Model to Predict Nondeterministic Behavior of IoT Systems - - PowerPoint PPT Presentation

process model to predict
SMART_READER_LITE
LIVE PREVIEW

Process Model to Predict Nondeterministic Behavior of IoT Systems - - PowerPoint PPT Presentation

Process Model to Predict Nondeterministic Behavior of IoT Systems Yeongbok Choe and Moonkun Lee 31 October 2018 Chonbuk National University Republic of Korea Contents 1. Overview 2. dTP-Calculus 3. SAVE 4. Example 5. Analysis 6.


slide-1
SLIDE 1

Process Model to Predict Nondeterministic Behavior of IoT Systems

Yeongbok Choe and Moonkun Lee

31 October 2018 Chonbuk National University Republic of Korea

slide-2
SLIDE 2

Contents

2

  • 1. Overview
  • 2. dTP-Calculus
  • 3. SAVE
  • 4. Example
  • 5. Analysis
  • 6. Conclusions & Future Research
  • 7. Q&A
slide-3
SLIDE 3
  • 1. Overview
slide-4
SLIDE 4

Internet of Things

Definition

Network of physical devices, vehicles, buildings and other items that enable these objects to collect and exchange data1

Applications

Media

Healthcare systems

Industry 4.0

Challenges

Safety

Security

Correctness

Complex dependencies

Cyber-Physical-Systems

Requirements

Specification

Verification

4 2

1 https://en.wikipedia.org/wiki/Internet_of_things 2 https://www.mobinius.com/industry-4-0-iot/

slide-5
SLIDE 5

Motivation

5

 Probability in IoT

 Nondeterministic behavior of each devices

 Complex  Non-predictable

 Analysis and design are difficult

1 https://www.acmicpc.net/problem/13405

1

slide-6
SLIDE 6

Motivation

6

 Probability in IoT

 Probability

 In design step, statistics data is used

 Error occurred  Route selection

 Probability is used to analyze

 Risk management  Behavior prediction 1 https://blog.storagecraft.com/business-continuity-statistics-tech/

1

slide-7
SLIDE 7

Approach

7

 Process algebra

 Specify IoT systems  Analyze IoT systems  Specify probability density function  Probabilistic analysis

slide-8
SLIDE 8
  • 2. dTP-Calculus
slide-9
SLIDE 9

dTP-Calculus

9

δ Movements τ Communication ρ Control Geographical Space

  • Processes
  • Actions
  • Interactions
  • Space
  • Time
  • Probability

Synchrony

slide-10
SLIDE 10

Syntax

10

slide-11
SLIDE 11

Syntax

11

 Probability

 Probabilities specification

 Discrete distribution

 Probability density function specification

 Normal distribution  Exponential distribution  Uniform distribution

slide-12
SLIDE 12

Syntax

12

 Probabilistic choice

 Discrete distribution

 𝑄 𝑑 +𝐸 𝑅 𝑑

 𝑑 : Probability

 Example

 𝑄 0.2 +𝐸 𝑅 0.5 +𝐸 𝑆{0.3}

1

1 https://en.wikipedia.org/wiki/Probability_distribution

slide-13
SLIDE 13

Syntax

13

 Probabilistic choice

 Normal distribution

 𝑄 𝑑 +𝑂(𝜈,𝜏) 𝑅 𝑑

 𝑑 : Variable area (Condition)  𝜈 : Mean  𝜏 : Standard deviation

 Example

 𝑄 𝑤 > 52 +𝑂(50,5) 𝑅{𝑤 ≤ 52}

1

1 https://en.wikipedia.org/wiki/Normal_distribution

slide-14
SLIDE 14

Syntax

14

 Probabilistic choice

 Exponential distribution

 𝑄 𝑑 +𝐹(𝜇) 𝑅 𝑑

 𝑑 : Variable area (Condition)  𝜇 : Frequency

 Example

 𝑄 𝑤 > 2.5 +𝐹(0.33) 𝑅{𝑤 ≤ 2.5}

1

1 https://en.wikipedia.org/wiki/Exponential_distribution

slide-15
SLIDE 15

Syntax

15

 Probabilistic choice

 Uniform distribution

 𝑄 𝑑 +𝑉(𝑚, 𝑣) 𝑅 𝑑

 𝑑 : Variable area (Condition)  𝑚 : Lower bound  𝑣 : Upper bound

 Example

 𝑄 𝑤 > 5 +𝑉(3,7) 𝑅{𝑤 ≤ 5}

1

1 https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)

slide-16
SLIDE 16

Syntax

16

 Probabilistic choice

 Summation of the probabilities should be 1  Discrete distribution

 𝑄

1 𝑑1 +𝐸 𝑄2 𝑑2 +𝐸 ⋯ +𝐸 𝑄 𝑜{𝑑𝑜}

𝑑𝑗

𝑜 𝑗=1

= 1  Normal distribution, uniform distribution

 𝑄

1 𝑑1 +𝐺 𝑄2 𝑑2 +𝐺 ⋯ +𝐺 𝑄 𝑜{𝑑𝑜}

𝑑𝑗

𝑜 𝑗=1

= ℝ

 ∀𝑗, 𝑘 ∈ 𝑦 𝑦 ∈ ℕ, 1 ≤ 𝑦 ≤ 𝑜 𝑢ℎ𝑓𝑜 𝑑𝑗 ∩ 𝑑

𝑘 = ∅ (𝑔𝑝𝑠 𝑗 ≠ 𝑘)

 Exponential distribution

 𝑄

1 𝑑1 +𝐺 𝑄2 𝑑2 +𝐺 ⋯ +𝐺 𝑄 𝑜{𝑑𝑜}

𝑑𝑗

𝑜 𝑗=1

= 𝑦 𝑦 ≥ 0, 𝑦 ∈ ℝ}

 ∀𝑗, 𝑘 ∈ 𝑦 𝑦 ∈ ℕ, 1 ≤ 𝑦 ≤ 𝑜 𝑢ℎ𝑓𝑜 𝑑𝑗 ∩ 𝑑

𝑘 = ∅ (𝑔𝑝𝑠 𝑗 ≠ 𝑘)

slide-17
SLIDE 17

Syntax

17

 Probabilistic choice

 Error

 Summation of the probabilities is less than 1

 𝑄 𝑑1 +𝐺 𝑅 𝑑2

𝑑1 𝑑2 Undefined area

slide-18
SLIDE 18

Syntax

18

 Probabilistic choice

 Error

 Summation of the probabilities is greater than 1

 𝑄 𝑑1 +𝐺 𝑅 𝑑2

𝑑1 𝑑2 Overlapped area

slide-19
SLIDE 19

Syntax

19

 Probabilistic choice

 Error

 Summation of the probabilities is greater than 1

 𝑄 𝑑1 +𝐺 𝑅 𝑑2

𝑑1 𝑑2 𝑄 𝑑1 ∥ 𝑅 𝑑2 𝑄 𝑑1 𝑅 𝑑2

slide-20
SLIDE 20
  • 3. SAVE
slide-21
SLIDE 21

SAVE

21

 SAVE

 Specification, Analysis,

Verification, and Evaluation

 Based on ADOxx meta-modeling platform

slide-22
SLIDE 22

Specification - Visualization

22

 Graphic language

 System

View

 In-the-Large (ITL) Model  Representation

 Interactions of each processes

 Process View

 In-the-Small (ITS) Model  Representation

 Detailed actions of each processes

slide-23
SLIDE 23

System View

23

slide-24
SLIDE 24

System View

24

slide-25
SLIDE 25

Process View

25

slide-26
SLIDE 26

Process View

26

slide-27
SLIDE 27

Analysis

27

 Analysis

 Path analysis

 All possible execution path  Generate simulation model

 Simulation

 Simulate the system based on a path

slide-28
SLIDE 28

Simulation model

28

slide-29
SLIDE 29

Verification

29

 Verification

 Behavior analysis

 Analyze the system behavior  Generate geo-temporal space model

 Requirements

Verification

 Verify a set of system requirements

slide-30
SLIDE 30

Analysis model

30

slide-31
SLIDE 31
  • 4. Example
slide-32
SLIDE 32

Example

32

 Smart Emergency Evacuation System

 Sensors

 Fire detection

 Control System

 Evacuation alarm  Rescue request  Evacuation route

notification

1

1 http://www.arpel.com/business-services/fire-detection/

slide-33
SLIDE 33

Example

33

Building

Sensor A Sensor B

Control System

slide-34
SLIDE 34

Example

34

 Textual Specification

slide-35
SLIDE 35

Example

35

 Textual Specification

slide-36
SLIDE 36

Example

36

 Textual Specification

slide-37
SLIDE 37

Example

37

 Textual Specification

slide-38
SLIDE 38

Example

38

 Probabilistic choice

 Building

 𝑇𝐵 𝐺𝑗𝑠𝑓

0.5 +𝐸 𝑇𝐶 𝐺𝑗𝑠𝑓 {0.5}

 Discrete distribution

 P1

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,3 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5  Normal distribution

 P2

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,8 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5  Normal distribution

slide-39
SLIDE 39

Example

39

 Probabilistic choice

 Building

 𝑇𝐵 𝐺𝑗𝑠𝑓

0.5 +𝐸 𝑇𝐶 𝐺𝑗𝑠𝑓 {0.5}

 Discrete distribution

 P1

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,𝟒 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5  Normal distribution

 P2

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,𝟗 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5  Normal distribution

 P1 and P2 have same type’s choice, but parameters are

different.

slide-40
SLIDE 40
  • 5. Analysis
slide-41
SLIDE 41

Analysis

41

 Execution path

 8 paths

slide-42
SLIDE 42

Analysis

42

 Execution path

 8 paths

 Fire: The location where the fire occurred  Stay: P1 or P2, confined in Building  Out: P1 or P2, escaped from Building

Path 1 Path 2 Path 3 Path 4 Path 5 Path 6 Path 7 Path 8 Fire Stair A Stair A Stair A Stair A Stair B Stair B Stair B Stair B P1 Stay Stay Out Out Stay Stay Out Out P2 Stay Out Stay Out Stay Out Stay Out

slide-43
SLIDE 43

Analysis

43

 Probability

 Mathematical analysis

 Calculate the probability

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,𝟒 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5

 ∅ ⋅ … ⋅ 0.2023 +𝐸 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 0.7977

 ∅ ⋅ … ⋅ 𝑤 < 2.5 +𝑂 5,𝟗 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 𝑤 ≥ 2.5

 ∅ ⋅ … ⋅ 0.3773 +𝐸 𝑝𝑣𝑢 2𝑜𝑒 ⋅ … ⋅ 0.6227

Path 1 Path 2 Path 3 Path 4 Path 5 Path 6 Path 7 Path 8 % 3.82 6.3 15.05 24.83 3.82 6.3 15.05 24.83

slide-44
SLIDE 44

Analysis

44

 Simulation

 Simulate the system based on the probabilities

slide-45
SLIDE 45

Analysis

45

 Simulation

 Simulate the system based on the probabilities

Number of Simulation Probability Path 1 Path 2 Path 3 Path 4 Path 5 Path 6 Path 7 Path 8 1,000 3.5 6.2 14.2 25 3.5 7.5 14.4 25.7 1,000,000 3.79 6.32 15.04 24.86 3.82 6.32 14.98 24.87

slide-46
SLIDE 46

Analysis

46

 Simulation

 Simulate the system based on the probabilities

Number of Simulation Probability Path 1 Path 2 Path 3 Path 4 Path 5 Path 6 Path 7 Path 8 1,000 3.5 6.2 14.2 25 3.5 7.5 14.4 25.7 1,000,000 3.79 6.32 15.04 24.86 3.82 6.32 14.98 24.87 Path 1 Path 2 Path 3 Path 4 Path 5 Path 6 Path 7 Path 8 % 3.82 6.3 15.05 24.83 3.82 6.3 15.05 24.83

Simulation results Mathematical analysis

slide-47
SLIDE 47

Analysis

47

 Prediction of occurrence probability

 In complex system, mathematical analysis is difficult.  Through the simulation, paths and probabilities are derived.

 Automation

 SAVE tool

 Specify and analyze the system  Generate all possible paths  Simulation based on probability

slide-48
SLIDE 48
  • 6. Conclusions
slide-49
SLIDE 49

Approach

49

δ Movements τ Communication ρ Control Geographical Space

  • Processes
  • Actions
  • Interactions
  • Space
  • Time
  • Probability

Synchrony

slide-50
SLIDE 50

Approach

50

 Various probability specification

 Discrete distribution  Normal distribution  Exponential distribution  Uniform distribution

slide-51
SLIDE 51

SAVE

51

slide-52
SLIDE 52

SAVE

52

 Simulation

slide-53
SLIDE 53

Future Research

53

 Theory

 Requirement analysis methods for probability  Requirement verification methods for probability

 System

 Apply to real IoT examples

slide-54
SLIDE 54

Q & A