Editorial Type:
Article Category: Research Article
 | 
Online Publication Date: Apr 28, 2022

Artificial Intelligence and Machine Learning in Cardiac Electrophysiology

MBE,
BS,
PhD,
MS,
PhD, and
MD
Save
Download PDF

Cardiac electrophysiology requires the processing of several patient-specific data points in real time to provide an accurate diagnosis and determine an optimal therapy. Expanding beyond the traditional tools that have been used to extract information from patient-specific data, machine learning offers a new set of advanced tools capable of revealing previously unknown data patterns and features. This new tool set can substantially improve the speed and level of confidence with which electrophysiologists can determine patient-specific diagnoses and therapies. The ability to process substantial amounts of data in real time also paves the way to novel techniques for data collection and visualization. Extended realities such as virtual and augmented reality can now enable the real-time visualization of 3-dimensional images in space. This enables improved preprocedural planning and intraprocedural interventions. Machine learning supplemented with novel visualization technologies could substantially improve patient care and outcomes by helping physicians to make more informed patient-specific decisions. This article presents current applications of machine learning and their use in cardiac electrophysiology.

Machine learning (ML) provides new tools for analyzing data with use of advanced signal-processing and statistical techniques. Cardiac electrophysiologists use signal-processing tools to interpret real-time data and to help them diagnose, treat, and manage abnormal cardiac rhythms. These data can include 12-lead electrocardiograms (ECGs), intracardiac electrograms, fluoroscopic images, 3-dimensional (3D) electroanatomic maps, and several other types of patient-specific data. Machine learning algorithms are capable of interpreting these heavily intertwined data to assist the physician in making more informed decisions.

Implicit in ML methods is that relevant features of the input data that are indicative of class (for example, QRS widths, PR intervals, and waveform morphologies on ECG tracings) are known. These features are often empirically or analytically derived by experts in the field who use traditional signal-processing techniques and who understand well the electrophysiologic behaviors underlying cardiac function. However, it is often unclear what features of the data are most important for predicting the desired output. The best features can be determined through informed guesses or directly learned from the data, accurate classification being the end goal. The most advanced supervised learning methods, such as deep neural networks and convolutional neural networks (CNNs), use this idea to achieve state-of-the-art results in ML.1 These algorithms can be applied to classification and regression tasks, making them highly versatile and adaptable. Although the algorithms provide excellent accuracy, they do so by learning features of the data that can be difficult to interpret and provide little insight into the underlying problem. These methods also require considerable input-output pairs to properly train the networks to learn a function between an input and an output.

This article presents current applications of ML in electrophysiology and their use in cardiac electrophysiology. A schematic summary is provided in Figure 1.2

Fig. 1Fig. 1Fig. 1
Fig. 1 Diagram shows roles of machine learning and extended reality in cardiac electrophysiology. Three-dimensional electroanatomic mapping combined with traditional imaging techniques and diagnostic techniques creates a large amount of information that needs to be processed in real time to improve the accuracy of diagnoses and therapies. Machine learning enables the improved accuracy of diagnoses by using a large amount of data obtained during procedures. With use of machine-learning techniques (for example, supervised and unsupervised learning) and convolutional neural networks (CNN), specific, previously unknown features of data can be extracted and used to make a predictive diagnosis and deliver patient-specific therapy. A large amount of data also warrants novel methods of visualization. Extended realities such as augmented reality (AR), virtual reality (VR), and mixed reality (MR) can substantially augment data available to the operator in inpatient and outpatient settings. Image of 3-dimensional electroanatomic map adapted with permission from Kim YH, Chen SA, Ernst S, Guzman CE, Han S, Kalarus Z, et al. 2019 APHRS expert consensus statement on three-dimensional mapping systems for tachycardia developed in collaboration with HRS, EHRA, and LAHRS. J Arrhythm 2020;36(2):215–70.2

Citation: Texas Heart Institute Journal 49, 2; 10.14503/THIJ-21-7576

Machine Learning Applications in Electrophysiology

Predictive Diagnosis from Surface Leads

