Literature DB >> 32932129

Accurate deep neural network model to detect cardiac arrhythmia on more than 10,000 individual subject ECG records.

Ozal Yildirim1, Muhammed Talo2, Edward J Ciaccio3, Ru San Tan4, U Rajendra Acharya5.   

Abstract

BACKGROUND AND
OBJECTIVE: Cardiac arrhythmia, which is an abnormal heart rhythm, is a common clinical problem in cardiology. Detection of arrhythmia on an extended duration electrocardiogram (ECG) is done based on initial algorithmic software screening, with final visual validation by cardiologists. It is a time consuming and subjective process. Therefore, fully automated computer-assisted detection systems with a high degree of accuracy have an essential role in this task. In this study, we proposed an effective deep neural network (DNN) model to detect different rhythm classes from a new ECG database.
METHODS: Our DNN model was designed for high performance on all ECG leads. The proposed model, which included both representation learning and sequence learning tasks, showed promising results on all 12-lead inputs. Convolutional layers and sub-sampling layers were used in the representation learning phase. The sequence learning part involved a long short-term memory (LSTM) unit after representation of learning layers.
RESULTS: We performed two different class scenarios, including reduced rhythms (seven rhythm types) and merged rhythms (four rhythm types) according to the records from the database. Our trained DNN model achieved 92.24% and 96.13% accuracies for the reduced and merged rhythm classes, respectively.
CONCLUSION: Recently, deep learning algorithms have been found to be useful because of their high performance. The main challenge is the scarcity of appropriate training and testing resources because model performance is dependent on the quality and quantity of case samples. In this study, we used a new public arrhythmia database comprising more than 10,000 records. We constructed an efficient DNN model for automated detection of arrhythmia using these records.
Copyright © 2020. Published by Elsevier B.V.

Entities:  

Keywords:  12-lead ECG; Arrhythmia detection; Deep neural networks; Ecg signals

Mesh:

Year:  2020        PMID: 32932129      PMCID: PMC7477611          DOI: 10.1016/j.cmpb.2020.105740

Source DB:  PubMed          Journal:  Comput Methods Programs Biomed        ISSN: 0169-2607            Impact factor:   5.428


Introduction

Cardiac arrhythmia, defined as an abnormal heart rhythm, is a common problem in cardiology, and can range from benign to potentially life-threatening rhythm types [1, 2]. Therefore, early detection of arrhythmia is an important clinical task that can save lives. The commonest method to detect cardiac arrhythmia uses the electrocardiogram (ECG), which measures the electrical activity of the heart. The standard 12-lead ECG is recorded over a 10-second interval. In general, ECG records include long durations (i.e., several hours or days) of heart activity samples, as needed for detecting and analyzing arrhythmia [3]. This task can become time-consuming, tedious, subjective, and costly, because it requires the assistance of trained experts [4, 5]. Therefore, enhanced fully automated computer-aided diagnosis systems (CADs) with high accuracy can be feasible and even essential solutions to assist clinical experts during the analysis process [6, 7]. Machine learning-based approaches are frequently utilized to recognize arrhythmia [8], [9], [10], [11], [12]. Pre-processing, feature extraction, and classification tasks are the main steps involved in these approaches [13]. The feature extraction step has a critical role to achieve high classification performance. Researchers choose some clinical features (i.e., P, QRS, T wave amplitude and duration, etc.) and arbitrary features to meet this aim. In the feature extraction phase, useful morphological [14, 15], temporal [14, [16], [17], [18], [19]], frequency-based [20], [21], [22] and/or transform-based [23], [24], [25], [26], [27], [28] features from ECG waveforms are obtained to improve the distinction between samples. The handcrafted feature extraction step requires domain knowledge and increases computational complexity [29, 30]. The requirement for expertise to select optimal features is a challenge [31]. In recent years, deep learning [32, 33] has become a popular subfield of artificial intelligence. The deep learning models usually have an end-to-end structure. This architectural structure enables one to perform feature extraction and classification steps together [34]. It has been effectively used in medical applications such as brain image analysis [35], [36], [37], [38], histopathological images [39], [40], [41], and brain electroencephalogram (EEG) signal analyses [42], [43], [44], [45]. It has also been adopted for the detection of coronavirus (COVID-19) patients [46], [47], [48], [49], [50], [51]. Deep learning has been the preferred mode of ECG classification over the last few years [4, 31, [52], [53], [54], [55], [56], [57], [58], [59], [60], [61]]. One-dimensional convolutional neural networks (1D-CNN) have become popular to classify ECG records because of their one-dimension structure. In 2015, Kiranyaz et. al. [55] proposed a 1D convolutional neural network (1D-CNN) model for patient-specific ECG classification. Acharya et al. [4] developed a nine-layer CNN model to classify five types of heartbeats. They obtained an accuracy of 94.03% from original signals using an augmentation technique. Hannun et al. [56] proposed a CNN model that consists of 33 convolutional layers to classify 12 rhythm categories. They based their work on a large ECG dataset containing 91,232 records from 53,549 patients. Li et al. [57] presented a generic CNN for patient-specific ECG classification. Oh et al. [58] suggested a modified U-net architecture to diagnose beat-wise arrhythmia. Li et al. [59] developed a 31-layer 1D residual CNN model to identify five different types of heartbeats. Li et al. [31] recommended a customized CNN model to classify patient-specific heartbeat using 44 records. Yildirim et al. [60] applied a CNN model for classification of 17 cardiac arrhythmias using long-duration ECG signals. Sharker et al. [61] proposed an end-to-end deep learning model to classify 15 ECG classes. Another deep learning algorithm for ECG analysis is long short-term memory networks (LSTM), known as sequence learning. LSTM is a practical approach to analyze time-series data [62]. In the last decade, the LSTM algorithm has been employed for arrhythmia detection [[30], [63], [64], [65], [66], [67], [68], [69], [70], [71], [72], [73]]. Yildirim [65] proposed a wavelet sequence-based LSTM model to classify ECG signals. Chang et al. [66] employed a bidirectional LSTM model to classify 12 common heart rhythms on 12-lead ECG signals collected from 38,899 patients. Gao et al. [30] used an LSTM model with focal loss (FL) to classify eight different heartbeats. The combination of the LSTM and CNN model is commonly used in ECG classification. Oh et al. [67] designed a CNN-LSTM model to detect five heartbeats. Warric et al. [68] used a combined deep classifier, CNN and LSTM, in the 2017 PhysioNet/CinC Challenge [69]. Xiong et al. [70] proposed a convolutional recurrent neural network to recognize four different rhythms. Guo et al. [71] developed a deep model, including convolution blocks and a recurrent network, to classify five heartbeat classes. Mousavi et al. [73] applied an alarm system on five types of life-threatening arrhythmia. They used a deep model composed of CNN layers, attention mechanism, and LSTM units. The performance of deep models tends to improve with more training data [32]. Accessing public databases is a major challenge in medicine, as these records are costly and time-consuming to collect [74]. In addition, legal and ethical issues may arise when collecting data [75]. The most widely used public database for arrhythmia studies is the MIT-BIH Arrhythmia Database [76] collected 40 years ago [77]. This dataset has some limitations, such as imbalanced classes [61]. Therefore, the construction of new large public datasets plays a vital role for studies on arrhythmia. As described herein, we used one of the largest public ECG datasets to detect rhythm classes [78]. The database includes 12-lead ECG signals collected from more than 10,000 individual subjects. We developed a DNN model to classify rhythms from each of 12-lead inputs. We preferred to use the representation and sequence learning structure together because of their salutary performance on both ECG [52, 67, 68, 72] and EEG signals [45]. The novelty of this paper can be summarized as follows: a useful single DNN model has been constructed to detect multiple rhythm classes on 12-lead signals. The experiments are performed on one of the recent largest new ECG datasets, including more than 10,000 subjects. To the best of our knowledge, this is the first deep model study to classify rhythms using this ECG dataset. All of the experiments were performed with inter-patient schema. Additionally, the training and testing subjects were different, so that there is no overlap between the training and the test sets.

Materials and methods

In this paper, we used both representation and sequence learning to detect heart rhythms and conducted the experiments on a large ECG database. The database has been recently published for arrhythmia research and encompasses more than 10,000 individual subject ECG records. In Fig. 1 , a block representation of the materials and methods is given for the study.
Fig. 1

Block illustration of materials and methods for the study.

Block illustration of materials and methods for the study.

The proposed DNN model

We designed a new DNN model to classify rhythms automatically. In Fig. 2 , a block representation of the proposed DNN model is given. We constructed the proposed deep learning model using different layer combinations. We preferred a one-dimensional convolutional neural network (1D-CNN) due to the one-dimensional structure of ECG signals. One-dimensional-CNN models have an excellent ability to learn distinguishing hierarchical features from the raw inputs when applying a 1D convolution. This procedure is also known as representation learning [45]. The model learns low-level features at beginning layers and high-level features through the consecutive layers hierarchically. After the 1D convolution step, many feature matrices termed feature maps emerge. These maps are sub-sampled by the max-pooling layers to reduce computational cost. A tedious task is to determine the correct parameters, such as the number of filters, kernel size, and strides. We used both our previous experience on the long duration ECG signals [60] and brute force techniques to adjust these parameters. For the number of filters, experiments were made based upon exponents of two, in the range from 16 to 1024. Performance observations were made by selecting values from a smaller search space such as 2, 3, 5, 7, 9 and 13 for kernel sizes. Since the length of the input signal is long, 21 kernels are used in the first layer and 11 strides are used to reduce the computational cost. All of these parameter settings have been adjusted to provide the optimal result by testing for different data partitions. In addition, the parts such as which layers should be used and which parts of the model should be placed are time consuming and difficult processes. These processes can be solved with a satisfactory optimization approach and hardware with high computing power. However, the best opportunity we have is to adjust these parameters with the help of experts by trying many different variations.
Fig. 2

A block representation of the proposed DNN model for detecting rhythm classes.

A block representation of the proposed DNN model for detecting rhythm classes. In the proposed model, the first convolution layer had 64 filters with 21 kernel size that was applied to the raw input signals using an eleven movement amount (strides). The feature maps obtained from this step were sub-sampled in a max-pooling layer. The proposed model consisted of six different convolution layers and four max-pooling layers. We used two batch normalization layers to normalize the data. Overfitting is an important problem for machine learning tasks during training. Two dropout layers were placed at different positions of the model to avoid the overfitting problem. A Leaky-ReLU layer with 0.1 alpha value was used at the beginning layers. It is a useful function to avoid the dying ReLU problem. All layers mentioned so far were used for representation learning. In the model, a LSTM block was used for sequence learning. Some studies on 1D signals such as EEG and ECG [52, 67, 68, 72] show that the combination of representation and sequence learning can yield a higher performance than by using representation learning alone. According to this information, we used a 128 unit LSTM block at the end of the representation learning layers. In Table 1 , we present our implemented DNN model with detailed layer information.
Table 1

The layer information of the implemented DNN model.

Layer (Type)Layer ParametersOutput ShapeNumber of Parameters
Conv1DFilters=64, Size=21, Strides= 11453 × 641408
MaxPooling1DPool size=2226 × 640
Batch Norm-226 × 64256
LeakyReLUAlpha=0.1226 × 640
DropoutRate=0.3226 × 640
Conv1DFilters=64, Size=7, Strides= 1220 × 6428736
MaxPooling1DPool size=2110 × 640
Batch Norm-110 × 64256
Conv1DFilters=128, Size=5, Strides= 1106 × 12841088
MaxPooling1DPool size=253 × 1280
Conv1DFilters=256, Size=13, Strides= 141 × 256426240
Conv1DFilters=512, Size=7, Strides= 135 × 512918016
DropoutRate=0.335 × 5120
Conv1DFilters=256, Size=9, Strides= 127 × 2561179904
MaxPooling1DPool size=213 × 2560
LSTMUnit=128, Return Sequences=True13 × 128197120
Flatten-16640
DenseUnit=64, Activation=ReLU64106560
DenseUnit=[7,4], Activation=Softmax{7, 4}260
The layer information of the implemented DNN model.

The big ECG database

In this work, we used a new large ECG database [78] collected by Chapman University and Shaoxing People's Hospital (Shaoxing Hospital Zhejiang University School of Medicine). The database includes a large number of individual subjects - more than 10,000 - with 12-lead ECG signals sampled at a higher than usual sampling rate of 500 Hz. In this database, there are 11 heart rhythms and 56 types of cardiovascular conditions labelled by professional physicians. The database comprises 10,646 patients, and 12-lead ECGs records were acquired over 10 seconds. The Butterworth low pass filter [79], the local polynomial regression smoother (LOESS) [80], and Non-Local Means (NLM) techniques [81] had been used sequentially to process raw ECG records. Signal components with a frequency above 50 Hz and the effects of baseline wandering were removed using these methods. In Fig. 3 , the pre-process step is shown with a signal sample and frequency spectrums. In this image, it can be seen that after the pre-processing, frequencies above 50 Hz and the baseline wandering effect are removed.
Fig. 3

An example of the pre-processing step with frequency spectrums, a) raw signal, b) Frequency spectrum of the raw signal, c) Filtered signal, d) Frequency spectrum of the filtered signal.

An example of the pre-processing step with frequency spectrums, a) raw signal, b) Frequency spectrum of the raw signal, c) Filtered signal, d) Frequency spectrum of the filtered signal. Since some ECG recordings contain only zeros, and some channel values were missing, we used a total of 10,588 topics from this database. Table 2 contains some numerical information about the recordings used, and Fig. 4 depicts a distribution rate graph of rhythm classes across the database.
Table 2

Some numerical information about the ECG records used.

RhythmsNumber of SamplesAge, Mean ± StdNumber of FemalesNumber of Males
Atrial Flutter (AF)43871.14 ±13.47182256
Atrial Fibrillation (AFIB)1,78073.35 ±11.137391,041
Atrial Tachycardia (AT)12165.21 ±19.305764
Atrioventricular Node Reentrant Tachycardia (AVNRT)1657.87 ±17.33124
Atrioventricular Reentrant Tachycardia (AVRT)857.50 ±17.3335
Sinus Irregularity (SI)39734.88 ±23.00175222
Sinus Atrium to Atrial Wandering Rhythm (SAAWR)751.14 ±31.8261
Sinus Bradycardia (SB)3,88858.33 ±13.951,4082,480
Sinus Rhythm (SR)1,82554.37 ±16.291,024801
Sinus Tachycardia (ST)1,56454.67 ±20.97769795
Supraventricular Tachycardia (SVT)54455.64 ±18.35294250
All10,58859.23 ±17.974,6695,919
Fig. 4

The distribution rate graph of rhythm classes across all records.

Some numerical information about the ECG records used. The distribution rate graph of rhythm classes across all records.

Experimental results

In this section, we present experimental results to detect rhythm classes on 10-second ECG signals. We used 11 rhythms with two scenarios, namely, with seven and four categories.

Experimental setups

In this study, two different experiments were performed on the dataset. The first experiment studied seven rhythm classes; the second, four. Also, 12-lead ECG signals from different subjects were used separately for analysis and performance evaluations. We have used an inter-patient scheme during the experiments. Only a single efficient DNN model was used for all experiments. The hyper-parameters of the DNN model were not altered during training. The standard hyper-parameters of the model were set as a learning value of 0.002, and batch size 128. We categorically used the cross-entropy loss function and Adam optimizer to adjust the weights of the model [82]. All experiments were performed on a computer with specifications of Intel Core i7-7700HQ 2.81GHz CPU, 16GB memory, and 8 GB NVIDIA GeForce GTX 1070 graphics card. The DNN model was constructed using the Keras (v 2.3.1) deep learning library [83] and the TensorFlow (v. 1.14.0) framework. Another important step is preparing training, validation, and test sets for the implementation of the model. There are two standard methods for this task, cross-validation and random splitting. In general, per subject evaluation of the models can provide more reliable results. Each subject in this database has only one unique record. Therefore, the dataset split was done on a per subject basis. The large size of the ECG dataset renders it suitable for random splitting. The dataset was randomly divided into training, validation, and test sets as 80%, 10%, and 10%, respectively. We used the same records for training, validation, and testing for the experiments to compare the performances consistently. We evaluated the performance of the model on the test sets using standard evaluation metrics, such as accuracy, specificity, sensitivity, precision, and F-score. The calculations of these criteria, according to distribution of true positive (TP), true negative (TN), false positive (FP) and false negative (FN) samples, are given as follows:

Reduced rhythm classes

In this section, we used the DNN model on seven rhythm classes. Deep models can work efficiently on a large number of samples for each category. Due to the insufficient number of several cases in the initially published dataset, such as 121 atrial tachycardia, 16 atrioventricular node reentrant tachycardia, 8 atrioventricular reentrant tachycardia, and 7 sinus atrium to atrial wandering rhythm, we eliminated these classes during the experiment. In Table 3 , the used dataset includes seven rhythms and is given here with detail.
Table 3

The numerical information of the reduced class dataset that includes seven rhythms.

RhythmsNumber of Total SamplesNumber of Training SamplesNumber of Testing SamplesAge, Mean ± StdNumber of FemalesNumber of Males
AF4384063271.14 ±13.47182256
AFIB1,7801,62215873.35 ±11.137391,041
SI3973554234.88 ±23.00175222
SB3,8883,49439458.33 ±13.951,4082,480
SR1,8251,63219354.37 ±16.291,024801
ST1,5641,39816654.67 ±20.97769795
SVT5444855955.64 ±18.35294250
All10,4369,3921,04459.16 ±17.944,5915,845
The numerical information of the reduced class dataset that includes seven rhythms. Firstly, we divided the reduced dataset into training, validation, and testing sets as 80%, 10%, and 10%, respectively. It is seen that the data distributions used in this scenario are imbalanced for classes. The data numbers in the AF, SI and SVT classes are lower than the other classes. This problem is mitigated by merging classes in the next scenario. For this reason, the imbalance problem has been attenuated in this scenario. The first process was training the DNN model using both training and validation sets. The DNN model was evaluated on the test sets that were unseen by the model during the training step. According to the training and validation values, the training process is performed for 25 epochs. After 25 epochs, the model tended to encounter an overfitting problem. We did not use the early stop criteria to compare lead performances during the same epochs. The training and validation graphs obtained from the training process are shown in Fig. 5 . We present the performance of each lead separately.
Fig. 5

The training and validation accuracy values of the proposed model during the training process for each ECG lead signal (Lead-I to Lead-V6) separately.

The training and validation accuracy values of the proposed model during the training process for each ECG lead signal (Lead-I to Lead-V6) separately. It is evident from these graphs that the DNN model exhibited promising results for all lead ECG signals during training. The best performance was observed on the Lead-II, Lead-aVF, and Lead-V1. The proposed model achieved a lower performance on Lead-aVL, Lead-V5, and Lead-V6. Our model could not start the training process for Lead-V6 inputs with these training records. For this reason, the results for Lead-V6 in this section have been obtained using a different record partition. When the loss values were examined, it was observed that there were no overfitting and underfitting problems during the training of the model. In Fig. 6 , training and validation loss values are presented during 25 epochs for all lead signals.
Fig. 6

The validation loss values of each lead signal during the training process.

The validation loss values of each lead signal during the training process. After the training process, the performance of the DNN model was tested on the unseen test sets. Deep learning models use validation samples for adjusting network parameters. Thus, reliable performance measurements could be obtained from the unseen test sets. The trained model was applied to the test records and yielded promising results on unseen data. In Fig. 7 , we showed four confusion matrices obtained during the test process. The confusion matrix has an essential role in the evaluation of the performance of a model. In Fig. 7 (a), it can be seen that the model achieved 92.24% and 91.76% accuracy on Lead-II and Lead-aVF ECG signals. The Lead-aVL and Lead-V5 signals yielded 89.36% and 89.94% accuracies, respectively. In confusion matrices, the model misclassified several rhythm classes. For example, in Fig. 7 (c), 13 actual atrial fibrillation (AFIB) signals were classified as atrial flutter (AF) signals and seven actual sinus rhythm (SR) signals were classified as sinus irregularity (SI) signals. Furthermore, nine original AF signals were labelled as AFIB, and 12 original SI signals are labelled as SR signals. Clinically, the misclassification between AFIB and AF and between SR and SI are not crucial, as the medical management is no different between diagnoses in the respective pairs. According to the confusion matrices, we calculated several performance metrics, including the sensitivity, specificity, precision, F-score, and accuracy, for each lead input. In Table 4 , the performance values of the proposed model on the test set are shown for each lead input. The highest values are marked with bold font in the table. Also, we present some graphical representations for these values, as in Fig 8 .
Fig. 7

The model test performances on several leads a) Lead-II, b) Lead-aVF, c) Lead-aVL and d) Lead-V5.

Table 4

Some important performance values obtained using the test sets (highest values marked with bold).

ECG LeadsOverall
Sensitivity (%)Specificity (%)Precision (%)F-Score (%)Accuracy (%)
Lead-I78.1798.5680.4578.8391.19
Lead-II80.1598.7280.3180.0492.24
Lead-III79.0498.4978.5378.5890.71
Lead-aVR80.9198.6081.0380.9391.57
Lead-aVL76.0798.2875.4475.5389.37
Lead-aVF81.5098.6481.2580.9891.76
Lead-V182.4298.5881.2281.3991.19
Lead-V275.3398.4174.9074.5790.71
Lead-V375.3898.3975.0574.4090.33
Lead-V476.1298.3876.9275.1990.42
Lead-V575.6298.3475.6375.0289.94
Lead-V674.9098.0575.7674.4888.51
Fig. 8

A graphic representation for overall sensitivity, f-score, and accuracy values for all leads.

The model test performances on several leads a) Lead-II, b) Lead-aVF, c) Lead-aVL and d) Lead-V5. Some important performance values obtained using the test sets (highest values marked with bold). A graphic representation for overall sensitivity, f-score, and accuracy values for all leads. The same test subjects were used for each lead. The highest Sensitivity and F-score values were obtained using Lead-V1 ECG signals with an accuracy of 91.19%. The highest accuracy value was obtained as 92.24% from Lead-II input. According to these values, it can be said that the proposed DNN model yielded promising results on all ECG lead inputs. Only on three lead inputs (Lead-aVL, Lead-V5, and Lead-V6) were accuracy values observed under a 90% rate. For further performance evaluation, we examined the values of the test results for each rhythm class compared with Lead-II input, so as to ascertain which classes yielded a weak or strong performance by the DNN model. We chose the Lead-II signal for this purpose, due to both its high accuracy values, and the fact that it is commonly used in many ECG analysis studies. In Table 5 , some standard performance measurements of rhythm classes on the test subjects are given.
Table 5

The performance values for each class using the Lead-II ECG signal on the test subjects.

ClassesSensitivity (%)Precision (%)Specificity (%)F- Score (%)Accuracy (%)
AF25.0032.0098.3228.0796.07
AFIB94.9392.0298.5393.4597.98
SI64.2872.9799.0068.3597.60
SB98.9898.4899.0798.7399.04
SR91.1992.6398.3591.9097.03
ST95.1896.9399.4396.0498.75
SVT91.5277.1498.3783.7297.98
Overall80.1580.3198.7280.0492.24
The performance values for each class using the Lead-II ECG signal on the test subjects. From the above table, performance values on the AF class had the lowest values. The reason for this can be the low number of data in this class. A similar problem was also observed between the SI and SR classes. Accordingly, we present some incorrectly classified signals related to these classes in Fig. 9 . In this figure, some actual and predicted classes are given for the Lead-II signals. On the other hand, the model was able to distinguish sinus bradycardia (SB) signals from other classes, with a 99.04% accuracy performance.
Fig. 9

Some examples of AF and SR signals that the proposed model incorrectly predicted (Actual: original class, predicted: detected class by the model).

Some examples of AF and SR signals that the proposed model incorrectly predicted (Actual: original class, predicted: detected class by the model).

Merged rhythm classes

In the previous experiments, the DNN model produced some weak class performances due to similarity, e.g. the AF, AFIB, SR, and SI classes yielded low-performance values. Also, in the dataset, several classes had fewer samples, such as AVNRT, AVRT, and SAAWR. To overcome this, we merged 11 rhythms into four classes as AFIB, grouped supraventricular tachycardia (GSVT), SB, and SR, according to the original dataset article [78]. In Table 6 , some brief information is provided concerning the merged classes. In this experiment, we applied the DNN model on these merged rhythm classes.
Table 6

Some numerical information about merged rhythms.

Merged RhythmsNew Class NameNumber of Total SamplesNumber of Training SamplesNumber of Testing SamplesAge, Mean ± STD
AF+ AFIBAFIB2,2181,98323572.92 ±11.66
SVT+AT+SAAWR+ST+AVNRT+AVRTGSVT2,2602,06119955.51 ±20.41
SBSB3,8883,48840058.33 ±13.95
SR, SISR2,2221,99722550.89 ±19.18
All10,5889,5291,05959.23 ±17.97
Some numerical information about merged rhythms. We divided the merged dataset into training, validation and testing sets as 80%, 10%, and 10%, respectively. The same hyper-parameters from previous experiments were used in this experiment. In Fig. 10 , accuracy and loss graphs for each lead are given during the training step.
Fig. 10

Validation loss and validation accuracy values for each ECG lead signals, a) loss graphs, and b) accuracy graphs.

Validation loss and validation accuracy values for each ECG lead signals, a) loss graphs, and b) accuracy graphs. It can be seen from these plots that the best results are obtained from the Lead-II signal. Also, the model showed consistent results with four rhythm classes. There was no overfitting or underfitting problem. Therefore, our proposed model architecture is robust to detect rhythms with two different scenarios. The trained model has been applied to the unseen test records. We present all confusion matrices for each lead signal in Fig. 11 .
Fig. 11

All confusion matrices for each lead signal obtained from test records.

All confusion matrices for each lead signal obtained from test records. The results showed that the proposed model generalized the input signals well, with accuracy rates all above 91%. The highest accuracy rates were obtained on Lead-II, Lead-I, and Lead-aVR signals at 96.12%, 95.27%, and 94.99%, respectively. The least accurate classification was observed between AFIB and GSVT classes. For example, according to the Lead-II confusion matrix, 13 of the actual GSVT records were classified as AFIB. Similarly, five of the actual AFIB records were classified as GSVT by the model. This issue can be due to the GSVT category, which comprised six different rhythms (SVT, AT, SAAWR, ST, AVNRT, AVRT). In Table 7 , the performance metrics on the test sets are given in detail.
Table 7

The DNN model overall performance values on the merged rhythms test set.

ECG LeadsOverall sensitivity (%)Overall Specificity (%)Overall Precision (%)Overall F-Score (%)Overall Accuracy (%)
Lead-I94.4998.4494.6594.5695.28
Lead-II95.4398.7195.7895.5796.13
Lead-III92.3097.7892.4492.2193.20
Lead-aVR94.3598.4094.2194.1895.00
Lead-aVL92.4897.7692.2292.3193.11
Lead-aVF93.2098.1093.4693.3294.24
Lead-V193.3098.0393.0892.9893.86
Lead-V291.8197.6391.9191.6792.73
Lead-V390.0197.1089.9689.7691.12
Lead-V490.4697.1690.5390.2791.41
Lead-V590.9397.2791.1890.9291.88
Lead-V692.6397.7892.5392.5693.30
The DNN model overall performance values on the merged rhythms test set. The best overall performances were obtained from the Lead-II input with 95.43% sensitivity, 98.71% specificity, 95.78% precision, 95.57% F-score, and 96.13% accuracy. We show the class-based performances for the Lead-II input in Table 8 . The lowest sensitivity performance, which emerged from the GSVT class, was 89.94%.
Table 8

Class-based performance values for the Lead-II input.

ClassesSensitivity (%)Precision (%)Specificity (%)F- Score (%)Accuracy (%)
AFIB96.1794.1698.3095.1597.82
GSVT89.9496.7599.3093.2297.54
SB98.7598.2598.9398.5098.86
SR96.8893.9698.3295.4098.01
Overall95.4395.7895.4395.5796.13
Class-based performance values for the Lead-II input.

Discussion

Many researchers have attempted to develop an arrhythmia detection system using deep learning architectures. They used different data sources and approaches for this task. We have reported several state-of-the-art studies in Table 9 . Hannun et al. [56] developed a DNN model to detect rhythm classes from raw ECG inputs. Their results show that the DNN can classify ECG signals with high performance. Oh et al. [58] proposed a modified U-net model to detect five different beat class. Their model achieved an accuracy of 97.32% using a total of 83,648 beats from 47 subjects. Li et al. [59] proposed a deep ResNet model to identify five different types of heartbeats. They reported a 99.38% accuracy using 94,013 beats. Acharya et al. [4] obtained an accuracy of 94.03% with a nine-layer CNN model using a total of 109,449 heartbeats. Yildirim et al. [60] proposed a CNN model to classify 17 cardiac rhythms. They reported a 91.33% accuracy rate using 1,000 ECG fragments. Shaker et al. [61] used a generative adversarial network (GAN) and CNN model to classify 15 different ECG classes. They obtained a 98.30% accuracy rate using augmented data with the GAN algorithm. Chang et al. [66] used a sequence-sequence learning task to classify 12 rhythm classes from 38,899 ECG signals. Yildirim [65] reported a 99.39% accuracy rate using a wavelet sequence-based deep bidirectional LSTM (DBLSTM-WS) model. Gao et al. [30] used an LSTM model with FL to detect eight different heartbeats from a total of 93,371 beats.
Table 9

Comparison of some state-of-the-art study performances to detect arrhythmia.

