SlideShare a Scribd company logo
.lusoftware verification & validation
VVS
Improving Fault Localization for
Simulink Models
using Search-Based Testing and Prediction Models
Bing Liu, Lucia, Shiva Nejati, Lionel Briand
SnT Centre, University of Luxembourg
SANER 2017, Klagenfurt, Austria
Simulation
2
Simulink
• Is a data flow-driven block diagram language
• Is widely used in the automotive domain
• Is executable and enables simulation and early testing
• Supports automated code generation
3
Simulink Fault Localization
4
✔
A
Test
case
Background: Statistical
Debugging
5
b4
b2 b3 b5
b7b6
b8
b10 b11 b12
b14b13
b9
b1
Block
Rankings
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
input1
input2
input3
output
6
Ranking Score
b1 0
b2 0
b3 0
b4 0
b5 0
b6 0
b7 0
b8 0
b9 0
b10 0
b11 0
b12 0
b13 0
b14 0
input1
input2
input3
output
Execute test case 1
b4
b2 b3 b5
b7b6
b8
b10 b11 b12
b14b13
b9
b1
Background: Statistical
Debugging
7
Ranking Score
b6 1
b2 0.5
b3 0.5
b5 0.5
b7 0.5
b8 0.5
b9 0.5
b10 0.5
b12 0.5
b13 0.5
b14 0.5
b1 0
b4 0
b11 0
input1
input2
input3
output
Execute test case 2
b4
b2 b3 b5
b7b6
b8
b10 b11 b12
b14b13
b9
b1
Background: Statistical
Debugging
Problem: Performance
Limitations
8
Ranking Score
b6 1
b2 0.5
b3 0.5
b5 0.5
b7 0.5
b8 0.5
b9 0.5
b10 0.5
b12 0.5
b13 0.5
b14 0.5
b1 0
b4 0
b11 0
• Faulty blocks may not be
ranked high
• Many blocks may have the
same score
• Engineers may have to
inspect many blocks until
they find the faulty block(s)
Goal: Improving Statistical
Debugging
• Statistical debugging can be improved by using larger test
suites
• But, adding test cases is not cost-free in some contexts
because
* test oracles need to be developed manually
* running test cases might be expensive
• We need to generate a small but effective set of test cases
9
Our Approach
10
Model Test Suite + Test Oracle Ranking
Generate a small but
effective set of test cases
No
YesRegenerate rankings
Are existing rankings
likely to be improved by
adding more test cases?
Static analysis
+
Predictor models
By diversifying
test cases
Test Case Generation
• We use a Single-State search technique to generate new test cases
• Our search strategy is guided by three alternative test objectives that aim
to increase the diversity of the test suite
• Dynamic basic blocks; Baudry et al. [ICSE’06]
• Coverage Density; Campos et al. [ASE’13]
• Coverage dissimilarity; Jiang et al. [ASE’09]
• None of the above test objectives require test oracles
11
Stop Test Generation Criteria
• We stop the test generation when adding test cases is unlikely
to improve the rankings
• We rely on
* Simulink Super Blocks: based on static analysis of Simulink
models
* Predictor models built using a supervised learning
technique and historical data
12
Decision Trees
• Input features:
• Current Round index
• Set Distance
• Ordering Distance
13
Experiment Evaluation
• We applied our approach to 60 single-fault-seeded versions of
our three industrial Simulink models
• We compared our three different test objectives
• We evaluated the effectiveness of predictor models
• The experiment results (except for original industry models)
are available at
https://github.com/Avartar/TCGenForFL/)
14
Results (1)
15
• [Accuracies of different test objectives]
ü The generated test cases significantly improved the fault localization accuracy
ü The three test objectives outperform Random test generation
ü No significant difference in the three test objectives
Results (2)
16
• [Impact of adding test cases]
ü Adding test cases may not always improve fault localization accuracy
Results (3)
17
• [Effectiveness of predictor model]
ü Our approach is able to maintain almost the same fault localization accuracy
while reducing the average number of newly generated test cases by more
than half.
Conclusion
• We proposed a new approach to improve fault localization accuracy
for Simulink models by extending an existing test suite with a small
number of high quality test cases.
• We evaluated our approach on 60 faulty versions of industry
models.
• Our approach significantly improves the accuracy of fault
localization for small test suite sizes
• Our approach is able to maintain almost the same fault
localization accuracy while reducing the average number of
newly generated test cases by more than half
18
Ad

Recommended

