CPC G01C 22/006 (2013.01) [G01C 21/165 (2013.01); G01C 21/18 (2013.01); G01C 21/185 (2020.08); G01C 21/188 (2020.08); G01C 21/206 (2013.01); G01P 15/00 (2013.01); G06F 1/163 (2013.01); G01C 21/1654 (2020.08); G01C 21/1656 (2020.08); G01F 15/00 (2013.01)] | 20 Claims |
1. A device comprising:
a processor; and
a nonvolatile memory coupled to the processor and storing instructions that, when executed, cause the processor to:
receive a set of accelerometer sensor data;
determine a set of magnitude values of the set of accelerometer sensor data;
perform an autocorrelation operation on the set of magnitude values to determine an autocorrelation output;
detect a first step and a second step based on the autocorrelation output;
determine whether the first step and the second step represent a stride based on whether a difference between a first step period associated with the first step and a second step period associated with the second step is less than a threshold; and
when the first step and the second step represent the stride, determine a number of steps taken based on the stride.
|