Constructing waveform of P, Q, R, S, and T waves in ECG signals for cardiovascular disease diagnosis

Authors

  • The-Lam Nguyen Hanoi Pedagogical University 2, Phu Tho, Vietnam
  • Quang-Huy Tran Hanoi Pedagogical University 2, Phu Tho, Vietnam

DOI:

https://doi.org/10.56764/hpu2.jos.2026.5.01.65-75

Abstract

This study presents the development of an electrocardiogram (ECG) signal acquisition and analysis system based on Arduino hardware and a personal computer. The recorded ECG signals were processed in MATLAB to extract key diagnostic parameters, including sinus rhythm, the amplitude and width of the P, S, and T waves, as well as the slope of the ST segment. These features were subsequently transformed into Time-domain representations, enabling clinicians to simultaneously examine hundreds of cardiac cycles. By providing a comprehensive view of ECG variability, the proposed waveform effectively reduces the influence of artifacts caused by technical errors or transient physiological and emotional fluctuations. Consequently, the integration of s enhances diagnostic precision and reliability compared to conventional visual inspection methods currently used in clinical practice.    

References

[1] J. Pan and W. J. Tompkins, “A real-time QRS detection algorithm,” IEEE Trans. Biomed. Eng., vol. BME-32, no. 3, pp. 230–236, Mar. 1985, doi: 10.1109/TBME.1985.325532.
[2] P. Laguna, R. G. Mark, A. Goldberg, and G. B. Moody, “A database for evaluation of algorithms for measurement of QT and other waveform intervals in the ECG,” Comput. Cardiol., vol. 24, pp. 673–676, 1997, doi: 10.1109/CIC.1997.648140.
[3] J. P. Martínez, R. Almeida, S. Olmos, A. P. Rocha, and P. Laguna, “A wavelet-based ECG delineator: Evaluation on standard databases,” IEEE Trans. Biomed. Eng., vol. 51, no. 4, pp. 570–581, Apr. 2004, doi: 10.1109/TBME.2003.821031.
[4] P. De Chazal, M. O’Dwyer, and R. B. Reilly, “Automatic classification of heartbeats using ECG morphology and heartbeat interval features,” IEEE Trans. Biomed. Eng., vol. 51, no. 7, pp. 1196–1206, Jul. 2004, doi: 10.1109/TBME.2004.827359.
[5] 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, May–Jun. 2001, doi: 10.1109/51.932724.
[6] C. Ye, B. V. Kumar, and M. T. Coimbra, “Heartbeat classification using morphological and dynamic features of ECG signals,” IEEE Trans. Biomed. Eng., vol. 59, no. 10, pp. 2930–2941, Oct. 2012, doi: 10.1109/TBME.2012.2213253.
[7] M. Llamedo and J. P. Martínez, “Heartbeat classification using feature selection driven by database generalization criteria,” IEEE Trans. Biomed. Eng., vol. 58, no. 3, pp. 616–625, Mar. 2011, doi: 10.1109/TBME.2010.2068048.
[8] J. Bergquist, et al., “Body surface potential mapping: contemporary applications and future perspectives,” Hearts, vol. 2, no. 4, pp. 514–542, 2021, doi: 10.3390/hearts2040040.
[9] Z. F. M. Apandi, N. Ahmad, H. S. A. Wahab, and N. Ahmad, “An analysis of the effects of noisy electrocardiogram signal on heartbeat detection performance,” Bioengineering, vol. 7, no. 2, p. 53, May 2020, doi: 10.3390/bioengineering7020053.
[10] 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, Jun. 2000, doi: 10.1161/01.CIR.101.23.e215.
[11] P. S. Hamilton, “Open source ECG analysis,” Comput. Cardiol., vol. 29, pp. 101–104, 2002, doi: 10.1109/CIC.2002.1166717.
[12] R. Acharya, J. Suri, J. Spaan, and S. Krishnan, Eds., Advances in Cardiac Signal Processing. Berlin, Germany: Springer, 2007, doi: 10.1007/978-3-540-36675-1.
[13] J. Sörnmo and L. Sörnmo, Bioelectrical Signal Processing in Cardiac and Neurological Applications. Amsterdam, The Netherlands: Academic Press, 2005, doi: 10.1016/B978-012437552-9/50007-6.
[14] F. Zhou and D. Fang, “Multimodal ECG heartbeat classification method based on a convolutional neural network embedded with FCA,” Sci. Rep., vol. 14, no. 1, p. 8804, 2024, doi: 10.1038/s41598-024-59311-0.
[15] Y. Lecun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, pp. 436–444, May 2015, doi: 10.1038/nature14539.
[16] U. R. Acharya et al., “Automated identification of shockable and non-shockable life-threatening ventricular arrhythmias using convolutional neural network,” Future Gener. Comput. Syst., vol. 79, pp. 952–959, Feb. 2018, doi: 10.1016/j.future.2017.08.039.
[17] Í. F. Di Paolo, A. R. G. Castro, “Intra- and Interpatient ECG Heartbeat Classification Based on Multimodal Convolutional Neural Networks with an Adaptive Attention Mechanism,” Applied Sciences, vol. 14, no. 20, 9307, 2024, doi: 10.3390/app14209307.
[18] K. Faust, U. R. Acharya, H. Adeli, and D. J. Adeli, “Wavelet-based EEG processing for computer-aided seizure detection and epilepsy diagnosis,” Seizure, vol. 26, pp. 56–64, Feb. 2015, doi: 10.1016/j.seizure.2015.01.012
[19] A. Hannun et al., “Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network,” Nat. Med., vol. 25, pp. 65–69, Jan. 2019, doi: 10.1038/s41591-018-0268-3.
[20] C. Zhang, W. Chen, H. Chen, “Denoising for ECG signals based on VMD and RLS,” Journal of Measurements in Engineering, vol. 13, no. 1, pp. 185-204, Mar. 2025, doi: 10.21595/jme.2025.24577.

Downloads

Published

28-04-2026

How to Cite

Nguyen, T.-L., & Tran, Q.-H. (2026). Constructing waveform of P, Q, R, S, and T waves in ECG signals for cardiovascular disease diagnosis. HPU2 Journal of Science: Natural Sciences and Technology, 5(01), 65–75. https://doi.org/10.56764/hpu2.jos.2026.5.01.65-75

Volume and Issue

Section

Natural Sciences and Technology