Skip to main content
Biomedical Engineering Letters logoLink to Biomedical Engineering Letters
. 2022 Mar 7;12(2):205–215. doi: 10.1007/s13534-022-00223-1

Nonlinear model-based cardiac arrhythmia diagnosis using the optimization-based inverse problem solution

Maryam gholami 1, Mahsa Maleki 2,3, Saeed Amirkhani 2,3,✉, Ali Chaibakhsh 2,3
PMCID: PMC9046521  PMID: 35529347

Abstract

This study investigates a nonlinear model-based feature extraction approach for the accurate classification of four types of heartbeats. The features are the morphological parameters of ECG signal derived from the nonlinear ECG model using an optimization-based inverse problem solution. In the model-based methods, high feature extraction time is a crucial issue. In order to reduce the feature extraction time, a new structure was employed in the optimization algorithms. Using the proposed structure has considerably increased the speed of feature extraction. In the following, the effectiveness of two types of optimization methods (genetic algorithm and particle swarm optimization) and the McSharry ECG model has been studied and compared in terms of speed and accuracy of diagnosis. In the classification section, the adaptive neuro-fuzzy inference system and fuzzy c-mean clustering methods, along with the principal component analysis data reduction method, have been utilized. The obtained results reveal that using an adaptive neuro-fuzzy inference system with data obtained from particle swarm optimization will have the shortest process time and the best diagnosis, with a mean accuracy of 99% and a mean sensitivity of 99.11%.

Keywords: Arrhythmia classification, ECG dynamical model, Feature extraction, Inverse solution

Introduction

Today, medical support systems play an important role in the accurate and rapid diagnosis of diseases. In the meantime, since heart disease has always been the leading cause of many deaths in humans, the use of medical support systems for the diagnosis of cardio-related diseases is cardinally important. Irregular heart rhythm (or cardiac arrhythmia) can signify heart disease. In fact, after determining the type of arrhythmias, the patient's condition can be determined by the electrocardiogram signal (ECG). Due to the diversity of arrhythmias and the time-consuming process of ECG signaling, there is always a possibility of human mistakes in the diagnostic process.

Automatic diagnosis of cardiovascular disease in medical and emergency cardiac patients can reduce the challenges of noise, artifacts, and human mistakes, leading to the improvement of medical standards in this area. Therefore, using soft processing techniques and machine learning in medical systems is important for cardiovascular diseases; many efforts have hitherto been made to develop methods for detecting arrhythmias from an ECG signal. To this objective, some researchers have focused on two aspects of ECG signal pre-processing: eliminating noise and artifacts and beat segmentation to improve the diagnosis of arrhythmias from the ECG signal [1–3]. Nonetheless, in many studies, the focus has been on two main aspects of work: features extracting and applying an effective classification method [4–8].

The features extraction is one of the most important parts of the work as it impacts the classification directly and significantly. Among the features used in the published papers, the features of the time/frequency domain [9, 10], wavelet transform [11–13], and morphological features [14, 15] are noteworthy. Research has shown that, due to the nonlinear and dynamic nature of ECG signals, using nonlinear methods is more efficient in extracting the features compared to linear methods. Hence, the development of nonlinear feature extraction methods to increase the accuracy of arrhythmias diagnosis appeals more to the interest of the researchers [16].

The model-based approach is an innovative nonlinear features extracting method [17]. In this approach, using a nonlinear dynamic model of ECG signal and an optimization-based inverse problem solution, parameters of the model are extracted as features when the ECG model output matches the real ECG signal. Extracting ECG signal features from the dynamic model is one of the nonlinear methods that can increase noise and artifacts detection robustness.

Optimization-based inverse problem solution methods are a critical field of applied mathematics and scientific computing, which have many applications in different areas of engineering and science. Generally, the inverse problem solution is understood as finding particular physical properties of the under investigation system, using indirect measurements [18]. Examples of the reverse solution method applications can be found in the field of medical imaging [19], cancer detection [20], fault detection [21], geography and exploration [22].

So far, much attention has been paid to producing synthetic ECG signals by mathematical models. Different models have been developed for the dynamic behavior of the ECG signal [23–27], the most important applications of which is to process and analyze the ECG signal [28, 29]. The most famous mathematical model presented for the ECG signal is the Zeeman model, presented in 1972 [30]. Because of the lack of attention to the biological parameters such as sympathetic and parasympathetic modulation, the new version of the ECG model was introduced later on [25, 31], the most notable work of which is the one by McSharry et al. in 2003, with the corresponding open-source model available on the Physionet website [25]. The McSharry model produces the ECG signal by solving three nonlinear equations that describe the dynamical description signal of the ECG. Some parameters of these equations alter the shape of the signals by changing them.

Choosing an effective classification method is another essential part of the work that can significantly affect the determination of the diagnosis accuracy. Some of the methods used to classify heart disease can be found in the following: artificial neural network (ANN) [32], support vector machining (SVM) [33], fuzzy c-mean clustering (FCM) [34], self-organizing map (SOM) [35], and optimum-path forest (OPF) [36]. Also, data reduction techniques [37] and feature selection [38] methods have been used in many works to enhance the efficiency of the methodology.

