A Hybrid SNIP-ANN Model: A Novel Approach for Accurate River Flow Prediction

Document Type : Research/Original/Regular Article

Authors

Department of water engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran

Abstract

Abstract

Introduction

River flow prediction is crucial for water resource management, environmental protection, and flood control, yet the nonlinear nature of hydrological data poses challenges. Previous studies using models like Random Forest and LSTM faced limitations in accuracy and computational complexity. This research introduces the hybrid SNIP-ANN model, combining the novel SNIP algorithm with Artificial Neural Networks, to enhance prediction accuracy. The study focuses on time-series analysis of monthly flows in the Columbia and Niger Rivers, vital freshwater sources. The goal is to improve forecasting precision for better water management and reduced uncertainties.



Materials and Methods

The SNIP-ANN model is an advanced hybrid method for analyzing river discharge time series. In this model, the SNIP algorithm first preprocesses the raw streamflow data; it separates meaningful signal components from background noise by eliminating fluctuations and enhancing significant peaks. Then, an artificial neural network (ANN), inspired by the parallel processing nature of the human brain, learns the nonlinear relationships between past and present discharge values using the processed data. In this study, a three-month lag (Q(t-3)) was selected as the optimal input. By combining SNIP’s strength in feature extraction and ANN’s ability in pattern recognition, the SNIP-ANN model demonstrated high accuracy in prediction. The model was trained and validated using historical monthly discharge data from the Columbia and Niger rivers. Evaluation metrics such as RMSE and the correlation coefficient (R) indicated high precision and low error. The model’s simplicity and use of only discharge data make it suitable for real-time water resource management and applications in other domains like meteorology and economics. Additionally, its lightweight structure and short training time allow for implementation in systems lacking advanced computational facilities. The model’s generalizability also makes it a reliable choice for time series analysis under diverse climatic conditions. Applying this approach in other data-driven fields can improve prediction accuracy while reducing computational costs. Overall, the SNIP-ANN model offers an effective, lightweight, and intelligent solution for predicting streamflow behavior in complex hydrological systems.

Results and Discussion

In this study, in the first stage, the temporal modeling and in the second stage, the performance evaluation of monthly streamflow prediction for the Columbia and Niger rivers during the study period was carried out using the Artificial Neural Network (ANN) model and the hybrid SNIP-enhanced ANN (SNIP-ANN) model. To model the time-dependent behavior of streamflow, three time-lagged discharge values (one-, two-, and three-month delays) were used as input parameters. Among them, the three-month lag (Q(t–3)) was selected as the optimal input based on its stronger correlation with hydrological patterns such as seasonal variability, rainfall fluctuations, and groundwater storage. Seventy percent of the data were used for training and thirty percent for testing the models. Based on the evaluation results from R, RMSE, and other metrics such as the Taylor diagram, violin plot, and observed versus predicted plots, it was found that the SNIP-ANN model significantly outperformed the standard ANN in temporal modeling. For instance, in the Columbia River, the SNIP-ANN model achieved an R value of 0.7503 and an RMSE of 865.23, while the ANN model had an R of 0.3249 and a much higher RMSE of 1325.99. Similarly, for the Niger River, the SNIP-ANN reached an R of 0.9286 and an RMSE of 231.49, surpassing the ANN model, which scored an R of 0.8014 and an RMSE of 487.88. Moreover, the scatter plots revealed that the predicted values in the SNIP-ANN model were more concentrated along the ideal line (y = x), indicating higher prediction accuracy. The violin plots further supported this finding by showing that the SNIP-ANN predictions closely matched the actual distribution of flow values, while the ANN model showed greater deviations. In general, the SNIP-ANN model demonstrated superior capability in capturing nonlinear patterns, reducing prediction error, and improving generalization performance. These results highlight the model’s potential for real-time hydrological forecasting, especially under extreme flow conditions. Future research may focus on integrating ensemble learning strategies or additional preprocessing techniques to further enhance prediction accuracy across diverse hydrological scenarios.



Conclusion

In this study, the hybrid SNIP-ANN model was introduced as an innovative approach for river discharge prediction and compared with the traditional ANN model. The results showed that the hybrid model significantly improved prediction accuracy compared to the ANN model. By using a three-month time delay in the input data, the model was able to effectively simulate seasonal fluctuations and periodic changes in river discharge. The correlation coefficient for the hybrid model increased from 0.3249 to 0.7503 for the Columbia River and from 0.8014 to 0.9286 for the Niger River, while the prediction error (RMSE) decreased from 1325.99 to 865.23 and from 883.487 to 497.231, respectively. This improvement in performance was particularly noticeable in simulating extreme discharge fluctuations and filtering out additional noise in the data. The results indicate that the SNIP-ANN model is an effective tool for river discharge prediction and has high potential for applications in water resource management and flood prediction. This model can be highly beneficial in long-term forecasting and addressing challenges related to climate change and hydrological fluctuations.

Keywords

Main Subjects


References
 
Abdoulaye, O. O., & Lu, H. (2021). Future irrigation water requirements of the main crops cultivated in the Niger River Basin. Atmosphere. doi: 10.3390/atmos12040439.
Adnan, R., Yuan, X., et al. (2017). Improving Accuracy of River Flow Forecasting Using LSSVR with Gravitational Search Algorithm, Advances in Meteorology, 2017, 1-23. doi: 10.1155/2017/2391621
Aichouri, I., Hani, A., Bougherira, N., Djabri, L., Chaffai, H., & Lallahem, S. (2015). River flow model using artificial neural networks. Energy Procedia, 74, 1007–1014. doi: 10.1016/j.egypro.2015.07.785
Albared, M., Beise, H. P., & Stuber, M. (2024). Deep learning models for small rivers stream-flow forecasting and flood prediction. Research Square (Preprint, Version 1).
Armstrong, J. S. (2001). Evaluating forecasting methods. In Principles of forecasting: A handbook for researchers and practitioners (pp. 443–472).
Araujo, P., Astray, G., Ferrerio-Lage, J. A., Mejuto, J. C., Rodríguez-Suárez, J. A., & Soto, B. (2011). Multilayer perceptron neural network for flow prediction. Journal of Environmental Monitoring, 13(1), 35–41. doi: 10.1039/C0EM00478B
Arbic II, P. R., & Bukshtynov, V. (2024). Efficient gradient-based optimization for reconstructing binary images in applications to electrical impedance tomography. Computational Optimization and Applications, 88(1), 379–403. doi: 10.1007/s10589-024-00553-z
Bak, G., Bae, Y. (2023). Deep learning algorithm development for river flow prediction: PNP algorithm, Soft Computing, 27, 13487-13515. doi: 10.1007/s00500-023-08254-1
Bolshakov, V. (2013). Regression-based Daugava River flood forecasting and monitoring. Information Technology and Management Science, 16(1), 59–63. doi: 10.2478/itms-2013-0021
Elbeltagi, A., Di Nunno, F., Kushwaha, N. L., et al. (2022). River flow rate prediction in the Des Moines watershed (Iowa, USA): A machine learning approach. Stochastic Environmental Research and Risk Assessment, 36(11), 3835–3855. doi: 10.1007/s00477-022-02240-3
Hamlet, A. F., & Lettenmaier, D. P. (1999). Columbia River streamflow forecasting based on ENSO and PDO climate signals. Journal of Water Resources Planning and Management, 125(6), 333–341.
Hayder, G., Solihin, M. I. (2020). Modelling of River Flow Using Particle Swarm Optimized Cascade-Forward Neural Networks: A Case Study of Kelantan River in Malaysia, Applied Sciences. doi: 10.3390/app10238670
Hsieh, B., & Bartos, C. L. (2000). Riverflow/River stage prediction for military applications using artificial neural network modeling. doi: 10.21236/ADA382991
Stanford, J. A., Thompson, A., Asher, E., Gregory, S. V., Reeves, G., Ratliff, D., Bouwes, N., Frissell, C., & Williams, R. N. (2023). Columbia River Basin. In Rivers of North America (2nd ed., pp. 558–615). Academic Press. doi: 10.1016/B978-0-12-818847-7.00020-3
Kedam, N., Tiwari, D., Kumar, V., Kh M., & Salem, M. A. (2024). River stream flow prediction through advanced machine learning models for enhanced accuracy. Results in Engineering, 22, 102215. doi: 10.1016/j.rineng.2024.102215
Mahaki, B., Jafari, S., Rezaei, M., & Solooki, L. (2024). Types of correlation coefficients in medical research using SPSS and R software. Isfahan Medical School Journal, 42(773), 560–573.
Morháč, M., Matoušek, V. (2008). Peak clipping algorithms for background estimation in spectroscopic data. Applied spectroscopy, 62(1), 91-106.
Ogunjo, S., Olusola, A., & Olusegun, C. (2024). Predicting river discharge in the Niger River Basin: A deep learning approach. Applied Sciences, 14(1), 12. doi: 10.3390/app14010012
Omer, M. (2013). Analysis of SNIP algorithm for background estimation in spectra measured with LaBr3:Ce detectors. In Proceedings of the XYZ Conference (pp. 123-130). Springer. doi: 10.1007/978-4-431-54264-3 27
Porporato, A., & Ridolfi, L. (2001). Multivariate nonlinear prediction of river flows. Journal of Hydrology, 248, 109–122.
Roshni, T., Jha, M. K., & Drisya, J. (2020). Neural network modeling for groundwater-level forecasting in coastal aquifers. Neural Computing and Applications, 32, 12737–12754. doi: 10.1007/s00521-020-04722-z
Wang, J., Pan, X., Li, W., & Zhang, M. (2020, December). PDSR: Optimization of SNIP pre-pruning algorithm based on dynamic sparsity rate. In 2020 2nd International Conference on Information Technology and Computer Application (ITCA) (pp. 119–124). doi: 10.1109/ITCA52113.2020.00032
Yadav, A., Prasad, B. B. V. S., Mojjada, R. K., Kothamasu, K. K., & Joshi, D. (2020). Application of artificial neural network and genetic algorithm based artificial neural network models for river flow prediction. Rev. d'Intelligence Artif. , 34(6), 745–751. doi: 10.18280/ria.340608
Zanial, W. N. C., Abdul Malek, M. B., Md Reba, M. N., Zaini, N., Ahmed, A. N., Sherif, M., & Elshafie, A. (2023).River flow prediction based on improved machine learning method: Cuckoo Search-Artificial Neural Network. Applied Water Science, 13 (28), 1–10. doi: 10.1007/s13201-022-01830-0
Zhang, Y. (2024). Application of speech recognition technology based on multimodal information in human-computer interaction. International Journal of Advanced Computer Science and Applications, 15(9). doi: 10.14569/IJACSA.2024.0150911