Learning EFSM Models with Registers in Guards
Germán Vega, Roland Groz, Catherine Oriat, Michael Foster, Neil Walkinshaw, Adenilso Simão
TL;DR
The paper tackles learning $EFSM$ models that include internal registers in guards from a single, non-resettable trace. It extends the $hW$-inference backbone to handle parameterized inputs/outputs and guards driven by registers, using a structured sampling regime with sets $I_1 \\subset I_2 \\subset I_s$ and register partitions $R_w \\subseteq R_g$, guided by a homing sequence $h$ and a characterization set $W$. The method identifies the control structure as an NFSM, collects register-valued samples, and generalises to a full $EFSM$ via genetic programming, with counterexamples from a MAT-like framework refining the model. Experiments on a vending-machine scenario and a more complex guard-walking example illustrate feasibility and highlight practical challenges such as transfer optimization and scalability in the presence of guarded transitions and register updates.
Abstract
This paper presents an active inference method for Extended Finite State Machines, where inputs and outputs are parametrized, and transitions can be conditioned by guards involving input parameters and internal variables called registers. The method applies to (software) systems that cannot be reset, so it learns an EFSM model of the system on a single trace.
