Background: Electrocardiogram (ECG) is a method of recording the electrical activity of the heart and provides a diagnostic mean for heart-related diseases. An arrhythmia is any irregularity of heartbeat that causes an abnormality in one’s heart rhythm. Early detection of arrhythmia has great importance to prevent many diseases. Manual analysis of ECG signal is not sufficient for quickly identifying arrhythmias that may cause sudden deaths. Hence, many studies have been presented to developed computer-aided diagnosis (CAD) systems to automatically identify arrhythmias.
Methods: This paper proposes a novel deep learning approach to identify arrhythmias in ECG signals. The signals are obtained from MIT-BIH arrhythmia database and are categorized according to five arrhythmia types. The proposed approach identifies arrhythmia classes by using Convolutional Neural Network (CNN) architecture trained by two-dimensional (2D) ECG beat images. CNN architecture is selected due to high image recognition performance. ECG signals are segmented into heartbeats, then each heartbeat is transformed into a 2D grayscale image. The heartbeat images are used as input for the CNN.
Results: The proposed CNN model is compared to other common CNN architectures such as LeNet and ResNet-50 to evaluate the performance of our study. Overall, the proposed study achieved 99.7% test accuracy in the classification of five different ECG arrhythmias.
Conclusions: Testing results demonstrate that CNN trained by ECG image representations provide outstanding classification performance of arrhythmic ECG signals and outperforms similar network architectures. Hence, the proposed approach provides a robust method for the classification of ECG arrhythmias.