A 12-lead ECG provides important information about the health of the heart and contains clues about how to treat cardiac disease. Interpreting electrograms is an art that relies on the science of measuring several ECG intervals and the intricate interdependence among the 12 channels. The current methods for interpreting an ECG are rule-based and can be challenging to implement in a standard and uniform way because of patient-specific differences. Machine learning algorithms can provide quick, accurate diagnoses and can interpret ECGs more efficiently than a clinician can. For example, a deep neural network trained on 91,232 single-lead ECGs from 53,549 patients was shown to classify rhythms with sensitivity greater than that of cardiologists.3 Other CNNs and recurrent neural networks have been applied to smaller ECG datasets to classify atrial fibrillation (AF) and flutter46 and to distinguish them from other rhythms, with sensitivities ranging from 80% to 95%.

Structural changes in the heart indicative of disease onset can cause subtle changes on recorded ECGs. Using these changes, ML algorithms can predict the onset of disease. In a study that included 180,922 patients, a CNN was able to predict the onset of AF by processing sinus rhythm electrograms before the detection of AF.7 The authors reported a sensitivity of 82.3% (range, 80.9%–83.6%) and specificity of 83.4% (range, 83.0%–83.8%) when using all sinus rhythm electrograms obtained before the detected fibrillatory event. Impressively, when using only 10 seconds of sinus rhythm, the algorithm was able to predict the onset of AF with a sensitivity of 79.0% (range, 77.5%–80.4%) and specificity of 79.5% (range, 79.0%–79.9%).

Another CNN that was developed to estimate the age and sex of a patient by using 10 seconds of ECG recordings was able to predict age with 90.4% accuracy and predict age within 7 years of the patient's actual age.7 Marked deviations, such as in older patients, could be indicative of comorbidities. Therefore, the network may serve as a metric for evaluating overall health, thus highlighting the potential for gaining interesting new insights with ML.

Machine learning algorithms have also been used to reconstruct 12-lead ECGs from intracardiac electrograms collected from a single lead.8 In a retrospective, diagnostic electrophysiologic study of 14 patients, a concurrent electrogram and 12-lead ECG signals were used to compute the transformation from electrogram to ECG and vice versa. The signals were separated into discrete time blocks containing a single heartbeat. The data blocks were then converted into the time-frequency domain to produce image-like spectrograms. These were then fed into a convolutional encoder-decoder neural network model—a specific type of CNN—to learn a function between electrogram and ECG signals. For each patient, the algorithm was trained on a small dataset from 14 patients and validated on the remaining dataset per patient. This enabled the computation of the 12-lead ECG of previously recorded arrhythmic episodes after training the algorithm for a short amount of time in an inpatient setting. From a set of 5 electrogram channels that were obtained from a diagnostic catheter placed in the coronary sinus and used as input, 12-lead ECG signals were reconstructed for 14 patients, with an average Pearson correlation coefficient greater than 0.9 for every patient. The reverse problem of reconstructing 5 electrogram leads from a 12-lead ECG was also shown, with a correlation coefficient greater than 0.9 for most patients.

Patient-Specific Adaptive Therapy

The treatment and management of abnormal heart rhythms with the use of implanted devices, ablative techniques, and drugs can be greatly improved by using ML algorithms. In a retrospective analysis of 481 patients who underwent cardiac resynchronization therapy,9 a random forest model accurately predicted clinical outcomes after a given therapy by incorporating patient-specific features. In a different study10 of 1,510 patients undergoing cardiac resynchronization therapy (CRT), random forest classifiers were also used to create a SEMMELWEIS-CRT score that predicted 1- to 5-year all-cause mortality rates. The algorithm using this score performed significantly better than algorithms using other scores, with a mean area under the curve of 0.785. In another study11 that compared multiple models to improve patient selection for CRT, a naïve Bayes algorithm incorporating patient-specific variables was used to predict the outcomes of a therapy. The algorithm outperformed clinical guidelines in predicting survival free from a composite endpoint of death, heart transplant, or placement of a left ventricular assist device.

Accurately identifying and ablating the focus of AF could possibly improve patient outcomes and reduce the frequency of recurrent AF. Machine learning strategies have been implemented to better guide physicians in performing cardiac ablations. In a small 5-patient study,12 electroanatomic mapping data were combined with patients' computed tomographic (CT) scans to identify with high confidence areas for ablation. Electroanatomic maps and magnetic resonance imaging (MRI) data were used to create an augmented set of features that was then used in a random-forest model to identify areas for ablation, with a mean sensitivity of 82.4% and mean specificity of 99.2%. A similar strategy involves use of a multiscale-simulation algorithm to identify optimal ablation sites.13 This algorithm, called Optimal Target Identification via Modelling of Arrhythmogenesis (OPTIMA), simulates AF on patient- specific maps derived from MRI maps, and it computes the minimum set of ablations needed to extinguish AF in silico.13 Supervised ML is used in this algorithm to classify areas of atrial fibrosis in late gadolinium-enhanced cardiac magnetic resonance images.14 This approach has also been used to predict recurrence of AF after pulmonary vein isolation, with a mean sensitivity of 82% and mean specificity of 89%.15

An enormous amount of data is generated in both in-patient and outpatient settings. With the advent of leadless systems capable of multisite sensing and pacing,16 even more data are bound to be generated. These data include patient history; billing data; images obtained from ultrasonographic, CT, and MRI scans; electrophysiologic data obtained invasively or noninvasively; diagnoses; and several other types of patient-specific information. The disconnect between these seemingly disparate datasets may explain why therapy and diagnosis are algorithmic and not necessarily patient-specific. Machine learning algorithms applied to healthcare data may help provide patient-specific care by bridging the gaps in patient data collected from multiple sources.

Machine learning algorithms are trained on large datasets. Newer technologies enable the collection and visualization of data that could not be previously obtained. The combination of 3-dimensional (3D) electroanatomic mapping with use of CT scans and intracardiac echocardiographic imaging may diminish reliance on potentially harmful fluoroscopic imaging during procedures. Although the resulting maps carry a substantial amount of spatiotemporal data, only a projection of such maps can be visualized on a 2-dimensional (2D) monitor. Newer technologies, such as virtual reality (VR), augmented reality (AR), and mixed reality (MR), aim to address this issue.

A New Reality in Visualization

Imaging is an integral part of any electrophysiologic procedure. Traditional fluoroscopic imaging has been associated with an increased risk of tissue damage and cancer for both doctors and patients.17 In addition, visualizing multiple projections of a 3D object through a 2D image has always been challenging. The combination of 3D electroanatomic mapping with tools such as intracardiac echocardiographic imaging has catalyzed a shift towards nonfluoroscopic procedures.

Because of advances in visualization tools, it is now possible to see and interact with these 3D images. Holographic imaging technology (RealView Imaging) has been used in visualizing and planning cardiac procedures.18 This technology enables the visualization and viewing of static and dynamic images, as well as interaction with segmented images such as those obtained from a CT scan. During an inpatient procedure, holographic images can be visualized near the patient so that an appropriate diagnosis can be made or an intervention performed in combination with other available data.

Another approach to the visualization of 3D images involves extended realities. Extended realities can include VR, in which a virtual environment is set up for interacting with and visualizing images; AR, in which the visualization is overlaid on the true observable space; and MR, in which a virtual environment and augmented images are overlaid together on the observable space. These extended realities may offer substantial improvements over current visualization capabilities and enable better visualization of human anatomy. For example, in a project by Case Western University, the Stanford Virtual Heart is visualized on VR (Lighthaus, Inc.19) and MR (HoloAnatomy20) platforms with use of Microsoft HoloLens 2 smartglasses in order to better study, understand, and interact with human anatomy, and in particular cardiac anatomy.

Preprocedural planning can also be substantially enhanced with use of extended realities. In a recent study,21 the use of VR in preprocedural surgical planning was evaluated in 6 patients. By visualizing and viewing immersive 3D images of segment CT scans through CardioVR technology (Medical VR), cardiothoracic surgeons were able to determine the optimal location for surgical access and the spatial orientation of various organs.

Extended realities could provide valuable information during procedures. The CommandEP system (SentiAR), recently cleared for use by the United States Food and Drug Administration, combines electroanatomic maps with holographic imaging of the heart. In a small prospective study of 10 patients undergoing catheter ablation,22 the system successfully visualized 3D images of CT scans obtained before the procedure and overlaid them with electroanatomic maps. Using a head-mounted display, the user could also view catheters in real time, which is optimal when navigating catheters and choosing an ablation zone.

Conclusion

As ML algorithms are developed, validated, and implemented in low-power hardware, they will become essential at every step in patients' health management and will lead to the identification of various health conditions and patient-specific therapies. As the use of ML-based tools in the daily practice of cardiologists increases, data-driven methodologies will continue to advance. Moreover, once adequately validated, those ML-based tools will facilitate daily clinical workflows, increase patient satisfaction, and enhance the early detection and correct interpretation of findings, ultimately leading to improved patient outcomes. The same holds true for AR and VR technologies, which have provided exciting new directions for streamlining electrophysiologic procedures.

Acknowledgment

Nicole Stancel, PhD, ELS(D), of the Department of Scientific Publications at the Texas Heart Institute, contributed to the editing of the manuscript.

Funding/support: This work was supported in part by National Science Foundation Grant CCF-1838873, National Institutes of Health Grant R01HL144683, and the Sultan Qaboos Chair in Cardiology at the St. Luke's Foundation.

Section editor: Zvonimir Krajcer, MD

References

  • 1.

    LeCun Y, Bengio Y, Hinton G. Deep learning. Nature2015;521(

    7553
    ):43644.

  • 2.

    Kim YH, Chen SA, Ernst S, Guzman CE, Han S, Kalarus Z, et al.. 2019 APHRS expert consensus statement on three-dimensional mapping systems for tachycardia developed in collaboration with HRS, EHRA, and LAHRS. J Arrhythm2020;36(

    2
    ):21570.

  • 3.

    Hannun AY, Rajpurkar P, Haghpanahi M, Tison GH, Bourn C, Turakhia MP, Ng AY. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network [published erratum appears in Nat Med 2019;25(3):530]. Nat Med2019;25(

    1
    ):659.

  • 4.

    Ivanovic MD, Atanasoski V, Shvilkin A, Hadzievski L, Maluckov A. Deep learning approach for highly specific atrial fibrillation and flutter detection based on RR intervals. Annu Int Conf IEEE Eng Med Biol Soc2019;2019:17803.

  • 5.

    Whitaker BM, Rizwan M, Aydemir VB, Rehg JM, Anderson DV. AF classification from ECG recording using feature ensemble and sparse coding. In:

    Proceedings of the 2017 Computing in Cardiology (CinC) Conference; IEEE
    ;
    2017
    .

  • 6.

    Zihlmann M, Perekrestenko D, Tschannen M. Convolutional recurrent neural networks for electrocardiogram classification. In:

    Proceedings of the 2017 Computing in Cardiology (CinC) Conference; IEEE
    ;
    2017
    .

  • 7.

    Attia ZI, Noseworthy PA, Lopez-Jimenez F, Asirvatham SJ, Deshmukh AJ, Gersh BJ, et al.. An artificial intelligence-enabled ECG algorithm for the identification of patients with atrial fibrillation during sinus rhythm: a retrospective analysis of outcome prediction. Lancet2019;394(

    10201
    ):8617.

  • 8.

    Banta A, Cosentino R, John MM, Post A, Buchan S, Razavi M, Aazhang B. Nonlinear regression with a convolutional encoder-decoder for remote monitoring of surface electrocardiograms [unpublished preprint]. Available from: https://doi.org/10.48550/arXiv.2012.06003 [2020 Dec 10; cited 2022 Mar 18].

  • 9.

    Kalscheur MM, Kipp RT, Tattersall MC, Mei C, Buhr KA, DeMets DL, et al.. Machine learning algorithm predicts cardiac resynchronization therapy outcomes: lessons from the COMPANION trial. Circ Arrhythm Electrophysiol2018;11(

    1
    ):e005499.

  • 10.

    Tokodi M, Schwertner WR, Kovács A, Tősér Z, Staub L, Sárkány A, et al.. Machine learning-based mortality prediction of patients undergoing cardiac resynchronization therapy: the SEMMELWEIS-CRT score. Eur Heart J2020;41(

    18
    ):174756.

  • 11.

    Feeny AK, Rickard J, Patel D, Toro S, Trulock KM, Park CJ, et al.. Machine learning prediction of response to cardiac resynchronization therapy: improvement versus current guidelines. Circ Arrhythm Electrophysiol2019;12(

    7
    ):e007316.

  • 12.

    Lozoya RC, Berte B, Cochet H, Jais P, Ayache N, Sermesant M. Model-based feature augmentation for cardiac ablation target learning from images. IEEE Trans Biomed Eng2019;66(

    1
    ):3040.

  • 13.

    Boyle PM, Zghaib T, Zahid S, Ali RL, Deng D, Franceschi WH, et al.. Computationally guided personalized targeted ablation of persistent atrial fibrillation. Nat Biomed Eng2019;3(

    11
    ):8709.

  • 14.

    Zahid S, Cochet H, Boyle PM, Schwarz EL, Whyte KN, Vigmond EJ, et al.. Patient-derived models link re-entrant driver localization in atrial fibrillation to fibrosis spatial pattern. Cardiovasc Res2016;110(

    3
    ):44354.

  • 15.

    Shade JK, Ali RL, Basile D, Popescu D, Akhtar T, Marine JE, et al.. Preprocedure application of machine learning and mechanistic simulations predicts likelihood of paroxysmal atrial fibrillation recurrence following pulmonary vein isolation. Circ Arrhythm Electrophysiol2020;13(

    7
    ):e008213.

  • 16.

    Lyu H, John M, Burkland D, Greet B, Post A, Babakhani A, Razavi M. Synchronized biventricular heart pacing in a closed-chest porcine model based on wirelessly powered leadless pacemakers [published erratum appears in Sci Rep 2020;10(1):6252]. Sci Rep2020;10(

    1
    ):2067.

  • 17.

    Al Kharji S, Connell T, Bernier M, Eisenberg MJ. Ionizing radiation in interventional cardiology and electrophysiology. Can J Cardiol2019;35(

    4
    ):5358.

  • 18.

    Bruckheimer E, Rotschild C, Dagan T, Amir G, Kaufman A, Gelman S, Birk E. Computer-generated real-time digital holography: first time use in clinical medical imaging. Eur Heart J Cardiovasc Imaging2016;17(

    8
    ):8459.

  • 19.

    The Stanford Virtual Heart - revolutionizing education on congenital heart defects [Internet]. Available from: https://www.stanfordchildrens.org/en/innovation/virtual-reality/stanford-virtual-heart [cited 2021 January 26].

  • 20.

    HoloAnatomy software suite [Internet]. Available from: https://case.edu/holoanatomy/ [cited 2021 January 26].

  • 21.

    Sadeghi AH, Bakhuis W, Van Schaagen F, Oei FBS, Bekkers JA, Maat APWM, et al.. Immersive 3D virtual reality imaging in planning minimally invasive and complex adult cardiac surgery. Eur Heart J - Digital Health2020;1(

    1
    ):6270.

  • 22.

    Southworth MK, Silva JNA, Blume WM, Van Hare GF, Dalal AS, Silva JR. Performance evaluation of mixed reality display for guidance during transcatheter cardiac mapping and ablation. IEEE J Transl Eng Health Med2020;8:1900810.

  • Download PDF
