[Paper Review] Automata Learning for Automated Test Generation of Real Time Localization Systems
This paper presents a workflow for automated test case generation in real-time localization systems (RTLSs) using automata learning to create interpretable models from black-box system behavior. By discretizing environmental inputs and learning finite-state Mealy machines, the approach enables systematic test generation that maps abstract sequences to physical test scenarios, achieving 100% accuracy on small models with minimal data.
Cyber Physical Systems (CPSs) are often black box systems for which no exact model exists. Automata learning allows to build abstract models of CPSs and is used in several scenarios, i.e. simulation, monitoring, and test case generation. Real time localization systems (RTLSs) are an example of particularly complex and often safety critical CPSs. We present a procedure for automatic test case generation with automata learning and apply this approach in a case study to a localization system.
Motivation & Objective
- To develop a complete workflow for automated test case generation in safety-critical cyber-physical systems (CPS) with no internal model access.
- To address the challenge of testing real-time localization systems (RTLSs) that are proprietary and influenced by complex environmental factors.
- To create interpretable, finite-state models of RTLS behavior through data-driven automata learning.
- To map abstract automaton test cases to actionable physical test scenarios for practical validation.
- To evaluate the effectiveness of feature selection, discretization, and test case generation in a real-world RTLS case study.
Proposed method
- Data acquisition from a real-time localization system under varying environmental conditions.
- Feature selection and data discretization to convert continuous sensor inputs into symbolic inputs for automaton learning.
- Application of passive automata learning to infer a finite-state Mealy machine model from input-output observations.
- Use of state coverage and transition coverage algorithms to generate abstract test case sequences from the learned automaton.
- Mapping of abstract test sequences (e.g., ⟨S, E⟩) to physical test actions (e.g., move one meter south, then east).
- Validation of model accuracy using held-out test samples and evaluation of model size and test case count across different discretization granularities.
Experimental results
Research questions
- RQ1Can automata learning effectively model the input-output behavior of a real-time localization system as a finite-state Mealy machine?
- RQ2How does the choice of feature selection and data discretization impact the accuracy and size of the learned automaton model?
- RQ3To what extent can abstract test cases derived from the automaton model be mapped to meaningful, executable physical test scenarios?
- RQ4How does model complexity and training sample size affect the generalization performance on validation data?
- RQ5Can this workflow be extended to include multiple environmental factors such as light or interference, beyond position and orientation?
Key findings
- A small automaton model with 3 states, 4 inputs (N, E, S, W), and 2 outputs (a, b) was successfully learned from under 100 observations, achieving 100% accuracy on a validation set.
- As input discretization granularity increased (from 4 to 8 sectors), model size and test case count grew significantly, but accuracy dropped to 33% with 8 sectors and 54 test cases.
- The state coverage algorithm produced 6 abstract test sequences (e.g., ⟨N⟩, ⟨S⟩, ⟨S, E⟩), while transition coverage generated 25 sequences, demonstrating scalability with model complexity.
- The method reduced a raw dataset of ~10,000 data points to a manageable sample of fewer than 100 observations, enabling efficient model learning.
- The approach successfully mapped abstract automaton transitions to physical test actions, such as moving one meter in a specified direction.
- The study identified feature selection and discretization as critical, high-impact factors in model quality and test case relevance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.