Last active
December 5, 2023 13:45
-
-
Save raphaelvallat/55624e2eb93064ae57098dd96f259611 to your computer and use it in GitHub Desktop.
Extract respiration signal and respiratory rate from ECG using R-R interval.
Hi @raphaelvallat,
Thanks for the clarification. Instead of RR interval from ECG signal, I can compute Inter-beat-interval from PPG signal and still use your algorithm to compute respiration rate.
Thanks,
Ravi
Yes that should work too. Please note that this is a very simple algorithm and I'm sure there are better alternative out there.
Hi Raphael,
Thank you very much for sharing. I'm a bit confused about some of the parameters in the code, for example is sf short for sampling frequency and does start for 155 means starting at 155 ms?
Thanks
Arthur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @RaviDurbha,
A 4 Hz upsampling frequency is very common in HRV analysis, hence my choice. People have also used 2 Hz.
sf_up
is not affected bysf
orsf_orig
. Actually you can discard the downsampling from 360 Hz to 100 Hz: