Orientation Invariance Methods for Inertial Gait