Finite Class Bayesian Inference System for Circle and Linear Walking Gait Event Recognition Using Inertial