SlideShare a Scribd company logo
1 of 37
SafeML: An Approach for Safety
Monitoring of Machine Learning
Classifiers through Statistical
Difference Measure
Email: k.aslansefat-2018@hull.ac.uk
Koorosh Aslansefat, Ioannis Sorokos, Declan Whiting, Ramin Tavakoli Kolagari, and Yiannis Papadopoulos
Table of Content
What I am going to discuss
Introduction
Brief Introduction on AI Safety
Statistical Distance Measures
ECDF-based Statistical Distance Measures
SafeML Idea
SafeML: An Approach for Safety Assurance of Machine Learning Classifiers through Statistical
Difference Measure
2
Numerical Results and Conclusion
Case studies, Numerical Results and Conclusion
3https://www.statista.com
Uber self-driving car kills a pedestrian
4
2018 in Review: 10 AI Failures, https://medium.com/syncedreview/2018-in-review-10-ai-failures-
c18faadf5983
SafeML Problem Statement
5
K. Pei, et al. K., Cao, Y., Yang, J., & Jana, S. (2017). Deepxplore: Automated whitebox testing of deep learning
systems. In proceedings of the 26th Symposium on Operating Systems Principles (pp. 1-18).
SafeML Problem Statement
6
https://openai.com/blog/adversarial-example-research/
SafeML Problem Statement
7
https://www.reddit.com/r/ProgrammerHumor/c
omments/cl2rve/so_a_friend_of_mine_was_wor
king_on_an_opencvml/
AI Safety Issues
8
AI Safety
Safe
exploration
Robustness to
distributional
shift
Avoiding
negative side
effects
Avoiding
โ€œreward
hackingโ€ and
โ€œwire
headingโ€
Scalable
oversight
Amodei et al. (2016). Concrete
Problems in AI Safety.
SafeML Project Goal
9
Estimating the ML Classifier Accuracy through Statistical Differences
Accuracy Estimation
Safety Monitoring through a proposed human-in-loop procedure
Safety Monitoring
XAI: Explainable Artificial Intelligence
Providing Explainable Artificial Intelligence using Statistical Differences
An Example
๐ถ๐‘™๐‘Ž๐‘ ๐‘  1: ๐‘ฅ ๐‘ก ~๐‘ 3,1 ๐‘ก0 < 20โ„Ž
๐ถ๐‘™๐‘Ž๐‘ ๐‘  2: ๐‘ฅ ๐‘ก ~๐‘ 5,1 ๐‘ก0 > 40โ„Ž
๐น๐ท๐‘… ๐‘‡๐‘‘ = ๐‘ž1 ๐‘‡๐‘‘ =
๐‘‡ ๐‘‘
+โˆž
๐‘ž ๐‘ฅ dx
๐‘€๐ท๐‘… ๐‘‡๐‘‘ = ๐‘2 ๐‘‡๐‘‘ =
โˆ’โˆž
๐‘‡ ๐‘‘
๐‘ ๐‘ฅ dx
Class 1
Class 2
Mean Distance
๐Ÿ”๐ˆ ๐Ÿ”๐ˆ
Variance Distance
Cause Error
Probability Density Functions
Consider a hypothetical one dimensional data with nine classes
Class 9
Probability Density Functions and Cumulative Functions
12
Difference in
Cumulative Distribution
Functions
๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
Cumulative Distribution Function (CDF) Distance Measures
Wasserstein
Kolmogorov-Smirnov
Kuiper
Anderson-Darling
Cramer-Von Mises
Wasserstein + Cramer-Von Mises (DTS)
SafeML
Procedure
15
Proposed Procedure
Numerical
Examples
Cross-Validation and ML Classifiers
17
ML
Classifiers
Linear
discriminant
analysis
(LDA)
Classification
and
Regression
Tree (CART)
Random
Forest (RF)
K-Nearest
Neighbours
(KNN)
Support
Vector
Machine
(SVM)
Cross Validation
70% Train
15% Test
15% Validation
K-Fold
K = 10
Example 1: 1D Normal Distributed Data in Two Classes
18
๐ถ๐‘™๐‘Ž๐‘ ๐‘  1: ๐‘ฅ ๐‘ก ~๐‘ 3,1 ๐‘ก0 < 1000โ„Ž
๐ถ๐‘™๐‘Ž๐‘ ๐‘  2: ๐‘ฅ ๐‘ก ~๐‘ 5,1 ๐‘ก0 > 1000โ„Ž
Difference with True Accuracy (Min)
Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS
LDA 0.025000 0.100000 0.051014 0.061021 0.022033
CART 0.036073 0.034495 0.11469 0.005142 0.087099
KNN 0.030343 0.039344 0.111804 0.002158 0.085843
SVM 0.030343 0.039344 0.111804 0.002158 0.085843
RF 0.029495 0.033797 0.145110 0.030151 0.111105
Max Difference 0.036073 0.100000 0.145110 0.061021 0.111105
`
Kolmogorov-
Smirnov
Kuiper Anderson-Darling Wasserstein DTS
True Accuracy
(Mean)
True Accuracy
(Min)
LDA 0.9125000 0.8375000 0.9885137 0.8764794 0.9595329 0.9691176 0.9375000
CART 0.9110729 0.8405049 0.9896898 0.8801418 0.9620993 0.9569853 0.8750000
KNN 0.9053426 0.8356562 0.9868039 0.8771581 0.9608425 0.9691176 0.8750000
SVM 0.9053426 0.8356562 0.9868039 0.8771581 0.9608425 0.9569853 0.8750000
RF 0.8530239 0.7897328 0.9686393 0.7933787 0.9346339 0.9386029 0.8235294
Example 2: 2D XOR Dataset
19
Example 2: 2D XOR Dataset
20
Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS True Accuracy (Mean) True Accuracy (Min)
LDA 0.7722165 0.7706001 0.9028175 0.7550639 0.9856662 0.5912107 0.5083333
CART 0.9281788 0.9219821 0.9877216 0.9254581 0.9952106 0.9941579 0.9874477
KNN 0.9305751 0.9130628 0.9931512 0.9587683 0.9970757 0.9866649 0.9748954
SVM 0.9310446 0.9175864 0.9934891 0.9581909 0.997064 0.9879166 0.9791667
RF 0.9296264 0.9107489 0.9927418 0.9578211 0.9970175 0.9983333 0.9958333
Difference with True Accuracy (Min)
Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS
LDA 0.263883 0.262267 0.394484 0.246731 0.477333
CART 0.059269 0.065466 0.000274 0.06199 0.007763
KNN 0.04432 0.061833 0.018256 0.016127 0.02218
SVM 0.048122 0.06158 0.014322 0.020976 0.017897
RF 0.066207 0.085084 0.003092 0.038012 0.001184
Max Difference 0.263883 0.262266 0.394484 0.246730 0.477333
Example 2: 2D Spiral Dataset
21
Example 2: 2D Spiral Dataset
22
Difference with True Accuracy (Min)
Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS
LDA 0.496590 0.460854 0.544319 0.527156 0.544277
CART 0.127042 0.113750 0.160944 0.142098 0.160855
KNN 0.049153 0.062775 0.001429 0.029407 0.001969
SVM 0.048397 0.061893 0.001523 0.028798 0.002002
RF 0.032346 0.044748 0.017896 0.014065 0.018562
Max Difference 0.0994468 0.0882515 0.2699748 0.2483959 0.528852
Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS True Accuracy (Mean) True Accuracy (Min)
LDA 0.950757 0.915021 0.998485 0.981323 0.998443 0.506250 0.454167
CART 0.964542 0.951250 0.998444 0.979598 0.998355 0.890833 0.837500
KNN 0.946680 0.933058 0.997262 0.966426 0.997802 0.999167 0.995833
SVM 0.947437 0.933940 0.997356 0.967035 0.997835 0.999167 0.995833
RF 0.946821 0.934418 0.997062 0.965102 0.997728 0.990833 0.979167
Application of SafeML in Security
23
Example 4: Security Dataset
Intrusion Detection Evaluation Dataset (CIC-IDS2017)
24
Example 4: Security Dataset
25
Example 4: Security Dataset
26
Applications of
SafeML
Applications of SafeML
28
Applications of SafeML
29
Applications of SafeML
30
SafeML Toward
XAI
SafeML Toward eXplainable AI (XAI)
32
SafeML Reproducibility
33
https://github.com/ISorokos/SafeML
MATLAB Implementation
Python Implementation
R Implementation
656
Conclusion
34
๏ถ Through modifying the existing statistical distance and error bound measures, the
proposed method enables to estimate the accuracy bound of the trained ML algorithm in
the field with no label on the incoming data.
๏ถ A novel proposed human-in-loop procedure is made to certify the ML algorithm in a real-
time manner. The procedure has three levels of operation: I) runtime estimated accuracy,
II) Lack of enough data and need for buffering more samples (it may cause a delay in
decision-making), and III) No low runtime estimated accuracy and a human agent is
needed.
๏ถ The proposed approach is easy to implement, and it can support a variety of distribution
(Exponential and normal distribution families).
Future Works
35
๏ถ Extending the SafeML Idea for Machine Learning Regression and Prediction Algorithms
๏ถ Considering Recurrent Methods and Dealing with Time Series.
๏ถ Improving the method for adaptive and online-learning algorithms.
๏ถ Integrating the feature importance to the exiting algorithm.
๏ถ Implementing the SafeML XAI for Image classification.
Selected References
36
Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., & Manรฉ, D. (2016). Concrete Problems in AI Safety.
http://arxiv.org/abs/1606.06565
Burton, S., Habli, I., Lawton, T., McDermid, J., Morgan, P., & Porter, Z. (2020). Mind the gaps: Assuring the safety of
autonomous systems from an engineering, ethical, and legal perspective. Artificial Intelligence, 279, 103201.
https://doi.org/10.1016/j.artint.2019.103201
Davenport, T. H., Brynjolfsson, E., McAfee, A., James, H., & Wilson, R. (2019). Artificial Intelligence: The Insights You Need
from Harvard Business Review. Harvard Business Review.
Fukunaga, K. (1992). Introduction to Statistical Pattern Recognition (Second Edition). Academic Press.
Nielsen, F. (2018). The Chord Gap Divergence and a Generalization of the Bhattacharyya Distance. ICASSP, IEEE
International Conference on Acoustics, Speech and Signal Processing - Proceedings, 2018-April, 2276โ€“2280.
https://doi.org/10.1109/ICASSP.2018.8462244
Quiรฑonero-Candela, J., & Schwaighofer, A. (2009). Dataset Shift in Machine Learning. MIT Press.
Schulam, P., & Saria, S. (2019). Can You Trust This Prediction? Auditing Pointwise Reliability After Learning.
http://arxiv.org/abs/1901.00403
Zahm, O., Cui, T., Law, K., Spantini, A., & Marzouk, Y. (2018). Certified dimension reduction in nonlinear Bayesian inverse
problems. http://arxiv.org/abs/1807.03712
Thank You
If you have any question, please feel free to ask

More Related Content

Similar to SafeML: Safety Monitoring of Machine Learning Classifiers through Statistical Difference Measure

2014-mo444-final-project
2014-mo444-final-project2014-mo444-final-project
2014-mo444-final-project
Paulo Faria
ย 
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จFUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
Maxim Kazantsev
ย 
"An adaptive modular approach to the mining of sensor network ...
"An adaptive modular approach to the mining of sensor network ..."An adaptive modular approach to the mining of sensor network ...
"An adaptive modular approach to the mining of sensor network ...
butest
ย 
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
Zabir Al Nazi Nabil
ย 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Raj Kumar Thenua
ย 

Similar to SafeML: Safety Monitoring of Machine Learning Classifiers through Statistical Difference Measure (20)

Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutions
ย 
rbs - presentation about applications of machine learning.
rbs - presentation about applications of machine learning.rbs - presentation about applications of machine learning.
rbs - presentation about applications of machine learning.
ย 
2014-mo444-final-project
2014-mo444-final-project2014-mo444-final-project
2014-mo444-final-project
ย 
Palmprint Identification Using FRIT
Palmprint Identification Using FRITPalmprint Identification Using FRIT
Palmprint Identification Using FRIT
ย 
Quantitive Time Series Analysis of Malware and Vulnerability Trends
Quantitive Time Series Analysis of Malware and Vulnerability TrendsQuantitive Time Series Analysis of Malware and Vulnerability Trends
Quantitive Time Series Analysis of Malware and Vulnerability Trends
ย 
CoopLoc Technical Presentation
CoopLoc Technical PresentationCoopLoc Technical Presentation
CoopLoc Technical Presentation
ย 
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จFUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
FUNCTION OF RIVAL SIMILARITY IN A COGNITIVE DATA ANALYSISโ€จ
ย 
ICIF19_Garg_job_talk_portfolio_modification.pdf
ICIF19_Garg_job_talk_portfolio_modification.pdfICIF19_Garg_job_talk_portfolio_modification.pdf
ICIF19_Garg_job_talk_portfolio_modification.pdf
ย 
OPTIMIZATION OF SCALE FACTORS IN SHRINKAGE COMPENSATIONS IN SLS USING PATTERN...
OPTIMIZATION OF SCALE FACTORS IN SHRINKAGE COMPENSATIONS IN SLS USING PATTERN...OPTIMIZATION OF SCALE FACTORS IN SHRINKAGE COMPENSATIONS IN SLS USING PATTERN...
OPTIMIZATION OF SCALE FACTORS IN SHRINKAGE COMPENSATIONS IN SLS USING PATTERN...
ย 
"An adaptive modular approach to the mining of sensor network ...
"An adaptive modular approach to the mining of sensor network ..."An adaptive modular approach to the mining of sensor network ...
"An adaptive modular approach to the mining of sensor network ...
ย 
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
Automatic Skin Lesion Segmentation and Melanoma Detection: Transfer Learning ...
ย 
Performance Variation of LMS And Its Different Variants
Performance Variation of LMS And Its Different VariantsPerformance Variation of LMS And Its Different Variants
Performance Variation of LMS And Its Different Variants
ย 
Synthesis of an intrusion detection algorithm based on deep learning and reas...
Synthesis of an intrusion detection algorithm based on deep learning and reas...Synthesis of an intrusion detection algorithm based on deep learning and reas...
Synthesis of an intrusion detection algorithm based on deep learning and reas...
ย 
Big Data Analytics for Obesity Prediction
Big Data Analytics for Obesity PredictionBig Data Analytics for Obesity Prediction
Big Data Analytics for Obesity Prediction
ย 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
ย 
Automated seismic-to-well ties?
Automated seismic-to-well ties?Automated seismic-to-well ties?
Automated seismic-to-well ties?
ย 
tracking.ppt
tracking.ppttracking.ppt
tracking.ppt
ย 
System Identification Based on Hammerstein Models Using Cubic Splines
System Identification Based on Hammerstein Models Using Cubic SplinesSystem Identification Based on Hammerstein Models Using Cubic Splines
System Identification Based on Hammerstein Models Using Cubic Splines
ย 
PhD Qualifying Exam Slides
PhD Qualifying Exam SlidesPhD Qualifying Exam Slides
PhD Qualifying Exam Slides
ย 
IRJET- Texture Analysis and Fracture Identification of Bones X-Ray Images...
IRJET-  	  Texture Analysis and Fracture Identification of Bones X-Ray Images...IRJET-  	  Texture Analysis and Fracture Identification of Bones X-Ray Images...
IRJET- Texture Analysis and Fracture Identification of Bones X-Ray Images...
ย 

Recently uploaded

Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
amitlee9823
ย 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
SUHANI PANDEY
ย 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
ย 
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
gajnagarg
ย 
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
amitlee9823
ย 
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
gajnagarg
ย 
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
gajnagarg
ย 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
ย 
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
gajnagarg
ย 
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
amitlee9823
ย 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
ย 
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
only4webmaster01
ย 

Recently uploaded (20)

5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
ย 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
ย 
Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bangalore ...
ย 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
ย 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
ย 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
ย 
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Shivaji Nagar โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (E...
ย 
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Bommasandra Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service B...
ย 
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts โ˜Ž๏ธ9352988975 Two shot with one girl ...
ย 
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Attibele โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts โ˜Ž๏ธ9352988975 Two shot with one girl...
ย 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
ย 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
ย 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
ย 
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts โ˜Ž๏ธ9352988975 Two shot with one girl (...
ย 
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Ser...
ย 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ย 
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call ๐Ÿ‘— 9155563397 ๐Ÿ‘— Top Class Call Girl Service B...
ย 

SafeML: Safety Monitoring of Machine Learning Classifiers through Statistical Difference Measure

  • 1. SafeML: An Approach for Safety Monitoring of Machine Learning Classifiers through Statistical Difference Measure Email: k.aslansefat-2018@hull.ac.uk Koorosh Aslansefat, Ioannis Sorokos, Declan Whiting, Ramin Tavakoli Kolagari, and Yiannis Papadopoulos
  • 2. Table of Content What I am going to discuss Introduction Brief Introduction on AI Safety Statistical Distance Measures ECDF-based Statistical Distance Measures SafeML Idea SafeML: An Approach for Safety Assurance of Machine Learning Classifiers through Statistical Difference Measure 2 Numerical Results and Conclusion Case studies, Numerical Results and Conclusion
  • 4. Uber self-driving car kills a pedestrian 4 2018 in Review: 10 AI Failures, https://medium.com/syncedreview/2018-in-review-10-ai-failures- c18faadf5983
  • 5. SafeML Problem Statement 5 K. Pei, et al. K., Cao, Y., Yang, J., & Jana, S. (2017). Deepxplore: Automated whitebox testing of deep learning systems. In proceedings of the 26th Symposium on Operating Systems Principles (pp. 1-18).
  • 8. AI Safety Issues 8 AI Safety Safe exploration Robustness to distributional shift Avoiding negative side effects Avoiding โ€œreward hackingโ€ and โ€œwire headingโ€ Scalable oversight Amodei et al. (2016). Concrete Problems in AI Safety.
  • 9. SafeML Project Goal 9 Estimating the ML Classifier Accuracy through Statistical Differences Accuracy Estimation Safety Monitoring through a proposed human-in-loop procedure Safety Monitoring XAI: Explainable Artificial Intelligence Providing Explainable Artificial Intelligence using Statistical Differences
  • 10. An Example ๐ถ๐‘™๐‘Ž๐‘ ๐‘  1: ๐‘ฅ ๐‘ก ~๐‘ 3,1 ๐‘ก0 < 20โ„Ž ๐ถ๐‘™๐‘Ž๐‘ ๐‘  2: ๐‘ฅ ๐‘ก ~๐‘ 5,1 ๐‘ก0 > 40โ„Ž ๐น๐ท๐‘… ๐‘‡๐‘‘ = ๐‘ž1 ๐‘‡๐‘‘ = ๐‘‡ ๐‘‘ +โˆž ๐‘ž ๐‘ฅ dx ๐‘€๐ท๐‘… ๐‘‡๐‘‘ = ๐‘2 ๐‘‡๐‘‘ = โˆ’โˆž ๐‘‡ ๐‘‘ ๐‘ ๐‘ฅ dx
  • 11. Class 1 Class 2 Mean Distance ๐Ÿ”๐ˆ ๐Ÿ”๐ˆ Variance Distance Cause Error Probability Density Functions Consider a hypothetical one dimensional data with nine classes Class 9
  • 12. Probability Density Functions and Cumulative Functions 12 Difference in Cumulative Distribution Functions ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ
  • 13. Cumulative Distribution Function (CDF) Distance Measures Wasserstein Kolmogorov-Smirnov Kuiper Anderson-Darling Cramer-Von Mises Wasserstein + Cramer-Von Mises (DTS)
  • 17. Cross-Validation and ML Classifiers 17 ML Classifiers Linear discriminant analysis (LDA) Classification and Regression Tree (CART) Random Forest (RF) K-Nearest Neighbours (KNN) Support Vector Machine (SVM) Cross Validation 70% Train 15% Test 15% Validation K-Fold K = 10
  • 18. Example 1: 1D Normal Distributed Data in Two Classes 18 ๐ถ๐‘™๐‘Ž๐‘ ๐‘  1: ๐‘ฅ ๐‘ก ~๐‘ 3,1 ๐‘ก0 < 1000โ„Ž ๐ถ๐‘™๐‘Ž๐‘ ๐‘  2: ๐‘ฅ ๐‘ก ~๐‘ 5,1 ๐‘ก0 > 1000โ„Ž Difference with True Accuracy (Min) Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS LDA 0.025000 0.100000 0.051014 0.061021 0.022033 CART 0.036073 0.034495 0.11469 0.005142 0.087099 KNN 0.030343 0.039344 0.111804 0.002158 0.085843 SVM 0.030343 0.039344 0.111804 0.002158 0.085843 RF 0.029495 0.033797 0.145110 0.030151 0.111105 Max Difference 0.036073 0.100000 0.145110 0.061021 0.111105 ` Kolmogorov- Smirnov Kuiper Anderson-Darling Wasserstein DTS True Accuracy (Mean) True Accuracy (Min) LDA 0.9125000 0.8375000 0.9885137 0.8764794 0.9595329 0.9691176 0.9375000 CART 0.9110729 0.8405049 0.9896898 0.8801418 0.9620993 0.9569853 0.8750000 KNN 0.9053426 0.8356562 0.9868039 0.8771581 0.9608425 0.9691176 0.8750000 SVM 0.9053426 0.8356562 0.9868039 0.8771581 0.9608425 0.9569853 0.8750000 RF 0.8530239 0.7897328 0.9686393 0.7933787 0.9346339 0.9386029 0.8235294
  • 19. Example 2: 2D XOR Dataset 19
  • 20. Example 2: 2D XOR Dataset 20 Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS True Accuracy (Mean) True Accuracy (Min) LDA 0.7722165 0.7706001 0.9028175 0.7550639 0.9856662 0.5912107 0.5083333 CART 0.9281788 0.9219821 0.9877216 0.9254581 0.9952106 0.9941579 0.9874477 KNN 0.9305751 0.9130628 0.9931512 0.9587683 0.9970757 0.9866649 0.9748954 SVM 0.9310446 0.9175864 0.9934891 0.9581909 0.997064 0.9879166 0.9791667 RF 0.9296264 0.9107489 0.9927418 0.9578211 0.9970175 0.9983333 0.9958333 Difference with True Accuracy (Min) Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS LDA 0.263883 0.262267 0.394484 0.246731 0.477333 CART 0.059269 0.065466 0.000274 0.06199 0.007763 KNN 0.04432 0.061833 0.018256 0.016127 0.02218 SVM 0.048122 0.06158 0.014322 0.020976 0.017897 RF 0.066207 0.085084 0.003092 0.038012 0.001184 Max Difference 0.263883 0.262266 0.394484 0.246730 0.477333
  • 21. Example 2: 2D Spiral Dataset 21
  • 22. Example 2: 2D Spiral Dataset 22 Difference with True Accuracy (Min) Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS LDA 0.496590 0.460854 0.544319 0.527156 0.544277 CART 0.127042 0.113750 0.160944 0.142098 0.160855 KNN 0.049153 0.062775 0.001429 0.029407 0.001969 SVM 0.048397 0.061893 0.001523 0.028798 0.002002 RF 0.032346 0.044748 0.017896 0.014065 0.018562 Max Difference 0.0994468 0.0882515 0.2699748 0.2483959 0.528852 Kolmogorov-Smirnov Kuiper Anderson-Darling Wasserstein DTS True Accuracy (Mean) True Accuracy (Min) LDA 0.950757 0.915021 0.998485 0.981323 0.998443 0.506250 0.454167 CART 0.964542 0.951250 0.998444 0.979598 0.998355 0.890833 0.837500 KNN 0.946680 0.933058 0.997262 0.966426 0.997802 0.999167 0.995833 SVM 0.947437 0.933940 0.997356 0.967035 0.997835 0.999167 0.995833 RF 0.946821 0.934418 0.997062 0.965102 0.997728 0.990833 0.979167
  • 23. Application of SafeML in Security 23
  • 24. Example 4: Security Dataset Intrusion Detection Evaluation Dataset (CIC-IDS2017) 24
  • 25. Example 4: Security Dataset 25
  • 26. Example 4: Security Dataset 26
  • 34. Conclusion 34 ๏ถ Through modifying the existing statistical distance and error bound measures, the proposed method enables to estimate the accuracy bound of the trained ML algorithm in the field with no label on the incoming data. ๏ถ A novel proposed human-in-loop procedure is made to certify the ML algorithm in a real- time manner. The procedure has three levels of operation: I) runtime estimated accuracy, II) Lack of enough data and need for buffering more samples (it may cause a delay in decision-making), and III) No low runtime estimated accuracy and a human agent is needed. ๏ถ The proposed approach is easy to implement, and it can support a variety of distribution (Exponential and normal distribution families).
  • 35. Future Works 35 ๏ถ Extending the SafeML Idea for Machine Learning Regression and Prediction Algorithms ๏ถ Considering Recurrent Methods and Dealing with Time Series. ๏ถ Improving the method for adaptive and online-learning algorithms. ๏ถ Integrating the feature importance to the exiting algorithm. ๏ถ Implementing the SafeML XAI for Image classification.
  • 36. Selected References 36 Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., & Manรฉ, D. (2016). Concrete Problems in AI Safety. http://arxiv.org/abs/1606.06565 Burton, S., Habli, I., Lawton, T., McDermid, J., Morgan, P., & Porter, Z. (2020). Mind the gaps: Assuring the safety of autonomous systems from an engineering, ethical, and legal perspective. Artificial Intelligence, 279, 103201. https://doi.org/10.1016/j.artint.2019.103201 Davenport, T. H., Brynjolfsson, E., McAfee, A., James, H., & Wilson, R. (2019). Artificial Intelligence: The Insights You Need from Harvard Business Review. Harvard Business Review. Fukunaga, K. (1992). Introduction to Statistical Pattern Recognition (Second Edition). Academic Press. Nielsen, F. (2018). The Chord Gap Divergence and a Generalization of the Bhattacharyya Distance. ICASSP, IEEE International Conference on Acoustics, Speech and Signal Processing - Proceedings, 2018-April, 2276โ€“2280. https://doi.org/10.1109/ICASSP.2018.8462244 Quiรฑonero-Candela, J., & Schwaighofer, A. (2009). Dataset Shift in Machine Learning. MIT Press. Schulam, P., & Saria, S. (2019). Can You Trust This Prediction? Auditing Pointwise Reliability After Learning. http://arxiv.org/abs/1901.00403 Zahm, O., Cui, T., Law, K., Spantini, A., & Marzouk, Y. (2018). Certified dimension reduction in nonlinear Bayesian inverse problems. http://arxiv.org/abs/1807.03712
  • 37. Thank You If you have any question, please feel free to ask