Prediction of hydraulic resistance coefficient using an ensemble neural network algorithm
DOI:
https://doi.org/10.32347/2411-4049.2025.4.154-173Keywords:
ensemble learning, artificial neural networks, bagging method, prediction, the Chézy roughness coefficient, PythonAbstract
This study presents the development and testing of a computational algorithm based on ensemble learning of artificial neural networks for predicting the empirical hydraulic resistance coefficient known as the Chézy roughness coefficient in open channels. The input data for the model include hydrological and hydro-morphological characteristics of the channel: average flow width and depth, hydraulic radius, discharge or flow velocity, water surface slope, bed roughness, and other parameters influencing flow resistance. The target variable is the Chézy coefficient, which must be determined with high accuracy. Ensemble learning methods are based on the principle of combining the predictions of several individual models to obtain a more reliable and accurate result.
This study introduces an ensemble approach using artificial neural networks for estimating the Chézy roughness coefficient. It expands upon previous research focused on empirical estimation of the Chézy coefficient through neural networks, which involved the review of existing computational methods, refinement of input parameters, and the design of a base model with enhanced architectural complexity. The ensemble was implemented, trained, and evaluated using Python programming tools.
A general ensemble model consisting of three homogeneous fully connected neural networks is proposed. An algorithm for distributing data among ensemble models is proposed. Training subsets for each neural network in the ensemble are formed using the Bagging method (Bootstrap Aggregating). A training algorithm for the ensemble is developed, where each neural network is trained in parallel on its bootstrap sample using the backpropagation method. A forecasting algorithm using the trained ensemble is also proposed. Prediction of the empirical Chezy coefficient for new, unseen data is performed by aggregating forecasts from all neural networks, incorporating an inverse problem approach. The implementation of training and prediction algorithms is presented in Python.
For testing the proposed computational algorithm, field hydrological and hydro-morphological data from specific sections of the mountain rivers Tysa, Teresva, Latorytsia, Opir, Rika, and Chornyi Cheremosh were used. The testing procedure involved comparing observed and predicted flow discharges. Performance metrics such as absolute error and Nash–Sutcliffe efficiency coefficient were used to assess model effectiveness. The proposed ensemble model demonstrated higher accuracy and greater prediction stability compared to individual neural networks, confirming a typical advantage of the Bagging method.
References
Sturm, T.W. (2001). Open Channel Hydraulics. McGraw-Hill, N.Y., 493 p.
Chow, V.T. (1959). Open-channel hydraulics. N.Y., McGraw-Hill, 680 p.
French, R.H. (1986). Open-channel hydraulics. N.Y., McGraw-Hill, 705 p.
Coon, W.F. (1998). Estimation of roughness coefficients for natural stream channels with vegetated banks. Prepared in cooperation with the New York State Department of Transportation, 133 p.
De Wrachien, D., Mambretti, S., and Sole, A. (2010). Mathematical models in flood management: overview and challenges. WIT Trans. on Ecology and the Environment, Vol. 133. Flood Recovery, Innovation and Response, 61–72; doi:10.2495/FRIAR100061
Stefanyshyn, D.V., Korbutiak, V.M., Stefanyshyna-Gavryliuk, Y.D. (2019). Situational predictive modelling of the flood hazard in the Dniester river valley near the town of Halych. Environmental safety and natural resources, 1(29), 16–27; doi:10.32347/2411-4049.2019.1.16-27
Ponce, V.M., Taher-shamsi, A., and Shetty, A.V. (2003). Dam-Breach Flood Wave Propagation Using Dimensionless Parameters. Journal of Hydraulic Engineering, Vol. 129, Issue 10, 777–782; DOI:10.1061/(ASCE)0733-9429(2003)129:10(777)
Wang, Yu., Liang, Q., Kesserwani, G., and Hall, J.W. (2011). A 2D shallow flow model for practical dam-break simulations. Journal of Hydraulic Research, 49:3, 307–316; DOI: 10.1080/00221686.2011.566248
Julien, P.Y. (2002). River Mechanics. Cambridge University Press, UK, 456 p.
Khodnevich, Y.V., and Stefanyshyn, D.V. (2014). Mathematical modelling the conditions of intensification of the riverbed local erosion behind of obstacle that deviates from the shore downstream. Zeszyty Naukowe Inżynieria Lądowa i Wodna w Kształtowaniu Środowiska, Nr 10, Kalisz, 7–18. Available from https://yadda.icm.edu.pl/baztech/element/ bwmeta1.element.baztech-journal-2082-6702-zeszyty_naukowe__inzynieria_ladowa_i_ wodna_w_ksztaltowaniu_srodowiska
Cao, Z. and Carling, P. A. (2002). Mathematical modelling of alluvial rivers: reality and myth. Part I: General review. Proc. of the Institution of Civil Engineers Water & Maritime Engineering, 154, Issue 3, 207–219.
Julien, P.Y. (2010). Erosion and sedimentation. Cambridge University Press, 371 p.
Two-Dimensional Hydraulic Modeling for Highways in the River Environment. Ref. Document. (2019). Publ. No. FHWA-HIF-19-061, U.S. Department of Transportation, FHWA, 301 p. Available from https://portal.ct.gov/-/media/DOT/documents/ddrainage/2-D-Hydraulic-Modeling-Reference-Document.pdf.
Park, I., Song, Ch.G. (2018). Analysis of two-dimensional flow and pollutant transport induced by tidal currents in the Han River. Journal of Hydroinformatics, 20 (3): 551–563; https://doi.org/10.2166/hydro.2017.118.
The UN-Water Status Report on the Application of Integrated Approaches to Water Resources Management. (2012). Nairobi, Kenya, 119 p. Available from https://www.un.org/waterforlifedecade/ pdf/un_water_status_report_2012.pdf
Riverine Ecosystem Management. Science for Governing Towards a Sustainable Future. (2018). Schmutz, S., and Sendzimir, J., Editors. Aquatic Ecology Series. Volume 8. Springer Open, 562 p.
Kasvi, E., Alho, P., Lotsari, E., Wang, Y., Kukko, A., Hyyppä, H., and Hyyppä, Yu. (2014). Two-dimensional and three-dimensional computational models in hydrodynamic and morphodynamic reconstructions of a river bend: sensitivity and functionality. Hydrological Processes, Pub. online in Wiley Online Library; DOI: 10.1002/hyp.10277
Cha Zhang (2012). Ensemble Machine Learning: Methods and Applications. Published by Springer, 340 p.
Gautam Kunapuli (2023). Ensemble Methods for Machine Learning. Published by Manning, 352 p.
Giovanni Seni, John Elder (2010). Ensemble Methods in Data Mining: Improving Accuracy Through Combining Predictions. Morgan and Claypool Publishers, 126 p.
Mohammed, A., and Kora, R. (2023). A comprehensive review on ensemble deep learning: Opportunities and challenges. Journal of King Saud University – Computer and Information Sciences, 35, 757-774. https://doi.org/10.1016/j.jksuci.2023.01.014
Rokach, L. (2010). Ensemble-based classifiers. Artificial Intelligence Review, 33, 1–39. https://link.springer.com/article/10.1007/s10462-009-9124-7
Rokach, L. (2019). Ensemble Learning: Pattern Classification Using Ensemble Methods. World Scientific Publishing Company, 300 p.
Thomas A. Dorfer (2023). Bagging vs. Boosting: The Power of Ensemble Methods in Machine Learning. https://pub.towardsai.net/bagging-vs-boosting-the-power-of-ensemble-methods-in-machine-learning-6404e33524e6
Zhi-Hua Zhou (2012). Ensemble Methods: Foundations and Algorithms. Chapman & Hall/CRC Machine Learning & Pattern Recognition, 236 p.
Soft Computing: Recent Advances and Applications in Engineering and Mathematical Sciences. (2023). Edited by P. Debnath, O. Castillo, and P. Kumam. CRC Press. Taylor & Francis Group, London, N.Y., 233 p.
Bao-fei Feng, Yin-shan Xu, Tao Zhang, Xiao Zhang (2022). Hydrological time series prediction by extreme learning machine and sparrow search algorithm. Water Supply 22 (3), 3143–3157; https://doi.org/10.2166/ws.2021.419
Li, S., & Yang, J. (2023). Improved river water‑stage forecasts by ensemble learning. Engineering with Computers, 39, 3293–3311; DOI: 10.1007/s00366-022-01751-1
Zounemat-Kermani, M., Batelaan, O., Fadaee, M., Hinkelmann, R. (2021). Ensemble machine learning paradigms in hydrology: A review. Journal of Hydrology, Vol. 598; https://doi.org/10.1016/j.jhydrol.2021.126266
Stefanyshyn, D. V., Khodnevich, Y. V., Korbutiak, V. M. (2021). Еstimating the Chezy roughness coefficient as a characteristic of hydraulic resistance to flow in river channels: a general overview, existing challenges, and ways of their overcoming. Environmental safety and natural resources, 39 (3), 16–43. https://doi.org/10.32347/2411-4049.2021.3.16-43
Yaroslav V. Khodnevych, Dmytro V. Stefanyshyn (2022). Data arrangements to train an artificial neural network within solving the tasks for calculating the Chezy roughness coefficient under uncertainty of parameters determining the hydraulic resistance to flow in river channels. Environmental safety and natural resources, Vol. 42 № 2, 59-85. https://doi.org/10.32347/2411-4049.2022.2.59-85
Khodnevych, Y., Stefanyshyn, D., Korbutiak, V. (2023). The Chezy Roughness Coefficient Computing Using an Artificial Neural Network to Support the Mathematical Modelling of River Flows. In: Dovgyi, S., Trofymchuk, O., Ustimenko, V., Globa, L. (eds) Information and Communication Technologies and Sustainable Development. ICT&SD 2022. Lecture Notes in Networks and Systems, vol 809. Springer, Cham. https://doi.org/10.1007/978-3-031-46880-3_26
Yaroslav Khodnevych, Dmytro Stefanyshyn (2023). Do we need a more sophisticated multilayer artificial neural network to compute roughness coefficient? Environmental safety and natural resources, Vol. 48 (4), 170–182. https://doi.org/10.32347/2411-4049.2023.4.170-182
Ahmed Fawzy Gad, Fatima Ezzahra Jarmouni (2021). Introduction to Deep Learning and Neural Networks with Python. A Practical Guide - 2021 Elsevier Inc. 285 p.
Brett Slatkin (2019). Effective Python. Addison-Wesly. 469 p.
Chollet, F. (2018). Deep Learning with Python. Manning Publications Co., 384 p.
George Kyriakides, Konstantinos G. Margaritis (2019). Hands-On Ensemble Learning with Python. Packt Publishing, 298 p.
Muller, A., and Guido, S. (2016). Introduction to Machine Learning with Python. Published by O’Reilly Media, 378 p.
Sebastian Raschka, Vahid Mirjalili (2017). Python Machine Learning. Packt Publishing Ltd. 622 p.
Altman, M. (2020). A holistic approach to empirical analysis: The insignificance of P, hypothesis testing and statistical significance. In D.H. Bailey, N.S. Borwein, R.P. Brent, R.S. Burachik, J.H. Osborn, B. Sims, and Q.J. Zhu (Eds.). From Analysis to Visualization: A Celebration of the Life and Legacy of J.M. Borwein, Callaghan, Australia, September 2017. Springer Verlag. Vol. 313, 233–253; https://doi.org/10.1007/978-3-030-36568-4_16
Vyshnevskyi, V. I., Kosovets, O. O. (2003). Hydrological Characteristics of the Rivers of Ukraine. Kyiv: Nika-Center, 324 p. (in Ukrainian). [В.І. Вишневський, О.О. Косовець (2003). Гідрологічні характеристики річок України. К.: Ніка-Центр, 324 с.].
Berthold, M.R., Borgelt, Ch., Höppner. F., and Klawonn, F. (2010). Guide to Intelligent Data Analysis: How to Intelligently Make Sense of Real Data. London: Springer-Verlag, 407 p.; DOI:10.1007/978-1-84882-260-3
De Rocquigny, E. (2012). Modelling Under Risk and Uncertainty: An Introduction to Statistical, Phenomenological and Computational Methods. Wiley series in probability and statistics, 484 p.
Kochenderfer, M.J. (2015). Decision-making under uncertainty. Theory and Application. With Ch. Amato, G. Chowdhary, J.P. How, H.J. Davison Reynolds, J.R. Thornton, P.A. Torres-Carrasquillo, N. Kemal Üre, and J. Vian. Massachusetts Institute of Technology, The MIT Press, Cambridge, Massachusetts, London, England, 323 p.
Trofymchuk, O.M, Bidiuk, P.I., Prosiankina-Zharova, T.I., Terentiev, O.M. (2019). Decision support systems for modelling, forecasting and risk estimation. Riga: LAP LAMBERT Academic Publishing, 176 p.
Choi, R.Y., Coyner, A.S., Kalpathy-Cramer, J., Chiang, M.F., and Campbell, J.P. (2020). Introduction to machine learning, neural networks, and deep learning. Trans Vis Sci Tech., Special Issue, Vol. 9, No. 2, Article 19:2, https://doi.org/10.1167/tvst.9.2.14
Haikin, S. (2008). Neural Networks and Learning Machines (3rd Edition). Prentice Hall, 906 p.
Khodnevych, Ya. (2025). Software Implementation of a Computational Algorithm for Training an Ensemble of Neural Networks to Predict the Chezy Roughness Coefficient. Available from https://github.com/yakhodnevych/ANNE_approximation_C.git
Gichamo, T., Nourani, V., Gökçekuş, H., Gelete, G. (2024). Ensemble of artificial intelligence and physically based models for rainfall–runoff modeling in the upper Blue Nile Basin. Hydrology Research, 55 (10): 976–1000. https://doi.org/10.2166/nh.2024.189
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Я.В. Ходневич, В.М. Корбутяк

This work is licensed under a Creative Commons Attribution 4.0 International License.
The journal «Environmental safety and natural resources» works under Creative Commons Attribution 4.0 International (CC BY 4.0).
The licensing policy is compatible with the overwhelming majority of open access and archiving policies.