Significance
Despite our understanding of the many factors that promote ventricular arrhythmias, it remains difficult to predict which specific individuals within a population will be especially susceptible to these events. We present a computational framework that combines supervised machine learning algorithms with population-based cellular mathematical modeling. Using this approach, we identify electrophysiological signatures that classify how myocytes respond to three arrhythmic triggers. Our predictors significantly outperform the standard myocyte-level metrics, and we show that the approach provides insight into the complex mechanisms that differentiate susceptible from resistant cells. Overall, our pipeline improves on current methods and suggests a proof of concept at the cellular level that can be translated to the clinical level.
Keywords: machine learning, arrhythmias, mathematical modeling, population modeling, electrophysiology
Abstract
At present, the QT interval on the electrocardiographic (ECG) waveform is the most common metric for assessing an individual’s susceptibility to ventricular arrhythmias, with a long QT, or, at the cellular level, a long action potential duration (APD) considered high risk. However, the limitations of this simple approach have long been recognized. Here, we sought to improve prediction of arrhythmia susceptibility by combining mechanistic mathematical modeling with machine learning (ML). Simulations with a model of the ventricular myocyte were performed to develop a large heterogenous population of cardiomyocytes (n = 10,586), and we tested each variant’s ability to withstand three arrhythmogenic triggers: 1) block of the rapid delayed rectifier potassium current (IKr Block), 2) augmentation of the L-type calcium current (ICaL Increase), and 3) injection of inward current (Current Injection). Eight ML algorithms were trained to predict, based on simulated AP features in preperturbed cells, whether each cell would develop arrhythmic dynamics in response to each trigger. We found that APD can accurately predict how cells respond to the simple Current Injection trigger but cannot effectively predict the response to IKr Block or ICaL Increase. ML predictive performance could be improved by incorporating additional AP features and simulations of additional experimental protocols. Importantly, we discovered that the most relevant features and experimental protocols were trigger specific, which shed light on the mechanisms that promoted arrhythmia formation in response to the triggers. Overall, our quantitative approach provides a means to understand and predict differences between individuals in arrhythmia susceptibility.
Predicting individual susceptibility to ventricular arrhythmias is a long-standing issue in the field of cardiac electrophysiology. Many factors can contribute to ventricular arrhythmia risk, including variants in a wide variety of genes, structural heart disease, and drugs that block important cardiac ion channels (1–3). However, even in patients who are clearly at high risk of developing ventricular arrhythmias, these are uncommon events. Moreover, two patients can experience dramatically different arrhythmia burdens, even if their genetic profiles or cardiac function might suggest a similar level of risk (4). These observations have led to the notion that arrhythmias arise due to an inherent susceptibility combined with a temporary, triggering factor such as an electrolyte imbalance, a change in autonomic tone, or a circulating medication (1, 5–7). There is therefore a great need to identify the individuals who are most at risk for developing arrhythmias for proper management of their lifestyles and clinical care.
Due to the role played by drugs in triggering some ventricular arrhythmias, prediction of proarrhythmia is a major issue in drug development. In this context, the electrocardiographic QT interval has played a central role (8). Drug-induced prolongation of the QT interval, corresponding at the cellular level to prolongation of the action potential duration (APD), is assessed in preclinical and clinical assays, and a positive signal can doom an otherwise-promising drug development project (8). Similarly, when examining differences between individuals, those with the longest QT intervals are generally considered to be at greatest risk (9–11). Although useful, this QT-centric approach also has obvious limitations. First, the baseline QT interval in patients does not correlate with the degree of QT prolongation produced by drugs, indicating that other factors contribute (12, 13). Second, both a long baseline QT and drug-induced QT prolongation are only imperfect predictors of arrhythmia risk (14–16). Noninvasive methods to determine the individuals most at risk for arrhythmia could therefore be of great benefit in clinical care.
Improved prediction of arrhythmia risk could potentially be achieved by combining two complementary computational techniques: 1) supervised machine learning (ML) algorithms and 2) simulations with mechanistic mathematical models. ML, which has proven to be useful for discovering hidden patterns in data (17, 18), can be used for classification problems such as separating high-risk and low-risk patients. However, ML requires large sample sizes to be effective, and it is difficult to apply directly to clinical data due to heterogeneity in standards of data collection. In this regard, simulations with mechanistic models can play an important role, as this strategy allows for the generation of large sets of pseudodata, all produced under controlled and repeatable conditions (19–22). A rigorous ML study of arrhythmia susceptibility based on simulated data would provide an important proof of concept to inform later studies that analyzed clinical recordings.
A few recent publications have combined modeling and ML by applying either unsupervised or supervised ML to data sets generated through simulation (23–26). Here, we extended this strategy to address a more challenging question: can measurable features from cellular APs, obtained in the absence of an arrhythmogenic perturbation, predict how cells will respond in the future to such a perturbation? Using simulation results from a controllable, understandable cellular system, we show that ML can successfully be applied to answer this question, offering the possibility that measurements made in normal sinus rhythm can predict arrhythmia risk. Moreover, the results demonstrate how the combination of the two computational techniques can be used to prioritize experiments and to understand mechanistic differences in how ventricular myocytes respond to different proarrhythmic triggers. Overall, the study provides a road map for the application of ML to assess arrhythmia susceptibility.
Results
Arrhythmogenic Triggers Produce Variable Responses across a Population of Myocytes.
We investigated individual arrhythmia susceptibility in a population of cardiomyocytes. Using the O’Hara et al. ventricular myocyte model as a baseline (27), we created a virtual population of 10,586 myocytes by randomly varying model parameters (19, 28, 29). Arrhythmia susceptibility was assessed by subjecting each cell in the population to three different triggers: 1) block of delayed rectifier potassium channel (IKr Block); 2) augmentation of the L-type Ca2+ current (ICaL Increase); and 3) injection of inward current (Current Injection). After applying each trigger, we split our population into resistant and susceptible groups based on whether the triggers caused arrhythmogenic behavior (Fig. 1), which was characterized as either a repolarization failure or an appearance of an early afterdepolarization (EAD). We found that 48%, 52%, and 55% of the population was susceptible to IKr Block, ICaL Increase, and Current Injection, respectively. Across all myocytes, we found that 55% of cells exhibited the same arrhythmogenic response (appearance or lack thereof an arrhythmia) to all three triggers, while the remaining 45% showed differences (Fig. 2A). Of the 45% for which differences were observed, 61% exhibited the same response to IKr Block and ICaL increase and a different response to Current Injection. The alternative possibilities were encountered less frequently. As an example, Fig. 2B shows two cells with similar pretrigger APs, in which one was resistant to Current Injection and susceptible to IKr Block and ICaL Increase, while the other was resistant to the latter two triggers but susceptible to Current Injection.
APD Only Predicts Susceptibly to Current Injection.
Once we had established a population that exhibited variable susceptibility to arrhythmic perturbations, we used ML to predict susceptibility. The goal of this analysis was to predict whether a cell would be susceptible to a trigger based on AP characteristics measured in the absence of the trigger (Fig. 1). Since APD at 90% repolarization (APD90) is commonly considered to correlate with arrhythmia risk (30), we first examined how well this single metric could predict susceptibility (Fig. 2C). To evaluate performance, we plotted the receiver operator characteristic (ROC) curve and calculated the area under it (auROC). We found that APD90 is an excellent predictor of susceptibility to current injection (auROC = 0.89) but a mediocre predictor for IKr Block and ICaL Increase (auROC = 0.60 and 0.71, respectively) (Fig. 2D). Thus, APD90 alone is not sufficient to predict cellular susceptibility to every arrhythmogenic trigger.
Measuring Additional Metrics of the AP Waveform Improves Risk Prediction.
Next, we aimed to determine whether susceptibility prediction could be improved by considering additional features of the AP and calcium transient (CaT) waveforms. We calculated eight features from the AP and six features from the CaT, extracted from waveforms obtained during steady-state pacing at 1 Hz, before triggers were applied (Fig. 3A and SI Appendix, Supplementary Methods). These features were then used as predictors to train a series of ML classifiers, as described in Materials and Methods, and classifiers were compared by plotting ROC curves. For instance, with the classifiers that predicted susceptibility to IKr Block (Fig. 3B), inclusion of more AP features increased classifier performance from auROC = 0.60 to auROC = 0.75. In contrast, features calculated from CaTs were not effective at predicting susceptibility to this trigger (auROC = 0.56). Similar results were observed for the ICaL increase (Fig. 3C) and Current Injection (Fig. 3D) triggers: inclusion of AP features improved classifier performance, whereas CaT features did not. Thus, for prediction of arrhythmia susceptibility, APs appear to provide considerably greater information than CaTs. Although this is not surprising given the complex membrane potential dynamics involved in EADs, results such as these can nonetheless be useful when making decisions about experimental protocols.
It is evident in Fig. 3D that quantifying features from an AP measured during steady-state pacing is sufficient to predict how a cell will respond to Current Injection (auROC = 0.98, green bar). After further investigating these eight AP features, we found that triangulation of the AP (TriAP) is most important for predicting the response to this perturbation (SI Appendix, Fig. S1). Cells with triangulated APs tend to be much more susceptible to Current Injection than those with normal APs.
ML Performance Changes Based on the Parameters that Are Varied in the Mathematical Model.
Our population of 10,586 myocytes was generated by varying both ionic current maximal conductances and parameters controlling ion channel gating (29, 31, 32). Because several previous studies have produced model populations by only varying conductances (20, 33, 34), we tested whether this difference influenced ML classifier performance by creating a population (n = 8,200 cells) in which only conductances varied between myocytes. These cells were subjected to IKr Block and ICaL Increase, and ML classifiers were developed to determine how well features of the preperturbed APs could predict susceptibility. For both perturbations, ML performance was substantially better when only conductances were varied compared with the population in which both categories of parameters were varied (Fig. 4). These results imply that differences in kinetic parameters, in addition to differences in conductances, are important in determining arrhythmia susceptibility. Moreover, the results show that the features of the AP waveform during steady-state 1 Hz pacing are insufficient to infer critical kinetic parameters. Thus, we hypothesized that studying the cell under additional conditions could improve ML performance by providing information about these parameters.
Prediction of Cellular Response to an Increase in ICaL Can Be Improved by Examining Cells under Hypocalcemic and Hypercalcemic Conditions.
To attempt to improve ML performance, we considered alterations to experimental conditions that are easily achievable in a standard cellular electrophysiology laboratory. For instance, because changes in pacing rate and extracellular solutions can be readily performed, we simulated the population of myocytes at fast and slow pacing rates (2.5 Hz and 0.2 Hz) and under hypercalcemic and hypocalcemic conditions (3.6 mM and 0.9 mM extracellular [Ca2+], respectively). We then evaluated ML performance after adding AP features calculated under these conditions to those obtained under standard conditions of 1 Hz pacing, 1.8 mM [Ca2+]. Inclusion of either set of features improved ML performance, with somewhat better results seen with the hypercalcemia/hypocalcemia experiment (Fig. 5) compared with the pacing rate experiment (SI Appendix, Figs. S2 and S3). For example, auROC for prediction of the response to the ICaL Increase trigger improved from 0.82 with eight AP features only to 0.87 with inclusion of the pacing protocol but improved to 0.91 by simulating hypercalcemic and hypocalcemic conditions. Similar results were seen for prediction of the IKr Block trigger (auROC = 0.75 with eight AP features, 0.84 when adding pacing rates, and 0.86 when adding hyper/hypo-calcemia). The comparison between the two protocols is useful for experimental prioritization, and the improvement in ML performance implies that these experiments can help to infer model parameters that control arrhythmia susceptibility.
An Excitation Threshold Experiment Greatly Improves Prediction of Cellular Response to IKr Block.
Although the hypocalcemia and hypercalcemia experiments successfully improved ML performance, the susceptibility prediction for IKr Block was inferior to the prediction for ICaL increase (auROC = 0.86 versus 0.91). We hypothesized that this difference occurred because the AP features from these simulated protocols were insufficient to infer one or more biological parameters that determine susceptibility to IKr Block. Because cellular arrhythmias often occur via EADs and these events result from reactivation of ICaL, we reasoned that better inferences of parameters related to this current’s kinetics could improve ML prediction (35, 36). We therefore simulated, in our virtual population, an excitation threshold experiment performed under conditions in which INa is inhibited and AP upstrokes must be carried by ICaL (Fig. 6A, red trace). Example cells from the population, shown in Fig. 6B, suggest that this experiment may be useful for distinguishing between resistant and susceptible cells that have similar APs during 1-Hz pacing, and ML analysis confirms a dramatic improvement to the IKr Block prediction (Fig. 6C). Indeed, the excitation threshold produced excellent classification either by itself or when combined with eight AP features measured during 1-Hz pacing (auROC = 0.92 in either case). Interestingly, while the excitation threshold also improved ML prediction of the ICaL Increase perturbation (Fig. 6D), in this case, the threshold needed to be combined with additional features, such as those recorded during steady-state 1 Hz pacing (auROC = 0.87 for threshold alone, 0.92 when combined).
Multiple Biological Parameters Are Required to Understand Susceptibility to ICaL Increase.
The results presented thus far show that ML classifiers can successfully predict, based on features measured in the absence of a perturbation, how cells will respond to any of the three perturbations tested (auROC > 0.9 in all cases). However, these analyses also indicate that Current Injection and IKr Block can be predicted with well-chosen individual metrics (TriAP and excitation threshold, respectively), whereas prediction of the response to ICaL Increase requires that data from multiple experiments be combined. We hypothesized that this occurred because a greater number of biological parameters influence susceptibility to ICaL Increase compared with the other two perturbations. To test this idea, we performed Least Absolute Shrinkage and Selection Operator (LASSO) logistic regression (37) on the results using the biological parameters as the independent variables and susceptibility as the dependent variable (Fig. 7A). This approach allowed us to iteratively eliminate parameters until a particular performance was reached, thereby quantifying the number of biological parameters needed for the prediction. Consistent with our hypothesis, the analysis showed that Current Injection, IKr Block, and ICaL increase required 3, 7, and 21 parameters, respectively (Fig. 7B).
This idea is further illustrated in Fig. 7C, in which we examine for each trigger how well the two most important parameters can separate resistant and susceptible cells. The individual dots represent 100 cells from the population and are colored based on susceptibility (red = susceptible, blue = resistant). The background contour map represents the LASSO model prediction calculated only from the top two parameters, in which the more lightly shaded areas indicate the region of uncertainty. It is evident both from the regions of uncertainty and the misclassification rates that prediction is weakest for ICaL Increase, better for IKr Block, and best for Current Injection (Fig. 7C). Thus, the ICaL Increase trigger required more electrophysiological features to achieve strong prediction because many more biological parameters determine susceptibility to this trigger.
Discussion
In this study, we developed a computational pipeline that combines mechanistic modeling with ML analyses, and we applied this to examine individualized arrhythmia susceptibility. Mechanistic simulations were used to generate a heterogeneous population of thousands of cardiomyocytes, and several ML algorithms were applied to predict how the members of this population would respond to triggers that induced arrhythmic behavior in some cells. Importantly, ML was not employed to detect the arrhythmic dynamics, a task that can often be performed by visual inspection, but to predict how physiological waveforms under normal sinus rhythm might indicate susceptibility to a hypothetical future trigger. The ML analyses indicated that it is more difficult to predict the cellular responses to certain triggers than to other triggers. Following from this result, we determined which pretrigger experimental protocols were effective at improving the performance of the ML classifiers. The results indicate the value of combining mechanistic simulations with ML and provide insight into the factors that may determine susceptibility to particular proarrhythmic triggers.
The electrocardiographic QT interval has been the most common metric employed for the prediction of individual susceptibility to ventricular arrhythmias (10), and the QT interval continues to be used in clinical decision-making, for instance, when choosing treatments early in the COVID-19 pandemic (38). Over time, however, many alternative approaches have been proposed, sometimes grouped together under the acronym TRIaD (Triangulation, Reverse use dependence, Instability of the AP, and Dispersion). Over a decade ago, a series of important studies from Hondeghem and colleagues established the utility of TRIaD for prediction of drug-induced arrhythmia (9, 15). More recently, mathematical modeling studies have proposed various quantities derived from simulation results, such as qNet, which calculates the total charge flowing through a specific set of ionic currents (39), or the electromechanical window, which looks at how drugs may differentially affect AP and CaT waveforms (40). Most of these efforts, however, have focused on predicting drug-induced arrhythmias, and conclusions have often been reached by comparing how different metrics perform across a series of drugs. Considerably less research has been performed to address which individuals are especially susceptible to arrhythmias, and critical questions remain unresolved, such as: 1) Will an individual who is susceptible to one arrhythmic trigger be equally susceptible to similar triggers? 2) Can information captured during experimental perturbations complement recordings made during normal sinus rhythm to improve predictions? Here, we addressed such questions by combining mechanistic simulations with ML analyses.
Broadly speaking, ML can be considered a statistical analysis that is more comprehensive and unbiased than a traditional, user-driven approach (17). It therefore represents an appealing strategy for determining the best predictors of an individual’s arrhythmia susceptibility. In principle, ML could be applied directly to clinical data to produce a straightforward, “black box” predictor. For example, convolutional neural networks have been applied to electrocardiographic (ECG) traces from tens of thousands of patients to build classifiers that differentiate between different types of arrhythmias (41, 42). At least two challenges, however, make it difficult to apply a direct strategy to predict arrhythmia susceptibility from clinical data obtained during normal sinus rhythm. One is the question of interpretability; black box ML classifiers often provide practical utility without offering new insight into biological mechanisms (43). A second, more important issue is the heterogeneous and often inconsistent structure of clinical data. ML is straightforward to implement when the same calculations and transformations can be performed on each sample. It can become extremely challenging, however, when data are missing, because patients receive different tests, they are seen at irregular intervals, and arrhythmias are infrequent events. By developing our ML classifiers using synthetic data generated with a mechanistic model, we could perform ML on results with a consistent structure that were produced under identical, well-controlled conditions.
The combination of mechanistic modeling and ML employed in this study provided at least two benefits. The first was an improved mechanistic understanding of the factors that control arrhythmia risk in response to different arrhythmic triggers. The ML analyses showed that it was relatively easy to predict how cells respond to injection of constant current, more challenging to predict the response to block of IKr, and most difficult to predict how cells respond to an increase in ICaL. These surprising results inspired further analyses, which demonstrated important differences between the triggers in terms of which model parameters and how many model parameters determine susceptibility (Fig. 7). For example, the voltage dependence of ICaL activation, the parameter Vd, greatly affects susceptibility to IKr block (Fig. 7A). However, because AP upstrokes carried by INa rapidly drive membrane potential past the normal range of ICaL activation (roughly −30 to 0 mV), small changes in Vd have only a minimal effect on APs recorded during steady-state conditions. This explains why the eight AP features recorded during 1-Hz pacing are ineffective for susceptibility prediction (Fig. 3B), while the excitation threshold under blocked INa conditions, which correlates with Vd (SI Appendix, Fig. S5), improves ML performance dramatically. For the current injection trigger, in contrast, Vd has little effect on susceptibility (Fig. 7A). Here, TriAP correlates well with the important model parameters (SI Appendix, Fig. S5), which explains why this single metric is sufficient for strong ML classification performance (SI Appendix, Fig. S1). These mechanistic insights, as well as similar insights into susceptibility to ICaL Increase (SI Appendix, Fig. S5), illustrate important differences between the triggers.
A second benefit from combining the two approaches is the potential for experimental prioritization. We initially examined cells under conditions that mimicked an individual at rest (steady-state, 1-Hz pacing), then we added predictors to our ML classifiers by simulating additional experimental protocols. The results, which showed that some protocols improved ML performance more than others, can be used to guide decisions when resources are limited and not every experiment can be performed. For prediction of the response to IKr Block, for instance, we found that a single experiment measuring excitation threshold could provide as much information as recording APs under multiple experimental conditions (Fig. 6). Similarly, analyses showed that prediction of the response to ICaL Increase was improved more by including AP waveforms simulated under hypocalcemic and hypercalcemic conditions than by recording at multiple pacing rates. Thus, if the goal of a cellular physiology experiment is to determine the arrhythmia susceptibility of each cell, the results suggest that the simple interventions of altering extracellular [Ca2+] and measuring excitation threshold, which are straightforward in most laboratories, provide extremely informative results. We note, however, that these conclusions are specific to the conditions we have considered, namely, EADs caused by reactivation of ICaL. Different experimental protocols are likely to prove most valuable when different arrhythmia mechanisms are involved.
This experimental prioritization is likely to be important when adapting ML to predict arrhythmia susceptibility in patients. Although cellular APs, which were used to build the classifiers in this study, are not routinely measured in the clinic, features derived from the ECG waveform contain similar information and may also prove useful for building ML classifiers using clinical data. In this context, the additional experimental protocols we simulated here would be analogous to, for instance, monitoring a patient’s ECG during a treadmill test, at multiple times of the day, or during a Valsalva maneuver. Based on the results presented, in which not all protocols were equally valuable, we suggest that classifiers built on simulated results can be used to guide and prioritize protocols for clinical classifiers.
Several limitations of this work suggest future studies to advance the prediction of arrhythmia susceptibility. First, the classifiers were built from simulated results rather than from experimental data. The results, however, have generated predictions that can readily be tested experimentally, especially since these interventions can be implemented in most cellular electrophysiology laboratories. A second limitation is that although we tested eight different ML algorithms, most of these are relatively standard methods rather than state-of-the-art approaches currently referred to as “deep learning.” In this initial study, we opted for ML algorithms that did not require extensive parameter tuning, but in future work, we intend to determine whether more complex ML approaches can improve the predictive power.
In summary, we have demonstrated that a combination of mechanistic mathematical modeling and ML analysis can be applied to predict arrhythmia susceptibility. This combined approach allowed for experimental prioritization and provided mechanistic insight into how ventricular myocytes respond to different proarrhythmic triggers. The work offers a methodology to understand and predict differences between individuals in the susceptibility to dangerous ventricular arrhythmias.
Materials and Methods
The code used to run the simulations in this manuscript have been uploaded to the following repository https://github.com/meeravarshneya1234/ArrhythmiaPredictionProject.git.
Mathematical Model.
We used a mathematical model that describes the electrophysiology of a single human endocardial ventricular myocyte (27). This model consists of 41 ordinary differential equations that capture changes over time in membrane voltage, intracellular ion concentrations, and ion channel gating. This system of equations reproduces two important physiological waveforms—the cardiac AP and the CaT. We ran the model at 1-Hz pacing and extracted features from both the AP and CaT. Refer to SI Appendix, Supplementary Methods for more details on the stimulation protocol and the features calculated from the waveforms.
Heterogeneous Population Development.
Beginning with the baseline ventricular myocyte model (27), we built a large heterogeneous population by applying random variation to two categories of parameter, namely, those that control: 1) ion channel densities (G, for conductances) and 2) kinetic properties that include time constants (p) and voltage dependences (V) of channel gating. Scaling factors for G and p model parameters were taken from a lognormal distribution with median m = 1 and shape parameter σ = 0.3, whereas V parameters were taken from a normal distribution with mean µ = 0 and SD σ = 4 mV (29, 31, 32). A complete list of the 66 model parameters is included in SI Appendix, Tables S1 and S2. We chose shape factors and SDs of these distributions based on the experimental data, from human ventricular myocytes, against which the model (27) was originally calibrated (44–46). For example, time constants reported in those papers had relative variability (coefficients of variation) ranging from 0.13 to 0.58 and voltage dependences of activation and inactivation had SDs ranging from 3 to 10.8 mV. The values we have used are therefore somewhat conservative compared with previously reported variability.
We initially created a population of 25,000 model variants, then calibrated the population by excluding model variants that produced AP or CaT waveforms that were inconsistent with experimental data, as previously described by Passini et al. (34) This experimental data from healthy ventricular cardiomyocytes depicts appropriate ranges for morphological features describing the AP and CaT, which include APD20, APD50, APD90, CaT amplitude, CaD50 (CaT duration at 50% return to baseline), and CaD90 (CaT duration at 90% return to baseline). SI Appendix, Fig. S4 illustrates our simulated distributions along with the calibration ranges. The final calibrated population consisted of 10,586 model variants. A second population was created by varying only ionic channel conductances and not the other categories of parameters. Calibration resulted in a population of 8,200 cells.
Simulating Multiple Experimental Protocols.
We simulated multiple additional experimental protocols in the population, including the following: 1) altered pacing rate; 2) hypercalcemia/hypocalcemia; and 3) excitation threshold. For the pacing rate experiment, each cell was stimulated at least 200 times at 0.2 Hz and 2.5 Hz, and features from the steady-state cellular waveforms were calculated (Fig. 3A and SI Appendix, Supplementary Methods). For hypercalcemia/hypocalcemia, we changed extracellular [Ca2+] to 3.6 mM and 0.9 mM, respectively, stimulated each cell at least 200 times at 1 Hz, and calculated features from the steady-state waveforms. In the mechanistic model, this required altering the variable Cao, which controls extracellular [Ca2+]. For excitation threshold, we set Na+ current in each cell equal to zero so that AP upstrokes had to be carried by ICaL and determined the threshold stimulus current required to produce an AP.
Arrhythmogenic Triggers.
To test our pipeline’s ability to predict arrhythmogenic risk, we studied three triggers, 1) block of the rapid delayed rectifier potassium current (IKr Block), 2) augmentation of the L-type calcium current (ICaL Increase), and 3) injection of inward current (Current Injection). IKr Block mimics the actions of many potent Class III anti-arrhythmics that have proven to be arrhythmogenic. ICaL increase simulates the period at the beginning of β-adrenergic stimulation, when a temporal mismatch between phosphorylation of ICaL and IKs may temporarily create proarrhythmic conditions (47). Although the current injection trigger simulates artificial conditions created in the laboratory rather than a trigger encountered in vivo, this metric has been used in prior work as a quantitative representation of repolarization reserve (48).
Both IKr Block and ICaL Increase were simulated by scaling the conductance values for each channel, GKr and GCaL, respectively, while Current Injection was performed by injecting a constant inward current at all times that the membrane voltage exceeded −60 mV. For each perturbation, we determined an arrhythmia threshold in the baseline ventricular myocyte by gradually increasing the magnitude of the perturbation until arrhythmic behavior was observed at any time during the last 10 beats of simulation. The final threshold for each trigger was 94% block of IKr, a 15.13-fold increase in ICaL, and injection of −0.7 μA/μF current. When these triggers were applied to each cell in the virtual population, roughly half of the cells exhibited arrhythmic behavior, defined as either repolarization failure, or an EAD, any change in the voltage derivative from negative to positive occurring more than 100 ms after the AP initiation. Under these conditions, EADs were initiated by reactivation of ICaL rather than spontaneous Ca2+ release or reactivation of INa.
Supervised ML.
For each perturbation, every cell in the population was classified as either susceptible or resistant. To perform this classification task, we employed supervised ML. ML algorithms learn from data to identify patterns that relate a set of features to a binary predictor. Here, we used features computed from simulated AP and CaT waveforms, before a trigger was applied, to predict whether individual cells would exhibit arrhythmic dynamics in response to the trigger. Since we were unsure which ML classifier would be best suited for our dataset, we constructed a robust pipeline that tested each task in eight parameter-tuned classifiers. These algorithms include Support Vector Machine (SVM), Multi-Layer Perceptron (MLP), Random Forest, Naïve Bayes, Gradient Boosting, XGBoost, Logistic Regression, and K-Nearest Neighbors. We consistently found that SVM and MLP exhibited the best classification performance (SI Appendix, Fig. S6). We ran these algorithms in Python 3.7.4, using the ML package scikit-learn version 0.21.3 (49), and for each classification task, we display results from the best-performing classifier (50–52).
To train the algorithms, we split the population into 90% training and 10% testing stratified by the target class. We normalized the input features using MinMaxScaler for MLP and StandardScaler for the remaining. The MinMaxScaler normalized the features to a range of 0 and 1, while the StandardScaler normalized by removing the mean and scaling to the unit variance. To fine-tune the hyperparameters for each classifier, we applied the function GridSearchCV on the training set. This allowed us to effectively loop through a series of different parameter sets using threefold cross validation. The best parameters were then used to assess the performance of the algorithms on the test set.
To evaluate classifier performance, the primary metric we employed was the auROC. Our pipeline calculated a series of additional metrics including accuracy, positive and negative predictive value, and specificity and sensitivity, reported on our github. However, since the datasets were balanced, all metrics displayed similar trends, and only auROC is reported in the main figures for simplicity.
LASSO Regression.
To quantify the number of biological parameters needed to predict arrhythmia susceptibility for each trigger, we utilized LASSO regression (37). The random-scale factors (for G and p parameters) or offset voltages (for V parameters) were collected into an X matrix of independent variables (dimensions 10,586 × 66), and labels (resistant or susceptible) were collected into a Y vector of dependent variables (dimensions 10,586 × 1). This method outputs a β coefficient matrix that defines the relative contribution of each parameter to arrhythmia susceptibility. With LASSO regression, the penalty term iteratively sets the coefficients of insignificant parameters β to zero, thus providing a means of assessing which parameters are truly necessary to reach a particular prediction accuracy. We implemented this in Python using the LogisticRegression function in the scikit-learn package and specifying the l1 penalty. To compare the results among the three triggers, we took the number of β coefficients required to achieve an auROC of 0.95.
Supplementary Material
Footnotes
The authors declare no competing interest.
This article is a PNAS Direct Submission.
This article contains supporting information online at https://www.pnas.org/lookup/suppl/doi:10.1073/pnas.2104019118/-/DCSupplemental.
Data Availability
Anonymized code data have been deposited in Github (https://github.com/meeravarshneya1234/ArrhythmiaPredictionProject.git). Some study data available.
References
- 1.Roden D. M., Taking the “idio” out of “idiosyncratic”: Predicting torsades de pointes. Pacing Clin. Electrophysiol. 21, 1029–1034 (1998). [DOI] [PubMed] [Google Scholar]
- 2.Gillespie H. S., Lin C. C., Prutkin J. M., Arrhythmias in structural heart disease. Curr. Cardiol. Rep. 16, 510 (2014). [DOI] [PubMed] [Google Scholar]
- 3.El-Sherif N., Turitto G., Boutjdir M., Congenital long QT syndrome and torsade de pointes. Ann. Noninvasive Electrocardiol. 22, e12481 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Lahrouchi N., et al., Transethnic genome-wide association study provides insights in the genetic architecture and heritability of long QT syndrome. Circulation 142, 324–338 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Weiss J. N., et al., Perspective: A dynamics-based classification of ventricular arrhythmias. J. Mol. Cell. Cardiol. 82, 136–152 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Johnson D. M., Antoons G., Arrhythmogenic mechanisms in heart failure: Linking β-Adrenergic stimulation, stretch, and calcium. Front. Physiol. 9, 1453 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Skogestad J., Aronsen J. M., Hypokalemia-induced arrhythmias and heart failure: New insights and implications for therapy. Front. Physiol. 9, 1500 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Li Z., et al., General principles for the validation of proarrhythmia risk prediction models: An extension of the CiPA in silico strategy. Clin. Pharmacol. Ther. 107, 102–111 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Shah R. R., Hondeghem L. M., Refining detection of drug-induced proarrhythmia: QT interval and TRIaD. Heart Rhythm 2, 758–772 (2005). [DOI] [PubMed] [Google Scholar]
- 10.Lester R. M., Paglialunga S., Johnson I. A., QT assessment in early drug development: The long and the short of it. Int. J. Mol. Sci. 20, 1324 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Antoniou C. K., et al., QT prolongation and malignant arrhythmia: How serious a problem? Eur. Cardiol. 12, 112–120 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Roden D. M., Predicting drug-induced QT prolongation and torsades de pointes. J. Physiol. 594, 2459–2468 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Kannankeril P. J., Norris K. J., Carter S., Roden D. M., Factors affecting the degree of QT prolongation with drug challenge in a large cohort of normal volunteers. Heart Rhythm 8, 1530–1534 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Corrias A., et al., Arrhythmic risk biomarkers for the assessment of drug cardiotoxicity: From experiments to computer simulations. Philos. Trans.- Royal Soc., Math. Phys. Eng. Sci. 368, 3001–3025 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Hondeghem L. M., Drug-Induced Q. T., Drug-induced QT prolongation and torsades de pointes: An all-exclusive relationship or time for an amicable separation? Drug Saf. 41, 11–17 (2018). [DOI] [PubMed] [Google Scholar]
- 16.Kleiman R. B., Shah R. R., Morganroth J., Replacing the thorough QT study: Reflections of a baby in the bath water. Br. J. Clin. Pharmacol. 78, 195–201 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Feeny A. K., et al., Artificial intelligence and machine learning in arrhythmias and cardiac electrophysiology. Circ. Arrhythm. Electrophysiol. 13, e007952 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Vamathevan J., et al., Applications of machine learning in drug discovery and development. Nat. Rev. Drug Discov. 18, 463–477 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Varshneya M., Devenyi R. A., Sobie E. A., Slow delayed rectifier current protects ventricular myocytes from arrhythmic dynamics across multiple species: A computational study. Circ. Arrhythm. Electrophysiol. 11, e006558 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Pueyo E., et al., Experimentally-based computational investigation into beat-to-beat variability in ventricular repolarization and its response to ionic current inhibition. PLoS One 11, e0151461 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Muszkiewicz A., et al., Variability in cardiac electrophysiology: Using experimentally-calibrated populations of models to move beyond the single virtual physiological human paradigm. Prog. Biophys. Mol. Biol. 120, 115–127 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Ni H., Morotti S., Grandi E., A heart for diversity: Simulating variability in cardiac arrhythmia research. Front. Physiol. 9, 958 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Lancaster M. C., Sobie E. A., Improved prediction of drug-induced torsades de pointes through simulations of dynamics and machine learning algorithms. Clin. Pharmacol. Ther. 100, 371–379 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Yang P. C., et al., A computational pipeline to predict cardiotoxicity: From the atom to the rhythm. Circ. Res. 126, 947–964 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Parikh J., Gurev V., Rice J. J., Novel two-step classifier for torsades de pointes risk stratification from direct features. Front. Pharmacol. 8, 816 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Sahli-Costabal F., Seo K., Ashley E., Kuhl E., Classifying drugs by their arrhythmogenic risk using machine learning. Biophys. J. 118, 1165–1176 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.O’Hara T., Virág L., Varró A., Rudy Y., Simulation of the undiseased human cardiac ventricular action potential: Model formulation and experimental validation. PLoS Comput. Biol. 7, e1002061 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Devenyi R. A., et al., Differential roles of two delayed rectifier potassium currents in regulation of ventricular action potential duration and arrhythmia susceptibility. J. Physiol. 595, 2301–2317 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Sobie E. A., Parameter sensitivity analysis in electrophysiological models using multivariable regression. Biophys. J. 96, 1264–1274 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Belardinelli L., Antzelevitch C., Vos M. A., Assessing predictors of drug-induced torsade de pointes. Trends Pharmacol. Sci. 24, 619–625 (2003). [DOI] [PubMed] [Google Scholar]
- 31.Sarkar A. X., Sobie E. A., Quantification of repolarization reserve to understand interpatient variability in the response to proarrhythmic drugs: A computational analysis. Heart Rhythm 8, 1749–1755 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Cummins M. A., Dalal P. J., Bugana M., Severi S., Sobie E. A., Comprehensive analyses of ventricular myocyte models identify targets exhibiting favorable rate dependence. PLoS Comput. Biol. 10, e1003543 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Britton O. J., Bueno-Orovio A., Virág L., Varró A., Rodriguez B., The electrogenic na+/k+ pump is a key determinant of repolarization abnormality susceptibility in human ventricular cardiomyocytes: A population-based simulation study. Front. Physiol. 8, 278 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Passini E., et al., Mechanisms of pro-arrhythmic abnormalities in ventricular repolarisation and anti-arrhythmic therapies in human hypertrophic cardiomyopathy. J. Mol. Cell. Cardiol. 96, 72–81 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Madhvani R. V., et al., Shaping a new Ca2+ conductance to suppress early afterdepolarizations in cardiac myocytes. J. Physiol. 589, 6081–6092 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Madhvani R. V., et al., Targeting the late component of the cardiac L-type Ca2+ current to suppress early afterdepolarizations. J. Gen. Physiol. 145, 395–404 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Tibshirani R., Regression shrinkage and selection via the lasso. J. R. Stat. Soc. B 58, 267–288 (1996). [Google Scholar]
- 38.Giudicessi J. R., Noseworthy P. A., Friedman P. A., Ackerman M. J., Urgent guidance for navigating and circumventing the QTc-prolonging and torsadogenic potential of possible pharmacotherapies for Coronavirus Disease 19 (COVID-19). Mayo Clin. Proc. 95, 1213–1221 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Chang K. C., et al., Uncertainty quantification reveals the importance of data variability and experimental design considerations for in Silico proarrhythmia risk assessment. Front. Physiol. 8, 917 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Passini E., et al., Drug-induced shortening of the electromechanical window is an effective biomarker for in silico prediction of clinical risk of arrhythmias. Br. J. Pharmacol. 176, 3819–3833 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Galloway C. D., et al., Development and validation of a deep-learning model to screen for hyperkalemia from the electrocardiogram. JAMA Cardiol. 4, 428–436 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Hannun A. Y., et al., Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat. Med. 25, 65–69 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Azodi C. B., Tang J., Shiu S. H., Opening the black box: Interpretable machine learning for geneticists. Trends Genet. 36, 442–455 (2020). [DOI] [PubMed] [Google Scholar]
- 44.Maltsev V. A., et al., Novel, ultraslow inactivating sodium current in human ventricular cardiomyocytes. Circulation 98, 2545–2552 (1998). [DOI] [PubMed] [Google Scholar]
- 45.Li G. R., et al., Transmembrane ICa contributes to rate-dependent changes of action potentials in human ventricular myocytes. Am. J. Physiol. 276, H98–H106 (1999). [DOI] [PubMed] [Google Scholar]
- 46.Iost N., et al., Delayed rectifier potassium current in undiseased human ventricular myocytes. Cardiovasc. Res. 40, 508–515 (1998). [DOI] [PubMed] [Google Scholar]
- 47.Xie Y., Grandi E., Puglisi J. L., Sato D., Bers D. M., β-adrenergic stimulation activates early afterdepolarizations transiently via kinetic mismatch of PKA targets. J. Mol. Cell. Cardiol. 58, 153–161 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Gaur N., et al., Validation of quantitative measure of repolarization reserve as a novel marker of drug induced proarrhythmia. J. Mol. Cell. Cardiol. 145, 122–132 (2020). [DOI] [PubMed] [Google Scholar]
- 49.Pedregosa F., et al., Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011). [Google Scholar]
- 50.Mei X., et al., Artificial intelligence-enabled rapid diagnosis of patients with COVID-19. Nat. Med. 26, 1224–1228 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Braga R. C., et al., Tuning HERG out: Antitarget QSAR models for drug development. Curr. Top. Med. Chem. 14, 1399–1415 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Ogura K., Sato T., Yuki H., Honma T., Support vector machine model for hERG inhibitory activities based on the integrated hERG database using descriptor selection by NSGA-II. Sci. Rep. 9, 12220 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Anonymized code data have been deposited in Github (https://github.com/meeravarshneya1234/ArrhythmiaPredictionProject.git). Some study data available.