Next Article in Journal
Fractional-Order PIλDμ Controller Using Adaptive Neural Fuzzy Model for Course Control of Underactuated Ships
Previous Article in Journal
Research Progress in the Early Warning of Chicken Diseases by Monitoring Clinical Symptoms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Classification of 15 Leads ECG Signal of Myocardial Infarction Using One Dimension Convolutional Neural Network

by
Ahmad Haidar Mirza
1,2,*,
Siti Nurmaini
3 and
Radiyati Umi Partan
4
1
Doctoral Program of Engineering Science, Faculty of Engineering, Universitas Sriwijaya, Palembang 30128, Indonesia
2
Computer Science, Universitas Bina Darma, Palembang 30264, Indonesia
3
Intelligent System Research Group, Universitas Sriwijaya, Palembang 30128, Indonesia
4
Faculty of Madicine, Universitas Sriwijaya, Palembang 30128, Indonesia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(11), 5603; https://doi.org/10.3390/app12115603
Submission received: 1 May 2022 / Revised: 29 May 2022 / Accepted: 30 May 2022 / Published: 31 May 2022
(This article belongs to the Topic Machine and Deep Learning)

Abstract

:
Impaired blood flow caused by coronary artery occlusion due to thrombus can cause damage to the heart muscle which is often called Myocardial Infarction (MI). To avoid the complexity of MI diseases such as heart failure or arrhythmias that can cause death, it is necessary to diagnose and detect them early. An electrocardiogram (ECG) signal is a diagnostic medium that can be used to detect acute MI. Diagnostics with the help of data science is very useful in detecting MI in ECG signals. The purpose of study is to propose an automatic classification framework for Myocardial Infarction (MI) with 15 lead ECG signals consisting of 12 standard leads and 3 Frank leads. This research contributes to the improvement of classification performance for 10 MI classes and normal classes. The PTB dataset trained with the proposed 1D-CNN architecture was able to produce average accuracy, sensitivity, specificity, precision and F1-score of 99.98%, 99.91%, 99.99%, 99.91, and 99.91%. From the evaluation results, it can be concluded that the proposed 1D-CNN architecture is able to provide excellent performance in detecting MI attacks.

1. Introduction

The epidemic of cardiovascular disease (CVD) has shifted from high-income countries to parts of the developing world. More than three-quarters of deaths from cardiovascular disease occur in low-income countries [1]. In the case of cardiovascular disease, correct diagnosis at an early stage is very important. Therefore, a fast and effective diagnostic technique must be given precisely and accurately. One of the pathological measures to diagnose cardiovascular disease is an electrocardiogram (ECG). ECG is the process of recording the electrical activity of the heart over a period of time. The ECG signal consists of P, QRS, T, and U components, known as features [2].
Many studies have been conducted related to ECG signal. The most popular one is to classify cardiovascular disease from ECG using artificial intelligence. One of approach is the utilization of machine learning algorithm. Most machine learning approaches involve three phases such as preprocessing, feature extraction, and feature normalization [3]. However, such approach needs a prior knowledge to determine the feature. In addition the extracted feature sometimes not suitable for different classification task in ECG.
In recent years deep learning, part of machine learning, has gained popularity due to its high performance and effectiveness. Deep learning techniques outperform conventional machine learning techniques by extracting the necessary features from the raw data [4]. It has less processing and high accuracy compared to traditional methods. One of deep learning method that can process an ECG signal is Convolutional Neural Networks (CNN). This method have been used to classify heart rate, including detection of Myocardial Infarction (MI) disease [5]. MI refers to myocardial necrosis caused by acute and persistent ischemia and hypoxia in the coronary arteries [6]. MI is more common in the elderly, but more and more young people are suffering from MI due to high pressure, fast-paced and unhealthy lifestyles. The heart produces a change in potential with each beating cycle [7]. A fast, simple, non-invasive electrocardiogram is widely used in the diagnosis of MI.
In a study conducted by Nurmaini, et al. [8], the proposed 1D-CNN approach was used to detect AF disease with 13 layers and 10-fold cross validation. To remove noise, eight levels of DWT decomposition were used with Symlet5. In this study, researchers used four data sets, such as MIT-BIH Atrial Fibrillation, Physionet Atrial Fibrillation, MIT-BIH Malignant Ventricular Ectopy, and from hospitals in Indonesia. With 9 s of signal segmentation and a combination of DWT and 1D-CNN to detect/classify AF, it allows the model to automatically extract features from the ECG signal and helps improve final classification performance.
Another study conducted by Bologlu [9], proposed a CNN architecture to classify 10 MI classes on 12 leads ECG signals without feature extraction. The dataset used is the ECG Physiobank (PTB) dataset. The result of this research is that the highest classification performance is in lead v4 with an accuracy of 99.78%. However, this study only utilize 12 leads from 15 leads. The remain three leads (vx, vy and vz) are the frank leads which are needed to detect STEMI condition from ECG signal. Moreover, the proposed architecture in [8] are quite complex with 6 layers of convolutional layers, resulting a high computational cost.
Research conducted by Vogiatzis et al. [10] on the importance of 15 leads ECG signal versus 12 leads ECG signal in improving the diagnostic accuracy of Acute Myocardial Infarction (AMI). The purpose of this study was to examine the usefulness of the 15-lead ECG signal in treating chest pain patients, especially if the 12 lead ECG signal could not diagnose AMI. The results showed that the 12 lead ECG signal was diagnostic of ST-elevation AMI (STEMI) in 158 patients (Group A, 84.5%) who immediately underwent reperfusion therapy. On the other hand, posterior lead interpretation was applied to 28 patients (Group B, 15.1%) for the diagnosis of STEMI requiring reperfusion therapy. In clinical practice, 15 leads ECG leads have better diagnoses in STEMI condition than the 12 leads ECG signal which was not conclusive (OR = 2.43, p = 0.04). It can be concluded that the use of 15 lead ECG signals contributes to a faster and more accurate diagnosis of STEMI, especially in the Emergency Unit.
The study of 15 ECG leads was also conducted by Brady [11]. The study aimed to investigate the diagnostic and therapeutic impact of 15 ECG leads (15EKG) in the Emergency Department (ED) for patients suffering from chest pain (CP). The study design was a prospective use of 15 ECG with real-time physician survey and retrospective comparison with 12 ECG leads (12EKG). The result of this study is that of the 15 ECG cases, 81% have completed the doctor’s survey and showed that the results of the diagnosis and management of ACIS were not changed by 15 ECGs. However, clinicians feel that the 15 ECG provides a more complete anatomical picture of ACIS especially the description of myocardial injury without changing the ED diagnosis, ED-based therapy, or hospital disposition in adult CP patients. The investigators suggest conducting further studies to identify a subset of patients who might benefit from a 15EKG.
Another study was carried out by Syndrome [12], which was designed to evaluate ST-segment deviation of the posterior lead ECG in ACS patients at Beheshti Hospital in 2002. This study was conducted on 347 ACS patients admitted to the Emergency Department. Diagnosed on 15 ECG leads (12 standard ECG leads with an additional three leads (V7-V8-V9)) and performed statistical analysis, calculated percentage sensitivity, odds ratios, 95% confidence interval. The results showed that 15 lead ECG provides increased sensitivity in detecting ST-segment deviation in AMI and unstable angina.
This study performs 10 MI classes classification using 1D-CNN on 15 leads ECG leads. Moreover, in order to get better performance a framework based on 1D-CNN architecture was develop. In order to reduce the computational complexity and cost, the proposed CNN architecture was constructed using two convolutional layers. Moreover, 700 nodes of ECG signal are used to provide a better feature representative. Based on the description above, this research and the proposed method provide new contributions as follows:
  • Propose an automatic classification framework for Myocardial Infarction (MI) with 15 leads ECG signal.
  • Developing a simple 1D-CNN architecture for classifying 10 MI classes and Normal classes.
In measuring and evaluating the proposed method, we will analyze the performance of the model based on the values of accuracy, sensitivity, specificity, precision, and F1 score. With a detailed approach and to describe the proposed methods and contributions, this paper is structured as follows: In Section 2, we present the proposed materials and methods for ECG imaging in identifying MI. In Section 3, we present the results of applying the method. In Section 4. we present a discussion. Finally, Section 5 draws conclusions from the process and the results obtained.

2. Materials and Methods

2.1. Convolutional Neural Network (CNN)

Convolutional Neural Network (CNN) is generally divided into three layers, namely convolutional layer, pooling layer, and fully connected layer. The convolutional layer represents the features of the input, and the pooling layer reduces the resolution of the feature map [13]. The classification function is performed to generate the final vector class in the fully connected layer [14]. All activation neurons from the previous layer are connected to neurons in the fully connected layer. The activation function is used to determine the classification results.
This study proposes a 1D-CNN based approach to classify 10 MI classes and normal classes. The proposed 1D-CNN architecture will be individually trained and tested for 15 ECG signal leads. This 1D-CNN model was used because CNN was able to provide high ECG signal recognition in all leads [9].

2.2. Dataset

In this study, the dataset used was the ECG Physiobank (PTB) [15]. The MI dataset consisted of ECG recordings of 52 normal subjects and 148 MI patients. The records used are 15 multi-lead ECG signals with 12 standard leads (i, ii, iii, avr, avl, avf, v1, v2, v3, v4, v5, v6) and 3 leads Frank (vx, vy, vz) with a total of 672,907 beats with details of 548,748 beat records MI data with 11 adjacent ECG class groupings: anterior (A), anterolateral (AL), anteroseptal (AS), inferior (I), inferolateral (IL), inferior posterior (IP), infero-posterolateral (IPL), lateral (L), posterior (P) and posterolateral (PL) and 126,019 Normal/Healthy records.

2.3. Experimental Results

The proposed research framework is divided into five processes: (1) signal normalization based on normalization limits; (2) Discrete Wavelet Transform (DWT) to remove noise in the ECG signal and search for R-peak; (3) ECG signal segmentation; (4) classification with 1D-CNN architecture; (5) evaluate the model with five performance metrics (accuracy, sensitivity, specificity, precision and F1 score). In detail, the proposed research methodology is shown in Figure 1 below.

2.4. Pre-Processing

At the initial stage, normalization was carried out on the ECG Physiobank (PTB) open-access dataset. ECG signals are commonly used in MI classification [16]. The ECG signal can be damaged due to interference from various types of artifacts and electrical currents [17]. After normalization, the raw ECG signal can be enhanced by removing various types of noise and artifacts. In our research, we reconstruct the ECG signal from the noise signal by using Discrete Wavelet Transform (DWT). The baseline of the signal is corrected, and the ECG signal is close to zero. From several experiments conducted, Sym5 was chosen as the mother wavelet because it offers better ECG signal denoise [8].
After the denoising process, the preprocessed signal was then segmented to detect the R-peak (the highest positive point of the QRS complex in each ECG cycle). To ensure adequate coverage of the QRS complex and the ST segment that follows both and as input for the input of the 1D-CNN model, the signal is changed with a duration of 0.7 s [18]. This also allows the proposed model to learn sequence features in detail. The block representation of the ECG signal is divided into MI and normal (Figure 2). Details of each number of beats in each MI and Normal class in each lead are presented in Table 1 below:
The number of beats for the normal class was 18.78% (126,347 beats) out of a total of 672,907 beats. Among MI classes, the highest and lowest number of beats were in the inferior (140.813 beats, 20.93%) and inferior posterior (547 beats, 0.09%). For all leads, the highest and lowest total beats are in lead v2 and lead avf which are 50,333 and 33,674, respectively. Figure 2 shows a segment of the 15 lead ECG signals from the Normal and MI classes. Each ECG signal from each lead exhibits different characteristics as it represents vector information from position sensors placed in different geographic locations of the chest. An example of reading the lead v2 signal waveform for various MI classes and healthy classes is depicted in Figure 3.

3. Results

Experimental studies for all MI and normal classes in 15 leads were carried out separately using the same 1D-CNN architecture, without changing the model parameters with the modified data set and the implemented application. In model evaluation, all ECG signals from all leads were partitioned 70% for training, 15% for validation and 15% for testing. Keras library is used with Adam optimizer algorithm and cross loss entropy function. The 1D-CNN model was individually trained for all ECG signals across all MI classes in 15 leads over a 50 epoch period. Table 2 shows a detailed specification of each parameter of the 1D-CNN architecture layer.
The model successfully completed the learning process for all ECG signals in a short time (50 epochs). During the training phase, no overfitting problems occurred in the 1D-CNN model. After the training phase, the proposed 1D-CNN model was applied to the test data.
The 1D-CNN architectural model is built to provide optimized ECG signal recognition performance of all ECG leads. The proposed architecture only has 2 convolution layers. This due to we want to avoid the vanishing gradient problem. Besides in every convolutional layer we generate 128 unique features from ECG signal. Moreover, we use single stride to generate more unique and detailed feature. Moreover, we also use dropout layer in fully connected layer to avoid overfitting. The block representation of proposed 1D-CNN model is summarized in Figure 4.
ECG signals 10 MI and Normal class with 700 samples are input into this model layer. They pass through hierarchically arranged convolution layers and turn into feature maps of different sizes. In this model, the dropout technique is used to avoid overfitting while the model is in training. The model will check all training data at each epoch and the model will record training data if the selected epoch number is too large. Table 3 show the performance of the trained 1D-CNN model at the end of the 50th epoch on test data in 15 ECG leads. The proposed 1D-CNN model recognizes test data for all vector groupings in all MI and Normal classes with a testing accuracy of more than 99.5% for each ECG lead.
From Table 3, it can be seen that the highest classification performance results for the 10 MI classes and normal classes is in lead v2 with a testing accuracy value of 99.87% while the lowest accuracy level is in lead aVR with an accuracy of 99.58%. Moreover, the test set performance was slightly better than train set performance was due to the number of test set is lower than train set. This resulting training data more vary than testing data, makes the model covers the distribution on test data. Hence, the testing data has a slightly better performance compared to training data. In addition the detailed Graph of Training and Validation (Accuracy and Loss) for v2 leads was displayed on Figure 5.
A confusion matrix is a detailed tabulation that describes the classification results in a model. From the results of the confusion matrix in lead v2 (Figure 6), it shows that the model built has a very good accuracy value in almost all MI classes. The CNN model used recognizes well (100%) in classes A, AL, IP, L, P, and PL, while the normal class has a value of 99.94% with only one data having an error in labeling. In general, the proposed CNN model is tested using test data with several test values such as accuracy, sensitivity, specificity, precision, and F1-score. The performance results obtained were above 99.9% for accuracy and specificity and ranged from 99.5% to above 99.9% for sensitivity, precision, and F1 score (Figure 7). The model with the highest accuracy was chosen as the best model for this study from all the models analyzed.
Table 4 shows the performance result values for accuracy, sensitivity, specificity, precision, and F1-score in 15 ECG leads and Table 5 shows the performance matrix values for 10 MI and normal classes.
The performance results (%) for each of the 15 ECG leads are presented in Table 4. The best average accuracy value for all MI and Normal classes is in lead v2 with a value of 99.98%. Likewise, the best values for sensitivity, specificity, precision, and F1-score are in lead v2 with values of 99.91%, 99.99%, 99.91% and 99.91%. More details on the values of accuracy, sensitivity, specificity, precision, and F1-score for each MI class and normal in each lead.
In Table 5, the MI class accuracy value which has the lowest value is AS class (99.80%) and the best MI class accuracy value that reaches 100% is A, H, IP, IPL, L, P, and PL classes. Similarly, the sensitivity value was obtained from the test data for all MI and normal classes. The lowest sensitivity value is PL class (98.28%) and the highest sensitivity value is in almost all MI classes (100%) except AL (99.80%) and IL (99.85%) on all ECG signals in all leads. The CNN model can recognize MI class with a high sensitivity value of 99.80% for all leads. In other words, the proposed model is good for heterogeneity in all ECG segments. For the specificity value, the lowest value is below 99.85% in the PL class (98.92%), while the highest value of 100% specificity is in almost all MI classes and normal except for class I (99.99%). For precision, the highest value is in almost all MI and normal classes, while the lowest precision value is in the PL class (99.15%). For F1-Score, the highest score of 100% is in class A, H, IP, IPL, L, P, and PL, while the lowest score is in class AL (98.97%).
Based on the accuracy, sensitivity, specificity, precision, and F1-score, the diagnostic test is found to be able to identify patients with MI disease with great relevance. The highest values of accuracy, sensitivity, specificity, precision, and F1-score for 10 MI classes and normal in 15 leads are at the maximum values of 99.98%, 99.91%, 99.99%, 99.91, and 99.91%. Meanwhile, the lowest values of accuracy, sensitivity, specificity, precision, and F1-score are 99.92%, 99.52%, 99.88%, 99.45%, and 99.64%. The evaluation results above shows that the proposed CNN model is able to classify MI disease very well for 10 classes of MI and normal in 15 ECG leads.

4. Discussion

Many literatures describe approaches to MI signal classification. The difference in the number of MI classes used as well as the number of leads used must be taken into account when comparing the performance of each. Table 6 presents some of the published research results for the current approach.
Research Acharya et al. [19], detected MI and Normal for 12 lead ECG signals with KNN classification and achieved 98.74% performance on lead v3. Kumar et al. [16], classified MI and Normal classes for 12 ECG lead signals with the LS-SVM classification. The results obtained are 99.31% accuracy in lead ii. Dohare et al. [20], achieved an accuracy of 98.33% using the SVM classification to distinguish MI from healthy classes. Bologlu et al. [9], used CNN model 10 layer to classify 10 MI and Normal classes on the 12 lead ECG signals. The model output obtained reaches a performance of 99.78%. Han et al. [21], used ML–ResNet for the diagnosis of 6 classes of MI and normal with an accuracy of 99.72% and an F1-score of 99.67%. Dey et al. [22] classified 12 ECG signal leads for MI and Non MI classes using CNN and bi LSTM models and the performance evaluation results obtained were 99.246%. While Yadav et al. [4] classified MI and Normal classes for 12 lead ECG signals with the CNN model which achieved an accuracy of 99.82%. Research Li [23], proposed an automatic MI detection model SLC-GAN which synthesizes single ECG data with high morphological similarity through Generative Aversive Network (GAN). MI detection is automated using the Convolutional Neural Network (CNN) with the original ECG data and the synthetic ECG from the GAN. Empirical results show that the SLC-GAN method performs very well compared to other MI classification methodologies on single lead ECG from PTB Diagnostic ECG Database. The MI SLC-GAN classification accuracy reaches 99.06% with 5-fold cross validation. For our proposed model, we use a 15 lead ECG signal with 1D-CNN architecture for 10 MI and Normal classes.
In Table 6, it can be seen that the MI classification problem can be proposed as a binary classification problem, namely distinguishing ECG signals for Normal and MI classes. The difference between this study and previous studies (1,2,3,5,6,7) lies not only in the number of MI classes used, but also in the number of ECG signal leads. All previous studies generally used 12 standard leads, while this study used 15 ECG signals (12 standard leads and 3 frank leads). It can be seen that the performance results for 3 lead franks (vx, vy, vz) reached an average accuracy of 99.97%, 99.96% and 99.93% and an average sensitivity of 99.76%, 99.80% and 99.52% (Table 4). From the performance results, it can be seen that the three leads (vx, vy, vz) were able to give the best contribution to the classification performance for 10 MI and Normal classes.
Research conducted by Baloglu et al. [8], using the same number of MI and Normal classes as this study. The difference lies in the segmentation for the length of the ECG signal (Baloglu [8] 651 pulse samples, while for this study using a longer signal of 700 pulse samples/signal modified with a duration of 0.7 s) which causes a difference in the number of beats produced. Another difference lies in the number of layers of the CNN architecture and the size of the kernel used. Baloglu [8] used 10 CNN layers while this study used 8 CNN layers. A smaller number of layers will reduce the computational load on the CNN architecture used so that the computing process can be faster. The difference in kernel size results in the difference in the size of the detected features. The result of this research is that the performance value obtained is better than previous studies. The advantage of this study is that the proposed 1D-CNN method on 15 leads of ECG signals successfully distinguishes 10 types of MI and normal signals with a classification performance of more than 99.9%.

5. Conclusions

This study proposes a 1D-CNN model to classify MI disease on 15 ECG signal leads. With the proposed 1D-CNN model, it is ensured that the ECG signal is classified without going through feature extraction. ECG signals for 10 MI and normal classes were obtained from the Physiobank ECG dataset (PTB). From the results of experiments carried out with the proposed 1D-CNN model, the performance result accuracy, sensitivity, specificity, precision, and F1-score are more than 99.5% in all types of MI and normal in 15 ECG leads. Based on these results, it can be concluded that the 1D-CNN model is the best predictor and can be applied to classify MI disease. This study is expected to provide an effective framework for the classification of MI on ECG signals. Specifically, this CNN model is able to detect 10 different MI class types with an average accuracy of 99.98% in lead v2. In the next study, the performance evaluation of the proposed model will be carried out by testing the 1D-CNN model to classify heart disease by adding several classes from different datasets with different segmentation to get a single best architecture for MI.

Author Contributions

Conceptualization, A.H.M. and S.N.; methodology, S.N. and R.U.P.; software, A.H.M.; validation, A.H.M., S.N. and R.U.P.; formal analysis, A.H.M. and S.N.; investigation, A.H.M.; resources, A.H.M.; data curation, A.H.M.; writing—original draft preparation, A.H.M.; writing—review and editing, A.H.M., S.N.; visualization, A.H.M.; supervision, S.N.; project administration, A.H.M.; funding acquisition, A.H.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The dataset utilized in this study is freely available and can be downloaded from: https://physionet.org/content/ptbdb/1.0.0/ (accessed on 30 July 2021).

Acknowledgments

This research was funded by Universitas Bina Darma.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rehman, H.; Kalra, A.; Kochar, A.; Uberoi, A.S.; Bhatt, D.L.; Samad, Z.; Virani, S.S. Secondary prevention of cardiovascular diseases in India: Findings from registries and large cohorts. Indian Heart J. 2020, 72, 337–344. [Google Scholar] [CrossRef] [PubMed]
  2. Savelieva, I.; Camm, J. Update on Atrial Fibrillation: Part I. Clin. Cardiol. Int. Index. Peer-Rev. J. Adv. Treat. Cardiovasc. Dis. 2008, 62, 55–62. [Google Scholar] [CrossRef] [PubMed]
  3. Jambukia, S.H. Classification of ECG signals using Machine Learning Techniques: A Survey. In Proceedings of the 2015 International Conference on Advances in Computer Engineering and Applications, Ghaziabad, India, 19–20 March 2015; pp. 714–721. [Google Scholar] [CrossRef]
  4. Yadav, S.S.; More, S.B.; Jadhav, S.M.; Sutar, S.R. Convolutional neural networks based diagnosis of myocardial infarction in electrocardiograms. In Proceedings of the 2021 International Conference on Computing, Communication, and Intelligent Systems (ICCCIS), Greater Noida, India, 19–20 February 2021; pp. 581–586. [Google Scholar]
  5. Krizhevsky, A.; Hinton, G.E. ImageNet Classification with Deep Convolutional Neural Networks. pp. 1–9. Available online: https://proceedings.neurips.cc/paper/2012 (accessed on 17 March 2022).
  6. Li, R.; Shen, S.; Zhang, X.; Li, R.; Wang, S.; Zhou, B.; Wang, Z. Cardiovascular Disease Risk Prediction Based on Random Forest; Springer: Singapore, 2019; Volume 536, ISBN 9789811368363. [Google Scholar]
  7. Zhang, X.; Li, R.; Hu, Q.; Zhou, B.; Wang, Z. A New automatic approach to distinguish myocardial infarction based on lstm. In Proceedings of the 2019 8th International Symposium on Next Generation Electronics (ISNE), Zhengzhou, China, 9–10 October 2019; pp. 1–3. [Google Scholar] [CrossRef]
  8. Nurmaini, S.; Tondas, A.E.; Darmawahyuni, A.; Rachmatullah, M.N.; Umi Partan, R.; Firdaus, F.; Tutuko, B.; Pratiwi, F.; Juliano, A.H.; Khoirani, R. Robust detection of atrial fibrillation from short-term electrocardiogram using convolutional neural networks. Futur. Gener. Comput. Syst. 2020, 113, 304–317. [Google Scholar] [CrossRef]
  9. Baloglu, U.B.; Talo, M.; Yildirim, O.; Tan, R.S.; Acharya, U.R. Classification of myocardial infarction with multi-lead ECG signals and deep CNN. Pattern Recognit. Lett. 2019, 122, 23–30. [Google Scholar] [CrossRef]
  10. Vogiatzis, I.; Koulouris, E.; Ioannidis, A.; Sdogkos, E.; Pliatsika, M.; Roditis, P.; Goumenakis, M. The importance of the 15-lead versus 12-lead ECG recordings in the diagnosis and treatment of right ventricle and left ventricle posterior and lateral wall acute myocardial infarctions. Acta Inform. Medica 2019, 27, 35–39. [Google Scholar] [CrossRef] [PubMed]
  11. Brady, W.J.; Hwang, V.; Sullivan, R.; Chang, N.; Beagle, C.; Carter, C.T.; Martin, M.L.; Aufderheide, T.P. A comparison of 12- and 15-lead ECGs in ED chest pain patients: Impact on diagnosis, therapy, and disposition. Am. J. Emerg. Med. 2000, 18, 239–243. [Google Scholar] [CrossRef]
  12. Syndrome, A.C. Evaluation of ST segment deviation on 15-lead ECG in patients with Acute Coronary Syndrome (ACS). J. Adv. Sin Madical Biomadical Res. 2006, 14, 32–39. [Google Scholar]
  13. Zhang, Q.; Zhang, M.; Chen, T.; Sun, Z.; Ma, Y.; Yu, B. Recent Advances in Convolutional Neural Network Acceleration. Neurocomputing 2019, 323, 37–51. [Google Scholar] [CrossRef] [Green Version]
  14. Koushik, J. Understanding Convolutional Neural Networks. arXiv 2016, arXiv:1605.09081. [Google Scholar]
  15. Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [Green Version]
  16. Kumar, M.; Pachori, R.B.; Acharya, U.R. Automated diagnosis of myocardial infarction ECG signals using sample entropy in flexible analytic wavelet transform framework. Entropy 2017, 19, 488. [Google Scholar] [CrossRef]
  17. Wang, J.; Ye, Y.; Pan, X.; Gao, X. Biomedical Signal Processing and Control Parallel-type fractional zero-phase filtering for ECG signal denoising. Biomed. Signal Process. Control 2015, 18, 36–41. [Google Scholar] [CrossRef]
  18. Qin, Q.; Li, J.; Zhang, L.; Yue, Y.; Liu, C. Combining Low-dimensional Wavelet Features and Support Vector Machine for Arrhythmia Beat Classification. Sci. Rep. 2017, 7, 6067. [Google Scholar] [CrossRef] [Green Version]
  19. Acharya, U.R.; Fujita, H.; Sudarshan, V.K.; Oh, S.L.; Adam, M.; Koh, J.E.W.; Tan, J.H.; Ghista, D.N.; Martis, R.J.; Chua, C.K.; et al. Automated detection and localization of myocardial infarction using electrocardiogram: A comparative study of different leads. Knowl.-Based Syst. 2016, 99, 146–156. [Google Scholar] [CrossRef]
  20. Dohare, A.K.; Kumar, V.; Kumar, R. Detection of myocardial infarction in 12 lead ECG using support vector machine. Appl. Soft Comput. J. 2018, 64, 138–147. [Google Scholar] [CrossRef]
  21. Han, C.; Shi, L. ML—ResNet: A novel network to detect and locate myocardial infarction using 12 leads ECG. Comput. Methods Programs Biomed. 2020, 185, 105138. [Google Scholar] [CrossRef] [PubMed]
  22. Dey, M.; Omar, N.; Ullah, M.A. Temporal Feature-Based Classification into Myocardial Infarction and Other CVDs Merging CNN and Bi-LSTM from ECG Signal. IEEE Sens. J. 2021, 21, 21688–21695. [Google Scholar] [CrossRef]
  23. Li, W.; Tang, Y.M.; Yu, K.M.; To, S. SLC-GAN: An automated myocardial infarction detection model based on generative adversarial networks and convolutional neural networks with single-lead electrocardiogram synthesis. Inf. Sci. 2022, 589, 738–750. [Google Scholar] [CrossRef]
Figure 1. The proposed research methodology.
Figure 1. The proposed research methodology.
Applsci 12 05603 g001
Figure 2. 15 lead ECG signal for MI and Normal/Healthy class.
Figure 2. 15 lead ECG signal for MI and Normal/Healthy class.
Applsci 12 05603 g002
Figure 3. 10 MI and Normal classes in lead v2.
Figure 3. 10 MI and Normal classes in lead v2.
Applsci 12 05603 g003
Figure 4. 1D-CNN Architecture.
Figure 4. 1D-CNN Architecture.
Applsci 12 05603 g004
Figure 5. Graph of Training and Validation (Accuracy and Loss) for v2 leads (a) Graphics of Train Acc and Val Acc 10 class MI and Normal in lead v2; (b) Train Loss and Val Loss graphs for 10 classes MI and Normal classes in lead v2.
Figure 5. Graph of Training and Validation (Accuracy and Loss) for v2 leads (a) Graphics of Train Acc and Val Acc 10 class MI and Normal in lead v2; (b) Train Loss and Val Loss graphs for 10 classes MI and Normal classes in lead v2.
Applsci 12 05603 g005
Figure 6. Confusion Matrix 10 class MI and Normal in lead v2.
Figure 6. Confusion Matrix 10 class MI and Normal in lead v2.
Applsci 12 05603 g006
Figure 7. Boxplot Performance Result (%) in 15 ECG leads for 10 classes MI and normal.
Figure 7. Boxplot Performance Result (%) in 15 ECG leads for 10 classes MI and normal.
Applsci 12 05603 g007
Table 1. The number of beats contained in the 15 lead ECG dataset used.
Table 1. The number of beats contained in the 15 lead ECG dataset used.
Classesiiiiiiavravlavfv1v2v3v4v5v6vxvyvzTotal
A46284326421549464310350852395419525952105243508953784904535773.031
AL45133605343041433335312553385582559252974773484849803643522867.432
AS876973887155835280266667962396759540839284818502940772619145126.383
H825783897171864368057793891289848924870989328969898679988875126.347
I10,1767972701895048832619010,25710,54510,65810,68910,57910,06910,693761510,016140.813
IL67134337493158296549374564546746668465116464591168414389658588.689
IP343434343434424242424242413542574
IPL20991416192220082187117820912117219022892283212822911171186229.232
L3813833963852453823893893923913923923923923925.693
P3883962673962373893902703883923933903933883815.458
PL6326286605586606636395646556435565585276586549.255
Total46,59038,87437,19944,79841,22033,67449,37450,33350,32448,56548,13846,89849,92938,45448,537672.907
Table 2. CNN Model layer details.
Table 2. CNN Model layer details.
LayerLayer ParameterOutput Shape
Conv 1D128 × 11, Strides = 1, Input shape = (700, 1), Activation = ReLU639 × 128
MaxPooling1DPool size = 2345 × 128
DropoutRate = 0.2345 × 128
Conv 1D128 × 13, Strides = 1, Input shape = (700, 1), Activation = ReLU333 × 128
Flatten-42,624
Dense128, Activation = ReLU128
DropoutRate = 0.2128
Softmax11, Activation = Softmax11
Table 3. The accuracy of the trained CNN model on the test data.
Table 3. The accuracy of the trained CNN model on the test data.
LeadTraining AccuracyValidation AccuracyTesting Accuracy
i99.35%99.66%99.76%
Ii98.11%99.79%99.61%
iii99.80%99.77%99.83%
avr99.49%99.72%99.58%
avl99.19%99.73%99.76%
avf99.70%99.62%99.63%
v199.81%99.71%99.73%
v299.69%99.85%99.87%
v399.62%99.88%99.84%
v499.75%99.85%99.81%
v597.57%99.81%99.74%
v699.65%99.82%99.72%
vx99.79%99.85%99.81%
vy99.66%99.58%99.77%
vz98.11%99.79%99.61%
Average99.61%99.76%99.74%
Table 4. Performance result (%) 15 lead ECG.
Table 4. Performance result (%) 15 lead ECG.
LeadACC (%)SEN (%)SPE (%)PRE (%)F1-Score (%)
i99.9699.8299.9899.8299.98
ii99.9499.6299.9699.6299.96
iii99.9799.8999.9899.8999.98
avr99.9299.6799.9599.6799.95
avl99.9699.6999.9899.6999.98
avf99.9499.7599.9699.7599.96
v199.9599.6099.9799.6099.97
v299.9899.9199.9999.9199.99
v399.9799.8899.9899.8899.98
v499.9799.8699.9899.8699.98
v599.9599.8299.9799.8299.97
v699.9599.8299.9799.8299.97
vx99.9799.7699.8899.7699.88
vy99.9699.8099.9899.8099.98
vz99.9399.5299.9699.5299.96
Table 5. Performance Metrics (%) 10 MI and Normal classes.
Table 5. Performance Metrics (%) 10 MI and Normal classes.
PerformanceClass
MatricsAALASHIILIPIPLLPPL
Accuracy99.7499.4999.7499.8799.7999.67100.0099.7999.8999.9099.76
Sensitivity99.6999.3899.8399.9099.8399.63100.0099.8099.8799.8099.64
Specificity99.9799.9699.9299.9699.9499.96100.0099.99100.00100.0099.93
Precison99.7999.6699.6599.8499.7699.71100.0099.7999.72100.0099.89
F1-Score99.7499.4999.7499.8799.7999.67100.0099.7999.8999.9099.76
Table 6. Comparison of methods for detecting MI.
Table 6. Comparison of methods for detecting MI.
No.StudyYearLead/ClassClassifierAcc. Rate
1.Acharya et al. [19]201612 lead, Normal and MIKNN98.74%
2.Kumar et al. [16]201812 lead, Normal and MILS-SVM99.31%
3.Dohare at al [20]201812 lead, Normal and MISVM98.33%
4.Baloglu et al. [9]201912 lead, Normal and 10 MIEnd to end, CNN99.78%
5.Han et al. [21]201912 lead, Normal and 6 MI classML–ResNet99.72%
6.Dey et al. [22]202112 lead, Normal, MI dan Non MICNN and biLSTM99.246%
7.Yadav et al. [4]202112 lead, Normal and MICNN99.82%
8.Li et al. [23]2022MI dan HealtySLC-GAN99.06%
9.Proposed202215 lead, Normal and 10 MI class1D-CNN99.98%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mirza, A.H.; Nurmaini, S.; Partan, R.U. Automatic Classification of 15 Leads ECG Signal of Myocardial Infarction Using One Dimension Convolutional Neural Network. Appl. Sci. 2022, 12, 5603. https://doi.org/10.3390/app12115603

AMA Style

Mirza AH, Nurmaini S, Partan RU. Automatic Classification of 15 Leads ECG Signal of Myocardial Infarction Using One Dimension Convolutional Neural Network. Applied Sciences. 2022; 12(11):5603. https://doi.org/10.3390/app12115603

Chicago/Turabian Style

Mirza, Ahmad Haidar, Siti Nurmaini, and Radiyati Umi Partan. 2022. "Automatic Classification of 15 Leads ECG Signal of Myocardial Infarction Using One Dimension Convolutional Neural Network" Applied Sciences 12, no. 11: 5603. https://doi.org/10.3390/app12115603

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

Article Metrics

Back to TopTop