Water quality prediction using machine learning models based on grid search method
Mahmoud Y. Shams, Ahmed M. Elshewey, El‐Sayed M. El‐kenawy et al. · Multimedia Tools and Applications · 2023
Abstract Water quality is very dominant for humans, animals, plants, industries, and the environment. In the last decades, the quality of water has been impacted by contamination and pollution. In this paper, the challenge is to anticipate Water Quality Index (WQI) and Water Quality Classification (WQC), such that WQI is a vital indicator for water validity. In this study, parameters optimization and tuning are utilized to improve the accuracy of several machine learning models, where the machine learning techniques are utilized for the process of predicting WQI and WQC. Grid search is a vital method used for optimizing and tuning the parameters for four classification models and also, for optimizing and tuning the parameters for four regression models. Random forest (RF) model, Extreme Gradient Boosting (Xgboost) model, Gradient Boosting (GB) model, and Adaptive Boosting (AdaBoost) model are used as classification models for predicting WQC. K-nearest neighbor (KNN) regressor model, decision tree (DT) regressor model, support vector regressor (SVR) model, and multi-layer perceptron (MLP) regressor model are used as regression models for predicting WQI. In addition, preprocessing step including, data imputation (mean imputation) and data normalization were performed to fit the data and make it convenient for any further processing. The dataset used in this study includes 7 features and 1991 instances. To examine the efficacy of the classification approaches, five assessment metrics were computed: accuracy, recall, precision, Matthews's Correlation Coefficient (MCC), and F1 score. To assess the effectiveness of the regression models, four assessment metrics were computed: Mean Absolute Error (MAE), Median Absolute Error (MedAE), Mean Square Error (MSE), and coefficient of determination (R 2 ). In terms of classification, the testing findings showed that the GB model produced the best results, with an accuracy of 99.50% when predicting WQC values. According to the experimental results, the MLP regressor model outperformed other models in regression and achieved an R 2 value of 99.8% while predicting WQI values.
Cited by 340 works. doi:10.1007/s11042-023-16737-4 Open-access PDF
Authors
- Mahmoud Y. Shams
- Ahmed M. Elshewey
- El‐Sayed M. El‐kenawy
- Abdelhameed F. Ibrahim
- Fatma M. Talaat
- Zahraa Tarek
References
- XGBoost
- Stochastic gradient boosting
- When Is “Nearest Neighbor” Meaningful?
- Water Quality Assessment in Terms of Water Quality Index
- Hybrid decision tree-based machine learning models for short-term water quality prediction
- Water Quality Prediction Using Artificial Intelligence Algorithms
- Analysis and Prediction of Water Quality Using LSTM Deep Neural Networks in IoT Environment
- River water quality index prediction and uncertainty analysis: A comparative study of machine learning models
- Water quality prediction and classification based on principal component regression and gradient boosting classifier approach
- A Water Quality Prediction Method Based on the Deep LSTM Network Considering Correlation in Smart Mariculture