Red Paper
International Journal of Engineering in Computer Science

Impact Factor (RJIF): 5.52, P-ISSN: 2663-3582, E-ISSN: 2663-3590
Printed Journal   |   Refereed Journal   |   Peer Reviewed Journal
Peer Reviewed Journal

2025, Vol. 7, Issue 1, Part C

Comparison of moving average and Savitzky-Golay filters for noise removal in electrocardiograms


Author(s): Sandoval Martínez M, Morales Barrón C, Castillo Izquierdo L and Moreno Sandoval J

Abstract: This paper presents the results of independently applying two filters to eliminate noise from an ECG signal: Moving Average Filter (MAF) and Savitzky-Golay Filter (S-G). These filters were applied to 45 ECGs from the Physionet database, all diagnosed with sinus bradycardia. A Python script was developed for automatic application of the filters using the following parameters: MAF was applied using three window sizes (7, 14, and 21), and S-G with a window size of 21 and polynomial orders of 7, 9, and 11. Results indicate that MAF performs best with a window size of 7. However, the S-G filter (21,11) significantly outperforms MAF in noise removal. Statistical parameters used were MSE (MAF = 0.0435; S-G = 0.0062), SNR (MAF = 16; S-G = 25), and Correlation Coefficient (MAF = 0.988; S-G = 0.9944); these values indicate that the S-G filter achieves better noise removal and minimal signal distortion, making it the best option for such processes. It is important to note that six filter configurations were compared, with S-G (21,11) being the best. A test hypothesis points out that there are meaningful differences between SG (21,11) and MAF (7).

DOI: 10.33545/26633582.2025.v7.i1c.173

Pages: 184-188 | Views: 529 | Downloads: 337

Download Full Article: Click Here

International Journal of Engineering in Computer Science
How to cite this article:
Sandoval Martínez M, Morales Barrón C, Castillo Izquierdo L, Moreno Sandoval J. Comparison of moving average and Savitzky-Golay filters for noise removal in electrocardiograms. Int J Eng Comput Sci 2025;7(1):184-188. DOI: 10.33545/26633582.2025.v7.i1c.173
International Journal of Engineering in Computer Science

International Journal of Engineering in Computer Science

International Journal of Engineering in Computer Science
Call for book chapter
Journals List Click Here Research Journals Research Journals