Detection and removal of pacing artifacts prior to automated analysis of 12-lead ECG

Kazi T Haq, Neeraj Javadekar, Larisa G Tereshchenko, Kazi T Haq, Neeraj Javadekar, Larisa G Tereshchenko

Abstract

Background: Pacing artifacts must be excluded from the analysis of paced ECG waveform. This study aimed to develop and validate an algorithm to identify and remove the pacing artifacts on ECG and vectorcardiogram (VCG).

Methods: We developed a semi-automatic algorithm that identifies the onset and offset of a pacing artifact based on the VCG signal slope steepness and designed a graphical user interface that permits quality control and fine-tuning the constraining threshold values. We used 1054 ECGs from the retrospective, multicenter cohort study "Global Electrical Heterogeneity and Clinical Outcomes," including 3825 atrial and 10,031 ventricular pacing artifacts for the algorithm development and 22 ECGs including 108 atrial and 241 ventricular pacing artifacts for validation. Validation was performed per digital sample. We used the kappa-statistic of interrater agreement between manually labeled sample (ground-truth) and automated detection.

Results: The constraining parameter values were for onset threshold 13.06 ± 6.21 μV/ms, offset threshold 34.77 ± 17.80 μV/ms, and maximum window size 27.23 ± 3.53 ms. The automated algorithm detected a digital sample belonging to pacing artifact with a sensitivity of 74.5% and specificity of 99.6% and classified correctly 98.8% of digital samples (ROC AUC 0.871; 95%CI 0.853-0.878). The kappa-statistic was 0.785, indicating substantial agreement. The agreement was on 98.81% digital samples, significantly (P < 0.00001) larger than the random agreement on 94.43% of digital samples.

Conclusions: The semi-automated algorithm can detect and remove ECG pacing artifacts with high accuracy and provide a user-friendly interface for quality control.

Keywords: ECG; Pacemaker; Pacing artifact; Signal processing.

Copyright © 2021 Elsevier Ltd. All rights reserved.

Figures

Figure 1.
Figure 1.
A. Flowchart representation of the algorithm to detect and remove a pacing artifact. B. Representative example of a pacing artifact on vector magnitude ECG signal.
Figure 2.
Figure 2.
Graphic user interface for pacing artifact removal. The interface allows users to input threshold parameters and review the output for each set of chosen parameters.
Figure 3.
Figure 3.
Example of pacing artifact removal from a ventricular-paced (A) and AV-paced (B) VCG. i) Original ventricular-paced VCG vector magnitude signal. i) Detected pacing artifacts (blue) and VCG signal (red).i) VCG vector magnitude signal after removal of pacing artifacts. (A) The pacing spike onset (αon) and offset (αoff) threshold values were 5 and 10 μV/ms, respectively. (B) The corresponding value ofαon andαoff were 7.5 and 15.5 μV/ms, respectively.
Figure 4.
Figure 4.
Example of pacing artifacts removal from 12-lead ECG a) 12-lead ECG with pacing artifacts. b) 12-lead ECG trace after pacing artifacts removal.

Source: PubMed

Подписаться