Timed Automata for Behavioral Pattern Recognition