Next Article in Journal
Analyzing the Diversion Effect of Debris Flow in Cross Channels Utilizing Two-Phase Flow Theory and the Principle of Energy Conservation
Previous Article in Journal
Water and Energy Conservation across Provinces and Sectors in China: Based on a Complex Network Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Baffle-Enhanced Scour Mitigation in Rectangular and Trapezoidal Piano Key Weirs: An Experimental and Machine Learning Investigation

1
Faculty of Civil and Environmental Engineering, Tarbiat Modares University, Tehran P.O. Box 14115-143, Iran
2
Faculty of Civil and Environmental Engineering, Utah State University, Logan, UT 84322, USA
3
Centre for Water Systems, Faculty of Environment, Science and Economy, University of Exeter, Exeter EX4 4QF, UK
*
Author to whom correspondence should be addressed.
Water 2024, 16(15), 2133; https://doi.org/10.3390/w16152133
Submission received: 5 July 2024 / Revised: 19 July 2024 / Accepted: 24 July 2024 / Published: 27 July 2024
(This article belongs to the Section Water Erosion and Sediment Transport)

Abstract

:
The assessment of scour depth downstream of weirs holds paramount importance in ensuring the structural stability of these hydraulic structures. This study presents groundbreaking experimental investigations highlighting the innovative use of baffles to enhance energy dissipation and mitigate scour in the downstream beds of rectangular piano key weirs (RPKWs) and trapezoidal piano key weirs (TPKWs). By leveraging three state-of-the-art supervised machine learning algorithms—multi-layer perceptron (MLP), extreme gradient boosting (XGBoost), and support vector regression (SVR)—to estimate scour hole parameters, this research showcases significant advancements in predictive modeling for scour analysis. Experimental results reveal that the incorporation of baffles leads to a remarkable 18–22% increase in energy dissipation and an 11–14% reduction in scour depth for both RPKWs and TPKWs. Specifically, introducing baffles in RPKWs resulted in a noteworthy 26.7% reduction in scour hole area and a 30.3% decrease in scour volume compared to RPKWs without baffles. Moreover, novel empirical equations were developed to estimate scour parameters, achieving impressive performance metrics with an average R2 = 0.951, RMSE = 0.145, and MRPE = 4.429%. The MLP models demonstrate superior performance in predicting maximum scour depth across all scenarios with an average R2 = 0.988, RMSE = 0.035, and MRPE = 1.036%. However, the predictive capabilities varied when estimating weir toe scour depth under diverse circumstances, with the XGBoost model proving more accurate in scenarios involving baffled TPKWs with R2 = 0.965, RMSE = 0.048, and MRPE = 2.798% than the MLP and SVR models. This research underscores the significant role of baffles in minimizing scouring effects in TPKWs compared to RPKWs, showcasing the potential for improved design and efficiency in water-management systems.

1. Introduction

Weirs are vital components of water transfer systems, frequently utilized in dams to control floods and regulate the water levels of reservoirs. They serve a critical function in managing flows within irrigation and drainage channels and accurately measuring discharges. Despite their significant utility, hydraulic structures like weirs are susceptible to a primary concern—local scouring, which threatens their stability and operational efficiency. Numerous studies have investigated the performance of piano key weirs (PKWs) in low-hydraulic-head conditions, where the complete aeration of flow can mitigate erosion and cavitation risks. However, as hydraulic heads increase, the advantages of PKWs diminish, impacting their overall effectiveness. Accurately estimating maximum scour depth is essential for the safe and cost-efficient design of hydraulic structures to mitigate potential damage or failure [1]. Several scholars have contributed to understanding and predicting scour parameters downstream of PKWs under varying conditions, encompassing the geometric characteristics of scour holes and sediment ridges, energy dissipation rates, and the influence of different geometries on weir performance. In their comprehensive study, Jüstrich et al. [2] explored the impact of various parameters on the geometric features of scour holes and sediment ridges downstream of a RPKW, offering valuable insights and establishing predictive relationships for these parameters. Palermo et al. [3] observed that the equilibrium scour downstream of an RPKW is influenced by flow discharge, structure height, and tailwater depth. However, further analysis is required to fully comprehend the underlying physics and establish quantitative criteria for evaluating scour parameters. In their experiments, Kumar and Ahmad [4] investigated the scour patterns downstream of a three-cycle RPKW, with and without a solid apron. Their results indicated that scour was predominantly driven by jets originating from the keys. Deeper and longer scouring was observed for higher discharges and lower tailwater depths. Kumar et al. [5] examined the movement of sediment particles upstream of a RPKW and observed deceleration near the inlet keys followed by acceleration at the key ends. Ghodsian et al. [6] found that the maximum scour depth in a triangular PKW exceeded that of a trapezoidal PKW. Lantz et al. [7] experimentally explored the impact of apron configurations on downstream scour geometry under various hydraulic conditions, demonstrating the effectiveness of horizontal aprons in deflecting outflow plunging jets from an RPKW and significantly reducing scour depth. Further enhancing our understanding of scour mitigation strategies, Kumar and Ahmad [8] explored the impact of apron installations on scour downstream of RPKWs under free and submerged flow conditions, reporting significant scour depth reductions with the incorporation of an apron. Abdi Chooplou et al. [9] studied the temporal evolution of scour downstream of a TPKW and observed a significant increase in the dimensions of the scour hole during the initial stages of scouring. Lantz et al. [10] investigated the local scour process downstream of a type A RPKW in non-cohesive sediments, emphasizing the impact of hydraulic conditions on scour mechanisms. Abdi Chooplou et al. [11] found that the scour volume decreased with increasing relative tailwater depth downstream of a TPKW. Additionally, their study indicated that altering the shape of lateral walls crest downstream of a rectangular PKW could reduce scour depth and the extension of the scour hole [12]. Bodaghi et al. [13] explored the effect of submergence of a TPKW on downstream scouring, noting a decrease in maximum scour depth with higher submergence ratios. Abdi Chooplou et al. [14] compared scour parameters downstream of PKWs with different shapes, highlighting differences in scour depth, length, area, volume, and asymmetry index among rectangular, trapezoidal, and triangular PKWs. Fathi et al. [15] analyzed the impact of varying step configurations at the outlet keys of RPKWs on scour depth, finding that additional steps and smaller bed materials reduced sediment ridge height. Optimizing weir designs based on these insights can aid in mitigating downstream scouring. Kumar et al. [16] conducted a numerical study on the flow field and sediment passing capacity of type A RPKWs, revealing increased velocity components due to the vertical contraction in front of the sloped keys. This flow pattern has significant implications for sediment passing capacity and the overall performance of such hydraulic structures.
In a comparative analysis, Erpicum and Machiels [17] evaluated the energy dissipation rates between a RPKW and an Ogee spillway, revealing nearly equivalent levels of energy dissipation for both hydraulic structures. Additionally, Eslinger and Crookston [18] studied energy dissipation in RPKWs with varying geometries, highlighting the role of flow dynamics through the structure’s front faces and upstream overhangs in facilitating energy dissipation. Naghibzadeh et al. [19] conducted experimental and numerical investigations on energy dissipation in RPKWs with stepped and baffled downstream slopes, uncovering a decrease in energy dissipation with increasing discharge. Notably, their study revealed that baffled PKWs exhibited more energy dissipation compared to stepped and un-baffled PKWs. Delving into the performance aspects of PKWs, Souri et al. [20] conducted numerical simulations to evaluate the influence of aeration on both RPKW and TPKWs. Iqbal and Ghani [21] conducted a study on the energy dissipation characteristics of a PKW, analyzing the effects of varying key slope and key width ratios. Their findings revealed that an increase in key slope led to enhanced energy dissipation, whereas an increase in key width ratio resulted in reduced energy dissipation. Compared to traditional weirs, the PKW demonstrated superior energy dissipation, particularly evident at low flow rates.
The adoption of artificial neural networks (ANNs) and machine learning (ML) algorithms has emerged as a promising alternative to traditional regression models in predicting scour depth at hydraulic structures. These techniques exhibit strong generalization capabilities to unseen data and offer accurate predictions. Recent progress in hydraulic engineering has seen a notable increase in the use of ANNs and ML methods for precisely estimating scour depth at a range of hydraulic structures. Researchers have been dedicated to thoroughly assessing the effectiveness of different ML models in this crucial field. Muzzammil [22] showcased the remarkable capabilities of adaptive neuro-fuzzy inference systems (ANFIS) in modeling scour depth at bridge abutments, underscoring its superior predictive accuracy. Conversely, Najafzadeh et al. [23] demonstrated that the group method of data handling (GMDH) surpassed support vector machines (SVMs) in estimating scour depth around bridge abutments, highlighting the discerning nature of model selection in optimizing accuracy. Etemad-Shahidi et al. [24] reported the high fidelity of the M5 model tree in simulating scour depth around bridge piers, indicative of its robust predictive power. Similarly, Sharafi et al. [25] delineated the supremacy of SVM with diverse kernel functions over traditional methods like ANNs and ANFIS in forecasting scour depth around bridge piers, emphasizing the versatility of ML frameworks. Azimi et al. [26] innovatively integrated ANFIS-DE/SVD, a fusion of ANFIS and Differential Evolutionary algorithms, to outperform genetic algorithms (GAs) in simulating scouring around bridge pile groups, showcasing the promise of hybrid techniques. Additionally, Ebtehaj et al. [27] ascertained that extreme learning machines (ELM) outperformed SVM and ANN in providing precise forecasts of local scour depth around pile groups, heralding a new era of accuracy in scour depth estimation.
The advent of novel methodologies such as the self-adaptive extreme learning machine (SAELM) model, as demonstrated by Rashki-GhalehNou et al. [28], has pushed the boundaries of predictive accuracy beyond conventional models like ANN and SVM, particularly in predicting scour parameters downstream of sloping submerged weirs. Furthermore, Sharafati et al. [29] leveraged the optimization capabilities of ANFIS with innovative methods to predict scour depth downstream of sharp-crested weirs, revealing that ANFIS-IWO emerged as the most effective predictive model in this context. In an era characterized by the fusion of diverse computational techniques, Salih et al. [30] introduced the tBPSO-SVR model, a fusion of enhanced binary particle swarm optimization and support vector regression, as a potent tool for forecasting scour depth at submerged weirs, surpassing traditional methods like linear regression and decision trees. Moreover, the integration of ground penetrating radar (GPR), random forest (RF), and M5 tree models by Ahmadianfar et al. [31] through the least squares boosting ensemble showcased a synergistic approach to enhancing scour depth around pile groups estimation accuracy. Pandey et al. [32] further advanced the domain by employing ensemble-based techniques like categorical boosting (CatBoost), extra tree regression (ETR), and K-nearest neighbor (KNN) algorithms to predict scour depth around bridge abutments, with gradient boosting decision trees (GBDT) identifying crucial features for accurate modeling. Salmasi et al. [33] underscored the precision of gene expression programming (GEP) in predicting scouring induced by free fall jets, exemplifying the potential of innovative methodologies in scour parameter estimation. Iqbal and Ghani [34] demonstrated that artificial neural network (ANN) models can effectively forecast the discharge capacity of PKWs, surpassing the performance of conventional empirical equations. Their research involved the creation of robust ANN models that exhibited strong correlations with experimental data, pinpointing the significant parameters that impact PKW discharge.
While advancements have been made in predicting scour parameters, a significant research gap exists in the exploration of energy dissipation and scour mitigation strategies specific to PKWs. This study aims to fill this crucial knowledge void by investigating the energy dissipation characteristics of type A RPKWs and TPKWs, assessing the effectiveness of baffle installations on outlet keys for mitigating downstream scour, and developing reliable machine learning models for accurately predicting local scour features downstream of baffled PKWs. By achieving these goals, this study will offer valuable insights into optimizing the performance and stability of PKWs through tailored scour prediction and mitigation strategies. This research directly addresses a critical need in hydraulic engineering and contributes to advancing more resilient and sustainable hydraulic structures through the innovative application of machine learning techniques.

2. Materials and Methods

2.1. Dimensional Analysis

The downstream scour phenomena of a PKW and the associated key parameters are illustrated in Figure 1. In this representation, key variables include the upstream total head H (=hu + V02/2g, hu is upstream depth of flow relative to the weir crest, V0 is approach flow velocity, g is gravitational acceleration), hd signifies the depth of the tailwater, Hd characterizes the downstream head, ΔH indicates the difference between the upstream and downstream heads, ZSF depicts the scour depth at the weir toe, dSM represents the maximum scour depth, XSM designates the distance from the weir toe to the location of maximum scour depth, and LS represents the length of the scour hole.
The components of a type A PKW outlined in Figure 2 encompass the following parameters: the length of the weir crest (L), the height of the weir (P), the width of the weir (W), the width of the inlet key (Wi), the width of the outlet key (Wo), the streamwise length of the weir (B), the base length of the weir (Bb), the lengths of the inlet and outlet keys overhang (Bi and Bo, respectively), the width of the weir cycle (Wu), and the thickness of the weir wall (Ts).
Various factors affecting the scoring downstream of a PKW include the flow characteristic (fFlow), the properties of the bed materials and water (fBed, Water), the geometric parameters of the PKW (fGeometry), and the presence of baffles (fbaffles):
Ψ     =     f f F l o w ( V j ,   h u ,   H ,   Δ H ,   h d ) ,     f B e d ,     W a t e r ( d 50 ,   ρ w ,   ρ s ,   g ) ,     f G e o m e t r y ( P ,   W i ,   W o ,   W ,   B i ,   B o ,   B b , B ,   T S ,   N ,   ζ ) ,     f B a f f l e s ( H B )
here ψ denotes the dimensions of the scour hole and sedimentary ridge, f is the function symbol, Vj  ( = 2 g h ) signifies the velocity of the jet at the tailwater level, d50 denotes the mean sediment size, ρw denotes the density of water, ρs represents the density of sediment, N signifies the number of weir cycles, ζ denotes the effect of the weir’s shape, and HB indicates the height of the baffles. By utilizing the Buckingham ∏ theorem, and subsequently combining dimensionless parameters while excluding constant factors, the following equation is derived for a baffled PKW:
Ψ H     = f Fr ,   Δ H h d , ζ   ,   h u H B
where Fr ( = V j / g h d ) is the Froude number.

2.2. Experiments

2.2.1. Experimental Setup

The tests were carried out in a rectangular channel with 10 m length, 0.75 m width, 0.80 m height, and a longitudinal bed slope of 0.001, in the hydraulic laboratory of the water engineering and hydraulic structures group at Tarbiat Modares University in Tehran. The channel’s walls were constructed from glass, while the bottom was made of metal. A pump capable of supplying water at a maximum rate of 0.085 m3/s transported water from a sump to the channel.
Tailwater depth adjustments were facilitated by a gate situated at the channel’s endpoint. All experiments were conducted under free-flow conditions. The viscosity effects are negligible in turbulent flow with Reynolds numbers greater than 30,000 [35,36]. As recommended by Pfister et al. [37] and Erpicum et al. [38], a minimum upstream depth of H ≥ 0.03 m was ensured. Additionally, to mitigate the influence of surface tension, the ratio of H/P was kept above 0.1 [39]. The initial level of the sediment bed in all experiments was equal to the weir toe level. A thin metal sheet was placed over the sediments to prevent the start-up effect.

2.2.2. Experimental Layout and Parameters

Based on established guidelines by Lempérière and Ouamane [40]; Lempérière and Jun [41], and Mehboudi et al. [42], two distinct geometrical configurations of PKWs were used in the experiments: rectangular and trapezoidal shapes (Figure 3). The PKWs featured three cycles (N = 3) and were manufactured using thermoplastic material through a three-dimensional printing process. They were positioned approximately 3 m from the entrance of the channel. Detailed specifications of the PKWs, including the sidewall angle denoted as α, are provided in Table 1.
The study employed a non-cohesive quartz gravel bed with a median size (d50) of 7.1 mm to induce scouring, ensuring uniformity with a standard deviation (σg) of less than 1.5, adhering to recommendations from previous studies [43,44]. The tested range of d50/P values in this investigation was aligned with typical prototype conditions, with weir heights (P) varying from 3.0 m to 5.0 m, consistent with studies by Ho Ta Khanh et al. [45] and Laugier et al. [46]. This alignment indicates the generalizability of the results to coarse river beds, as supported by the work of Jüstrich et al. [3]. Additionally, the negligible scale effect on scouring was validated by the d10 value (5.2 mm) exceeding the recommended threshold of 1.0 mm, as advised by Pagliara et al. [47].
A 3 m long and 0.75 m wide area downstream of the PKW was covered with sediments and leveled using a bed leveler (Figure 4). To prevent sediment intrusion into the sump, a metal mesh was strategically installed at the channel’s end.
The baffles, constructed from coated wood in a cubic shape, were designed as per the recommendations of the United States Bureau of Reclamation [48]. The baffles’ height was fixed at 0.032 m, with a longitudinal spacing of 0.064 m (equal to 2 times the baffle height). The longitudinal base width of the baffles matched the outlet keys, set at 0.026 m. Figure 5 shows the details and layout of the baffles implemented on the outlet keys.

2.2.3. Test Details and Summary

Table 2 contains a comprehensive summary of the tests, consisting of 80 experiments. The symbol B(Q)-(hd) denotes the tested model, with “B” denoting the series of tests involving baffled weirs. The first numeric element represents the discharge in liters per second, accompanied by the tailwater depth indicated in centimeters. The experiments covered discharges ranging from 0.03 to 0.06 m3/s, relative drop heights (ΔH/hd) spanning from 0.26 to 1.74, and Froude numbers (Fr) between 0.74 and 2.12.
The largest tested unit discharge (q = 0.08 m2/s) in the study corresponds to approximately 23 m2/s in the prototype condition. This value was obtained using a scale factor of 40, as reported by Dugué et al. [49].

2.2.4. Experimental Measurements

The measurement procedures encompassed the use of several sophisticated instruments. The upstream flow depth and tailwater depth were ascertained using a digital point gauge, boasting an accuracy of ±1 mm. The discharge was measured using a calibrated ultrasonic flow meter (Model TFM3100-F1) with ±1% accuracy, attached to the inflow pipe. To accommodate the formation of a hydraulic jump downstream of the weirs, downstream velocity was computed utilizing the flow depths measured before the jump. As the flow was notably three-dimensional, multiple depth measurements were conducted and subsequently averaged to determine the downstream velocity. The experiment commenced by gradually removing the metal sheet to minimize its influence on the sediment bed. Each test recorded the discharge, as well as the upstream and downstream flow depths around the PKWs. After reducing the discharge and draining the channel bed, the bed topography was meticulously documented using a laser bed profiler.
To ascertain the equilibrium time, a 15 h test was conducted to observe scour depths, as illustrated in Figure 6, which captured the most critical state characterized by the highest discharge (Q = 0.06 m3/s) and lowest tailwater depth (hd = 0.08 m). Clear from the graph, after roughly 180 min into the experiment, the increase in scour depth became negligible, aligning with the criteria outlined by Chiew [50] and Kumar et al. [51] for the equilibrium state. As such, the duration of 180 min was adopted as the equilibrium state for subsequent experiments. Additionally, the tests revealed a progressive increase in the local scour depth downstream of the weir in the absence of baffles in the outlet keys, peaking after 180 min as the system attained an equilibrium state—a trend in line with prior studies on abutment scour [52].

2.3. Machine Learning Algorithms

2.3.1. Extreme Gradient Boosting—Skopt

Extreme gradient boosting—skopt (XGBoost) is a powerful machine learning method that combines predictions from multiple weak models to enhance overall prediction accuracy. It employs gradient boosting, an iterative process that fits weak models to the negative gradient or residual of the previous iteration. By utilizing first- and second-order gradients, XGBoost captures the curvature of the loss function. Regularization techniques (such as L1 and L2) penalize complex models to improve generalization. Additionally, XGBoost incorporates optimizations like parallel processing and cache awareness for efficient computation [53].
This study employs the XGBoost algorithm using the XGBRegressor from the xgboost library, combined with a grid search (GridSearchCV) for optimizing hyperparameters such as n_estimators, learning_rate, max_depth, subsample, and colsample_bytree. The algorithm’s steps are shown in Figure 7.

2.3.2. Multi-Layer Perceptron (MLP)—Hyperopt Optimizer

The MLP is a feed-forward algorithm that was developed to address the limitation of the perceptron, as highlighted by Minsky and Papert [54], which cannot handle non-linear data with just one neuron. The MLP includes input and output layers, as well as one or more hidden layers containing multiple neurons. Neurons in the MLP require an activation function, such as the ReLU function, to set a threshold, which is calculated using a specific equation:
ReLU ( x )     = max ( 0 , x )
where x is the input variable.
The MLP integrates inputs with initial weights, applies an activation function, and passes the outcomes to the following layer. This process repeats through the hidden layers until it reaches the output layer [55].
Figure 8 depicts a hypothetical structure of an MLP model. The MLP model used in this paper has more nodes than displayed in Figure 8. Here, w11 to w33 and v11 to v31 display weights, and the output variable (y) illustrates different relative scour parameters such as dSM/H and ZSF/H.
To create MLP models for this study, the MLPRegressor class from the sklearn library was utilized with its default parameters, including a batch size of 4. The Sgd and Ilfgs solver were employed, and MSE was used as the loss function. Only two hyperparameters, namely the number of neurons in the hidden layer (hidden_layer_sizes) and the maximum number of iterations (max_iter), were tuned to find the optimal model. The regularization parameters C, ε, and γ in the model play crucial roles in balancing complexity and accuracy. Increasing C emphasizes minimizing training errors, potentially leading to overfitting. Reducing C prevents overfitting and enhances generalization. ε determines the acceptable error level, with higher values promoting flexibility and lower values prioritizing precision [56]. γ influences the support vectors’ radius, with higher values capturing intricate patterns and lower values focusing on broader trends [57].

2.3.3. The Support Vector Regression (SVR)

The SVR is a precise machine learning algorithm commonly used for regression purposes. The specifics of this algorithm can be referenced in the works of Ceperic et al. [58]. When developing SVR models to predict scour hole characteristics downstream of a TPKW, the SVR class from the sklearn library is typically used with its default settings. The only parameter that needs to be adjusted is the kernel, which should be set to the radial basis function (RBF) type, and three key hyperparameters of the fine-tuned SVR.
The regularization parameter C plays a crucial role in balancing the complexity of the model with the desired accuracy of the training data. By increasing C, the emphasis shifts towards minimizing training errors, which could lead to a more complex and potentially overfitting model. Conversely, reducing C can help prevent overfitting and enhance the model’s ability to generalize to unseen data [56]. The ε parameter establishes the acceptable error level for the model and can be assigned decimal values. A higher ε value promotes a more flexible model that can accommodate outliers or noisy data, possibly sacrificing precision. Conversely, a lower ε value results in a more precise model that focuses on error minimization, potentially neglecting outliers or noisy data [56]. The γ parameter determines the support vectors’ influence radius. Increasing γ enables the model to capture intricate patterns in the training data, potentially at the expense of generalization to unseen data. Conversely, decreasing γ encourages a more generalized representation of the data, allowing the model to focus on capturing broader patterns and trends [57].

2.4. Model Development

This section details the development of machine learning models to predict scour hole characteristics downstream of a trapezoidal and rectangular PKW. Three primary models are constructed, XGBoost, MLP, and SVR models, which will be elaborated on in the subsequent sections.

2.4.1. Data Processing

Data preprocessing involves preparing data for algorithms. Initially, the data were divided into training and testing datasets using the hold-out strategy, where 80% of the data were allocated for training, and the remaining 20% were reserved for testing [59]. This split was accomplished using the train_test_split function from the Python sklearn library, with a test_size of 0.2. For modeling the relative toe scour depth (ZSF/H) and the relative maximum scour diameter (dSM/H), the training set consisted of 64 samples, and the testing set had 16 samples.
The MLP model benefits from normalizing input features. Failure to do so can result in longer convergence times or even failure to converge. To address this, the MinMaxScaler class from sklearn was used to normalize both training and testing datasets, ensuring all features were on a similar scale.

2.4.2. Hyperparameter Optimization

XGBoost: The hyperparameter optimization for the XGBoost model utilizes the Bayesian optimization algorithm provided by the ‘skopt’ library, specifically the gp_minimize function. This optimizer uses Gaussian processes to model the function we aim to minimize, which is the root mean squared error (RMSE) in this case. The optimization process involves defining a search space for hyperparameters such as n_estimators (ranging from 100 to 1000), learning_rate (0.01 to 0.3), max_depth (3 to 10), subsample (0.6 to 1.0), colsample_bytree (0.6 to 1.0), gamma (0.0 to 1.0), and min_child_weight (1 to 10).
The objective function trains the XGBoost model with the given hyperparameters, evaluates its performance on a test set, and returns the RMSE. The optimizer iteratively explores the hyperparameter space to identify the combination that minimizes the RMSE, improving predictive performance and ensuring efficient convergence. The CheckpointSaver callback is used to save the optimizer’s progress and state, ensuring that results are not lost in case of interruptions. After 100 iterations, the best hyperparameters are identified and used to train the final XGBoost model, which is then evaluated using metrics such as R2, RMSE, and MRPE on both training and testing datasets. The detailed hyperparameter values are presented in Table 3.
The MLP model uses the Tree-structured Parzen Estimator (TPE) algorithm from Hyperopt to optimize hyperparameters. The goal is to minimize the root mean squared error (RMSE) by adjusting parameters such as hidden layer sizes, activation functions, solvers, and regularization parameters. The process involves defining a search space, performing 100 evaluations, and tracking performance metrics to select the best hyperparameters. The selected hyperparameters are used to train the final MLP model, which is then evaluated on both training and testing datasets using relevant metrics. The detailed hyperparameter values are presented in Table 4.
The SVR model uses GridSearchCV to optimize hyperparameters. It evaluates a range of values for C (1–10,000), gamma (0.005–100), and epsilon (0.01–0.25) using a 5-fold cross-validation. The goal is to minimize the mean squared error (MSE) of predictions. The best model, determined by the lowest RMSE, is used to predict outcomes on both training and testing datasets. The structure of the SVR model in different cases is shown in Table 5.

3. Results and Discussion

3.1. Experimental Data Evaluation

In this research, the characteristics of scour holes downstream of PKWs were evaluated to investigate the effects of baffles in the weir outlet keys under different hydraulic conditions. Figure 9 illustrates the flow patterns for PKWs with and without baffles. During the tests, two types of flows were observed in the inlet and outlet keys. The inlet keys drew the approaching flow towards themselves, which then discharged over the downstream crest as a falling jet. In contrast, the flows over the outlet keys were discharged as an inclined jet over the downstream sloped part of the weir. The water level rose in the outlet keys due to flow interference caused by the falling jet from the weir lateral walls with the upstream flow, resulting in severe flow turbulence.
The flow surface downstream of the baffled weir was observed to rise with enhanced turbulence, which exhibited a highly three-dimensional nature. This is because the baffles throw the water upwards, downstream of the outlet keys. Figure 10 compares the schematic flow patterns over baffled and un-baffled weirs. The impinging jet in the un-baffled weir (Figure 10a) transformed into a surface jet in the baffled weir (Figure 10b). Additionally, the interference between flow layers increased, and air entrainment was enhanced in the baffled weir. Furthermore, the friction and drag forces acting on the baffles, coupled with the low-pressure zone formed behind them, resulted in increased energy dissipation.
The amounts of upstream specific energy E0, downstream specific energy E1, and relative energy loss ΔE are calculated by Equations (4)–(6). The percentage difference of energy loss for the baffled and un-baffled weirs ΔEd was calculated using Equation (7).
E 0     = y 0   + V 0 2 2 g
E 1     = y 1   + V 1 2 2 g
Δ E     = E 0 E 1 E 0
Δ E d     = Δ E b a f f l e d Δ E u n b a f f l e d Δ E u n b a f f l e d × 100
where y0 and y1 are the flow depths upstream (=hu + P) and downstream (=hd + P) of the weir concerning initial bed level, respectively (Figure 1), V1 represents the flow velocity downstream of the weir, and ΔEbaffled and ΔEun-baffled are relative energy loss for baffled and un-baffled weirs, respectively.
Figure 11 shows a comparison of the difference in relative energy loss for the RPKW and TPKE with and without the baffles. As can be seen in Figure 11, the presence of baffles in the weir outlet key has increased the energy losses for all the models. The average energy loss in the RPKW and TPKW with baffles is significantly higher than that of the weir without baffles, with increases of approximately 18 and 22%, respectively. Furthermore, it is observable in both weir geometries that at a constant relative tailwater depth (hd/P), the percentage differences in energy loss (ΔEd) are more pronounced at lower Froude numbers, and these differences diminish as the Froude number increases. The influence of baffles on flow characteristics is more pronounced at lower Froude numbers, which correspond to lower flow depths (and lower hu/HB ratios). In this scenario, more layers of flow are affected by the baffles, as illustrated in Figure 12a, resulting in higher energy dissipation. Conversely, as the Froude number increases and the hu/HB ratio enhances, the vortex flows created in the separation region, based on the theory of falling flow (non-slip), prevent the full contact of flow with the baffles. Consequently, the effects of baffles on flow resistance decrease, and they only influence the lower layers of the flow (Figure 12b), thereby reducing the overall energy loss.
Figure 13 compares the temporal variations of scour depth for weirs with and without baffles. In this figure, t represents the time of scouring, and te denotes the equilibrium time. The scour rate is high initially but decreases to an insignificant level by the end of the tests. The presence of baffles reduces the scour depth and its temporal variations. Increasing ΔH/hd and Fr leads to an increase in scour depth. The results show that 80% of scouring occurs within the first hour. For the range of 0.75 ≤ ΔH/hd ≤ 0.85, 73–87% of scour depth development occurs in the initial 30% of the test duration. The reducing effect of baffles on scour depth becomes more pronounced as the relative drop height decreases. At the equilibrium state, baffled weirs exhibit average scour depths that are 6.5, 15 and 15.5% less than those without baffles for the respective drop height ranges of 1.61 ≤ ΔH/ h d ≤ 1.74, 0.75 ≤ ΔH/ h d ≤ 0.85 and 0.27 ≤ ΔH/ h d ≤ 0.39 [Figure 13a–c].
This study examined the changes in bed topography downstream of a weir, with and without the presence of baffles, under various Froude numbers and relative tailwater depths (Figure 14). The results indicate that increasing the Froude number and relative drop height increases the erosive power and sediment transfer downstream, while the presence of baffles reduces the topographical changes and limits the scour hole extension, with the smallest scour hole observed at Fr = 1.25 and ΔH/hd = 0.75, resulting in a 21% reduction in scour. However, the difference in bed topography changes between baffled and un-baffled weirs decreased at the higher Froude numbers due to increased baffle resistance, and at the minimum Froude number, the baffled weir exhibited more flow interference and air entrainment, leading to less pronounced bed topography variations compared to the un-baffled configuration. The findings provide valuable insights into the role of baffles in modulating bed topography changes under varying hydraulic conditions, which can inform the design and optimization of weir structures for improved sediment management and environmental sustainability.
The effects of Froude number and relative drop height on the longitudinal bed profiles for the weirs with and without baffles are compared in Figure 15. This figure corresponds to the section with the deepest scour depth, which is downstream of outlet keys. According to this figure, the maximum scour depth at the baffled TPKW is, on average, 14% less than that of the un-baffled weir. The greatest effect of baffles on the mentioned distance occurred for Fr = 2.00, 1.30, and 0.82. Compared to the un-baffled weir, these distances were 8.8, 15, and 19% farther at the relative drop heights of 1.72, 0.78, and 0.31, respectively. This suggests that the presence of baffles can significantly reduce the maximum scour depth and extend the distance of the scour hole, particularly under moderate to high Froude number conditions and varying relative drop heights. The baffles appear to effectively dissipate the flow energy and disrupt the sediment transport processes, leading to a less pronounced scour profile. Interestingly, it was also observed that the length of the scour hole for the baffled and un-baffled weirs, with Fr = 0.76 and ΔH/ h d = 0.27, which is lower than the weir height. However, for other flow conditions, the scour hole length is greater than the weir height. This highlights the complex interplay between the hydraulic parameters and the resulting bed morphology, which should be carefully considered in the design and operation of such structures.
Equation (2) describes the relationship between the relative maximum scour depth and the relative weir toe scour as a function of the Froude number and the relative drop height, as shown in Figure 16. The results indicate that the relative maximum scour depth and weir toe scour increase with higher Froude numbers for both baffled and un-baffled weirs. Importantly, the presence of baffles significantly reduces weir toe scour by altering the downstream flow. At constant Froude numbers, baffled weirs exhibit lower relative maximum scour depth and weir toe scour compared to un-baffled weirs. Specifically, the TPKW shows 9.7 and 14% reductions in maximum scour depth and weir toe scour, respectively, compared to the RPKW. The effectiveness of baffles in reducing scour is more pronounced when the tailwater depth is lower, as the baffles can influence a greater portion of the flow layers in this scenario. However, baffles still significantly mitigate weir toe scour, even when the tailwater depth is high, by transforming the impinging jets into surface jets. This change in flow pattern improves the overall stability of the weir structure.
The percentage scour reduction for the maximum scour depth, weir toe scour depth, maximum scour depth location, and scour hole length, for different tests, are presented in Figure 17.
According to Figure 17, baffled weirs show significant reductions in maximum scour depth (11–14%) in RPKW and TPKW [Figure 17a] and weir toe scour (25–41%) in RPKW and TPKW compared to un-baffled weirs [Figure 17b]. The effect is more pronounced at lower Froude numbers when more flow layers are affected by the baffles. Furthermore, baffled weirs experience a 9–11.7% downstream shift in the location of maximum scour depth [Figure 17c] and a 7–13% reduction in scour hole length [Figure 17d]. The greatest reduction (25%) in scour hole length was observed in the TPKW with test B30-18.
The scour hole areas and volumes were calculated using Tecplot 360 EX software and presented in Table 6. The presence of baffles had a significant impact on reducing scour. The greatest effects were observed in test B30-18, where baffles reduced the scour hole area and volume by 58.2 and 61.8%, respectively, compared to un-baffled TPKWs. In general, baffles are more effective at reducing scour downstream of TPKWs compared to RPKWs. This is due to the influence of the weir keys in TPKWs, which allows the baffles to achieve greater reductions in scour hole size. In contrast, baffles have a less dramatic impact on mitigating downstream scour around RPKWs. On average, baffles reduced the scour hole area and volume by 31.6 and 32.2% in TPKWs, respectively, compared to 26.7 and 30.3% in RPKWs. This suggests that the presence of baffles is more effective in mitigating scour in TPKWs under the tested hydraulic conditions.
This research developed empirical equations to accurately predict the relative scour depths (dSM/H and ZSF/H) downstream of a weir, applicable for scenarios both without baffles (Equation (8)) and with baffles (Equation (9)). These equations can effectively calculate the scour parameters for both RPKWs and TPKWs. The equations accommodate a wide range of hydraulic conditions, including 0.74 ≤ Fr ≤ 2.12, 0.26 ≤ ∆H/hd ≤ 1.74, and 0.99 ≤ hu/HB ≤ 1.88.
ψ H     = K ζ Fr a Δ H h d b
ψ H     = K ζ Fr a Δ H h d b h u H B c
The coefficient Kζ accounts for the influence of weir shape, and Table 7 outlines the empirical constants ‘a’, ‘b’, and ‘c’. This table also includes the coefficient of determination R2, RMSE, and MRPE to comprehensively assess the precision and accuracy of the developed equations. According to Table 7, these equations estimate scour parameters, achieving impressive results with an average R2 = 0.951, RMSE = 0.145, and MRPE = 4.429%. Figure 18 compares calculated and observed scour depths for weirs with and without baffles. This visual comparison demonstrates the high accuracy and predictive capability of the proposed equations, which can reliably estimate the scour depths under a wide range of hydraulic conditions.

3.2. Modeling Outputs

This study evaluated the performance of optimized MLP, SVR, and XGBoost models in predicting maximum scour depth and weir toe scour depth, both with and without baffles, for training and testing datasets. Table 8 demonstrates that the MLP model outperforms both XGBoost and SVR in predicting dSM/H across all scenarios, with superior performance in both the training and testing phases. The MLP model achieves an averaged R2 of 0.988, RMSE of 0.035, and MRPE of 1.036% across all scenarios. The adoption of the MLP model over XGBoost and SVR yields substantial improvements, with notable increases in R2 (4.50% and 0.2%), decreases in RMSE indices (5.8% and 0.5%), and significant reductions in MRPE indices (135.8% and 13.3%).
Specifically, the MLP model achieves superior results for maximum scour depth prediction. It outperforms both un-baffled and baffled RPKW scenarios by 3.7% and 6.7% in terms of R2 and surpasses un-baffled and baffled TPKW scenarios by 2% and 4%. The MLP model yields RMSE values of 0.046 for un-baffled RPKW and 0.035 for baffled RPKW, which are better than the results in Table 7 (0.175 and 0.227, respectively). In un-baffled and baffled TPKW scenarios, the MLP model’s RMSE values are 0.036 and 0.024, outperforming the corresponding values from Equations (8) and (9) (0.119 and 0.167). Regarding MRPE, the MLP model significantly outperforms Equations (8) and (9) for both RPKW and TPKW scenarios.
The performance of the different ML models in predicting ZSF/H for various scenarios is summarized in Table 9. For un-baffled RPKW, the MLP model outperformed XGBoost and SVR, achieving the highest R2 (0.998), lowest RMSE (0.004), and lowest MRPE (0.167). For baffled RPKW, the MLP model again demonstrated superior performance. For un-baffled TPKW, the MLP model had the highest R2 (0.992), lowest RMSE (0.024), and lowest MRPE (0.904). However, for baffled TPKW, XGBoost performed best, with the highest R2 (0.965), lowest RMSE (0.048), and lowest MRPE (2.798).
The MLP consistently outperformed XGBoost and SVR models across most configurations, except for baffled TPKW, where XGBoost performed better. The significant improvements in statistical indices demonstrate the MLP model’s robustness and accuracy in predicting ZSF/H, outperforming traditional models. Specifically, the MLP model surpasses both un-baffled and baffled RPKW scenarios by 97% and 87% in terms of RMSE and outperforms un-baffled and baffled TPKW scenarios by 76% and 33%.
Table 10 illustrates the feature importance analysis conducted by the MLP model. This analysis sheds light on the relative significance of each input variable in determining the model’s predictive accuracy. According to the results depicted in Table 10, it is evident that in the scenario without baffles, the impact of ΔH/hd on dSM/H and ZSF/H outweighs that on Fr, except in the case of ZSF/H for the un-baffled RPKW, where the influence of Fr exceeds ΔH/hd by 46%. On the other hand, for the baffled PKW, hu/HB emerges as the most crucial parameter in predicting dSM/H and ZSF/H. The importance scores reflect this, with values of 0.493 and 0.672 for predicting dSM/H in RPKW and TPKW, and 0.403 and 0.355 for predicting ZSF/H in RPKW and TPKW, respectively.
Figure 19 presents a comparison of the estimated values of dSM/H and ZSF/H using XGBoost, MLP, and SVR models against their measured values. The majority of the forecasted test data fall within ±10% error lines, confirming that the proposed machine learning models accurately predict scour parameters for PKWs. The results show that the MLP model consistently outperforms the other models.
The Taylor plots (Figure 20) compare the performance of ML models in predicting dSM/H and ZSF/H for baffled and un-baffled RPKW and TPKW. The MLP model consistently demonstrates superior performance, with the highest correlation and closest alignment with measured data, indicating superior predictive performance and alignment with actual measurements. XGBoost and SVR models also perform well but with slightly lower correlation and higher deviation compared to the MLP model.
Additionally, the Taylor plots provide a visual representation of the models’ standard deviation and correlation coefficient relative to the observed data. The closer a model’s point is to the reference point, the better its performance in terms of matching the observed variability and correlation. The MLP model’s points are closest to the reference point for both dSM/H and ZSF/H predictions, further confirming its superior performance compared to the other models.

4. Conclusions

This comprehensive study has investigated the effects of baffled outlet keys on energy dissipation and bed topographical changes downstream of rectangular piano key weirs (RPKWs) and trapezoidal piano key weirs (TPKWs) under various hydraulic conditions. Advanced machine learning models, including MLP, SVR, and XGBoost, have also been implemented to predict scour depths accurately. The key findings and applications of this work are as follows:
  • The presence of baffles in weir outlet keys significantly alters the flow patterns, changing from impinging jets in un-baffled weirs to surface jets in baffled weirs. This effect leads to increased energy losses, with the average energy loss in RPKW and TPKW with baffles being 22% and 18% higher, respectively, compared to the weir without baffles. This effect is more pronounced at lower Froude numbers, when the baffles affect more flow layers. Baffles have a more significant reducing effect at lower relative drop heights. Conversely, increasing the Froude number and relative drop height increases scour depth.
  • The baffles significantly reduce scour depths and their temporal variations, with baffled RPKW and TPKW weirs showing, on average, an 11% and 14% reduction in scour depth at equilibrium compared to un-baffled weirs.
  • The baffles significantly reduce topographical changes and scour hole extension, resulting in a downstream shift of 9% and 11.7% in the maximum scour depth location for RPKW and TPKW, respectively, and reductions of 7% and 13% in scour hole length for RPKW and TPKW, respectively. Additionally, the relative maximum scour depth and weir toe scour increase with higher Froude numbers for both baffled and un-baffled weirs.
  • Baffles reduced the scour hole area and volume by 26.7% and 30.3% in RPKWs and 31.6% and 32.2% in TPKWs. The effects of baffles on reducing scouring were more significant in TPKWs than RPKWs and more pronounced at lower Froude numbers. This information can be utilized to design more stable and resilient hydraulic structures, mitigating the risk of foundation erosion and ensuring the long-term integrity of critical infrastructure.
  • Novel empirical equations were introduced to accurately predict the relative scour depths downstream of a PKW, applicable for scenarios both without baffles (Equation (8)) and with baffles (Equation (9)), achieving impressive results with an average R2 = 0.951, RMSE = 0.145, and MRPE = 4.429%.
  • The study has demonstrated the superior performance of the MLP machine learning model in estimating local scour characteristics downstream of PKWs. It outperformed traditional regression models (Equations (8) and (9)) and other machine learning algorithms in most scenarios with an average R2 = 0.988, RMSE = 0.035, and MRPE = 1.036%, except in predicting weir toe scour depth for baffled TPKW, where XGBoost performed better with R2 = 0.965, RMSE = 0.048, and MRPE = 2.798%. This predictive tool can be integrated into the design process, enabling engineers to accurately assess scour risks and optimize the structural design of weirs and similar hydraulic structures.
  • Taylor plots confirmed the MLP model’s robustness, with high correlation and low prediction error. In conclusion, the optimized MLP model offers a robust and reliable predictive tool for assessing scour characteristics in PKW designs within the specified range of 0.74 ≤ Fr ≤ 2.12, 0.26 ≤ ∆H/hd ≤ 1.74, and 0.99 ≤ hu/HB ≤ 1.88, outperforming traditional empirical approaches and other ML models in most evaluated scenarios.
  • The feature importance analysis by the MLP model provides insights into the relative contribution of each input variable. For un-baffled PKW, ∆H/hd effect on scour is greater than Fr, except for RPKW weir toe scour where Fr effect is 46% more. For baffled PKW, hu/HB is most important in forecasting scour.
  • The findings from this study contribute to a deeper understanding of the intricate relationships between flow patterns, energy dissipation, and bed topography in the context of PKWs. These insights can be leveraged to enhance the design and performance of PKWs, resulting in more efficient, sustainable, and resilient structures.

Author Contributions

Conceptualization, C.A.C. and M.G.; methodology, C.A.C., A.F. and M.G.; validation, C.A.C. and E.K.; formal analysis, C.A.C. and M.G.; investigation, C.A.C., M.G. and M.L.; resources, C.A.C. and M.G.; data curation, C.A.C. and M.G.; writing—original draft preparation, C.A.C. and E.K.; writing—review and editing, M.G. and M.L.; visualization, C.A.C. and M.G.; supervision, M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Some or all of the data, models, or code that support the findings of this study are available from the firsst author upon reasonable request.

Acknowledgments

The authors would like to express their sincere gratitude to the University of Exeter for covering the APC and to Modares Science and Technology Park for their partial financial support of this project.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pilarczyk, K.W.; Jo, Y.C.; Yun, O. Stability of rock-fill structures. Mag. Korean Soc. Agric. Eng. 1991, 33, 17–40. [Google Scholar]
  2. Jüstrich, S.; Pfister, M.; Schleiss, A.J. Mobile riverbed scours downstream of a Piano key weir. J. Hydraul. Eng. 2016, 142, 04016043. [Google Scholar] [CrossRef]
  3. Palermo, M.; Crookston, B.; Pagliara, S. Analysis of equilibrium morphologies downstream of a PK weir structure. In World Environmental and Water Resources Congress 2020: Hydraulics, Waterways, and Water Distribution Systems Analysis; American Society of Civil Engineers: Reston, VA, USA, 2020; pp. 43–51. [Google Scholar] [CrossRef]
  4. Kumar, B.; Ahmad, Z. Experimental study on scour downstream of a Piano key weir with nose. In Proceedings of the 8th IAHR ISHS, Santiago, Chile, 12–15 May 2020. [Google Scholar] [CrossRef]
  5. Kumar, B.; Kadia, S.; Ahmad, Z. Sediment movement over type A Piano key weir. J. Irrig. Drain. Eng. 2021, 147, 04021018. [Google Scholar] [CrossRef]
  6. Ghodsian, M.; Abdi Chooplou, C.; Ghafouri, A. Scouring downstream of triangular and trapezoidal Piano key weirs. J. Hydraul. 2021, 16, 43–58. [Google Scholar] [CrossRef]
  7. Lantz, W.; Crookston, B.M.; Palermo, M. Apron and cutoff wall scour protection for Piano key weirs. Water 2021, 13, 2332. [Google Scholar] [CrossRef]
  8. Kumar, B.; Ahmad, Z. Scour downstream of a Piano key weir with and without a solid apron. J. Irrig. Drain. Eng. 2022, 148, 04021066. [Google Scholar] [CrossRef]
  9. Abdi Chooplou, C.; Bodaghi, E.; Ghodsian, M.; Vaghefi, M. Temporal evolution of scouring downstream of a trapezoidal Piano key weir. Int. J. River Basin Manag. 2022, 1–14. [Google Scholar] [CrossRef]
  10. Lantz, W.D.; Crookston, B.M.; Palermo, M. Evolution of local scour downstream of type A PK weir in non-cohesive sediments. J. Hydrol. Hydromech. 2022, 70, 103–113. [Google Scholar] [CrossRef]
  11. Abdi Chooplou, C.; Kazerooni, S.; Ghodsian, M.; Vaghefi, M. Experimental study of scouring downstream of type-A Piano key weirs. Arab. J. Geosci. 2022, 15, 1702. [Google Scholar] [CrossRef]
  12. Abdi Chooplou, C.; Ghodsian, M.; Davoud, A.; Ghafouri, A. An experimental and numerical study on the flow field and scour downstream of rectangular piano key weirs with crest indentations. Innov. Infrastruct. Solut. 2023, 8, 140. [Google Scholar] [CrossRef]
  13. Bodaghi, E.; Abdi Chooplou, C.; Ghodsian, M. Experimental investigation of scour downstream of a type A trapezoidal piano key weir under free and submerged flow conditions. J. Hydrol. Hydromech. 2024, 72, 34–48. [Google Scholar] [CrossRef]
  14. Abdi Chooplou, C.; Ghodsian, M.; Ghafouri, A. Local scour downstream of various shapes of piano key weirs. Innov. Infrastruct. Solut. 2024, 9, 117. [Google Scholar] [CrossRef]
  15. Fathi, A.; Abdi Chooplou, C.; Ghodsian, M. Local scour downstream of type-A trapezoidal stepped piano key weir in sand and gravel sediments. ISH J. Hydraul. Eng. 2024, 1–13. [Google Scholar] [CrossRef]
  16. Kumar, B.; Pandey, M.; Ahmad, Z. Flow field and sediment passing capacity of type-a piano key weirs. Int. J. Sediment Res. 2024. [Google Scholar] [CrossRef]
  17. Erpicum, S.; Machiels, O. Energy dissipation on a stepped spillway downstream of a Piano key weir—Experimental study. In Proceedings of the International Conference on Labyrinth Piano Key Weirs, Taylor & Francis Group, London, UK, 9–11 February 2011. [Google Scholar]
  18. Eslinger, K.R.; Crookston, B.M. Energy dissipation of type A Piano key weir. Water 2020, 12, 1253. [Google Scholar] [CrossRef]
  19. Naghibzadeh, S.M.; Heidarnezhad, M.; Masjedi, A.; Bordbar, A. Experimental and numerical analysis of energy dissipation in Piano key weirs with stepped and baffled barriers at downstream slope. Iran. J. Soil Water Res. 2020, 51, 2431–2442. [Google Scholar] [CrossRef]
  20. Souri, J.; OmidvarMohammadi, H.; Salehi Neyshabouri, S.A.A.; Abdi Chooplou, C.; Kahrizi, E.; Akbari, H. Numerical simulation of aeration impact on the performance of a-type rectangular and trapezoidal piano key weirs. Model. Earth Syst. Environ. 2024, 1–20. [Google Scholar] [CrossRef]
  21. Iqbal, M.; Ghani, U. Effect of variation in key slope ratios and key width ratios on energy dissipation over a piano key weir. Iran. J. Sci. Technol. Trans. C 2024, 48, 2725–2739. [Google Scholar] [CrossRef]
  22. Muzzammil, M. ANFIS approach to the scour depth prediction at a bridge abutment. J. Hydroinf. 2010, 12, 474–485. [Google Scholar] [CrossRef]
  23. Najafzadeh, M.; Barani, G.A.; Kermani, M.R.H. Abutment scour in clear-water and live-bed conditions by GMDH network. Water Sci. Technol. 2013, 67, 1121–1128. [Google Scholar] [CrossRef]
  24. Etemad-Shahidi, A.; Bonakdar, L.; Jeng, D.S. Estimation of scour depth around circular piers: Applications of model tree. J. Hydroinf. 2015, 17, 226–238. [Google Scholar] [CrossRef]
  25. Sharafi, H.; Ebtehaj, I.; Bonakdari, H.; Zaji, A.H. Design of a support vector machine with different kernel functions to predict scour depth around bridge piers. Nat. Hazard. 2016, 84, 2145–2162. [Google Scholar] [CrossRef]
  26. Azimi, H.; Bonakdari, H.; Ebtehaj, I.; Talesh, S.H.A.; Michelson, D.G.; Jamali, A. Evolutionary Pareto optimization of an ANFIS network for modeling scour at pile groups in clear water condition. Fuzzy Sets Syst. 2017, 319, 50–69. [Google Scholar] [CrossRef]
  27. Ebtehaj, I.; Bonakdari, H.; Moradi, F.; Gharabaghi, B.; Khozani, Z.S. An integrated framework of extreme learning machines for predicting scour at pile groups in clear water condition. Coast. Eng. 2018, 135, 1–15. [Google Scholar] [CrossRef]
  28. Rashki Ghaleh Nou, M.; Azhdary Moghaddam, M.; Shafai Bajestan, M.; Azamathulla, H.M. Estimation of scour depth around submerged weirs using self-adaptive extreme learning machine. J. Hydroinf. 2019, 21, 1082–1101. [Google Scholar] [CrossRef]
  29. Sharafati, A.; Haghbin, M.; Haji Seyed Asadollah, S.B.; Tiwari, N.K.; Al-Ansari, N.; Yaseen, Z.M. Scouring depth assessment downstream of weirs using hybrid intelligence models. Appl. Sci. 2020, 10, 3714. [Google Scholar] [CrossRef]
  30. Salih, S.Q.; Habib, M.; Aljarah, I.; Faris, H.; Yaseen, Z.M. An evolutionary optimized artificial intelligence model for modeling scouring depth of submerged weir. Eng. Appl. Artif. Intell. 2020, 96, 104012. [Google Scholar] [CrossRef]
  31. Ahmadianfar, I.; Jamei, M.; Karbasi, M.; Sharafati, A.; Gharabaghi, B. A novel boosting ensemble committee-based model for local scour depth around non-uniformly spaced pile groups. Eng. Comput. 2021, 38, 3439–3461. [Google Scholar] [CrossRef]
  32. Pandey, M.; Karbasi, M.; Jamei, M.; Malik, A.; Pu, J.H. A comprehensive experimental and computational investigation on estimation of scour depth at bridge abutment: Emerging ensemble intelligent systems. Water Resour. Manag. 2023, 37, 3745–3767. [Google Scholar] [CrossRef]
  33. Salmasi, F.; Sihag, P.; Abraham, J.; Nouri, M. Experimental investigation and prediction of free fall jet scouring using machine learning models. Int. J. Sediment Res. 2023, 38, 405–420. [Google Scholar] [CrossRef]
  34. Iqbal, M.; Ghani, U. Prediction of the discharge capacity of piano key weirs using artificial neural networks. J. Hydroinformatics 2024, 26, 1167–1188. [Google Scholar] [CrossRef]
  35. Ettema, R. Hydraulic Modeling: Concepts and Practice; ASCE: Reston, VA, USA, 2000; p. 97. [Google Scholar]
  36. Haghnazar, H.; Saneie, M. Impacts of pit distance and location on river sand mining management. Model. Earth Syst. Environ. 2019, 5, 1463–1472. [Google Scholar] [CrossRef]
  37. Pfister, M.; Battisacco, E.; De Cesare, G.; Schleiss, A.J. Scale effects related to the rating curve of cylindrically crested Piano key weirs. In Labyrinth Piano Key Weirs II; CRC/Balkema: Leiden, The Netherlands, 2013; pp. 73–82. [Google Scholar]
  38. Erpicum, S.; Tullis, B.P.; Lodomez, M.; Archambeau, P.; Dewals, B.J.; Pirotton, M. Scale effects in physical Piano key weirs models. J. Hydraul. Res. 2016, 54, 692–698. [Google Scholar] [CrossRef]
  39. Novak, P.; Cabelka, J. Monographs & surveys in water resources engineering. In Models in Hydraulic Engineering: Physical Principles and Design Applications, 4th ed.; Pitman Publishing: Boston, MA, USA, 1981; pp. 1–459. [Google Scholar]
  40. Lempérière, F.; Ouamane, A. The Piano key weir: A new cost-effective solution for spillways. Int. J. Hydropower Dams 2003, 10, 144–149. [Google Scholar]
  41. Lempérière, F.; Jun, G. Low cost increase of dams storage and flood mitigation: The Piano key weir. In Proceedings of the 19th Congress of ICID, Beijing, China, 18 September 2005. [Google Scholar]
  42. Mehboudi, A.; Attari, J.; Hosseini, S.A. Experimental study of discharge coefficient for trapezoidal PKWs. Flow Meas. Instrum. 2016, 50, 65–72. [Google Scholar] [CrossRef]
  43. Chiew, Y.M. Local Scour at Bridge Piers. Rep. No. 355. Ph.D. Thesis, Department of Civil Engineering, University of Auckland, Auckland, New Zealand, 1984. [Google Scholar]
  44. Chiew, Y.M.; Melville, B. Local scour at bridge piers with non-uniform sediments. Proc. Inst. Civ. Eng. Water Eng. Group 1989, 87, 215–224. [Google Scholar] [CrossRef]
  45. Ho Ta Khanh, M.; Quat, D.S.; Thuy, D.X. Piano key weirs under design and construction in Vietnam. In Labyrinth and Piano Key Weirs; CRC/Balkema: Leiden, The Netherlands, 2011; pp. 225–232. [Google Scholar]
  46. Laugier, F.; Vermeulen, J.; Lefebvre, V. Overview of PKWs experience developed at EDF during the past few years. In Labyrinth and PKWs II; CRC: Boca Raton, FL, USA, 2013; pp. 213–226. [Google Scholar] [CrossRef]
  47. Pagliara, S.; Hager, W.H.; Minor, H.E. Hydraulics of plane plunge pool scour. J. Hydraul. Eng. 2006, 132, 450–461. [Google Scholar] [CrossRef]
  48. United States Bureau of Reclamation. Design of Small Dams, 3rd ed.; US Department of the Interior, Bureau of Reclamation: Washington, DC, USA, 1987.
  49. Dugué, V.; Pfister, M.; Hachem, F.; Boillat, J.L.; Nagel, V.; Laugier, F. Étude sur modèle physique du nouvel évacuateur de crue du barrage de Gage II. La Houille Blanche 2013, 2, 31–38. [Google Scholar] [CrossRef]
  50. Chiew, Y.M. Scour protection at bridge piers. J. Hydraul. Eng. 1992, 118, 1260–1269. [Google Scholar] [CrossRef]
  51. Kumar, V.; Ranga Raju, K.G.; Vittal, N. Reduction of local scour around bridge piers using slot and collar. J. Hydraul. Eng. 1999, 125, 1302–1305. [Google Scholar] [CrossRef]
  52. Murtaza, N.; Khan, Z.U.; Khedher, K.M.; Amir, R.A.; Khan, D.; Salem, M.A.; Alsulamy, S. Mitigating scour at bridge abutments: An experimental investigation of waste material as an eco-friendly solution. Water 2023, 15, 3798. [Google Scholar] [CrossRef]
  53. Choi, D.K. Data-driven materials modeling with XGBoost algorithm and statistical inference analysis for prediction of fatigue strength of steels. Int. J. Precis. Eng. Manuf. 2019, 20, 129–138. [Google Scholar] [CrossRef]
  54. Minsky, M.L.; Papert, S.A. Perceptrons, Expanded Edition; The MIT Press: Cambridge, MA, USA, 1988. [Google Scholar]
  55. Bento, C. Multilayer Perceptron Explained with a Real-Life Example and Python Code: Sentiment Analysis. Towards Data Science. 2021. Available online: https://towardsdatascience.com/multilayer-perceptron-explained-with-a-real-life-example-and-python-code-sentiment-analysis-cb408ee93141 (accessed on 21 September 2021).
  56. Müller, A.C.; Guido, S. Introduction to Machine Learning with Python: A guide for Data Scientists; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2016. [Google Scholar]
  57. Hastie, T.; Tibshirani, R.; Friedman, J.H. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer: New York, NY, USA, 2009; pp. 1–758. [Google Scholar]
  58. Ceperic, E.; Ceperic, V.; Baric, A. A strategy for short-term load forecasting by support vector regression machines. IEEE Trans. Power Syst. 2013, 28, 4356–4364. [Google Scholar] [CrossRef]
  59. Géron, A. Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2022. [Google Scholar]
Figure 1. Flow and scour parameters at PKW.
Figure 1. Flow and scour parameters at PKW.
Water 16 02133 g001
Figure 2. Geometric parameters of a PKW.
Figure 2. Geometric parameters of a PKW.
Water 16 02133 g002
Figure 3. Downstream view of: (a) RPKW and (b) TPKW.
Figure 3. Downstream view of: (a) RPKW and (b) TPKW.
Water 16 02133 g003
Figure 4. PKW and downstream sediment bed.
Figure 4. PKW and downstream sediment bed.
Water 16 02133 g004
Figure 5. Baffles in PKW outlet keys: (a,b) photo from downstream of RPKW and TPKW; (c,d) dimensions and layout of RPKW and TPKW.
Figure 5. Baffles in PKW outlet keys: (a,b) photo from downstream of RPKW and TPKW; (c,d) dimensions and layout of RPKW and TPKW.
Water 16 02133 g005
Figure 6. Temporal evolution of the scour depth for TPKW.
Figure 6. Temporal evolution of the scour depth for TPKW.
Water 16 02133 g006
Figure 7. Flowchart of the XGBoost technique.
Figure 7. Flowchart of the XGBoost technique.
Water 16 02133 g007
Figure 8. The structure of an MLP model.
Figure 8. The structure of an MLP model.
Water 16 02133 g008
Figure 9. Flow over TPKW: (a) without baffles and (b) with baffles.
Figure 9. Flow over TPKW: (a) without baffles and (b) with baffles.
Water 16 02133 g009
Figure 10. Schematic of flow pattern along outlet keys in the weir: (a) without baffles and (b) with baffles.
Figure 10. Schematic of flow pattern along outlet keys in the weir: (a) without baffles and (b) with baffles.
Water 16 02133 g010
Figure 11. The difference of relative energy loss for weirs with and without baffles for: (a) RPKW and (b) TPKW.
Figure 11. The difference of relative energy loss for weirs with and without baffles for: (a) RPKW and (b) TPKW.
Water 16 02133 g011
Figure 12. Schematic of the baffles effects on the flow layers with: (a) hu/HB = 1.00 and (b) hu/HB = 1.88.
Figure 12. Schematic of the baffles effects on the flow layers with: (a) hu/HB = 1.00 and (b) hu/HB = 1.88.
Water 16 02133 g012
Figure 13. Temporal variations of the scour depth in the tests with and without baffles.
Figure 13. Temporal variations of the scour depth in the tests with and without baffles.
Water 16 02133 g013
Figure 14. Typical downstream bed topography in the TPKW: (a) without baffles and (b) with baffles.
Figure 14. Typical downstream bed topography in the TPKW: (a) without baffles and (b) with baffles.
Water 16 02133 g014
Figure 15. Comparison of the longitudinal bed profiles downstream of the weirs with and without baffles.
Figure 15. Comparison of the longitudinal bed profiles downstream of the weirs with and without baffles.
Water 16 02133 g015
Figure 16. Changes of: (a) relative maximum scour depth, and (b) relative weir toe scour depth with Froude number.
Figure 16. Changes of: (a) relative maximum scour depth, and (b) relative weir toe scour depth with Froude number.
Water 16 02133 g016
Figure 17. Percentage reduction in (a) dSM, (b) ZSF, (c) XSM and (d) LS with and without baffles.
Figure 17. Percentage reduction in (a) dSM, (b) ZSF, (c) XSM and (d) LS with and without baffles.
Water 16 02133 g017
Figure 18. Comparison of the observed and calculated values of: (a) maximum scour depth and (b) weir toe scour depth.
Figure 18. Comparison of the observed and calculated values of: (a) maximum scour depth and (b) weir toe scour depth.
Water 16 02133 g018
Figure 19. Comparison of machine learning models for predicting of: (a) maximum scour depth and (b) weir toe scour depth.
Figure 19. Comparison of machine learning models for predicting of: (a) maximum scour depth and (b) weir toe scour depth.
Water 16 02133 g019
Figure 20. Taylor diagrams for predictions of: (a) maximum scour depth and (b) weir toe scour depth.
Figure 20. Taylor diagrams for predictions of: (a) maximum scour depth and (b) weir toe scour depth.
Water 16 02133 g020aWater 16 02133 g020b
Table 1. Dimensions of used PKWs.
Table 1. Dimensions of used PKWs.
P (m)0.20Bb (m)0.25
L (m)RPKW3.75Bi (m)0.125
TPKW3.30Bo (m)0.125
Wi (m)RPKW0.125W (m)0.75
TPKW0.175
Wo (m)RPKW0.125Ts (m)0.012
TPKW0.051
α (degree)RPKW0N (-)3
TPKW5
Table 2. Details of the experiments.
Table 2. Details of the experiments.
Sl. NoTestsQhdPKWFrΔH/hdhu/HBSl. NoPKWFrΔH/hdhu/HB
##m3/sm#---##---
130-80.300.08RPKW1.931.70-41TPKW1.951.74-
2B30-81.00420.91
330-100.101.611.21-431.621.24-
4B30-101.00440.91
530-130.131.230.72-451.250.75-
6B30-131.00460.91
730-150.151.030.50-471.050.52-
8B30-151.00480.91
930-180.180.740.26-490.760.27-
10B30-181.00500.91
1140-80.040.081.981.68-512.001.72-
12B40-81.25521.16
1340-100.101.661.23-531.671.26-
14B40-101.25541.16
1540-130.131.280.76-551.300.78-
16B40-131.25561.16
1740-150.151.080.54-571.100.56-
18B40-151.25581.16
1940-180.180.800.29-590.820.31-
20B40-181.25601.16
2150-80.050.082.051.66-612.061.68-
22B50-81.56621.50
2350-100.101.721.22-631.731.27-
24B50-101.56641.50
2550-130.131.350.80-651.360.82-
26B50-131.56661.50
2750-150.151.140.59-671.150.60-
28B50-151.56681.50
2950-180.180.870.34-690.880.35-
30B50-181.56701.50
3160-80.060.082.111.59-712.121.61-
32B60-81.88721.81
3360-100.101.781.25-731.791.27-
34B60-101.88741.81
3560-130.131.400.84-751.410.85-
36B60-131.88761.81
3760-150.151.200.62-771.210.64-
38B60-151.88781.81
3960-180.180.930.38-790.940.39-
40B60-181.88801.81
Table 3. The structure of the developed XGBoost model.
Table 3. The structure of the developed XGBoost model.
ModelHyperparameter OptimizerDatasetn_EstimatorsLearning_RateMax_DepthSubsampleColsample_BytreeGammaMin_Child_Weight
XGBoostScikit-Optimize (skopt)dSM/H_RPKW, (un-baffled)100.0000.3009.0000.9870.7701.0001.000
dSM/H_RPKW, (baffled)328.0000.0109.0000.6000.6000.1081.000
dSM/H_TPKW, (un-baffled)1000.0000.0103.0001.0000.6370.3601.000
dSM/H_TPKW, (baffled)100.0000.0446.0001.0000.6550.0001.000
ZSF/H_RPKW, (un-baffled)10000.3003.0000.9141.0000.42312.000
ZSF/H_RPKW, (baffled)3580.3006.0000.60.7890.0003.000
ZSF/H_TPKW, (un-baffled)8880.19426.0000.8140.9900.15488.000
ZSF/H_TPKW, (baffled)5270.3003.0000.9801.0000.0793.000
Table 4. The structure of the developed MLP model.
Table 4. The structure of the developed MLP model.
ModelHyperparameter OptimizerDatasetHidden Layer SizesAlphaMomentumBeta 1Beta 2
MLPHyperopt TPE
(Tree-structured Parzen Estimators)
dSM/H_RPKW, (un-baffled)(100, 100)0.0007509260.95610.99870.9423
dSM/H_RPKW, (baffled)(100, 100)0.0038598030.91270.96060.9546
dSM/H_TPKW, (un-baffled)(100, 50)0.0002473120.95560.99140.9875
dSM/H_TPKW, (baffled)(50, 50)0.0024645640.94570.97110.9673
ZSF/H_RPKW, (un-baffled)(100, 100)0.0050155940.91790.96860.9595
ZSF/H_RPKW, (baffled)(100,)0.0001764620.91230.90420.9673
ZSF/H_TPKW, (un-baffled)(150,)0.0013108370.94980.92230.9525
ZSF/H_TPKW, (baffled)(150, 100)0.0001115210.91830.91470.9774
Table 5. The structure of the developed SVR model.
Table 5. The structure of the developed SVR model.
ModelHyperparameter OptimizerDatasetCGammaEpsilonDegree
SRVGridSearchCVdSM/H_RPKW, (un-baffled)98990.0050.193
dSM/H_RPKW, (baffled)30310.0050.253
dSM/H_TPKW, (un-baffled)10250.000.013
dSM/H_TPKW, (baffled)98990.0050.073
ZSF/H_RPKW, (un-baffled)2030.0050.073
ZSF/H_RPKW, (baffled)1020.0050.013
ZSF/H_TPKW, (un-baffled)92930.0050.073
ZSF/H_TPKW, (baffled)1020.0050.013
Table 6. Comparison of area and volume of scour hole downstream of weirs with and without baffles.
Table 6. Comparison of area and volume of scour hole downstream of weirs with and without baffles.
Symbol of TestDifference (%)Difference (%)
ASVS
#RPKWTPKWRPKWTPKW
30-835.53836.539
30-10313544.445.7
30-1325.831.851.252.3
30-1542.345.356.857.2
30-1856.258.260.961.8
40-827.337.319.321
40-1026.53531.534
40-13293144.146.8
40-1521.224.24041
40-1816.617.133.334.2
50-834.839.825.326.9
50-102734.532.534
50-1323292020.5
50-1515.5182425
50-185.66.129.431.4
60-814.319.320.626.2
60-10273415.519
60-1336.847.88.511.8
60-152532.57.259.65
60-1813.318.34.96.9
Average (%)26.731.630.332.2
Table 7. Coefficients, exponents, and statistical indices of Equations (8) and (9).
Table 7. Coefficients, exponents, and statistical indices of Equations (8) and (9).
ΨEq. NWeirKζab#cR2RMSEMRPE (%)
dSM8RPKW3.3270.4880.048un-baffled-0.9540.1753.857
TPKW2.8450.9610.1192.856
9RPKW2.7370.7340.013baffled0.4080.9250.2276.081
TPKW1.9450.9510.1674.141
ZSF8RPKW2.7550.0630.355un-baffled-0.9450.1403.641
TPKW2.2340.9550.1013.472
9RPKW2.2150.0140.565baffled0.2480.9450.1546.263
TPKW1.3400.9710.0765.120
Table 8. The results of dSM/H and statistical indices.
Table 8. The results of dSM/H and statistical indices.
Weir TypeModelR2 TrainR2 TestRMSE TrainRMSE TestMRPE TrainMRPE Test
RPKW,
(un-baffled)
XGBoost0.8280.9440.3340.1047.7532.602
SVR0.9480.9870.1830.0514.2901.377
MLP0.9440.9890.1900.0464.7131.244
RPKW,
(Baffled)
XGBoost0.9240.9670.2480.0556.3311.578
SVR0.9690.8830.1590.1034.0272.565
MLP0.9660.9870.1670.0353.9730.992
TPKW,
(un-baffled)
XGBoost0.8550.9590.2420.0665.3281.527
SVR0.9990.9240.0100.0900.3152.700
MLP0.9420.9880.1530.0364.2831.138
TPKW,
(Baffled)
XGBoost0.9880.9380.0830.0572.3801.879
SVR0.9820.8460.1030.0902.9473.183
MLP0.9810.9890.0060.0240.1840.769
Table 9. The results of ZSF/H and statistical characteristics.
Table 9. The results of ZSF/H and statistical characteristics.
Weir TypeModelR2 TrainR2 TestRMSE TrainRMSE TestMRPE TrainMRPE Test
RPKW,
(un-baffled)
XGBoost0.8810.9180.2150.1027.1464.325
SVR0.9250.9950.1700.0244.4430.900
MLP0.9330.9980.1610.0044.2220.167
RPKW,
(Baffled)
XGBoost0.9990.9620.0090.0540.4392.330
SVR0.9760.9070.1060.0853.4754.517
MLP0.9980.9940.0110.0200.4221.084
TPKW,
(un-baffled)
XGBoost0.680.8680.2770.10311.2164.557
SVR0.9590.9370.1000.0713.7293.516
MLP0.9370.9920.1230.0244.5720.904
TPKW,
(Baffled)
XGBoost0.9490.9650.1030.0487.0232.798
SVR0.9760.8490.0690.1004.4059.680
MLP0.9970.9600.0030.0510.2304.794
Table 10. Feature importance analysis by the MLP model.
Table 10. Feature importance analysis by the MLP model.
FeaturesWeir ModelImportance Score
FrΔH/hdhu/HB
dSM/HRPKW (un-baffled)0.4180.582-
RPKW (baffled)0.2400.2670.493
TPKW (un-baffled)0.4310.569-
TPKW (baffled)0.1640.1640.672
ZSF/HRPKW (un-baffled)0.5930.407-
RPKW (baffled)0.2600.3400.403
TPKW (un-baffled)0.4840.516-
TPKW (baffled)0.3270.3180.355
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Abdi Chooplou, C.; Kahrizi, E.; Fathi, A.; Ghodsian, M.; Latifi, M. Baffle-Enhanced Scour Mitigation in Rectangular and Trapezoidal Piano Key Weirs: An Experimental and Machine Learning Investigation. Water 2024, 16, 2133. https://doi.org/10.3390/w16152133

AMA Style

Abdi Chooplou C, Kahrizi E, Fathi A, Ghodsian M, Latifi M. Baffle-Enhanced Scour Mitigation in Rectangular and Trapezoidal Piano Key Weirs: An Experimental and Machine Learning Investigation. Water. 2024; 16(15):2133. https://doi.org/10.3390/w16152133

Chicago/Turabian Style

Abdi Chooplou, Chonoor, Ehsan Kahrizi, Amirhossein Fathi, Masoud Ghodsian, and Milad Latifi. 2024. "Baffle-Enhanced Scour Mitigation in Rectangular and Trapezoidal Piano Key Weirs: An Experimental and Machine Learning Investigation" Water 16, no. 15: 2133. https://doi.org/10.3390/w16152133

APA Style

Abdi Chooplou, C., Kahrizi, E., Fathi, A., Ghodsian, M., & Latifi, M. (2024). Baffle-Enhanced Scour Mitigation in Rectangular and Trapezoidal Piano Key Weirs: An Experimental and Machine Learning Investigation. Water, 16(15), 2133. https://doi.org/10.3390/w16152133

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop