Next Article in Journal
Framework for Dynamic Modelling of the Dam and Reservoir System Reduced Functionality in Adverse Operating Conditions
Next Article in Special Issue
Marine Environmental Capacity in Sanmen Bay, China
Previous Article in Journal
Biological Mineralization of Methyl Orange by Pseudomonas aeruginosa
Previous Article in Special Issue
Analysis of Seasonal Variations in Surface Water Quality over Wet and Dry Regions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Using Machine Learning Models for Predicting the Water Quality Index in the La Buong River, Vietnam

by
Dao Nguyen Khoi
1,2,*,
Nguyen Trong Quan
3,
Do Quang Linh
4,
Pham Thi Thao Nhi
3 and
Nguyen Thi Diem Thuy
1,2
1
Faculty of Environment, University of Science, Ho Chi Minh City 700000, Vietnam
2
Vietnam National University, Ho Chi Minh City 700000, Vietnam
3
Institute for Computational Science and Technology, Ho Chi Minh City 700000, Vietnam
4
Institute of Hydrometeorology, Oceanology and Environment, Ho Chi Minh City 700000, Vietnam
*
Author to whom correspondence should be addressed.
Water 2022, 14(10), 1552; https://doi.org/10.3390/w14101552
Submission received: 29 March 2022 / Revised: 1 May 2022 / Accepted: 10 May 2022 / Published: 12 May 2022
(This article belongs to the Special Issue Surface Water Quality Modelling)

Abstract

:
For effective management of water quantity and quality, it is absolutely essential to estimate the pollution level of the existing surface water. This case study aims to evaluate the performance of twelve machine learning (ML) models, including five boosting-based algorithms (adaptive boosting, gradient boosting, histogram-based gradient boosting, light gradient boosting, and extreme gradient boosting), three decision tree-based algorithms (decision tree, extra trees, and random forest), and four ANN-based algorithms (multilayer perceptron, radial basis function, deep feed-forward neural network, and convolutional neural network), in estimating the surface water quality of the La Buong River in Vietnam. Water quality data at four monitoring stations alongside the La Buong River for the period 2010–2017 were utilized to calculate the water quality index (WQI). Prediction performance of the ML models was evaluated by using two efficiency statistics (i.e., R2 and RMSE). The results indicated that all twelve ML models have good performance in predicting the WQI but that extreme gradient boosting (XGBoost) has the best performance with the highest accuracy (R2 = 0.989 and RMSE = 0.107). The findings strengthen the argument that ML models, especially XGBoost, may be employed for WQI prediction with a high level of accuracy, which will further improve water quality management.

1. Introduction

Surface water in rivers is a fundamental freshwater source, which plays an essential role in socio-economic development and the environment [1]. However, surface water bodies are under severe pressure because of exaggerated human activities, such as industrialization, urbanization, and population growth [2,3]. Additionally, poor management of water quantity and quality and climate change have reduced water quality during the past few decades, which leads to surface-water pollution [4,5]. Therefore, the evaluation and estimation of the water quality level in rivers are of great concern today.
The water quality index (WQI) has been extensively used to assess and classify the surface water and groundwater quality. This index by Brown et al. [6], is computed based on the physicochemical parameters of the water (e.g., temperature, pH, turbidity, dissolved oxygen (DO), biochemical oxygen demand (BOD), and concentrations of other pollutants), to estimate the level of water quality. The WQI provides quantitatively meaningful information to decision makers and planners for water resources management. However, the WQI formulations consist of lengthy calculations and thus require a lot of time and effort [5]. Additionally, the WQI formulations are inconsistent as these usually utilize different equations [7]. Accordingly, to deal with the mentioned issues, it is absolutely vital to have an alternative approach for computationally efficient and accurate estimation of the WQI.
In recent years, machine learning (ML) techniques have been extensively used for river water quality assessment, including WQI estimation [8]. These techniques have proved to be powerful tools for modeling complex non-linear behaviors in water-resource research [9]. Our literature review demonstrates that each ML algorithm has its strengths and shortcomings, and its behavior is dependent on the input variables of water quality in the different study regions. Regarding the simulation and prediction of water quality, the capability of adaptive boosting (Adaboost) [10], gradient boosting (GBM) [11], extreme gradient boosting (XGBoost) [12], decision tree (DT) [13,14], extra trees (ExT) [4], random forest (RF) [10,15], multilayer perceptron (MLP) [16], radial basis function (RBF) [17], deep feed-forward neural network (DFNN) [18], and convolutional neural network (CNN) [19] has been reported. Although there are many ML algorithms, researchers are still being confronted with problems, including which ML techniques should be applied or most appropriate for a specific problem.
In Vietnam, the WQI proposal by the Ministry of Environment and Natural Resources (MONRE) [20] requires lengthy calculations and consequently demands a lot of time and effort. However, to the best of our knowledge, no study on the use of machine learning techniques in predicting the WQI has been conducted in Vietnam. Therefore, the present study aimed to assess the performance of twelve ML algorithms, consisting of five boosting-based algorithms (Adaboost, GBM, histogram-based gradient boosting (HGBM), light gradient boosting (LightGBM), and XGBoost), three decision tree-based algorithms (DT, ExT, and RF), and four ANN-based algorithms (MLP, RBF, DFNN, and CNN), in predicting the WQI of the La Buong River in Vietnam. The La Buong River is one of the important rivers that provides water supply for domestic, agricultural, and industrial usages in the southern key economic region of Vietnam.

