Journal of Hydraulic Structures

Journal of Hydraulic Structures

A Robust Data-Driven Framework for Evaluating the Hydraulic Efficiency of Piano Key and Labyrinth Weirs

Document Type : Research Paper

Authors
1 Department of Civil Engineering, Na.C., Islamic Azad University, Najafabad, Iran.
2 Department of Civil Engineering, Na.‍C., Islamic Azad University, Najafabad, Iran.
3 Department of Water Science Engineering, Ahv.C., Islamic Azad University, Ahvaz, Iran.
Abstract
This study presents a comparative evaluation of three machine learning algorithms— Multivariate Adaptive Regression Splines (MARS), Support Vector Machine (SVM), and Gene Expression Programming (GEP)—for predicting the discharge coefficient (Cd) of labyrinth and piano-key weirs. Experimental data were collected from various linear and arced configurations in a laboratory flume. Dimensional analysis identified four key dimensionless predictors: HT/P, Fr, L/W, and R/W. The results demonstrated that while all models provided acceptable trends, the optimized MARS architecture exhibited superior statistical performance and stability. In the training phase, MARS achieved an R2 of 0.9882, RMSE of 0.0194, and MAE of 0.0157, significantly outperforming SVM (R2 = 0.864) and GEP (R2 = 0.967). The robustness was further confirmed in the testing phase, where MARS maintained a high R2 of 0.9792 and a Cd(DDR), max of 6.6331, indicating minimal stochastic variance. Sensitivity analysis revealed that HT/P and Fr are the most influential parameters, each referenced six times in the MARS validated functions. Furthermore, the Kernel Density Estimation (KDE) and scatter plots validated the high-fidelity alignment of MARS predictions with experimental observations along the 1:1 identity line. The study concludes that the white-box MARS model, with its explicit governing equations and low GCV error (0.000777), serves as the most reliable and transparent computational tool for estimating the hydraulic capacity of complex non-linear weir systems.
Keywords
Subjects

  1. Langohr, P., Bung, D.B. and Crookston, B.M. Numerical Investigation on Energy Dissipation Processes Downstream of Labyrinth Weirs. Journal of Hydraulic Engineering. 2026;152(3): 04026003. https://doi.org/10.1061/JHEND8.HYENG-1393
  2. Erpicum, S., Tullis, B.P., Lodomez, M., Archambeau, P., Dewals, B.J. and Pirotton, M. Scale effects in physical piano key weirs models. Journal of Hydraulic Research. 2016;54(6): 692-698. https://doi.org/10.1080/00221686.2016.1211562
  3. Tullis, B.P., Crookston, B.M. and Young, N. Scale effects in free-flow nonlinear weir head-discharge relationships. Journal of Hydraulic Engineering. 2020;146(2): 04019056. https://doi.org/10.1061/(ASCE)HY.1943-7900.00016
  4. Amir, M., Ansari, M.A., Hussain, A. and Kumar, S. ANN-based prediction of discharge coefficient in rectangular labyrinth side weirs. Discover Fluid Mechanics. 2026;2(1): 3. https://doi.org/10.1007/s44369-026-00007-5
  5. Leite Ribeiro, M., Bieri, M., Boillat, J.L., Schleiss, A.J., Singhal, G. and Sharma, N. Discharge capacity of piano key weirs. Journal of Hydraulic engineering. 2012;138(2):199-203. https://doi.org/10.1061/(ASCE)HY.1943-7900.0000490
  6. Anderson, R.M. and Tullis, B.P. Comparison of piano key and rectangular labyrinth weir hydraulics. Journal of Hydraulic Engineering. 2012;138(4): 358-361. https://doi.org/10.1061/(ASCE)HY.1943-7900.0000509
  7. Crookston, B.M., Erpicum, S., Tullis, B.P. and Laugier, F. Hydraulics of labyrinth and piano key weirs: 100 years of prototype structures, advancements, and future research needs. Journal of Hydraulic Engineering. 2019;145(12): 02519004. https://doi.org/10.1061/(ASCE)HY.1943-7900.0001646
  8. Sinha, P.K., Kumar, B. and Ahmad, Z. Experimental Study on Piano Key Weirs of an Ogee Outlet Key for Enhancement in Discharge Capacity. Journal of Irrigation and Drainage Engineering. 2026;152(4): 04026010. https://doi.org/10.1061/JIDEDH.IRENG-1069
  9. Mirzad, M. and Kouchakzadeh, S. Physical and Numerical Analysis of Outflow Discharge from Type-A Piano Key Weirs Under Steady and Unsteady Flow Conditions. Water. 2026;18(2):173. https://doi.org/10.3390/w18020173
  10. Quamar, M.S. and Ahmad, Z. Application of machine learning models for predicting the coefficient of discharge of Type-A Piano Key Weirs. Modeling Earth Systems and Environment. 2026;12(1): 71. https://doi.org/10.1007/s40808-025-02711-6
  11. Belay, B.S. and Oertel, M. Void fraction distribution downstream of nonlinear weirs: An experimental investigation using trapezoidal A-type piano key weirs, a labyrinth weir, and a linear weir. Journal of Hydraulic Engineering. 2025;151(3): 04025006. https://doi.org/10.1061/JHEND8.HYENG-14118
  12. Hamidinia, M., Heidarnejad, M., Purmohammadi, M.H. and Masjedi, A. Effect of Stepped Sidewalls on the Performance of Trapezoidal Labyrinth Weirs and Piano Key Weirs: An Experimental Study. Journal of The Institution of Engineers (India): Series A. 2025;106(2): 605-614. https://doi.org/10.1007/s40030-025-00882-0
  13. Hussein, N.S. Evaluating the Hydraulic Efficiency of Rectangular, Labyrinth, and Piano Key Weirs Under Different Factors. Mathematical Modelling of Engineering Problems. 2025;12(11). DOI: 18280/mmep.121128
  14. Eltarabily, M.G., Kamal Hamed, A., Elkiki, M. and Selim, T. Hydraulic assessment of different types of piano key weirs. ISH Journal of Hydraulic Engineering. 2025;31(1): 8-31.https://doi.org/10.1080/09715010.2024.2415938
  15. Majedi-Asl, M., Fuladipanah, M., Arun, V. and Tripathi, R.P. Using data mining methods to improve discharge coefficient prediction in Piano Key and Labyrinth weirs. Water supply. 2022;22(2): 1964-1982. https://doi.org/10.2166/ws.2021.304
  16. Singh, D. and Kumar, M. Hydraulic design and analysis of piano key weirs: a review. Arabian Journal for Science and Engineering. 2022;47(4): 5093-5107. https://doi.org/10.1007/s13369-021-06370-4
  17. Cortes, C. and Vapnik, V. Support-vector networks. Machine Learning. 1995;20: 273-297. https://doi.org/10.1007/BF00994018
  18. Roushangar, K., Abbaszadeh, H., Saadatjoo, R. and Panahi, A. Prediction of air concentration in stepped spillways using data-oriented methods. Environment and Water Engineering. 2024;11(3): 316-325. 22034/ewe.2024.433409.1905
  19. Fuladipanah, M., Shahhosseini, A., Rathnayake, N., Azamathulla, H.M., Rathnayake, U., Meddage, D.P.P. and Tota-Maharaj, K. In-depth simulation of rainfall–runoff relationships using machine learning methods. Water Practice & Technology. 2024;19(6): 2442-2459. https://doi.org/10.2166/wpt.2024.147
  20. Fuladipanah, M., Majedi Asl, M. and Haghgooyi, A. Application of intelligent algorithm to model head-discharge relationship for submerged labyrinth and linear weirs. Journal of Hydraulics. 2020;15(2): 149-164. 30482/jhyd.2020.232388.1461
  21. Ferreira, C. Algorithm for solving gene expression programming: a new adaptive problem. Complex Systems. 2001; 13(2): 87-129.
    https://doi.org/10.48550/arXiv.cs/0102027
  22. Fuladipanah, M., and Majedi-Asl, M. Soft Computing Application to Amplify Discharge Coefficient Prediction in Side Rectangular Weirs. Irrigation and Water Engineering. 2022;12(4): 213-233. doi: 10.22125/iwe.2022.150692
  23. Friedman, J.H. Multivariate adaptive regression splines. The annals of statistics. 1991;19(1): 1-67. DOI: 10.1214/aos/1176347963
  24. Haghiabi, A., Parsaie, A. and Shamsi, Z. Intelligent Mathematical Modeling of Discharge Coefficient of Nonlinear Weirs with Triangular Plan. AUT Journal of Civil Engineering. 2019;3(2): 149-156. DOI: 10.22060/ajce.2018.14833.5500
  25. Kisi, O., Azamathulla, H. M., Cevat, F., Kulls, C., Kuhdaragh, M., and Fuladipanah, M. Enhancing River flow predictions: comparative analysis of machine learning approaches in modeling stage-discharge relationship. Results Eng. 2024;22(2024): 102017. https://doi.org/10.1016/j.rineng.2024.102017
  26. Noori, R., Khakpour, A., Omidvar, B., and Farokhnia, A. Comparison of ANN and principal component analysis-multivariate linear regression models for predicting the river flow based on developed discrepancy ratio statistic. Expert systems with applications. 2010;37(8): 5856-5862. 1016/j.eswa.2010.02.020
  27. Kougdaragh, M., Omidpour, T., MajediAsl, M., Masoumpour, R., & Ayami Lord, M. (2023). Comparison of Discharge Coefficient of Arced labyrinth Weir and Arced Piano Key Weir Using Artificial Intelligence Methods. Hydrophysics, 9(1), 147-161. 1001.1.24767131.1402.9.1.12.7
  28. Mahmoud, A., Yuan, X., Kheimi, M., & Yuan, Y. (2021). Interpolation accuracy of hybrid soft computing techniques in estimating discharge capacity of triangular labyrinth weir. IEEE Access, 9, 6769-6785. 1109/ACCESS.2021.3049223.
  29. Elshaarawy, M. K., & Hamed, A. K. (2024). Predicting discharge coefficient of triangular side orifice using ANN and GEP models. Water Science, 38(1), 1-20. https://doi.org/10.1080/23570008.2023.2290301
  30. Parsaie, A. and Haghiabi, A.H. (2017). Improving modelling of discharge coefficient of triangular labyrinth lateral weirs using SVM, GMDH and MARS techniques. Irrigation and drainage, 66(4): 636-654. https://doi.org/10.1002/ird.2125
  31. Alam, J., Muzzammil, M., & Raza, M. A. (2025). Prediction of coefficient of discharge (CPK) of A-type piano key weir using ANN and hybrid ANFIS models. Modeling Earth Systems and Environment, 11(3), 224. https://doi.org/10.1007/s40808-025-02400-4

Articles in Press, Accepted Manuscript
Available Online from 03 September 2026