Open Access Open Access  Restricted Access Subscription Access

Smart ECG Analysis and Heart Condition Detection Using AI

Dr G S Biradar, Mahadevappa Patil, Bhimashankar H, Ankit Kamnalli, Chandrashekhar Mahagonkar

Abstract


Cardiovascular diseases (CVDs) remain the leading cause of mortality worldwide, accounting for an estimated 17.9 million deaths annually. Electrocardiography (ECG) is a non-invasive and widely utilized diagnostic tool for detecting cardiac abnormalities. However, manual interpretation of ECG signals is time-consuming and prone to error. In this study, we propose a deep learning–based framework for automated ECG analysis and heart condition detection.Utilizing the large-scale PTB-XL 12-lead ECG dataset, we apply essential preprocessing steps including bandpass filtering and baseline drift correction to enhance signal quality. Our architecture integrates a one dimensional convolutional neural network (1D-CNN) for morphological feature extraction with a bidirectional long short-term memory (BiLSTM) network to capture temporal dependencies. Additionally, patient demographic information (age and sex) is incorporated through a parallel input branch to improve classification robustness.The model is trained using categorical cross-entropy loss across five diagnostic classes: normal, myocardial infarction, ST/T abnormalities, conduction disturbances, and hypertrophy. Stratified data splitting into training, validation, and test sets ensures balanced evaluation. The final model achieved a test accuracy of approximately 77.9%, with class-wise F1-scores ranging from 0.70 to 0.80, indicating reliable detection across diagnostic categories. A confusion matrix highlights misclassifications, particularly among classes with overlapping waveform characteristics.This AI-enhanced ECG interpretation system offers a consistent, scalable solution for preliminary cardiac screening, with strong potential for deployment in telehealth and resource-constrained environments to support early diagnosis and intervention.

Full Text:

PDF

References


P. Wagner, N. Strodthoff, R. D. Bousseljot et al., PTB-XL, a large publicly available electrocardiography dataset,‖ Scientific Data, vol. 7, art. no. 154, 2020.

M. Wasimuddin, K. Elleithy, S. Abuzneid, M. Faezipour, and O. Abuzaghleh, Stages-based ECG signal analysis from traditional signal processing to machine learning approaches: A survey,‖ IEEE Access, vol. 8, pp. 177782–177803, 2020.

S. U. Sumalatha, K. K. Prakasha, S. Prabhu, and V. C. Nayak, Deep learning applications in ECG analysis and disease detection: An investigation study of recent advances,‖ IEEE Access, to appear, 2024.

S. Aziz, S. Ahmed, and M.-S. Alouini, ECG-based machine- learning algorithms for heartbeat classification,‖ Scientific Reports, vol. 11, art. no. 18738, 2021.


Refbacks

  • There are currently no refbacks.