In the related literature, many studies have been done on the intelligent diagnosis of various arrhythmias from the ECG signal, which refers to some of the most important and recent works. In [39], Jovic et al. used the linear and nonlinear features of the heart rate variation (HRV) derived from the ECG signal for eight types of arrhythmias diagnosis. The study compared 56 linear and nonlinear features in eight combinations with three classifiers (including random forest, AdaBoosted C4.5, and SVM) to diagnose arrhythmias. The best performance was achieved by using a combination of nonlinear time domain features with random forest classification with an average accuracy of 85%.

Khalaf et al. employed the method of analyzing the cyclostationary signal, which has a robust behavior to noise, to extract and apply the spectral correlation coefficients of statistical and nonlinear features. Also, they implemented the method of reducing the dimensions of PCA and the Fisher score together with SVM's classifier in order to detect five types of rhythms. The final accuracy in detecting five rhythms (namely: normal rhythm, premature ventricular contraction (PVC), premature atrial contraction (PAC), left bundle branch block (LBBB), and right bundle branch block (RBBB) arrhythmias) was reported to be 98.6% [40]. Martis et al. used the higher-order statistics (HOS) method to retrieve nonlinear features based on the non-stationary and nonlinear nature of the heart. In this paper, the detection of five rhythms containing normal rhythm, right bundle branch block (RBBB), left bundle branch block (LBBB), premature atrial contraction (PAC), and ventricular premature contraction (VPC) has been investigated by using the least square-support vector machine (LS-SVM) classification techniques, along with the PCA1 data reduction method. The accuracy was found to be 93.48% [41]. Elhaj et al. tried to detect five types of non-ectopic beats, supra-ventricular ectopic beats, fusion beats, and unclassifiable and paced beats using nonlinear methods of independent component analysis, high order statistics, and cumulates, in combination with the linear technique of discrete wavelet transform coefficients. In this work, the SVM classification method with radial basis function has been used, the accuracy of which is estimated to be 98.91% [42].

The use of dynamic model parameters as a feature for diagnosing heart disease was first performed by Vafaie et al. [17]. In this work, by employing the McSharry model [31] and genetics algorithm, and using the model parameters as the features of ECG signal, the normal heartbeat, atrial fibrillation, ventricular tachycardia, and congestive heart failure was detected, and a genetic-fuzzy classifier analysis was performed. The accuracy of this diagnosis was reported to be 98.67%. One of the main challenges in extracting the parameters of the ECG model as a feature is the high extraction time of the parameters using the optimization method, which has not been addressed in reference [17].

As far as the scope of the paper is concerned, employing nonlinear model-based methods to extract the ECG signal features for the diagnosis of heart disease has been considered recently. In this paper, it has been tried to increase the diagnostic algorithm accuracy and reduce the extraction time of the model parameters. In this way, the diagnosis of arrhythmias of atrial fibrillation, ventricular tachycardia, congestive heart failure, and heart rate is studied. The main novelties of this work can be summarized as:

  • In the feature extraction phase, a new structure is proposed to achieve a reliable and short time optimization-based inverse solution.

  • With pre-processing conducted, only one heartbeat is segmented, and its features are obtained from the model. Also, the duration of the beats has been used as a model parameter, which reduces the optimization time and increases the diagnosis accuracy.

  • A comprehensive comparative study has been performed on the optimization algorithm type and classification method to find the best results with the short time solution.

The organization of this paper is denoted as follows: Sect. 2 presents the database and data set description; Sect. 3 proposes methodologies. The utilized dynamic models, pre-processing methods, optimization methods, classifying methods, and the PCA data reduction method have been elaborated in this section. The main results are provided in Sect. 4. Section 5 presents the discussion. Finally, the conclusions are given in Sect. 6.

Methodology

Nonlinear dynamic model of ECG

Here, the McSharry model has been used to extract the features of ECG signals. Three differential equations of the model are:

x˙=ax-ωy 1
y˙=ay-ωx 2
z˙=-∑i∈[PQRST]αiΔθiexp-Δθi22b∂-(z-z0) 3

While:

α=1-x2+y2 4
Δθ=(θ-θi)2π 5
θ=αtan(2λ) 6
z0=Asin(2πf2t) 7

In the above equation, θ is the quadrant arctangent of the real parts of x and y, provided that:

-π≤αtan2(x,y)≤π 8

Also, the trajectory angular velocity is obtained from the duration of a beat. The coefficient of A is a constant value, which determines the bias of the ECG, and f2 is the breathing frequency. As can be seen, the ECG signal PQRST complex features are included in the equations by the parameters ai,bi, and θi. The position of the waves is set by θi, and their amplitude and width, are represented by ai and bi, respectively. Solving Eqs. 1 to 3, an ECG signal mapping in a three-dimensional space is obtained on the circumference of a circle with a radius of one. The elements x and y define the coordinates on the circumference and the z is the signal size. Some parts have been added to the modified model to include sympathetic and parasympathetic effects. In this regard, the low frequencies (LFs) Mayer wave, the high frequencies (HFs) sinus arrhythmia of respiratory, and the LF/HF ratio are added to the modified model. The modified model is fully described in [31].

