Early Detection of Heart Diseases through Deep Learning–Based Electrocardiogram (ECG) Analysis
Keywords:
Artificial Intelligence, Deep Learning, Electrocardiogram, Cnn-Lstm Hybrid Model, Arrhythmia Detection, Early DiagnosisAbstract
Cardiovascular diseases are among the leading causes of death worldwide, and early diagnosis
plays a critical role in reducing mortality rates. Electrocardiogram (ECG) signals are a fundamental
diagnostic tool for identifying arrhythmias; however, manual interpretation requires expert knowledge and
is prone to diagnostic errors. In this study, a hybrid deep learning model combining Convolutional Neural
Networks (CNN) and Long Short-Term Memory (LSTM) networks was developed for automatic
arrhythmia detection from ECG signals. The model was trained using the MIT-BIH Arrhythmia Database,
and several preprocessing steps—including noise removal, windowing, standardization, and SMOTE-based
data balancing—were applied. The proposed CNN-LSTM model achieved high performance in five-class
(N, S, V, F, Q) arrhythmia classification, with an accuracy of 95.2%, an F1 score of 92%, and a loss value
of 0.14. The confusion matrix results indicate that the model demonstrates strong generalization capability,
particularly for the N, V, and Q classes. These findings suggest that the hybrid architecture can serve as an
effective decision-support tool in ECG signal analysis. Furthermore, integrating the proposed system into
portable devices may enable real-time and automated monitoring of cardiac rhythms; however, the model
has not been approved by regulatory agencies such as the FDA or CE, and further validation is required
before clinical use. Additionally, by reducing the diagnostic burden on clinicians, the system has the
potential to improve both accuracy and efficiency within clinical workflows. Future studies incorporating
cross-dataset validation and larger ECG collections may further strengthen the reliability and robustness of
the proposed approach.
Downloads
References
World Health Organization, “Cardiovascular diseases (CVDs),” Fact Sheet, 2023.
Available: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds)
U. R. Acharya, S. L. Oh, Y. Hagiwara, J. H. Tan, and M. Adam, “A deep convolutional neural network model to classify heartbeats,” Comput. Biol. Med., vol. 89, pp. 389–396, 2017,
https://doi.org/10.1016/j.compbiomed.2017.08.022.
Ö. Yildirim, U. B. Baloglu, and U. R. Acharya, “A deep convolutional neural network model for automated identification of abnormal ECG signals,” Neural Comput. Appl., vol. 29, no. 10, pp. 1627–1638, 2018.
A. Y. Hannun et al., “Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network,” Nat. Med., vol. 25, no. 1, pp. 65–69, 2019,
https://doi.org/10.1038/s41591-018-0268-3.
S. Kiranyaz, T. Ince, and M. Gabbouj, “Real-time patient-specific ECG classification by 1-D convolutional neural networks,” IEEE Trans. Biomed. Eng., vol. 63, no. 3, pp. 664–675, 2016,
https://doi.org/10.1109/TBME.2015.2468589.
A. L. Goldberger et al., “PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals,” Circulation, vol. 101, no. 23, pp. e215–e220, 2000.
G. B. Moody and R. G. Mark, “The impact of the MIT-BIH Arrhythmia Database,” IEEE Eng. Med. Biol. Mag., vol. 20, no. 3, pp. 45–50, 2001.
M. Kachuee, S. Fazeli, and M. Sarrafzadeh, “ECG heartbeat classification: A deep transferable representation,” in Proc. IEEE Int. Conf. Healthcare Informatics (ICHI), 2018, pp. 443–447,
https://doi.org/10.1109/ICHI.2018.00092.
R. J. Martis et al., “Application of higher order cumulant features for cardiac health diagnosis using ECG signals,” Int. J. Neural Syst., vol. 23, no. 4, p. 1350014, 2013,
https://doi.org/10.1142/S0129065713500147.
N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic Minority Over-sampling Technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002,
https://doi.org/10.1613/jair.953.
TensorFlow Developers, “TensorFlow,” Zenodo, [Online]. Available: https://www.tensorflow.org/. Accessed: Nov. 23, 2025.