The prediction and management of water quality are critical to ensure sustainable water resources, particularly in regions like Malaysia, where rivers face increasing pollution from industrialisation, agriculture, and urban expansion. This review aims to provide a comprehensive analysis of machine learning (ML) models and statistical methods applied in forecasting and classification of water quality. A particular focus is given to hybrid models that integrate multiple approaches to improve predictive accuracy and robustness. This study also reviews water quality standards and highlights the environmental context that necessitates advanced predictive tools. Statistical techniques such as residual analysis, principal component analysis (PCA), and feature importance assessment are also explored to enhance model interpretability and reliability. Comparative tables of model performance, strengths, and limitations are presented alongside real-world applications. Despite recent advancements, challenges remain in data quality, model interpretability, and integration of spatio-temporal and fuzzy logic techniques. This review identifies key research gaps and proposes future directions for developing transparent, adaptive, and accurate models. The findings can also guide researchers and policymakers towards the development of smart water quality management systems that enhance decision-making and ecological sustainability.
Water quality is crucial to the economy and ecology because a healthy aquatic eco-system supports human survival and biodiversity. We have developed the Neuro-Adapt Fuzzy Strategist (NAFS) to improve water quality index (WQI) forecasting accuracy. The objective of the developed model is to achieve a balance by improving prediction accuracy while preserving high interpretability and computational efficiency. Neural networks and fuzzy logic improve the NAFS model’s flexibility and prediction accuracy, while its optimized backward pass improves training convergence speed and parameter update effectiveness, contributing to better learning performance. The normalized and partial derivative computations are refined to improve the model. NAFS is compared with ANN, Adaptive Neuro-Fuzzy Inference System (ANFIS), and current machine learning (ML) models such as LSTM, GRU, and Transformer based on performance evaluation metrics. NAFS outperforms ANFIS and ANN, with MSE of 1.678. NAFS predicts water quality better than ANFIS and ANN, with RMSE of 1.295. NAFS captures complicated water quality parameter interdependencies better than ANN and ANFIS using principal component analysis (PCA) and Pearson correlation. The performance comparison shows that NAFS outperforms all baseline models with the lowest MAE, MSE, RMSE and MAPE, and the highest R2, confirming its superior accuracy. PCA is employed to reduce data dimensionality and identify the most influential water quality parameters. It reveals that two principal components account for 72% of the total variance, highlighting key contributors to WQI and supporting feature prioritization in the NAFS model. The Breusch–Pagan test reveals heteroscedasticity in residuals, justifying the use of non-linear models over linear methods. The Shapiro–Wilk test indicates non-normality in residuals. This shows that the NAFS model can handle complex, non-linear environmental variables better than previous water quality prediction research. NAFS not only can predict water quality index values but also enhance WQI estimation.
Water quality assessment plays a vital role in environmental monitoring and resource management. This study aims to enhance the predictive modeling of the Water Quality Index (WQI) using a combination of statistical diagnostics and machine learning techniques. Data collected from six river locations in Malaysia are analyzed. The methodology involves collecting water quality data from six river locations in Malaysia, followed by a series of statistical analyses including assumption testing (shapiro–wilk and breusch–pagan tests), diagnostic evaluations, feature importance analysis, and principal component analysis (PCA). Decision tree regression (DTR) and autoregressive integrated moving average (ARIMA) are employed for regression, while random forest is used for classification. Learning curve analysis is conducted to evaluate model performance and generalization. The results indicate that dissolved oxygen (DO) and ammoniacal nitrogen (AN) are the most influential parameters, with normalized importance scores of 1.000 and 0.565, respectively. The breusch–pagan test identifies significant heteroscedasticity (p-value = ), while the Shapiro–Wilk test confirms non-normality (p-value = 0.0). PCA effectively reduces dimensionality while preserving 95% of dataset variance, optimizing computational efficiency. Among the regression models, ARIMA demonstrates better predictive accuracy than DTR. Meanwhile, random forest achieves high classification performance and shows strong generalization capability with increasing training data. Learning curve analysis reveals overfitting in the regression model, suggesting the need for hyperparameter tuning, while the classification model demonstrates improved generalization with additional training data. Strong correlations among key parameters indicate potential multicollinearity, emphasizing the need for careful feature selection. These findings highlight the synergy between statistical pre-processing and machine learning, offering a more accurate and efficient approach to water quality prediction for informed environmental policy and real-time monitoring systems.
Surface water resources are under growing pressure from urbanization, industrial activity, and agriculture, making effective monitoring essential for safeguarding ecological integrity and human use. Conventional monitoring methods, which rely on manual sampling and rigid Water Quality Index (WQI) categories, often provide delayed feedback and oversimplify conditions near classification thresholds, limiting their usefulness for timely management. To overcome these shortcomings, we have developed an interactive fuzzy logic-based water quality monitoring interface or dashboard that integrates the WQI developed by Malaysia’s Department of Environment with the National Water Quality Standards (NWQS) Class I–V framework. The interface combines conventional WQI computation with advanced visualization tools such as dynamic gauges, parameter tables, fuzzy membership graphs, scatter plots, heatmaps, and bar charts. Then, triangular membership functions map six key parameters to NWQS classes, providing smoother and more nuanced interpretation compared to rigid thresholds. In addition to that, the dashboard enables clearer communication of trends, supports timely decision-making, and demonstrates adaptability for broader applications since it is implemented on the Replit platform. Finally, evaluation results show that the fuzzy interface improves interpretability by resolving ambiguities in over 15% of cases near class boundaries and facilitates faster assessment of pollution trends compared to conventional reporting. Thus, these contributions highlight the necessity and value of the research on advancing Malaysia’s national water quality monitoring and providing a scalable framework for international contexts.