To extract the characteristics of ECG signals, the McSharry model is used in the cost function structure of the optimization. The parameters in the equations are created through optimization algorithms. After solving the ECG signal equations, the created ECG signal is compared with the actual ECG signal, and the error value is calculated. The optimization process continues to find optimal parameters.

Pre-processing

In this paper, two approaches have been taken before the features are extracted by optimization. The first approach is based on the work done by Vafaei et al. [17], on which no pre-processing has been implemented. In this case, ECG signals with a length of three seconds are used for optimization. In order to reduce the optimization time in the second case, only the parameters of a beat are detected. Therefore, it is necessary to separate one beat from the signal. This is done using the R-peak detection method, and the number of beats per minute is obtained simultaneously [43]. Another attempt is made in the pre-processing phase by removing the bias from the ECG signals, which is not implemented in the first approach. This increases the time of matching the output of the model and the main signal in the optimization.

Feature extraction

The optimization method is used to extract the features of the ECG signals (namely, the parameters of the dynamic model). In this paper, two approaches have been used for this purpose. The first approach is similar to [17], and the second approach is the proposed method of this paper (Fig. 1). Considering that this study aims to reduce the optimization time and increase the accuracy of the arrhythmias diagnosis, various situations have been investigated to provide the best results.

Fig. 1.

Fig. 1

a Feature extraction flowchart for the first approach, b feature extraction flowchart for the second approach includes two optimization methods for comparison

In the first approach, the extracted data (3-s long) directly enter the optimization to identify the dynamic model parameters, and the 15 parameters of the dynamic model are identified using the genetic algorithm. These 15 parameters are related to amplitude, width, and phase of PQRST ([αi,bi,θi];i∈(P,Q,R,T,S)).

The McSharry model has been used as the cost function of this approach (Fig. 1a). The cost value is the root of the mean square value of the difference between the dynamic model output and the actual ECG signal.

z=1N∑i=1N(S(i)-S^(i))2 9

In the above equation, N is the length (number of samples) of the ECG, S is the actual signal, and S^ is the model output. Also,z represents the cost amount that should be minimized through optimization.

In the second approach, pre-processing is performed. After signal offset removal, a single beat is segmented, and the heart rate is obtained in one minute. In this way, there will be no need for offsets and heartbeat rates during the optimization process. Two methods of GA and PSO have been used to realize the optimization effect. To decrease the optimization run time, a cascade structure is proposed. In this structure, by considering the amount of cost function and the number of iterations, it is decided whether the optimization is completed or it is necessary to change the search area bounds after each iteration. While, in the first approach, the optimization is completed after the maximum iteration is done (Fig. 1b).

The proposed cascade structure in the optimization is shown in Fig. 2. Parameters related to the cascade structure, such as the search area bounds, the optimal stopping cost, as well as the conditions for changing the search area bounds, are based on the observations made from the optimizations. Furthermore, both search area bounds are considered similar because of the high similarity of the normal and the AF signals.

Fig. 2.

Fig. 2

Proposed cascade structure in the optimization flowchart

Genetic algorithm optimization

Genetic algorithm optimization is used to obtain the dynamic model parameters for ECG signals. In Table 1, the genetic algorithm parameters are given for the two implemented approaches. Given that the ECG signal does not necessarily require to correspond to the actual signal exactly, and knowing that decreasing the optimization time is very important, the population size and the number of generations are considered small, and the mutation and crossover coefficients are obtained by trial and error. The condition of optimization completion in the first approach is similar to [17] that is to reach the 30th generation, and in the second approach (by proposed cascade structure), it is to reach the 20th generation, or the break cost value condition is used for the end of optimization.

Table 1.

Optimization parameters for GA

Parameter Value
First approach [17] Proposed approach
Population size 50 50
Generations 30 20
Variable numbers 15 15
Mutation Uniform: 0.2 Uniform: 0.2
Crossover Scattered:0.7 Scattered:0.7
Selecting Stochastic uniform Stochastic uniform

PSO algorithm

The particle swarm optimization (PSO) algorithm introduced by Kennedy et al. in 1995 is now one of the most well-known swarm intelligence optimization algorithms [44]. One of the obvious features of this optimization algorithm is its high speed to converge to the optimal solutions [45, 46]. Therefore, this optimization algorithm is also used to increase the extraction speed of dynamic model parameters. In this algorithm, particles move in search area bounds of parameters according to the global best position and best personal experience of each particle to achieve the best possible result. At each iteration, a new position and velocity for each particle are calculated according to the following equations:

vi(t)=χ{vi(t-1)+c1r1(lbesti-xi(t-1))}+χ{c2r2(gbesti-xi(t-1))} 10
xi(t)=xi(t-1)+vi(t) 11
χ=22-φ-φ2-4φ 12

In these equation vi(t) and xi(t) are the velocity and position of particle i, respectively. c1 and c2 are learning factors, and r1 and r2 are random numbers in the range of (0,1). lbesti and gbesti are local best and global best, respectively. χ is the construction coefficient, which affects the convergence speed [47]. In this article φ is set to 4.1, and c1, c2 are set to 2.05. Other optimization parameters such as population size, iteration (or generation) and variable numbers, and also a condition of completion and cost function are considered as the proposed approach in Table 1.

