Deep Learning R-Wave Detection for Electrocardiographic Gating in Cardiac MRI

Purpose To measure the frequency of electrocardiographic (ECG) gating errors and to assess whether convolutional neural networks (CNNs) can reduce such errors. Materials and Methods ECG tracings from 120 patients who underwent cine cardiac MRI at 1.5 T and 3.0 T, along with an external dataset of ECG tracings from 47 patients, were retrospectively collected (August 2022-April 2023). The frequency of arrhythmias and ECG-gating errors was determined by manual annotation of R waves. A CNN was developed for R-wave detection using data from 79 MRI and six external patients; the remaining data were used for testing. CNN performance was compared using signal processing algorithms, including vectorcardiographic (VCG) gating and the Hamilton algorithm. Results The mean age of the 120 patients undergoing cardiac MRI was 53.7 years ± 19.8 (SD), with 72 male patients. ECG-gating errors were observed in 8.1% of patients at 1.5 T and 15.2% at 3.0 T. At 1.5 T, CNN achieved a higher F1 score (99.1%) than did VCG (98.1%; <i>P</i> = .048). At 3.0 T, CNN achieved a higher F1 score (99.1%) than did the Hamilton algorithm (92.4%; <i>P</i> = .049) and was not statistically different than VCG (95.1%; <i>P</i> = .68). The CNN demonstrated a lower false-positive rate (0.1%) than did the Hamilton algorithm (7.4%; <i>P</i> = .02) at 3.0 T and was not statistically different than VCG (4.5%; <i>P</i> = .28). The feasibility of retrospective image reconstruction to improve cardiac MRI quality was also demonstrated. Conclusion CNNs offer a robust method for ECG R-wave detection, particularly in the presence of MRI-induced artifacts at 3.0 T. These findings support the potential of CNNs to enhance ECG gating and improve cardiac MR image quality. <b>Keywords:</b> Convolutional Neural Network, ECG Gating, Deep Learning R-Wave Detection, Cardiac MRI Reconstruction <i>Supplemental material is available for this article.</i> © RSNA, 2025.

Authors

Institutions

Publication Details

Journal
Radiology Cardiothoracic Imaging
Published
2025-11-06
DOI
https://doi.org/10.1148/ryct.250104
Primary Topic
ECG Monitoring and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Deep Learning R-Wave Detection for Electrocardiographic Gating in Cardiac MRI

Melina Hosseiny, Amin Mahmoodi, Albert Hsiao, Samira Masoudi et al.
Radiology Cardiothoracic Imaging
ECG Monitoring and Analysis
article

Deep Learning R-Wave Detection for Electrocardiographic Gating in Cardiac MRI

Melina Hosseiny, Amin Mahmoodi, Albert Hsiao, Samira Masoudi, Vladimir Ermakov
article en

Abstract

Purpose To measure the frequency of electrocardiographic (ECG) gating errors and to assess whether convolutional neural networks (CNNs) can reduce such errors. Materials and Methods ECG tracings from 120 patients who underwent cine cardiac MRI at 1.5 T and 3.0 T, along with an external dataset of ECG tracings from 47 patients, were retrospectively collected (August 2022-April 2023). The frequency of arrhythmias and ECG-gating errors was determined by manual annotation of R waves. A CNN was developed for R-wave detection using data from 79 MRI and six external patients; the remaining data were used for testing. CNN performance was compared using signal processing algorithms, including vectorcardiographic (VCG) gating and the Hamilton algorithm. Results The mean age of the 120 patients undergoing cardiac MRI was 53.7 years ± 19.8 (SD), with 72 male patients. ECG-gating errors were observed in 8.1% of patients at 1.5 T and 15.2% at 3.0 T. At 1.5 T, CNN achieved a higher F1 score (99.1%) than did VCG (98.1%; <i>P</i> = .048). At 3.0 T, CNN achieved a higher F1 score (99.1%) than did the Hamilton algorithm (92.4%; <i>P</i> = .049) and was not statistically different than VCG (95.1%; <i>P</i> = .68). The CNN demonstrated a lower false-positive rate (0.1%) than did the Hamilton algorithm (7.4%; <i>P</i> = .02) at 3.0 T and was not statistically different than VCG (4.5%; <i>P</i> = .28). The feasibility of retrospective image reconstruction to improve cardiac MRI quality was also demonstrated. Conclusion CNNs offer a robust method for ECG R-wave detection, particularly in the presence of MRI-induced artifacts at 3.0 T. These findings support the potential of CNNs to enhance ECG gating and improve cardiac MR image quality. <b>Keywords:</b> Convolutional Neural Network, ECG Gating, Deep Learning R-Wave Detection, Cardiac MRI Reconstruction <i>Supplemental material is available for this article.</i> © RSNA, 2025.

Radiology Cardiothoracic ImagingVol. 7(6)
University of California San Diego (US), University of California San Diego Medical Center (US), La Jolla Bioengineering Institute (US)
Openalex Percentile: Top 49%
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.