iOS Heart rate detection Algorithm

前端 未结 7 1755
执念已碎
执念已碎 2021-01-29 17:57

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

7条回答
  •  甜味超标
    2021-01-29 18:31

    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.

提交回复
热议问题