SlideShare a Scribd company logo
Automated Misconfiguration Repair of
Configurable Cyber-Physical Systems
with Search: an Industrial Case Study on
Elevator Dispatching Algorithms
Let’s
discuss at
ISSTA’23
Pablo Valle Aitor Arrieta Maite Arratibel
2
Example of a Cyber-Physical System
3
Configurability and Variability in
Elevators
55% of issues that appeared in
operation were due to
misconfigurations
4
Challenges for Automated Repair of
Misconfigurations
Expensive Test
Execution
Large Configuration
Space
Multiple Requirements
Need to prioritize
severe scenarios
5
Approach Overview
Misconfiguration
Repair Algorithm
Decision
Maker
Patch Validator
</>
Misc
FTC
Failing test
suite
PTC
Passing test
suite
Test
Oracle
</>
Plausible
Patch
</>
Patch
Partial
patch
archive
</>
Partial
Patch
FTC
</>
Misc’
6
Misconfiguration Repair Algorithm
7
Misconfiguration Repair Algorithm
Expensive Test
Execution
Archive-based search strategy
Parallelization of the simulation-
based test execution
Tried to accelerate test execution
through surrogate models, but…
didn’t work!
8
Misconfiguration Repair Algorithm
Large Configuration
Space
Mechanism to measure
parameters’ suspiciousness
Parameters with high
suspiciousness get higher
probability to be mutated
9
Misconfiguration Repair Algorithm
Multiple
Requirements
Each requirement modeled through
one test oracle that provides a
score [-1,0]
Solution stored in Archive based
on Pareto-optimality
Maximun of 2 x # of Reqs. solutions
in the Archive
10
Misconfiguration Repair Algorithm
Need to prioritize
severe scenarios
Consider worst case scenario
per requirement for all test cases
executed
11
• Select a partial patch based on domain-specific rules
• Priority 1: Select all partial patches with WT < 25 seconds
• Priority 2: Select all partial patches which had < 10% of
passengers waiting more than 55 seconds
• …
• After all priorities, if more than one patch exists, select
the patch with minimal changes to the original one
(based on Hamming Distance)
Decision Maker
12
• Passing test cases are executed
• Encompassing full-day traffic profiles
• Regression test oracle employed (comparison with misconfigured
version)
• Other types of test cases executed using metamorphic
testing for CPSs
Patch Validator
13
RQ1 – Sanity check: How does our approach compare to
the baseline?
RQ2 – Comparison with state of the practice: How does
our approach compare to manual repair carried out by
domain experts?
Evaluation – Research Questions
14
• Case study
• Orona’s CGC dispatching algorithm
• Real misconfiguration that appeared in a real installation
• Operational data was available
• Data from manual repair was available
• Baseline algorithm: unguided version of our algorithm
(similar to random search)
• Evaluation metrics
• Hypervolume
• Individual objectives (after the patch is selected by the DM)
• Runs
• 10 executions for randomization
• 12 hours time budget
• Statistical tests
Evaluation – Experimental setup
15
Results
Setup: No threshold provided  Optimize as much as possible
all objectives
16
Results
Misconf Manual Baseline Repair
AWT (sec) 25.99 23.10 22.66 22.77
LWT (sec) 435.70 223.00 241.55 213.72
%WT>55 sec (%) 12.78 11.99 9.93 9.92
ATT (sec) 42.01 41.60 41.77 41.58
LTT (sec) 209.8 220.60 206.24 195.56
%WT>70 sec (%) 10.24 10.02 9.64 9.45
Setup: No threshold provided  Optimize as much as possible
all objectives
17
For out of 14 executions, for our algorithm, half of the
executions repaired the misconfiguration in around 3.5
hours
Results (not in the paper)
Setup: Threshold specified
For out of 14 executions, for the baseline, only one of the
executions repaired the misconfiguration in 11 hours
18
Answer to RQs
Our approach outperforms both
the baseline and the manual repair
provided by the domain experts.
19
• Lesson 1 – Reduction of personnel cost
• Lesson 2 – Scalable technique
• Lesson 3 – Surrogate models did not help
• Lesson 4 – Challenging conflicting installation, with
many unforeseen situations
Conclusion and Lessons Learned
We provide a scalable and automated
approach for automated misconfiguration
repair in the context of configurable CPSs
Thank you!
Aitor Arrieta
aarrieta@mondragon.edu
Pablo Valle Aitor Arrieta Maite Arratibel

