Arrhythmia Classification Using CNN-SVM from ECG Spectrogram Representation

Authors

  • Abdul Daffa Fakhrudin Fakultas Informatika, Universitas Telkom, Bandung, Indonesia
  • Putu Harry Gunawan Fakultas Informatika, Universitas Telkom, Bandung, Indonesia

DOI:

https://doi.org/10.59188/eduvest.v4i12.49993

Keywords:

CNN-SVM, Spectrogram, STFT, Arrhythmia

Abstract

Arrhythmia, a critical subset of cardiovascular diseases and a leading cause of morbidity and mortality, is caused by irregular heartbeats that disrupt the normal rhythm of the heart. Detecting arrhythmias accurately is essential for timely diagnosis and treatment, which can be achieved through electrocardiogram (ECG) signals. This study presents a hybrid Convolutional Neural Network (CNN) and Support Vector Machine (SVM) model for arrhythmia classification, leveraging spectrogram representations of ECG signals. The CNN extracts spatial and temporal features from the spectrograms, while the SVM classifies five arrhythmia classes: Normal (N), Supra-ventricular premature (S), Ventricular escape (V), Fusion of ventricular and normal (F), and Unclassified (Q). Preprocessing techniques such as wavelet denoising and Short-Time Fourier Transform (STFT) were applied to improve signal quality and facilitate robust feature extraction. The proposed model was trained and evaluated on the MIT-BIH Arrhythmia Database, achieving a weighted F1-score of 0.985, demonstrating its ability to handle the imbalanced dataset effectively. Class-wise metrics highlighted high precision, recall, and F1-scores for majority classes and commendable performance for underrepresented classes, despite the inherent imbalance. These findings underscore the hybrid model's potential for arrhythmia classification by integrating the feature extraction strengths of CNNs with the precise classification capabilities of SVMs. Future research could address dataset imbalance through augmentation techniques and explore the model’s generalizability by testing on larger and more diverse datasets, paving the way for its application in real-world clinical scenarios.

References

Arpitha, Y., Madhumathi, G. L., & Balaji, N. (2022). Spectrogram analysis of ECG signal and classification efficiency using MFCC feature extraction technique. Journal of Ambient Intelligence and Humanized Computing, 13(2), 757–767. https://doi.org/10.1007/s12652-021-02926-2

Gai, N. D. (2022). ECG beat classification using machine learning and pre-trained convolutional neural networks. https://doi.org/https://doi.org/10.48550/arXiv.2207.06408

Huang, J., Chen, B., Yao, B., & He, W. (2019). ECG Arrhythmia Classification Using STFT-Based Spectrogram and Convolutional Neural Network. IEEE Access, 7, 92871–92880. https://doi.org/10.1109/ACCESS.2019.2928017

Kementerian Kesehatan Republik Indonesia. (n.d.). Penyakit Kardiovaskular. Retrieved November 5, 2024, from https://ayosehat.kemkes.go.id/topik/penyakit-kardiovaskular

Madan, P., Singh, V., Singh, D. P., Diwakar, M., Pant, B., & Kishor, A. (2022). A Hybrid Deep Learning Approach for ECG-Based Arrhythmia Classification. Bioengineering, 9(4). https://doi.org/10.3390/bioengineering9040152

Neha, Sardana, H. K., Kanwade, R., & Tewary, S. (2021). Arrhythmia detection and classification using ECG and PPG techniques: a review. In Physical and Engineering Sciences in Medicine (Vol. 44, Issue 4, pp. 1027–1048). Springer Science and Business Media Deutschland GmbH. https://doi.org/10.1007/s13246-021-01072-5

PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals,. (n.d.).

Ramos, M. Y. G., Castilla, J. S. R., & Lamont, F. G. (2021). Hybrid Algorithm of Convolutional Neural Networks and Vector Support Machines in Classification. Communications in Computer and Information Science, 1485 CCIS, 263–274. https://doi.org/10.1007/978-3-030-90241-4_21

The Impact of the MIT-BIH Arrhythmia Database. (n.d.). https://doi.org/10.1109/51.932724

Unlersen, M. F., Sonmez, M. E., Aslan, M. F., Demir, B., Aydin, N., Sabanci, K., & Ropelewska, E. (2022). CNN–SVM hybrid model for varietal classification of wheat based on bulk samples. European Food Research and Technology, 248(8), 2043–2052. https://doi.org/10.1007/s00217-022-04029-4

World Health Organization. (n.d.). Cardiovascular diseases (CVDs). Retrieved November 5, 2024, from https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds)

Downloads

Published

2024-12-24