Algorithm 1: Gait cycle detection algorithm. |
Input: Gait acceleration x-axis signal Output: Start and end points of each gait cycle
-
1
Use Equation (1) to obtain all the minimal values of the input signal
-
2
Use Equation (2) to initial screening to obtain after remove the pseudo-minimal values
-
3
Use Equation (3) to obtain the estimated step size of the gait signal L.
-
4
-
5
while do
-
6
if then
-
7
if then
-
8
remove(p)
-
9
else
-
10
remove(
-
11
end
-
12
end
-
13
else if then
-
14
if then
-
15
remove(p)
-
16
else
-
17
remove()
-
18
end
-
19
end
-
20
-
21
end
|