96
1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT) Alessandro Fermi, Enrico Ferrari (Rulex Innovation Labs) maurizio.mongelli , [email protected] m.muselli , a.fermi, [email protected]

Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

1

Machine learning for vehicle platooning

DataScienceSeed, Genova, Digital Tree, 04 July 2019

Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT)Alessandro Fermi, Enrico Ferrari (Rulex Innovation Labs)

maurizio.mongelli, [email protected]

m.muselli, a.fermi, [email protected]

Page 2: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

2https://www.youtube.com/watch?v=X7vziDnNXEY&t=73s

Vehicle platooning

Page 3: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Index of the presentation• Vehicle platooning

– Machine Learning (ML), why?

– Traditional analysis (counter-intuitive example)

– Reduce false negatives

– Cyber security (cognitive ML and control)

• Safety

– Safety in cyber physical system

– Safety and AI

• Conclusions and open issues 3

Page 4: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Vehicle platooning: the problem

4

Page 5: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: problem

5

Leading vehicle (#0) applies a braking forceParameters: # vehicles, initial distance, initial speed, force, weight,communication delay (control law assumed fixed)Can we predict collision?

L. Xu, L. Y. Wang, G. Yin and H. Zhang, "Communication Information Structures and Contents for Enhanced Safety of Highway Vehicle Platoons," in IEEE Transactions on Vehicular Technology, vol. 63, no. 9, pp. 4206-4220, Nov. 2014. doi: 10.1109/TVT.2014.2311384.

Page 6: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: example

6

Page 7: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: example

7

Page 8: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Performance prediction: state of the art

8

Page 9: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Performance prediction: state of the art

9

A lot of control algorithmsMathematical modeling for stability of the string of vehiclesBrute force simulation analysis

S. Santini, A. Salvi, A. S. Valente, A. Pescapè, M. Segata and R. L. Cigno, "A consensus-based approach for platooning with inter-vehicular communications," 2015 IEEE Conference on Computer Communications (INFOCOM), Kowloon, 2015, pp. 1158-1166. doi: 10.1109/INFOCOM.2015.7218490.

Jin I. Ge, Gábor Orosz, Dynamics of connected vehicle systems with delayed acceleration feedback, Transportation Research Part C: Emerging Technologies, Volume 46, September 2014, Pages 46-64, ISSN 0968-090X, http://dx.doi.org/10.1016/j.trc.2014.04.014.

Page 10: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

10

Page 11: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

1st step: database of metrics and performance

11

Page 12: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: model

12

Model based on differential equations to generate sample paths ofthe system

L. Xu, L. Y. Wang, G. Yin and H. Zhang, "Communication Information Structures and Contents for Enhanced Safety of Highway Vehicle Platoons," in IEEE Transactions on Vehicular Technology, vol. 63, no. 9, pp. 4206-4220, Nov. 2014. doi: 10.1109/TVT.2014.2311384.

Page 13: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: model

13

Model based on differential equations to generate sample paths ofthe system

L. Xu, L. Y. Wang, G. Yin and H. Zhang, "Communication Information Structures and Contents for Enhanced Safety of Highway Vehicle Platoons," in IEEE Transactions on Vehicular Technology, vol. 63, no. 9, pp. 4206-4220, Nov. 2014. doi: 10.1109/TVT.2014.2311384.

Page 14: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: model

14

Model based on differential equations to generate sample paths ofthe system

•Each vehicle communicates with the previous one only (no multiple coverage of vehicles by the communication channel, for now).

•Each vehicle sends current position and speed.

•Braking force applied in each vehicle on the basis of received information (speed not used by control law, for now).

Page 15: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: model

15

Random sampling of system conditions as follows: …

… # vehicles = 3, initial distance in [15, 55] m, initial speed in [10, 90] km/h, force in [100, 3000] N, vehicle weight in [500, 2500] Kg, communication delay in [10, 200] ms (fixed*, for now).

* Probabilistic models applicable (->runs within the main loop to cope with randomness).

Page 16: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: database of performance

16

At the end of each run (corresponding to 1 sample of systemparameters) we register if there was a collision or not.

Page 17: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Platooning: database of performance

17

12000 extractions of system parameters (=rows in the db).6 hours of simulation on Intel 2.4Ghz i7 processor.

Page 18: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

18

Page 19: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

2nd step: knowledge extraction

19

Page 20: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

2nd step: knowledge extraction

Is the problem difficult?

20

Page 21: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Is this problem difficult?

21

# vehicles = 3, initial distance in [15, 55] m, initial speed in [10, 90] km/h, force in [100, 3000] N, vehicle weight in [500, 2500] Kg, communication delay in [10, 200] ms .

Page 22: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Univariate analysis by histograms not easy to understand!

22

Each single variable experiences collision and no collision

Page 23: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Bivariate analysis by scatter plots not easy to understand!

23

Does a clear boundary between collision and no collision exist ineach bi-dimensional space of the features?

Page 24: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Machine Learning

2nd step: knowledge extraction

Logic Learning Machine in the Rulex platform:

If-then rules with accuracy

24

Page 25: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Neural network models

25

Data

Page 26: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Rulex platform: intelligible rules

26

A model made by boolean rules was built in Rulex by reading thedatabase and applying the Logic Learning Machine algorithm (2’ ofcomputation, plug&play without tuning the algorithm)

Page 27: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Confusion matrix

27

84% True Negatives (no collision correctly predicted).

90% True Positives (collisions correctly predicted).

Page 28: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Confusion matrix

28

9% of false negatives (FNs)(collisions not correctly predicted)

A further elaboration on how tocharacterize FNs is needed

Page 29: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Feature ranking

Importance of a condition c: error variation with and without c

Relevance: error variation and covering C(r)

Relevance Rv of feature xj

Rule of thumb: Rv<5%: marginal contribution; C(r)<2%: outliers

Rule r

Page 30: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Feature ranking

30

Increasing initial speed has the highest relevance on collisions.The opposite holds true for the initial distance.

Page 31: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Confusion matrixes of 2 models: with and without delay

31

Page 32: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Confusion matrixes of 2 models: with and without delay

32

Information on delay is not crucial!

Page 33: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Feature ranking

33

Decreasing braking force -> more collisions, why?

Page 34: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Rationale of decreasing braking force -> more collisions

34

Page 35: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

FNR=0%

35

Page 36: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

36

Procedure for safety rule extraction FNR=0%

LLM with 0% of error in rule generation.DT…Refinement with cross validation as follows.

Data set ℵ divided into 𝜅 portions ℵ𝜅 . ℵ1𝜅 includes only unsafe points from ℵ𝜅

repeat 𝜅 times repeat

1. Train(ℵ𝜅 + ℵ1𝜅) 2. 𝑅0𝜅 subset of ‘safe’ rules 3. Manual inspection 𝑅0𝜅 → 𝑅0𝜅

′ 4. Apply(𝑅0𝜅

′ ,ℵ𝜅) until ℵ𝜅 contains safe points only

Choose most stringent conditions from 𝑅0𝜅′ .

Page 37: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

System setting and manual calibration

plexe.car2x.org simulator

Simulated scenario

Page 38: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

System setting and manual calibration

38

plexe.car2x.org simulator

Simulated scenario

Dataset with respect to scatter plot of 𝑁-𝑃𝐸𝑅

Page 39: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Intelligible analytics: Logic Learning Machine (LLM) & Decision Tree (DT)

39

Objective 1: safety rules with 0% of false negative rate (FNR)

Objective 2: finding largest ranges of system parameters

Page 40: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Results: Size of safety regions and FNR

40

Evidence: Up to 60% of points are safe with 0.2% FNR.

Open issues: optimal solution? Comparison with black-box.

Page 41: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Black-box approaches?

41

Page 42: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Support Vector Data Description (SVDD)

42

D.M.J. Tax,R.P.W.Duin,Support vector data description, Mach.Learn.54(1) (2004)45–66.D.M.J. Tax,R.P.W.Duin,Support vector domain description,Pattern Recoginit. Lett. 20(11–13)(1999)1191–1199.Xuemei Ding, Yuhua Li, Ammar Belatreche, Liam P. Maguire, An experimental evaluation of novelty detection methods, Neurocomputing, Volume 135, 5 July 2014, Pages 313-327, ISSN 0925-2312.

Page 43: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Conclusions

Machine learning was able to cope with a non-trivial example:

oOverlapping collision/no collision on univariateand bivariate analysis

oDecreasing braking force -> more collisions

43

Page 44: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Conclusions and open issues

What we have: intelligible algorithms for data analyticsof platooning.

What we are doing:o refinement of the models

▪ a model of false negatives?▪ understanding the impact of the features▪ discrete event simulation (driven by diff. eqs.) for delay models

(e.g., delay=f(distance))

o Interaction with pilot V2I

Future work: rule-based streaming analytics.

44

Page 45: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Cybersecurity

45

Page 46: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Packet falsification

46

Packet falsification consists in manipulation of the acceleration field of IEEE 802.11p, i.e.,sending unreal indications to follower vehicle (whenever vehicle decelerates, the maliciouspacket is as if vehicle accelerates and vice versa).

S. Ucar, S. C. Ergen, and O. Ozkasap, “Security vulnerabilities of ieee 802.11p and visible light communication based platoon,” in 2016 IEEE Vehicular Networking Conference (VNC), Dec 2016, pp. 1–4.

Page 47: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Packet falsification

47

Packet falsification consists in manipulation of the acceleration field of IEEE 802.11p, i.e.,sending unreal indications to follower vehicle (whenever vehicle decelerates, the maliciouspacket is as if vehicle accelerates and vice versa).

Attack at t’=2 s. Duration of the attack D=3 s.

Page 48: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Approaching the problem

48

We approach the problem through the above methodology.

Page 49: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Intuition

49

Let’s have a look at integrals of differences of speeds and distances

Page 50: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

New features

50

In formulas…

Page 51: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML

51

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Page 52: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML

52

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Page 53: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML

53

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Page 54: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML: results

54

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Page 55: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML: results

55

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Page 56: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Temporal dynamics into ML: results

56

Does machine learning (ML) help us in synthesizing temporal dynamics into detection?

Feature ranking:

Complex rules on integrals, still preserving reliable prediction, if Isys is not used.

Page 57: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

From intelligible analytics to cognitive machine learning

57

Page 58: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

From intelligible analytics to cognitive machine learning

58

Cognitive ML: the human operator tends to reproduce and reinterpret the reasoning carried out by artificial intelligence and change it in a new "man-machine“ model.

Page 59: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

From intelligible analytics to cognitive machine learning

59

*https://www.quora.com/What-is-the-difference-between-cognitive-computing-and-machine-learninghttps://www.ibm.com/blogs/nordic-msp/artificial-intelligence-machine-learning-cognitive-computing/

Cognitive ML is often understood with other meanings:http://www.lscp.net/persons/dupoux/bootphon/index.html

Cognitive ML*: the human operator tends to reproduce and reinterpret the reasoning carried out by artificial intelligence and change it in a new "man-machine“ model.

Page 60: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

From intelligible analytics to cognitive machine learning

60

Cognitive ML here:

Page 61: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

From intelligible analytics to cognitive machine learning

61

Cognitive ML here:

Page 62: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Fres example

62

K=2, Fres=-500.

Page 63: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

63

K configuration via ML

Page 64: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

64

K configuration via ML

Page 65: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

65

K configuration via ML

Page 66: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

66

Fres configuration

Page 67: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

67

Fres configuration

Fres is not relevant! Feature ranking:

Page 68: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

68

Fres configuration

Objective: safety regions with FNR=0%.

Fres optimal thresholds are found for different F0 intervals => F0 should be known tocalibrate the response to the attack:

Page 69: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

69

Fres configuration

Objective: safety regions with FNR=0%.

Fres optimal thresholds are found for different F0 intervals => F0 should be known tocalibrate the response to the attack:

Page 70: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

70

Fres configuration

Objective: safety regions with FNR=0%.

Fres optimal thresholds are found for different F0 intervals => F0 should be known tocalibrate the response to the attack:

The worst case is actually impractical as it leads to platoons working at low speed and large distances. This is however not surprising as it is a platoon able to resist to attack under extreme braking conditions.

Page 71: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety

71

Page 72: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

72

Safety: air bag

Automotive systems are required to operate under strict safety constraints.FMEA (Failure Mode and Effects Analysis) analyses potential failures of systemcomponents, assessing and ranking the risks associated with them, and then identifyingand addressing the most serious problems.The FMEA process can be time-intensive and the analysis is sometimes informal.

Page 73: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

73

Safety: air bag

The airbag system consists of three major component types: sensors, crash evaluators andactuators. The sensors are used to detect accidents such as impacts or the car rolling, andthe information from the sensors is then processed by two independent crash evaluators. Ifboth evaluators agree that a crash has occurred, then the actuators respond by deployingthe airbags.

Page 74: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

74

Safety: air bag

The use of a second crash evaluator is a recent addition to airbag systems, aimed atavoiding unnecessary deployment, which is seen as the most dangerous malfunction thatcan occur.FMEA considers variants of the airbag system with both one and two crash evaluators.

Gethin Norman and David Parker, Quantitative Verification Formal Guarantees for Timeliness, Reliability and Performance, Knowledge Transfer Report, London Mathematical Society and Smith Institute for Industrial Mathematics and System Engineering.

Page 75: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety in cyber physical system

75

Page 76: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

76

Safety: safeCOP project - italian use case

Cyber-physical systems, such as automobiles, cars, and medical devices, comprise both a physical part and a software part, whereby the physical part of the system sends information about itself to the software part, and the software sends information, usually in the form of commands, to the physical part.

P. G. Larsen, J. Fitzgerald, J. Woodcock, and T. Lecomte. Trustworthy Cyber-Physical Systems Engineering, Chapter 8: Collaborative Modelling and Simulation for Cyber-Physical Systems. Chapman and Hall/CRC, September 2016. ISBN 9781498742450.

safecop.eu

Page 77: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

77https://www.youtube.com/watch?v=4VirpA0HzP0&t=93s

SafeCOP ITA pilot

Page 78: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

78

Safety: safeCOP project - italian use case

Hazard risk analysis example (On Board Unit, Road Side Unit).

safecop.eu

Page 79: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety and AI

79

Page 80: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

80

Safety and AI

• Sistemi di guida autonomihttps://www.dmove.it/news/tesla-annuncio-shock-il-computer-per-la-guida-autonoma-e-gia-

pronto-presentazione-il-19-aprile

Page 81: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety and AI

Trustworthy AI

Trustworthiness is a prerequisite for people and societies to develop, deploy and use

AI systems.

Without AI systems – and the human beings behind them – being demonstrably

worthy of trust, unwanted consequences may ensue and their uptake might be

hindered, preventing the realisation of the potentially vast social and economic

https://ec.europa.eu/digital-single-market/en/news/ethics-guidelines-trustworthy-ai

Page 82: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety and AI

Trustworthy AI

https://ec.europa.eu/digital-single-market/en/news/ethics-guidelines-trustworthy-ai

Page 83: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Safety and AI

Gruppo ISO/IEC JTC 1/SC 42:

provide guidance to JTC 1, IEC, and ISO committees developing Artificial Intelligence

applications

https://jtc1info.org/jtc1-press-committee-info-about-jtc-1-sc-42

Page 84: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

⚫ Approccio controllistico✓Regions of attraction: The Lyapunov Neural Network: Adaptive Stability

Certification for Safe Learning of Dynamical Systems.

⚫ Approcci di verifica formale✓Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks.

✓Tools (PRISM, NuSMV) extesions for cyber physical systems (our idea: starting

with intelligible safety regions…!)

Safety and AI

Page 85: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Our approach:

refinement of ML models via formal logic

85

Page 86: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

86

Intelligible analytics

Extraction of intelligiblesrules for safety(classification problem) after brute force simulation method.

Page 87: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Correction of ruleset with PRISM

Simulation

Dataset Ruleset

TransitionMatrix

Model

Corrected Ruleset

Data Analysis with Rulex

Logical Analysis with PRISM

Final result

Correction scheme when we are able to create in PRISM a Discrete Time Markov chainwith n-dimensional status in a n-variables classification problem.

Page 88: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Correction of ruleset with PRISM

Simulation Dataset Ruleset

TransitionMatrix Model

Corrected Ruleset

Data Analysis with Rulex

Logical Analysis with PRISM Final result

When dimension of status of DTM in PRISM are lower the number of variables involvedin data analysis, a new simulation after rules extraction have to be done before correction.

Page 89: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Correction of ruleset with PRISM

We can use the probabilistic informations derived from PRISM for having more control on ruleset obtained in Rulex. A rule can became more strict or flexible, dependingon our goals.

Page 90: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

All Rights Reserved © Rulex, Inc. 2015

THANK YOU

Page 91: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

91https://www.youtube.com/watch?v=TlO2gcs1YvM

AI ethical issues: micro drone killer

Page 92: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Performance prediction: state of the art

92

Many control algorithmsMathematical modeling vs brute force simulation

M. Segata and R. Lo Cigno, "Automatic Emergency Braking: Realistic Analysis of Car Dynamics and Network Performance," in IEEE Transactions on Vehicular Technology, vol. 62, no. 9, pp. 4150-4161, Nov. 2013.doi: 10.1109/TVT.2013.2277802.

Page 93: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Fully developed platform

DATA INSPECTION

SINGLE VIEW OF

CUSTOMERS

AUTOMATICINSIGHTS

EXTRACTION

• patterns• personas• drivers• value metrics

INSIGHTS VISUALIZATION

customers prioritization

EXPORT

integration with enterprise

processes

Page 94: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

All Rights Reserved © Rulex, Inc. 2014

Rulex Logic Learning Machines (LLM) Compared to Traditional Methods

CAN TREAT QUALITATIVE VARIABLES

PRIOR INFORMATION NOT NEEDED

MODELS ARE FULLY INTELLIGIBLE (RULES)

REDUNDANT VARIABLES DETECTED AND IGNORED

KEY VALUES FOR ORDERED VARIABLES ARE

AUTOMATICALLY DETERMINED

RELEVANCE INDICATORS FOR RULES,

VARIABLES & THRESHOLDS

MODELS CAN BE MODIFIED AND TESTED

INTERACTIVELY

MODELING IS HARDLY AFFECTED BY

PARAMETERS SETTING

RULES WITH MULTI-VARIABLE CORRELATIONS

HIGH ACCURACY

FUZZYLOGIC

RANDOMFOREST

DECISIONTREES

NEURALNETWORKS

TRADITIONALSTATISTIC

LLM

Page 95: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Covering and error of rules: understand the impact of the features

95

Page 96: Maurizio Mongelli, Marco Muselli, Andrea Scorzoni (CNR-IEIIT ......2019/04/07  · 1 Machine learning for vehicle platooning DataScienceSeed, Genova, Digital Tree, 04 July 2019 Maurizio

Visualization of rules helps understand

96