Yohan Attal
Yohan Attal

Reputation: 37

How can I detect if the user is walking/running with his device?

simple question hard answer:

I'd like to be able to read if the device (and the user) is running/walking holding his device. I know that the iPhone accelerometer calculates acceleration so if the user runs at a constant speed, there will be no signal spotted.

Any help on that ?

Upvotes: 0

Views: 2832

Answers (2)

Ali
Ali

Reputation: 58461

Try dynamic time warping (DTW).

First, you build a small "database" of motions that you would like to recognize.

Then, in your application you compare the current sensor readings with DTW to the ones in the database and pick the most similar one.

Upvotes: 1

TommyG
TommyG

Reputation: 4155

I actually used to work on that...what you can do is to detect with the accelerometer and gyro the frequency of the movement. If you plot a chart, you will see a periodic behavior when you walk or run. Do some "field" testing and you could see how those frequency change between walking and running. It's pretty cool.

Upvotes: 9

Related Questions