Professional Documents
Culture Documents
Yu Huafeng, Boeing
giacomo.gentile@collins.com
• Conclusions
2
Example
3
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
Saxena, Abhinav, Kai Goebel. "Turbofan Engine Degradation Simulation Data Set." NASA Ames
Prognostics Data Repository https://ti.arc.nasa.gov/tech/dash/groups/pcoe/prognostic-data-
repository/#turbofan NASA Ames Research Center, Moffett Field, CA. 4
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
Saxena, Abhinav & Goebel, Kai & Simon, Don & Eklund, Neil. (2008). Damage propagation
modeling for aircraft engine run-to-failure simulation. International Conference on Prognostics
and Health Management. https://bit.ly/3h1SWBt. 5
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
6
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
7
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
8
Damage Propagation Modeling for Aircraft
Engine Run-to-Failure Simulation
https://it.mathworks.com/help/predmaint/ug/remaining-useful-life-estimation-using-
convolutional-neural-network.html#mw_rtc_RULEstimationUsingCNNExample_98C35430. 9
Remaining Useful Life (RUL) metric
https://it.mathworks.com/help/predmaint/ug/remaining-useful-life-estimation-using-
convolutional-neural-network.html#mw_rtc_RULEstimationUsingCNNExample_98C35430. 10
Signal monitoring to feature extraction
https://it.mathworks.com/help/predmaint/ug/remaining-useful-life-estimation-using-
convolutional-neural-network.html#mw_rtc_RULEstimationUsingCNNExample_98C35430. 11
eXplainable AI
12
Our approach: eXplainable AI (XAI)
Differing from convolutional neural network
(Matlab example*), we design and implement XAI
(on the www.rulex.ai platform).
*
https://it.mathworks.com/help/predmaint/ug/remaining-useful-life-estimation-using-
convolutional-neural-network.html#mw_rtc_RULEstimationUsingCNNExample_98C35430. 13
Our approach: eXplainable AI (XAI)
Differing from convolutional neural network
(Matlab example*), we design and implement XAI
(on the www.rulex.ai platform).
Then, later, we study robustness to safety of the
approach (Python, Matlab).
*
https://it.mathworks.com/help/predmaint/ug/remaining-useful-life-estimation-using-
convolutional-neural-network.html#mw_rtc_RULEstimationUsingCNNExample_98C35430. 14
eXplainable AI - why
Capital One Pursues ‘Explainable AI’ to Guard Against
The Next Big Disruptive Trend in Business. . .
Bias in Models
Explainable AI
The effort aims to better understand how a machine-
With so many different approaches to machine learning
learning model comes to a logical conclusion.
– neural networks, complex algorithms, probabilistic
graphical models – it’s getting increasingly difficult for Capital One Financial Corp. is researching ways that
humans to figure out how machines are coming to their machine-learning algorithms could explain the rationale
conclusions. behind their answers, which could have far-reaching
impacts in guarding against potential ethical and
regulatory breaches as the firm uses more artificial
intelligence in banking.
The GDPR restricts what the EU calls “automated individual decision-making”, And for the world’s biggest tech
companies, that’s a potential problem. “Automated individual decision-making” is what neural networks do.
“They’re talking about machine learning,” says Bryce Goodman, a philosophy and social science researcher at
Oxford University.
The regulations prohibit any automated decision that “significantly affects” EU citizens. This includes techniques
that evaluate a person’s “performance at work, economic situation, health, personal preferences, interests,
reliability, behavior, location, or movements.” At the same time, the legislation provides what Goodman calls a
“right to explanation.” In other words, the rules give EU citizens the option of reviewing how a particular service
made a particular algorithmic decision.
EASA XAI
16
Feature extraction
The window moves over time (as in the Mathworks
example). For every time position of the window, the
following features are computed: mean, variance,
skewness and kurtosis (of every signal over the
window).
17
Features and ML problem
The window moves over time (as in the Mathworks
example). For every time position of the window, the
following features are computed: mean, variance,
skewness and kurtosis (of every signal over the
window).
The classification problem consists of mapping each
features vector sample into the corresponding RUL
class. The RUL class is as follows: RUL > 150 'healthy',
RUL in [50, 150] 'critical', 'fault' otherwise.
18
Features and ML problem
The window moves over time (as in the Mathworks
example). For every time position of the window, the
following features are computed: mean, variance,
skewness and kurtosis (of every signal over the
window).
The classification problem consists of mapping each
features vector sample into the corresponding RUL
class. The RUL class is as follows: RUL > 150 'healthy',
RUL in [50, 150] 'critical', 'fault' otherwise.
(The formulation is independent to the ML algorithm applied,
XAI or not).
19
Database (db)
20
RUL in the db
21
mean of T24 over time
with respect to the classes
22
mean of T24 over time
with respect to the classes
24
Rule viewer
25
Confusion matrix (test set)
26
Confusion matrix (test set)
27
Feature ranking (e.g., for healthy class)
28
Value ranking
(e.g., of the most meaningful feature)
29
EASA FUG4L1 objectives: XAI
30
EASA FUG4L1 objectives: XAI
31
EASA FUG4L1 objectives: XAI,
human interaction
32
EASA FUG4L1 objectives: XAI,
questionable, explanation is inherent to the
classification problem
33
EASA FUG4L1 objectives: XAI,
confidence of the rules…
34
EASA FUG4L1 objectives: XAI,
… and rule distance
36
Reliable AI
The current state of Tesla Autopilot, August 2019
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
40
Techniques for reliable AI
41
1) Safety region from XAI
2) More complex safety regions
42
Safety region from XAI
43
Safety region from XAI
Optimization
problem: reduce
the selected feature New «safety
intervals until the region» with more
error (FNR) reaches complex shape than
0 with maximum hyper-rectangle
coverage (TNR)
possible
Application example: collision avoidance
in vehicle platooning
Reliability from Outside Reliability from Inside
N=2 most relevant intervals for collision (y=1) : N=2 most relevant intervals for safe (y=0)
PER > 0.43, F0 ≤-7.50 x 103 class:
PER ≤ 0.43, F0 >-3.50 x 103
Obtained «safety region» with FNR=0, TNR=0.34 Obtained «safety region» with FNR=0 and
TNR=0.13
LLM with 0% error
Joining of the 4 rules with highest covering:
50
Support Vector Data Descrtiption
Classic SVDD Negative
SVDD
Unsupervised Supervised
ML ML
• Anomaly • Classifica
Detection tion
• Novelty 𝒙𝑖 Target Class
Detection
• SVM 1-class 𝒙𝑙 Negative Class
𝑁1 𝑁2
𝑚𝑖𝑛 𝐹 𝑅2 , 𝒂, 𝜉𝒊 , 𝜉𝒍 = 𝑅2 + 𝐶1 𝜉𝑖 + 𝐶2 𝜉𝑙
𝑖=1 𝑙=1
2
𝑠. 𝑡. 𝒙𝑖 − 𝒂 ≤ 𝑅2 + 𝜉𝑖 , 𝜉𝑖 ≥ 0 ∀𝑖
2
𝒙𝑙 − 𝒂 ≥ 𝑅2 − 𝜉𝑙 , 𝜉𝑙 ≥ 0 ∀𝑙
Goal 𝐹𝑁𝑅 ≅ 0
𝑇𝑃 𝑇𝑁
𝑇𝑃 + 𝐹𝑃 𝑇𝑁 + 𝐹𝑁
RUL example
54
RUL example
Similar safety envelopes are found for the healthy
class through sensitivity analysis on the most
ranked features.
55
RUL example
Similar safety envelopes are found for the healthy
class through sensitivity analysis on the most
ranked features.
The value ranking has shown a predominance of
the htBleed variable for the healthy class.
56
Driver for certification
57
Interaction between
data analyst and safety engineer
58
Interaction between
data analyst and safety engineer
59
Interaction between
data analyst and safety engineer
60
Interaction between
data analyst and safety engineer
61
Interaction between
data analyst and safety engineer
63
Interaction between
data analyst and safety engineer
64
Interaction between
data analyst and safety engineer
66
Interaction between
data analyst and safety engineer
67
Interaction between
data analyst and safety engineer
68
Conclusions
69
Conclusions
Certification of machine learning models is one of
the main goals of AI in the near future.
eXplainable AI may drive the certification process
through Reliable AI.
Challenges: scalability, formal logic, interaction
with the expert of the field, … .
70
References
71
References
M. Mongelli, E. Ferrari , M. Muselli, A. Fermi, "Performance validation of vehicle
platooning via intelligible analytics," IET Cyber-Physical Systems: Theory & Applications,
19 Oct. 2018, DOI: 10.1049/iet-cps.2018.5055.
74
Titolo
Bla bla
75
Reliable AI: our approach
• Modelling prediction of collision in
vehicle platooning
Reliable AI: our approach
• Modelling prediction of collision in
vehicle platooning
Model
inferred by
data
Model
inferred by
data
79
A.1)
Cut-offs applied to continuos variables.
Discretization
Optimal placement of the cut-offs.
A.1)
Cut-offs applied to continuos variables.
Discretization
Optimal placement of the cut-offs.
A simple bidimensional problem: the points of the two classes are represented by circles
and crosses, respectively.
E. Ferrari and M. Muselli. Maximizing pattern separation in discretizing continuous features for
classication purposes. In The 2010 International Joint Conference on Neural Networks (IJCNN), pages
1{8, July 2010. doi: 10.1109/IJCNN.2010.5596838.
Discretization &
A) Latticization Class x1 Bin(x1) x2 Bin(x2) Final string
- Inverse only-one coding B 8 011 0 01 01101
[x1,…,xn] [0,1]n A 12 101 1 10 10110
[0,1]n+k A 22 110 1 10 11010
[y1,…,yk] [0,1]k
Latticization: for continous variables, as x1, binary values correspond to cut-
offs between adjacent values (e.g.: 10 and 20)
Discretization &
A) Latticization Class x1 Bin(x1) x2 Bin(x2) Final string
- Inverse only-one coding B 8 011 0 01 01101
[x1,…,xn] [0,1]n A 12 101 1 10 10110
[0,1]n+k A 22 110 1 10 11010
[y1,…,yk] [0,1]k
For continous variables, as x1, binary values correspond to cut-offs between
adjacent values (e.g.: 10 and 20)
111
111
Condition on
Conversion into variable x1
C) Original values Binary string
Intelligible Rules 8 (B) 011 If x1 > 10
12 (A) 101
If X > valx and Y ≤ valy 22 (A) 110 then Class = A
then Class = A
Cut-offs identified during latticization and suitable for classification purposes
according to SC are recovered and used to obtain the conditions inside the rules
Cybersecurity of vehicle platooning
85
Packet falsification
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 malicious
packet 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 86
based platoon,” in 2016 IEEE Vehicular Networking Conference (VNC), Dec 2016, pp. 1–4.
Packet falsification
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 malicious
packet is as if vehicle accelerates and vice versa).
88
Intuition
Let’s have a look at integrals of differences of speeds and distances
89
New features
In formulas…
90
Temporal dynamics into ML
Does machine learning (ML) help us in synthesizing temporal dynamics into detection?
91
Temporal dynamics into ML
Does machine learning (ML) help us in synthesizing temporal dynamics into detection?
92
Temporal dynamics into ML
Does machine learning (ML) help us in synthesizing temporal dynamics into detection?
93
Temporal dynamics into ML: results
Does machine learning (ML) help us in synthesizing temporal dynamics into detection?
94
Temporal dynamics into ML: results
Does machine learning (ML) help us in synthesizing temporal dynamics into detection?
95
Temporal dynamics into ML: results
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.
96
Fres: countermeasure after detection
K=2, Fres=-500.
97
Need minimum |Fres| while FNR=0
Objective: safety regions with FNR=0%.
Fres optimal thresholds are found for different F0 intervals => F0 should be known to
calibrate the response to the attack:
98
Fres complex configuration
Objective: safety regions with FNR=0%.
Fres optimal thresholds are found for different F0 intervals => F0 should be known to
calibrate the response to the attack:
99
Fres complex configuration
Objective: safety regions with FNR=0%.
Fres optimal thresholds are found for different F0 intervals => F0 should be known to
calibrate 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.
100
THANK YOU:… Q&A
102
Logic Learning Machines vs Decision Trees
Logic Learning
Decision Trees
Machine
Training is fast and parallelizable Training is fast but not efficiently parallelizable
Relevance measures for variables and values are Relevance measures for variables and values are
automatically generated not directly available
Specificity and sensitivity can be controlled Specificity and sensitivity cannot be controlled
Usually models are less complex with simpler Usually models are more complex with longer
rules rules