2. Study Area

The La Buong River (10°45′–11°00′ N, 106°50′–107°15′ E), a tributary of the Dong Nai River, has a length of approximately 56 km and a basin area of 475.8 km2 (Figure 1). The La Buong River Basin is located in the western part of the Dong Nai province in the southern key economic region of Vietnam. The topography of the basin ranges from 10 to 385 m above sea level. The basin has a tropical monsoon climate with two different seasons: a 6-month rainy season, lasting from May to October, and a 6-month dry season, lasting from November to April. The average annual temperature was 25.4 °C, the average annual rainfall was 1786 mm, and the average annual streamflow was 7.1 m3/s in the period 1981–2015 [21]. Rhodic Ferralsols and Ferric Acrisols are the main soils of the basin (accounting for approximately 75% of the basin area). More than 80% of land in the basin is utilized for agricultural development (cashew, coffee, and rubber). The La Buong River Basin is heavily influenced by cropping activities and livestock in the upper basin and industrial activities in the lower basin. Urbanization and industrial development are predicted to rise in the coming years [22].

3. Data and Methods

3.1. Data Collection and Processing

Eight years (2010 to 2017) of bimonthly WQ data at four WQ monitoring stations alongside the La Buong River (Figure 1) were collected from the Dong Nai Department of Natural Resources and Environment. The measured WQ data consisted of ten variables: temperature (T), pH, DO, BOD, COD, turbidity (TUR), total suspended solid (TSS), coliform, ammonium (NH4+), and phosphate (PO43−). Sampling, preservation, storage, and analysis procedures followed the national guidelines for monitoring surface water.
In the current study, the ten WQ variables were utilized to compute the WQI based on Decision No. 879/QD-TCMT, issued by the Ministry of Natural Resources and Environment (MONRE) of Vietnam [20]. The WQI is expressed as follows:
WQI = WQI pH 100 [ 1 5 a = 1 5 WQI a × 1 2 b = 1 2 WQI b × WQI c ] 1 / 3
where WQIa is the WQI values for chemical variables (DO, BOD, COD, NH4+, and PO43−), WQIb is the WQI values for physical variables (TSS and TUR), WQIc is the WQI value for biological variable (coliform), and WQIpH is the WQI value for pH.
Based on the WQI values, the river water quality is classified into five levels: excellent (WQI = 91–100), good (WQI = 76–90), fair (WQI = 51–75), poor (WQI = 26–50), and very poor (WQI = 0–25). Full details on the guideline for calculating WQI can be found in MONRE [20]. The descriptive statistics of the WQ variables and WQI is exhibited in Table 1. The TSS, TUR, and coliform concentrations presented considerable variations, with high coefficient of variation (CV) values of 153.9% for TSS, 158.4% for TUR, and 343.2% for coliform. The high differences in these variables can be explained by the sources (point source and nonpoint source) and nature of the pollution [23]. Furthermore, the differences can be associated with seasonal effects of hydro-climatic conditions in the study area. Additionally, the WQI values indicated that the water quality of the La Buong River varies from a very low quality (WQI = 3.02) to excellent quality (WQI = 98.30).
The La Buong River WQ data were divided into two parts: 70% for the training process and 30% for the testing process. The ratio of this division is used widely in the data-driven modeling [1,7]. To improve the training speed and predictive accuracy of the ML models, the WQ data were normalized to a 0–1 range before the modeling process using the following equation:
x i = x i x m i n x m a x x m i n
where x i and x i are the normalized and original values of a WQI variable (i.e., pH, DO, BOD, etc.) at a station, and x m i n and x m a x are the minimum and maximum values of that variable, respectively.

3.2. Machine Learning Models

As mentioned above, the current study utilized twelve ML models for predicting WQI with three major groups: boosting-based algorithms, decision tree-based algorithms, and ANN-based algorithms.

3.2.1. Boosting-Based Algorithms

Boosting algorithm is an ensemble meta-algorithm method that aims to improve the predictive performance of several given weaker algorithms by primarily reducing bias and variance in supervised learning problems [24]. The basic principle of the boosting method starts by creating a model from the training data, and then conducting a second model based on the previous one by reducing the bias error that arises when the first model could not infer the relevant patterns in the given data. Every time a new learning algorithm is added, the weights of data are readjusted, also known as “re-weighting”. These models are added sequentially until the training data is reasonably predicted or the maximum number of learners have been added to the ensemble model [25]. Five types of boosting-based algorithms were utilized in the current study, including adaptive boosting (AdaBoost), gradient boosting (GBM), histogram-based gradient boosting (HGBM), light gradient boosting (LightGBM), and extreme gradient boosting (XGBoost). Full details on these boosting-based algorithms can be found in Wu et al. [26].

3.2.2. Decision Tree-Based Algorithms

The decision tree and its many variants are the other types of learning algorithms that divide the input space into regions and has separate parameters for each region [27]. They are classified as the non-parametric supervised learning method that is widely applied for classification and regression, as well as visually and explicitly represent decisions and decision making. The typical structure of a decision tree is a tree-like flowchart, as the name goes, in which each internal node represents a “test” on an attribute, each branch represents the outcome of the test, and each leaf node represents a class label (decision taken after computing all attributes). Besides, the paths from root to leaf represent classification rules. In the present study, three decision tree-based models were assessed with respect to different learning algorithms, including decision tree (DT), extra trees (ExT), and random forest (RF). Full details on these decision tree-based algorithms can be found in Ahmad et al. [28].

3.2.3. ANN-Based Algorithms

In recent decades, AI-based models have been developed considerably to achieve a state-of-the-art architecture, comprising a number of learning algorithms and modern computational structures, across various aspects in studies on river water quality modeling [8]. ANN-based models have recently gained popularity due to its robustness and capability to handle nonlinear data even with its typically structured, single hidden layer, or advanced-structured, multiple hidden layers. Basically, ANN includes three layers: input, hidden, and output layers. In case of increasing complexity of the problem, the number of layers will rise and the computational resources will consequently also rise. In this study, both the mentioned structures of the ANN-based models were utilized for predicting WQI, such as multilayer perceptron (MLP), radial basis function (RBF), deep feed-forward neural network (DFNN), and convolutional neural network (CNN). Full details on these ANN-based algorithms can be found in Tiyasha et al. [8] and Tahmasebi et al. [29].

3.3. Construction of ML Models

As a first important step for constructing the ML model, the selection of input variables is required to determine a sufficient number of the variables, which have enough underlying information to predict WQI. Moreover, this selection could improve the model accuracy by avoiding the undesirable impact on the predictive performance. In the current study, ten WQ variables were identified as potential inputs. There are several existing methods to assess the input combinations, including autocorrelation function, partial autocorrelation function, cross-correlation function, and correlation coefficient. In the midst of these techniques, the correlation coefficient was selected for the current study because of its efficient and straightforward [4].
Table 2 presents that the WQ variable with the highest value of R2 was coliform, followed by TSS, TUR, COD, BOD, PO43−, NH4+, pH, DO, and T. It is noteworthy that the WQ variables of coliform, TUR, and TSS had the highest correlations with WQI due to impacts of cropping and livestock activities on water quality in the La Buong River. Based on the correlations of ten WQ variables with WQI, ten input variable combinations are listed in Table 3.
After selecting the input WQ variables, the fitted values of model parameters for each ML model were determined using a “trial and error” technique [23]. With the twelve ML models and ten scenarios of input variable combinations, 120 ML models for predicting the WQI were built during the training process and the performance of these models was evaluated during the testing process [7]. In the present study, the scikit-learn library, a Python-based package, was utilized to develop the twelve ML modes for predicting the WQI.

3.4. Performance Evaluation of ML Models

In the current study, two model efficiency statistics, namely, the root mean square error (RMSE) and coefficient of determination (R2), were utilized to evaluate the goodness of fit between the predictions and observations. RMSE measures the deviation between the observed and predicted values, and R2 measures the degree of correlation between the observed and predicted data [30].
RMSE = i = 1 n ( O i P i ) 2 n
R 2 = 1 i = 1 n ( O i P i ) 2 i = 1 n ( O i O ¯ ) 2
where n is the total number of predicted values, Oi is the observed value,   O ¯ is the mean of observed values, and Pi is the predicted value.

4. Results and Discussion

4.1. Performance Evaluation of Boosting-Based Models

Table 4 exhibits the model performance of the boosting-based algorithms during the testing process. Results showed that AdaBoost-S2 (R2 = 0.973 and RMSE = 0.175) had the highest performance in predicting WQI among the AdaBoost models, GBM-S7 (R2 = 0.989 and RMSE = 0.108) had the highest performance among the GBM models, HGBM-S2 (R2 = 0.967 and RMSE = 0.183) had the highest performance among the GBM models, LightGBM-S6 (R2 = 0.986 and RMSE = 0.119) had the highest performance among the LightGBM models, and XGBoost-S9 (R2 = 0.989 and RMSE = 0.107) had the highest performance among the XGBoost models under the S1–S10 scenarios. Additionally, the comparison plots of the measured WQI values with the WQI values predicted by AdaBoost-S2, GBM-S7, HGBM-S2, LightGBM-S6, and XGBoost-S9 in the testing period are shown in Figure 2. Generally, these models replicated very well the measured WQI during the testing period. However, there are small discrepancies between the measured and predicted WQI high or low values (especially those of AdaBoost-S2 and HGBM-S2). On the whole, the comparison between the boosting-based models under the S1–S10 scenarios demonstrates the XGBoost-S9 model as the best performance model.

4.2. Performance Evaluation of Decision Tree-Based Models

Table 4 also presents the model performance of the decision tree-based algorithms during the testing process. The results indicated that DT-S5 (R2 = 0.979 and RMSE = 0.147), ExT-S5 (R2 = 0.985 and RMSE = 0.126), and RF-S5 (R2 = 0.986 and RMSE = 0.121) had the highest performance in predicting WQI among the DT models, ExT models, and RF models under the S1–S10 scenarios, respectively. Figure 3 displays the comparisons between the predicted and measured WQI for the DT-S5, ExT-S5, and RF-S5 models during the testing period. In general, all three models reproduced well the measured WQI and small differences between the measured and predicted WQI high or low values can be seen. Regarding the model performance of the decision tree-based models, RF-S5 had the highest accurate prediction.

4.3. Performance Evaluation of ANN-Based Models

According to the model performance of the ANN-based algorithms during the testing period (Table 4), MLP-S4 (R2 = 0.984 and RMSE = 0.132), RBF-S2 (R2 = 0.887 and RMSE = 0.360), DFNN-S2 (R2 = 0.973 and RMSE = 0.162), and CNN-S7 (R2 = 0.982 and RMSE = 0.139) are the best models for predicting WQI among the MLP models, RBF models, DFNN models, and CNN models under the S1–S10 scenarios, respectively. Figure 4 illustrates the comparisons between the predicted and measured WQI for the MLP-S4, RBF-S2, DFNN-S2, and CNN-S7 models during the testing period. Generally, these four models reproduced well the measured WQI during the testing period. Moreover, small differences between the measured and predicted WQI high or low values can be observed for most models, except for RBF-S2, which show a considerable discrepancy. Regarding the model performance of the ANN-based models, MLP-S4 had the highest accurate prediction (R2 = 0.984 and RMSE = 0.132).

4.4. Discussion

A comparison of twelve ML models, including five boosting-based algorithms (Adaboost, GBM, HGBM, LightGBM, and XGBoost), three decision tree-based algorithms (DT, ExT, and RF), and four ANN-based algorithms (MLP, RBF, DFNN, and CNN), was conducted to evaluate their performance in predicting the WQI based on the model efficiency statistics. Based on the model performance of the twelve ML models, our findings indicate that all ML models could predict the WQI well for this study area, but the best scenarios of input variables to the ML models are different. This can be explained by the fact that each ML algorithm will respond in a different way to different input variables and data patterns [31]. As reported by Morton and Henderson [32] and Yang and Moyer [33], water quality data are characterized by a nonlinear distribution. In general, Adaboost, HGBM, RBF, and DFNN achieved good results under the S2 scenario of the input variables; DT, ExT, and RF achieved good results under the S5 scenario; and GBM and CNN achieved good results under the S7 scenario. In addition, MLP, LightGBM, and XGBoost performed well in Scenarios S4, S6, and S9, respectively. These findings indicate that most accurate prediction is dependent on the ML model parameters for the given scenario of input variables, which is consistent with results of Hussain and Khan [31].
After comparison of all twelve ML models, it indicated that the XGBoost model outperforms other ML models in the study area. In comparison with other studies, DFNN performs better than XGBoost, MLP, and RF in the Mahanadi River Basin in India [5]. Asadollah et al. [4] indicated that ExT is superior to DT and support vector regression (SVR) in the Lam Tsuen River in Hong Kong. Moreover, DT performs better as compared to the MLP model in the Rawal Dam lake in Pakistan [14]. In general, different ML algorithms will give different performance when applied to different regions. Therefore, exploring and developing a generalized ML model for applications of water quality assessment is an ongoing struggle.
As stated in previous studies, an important gap is a lack of considering cross influences between the explanatory variables, namely, the cross-correlation between land-use classes and the cross-correlation between climate conditions in influencing river water quality [34,35,36]. Land-use change and climate change affect hydrological components, and consequently river discharge and pollutant transport [21]. Therefore, it is essential to take into account land-use and climate changes, which may improve the accuracy of the ML models.

5. Conclusions

This research work was conducted to investigate the capability of twelve ML models, namely, five boosting-based algorithms (Adaboost, GBM, HGBM, LightGBM, XGBoost), three decision tree-based algorithms (DT, ExT, and R)), and four ANN-based algorithms (MLP, RBF, DFNN, and CNN), in predicting the WQI. The four WQ monitoring stations alongside the La Buong River were considered as a case study. Two model efficiency statistics (i.e., R2 and RMSE) were chosen for performance comparison of the different ML models. XGBoost achieved an R2 of 0.989 and RMSE of 0.107 in the testing process, thus being the most appropriate ML algorithm in the study area. It was followed by GBM, LightGBM, RF, ExT, MLP, CNN, DT, DFNN, AdaBoost, HGBM, and RBF. Generally, our findings strengthen the argument that ML models, particularly XGBoost, can be utilized for predicting the WQI with a high degree of accuracy, which will further improve water quality management.

Author Contributions

Conceptualization, D.N.K.; methodology, D.N.K. and N.T.Q.; software, N.T.Q. and N.T.D.T.; validation, N.T.Q. and N.T.D.T.; formal analysis, N.T.Q. and N.T.D.T.; data curation, D.Q.L. and P.T.T.N.; writing—original draft preparation, D.N.K., N.T.Q., P.T.T.N., D.Q.L. and N.T.D.T.; writing—review and editing, D.N.K., N.T.Q., P.T.T.N., D.Q.L. and N.T.D.T.; visualization, P.T.T.N. and D.Q.L.; supervision, D.N.K.; project administration, D.N.K.; funding acquisition, D.N.K. All authors have read and agreed to the published version of the manuscript.

Funding

The research was supported by the Department of Science and Technology of Ho Chi Minh City, managed by Institute for Computational Science and Technology under the contract number 11/2020/HĐ-QPTKHCN.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to thank the Institute for Computational Science and Technology for supporting us to complete this research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nouraki, A.; Alavi, M.; Golabi, M.; Albaji, M. Prediction of water quality parameters using machine learning models: A case study of the Karun River, Iran. Environ. Sci. Pollut. Res. 2021, 28, 57060–57072. [Google Scholar] [CrossRef] [PubMed]
  2. Ambade, B.; Sethi, S.S. Health Risk Assessment and Characterization of Polycyclic Aromatic Hydrocarbon from the Hydrosphere. J. Hazard. Toxic Radioact. Waste 2021, 25, 05020008. [Google Scholar] [CrossRef]
  3. Ambade, B.; Sethi, S.S.; Giri, B.; Biswas, J.K.; Bauddh, K. Characterization, Behavior, and Risk Assessment of Polycyclic Aromatic Hydrocarbons (PAHs) in the Estuary Sediments. Bull. Environ. Contam. Toxicol. 2022, 108, 243–252. [Google Scholar] [CrossRef] [PubMed]
  4. Asadollah, S.B.H.S.; Sharafati, A.; Motta, D.; Yaseen, Z.M. River water quality index prediction and uncertainty analysis: A comparative study of machine learning models. J. Environ. Chem. Eng. 2021, 9, 104599. [Google Scholar] [CrossRef]
  5. Singha, S.; Pasupuleti, S.; Singha, S.S.; Singh, R.; Kumar, S. Prediction of groundwater quality using efficient machine learning technique. Chemosphere 2021, 276, 130265. [Google Scholar] [CrossRef]
  6. Brown, R.M.; McClelland, N.I.; Deininger, R.A.; Tozer, R.G. A water quality index-do we dare. Water Sew. Work. 1970, 117, 339–343. [Google Scholar]
  7. Bui, D.T.; Khosravi, K.; Tiefenbacher, J.; Nguyen, H.; Kazakis, N. Improving prediction of water quality indices using novel hybrid machine-learning algorithms. Sci. Total Environ. 2020, 721, 137612. [Google Scholar] [CrossRef]
  8. Tiyasha; Tung, T.M.; Yaseen, Z.M. A survey on river water quality modelling using artificial intelligence models: 2000–2020. J. Hydrol. 2020, 585, 124670. [Google Scholar] [CrossRef]
  9. Nearing, G.S.; Kratzert, F.; Sampson, A.K.; Pelissier, C.S.; Klotz, D.; Frame, J.M.; Prieto, C.; Gupta, H.V. What Role does Hydrological Science Play in the Age of Machine Learning? Water Resour. Res. 2021, 57, e2020WR028091. [Google Scholar] [CrossRef]
  10. El Bilali, A.; Taleb, A.; Brouziyne, Y. Groundwater quality forecasting using machine learning algorithms for irrigation purposes. Agric. Water Manag. 2021, 245, 106625. [Google Scholar] [CrossRef]
  11. Nayan, A.-A.; Kibria, M.G.; Rahman, M.O.; Saha, J. River Water Quality Analysis and Prediction Using GBM. In Proceedings of the 2020 2nd International Conference on Advanced Information and Communication Technology (ICAICT), Dhaka, Bangladesh, 28–29 November 2020; IEEE: New York, NY, USA, 2020; pp. 219–224. [Google Scholar]
  12. Bedi, S.; Samal, A.; Ray, C.; Snow, D. Comparative evaluation of machine learning models for groundwater quality assessment. Environ. Monit. Assess. 2020, 192, 776. [Google Scholar] [CrossRef] [PubMed]
  13. Radhakrishnan, N.; Pillai, A.S. Comparison of Water Quality Classification Models using Machine Learning. In Proceedings of the 2020 5th International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India, 10–12 June 2020; IEEE: New York, NY, USA, 2020; pp. 1183–1188. [Google Scholar]
  14. Ahmed, M.; Mumtaz, R.; Hassan Zaidi, S.M. Analysis of water quality indices and machine learning techniques for rating water pollution: A case study of Rawal Dam, Pakistan. Water Supply 2021, 21, 3225–3250. [Google Scholar] [CrossRef]
  15. Naloufi, M.; Lucas, F.S.; Souihi, S.; Servais, P.; Janne, A.; Wanderley Matos De Abreu, T. Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water 2021, 13, 2457. [Google Scholar] [CrossRef]
  16. Gazzaz, N.M.; Yusoff, M.K.; Aris, A.Z.; Juahir, H.; Ramli, M.F. Artificial neural network modeling of the water quality index for Kinta River (Malaysia) using water quality variables as predictors. Mar. Pollut. Bull. 2012, 64, 2409–2420. [Google Scholar] [CrossRef] [PubMed]
  17. Hameed, M.; Sharqi, S.S.; Yaseen, Z.M.; Afan, H.A.; Hussain, A.; Elshafie, A. Application of artificial intelligence (AI) techniques in water quality index prediction: A case study in tropical region, Malaysia. Neural Comput. Appl. 2017, 28, 893–905. [Google Scholar] [CrossRef]
  18. Bowes, B.D.; Wang, C.; Ercan, M.B.; Culver, T.B.; Beling, P.A.; Goodall, J.L. Reinforcement learning-based real-time control of coastal urban stormwater systems to mitigate flooding and improve water quality. Environ. Sci. Water Res. Technol. 2022. [Google Scholar] [CrossRef]
  19. Prasad, D.V.V.; Venkataramana, L.Y.; Kumar, P.S.; Prasannamedha, G.; Harshana, S.; Srividya, S.J.; Harrinei, K.; Indraganti, S. Analysis and prediction of water quality using deep learning and auto deep learning techniques. Sci. Total Environ. 2022, 821, 153311. [Google Scholar] [CrossRef]
  20. MONRE. Decision No. 879/QD-TCMT on the Guidelines for Calculating Water Quality Index (WQI); Ministry of Natural Resources and Environment: Hanoi, Vietnam, 2011.
  21. Khoi, D.N.; Nguyen, V.; Sam, T.T.; Nhi, P. Evaluation on Effects of Climate and Land-Use Changes on Streamflow and Water Quality in the La Buong River Basin, Southern Vietnam. Sustainability 2019, 11, 7221. [Google Scholar] [CrossRef] [Green Version]
  22. Grayman, W.M.; Day, H.J.; Luken, R. Regional water quality management for the Dong Nai River Basin, Vietnam. Water Sci. Technol. 2003, 48, 17–23. [Google Scholar] [CrossRef]
  23. Najah Ahmed, A.; Binti Othman, F.; Abdulmohsin Afan, H.; Khaleel Ibrahim, R.; Ming Fai, C.; Shabbir Hossain, M.; Ehteram, M.; Elshafie, A. Machine learning methods for better water quality prediction. J. Hydrol. 2019, 578, 124084. [Google Scholar] [CrossRef]
  24. Zhou, Z.-H. Ensemble Methods: Foundations and Algorithms, 1st ed.; Chapman and Hall: Boca Raton, FL, USA, 2012. [Google Scholar]
  25. Schapire, R.E. The Boosting Approach to Machine Learning: An Overview. In Nonlinear estimation and classification; Springer: Berlin/Heidelberg, Germany, 2003; pp. 149–171. [Google Scholar]
  26. Wu, T.; Zhang, W.; Jiao, X.; Guo, W.; Hamoud, Y.A. Comparison of five Boosting-based models for estimating daily reference evapotranspiration with limited meteorological variables. PLoS ONE 2020, 15, e0235324. [Google Scholar] [CrossRef] [PubMed]
  27. Geetha, A.; Nasira, G.M. Data mining for meteorological applications: Decision trees for modeling rainfall prediction. In Proceedings of the 2014 IEEE International Conference on Computational Intelligence and Computing Research, Coimbatore, India, 18–20 December 2014; IEEE: New York, NY, USA, 2014; pp. 1–4. [Google Scholar]
  28. Ahmad, M.W.; Reynolds, J.; Rezgui, Y. Predictive modelling for solar thermal energy systems: A comparison of support vector regression, random forest, extra trees and regression trees. J. Clean. Prod. 2018, 203, 810–821. [Google Scholar] [CrossRef]
  29. Tahmasebi, P.; Kamrava, S.; Bai, T.; Sahimi, M. Machine learning in geo- and environmental sciences: From small to large scale. Adv. Water Resour. 2020, 142, 103619. [Google Scholar] [CrossRef]
  30. Krause, P.; Boyle, D.P.; Bäse, F. Comparison of different efficiency criteria for hydrological model assessment. Adv. Geosci. 2005, 5, 89–97. [Google Scholar] [CrossRef] [Green Version]
  31. Hussain, D.; Khan, A.A. Machine learning techniques for monthly river flow forecasting of Hunza River, Pakistan. Earth Sci. Informatics 2020, 13, 939–949. [Google Scholar] [CrossRef]
  32. Morton, R.; Henderson, B.L. Estimation of nonlinear trends in water quality: An improved approach using generalized additive models. Water Resour. Res. 2008, 44, W07420. [Google Scholar] [CrossRef]
  33. Yang, G.; Moyer, D.L. Estimation of nonlinear water-quality trends in high-frequency monitoring data. Sci. Total Environ. 2020, 715, 136686. [Google Scholar] [CrossRef]
  34. Kouadri, S.; Elbeltagi, A.; Islam, A.R.M.T.; Kateb, S. Performance of machine learning methods in predicting water quality index based on irregular data set: Application on Illizi region (Algerian southeast). Appl. Water Sci. 2021, 11, 190. [Google Scholar] [CrossRef]
  35. Kung, C.-C.; Wu, T. Influence of water allocation on bioenergy production under climate change: A stochastic mathematical programming approach. Energy 2021, 231, 120955. [Google Scholar] [CrossRef]
  36. Kung, C.-C.; Mu, J.E. Prospect of China’s renewable energy development from pyrolysis and biochar applications under climate change. Renew. Sustain. Energy Rev. 2019, 114, 109343. [Google Scholar] [CrossRef]
Figure 1. The La Buong River and location of the WQ monitoring stations.
Figure 1. The La Buong River and location of the WQ monitoring stations.
Water 14 01552 g001
Figure 2. Temporal variation in the observed and predicted WQI values for the best performance models using boosting-based algorithms during the testing period. (a) AdaBoost-S2. (b) GBM-S7. (c) HGBM-S2. (d) LightGBM-S6. (e) XGBoost-S9.
Figure 2. Temporal variation in the observed and predicted WQI values for the best performance models using boosting-based algorithms during the testing period. (a) AdaBoost-S2. (b) GBM-S7. (c) HGBM-S2. (d) LightGBM-S6. (e) XGBoost-S9.
Water 14 01552 g002aWater 14 01552 g002b
Figure 3. Temporal variation in the observed and predicted WQI values for the best performance models using decision tree-based algorithms during the testing period. (a) DT-S5. (b) ExT-S5. (c) RF-S5.
Figure 3. Temporal variation in the observed and predicted WQI values for the best performance models using decision tree-based algorithms during the testing period. (a) DT-S5. (b) ExT-S5. (c) RF-S5.
Water 14 01552 g003
Figure 4. Temporal variation in the observed and predicted WQI values for the best performance models using ANN-based algorithms during the testing period. (a) MLP-S4. (b) RBF-S2. (c) DFNN-S2. (d) CNN-S7.
Figure 4. Temporal variation in the observed and predicted WQI values for the best performance models using ANN-based algorithms during the testing period. (a) MLP-S4. (b) RBF-S2. (c) DFNN-S2. (d) CNN-S7.
Water 14 01552 g004
Table 1. Descriptive statistics of the observed WQ variables and WQI in the La Buong River during 2010–2017 (n = 220).
Table 1. Descriptive statistics of the observed WQ variables and WQI in the La Buong River during 2010–2017 (n = 220).
VariablesUnitMinMaxMeanMedianStd. DeviationCV%
T°C25.6032.8028.5928.551.485.2%
pH 5.848.427.037.070.395.6%
DOmg/L2.048.635.756.121.531.5%
BODmg/L2.0024.006.405.003.663.6%
CODmg/L3.00113.0019.8716.0014.9115.6%
NH4+mg/L0.0311.100.890.311.521.5%
PO43mg/L0.022.900.580.510.410.4%
TSSmg/L2.001402.0085.4831.00156.52153.9%
TURNTU2.001280.0082.3624.00158.36158.4%
ColiformMPN/100 mL430.00930,000.0028,195.009300.0096,766.23343.2%
WQI 3.0298.3042.7233.9131.8679.3%
Table 2. Coefficient of determination (R2) between the ten WQ variables and WQI.
Table 2. Coefficient of determination (R2) between the ten WQ variables and WQI.
VariablesTpHDOBODCODNH4+PO43−TSSTURColiform
R20.0560.1070.0690.2610.3850.3640.2760.5650.4760.775
Table 3. Scenarios of input variables for the current study.
Table 3. Scenarios of input variables for the current study.
ScenariosInput Variables
S1Coliform
S2Coliform, TSS
S3Coliform, TSS, TUR
S4Coliform, TSS, TUR, COD
S5Coliform, TSS, TUR, COD, BOD
S6Coliform, TSS, TUR, COD, BOD, PO43
S7Coliform, TSS, TUR, COD, BOD, PO43, NH4+
S8Coliform, TSS, TUR, COD, BOD, PO43, NH4+, pH
S9Coliform, TSS, TUR, COD, BOD, PO43, NH4+, pH, DO
S10Coliform, TSS, TUR, COD, BOD, PO43, NH4+, pH, DO, T
Table 4. Efficiency statistics of the 12 ML model under the 10 scenarios of input variable combinations during the testing process.
Table 4. Efficiency statistics of the 12 ML model under the 10 scenarios of input variable combinations during the testing process.
Models S1S2S3S4S5S6S7S8S9S10
AdaBoostRMSE0.5500.1750.2110.2050.2050.2070.2120.2120.2210.219
R20.6900.9730.9590.9600.9620.9640.9600.9610.9550.958
GBMRMSE0.5520.1830.1300.1310.1180.1200.1080.1220.1170.109
R20.6820.9670.9830.9830.9860.9860.9890.9860.9870.989
HGBMRMSE0.5420.1830.2030.2040.2020.2030.1980.1980.1970.200
R20.6950.9670.9580.9570.9580.9580.9600.9600.9600.959
LightGBMRMSE0.5450.1660.1380.1550.1520.1190.1600.1580.1430.167
R20.6910.9730.9810.9760.9770.9860.9740.9750.9790.972
XGBoostRMSE0.5520.1790.1330.1270.1210.1120.1200.1190.1070.111
R20.6830.9680.9820.9840.9860.9880.9860.9870.9890.988
DTRMSE0.5530.2060.1830.1580.1470.2160.1990.2050.1990.238
R20.6810.9570.9660.9760.9790.9540.9600.9570.9600.941
ExTRMSE0.5530.1770.1580.1640.1260.1490.1990.1420.2020.197
R20.6810.9680.9740.9730.9850.9780.9630.9810.9590.962
RFRMSE0.5540.1620.1260.1270.1210.1230.1250.1230.1230.129
R20.6800.9740.9840.9840.9860.9850.9850.9850.9850.984
MLPRMSE0.5320.1530.1920.1320.1410.1960.9280.3070.9960.515
R20.7110.9760.9640.9840.9800.9610.1270.9010.0800.768
RBFRMSE0.6200.3600.3850.5110.5950.5620.6320.7280.8450.803
R20.6790.8870.8580.7600.6870.6890.6070.5160.2760.370
DFNNRMSE0.5430.1620.1700.1690.1890.1900.2150.1730.2060.217
R20.7020.9730.9720.9710.9710.9670.9530.9720.9580.954
CNNRMSE0.4850.1850.2030.1800.1580.2210.1390.2430.2650.348
R20.7730.9650.9620.9640.9770.9610.9820.9420.9370.895
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Khoi, D.N.; Quan, N.T.; Linh, D.Q.; Nhi, P.T.T.; Thuy, N.T.D. Using Machine Learning Models for Predicting the Water Quality Index in the La Buong River, Vietnam. Water 2022, 14, 1552. https://doi.org/10.3390/w14101552

AMA Style

Khoi DN, Quan NT, Linh DQ, Nhi PTT, Thuy NTD. Using Machine Learning Models for Predicting the Water Quality Index in the La Buong River, Vietnam. Water. 2022; 14(10):1552. https://doi.org/10.3390/w14101552

Chicago/Turabian Style

Khoi, Dao Nguyen, Nguyen Trong Quan, Do Quang Linh, Pham Thi Thao Nhi, and Nguyen Thi Diem Thuy. 2022. "Using Machine Learning Models for Predicting the Water Quality Index in the La Buong River, Vietnam" Water 14, no. 10: 1552. https://doi.org/10.3390/w14101552

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop