Klasifikasi Aritmia Berbasis Model Hybrid Convolutional Neural Network dan Transformer dengan Implementasi Berbasis Web
Abstract
Cardiac arrhythmia is a heart rhythm disorder that can trigger serious cardiovascular conditions and significantly increase the risk of sudden cardiac death. Conventional arrhythmia detection processes still rely on the manual interpretation of electrocardiogram (ECG) signals by medical experts, which necessitates high precision and is time-consuming. Advancements in artificial intelligence, particularly in Deep Learning, have paved the way for the development of faster and more consistent automated detection systems. This study proposes an arrhythmia classification model based on a hybrid architecture combining Convolutional Neural Networks (CNN) and Transformers. The CNN is utilized to extract spatial features from ECG signals, while the Transformer functions to capture temporal patterns within the signal sequences. The MIT-BIH Arrhythmia Database was employed for training and validation, encompassing five heartbeat classes: Normal, Supraventricular, Ventricular, Fusion, and Unknown beats. Experimental results demonstrate that the model achieved a validation accuracy of 98%, accompanied by balanced precision, recall, and F1-scores for the majority class. Furthermore, the model demonstrated robustness in detecting critical minority classes, achieving a sensitivity (recall) of 93.7% for Ventricular beats and 57.1% for Supraventricular beats. This model was subsequently implemented into a web-based system to enable real-time and flexible ECG signal analysis. These findings indicate that the integration of CNN and Transformer effectively enhances arrhythmia detection accuracy, not only for majority classes but also for rare pathological classes.
Downloads
References
Alghieth, M. (2025). DeepECG-Net : a hybrid transformer-based deep learning model for real-time ECG anomaly detection. Scientific Reports, 15(1), 20714. https://doi.org/10.1038/s41598-025-07781-1
Ansari, Y., Mourad, O., Qaraqe, K., & Serpedin, E. (2023). Deep learning for ECG Arrhythmia detection and classification: an overview of progress for period 2017–2023. Frontiers in Physiology, 14(September). https://doi.org/10.3389/fphys.2023.1246746
Bai, X., Dong, X., Li, Y., Liu, R., & Zhang, H. (2024). A hybrid deep learning network for automatic diagnosis of cardiac arrhythmia based on 12-lead ECG. Scientific Reports, 14(1), 2441. https://doi.org/10.1038/s41598-024-75531-w
Chandra, E., & Suwanto, D. (2021). Deteksi Dini untuk Mencegah Kematian Mendadak Akibat Aritmia. Cermin Dunia Kedokteran, 48(6), 303–306. https://doi.org/10.55175/cdk.v48i6.1429
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research, 16(2), 321–357. https://doi.org/10.1613/jair.953
Cheng, X., Yi, J., & Peng, G. (2025). Cardiac Classification with Multi-Scale Convolutional Neural Network From Paper ECG. MedRxiv, 1–7. https://doi.org/10.1101/2025.10.05.25337357
Fajar, M., & Nugraha, Z. (2023). Deteksi Aritmia Menggunakan Algoritma Deep Neural Network ( Dnn ) Pada Sinyal Elektrokardiogram. EProceedings …, 10(5), 4155–4158. Retrieved from https://openlibrarypublications.telkomuniversity.ac.id/index.php/engineering/article/download/21141/20704
Hao, R., Xiang, Y., Du, J., He, Q., Hu, J., & Xu, T. (2025). A Hybrid CNN-Transformer Model for Heart Disease Prediction Using Life History Data. ArXiv Preprint ArXiv:2503.02124. https://doi.org/10.48550/arXiv.2503.02124
Ikram, S., Ikram, A., Singh, H., Ali Awan, M. D., Naveed, S., la Torre Díez, I., … Candelaria Chio Montero, T. (2025). Transformer-based ECG classification for early detection of cardiac arrhythmias. Frontiers in Medicine, 12(August), 1–17. https://doi.org/10.3389/fmed.2025.1600855
Insan, Khotimah, K., Yudistira, F., & Ardiansyah, M. (2024). Efisiensi Deep learning untuk Analisis Data dan Pengambilan Keputusan. Jurnal Insan Peduli Pendidikan (JIPENDIK), 2(2), 79–82. Retrieved from https://ejournal.lppinpest.org/index.php/jipendik/article/view/146
Kim, D., Lee, K. R., Lim, D. S., Lee, K. H., Lee, J. S., Kim, D. Y., & Sohn, C. B. (2025). A novel hybrid CNN-transformer model for arrhythmia detection without R-peak identification using stockwell transform. Scientific Reports, 15(1), 1–11. https://doi.org/10.1038/s41598-025-92582-9
Lamba, S., Kumar, S., & Diwakar, M. (2025). FADLEC: feature extraction and arrhythmia classification using deep learning from electrocardiograph signals. Discover Artificial Intelligence, 5(1), 82. https://doi.org/10.1007/s44163-025-00290-0
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), 1–26. https://doi.org/10.3390/bioengineering9040152
Mienye, I. D., & Swart, T. G. (2024). A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications. Information, 15(12), 755. https://doi.org/10.3390/info15120755
Narendra, D. P., Sakti Pramukantoro, E., & Amron, K. (2025). Studi Implementasi Skalabilitas Pada Sistem Inferensi Data Elektrokardiogram Berbasis Cloud. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 9(1). Retrieved from https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/14339
Putra, B. W., Isnanto, R. F. I., Sari, P., Saputra, A., Sanjaya, M. R., & Mukti, A. N. S. (2021). Klasifikasi arritmia pada sinyal EKG menggunakan deep neural network. JUPITER: Jurnal Penelitian Ilmu Dan Teknologi Komputer, 13(1), 29–38. Retrieved from https://jurnal.polsri.ac.id/index.php/jupiter/article/view/3245
Rangga Wahyu Pratama, Paskah Abadi Simanullang, Peter Tymoty Hutabarat, Revidamurti Daulay, & Adidtya Perdana. (2025). Rancang Bangun Website Pengelolaan Buku Digital Berbasis Natural Language Processing (Nlp). Jurnal Teknologi Informasi Dan Komputer, 11(1), 102–113. https://doi.org/10.36002/jutik.v11i1.3755
Ratna Lestari Budiani Buana, & Imroatul Hudati. (2022). Review: Analisis Fitur Deteksi Aritmia dan Metode Deep Learning untuk Wearable Devices. Jurnal Nasional Teknik Elektro Dan Teknologi Informasi, 11(1), 61–69. https://doi.org/10.22146/jnteti.v11i1.3381
Sibarani, R. I., Pasaribula, L. A., Maduwu, T. S. P., Panggabean, D. S., & Aisyah, S. (2025). A Sistem Elektrokardiogram Berbasis Kecerdasan Buatan Untuk Deteksi Dini Aritmia Menggunakan Algoritma Deep Learning. Jurnal Sistem Informasi Dan Ilmu Komputer, 9(1), 101–109. Retrieved from https://jurnal.unprimdn.ac.id/index.php/jusikom/article/view/7329
Silva, G., Silva, P., Moreira, G., Freitas, V., Gertrudes, J., & Luz, E. (2025). A Systematic Review of ECG Arrhythmia Classification: Adherence to Standards, Fair Evaluation, and Embedded Feasibility, 1–32. Retrieved from http://arxiv.org/abs/2503.07276
Wu, Z., & Guo, C. (2025). Deep learning and electrocardiography: systematic review of current techniques in cardiovascular disease diagnosis and management. BioMedical Engineering Online, 24(1), 23. https://doi.org/10.1186/s12938-025-01349-w
Zhou, F., & Fang, D. (2024). Multimodal ECG heartbeat classification method based on a convolutional neural network embedded with FCA. Scientific Reports, 14(1), 1–10. https://doi.org/10.1038/s41598-024-59311-0
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Aritmia Berbasis Model Hybrid Convolutional Neural Network dan Transformer dengan Implementasi Berbasis Web
Pages: 1025-1036
Copyright (c) 2025 Jibril Muhammad Arief, Cahyono Budy Santoso

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













