FORMULASI PREDIKTIF IoT DALAM PEMANTAUAN DAN PENGOLAHAN AIR BERSIH
Keywords:
Internet of Things, water treatment, pH, total dissolved solids, LSTM, predictive dosingAbstract
The quality of river water may change within a relatively short period, whereas chemical dosing in conventional treatment units is often determined after the change has occurred. This study develops a proof-of-concept predictive Internet of Things (IoT) model that links pH and total dissolved solids (TDS) monitoring with adaptive dosing of polyaluminium chloride (PAC) and chlorine. The system consists of pH and TDS sensors, an ESP32 acquisition unit, HTTP/MQTT communication, a virtual private server, predictive models, and dosing pumps operating in a closed loop. A dataset representing observations from 10 to 17 July 2026 was recorded at five-minute intervals, producing 2,304 observations. Long Short-Term Memory (LSTM), XGBoost, and SARIMA were compared for a 30-minute prediction horizon. The acquisition layer achieved 99.05% data completeness with an average transmission latency of 668.35 ms. LSTM produced the best prediction performance for both pH (RMSE 0.0557; R² 0.9545) and TDS (RMSE 8.0473 mg/L; R² 0.9501). After predictive dosing was applied, out-of-standard observations decreased from 8.81% to 0.78%, equivalent to a relative reduction of 91.13%. The PAC and chlorine pumps were activated 19 and 5 times, respectively, with no unnecessary or repeated activation detected. These results indicate that combining IoT monitoring, time-series prediction, and closed-loop dosing can improve pH-TDS stability while limiting chemical use. The findings remain a proof of concept and require validation using longer field observations, seasonal variation, and physical actuator testing.References
S. R. Kannan, L. M. Sundari, V. S. G. Akula, A. Mythili, D. Yobu, and C. Srinivasan, “LSTM-based Detection and Management of Emerging Waterborne Contaminants in IoT System,” in 3rd International Conference on Emerging Applications of Material Science and Technology, ICEAMST 2025, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 1511–1516. doi: 10.1109/ICEAMST67459.2025.11335924.
C.-C. Chang, C.-H. Wei, M.-T. Lin, and S.-C. J. Hwang, “Machine Learning Approach to IoT- Based Water Quality Monitoring,” in 2023 IEEE 5th Eurasia Conference on Biomedical Engineering, Healthcare and Sustainability, ECBIOS 2023, M. T.-H., Ed., Institute of Electrical and Electronics Engineers Inc., 2023, pp. 182–186. doi: 10.1109/ECBIOS57802.2023.10218420.
P. Annamalai, A. R. Raju, P. Ranjith, T. Buvaneswari, C. Srinivasan, and J. P. Adlin Jenisha, “IoT-Driven Water Treatment Systems for Real-Time Quality Assurance and Control Using Logistic Regression Model,” in Proceedings of the 2025 11th International Conference on Communication and Signal Processing, ICCSP 2025, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 1247–1252. doi: 10.1109/ICCSP64183.2025.11089475.
T. Jomjaiekachorn, T. Anuwongpinit, and B. Purahong, “IoT-based Water Quality Monitoring Station and Forecasting System with Machine Learning,” in 2025 13th International Electrical Engineering Congress (iEECON), IEEE, Mar. 2025, pp. 1–6. doi: 10.1109/iEECON64081.2025.10987795.
Ma. E. A. Grande, R. Reyes, G. V. Rolluqui, and L. C. M. De Jesus, “IoT-Based Real-Time Effluent Monitoring and Biochemical Oxygen Demand Estimation Using Raspberry Pi,” Institute of Electrical and Electronics Engineers (IEEE), Dec. 2025, pp. 1187–1189. doi: 10.1109/gcce65946.2025.11274772.
T. Regula, S. G. Kiran Kumar, M. Rao Battina, S. Al-Amri, K. N. B. Rao, and S. M. R. Regula, “Artificial Intelligence and Internet of Things-Enabled Framework for Sustainable, Real-Time Water Quality Management and Predictive Resource Optimization in Arid Regions,” Institute of Electrical and Electronics Engineers (IEEE), Nov. 2025, pp. 160–165. doi: 10.1109/iccbe65177.2025.11255687.
S. Shiraz, K. Karunasena, H. Mudelige, O. Kumarasinghe, D. Nawinna, and J. Perera, “Intelligent Water Quality Monitoring and Prediction System,” in Proceedings of the 6th International Conference on Inventive Research in Computing Applications, ICIRCA 2025, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 429–434. doi: 10.1109/ICIRCA65293.2025.11089780.
Y. A. Hamadi, R. J. Juma, Z. M. Hussein, and N. R. Lakkimsetty, “Harnessing Artificial Intelligence in Wastewater Treatment: A Comprehensive Analysis of Emerging Research Trends and Innovations,” Institute of Electrical and Electronics Engineers (IEEE), Nov. 2025, pp. 1–7. doi: 10.1109/inista68122.2025.11249526.
L. Y. K. Wang, J. C. H. Loo, Y. X. Wong, and Y. Y. Lai, “IoT Based Wastewater Temperature, pH And Turbidity Monitoring with Data Analytics and Visualisation,” in Proceedings of the 2024 the 12th International Conference on Information Technology (ICIT), New York, NY, USA: ACM, Dec. 2024, pp. 213–218. doi: 10.1145/3718391.3718428.
A. D. Frayudha and A. P. Widikda, “IoT-Based Predictive Maintenance for AC Motors in Water Treatment Plants Using Multi-Sensor Data and LSTM Networks with GAN Augmentation,” Elinvo (Electronics, Informatics, and Vocational Education), vol. 10, no. 2, pp. 191–204, Dec. 2025, doi: 10.21831/elinvo.v10i2.89410.
A. Chola, R. Rastogi, P. Kaur, A. Chaudhary, and D. Biswas, “Predictive Analytics beyond the Hype: A Comprehensive Comparison of LSTM, XGBoost and LightGBM with Emphasis on RMSE and CPU Utilization,” in 2024 3rd International Conference on Power, Control and Computing Technologies, ICPC2T 2024, Institute of Electrical and Electronics Engineers Inc., 2024, pp. 179–184. doi: 10.1109/ICPC2T60072.2024.10474875.
T. Rifqa Annisa, D. Pramesti, H. Fakhrurroja, B. Pradika Putranto, and F. Anggriantaka, “Smart Dashboard for Water Quality Monitoring and Predicting in Koi Fish Farming Using IoT and Sarima Modeling,” in 2024 12th International Conference on Information and Communication Technology, ICoICT 2024, Institute of Electrical and Electronics Engineers Inc., 2024, pp. 578–584. doi: 10.1109/ICoICT61617.2024.10698719.
A. D. Frayudha and T. Mulyono, “Predictive Analytics with IoT: Research Trends, Methods, and Architectures Using Systematic Literature Review,” International Journal of Advanced Engineering and Management Research, vol. 08, no. 06, pp. 25–37, 2023, doi: 10.51505/ijaemr.2023.8603.
M. E. A. Grande, R. Reyes, G. V. Rolluqui, and L. C. M. De Jesus, “IoT-Based Real-Time Effluent Monitoring and Biochemical Oxygen Demand Estimation Using Raspberry Pi,” in GCCE 2025 - 2025 IEEE 14th Global Conference on Consumer Electronics, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 1187–1189. doi: 10.1109/GCCE65946.2025.11274772.
T. Regula, S. G. K. Kumar, M. R. Battina, S. Al-Amri, K. N. B. Rao, and S. M. R. Regula, “Artificial Intelligence and Internet of Things-Enabled Framework for Sustainable, Real-Time Water Quality Management and Predictive Resource Optimization in Arid Regions,” in Proceedings of the 2025 IEEE International Conference on Computation, Big-Data and Engineering, ICCBE 2025, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 160–165. doi: 10.1109/ICCBE65177.2025.11255687.
K. Stolecka, “ANALYSIS OF THE ACCIDENTAL RELEASE OF CHLORINE,” in System Safety: Human - Technical Facility - Environment, Sciendo, 2019, pp. 149–155. doi: 10.2478/czoto-2019-0019.
R. Khalid, M. I. Rosli, N. A. Zulkarnain, S. R. Sheikh Abdullah, M. I. Idris, and J. Buhari, “Assessing risks of chlorine usage as a disinfectant in drinking water treatment plant,” Model. Earth Syst. Environ., vol. 11, no. 4, Aug. 2025, doi: 10.1007/s40808-025-02431-x.
