Gesture modeling and recognition using finite state machines | Synapse