More Related Content

Similar to Automated Misconfiguration Repair of Configurable Cyber-Physical Systems with Search

MiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous ControllersMiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous Controllers
Lionel Briand
 
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
Lionel Briand
 
Dealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in VerificationDealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in Verification
DVClub
 

Similar to Automated Misconfiguration Repair of Configurable Cyber-Physical Systems with Search (20)

Aplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unitAplication of on line data analytics to a continuous process polybetene unit
Aplication of on line data analytics to a continuous process polybetene unit
 
MiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous ControllersMiL Testing of Highly Configurable Continuous Controllers
MiL Testing of Highly Configurable Continuous Controllers
 
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
Testing Autonomous Cars for Feature Interaction Failures using Many-Objective...
 
MLConf 2016 SigOpt Talk by Scott Clark
MLConf 2016 SigOpt Talk by Scott ClarkMLConf 2016 SigOpt Talk by Scott Clark
MLConf 2016 SigOpt Talk by Scott Clark
 
Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016
Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016
Scott Clark, Co-Founder and CEO, SigOpt at MLconf SF 2016
 
Dealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in VerificationDealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in Verification
 
SE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingSE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software Testing
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
 
Performance Test Driven Development with Oracle Coherence
Performance Test Driven Development with Oracle CoherencePerformance Test Driven Development with Oracle Coherence
Performance Test Driven Development with Oracle Coherence
 
Seven deadly sins of ElasticSearch Benchmarking
Seven deadly sins of ElasticSearch BenchmarkingSeven deadly sins of ElasticSearch Benchmarking
Seven deadly sins of ElasticSearch Benchmarking
 
C010241521
C010241521C010241521
C010241521
 
Ajila (1)
Ajila (1)Ajila (1)
Ajila (1)
 
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven StrategiesTesting of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
 
Supply chain design and operation
Supply chain design and operationSupply chain design and operation
Supply chain design and operation
 
Performance tuning Grails applications
 Performance tuning Grails applications Performance tuning Grails applications
Performance tuning Grails applications
 
Performance tuning Grails applications
Performance tuning Grails applicationsPerformance tuning Grails applications
Performance tuning Grails applications
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
 
Mathworks CAE simulation suite – case in point from automotive and aerospace.
Mathworks CAE simulation suite – case in point from automotive and aerospace.Mathworks CAE simulation suite – case in point from automotive and aerospace.
Mathworks CAE simulation suite – case in point from automotive and aerospace.
 
Gale Technologies - A Leading Innovative Software Solutions Provider Explains...
Gale Technologies - A Leading Innovative Software Solutions Provider Explains...Gale Technologies - A Leading Innovative Software Solutions Provider Explains...
Gale Technologies - A Leading Innovative Software Solutions Provider Explains...
 
Wait-free data structures on embedded multi-core systems
Wait-free data structures on embedded multi-core systemsWait-free data structures on embedded multi-core systems
Wait-free data structures on embedded multi-core systems
 

Recently uploaded

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tth
AmanyaSylus
 

Recently uploaded (20)

Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdfONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tth
 

