Hybrid CNN-LSTM Architecture for Real-Time ECG Arrhythmia Classification and Early Warning in Wearable Devices.
Volume 5
Abstract
Cardiac arrhythmias are among the most common and clinically significant cardiovascular abnormalities, ranging from benign rhythm disturbances to life-threatening events such as ventricular tachycardia, ventricular fibrillation, and atrial fibrillation-related complications. Early and continuous detection of arrhythmias is essential for timely intervention, prevention of sudden cardiac events, and long-term cardiovascular monitoring. Electrocardiogram (ECG) signals provide a direct and non-invasive representation of cardiac electrical activity; however, manual ECG interpretation is time-consuming, requires specialized expertise, and may be impractical for continuous real-time monitoring in wearable healthcare environments. Although traditional machine learning approaches have achieved promising results in ECG classification, their performance is often limited by handcrafted feature extraction, signal noise, inter-patient variability, and insufficient modeling of temporal dependencies. To address these limitations, this paper proposes a hybrid Convolutional Neural Network–Long Short-Term Memory (CNN-LSTM) architecture for real-time ECG arrhythmia classification and early warning in wearable devices.
The proposed framework combines the spatial feature extraction capability of CNNs with the sequential modeling strength of LSTM networks. The CNN component automatically extracts discriminative morphological features from ECG waveforms, including P-wave characteristics, QRS complex morphology, ST-segment deviations, RR interval variability, and T-wave abnormalities. The LSTM component captures temporal dependencies across consecutive heartbeat segments, enabling the model to learn rhythm patterns and detect dynamic changes associated with arrhythmic events. The architecture is designed to classify multiple arrhythmia categories, including normal sinus rhythm, premature atrial contractions, premature ventricular contractions, atrial fibrillation, atrial flutter, supraventricular tachycardia, ventricular tachycardia, bundle branch block, and other clinically relevant rhythm abnormalities.
A comprehensive signal preprocessing pipeline is applied to wearable ECG recordings, including baseline wander removal, powerline interference filtering, noise suppression, R-peak detection, heartbeat segmentation, amplitude normalization, and artifact rejection. To improve robustness under real-world wearable conditions, the framework incorporates data augmentation techniques such as signal scaling, time shifting, Gaussian noise injection, waveform stretching, and synthetic minority oversampling to address class imbalance among rare arrhythmia events. The proposed model can be trained and evaluated using publicly available ECG datasets such as MIT-BIH Arrhythmia Database, PhysioNet/CinC Challenge datasets, and wearable ECG recordings where available. Model optimization is performed to reduce computational complexity and support deployment on resource-constrained wearable devices using techniques such as model pruning, quantization, lightweight convolutional layers, and edge inference acceleration.
Experimental evaluation is conducted using clinically relevant metrics, including accuracy, sensitivity, specificity, precision, F1-score, AUC-ROC, detection latency, false alarm rate, and energy consumption. The proposed CNN-LSTM architecture is expected to outperform standalone CNN, standalone LSTM, traditional machine learning classifiers, and handcrafted feature-based ECG analysis methods by achieving higher classification accuracy and improved sensitivity for early arrhythmia detection. In addition, the system incorporates an early warning module that generates real-time alerts when abnormal rhythm patterns exceed predefined clinical risk thresholds. This module is designed to support patient monitoring, clinician notification, and timely emergency response in both home-based and ambulatory care environments.
To enhance clinical interpretability and user trust, the framework integrates explainability techniques such as Grad-CAM-based temporal activation mapping, saliency analysis, and attention-based visualization to identify ECG waveform regions that contribute most strongly to the classification decision. These explanations allow clinicians to verify whether the model focuses on meaningful cardiac features such as QRS widening, irregular RR intervals, abnormal P-wave activity, and ST-T changes. The proposed hybrid CNN-LSTM framework provides a scalable, accurate, and computationally efficient solution for real-time ECG arrhythmia classification in wearable devices. Its integration into wearable health monitoring systems has the potential to improve continuous cardiovascular surveillance, reduce delayed arrhythmia diagnosis, minimize unnecessary hospital visits, and support early intervention for high-risk patients.
Keywords
References
- [1] El-Kenawy, E. S. M., Alhussan, A. A., Khodadadi, N., Mirjalili, S., & Eid, M. M. (2024). Predicting potato crop yield with machi ne
- [2] Radwan, M., Alhussan, A. A., Ibrahim, A., & Tawfeek, S. M. (2025). Potato leaf disease classification using optimized machine learning
- [3] Ghasemi, M., Khodadadi, N., Trojovský, P., Li, L., Mansor, Z., Abualigah, L., ... & El -Kenawy, E. S. M. (2025). Kirchhoff’s law
- [4] Yassen, M. A., El -Kenawy, E. S. M., Abdel -Fattah, M. G., Ismail, I., & Mostafa, H. E. D. S. (2025). Explainable artificial intelligence
- [5] Radwan, M., Alhussan, A. A., Ibrahim, A., & Tawfeek, S. M. (2025). Potato leaf disease classification using optimized machine learning
- [6] Mozhdehi, A. T., Khodadadi, N., Aboutalebi, M., El -Kenawy, E. S. M., Hussien, A. G., Zhao, W., ... & Mirjalili, S. (2025). Divine
- [7] El-kenawy, E. S. M., Alhussan, A. A., Mattar, E. A., & Radwan, M. (2026). Feature selection and hyperparameter tuning in transfo rmer -
- [8] Chen, L., Xu, C., Lim, W. H., Sharma, A., Tiang, S. S., Chong, K. S., ... & Khafaga, D. S. (2025). Transparent and reliable c onstruction
- [9] Khodadadi, N., Towfek , S. K., Zaki, A. M., Alharbi, A. H., Khodadadi, E., Khafaga, D. S., ... & Eid, M. M. (2025). Predicting
- [10] Alhussan, A. A., El -Kenawy, E. S. M., Khafaga, D. S., Alharbi, A. H., & Eid, M. M. (2025). Groundwater resource prediction and
- [11] Mozhdehi, A. T., Khodadadi, N., Aboutalebi, M., El -Kenawy, E. S. M., Hussien, A. G., Zhao, W., ... & Mirjalili, S. (2025). Divine
- [12] Lopes, J. M., Pinho, C. S., Martins, R. C., & Bandeira, T. (2026). Sustainability Gets Smarter: Competitive Pressure and AI L eading the
- [13] Radwan, M., Ibrahim, A., Abdelsalam, M. M., Alhussan, A. A., Mattar, E. A., & El -Kenawy, E. S. M. (2026). Optimizing solar and wind
- [14] Alhussan, A. A., El -Kenawy, E. S. M., Eid, M. M., & Khodadadi, N. (2026). Hybrid Al -Biruni and Puma Optimization (BERPO) for
- [15] El-Kenawy, E. S. M., Ibrahim, A., Alhussan, A. A., Khafaga, D. S., Ahmed, A. E., & Eid, M. M. (2026). Smart city electricity loa d
- [16] El-Kenawy, E. S. M., Khodadadi, N., Mirjalili, S., Zaki, A. M., Ibrahim, A., Alhussan, A. A., ... & Eid, M. M. (2026). Glider sn ake
- [17] Mekaret, F., Rabehi, A., Zebentout, B., Tizi, S., Douara, A., Bellucci, S., ... & Alhussan, A. A. (2024). A comparative study of Schottky
- [18] KOUADRI, Ali, RABEHI, Abdelhalim, BENZIANE, Ali, et al. A Robust Multi -Transform Watermarking Scheme for Medical Images
- [19] Tibermacine, I. E., Russo, S., Scarano, G., Tedesco, G., Rabehi, A., Alhussan, A. A., ... & Napoli, C. (2025). Conditional VA E for
- [20] Kouadri, A., Benziane, A., Rabehi, A., Rabehi, A., Alhussan, A. A., Khafaga, D. S., & El -Kenawy, E. S. M. (2025). A novel hybrid
- [21] Russo, S., Tibermacine, I. E., Randieri, C., Rabehi, A., Alharbi, A. H., El -Kenawy, E. S. M., & Napoli, C. (2025). Exploiting facial
- [22] Bentegri, H., Rabehi, M., Kherfane, S., Nahool, T. A., Rabehi, A., Guermoui, M., ... & El -Kenawy, E. S. M. (2025). Assessment of
- [23] Tibermacine, I. E., Russo, S., Citeroni, F., Mancini, G., Rabehi, A., Alharbi, A. H., ... & Napoli, C. (2025). Adversarial de noising of EEG
- [24] Ouahabi, M. S., Benyounes, A., Barkat, S., Ihammouchen, S., Rekioua, T., Rabehi, A., ... & Alharbi, A. H. (2025). Real -time sensor fault
- [25] Belaid, A., Guermoui, M., Khelifi, R., Arrif, T., Chekifi, T., Rabehi, A., ... & Alhussan, A. A. (2024). Assessing suitable a reas for PV
- [26] Mehallou, A., M’hamdi, B., Amari, A., Teguar, M., Rabehi, A., Guermoui, M., ... & Khafaga, D. S. (2025). Optimal multiobjecti ve
- [27] Rabehi, A., El -Hadi, M., Benmahmoud, S., Rabehi, A., Alharbi, A. H., & El -Kenawy, E. S. M. (2025). SOCA -CFAR Processor in A
- [28] Bakria, D., Beladel, A., Korich, B., Teta, A., Mohammedi, R. D., Laouid, A. A., ... & El -kenawy, E. S. (2025). A novel enhanced Grey