Extracting Domain Models from Natural-Language Requirements: Approach and Ind...
Extracting Domain Models from Natural-Language Requirements: Approach and Ind...
Lionel Briand
 
Automated Test Suite Generation for Time-Continuous Simulink Models
Automated Test Suite Generation for Time-Continuous Simulink Models
Lionel Briand
 
Incremental Reconfiguration of Product Specific Use Case Models for Evolving ...
Incremental Reconfiguration of Product Specific Use Case Models for Evolving ...
Lionel Briand
 
Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...
Lionel Briand
 
Testing the Untestable: Model Testing of Complex Software-Intensive Systems
Testing the Untestable: Model Testing of Complex Software-Intensive Systems
Lionel Briand
 
Evaluating Model Testing and Model Checking for Finding Requirements Violatio...
Evaluating Model Testing and Model Checking for Finding Requirements Violatio...
Lionel Briand
 
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Testing Dynamic Behavior in Executable Software Models - Making Cyber-physica...
Lionel Briand
 
System Testing of Timing Requirements based on Use Cases and Timed Automata
System Testing of Timing Requirements based on Use Cases and Timed Automata
Lionel Briand
 
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Lionel Briand
 
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Lionel Briand
 
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Lionel Briand
 
Applications of Machine Learning and Metaheuristic Search to Security Testing
Applications of Machine Learning and Metaheuristic Search to Security Testing
Lionel Briand
 
Search-Based Robustness Testing of Data Processing Systems
Search-Based Robustness Testing of Data Processing Systems
Lionel Briand
 
Documented Requirements are not Useless After All!
Documented Requirements are not Useless After All!
Lionel Briand
 
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Lionel Briand
 
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
Lionel Briand
 
Testing Machine Learning-enabled Systems: A Personal Perspective
Testing Machine Learning-enabled Systems: A Personal Perspective
Lionel Briand
 
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
Lionel Briand
 
SSBSE 2020 keynote
SSBSE 2020 keynote
Shiva Nejati
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Metamorphic Security Testing for Web Systems
Metamorphic Security Testing for Web Systems
Lionel Briand
 
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
Lionel Briand
 
AI in SE: A 25-year Journey
AI in SE: A 25-year Journey
Lionel Briand
 
STAR: Stack Trace based Automatic Crash Reproduction
STAR: Stack Trace based Automatic Crash Reproduction
Sung Kim
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
Lionel Briand
 
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Lionel Briand
 
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
Lionel Briand
 
Sistemas de información
Sistemas de información
Leonardo Quintero R
 
Programación CdA 5º de Educación Primaria
Programación CdA 5º de Educación Primaria
Ángel Alsasua Santos
 

More Related Content

What's hot (20)

Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Lionel Briand
 
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Lionel Briand
 
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Lionel Briand
 
Applications of Machine Learning and Metaheuristic Search to Security Testing
Applications of Machine Learning and Metaheuristic Search to Security Testing
Lionel Briand
 
Search-Based Robustness Testing of Data Processing Systems
Search-Based Robustness Testing of Data Processing Systems
Lionel Briand
 
Documented Requirements are not Useless After All!
Documented Requirements are not Useless After All!
Lionel Briand
 
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Lionel Briand
 
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
Lionel Briand
 
Testing Machine Learning-enabled Systems: A Personal Perspective
Testing Machine Learning-enabled Systems: A Personal Perspective
Lionel Briand
 
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
Lionel Briand
 
SSBSE 2020 keynote
SSBSE 2020 keynote
Shiva Nejati
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Metamorphic Security Testing for Web Systems
Metamorphic Security Testing for Web Systems
Lionel Briand
 
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
Lionel Briand
 
AI in SE: A 25-year Journey
AI in SE: A 25-year Journey
Lionel Briand
 
STAR: Stack Trace based Automatic Crash Reproduction
STAR: Stack Trace based Automatic Crash Reproduction
Sung Kim
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
Lionel Briand
 
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Lionel Briand
 
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
Lionel Briand
 
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Lionel Briand
 
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Lionel Briand
 
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Lionel Briand
 
Applications of Machine Learning and Metaheuristic Search to Security Testing
Applications of Machine Learning and Metaheuristic Search to Security Testing
Lionel Briand
 
Search-Based Robustness Testing of Data Processing Systems
Search-Based Robustness Testing of Data Processing Systems
Lionel Briand
 
Documented Requirements are not Useless After All!
Documented Requirements are not Useless After All!
Lionel Briand
 
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Effective Test Suites for ! Mixed Discrete-Continuous Stateflow Controllers
Lionel Briand
 
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
AN EMPIRICAL STUDY ON THE POTENTIAL USEFULNESS OF DOMAIN MODELS FOR COMPLETEN...
Lionel Briand
 
Testing Machine Learning-enabled Systems: A Personal Perspective
Testing Machine Learning-enabled Systems: A Personal Perspective
Lionel Briand
 
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
PUMConf: A Tool to Configure Product Specific Use Case and Domain Models in a...
Lionel Briand
 
SSBSE 2020 keynote
SSBSE 2020 keynote
Shiva Nejati
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Metamorphic Security Testing for Web Systems
Metamorphic Security Testing for Web Systems
Lionel Briand
 
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
A Search-based Testing Approach for XML Injection Vulnerabilities in Web Appl...
Lionel Briand
 
AI in SE: A 25-year Journey
AI in SE: A 25-year Journey
Lionel Briand
 
STAR: Stack Trace based Automatic Crash Reproduction
STAR: Stack Trace based Automatic Crash Reproduction
Sung Kim
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
Lionel Briand
 
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Test Case Prioritization for Acceptance Testing of Cyber Physical Systems
Lionel Briand
 
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
HITECS: A UML Profile and Analysis Framework for Hardware-in-the-Loop Testing...
Lionel Briand
 

Viewers also liked (15)

Sistemas de información
Sistemas de información
Leonardo Quintero R
 
Programación CdA 5º de Educación Primaria
Programación CdA 5º de Educación Primaria
Ángel Alsasua Santos
 
Guía de aprendizaje 5 slideshare
Guía de aprendizaje 5 slideshare
maria valeria torres moncada
 
Faq häufig gestellte fragen
Faq häufig gestellte fragen
Ulrich Kritzler
 
Canal de Panamá y Universidad
Canal de Panamá y Universidad
docenciagrupo02
 
04_Node modules
04_Node modules
Ahmed Elbassel
 
Contexto Artistico e Cultural
Contexto Artistico e Cultural
Eduardo Becker Jr.
 
Dynamic Website Personalization - Make your website more interactive.
Dynamic Website Personalization - Make your website more interactive.
LeadGen-IMPACT
 
Clasificacion de tornillos
Clasificacion de tornillos
alexisadonay
 
Resins
Resins
Subha Sri Aala
 
Clase sociales 5°-03-06-17_plan lector 01_ficha 02
Clase sociales 5°-03-06-17_plan lector 01_ficha 02
IETI AJC Olga Lucía Lloreda
 
Clase inglés 5°_03-09-17_check my notes
Clase inglés 5°_03-09-17_check my notes
IETI AJC Olga Lucía Lloreda
 
Industrial engineering – case study
Industrial engineering – case study
Jephin S John
 
Clase castellano 5°-03-09-17_revisión_apuntes_y_actividades
Clase castellano 5°-03-09-17_revisión_apuntes_y_actividades
IETI AJC Olga Lucía Lloreda
 
толерантнIсть
толерантнIсть
Andy Levkovich
 
Programación CdA 5º de Educación Primaria
Programación CdA 5º de Educación Primaria
Ángel Alsasua Santos
 
Faq häufig gestellte fragen
Faq häufig gestellte fragen
Ulrich Kritzler
 
Canal de Panamá y Universidad
Canal de Panamá y Universidad
docenciagrupo02
 
Dynamic Website Personalization - Make your website more interactive.
Dynamic Website Personalization - Make your website more interactive.
LeadGen-IMPACT
 
Clasificacion de tornillos
Clasificacion de tornillos
alexisadonay
 
Clase sociales 5°-03-06-17_plan lector 01_ficha 02
Clase sociales 5°-03-06-17_plan lector 01_ficha 02
IETI AJC Olga Lucía Lloreda
 
Industrial engineering – case study
Industrial engineering – case study
Jephin S John
 
Clase castellano 5°-03-09-17_revisión_apuntes_y_actividades
Clase castellano 5°-03-09-17_revisión_apuntes_y_actividades
IETI AJC Olga Lucía Lloreda
 
толерантнIсть
толерантнIсть
Andy Levkovich
 
Ad

Similar to Improving Fault Localization for Simulink Models using Search-Based Testing and Prediction Models (20)

Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Lionel Briand
 
