Simulation of monthly river flow using improved support vector machine regression model using gray wolf optimization algorithm

Document Type : Research Paper

Authors

1 Ph.D. Candidate, Department of Water Engineering, Kermanshah Branch, Islamic Azad University, Kermanshah, Iran

2 Department of Water Engineering, Kermanshah Branch, Islamic Azad University, Kermanshah, Iran.

3 Department of Water Engineering, Kermanshah Branch, Islamic Azad University, Kermanshah, Iran

Abstract

Measuring the flow of rivers is one of the most important issues in river management, that's why it is always tried to use accurate methods for its measurement. The aim of this study is to enhance the performance of Support Vector Regression (SVR) model using the Gray Wolf Optimization (GWO) algorithm for monthly river flow modeling. For this purpose, the monthly data of river flow, precipitation and temperature during 15 years (from 1400 to 2015) are used. The trial and error procedure is used to select the best input variables to the SVR and GWO-SVR models. Based on the results of this method, Q(t-1), R(t-1), T(t-1) are the best independent variables for simulating the variable Q_t. 80% of all data are used for training and 20% for validating the SVR and GWO-SVR models. Also, R^2, RMS and NSE indices are utilized to evaluate the efficiency of the models, linear (LKF), polynomial (PKF), radial basis function (RBF), and sigmoid (SKF) activation functions are used to develop the models. First, the trial and error procedure is used to determine the parameters of the activation functions. Based on the results of this study, the SVR model with the polynomial activation function has the best performance in the training and validation stage, and the worst performance with the linear activation function in the training and verification stages. Then, the GWO algorithm is used to determine the parameters of the activation functions. Based on the results, the SVR model performs better with the GWO algorithm. Therefore, to simulate the monthly flow of river using this model, it is better to use the GWO algorithm instead of the trial and error procedure.

Keywords

Main Subjects


EXTENDED ABSTRACT

Introduction

Scientists are always trying to use accurate methods to measure monthly river flow and model its time series. Artificial intelligence-based methods are one of the best and most accurate tools for this work, among various artificial intelligence methods, SVR is one of the most useful methods for modeling monthly river flow. One of the most important parts of this model is the activator function. Different activation functions can be used to develop this model. Each activator function has one or more parameters. Determining the optimal value of these parameters is one of the most important parts of developing any SVR model. The aim of this study is to evaluate the efficiency of the gray wolf optimization algorithm for simulating the parameters of the SVR model's activation functions and, as a result, to improve the accuracy of the monthly river flow simulation using this model.

Methods and Materials

For this purpose, the monthly information of monthly river flow, temperature and rainfall was used for a 15-year period (1385 to 1400). The best input variables to the model were selected using the trial and error method. Therefore, variables Q_(t-1) R_t, T_t were used to develop all models. After determining the best variables for simulating the monthly flow of the river, all information was normalized between zero and one to avoid model bias. Then, 80% of all data were used to train SVR and GWO-SVR models, and other data were used to evaluate the models. In this study, linear, radial base, simgoid and polynomial activator functions were used to train the SVR model. In this way, the efficiency of each of the SVR and GWO-SVR models was evaluated with each of these activation functions. Finally, RMSE, R^2 and NSE indicators were used to evaluate different models and compare their results. According to the results, SVR and GWO-SVR models with polynomial activation function have the best performance and linear activation function have the worst performance in the training and validation stage. Also, more precisely, among the various models, the GWO-SVR model with the polynomial activation function has the best performance and the SVR model with the linear activation function has the worst performance. Based on the results of this study, the GWO algorithm is a more suitable tool than the trial and error method for simulating the monthly river flow using the SVR model.

Results and Discussion

Based on the results of this study, the SVR model with polynomial activation function has the best performance in the training and validation phase, and with the linear activation function, it has the worst performance in the training and validation phase. Next, the GWO algorithm was used to determine the parameters of the activator functions. Based on the final results, the SVR model performs better with the GWO algorithm. Therefore, to simulate the monthly flow of river water using this model, it is better to use the GWO algorithm instead of the trial and error method.

Conclusion

After developing the SVR model with different activator functions, the results of these models were compared with each other. Based on the results of that study, the GWO-SVR(LKF) model performs better than the SVR(LKF) model. Also, the GWO-SVR(RBF) model has a better performance than the SVR(RBF) model. The GWO-SVR(SKF) model also performs better than the SVR(SKF) model. Like other models, the GWO-SVR(PKF) model also performs better than the SVR(PKF) model. Also, based on the comparison of the error indices of different models, the GWO-SVR(PKF) model performs better than all models in the training and validation stage, and the SVR(LKF) model has the worst performance. After the end of the training and testing process of different models, their sensitivity to different variables was evaluated. Based on the results of the sensitivity analysis, all models have the most sensitivity to the variable Q_(t-1) and the least sensitivity to the variable E.

Author Contributions:

For research articles with several authors, a short paragraph specifying their individual contributions must be provided. The following statements should be used “Conceptualization, Safora Pirouzmehr and Saeid Shabanlou; methodology, Safora Pirouzmehr and Saeid Shabanlou; software, Safora Pirouzmehr and Saeid Shabanlou and Fariborz yosefvand and Behrouz Yaghoubi and Ahmad Rajabi and Mohammad ali Izadbakhsh; validation, Safora Pirouzmehr and Saeid Shabanlou; formal analysis, Safora Pirouzmehr and Saeid Shabanlou; investigation, Safora Pirouzmehr and Saeid Shabanlou; resources, Safora Pirouzmehr and Saeid Shabanlou; data curation, Safora Pirouzmehr and Saeid Shabanlou; writing—original draft preparation, Safora Pirouzmehr and Saeid Shabanlou; writing—review and editing, Safora Pirouzmehr and Saeid Shabanlou and Fariborz yosefvand and Behrouz Yaghoubi and Ahmad Rajabi and Mohammad ali Izadbakhsh; visualization, Saeid Shabanlou; supervision, Saeid Shabanlou; project administration, Saeid Shabanlou; All authors have read and agreed to the published version of the manuscript.” Please turn to the CRediT taxonomy for the term explanation. Authorship must be limited to those who have contributed substantially to the work re-ported.

Data Availability Statement:

Data available on request from the authors

Acknowledgements

The authors would like to thank all participants of the present study.

Ethical considerations

 

The authors avoided data fabrication, falsification, plagiarism, and misconduct.

Conflict of interest:

The author declares no conflict of interest

Abualigah, L., & Diabat, A. (2020). A comprehensive survey of the Grasshopper optimization algorithm: results, variants, and applications. Neural computing and applications, 32(19), 15533-15556.
Awad, M., Khanna, R., Awad, M., & Khanna, R. (2015). Support vector regression. Efficient learning machines: Theories, concepts, and applications for engineers and system designers, 67-80.
Brierley, G. J., & Fryirs, K. A. (2013). Geomorphology and river management: applications of the river styles framework. John Wiley & Sons.
Cui, F., Salih, S. Q., Choubin, B., Bhagat, S. K., Samui, P., & Yaseen, Z. M. (2020). Newly explored machine learning model for river flow time series forecasting at Mary River, Australia. Environmental Monitoring and Assessment, 192, 1-15.
Fallahi, M.M., Yaghoubi, B., Yosevfand, F., Shabanlou, S. (2020). Improvement of Gene Expression Programming Model Performance using Wavelet Transform for the Estimation of Long-Term Rainfall in Rasht City. Jwss, 24(3), 1-16. (in Persian)
Faris, H., Aljarah, I., Al-Betar, M. A., & Mirjalili, S. (2018). Grey wolf optimizer: a review of recent variants and applications. Neural computing and applications, 30, 413-435.
Fathian, F., Mehdizadeh, S., Sales, A. K., & Safari, M. J. S. (2019). Hybrid models to improve the monthly river flow prediction: Integrating artificial intelligence and non-linear time series models. Journal of Hydrology, 575, 1200-1213.
Goorani, Z., & Shabanlou, S. (2021). Multi-objective optimization of quantitative-qualitative operation of water resources systems with approach of supplying environmental demands of Shadegan Wetland. Journal of Environmental Management, 292, 112769.
Hearst, M. A., Dumais, S. T., Osuna, E., Platt, J., & Scholkopf, B. (1998). Support vector machines. IEEE Intelligent Systems and their applications, 13(4), 18-28.
Heidari, A. A., Mirjalili, S., Faris, H., Aljarah, I., Mafarja, M., & Chen, H. (2019). Harris hawks optimization: Algorithm and applications. Future generation computer systems, 97, 849-872.
Jalili, A.A., Najarchi, M., Shabanlou, S. et al. Multi-objective Optimization of water resources in real time based on integration of NSGA-II and support vector machines. Environ Sci Pollut Res 30, 16464–16475 (2023). https://doi.org/10.1007/s11356-022-22723-4
Kamboj, V. K., Nandi, A., Bhadoria, A., & Sehgal, S. (2020). An intensify Harris Hawks optimizer for numerical and engineering optimization problems. Applied Soft Computing, 89, 106018.
Marlia, M., Syaharuddin, S., Handy, M. R. N., Subiyakto, B., & Ilhami, M. R. (2022). Changes in the Behavior of the Riverside Community of Banua Anyar Village towards River Management Policies. The Kalimantan Social Studies Journal, 4(1), 48-55.
Mazraeh, A., Bagherifar, M., Shabanlou, S., & Ekhlasmand, R. (2023). A Hybrid Machine Learning Model for Modeling Nitrate Concentration in Water Sources. Water, Air, & Soil Pollution, 234(11), 1-22.
Mazraeh, A., Bagherifar, M., Shabanlou, S., & Ekhlasmand, R. (2024). A novel committee-based framework for modeling groundwater level fluctuations: A combination of mathematical and machine learning models using the weighted multi-model ensemble mean algorithm. Groundwater for Sustainable Development, 24, 101062.
Meraihi, Y., Gabis, A. B., Mirjalili, S., & Ramdane-Cherif, A. (2021). Grasshopper optimization algorithm: theory, variants, and applications. Ieee Access, 9, 50001-50024.
Mirjalili, S., Mirjalili, S. M., & Lewis, A. (2014). Grey wolf optimizer. Advances in engineering software, 69, 46-61.
Mojaddadi, H., Pradhan, B., Nampak, H., Ahmad, N., & Ghazali, A. H. b. (2017). Ensemble machine-learning-based geospatial approach for flood risk assessment using multi-sensor remote-sensing data and GIS. Geomatics, Natural Hazards and Risk, 8(2), 1080-1102.
Siddiqi, T. A., Ashraf, S., Khan, S. A., & Iqbal, M. J. (2021). Estimation of data-driven streamflow predicting models using machine learning methods. Arabian Journal of Geosciences, 14(11), 1058.
Smola, A. J., & Schölkopf, B. (2004). A tutorial on support vector regression. Statistics and computing, 14, 199-222.
Suthaharan, S., & Suthaharan, S. (2016). Support vector machine. Machine learning models and algorithms for big data classification: thinking with examples for effective learning, 207-235.
Teng, Z.-j., Lv, J.-l., & Guo, L.-w. (2019). An improved hybrid grey wolf optimization algorithm. Soft computing, 23, 6617-6631.
Torabi, A., Yosefvand, F., Shabanlou, S. et al. Optimization of Integrated Operation of Surface and Groundwater Resources using Multi-Objective Grey Wolf Optimizer (MOGWO) Algorithm. Water Resour Manage 38, 2079–2099 (2024). https://doi.org/10.1007/s11269-024-03744-9
Yildiz, B. S., Pholdee, N., Bureerat, S., Yildiz, A. R., & Sait, S. M. (2022). Enhanced grasshopper optimization algorithm using elite opposition-based learning for solving real-world engineering problems. Engineering with Computers, 38(5), 4207-4219.
Zhang, Z., Zhang, Q., Singh, V. P., & Shi, P. (2018). River flow modelling: comparison of performance and evaluation of uncertainty using data-driven models and conceptual hydrological model. Stochastic environmental research and risk assessment, 32, 2667-2682.