1
|
Wang X, Li Y, Qiao Q, Tavares A, Liang Y. Water Quality Prediction Based on Machine Learning and Comprehensive Weighting Methods. ENTROPY (BASEL, SWITZERLAND) 2023; 25:1186. [PMID: 37628216 PMCID: PMC10453428 DOI: 10.3390/e25081186] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Received: 06/30/2023] [Revised: 07/26/2023] [Accepted: 08/02/2023] [Indexed: 08/27/2023]
Abstract
In the context of escalating global environmental concerns, the importance of preserving water resources and upholding ecological equilibrium has become increasingly apparent. As a result, the monitoring and prediction of water quality have emerged as vital tasks in achieving these objectives. However, ensuring the accuracy and dependability of water quality prediction has proven to be a challenging endeavor. To address this issue, this study proposes a comprehensive weight-based approach that combines entropy weighting with the Pearson correlation coefficient to select crucial features in water quality prediction. This approach effectively considers both feature correlation and information content, avoiding excessive reliance on a single criterion for feature selection. Through the utilization of this comprehensive approach, a comprehensive evaluation of the contribution and importance of the features was achieved, thereby minimizing subjective bias and uncertainty. By striking a balance among various factors, features with stronger correlation and greater information content can be selected, leading to improved accuracy and robustness in the feature-selection process. Furthermore, this study explored several machine learning models for water quality prediction, including Support Vector Machines (SVMs), Multilayer Perceptron (MLP), Random Forest (RF), XGBoost, and Long Short-Term Memory (LSTM). SVM exhibited commendable performance in predicting Dissolved Oxygen (DO), showcasing excellent generalization capabilities and high prediction accuracy. MLP demonstrated its strength in nonlinear modeling and performed well in predicting multiple water quality parameters. Conversely, the RF and XGBoost models exhibited relatively inferior performance in water quality prediction. In contrast, the LSTM model, a recurrent neural network specialized in processing time series data, demonstrated exceptional abilities in water quality prediction. It effectively captured the dynamic patterns present in time series data, offering stable and accurate predictions for various water quality parameters.
Collapse
Affiliation(s)
- Xianhe Wang
- School of Applied Chemistry and Materials, Zhuhai College of Science and Technology, Zhuhai 519041, China; (X.W.); (Y.L.)
- Department of Industrial Electronics, School of Engineering, University of Minho, 4704-553 Braga, Portugal
| | - Ying Li
- School of Applied Chemistry and Materials, Zhuhai College of Science and Technology, Zhuhai 519041, China; (X.W.); (Y.L.)
- Department of Industrial Electronics, School of Engineering, University of Minho, 4704-553 Braga, Portugal
| | - Qian Qiao
- School of Applied Chemistry and Materials, Zhuhai College of Science and Technology, Zhuhai 519041, China; (X.W.); (Y.L.)
| | - Adriano Tavares
- Department of Industrial Electronics, School of Engineering, University of Minho, 4704-553 Braga, Portugal
| | - Yanchun Liang
- School of Computer Science, Zhuhai College of Science and Technology, Zhuhai 519041, China
- Key Laboratory of Symbol Computation and Knowledge Engineering of the Ministry of Education, College of Computer Science and Technology, Jilin University, 2699 Qianjin Street, Changchun 130012, China
| |
Collapse
|
2
|
Kayhomayoon Z, Naghizadeh F, Malekpoor M, Arya Azar N, Ball J, Ghordoyee Milan S. Prediction of evaporation from dam reservoirs under climate change using soft computing techniques. ENVIRONMENTAL SCIENCE AND POLLUTION RESEARCH INTERNATIONAL 2023; 30:27912-27935. [PMID: 36385346 DOI: 10.1007/s11356-022-23899-5] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 06/15/2022] [Accepted: 10/24/2022] [Indexed: 06/16/2023]
Abstract
This study aimed to predict evaporation from dam reservoirs using artificial intelligence considering climate change. Mahabad Dam, near Lake Urmia, in northwestern Iran, is used to investigate the proposed approach. There are three parts to the study presented herein. In the first part, two machine learning models, namely group method of data handling (GMDH) and least squares support vector regression (LS-SVR), were used to model the inflow to the dam reservoir. Temperature, precipitation, and inflow during the previous month from 1990 to 2017 were used as input data. In the second part, the evaporation from the dam reservoir was modeled using the adaptive neuro-fuzzy inference system (ANFIS) and optimized ANFIS using Harris hawks optimization (HHO) and the arithmetic optimization algorithm (AOA) optimization algorithms. The input parameters in this part were temperature, precipitation, inflow to the dam reservoir, along with evaporation from the dam reservoir in the previous month. In the third part, precipitation and temperature were predicted using the fifth report of IPCC based on RCP2.6, RCP4.5, and RCP8.5 scenarios for the period 2020-2040. Out of 28 models presented in the fifth report, EC-ERATH and FIO-ESM had the greatest similarity with observational data of temperature and precipitation, respectively. The results of scatter plots and Taylor's diagram showed the higher performance of LS-SVR (root mean square error (RMSE), mean absolute percentage error (MAPE), and Nash-Sutcliffe efficiency (NSE) of 8.65, 4.69, and 0.96) compared to GMDH (RMSE, MAPE, and NSE of 11.65, 7.81, and 0.93) in modeling the inflow. Moreover, both hybrid modes (AOA-ANFIS and HHO-ANFIS) improved the performance of ANFIS in modeling the evaporation from the dam reservoir. The RMSE, MAPE, and NSE values for ANFIS were 0.56, 0.52, and 0.89, respectively, while these values for the AOA-ANFIS (RMSE, MAPE, and NSE of 0.31, 0.24, and 0.93) and HHO-ANFIS (RMSE, MAPE, and NSE of 0.20, 0.30, and 0.96) were improved remarkably. The impact of climate change reduced the inflow to the dam reservoir by about 0.45, 0.80, and 1.7 MCM in RCP2.6, RCP4.5, and RCP8.5 scenarios, respectively. Also, the effect of climate change caused the evaporation from the dam reservoir to increase by about 0.2, 0.9, and 1 MCM in RCP2.6, RCP4.5, and RCP8.5 scenarios, respectively. The findings of this study show that the correct management of dam reservoirs needs to consider the potential effects of climate change in the future. Moreover, the hybrid machine learning models used in this study can be used to predict the amount of evaporation in other reservoirs.
Collapse
Affiliation(s)
| | - Fariba Naghizadeh
- Department of Water Engineering, College of Agricultural Sciences, University of Guilan, Rasht, Iran
| | - Mohammadreza Malekpoor
- Department of Civil Engineering, Azarshahr Branch, Islamic Azad University, Azarshahr, Iran
| | - Naser Arya Azar
- Department of Water Engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran
| | - James Ball
- School of Civil and Environmental Engineering, University of Technology Sydney, Sydney, Australia
| | - Sami Ghordoyee Milan
- Department of Irrigation and Drainage Engineering, Aburaihan Campus, University of Tehran, Tehran, Iran
| |
Collapse
|
3
|
Yan J, Li G, Qi G, Yao X, Song M. Improved feed forward with bald eagle search for conjunctive water management in deficit region. CHEMOSPHERE 2022; 309:136614. [PMID: 36181848 DOI: 10.1016/j.chemosphere.2022.136614] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 06/11/2022] [Revised: 09/13/2022] [Accepted: 09/25/2022] [Indexed: 06/16/2023]
Abstract
Due to increasing requirements on water resources and a lower recharge rate, the farming seasons are a vital season for the management of groundwater and surface water resource management. This condition necessitates the use of combined water distribution to meet the full water requirements. Analysis of existing surface water resources and related restrictions, this research suggested an algorithm for aquifer stabilization and fulfilling optimum water requirements. To manage the optimum withdrawals and the subsequent drop, this technique first employed the MODFLOW model for simulating the water levels. Next, an improved feed-forward neural network (IFFNN) was combined with an optimization method to create a machine learning (ML) framework. During the last phase, the findings of the optimized connectives approach as well as the relevant fields technologies to determine using improved bald eagle search with least square SVM(IBES-LSSVM) method that predicted the level of water deficit for every period, especially during farming seasons. This approach is based on an improved bald eagle search (IBES) optimization technique for finding the best settings for a least-squares support vector machine (LSSVM). The findings revealed that between 2005 and 2020, the year with the biggest water deficit was 2018 when only roughly 64 percent of water need was satisfied by groundwater (69 percent) and surface water (64 percent) (33 percent). The water depth may have risen by around 0.7 m during the study period if the optimum model had been used. The outcome of this research will help the management forecast future water shortages and make smarter water strategic choices.
Collapse
Affiliation(s)
- Jixuan Yan
- College of Water Conservancy and Hydropower Engineering, Gansu Agricultural University, Lanzhou, 730070, China; College of Forestry, Gansu Agricultural University, Lanzhou, 730070, China.
| | - Guang Li
- Gansu Agricultural University, Lanzhou, 730070, China
| | - Guangping Qi
- College of Water Conservancy and Hydropower Engineering, Gansu Agricultural University, Lanzhou, 730070, China
| | - Xiangdong Yao
- College of Water Conservancy and Hydropower Engineering, Gansu Agricultural University, Lanzhou, 730070, China
| | - Miao Song
- College of Water Conservancy and Hydropower Engineering, Gansu Agricultural University, Lanzhou, 730070, China
| |
Collapse
|
4
|
Arya Azar N, Kayhomayoon Z, Ghordoyee Milan S, Zarif Sanayei H, Berndtsson R, Nematollahi Z. A hybrid approach based on simulation, optimization, and estimation of conjunctive use of surface water and groundwater resources. ENVIRONMENTAL SCIENCE AND POLLUTION RESEARCH INTERNATIONAL 2022; 29:56828-56844. [PMID: 35347629 DOI: 10.1007/s11356-022-19762-2] [Citation(s) in RCA: 2] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 10/12/2021] [Accepted: 03/13/2022] [Indexed: 06/14/2023]
Abstract
Due to limited groundwater resources in arid and semi-arid areas, conjunctive use of surface water and groundwater is becoming increasingly important. In view of this, there are needs to improve the methods for conjunctive use of surface and groundwater. Using numerical models, optimization algorithms, and machine learning, we created a new comprehensive methodological structure for optimal allocation of surface and groundwater resources and optimal extraction of groundwater. The surface and groundwater system was simulated by MODFLOW to reflect groundwater transport and aquifer conditions. The important Marvdasht aquifer in the south of Iran was used as an experimental study area to test the methodology. In this context, we developed an optimal conjunctive exploitation model for dry and wet years using two new evolutionary algorithms, i.e., whale optimization algorithm (WOA) and firefly algorithm (FA). These were used in combination with the group method of data handling (GMDH) and least squares support vector machine (LS-SVM) to estimate sustainable groundwater withdrawal. The results show that the FA is more efficient in calculating optimal conjunctive water supply so that about 61% of water needs were met in the worst scenario for surface water resources, while it was 52% using the WOA. By applying the optimal conjunctive model during the simulation period, the groundwater level increased by about 0.4 and 0.55 m using the WOA and FA, respectively. The results of Taylor's diagram, box plot diagram, and rock diagram with error evaluation criteria, i.e., root mean square error (RMSE), mean absolute error (MAE), and Nash-Sutcliffe efficiency (NSE), showed that the GMDH (RMSE = 6.04 MCM, MAE = 3.89 MCM, and NSE = 0.99) was slightly better than LS-SVM (RMSE = 6.36 MCM, MAE = 4.50 MCM, and NSE = 0.98) to estimate optimal groundwater use. The results show that machine learning models are cost- and time-effective solutions to estimate optimal exploitation of groundwater resources in complex combined surface and groundwater supply problems. The methodology can be used to better estimate sustainable exploitation of groundwater resources by water resources managers.
Collapse
Affiliation(s)
- Naser Arya Azar
- Department of Water Engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran
| | | | - Sami Ghordoyee Milan
- Department of Irrigation and Drainage Engineering, Aburaihan Campus, University of Tehran, Tehran, Iran.
| | - HamedReza Zarif Sanayei
- Civil Engineering, Faculty of Technology and Engineering, Shahre Kord University, Shahre Kord, Iran
| | - Ronny Berndtsson
- Division of Water Resources Engineering & Centre for Advanced Middle Eastern Studies, Lund University, Lund, Sweden
| | - Zahra Nematollahi
- Civil Engineering, Faculty of Technology and Engineering, Shahre Kord University, Shahre Kord, Iran
| |
Collapse
|
5
|
A Combination of Metaheuristic Optimization Algorithms and Machine Learning Methods Improves the Prediction of Groundwater Level. WATER 2022. [DOI: 10.3390/w14050751] [Citation(s) in RCA: 3] [Impact Index Per Article: 1.5] [Reference Citation Analysis] [Abstract] [Track Full Text] [Subscribe] [Scholar Register] [Indexed: 11/16/2022]
Abstract
Groundwater is a crucial source of water supply in drought conditions, and an auxiliary water source in wet seasons. Due to its increasing importance in view of climate change, predicting groundwater level (GWL) needs to be improved to enhance management. We used adaptive neuro-fuzzy inference systems (ANFIS) to predict the GWL of the Urmia aquifer in northwestern Iran under various input scenarios using precipitation, temperature, groundwater withdrawal, GWL during the previous month, and river flow. In total, 11 input patterns from various combinations of variables were developed. About 70% of the data were used to train the models, while the rest were used for validation. In a second step, several metaheuristic algorithms, such as genetic algorithm (GA), particle swarm optimization (PSO), ant colony optimization for continuous domains (ACOR), and differential evolution (DE) were used to improve the model and, consequently, prediction performance. The results showed that (i) RMSE, MAPE, and NSE of 0.51 m, 0.00037 m, and 0.86, respectively, were obtained for the ANFIS model using all input variables, indicating a rather poor performance, (ii) metaheuristic algorithms were able to optimize the parameters of the ANFIS model in predicting GWL, (iii) the input pattern that included all input variables resulted in the most appropriate performance with RMSE, MAPE, and NSE of 0.28 m, 0.00019 m, and 0.97, respectively, using the ANIFS-ACOR hybrid model, (iv) results of Taylor’s diagram (CC = 0.98, STD = 0.2, and RMSD = 0.30), as well as the scatterplot (R2 = 0.97), showed that best prediction was achieved by ANFIS-ACOR, and (v) temperature and evaporation exerted stronger influence on GWL prediction than groundwater withdrawal and precipitation. The findings of this study reveal that metaheuristic algorithms can significantly improve the performance of the ANFIS model in predicting GWL.
Collapse
|
6
|
A Simulation-Optimization Modeling Approach for Conjunctive Water Use Management in a Semi-Arid Region of Iran. SUSTAINABILITY 2022. [DOI: 10.3390/su14052691] [Citation(s) in RCA: 4] [Impact Index Per Article: 2.0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Subscribe] [Scholar Register] [Indexed: 02/02/2023]
Abstract
Agricultural months are the critical period for the allocation of surface water and groundwater resources due to the increased demands on water supplies and decreased recharge rate. This situation urges the necessity of using conjunctive water management to fulfill the entire water demand. Here, we proposed an approach for aquifer stabilization and meeting the maximum water demand based on the available surface and groundwater resources and their limitations. In this approach, we first used the MODFLOW model to simulate the groundwater level to control the optimal withdrawal and the resulting drop. We next used a whale optimization algorithm (WOA) to develop an optimized model for the planning of conjunctive use to minimize the monthly water shortage. In the final step, we incorporated the results of the optimized conjunctive model and the available field data into the least squares-support vector machine (LS-SVM) model to predict the amounts of water shortage for each month, particularly for the agricultural months. The results showed that during the period from 2005 to 2020, the most water shortage belonged to 2018, in which only about 52% of water demand was met with the contribution of groundwater (67%) and surface water (33%). However, the groundwater level could have increased by about 0.7 m during the study period by implementing the optimized model. The results of the third part revealed that LS-SVM could predict the water shortage with better performance with a root-mean-square error (RMSE), mean absolute percentage error (MAPE), and Nash–Sutcliffe Index of 5.70 m, 3.43%, and 0.89 m, respectively. The findings of this study will enable managers to predict the water shortage in future periods to make more informed decisions for water resource allocation.
Collapse
|