Daily Streamflow Prediction of the Simineh River Using Machine and Deep Learning Models Enhanced with the Aquila Optimizer Algorithm

Document Type : Full Length Article

Authors

1 1- Ph.D. graduate in Water Resources Engineering, Islamic Azad University, Science and Research Branch, Tehran; Member of Iran's National Elite Foundation; Water Resources Specialist, West Azerbaijan Regional Water Company, Urmia, Iran

2 Surface Water Studies Expert, Basic Studies Office, West Azerbaijan Regional Water Company, Urmia, Iran

3 Manager of Basic Studies, West Azerbaijan Regional Water Company, Urmia, Iran

4 Water Resource Specialist, Maharab Omran Gostar Consulting Engineering Company, Iran

Abstract

Introduction
Accurate prediction of river discharge is a fundamental requirement for effective water resources management, flood risk mitigation, reservoir operation, and climate change adaptation strategies. However, process-based hydrological models are often associated with considerable uncertainties arising from parameter estimation, model structure, and the complex nonlinear nature of rainfall–runoff processes, particularly in semi-arid and mountainous catchments. These challenges are exacerbated in regions with limited or heterogeneous hydro-meteorological observations. In recent years, data-driven approaches, including machine learning (ML) and deep learning (DL) models, have emerged as powerful alternatives to traditional physically based models due to their ability to capture nonlinear relationships without explicit representation of physical processes.Among various ML and DL techniques, Artificial Neural Networks (ANN), Random Forests (RF), and Long Short-Term Memory (LSTM) networks have been widely applied to hydrological forecasting problems. Nevertheless, the performance of these models strongly depends on the selection of appropriate input variables, hyperparameter tuning, and the balance between model complexity and generalization capability. Metaheuristic optimization algorithms have recently gained attention as efficient tools for automated hyperparameter optimization, enabling improved predictive accuracy and robustness. The Aquila Optimization (AO) algorithm, inspired by the hunting behavior of eagles, is a relatively new population-based metaheuristic that has demonstrated strong global search capability and fast convergence. The primary objective of this study is to evaluate and compare the performance of ANN, RF, and LSTM models optimized using the Aquila Optimization algorithm (ANN-AO, RF-AO, and LSTM-AO) for daily river discharge prediction. The Simineh River basin, located in West Azerbaijan Province, Iran, was selected as the study area due to its hydrological importance and exposure to hydroclimatic variability. Special emphasis is placed on assessing the impact of different input combinations and identifying the most robust and generalizable modeling scenario.
Materials and Methods
Daily hydro-meteorological data spanning a 40-year period (1982–2022) were used in this study. Observed river discharge and precipitation data were obtained from the Iran Water Resources Management Company, while additional hydroclimatological variables were extracted from NASA POWER satellite products. The input variables included bias-corrected precipitation (mm/day), two-meter air temperature range (°C), relative humidity at two meters (%), wind speed range at ten meters (m/s), and antecedent river discharge with one- to three-day time lags (m³/s). The target output variable was daily river discharge (m³/s). Prior to modeling, an extensive data preprocessing procedure was conducted, including homogeneity testing, detection and removal of outliers, reconstruction of missing values, and linear normalization. Pearson correlation coefficient (PCC) analysis was employed to quantify the relationships between candidate input variables and river discharge. Based on this analysis, seven different input scenarios were defined to systematically investigate the role of hydroclimatic variables and hydrological memory in model performance. The dataset was divided into training (70%) and testing (30%) subsets. The Aquila Optimization algorithm was applied to optimize the hyperparameters of all three models to ensure a fair and objective comparison. Model performance was evaluated using Root Mean Square Error (RMSE), coefficient of determination (R²), and Nash–Sutcliffe Efficiency (NSE) in both training and testing phases, with particular emphasis on testing performance as an indicator of generalization capability.
Results and Discussion
The results demonstrate that all three optimized models were capable of capturing the general dynamics of daily river discharge; however, their predictive accuracies and generalization behaviors varied considerably across different input scenarios. For the ANN-AO model, the best testing performance was achieved under Scenario SN6, which exhibited balanced errors between training and testing phases, indicating reduced overfitting. Nevertheless, the overall predictive accuracy of ANN-AO was lower than that of RF-AO and LSTM-AO. The RF-AO model consistently outperformed the other models in terms of robustness and generalization. In the testing phase, Scenario SN4 yielded the best results with RMSE = 11.931 m³/s, R² = 0.834, and NSE = 88.0%. This scenario combined key hydroclimatic variables with selected discharge lags, achieving an optimal balance between model complexity and predictive power. Notably, scenarios with excessively rich input combinations, such as SN7, showed slightly better performance during training but experienced degradation in testing accuracy, highlighting the negative impact of over-parameterization on generalization. The LSTM-AO model demonstrated competitive performance, particularly in scenarios with limited but informative inputs. The best testing performance for LSTM-AO was observed under Scenario SN1 (RMSE = 10.541 m³/s, R² = 0.862, NSE = 86.0%). However, when all hydroclimatic variables and discharge lags were included, LSTM performance deteriorated, suggesting increased sensitivity to noise and reduced robustness under daily time-step conditions. Overall, the comparative analysis revealed that RF-AO provided the most stable and accurate predictions across scenarios, outperforming LSTM-AO and ANN-AO by approximately 2.3% and 36.0% in NSE, respectively. These findings emphasize that increasing the number of input variables does not necessarily improve predictive performance and that intelligent feature selection plays a more critical role than model complexity alone.
Conclusion
This study confirms the high potential of data-driven models, particularly Random Forest combined with metaheuristic optimization, for reliable daily river discharge prediction in hydroclimatically complex basins. The superior performance of RF-AO highlights the effectiveness of ensemble-based algorithms in reducing variance and enhancing generalization without requiring explicit sequential memory or complex network architectures. The results further demonstrate that excessive input enrichment can negatively affect model robustness, especially in ANN and LSTM frameworks. The findings provide valuable insights for developing intelligent decision-support systems for water resources management, flood forecasting, and climate change impact assessment in data-scarce regions.
Acknowledgement
The authors gratefully acknowledge the Iran Water Resources Management Company for providing hydrological data and NASA POWER for supplying hydroclimatological datasets used in this study.

Keywords

Main Subjects


Abualigah, L., Yousri, D., Abd Elaziz, M., Ewees, A. A., Al-Qaness, M. A. A., & Gandomi, A. H. (2021). Aquila
 
optimizer: a novel meta-heuristic optimization algorithm. Computers & Industrial Engineering, 157, 107250. https://doi.org/10.1016/j.cie.2021.107250
Ahmadaali, J., Barani, G. A., Qaderi, K., & Hessari, B. (2017). Calibration and validation of model WEAP21 for Zarrineh Rud and Simineh Rud basins. Iranian Journal of Soil and Water Research, 48(4), 823–839. https://doi.org/10.22059/ijswr.2017.216989.667543
Akiner, M. E., Kartal, V., Guzeler, A. C., & Karakoyun, E. (2024). Exploring the applicability of the experiment-based ANN and LSTM models for streamflow estimation. Earth Science Informatics, 17(4), 3111–3135. https://doi.org/10.1609/aaai.v32i1.12255
Bargam, B., Boudhar, A., Kinnard, C., Bouamri, H., Nifa, K., & Chehbouni, A. (2024). Evaluation of the support vector regression (SVR) and the random forest (RF) models accuracy for streamflow prediction under a data-scarce basin in Morocco. Discover Applied Sciences, 6(6), 306. https://doi.org/10.1007/s42452-024-05994-z
Bostanmaneshrad, F., Partani, S., Noori, R., Nachtnebel, H.-P., Berndtsson, R., & Adamowski, J. F. (2018). Relationship between water quality and macro-scale parameters (land use, erosion, geology, and population density) in the Siminehrood River Basin. Science of the Total Environment, 639, 1588–1600. https://doi.org/10.1016/j.scitotenv.2018.05.244
Breiman, L. (2001). Random forests. Machine Learning, 45, 5–32. https://doi.org/10.1023/A:1010933404324
Chen, L., Wang, Z., Jiang, Z., & Lin, X. (2024). Deep learning models for multi-step prediction of water levels incorporating meteorological variables and historical data. Stochastic Environmental Research and Risk Assessment, 1–23. https://doi.org/10.1007/s00477-024-02766-4
Danesh, M., Gharehbaghi, A., Mehdizadeh, S., & Danesh, A. (2025). A comparative assessment of machine learning and deep learning models for the daily river streamflow forecasting. Water Resources Management, 39(4), 1911–1930. https://doi.org/10.1007/s11269-024-04052-y
Guo, J., Liu, Y., Zou, Q., Ye, L., Zhu, S., & Zhang, H. (2023). Study on optimization and combination strategy of multiple daily runoff prediction models coupled with physical mechanism and LSTM. Journal of Hydrology, 624, 129969. https://doi.org/10.1016/j.jhydrol.2023.129969
Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
Huang, J., Chen, J., Huang, H., & Cai, X. (2025). Deep Learning-Based Daily Streamflow Prediction Model for the Hanjiang River Basin. Hydrology, 12(7), 168. https://doi.org/10.3390/hydrology12070168
Janiesch, C., Zschech, P., & Heinrich, K. (2021). Machine learning and deep learning. Electronic Markets, 31(3), 685–695.
Jimmy, S. R., Sahoo, A., Samantaray, S., & Ghose, D. K. (2020). Prophecy of runoff in a river basin using various neural networks. In Communication Software and Networks: Proceedings of INDIA 2019 (pp. 709–718). Springer. https://doi.org/10.1007/978-981-15-5397-4_72
Le, X.-H., Ho, H. V., Lee, G., & Jung, S. (2019). Application of long short-term memory (LSTM) neural network for flood forecasting. Water, 11(7), 1387. https://doi.org/10.3390/w11071387
Lin, Y., Wang, D., Meng, Y., Sun, W., Qiu, J., Shangguan, W., Cai, J., Kim, Y., & Dai, Y. (2023). Bias learning improves data driven models for streamflow prediction. Journal of Hydrology: Regional Studies, 50, 101557. https://doi.org/10.1016/j.ejrh.2023.101557
Mangukiya, N. K., & Sharma, A. (2025). Deep learning‐based approach for enhancing streamflow prediction in watersheds with aggregated and intermittent observations. Water Resources Research, 61(1), e2024WR037331. https://doi.org/10.1029/2024WR037331
Ng, K. W., Huang, Y. F., Koo, C. H., Chong, K. L., El-Shafie, A., & Ahmed, A. N. (2023). A review of hybrid deep learning applications for streamflow forecasting. Journal of Hydrology, 625, 130141. https://doi.org/10.1016/j.jhydrol.2023.130141
Qiao, X., Peng, T., Sun, N., Zhang, C., Liu, Q., Zhang, Y., Wang, Y., & Nazir, M. S. (2023). Metaheuristic evolutionary deep learning model based on temporal convolutional network, improved aquila optimizer and random forest for rainfall-runoff simulation and multi-step runoff prediction. Expert Systems with Applications, 229, 120616. https://doi.org/10.1016/j.eswa.2023.120616
Rezaei, A., Babazadeh, H., Khosrojerdi, A., & Sarai-Tabrizi, M. (2025). Removal of sulfate pollutant from different samples of a river water using nanozeolite technology, case study: Gamasiab River, Iran. PloS One, 20(2), e0314480. https://doi.org/10.1371/journal.pone.0314480
Sasmal, B., Hussien, A. G., Das, A., & Dhal, K. G. (2023). A comprehensive survey on aquila optimizer. Archives of Computational Methods in Engineering, 30(7), 4449–4476. https://doi.org/10.1007/s11831-023-09945-6
Shi, W., Wang, M., Li, D., Li, X., & Sun, M. (2023). An improved method that incorporates the estimated runoff for peak discharge prediction on the Chinese Loess Plateau. International Soil and Water Conservation Research, 11(2), 290–300. https://doi.org/10.1016/j.iswcr.2022.09.001
Vatanchi, S. M., Etemadfard, H., Maghrebi, M. F., & Shad, R. (2023). A comparative study on forecasting of long-term daily streamflow using ANN, ANFIS, BiLSTM and CNN-GRU-LSTM. Water Resources Management, 37(12), 4769–4785. https://doi.org/10.21203/rs.3.rs-1443377/v1
Wang, Z., Xu, N., Bao, X., Wu, J., & Cui, X. (2024). Spatio-temporal deep learning model for accurate streamflow prediction with multi-source data fusion. Environmental Modelling & Software, 178, 106091. https://doi.org/10.1016/j.envsoft.2024.106091
Wrisberg, N., de Haes, H. A. U., & Triebswetter, U. (2002). Analytical tools for environmental design and management in a systems perspective: the combined use of analytical tools (Vol. 10). Springer Science & Business Media.
Xu, W., Chen, J., Corzo, G., Xu, C., Zhang, X. J., Xiong, L., Liu, D., & Xia, J. (2024). Coupling deep learning and physically based hydrological models for monthly streamflow predictions. Water Resources Research, 60(2), e2023WR035618. https://doi.org/10.1029/2023WR035618
Yao, Z., Wang, Z., Wang, D., Wu, J., & Chen, L. (2023). An ensemble CNN-LSTM and GRU adaptive weighting model based improved sparrow search algorithm for predicting runoff using historical meteorological and runoff data as input. Journal of Hydrology, 625, 129977. https://doi.org/10.1016/j.jhydrol.2023.129977
Zhang, J., & Yan, H. (2023). A long short-term components neural network model with data augmentation for daily runoff forecasting. Journal of Hydrology, 617, 128853. https://doi.org/10.1016/j.jhydrol.2022.128853