Application of the computational theory of perceptions to human gait pattern recognition