Abstract
Heart rate variability (HRV) is derived from the R-R interval, which depends on the precise localization of R-peaks within an electrocardiogram (ECG) signal. However, current algorithm assessment methods prioritize the R-peak detection’s sensitivity rather than the precision of pinpointing the exact R-peak positions. As a result, it is of great value to develop an R-peak detection algorithm with high-precision R-peak localization. This paper introduces a novel R-peak localization algorithm that involves modifications to the well-established Pan-Tompkins (PT) algorithm. The algorithm was implemented as follows. First, the raw ECG signal X(i) was band-pass filtered (5–35 Hz) to obtain a preprocessed signal Y(i). Second, Y(i) was squared to enhance the QRS complex, followed by a 5 Hz low-pass filter to obtain the QRS envelope, which was transformed into a window signal W(i) by dynamic threshold with a minimum width of 200 ms to mark the QRS complex. Third, Y(i) was used to generate QRS template T(n) automatically, and then the R-peak was identified by a template matching process to find the maximum absolute value of all cross-correlation values between T(n) and Y(i). The proposed algorithm achieved a sensitivity (SE) of 99.78%, a positive prediction value (PPV) of 99.78% and data error rate (DER) of 0.44% in R-peak localization for the MIT-BIH Arrhythmia database. The annotated-detected error (ADE), which represents the error between the annotated R-peak location and the detected R-peak location, was 8.35 ms for the MIT-BIH Arrhythmia database. These results outperformed the results obtained using the classical Pan-Tompkins algorithm which yielded an SE of 98.87%, a PPV of 99.14%, a DER of 1.98% and an ADE of 21.65 ms for the MIT-BIH Arrhythmia database. It can be concluded that the algorithm can precisely detect the location of R-peaks and may have the potential to enhance clinical applications of HRV analysis.
| Original language | English |
|---|---|
| Pages (from-to) | 19191-19208 |
| Number of pages | 18 |
| Journal | Mathematical Biosciences and Engineering |
| Volume | 20 |
| Issue number | 11 |
| DOIs | |
| Publication status | Published - Oct 2023 |
Keywords
- annotated-detected error
- dynamic threshold
- heart rate variability
- R-peak detection
- template matching
- Heart Rate
- Arrhythmias, Cardiac/diagnosis
- Algorithms
- Electrocardiography/methods
- Humans
- Aminosalicylic Acid
- Signal Processing, Computer-Assisted