Classification

Following the feature extraction based on the dynamic model of ECG signals, including 15 characteristics of amplitude, width, and phase, the components of PQRST complex and heart rate per minute (a total of 16 features), the classification methods can be used to diagnose diseases. In this paper, the fuzzy c-means (FCM) [48] and the adaptive neuro-fuzzy inference system (ANFIS) [49], along with the principal component analysis (PCA), have been used for classification. In [17], the fuzzy system and the fuzzy-GA system are used for this purpose but considering the very fact that all the data are used for training, the results are not reliable; while for evaluating the identification and classification methods, it is necessary to use a part of the data for test [50]. In the present work, the k-fold cross-validation method was used for training and validating the classification, considering k = 5. The k-fold cross-validation method is one of the highly valid techniques in training and validating the classifiers, eliminating concerns about the choice of test and training data sets, and providing accurate results [51].

Experimental results

Data set description

Providing reliable and suitable data to study the data-based methods is one of the main steps of this paper. Fortunately, the Physio Bank database has made it possible for researchers interested in working on heart disease [52]. Here, the required data are obtained from the MIT-BIH arrhythmia database. These data contain 48 half-hourly ECG labeled samples that include various types of arrhythmias. These data are recorded on two channels with a sampling rate of 360 samples per second and a resolution of 11 bits. The data of four types of rhythms are required for this work, including normal heartbeats (N), arrhythmias of atrial fibrillation (AF), congestive heart failure (CHF), and ventricular tachycardia arrhythmias (VT). From each rhythm, 75 signals with 3-s lengths are extracted. Atrial fibrillation is a prevalent atrioventricular arrhythmia due to the onset of a fast-electric pulse in the atria. This arrhythmia occurs when the irritation in the atrium is irregular and has no specific direction; that is, atria muscle cells are irregularly irritated [53].

Congestive heart failure is equivalent to reducing the ability of the heart to pump blood. People with heart failure often have a history of heart attacks in the past. Congestive failure may involve left or right, or both sides of the heart. Congestive heart failure often occurs in people over the age of 60, and more than 50% of people suffering from the disease die from heart attacks. Tachycardia or fast-paced heart rate increases to more than 100 beats per minute. In a person with ventricular tachycardia, a series of ventricular contractions originate from a point within the ventricles, and the heart rate exceeds 100 beats per minute. The main concern of this kind of cardiac tachycardia is that this kind of arrhythmia may cause problems with the regular blood pumpage by the heart, and the person may experience vertigo and syncope [53].

Feature extraction time

Some of the results are related to the optimization time of the features extraction; the computer used in this work is a PC with a CPU 2.40 GHz Intel® Core ™ i3 and 8.00 GB RAM. The results of the first approach optimization process are in accordance with the work of Vafaei et al. [17]; the optimization time for each data was 94 s, which is time-consuming. Using the proposed method in the structure of GA and PSO optimization algorithms significantly reduced the optimization time. As shown in Table 2, the time intervals were obtained in different scenarios.

Table 2.

The runtime of the optimizations in different states (s)

Optimization Normal AF VT CHF Average
GA [17] 94 94 94 94 94
GA 21.27 14.45 42.65 37.08 28.85
PSO 19.93 16.43 36.45 31.36 26.04

The time results obtained from the optimization section for extracting the model parameters suggest that the shortest time corresponds to using the PSO optimization method.

Classification results

After extracting the model parameters for all the data, it is time for classification by these features. To evaluate the classification results, performance factors of accuracy, sensitivity, specificity, and positive predictive value have been calculated. After calculating the performance factors in each fold, their average is calculated for fivefold. The FCM and ANFIS methods, as well as the PCA method, have been used in classification. This work was based on the features extracted from three methods (including simple GA optimization [17] and two cases related to the second approach: GA & PSO in the proposed cascade structure). Using PCA, the optimal number of reductions in the data dimension is obtained from trial and error. The results of using the FCM and PCA are illustrated in Table 3. The best results were obtained when the data dimension was reduced to 12 using PCA, and the number of Takagi–Sugeno fuzzy rules was considered to be four. This table presents the average values of each of the four performance factors for fivefold in the test phase. Accordingly, the best results are obtained using parameters derived from the PSO method. Using ANFIS and PCA methods for classification yielded better results compared to the FCM; the best results were obtained by reducing the data dimensions to five and selecting two Gaussian type membership functions for each input and 500 iterations in the training phase. The best answers with very little difference are achieved in these situations when the PSO features are used. Table 4 shows the average performance factors for fivefold in the test phase for each condition.

Table 3.

Average FCM-PCA classification results over fivefold in the test phase

Performance Simple GA [17] proposed method and GA proposed method and PSO
Average accuracy (%) 94 94.33 96.67
Average sensitivity (%) 95.11 93.78 96
Average specificity (%) 90.67 96 98.67
Average PPV (%) 96.76 98.60 99.52

Table 4.

Average ANFIS-PCA classification results over fivefold in test phase

Performance Simple GA [17] proposed method and GA proposed method and PSO
Average accuracy (%) 97 98.67 99
Average sensitivity (%) 96 98.67 99.11
Average specificity (%) 100 98.67 98.67
Average PPV (%) 100 99.56 99.56

Also, the results indicate that by employing the features obtained in a shorter time from the proposed optimization structure, the detection accuracy becomes higher than the first approach (simple GA optimization). The results of the proposed method, which include GA and PSO in the training and testing phases, are shown in Table 5, 6, 7 and 8 and Figs. 3, 4, 5 and 6. In Table 5, the details of the results of the FCM-PCA classification are presented in an average of fivefold in the train and test phase using the data obtained from GA. The existence of decimal numbers in Table 5 was due to the average number of detections in fivefold. In Fig. 3, the results are presented in the box plot diagram. The results of Table 5 and Fig. 3 show that the highest error occurs in diagnosing healthy rhythm and AF arrhythmia. Table 6 and Fig. 4 demonstrate the details of the results derived from the PSO data and the FCM-PCA method. In this case, the diagnosis of CHF in the training and testing phase was 100% accurate, and the most commonly mistaken diagnosis was for AF that was detected as normal. Better performance is achieved using the ANFIS and PCA methods, as shown in Table 7 and Fig. 5. As can be seen, using the data obtained from GA in detecting VT and CHF, the error rate is zero, and the largest error occurs in the diagnosis of AF arrhythmia. Table 8 and Fig. 6 show the detailed results obtained by the PSO data and implementing the ANFIS-PCA method, which brought the best results. In this case, the accuracy of the diagnosis of AF arrhythmia is also improved. As previously shown in Table 4, in this case, the highest accuracy and sensitivity are encountered within the diagnosis.

Table 5.

Average FCM-PCA classification results over fivefold (features extracted by the GA)

ECG groups with 60 samples for train and 15 samples for test Train Test
The average number of ECG signals placed in each group over fivefold The average number of ECG signals placed in each group over fivefold
Normal AF VT CHF Normal AF VT CHF
Normal 58.4 1.6 0 0 14.4 0.6 0 0
AF 4.4 55.6 0 0 1.4 13.6 0 0
VT 0 0 58 2 0 0.4 13.6 1
CHF 0 0 0 60 0 0 0 15

Table 6.

Average FCM-PCA classification results over fivefold (features extracted by PSO)

ECG groups with 60 samples for train and 15 samples for test Train Test
The average number of ECG signals placed in each group over fivefold The average number of ECG signals placed in each group over fivefold
Normal AF VT CHF Normal AF VT CHF
Normal 60 0 0 0 14.6 0.4 0 0
AF 5 54.4 0.6 0 1.4 13.6 0 0
VT 0 1.4 58.6 0 0 0.4 14.6 0
CHF 0 0 0 60 0 0 0 15

Table 7.

Average ANFIS-PCA classification results over fivefold (features extracted by the GA)

ECG groups with 60 samples for train and 15 samples for test Train Test
The average number of ECG signals placed in each group over fivefold The average number of ECG signals placed in each group over fivefold
Normal AF VT CHF Normal AF VT CHF
Normal 59.2 0.8 0 0 14.8 0.2 0 0
AF 1.6 58.4 0 0 0.6 14.4 0 0
VT 0 0 60 0 0 0 15 0
CHF 0 0 0 60 0 0 0 15

Table 8.

Average ANFIS-PCA classification results over fivefold (features extracted by PSO)

ECG groups with 60 samples for train and 15 samples for test Train Test
The average number of ECG signals placed in each group over fivefold The average number of ECG signals placed in each group over fivefold
Normal AF VT CHF Normal AF VT CHF
Normal 59.8 0.2 0 0 14.8 0.2 0 0
AF 0.8 59.2 0 0 0.2 14.8 0 0
VT 0 0.8 59.2 0 0 0.2 14.8 0
CHF 0 0 0 60 0 0 0 15

Fig. 3.

Fig. 3

FCM-PCA classification results over fivefold in a training and b testing phases (features extracted by GA)

Fig. 4.

Fig. 4

FCM-PCA classification results over fivefold in a training and b testing phases (features extracted by PSO)

Fig. 5.

Fig. 5

ANFIS-PCA classification results over fivefold in a training and b testing phases (features extracted by GA)

Fig. 6.

Fig. 6

ANFIS-PCA classification results over fivefold in a training and b testing phases (features extracted by PSO)

Discussion

In the current study, a model-based approach was applied to diagnose heart arrhythmias, AF, VT, and CHF via a normal ECG signal. The positive feature of the model-based method is its precision, and the time to extract the model parameters using the optimization method is the most critical challenge. In this study, it has been demonstrated that using some techniques makes it possible to achieve high accuracy and lower the detection time. In this regard, a cascade structure was used for optimization. GA and PSO optimization methods were implemented, and the McSharry model was used in the cost function. The results showed that using the PSO optimization algorithm and the McSharry model, the parameters of the ECG signal model were extracted in the shortest frame of time. Using the two methods of FCM and ANFIS together with the PCA technique in the classification section showed that the ANFIS method, using data obtained from PSO, has the highest performance with an accuracy of 99% and sensitivity of 99.11%.

