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

Cubic interpolation for frequency domain #66

Open
Eichhof opened this issue May 10, 2018 · 3 comments
Open

Cubic interpolation for frequency domain #66

Eichhof opened this issue May 10, 2018 · 3 comments

Comments

@Eichhof
Copy link

Eichhof commented May 10, 2018

Hello

In bio_ecg.ecg_hrv you interpolate the RR intervals to convert to continuous RR interval before extracting the frequency domain features. You are doing this using a third order (i.e. cubic) spline. I assume that the way you calculate the frequency features needs a continuous signal. Would it not also be possible to compute frequency features without interpolation?

However, why are you using this cubic interpolation instead of a linear interpolation? I think with a cubic interpolation the signal can be overestimated or underestimated, especially around the RR values.

@DominiqueMakowski
Copy link
Member

@Eichhof glad to see you're digging into the code :)

Cubic interpolation is the method described in the papers I read. I believe this has to do with the underlying physiological dynamics (the heart rate would change "smoothly" rather than linearly with abrupt changes). However, you might want to ask an HRV expert to be sure.

@Eichhof
Copy link
Author

Eichhof commented May 11, 2018

Thank you for your answer. Do you have some of the papers at hand which you mentioned?

@DominiqueMakowski
Copy link
Member

@Eichhof maybe in one of those:

  • Heart rate variability. (1996). Standards of measurement, physiological interpretation, and clinical use. Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Eur Heart J, 17, 354-381.
  • Smith, A. L., Owen, H., & Reynolds, K. J. (2013). Heart rate variability indices for very short-term (30 beat) analysis. Part 2: validation. Journal of clinical monitoring and computing, 27(5), 577-585.
  • Lippman, N. E. A. L., Stein, K. M., & Lerman, B. B. (1994). Comparison of methods for removal of ectopy in measurement of heart rate variability. American Journal of Physiology-Heart and Circulatory Physiology, 267(1), H411-H418.
  • Peltola, M. A. (2012). Role of editing of R–R intervals in the analysis of heart rate variability. Frontiers in physiology, 3.

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