10

I'm implementing an accelerometer-based pedometer, and I was wondering if there was any known algorithms to handle that.

Peter O.
  • 32,158
  • 14
  • 82
  • 96
Bassel Alkhateeb
  • 1,584
  • 5
  • 19
  • 35

3 Answers3

4

You have probably found this:

Enhancing the Performance of Pedometers Using a Single Accelerometer

Anyhow, I am also interested in finding a good algorithm, I am curios what other answers you will get. :)

Ali
  • 56,466
  • 29
  • 168
  • 265
0

There's an interesting paper (with source code) here that may be of help: http://www.analog.com/static/imported-files/application_notes/47076299220991AN_900.pdf.

The charts are interesting. If I were to do this myself I would probably sample the data at a fairly high frequency, convert to frequency domain with a FFT, apply a digital band-pass filter to cut off all frequencies outside the expected minimum/maximum walking speeds (including any DC offset), do a reverse-FFT to reconstruct the now-filtered signal and then run the resulting data through an edge-detector with a Hysteresis function. This is all pure speculation of course but looking at those charts I think it would work, it would be relatively fast to code up and well within the processing power of a mobile phone.

Mark Feldman
  • 15,731
  • 3
  • 31
  • 58
  • 1
    There's another paper here with an very simple algorithm explained in detail: http://www.enggjournals.com/ijcse/doc/IJCSE12-04-05-266.pdf – Mark Feldman Dec 06 '13 at 02:53
  • Also there's over 2GB of raw data at this site of accelerometer data for people engaged in various activities: http://architecture.mit.edu/house_n/data/Accelerometer/BaoIntilleData04.htm – Mark Feldman Dec 06 '13 at 02:57
  • @MarkFelman - The data isn't there anymore. Do you know where it might be found? – Omnifarious Jan 25 '17 at 20:25
0

There is an app called Sensor data that you can uses to gather experimental data so you can then analyze it and try to find an algorithm.

Its going to be quite tricky to find a very good algorithm especially for the iPhone since its accelerometer is quite noisy

Mike Khan
  • 595
  • 1
  • 7
  • 18