StudyNum. of SubjectsNum. of Beats/SegmentsInput typeCategoryMethodEvaluation SchemePerformance
Acharya et al. [4]47109,449Single lead/ Beat5 AAMI classCNNIntra-PatientAcc: 94.03%
Xu et al. [5]2250,977Single lead/ Beat5 AAMI classesDNNInter-PatientAcc: 93.1%
Gao et al. [30]-93,371Single lead/ Beat8 HeartbeatsLSTM, FLIntra-PatientAcc: 99.26%
Hannun et al. [56]53,54991,232Single lead/ Segment12 RhythmCNNInter-PatientF1: 0.83
Oh et al. [58]4783,648Single lead/ Segment5 HeartbeatsModified U-netIntra-PatientAcc: 97.32%
Li et al. [59]4794,0132-lead/ Beat5 AAMI classDeep ResNetIntra-PatientAcc: 99.38%
Yildirim et al. [60]451,000Single lead/ Segment17 RhythmCNNIntra-PatientAcc: 91.33%
Shaker et al. [61]44102,098Single lead/ Beat15 classCNNIntra-PatientAcc: 98.30%
Yildirim et al. [65]-7,326Single lead/ Beat5 HeartbeatsDBLSTM-WSIntra-PatientAcc: 99.39%
Chang et al. [66]38,89965,93212 lead/ Segment12 RhythmLSTMInter-PatientAcc: 90%
Oh et al. [67]4716,499Single lead/ Segment5 HeartbeatsCNN-LSTMIntra-PatientAcc: 98.1%
Warric et al. [68]-8,528Single lead/ Segment4 RhythmCNN-LSTMIntra-PatientF1: 0.82
Xindog et al. [70]-12,186Single lead/ Segment4 ClassesCNN+RNNIntra-PatientF1: 0.82
Oh et al. [72]170150,268Single lead/ Segment3 Cardiac DiseaseCNN-LSTMIntra-PatientAcc: 98.51%
Mousavi et al. [73]-750Single lead/ Segment5 RhythmCNN-attention-LSTMIntra-PatientAcc: 93.75%
Wu et al. [84]-8,528Single lead/ Segment4 ClassesBinarized CNNIntra-PatientF1: 0.86
Yao et al. [86]-6,87712-lead/ Segment8 RhythmATI-CNNInter-PatientF1: 0.81
Proposed10,43610,436Single lead/ Segment7 RhythmDNNInter-PatientAcc: 92.24%
10,58810,588Single lead/ Segment4 RhythmInter-PatientAcc: 96.13%
Comparison of some state-of-the-art study performances to detect arrhythmia. Xindog et al. [70] used the 2017 PhysioNet/Computing in Cardiology (CinC) Challenge database to classify four rhythms (sinus, AF, noisy, and other), and they achieved 0.82 F1 scores. Wu et al. [84] used a binarized CNN model on the 2017 CinC database. The authors reached a 0.86 F1 score. Oh et al. [67] constructed an LSTM and CNN combination model to detect five types of heartbeats. They used a total of 16,499 beat signals from 47 subjects, and their model reached a 98.1% accuracy rate. Mousavi et al. [73] proposed a deep learning model to detect true alarms on five types of arrhythmia in the 2015 PhysioNet challenge [85]. Oh et al. [72] performed a CNN and LSTM based deep model to categorize CAD, CHF, and MI cardiac abnormalities. They used a total of 170 patient records and achieved an accuracy of 98.51% to categorize these abnormalities. Yao et al. [86] proposed an attention-based time-incremental CNN (ATI-CNN) model to classify 8 different arrhythmias using 12-lead ECG signals. They achieved an average F1-Score of 81.2% to classify arrhythmias with varied-length inputs. In this study, we have developed a new DNN model to detect different rhythm types. We used more than 10,000 (10-sec duration ECG records) for this aim. Our model showed 92.24% and 96.13% classification performances on two different class scenarios. When we compare our study with other studies, generally, the prior studies used a limited number of subject records. They also used many beats extracted from the same subjects. This situation can limit the generalizability of models on unseen subjects. In this study, each ECG record was obtained from a unique subject; hence the proposed model generalized well on unseen ECG signals. Hannun et al. [56] constructed a large database that included 53,549 subjects, but this database consists of ECG records with a single lead only. Chang et al. [66] used a large 12-lead ECG database of 38,899 subjects. Their database is not publicly available. We have already obtained highest accuracy using a single lead. Hence, we did not combine the performance of all leads. However, we analyzed all lead signals and according to the results our model performance can be generalizable to 12-lead signals. We intend to explore this further using a new deep learning model in future work. In addition, many of the studies [4, 5, 30, 58, 59, 61, 65, 67] are predicated on the detection of heartbeat signals, unlike in our model, which is based on the 10-second ECG input. The main advantages of the system presented in this study can be summarized as: Only one DNN model was used to classify different rhythm groups with high performance using all lead signals. We used a public ECG dataset, which is recent, and one of the largest datasets, containing more than 10,000 unique subject data. The experiments were performed using 11 different rhythm categories with 10-sec ECG records. All experimental results were reported with inter-patient schema, and the performance of the model was promising. The model has a good generalization ability to detect ECG arrhythmia for each of 12-lead ECG signals. The model worked on 10-second ECG records and did not require the detection of heartbeats. The main disadvantage of this work is the requirement for sophisticated hardware due to the nature of the deep models. In future works, we will evaluate these ECG records with multi-task deep learning models. In addition, some features in non-ECG domains were also provided within this database, and we will try to use these features to improve the performance of deep models.

Conclusion

In this paper, a new DNN model comprising both representation and sequence learning structures was proposed to detect arrhythmia. Experiments were performed on a new large public ECG database that includes more than 10,000 unique subject records. The DNN model was applied to the 10-s raw 12-lead ECG signals. The proposed DNN model yielded promising results for each lead input. Two different rhythm class scenarios were used for the experiments. The first scenario included seven rhythm classes, for which the model obtained an accuracy of 92.24%. In the second scenario, 11 rhythm classes were merged into four main rhythm classes. The model achieved an accuracy of 96.13% performance on this dataset. According to the obtained results, it can be said that the proposed DNN model has a good generalization ability for subject-wise classes.

Declaration of Competing Interest

