Next Article in Journal
Nondestructive Detection for Egg Freshness Based on Hyperspectral Scattering Image Combined with Ensemble Learning
Previous Article in Journal
Self-Referenced Multifrequency Phase-Resolved Luminescence Spectroscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Sudden Cardiac Death Risk with a Support Vector Machine Based on Heart Rate Variability and Heartprint Indices

by
Marisol Martinez-Alanis
1,
Erik Bojorges-Valdez
2,
Niels Wessel
3 and
Claudia Lerma
4,*
1
Facultad de Ingeniería, Universidad Anáhuac México, Huixquilucan 52786, Estado de Mexico, Mexico
2
Departamento de Estudios en Ingeniería para la Innovación, Universidad Iberoamericana Ciudad de México, Ciudad de México 01219, Mexico
3
Department of Physics, Humboldt-Universität zu Berlin, 10099 Berlin, Germany
4
Departamento de Instrumentación Electromecánica, Instituto Nacional de Cardiología Ignacio Chávez, Ciudad de México 14089, Mexico
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(19), 5483; https://doi.org/10.3390/s20195483
Submission received: 4 August 2020 / Revised: 11 September 2020 / Accepted: 22 September 2020 / Published: 25 September 2020
(This article belongs to the Section Biomedical Sensors)

Abstract

:
Most methods for sudden cardiac death (SCD) prediction require long-term (24 h) electrocardiogram recordings to measure heart rate variability (HRV) indices or premature ventricular complex indices (with the heartprint method). This work aimed to identify the best combinations of HRV and heartprint indices for predicting SCD based on short-term recordings (1000 heartbeats) through a support vector machine (SVM). Eleven HRV indices and five heartprint indices were measured in 135 pairs of recordings (one before an SCD episode and another without SCD as control). SVMs (defined with a radial basis function kernel with hyperparameter optimization) were trained with this dataset to identify the 13 best combinations of indices systematically. Through 10-fold cross-validation, the best area under the curve (AUC) value as a function of γ (gamma) and cost was identified. The predictive value of the identified combinations had AUCs between 0.80 and 0.86 and accuracies between 80 and 86%. Further SVM performance tests on a different dataset of 68 recordings (33 before SCD and 35 as control) showed AUC = 0.68 and accuracy = 67% for the best combination. The developed SVM may be useful for preventing imminent SCD through early warning based on electrocardiogram (ECG) or heart rate monitoring.

1. Introduction

Sudden cardiac death (SCD) refers to death from a cardiac cause within 1 h of symptom onset or during sleep in a patient who was previously stable [1]. In most cases, SCD is initiated by a transition from normal sinus rhythm to ventricular tachycardia (VT) or ventricular fibrillation (VF) that leads to asystole (Figure 1) [2]. Since SCD is preventable in those wearing an implantable cardioverter-defibrillator (ICD), identifying those that may benefit from an ICD is a great challenge, which remains elusive despite the many current risk-stratification tools [1,2,3].
Heart rate variability (HRV) refers to the time series of the fluctuations in the beat-to-beat heart period [4]. HRV is often obtained from the electrocardiogram (ECG) where the QRS complex of each beat is identified, and the time interval between consecutive beats (RR interval) is measured. HRV comprises only RR intervals between normal beats (NN intervals) (Figure 1). Most research on SCD prediction based on HRV indices has focused on SCD events that occur within long-term follow-up intervals (at least one year) and used HRV indices obtained from 24 h recordings (with time series of approximately 100,000 beats) [5,6]. Few studies have tested the prediction of SCD events within long-term follow-up intervals using HRV indices measured from 15 min recordings (with time series of about 1000 beats) [7,8]. Other studies have documented the predictive value of HRV indices for identifying SCD events in the short term (within the 72 h after arriving in the emergency room) [9] or imminent SCD (within the following 15 min in patients with HRV monitored by Holter recordings or ICDs) [10,11].
Since the HRV time series involve only heartbeats arising from the sinus node (the normal pacemaker of the heart), HRV indices do not include information about ectopic beats that arise from the ventricles, which are called premature ventricular complexes (PVCs). The occurrence of frequent PVCs increases the risk of SCD [12], and usually, one or more PVCs trigger an episode of VT or VF that leads to SCD [2]. The heartprint is a method developed for the quantitative analysis of different beat-to-beat intervals that involve normal sinus beats (labeled as N) and PVCs (labeled as V), including the coupling interval (CI) and the number of intervening beats between two PVCs (NIB) (Figure 1) [13]. Based on 24 h-length recordings, heartprint analysis has shown that having repeating forms of PVCs and low CI variability are risk markers for SCD in the long period of 2 years [14]. Additionally, having repeated forms of PVCs and short mean CI values predicts imminent SCD [11].
Beyond the traditional statistical methods for assessing the predictive value of HRV indices [5,7,8] and heartprint indices [11,14], different classification strategies have been proposed to predict SCD based on HRV indices, including support vector machines (SVM) [9,10] and artificial neural networks [15]. However, the studies based on different classifiers included only HRV indices and were tested on small datasets. In the present study, the aim was to develop an SVM for the prediction of imminent SCD based on combinations of both HRV and heartprint indices. Different combinations of indices were tested systematically to find an optimal combination that achieved the best performance for SCD prediction.

2. Materials and Methods

2.1. Data

