An Intelligent IoT-Based Water Quality Monitoring and STORET Index Prediction System Using Random Forest

  • Yohanes Nugroho Universitas Pendidikan Indonesia
  • Dewi Indriati Hadi Putri Universitas Pendidikan Indonesia
  • Mahmudah Salwa Gianti Universitas Pendidikan Indonesia
Keywords: Water Quality Monitoring;, Random Forest, STORET, Internet of Things (IoT), ESP32-S3, Machine Learning

Abstract

Hygiene sanitation water quality fluctuates due to environmental dynamics, yet conventional monitoring systems generally lack the predictive capabilities compliance with health standards (Permenkes No. 2 of 2023). This study aims to develop an intelligent Water Quality Monitoring System (WQMS) capable of predicting water quality status based on the STORET index using the Random Forest algorithm. [Methods] The proposed system integrates an ESP32-S3 microcontroller with calibrated low-cost sensors for real-time data acquisition. To ensure data integrity, regression was applied for sensor calibration, while the STORET method was utilized to determine pollution levels and water feasibility. A Random Forest regression model was then trained using these processed datasets to classify water quality status. Experimental results demonstrated high hardware precision, achieving Mean Absolute Percentage Error (MAPE) values of 5.38% for pH, 2.24% for TDS, and 0.22% for the Flow Meter. Furthermore, the Random Forest model exhibited superior predictive performance, yielding a Coefficient of Determination () of 0.9977, a Mean Absolute Error (MAE) of 0.2213, and a Root Mean Squared Error (RMSE) of 0.5144. These findings indicate that the integrated system effectively combines accurate sensing with robust predictive modeling. Consequently, the system is categorized as highly capable of providing real-time insights and early warnings, offering a significant improvement over traditional monitoring methods for public health safety.

Downloads

Download data is not yet available.

Author Biographies

Dewi Indriati Hadi Putri, Universitas Pendidikan Indonesia

Dewi Indriati Hadi Putri, S.Pd., M.T.

Head of Mechatronics and Artificial Intelligence Study Programme

Mahmudah Salwa Gianti, Universitas Pendidikan Indonesia

Mahmudah Salwa Gianti, S.SI., M.Eng.

Lecturer in Mechatronics and Artificial Intelligence

Published
2026-04-16
How to Cite
Nugroho, Y., Dewi Indriati Hadi Putri, & Mahmudah Salwa Gianti. (2026). An Intelligent IoT-Based Water Quality Monitoring and STORET Index Prediction System Using Random Forest. Jurnal Sistem Cerdas, 9(1), 45 - 56. https://doi.org/10.37396/jsc.v9i1.603