Abstract
Water quality is a fundamental component in human health, environmental sustainability, and industrial utilization. However, conventional methods in monitoring water quality are slow and cannot operate in real-time. This issue highlights the need for an efficient forecasting approach for water quality assessment. This research aims to explore how a machine learning-based framework can be developed to predict the Water Quality Index (WQI) based on eleven key indicators of water quality. Six regression algorithms were compared in this study which are Support Vector Machine, Multi-Layer Perceptron, Decision Tree, Random Forest, XGBoost, and Gradient Boosting. To ensure model reliability, comprehensive data preprocessing steps were implemented. This involved addressing missing values, outlier elimination, and normalizing data to prevent poor model performance caused by variable imbalance or data distortion. In addition, feature selection and Principal Component Analysis were employed to enhance optimal input features. The models were evaluated using R Squared (R²), Root Mean Squared Error (RMSE) and training time. Among all models, Gradient Boosting with normalized data preprocessing achieved the highest overall performance with an R² value of 0.9943 and an RMSE of just 0.5457. The findings demonstrated that integrating machine learning with effective preprocessing substantially improves the accuracy of WQI prediction. Consequently, this approach can provide a robust foundation for developing reliable and scalable real-time water quality monitoring systems.
Metadata
| Item Type: | Article |
|---|---|
| Creators: | Creators Email / ID Num. Riza, Muhamad Danish Saiful UNSPECIFIED Ridzuan, Fakhitah fakhitah.r@umk.edu.my Abdullah, Nurzulaikha nurzulaikha.mal@umk.edu.my Ibrahim, Mohd Hakimi Aiman UNSPECIFIED |
| Subjects: | Q Science > Q Science (General) > Cybernetics T Technology > TD Environmental technology. Sanitary engineering > Water supply for domestic and industrial purposes |
| Divisions: | Universiti Teknologi MARA, Perak > Tapah Campus > Faculty of Computer and Mathematical Sciences |
| Journal or Publication Title: | Mathematical Sciences and Informatics Journal (MIJ) |
| UiTM Journal Collections: | UiTM Journals > Mathematical Science and Information Journal (MIJ) |
| ISSN: | 2735-0703 |
| Volume: | 7 |
| Number: | 1 |
| Page Range: | pp. 187-203 |
| Keywords: | Water quality index, Machine learning, Preprocessing, Regression, Outlier |
| Date: | April 2026 |
| URI: | https://ir.uitm.edu.my/id/eprint/141753 |