Enabling Automated Software Testing with Artificial Intelligence
Enabling Automated Software Testing with Artificial Intelligence
Lionel Briand
 
Achieving Scalability in Software Testing with Machine Learning and Metaheuri...
Achieving Scalability in Software Testing with Machine Learning and Metaheuri...
Lionel Briand
 
SBST 2019 Keynote
SBST 2019 Keynote
Shiva Nejati
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applications
butest
 
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
ijcisjournal
 
Logic Simulation, Modeling, and Testing
Logic Simulation, Modeling, and Testing
Aksum Institute of Technology(AIT, @Letsgo)
 
How to find defects early and increase the reliability of software systems
How to find defects early and increase the reliability of software systems
RAKESH RANA
 
Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 
A simplified predictive framework for cost evaluation to fault assessment usi...
A simplified predictive framework for cost evaluation to fault assessment usi...
IJECEIAES
 
50120140501001
50120140501001
IAEME Publication
 
Ijsea04031006
Ijsea04031006
Editor IJCATR
 
Automated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow Controllers
Lionel Briand
 
Lionel Briand ICSM 2011 Keynote
Lionel Briand ICSM 2011 Keynote
ICSM 2011
 
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
mwpeexdvjgtqujwhog
 
A survey of fault prediction using machine learning algorithms
A survey of fault prediction using machine learning algorithms
Ahmed Magdy Ezzeldin, MSc.
 
Presentation Verification & Validation
Presentation Verification & Validation
Elmar Selbach
 
Mining Assumptions for Software Components using Machine Learning
Mining Assumptions for Software Components using Machine Learning
Lionel Briand
 
VLSI testing and analysis
VLSI testing and analysis
Surekha PuriGosavi
 
Presentation
Presentation
SATYALOK
 
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Lionel Briand
 
Enabling Automated Software Testing with Artificial Intelligence
Enabling Automated Software Testing with Artificial Intelligence
Lionel Briand
 
Achieving Scalability in Software Testing with Machine Learning and Metaheuri...
Achieving Scalability in Software Testing with Machine Learning and Metaheuri...
Lionel Briand
 
SBST 2019 Keynote
SBST 2019 Keynote
Shiva Nejati
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applications
butest
 
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
Wavelet Based on the Finding of Hard and Soft Faults in Analog and Digital Si...
ijcisjournal
 
How to find defects early and increase the reliability of software systems
How to find defects early and increase the reliability of software systems
RAKESH RANA
 
Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 
A simplified predictive framework for cost evaluation to fault assessment usi...
A simplified predictive framework for cost evaluation to fault assessment usi...
IJECEIAES
 
Automated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow Controllers
Lionel Briand
 
Lionel Briand ICSM 2011 Keynote
Lionel Briand ICSM 2011 Keynote
ICSM 2011
 
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
st-notes-13-26-software-testing-is-the-act-of-examining-the-artifacts-and-the...
mwpeexdvjgtqujwhog
 
A survey of fault prediction using machine learning algorithms
A survey of fault prediction using machine learning algorithms
Ahmed Magdy Ezzeldin, MSc.
 
Presentation Verification & Validation
Presentation Verification & Validation
Elmar Selbach
 
Mining Assumptions for Software Components using Machine Learning
Mining Assumptions for Software Components using Machine Learning
Lionel Briand
 
Presentation
Presentation
SATYALOK
 
Ad

More from Lionel Briand (20)

LTM: Scalable and Black-box Similarity-based Test Suite Minimization based on...
LTM: Scalable and Black-box Similarity-based Test Suite Minimization based on...
Lionel Briand
 
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
Automated Test Case Repair Using Language Models
Automated Test Case Repair Using Language Models
Lionel Briand
 
Automated Testing and Safety Analysis of Deep Neural Networks
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
 
FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categorie...
FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categorie...
Lionel Briand
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
Lionel Briand
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
Lionel Briand
 
Metamorphic Testing for Web System Security
Metamorphic Testing for Web System Security
Lionel Briand
 
Simulator-based Explanation and Debugging of Hazard-triggering Events in DNN-...
Simulator-based Explanation and Debugging of Hazard-triggering Events in DNN-...
Lionel Briand
 
Fuzzing for CPS Mutation Testing
Fuzzing for CPS Mutation Testing
Lionel Briand
 
Data-driven Mutation Analysis for Cyber-Physical Systems
Data-driven Mutation Analysis for Cyber-Physical Systems
Lionel Briand
 
