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

Neurokit2 ecg_delineate detects wrong R onsets and offsets #1042

Open
sanketahegde opened this issue Oct 23, 2024 · 2 comments
Open

Neurokit2 ecg_delineate detects wrong R onsets and offsets #1042

sanketahegde opened this issue Oct 23, 2024 · 2 comments

Comments

@sanketahegde
Copy link

sanketahegde commented Oct 23, 2024

Hi,

I am working some MIMIC ECGs which are 10 second each and have a sampling rate of 500Hz with total 5000 data points for every lead. I applied ecg_clean followed by ecg_peaks and used the required results in ecg_delineate. Everything works decently except for R_Onsets and R_Offsets. The R_Onset is detected very near to the P peak and R_Offset is detected sometimes correct but most of the time detected before the S peaks. I am mainly trying to calculate ecg-related intervals and for PR interval I need the correct R_Onsets.

Find some examples below:

image
image

I also compared the PR interval calculated with the help of Neurokit2 against the original values from the ECG metadata and I get,
PR_interval_orig = 130 msec
PR_interval_neurokit = 52 msec

Is there a way I could overcome this problem with already available Neurokit functions or appreciate some suggestions for a workaround.

Thank you!

Copy link

welcome bot commented Oct 23, 2024

Hi 👋 Thanks for reaching out and opening your first issue here! We'll try to come back to you as soon as possible. ❤️ kenobi

@YmirKhang
Copy link

I am experiencing the same issue with low-resolution single-lead ECG data. I am willing to also help out if we can identify the problem.

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