I have looked at the code and it's basically a threshold on the difference between two samples. I doubt this is generalisable. In fact, the authors of the paper had to manually calibrate the threshold on each phone and walking style.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello people!
I've found a surprising way top count steps implemented in JS: https://github.com/alexgibson/shake.js/
Some people did a validation study here: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6219786/
I have looked at the code and it's basically a threshold on the difference between two samples. I doubt this is generalisable. In fact, the authors of the paper had to manually calibrate the threshold on each phone and walking style.
I'll leave it here as a curiosity.