{"title":"Deep Learning R-Wave Detection for Electrocardiographic Gating in Cardiac MRI.","authors":"Amin Mahmoodi, Melina Hosseiny, Vladimir Ermakov, Samira Masoudi, Albert Hsiao","doi":"10.1148/ryct.250104","DOIUrl":null,"url":null,"abstract":"<p><p>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.</p>","PeriodicalId":21168,"journal":{"name":"Radiology. Cardiothoracic imaging","volume":"7 6","pages":"e250104"},"PeriodicalIF":4.5000,"publicationDate":"2025-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12728509/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Radiology. Cardiothoracic imaging","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1148/ryct.250104","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"RADIOLOGY, NUCLEAR MEDICINE & MEDICAL IMAGING","Score":null,"Total":0}
引用次数: 0
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%; P = .048). At 3.0 T, CNN achieved a higher F1 score (99.1%) than did the Hamilton algorithm (92.4%; P = .049) and was not statistically different than VCG (95.1%; P = .68). The CNN demonstrated a lower false-positive rate (0.1%) than did the Hamilton algorithm (7.4%; P = .02) at 3.0 T and was not statistically different than VCG (4.5%; P = .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. Keywords: Convolutional Neural Network, ECG Gating, Deep Learning R-Wave Detection, Cardiac MRI Reconstruction Supplemental material is available for this article. © RSNA, 2025.
心脏MRI心电图门控的深度学习r波检测。
目的测量心电图(ECG)门控错误的频率,并评估卷积神经网络(cnn)是否可以减少这种错误。材料与方法回顾性收集120例在1.5 T和3.0 T时接受心脏MRI检查的患者的心电图示踪,以及47例患者的外部心电图示踪数据集(2022年8月至2023年4月)。心律失常的频率和心电图门控错误是通过人工标注R波来确定的。利用79例MRI和6例外部患者的数据,开发了一种用于r波检测的CNN;剩余数据用于检验。使用信号处理算法(包括矢量心动图(VCG)门控和Hamilton算法)比较CNN的性能。结果120例心脏MRI患者平均年龄53.7岁±19.8岁(SD),其中男性72例。1.5 T时,8.1%的患者出现了心电图门控错误,3.0 T时,15.2%的患者出现了心电图门控错误。1.5 T时,CNN的F1评分(99.1%)高于VCG (98.1%, P = 0.048)。3.0 T时,CNN的F1评分(99.1%)高于Hamilton算法(92.4%,P = 0.049),与VCG (95.1%, P = 0.68)差异无统计学意义。在3.0 T时,CNN的假阳性率(0.1%)低于Hamilton算法(7.4%,P = 0.02),与VCG (4.5%, P = 0.28)无统计学差异。验证了回顾性图像重建提高心脏MRI质量的可行性。结论cnn为ECG r波检测提供了一种鲁棒的方法,特别是在3.0 t的mri诱发伪影存在的情况下。这些发现支持cnn增强ECG门控和改善心脏MR图像质量的潜力。关键词:卷积神经网络,心电门控,深度学习r波检测,心脏MRI重构©rsna, 2025。
本文章由计算机程序翻译,如有差异,请以英文原文为准。