Real-Time Fast Fourier Transform-Based Notch Filter for Single-Frequency Noise Cancellation: Application to Electrocardiogram Signal Denoising

Anis Ben Slimane, Azza Ouled Zaid

DOI: 10.4103/jmss.JMSS_3_20


Despite the considerable improvement of the common-mode rejection ratio of digital filtering techniques, the electrocardiogram (ECG) traces recorded by commercialized devices are still contaminated by residual power line interference (PLI). In this study, we address this issue by proposing a novel real-time filter adapted to single-frequency noise cancellation and automatic power line frequency detection. The filtering process is principally based on a point-by-point fast Fourier transform and a judicious choice of the analysis window length. Intensive experiments conducted on real and synthetic signals have shown that our filtering method offers very clean ECGs, due to the suppression of spikes corresponding to the PLI and the preservation of spikes outside the filter band. In addition, this method is characterized by its low computational complexity which makes it suitable for real-time cleaning of ECG signals and thus can serve for more accurate diagnosis in computer-based automated cardiac system.


Frequency detection, notch filter, physiological signals, power line interference removal, real-time fast Fourier transform, spectral filtering

Full Text:



Biel L, Pettersson O, Philipson L, Wide P. ECG analysis: A new approach in human identification. IEEE Transac Instrumentat Meas 2001;50:808-12.

Lastre-Dominguez C, Shmaliy YS, Ibarra-Manzano O, Munoz-Minjares J, Morales-Mendoza LJ. ECG signal denoising and features extraction using unbiased FIR smoothing. Biomed Res Int 2019;2019:

Rajesh KN, Dhuli R. Classification of ECG heartbeats using nonlinear decomposition methods and support vector machine. Comput Biol Med 2017;87:271-84.

Ziarani AK, Konrad A. A nonlinear adaptive method of elimination of power line interference in ECG signals. IEEE Trans Biomed Eng 2002;49:540-7.

Ladrova M, Martinek R, Jaros R. Power line interference elimination in ECG signals. J Biomimet Biomaterials Biomed Eng 2019;41:105-15.

Chen B, Li Y, Cao X, Sun W, He W. Removal of power line interference from ECG signals using adaptive notch filters of sharp resolution. IEEE Access 2019;7:150667–76. doi:10.1109/access.2019.2944027.

Singhal A, Singh P, Fatimah B, Pachori RB. An efficient removal of power-line interference and baseline wander from ECG signals by employing Fourier decomposition technique. Biomed Signal Proce Control 2020;57:, 101741. doi:10.1016/j.bspc.2019.101741.

Blanco-Velasco M, Weng B, Barner KE. ECG signal denoising and baseline wander correction based on the empirical mode decomposition. Comput Biol Med 2008;38:1-13.

Wu Y, Rangayyan RM, Ng SC. Cancellation of artifacts in ECG signals using a normalized adaptive neural filter. Conf Proc IEEE Eng Med Biol Soc 2007;2007:2552-5.

Lehmann C, Reinstadtler J, Khawaja A. Detection of power-line interference in ECG signals using frequency-domain analysis. Comput Cardiol Confe Hangzhou 2011. p. 821-4.

Available from: [Last accessed on 2020 Jan 12].

Available from:[Last accessed on 2020 Jan 12].

Sahambi JS, Tandon SN, Bhatt RK. Quantitative analysis of errors due to power line interference and baseline drift in detection of onsets and offset in ECG using wavelets. Med Biol Eng Comput 1997;35:747-51.

Aqil M, Jbari A. Abdennasser bourouhou ECG signal denoising by discrete wavelet transform. Int J Online Biomed Eng 2017;13:51-68.

Ercelebi E. Electrocardiogram signals denoising using lifting-based discrete wavelet transform. Comput Biol Med 2004;34:479-93.

Ho CY, Ling BW, Wong TP, Chan AY, Tam PK. Fuzzy multiwavelet denoising on ECG signal. Electron Lett 2003;39:1163-4.

Levkov C, Mihov G, Ivanov R, Daskalov I, Christov I, Dotsinsky I. Removal of power-line interference from the ECG: A review of the subtraction procedure. Biomed Eng Online 2005;4:50.

Pei SC, Tseng CC. Elimination of AC interference in electrocardiogram using IIR notch filter with transient suppression. IEEE Trans Biomed Eng 1995;42:1128-32.

Yoo SK, Kim NH, Song JS, Lee TH, Kim KM. Simple self tuned notch filter in a bio-potential amplifier. Med Biol Eng Comput 1997;35:151-4.

Bensadoun Y, Raoof K, Novakov E. Elimination du 50 Hz du signal ECG par filtrage adaptatif multidimensionnel. Innovation 1994;15:750-9.

Ziarani AK, Konrad A. A nonlinear adaptive method of elimination of power line interference in ECG signals. IEEE Trans Biomed Eng 2002;49:540-7.

Wan H, Fu R, Shi L. The elimination of 50 Hz power line interference from ECG using a variable step size LMS adaptive filtering algorithm. Life Sci J 2006;3:90-3.

Thakor NV, Zhu YS. Applications of adaptive filtering to ECG analysis: Noise cancellation and arrhythmia detection. IEEE Trans Biomed Eng 1991;38:785-94.

Bellanger M. Digital Processing of Signals: Theory and Practice. USA: Wiley; 2000.

Hamilton PS. A comparison of adaptive and nonadaptive filters for reduction of power line interference in the ECG. IEEE Trans Biomed Eng 1996;43:105-9.

Singh P, Srivastava I, Singhal A, Gupta A. Baseline wander and power-line interference removal from ECG signals using Fourier decomposition method. Machine Intelligence and Signal Analysis.2018. p. 25-36. doi:10.1007/978-981-13-0923-6_3.

De Lima LA, Yioneyama T. A neural integrated circuit for noise cancellation in electrocardiograph signals. Proceedings of the 11th International Conference on Control Systems and Computer Science: Bucharest; 1997. p. 101-5.

Romanca M, Szabo W. Electrocardiogram pre-processing for the removal of high frequency and powerline frequency noise. Proceedings of the 6th International Conference on Optimization of Electrical and Electronic Equipments: Brasov; 1998. p. 703-6.

ECG Affected by50Hz Power Line Interference. Available from:; [Last accessed on 2019 Feb 03].

Available from: [Last accessed on 2020 Aug 28].


  • There are currently no refbacks.