I'm making an app that requires me to detect walking. I'm able to detect it. I simply use deltaZ & deltaY values for accelerometer and some other parameters.
However a user is able to fake walking easily by simple moving it up and down and forward and backward.
So to prevent that, I guess if I can detect consecutive backward and forward motion, I can find that it was a fake step.
I tried reading the raw accelerometer values... However it didnt help much. Anyone with any ideas on this?
PS: I have tried the pedometer apps and the github code. They detect steps well. But I can easily fake them by shaking the phone