Algorithm 2: Step count algorithm. The step detection is based on (a) the general rise of the body, taking the hip center as a reference and (b) the sequential flexion and extension of the knees. The ankle angle history is recorded throughout the duration of the exercise for medical evaluation purposes, but is not used to detect the step climb due to its inaccuracy. |