Copyright: © 2022 by the Texas Heart Institute, Houston
Fig. 1
Fig. 1

Diagram shows roles of machine learning and extended reality in cardiac electrophysiology. Three-dimensional electroanatomic mapping combined with traditional imaging techniques and diagnostic techniques creates a large amount of information that needs to be processed in real time to improve the accuracy of diagnoses and therapies. Machine learning enables the improved accuracy of diagnoses by using a large amount of data obtained during procedures. With use of machine-learning techniques (for example, supervised and unsupervised learning) and convolutional neural networks (CNN), specific, previously unknown features of data can be extracted and used to make a predictive diagnosis and deliver patient-specific therapy. A large amount of data also warrants novel methods of visualization. Extended realities such as augmented reality (AR), virtual reality (VR), and mixed reality (MR) can substantially augment data available to the operator in inpatient and outpatient settings.

Image of 3-dimensional electroanatomic map adapted with permission from Kim YH, Chen SA, Ernst S, Guzman CE, Han S, Kalarus Z, et al. 2019 APHRS expert consensus statement on three-dimensional mapping systems for tachycardia developed in collaboration with HRS, EHRA, and LAHRS. J Arrhythm 2020;36(2):215–70.2


Contributor Notes

Corresponding author: Mehdi Razavi, MD, 6770 Bertner Ave., MC2-255, Houston, TX 77030 E-mail: mehdirazavi1@gmail.com