The first and only work done to diagnose heart disease is based on the ECG dynamic model in [17]. In this work, the accuracy of the diagnosis was reported to be 98.67% using the fuzzy-GA classification. However, as noted earlier, the precision is not reliable due to the lack of classification validation in this work (the lack of test data). In order to verify the results more precisely, the model parameters were extracted from the data to obtain the optimization time and investigate the classification results according to the method used in [16]. The accuracy of 97% and sensitivity of 96% were achieved using ANFIS along with PCA and the cross-validation method.

It is assumed that pre-processing and segmentation of a single heartbeat to obtain parameters, as well as using the beat duration, have a great effect on reducing the optimization time, and using the heartbeat duration as a feature in the classification also improves the classification accuracy.

Conclusions

In the current study, the model-based method was used to detect three types of heart diseases: AF, VT, and CHF, and a healthy heart rhythm. For this purpose, after the beat segmentation, two GA and PSO optimization methods were used in a proposed structure to extract the ECG signal parameters. Using the proposed structure in optimization in its most optimal case reduced the extraction time of the model parameters by 3.6 times. ANFIS and FCM methods were used for classification. Therefore, the best results were obtained: 99% accuracy, 99.1% sensitivity, 98.68% specificity, and 99.56% PPV, which were the results of using the ANFIS method along with PCA through the data obtained from PSO. The results indicate the high ability of nonlinear model-based methods to extract the discrimination features of heartbeats types. According to the authors, using real-time programming languages, vectorization techniques in optimization, and parallel processing techniques effectively improve the time factor in model-based methods. They can be investigated by those interested in these fields.

Footnotes

1

