Abstract
The new advances in multiple types of devices and machine learning models provide opportunities for practical automatic computer-aided diagnosis (CAD) systems for ECG classification methods to be practicable in an actual clinical environment. This imposes the requirements for the ECG arrhythmia classification methods that are inter-patient. We aim in this paper to design and investigate an automatic classification system using a new comprehensive ECG database inter-patient paradigm separation to improve the minority arrhythmical classes detection without performing any features extraction. We investigated four supervised machine learning models: support vector machine (SVM), k-nearest neighbors (KNN), Random Forest (RF), and the ensemble of these three methods. We test the performance of these techniques in classifying: Normal beat (NOR), Left Bundle Branch Block Beat (LBBB), Right Bundle Branch Block Beat (RBBB), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PVC), using inter-patient real ECG records from MIT-DB after segmentation and normalization of the data, and measuring four metrics: accuracy, precision, recall, and f1-score. The experimental results emphasized that with applying no complicated data pre-processing or feature engineering methods, the SVM classifier outperforms the other methods using our proposed inter-patient paradigm, in terms of all metrics used in experiments, achieving an accuracy of 0.83 and in terms of computational cost, which remains a very important factor in implementing classification models for ECG arrhythmia. This method is more realistic in a clinical environment, where varieties of ECG signals are collected from different patients.
Keywords: electrocardiogram, ECG, classification, support vector machines (SVMs), k-nearest neighbors (kNN), Random Forest (RF), voting ensemble, inter-patient paradigm
1. Introduction
One of the most fundamental vital organs is the heart. It’s the engine that pumps blood to many networks of vessels. The heart moves constantly, beating 100,000 times a day by providing oxygen and nutrients while clearing away harmful waste matter. The beating of the heart produces electrical actions measured on the body surface by an electrocardiogram recording (ECG). Skin electrodes record the electrical activity, exposing how each chamber operates in the form of PQRST waves, as illustrated in Figure 1. Therefore, the morphology and heart rate variability (HRV) extracted from the ECG signal reveal the cardiac behavior. The heart behavior analysis expressed by the electrocardiogram signal provides specific information about the heart. Thus, if the ECG is irregular or faster, or slower than normal, that means cardiac arrhythmia. Arrhythmia can cause several types of consequences; an imminent threat to a patient’s life (e.g., ventricular fibrillation and tachycardia), long-term threats, or even more causing death, the thing that made it the most common leading cause of deaths in the world.
Normal cardiac rhythm is occasionally interrupted by a beat that occurs before the regular time of the next sinus beat, and this is described as a premature beat or premature contraction (the terms “ectopic beat” and “extrasystole” are frequently used as synonyms). Originally, the sinus beats start from the SA node, unlike the premature beat, which is preceded by an ectopic focus that may be localized in any section of the heart other than the SA node [1]. Thus, the premature beat is classified into two types depending on the location of the focus; Premature Atrial Contraction (PAC) (also known as an atrial premature beat (APB)) if its origin is above the ventricles, i.e., in the atria or the AV node, or Premature Ventricular Contraction (PVC) (also known as a ventricular premature beat (VPB)) if its origin is in the ventricles. We can recognize the PAC and PVC based on specific characteristics and different circumstances. The usual traditional variety of PAC is linked with an abnormal P wave morphology and a QRS complex morphology matching that of a normal sinus beat, but for the associated compensatory pause; the interval between the two sinus beats that enclose the PAC is less than the length of two normal RR intervals. Unlike the PAC, the presence of a PVC almost always prevents the occurrence of the next sinus beat. Although the SA node discharges on schedule, the impulse cannot propagate to the ventricles because the premature beat has made the tissue refractory. The pause that results between the PVC and the next sinus beat is called the compensatory pause. But the problem with the PVC is that it may originate from any area beyond the point where the common bundle has branched into the left and right bundle branches. And since the electrical impulse of the ventricular ectopic focus does not follow the normal conduction pathways, as a result, the produced QRS complex is abnormally prolonged and has a morphology that deviates considerably from that of a sinus beat (it is often much larger and bizarre-looking). In most cases where the PACs are identified by premature onset and a deformed p wave, it shows the origin of a mostly right atrial “focus” distant from the sinus node [1]. In an aberration of early PACs, the right bundle-branch block is more common than the left bundle-branch block. If the PAC occurs quite early, it may be entirely AV blocked [2]. In these cases, a false diagnosis of the sinuatrial block is sometimes made. If a PAC falls in the probably vulnerable phase of the re-polarization of the preceding atrial beat (“p on Ta”), it may produce atrial fibrillation. Atrial bigeminy is rare; salvos of PACs are rarely observed. In contrast to short episodes of atrial tachycardia, the rhythm is irregular and can lead to diagnostic difficulties. Premature Atrial Contraction (PAC) is less frequent than premature ventricular contractions (PVC) but much more common than super-ventricular premature beats occurring in the atrioventricular (AV) junction. Usually, PACs are not linked with heart disease. However, frequent PACs could be an early symptom of heart failure and may precede atrial fibrillation [3]. More than 80% of deaths in patients with heart failure identify a cause related to cardiovascular disease [4]. In up to 64% of healthy young individuals, some PACs are discovered in an ambulatory electrocardiogram (Holter ECG), and in most samples without symptoms [2]. For the Bundle Branch Block, it occurs when the left/right bundle branch cannot transmit the impulse fast enough. Therefore, the QRS duration is prolonged [3]. Many myocardial diseases are associated with bundle branch block. The prognosis of bundle branch block indicates the underlying myocardial disease and is therefore variable. Mass electrocardiographic surveys show that many apparently healthy individuals have bundle branch block, [5] and in most people, bundle branch block doesn’t cause symptoms. These arrhythmias in the ECG waveform are a sign of cardiovascular complications and are more common in people with underlying heart disease. In terms of diagnosis, it can be detected during a physical examination and confirmed by an electrocardiogram (ECG) recording. But sometimes, doctors must use a Holter monitor to reveal the severity of these arrhythmias, and in some cases, stress tests to perform the right diagnosis and treatment. The hand-operated analysis of ECG signals, especially a Holter recording of three leads, is difficult and time-consuming as it can be a form of 24 h or more of normal daily activities of the patient’s ECG recording. Thus, it requires specialists trained to identify and categorize different waveform morphology in the signal, which remains a hard task, especially for these arrhythmias revealed above, as they are nearly related to each other. A computer-aided diagnosis (CAD) for monitoring cardiac health allows cardiologists diagnostic aid and improves medical decision-making. A large amount of research has been devoted to automated systems for biomedical ECG signal interpretation for early-stage detection of cardiac arrhythmias.
Various types of techniques have been investigated and analyzed for this purpose and other purposes such as decision trees [6], random forest (RF) [7,8], k-nearest neighbors (KNN) [9,10], hidden Markov models [11,12], hyper-box classifiers [13], optimum-path forest [14], conditional random fields [15], besides other methods such as [16,17,18,19,20,21].
Most papers in the literature use the intra-patient paradigm, which is mainly based on beat types. In this way, the ECG recording belonging to the same person can appear in both subgroups (training and testing), and this can lead to a result bias, which makes the classifier produce overly optimistic results [22]. Conforming to the clinical environment, which means real-world clinical practice, the training and test set should contain heartbeats from diverse individuals, and this refers to the inter-patient paradigm. The well-known inter-patient paradigm for ECG beat classification was proposed by [23]. The authors suggested separating the patients into two groups with particular patients, one for training and the other for testing, and the classes employed conformed to the Advancement of Medical Instrumentation (AAMI) standard. They put their method to the test by using extracted features and prior knowledge of ECG morphology; the results were encouraging, but there was still room for improvement. This inter-patient paradigm has been used in several papers [24,25,26,27]. For the non-AAMI standard classes, there are a few papers that worked and used inter-patient paradigms for classes such as Normal Beat (NOR), Left Bundle Branch Block Beat (LBBB), Right Bundle Branch Block Beat (RBBB), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PVC) [22,28]. For instance, ref. [28] proposed a combination of three classifiers using the majority vote approach to distinguish three classes, namely Normal, Left Bundle Branch Block Beat (LBBB), and Right Bundle Branch Block Beat (RBBB), and used the inter-patient separation presented by [23]. In their approach, they used a weighted LDA classifier to define the classes NOR and RBBB, a weighted SVM classifier to implement LBBB and NOR, and a minimum distance classifier (MDC) to implement LBBB and NOR. The outcomes were encouraging for each approach, but the results needed improvement when classifying all the classes at once.
However, we believe that there is a better technique to divide patients for an inter-patient paradigm, which would enhance classification results for all classes, particularly those with a small data set. In this work, we introduced a new patient separation approach and compared our results to those of [23].
Several models of machine learning are investigated in the literature for ECG classification. For instance, ref. [29] proposed a classification method using a different set of features, such as empirical and variational mode decomposition and Decision Tree Algorithm, as well as in [8] where the authors extracted different features from the time and frequency domains and used Random Forest as a classifier. These techniques provide promising results, but they cause an interesting computational cost. Authors in [15] suggested the use of weighted Conditional Random Fields for the classification of arrhythmias and compared it with support vector machine (SVM) and LDs. The analysis revealed that the introduced approach gets promising results for the minority arrhythmical classes (SVEB e VEB). In [30] authors used a classifier based on KNN and declared favorable results, though the computational cost was not mentioned. [31] presented a k-nearest neighbor with two types of heartbeat features. [32] presented an SVM classifier with a proposed ‘generalized discrimination analysis based feature selection’ (GDAFS) using an extracted heart rate variability (HRV) from an ECG time series, taking R-to-R periods from each two continuous R points.
In view of the foregoing, we aim in this paper to design and investigate an automatic classification system using a new comprehensive ECG database inter-patient paradigm separation to improve the minority arrhythmical classes detection without performing any feature extraction. We investigated four supervised machine learning models: support vector machine (SVM), k-nearest neighbors (KNN), Random Forest (RF), and the ensemble of these three methods. We test the performance of these techniques in classifying: Normal beat (NOR), Left Bundle Branch Block Beat (LBBB), Right Bundle Branch Block Beat (RBBB), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PVC), using inter-patient real ECG records from MIT-DB after segmentation and normalization of the data, and measuring four metrics: accuracy, precision, recall, and f1-score. Figure 2 illustrates a summary of the overall procedures used in this paper.
The rest of this paper is organized as follows: In the next section, we represent the methods. Section 3, describes the results, and a detailed discussion of these results is spread in Section 4. To finish, we conclude the paper in Section 5.
2. Machine Learning Models
2.1. Support Vector Machines
Support vector machine (SVM) is a well-known classification technique in supervised machine learning [33,34,35]. Practically, the SVM technique performs a classification task by constructing a separating hyper-plane in n-dimensional space (n is the number of features used as inputs) that separates different class labels by maximizing the geometric margin between the input data classes mapped in a higher-dimensional space and minimizing the empirical classification error [36,37]. SVM depends in all this classification process on the kernel functions [38], either as a linear or nonlinear classifier according to the type of its kernel function. A linear kernel function makes the SVM a linear classifier. On the other hand, the polynomial and sigmoid kernels make the SVM a non-linear classifier. However, the selection of a good kernel function remains a challenging task. We suppose a training set that consists of N samples (,), , where indicates the n-dimensional feature vector of the jth example and signifies the matching class label and . A decision function learned from the training set makes a representation of the optimal hyper-plane that predicts the class label in the subsequent tests. By using the kernel, the decision function is formulated as follow [39,40]:
(1) |
where is the Lagrange multiplier for each training data set and is the kernel function that maps the data into higher dimensional space and is defined as in the case of the polynomial Kernel [39]:
(2) |
where d is the degree of the polynomial function.
Essentially, the SVM is a binary classification technique. In order to be extended for a multi-classification task, two techniques are commonly used to make it possible, and these methods are one-versus-one (OVO), one-versus-rest (OVR). In the literature, SVM is one of the most popular classifiers used for other applications in biology [41], specifically for ECG arrhythmia classification [33,42,43,44,45,46].
2.2. K-Nearest Neighbors
K-Nearest Neighbors (KNN) is a common supervised machine learning technique and is considered the simplest technique used mostly for classification tasks. KNN is also known as a non-parametric lazy algorithm because it does not use any model to fit, it is only based on memory. Practically, the KNN classifies feature vectors according to the labels of the closest training samples in the feature space. The k-nearest neighbors are collected by calculating the distance (such as Hamming, Euclidean, or Minkowski distance defined in Equation (3)) between an unknown feature vector or new sample and all the vectors in the training set. The unknown feature vector is assigned then to the class to which the closest k samples mostly belong with the help of the votes got from the neighbors [9,47]. The class with the most votes is considered as the prediction. The KNN classifiers require two parameters: the value K and the threshold value. The K value shows the number of nearby neighbors, and the threshold value is used for the evaluation of unusual neighbors.
(3) |
where p is the order and .
The KNN has been widely used and employed in some recent ECG classification studies [20,48,49,50,51].
2.3. Random Forest
Random forest (RF) is another famous supervised machine learning technique, which is primarily an ensemble of decision trees to train and predict outcomes, and was proposed first by [52]. The RF is a parametric algorithm regarding the number of trees in the forest and is also a stochastic method because of its two origins of randomness: random attribute sub-set selection and bootstrap data sampling. This randomness helps to avoid over-fitting during the training process. Essentially, the constructed model depends on several parameters. The most important ones are the number of trees, the maximum depth, and the maximum split. The decision trees pick their splitting properties from a random subset of k characteristics at each internal node. The best split is taken within these randomly chosen attributes, and it builds the trees without trimming. RF is universally used in many classification challenges, particularly in areas with larger numbers of attributes and situations, because of its high-speed [7,8,20,53].
2.4. Performance Evaluation Measures
There are various metric performance measures to evaluate the classification results. In the literature, four metrics mostly used are [32]:
- Accuracy: which can be described as the ratio of exact classification of the total classified outcomes.
(4) - Precision: also known as positive predictivity, is the ratio of the actual positives within the total number of positively predicted samples and is described as:
(5) - Recall: which is also known as sensitivity, is the percentage of positively predicted samples to the total amount of actually positive samples and is defined as:
(6) F1-score: is the consonant mean of precision and recall and is described as:
(7) |
where TP, TN, FP, and FN are the numbers of true positives, true negatives, false positives, and false negatives, respectively.
All the experiments were run on a laptop equipped with an Intel Core i3 processor and 4 GB of RAM.
3. Experimental Results
3.1. Data Preparation
To compare the proposed methods in this paper, we used real ECG signals from the MIT-BIH Arrhythmia Database (MITDB) [54]. The MIT-BIH Arrhythmia Database contains 48 half-hours of data. Each record comprises two-channel ambulatory ECG recordings from 47 subjects. The data is digitized at 360 samples per second per channel. The first lead is a changed limb lead II (MLII) for 45 records and a changed lead V5 for the rest. The second lead is the pericardial lead and was conducted as V1 for 40 recordings and V2, V4, or V5 for the others. The original annotation of this data set contains 16 classes of rhythms. The classical method of creating test data is to divide our data into two subsets: the training data set and the test data set. With ECG heartbeat classification, two data separation paradigms are usually used: intra-and inter-patient paradigms. The intra-patient paradigm type divides the data based on the beat type. One of the main weaknesses of this system is that it results in an overoptimistic estimate of the actual classifier performance, because the heartbeats from the same patient can appear in both subsets, the training and test set. The robust split and more realistic to real-world situations is the use of the inter-patient paradigm; here, the records used to train the model are dissimilar to the records used to evaluate it. This ensures that beats from the same patient do not exist in the train and test data sets. It further considers the inter-individual differences and therefore gives non-biased estimates of the classification performance.
3.2. New Separation Scheme
In our experiment, we proposed a new separation approach of the patients for an inter-patient paradigm that enhances the classification results for all classes, particularly those with a small data set, which we define as minority. For this purpose, we studied the records and classes in all the records of each patient to ensure the best separation of the patients, taking into consideration that:
In the inter-patient separation, we must ensure that each patient’s record can only be found in the training or test set. which means each patient’s record is assigned to only one group. In addition, records 201 and 202 belong to the same patient. These two records must be allocated to the same group.
All the classes have a fair amount of data in each group without affecting the distribution of the patients.
The five categories, NOR, LBBB, RBBB, PAC, and PVC, should have approximately the same number of samples, as much as possible, in the training and test sets.
In the inter-patient paradigm separation we proposed, the patients are divided into two data groups; each group contains twenty-two records, as the number of patients in each group was proposed in [23], but the separation of the patients is different, it was chosen carefully to maintain the best training of the model on all the features needed for each class to be well detected. We also took into consideration that the data used for the training contains, as possible, more samples of each class than the test set for the model to learn all the features. Both data sets contain normal heartbeats and a mixture of routine and complex arrhythmia recordings. The form of the data separation is described in Table 1.
Table 1.
Data Set | Heart Beat Type | NOR | LBBB | RBBB | PAC | PVC |
---|---|---|---|---|---|---|
G1 | Number of total records | 37,018 | 3949 | 5608 | 430 | 3485 |
G2 | Number of total records | 37,528 | 4126 | 1651 | 2116 | 3418 |
The first data (G1) is considered as the train data set to train the models, it contains data from recordings: [100, 101, 106, 108, 109, 112, 114, 115, 116, 118, 119, 122, 124, 203, 205, 207, 208, 212, 215, 220, 223 and 230]. The second data set (G2) was separated into two sets: 20% for a validation set and 80% for the test set, contain data from recordings: [103, 105, 111, 113, 117,121, 123, 200, 201, 202, 209, 210, 213, 214, 219, 221, 222, 228, 231, 232, 233 and 234]. It is worth noting that Records [102, 104, 107, and 217] are excluded from all the data. We used the validation to validate the model during the experiments, and the test set for the final performance evaluation of the models as described in Figure 3.
3.3. Data Pre-Processing
3.3.1. Normalization
We used the first lead of each record from all the data sets and performed normalization of the ECG signal into 0 and 1 using the min-max normalization. This method changes the value of the min limit (a) and max limit (b) on the amplitude of a signal to the desired range with a guarantee of no changing of the pattern or shape of the signal features. In this study, the data was acquired in the pre-process with the min limit (0) and max limit (1), respectively. The mathematical function of the normalization with min-max normalization is as follows:
(8) |
where is the normalized signal, and are the maximum and minimum values of the data set, respectively, a and b are the min limit and max limit values.
After the normalization process, we denoised the signal using a low-pass Butter-worth digital filter with a cutoff frequency of 0.25 and a filter order of 3 to remove the noise.
3.3.2. Segmentation
After filtering the signal, we performed a sampling of 0.66 s segment for each beat, which means 236 samples in each segment Figure 4, using the annotation data available in the data set for R-peak positions of each beat. The segment’s section is divided into two intervals of t = 0.33 s before and after the annotation position in the signal. From all the data, we used only 5 specific known annotations, from all the labels which are: Normal Beat (NOR), Left Bundle Branch Block Beat (LBBB), Right Bundle Branch Block Beat (RBBB), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PVC) as shown in Figure 4. To maintain the fluctuations in the data and yield a better insight of the signal features, we removed a linear trend from the resulting data by calculating the least-squares regression line to estimate the growth rate r. Then subtract the differences (i.e., the deviations from the least-squares fit line) from the data. This method enables the model to focus more on the class features during the training. The final results are demonstrated in Figure 4.
3.4. Hyper-Parameters Selection
There are several parameter keys in each model of machine learning to be determined, called Hyper-parameters. The Hyper-parameters help to control the behavior of machine learning algorithms in a way of finding the right balance between bias and variance when optimizing for performance. But there are no fast rules that guarantee the best performance on certain data sets. The classical way to discover the parameters of the model that can achieve the most important prediction results is to perform different varieties of hyper-parameters on each model, and this process is time-consuming. In this paper, we performed a grid search on each model by providing a combination of parameter grids. Table 2 shows the range grid of the hyper-parameters optimized in our experiment.
Table 2.
Models | Range of Grid |
---|---|
SVM | kernel = [‘linear’, ‘poly’, ‘rbf’, ‘sigmoid’], C = [ 10, 100, 1000], degree = [2, 3, 4] |
kNN | metric = [‘euclidean’, ‘manhattan’, ‘minkowski’], n-neighbors = [1:21]interval:2, weights = [‘uniform’, ‘distance’] |
RF | n-estimators = [100, 200, 400, 800, 1000], criterion = [‘gini’, ‘entropy’], max-depth = [5, 15, 25], min-samples-split = [5, 10, 15, 100] |
For the hyper-parameter finding, we used the train set to train the models, and the validation set is considered a test set to validate the models’ performance. The halving grid search algorithm fits the parameters grid on the training set and evaluates its performance on the validation set using successive halving. The successive halving is an iterative selection process where all candidates (the parameter combinations) are evaluated with a few resources at the first iteration. Only some of these candidates are chosen for the next iteration, etc. Thus, only a subset of candidates lasts until the last iteration, which means that is consistently rated among the top-scoring candidates across all iterations. The average of the best-performing model is kept and exposed as the best estimator. All processes are done by using the HalvingGridSearchCV function from the scikit-learn [55]. This experiment outcome revealed the best optimal set hyper-parameters combination that can serve the model in the best way to get the most skillful predictions which will be used for the rest of the experiments in this paper. The hyper-parameter combinations selected are described in Table 3.
Table 3.
Models | Final Hyper-Parameter Values |
---|---|
SVM | C = 10, degree = 2, kernel = ‘poly’ |
kNN | metric = ‘minkowski’, n-neighbors = 11, weights = ‘uniform’ |
RF | n-estimators = 800, max-depth = 5, min-samples split = 15 |
These hyper-parameters cannot be taken by blind eyes further to the predictions; they need to be evaluated to indicate the performance of each model over time and to show distinct changes that can accrue and prevent over-fitting and under-fitting of the models.
3.5. Qualitative Results
To estimate how the models are expected to perform during training and when used to make predictions on unseen data, to see if the model is well-fitted, we performed a learning curve graph. The learning curve reflects the model’s learning process, which is illustrated by measuring the accuracy of each size of training and validation set that starts from a small data size to the maximum. The accuracy should maximize as more data is fitted, and if it reaches 1 (100% of accuracy), it means the training data set is perfectly learned. The learning curve calculated using a training set shows how the model is learning, and the learning curve calculated from the hold-out validation set provides an idea of if the model is generalizing on unseen data. We tested each model with its hyper-parameters selected above by making a dual learning curve of the training set and a validation set, and measuring the accuracy of each one. The results are shown in Figure 5, Figure 6 and Figure 7.
As we see from the Figure 5, Figure 6 and Figure 7, all the tested models have nearly similar results with few variations. SVM classifier shows almost perfect learning, as we can see from the accuracy achieved by the training set, which goes above 0.99, and it provides promising predictions, as it is obvious from the accuracy achieved using the validation set, which maximizes as more data is fitted, the thing that makes the model learn more features and provide consistent predictions. The maximum accuracy achieved is 0.84. This result reflects that the model is well fitted and generalizes better on unseen data.
The RF classifier shows almost the same behavior as SVM, as we can see from the accuracy achieved by the training set, which goes above 0.98, and as well as provides promising predictions using the validation set, which maximizes linearly as more data is fitted. The maximum accuracy achieved is 0.82. This result reflects that the model is well fitted and generalizes better on unseen data.
Unlike the other classifiers, the KNN model achieves good accuracy on the training set, which goes above 0.99, but it shows different behavior using the validation set. With more data is fitted, the accuracy is exponentially decreasing, with a small variance from 0.80 to 0.78. However, it does not affect the model to be under-fitted or not generalizing on unseen data, and this is just because of the model’s way of dealing with large data, which certainly affects the accuracy with small variance. In the end, we conclude that all the models are well-fitted and well trained to be tested on the test set.
After training the models on the train set and validating them with a validation set, the next step is predicting the outcomes. We tested all the models on the unseen data and the test set. As a performance evaluation, we measured four metrics: accuracy, F1-score, precision, and recall. Table 4 shows the results metrics got from each model in predicting all the classes. For the evaluation comparison of the model’s performance in terms of all metrics, SVM got the best performance results in predicting the outcome of the unseen data by achieving an accuracy of 0.83 and a good precision value of 0.64, followed by RF and KNN classifier, respectively. This performance comparison seems promising to predict all the classes, and this is because the models are well trained on the classes’ features, which can serve better predictions.
Table 4.
Classifier | Accuracy | F1-Score | Precision | Recall |
---|---|---|---|---|
SVM | 0.83 | 0.55 | 0.64 | 0.59 |
RF | 0.82 | 0.43 | 0.42 | 0.49 |
KNN | 0.78 | 0.40 | 0.38 | 0.50 |
To have a clear view of the model’s performance on each class, we measured three metrics: precision, recall, and f1-score for each class predicted by the models, and the results are illustrated in Figure 8, Figure 9 and Figure 10.
Figure 8 illustrates the results achieved using the SVM classifier. From the results, it is obvious that the SVM model succeeded in predicting all the classes with different performances. The most predictable classes for SVM are NOR and RBBB, achieving the highest measurement in terms of all metrics which go above 0.75, followed by the PVC. But for LBBB and PAC, it seems to be difficult to predict, as the model didn’t achieve good results that went under 0.50 in terms of all metrics, except for LBBB, which achieved good precision of 0.70. However, it is not surprising for PAC to be less predictable as it has insufficient data in Table 1 for the model to train on because most PACs used in the test set belong to one patient and the rest are from different patients.
Figure 9 and Figure 10 describe the results achieved using the RF and KNN classifiers. The RF and KNN models have the same performance concerning the labels NOR, RBBB, and PVC as the SVM model with little variance. Unlike the SVM, the RF and KNN models didn’t succeed in classifying the LBBB class, even with a sufficient amount of data available for this class for the model to train on. The KNN got a precision of 0.19 in classifying the PAC class, unlike the RF model that didn’t predict it.
We presented the classification report of each model to give an unobstructed view of the number of samples classified into certain classes by each model. Table 5 shows the classification report of the SVM classifier, and it is obvious that the classifier performed well in predicting with a significant percentage of the samples provided as inputs, even for the LBBB and PAC, which remain hard to predict. However, the SVM model has mislabelled some input data, which can be considered a serious issue. As we can see in Table 5, the samples that have an LBBB class, 0.57%, which means half the samples, are predicted as normal cases and 0.35% as PVC classes. The same thing is true for the PAC class, where 0.47% of samples are predicted as Normal (NOR) and 0.21% as RBBB classes. These results cannot be acceptable, at least for the LBBB and the PAC class, as the model didn’t predict more than half of the samples provided. And this is probably because of the weak representation of features in data provided for training the model.
Table 5.
Predicted Label | ||||||
---|---|---|---|---|---|---|
NOR | LBBB | RBBB | PAC | PVC | ||
True Label | NOR | 0.94 | 0.0019 | 0.00033 | 0.023 | 0.034 |
LBBB | 0.57 | 0.068 | 0 | 0.013 | 0.35 | |
RBBB | 0.091 | 0 | 0.80 | 0.023 | 0.089 | |
PAC | 0.47 | 0.01 | 0.21 | 0.25 | 0.065 | |
PVC | 0.07 | 0.0077 | 0.0055 | 0.004 | 0.91 |
Table 6 shows the classification report of the RF classifier, as we can see from the table, the RF model succeeds to predict just three classes: NOR, RBBB, and PVC, as true classes from the five classes provided with important percentages. The model mislabeled all the other two classes, like other classes. The model classified 0.73% of samples with the class of LBBB as NOR class and 0.25% as PVC class. The same thing goes for the PAC class, where 0.40% of samples are classified as NOR class and 0.53% as PVC class. This behavior is probably because of the model’s way of mapping between inputs and outputs of the data set, which didn’t succeed in recognising the new data provided.
Table 6.
Predicted Label | ||||||
---|---|---|---|---|---|---|
NOR | LBBB | RBBB | PAC | PVC | ||
True Label | NOR | 0.96 | 0.0023 | 0.00063 | 0.039 | |
LBBB | 0.73 | 0 | 0.00061 | 0 | 0.27 | |
RBBB | 0.0068 | 0 | 0.61 | 0 | 0.38 | |
PAC | 0.4 | 0 | 0.074 | 0 | 0.53 | |
PVC | 0.095 | 0.0018 | 0.0066 | 0.00074 | 0.90 |
Table 7 describes the classification report of the RF classifier. Unlike the RF classifier, the KNN model predicted four classes: NOR, RBBB, PAC, and PVC as true classes, out of the five classes, with important percentages except for the PAC class, which is considered a very weak percentage, because the model is mistakenly labeling 0.86% of the PAC class as class NOR and the rest as other classes. From the Table 7, the result illustrates that the LBBB class is difficult to be recognized by the KNN model from the data provided, as the model classified 0.63 % of samples as a class NOR and the rest as class PVC.
Table 7.
Predicted Label | ||||||
---|---|---|---|---|---|---|
NOR | LBBB | RBBB | PAC | PVC | ||
True Label | NOR | 0.91 | 0.00013 | 0.06 | 0.0023 | 0.03 |
LBBB | 0.63 | 0 | 0 | 0 | 0.37 | |
RBBB | 0.14 | 0 | 0.82 | 0 | 0.039 | |
PAC | 0.86 | 0 | 0.037 | 0.012 | 0.087 | |
PVC | 0.11 | 0.063 | 0.0052 | 0.0081 | 0.81 |
Although it is clear that the three first classes (NOR, RBBB, and PVC) are the most predictable labels among all the models, this is probably because of the feature clarity of these classes, which makes them easy to learn and predict by the model. The other factor that can help the model learn any class is certainly the amount of data used to train the model for each class, which makes the model learn all the features of a certain label. As a result, it will be easy for the model to figure out the outcomes of each input data set. Sometimes it is difficult for the model to predict nearly perfect some classes even if the data is available, and this problem can occur if the training data doesn’t contain all the features. As we can see, the LBBB label has sufficient training data as detailed in Table 1 but all the models had mislabeling of this class on the unseen data provided. Besides, the poor amount of data can lead to a significant mislabeling as it is obvious for the PAC label, which has a small amount of training data as can be seen in Table 1. However, certain models showed a powerful performance prediction for specific classes; SVM predicted 0.91% of samples for the PVC class. The RF predicted 0.96% of samples for the NOR class, and the KNN model predicted 0.96% of samples for the RBBB class.
To enhance the prediction of certain categories and reduce wrongful predictions of some samples, we investigated the group power of the models tested so far to improve and provide the best predictions, and for this reason, we used a technique called the voting model or majority voting ensemble [56,57] which uses an ensemble of machine learning algorithms. This technique works by combining the predictions from several contribution models and searching for a majority vote for the prediction that will be considered the final prediction of the input. Thus, the voting model style is appropriate when there are two or more models that perform well in predicting certain classes, and that is the case in our experience presented and achieved above. This is to achieve better performance than any single model used in the group. There are two voting methods that the voting model applies, hard voting and soft voting. Hard voting is simply summing up the predictions for each label and taking the prediction that has the most votes. Unlike hard voting, soft voting sums up the predicted probabilities for each class and takes the prediction that has the highest probability. In this work, we used hard voting to keep the performance contribution of each model.
Figure 11 shows the performance results measured by the cross-validation score technique of each model trained with the training set and validated with the validation set. The results revealed that the ensemble voting achieved the best performance and even better than the other models in terms of average accuracy, as it exceeded an accuracy of 0.83 with a maximum accuracy of 0.84. However, the results are not surprising because the mainly used set of models perform well as a single model, and thus, combining these models with the voting technique would give better performance than the best single model. Concerning the results specified in Figure 11, the ensemble voting method appears to be appropriate and promising to improve the prediction results. Hence, we tested it directly on the unseen data set, the test set.
Figure 12 illustrates the results achieved by measuring the three metrics: accuracy, recall, and f1 score for each class predicted by the ensemble voting classifier using a test data set. From the figure, the ensemble voting model seems similar to the KNN classifier performance. This implies the same performance result with respect to NOR, RBBB, PAC, and PVC labels with little difference. Likewise, for the LBBB class, where the voting model was unsuccessful in its classification. However, the results were surprising, as we expected the model to provide a further improvement, which means better performance than the individual models tested above.
Toward a clear view of comparison, we made a classification report of the predictions on the test data set that shows the results achieved by the voting ensemble. Table 8 shows the classification report for the classifier of the ensemble voting classifier, and it is clear that the classifier did well in predicting samples provided as input, even for PAC, which is difficult to predict. The ensemble voting model predicted 0.98% of the samples provided for the NOR class, which means an improvement of 0.02% above the best single model performance, and this remains a very important improvement. Unfortunately, the model did not improve the prediction of samples for the other classes, as we see from the table. For instance, the prediction of samples for the RBBB class has been reduced by 0.05%, and for the PVC class by 0.01%, and the LBBB class was not predicted by the model.
Table 8.
Predicted Label | ||||||
---|---|---|---|---|---|---|
NOR | LBBB | RBBB | PAC | PVC | ||
True Label | NOR | 0.98 | 0 | 0.00037 | 0.0009 | 0.021 |
LBBB | 0.65 | 0 | 0 | 0 | 0.35 | |
RBBB | 0.15 | 0 | 0.77 | 0 | 0.087 | |
PAC | 0.89 | 0.00059 | 0.056 | 0.0035 | 0.051 | |
PVC | 0.089 | 0.0029 | 0.0015 | 0.0026 | 0.90 |
The results achieved as far by the ensemble voting, in terms of comparison with the results accomplished above, the voting ensemble didn’t get the best prediction results, which was the primary purpose of implementing the voting ensemble. The voting ensemble didn’t perform well, probably because it treats all models the same, which means that all models contribute equally to the prediction. This remains a problem sometimes because some models can be good at some tasks and poor at others, and this doesn’t give the models the chance to provide a powerful performance. This method can affect the results and the improvement of the voting ensemble over the other used models. Otherwise, the voting ensemble has some advantages, such as higher stability or confidence at the expense of the lower mean performance of the ensemble, which may cause the lower variance achieved by the voting ensemble over the other models used in the ensemble.
4. Discussion
In real-world practice to analyze the ECG signal, various causes influence the appearance of characteristics in an ECG recording, which include several factors such as gender, age, medical history of the patient and the time of recordings, and previous physical activity, besides the wide variability in ECG morphological and temporal features within a population. This makes medical decision-making a challenging task that requires more tests and even specialists to deal with it. There are confusing factors where unusual beat morphologies may be recognized for the same disease or similar ones for different diseases, e.g., the PAC and PVC, etc. [2]. For this kind of situation, the cardiologists need to process vast amounts of data of extended ECG recordings of several hours to observe the status of patients’ health. Furthermore, making other tests like the Holter ECG or stress tests that require a significant amount of time, [2]. Such scenarios bring the need for an automated arrhythmia detection system that offers diagnostic aid to cardiologists to improve medical decision-making in a limited time.
An automated arrhythmia detection system needs to be reliable, with high quality and performance in decision making, with less complexity, especially concerning the number of resources required to run it, and more realistic in a clinical environment. Considering these requirements and the metrics used in this paper, the results achieved with all the machine learning models we investigated in this paper, and using our proposed inter-patient paradigm separation method of the patient concerning the MIT-BIH DB, and applying no complicated data pre-processing or feature engineering methods, prove that the SVM is the model that outperformed the other techniques, in predicting the most classes presented such as (NOR, RBBB, and PVC), and especially the minority ones such as the PAC, as it predicted one quarter of the data provided, which was the purpose of the inter-patient paradigm separation proposed. Over all models, it is noticeable that the three individual classes (NOR, RBBB, and PVC) are the most predictable labels, as we can observe from the Figure 8, Figure 9 and Figure 10. This is most likely due to the feature clarification of these classes, which makes them easier for the model to learn and predict. Another aspect that can assist the model in learning any class is the amount of data utilized to train the model for each class, which allows the model to learn all or most of the characteristics of a specific label. Thus, it increases the chances of the best predictions. However, this is not necessary and the proof for that is the LBBB class, as it has a fairly sufficient amount of training data, in comparison with other classes investigated in Table 1, but all the models miss-predicted and didn’t recognize it among the data provided, except for the SVM model which at least predicted some amount. And this is probably because the data doesn’t contain all the features needed for this class to be identified on unseen data. However, certain models showed powerful performance predictions for specific classes, such as SVM for the PVC class, RF for the NOR class, and the KNN model for the RBBB class. This phenomenon is caused by the model’s methodology of mapping between the data set’s outputs and inputs, which drives the model to strongly identify particular classes over others. In the case of SVM, the polynomial kernel chosen by the HalvingGridsearch technique, which allows for curved lines in the input space beside a more flexible decision boundary [58]. Despite the powerful performance on specific classes of each model, the ensemble voting model didn’t much succeed in enhancing the predictions performance by using all the models. Instead, it decreased the performance prediction of some classes, except for class NOR, which decreased by 0.02% and failed to predict other classes. This is due to the fact that ensemble voting considers all models evenly, which means that all models vote equally for the predictions. This remains an obstacle to the minority classes, as it is predicted by a few models, and makes the majority models votes less, or against, this class as they do not recognize it and limit its chance of being predicted. as a result, increasing the performance of the majority of the predicted classes at the expense of the minority predicted classes. Thus, single model performance is preferred in such scenarios, which is in our case, the SVM model. And it can be considered a more realistic and generic approach for dealing with scenarios in which a variety of ECG signals are collected from different patients, whose ECG data was not available during the training phase, as it is trained with an inter-patient paradigm data. On another hand, the SVM model has a low and stable computational cost in terms of time during training and predicting the outcomes. The other models have a high computational cost, in terms of time, either at the training or prediction stages, as we can see, for illustration purposes, in Table 9.
Table 9.
Methods | SVM | RF | KNN | VE | |
---|---|---|---|---|---|
Cost | Training | 39.58 s | 478.64 s | 0.031s | 508.05 s |
Prediction | 19.99 s | 7.61 s | 135.74 s | 159.85 s |
The data provided remains very important to train the model on classes and provides an unrestricted view of features of each class, which makes the prediction more feasible. For the inter-patient paradigm separation, where the patients are divided into two data groups, we chose carefully the data used for the training in such way it contains, as possible, more samples of each class than the test set to ensure the best training of the model on all the features. The proposed separation inter-patient paradigm of the patients used in this paper made a significant improvement in predicting samples of certain classes, e.g., the RBBB class, and especially improved the minority arrhythmical classes detection without performing any features engineering complexity, e.g., the PAC class, which remains challenging to predict by most models.
For a fair comparison, we used the outperformed model, the SVM model in our proposed separation approach, and evaluated the inter-patient paradigm proposed by [23], using the same hyper-parameters used above. We measured three metrics: accuracy, recall, and f1 score for each class predicted by the SVM model using the [23] separation approach. The results are shown in Figure 13. In comparison with the results described in Figure 8, our separation approach appears to be more effective and promising for all classes, including LBBB, and especially for the minority class PAC.
Likewise, the results are supported by the classification report in Table 10 in comparison with the results in Table 5.
Table 10.
Predicted Label | ||||||
---|---|---|---|---|---|---|
NOR | LBBB | RBBB | PAC | PVC | ||
True Label | NOR | 0.95 | 0.0015 | 0.00027 | 0.016 | 0.035 |
LBBB | 0.62 | 0.052 | 0 | 0.018 | 0.31 | |
RBBB | 0.44 | 0 | 0.018 | 0.0011 | 0.54 | |
PAC | 0.84 | 0.0093 | 0 | 0.016 | 0.13 | |
PVC | 0.076 | 0.0078 | 0.0019 | 0.005 | 0.91 |
As there has been no previous inter-patient research for the classification of specific types of arrhythmia, specifically the kind we used in terms of an inter-patient paradigm, we also compared the performance of the proposed scheme with other studies in the literature, with one similar work. The overall accuracy achieved by the proposed method seems better than similar work, which uses feature extraction and nearly the same models with different inter-patient schemes and parameters. Besides better results in terms of sensitivity and positive predictivity, considering the same model, the SVM model, and competitive ones considering their performed model. The result we found compared to other works that were conducted following the AAMI standard, which means a superclass of arrhythmia as shown in Table 11, demonstrates that our proposed structure appears to compete with other papers that use the inter-patient [23] paradigm. However, it is worth noting that a superclass, e.g., N, contains NOR, LBBB, and RBBB classes, etc., and in comparison to superclasses of arrhythmia, specific types of arrhythmia are difficult to classify. This gives the proposed work the potential to be very competitive to perform well, and shows that our proposed inter-patient model could provide even better performance if used with feature extraction, which will compete with the state-of-the-art, the results are shown in Table 11.
Table 11.
Ref. | FeEx | CM | Acc(%) | Se | Se | Se | Se | Se | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
N | S | V | F | Q | |||||||||
De Chazal et al. [23] | Yes | LD | 85.8 | 86.8 | 99.1 | 75.9 | 38.5 | 77.7 | 81.9 | 89.4 | 8.6 | 0.0 | 0.0 |
Chen et al. [59] | Yes | SVM | 93.1 | 98.4 | 95.4 | 29.5 | 38.4 | 70.8 | 85.1 | 0.0 | 0.0 | 0.0 | 0.0 |
NOR | LBBB | RBBB | PAC | PVC | |||||||||
Shi et al. [22] | Yes | SVM | 60.0 | 98.0 | 84.6 | 0.5 | 11.9 | 36.7 | 87.6 | 76.4 | 34.6 | 88.6 | 75.7 |
* | 74.5 | 95.0 | 85.1 | 27.9 | 83.8 | 79.6 | 88.9 | 81.8 | 54.6 | 88.1 | 76.0 | ||
Proposed Method | No | SVM | 83.0 | 94.0 | 90.0 | 0.7 | 70.0 | 80.0 | 74.0 | 25.0 | 36.0 | 91.0 | 51.0 |
* is an ensemble voting of four models, KNN, SVM, DT, and RF.
5. Conclusions
In this paper, we investigated an automatic classification system using a new comprehensive ECG database inter-patient paradigm separation to improve the minority arrhythmical classes detection without performing any features extraction. We tested four supervised machine learning models: support vector machine (SVM), k-nearest neighbors (KNN), Random Forest (RF), and the ensemble of these three methods. We tested the performance of these techniques in classifying: Normal Beat (NOR), Left Bundle Branch Block Beat (LBBB), Right Bundle Branch Block Beat (RBBB), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PVC), using inter-patient real ECG records from MIT-DB after segmentation and normalization of the data, and measuring the accuracy, precision, recall, and f1-score. The simulation shows that the SVM had the best performance in comparison with the other methods using the proposed inter-patient paradigm separation, which reflects the importance of this method as a classification tool for ECG arrhythmia.
Abbreviations
We have listed all the technical acronyms used in this paper:
ECG | Electrocardiogram |
SVM | Support vector machine |
RF | Random forest |
KNN | K-Nearest Neighbors |
EV | Ensemble voting |
LD | Linear Discriminant |
NOR | Normal beat |
LBBB | Left Bundle Branch Block Beat |
RBBB | Right Bundle Branch Block Beat |
PAC | Atrial Premature Contraction |
PVC | Premature Ventricular Contraction |
AAMI | Association for the Advancement of Medical Instrumentation |
FeEx | Feature extraction |
CM | Classifier Model |
Se | Sensitivity |
Positive predictivity | |
N | Nonectopic beat |
S | Supraventricular ectopic beat |
V | Ventricular ectopic beat |
F | Fusion beat |
Q | Unknown beat |
Ref | reference |
Author Contributions
M.S., Y.J. and A.H.E.H. contribute to develop this work, including simulation, designing, implementation, and validation. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
Footnotes
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Sörnmo L., Laguna P. Chapter 6—The Electrocardiogram—A Brief Background. In: Sörnmo L., Laguna P., editors. Bioelectrical Signal Processing in Cardiac and Neurological Applications. Academic Press; Burlington, MA, USA: 2005. pp. 411–452. [DOI] [Google Scholar]
- 2.Atrial Premature Beats . The ECG Manual: An Evidence-Based Approach. Springer; London, UK: 2009. pp. 197–200. [DOI] [Google Scholar]
- 3.Rajoub B. Biomedical Signal Processing and Artificial Intelligence in Healthcare. Elsevier; Amsterdam, The Netherlands: 2020. Machine learning in biomedical signal processing with ECG applications; pp. 91–112. [Google Scholar]
- 4.Masarone D., Limongelli G., Ammendola E., Verrengia M., Gravino R., Pacileo G. Risk Stratification of Sudden Cardiac Death in Patients with Heart Failure: An update. J. Clin. Med. 2018;7:436. doi: 10.3390/jcm7110436. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Khan M.G. Bundle Branch Block. In: KHAN M.G., editor. Encyclopedia of Heart Diseases. Academic Press; Burlington, MA, USA: 2006. pp. 185–187. [DOI] [Google Scholar]
- 6.Latif G., Al Anezi F.Y., Zikria M., Alghazo J. EEG-ECG Signals Classification for Arrhythmia Detection using Decision Trees; Proceedings of the 2020 Fourth International Conference on Inventive Systems and Control (ICISC); Coimbatore, India. 8–10 January 2020; pp. 192–196. [Google Scholar]
- 7.Kung B.H., Hu P.Y., Huang C.C., Lee C.C., Yao C.Y., Kuan C.H. An Efficient ECG Classification System using Resource-Saving Architecture and Random Forest. IEEE J. Biomed. Health Inform. 2020;25:1904–1914. doi: 10.1109/JBHI.2020.3035191. [DOI] [PubMed] [Google Scholar]
- 8.Kropf M., Hayn D., Schreier G. ECG classification based on time and frequency domain features using random forests; Proceedings of the 2017 Computing in Cardiology (CinC); Rennes, France. 24–27 September 2017; pp. 1–4. [Google Scholar]
- 9.Khatibi T., Rabinezhadsadatmahaleh N. Proposing feature engineering method based on deep learning and K-NNs for ECG beat classification and arrhythmia detection. Phys. Eng. Sci. Med. 2020;43:49–68. doi: 10.1007/s13246-019-00814-w. [DOI] [PubMed] [Google Scholar]
- 10.Ali K.M.N. A new arrhythmia clustering technique based on Ant Colony Optimization. J. Biomed. Inform. 2008;41:874–881. doi: 10.1016/j.jbi.2008.01.014. [DOI] [PubMed] [Google Scholar]
- 11.Coast D.A., Stern R.M., Cano G.G., Briller S.A. An approach to cardiac arrhythmia analysis using hidden Markov models. IEEE Trans. Biomed. Eng. 1990;37:826–836. doi: 10.1109/10.58593. [DOI] [PubMed] [Google Scholar]
- 12.Gomes P.R., Soares F.O., Correia J.H., Lima C.S. ECG Data-Acquisition and classification system by using wavelet-domain Hidden Markov Models; Proceedings of the 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology; Buenos Aires, Argentina. 31 August–4 September 2010; pp. 4670–4673. [DOI] [PubMed] [Google Scholar]
- 13.Bortolan G., Christov I.I., Pedrycz W. Hyperbox classifiers for ECG beat analysis; Proceedings of the 2007 Computers in Cardiology; Durham, NC, USA. 30 September–3 October 2007; pp. 145–148. [DOI] [Google Scholar]
- 14.da S. Luz E.J., Nunes T.M., De Albuquerque V.H.C., Papa J.P., Menotti D. ECG arrhythmia classification based on optimum-path forest. Expert Syst. Appl. 2013;40:3561–3573. doi: 10.1016/j.eswa.2012.12.063. [DOI] [Google Scholar]
- 15.Lannoy G.d., Francois D., Delbeke J., Verleysen M. Weighted Conditional Random Fields for Supervised Interpatient Heartbeat Classification. IEEE Trans. Biomed. Eng. 2012;59:241–247. doi: 10.1109/TBME.2011.2171037. [DOI] [PubMed] [Google Scholar]
- 16.De Chazal P., Reilly R.B. A patient-adapting heartbeat classifier using ECG morphology and heartbeat interval features. IEEE Trans. Biomed. Eng. 2006;53:2535–2543. doi: 10.1109/TBME.2006.883802. [DOI] [PubMed] [Google Scholar]
- 17.Escalona-Morán M.A., Soriano M.C., Fischer I., Mirasso C.R. Electrocardiogram classification using reservoir computing with logistic regression. IEEE J. Biomed. Health Inform. 2014;19:892–898. doi: 10.1109/JBHI.2014.2332001. [DOI] [PubMed] [Google Scholar]
- 18.Lorenzoni G., Sabato S.S., Lanera C., Bottigliengo D., Minto C., Ocagli H., De Paolis P., Gregori D., Iliceto S., Pisanò F. Comparison of machine learning techniques for prediction of hospitalization in heart failure patients. J. Clin. Med. 2019;8:1298. doi: 10.3390/jcm8091298. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Pérez-Valero J., Caballero Pintado M.V., Melgarejo F., García-Sánchez A.J., Garcia-Haro J., García Córdoba F., García Córdoba J.A., Pinar E., García Alberola A., Matilla-García M., et al. Symbolic Recurrence Analysis of RR Interval to Detect Atrial Fibrillation. J. Clin. Med. 2019;8:1840. doi: 10.3390/jcm8111840. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Padmanabhan M., Yuan P., Chada G., Nguyen H.V. Physician-Friendly Machine Learning: A Case Study with Cardiovascular Disease Risk Prediction. J. Clin. Med. 2019;8:1050. doi: 10.3390/jcm8071050. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Hasegawa D., Yamakawa K., Nishida K., Okada N., Murao S., Nishida O. Comparative Analysis of Three Machine-Learning Techniques and Conventional Techniques for Predicting Sepsis-Induced Coagulopathy Progression. J. Clin. Med. 2020;9:2113. doi: 10.3390/jcm9072113. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Shi H., Wang H., Zhang F., Huang Y., Zhao L., Liu C. Inter-patient heartbeat classification based on region feature extraction and ensemble classifier. Biomed. Signal Process. Control. 2019;51:97–105. doi: 10.1016/j.bspc.2019.02.012. [DOI] [Google Scholar]
- 23.De Chazal P., O’Dwyer M., Reilly R.B. Automatic classification of heartbeats using ECG morphology and heartbeat interval features. IEEE Trans. Biomed. Eng. 2004;51:1196–1206. doi: 10.1109/TBME.2004.827359. [DOI] [PubMed] [Google Scholar]
- 24.Wang T., Lu C., Sun Y., Yang M., Liu C., Ou C. Automatic ECG Classification Using Continuous Wavelet Transform and Convolutional Neural Network. Entropy. 2021;23:119. doi: 10.3390/e23010119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Saenz-Cogollo J.F., Agelli M. Investigating feature selection and random forests for inter-patient heartbeat classification. Algorithms. 2020;13:75. doi: 10.3390/a13040075. [DOI] [Google Scholar]
- 26.Alfaras M., Soriano M.C., Ortín S. A fast machine learning model for ECG-based heartbeat classification and arrhythmia detection. Front. Phys. 2019;7:103. doi: 10.3389/fphy.2019.00103. [DOI] [Google Scholar]
- 27.Chen J., Peng H., Razi A. Remote ECG monitoring kit to predict patient-specific heart abnormalities. J. Syst. Cybern. Inform. 2017;15:82–89. [Google Scholar]
- 28.Huang H., Liu J., Zhu Q., Wang R., Hu G. Detection of inter-patient left and right bundle branch block heartbeats in ECG using ensemble classifiers. Biomed. Eng. Online. 2014;13:72. doi: 10.1186/1475-925X-13-72. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Sahoo S., Subudhi A., Dash M., Sabut S. Automatic classification of cardiac arrhythmias based on hybrid features and decision tree algorithm. Int. J. Autom. Comput. 2020;17:551–561. doi: 10.1007/s11633-019-1219-2. [DOI] [Google Scholar]
- 30.Mishra A.K., Raghav S. Local fractal dimension based ECG arrhythmia classification. Biomed. Signal Process. Control. 2010;5:114–123. doi: 10.1016/j.bspc.2010.01.002. [DOI] [Google Scholar]
- 31.Christov I., Jekova I., Bortolan G. Premature ventricular contraction classification by the Kth nearest-neighbours rule. Physiol. Meas. 2005;26:123. doi: 10.1088/0967-3334/26/1/011. [DOI] [PubMed] [Google Scholar]
- 32.Asl B.M., Setarehdan S.K., Mohebbi M. Support vector machine-based arrhythmia classification using reduced features of heart rate variability signal. Artif. Intell. Med. 2008;44:51–64. doi: 10.1016/j.artmed.2008.04.007. [DOI] [PubMed] [Google Scholar]
- 33.Pandey S.K., Janghel R.R., Vani V. Patient Specific Machine Learning Models for ECG Signal Classification. Procedia Comput. Sci. 2020;167:2181–2190. doi: 10.1016/j.procs.2020.03.269. [DOI] [Google Scholar]
- 34.Kumari C.U., Murthy A.S.D., Prasanna B.L., Reddy M.P.P., Panigrahy A.K. An automated detection of heart arrhythmias using machine learning technique: SVM. Mater. Today Proc. 2020;45:1393–1398. doi: 10.1016/j.matpr.2020.07.088. [DOI] [Google Scholar]
- 35.Karunakaran V., Saranr M., Abishek S., TG G.V., Vojaswwin A., Ramachandran K.I. Detection of Obstructive Sleep Apnea from ECG Signal Using SVM Based Grid Search. Int. J. Electron. Telecommun. 2021;67:5–12. [Google Scholar]
- 36.Karpagachelvi S., Arthanari M., Sivakumar M. Classification of electrocardiogram signals with support vector machines and extreme learning machine. Neural Comput. Appl. 2012;21:1331–1339. doi: 10.1007/s00521-011-0572-z. [DOI] [Google Scholar]
- 37.Wu Q., Zhou D.X. Analysis of support vector machine classification. J. Comput. Anal. Appl. 2006;8:99–119. [Google Scholar]
- 38.Awad M., Khanna R. Efficient Learning Machines. Springer; Berlin/Heidelberg, Germany: 2015. Support vector machines for classification; pp. 39–66. [Google Scholar]
- 39.Van Messem A. Chapter 10—Support vector machines: A robust prediction method with applications in bioinformatics. In: Srinivasa Rao A.S., Rao C., editors. Principles and Methods for Data Science, Handbook of Statistics. Volume 43. Elsevier; Amsterdam, The Netherlands: 2020. pp. 391–466. [DOI] [Google Scholar]
- 40.Schölkop B. An Introduction to Support Vector Machines. In: Akritas M.G., Politis D.N., editors. Recent Advances and Trends in Nonparametric Statistics. JAI; Amsterdam, The Netherlands: 2003. pp. 3–17. [DOI] [Google Scholar]
- 41.Li T., Gao M., Song R., Yin Q., Chen Y. Support Vector Machine Classifier for Accurate Identification of piRNA. Appl. Sci. 2018;8:2204. doi: 10.3390/app8112204. [DOI] [Google Scholar]
- 42.Lekhal R., Zidelmal Z., Ould-Abdesslam D. Optimized time–frequency features and semi-supervised SVM to heartbeat classification. Signal Image Video Process. 2020;14:1471–1478. doi: 10.1007/s11760-020-01681-9. [DOI] [Google Scholar]
- 43.Elhaj F.A., Salim N., Harris A.R., Swee T.T., Ahmed T. Arrhythmia recognition and classification using combined linear and nonlinear features of ECG signals. Comput. Methods Programs Biomed. 2016;127:52–63. doi: 10.1016/j.cmpb.2015.12.024. [DOI] [PubMed] [Google Scholar]
- 44.Alonso-Atienza F., Morgado E., Fernandez-Martinez L., García-Alberola A., Rojo-Alvarez J.L. Detection of life-threatening arrhythmias using feature selection and support vector machines. IEEE Trans. Biomed. Eng. 2013;61:832–840. doi: 10.1109/TBME.2013.2290800. [DOI] [PubMed] [Google Scholar]
- 45.Raj S., Ray K.C. ECG signal analysis using DCT-based DOST and PSO optimized SVM. IEEE Trans. Instrum. Meas. 2017;66:470–478. doi: 10.1109/TIM.2016.2642758. [DOI] [Google Scholar]
- 46.Moavenian M., Khorrami H. A qualitative comparison of artificial neural networks and support vector machines in ECG arrhythmias classification. Expert Syst. Appl. 2010;37:3088–3093. doi: 10.1016/j.eswa.2009.09.021. [DOI] [Google Scholar]
- 47.Samanthula B.K., Elmehdwi Y., Jiang W. K-nearest neighbor classification over semantically secure encrypted relational data. IEEE Trans. Knowl. Data Eng. 2014;27:1261–1273. doi: 10.1109/TKDE.2014.2364027. [DOI] [Google Scholar]
- 48.Coutinho D.P., Silva H., Gamboa H., Fred A., Figueiredo M. Novel fiducial and non-fiducial approaches to electrocardiogram-based biometric systems. IET Biom. 2013;2:64–75. doi: 10.1049/iet-bmt.2012.0055. [DOI] [Google Scholar]
- 49.Kutlu Y., Kuntalp D. A multi-stage automatic arrhythmia recognition and classification system. Comput. Biol. Med. 2011;41:37–45. doi: 10.1016/j.compbiomed.2010.11.003. [DOI] [PubMed] [Google Scholar]
- 50.Martis R.J., Acharya U.R., Prasad H., Chua C.K., Lim C.M., Suri J.S. Application of higher order statistics for atrial arrhythmia classification. Biomed. Signal Process. Control. 2013;8:888–900. doi: 10.1016/j.bspc.2013.08.008. [DOI] [Google Scholar]
- 51.Homaeinezhad M.R., Atyabi S.A., Tavakkoli E., Toosi H.N., Ghaffari A., Ebrahimpour R. ECG arrhythmia recognition via a neuro-SVM–KNN hybrid classifier with virtual QRS image-based geometrical features. Expert Syst. Appl. 2012;39:2047–2058. doi: 10.1016/j.eswa.2011.08.025. [DOI] [Google Scholar]
- 52.Breiman L. Random forests. Mach. Learn. 2001;45:5–32. doi: 10.1023/A:1010933404324. [DOI] [Google Scholar]
- 53.Bureau A., Dupuis J., Hayward B., Falls K., Van Eerdewegh P. Mapping complex traits using Random Forests. BMC Genet. 2003;4:S64. doi: 10.1186/1471-2156-4-S1-S64. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Moody G.B., Mark R.G. MIT-BIH Arrhythmia Database. 1992. [(accessed on 5 February 2020)]. Available online: https://physionet.org/content/mitdb/1.0.0/
- 55.Pedregosa F., Varoquaux G., Gramfort A., Michel V., Thirion B., Grisel O., Blondel M., Prettenhofer P., Weiss R., Dubourg V., et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011;12:2825–2830. [Google Scholar]
- 56.Yang Y. Chapter 4—Ensemble Learning. In: Yang Y., editor. Temporal Data Mining via Unsupervised Ensemble Learning. Elsevier; Amsterdam, The Netherlands: 2017. pp. 35–56. [DOI] [Google Scholar]
- 57.Raza K. Chapter 8—Improving the prediction accuracy of heart disease with ensemble learning and majority voting rule. In: Dey N., Ashour A.S., Fong S.J., Borra S., editors. U-Healthcare Monitoring Systems. Academic Press; Cambridge, MA, USA: 2019. pp. 179–196. Advances in Ubiquitous Sensing Applications for Healthcare. [DOI] [Google Scholar]
- 58.Ben-Hur A., Ong C.S., Sonnenburg S., Schölkopf B., Rätsch G. Support vector machines and kernels for computational biology. PLoS Comput. Biol. 2008;4:e1000173. doi: 10.1371/journal.pcbi.1000173. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Chen S., Hua W., Li Z., Li J., Gao X. Heartbeat classification using projected and dynamic features of ECG signal. Biomed. Signal Process. Control. 2017;31:165–173. doi: 10.1016/j.bspc.2016.07.010. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Not applicable.