I\'m trying to implement heart beat recording functionality in an app i\'m developing.
The preferred method of doing this is by using the iPhone\'s camera with the light
I would :
1) Detect the period from peak to peak... If the period is consistent within a certain period threshold.. Then flag the HB as valid.
2) I would implement an outliar detection algorithm... Any beat that goes beyond a certain normalized threshold.. Would be considered an outlier an thus i would use the last detected beat instead to compute my BPM.
Another more complex approach would be to use a Kalman filter or something of sorts to be able to predict the bpm and get more accurate readings.. It is only after a few skips that the app will sense that the readings are not valid and stop the reading.