Literature DB >> 36008568

Two-dimensional ECG-based cardiac arrhythmia classification using DSE-ResNet.

Fangzhou Xu1, Peng Ji1, Shuwang Zhou2, Jiahao Li3, Shao-Peng Pang4, Minglei Shu5.   

Abstract

Electrocardiogram (ECG) is mostly used for the clinical diagnosis of cardiac arrhythmia due to its simplicity, non-invasiveness, and reliability. Recently, many models based on the deep neural networks have been applied to the automatic classification of cardiac arrhythmia with great success. However, most models independently extract the internal features of each lead in the 12-lead ECG during the training phase, resulting in a lack of inter-lead features. Here, we propose a general model based on the two-dimensional ECG and ResNet with detached squeeze-and-excitation modules (DSE-ResNet) to realize the automatic classification of normal rhythm and 8 cardiac arrhythmias. The original 12-lead ECG is spliced into a two-dimensional plane like a grayscale picture. DSE-ResNet is used to simultaneously extract the internal and inter-lead features of the two-dimensional ECG. Furthermore, an orthogonal experiment method is used to optimize the hyper-parameters of DSE-ResNet and a multi-model voting strategy is used to improve classification performance. Experimental results based on the test set of China Physiological Signal Challenge 2018 (CPSC2018) show that our model has average [Formula: see text] for classifying normal rhythm and 8 cardiac arrhythmias. Meanwhile, compared with the state-of-art model in CPSC2018, our model achieved the best [Formula: see text] in 2 sub-abnormal types. This shows that the model based on the two-dimensional ECG and DSE-ResNet has advantage in detecting some cardiac arrhythmias and has the potential to be used as an auxiliary tool to help doctors perform cardiac arrhythmias analysis.
© 2022. The Author(s).

Entities:  

Mesh:

Year:  2022        PMID: 36008568      PMCID: PMC9411603          DOI: 10.1038/s41598-022-18664-0

Source DB:  PubMed          Journal:  Sci Rep        ISSN: 2045-2322            Impact factor:   4.996


Introduction

The ECG[1] records the electrical signals of the human heart and is mostly used for clinical diagnosis of cardiac arrhythmias. More than 300 million ECGs are obtained worldwide every year[2]. The huge diagnostic workload leads to inefficiency and misdiagnosis of cardiac arrhythmias based on ECG. So the combination of extensive digitization of ECG data and automatic classification algorithms has attracted more and more attention. In the early research on the automatic classification of cardiac arrhythmia, most algorithms based on machine learning are usually divided into two parts: feature engineering and classification. Specifically, researchers first manually extracted a large number of ECG features with medical meaning, such as wavelet features[3], P-QRS-T composite features[4-6], heart rate variability statistical feature[7], RR-related statistical features[8,9], higher order statistical features[10] and morphological features[11-14]. Meanwhile, the principal component analysis[15,16] and independent component analysis[17,18] use mathematical methods to extract ECG features from high-dimensional space to low-dimensional space. After feature engineering, support vector machine[19-21], self-organizing map[22], clustering[23] and other machine learning algorithms are used to analyze artificial features and give the prediction result. Although machine learning has broad research applications in the classification of cardiac arrhythmia, there are still some problems that need to be solved. For example, feature engineering based on subjective factors leads to the elimination of some potentially important features, which may affect the final classification performance. In recent years, DNNs have greatly improved the technical level of speech recognition, image classification, strategy games, and medical diagnosis by virtue of their powerful feature extraction capabilities and incremental learning methods. Different from machine learning methods, DNNs can recognize patterns and learn useful features from raw input data without requiring a lot of manual rules and feature engineering, making them particularly suitable for interpreting ECG data. Some studies have been inspired to use DNNs for the automatic classification of cardiac arrhythmia based on single-lead or multi-lead ECG. For example, Ullah et al.[24] converted single-lead ECG into the 2D spectral image, and used 2D-CNN to learn the features of the image to achieve the automatic classification of cardiac arrhythmias, their model achieved average classification accuracy of 99.11% in the MIT-BIH dataset. Hannun et al.[25] developed a DNN to classify 12 rhythm categories based on single-lead ECG. The experiments found that the average score (0.837) of their DNN models exceeded the average score of cardiologists (0.780). This demonstrates that the end-to-end deep learning approach can enable identification of a wide range of cardiac arrhythmias based on single-lead. At the same time they mentioned that factors such as limited signal duration or only one lead limit the valid conclusions that can be drawn from the data. Compared with single-lead, multi-lead ECG contains more valuable information[2,26], which is more conducive to the automatic classification of cardiac arrhythmia. Zhang et al.[2] proposed an interpretable DNN for automatic diagnosis based on 12-lead ECG. Their experiments have demonstrated that the performance of DNN trained on single-lead ECG is lower than that produced by using all 12-lead simultaneously. Wang et al.[27] proposed a method based on multi-scale feature extraction and 12-lead ECG cross-scale information complementation to capture the abnormal state in ECG. Their model based on this approach achieved score of 0.841 in the PhysioNet/CinC_2017 dataset. Chen et al.[28] proposed a neural network that combines convolutional neural networks (CNNs), recurrent neural networks, and attention mechanisms for cardiac arrhythmias classification. Their model won the state-of-art of score (0.837) in CPSC2018[29]. Ribeiro et al.[30] proposed a DNN model trained on a dataset with more than 2 million labeled exams and found that the model achieved score> 0.8 and specificity > 0.99, which outperformed heart disease doctor’s diagnosis. In addition, Zhao et al.[31] fed the patient’s age and gender as auxiliary information into the DNN, and the DNN model achieved the second-ranked test result in the PhsioNet/Computing in Cardiology Challenge 2020. These studies promote the application of deep learning in the automatic classification of cardiac arrhythmia. However, some studies on the automatic classification of cardiac arrhythmias based on single-lead of ECG suggest that only one lead may lead to DNN misclassification. This drove us to choose 12-lead rather than single-lead as experimental data. Partly based on the 12-lead DNN training process is divided into two steps, firstly train the leads one by one, then fuse the trained features of each lead, and finally get the classification result. This leaves no attention to the relationship between leads at the beginning of training. Based on these problems, we propose two-dimensional ECG and DSE-Resnet. The main contributions of this work can be summarized as follows: A two-dimensional method of converting multi-channel time-series signals is proposed. The original 12-lead ECG is spliced into a 2D plane like a grayscale picture, where each column represents the time-series of a single-lead, and each ’pixel’ represents a voltage value of ECG. A two-dimensional CNN model DSE-ResNet is proposed for processing multi-channel time series ECG signals. DSE-ResNet can learn both internal and inter-lead features during the training phase. A slicing rule is proposed to expand the training set. Orthogonal experiments are used to select hyper-parameters. In the evaluation model stage, we use ensemble learning based on a voting strategy to obtain classification performance.

Materials and methods

Problem definition

This paper aims to realize the automatic classification of normal rhythm and 8 cardiac arrhythmias based on the 12-lead ECG records. The input x of the proposed model includes 2D ECG signals and basic information about the patients, and the output is the predicted labels corresponding to the normal rhythm and 8 cardiac arrhythmias. The inputs and reference label y constitute the training set . The training goal of our model is to minimize the softmax cross-entropy loss function within a finite number of training epochs, where the softmax cross-entropy loss function iswhere and represent the probability that the model predicts input to the reference label and the other label , respectively.

Two-dimensional ECG

Data sources

The 12-lead ECG dataset[32] used in this paper came from CPSC2018, which was sampled at 500 Hz and collected from 11 hospitals. It has 9831 samples, where 6877 (female: 3178 and male: 3699) samples were released for training and 2954 samples were kept private for testing. Each sample contains the 12-lead ECG signals, basic information of the patient (age and gender) and the reference label, where label corresponds to 9 categories: Normal rhythm, Atrial fibrillation (AF), First-degree atrioventricular block (I-AVB), Left bundle brunch block (LBBB), Right bundle brunch block (RBBB), Premature atrial contraction (PAC), Premature ventricular contraction (PVC), ST-segment depression (STD) and ST-segment elevated (STE). More details of the data sources are shown in Table 1.
Table 1

Data profile.

No.TypeRecordTime lengthTraining setSmall test setHidden test set
MeanMinMax
1Normal91815.43106489569394
2AF109815.04974111279466
3I-AVB70414.27105469545295
4LBBB20714.949652031597
5RBBB169514.62101181691124756
6PAC57419.4397454647250
7PVC65320.92614482644276
8STD82615.50813882558340
9STE20217.1510602161980
Total687715.95614471175002954
Data profile.

Two-dimensional processing

In practice of clinical medicine, cardiologists usually need a multi-lead ECG as a basis for detection of cardiac arrhythmias. For example, the ECG abnormalities of patients with PAC were usually manifested in the leads V1, II, and aVF, and the typical abnormal ECG of patients with LBBB was mainly appeared in the leads I, V1, V2, V5, V6 and aVR[33]. The detection of different cardiac arrhythmias requires the comprehensive information of 12-lead ECG, which means that both internal and inter-lead features play an important role in the classification of cardiac arrhythmia. In order to extract the internal and inter-lead features of the 12-lead ECG at the same time, we perform two-dimensional processing on the 12-lead ECG. Specifically, the leads are spliced together to form a matrix , where L is the length of leads. As shown in Fig. 1, the original 12-lead ECG is spliced and concatenated into a two-dimensional plane like a grayscale picture, where each column represents the time series of one lead, and each ’pixel’ represents a voltage value of ECG.
Figure 1

Two-dimensional and expend dimension process.

Two-dimensional and expend dimension process.

Slicing

It can be seen from the Table 1 that the number of records in normal rhythm and 8 cardiac arrhythmias is quite different, and the length of the original 12-lead ECG is also different. In order to make full use of the data and unify the length of the 12-lead ECG, we sliced the two-dimensional ECG. The ECG dataset of CPSC2018 contains 6877 training signals. Because the test set of CPSC2018 is not open to the public, we separated 500 sets of data from the 6877 sets of open access data as the offline small number of test set. The main role of the small number of test set is to compare the performance of the sub-model and the ensemble model. The 12-lead ECG in the remaining 6377 ECG signals were sliced and used for training. The specific steps of slicing are as follows: If the length of a two-dimensional ECG A is , the length of A is filled with zeros to . If the length of A satisfies , A is cut off the extra data at the tail to . If the length of A satisfies , A is sliced into n pieces. The slice length is 8192, and the overlap length between slices is 4096. The number of slices is , where represents the largest integer less than x. It is important to note that the slice length determines the length of the 12-lead signal input into the DNN. There are multiple 0.5 times downsampling processes in DSE-ResNet. In order to facilitate dimension statistics after downsampling, we choose the length of the exponential power of 2 as the slice length. At a sampling rate of 500Hz, a slice length of 8192 represents a 12-lead signal length of approximately 16.384s. We counted the length distribution of the original samples in CPSC2018[29]. The average length of the samples is 15.95s, so we choose the closest 8192 (16.384s) as the slice length. 12.7% of the samples are more than 1.5 times the average length, and we called this part of the samples with more ECG information. The training set can be augmented by slicing these samples. The number of cardiac arrhythmia categories in the training set after slicing is shown in Table 1.

Dimension expansion

We added a dimension to the two-dimensional ECG, so that the dimension of the 12-lead signal satisfies the requirements of 2D-convolution (Conv2D) layer for the dimension of the input data. We call the newly added dimension the channel dimension. The two-dimensional ECG was expanded into , where the length is 8192, the lead number is 12 and the channel number is 1. During the training process, channel number of the output feature map of each convolutional layer changes synchronously with the number of convolution kernels. Figure 1 shows the process of slicing, concatenating and expanding dimension of the original 12-lead ECG.

DSE-ResNet

Abnormal ECG signals are mainly manifested as changes in waveform shape and periodic rhythm[34]. Some abnormal ECG signals are periodic and appear in almost every waveform cycle, other abnormal ECG signals are sporadic and only occur in a few heartbeat cycle. Meanwhile, patients of different ages and genders may have different ECG signals for same cardiac arrhythmia. Therefore, DSE-ResNet contains ResNet for extracting the internal and inter-lead features and DSE for extracting global features of two-dimensional ECG. Furthermore, we introduce the age and gender as auxiliary features for training. Figure 2 shows the overall structure of DSE-ResNet. Residual blocks are commonly used in CNNs to improve gradient flow through the networks and enable training of deeper networks. The ResNet in our model is composed of 1 residual block-1 and 9 residual block-2. Every residual block has 2 Conv2D layers for extracting two-dimensional ECG local features (internal and inter-lead features). The entire residual block has 20 Conv2D layers, where the size of the convolution kernel is (32, 1). The first and last 4 Conv2D layers have 12 and 192 convolution kernels respectively, and the number of convolution kernels is doubled for every 4 Conv2D layers in between. Activate Relu is used to increase the non-linear ability of the model. Batch Normalization and Dropout[35] play a good role in improving the training speed and preventing overfitting. Shortcut connection is used to complete the identity mapping of features and prevent the phenomenon of gradient disappearance and explosion. The 2D maximum pooling layer in each shortcut connection is used to adjust the dimension of features.
Figure 2

Structure of DSE-ResNet.

Structure of DSE-ResNet. Squeeze-and-excitation (SE) module[36,37] can squeeze features in the channel dimension and excite features to a higher-dimensional feature space, which has a global receptive field in a sense. The Detached SE (DSE) module in our model is independent of any residual block. It uses a 2D global average pooling layer to extract global features for each lead of the two-dimensional ECG from the channel dimension. Then the 4 dense layers in the DSE module map the extracted global features to a new feature space. Although the addition of the DSE module will increase the computational complexity of the entire model, it can increase the nonlinearity of the DSE-ResNet and establishes the correlation between channels. Patients with different age and gender may show different waveform states on the same type of cardiac arrhythmia. Figure 3 shows that the scores of cardiac arrhythmias obtained by the multi-group model when age and gender are included are better than those without. Therefore, age and gender are introduced into training as auxiliary features, which is helpful for the DSE-ResNet to capture the influence of basic information of the patient on cardiac arrhythmias.
Figure 3

Compare the scores of the models with and without age and gender. The 10 subgraphs used models with different hyper-parameter combinations. Table 2 shows these hyper-parameter combinations.

Compare the scores of the models with and without age and gender. The 10 subgraphs used models with different hyper-parameter combinations. Table 2 shows these hyper-parameter combinations.
Table 2

Orthogonal table of hyper-parameters.

No.Learning rateDropoutMomentum
10.10.80.5
20.150.30.9
30.050.50.5
40.150.80.7
50.050.30.7
60.10.50.9
70.150.30.5
80.050.80.9
90.10.30.7
100.150.50.7

Orthogonal experiment

Appropriate hyper-parameters can improve the performance and effect of model learning. We used Orthogonal Experimental Design (OED) to select combination of hyper-parameter values. OED is a design method for studying multi-factor and multi-level problems. It selects some representative points with uniform dispersion and neatness characteristics from the entire test point for testing based on orthogonality. The process of selecting representative points is often realized by constructing an orthogonal table. Based on relevant research experience, we selected the hyper-parameters that need to be adjusted and gave a corresponding set of estimated values. These estimated values constitute the entire test point of the orthogonal table. We used pairwise independent combinatorial testing (PICT)[38] to construct an orthogonal table for the selected hyper-parameter values to obtain a representative combination of multiple sets of hyper-parameters. Unlike random selection and grid search, PICT is a selection combination parameter technique used in the field of software testing to reduce the number of system test case inputs. The choice of a large number of hyper-parameters in neural networks is the application scenario of choice for PICT.

Ensemble model

Ensemble model accomplishes learning tasks by constructing and combining multiple learners[39]. Compared with the classification performance of a single model, ensemble model can often achieve better classification performance and generalization ability[40]. We use ensemble model to reduce the overall error of our model. The ensemble model contains multiple learners, and each learner is the optimal DSE-ResNet trained based on a representative combination of hyper-parameters. A individual learner is called the single optimal model in this paper. The ensemble model uses a voting strategy to integrate all single optimal models. Specifically, each single optimal model will give a prediction value for the same test sample. Based on the multi-model voting strategy that the minority obeys the majority, the ensemble model takes the predicted value with the most votes as the final output value. Although the use of ensemble model increases the computational complexity, it can effectively improve the classification performance and fault tolerance of the model.

Ethics statement and consent to participate

The database used in the study was an open access database, https://doi.org/10.1166/jmihi.2018.2442. It can be obtained in https://physionet.org/content/challenge-2020/1.0.1/ or http://2018.icbeb.org/Challenge.html. Therefore, no ethics statement and informed consent is required for this study. All methods in this study were carried out in accordance with relevant guidelines and regulations. This study was carried out in compliance with the Declaration of Helsinki.

Experimental details

Software and hardware environment

The proposed model is built and trained using the Keras framework. All experiments are run on a server with Quadro P2200 video card and 5G video memory.

Data pre-processing

Denoising

Muscle noise, power-line noise and baseline wander present in the different ECG leads were removed with a bandpass filter with cutoff frequencies of 0.5 Hz to 49 Hz. Figure 4 shows the power spectral density estimates calculated with the Welch[41] method for lead I of abnormal sample before and after filtering with the Butterworth bandpass filter[42]. Visualizing the power spectral density curves after applying the welch method with different windows and different window lengths, it is observed that high-frequency noises are attenuated.
Figure 4

 Power spectral density curves obtained by applying Welch with different windows and different window lengths. Windows include Blackman window, Hanning window, and Triangular window. And window lengths include 256, 512, and 1024. (a) Power spectral density curve of the lead I signal of the abnormal sample before filtering. (b) Power spectral density curve of the lead I signal of the abnormal sample after filtering. Each subplot uses the same window length and a different window.

Power spectral density curves obtained by applying Welch with different windows and different window lengths. Windows include Blackman window, Hanning window, and Triangular window. And window lengths include 256, 512, and 1024. (a) Power spectral density curve of the lead I signal of the abnormal sample before filtering. (b) Power spectral density curve of the lead I signal of the abnormal sample after filtering. Each subplot uses the same window length and a different window. The results of the waveform of A1001 before and after pre-processing are shown in Fig. 5.
Figure 5

Data pre-processing.

Min–max normalization

Time series data can take a wide range of values in some cases, so it needs to be scaled to a fixed value interval to speed up the learning process[43]. The amplitude of the voltage value in the original 12-lead ECG is , and the amplitude difference between leads is large. It can be seen from Fig. 5 that the maximum and minimum amplitudes of the original 12-lead ECG are distributed in a symmetrical interval. Therefore, we use Min-Max Normalization[44] to scale the amplitude of the voltage value of the two-dimensional ECG to the symmetrical interval , which iswhere and represent the boundary value of the normalized interval, is the voltage value in the i-th row and jth column of the two-dimensional ECG, and respectively represent the maximum and minimum voltage value in the two-dimensional ECG. Figure 5 shows the normalized result. Data pre-processing.

Choice of hyper-parameters

We use OED to determine the combination of hyper-parameters values. Firstly, the batch-size is controlled to the maximum limit that the experimental machine can withstand. Secondly, three hyper-parameters are selected for orthogonal experiment, including learning rate, dropout and momentum. According to the experience of the previous experiments, the value set of learning rate is [0.05, 0.1, 0.15], the value set of dropout is [0.3, 0.5, 0.8], and the value set of momentum is [0.5, 0.7, 0.9]. We use PICT to construct an orthogonal table to combine and match preset values. Table 2 shows the combination of preset values of hyper-parameters configured through PICT. Five-fold cross-validation is used for the models for each set of hyper-parameter combinations, and then the one-fold model with the lowest average loss in the validation set is selected as the single optimal model. Orthogonal table of hyper-parameters.

Results

Performance metric

The classification performance of the algorithm can be evaluated by accuracy, precision, specificity, sensitivity, and score[45,46]. For multi-classification tasks, the average score[47] is an important indicator to measure classification performance. The score of the ith cardiac arrhythmia is the harmonic average of precision and recall , where describes how many of the predicted positive samples are true positive samples, describes how many true positive samples are picked out. Specifically, the score is defined as:where and , TP is the number of positive samples that are classified to be positive, FP is the number of negative samples that are classified to be positive, and FN is the number of positive samples that are classified to be negative. The average score among types is a comprehensive evaluation indicator for evaluating the overall performance of the model, which is defined as: We also calculate the scores of 4 sub-abnormal types, i.e., the AF, block, premature contraction (PC) and ST-segment change (ST), where block consists of I-AVB, LBBB and RBBB, PC consists of PAC and PVC, and ST consists of STD and STE. In addition, accuracy, sensitivity, and specificity are also used as performance metric, and they are defined as:where TN is the number of negative samples that are classified to be negative. It should be noted that recall and sensitivity are numerically the same.

Performance on the small number of test set

We compared the scores of the single optimal models and the ensemble model based on the small number of test sets (500 ECG samples), where each single optimal model is an optimal model trained based on a representative combination of hyper-parameters in Table 2, and the ensemble model is based on the voting strategy to integrate all single optimal models. Table 3 shows the scores of single optimal models and the ensemble model in the small test set. An important result is that compared to the single optimal models, the ensemble model achieved the highest scores in LBBB, PAC, STE and PC. More importantly, the average of the ensemble model is greater than that of the single optimal models. The result shows the advantages of the ensemble model compared to the single optimal model, it can effectively improve the fault tolerance of the model and improve the performance of the model classification.
Table 3

Comparison of scores between the ensemble model and the single optimal models on the small number of test set.

No.Average \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_1$$\end{document}F1Normal rhythm and 8 cardiac arrhythmias4 sub-abnormal types
NormalAFI-AVBLBBBRBBBPACPVCSTDSTEAFBlockPCST
10.7830.7390.9620.8460.7860.9120.7420.8540.6590.5450.9620.8850.7930.629
20.8160.8210.9630.8450.9380.9220.6830.8300.7500.5950.9630.9030.7610.709
30.8100.7450.9550.8210.9700.9280.6820.8600.7300.5950.9550.9050.7730.695
40.7760.7380.9330.8240.9380.9150.6920.8060.7420.4000.9330.8960.7470.688
50.8350.7870.9540.8760.9380.9410.7440.9070.7630.6060.9540.9260.8260.728
60.8240.7830.9190.8510.9380.9320.7380.8920.7610.6000.9190.9120.8140.727
70.8170.7630.9690.8300.9410.9380.7360.8760.7620.5410.9690.9110.8070.704
80.7800.7430.9380.8040.8110.9020.7100.8700.6860.5560.9380.8670.7890.652
90.8320.7600.9380.8570.9410.9310.7420.9140.7790.6290.9380.9140.8240.743
100.8280.7870.9420.9010.9090.9190.7420.8640.7780.6060.9420.9140.8020.738
EM0.8430.7870.9490.8700.9700.9350.7640.8970.7480.6670.9490.9220.8300.729

Significant values are in bold.

Comparison of scores between the ensemble model and the single optimal models on the small number of test set. Significant values are in bold.

Performance on the CPSC2018 hidden test set

Figure 6 shows the variation of the loss curve and accuracy curve of a single optimal model (Learning rate = 0.15, Dropout = 0.5, Momentum = 0.7) on training set and validation set. The validation set is mainly used to observe how the loss and accuracy curves of the model change during training. According to the performance of the model in the validation set during the training process, it can be judged whether the model is overfitting. The accuracy and loss curve of the model tends to be stable from the 30th epoch in Fig. 6. We have tried increasing the epoch to 70 and found overfitting. Therefore, the method of early stopping is used to reduce the number of training to 50 epochs. By submitting our model to the competition official of CPSC2018, we get the test results based on the hidden test set (2954 ECG records). Figure 7 shows the visual confusion matrix. For the sub-abnormal type ST, 53 samples with STD label and 27 samples with STE label are predicted to be Normal, and 19 samples with the Normal label are predicted to be STD. DSE-ResNet is not sensitive to changes in the ST, which may be due to the scarce number of samples of the ST and the highly similar waveform structure between ST and Normal. Furthermore, doctors disagree on the diagnosis of ST[48], leading to incorrect labeling of samples, which may also be one of the reasons. For sub-abnormal types AF and Blocks, the proposed model achieved scores of 0.944 and 0.913, respectively.
Figure 6

Training/validation set loss and accuracy curve for CPSC2018.

Figure 7

Confusion matrix.

Training/validation set loss and accuracy curve for CPSC2018. Confusion matrix. According to the confusion matrix, we calculated the specific classification performance of DSE-ResNet on the hidden test set. Table 4 shows the accuracy, precision, sensitivity, and specificity of different cardiac arrhythmias. The average accuracy and average specificity of normal rhythm and 8 cardiac arrhythmias are 0.965 and 0.979, and both achieve the maximum value on LBBB, which indicates that DSE-ResNet has high misdiagnosis rate for LBBB recognition.
Table 4

Other performance metrics of the DSE-ResNet on CPSC2018 hidden test set.

MetricsAverageNormal rhythm and 8 cardiac arrhythmias4 sub-abnormal types
NormalAFI-AVBLBBBRBBBPACPVCSTDSTEAFBlockPCST
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Acc_i$$\end{document}Acci0.9650.9360.9780.9720.9920.9620.9540.9630.9460.9790.9780.9460.9430.930
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_p$$\end{document}Fp0.8450.7250.9400.8690.9310.9270.7390.8770.8280.7660.9400.9120.8060.819
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Se_i$$\end{document}Sei0.8030.8980.9470.8870.8530.9340.7720.7630.7230.4500.9470.9140.7680.671
\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sp_i$$\end{document}Spi0.9790.9420.9860.9830.9980.9720.9720.9870.9780.9960.9860.9520.9700.975

Significant values are in bold.

Table 5 shows the average and the of 4 sub-abnormal types of our model and the top five models with the highest average in CPSC2018. Note that the test results of the models in Table 5 are based on the same hidden test set. Tests show that the proposed model has the average , which is only 0.02 behind the state-of-art model. It is worth noting that the proposed model achieves the best test results in 2 sub-abnormal types, which are and , respectively. At the same time, the test results based on the hidden test set show that the model learns internal and inter-lead features from two-dimensional ECG is more sensitive to the ability of AF and Block recognition.
Table 5

Comparison of scores with the top five models in CPSC2018.

ModelAverage \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_1$$\end{document}F1\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_\mathrm{AF}$$\end{document}FAF\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_\mathrm{Block}$$\end{document}FBlock\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_\mathrm{PC}$$\end{document}FPC\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_\mathrm{ST}$$\end{document}FST
Our model0.8170.9440.9130.7860.738
Chen et al.[28]0.8370.9330.8990.8470.779
Cai et al.[29]0.8300.9310.9120.8170.761
He et al.[49]0.8060.9140.8790.8010.742
Yu et al.[29]0.8020.9180.8900.7890.718
Yan et al.[29]0.7910.9240.8820.7790.709

Significant values are in bold.

Table 6 compares the classification performance of DSE-ResNet and previous work on the hidden test set of CPSC2018. The results in the table show that the model proposed in this paper achieved scores of 0.944, 0.878, 0.890, and 0.755 in AF, I-AVB, LBBB, and PAC, respectively. The average score is also the highest. Compared with other methods, the simultaneous learning of internal and intra-lead features used in this paper facilitates the identification of multiple types of cardiac arrhythmias.
Table 6

Comparison for classification performance of previous works and ours evaluated on the CPSC2018 hidden test set.

WorkModel\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_1$$\end{document}F1 scores
NormalAFI-AVBLBBBRBBBPACPVCSTDSTEAverage
Yao et al.[50]CNN + LSTM0.7530.9000.8090.8740.9220.6380.8320.7620.4620.772
Liu et al.[51]CNN + Expert feature0.820.910.870.870.910.630.820.810.600.81
Liu et al.[51]CNN0.800.890.870.770.900.650.790.800.560.78
Wang et al.[52]CNN + Attention0.790.930.850.860.930.750.850.800.560.813
Yao et al.[53]CNN + LSTM + Attention0.7890.9200.8500.8720.9330.7360.8610.7890.5560.812
Our modelCNN + Channel Attention + ensemble model0.8030.9440.8780.8900.9310.7550.8160.720.5670.817

Significant values are in bold.

In summary, compared with the top five models in CPSC2018, DSE-Resnet achieved performance improvement in identifying 2 sub-abnormal types. The average score was also improved compared with most studies, which indicating that DSE-Resnet has certain advantages in detecting some cardiac arrhythmias. Other performance metrics of the DSE-ResNet on CPSC2018 hidden test set. Significant values are in bold. Comparison of scores with the top five models in CPSC2018. Significant values are in bold. Comparison for classification performance of previous works and ours evaluated on the CPSC2018 hidden test set. Significant values are in bold.

Conclusion

In this paper, we propose a general model based on the two-dimensional ECG and DSE-ResNet to realize the automatic classification of normal rhythm and 8 cardiac arrhythmias. The two-dimensional processing method combines the original 12-lead ECG into the same two-dimensional space, so that DSE-ResNet can simultaneously extract the internal and inter-lead features of the 12-lead ECG. Orthogonal experiment instead of grid search to select hyper-parameters reduces the computational complexity. Furthermore, the ensemble learning model based on voting strategy is used to improve classification and generalization performance. Experiments based on the small number of test set show that the classification performance of the ensemble learning model is much better than that of single models. Then we submitted our model to the competition official of CPSC2018 and got the test results based on the hidden test set. The comparison with the results of the top 5 models in the CPSC2018 shows that our model is reasonable in the average value, and achieved the best test results in 2 sub-abnormal types. This suggests that automatic classification of AF and Block may depend on the relationship between leads. This also means that the use of DSE-ResNet to process multi-channel ECG signals to capture internal lead and inter-lead features is effective for automatic identification of cardiac arrhythmias. Our results not only provide a new perspective on the automatic classification of cardiac arrhythmia based on the 12-lead ECG, but also raise several questions. Based on the two-dimensional ECG, future research directions include exploring how to further improve the accuracy of prediction, how to reduce the prediction time, how to find redundant leads in the 12-lead ECG, and so on.
  20 in total

1.  ECG-based multi-class arrhythmia detection using spatio-temporal attention-based convolutional recurrent neural network.

Authors:  Jing Zhang; Aiping Liu; Min Gao; Xiang Chen; Xu Zhang; Xun Chen
Journal:  Artif Intell Med       Date:  2020-05-11       Impact factor: 5.326

2.  Support vector machine-based expert system for reliable heartbeat recognition.

Authors:  Stanislaw Osowski; Linh Tran Hoai; Tomasz Markiewicz
Journal:  IEEE Trans Biomed Eng       Date:  2004-04       Impact factor: 4.538

Review 3.  The clinical value of the ECG in noncardiac conditions.

Authors:  Carlos Van Mieghem; Marc Sabbe; Daniel Knockaert
Journal:  Chest       Date:  2004-04       Impact factor: 9.410

4.  Premature Ventricular beat classification using a dynamic Bayesian Network.

Authors:  Lorena S C de Oliveira; Rodrigo V Andreão; Mario Sarcinelli-Filho
Journal:  Conf Proc IEEE Eng Med Biol Soc       Date:  2011

Review 5.  AHA/ACCF/HRS recommendations for the standardization and interpretation of the electrocardiogram: part III: intraventricular conduction disturbances: a scientific statement from the American Heart Association Electrocardiography and Arrhythmias Committee, Council on Clinical Cardiology; the American College of Cardiology Foundation; and the Heart Rhythm Society. Endorsed by the International Society for Computerized Electrocardiology.

Authors:  Borys Surawicz; Rory Childers; Barbara J Deal; Leonard S Gettes; James J Bailey; Anton Gorgels; E William Hancock; Mark Josephson; Paul Kligfield; Jan A Kors; Peter Macfarlane; Jay W Mason; David M Mirvis; Peter Okin; Olle Pahlm; Pentti M Rautaharju; Gerard van Herpen; Galen S Wagner; Hein Wellens
Journal:  J Am Coll Cardiol       Date:  2009-03-17       Impact factor: 24.094

6.  A convolutional neural network for ECG annotation as the basis for classification of cardiac rhythms.

Authors:  Philipp Sodmann; Marcus Vollmer; Neetika Nath; Lars Kaderali
Journal:  Physiol Meas       Date:  2018-10-24       Impact factor: 2.833

7.  Classification of electrocardiogram signals with waveform morphological analysis and support vector machines.

Authors:  Hongqiang Li; Zhixuan An; Shasha Zuo; Wei Zhu; Lu Cao; Yuxin Mu; Wenchao Song; Quanhua Mao; Zhen Zhang; Enbang Li; Juan Daniel Prades García
Journal:  Med Biol Eng Comput       Date:  2021-10-30       Impact factor: 2.602

8.  Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network.

Authors:  Awni Y Hannun; Pranav Rajpurkar; Masoumeh Haghpanahi; Geoffrey H Tison; Codie Bourn; Mintu P Turakhia; Andrew Y Ng
Journal:  Nat Med       Date:  2019-01-07       Impact factor: 53.440

9.  Automatic diagnosis of the 12-lead ECG using a deep neural network.

Authors:  Antônio H Ribeiro; Manoel Horta Ribeiro; Gabriela M M Paixão; Derick M Oliveira; Paulo R Gomes; Jéssica A Canazart; Milton P S Ferreira; Carl R Andersson; Peter W Macfarlane; Wagner Meira; Thomas B Schön; Antonio Luiz P Ribeiro
Journal:  Nat Commun       Date:  2020-04-09       Impact factor: 14.919

10.  Physician accuracy in interpreting potential ST-segment elevation myocardial infarction electrocardiograms.

Authors:  James M McCabe; Ehrin J Armstrong; Ivy Ku; Ameya Kulkarni; Kurt S Hoffmayer; Prashant D Bhave; Stephen W Waldo; Priscilla Hsue; John C Stein; Gregory M Marcus; Scott Kinlay; Peter Ganz
Journal:  J Am Heart Assoc       Date:  2013-10-04       Impact factor: 5.501

View more

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