ECG Denoising based on PCA and using R Peaks Detection

Talbi Mourad


In this paper, we propose a new Electrocardiogram (ECG) Denoising technique based on Principal Component Analysis (PCA) and using R peaks detection. This technique consists at first step in cutting the entire ECG signal into frames then the denoising is performed frame by frame by using PCA. Each frame is located between two successive R peaks. The R peaks detection is performed by using a new detection method based on multi-scale product of the undecimated wavelet coefficients. The Reconstructed ECG signal is obtained by concatenating all the denoised frames. The evaluation of the proposed technique is performed by comparing it to the denoising technique based on PCA and applied to the entire noisy ECG signal. The two techniques are tested on four ECG signals taken from MIT-BIH database. The used criteria in this evaluation of these two techniques are the SNR improvement and the mean square error (MSE). The obtained results from this evaluation show clearly that the denoising technique based on PCA and applied to the entire noisy ECG signal, is slightly better than the proposed technique. However this latter has the advantage of working in real-time because the processing is performed frame by frame and not on the entire noisy ECG signal. Concerning the new proposed technique of R peaks detection, it is very accurate because it permits a perfect reconstruction of the ECG signal when concatenating all the frames.


  1. A. Rosenfeld, “A nonlinear edge detection techniques,” Processing of the IEEE, pp. 814-816, 1970.
  2. A. Blanco, S. Kochen, O.A. Rosso, P. Salgado, Applying time-frequency analysis to seizure EEG activity, IEEE EMBS Magazine, 16(1):64-71, 1997.
  3. B. Babloyantz, P. Maurer, A graphical representation of local correlations in time series - assessment of cardiac dynamics, Physics Letters A, 221:43-55, 1996.
  4. B. M. Sadler and A. Swami, “Analysis of multiscale products for step detection and estimation,” IEEE Transactions on Information Theory, vol. 45, no. 3, pp. 1043-1051, 1999.
  5. D. L. Donoho, I. M. Johnstone, G. Kerkyacharian, and D. Picard, “Wavelet shrinkage: Asymptopia?,” Journal of the Royal Statistics Society, vol. 57, pp. 301-369, 1995.
  6. D. L. Donoho and I. M. Johnstone, “Adapting to unknown smoothness via wavelet shrinkage,” Journal of the American Statistical Association, vol. 90, no. 432, pp. 1200-1224, 1995.
  7. D. Dobrev, et al., "Digital lock-in techniques for adaptive power-line interference extraction," Physiol. Meas. ,Vol. 29 pp. 803-816, 2008.
  8. E.-S. El-Dahshan, "Genetic algorithm and wavelet hybrid scheme for ECG signal denoising," Telecommunication Systems, vol. 46, pp. 209-215, 2010.
  9. Er. Manpreet Kaur, "Adaptive Wavelet Thresholding for Noise reduction in Electrocardiogram (ECG) Signals,"International Journal of Communication and Networking System,Vol: 03, June 2014, Pages: 261- 266.
  10. F. Chang, et al., "Evaluation Measures for Adaptive PLI Filters in ECG Signal Processing," Computers in Cardiology, vol. 34, p. 529-532, 2007.
  11. Gari D. Clifford. Singular Value Decomposition and Independent Component Analysis for Blind Source Separation. Online resource: es.pdf.
  12. Gari D. Clifford, Francisco Azuaje and Patrik McSharry. Advanced Methods and Tools for ECG Data Analysis. Artech House. 2006.
  13. Golub, G. H., and C. F. Van Loan, Matrix Computation, 2nd ed., Oxford, U.K.: North Oxford Academic, 1989.
  14. I. Romero, "PCA-based Noise Reduction in Ambulatory ECGs," IMEC, Eindhoven, the Netherlands,
  15. hp.
  16. K. M. Chang and S. H. Liu, “Gaussian noise filtering from ECG by Wiener filter and ensemble empirical mode decomposition,” Journal of Signal Processing Systems, vol. 64, no. 2, pp. 249-264, 2011.
  17. Lei Lei, Chao Wang, and Xin Liu, "Discrete Wavelet Transform Decomposition Level Determination Exploiting Sparseness Measurement," World Academy of Science, Engineering and Technology, International Journal of Electrical, Robotics, Electronics and Communications Engineering Vol:7 No:9, 2013.
  18. M. Benmaiekl, et al. (2010 Preprocessing of the ECG Signals Using the His-Purkinje Fractal System. IEEE, 7th International Multi-Conference on Systems, Signals and Devices.
  19. M. P. S. Chawla, H. K. Verma, and V. Kumar, “Artifacts and noise removal in electrocardiograms using independent component analysis,” International Journal of Cardiology, vol. 129, no. 2, pp. 278-281, 2008.
  20. M. C.B, et al., "Processing ECG Signal with Kaiser Window- Based FIR Digital Filters " International Journal of Engineering Science and Technology (IJEST), vol. 3, pp. 6775 - 6783, 2011.
  21. P. Karthikeyan, M. Murugappan, and S.Yaacob, "ECG Signal Denoising Using Wavelet Thresholding Techniques in Human Stress Assessment," International Journal on Electrical Engineering and Informatics, Volume 4, Number 2, July 2012.
  22. Pan, Jiapu, Tompkins, Willis J. A, "Real-Time QRS Detection Algorithm," Biomedical Engineering, IEEE Transactions on Volume: BME-32 , Issue: 3 Publication Year: 1985 , Page(s): 230 - 236.
  23. S. C. Mahesh, et al., "Suppression of noise in the ECG signal using digital IIR filter," presented at the proceedings of the 8th WSEAS International Conference on Multimedia systems and signal processing, Hangzhou, China, 2008.
  24. S. M. M. Martens, et al., "An Improved Adaptive Power Line Interference Canceller for Electrocardiography," IEEE Transactions on Biomedical Engineering, vol. 53, pp. 2220-2231 2006.
  25. S. G. Tareen, "Removal of Power Line Interference and other Single Frequency Tones from Signals," MSc, Computer Science and Electronics, Mälardalen University, sweedan, 2008.
  26. Shlens, Jonathan. 2009. “A tutorial on principal component analysis.” Online N ote:"shlens/pca.pdf. Accessed June 2010.
  27. Samar Krimi, kais ouni, and Noureddine Ellouze, “TWave Detection Based on an An Adjusted Wavelet Transform Modulus Maxima”, International Journal of Biological and Life Sciences, v1, 2005, pp. 128-132.
  28. Taigang He, Gari Clifford and Lionel Tarassenko, "Application of independent component analysis in removing artefacts from the electrocardiogram," Neural Computing & Applications, Vol. 15, pp. 105-116, 2006.

Paper Citation

in Harvard Style

Mourad T. (2015). ECG Denoising based on PCA and using R Peaks Detection . In Proceedings of the International Conference on Bio-inspired Systems and Signal Processing - Volume 1: BIOSIGNALS, (BIOSTEC 2015) ISBN 978-989-758-069-7, pages 119-125. DOI: 10.5220/0004998201190125

in Bibtex Style

author={Talbi Mourad},
title={ECG Denoising based on PCA and using R Peaks Detection},
booktitle={Proceedings of the International Conference on Bio-inspired Systems and Signal Processing - Volume 1: BIOSIGNALS, (BIOSTEC 2015)},

in EndNote Style

JO - Proceedings of the International Conference on Bio-inspired Systems and Signal Processing - Volume 1: BIOSIGNALS, (BIOSTEC 2015)
TI - ECG Denoising based on PCA and using R Peaks Detection
SN - 978-989-758-069-7
AU - Mourad T.
PY - 2015
SP - 119
EP - 125
DO - 10.5220/0004998201190125