The authors declare that there is no conflict of interest.
  49 in total

1.  The impact of the MIT-BIH arrhythmia database.

Authors:  G B Moody; R G Mark
Journal:  IEEE Eng Med Biol Mag       Date:  2001 May-Jun

2.  Linear and nonlinear analysis of normal and CAD-affected heart rate signals.

Authors:  U Rajendra Acharya; Oliver Faust; Vinitha Sree; G Swapna; Roshan Joy Martis; Nahrizul Adib Kadri; Jasjit S Suri
Journal:  Comput Methods Programs Biomed       Date:  2013-09-10       Impact factor: 5.428

Review 3.  Deep learning.

Authors:  Yann LeCun; Yoshua Bengio; Geoffrey Hinton
Journal:  Nature       Date:  2015-05-28       Impact factor: 49.962

4.  Towards End-to-End ECG Classification With Raw Signal Extraction and Deep Neural Networks.

Authors:  Sean Shensheng Xu; Man-Wai Mak; Chi-Chung Cheung
Journal:  IEEE J Biomed Health Inform       Date:  2018-09-20       Impact factor: 5.772

Review 5.  Neural mechanisms in life-threatening arrhythmias.

Authors:  A Malliani; P J Schwartz; A Zanchetti
Journal:  Am Heart J       Date:  1980-11       Impact factor: 4.749

6.  A novel wavelet sequence based on deep bidirectional LSTM network model for ECG signal classification.

Authors:  Özal Yildirim
Journal:  Comput Biol Med       Date:  2018-03-28       Impact factor: 4.589

7.  ECG signal classification for the detection of cardiac arrhythmias using a convolutional recurrent neural network.

Authors:  Zhaohan Xiong; Martyn P Nash; Elizabeth Cheng; Vadim V Fedorov; Martin K Stiles; Jichao Zhao
Journal:  Physiol Meas       Date:  2018-09-24       Impact factor: 2.833

8.  An Effective LSTM Recurrent Network to Detect Arrhythmia on Imbalanced ECG Dataset.

Authors:  Junli Gao; Hongpo Zhang; Peng Lu; Zongmin Wang
Journal:  J Healthc Eng       Date:  2019-10-13       Impact factor: 2.682

9.  Explainable Deep Learning for Pulmonary Disease and Coronavirus COVID-19 Detection from X-rays.

Authors:  Luca Brunese; Francesco Mercaldo; Alfonso Reginelli; Antonella Santone
Journal:  Comput Methods Programs Biomed       Date:  2020-06-20       Impact factor: 5.428

View more
  7 in total

1.  Deep learning-based electrocardiogram rhythm and beat features for heart abnormality classification.

Authors:  Annisa Darmawahyuni; Siti Nurmaini; Muhammad Naufal Rachmatullah; Bambang Tutuko; Ade Iriani Sapitri; Firdaus Firdaus; Ahmad Fansyuri; Aldi Predyansyah
Journal:  PeerJ Comput Sci       Date:  2022-01-25

2.  Real-Time Arrhythmia Detection Using Hybrid Convolutional Neural Networks.

Authors:  Sandeep Chandra Bollepalli; Rahul K Sevakula; Wan-Tai M Au-Yeung; Mohamad B Kassab; Faisal M Merchant; George Bazoukis; Richard Boyer; Eric M Isselbacher; Antonis A Armoundas
Journal:  J Am Heart Assoc       Date:  2021-12-02       Impact factor: 6.106

3.  Artificial Intelligence for Cardiac Diseases Diagnosis and Prediction Using ECG Images on Embedded Systems.

Authors:  Lotfi Mhamdi; Oussama Dammak; François Cottin; Imed Ben Dhaou
Journal:  Biomedicines       Date:  2022-08-19

Review 4.  State-of-the-Art Deep Learning Methods on Electrocardiogram Data: Systematic Review.

Authors:  Georgios Petmezas; Leandros Stefanopoulos; Vassilis Kilintzis; Andreas Tzavelis; John A Rogers; Aggelos K Katsaggelos; Nicos Maglaveras
Journal:  JMIR Med Inform       Date:  2022-08-15

5.  Developing Graph Convolutional Networks and Mutual Information for Arrhythmic Diagnosis Based on Multichannel ECG Signals.

Authors:  Bahare Andayeshgar; Fardin Abdali-Mohammadi; Majid Sepahvand; Alireza Daneshkhah; Afshin Almasi; Nader Salari
Journal:  Int J Environ Res Public Health       Date:  2022-08-28       Impact factor: 4.614

6.  ECG Localization Method Based on Volume Conductor Model and Kalman Filtering.

Authors:  Yuki Nakano; Essam A Rashed; Tatsuhito Nakane; Ilkka Laakso; Akimasa Hirata
Journal:  Sensors (Basel)       Date:  2021-06-22       Impact factor: 3.576

7.  Hybrid-Pattern Recognition Modeling with Arrhythmia Signal Processing for Ubiquitous Health Management.

Authors:  Wei-Ting Hsiao; Yao-Chiang Kan; Chin-Chi Kuo; Yu-Chieh Kuo; Sin-Kuo Chai; Hsueh-Chun Lin
Journal:  Sensors (Basel)       Date:  2022-01-17       Impact factor: 3.576

  7 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.