{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,28]],"date-time":"2025-11-28T17:30:44Z","timestamp":1764351044371,"version":"build-2065373602"},"reference-count":37,"publisher":"MDPI AG","issue":"11","license":[{"start":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T00:00:00Z","timestamp":1761091200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100019286","name":"Artificial Intelligence Research Center (AIRC), College of Engineering and Information Technology, Ajman University","doi-asserted-by":"publisher","award":["2024-IRG-ENIT-17"],"award-info":[{"award-number":["2024-IRG-ENIT-17"]}],"id":[{"id":"10.13039\/501100019286","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Algorithms"],"abstract":"<jats:p>The electrocardiogram (ECG) is a vital diagnostic tool used to monitor heart activity and detect cardiac abnormalities, such as arrhythmias. Accurate classification of normal and abnormal heartbeats is essential for effective diagnosis and treatment. Traditional deep learning methods for automated ECG classification primarily focus on reconstructing the original ECG signal and detecting anomalies based on reconstruction errors, which represent abnormal features. However, these approaches struggle with unseen or underrepresented abnormalities in the training data. In addition, other methods rely on manual feature extraction, which can introduce bias and limit their adaptability to new datasets. To overcome this problem, this study proposes an end-to-end model called ECG-CBA, which integrates the convolutional neural networks (CNNs), bidirectional long short-term memory networks (Bi-LSTM), and a multi-head Attention mechanism. ECG-CBA model learns discriminative features directly from the original dataset rather than relying on feature extraction or signal reconstruction. This enables higher accuracy and reliability in detecting and classifying anomalies. The CNN extracts local spatial features from raw ECG signals, while the Bi-LSTM captures the temporal dependencies in sequential data. An attention mechanism enables the model to primarily focus on critical segments of the ECG, thereby improving classification performance. The proposed model is trained on normal and abnormal ECG signals for binary classification. The ECG-CBA model demonstrates strong performance on the ECG5000 and MIT-BIH datasets, achieving accuracies of 99.60% and 98.80%, respectively. The model surpasses traditional methods across key metrics, including sensitivity, specificity, and overall classification accuracy. This offers a robust and interpretable solution for both ECG-based anomaly detection and cardiac abnormality classification.<\/jats:p>","DOI":"10.3390\/a18110674","type":"journal-article","created":{"date-parts":[[2025,10,23]],"date-time":"2025-10-23T05:20:44Z","timestamp":1761196844000},"page":"674","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["ECG-CBA: An End-to-End Deep Learning Model for ECG Anomaly Detection Using CNN, Bi-LSTM, and Attention Mechanism"],"prefix":"10.3390","volume":"18","author":[{"given":"Khalid","family":"Ammar","sequence":"first","affiliation":[{"name":"Department of Electrical and Computer Engineering, College of Engineering and Information Technology, Artificial Intelligence Research Center, Ajman University, Ajman 346, United Arab Emirates"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1025-7868","authenticated-orcid":false,"given":"Salam","family":"Fraihat","sequence":"additional","affiliation":[{"name":"Department of Information Technology, College of Engineering and Information Technology, Artificial Intelligence Research Center, Ajman University, Ajman 346, United Arab Emirates"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9661-5354","authenticated-orcid":false,"given":"Ghazi","family":"Al-Naymat","sequence":"additional","affiliation":[{"name":"Department of Information Technology, College of Engineering and Information Technology, Artificial Intelligence Research Center, Ajman University, Ajman 346, United Arab Emirates"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4442-1865","authenticated-orcid":false,"given":"Yousef","family":"Sanjalawe","sequence":"additional","affiliation":[{"name":"Department of Information Technology, King Abdullah II School for Information Technology, The University of Jordan, Amman 11942, Jordan"}]}],"member":"1968","published-online":{"date-parts":[[2025,10,22]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Anbalagan, T., Nath, M.K., Vijayalakshmi, D., and Anbalagan, A. (2023). Analysis of various techniques for ECG signal in healthcare, past, present, and future. Biomed. Eng. Adv., 6.","DOI":"10.1016\/j.bea.2023.100089"},{"key":"ref_2","first-page":"376","article-title":"ECG signals classification: A review","volume":"5","author":"Houssein","year":"2017","journal-title":"Int. J. Intell. Eng. Inform."},{"key":"ref_3","unstructured":"Rajput, A., Patel, N.R., Bhati, R.S., Singh, A.P., and Fatima, H. (March, January 28). Anomaly Detection in ECG using Deep Learning. Proceedings of the 11th International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"103205","DOI":"10.1016\/j.ndteint.2024.103205","article-title":"Structural damage detection of switch rails using deep learning","volume":"147","author":"Liu","year":"2024","journal-title":"NDT & E Int."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"117310","DOI":"10.1016\/j.measurement.2025.117310","article-title":"A new method for long-term temperature compensation of structural health monitoring by ultrasonic guided wave","volume":"252","author":"Liu","year":"2025","journal-title":"Measurement"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Safdar, M.F., Pa\u0142ka, P., Nowak, R.M., and Faresi, A.A. (2023). A novel data augmentation approach for enhancement of ECG signal classification. Biomed. Signal Process. Control, 86.","DOI":"10.1016\/j.bspc.2023.105114"},{"key":"ref_7","unstructured":"Jiang, A., Huang, C., Cao, Q., Xu, Y., Zeng, Z., Chen, K., Zhang, Y., and Wang, Y. (2024). Anomaly Detection in Electrocardiograms: Advancing Clinical Diagnosis Through Self-Supervised Learning. arXiv."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"e215","DOI":"10.1161\/01.CIR.101.23.e215","article-title":"PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals","volume":"101","author":"Goldberger","year":"2000","journal-title":"Circulation"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Ansari, Y., Mourad, O., Qaraqe, K., and Serpedin, E. (2023). Deep learning for ECG Arrhythmia detection and classification: An overview of progress for period 2017\u20132023. Front. Physiol., 14.","DOI":"10.3389\/fphys.2023.1246746"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1109\/51.932724","article-title":"The impact of the MIT-BIH Arrhythmia Database","volume":"20","author":"Moody","year":"2001","journal-title":"IEEE Eng. Med. Biol. Mag."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"117206","DOI":"10.1016\/j.eswa.2022.117206","article-title":"Comprehensive survey of computational ECG analysis: Databases, methods and applications","volume":"203","author":"Merdjanovska","year":"2022","journal-title":"Expert Syst. Appl."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Tang, S.-N., Chen, Y.-H., Chang, Y.-W., Chen, Y.-T., and Chou, S.-H. (2023, January 25\u201328). Hybrid CNN-LSTM Network for ECG Classification and Its Software-Hardware Co-Design Approach. Proceedings of the 20th International SoC Design Conference (ISOCC), Jeju Island, Republic of Korea.","DOI":"10.1109\/ISOCC59558.2023.10396448"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Xia, Y., Xiong, Y., and Wang, K. (2023). A transformer model blended with CNN and denoising autoencoder for inter-patient ECG arrhythmia classification. Biomed. Signal Process. Control, 86.","DOI":"10.1016\/j.bspc.2023.105271"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"106484","DOI":"10.1016\/j.engappai.2023.106484","article-title":"ECG-NET: A deep LSTM autoencoder for detecting anomalous ECG","volume":"124","author":"Roy","year":"2023","journal-title":"Eng. Appl. Artif. Intell."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"102489","DOI":"10.1016\/j.artmed.2023.102489","article-title":"A novel temporal generative adversarial network for electrocardiography anomaly detection","volume":"136","author":"Qin","year":"2023","journal-title":"Artif. Intell. Med."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"389","DOI":"10.1504\/IJDMB.2019.101395","article-title":"Unsupervised representation learning and anomaly detection in ECG sequences","volume":"22","author":"Pereira","year":"2019","journal-title":"Int. J. Data Min. Bioinform."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"343","DOI":"10.1504\/IJCAT.2021.117277","article-title":"MED-NET: A novel approach to ECG anomaly detection using LSTM auto-encoders","volume":"65","author":"Dutta","year":"2021","journal-title":"Int. J. Comput. Appl. Technol."},{"key":"ref_18","first-page":"1","article-title":"Arrhythmia Classification Based on Bi-Directional Long Short-Term Memory and Multi-Task Group Method","volume":"19","author":"Munawar","year":"2023","journal-title":"Int. J. E-Collab."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"44","DOI":"10.1016\/j.bspc.2016.10.005","article-title":"DSP-based arrhythmia classification using wavelet transform and probabilistic neural network","volume":"32","year":"2017","journal-title":"Biomed. Signal Process. Control"},{"key":"ref_20","first-page":"696","article-title":"Electrocardiogram Based Arrhythmia Classification Using Long Short-Term Memory with Luong Attention Mechanism","volume":"17","author":"Mulam","year":"2024","journal-title":"Int. J. Intell. Eng. Syst."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"67","DOI":"10.31436\/iiumej.v24i2.2698","article-title":"Coronary heart disease classification using improved penguin emperor optimization-based long short term memory network","volume":"24","author":"Ramaiah","year":"2023","journal-title":"IIUM Eng. J."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Ahmed, A.A., Ali, W., Abdullah, T.A.A., and Malebary, S.J. (2023). Classifying cardiac arrhythmia from ECG signal using 1D CNN deep learning model. Mathematics, 11.","DOI":"10.3390\/math11030562"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Farag, M.M. (2023). A tiny matched filter-based CNN for inter-patient ECG classification and arrhythmia detection at the edge. Sensors, 23.","DOI":"10.3390\/s23031365"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Qi, T., Zhang, H., Zhao, H., Shen, C., and Liu, X. (2024). Research on ECG Signal Classification Based on Hybrid Residual Network. Appl. Sci., 14.","DOI":"10.3390\/app142311202"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"433","DOI":"10.5755\/j01.itc.52.2.32993","article-title":"HybDeepNet: A Hybrid Deep Learning Model for Detecting Cardiac Arrhythmia from ECG Signals","volume":"52","author":"Ram","year":"2023","journal-title":"Inf. Technol. Control"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Pham, B.-T., Le, P.T., Tai, T.-C., Hsu, Y.-C., Li, Y.-H., and Wang, J.-C. (2023). Electrocardiogram heartbeat classification for arrhythmias and myocardial infarction. Sensors, 23.","DOI":"10.3390\/s23062993"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Murat, F., Yildirim, O., Talo, M., Baloglu, U.B., Demir, Y., and Acharya, U.R. (2020). Application of deep learning techniques for heartbeats detection using ECG signals-analysis and review. Comput. Biol. Med., 120.","DOI":"10.1016\/j.compbiomed.2020.103726"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"112337","DOI":"10.1016\/j.asoc.2024.112337","article-title":"AttentivECGRU: GRU based autoencoder with attention mechanism and automated fuzzy thresholding for ECG arrhythmia detection","volume":"167","author":"Roy","year":"2024","journal-title":"Appl. Soft Comput."},{"key":"ref_29","first-page":"3571","article-title":"DDoS Attack Detection in Cloud Computing Based on Ensemble Feature Selection and Deep Learning","volume":"75","author":"Sanjalawe","year":"2023","journal-title":"Comput. Mater. Contin."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1186\/s40537-021-00444-8","article-title":"Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions","volume":"8","author":"Alzubaidi","year":"2021","journal-title":"J. Big Data"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"2586","DOI":"10.11591\/eei.v13i4.7143","article-title":"An efficient intrusion detection systems in fog computing using forward selection and BiLSTM","volume":"13","author":"Zwayed","year":"2024","journal-title":"Bull. Electr. Eng. Inform."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"53099","DOI":"10.1109\/ACCESS.2024.3384528","article-title":"Network intrusion detection method based on CNN, BiLSTM, and attention mechanism","volume":"12","author":"Dai","year":"2024","journal-title":"IEEE Access"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"1235","DOI":"10.1162\/neco_a_01199","article-title":"A review of recurrent neural networks: LSTM cells and network architectures","volume":"31","author":"Yu","year":"2019","journal-title":"Neural Comput."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"48","DOI":"10.1016\/j.neucom.2021.03.091","article-title":"A review on the attention mechanism of deep learning","volume":"452","author":"Niu","year":"2021","journal-title":"Neurocomputing"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Al-deen, H.S.S., Zeng, Z., Al-sabri, R., and Hekmat, A. (2021). An improved model for analyzing textual sentiment based on a deep neural network using multi-head attention mechanism. Appl. Syst. Innov., 4.","DOI":"10.3390\/asi4040085"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Zhao, F., Feng, F., Ye, S., Mao, Y., Chen, X., Li, Y., Ning, M., and Zhang, M. (2024). Multi-head self-attention mechanism-based global feature learning model for ASD diagnosis. Biomed. Signal Process. Control, 91.","DOI":"10.1016\/j.bspc.2024.106090"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Hassanzad, M., and Hajian-Tilaki, K. (2024). Methods of determining optimal cut-point of diagnostic biomarkers with application of clinical data in ROC analysis: An update review. BMC Med. Res. Methodol., 24.","DOI":"10.1186\/s12874-024-02198-2"}],"container-title":["Algorithms"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/11\/674\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,31]],"date-time":"2025-10-31T05:31:15Z","timestamp":1761888675000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-4893\/18\/11\/674"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,22]]},"references-count":37,"journal-issue":{"issue":"11","published-online":{"date-parts":[[2025,11]]}},"alternative-id":["a18110674"],"URL":"https:\/\/doi.org\/10.3390\/a18110674","relation":{},"ISSN":["1999-4893"],"issn-type":[{"type":"electronic","value":"1999-4893"}],"subject":[],"published":{"date-parts":[[2025,10,22]]}}}