Many-Objective Reinforcement Learning for Online Testing of DNN-Enabled Systems
Many-Objective Reinforcement Learning for Online Testing of DNN-Enabled Systems
Lionel Briand
 
ATM: Black-box Test Case Minimization based on Test Code Similarity and Evolu...
ATM: Black-box Test Case Minimization based on Test Code Similarity and Evolu...
Lionel Briand
 
Black-box Safety Analysis and Retraining of DNNs based on Feature Extraction ...
Black-box Safety Analysis and Retraining of DNNs based on Feature Extraction ...
Lionel Briand
 
PRINS: Scalable Model Inference for Component-based System Logs
PRINS: Scalable Model Inference for Component-based System Logs
Lionel Briand
 
Revisiting the Notion of Diversity in Software Testing
Revisiting the Notion of Diversity in Software Testing
Lionel Briand
 
Applications of Search-based Software Testing to Trustworthy Artificial Intel...
Applications of Search-based Software Testing to Trustworthy Artificial Intel...
Lionel Briand
 
Autonomous Systems: How to Address the Dilemma between Autonomy and Safety
Autonomous Systems: How to Address the Dilemma between Autonomy and Safety
Lionel Briand
 
Mathematicians, Social Scientists, or Engineers? The Split Minds of Software ...
Mathematicians, Social Scientists, or Engineers? The Split Minds of Software ...
Lionel Briand
 
LTM: Scalable and Black-box Similarity-based Test Suite Minimization based on...
LTM: Scalable and Black-box Similarity-based Test Suite Minimization based on...
Lionel Briand
 
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
Automated Test Case Repair Using Language Models
Automated Test Case Repair Using Language Models
Lionel Briand
 
Automated Testing and Safety Analysis of Deep Neural Networks
Automated Testing and Safety Analysis of Deep Neural Networks
Lionel Briand
 
FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categorie...
FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categorie...
Lionel Briand
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
Lionel Briand
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
Lionel Briand
 
Metamorphic Testing for Web System Security
Metamorphic Testing for Web System Security
Lionel Briand
 
Simulator-based Explanation and Debugging of Hazard-triggering Events in DNN-...
Simulator-based Explanation and Debugging of Hazard-triggering Events in DNN-...
Lionel Briand
 
Fuzzing for CPS Mutation Testing
Fuzzing for CPS Mutation Testing
Lionel Briand
 
Data-driven Mutation Analysis for Cyber-Physical Systems
Data-driven Mutation Analysis for Cyber-Physical Systems
Lionel Briand
 
Many-Objective Reinforcement Learning for Online Testing of DNN-Enabled Systems
Many-Objective Reinforcement Learning for Online Testing of DNN-Enabled Systems
Lionel Briand
 
ATM: Black-box Test Case Minimization based on Test Code Similarity and Evolu...
ATM: Black-box Test Case Minimization based on Test Code Similarity and Evolu...
Lionel Briand
 
Black-box Safety Analysis and Retraining of DNNs based on Feature Extraction ...
Black-box Safety Analysis and Retraining of DNNs based on Feature Extraction ...
Lionel Briand
 
PRINS: Scalable Model Inference for Component-based System Logs
PRINS: Scalable Model Inference for Component-based System Logs
Lionel Briand
 
Revisiting the Notion of Diversity in Software Testing
Revisiting the Notion of Diversity in Software Testing
Lionel Briand
 
Applications of Search-based Software Testing to Trustworthy Artificial Intel...
Applications of Search-based Software Testing to Trustworthy Artificial Intel...
Lionel Briand
 
Autonomous Systems: How to Address the Dilemma between Autonomy and Safety
Autonomous Systems: How to Address the Dilemma between Autonomy and Safety
Lionel Briand
 
Mathematicians, Social Scientists, or Engineers? The Split Minds of Software ...
Mathematicians, Social Scientists, or Engineers? The Split Minds of Software ...
Lionel Briand
 

Recently uploaded (20)

Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Top Time Tracking Solutions for Accountants
Top Time Tracking Solutions for Accountants
oliviareed320
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Why Edge Computing Matters in Mobile Application Tech.pdf
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
 
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
Jamie Coleman
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Top Time Tracking Solutions for Accountants
Top Time Tracking Solutions for Accountants
oliviareed320
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Y - Recursion The Hard Way GopherCon EU 2025
Y - Recursion The Hard Way GopherCon EU 2025
Eleanor McHugh
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Why Edge Computing Matters in Mobile Application Tech.pdf
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
 
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
Jamie Coleman
 

Improving Fault Localization for Simulink Models using Search-Based Testing and Prediction Models

  • 1. .lusoftware verification & validation VVS Improving Fault Localization for Simulink Models using Search-Based Testing and Prediction Models Bing Liu, Lucia, Shiva Nejati, Lionel Briand SnT Centre, University of Luxembourg SANER 2017, Klagenfurt, Austria
  • 3. Simulink • Is a data flow-driven block diagram language • Is widely used in the automotive domain • Is executable and enables simulation and early testing • Supports automated code generation 3
  • 5. Background: Statistical Debugging 5 b4 b2 b3 b5 b7b6 b8 b10 b11 b12 b14b13 b9 b1 Block Rankings b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 input1 input2 input3 output
  • 6. 6 Ranking Score b1 0 b2 0 b3 0 b4 0 b5 0 b6 0 b7 0 b8 0 b9 0 b10 0 b11 0 b12 0 b13 0 b14 0 input1 input2 input3 output Execute test case 1 b4 b2 b3 b5 b7b6 b8 b10 b11 b12 b14b13 b9 b1 Background: Statistical Debugging
  • 7. 7 Ranking Score b6 1 b2 0.5 b3 0.5 b5 0.5 b7 0.5 b8 0.5 b9 0.5 b10 0.5 b12 0.5 b13 0.5 b14 0.5 b1 0 b4 0 b11 0 input1 input2 input3 output Execute test case 2 b4 b2 b3 b5 b7b6 b8 b10 b11 b12 b14b13 b9 b1 Background: Statistical Debugging
  • 8. Problem: Performance Limitations 8 Ranking Score b6 1 b2 0.5 b3 0.5 b5 0.5 b7 0.5 b8 0.5 b9 0.5 b10 0.5 b12 0.5 b13 0.5 b14 0.5 b1 0 b4 0 b11 0 • Faulty blocks may not be ranked high • Many blocks may have the same score • Engineers may have to inspect many blocks until they find the faulty block(s)
  • 9. Goal: Improving Statistical Debugging • Statistical debugging can be improved by using larger test suites • But, adding test cases is not cost-free in some contexts because * test oracles need to be developed manually * running test cases might be expensive • We need to generate a small but effective set of test cases 9
  • 10. Our Approach 10 Model Test Suite + Test Oracle Ranking Generate a small but effective set of test cases No YesRegenerate rankings Are existing rankings likely to be improved by adding more test cases? Static analysis + Predictor models By diversifying test cases
  • 11. Test Case Generation • We use a Single-State search technique to generate new test cases • Our search strategy is guided by three alternative test objectives that aim to increase the diversity of the test suite • Dynamic basic blocks; Baudry et al. [ICSE’06] • Coverage Density; Campos et al. [ASE’13] • Coverage dissimilarity; Jiang et al. [ASE’09] • None of the above test objectives require test oracles 11
  • 12. Stop Test Generation Criteria • We stop the test generation when adding test cases is unlikely to improve the rankings • We rely on * Simulink Super Blocks: based on static analysis of Simulink models * Predictor models built using a supervised learning technique and historical data 12
  • 13. Decision Trees • Input features: • Current Round index • Set Distance • Ordering Distance 13
  • 14. Experiment Evaluation • We applied our approach to 60 single-fault-seeded versions of our three industrial Simulink models • We compared our three different test objectives • We evaluated the effectiveness of predictor models • The experiment results (except for original industry models) are available at https://github.com/Avartar/TCGenForFL/) 14
  • 15. Results (1) 15 • [Accuracies of different test objectives] ü The generated test cases significantly improved the fault localization accuracy ü The three test objectives outperform Random test generation ü No significant difference in the three test objectives
  • 16. Results (2) 16 • [Impact of adding test cases] ü Adding test cases may not always improve fault localization accuracy
  • 17. Results (3) 17 • [Effectiveness of predictor model] ü Our approach is able to maintain almost the same fault localization accuracy while reducing the average number of newly generated test cases by more than half.
  • 18. Conclusion • We proposed a new approach to improve fault localization accuracy for Simulink models by extending an existing test suite with a small number of high quality test cases. • We evaluated our approach on 60 faulty versions of industry models. • Our approach significantly improves the accuracy of fault localization for small test suite sizes • Our approach is able to maintain almost the same fault localization accuracy while reducing the average number of newly generated test cases by more than half 18