In this study, two datasets of RR interval time series were used: one dataset was used to train the SVM, while the other dataset was used to test the performance. This procedure guarantees the evaluation of classification models on completely unseen data, and it is a novelty regarding previous work (Figure 2).
The training dataset was obtained from the Spontaneous Ventricular Tachyarrhythmia Database (MVTDB, available at https://physionet.org/content/mvtdb/1.0/) [16]. This dataset includes 135 pairs of RR-interval time series obtained from electrograms recorded with ICDs (Medtronic Jewel Plus TM ICD 7218), each pair consisting of one recording ended before a VT or VF episode and another recording obtained during the follow-up visit (control recording). These recordings were obtained from 78 patients, whose clinical characteristics are shown in Table 1.
The second dataset was obtained from the MARITA study (Multivariate Analysis of RR-Intervals to predict ventricular TachyArrhythmia) [17]. The MARITA data of this study are available from the corresponding author on request. Sixty-eight RR-interval recordings were obtained from electrograms recorded with ICDs (Biotronik GmbH & Co, Berlin, Germany, model Biotronik Belos or microPhylax) from 13 patients (Table 1). From the sixty-eight recordings, thirty-three were taken before a tachyarrhythmia episode and thirty-five were used as control.
Compared to those in the MARITA dataset, the patients in the MVTDB dataset had lower left ventricular ejection fractions and less use of beta-blockers or other medications (Table 1). All other characteristics of the patients had no significant differences between the datasets.

2.2. Time Series Processing

Each of the recordings in both datasets contains the information of the RR-interval duration in seconds and the type of beat corresponding to each interval. If the beat was of sinus origin, it is marked with an “N” (normal beat), while the beats originated by a PVC are marked with a “V” (ventricular beat). The beat classification was based on the application of an adaptive filtering technique [18], which was revised manually by an expert to ensure correct beat classification. Additionally, the same filtering technique was used to replace the RR intervals from PVCs with estimated NN intervals. This provided an additional time series of only NN intervals for each recording (HRV time series).
Once all the time series were obtained, it was necessary to ensure all the recordings from both datasets had the same characteristics. Both datasets were checked to ensure all the recordings contained no PVCs at the end of the recording, since these could be an indicator of the start of the tachyarrhythmia episode, biasing the classifier with a false performance enhancement. Another important characteristic of the training dataset was that the duration of the recordings was around 1000 beats (on average, 15 min), while in the test dataset, the recordings were much longer. Therefore, the test dataset recordings were truncated to include the last 1000 beats only. By doing so, all the recordings from both datasets included the last 1000 beats before the occurrence of a tachyarrhythmia episode or 1000 beats from control recordings.

2.3. Feature Extraction of HRV and Heartprint Indices

HRV indices (based on time series analysis derived from NN intervals only) were calculated according to international recommendations [4], including the following time-domain indices: the average of the NN intervals (meanNN), the standard deviation of the NN intervals (SDNN), the root-mean-squared successive differences between consecutive beats (RMSSD), and the percentage of beats with differences greater than 50 ms between consecutive beats (pNN50). Additionally, the frequency-domain indices were estimated: the mean power within the low-frequency band (LF, 0.04 to 0.15 Hz), mean power within the high-frequency band (HF, 0.15 to 0.4 Hz), LF in normalized units (LFnu), HF in normalized units (HFnu) and LF/HF ratio. Power spectral analysis was performed using Welch’s periodogram method with a Hanning window of 300 data points with an overlap of 50%; NN time series were interpolated to achieve three samples per second, and linear trends were eliminated before the power spectral estimation. These HRV indices were estimated in 5 min-length segments, and an average was calculated from all the segments in each recording. Additionally, the average of the NN intervals in the last minutes of the recording (meanNN l.m.) and the standard deviation of the NN intervals in the last minutes of the recordings (SDNN l.m.) were measured [11,19].
The heartprint of each recording was obtained according to the method described in previous work [11,19,20]. The heartprint indices estimated were the number of PVCs/hour, mean coupling interval (meanCI), standard deviation of the coupling interval (SDCI), number of intervening sinus beats between consecutive PVCs (NIB) and most frequent NIB number (also called the NIB score or SNIB).
Prior to machine-learning modeling, all the HRV and heartprint indices were transformed to a linear scale within the range (0–1) by subtracting the minimum and dividing by the maximum value. The aim of this process was to avoid bias from indices with larger numerical ranges in their original scales. The same transformation factor was used in the training and performance tests. This could produce values for the tests outside the 0-to-1 range but did not bias the machine-learning approach to lead to erroneous results and is a better simulation for the behavior for online detection.

2.4. Classification

For the classification task, SVMs with the Radial Basis Function (RBF) kernel (Equation (1)) [21] were tuned by hyperparameter optimization. The RBF kernel has shown better performance compared to others [22,23,24]. This algorithm (SVM) was used because of the relatively low number of samples, which did not allow the use of a deep-learning approach in this study.
K(xi, xj) = exp(−γ ‖xixj‖^2), γ > 0
The RBF kernel (K) was selected since it is a Gaussian function that maps the original feature map to a nonlinear space [25], based on data distribution. The γ (gamma) parameter is used to control the smoothness of the border, and xi, xj refer to the data points (Equation (2)):
y = sign ( i K ( ω i ,   x ) + C )
where y is the label of any data point (x) to be classified, the learning process is referenced to find those w vectors (support vectors) that describe the border or frontier decision, and C refers to the cost.
In addition, it is necessary to select the indices that will be included in the SVM training. There were 16 available indices: 11 HRV indices and 5 heartprint indices, as described in Section 2.3. In order to perform the index selection for the SVM, a greedy search was performed, where different combinations of indices were tested to find the combination that produced the best results (based on the cross-validation criteria described below). The process started by testing every possible combination of two indices. Once the best combination of two indices was found, a third index was added. This process continued until all possible combinations, with a maximum of 16 indices, were tested. The combination with the best overall performance was selected for the SVM training.
To select the optimum values for both cost and the γ parameter, it was also necessary to conduct an exhaustive search. Hyperparameter optimization was performed by using a non-linear grid. For cost, a range from 0.5 to 10 in increments of 0.5 was used, while for γ, a range from 2−15 to 23, with an incremental exponent increase of 0.5, was used. In order to improve the computational time, the selection of the best combination of indices was combined with the selection of the optimal values for cost and γ. The complete process was performed using a 10-fold cross-validation.
The training data were separated into 10 groups using the following procedure: for each patient, a pair or recordings was selected—one control recording and one recording preceding a tachyarrhythmia episode. This selection reduces the classification bias and ensures that more than one subject is used on each model. Once these recordings were selected, the patients were randomly distributed across the 10 groups. Both recordings corresponding to a patient were included in the group. As a result, every group had the same numbers of control recordings and of recordings preceding tachyarrhythmia. This procedure fixes the class prevalence and random threshold to 0.5, and the specificity and sensitivity levels to the same value.
Once the groups were obtained, the cross-validation was repeated several times. For each possible combination of indices, the optimum values for C and γ were obtained using a cross validation. Once these values were obtained for every combination of indices, the combination that produced the best values in the cross-validation process was selected.
After defining the optimum hyperparameters for the kernel function and for the index combination, the SVM was trained using all the records from the MVTDB dataset. The adjusted values for the selected indices were included, along with the outcome for each record (either ventricular tachyarrhythmia or control). The SVM obtained from this training process was then used on the MARITA dataset records for performance testing.

2.5. Statistical Analysis

Nominal variables are described as absolute values and percentages and were compared between groups by chi-squared tests or Fisher’s exact test. For continuous variables, the normality of distribution was tested by a Kolmogorov–Smirnov test. Variables with normal distributions are described as means and standard deviations and were compared by Student’s t-tests for paired or independent samples. Otherwise, these variables are described as medians (25th percentile–75th percentile) and were compared by Mann–Whitney U tests or Wilcoxon signed-rank tests. The effectiveness of the classifications was evaluated by receiver operator characteristic (ROC) curve analysis and the estimation of the area under the curve (AUC) for each index and the combinations of indices. The statistical analysis was performed with the software SPSS version 21 (IBM Corp, Armonk, NY, USA). The software MATLAB (The MathWorks Inc., Natick, MA, USA) and the library LibSVM (available at https://www.csie.ntu.edu.tw/~cjlin/libsvm/) were used for the validation and performance tests of the support vector machine. A p-value < 0.05 was considered as statistically significant.

3. Results

3.1. Conventional Statistical Analysis of Heart Rate Variability and Heartprint Indices

Table 2 shows the heart rate variability and heartprint indices compared by dataset (MARITA or MVTDB) and recording type (before VT/VF or control). In both datasets, the meanNN and meanNN in the last minute (l.m.) were shorter (i.e., heart rates were faster) in the recordings before VT/VF than in the control recordings (indicated by asterisks, *). Additionally, the recordings before VT/VF had larger LF/HF (i.e., larger sympathetic hyperactivity) and more PVCs/hour than control recordings (in both datasets). Only in the MVTDB dataset did the recordings before VT/VF show larger SDNN l.m. and shorter meanCI compared to the control recordings. In recordings before VT/VF, there were no significant differences between datasets, except for a larger LF/HF and smaller SDNN l.m. in the MARITA dataset compared to MVTDB (symbol &). By contrast, in the control recordings, there were several differences between the datasets: the MVTDB had a larger LFnu and LF/HF, and smaller HFnu, meanNN l.m. and meanCI.

3.2. Definition and Validation of the Support Vector Machine

An exhaustive search was carried out to define the best combination of the indices cost and γ’s values by a 10-fold cross-validation. In each validation, the area under the ROC curve (AUC) was calculated and the combination that achieved the highest AUC value was selected. Figure 3 shows an example of the cross-validation process and the corresponding results for a combination of five indices.
Table 3 shows the combinations of indices tested in the support vector machine. These indices were a combination of both HRV and heartprint characteristics. The selected HRV indices were meanNN, SDNN, RMSsd, pNN50, LFnu, HFnu and LF/HF. The values for meanNN and SDNN in the last minute before the tachyarrhythmia episode were also considered (meanNN l.m. and SDNN l.m.). The selected heartprint indices were PVCs/hour, meanCI, SDCI, sNIB and NIBmax.
The results of the cross validation for the support vector machine definition are shown in Table 4. This table shows the best results for each combination, from 2 to 14 indices. Each combination shows the average AUC values for the 10 folds of the cross-validation, along with the accuracy and the obtained values for cost and γ. A comparison of the AUC values for the different combinations of indices was carried out; however, there was no statistical significance between the different combinations. As a result, the combinations of four and five indices were selected since they presented, respectively, the highest accuracy and the highest AUC value.

3.3. Support Vector Machine Training and Performance Tests

Based on the selected characteristics for the SVM, two training processes were performed, one for the four-indices and one for the five-indices combination (Table 5). For the training stage, all the records of the MVTDB dataset were used to obtain the final SVM model, compared to the 10-fold cross validation where only a selected number of records was used. After obtaining this final model, the performance of the SVM was tested on the MARITA dataset. A lower performance was observed in the testing phase compared to the training phase, which was expected due to different methodological factors, as discussed below.

4. Discussion

The main contribution of this work is showing that combining HRV and heartprint indices through a support vector machine allows the identification of an increased risk of an imminent tachyarrhythmia episode in patients wearing an ICD. Specifically, combining heartprint indices such as sdCI and meanCI with HRV indices such as meanNN (both the average and in the last minute before a tachyarrhythmia episode) and LF/HF can be used for potential risk identification. Previous work based on conventional statistical analyses evaluated the predictive value for tachyarrhythmia of several HRV indices [15,19,26,27] and heartprint indices [14,19]. Among the HRV indices, the one reported with the best prognostic value for a tachyarrhythmia is a shorter meanNN (i.e., a faster heart rate) [27,28]. The grid search for the best combinations of indices confirmed the importance of such a simple feature, since the meanNN in the last minute and the averaged meanNN were among the three indices with the best predictive values. Moreover, having an increased heart rate may be associated with chronic or transient sympathetic nervous hyperactivity before a tachyarrhythmia episode [29]. Notably, another HRV index (LF/HF) that is also associated with higher sympathetic nervous activity prior to some forms of VT [30] was included in the combinations with higher predictive values. Notably, these indices that are compatible with a scenario of higher sympathetic hyperactivity were significantly different before VT/VF than in the control recordings in both datasets (Table 2), despite the differences in treatment with beta-blockers (i.e., drugs that decrease the effect of sympathetic nervous activity on the heart); sympathetic hyperactivity was more frequent in the patients of the MARITA dataset than in those of the MVTDB dataset (Table 1). Nevertheless, the physiological interpretation of LH/HF has to be considered with caution, as it has been debated in the literature for a long time [31].
Regarding the heartprint indices, the ones involved in the best performance combinations are related to the CI, having either high variability of the CI (i.e., a larger SDCI) or more premature PVCs (i.e., shorter meanCI). The heartprint index NIBmax, which is related to a high incidence of PVCs with a certain repetitive pattern, also appeared in some combinations with good predictive performance. These results agree with previous conventional statistical analyses [11,14]. Our results are the first report that considered combining heartprint with HRV indices in a machine-learning algorithm to predict SCD.
The approach of support vector machines has been used previously for arrhythmia identification based on data derived from ECG [32,33,34,35]. Some of these recordings were obtained from hospitalized patients, while others were obtained from 24 h ambulatory Holter recordings. All these previous studies used long-term recordings, in contrast with the present work, which focused on the analysis of short-term recordings (~1000 heartbeats). Our results show that several combinations of indices had outstanding performance for predicting imminent tachyarrhythmia. These indices obtained from short-term recordings could be tested as predictors of tachyarrhythmia and other cardiac events using implantable cardiac monitors [36], as predictors of mortality in patients in the intensive care unit [34], and as predictors of a heart attack in patients in the emergency room [9]. Nevertheless, the support vector machine was tested exclusively on data obtained from patients with a high risk of SCD who were wearing an ICD. It is necessary to extend this analysis to data from the general population with an unknown risk of SCD and to assess the impact of comorbidities on the use of both HRV and heartprint indices as risk markers for SCD.
In the present work, the heartbeat classification (either as normal or PVC) was obtained from RR intervals with a previously validated algorithm that is highly efficient in most cases [19]. Such an algorithm is less efficient in RR-interval time series with a high number of complex PVCs, and heartbeat classification had to be corrected manually [11,19]. However, having an ECG signal is optimal for ensuring proper beat classification, even when using an automatic detection and classification method, through direct comparison against the ECG signal. Further work is needed to test the support vector machine proposed in the present study with data where proper beat classification was verified against the ECG signal.
The selection of the indices used for training and testing with the support vector machine involved no preprocessing of the data (e.g., transforming the scale of some indices). The selection of the indices was based solely on their performance in the grid search and cross validation on the training dataset. In a future exploration, it will be interesting to evaluate the effect of preprocessing the data to improve the performance of the vector support machine. Such exploration requires a new analysis of the data where the characteristics of the indices are checked to choose the adequate processing that would effectively improve the predictive capacity of the vector support machine.
Regarding the performance of the final SVM model, which was lower in the testing stage compared to the training stage, such a difference is expected due to the use of a testing dataset that proceeds from a different population than that of the training dataset. Machine-learning problems focus on the search for target functions that are able to correctly predict outcomes with a different testing dataset that is not necessarily similar to the training dataset [37]. Notably, previous studies of machine-learning methods for predicting imminent SCD events did not test their SVM models with different training datasets but used other sampling strategies from the same training dataset [9,10,15,38,39]. The lower performance achieved using a completely unseen dataset could be associated with an overfitting caused by the normalization procedure, and it could be desirable to test other normalization techniques such as elastic nets or standardization. Nevertheless, by using a different testing dataset, the SVM model presented in this work was shown to demonstrate a series of indices that are useful in the detection of an imminent tachyarrhythmia episode.
Future work can include the use of other classification methods, such as neural networks, random forest, genetic algorithms, and deep-learning or hidden-Markov models, to compare their individual or combined performance in predicting tachyarrhythmia [22,23,24,40,41,42]. Additionally, other indices (for instance, those derived from the non-linear analysis of HRV) could be explored. It is also desirable to test the performance of these methodologies for risk classification in other types of patients with other types of devices, such as ambulatory patients with implantable cardiac monitors or hospitalized patients with ECG monitors.

5. Conclusions

The development of a support vector machine in this work showed combinations of both HRV and heartprint indices with outstanding predictive value for imminent tachyarrhythmia in patients wearing an ICD. These findings based on short-term recordings may be useful for preventing SCD through the addition of early warnings in settings with RR-interval monitoring such as intensive care units or the emergency room.

Author Contributions

Conceptualization, M.M.-A., E.B.-V. and C.L.; methodology, M.M.-A., E.B.-V., N.W. and C.L.; software, M.M.-A. and C.L.; validation, M.M.-A., E.B.-V., N.W. and C.L.; formal analysis, M.M.-A. and E.B.-V.; investigation, M.M.-A. and C.L.; resources, N.W. and C.L.; data curation, M.M.-A., N.W. and C.L.; writing—original draft preparation, M.M.-A. and C.L.; writing—review and editing, M.M.-A., E.B.-V., N.W. and C.L.; visualization, M.M.-A. and C.L.; supervision, E.B.-V. and C.L.; project administration, C.L.; funding acquisition, M.M.-A., and E.B.-V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

This research received no grant from any funding agency in the public, commercial or not-for-profit sectors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Deyell, M.W.; Krahn, A.D.; Goldberger, J.J. Sudden cardiac death risk stratification. Circ. Res. 2015, 116, 1907–1918. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Lerma, C.; Glass, L. Predicting the risk of sudden cardiac death. J. Physiol. 2016, 594, 2445–2458. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Mehra, R. Global public health problem of sudden cardiac death. J. Electrocardiol. 2007, 40, S118–S122. [Google Scholar] [CrossRef] [PubMed]
  4. Malik, M.; Bigger, J.T.; Camm, A.J.; Kleiger, R.E.; Malliani, A.; Moss, A.J.; Schwartz, P.J. Heart rate variability. Standards of measurement, physiological interpretation, and clinical use. Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Eur. Heart J. 1996, 17, 354–381. [Google Scholar] [CrossRef] [Green Version]
  5. Au-Yeung, W.-T.M.; Reinhall, P.G.; Poole, J.E.; Anderson, J.; Johnson, G.; Fletcher, R.D.; Moore, H.J.; Mark, D.B.; Lee, K.L.; Bardy, G.H. SCD-HeFT: Use of R-R interval statistics for long-term risk stratification for arrhythmic sudden cardiac death. Hear. Rhythm 2015, 12, 2058–2066. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Huikuri, H.V.; Raatikainen, M.J.P.; Moerch-Joergensen, R.; Hartikainen, J.; Virtanen, V.; Boland, J.; Anttonen, O.; Hoest, N.; Boersma, L.V.A.; Platou, E.S.; et al. Prediction of fatal or near-fatal cardiac arrhythmia events in patients with depressed left ventricular function after an acute myocardial infarction. Eur. Heart J. 2009, 30, 689–698. [Google Scholar] [CrossRef] [PubMed]
  7. Skinner, J.E.; Meyer, M.; Dalsey, W.C.; Nester, B.A.; Ramalanjaona, G.; O’Neil, B.J.; Mangione, A.; Terregino, C.; Moreyra, A.; Weiss, D.N.; et al. Risk stratification for arrhythmic death in an emergency department cohort: A new method of nonlinear PD2i analysis of the ECG. Ther. Clin. Risk Manag. 2008, 4, 689–697. [Google Scholar] [CrossRef] [Green Version]
  8. Skinner, J.E.; Meyer, M.; Nester, B.A.; Geary, U.; Taggart, P.; Mangione, A.; Ramalanjaona, G.; Terregino, C.; Dalsey, W.C. Comparison of linear-stochastic and nonlinear-deterministic algorithms in the analysis of 15-minute clinical ECGs to predict risk of arrhythmic death. Ther. Clin. Risk Manag. 2009, 5, 671–682. [Google Scholar] [CrossRef] [Green Version]
  9. Ong, M.E.H.; Lee Ng, C.H.; Goh, K.; Liu, N.; Koh, Z.X.; Shahidah, N.; Zhang, T.T.; Fook-Chong, S.; Lin, Z. Prediction of cardiac arrest in critically ill patients presenting to the emergency department using a machine learning score incorporating heart rate variability compared with the modified early warning score. Crit. Care 2012, 16, R108. [Google Scholar] [CrossRef] [Green Version]
  10. Fujita, H.; Acharya, U.R.; Sudarshan, V.K.; Ghista, D.N.; Sree, S.V.; Eugene, L.W.J.; Koh, J.E.W. Sudden cardiac death (SCD) prediction based on nonlinear heart rate variability features and SCD index. Appl. Soft Comput. 2016, 43, 510–519. [Google Scholar] [CrossRef]
  11. Martínez-Alanis, M.; Ruiz-Velasco, S.; Lerma, C. Quantitative analysis of ventricular ectopic beats in short-term RR interval recordings to predict imminent ventricular tachyarrhythmia. Int. J. Cardiol. 2016, 225, 226–233. [Google Scholar] [CrossRef] [PubMed]
  12. Carrim, Z.I.; Khan, A.A. Mean frequency of premature ventricular complexes as predictor of malignant ventricular arrhythmias. Mt. Sinai J. Med. 2005, 72, 374–380. [Google Scholar]
  13. Schulte-Frohlinde, V.; Ashkenazy, Y.; Goldberger, A.L.; Ivanov, P.C.; Costa, M.; Morley-Davies, A.; Stanley, H.E.; Glass, L. Complex patterns of abnormal heartbeats. Phys. Rev. E. Stat. Nonlin. Soft Matter Phys. 2002, 66, 031901. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Lerma, C.; Gorelick, A.; Ghanem, R.N.; Glass, L.; Huikuri, H.V. Patterns of ectopy leading to increased risk of fatal or near-fatal cardiac arrhythmia in patients with depressed left ventricular function after an acute myocardial infarction. Europace 2013, 15, 1304–1312. [Google Scholar] [CrossRef] [PubMed]
  15. Joo, S.; Choi, K.J.; Huh, S.J. Prediction of spontaneous ventricular tachyarrhythmia by an artificial neural network using parameters gleaned from short-term heart rate variability. Expert Syst. Appl. 2012, 39, 3862–3866. [Google Scholar] [CrossRef]
  16. Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.-K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet. Circulation 2000, 101, E215–E220. [Google Scholar] [CrossRef] [Green Version]
  17. Schirdewan, A.; Meyerfeldt, U.; Wessel, N.; Bondke, H.J.; Schreiber, P.; Sadowski, R.; Kamke, W.; Wiedemann, M. 1091–211 Heart rate dynamics before the onset of ventricular tachyarrhythmias: Results of the cardioverter defibrillator registry MARITA. J. Am. Coll. Cardiol. 2004, 43, A125–A126. [Google Scholar] [CrossRef] [Green Version]
  18. Wessel, N.; Voss, A.; Malberg, H.; Ziehmann, C.; Voss, H.U.; Schirdewan, A.; Meyerfeldt, U.; Kurths, J. Nonlinear analysis of complex phenomena in cardiological data. Herzschrittmachertherapie Elektrophysiologie 2000, 11, 159–173. [Google Scholar] [CrossRef]
  19. Lerma, C.; Wessel, N.; Schirdewan, A.; Kurths, J.; Glass, L. Ventricular arrhythmias and changes in heart rate preceding ventricular tachycardia in patients with an implantable cardioverter defibrillator. Med. Biol. Eng. Comput. 2008, 46, 715–727. [Google Scholar] [CrossRef]
  20. Lerma, C.; Lee, C.F.; Glass, L.; Goldberger, A.L. The rule of bigeminy revisited: Analysis in sudden cardiac death syndrome. J. Electrocardiol. 2007, 40, 78–88. [Google Scholar] [CrossRef]
  21. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning; Springer Series in Statistics; Springer: New York, NY, USA, 2009; ISBN 978-0-387-84857-0. [Google Scholar]
  22. Rubio, J.D.J. SOFMLS: Online self-organizing fuzzy modified least-squares network. IEEE Trans. Fuzzy Syst. 2009, 17, 1296–1309. [Google Scholar] [CrossRef]
  23. Chiang, H.-S.; Chen, M.-Y.; Huang, Y.-J. Wavelet-Based EEG Processing for Epilepsy Detection Using Fuzzy Entropy and Associative Petri Net. IEEE Access 2019, 7, 103255–103262. [Google Scholar] [CrossRef]
  24. Elias, I.; de Jesús Rubio, J.; Martinez, D.I.; Vargas, T.M.; Garcia, V.; Mujica-Vargas, D.; Meda-Campaña, J.A.; Pacheco, J.; Gutierrez, G.J.; Zacarias, A. Genetic algorithm with radial basis mapping network for the electricity consumption modeling. Appl. Sci. 2020, 10, 4239. [Google Scholar] [CrossRef]
  25. Chang, C.-C.; Lin, C.-J. LIBSVM. ACM Trans. Intell. Syst. Technol. 2011, 2, 1–27. [Google Scholar] [CrossRef]
  26. Huikuri, H.V.; Exner, D.V.; Kavanagh, K.M.; Aggarwal, S.G.; Mitchell, L.B.; Messier, M.D.; Becker, D.; Sheldon, R.S.; Bloch Thomsen, P.-E.; CARISMA and REFINE Investigators. Attenuated recovery of heart rate turbulence early after myocardial infarction identifies patients at high risk for fatal or near-fatal arrhythmic events. Hear. Rhythm 2010, 7, 229–235. [Google Scholar] [CrossRef] [PubMed]
  27. Meyerfeldt, U.; Wessel, N.; Schütt, H.; Selbig, D.; Schumann, A.; Voss, A.; Kurths, J.; Ziehmann, C.; Dietz, R.; Schirdewan, A. Heart rate variability before the onset of ventricular tachycardia: Differences between slow and fast arrhythmias. Int. J. Cardiol. 2002, 84, 141–151. [Google Scholar] [CrossRef]
  28. Sosnowski, M.; Skrzypek-Wańha, J.; Korzeniowska, B.; Tendera, M. Increased variability of the coupling interval of premature ventricular beats may help to identify high-risk patients with coronary artery disease. Int. J. Cardiol. 2004, 94, 53–59. [Google Scholar] [CrossRef]
  29. Leclercq, J.F.; Maisonblanche, P.; Cauchemez, B.; Coumel, P. Respective role of sympathetic tone and of cardiac pauses in the genesis of 62 cases of ventricular fibrillation recorded during Holter monitoring. Eur. Heart J. 1988, 9, 1276–1283. [Google Scholar] [CrossRef]
  30. Zimmermann, M. Sympathovagal balance prior to onset of repetitive monomorphic idiopathic ventricular tachycardia. Pacing Clin. Electrophysiol. 2005, 28, S163–S167. [Google Scholar] [CrossRef]
  31. Billman, G.E. The LF/HF ratio does not accurately measure cardiac sympatho-vagal balance. Front. Physiol. 2013, 4, 26. [Google Scholar] [CrossRef] [Green Version]
  32. Li, Q.; Rajagopalan, C.; Clifford, G.D. Ventricular fibrillation and tachycardia classification using a machine learning approach. IEEE Trans. Biomed. Eng. 2014, 61, 1607–1613. [Google Scholar] [PubMed]
  33. Ganesh Kumar, R.; Kumaraswamy, Y.S. Investigation of Support Vector Machine To Assess Cardiac Arrhythmia. Int. Conf. Adv. Comput. Electr. Eng. 2012, 1, 98–102. [Google Scholar]
  34. Moridani, M.K.; Setarehdan, S.K.; Nasrabadi, A.M.; Hajinasrollah, E. New algorithm of mortality risk prediction for cardiovascular patients admitted in intensive care unit. Int. J. Clin. Exp. Med. 2015, 8, 8916–8926. [Google Scholar]
  35. Yaghouby, F.; Ayatollahi, A. An arrhythmia classification method based on selected features of heart rate variability signal and support vector machine-based classifier. IFMBE Proc. 2009, 25, 1928–1931. [Google Scholar]
  36. Bloch Thomsen, P.E.; Jons, C.; Raatikainen, M.J.P.; Moerch Joergensen, R.; Hartikainen, J.; Virtanen, V.; Boland, J.; Anttonen, O.; Gang, U.J.; Hoest, N.; et al. Long-term recording of cardiac arrhythmias with an implantable cardiac monitor in patients with reduced ejection fraction after acute myocardial infarction: The Cardiac Arrhythmias and Risk Stratification After Acute Myocardial Infarction (CARISMA) study. Circulation 2010, 122, 1258–1264. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  37. Bishop, C.M. Pattern Recognition and Machine Learning, 1st ed.; Springer: New York, NY, USA, 2006; ISBN 9780387310732. [Google Scholar]
  38. Kheder, G.; Kachouri, A.; Samet, M. HRV analysis using wavelet package transform and least square support vector machine. Int. J. Circuits, Syst. Signal Process. 2008, 2, 18. [Google Scholar]
  39. Acharya, U.R.; Fujita, H.; Sudarshan, V.K.; Sree, V.S.; Eugene, L.W.J.; Ghista, D.N.; Tan, R.S. An integrated index for detection of Sudden Cardiac Death using Discrete Wavelet Transform and nonlinear features. Knowl. Based Syst. 2015, 83, 149–158. [Google Scholar] [CrossRef]
  40. Aquino, G.; Zacarias, A.; Rubio, J.D.J.; Pacheco, J.; Gutierrez, G.J.; Ochoa, G.; Balcazar, R.; Cruz, D.R.; Garcia, E.; Novoa, J.F. Novel Nonlinear Hypothesis for the Delta Parallel Robot Modeling. IEEE Access 2020, 8, 46324–46334. [Google Scholar] [CrossRef]
  41. Meda-Campaña, J.A. On the estimation and control of nonlinear systems with parametric uncertainties and noisy outputs. IEEE Access 2018, 6, 31968–31973. [Google Scholar] [CrossRef]
  42. Hernández, G.; Zamora, E.; Sossa, H.; Téllez, G.; Furlán, F. Hybrid neural networks for big data classification. Neurocomputing 2020, 390, 327–340. [Google Scholar] [CrossRef]
Figure 1. Schematic representation of the heart and a recording of cardiac electrical activity or an electrocardiogram (ECG) during an event of sudden cardiac death due to a transition from normal rhythm (sinus rhythm) to an episode of ventricular tachycardia, which was initiated by a premature ventricular complex or premature ventricular complex (PVC) (indicated by *). The heart rate variability (HRV) indices are based on the interval between consecutive normal beats (NN interval). By contrast, the heartprint indices include the coupling interval (CI) and the number of sinus intervening beats (NIB) between two consecutive PVCs.
Figure 1. Schematic representation of the heart and a recording of cardiac electrical activity or an electrocardiogram (ECG) during an event of sudden cardiac death due to a transition from normal rhythm (sinus rhythm) to an episode of ventricular tachycardia, which was initiated by a premature ventricular complex or premature ventricular complex (PVC) (indicated by *). The heart rate variability (HRV) indices are based on the interval between consecutive normal beats (NN interval). By contrast, the heartprint indices include the coupling interval (CI) and the number of sinus intervening beats (NIB) between two consecutive PVCs.
Sensors 20 05483 g001
Figure 2. Flow chart of the study design: database description, a short description of the used features, structure of the classification method and performance evaluation. MARITA = MARITA study (Multivariate Analysis of RR-Intervals to predict ventricular TachyArrhythmia), MVTDB = Spontaneous Ventricular Tachyarrhythmia Database.
Figure 2. Flow chart of the study design: database description, a short description of the used features, structure of the classification method and performance evaluation. MARITA = MARITA study (Multivariate Analysis of RR-Intervals to predict ventricular TachyArrhythmia), MVTDB = Spontaneous Ventricular Tachyarrhythmia Database.
Sensors 20 05483 g002
Figure 3. Example of the cross-validation process for a combination of 5 indices: meanNN l.m., SDCI, meanNN, meanCI and LF/HF. The area under the receiver operating characteristic (ROC) curve results are shown for the different values of cost and γ. The best area under the curve (AUC) value (0.8578) corresponds to a C value of 8.5 and a γ value of 0.7071.
Figure 3. Example of the cross-validation process for a combination of 5 indices: meanNN l.m., SDCI, meanNN, meanCI and LF/HF. The area under the receiver operating characteristic (ROC) curve results are shown for the different values of cost and γ. The best area under the curve (AUC) value (0.8578) corresponds to a C value of 8.5 and a γ value of 0.7071.
Sensors 20 05483 g003
Table 1. Clinical characteristics of patients and number of recordings per patient for both datasets. Data are shown as either absolute values (percentages) or medians (25th percentile–75th percentile). The statistical significance of the difference between databases is shown in the p-value column.
Table 1. Clinical characteristics of patients and number of recordings per patient for both datasets. Data are shown as either absolute values (percentages) or medians (25th percentile–75th percentile). The statistical significance of the difference between databases is shown in the p-value column.
MVTDB
(N = 78)
MARITA
(N = 13)
p-Value
Age (years)62 (53–69)62 (57–69)0.669
Sex0.312
Male6312
Female151
Diagnosed cardiac disease
Dilated cardiomyopathy26 (33%)1 (8%)0.061
Ischemic cardiomyopathy49 (63%)11 (85%)0.125
Left ventricular ejection fraction (%)25 (20–35)40 (33–45)0.006
New York Heart Association class0.068
I or II65 (83%)8 (62%)
III or IV13 (17%)5 (38%)
Medication
Beta-blocker27 (35%)12 (92%)<0.001
Digoxin23 (29%)5 (38%)0.516
Antiarrhythmic drug26 (33%)4 (31%)0.856
Others9 (12%)13 (100%)<0.001
None19 (24%)0 (0%)0.045
Number of recordings per patient
Before tachyarrhythmia1 (1–2)3 (1–3)0.059
Total before tachyarrhythmia13533
Control1 (1–2)2 (1–3)0.221
Total control13535
Table 2. Heart rate variability and heartprint indices evaluated from recordings before tachyarrhythmia (ventricular tachycardia (VT)/ventricular fibrillation (VF)) or control recordings for both datasets. Data are shown as medians (25th percentile–75th percentile).
Table 2. Heart rate variability and heartprint indices evaluated from recordings before tachyarrhythmia (ventricular tachycardia (VT)/ventricular fibrillation (VF)) or control recordings for both datasets. Data are shown as medians (25th percentile–75th percentile).
MARITAMVTDB
Before VT/VF
(N = 33)
Control
(N = 35)
Before VT/VF
(N = 135)
Control
(N = 135)
meanNN (ms)705 (610–784)759 (678–873) *676 (607–819)787 (707–898) *
SDNN (ms)46 (28–71)41 (30–78)49 (34–77)50 (27–78)
RMSSD (ms)15 (11–24)15 (12–20)18 (13–31)20 (13–35)
pNN50 (%)2.00 (0.50–6.71)1.00 (0.40–3.50)0.49 (12.38–2.09)2.75 (0.49–2.75)
LFnu49.4 (42.2–63.2)56.5 (52.7–67.5) &45.2 (33.5–56.2)50.1 (39.3–60.6) *
HFnu25.7 (20.3–32.5)16.9 (12.1–32.5) &31.3 (21.5–42.9)29.6 (20.0–38.7)
LF/HF1.6 (1.0–3.1) &2.7 (2.0–3.9) *,&1.2 (0.7–2.4)1.6 (0.9–2.3) *
meanNN l.m. (ms)625 (560–801)764 (676–823) *,&625 (532–734)803 (726–954) *
SDNN l.m. (ms)19 (13–35) &22 (15–31)65 (39–90)24 (13–38) *
PVCs/hour 154 (63–500)79 (11–181) *159 (42–433)71 (11–351) *
meanCI (ms) 485 (444–522)493 (446–553) &520 (446–592)575 (509–636) *
SDCI (ms) 41 (32–71)59 (30–75)63 (46–78)57 (37–88)
sNIB 14 (2–36)4 (1–9)9 (3–25)5 (1–22)
NIB mode 2 (1–3)2 (1–8)1 (0–4)2 (0–7)
l.m.: last minute; * p-value < 0.05 (before VT/F vs. control); & p-value < 0.05 (MARITA vs. MVTDB); heartprint indices.
Table 3. Combination of indices for the support vector machine.
Table 3. Combination of indices for the support vector machine.
CombinationIndices
2 indicesmeanNN l.m., SDCI *
3 indicesmeanNN l.m., SDCI *, meanNN
4 indicesmeanNN l.m., SDCI *, meanNN, meanCI *
5 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF
6 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m.
7 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu
8 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *
9 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd
10 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd, HFnu
11 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd, HFnu, sNIB *
12 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd, HFnu, sNIB *, SDNN
13 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd, HFnu, sNIB *, SDNN, PVCs/hour
14 indicesmeanNN l.m., SDCI *, meanNN, meanCI *, LF/HF, SDNN l.m., LFnu, NIBmax *, RMSsd, HFnu, sNIB *, SDNN, PVCs/hour, pNN50
l.m.: last minute. * Heartprint indices.
Table 4. Results for the cross-validation for the parameter definition of the support vector machine. The area under the ROC curve and the accuracy are presented as mean ± standard deviation. The optimal values for cost (C) and gamma (γ) are also shown. The random threshold was set to 50 for all tests.
Table 4. Results for the cross-validation for the parameter definition of the support vector machine. The area under the ROC curve and the accuracy are presented as mean ± standard deviation. The optimal values for cost (C) and gamma (γ) are also shown. The random threshold was set to 50 for all tests.
CombinationAUCAccuracyC Valuer Value
2 indices0.8339 ± 0.065582.14 ± 8.187.50.1250
3 indices0.8433 ± 0.082784.55 ± 7.259.01.0000
4 indices0.8557 ± 0.079985.80 ± 6.71 &5.08.0000
5 indices0.8578 ± 0.0768 *84.64 ± 6.618.50.7071
6 indices0.8403 ± 0.071685.27 ± 5.068.50.7071
7 indices0.8397 ± 0.081184.02 ± 5.132.00.7071
8 indices0.8534 ± 0.070083.75 ± 9.098.00.1250
9 indices0.8379 ± 0.067181.34 ± 5.658.00.7071
10 indices0.8421 ± 0.070882.77 ± 5.911.51.0000
11 indices0.8378 ± 0.100184.20 ± 8.916.00.1768
12 indices0.8271 ± 0.084181.25 ± 6.138.00.2500
13 indices0.7972 ± 0.070579.55 ± 6.2410.00.1250
14 indices0.8022 ± 0.106080.27 ± 10.252.00.7071
AUC: Area under the ROC curve; * best AUC; & best accuracy.
Table 5. Results of the training and testing of the support vector machine. The area under the ROC curve and the accuracy are presented with their 95% confidence intervals.
Table 5. Results of the training and testing of the support vector machine. The area under the ROC curve and the accuracy are presented with their 95% confidence intervals.
TrainingTesting
CombinationAUCAccuracyAUCAccuracy
4 indices0.892 (0.852–0.931)82.5930.678 (0.550–0.806)67.647
5 indices0.858 (0.812–0.903)77.4070.646 (0.515–0.777)63.235
AUC: Area under the ROC curve.

Share and Cite

MDPI and ACS Style

Martinez-Alanis, M.; Bojorges-Valdez, E.; Wessel, N.; Lerma, C. Prediction of Sudden Cardiac Death Risk with a Support Vector Machine Based on Heart Rate Variability and Heartprint Indices. Sensors 2020, 20, 5483. https://doi.org/10.3390/s20195483

AMA Style

Martinez-Alanis M, Bojorges-Valdez E, Wessel N, Lerma C. Prediction of Sudden Cardiac Death Risk with a Support Vector Machine Based on Heart Rate Variability and Heartprint Indices. Sensors. 2020; 20(19):5483. https://doi.org/10.3390/s20195483

Chicago/Turabian Style

Martinez-Alanis, Marisol, Erik Bojorges-Valdez, Niels Wessel, and Claudia Lerma. 2020. "Prediction of Sudden Cardiac Death Risk with a Support Vector Machine Based on Heart Rate Variability and Heartprint Indices" Sensors 20, no. 19: 5483. https://doi.org/10.3390/s20195483

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop