Next Article in Journal
Nanomaterials in Scaffolds for Periodontal Tissue Engineering: Frontiers and Prospects
Next Article in Special Issue
Lightweight End-to-End Deep Learning Solution for Estimating the Respiration Rate from Photoplethysmogram Signal
Previous Article in Journal
Japanese Knotweed Rhizome Bark Extract Inhibits Live SARS-CoV-2 In Vitro
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

End-to-End Convolutional Neural Network Model to Detect and Localize Myocardial Infarction Using 12-Lead ECG Images without Preprocessing

1
Division of Information and Electronic Engineering, Muroran Institute of Technology, 27-1, Mizumoto-cho, Muroran 050-8585, Hokkaido, Japan
2
College of Information and Systems, Muroran Institute of Technology, 27-1, Mizumoto-cho, Muroran 050-8585, Hokkaido, Japan
*
Author to whom correspondence should be addressed.
Bioengineering 2022, 9(9), 430; https://doi.org/10.3390/bioengineering9090430
Submission received: 2 August 2022 / Revised: 23 August 2022 / Accepted: 29 August 2022 / Published: 1 September 2022
(This article belongs to the Special Issue Advances of Biomedical Signal Processing)

Abstract

:
In recent years, many studies have proposed automatic detection and localization techniques for myocardial infarction (MI) using the 12-lead electrocardiogram (ECG). Most of them applied preprocessing to the ECG signals, e.g., noise removal, trend removal, beat segmentation, and feature selection, followed by model construction and classification based on machine-learning algorithms. The selection and implementation of preprocessing methods require specialized knowledge and experience to handle ECG data. In this paper, we propose an end-to-end convolutional neural network model that detects and localizes MI without such complicated multistep preprocessing. The proposed model executes comprehensive learning for the waveform features of unpreprocessed raw ECG images captured from 12-lead ECG signals. We evaluated the classification performance of the proposed model in two experimental settings: ten-fold cross-validation where ECG images were split randomly, and two-fold cross-validation where ECG images were split into one patient and the other patients. The experimental results demonstrate that the proposed model obtained MI detection accuracies of 99.82% and 93.93% and MI localization accuracies of 99.28% and 69.27% in the first and second settings, respectively. The performance of the proposed method is higher than or comparable to that of existing state-of-the-art methods. Thus, the proposed model is expected to be an effective MI diagnosis tool that can be used in intensive care units and as wearable technology.

Graphical Abstract

1. Introduction

Myocardial infarction (MI) is a heart disease that causes necrosis of the myocardium due to obstruction of the coronary arteries [1,2] and is still associated with substantial morbidity and mortality. Necrosis of the myocardium is irreversible; thus, early diagnosis and appropriate treatment of MI are essential. The 12-lead electrocardiogram (ECG), which records cardiac electrical activity from 12 sites on the body, is widely used to diagnose MI [3]. The site of MI is diagnosed by observing and assessing the waveforms of the ECG signal in each lead and combinations of leads exhibiting abnormalities [4,5,6]. Typically, an MI diagnosis by visual observation of a 12-lead ECG requires both significant time and specialized experience.
To date, many research groups have attempted to predict the prognosis from ECG progression in patients with MI [7,8,9]. In these studies, the prognostic prediction was performed using parameter values calculated from ECG signals. However, the appropriate parameters needed to be identified by trial and error based on researchers’ experience and knowledge from a large number of combinations of statistics or feature values. Thus, effective AI-based approaches such as data mining and machine learning are needed in this research area to automatically discover ideal parameters [8].
In contrast, in recent years, many AI-based methods have been proposed to automatically detect and localize MI using ECG data [10,11,12,13,14,15,16,17]. Most of these methods handled ECG data as time-series data and involved complicated preprocessing techniques, e.g., noise reduction, trend removal, beat segmentation, and feature selection. Typically, preprocessing methods involve direct modifications of the ECG data; thus, the performance of the preprocessing methods can directly affect the MI detection and localization performance. In contrast, Jun et al. [18] employed two-dimensional ECG images as the training and testing data to classify arrhythmias using a convolutional neural network (CNN), which is a deep-learning technique. They demonstrated that arrhythmia can be classified with high accuracy without preprocessing, and that the use of ECG images reduced the effect of noise in the ECG signals.
Thus, in this paper, we propose an end-to-end CNN model to detect and localize MI using only ECG images captured from ECG signals without preprocessing. This study was motivated by the work of Jun et al. [18]; however, in the model proposed by Jun et al., the training and classification of the ECG images were performed using only a single-lead ECG signal. However, MI requires the comprehensive assessment of 12-lead ECG signals; thus, it is necessary to extend this model to handle 12-lead ECG images.
Our primary contributions are summarized as follows. First, as in the study by Jun et al. [18], ECG images acquired from ECG signals are used directly as both the training and testing data; thus, we eliminate the need for complicated multistep preprocessing techniques, noise reduction, trend removal, beat segmentation, and feature selection. This simplifies the model, reduces the effect of noise on the ECG signals, and enables quick diagnosis in actual medical practice. Second, the proposed model enables the comprehensive training and classification of 12 sets of ECG images obtained from each lead; thus, diagnoses similar to those of medical professionals can be realized.
The remainder of this paper is organized as follows. Section 2 describes the construction method of the proposed model. Section 3 describes the experimental methodologies, and Section 4 presents the experimental results. Section 5 discusses the observations. Finally, Section 6 concludes the paper, including suggestions for potential future work.

2. Materials and Methods

2.1. Datasets

In this study, we used 12-lead ECG data from 175 subjects (51 normal subjects and 124 MI patients) collected from the PhysioBank (PTB Diagnostic ECG Database) open access database [19,20]. MI is classified into ST elevation MI (STEMI) and non-ST elevation MI (NSTEMI) based on ECG findings. However, the PhysioBank did not provide information regarding whether the ECG data corresponded to STEMI or NSTEMI. Thus, we collected ECG data for MI as exhaustively as possible without distinguishing between STEMI and NSTEMI. Note that 12-lead ECG data with waveforms deformed by artifacts or those that included arrhythmia were excluded.

2.2. Methods

We employed image-converted ECG signals as the training and testing data for the CNN. The proposed method comprises two steps, i.e., (1) ECG image generation, and (2) CNN model construction and classification. Detailed explanations of each step are given in the following.

2.2.1. ECG Image Generation

Figure 1 illustrates how ECG images were created from the 12-lead ECG data. First, a subsequence of W milliseconds was taken from the beginning of the ECG data. Next, it was converted to a grayscale image with 256 levels consisting of 64 × 64 pixels in order to express oblique lines and curves smoothly, i.e., to reduce aliasing. This operation was performed on the ECG data acquired by each of the 12 leads. In this paper, the 12 ECG images obtained in this manner are referred to as an ECG image set. This process was repeated via window shifting in increments of W milliseconds toward the terminal direction of the ECG data. Here, W was set to 1000 milliseconds because the average ECG beat in a resting condition is 1 beat/second. The ECG image sets were collected from a normal class and 10 classes of different infarction sites. Table 1 lists the details of the ECG image sets obtained from the 11 classes.

2.2.2. CNN Model Construction and Classification

A CNN is a deep-learning technique that has been used successfully in various tasks, e.g., image recognition and speech recognition [21]. Feature extraction with a CNN is performed by repeating the combination of the convolution layer and pooling layer multiple times [22,23]. The feature maps extracted from the final convolution and pooling layer are converted to a vector and inputted into a fully connected layer to classify the input data [24]. One advantage of CNNs is the high degree of translation invariance, i.e., the ability to identify a particular object in an image even if its position in the image changes [25].
The proposed CNN model is unique in that it separately learns the characteristics of the ECG image in each lead using the convolution and pooling layers. Figure 2 and Table 2 show the architecture of the proposed CNN model and the details of the structure, respectively. Here, the input to the proposed model is the ECG image set. First, feature extraction is performed on the ECG image of each lead using the convolution and pooling layers. Then, the features extracted from each lead are unified and inputted into the fully connected layer, which realizes comprehensive learning of the 12-lead ECG images. Finally, the vector output from the fully connected layer is converted to a probability vector using the SoftMax function. In the model-training process, the cross-entropy error is calculated between the probability vector and a one-hot vector corresponding to the true label, and the weights and bias are updated using the backpropagation process. In the model-testing process, i.e., the classification test, the proposed model outputs a class label corresponding to the maximum elements in the probability vector generated from the SoftMax function.
As described in the previous section, ECG images are obtained via window shifting in the ECG signal. Thus, the ECG beats (i.e., waveforms comprising P, Q, R, S, and T waves) are not always fixed at a particular position in the image. However, the proposed CNN model allows us to capture the features of the beats at different locations according to the translation invariance in the CNN.

3. Experiments

3.1. Experimental Setup

In this study, cross-validation experiments were conducted to evaluate the classification performance of the proposed CNN model. These experiments were performed under the following two settings.
  • Setting 1:
In the first experiment, ten-fold cross-validation was conducted, where the ECG image sets of each class were divided equally and randomly. In this setting, we allowed the ECG image sets derived from the same subject (i.e., a normal subject or patient) to be included in both the training and testing data. Note that this is the experimental setting considered in most previous studies.
  • Setting 2:
In the second experiment, two-fold cross-validation was conducted, where the data for one patient were used for testing, and the data for all other subjects were used for training. Liu et al. stated that a classifier based on fixed training data may misclassify new patients because ECG data frequently exhibit different characteristics depending on the patients [26]. In fact, it is extremely rare that the ECG data of a patient to be diagnosed exist in the training data. Thus, this experimental setting allowed us to evaluate the performance from a practical perspective.
In Setting 1, we performed binary classification of the normal and MI class, as well as multiclass classification of the normal class and the 10 classes of different infarction sites. In Setting 2, it was necessary to divide the ECG image sets for each patient. Thus, we excluded the class with only one patient and used the remaining eight classes (i.e., the normal class and seven infarction site classes).

3.2. Evaluation Indices

The classification performance was evaluated using the following indices.
S e n s i t i v i t y = T P T P + F N ,
S p e c i f i c i t y = T N T N + F P ,
A c c u r a c y = T P + T N T P + F P + T N + F N ,
Here, T P   T N , F P , and F N indicate the number of true positives, true negatives, false positives, and false negatives, respectively.

4. Experimental Results

4.1. Classification Results for Setting 1

4.1.1. MI Detection Results

Table 3 shows the confusion matrix obtained via binary classification between the normal class and the MI class, and Table 4 shows the scores for each index calculated from the classification results. As can be seen, binary classification was achieved with high accuracy. These results demonstrate that there were clear differences in the features of the ECG images between the two classes and that the proposed CNN model could extract features that were effective for the discrimination of the two classes from the ECG images of each lead.

4.1.2. MI Localization Results

Table 5 summarizes the confusion matrix for the MI localization and classification accuracy for each class. As can be seen, all infarction sites and the normal class were classified with high accuracy. However, the misclassification percentage of the normal class increased compared to the binary classification. In addition, misclassifications were scattered among different infarction sites, especially anterior wall infarction (A, AL, and AS) and inferior wall infarction (I and IL). These misclassifications were due to the fact that the decision boundary became complicated by the increased number of classes.

4.2. Classification Results for Setting 2

4.2.1. MI Detection Results

Table 6 shows the confusion matrix obtained by the binary classification between the normal and MI classes, and Table 7 shows the scores for each index calculated from the classification results. Compared to the results obtained in Setting 1, there was a significant decrease in the specificity score, i.e., in many cases, a normal ECG was misclassified as the MI class. This may have been due to the imbalance in the class distribution within the training data. In fact, the number of ECG image sets in all the MI classes was approximately four times greater than that of the normal class.

4.2.2. MI Localization Results

Table 8 summarizes the confusion matrix for the MI localization and the classification accuracy for each class. As can be seen, the overall accuracy was 0.6927, which is significantly less than that of Setting 1. This indicates that the characteristics of the ECG signals differ more or less between different patients (even for the same infarction site).

5. Discussion

5.1. Results of Setting 1

As shown in Table 9, the proposed model exhibited performance that is comparable to that of state-of-the-art methods. Note that the proposed method obtained such results despite the simple approach of learning ECG images obtained via window shifting. However, the proposed model also demonstrated a serious drawback. The proposed method extracts ECG images by shifting from the start to the end of the ECG signal using a fixed window width. Thus, these images may contain ECG waveforms exhibiting both the characteristics of individual classes and unclear characteristics. Such ECG waveforms can have a negative impact on the model’s training and testing processes. Therefore, we investigated ECG waveforms that caused misclassification, and we found that misclassified ECG waveforms fall into four major patterns: (1) ECG waveforms with strong noise; (2) ECG waveforms with strong trend; (3) ECG waveforms with two beats; and (4) ECG waveforms with most of the beat missing. Each pattern is illustrated in Figure 3a–d. First, we discuss Figure 3a,b. We expected that the influence of noise and trends could be reduced by imaging the ECG signal with a smaller window width; however, in reality, the ECG images with strong noise and trends were generated, and such ECG images can cause a reduction in classification performance. A possible solution to this problem is to incorporate residual blocks [27] and an attention mechanism [28] into the model. This would enhance the noise-reduction performance of the model [29] and realize the dynamic identification of waveform regions to focus on. Thus, the noise and trend in the ECG signal can be reduced. Next, we discuss Figure 3c,d. In this study, the window width was fixed at 1000 milliseconds; thus, individual differences in heart rate could cause duplicating and missing waveforms in a single ECG image. Such ECG images also cause a reduction in classification performance. This problem can be addressed by calculating the heart rate when imaging the ECG signal and dynamically switching the window width depending on the individual patient.

5.2. Results of Setting 2

In Setting 1, we allowed ECG images derived from the same subject to be included in both the training and testing data. Thus, as shown in Table 9, many existing methods (including the model proposed in this paper) have obtained very high classification accuracy. However, in Setting 2, the subjects used in the training and testing data were separated completely; thus, classification was more difficult in Setting 2 than in Setting 1. To date, several studies have conducted experiments similar to Setting 2 of this study. Table 10 compares the results of the current study and those of previous studies based on deep-learning algorithms. As can be seen, the scores are quite low for all techniques compared those of Setting 1 in this study. Typically, ECG abnormalities in MI vary according to the location of the infarction and various other factors, e.g., individual differences, progression, and the measurement environment. Thus, it is difficult to comprehensively learn the characteristics of the ECG waveform for all MI types. In the medical field, data from patients not included in the training data will be inputted; thus, it is necessary to increase the training data of MI patients as much as possible to construct a model with sufficiently high generalizability.
Table 10 shows that the proposed model obtained the highest sensitivity score in terms of MI detection. This means that the proposed model identified MI most accurately among all the compared methods. However, the specificity of the proposed model was considerably less than that of the other methods. This means that the proposed model misclassified normal ECGs as MI classes in more cases than the compared methods. This was due to the imbalance in the class distribution within the training data, as mentioned in Section 4.2.1. In addition, this imbalance increases the likelihood that the normal ECG images with unclear characteristics, e.g., those shown in Section 5.1, will be misclassified as the MI class. This problem can be addressed by increasing the number of normal ECG images to the same extent as that of the MI class.
In the MI localization task, the proposed model obtained the highest scores for all indices. The existing methods employed five classes of the infarction sites, whereas seven classes of infarction sites were considered in the current study. Note that the proposed model demonstrated more accurate results despite the use of additional classes. In addition, the proposed model obtained state-of-the-art performance even when raw ECG images without preprocessing were used as both the training and testing data.

5.3. Study Advantages and Limitations

The primary advantages of the proposed model are summarized as follows.
  • The proposed model does not require complicated preprocessing, e.g., noise reduction, trend removal, beat segmentation, and feature selection.
  • With the proposed model, it is possible to detect and localize MI by comprehensively checking the characteristics of the ECG images for each lead (similar to the diagnoses of medical professionals).
The primary limitations of the proposed model are summarized as follows.
  • It is possible to misclassify ECG images with extremely strong noise and trends.
  • It is possible to misclassify ECG images with multiple beats or ECG images with most of the beats missing.

5.4. Discussion for Practical Application of the Model

Here, we discuss important issues to be addressed and validated for the practical application of the model in the medical field. There are three main issues. The first issue concerns the number of subjects used in the proposed model. In this study, we collected ECG data of MI patients for each infarction site as exhaustively as possible from the PhysioBank database. However, for some infarction sites, ECG data from only one or two patients were used as shown in Table 1. This is not a sufficient number of patients. Thus, it may lead to overfitting in the model by using only biased cases as well as poor classification performance due to the class imbalance problem. To improve the generalization ability of the model, the number of subjects in such minor classes needs to be further increased. The second issue concerns the explainability of the model. The proposed model outputs class labels as classification results, but cannot present information regarding diagnostic rationales, such as abnormal ECG regions that contributed to the classification. The diagnostic rationales output from the model would be important information to support the physician’s subsequent decision making. This issue can be solved using visualization techniques such as Grad-CAM [32], which can display image areas that contribute to classification. In addition, it is important to present scores based on ECG indices as proposed in the previous research [7,8,9,33]. Such scores can provide important information regarding fast triage and prognostic effects for MI patients. The third issue concerns model complexity. In general, neural network models require a large number of computational resources to process a huge number of parameters. Therefore, the use of high-performance GPU computers is essential. To realize a wide range of uses in medical practice, it is necessary to construct a simpler model that can even work on small-scale electronic devices such as smartphones and wearable terminals. To address this issue, model-compression techniques [34,35] would be an effective approach.

6. Conclusions

In this paper, we proposed an end-to-end CNN model to detect and localize MI using 12-lead ECG images captured via window shifting from ECG signals without complicated preprocessing. We found that the proposed model demonstrated a classification performance that is higher than or comparable to that of existing state-of-the-art methods. Thus, we consider that the proposed model can be used as an effective MI diagnosis tool in medical practice.
In the future, we plan to solve the two limitations stated in Section 5.3 and improve the model for practical use as discussed in Section 5.4. AI-based techniques will be able to provide scoring systems in patients with MI similar to diastolic heart failure and other diseases. We believe that a scoring system implementing an accurate MI classifier such as the proposed model would be a powerful tool for physicians to support rapid diagnosis, triage, and prognosis prediction.

Author Contributions

Conceptualization, R.U. and Y.O.; methodology, R.U. and Y.O.; software, R.U., R.K. and S.T.; validation, R.U. and Y.O.; formal analysis, R.U.; investigation, R.U.; resources, R.U.; data curation, R.U.; writing—original draft preparation, R.U. and Y.O.; writing—review and editing, R.U., Y.O., R.K. and S.T.; visualization, R.U. and R.K.; supervision, Y.O.; funding acquisition, Y.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Grant-in-Aid for Scientific Research (C) (No. 20K04999) from the Japan Society for the Promotion of Science, Japan.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. National Heart, Lung, and Blood Institute. What Is a Heart Attack? Available online: https://www.nhlbi.nih.gov/health/heart-attack (accessed on 20 May 2022).
  2. Guyton, A.C.; Hall, J.E. Textbook of Medical Physiology, 11th ed.; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
  3. Thygesen, K.; Alpert, J.S.; Jaffe, A.S.; Simoons, M.J.; Chaitman, B.R.; White, H.D.; Bax, J.J.; Baumgartner, H.; Ceconi, C.; Dean, V.; et al. Third universal definition of myocardial infarction. Circulation 2012, 126, 2020–2035. [Google Scholar] [CrossRef] [PubMed]
  4. Timmis, A.D. Will serum enzymes and other proteins find a clinical application in the early diagnosis of myocardial infarction? Br. Heart J. 1994, 71, 309–310. [Google Scholar] [CrossRef]
  5. Lewis, K.M.; Handal, K.A. Sensible Analysis of the 12 Lead ECG, 1st ed.; Delmar Pub: Delmar, NY, USA, 2000. [Google Scholar]
  6. Timmis, A.D. Early diagnosis of acute myocardial infarction. Br. Med. J. 1990, 301, 941–942. [Google Scholar] [CrossRef] [PubMed]
  7. Meloni, L.; Marchetti, M.F.; Cacace, C.; Congia, M.; Scotto, R.; Caddeo, P.; Montisci, R. Prognosis and first diagnostic ECG in STEMI patients referred to the emergency medical system for primary PCI. J. Electrocardiol. 2018, 51, 1131–1134. [Google Scholar] [CrossRef] [PubMed]
  8. Hayıroğlu, M.İ.; Türkkan, C.; Tekkeşin, A.İ. Ideal admission electrocardiographic parameters in STEMI: What else do we need to learn? J. Electrocardiol. 2020, 63, 187. [Google Scholar] [CrossRef]
  9. Hayıroğlu, M.İ.; Lakhani, I.; Tse, G.; Çınar, T.; Çinier, G.; Tekkeşin, A.İ. In-hospital prognostic value of electrocardiographic parameters other than ST-segment changes in acute myocardial infarction: Literature review and future perspectives. Heart. Lung. Circ. 2020, 29, 1603–1612. [Google Scholar] [CrossRef]
  10. Arif, M.; Malagore, I.A.; Afsar, F.A. Detection and localization of myocardial infarction using K-nearest neighbor classifier. J. Med. Syst. 2012, 36, 279–289. [Google Scholar] [CrossRef]
  11. Safdarian, N.; Dabanloo, N.J.; Attarodi, G. A new pattern recognition method for detection and localization of myocardial infarction using T-wave integral and total integral as extracted feature from one cycle of ECG signal. J. Biomed. Sci. Eng. 2014, 7, 818–824. [Google Scholar] [CrossRef]
  12. Sharma, L.N.; Tripathy, R.K.; Dandapat, S. Multiscale Energy and eigenspace approach to detection and localization of myocardial infarction. IEEE Trans. Biomed. Eng. 2015, 62, 1827–1837. [Google Scholar] [CrossRef]
  13. Acharya, U.R.; Fujita, H.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adam, M. 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]
  14. 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]
  15. Sugimoto, K.; Kon, Y.; Lee, S.; Okada, Y. Detection and localization of myocardial infarction based on a convolutional autoencoder. Knowl. Based Syst. 2019, 178, 123–131. [Google Scholar] [CrossRef]
  16. Acharya, U.R.; Fujita, H.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adam, M. Application of deep convolutional neural network for automated detection of myocardial infarction using ECG signals. Inf. Sci. 2017, 415, 190–198. [Google Scholar] [CrossRef]
  17. Cao, Y.; Liu, W.; Zhang, S.; Xu, L.; Zhu, B.; Cui, H.; Geng, N.; Greenwald, S.E. Detection and localization of myocardial infarction based on multi-scale resnet and attention mechanism. Front. Physiol. 2022, 13, 783184. [Google Scholar] [CrossRef]
  18. Jun, T.J.; Nguyen, H.M.; Kang, D.; Kim, D.; Kim, D.; Kim, Y.H. ECG arrhythmia classification using a 2-D convolutional neural network. arXiv 2018, arXiv:1804.06812. [Google Scholar]
  19. Goldberger, A.L.; Amaral, L.A.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Stanley, H.E.; Mietus, J.E.; Moody, G.B.; Peng, C.K. PhysioBank, PhysioToolkit, and Physionet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, 215–220. [Google Scholar] [CrossRef]
  20. National Institute of General Medical Sciences and National Institute of Biomedical Imaging and Bioengineering, PhysioBank. Available online: https://physionet.org/physiobank/ (accessed on 20 May 2022).
  21. Gu, J.; Wang, Z.; Kuen, J.; Ma, L.; Shahroudy, A.; Shuai, B.; Chen, T.; Liu, T.; Wang, G.; Wang, X.; et al. Recent advances in convolutional neural networks. Pattern Recognit. 2018, 77, 354–377. [Google Scholar] [CrossRef]
  22. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Proceedings of the Neural Information Processing Systems, Lake Tahoe, NV, USA, 3–6 December 2012. [Google Scholar]
  23. Boureau, Y.L.; Ponce, J.; LeCun, Y. A theoretical analysis of feature pooling in visual recognition. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), Haifa, Israel, 21–24 June 2010; pp. 111–118. [Google Scholar]
  24. LeCun, Y.; Haffner, P.; Bottou, L.; Bengio, Y. Object recognition with gradient-based learning. Lect. Notes Comput. Sci. 1999, 1681, 319–345. [Google Scholar]
  25. Dong, S.; Wang, P.; Abbas, K. A survey on deep learning and its applications. Comput. Sci. Rev. 2021, 40, 100379. [Google Scholar] [CrossRef]
  26. Liu, W.; Huang, Q.; Chang, S.; Wang, H.; He, J. Multiple-feature-branch convolutional neural network for myocardial infarction diagnosis using electrocardiogram. Biomed. Signal Process. Control 2018, 45, 22–32. [Google Scholar] [CrossRef]
  27. Remez, T.; Litany, O.; Giryes, R.; Bronstein, A.M. Class-aware fully convolutional Gaussian and Poisson denoising. IEEE Trans. Image Process. 2018, 27, 5707–5722. [Google Scholar] [CrossRef] [PubMed]
  28. Wang, F.; Jiang, M.; Qian, C.; Yang, S.; Li, C.; Zhang, H.; Wang, X.; Tang, X. Residual attention network for image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 26 July 2017; pp. 3156–3164. [Google Scholar]
  29. Pires, R.G.; Santos, D.F.; Santos, C.F.; Santana, M.C.; Papa, J.P. Image denoising using attention-residual convolutional neural networks. arXiv 2021, arXiv:2101.07713. [Google Scholar]
  30. Fu, L.; Lu, B.; Nie, B.; Peng, Z.; Liu, H.; Pi, X. Hybrid network with attention mechanism for detection and location of myocardial infarction based on 12-lead Electrocardiogram signals. Sensors 2020, 20, 1020. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Han, C.; Shi, L. MLResNet: A novel network to detect and locate myocardial infarction using 12 leads ECG. Comput. Methods Programs Biomed. 2019, 185, 105–138. [Google Scholar]
  32. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
  33. Hayıroğlu, M.İ.; Çınar, T.; Çiçek, V.; Asal, S.; Kılıç, Ş.; Keser, N.; Orhan, A.L.; Uzun, M. A simple formula to predict echocardiographic diastolic dysfunction—electrocardiographic diastolic index. Herz 2021, 46, 159–165. [Google Scholar] [CrossRef] [PubMed]
  34. Peng, P.; You, M.; Xu, W.; Li, J. Fully integer-based quantization for mobile convolutional neural network inference. Neurocomputing 2021, 432, 194–205. [Google Scholar] [CrossRef]
  35. Choudhary, T.; Mishra, V.; Goswami, A.; Sarangapani, J. Inference-aware convolutional neural network pruning. Future Gener. Comput. Syst. 2022, 135, 44–56. [Google Scholar] [CrossRef]
Figure 1. Creation of ECG image sets.
Figure 1. Creation of ECG image sets.
Bioengineering 09 00430 g001
Figure 2. Architecture of proposed CNN model.
Figure 2. Architecture of proposed CNN model.
Bioengineering 09 00430 g002
Figure 3. Misclassified ECG waveforms: (a) ECG waveform with strong noise; (b) ECG waveform with strong trend; (c) ECG waveform with two beats; and (d) ECG waveform with most of the beat missing.
Figure 3. Misclassified ECG waveforms: (a) ECG waveform with strong noise; (b) ECG waveform with strong trend; (c) ECG waveform with two beats; and (d) ECG waveform with most of the beat missing.
Bioengineering 09 00430 g003
Table 1. Details of ECG image set for each class.
Table 1. Details of ECG image set for each class.
Class (Abbreviation)Number of SubjectsNumber of ECG DataNumber of ECG Image Sets
Normal (N)51744837
Anterior (A)17472812
Anterior–Lateral (AL)14392580
Anterior–Septal (AS)27774620
Inferior (I)30875268
Inferior–Lateral (IL)23553315
Inferior–Posterior (IP)1138
Inferior–Posterior–Lateral (IPL)8191118
Lateral (L)13180
Posterior (P)14240
Posterior–Lateral (PL)25300
Total17541125,308
Table 2. Details of the structure of proposed CNN model.
Table 2. Details of the structure of proposed CNN model.
LayerNumber of Input
Nodes
Number of ECG Output
Nodes
Kernel SizeBatch
Normalization
Activation
Function
Convolution 1 64 2 4 × 62 2 3 × 3 TrueReLU
Convolution 2 4 × 62 2 8 × 60 2 3 × 3 TureReLU
Pooling 1 8 × 60 2 8 × 29 2 4 × 4 False-
Convolution 3 8 × 29 2 16 × 27 2 3 × 3 TrueReLU
Convolution 4 16 × 27 2 16 × 25 2 3 × 3 TrueReLU
Pooling 2 16 × 25 2 16 × 12 2 3 × 3 False-
Convolution 5 16 × 12 2 32 × 10 2 3 × 3 TrueReLU
Convolution 6 32 × 10 2 32 × 8 2 3 × 3 TrueReLU
Pooling 3 32 × 8 2 32 × 3 2 4 × 4 False-
The flattened vectors of the 12 leads are concatenated
Fully connected 134562048-TrueReLU
Fully connected 220481024-TrueReLU
Fully connected 3102411-FalseSoftMax
Loss functionCross-entropy loss
OptimizerAdam
Table 3. Confusion matrix for normal and MI classes in Setting 1.
Table 3. Confusion matrix for normal and MI classes in Setting 1.
Predicted Class
NMI
True ClassN482215
MI3120,440
Table 4. Classification performance of normal and MI classes in Setting 1.
Table 4. Classification performance of normal and MI classes in Setting 1.
IndexScore
Sensitivity0.9985
Specificity0.9969
Accuracy0.9982
Table 5. Confusion matrix for MI localization and classification accuracy for each class in Setting 1.
Table 5. Confusion matrix for MI localization and classification accuracy for each class in Setting 1.
Predicted Class
NAALASIILIPIPLLPPLAccuracy
True classN4818105130000000.9961
A2278231573000000.9893
AL3525511722000000.9888
AS3114459091010100.9935
I650552436021000.9953
IL1131143286090000.9913
IP0000003800001.0000
IPL001146011060000.9893
L00000000180001.0000
P10012000023600.9833
PL00012000002970.9900
Total 0.9928
Table 6. Confusion matrix for normal and MI classes in Setting 2.
Table 6. Confusion matrix for normal and MI classes in Setting 2.
Predicted Class
NMI
True ClassN37181119
MI39019,623
Table 7. Classification performance of normal and MI classes in Setting 2.
Table 7. Classification performance of normal and MI classes in Setting 2.
IndexScore
Sensitivity0.9805
Specificity0.7687
Accuracy0.9393
Table 8. Confusion matrix for MI localization and classification accuracy for each class in Setting 2.
Table 8. Confusion matrix for MI localization and classification accuracy for each class in Setting 2.
Predicted Class
NAALASIILIPLPLAccuracy
True classN401224218551513226220.8294
A91152464632917745000.5420
AL79311169232915216100.6558
AS1561407313239207145110.7011
I4711581677538764299020.7358
IL1186410113790209892300.6329
IPL16380190256622230.5564
PL13094595961500.5000
Total 0.6927
Table 9. Comparison of classification performance between proposed model and existing methods under Setting 1.
Table 9. Comparison of classification performance between proposed model and existing methods under Setting 1.
Author (Year)MethodsMI Detection ResultsMI Localization Results
Arif et al., 2012 [10]k-NNSensitivity = 99.97%Accuracy = 98.8%
Specificity = 99.9%
Safdarian et al., 2014 [11]• Probabilistic Neural Network (PNN)Accuracy = 94%Accuracy = 76%
• k-NN
• Multilayer Perceptron (MLP)
• Naive Bayes Classification
Sharma et al., 2015 [12]• SVM-LinAccuracy = 96%Accuracy = 99.58%
• SVM-RBFSensitivity = 93%
• k-NNSpecificity = 99%
Acharya et al., 2016 [13]k-NNAccuracy = 98.8%Accuracy = 98.74%
Sensitivity = 99.45%Sensitivity = 99.55%
Specificity = 96.27%Specificity = 99.16%
Baloglu et al., 2019 [14]Deep CNNN/AAccuracy = 99.78%
Sugimoto et al., 2019 [15]• Convolutional autoencoder
• k-NN
Accuracy = 99.87%Accuracy = 99.88%
Sensitivity = 99.91%Sensitivity = 99.12%
Specificity = 99.59%Specificity = 99.92%
Cao et al., 2022 [17]• SENet
• Grad-CAM
Accuracy = 99.98%Accuracy = 99.79%
Sensitivity = 99.94%Sensitivity = 99.88%
Specificity = 99.94%Specificity = 99.98%
Proposed modelCNNAccuracy = 99.82%Accuracy = 99.28%
Sensitivity = 99.85%Sensitivity = 99.21%
Specificity = 99.69%Specificity = 99.61%
Table 10. Comparison of classification performance between our method and the existing methods under Setting 2.
Table 10. Comparison of classification performance between our method and the existing methods under Setting 2.
Author (Year)MethodsMI Detection ResultsMI Localization Results
Fu et al., 2020 [30]MLA-CNN-BiGRUAccuracy = 96.50%Accuracy = 62.94%
Sensitivity = 97.10%Sensitivity = 63.97%
Specificity = 93.34%Specificity = 63.00%
Han et al., 2020 [31]ML-ResNetAccuracy = 95.49%Accuracy = 55.74%
Sensitivity = 94.85%Sensitivity = 47.58%
Specificity = 97.37%Specificity = 55.37%
Proposed modelCNNAccuracy = 93.93%Accuracy = 69.27%
Sensitivity = 98.05%Sensitivity = 65.96%
Specificity = 76.87%Specificity = 82.94%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Uchiyama, R.; Okada, Y.; Kakizaki, R.; Tomioka, S. End-to-End Convolutional Neural Network Model to Detect and Localize Myocardial Infarction Using 12-Lead ECG Images without Preprocessing. Bioengineering 2022, 9, 430. https://doi.org/10.3390/bioengineering9090430

AMA Style

Uchiyama R, Okada Y, Kakizaki R, Tomioka S. End-to-End Convolutional Neural Network Model to Detect and Localize Myocardial Infarction Using 12-Lead ECG Images without Preprocessing. Bioengineering. 2022; 9(9):430. https://doi.org/10.3390/bioengineering9090430

Chicago/Turabian Style

Uchiyama, Ryunosuke, Yoshifumi Okada, Ryuya Kakizaki, and Sekito Tomioka. 2022. "End-to-End Convolutional Neural Network Model to Detect and Localize Myocardial Infarction Using 12-Lead ECG Images without Preprocessing" Bioengineering 9, no. 9: 430. https://doi.org/10.3390/bioengineering9090430

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