Automating Fault Test Cases Generation and Execution for Automotive Safety Validation via NLP and HIL Simulation
Abstract
:1. Introduction
- The complexity of manually simulating realistic fault conditions in safety-critical systems increases the potential for human error and oversight in critical testing phases.
- Manual injection processes and expertise dependency. Complexity and time consumption due to the integration of many sensors and actuators with control units (ECUs) [8].
- Limited test case execution testers, given the time and effort constraints, limit fault injection cases by ignoring less obvious scenarios, which can potentially be critical [9].
- Difficulty in simulating realistic faults because of the complex conditions during the experiment. Automating the fault injection process presents both a challenge and an opportunity.
- Automotive systems are subject to strict regulatory standards such as ISO 26262. Ensuring that fault injection methodologies comply with these standards and that they do not inadvertently compromise the system.
- The automatic generation of fault test cases directly from functional safety requirements, utilizing advanced natural language processing techniques, reduces manual effort, accelerates testing cycles, and enhances adaptability in testing protocols as system requirements evolve.
- The automatic execution of these generated fault test cases, adhering to the principles of the black-box testing concept to guarantee unbiased results.
- The incorporation of real-time fault injection capabilities to simulate faults in complex systems enhances the realism and applicability of tests.
- Single- and multi-fault injection techniques to evaluate system resilience under varied conditions and scenarios.
- Comprehensive coverage of all expected communication faults derived from the functional safety requirements, ensuring an in-depth testing process.
- The flexible methodology offers extensive applicability beyond automotive safety, potentially transforming practices in the aerospace and industrial automation sectors.
- Automated testing ensures consistent test execution, reducing human error and increasing the accuracy and reproducibility of results. Efficiently handles increased system complexity irrespective of the architectural scale.
2. Background and Overview
2.1. Fault Injection Approach
- Fault Location (Where to Inject): To enable realistic testing scenarios, any sensor or actuator inside the vehicle can be a potential site for these injections.
- Fault Type (What to inject): This paper includes a wide variety of fault types. These faults fall into various categories [20], i.e., value-based faults, which comprise Stuck-at, Offset, and Gain faults; faults causing disturbance to signals including Drift, Spike, and Noise faults, including Hard-over Faults under the Threshold and Extreme Value Faults with the Maximum Threshold; and Packet loss and delay faults fall under the fourth category of network and communication faults.
- Fault Time (When to Inject): There are two types of fault injection timing in fault testing: event-dependent and time-dependent. Time-dependent fault injection involves the introduction of faults after a predefined experiment duration, which can be set by the user or ascertained using a probability distribution. In contrast, event-dependent fault injection involves the activation of faults in response to events that transpire during system execution. For example, a fault arises when a vehicle reaches a speed of more than 100 km per hour. Both time-based and event-based fault injection scenarios can be handled by our method with effectiveness.
2.2. Integrating Fault Injection into the Development Life Cycle according to ISO 26262
2.3. Natural Language Processing (NLP)
Bidirectional Encoder Representations from Transformers (BERT)
2.4. Hardware-in-the-Loop (HIL)
3. Related Works
4. Methodology
4.1. Automatic Fault Test Cases Generation
4.1.1. BERT Multi-Label Classification
- Tokenization: Use the BERT tokenizer to tokenize the raw text (functional safety requirements) into subwords [73].
- Embedding: Each token is transformed into an embedding following tokenization. Two different embedding types are included in this step [74]:
- (a)
- Token embeddings: Transform words (tokens) into vectors that represent their meaning.
- (b)
- Position embeddings: To give the model information about each token’s location within the sequence.
- Transformer Layers: These layers are used for understanding the context and relationships between words in the text. The combined embeddings are then passed through BERT’s transformer layers. These layers use self-attention mechanisms to process the text non-sequentially, allowing the model to weigh the meaning of different tokens within each sequence [75].
- Contextualized Representation: Within the Transformer levels, BERT generates contextualized token representations. These representations consider the meaning of each word as well as the context that the words surrounding it provide in a sentence [76].
- Classification Head: “BertForSequenceClassification” appends a sequence classification header to the BERT model. This layer, which is a kind of dense layer, maps the number of classes in the classification task to the representation of the [CLS] token. This linear layer’s weights are trained to decipher the [CLS] token’s representation and determine the classification [77].
4.1.2. Word2Vec and Cosine Similarity
4.2. Automatic Test Execution
4.3. Test Evaluation
5. Case Study and Implementation
5.1. System under Test
5.2. Data Description
- Size: 153 kilobytes.
- Type: CSV (Comma-Separated Values).
- Lines: 1003 lines, each representing a single data point except the first row, which contains headers.
- Functionality: How components operate (e.g., converting pedal movement to electrical signals).
- Components and Parts: Identifiable parts of each system (e.g., the foot pedal).
- Measurement and Sensors/Parameters: Sensors involved and their parameters (e.g., position sensors).
- Safety and Control Systems: Safety features and control mechanisms (e.g., drive- by-wire).
- Diagnostics and Troubleshooting (e.g., diagnostic trouble code (DTC)).
- Vehicle Dynamics and Handling/Behavior: How components affect vehicle performance (e.g., responsiveness, vehicle performance).
- Environmental Factors: Environmental impacts (e.g., footwell, cabin environment.).
- Driver Behavior and Awareness/Experience: How components influence driver experience (e.g., smooth acceleration, driving experience).
- Safety and Driver Assistance: Safety features and assistance systems (e.g., Lane Change Assist System, Lane Keeping Assist).
- Driver Behavior and Techniques: The impact of systems on driver behavior (e.g., driver’s skill, driver’s control).
- Traffic and Road Conditions: How systems adapt to or are influenced by traffic and road conditions (e.g., lane availability).
- Acceleration Pedal (Acc): 138 lines with labels [1, 0, 0, 0, 0, 0].
- Wheel Steering Angle (WSA): 160 lines with labels [0, 1, 0, 0, 0, 0].
- Wheel Speed (WS): 104 lines with labels [0, 0, 1, 0, 0, 0].
- Yaw Rate (YR): 107 lines with labels [0, 0, 0, 1, 0, 0].
- Steering Torque (ST): 118 lines with labels [0, 0, 0, 0, 1, 0].
- Vehicle Speed (VS): 102 lines with labels [0, 0, 0, 0, 0, 1].
- Acceleration Pedal and Wheel Steering Angle (Acc and WSA): 142 lines with labels [1, 1, 0, 0, 0, 0].
- Steering Angle and Wheel Speed (WSA and WS): 131 lines with labels [0, 1, 1, 0, 0, 0].
5.3. Training and Optimization
5.3.1. BERT Model Training and Optimization
5.3.2. Word2Vec Training and Optimization
5.3.3. Integration between BERT and Word2Vec for Automatic Generation of Fault Test Case Attributes
- Input Layer: This layer analyzes the text document (FSR), which provides specifics about the safety tasks that the system is meant to complete. The mathematical circumstances under which faults should be injected into the system are outlined in another text document called the “Injection Condition”.
- Process Layer:
- (a)
- BERT-Model: Based on each functional safety requirement, this model identifies one or more affected locations (actuators or sensor signals) by performing multi-classification. The locations where the conditions will be observed are also determined based on the relevant injection conditions.
- (b)
- Word2Vec and Cosine Similarity are used to recognize and match the mathematical conditions with a conditions database.
- Output Layer:
- (a)
- The precise location within the system (a sensor or actuator) where the fault will be injected is known as the “Injection Location”.
- (b)
- As defined by the injection condition, the injection time (could be a specific time or an event, e.g., when the vehicle speed is 70 km/h or greater) refers to the moment at which the fault injection will occur.
- (c)
- Fault Type retrieved from the Fault Type Library.
5.4. The Sequence of Automatic Execution of Fault Test Case
- During the Initialization Phase, the system starts with the activation of the Motion Desk, which is the control software for simulations. This is followed by configuring and initiating the Model Desk to model the experiment environment. Finally, the capture system is configured and initiated to record data.
- In the Fault Injection Phase, the process begins with starting maneuvers or test scenarios. Data capture commences to record the system’s behavior during these scenarios. The system then checks for the right conditions before injecting faults. Results from the fault injection are captured, and visual data representations are prepared for reporting. This phase concludes with the clearing of temporary values and stopping the test maneuvers.
- The Cleanup Phase involves halting the data capture process and shutting down the Model Desk. Any ongoing animations are stopped, the project and experiment are formally closed, and, ultimately, the Motion Desk is shut down, completing the process.
5.5. Experimental Setup
5.5.1. Experiment 1: FSR for Single Fault Test Case
- Functional Safety Requirement: The steering system must provide consistent feedback to the driver that correlates with the actual steering angle and vehicle dynamics.
- Condition: No additional condition.
- The test is initiated by providing the functional safety requirement as input.
- The automated system, without any additional conditions, generates test cases for the steering feedback system.
- Each test case is simulated to verify the steering feedback under normal and fault conditions.
- Faults are injected, and the system’s response is monitored to ensure that it maintains integrity and provides accurate driver feedback.
- Outcomes, including any deviations or failures, are logged for further analysis and reporting.
5.5.2. Experiment 2: FSR for Multi-Fault Test Case
- Functional Safety Requirement: The system must synchronize steering angle inputs with the accelerator pedal position to optimize vehicle stability and traction to prevent loss of control.
- Condition: The speedometer displays vehicle speed, with a minimum speed as defined being greater than or equal to 70.0 km/h.
- The test commences by setting a predefined condition where the vehicle speedometer indicates a speed of at least 70 km/h.
- The automated system generates multi-fault test cases targeting the steering angle and accelerator pedal signals.
- The test injects multiple faults simultaneously under the defined speed condition to evaluate the system’s stability and control measures.
- The system’s ability to maintain control and stability post-fault injection is assessed.
- A comprehensive report is generated, detailing the system’s performance and its ability to mitigate risks effectively under the imposed fault conditions.
6. Results and Evaluations
6.1. System Behavior under Fault-Free Conditions
6.2. System Behavior under Single Fault Conditions (Experiment 1)
6.2.1. Functional Safety Requirement of Single Fault Test Case
6.2.2. Generation Results of Single Fault Test Case
6.2.3. Execution Results of Single Fault Test Case
6.2.4. Evaluation of Single Fault Test Case
6.3. System Behavior under Compound Fault Conditions (Experiment 2)
6.3.1. Functional Safety Requirement of Multi-Fault Test Case
6.3.2. Generation Results of Multi-Fault Test Case
6.3.3. Execution Results of Multi-Fault Test Case
6.3.4. Evaluation of Multi-Fault Test Case
- The observed increases in speed and torque mean effort suggest heightened energy consumption, potentially reducing fuel efficiency.
- A stable but slightly variable engine RPM indicates that the engine is not always operating in inefficient ranges.
- Oscillations in the roll rate are indicative of stability control systems consuming additional energy to maintain vehicle balance.
- Additionally, frequent steering corrections and erratic gear shifts, especially noted in the multi-fault scenario Figure 11, may lead to dynamic inefficiencies and less optimal engine performance, further affecting energy use and fuel economy.
6.4. BERT Model Evaluation
6.4.1. BERT Model Training Evaluation
6.4.2. BERT Model Testing Evaluation
- Working on distinguishing Acceleration Pedal (Acc) features more clearly to increase the precision and reduce the false positives.
- Analyzing the misclassifications to understand if commonalities are causing the errors to address the confusion between (WS), (WSA and WS), and possibly other classes.
6.5. Word2Vec Model Testing Evaluation
7. Conclusions and Discussion
- Explore the integration of advanced Transformer-based models like RoBERTa and GPT, which may offer enhanced understanding and generation capabilities, potentially increasing the precision of test case generation in complex automotive software systems.
- The methodology demonstrated here holds significant potential for adaptation to other safety-critical domains such as aerospace and medical devices, where rigorous testing regimes are similarly essential to ensure operational safety under diverse conditions.
- Further research could involve utilizing the established methodology in a simulated real-world environment where actual users drive the vehicle through a simulator.
- Additionally, expanding the research to cover more extensive error domains would help in identifying and rectifying potential shortcomings.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
ASM | Automotive Simulation Models |
BERT | Bidirectional Encoder Representations from Transformers |
FI | Fault Injection |
FSR | Functional Safety Requirement |
HIL | Hardware-In-the-Loop Simulation |
NLP | Natural Language Processing |
SUT | System Under Test |
References
- Rahimi, A.; He, Y. A review of essential technologies for autonomous and semi-autonomous articulated heavy vehicles. In Proceedings of the Canadian Society for Mechanical Engineering International Congress, Charlottetown, PE, Canada, 21–24 June 2020; pp. 21–24. [Google Scholar]
- Natella, R.; Cotroneo, D.; Duraes, J.A.; Madeira, H.S. On fault representativeness of software fault injection. IEEE Trans. Softw. Eng. 2012, 39, 80–96. [Google Scholar] [CrossRef]
- ISO 26262:2011; Road Vehicles—Functional Safety. International Organization for Standardization: Geneva, Switzerland, 2011.
- Pintard, L.; Fabre, J.C.; Kanoun, K.; Leeman, M.; Roy, M. Fault injection in the automotive standard ISO 26262: An initial approach. In Proceedings of the 14th European Workshop, EWDC 2013, Coimbra, Portugal, 15–16 May 2013; pp. 126–133. [Google Scholar]
- Abboush, M.; Knieke, C.; Rausch, A. Intelligent Identification of Simultaneous Faults of Automotive Software Systems under Noisy and Imbalanced Data based on Ensemble LSTM and Random Forest. IEEE Access 2023, 11, 140022–140040. [Google Scholar] [CrossRef]
- Koopman, P.; Wagner, M. Challenges in autonomous vehicle testing and validation. SAE Int. J. Transp. Saf. 2016, 4, 15–24. [Google Scholar] [CrossRef]
- Avizienis, A. Fault-tolerance: The survival attribute of digital systems. Proc. IEEE 1978, 66, 1109–1125. [Google Scholar] [CrossRef]
- Avizienis, A. Toward systematic design of fault-tolerant systems. Computer 1997, 30, 51–58. [Google Scholar] [CrossRef]
- Natella, R.; Cotroneo, D.; Madeira, H.S. Assessing dependability with software fault injection: A survey. ACM Comput. Surv. (CSUR) 2016, 48, 1–55. [Google Scholar] [CrossRef]
- Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv 2018, arXiv:1810.04805. [Google Scholar]
- Mikolov, T.; Sutskever, I.; Chen, K.; Corrado, G.S.; Dean, J. Distributed representations of words and phrases and their compositionality. In Proceedings of the 26th International Conference on Neural Information Processing Systems, Lake Tahoe, NV, USA, 5–10 December 2013; Volume 26. [Google Scholar]
- Dai, X.; Gao, Z. From model, signal to knowledge: A data-driven perspective of fault detection and diagnosis. IEEE Trans. Ind. Inform. 2013, 9, 2226–2238. [Google Scholar] [CrossRef]
- Eslami, M.; Ghavami, B.; Raji, M.; Mahani, A. A survey on fault injection methods of digital integrated circuits. Integration 2020, 71, 154–163. [Google Scholar] [CrossRef]
- Schuette, H.; Waeltermann, P. Hardware-in-the-loop testing of vehicle dynamics controllers—A technical survey. SAE Trans. 2005, 114, 593–609. [Google Scholar]
- Nidhra, S.; Dondeti, J. Black box and white box testing techniques-a literature review. Int. J. Embed. Syst. Appl. (IJESA) 2012, 2, 29–50. [Google Scholar] [CrossRef]
- Barbosa, R.; Karlsson, J.; Madeira, H.; Vieira, M. Fault injection. In Resilience Assessment and Evaluation of Computing Systems; Springer: Berlin/Heidelberg, Germany, 2012; pp. 263–281. [Google Scholar]
- Pintard, L.; Leeman, M.; Ymlahi-Ouazzani, A.; Fabre, J.C.; Kanoun, K.; Roy, M. Using fault injection to verify an autosar application according to the ISO 26262. In SAE 2015 World Congress & Exhibition; SAE International: Warrendale, PA, USA, 2015. [Google Scholar]
- Juez, G.; Amparan, E.; Lattarulo, R.; Ruíz, A.; Pérez, J.; Espinoza, H. Early safety assessment of automotive systems using sabotage simulation-based fault injection framework. In Computer Safety, Reliability, and Security, Proceedings of the 36th International Conference, SAFECOMP 2017, Trento, Italy, 13–15 September 2017; Proceedings 36; Springer: Berlin/Heidelberg, Germany, 2017; pp. 255–269. [Google Scholar]
- International Organization for Standardization. Road Vehicles—Functional Safety—Part 8: Supporting Processes, Baseline 17. 2011. Available online: https://www.iso.org/obp/ui/#iso:std:iso:26262:-8:ed-1:v1:en (accessed on 1 May 2024).
- Abboush, M.; Bamal, D.; Knieke, C.; Rausch, A. Intelligent fault detection and classification based on hybrid deep learning methods for hardware-in-the-loop test of automotive software systems. Sensors 2022, 22, 4066. [Google Scholar] [CrossRef]
- Mo, Y.; Sinopoli, B. False data injection attacks in control systems. In Proceedings of the 1st Workshop on Secure Control Systems, Stockholm, Sweden, 12 April 2010; Volume 1. [Google Scholar]
- Liang, G.; Zhao, J.; Luo, F.; Weller, S.R.; Dong, Z.Y. A review of false data injection attacks against modern power systems. IEEE Trans. Smart Grid 2016, 8, 1630–1638. [Google Scholar] [CrossRef]
- Lanzaro, A.; Natella, R.; Winter, S.; Cotroneo, D.; Suri, N. An empirical study of injected versus actual interface errors. In Proceedings of the 2014 International Symposium on Software Testing and Analysis, San Jose, CA, USA, 21–25 July 2014; pp. 397–408. [Google Scholar]
- Moraes, R.; Barbosa, R.; Durães, J.; Mendes, N.; Martins, E.; Madeira, H. Injection of faults at component interfaces and inside the component code: Are they equivalent? In Proceedings of the 2006 Sixth European Dependable Computing Conference, Coimbra, Portugal, 18–20 October 2006; pp. 53–64. [Google Scholar]
- Ray, D.; Ligatti, J. Defining code-injection attacks. Acm Sigplan Not. 2012, 47, 179–190. [Google Scholar] [CrossRef]
- Mitropoulos, D.; Spinellis, D. Fatal injection: A survey of modern code injection attack countermeasures. PeerJ Comput. Sci. 2017, 3, e136. [Google Scholar] [CrossRef]
- Barton, J.H.; Czeck, E.W.; Segall, Z.Z.; Siewiorek, D.P. Fault injection experiments using FIAT. IEEE Trans. Comput. 1990, 39, 575–582. [Google Scholar] [CrossRef]
- Han, S.; Shin, K.G.; Rosenberg, H.A. Doctor: An integrated software fault injection environment for distributed real-time systems. In Proceedings of the 1995 IEEE International Computer Performance and Dependability Symposium, Erlangen, Germany, 24–26 April 1995; pp. 204–213. [Google Scholar]
- Tsai, T.K.; Hsueh, M.C.; Zhao, H.; Kalbarczyk, Z.; Iyer, R.K. Stress-based and path-based fault injection. IEEE Trans. Comput. 1999, 48, 1183–1201. [Google Scholar] [CrossRef]
- Pattabiraman, K.; Nakka, N.M.; Kalbarczyk, Z.T.; Iyer, R.K. Symplfied: Symbolic program-level fault injection and error detection framework. IEEE Trans. Comput. 2012, 62, 2292–2307. [Google Scholar] [CrossRef]
- Kanawati, G.A.; Kanawati, N.A.; Abraham, J.A. FERRARI: A flexible software-based fault and error injection system. IEEE Trans. Comput. 1995, 44, 248–260. [Google Scholar] [CrossRef]
- Carreira, J.; Madeira, H.; Silva, J.G. Xception: A technique for the experimental evaluation of dependability in modern computers. IEEE Trans. Softw. Eng. 1998, 24, 125–136. [Google Scholar] [CrossRef]
- Park, J.; Choi, B. ASFIT: AUTOSAR-based software fault injection test for vehicles. Electronics 2020, 9, 850. [Google Scholar] [CrossRef]
- Ross, H.L.; Ross, H.L. Why Functional Safety in Road Vehicles? Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
- Sini, J.; Violante, M.; Tronci, F. A Novel ISO 26262-Compliant Test Bench to Assess the Diagnostic Coverage of Software Hardening Techniques against Digital Components Random Hardware Failures. Electronics 2022, 11, 901. [Google Scholar] [CrossRef]
- Hommes, Q.V.E. Review and Assessment of the ISO 26262 Draft Road Vehicle-Functional Safety; Technical Report, SAE Technical Paper; SAE: Warrendale, PA, USA, 2012. [Google Scholar]
- Ito, M.; Kishida, K. An approach to manage the concept phase of ISO 26262. J. Softw. Evol. Process 2014, 26, 829–836. [Google Scholar] [CrossRef]
- Gupta, V. A survey of natural language processing techniques. Int. J. Comput. Sci. Eng. Technol. 2014, 5, 14–16. [Google Scholar]
- Nadkarni, P.M.; Ohno–Machado, L.; Chapman, W.W. Natural language processing: An introduction. J. Am. Med. Inform. Assoc. 2011, 18, 544–551. [Google Scholar] [CrossRef] [PubMed]
- Maulud, D.H.; Ameen, S.Y.; Omar, N.; Kak, S.F.; Rashid, Z.N.; Yasin, H.M.; Ibrahim, I.M.; Salih, A.A.; Salim, N.O.; Ahmed, D.M. Review on natural language processing based on different techniques. Asian J. Res. Comput. Sci. 2021, 10, 1–17. [Google Scholar] [CrossRef]
- Zhu, P.; Cheng, D.; Yang, F.; Luo, Y.; Huang, D.; Qian, W.; Zhou, A. Improving Chinese Named Entity Recognition by Large-Scale Syntactic Dependency Graph. IEEE/ACM Trans. Audio Speech Lang. Process. 2022, 30, 979–991. [Google Scholar] [CrossRef]
- Jettakul, A.; Thamjarat, C.; Liaowongphuthorn, K.; Udomcharoenchaikit, C.; Vateekul, P.; Boonkwan, P. A Comparative Study on Various Deep Learning Techniques for Thai NLP Lexical and Syntactic Tasks on Noisy Data. In Proceedings of the 2018 15th International Joint Conference on Computer Science and Software Engineering (JCSSE), Nakhonpathom, Thailand, 11–13 July 2018; pp. 1–6. [Google Scholar] [CrossRef]
- Iosifova, O.; Iosifov, I.; Rolik, O.; Sokolov, V. Techniques comparison for natural language processing. MoMLeT&DS 2020, 2631, 57–67. [Google Scholar]
- Mohammed, A.H.; Ali, A.H. Survey of bert (bidirectional encoder representation transformer) types. J. Phys. Conf. Ser. 2021, 1963, 012173. [Google Scholar] [CrossRef]
- Acheampong, F.A.; Nunoo-Mensah, H.; Chen, W. Transformer models for text-based emotion detection: A review of BERT-based approaches. Artif. Intell. Rev. 2021, 54, 5789–5829. [Google Scholar] [CrossRef]
- Ganesh, P.; Chen, Y.; Lou, X.; Khan, M.A.; Yang, Y.; Sajjad, H.; Nakov, P.; Chen, D.; Winslett, M. Compressing large-scale transformer-based models: A case study on bert. Trans. Assoc. Comput. Linguist. 2021, 9, 1061–1080. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
- Zhang, X.; Song, X.; Feng, A.; Gao, Z. Multi-self-attention for aspect category detection and biomedical multilabel text classification with bert. Math. Probl. Eng. 2021, 2021, 6658520. [Google Scholar] [CrossRef]
- Liu, Z.; Lin, W.; Shi, Y.; Zhao, J. A robustly optimized BERT pre-training approach with post-training. In Proceedings of the China National Conference on Chinese Computational Linguistics, Hohhot, China, 13–15 August 2021; pp. 471–484. [Google Scholar]
- Sung, C.; Dhamecha, T.; Saha, S.; Ma, T.; Reddy, V.; Arora, R. Pre-training BERT on Domain Resources for Short Answer Grading. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China, 3–7 November 2019; pp. 6071–6075. [Google Scholar]
- Sun, Y.; Zheng, Y.; Hao, C.; Qiu, H. NSP-BERT: A Prompt-based Few-Shot Learner Through an Original Pre-training Task–Next Sentence Prediction. arXiv 2021, arXiv:2109.03564. [Google Scholar]
- Sonmezoz, K.; Amasyali, M.F. Same sentence prediction: A new pre-training task for bert. In Proceedings of the 2021 Innovations in Intelligent Systems and Applications Conference (ASYU), Elazig, Turkey, 6–8 October 2021; pp. 1–6. [Google Scholar]
- Taylor, W.L. “Cloze procedure”: A new tool for measuring readability. J. Q. 1953, 30, 415–433. [Google Scholar] [CrossRef]
- Salazar, J.; Liang, D.; Nguyen, T.Q.; Kirchhoff, K. Masked language model scoring. arXiv 2019, arXiv:1910.14659. [Google Scholar]
- Wu, X.; Zhang, T.; Zang, L.; Han, J.; Hu, S. “Mask and Infill”: Applying Masked Language Model to Sentiment Transfer. arXiv 2019, arXiv:1908.08039. [Google Scholar]
- Zhou, Y.; Srikumar, V. A closer look at how fine-tuning changes BERT. arXiv 2021, arXiv:2106.14282. [Google Scholar]
- Zhang, T.; Wu, F.; Katiyar, A.; Weinberger, K.Q.; Artzi, Y. Revisiting few-sample BERT fine-tuning. arXiv 2020, arXiv:2006.05987. [Google Scholar]
- Bouscayrol, A. Different types of hardware-in-the-loop simulation for electric drives. In Proceedings of the 2008 IEEE International Symposium on Industrial Electronics, Cambridge, UK, 30 June–2 July 2008; pp. 2146–2151. [Google Scholar]
- Isermann, R.; Schaffnit, J.; Sinsel, S. Hardware-in-the-loop simulation for the design and testing of engine-control systems. Control Eng. Pract. 1999, 7, 643–653. [Google Scholar] [CrossRef]
- Mihalič, F.; Truntič, M.; Hren, A. Hardware-in-the-loop simulations: A historical overview of engineering challenges. Electronics 2022, 11, 2462. [Google Scholar] [CrossRef]
- Lu, B.; Wu, X.; Figueroa, H.; Monti, A. A low-cost real-time hardware-in-the-loop testing approach of power electronics controls. IEEE Trans. Ind. Electron. 2007, 54, 919–931. [Google Scholar] [CrossRef]
- Gregoire, L.A.; Al-Haddad, K.; Nanjundaiah, G. Hardware-in-the-Loop (HIL) to reduce the development cost of power electronic converters. In Proceedings of the India International Conference on Power Electronics 2010 (IICPE2010), New Delhi, India, 28–30 January 2011; pp. 1–6. [Google Scholar]
- Vedder, B.; Arts, T.; Vinter, J.; Jonsson, M. Combining fault-injection with property-based testing. In Proceedings of the International Workshop on Engineering Simulations for Cyber-Physical Systems, Dresden, Germany, 28 March 2014; pp. 1–8. [Google Scholar]
- Svenningsson, R.; Vinter, J.; Eriksson, H.; Törngren, M. MODIFI: A MODel-implemented fault injection tool. In Proceedings of the 29th International Conference, SAFECOMP 2010, Vienna, Austria, 14–17 September 2010; pp. 210–222. [Google Scholar]
- Reiter, S.; Zeller, M.; Höfig, K.; Viehl, A.; Bringmann, O.; Rosenstiel, W. Verification of component fault trees using error effect simulations. In Proceedings of the 5th International Symposium, IMBSA 2017, Trento, Italy, 11–13 September 2017; pp. 212–226. [Google Scholar]
- Khosrowjerdi, H.; Meinke, K.; Rasmusson, A. Virtualized-fault injection testing: A machine learning approach. In Proceedings of the 2018 IEEE 11th International Conference on Software Testing, Verification and Validation (ICST), Västerås, Sweden, 9–13 April 2018; pp. 297–308. [Google Scholar]
- Saraoğlu, M.; Morozov, A.; Janschek, K. Safety assessment of autonomous and connected vehicles by a model-based traffic simulation framework. In Proceedings of the 19. Internationales Stuttgarter Symposium: Automobil-und Motorentechnik, Stuttgart, Germany, 19–20 March 2019; pp. 988–1002. [Google Scholar]
- Abboush, M.; Bamal, D.; Knieke, C.; Rausch, A. Hardware-in-the-Loop-Based Real-Time Fault Injection Framework for Dynamic Behavior Analysis of Automotive Software Systems. Sensors 2022, 22, 1360. [Google Scholar] [CrossRef]
- Abboush, M.; Knieke, C.; Rausch, A. Representative Real-Time Dataset Generation Based on Automated Fault Injection and HIL Simulation for ML-Assisted Validation of Automotive Software Systems. Electronics 2024, 13, 437. [Google Scholar] [CrossRef]
- Sedaghatbaf, A.; Moradi, M.; Almasizadeh, J.; Sangchoolie, B.; Van Acker, B.; Denil, J. DELFASE: A Deep Learning Method for Fault Space Exploration. In Proceedings of the 2022 18th European Dependable Computing Conference (EDCC), Zaragoza, Spain, 12–15 September 2022; pp. 57–64. [Google Scholar]
- Fiorucci, T.; Daveau, J.M.; Di Natale, G.; Roche, P. Automated dysfunctional model extraction for model based safety assessment of digital systems. In Proceedings of the 2021 IEEE 27th International Symposium on On-Line Testing and Robust System Design (IOLTS), Torino, Italy, 28–30 June 2021; pp. 1–6. [Google Scholar]
- Li, Y.; Yang, T. Word embedding for understanding natural language: A survey. In Guide to Big Data Applications; Springer: Berlin/Heidelberg, Germany, 2018; pp. 83–104. [Google Scholar]
- Mullen, L.A.; Benoit, K.; Keyes, O.; Selivanov, D.; Arnold, J. Fast, consistent tokenization of natural language text. J. Open Source Softw. 2018, 3, 655. [Google Scholar] [CrossRef]
- Bhamare, B.R.; Prabhu, J. A Multilabel Classifier for Text Classification and Enhanced BERT System. Rev. D’Intell. Artif. 2021, 35, 167–176. [Google Scholar] [CrossRef]
- Kaliyar, R.K. A multi-layer bidirectional transformer encoder for pre-trained word embedding: A survey of bert. In Proceedings of the 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India, 29–31 January 2020; pp. 336–340. [Google Scholar]
- Ethayarajh, K. How contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT-2 embeddings. arXiv 2019, arXiv:1909.00512. [Google Scholar]
- Gao, Z.; Feng, A.; Song, X.; Wu, X. Target-dependent sentiment classification with BERT. IEEE Access 2019, 7, 154290–154299. [Google Scholar] [CrossRef]
- Tang, T.; Tang, X.; Yuan, T. Fine-tuning BERT for multi-label sentiment analysis in unbalanced code-switching text. IEEE Access 2020, 8, 193248–193256. [Google Scholar] [CrossRef]
- Chen, Q.; Du, J.; Allot, A.; Lu, Z. LitMC-BERT: Transformer-based multi-label classification of biomedical literature with an application on COVID-19 literature curation. IEEE/ACM Trans. Comput. Biol. Bioinform. 2022, 19, 2584–2595. [Google Scholar] [CrossRef] [PubMed]
- Cai, L.; Song, Y.; Liu, T.; Zhang, K. A hybrid BERT model that incorporates label semantics via adjustive attention for multi-label text classification. IEEE Access 2020, 8, 152183–152192. [Google Scholar] [CrossRef]
- Goldberg, Y.; Levy, O. word2vec Explained: Deriving Mikolov et al.’s negative-sampling word-embedding method. arXiv 2014, arXiv:1402.3722. [Google Scholar]
- Preethi Krishna, P.; Sharada, A. Word embeddings-skip gram model. In ICICCT 2019–System Reliability, Quality Control, Safety, Maintenance and Management: Applications to Electrical, Electronics and Computer Science and Engineering; Springer: Berlin/Heidelberg, Germany, 2020; pp. 133–139. [Google Scholar]
- Garai, T.; Dalapati, S.; Smarandache, F. Softmax function based neutrosophic aggregation operators and application in multi-attribute decision making problem. Neutrosophic Sets Syst. 2023, 56, 16. [Google Scholar]
- Rong, X. word2vec parameter learning explained. arXiv 2014, arXiv:1411.2738. [Google Scholar]
- Rahutomo, F.; Kitasuka, T.; Aritsugi, M. Semantic cosine similarity. In Proceedings of the 7th International Student Conference on Advanced Science and Technology ICAST, Seoul, Republic of Korea, 29–30 October 2012; Volume 4, p. 1. [Google Scholar]
- Xia, P.; Zhang, L.; Li, F. Learning similarity with cosine similarity ensemble. Inf. Sci. 2015, 307, 39–52. [Google Scholar] [CrossRef]
- dSPACE Software Tools—dSPACE. Available online: https://www.dspace.com/en/pub/home/products/products.cfm (accessed on 22 February 2024).
- Gheraibia, Y.; Kabir, S.; Djafri, K.; Krimou, H. An overview of the approaches for automotive safety integrity levels allocation. J. Fail. Anal. Prev. 2018, 18, 707–720. [Google Scholar] [CrossRef]
- Automotive Simulation Models—dSPACE. Available online: https://www.dspace.com/en/pub/home/products/sw/automotive_simulation_models.cfm#176_26302_2 (accessed on 22 February 2024).
Phase | Parameter | Value |
---|---|---|
Text Preparation | Model Name | bert-base-uncased |
Maximum input length | 512 | |
Special Tokens | [CLS], [SEP], [PAD] | |
Model Architechture Setup | Batch Size | 16 |
Learning Rate | 2 × 10−5 | |
Device | CPU or GPU | |
Number of Labels | len(df.columns) − 1 | |
Optimization | Optimizer | AdamW |
Injection Location | Injection Time | Fault Type | Single/Multi Fault |
---|---|---|---|
Steering wheel angle signal | On specific time | List of nine faults | Single fault injection |
Injection Location | Injection Time | Fault Type | Single/Multi Fault |
---|---|---|---|
Steering wheel angle and acceleration pedal signals | Vehicle speed ≥ 70 km/h. | List of nine faults in pairs | Multi-fault injection |
Epoch 01 | Epoch 02 | Epoch 03 | Epoch 04 | Epoch 05 | Epoch 06 | Epoch 07 | Epoch 08 | Epoch 09 | Epoch 10 | |
---|---|---|---|---|---|---|---|---|---|---|
Accuracy | 0.116 | 0.730 | 0.830 | 0.839 | 0.848 | 0.875 | 0.875 | 0.866 | 0.875 | 0.875 |
F1 Score | 0.411 | 0.857 | 0.882 | 0.901 | 0.901 | 0.911 | 0.917 | 0.914 | 0.917 | 0.917 |
Loss | 0.406 | 0.222 | 0.179 | 0.149 | 0.141 | 0.151 | 0.141 | 0.145 | 0.146 | 0.147 |
Hamming Loss | 0.156 | 0.0553 | 0.049 | 0.040 | 0.040 | 0.037 | 0.034 | 0.035 | 0.034 | 0.034 |
Step | Explanation | Manual Approach | Automatic Approach |
---|---|---|---|
Supervisor | Supervising the experiment | Expert human | System |
FSR analysis | Reading, understanding, and deriving fault test case attributes (location(s), injection time, fault type) | 4 min | 36 s |
Experiment setup | start relevant dSPACE tools 1 then upload vehicle and road scenario | 3 min | 90 s |
Start the Experiment | Start the maneuver and choose signals for recording | 2 min | 35 s |
Execution of fault Test Case attributes | Location(s) 2, time 3, fault type | 30 s | |
Stop the Experiment | Stop the maneuver and signal recording | 5 s | |
Reporting | System pass/fail and evaluations | 10 min | 2 s |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Amyan, A.; Abboush, M.; Knieke, C.; Rausch, A. Automating Fault Test Cases Generation and Execution for Automotive Safety Validation via NLP and HIL Simulation. Sensors 2024, 24, 3145. https://doi.org/10.3390/s24103145
Amyan A, Abboush M, Knieke C, Rausch A. Automating Fault Test Cases Generation and Execution for Automotive Safety Validation via NLP and HIL Simulation. Sensors. 2024; 24(10):3145. https://doi.org/10.3390/s24103145
Chicago/Turabian StyleAmyan, Ayman, Mohammad Abboush, Christoph Knieke, and Andreas Rausch. 2024. "Automating Fault Test Cases Generation and Execution for Automotive Safety Validation via NLP and HIL Simulation" Sensors 24, no. 10: 3145. https://doi.org/10.3390/s24103145
APA StyleAmyan, A., Abboush, M., Knieke, C., & Rausch, A. (2024). Automating Fault Test Cases Generation and Execution for Automotive Safety Validation via NLP and HIL Simulation. Sensors, 24(10), 3145. https://doi.org/10.3390/s24103145