Automated Misconfiguration Repair of Configurable Cyber-Physical Systems with Search

  • 1. Automated Misconfiguration Repair of Configurable Cyber-Physical Systems with Search: an Industrial Case Study on Elevator Dispatching Algorithms Let’s discuss at ISSTA’23 Pablo Valle Aitor Arrieta Maite Arratibel
  • 2. 2 Example of a Cyber-Physical System
  • 3. 3 Configurability and Variability in Elevators 55% of issues that appeared in operation were due to misconfigurations
  • 4. 4 Challenges for Automated Repair of Misconfigurations Expensive Test Execution Large Configuration Space Multiple Requirements Need to prioritize severe scenarios
  • 5. 5 Approach Overview Misconfiguration Repair Algorithm Decision Maker Patch Validator </> Misc FTC Failing test suite PTC Passing test suite Test Oracle </> Plausible Patch </> Patch Partial patch archive </> Partial Patch FTC </> Misc’
  • 7. 7 Misconfiguration Repair Algorithm Expensive Test Execution Archive-based search strategy Parallelization of the simulation- based test execution Tried to accelerate test execution through surrogate models, but… didn’t work!
  • 8. 8 Misconfiguration Repair Algorithm Large Configuration Space Mechanism to measure parameters’ suspiciousness Parameters with high suspiciousness get higher probability to be mutated
  • 9. 9 Misconfiguration Repair Algorithm Multiple Requirements Each requirement modeled through one test oracle that provides a score [-1,0] Solution stored in Archive based on Pareto-optimality Maximun of 2 x # of Reqs. solutions in the Archive
  • 10. 10 Misconfiguration Repair Algorithm Need to prioritize severe scenarios Consider worst case scenario per requirement for all test cases executed
  • 11. 11 • Select a partial patch based on domain-specific rules • Priority 1: Select all partial patches with WT < 25 seconds • Priority 2: Select all partial patches which had < 10% of passengers waiting more than 55 seconds • … • After all priorities, if more than one patch exists, select the patch with minimal changes to the original one (based on Hamming Distance) Decision Maker
  • 12. 12 • Passing test cases are executed • Encompassing full-day traffic profiles • Regression test oracle employed (comparison with misconfigured version) • Other types of test cases executed using metamorphic testing for CPSs Patch Validator
  • 13. 13 RQ1 – Sanity check: How does our approach compare to the baseline? RQ2 – Comparison with state of the practice: How does our approach compare to manual repair carried out by domain experts? Evaluation – Research Questions
  • 14. 14 • Case study • Orona’s CGC dispatching algorithm • Real misconfiguration that appeared in a real installation • Operational data was available • Data from manual repair was available • Baseline algorithm: unguided version of our algorithm (similar to random search) • Evaluation metrics • Hypervolume • Individual objectives (after the patch is selected by the DM) • Runs • 10 executions for randomization • 12 hours time budget • Statistical tests Evaluation – Experimental setup
  • 15. 15 Results Setup: No threshold provided  Optimize as much as possible all objectives
  • 16. 16 Results Misconf Manual Baseline Repair AWT (sec) 25.99 23.10 22.66 22.77 LWT (sec) 435.70 223.00 241.55 213.72 %WT>55 sec (%) 12.78 11.99 9.93 9.92 ATT (sec) 42.01 41.60 41.77 41.58 LTT (sec) 209.8 220.60 206.24 195.56 %WT>70 sec (%) 10.24 10.02 9.64 9.45 Setup: No threshold provided  Optimize as much as possible all objectives
  • 17. 17 For out of 14 executions, for our algorithm, half of the executions repaired the misconfiguration in around 3.5 hours Results (not in the paper) Setup: Threshold specified For out of 14 executions, for the baseline, only one of the executions repaired the misconfiguration in 11 hours
  • 18. 18 Answer to RQs Our approach outperforms both the baseline and the manual repair provided by the domain experts.
  • 19. 19 • Lesson 1 – Reduction of personnel cost • Lesson 2 – Scalable technique • Lesson 3 – Surrogate models did not help • Lesson 4 – Challenging conflicting installation, with many unforeseen situations Conclusion and Lessons Learned We provide a scalable and automated approach for automated misconfiguration repair in the context of configurable CPSs
  • 20. Thank you! Aitor Arrieta aarrieta@mondragon.edu Pablo Valle Aitor Arrieta Maite Arratibel