Indonesian Science Education Journal (ISEJ)
Vol. 7 No. 3 (2026): June-September

Comparative Evaluation of Moving Average Filtering and Linear ‎Regression Calibration in an ESP32-Based Water pH Sensor

Mukhammad Indra Ukasya (Universitas Negeri Surabaya, Indonesia)
Farid Baskoro (Universitas Negeri Surabaya, Indonesia)
Rifqi Firmansyah (Universitas Negeri Surabaya, Indonesia)
Lilik Anifah (Universitas Negeri Surabaya, Indonesia)
Lusia Rakhmawati (Universitas Negeri Surabaya, Indonesia)



Article Info

Publish Date
30 Sep 2026

Abstract

This study compared Moving Average filtering and Linear Regression calibration in an ESP32-based low-cost pH measurement system using nominal buffers of pH 4.01, 6.86, and 9.18. One ESP32–PH-4502C sensor unit was evaluated through 60 repeated measurement cycles per buffer under approximately 25 °C room conditions. Performance was assessed using MAE, MSE, RMSE, bias, standard deviation, 95% confidence interval, drift slope, and lag-1 autocorrelation. Moving Average filtering did not reduce measurement error, and MAE generally increased with larger window sizes. Linear Regression reduced MAE by 25.2% at pH 4.01 but increased MAE by 158.9% at pH 6.86 and 42.4% at pH 9.18. The recorded Linear Regression condition also showed lower dispersion, drift slopes closer to zero, and lower lag-1 autocorrelation. However, because the processing conditions were not evaluated as paired transformations of the same underlying voltage sequence, these stability differences cannot be attributed solely to the regression transformation. The findings show that smoothing did not improve accuracy, while regression performance varied across buffer values. The results are device-specific and do not establish field performance or generalization across sensor units.

Copyrights © 2026






Journal Info

Abbrev

isej

Publisher

Subject

Agriculture, Biological Sciences & Forestry Education Other

Description

ISEJ : Indonesian Science Education Journal ISEJ : Indonesian Science Education Journal is a medium of communication used by researchers, lecturers, teachers, practitioners, and University student for submitting result of studies and prioritized result of the study and review of the literature in ...