Replies: 1 comment 5 replies
-
Could you re-do this plot but only in this chunk (so we can compare a few "good" peaks with the noisy segment? What is are the current frequencies of the bandpass filtering? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Neurokit2 community,
I'm currently using the Neurokit2 library for Heart Rate Variability (HRV) analysis on long recordings (5 to 15 minutes), and I'm finding it to be an excellent resource. However, I've encountered a challenge I'm hoping someone here can help me with.
The ECG data I'm working with occasionally has significant movement artifacts that seem to be causing some issues in peak detection and correction. I've noticed that the R-peaks are often misplaced during these artifact periods, which subsequently impacts the HRV analysis.
I've included the code I'm currently using below:
I've also attached some plots that illustrate the problem:
As you can see from these plots, the R-peaks are not accurately detected during periods with significant movement artifacts.
I've tried various approaches to handle this, including applying a bandpass filter, smoothing the signal, and adjusting the threshold for peak detection, but none of these methods seem to completely solve the issue.
Does anyone have suggestions or recommendations on how I might better handle these artifacts to improve R-peak detection and correction? Any input or guidance would be greatly appreciated.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions