You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be the single thread for discussing improvements for qrs detectors. I will probably only be working on the xqrs class in the near future.
Current thoughts:
The filter used to accentuate the qrs (we'll call this the moving wave integration filter) is currently an upright ricker with a fixed width: wavelet_filter = signal.ricker(self.qrs_width, 4). There are many things we could improve upon, such as:
Inverting it if we figure out the r wave is inverted
Designing a set of template beats for different ecg channels.
XQRS works pretty well and has good specificity, PPV and FPR for MIT-BIH Arrhythmia Database, The QT Database and others. But sometimes for real signals there are errors for R-peak localization. This error equals +/- one sample around of peak sample.
Adding some marks for erroneous/noisy beats (GQPOST functionality: changing N annotations into artifact ("|") annotations if they are likely to be erroneous)
Adding R-peak voltages in returning value of xqrs_detect()
Designing a set of template for different type of the beats. Like in CONSTRUE framework (Atrial fibrillation, Bigeminy, Trigeminy, Ventricular flutter/fibrillation, etc.). Link to framework below:
[https://github.com/citiususc/construe]
Adding ECGPUWAVE functionality (P,T wave peak/limit locator). I don't know if XQRS is able to do it
Activity
[-](x)qrs detector improvements thread[/-][+](x)qrs detector improvements[/+][-](x)qrs detector improvements[/-][+]qrs detector improvements[/+]krivenkoz commentedon Jun 23, 2018
If you don't mind, i add several suggestions:
[https://github.com/citiususc/construe]
peiyaoli commentedon Nov 21, 2018
One possible solution is to call the raw C function through Cython. I used this approach in some of our project
artur-deluca commentedon Feb 9, 2021
A bit off-topic but, is there any publication that describes the xqrs algorithm?
Lucas-Mc commentedon Feb 9, 2021
Hey @artur-deluca
You can find a review of some algorithms from this link:
https://physionet.org/content/challenge-2014/1.0.0/
And more technical detail here:
http://ecg.mit.edu/george/publications/qrs-cinc-2003.pdf
However, checking out the source code documentation from these three links will also help:
wfdb-python/wfdb/processing/qrs.py
Lines 13 to 67 in 733f3e4
https://wfdb.readthedocs.io/en/latest/processing.html
https://www.physionet.org/physiotools/wag/gqrs-1.htm
https://www.physionet.org/physiotools/wag/wqrs-1.htm
Hope this helps!
artur-deluca commentedon Feb 9, 2021
Thanks @Lucas-Mc!