Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HRV from HR #17

Open
rua333 opened this issue Mar 15, 2021 · 3 comments
Open

HRV from HR #17

rua333 opened this issue Mar 15, 2021 · 3 comments

Comments

@rua333
Copy link

rua333 commented Mar 15, 2021

Thanks for sharing your repo! I am running your codes and want to know how can I get HRV(heart rate variability) from HR. I think we need R-R intervals to calculate HRV, but I don't know how to get it. Do you have any ideas?

@stephenparvaresh
Copy link

stephenparvaresh commented Mar 15, 2021

The output of the function is blood volume pulse (BVP), which is the measurement of when your heart pumps blood. The data array titled pulse.npy contains the BVP measurements. time.npy contains the time measurements in UTF seconds. Join those two dataframes, and you can find the peaks of the BVP wave, then calculate the time between peaks to get R-R values. Once you have the time difference between successive beats (peaks), you can the Root Mean Square of the Successive Differences (RMSSD) to determine HRV.

See paper below for more resources pertaining to HRV.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5624990/

@rua333
Copy link
Author

rua333 commented Mar 15, 2021

Thanks for your quick response!

@rua333
Copy link
Author

rua333 commented Mar 18, 2021

Hi.
It takes 230sec to process a 30-second (320*240) video to run code.
It does not seem to take time in the face detection part because GPU is used.
Is the signal processing part time consuming?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants