Utilizing state transitions

Transitions between some motion types are more likely than between others: it's easy to imagine how a user can start walking after being still, but it's much harder to imagine how he could start running immediately after squatting. The popular way of modelling such probabilistic state changes is hidden Markov model (HMM), but that's a long story for some other time.