Principal component analysis.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Luz EJDS, Schwartz WR, Cámara-Chávez G, Menotti D. ECG-based heartbeat classification for arrhythmia detection: a survey. Comput Methods Programs Biomed. 2016;127:144–164. doi: 10.1016/j.cmpb.2015.12.008. [DOI] [PubMed] [Google Scholar]
  • 2.Beraza I, Romero I. Comparative study of algorithms for ECG segmentation. Biomed Signal Process Control. 2017;34:166–173. doi: 10.1016/j.bspc.2017.01.013. [DOI] [Google Scholar]
  • 3.M. Akhbari, M. B. Shamsollahi, O. Sayadi, A. A. Armoundas, C. Jutten, and medicine, "ECG segmentation and fiducial point extraction using multi hidden Markov model," Computers in biology, vol. 79, pp. 21–29, 2016. [DOI] [PubMed]
  • 4.Seena V, Yomas J. A review on feature extraction and denoising of ECG signal using wavelet transform. In: 2014 2nd international conference on devices, circuits and systems (ICDCS). IEEE; 2014, p. 1–6.
  • 5.Huang K, Zhang L. Cardiology knowledge free ECG feature extraction using generalized tensor rank one discriminant analysis. EURASIP J Adv Signal Process. 2014;2014(1):2. doi: 10.1186/1687-6180-2014-2. [DOI] [Google Scholar]
  • 6.Lin H-Y, Liang S-Y, Ho Y-L, Lin Y-H, Ma H-P. Discrete-wavelet-transform-based noise removal and feature extraction for ECG signals. Irbm. 2014;35(6):351–361. doi: 10.1016/j.irbm.2014.10.004. [DOI] [Google Scholar]
  • 7.Javadi M, Arani SAAA, Sajedin A, Ebrahimpour R. Classification of ECG arrhythmia by a modular neural network based on mixture of experts and negatively correlated learning. Biomed Signal Process Control. 2013;8(3):289–296. doi: 10.1016/j.bspc.2012.10.005. [DOI] [Google Scholar]
  • 8.Wang J-S, Chiang W-C, Hsu Y-L, Yang Y-TC. ECG arrhythmia classification using a probabilistic neural network with a feature reduction method. Neurocomputing. 2013;116:38–45. doi: 10.1016/j.neucom.2011.10.045. [DOI] [Google Scholar]
  • 9.Mert A, Kılıç N, Akan A. Evaluation of bagging ensemble method with time-domain feature extraction for diagnosing of arrhythmia beats. Neural Comput Appl. 2014;24(2):317–326. doi: 10.1007/s00521-012-1232-7. [DOI] [Google Scholar]
  • 10.Llamedo M, Martínez JP. Heartbeat classification using feature selection driven by database generalization criteria. IEEE Trans Biomed Eng. 2011;58(3):616–625. doi: 10.1109/TBME.2010.2068048. [DOI] [PubMed] [Google Scholar]
  • 11.Rai HM, Trivedi A, Shukla S. ECG signal processing for abnormalities detection using multi-resolution wavelet transform and artificial neural network classifier. Measurement. 2013;46(9):3238–3246. doi: 10.1016/j.measurement.2013.05.021. [DOI] [Google Scholar]
  • 12.Thomas M, Das MK, Ari S. Automatic ECG arrhythmia classification using dual tree complex wavelet based features. AEU Int J Electron Commun. 2015;69(4):715–721. doi: 10.1016/j.aeue.2014.12.013. [DOI] [Google Scholar]
  • 13.de Albuquerque VHC, et al. Robust automated cardiac arrhythmia detection in ECG beat signals. Neural Comput. 2018;29(3):679–693. doi: 10.1007/s00521-016-2472-8. [DOI] [Google Scholar]
  • 14.de Oliveira LS, Andreão RV, Sarcinelli-Filho M. Premature ventricular beat classification using a dynamic Bayesian network. In: Engineering in medicine and biology society, EMBC, 2011 annual international conference of the IEEE, 2011. IEEE; 2011, p. 4984–4987. [DOI] [PubMed]
  • 15.Ye C, Kumar BV, Coimbra MT. Heartbeat classification using morphological and dynamic features of ECG signals. IEEE Trans Biomed Eng. 2012;59(10):2930–2941. doi: 10.1109/TBME.2012.2213253. [DOI] [PubMed] [Google Scholar]
  • 16.Martis RJ, et al. Application of higher order statistics for atrial arrhythmia classification. Biomed Signal Process. 2013;8(6):888–900. doi: 10.1016/j.bspc.2013.08.008. [DOI] [Google Scholar]
  • 17.Vafaie MH, Ataei M, Koofigar HR. Heart diseases prediction based on ECG signals’ classification using a genetic-fuzzy system and dynamical model of ECG signals. Biomed Signal Process Control. 2014;14:291–296. doi: 10.1016/j.bspc.2014.08.010. [DOI] [Google Scholar]
  • 18.Clermont G, Zenker S. The inverse problem in mathematical biology. Math Biosci. 2015;260:11–15. doi: 10.1016/j.mbs.2014.09.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Lucas A, Iliadis M, Molina R, Katsaggelos AK. Using deep neural networks for inverse problems in imaging: beyond analytical methods. IEEE Signal Process Mag. 2018;35(1):20–36. doi: 10.1109/MSP.2017.2760358. [DOI] [Google Scholar]
  • 20.Abbasi H, Haghzad S, Amirkhani S, Eshghi M. Early detection of breast cancer using genetic algorithm and neuro-fuzzy network. In: 2014 22nd Iranian conference on electrical engineering (ICEE). IEEE; 2014, p. 1939–1944.
  • 21.Echevarría LC, Santiago OL, de Campos Velho HF, da Silva Neto AJ. Fault diagnosis inverse problems: solution with metaheuristics. New York: Springer; 2019. [Google Scholar]
  • 22.Hedjazian N, Capdeville Y, Bodin T. Multiscale seismic imaging with inverse homogenization. Geophys J Int. 2021;226(1):676–691. doi: 10.1093/gji/ggab121. [DOI] [Google Scholar]
  • 23.Dutta A, Bera S. Study of a new model of normal ECG wave. In 2014 first international conference on automation, control, energy and systems (ACES). IEEE; 2014, pp. 1–4.
  • 24.Praesomboon S, Sangpetch W, Suracherdkiati W. Discrete mathematical model for ECG waveform using kernel function. In: ICCAS-SICE, 2009. IEEE; 2009, p. 5296–5300.
  • 25.McSharry PE, Clifford GD, Tarassenko L, Smith LA. A dynamical model for generating synthetic electrocardiogram signals. IEEE Trans Biomed Eng. 2003;50(3):289–294. doi: 10.1109/TBME.2003.808805. [DOI] [PubMed] [Google Scholar]
  • 26.Szilágyi S, Benyó Z, Dávid L. Heart model based ECG signal processing. IFAC Proc Vol. 2003;36(15):213–217. doi: 10.1016/S1474-6670(17)33503-6. [DOI] [Google Scholar]
  • 27.D. Kicmerova, "Modelling of Arrhythmics ECG Signals with McSharrys Model," in Radioelektronika, 2007. 17th International Conference, 2007, pp. 1–5: IEEE.
  • 28.Suckley R, Biktashev VN. Comparison of asymptotics of heart and nerve excitability. Phys Rev E. 2003;68(1):011902. doi: 10.1103/PhysRevE.68.011902. [DOI] [PubMed] [Google Scholar]
  • 29.Boulakia M, Cazeau S, Fernández MA, Gerbeau J-F, Zemzemi N. Mathematical modeling of electrocardiograms: a numerical study. Ann Biomed Eng. 2010;38(3):1071–1097. doi: 10.1007/s10439-009-9873-0. [DOI] [PubMed] [Google Scholar]
  • 30.Zeeman E. Differential equations for the heartbeat and nerve impulse. In: Waddington CH, editor. Towards a theoretical biology 4: essays. Edinburgh: Edinburgh University Press; 1972. pp. 8–67. [Google Scholar]
  • 31.Jafarnia-Dabanloo N, McLernon D, Zhang H, Ayatollahi A, Johari-Majd V. A modified Zeeman model for producing HRV signals and its application to ECG signal generation. J Theor Biol. 2007;244(2):180–189. doi: 10.1016/j.jtbi.2006.08.005. [DOI] [PubMed] [Google Scholar]
  • 32.Melin P, Amezcua J, Valdez F, Castillo O. A new neural network model based on the LVQ algorithm for multi-class classification of arrhythmias. Inf Sci. 2014;279:483–497. doi: 10.1016/j.ins.2014.04.003. [DOI] [Google Scholar]
  • 33.Liu S-H, Cheng D-C, Lin C-M. Arrhythmia identification with two-lead electrocardiograms using artificial neural networks and support vector machines for a portable ECG monitor system. Sensors. 2013;13(1):813–828. doi: 10.3390/s130100813. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.DoğAn B, Korürek M. A new ECG beat clustering method based on kernelized fuzzy c-means and hybrid ant colony optimization for continuous domains. Appl Soft Comput. 2012;12(11):3442–3451. doi: 10.1016/j.asoc.2012.07.007. [DOI] [Google Scholar]
  • 35.Lagerholm M, Peterson C, Braccini G, Edenbrandt L, Sornmo L. Clustering ECG complexes using Hermite functions and self-organizing maps. IEEE Trans Biomed Eng. 2000;47(7):838–848. doi: 10.1109/10.846677. [DOI] [PubMed] [Google Scholar]
  • 36.E. J. d. S. Luz, T. M. Nunes, V. H. C. De Albuquerque, J. P. Papa, and D. Menotti, "ECG arrhythmia classification based on optimum-path forest," Expert Systems with Applications, vol. 40, no. 9, pp. 3561–3573, 2013.
  • 37.Mar T, Zaunseder S, Martínez JP, Llamedo M, Poll R. Optimization of ECG classification by means of feature selection. IEEE Trans Biomed Eng. 2011;58(8):2168–2177. doi: 10.1109/TBME.2011.2113395. [DOI] [PubMed] [Google Scholar]
  • 38.Martis RJ, Acharya UR, Mandana K, Ray AK, Chakraborty C. Application of principal component analysis to ECG signals for automated diagnosis of cardiac health. Expert Syst Appl. 2012;39(14):11792–11800. doi: 10.1016/j.eswa.2012.04.072. [DOI] [Google Scholar]
  • 39.Jovic A, Bogunovic NJ. Evaluating and comparing performance of feature combinations of heart rate variability measures for cardiac rhythm classification. Biomedical Signal Processing Control. 2012;7(3):245–255. doi: 10.1016/j.bspc.2011.10.001. [DOI] [Google Scholar]
  • 40.Khalaf AF, Owis MI, Yassine IA. A novel technique for cardiac arrhythmia classification using spectral correlation and support vector machines. Expert Syst Appl. 2015;42(21):8361–8368. doi: 10.1016/j.eswa.2015.06.046. [DOI] [Google Scholar]
  • 41.Martis RJ, Acharya UR, Mandana KM, Ray AK, Chakraborty C. Cardiac decision making using higher order spectra. Biomed Signal Process Control. 2013;8(2):193–203. doi: 10.1016/j.bspc.2012.08.004. [DOI] [Google Scholar]
  • 42.Elhaj FA, Salim N, Harris AR, Swee TT, 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]
  • 43.Gacek A, Pedrycz W. ECG signal processing, classification and interpretation: a comprehensive framework of computational intelligence. New York: Springer; 2011. [Google Scholar]
  • 44.Kennedy R, Eberhart J. Particle swarm optimization. In: Proceedings of IEEE international conference on neural networks IV, pages, 1995, vol. 1000.
  • 45.M. N. Ab Wahab, S. Nefti-Meziani, and A. Atyabi, "A comprehensive review of swarm optimization algorithms," J PLoS One, vol. 10, no. 5, p. e0122827, 2015. [DOI] [PMC free article] [PubMed]
  • 46.Gaing Z-L. Particle swarm optimization to solving the economic dispatch considering the generator constraints. IEEE Trans Power Syst. 2003;18(3):1187–1195. doi: 10.1109/TPWRS.2003.814889. [DOI] [Google Scholar]
  • 47.Clerc M. The swarm and the queen: towards a deterministic and adaptive particle swarm optimization. In: Proceedings of the 1999 congress on evolutionary computation, 1999. CEC 99, vol. 3: IEEE; 1999, p. 1951–1957
  • 48.Bezdek JC, Ehrlich R, Full W. FCM: The fuzzy c-means clustering algorithm. Comput. Geosci. 1984;10(2–3):191–203. doi: 10.1016/0098-3004(84)90020-7. [DOI] [Google Scholar]
  • 49.Jang J-S. ANFIS: adaptive-network-based fuzzy inference system. IEEE Trans Syst. 1993;23(3):665–685. [Google Scholar]
  • 50.Ripley BD. Pattern recognition and neural networks. Cambridge: Cambridge University Press; 2007. [Google Scholar]
  • 51.Rodriguez JD, Perez A, Lozano JA. Sensitivity analysis of k-fold cross validation in prediction error estimation. IEEE Trans Pattern Anal Mach Intell. 2010;32(3):569–575. doi: 10.1109/TPAMI.2009.187. [DOI] [PubMed] [Google Scholar]
  • 52.The MIT-BIH Arrhythmia database. http://physionet.org/physiobank/database/mitdb/ [online].
  • 53.Drinnan MJ, Allen J, Murray A. Relation between heart rate and pulse transit time during paced respiration. Physiol Meas. 2001;22(3):425. doi: 10.1088/0967-3334/22/3/301. [DOI] [PubMed] [Google Scholar]

Articles from Biomedical Engineering Letters are provided here courtesy of Springer

RESOURCES