Rahul Vyas
Rahul Vyas

Reputation: 28720

detecting heartbeat peakpower using iphone sdk?

i want to detect heart rate using iphone sdk does someone knows any method for calculating heartbeat rate?

Upvotes: 1

Views: 1901

Answers (2)

Charles Stewart
Charles Stewart

Reputation: 11837

Fast Fourier Transform is a class of algorithms that can quickly turn samples into an analysis that tells you how prominently ceratin frequencies occur in that sample. For more check out:

  1. Wikipedia: FFT
  2. Literate program example: Cooley-Tukey FFT

This is relevant to your problem because: (1) heart rate is itself a frequency, and (2) most of the sound that comes through the body that you can measure will be within a certain frequency range. Dropping frequencies outside this range means dropping all or mostly noise.

Good luck!

Upvotes: 2

Mike Weller
Mike Weller

Reputation: 45598

Well I've seen various implementations. Some of them use the accelerometer to detect minute movements in your arm/hand when you hold the phone, some of them can use the microphone, you could also do a manual 'tap' interface where you tap the screen while checking your own pulse.

Upvotes: 1

Related Questions