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.
Methods We developed a semi-automatic algorithm that identifies the onset and offset of a pacing artifact based on the ECG signal’ slope steepness and designed a graphical user interface that permits quality control and fine-tuning the constraining threshold values. We used 1,054 ECGs from the retrospective, multicenter cohort study “Global Electrical Heterogeneity and Clinical Outcomes,” including 3,825 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.
Highlights
We developed and validated a semi-automated algorithm to detect and remove pacing spike artifacts from a digital ECG signal.
The semi-automated algorithm can detect and remove pacing spike artifacts with high accuracy and provide a user-friendly interface for quality control.
Competing Interest Statement
The authors have declared no competing interest.
Clinical Trial
NCT03210883
Funding Statement
This work was partially supported by the National Institutes of Health (HL118277), Medical Research Foundation of Oregon and OHSU President Bridge funding to Tereshchenko.
Author Declarations
I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.
Yes
The details of the IRB/oversight body that provided approval or exemption for the research described are given below:
The study was approved by the Institutional Review Boards at the Oregon Health & Science University.
All necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.
Yes
I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).
Yes
I have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.
Yes
Data Availability
The algorithm, open-source software code written in MATLAB (MathWorks, Natick, MA, USA), and de-identified data example are provided at https://github.com/Tereshchenkolab/Pacing_spike_removal.