Calculating BPM - from PPG signal

27 views (last 30 days)
willing2learn
willing2learn on 15 Mar 2014
Commented: Supriya V on 19 Mar 2021
Hi everyone,
I've been able to create a script that reads heart rate - displaying the value in real time on a graph.
Now i need to calculate the number of peaks in the graph and work out the BPM
Any simple script solution?
Any help will be most appreciated! Thanks!
  6 Comments
sarang bagade
sarang bagade on 6 May 2014
please tell me how you displayed the value in real time on a graph
Supriya V
Supriya V on 19 Mar 2021
Sir/Madam, could you share source code for ppg extraction from face video that is real time and along with I want to display a graph for that.

Sign in to comment.

Accepted Answer

Mischa Kim
Mischa Kim on 15 Mar 2014
Edited: Mischa Kim on 15 Mar 2014
Check out the findpeaks command. Alternatively (if you do not have access to the Signal Processing Toolbox) you could do a Fourier Transform and look at the dominant frequency components.
  13 Comments
willing2learn
willing2learn on 21 Mar 2014
Hi Mischa thanks a lot for your help so far.
I have increased the sampling period to 60 seconds, ran several tests and the code is 100% accurate to within 10 counts (when the pulses are manually counted).
Most times it is accurate to with 5 beats.
Any idea how to fine tune it a bit more?
Thanks
Supriya V
Supriya V on 19 Mar 2021
Sir/Madam, could you share source code for ppg extraction from face video that is real time and along with I want to display a graph for that.

Sign in to comment.

More Answers (1)

T. Thinh Nguyen
T. Thinh Nguyen on 5 Oct 2015
Check out the code I write in here.
https://uk.mathworks.com/matlabcentral/fileexchange/53364-heart-rate--spo2-using-ppg
The heart rate estimation is done both by FFT or Peak detection.
  1 Comment
Supriya V
Supriya V on 19 Mar 2021
Sir/Madam, could you share source code for ppg extraction from face video that is real time and along with I want to display a graph for that.

Sign in to comment.

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!