Triangular orifices are widely used in industrial and engineering applications, including fluid metering, flow control, and measurement. Predicting discharge through triangle orifices is critical for correct operation and design optimization in various industrial and engineering applications. Traditional approaches like empirical equations have accuracy and application restrictions, whereas computational fluid dynamics (CFD) simulations can be computationally costly. Alternatively, artificial neural networks (ANNs) have emerged as a successful solution for predicting discharge through orifices. They offer a dependable and efficient alternative to conventional techniques for estimating discharge coefficients, especially in intricate relationships between input parameters and discharge. In this study, ANN models were created to predict discharge through the triangle orifice and velocity at the downstream of the main channel, and their effectiveness was assessed by comparing the performance with the earlier models proposed by researchers. This paper also proposes a novel hybrid multi-objective optimization model (NSGA-II) that uses genetic algorithms to discover the best values for design parameters that maximize discharge and downstream velocity simultaneously.

  • Two different ANN models have been developed to predict the discharge through the triangular side orifice and the downstream velocity in the main channel.

  • This study also presents a comparative analysis between previous models proposed by various researchers and the ANN model.

  • A hybrid multi-objective hybrid optimization model using genetic algorithm (NSGA-II) has also been developed in this study to discover the best values for design parameters that maximize discharge and downstream velocity simultaneously.

Triangular orifices are commonly used in various industrial and engineering applications, including fluid metering, flow control, and measurement. Discharge prediction of triangular orifices is an essential area of research in fluid dynamics. The discharge coefficient of a triangular orifice is a function of the orifice geometry and the flow conditions. Accurately predicting discharge is crucial for ensuring the proper functioning of these systems and can be used to optimize the design of triangular orifices. Conventional methods for discharge prediction, such as using empirical equations, have limitations in terms of accuracy and applicability. One approach to predicting discharge for triangular orifices uses computational fluid dynamics (CFD) simulations. CFD simulations use mathematical models to solve the equations of fluid motion and predict fluid flow behavior. These simulations can provide detailed information about fluid flow characteristics, such as velocity and pressure distributions, in complex geometries. However, CFD simulations can be computationally intensive and require significant computational resources. Another approach to predicting discharge for triangular orifices is using artificial neural networks (ANNs). ANNs are machine learning algorithms that are designed to model complex relationships between inputs and outputs. In recent years, ANNs have been applied to predicting discharge for orifices with promising results, even in cases where the relationships between the input parameters and the discharge are complex.

Numerous studies examined the hydraulic behavior of side orifices in open channels with various shapes. Regression equations were proposed for spatially varied flow analysis for the square side orifice (Gill 1987; Hussain et al. 2011) and flow characteristics of rectangular side orifices (Ramamurthy et al. 1986, 1987) and rectangular side sluice gates (Swamee et al. 1993; Ghodsian 2003; Esmailzadeh et al. 2015) and circular side orifices under different flow conditions (Hussain et al. 2010, 2016; Vatankhah & Bijankhan 2013; Guo & Stitt 2017). Additionally, artificial intelligence tools, namely group method of data handling, ANN, adaptive neuro-fuzzy inference system and genetic algorithm were employed to predict the discharge coefficient of rectangular, square and circular side orifices (Ebtehaj et al. 2015; Eghbalzadeh et al. 2016; Azimi et al. 2017; Noman et al. 2022; Ayaz et al. 2023).

Vatankhah & Mirnia (2018) conducted experiments involving different sizes of triangular orifices to measure discharge flow rates and upstream and downstream head levels in a laboratory flume. From their experimental data, they derived three regression equations (Equations (1)–(3)) to predict the discharge coefficient (Cd) for a triangular side orifice. Equations (1) and (2) considered the influence of the approach Froude number (Fr1), while Equation (3) excluded this effect. These models were validated against the experimental data, with a maximum prediction error of 7.7, 7.5, and 14% for Equations (1)–(3), respectively. They also provided Equation (4) for predicting discharge for small orifices under the assumption of a horizontal water surface profile along the main channel. However, Mehraein (2019) challenged this assumption, proposing alternative equations (Equations (5)–(9)) to estimate the head above the central line of the triangular orifice (HCL), suggesting it depends on orifice dimensions and water depth. In contrast, Sosnowska (2021) studied triangular orifices under free-flow conditions and compared various discharge evaluation formulas for large and small orifices. It was observed that for upstream head-to-orifice height ratios exceeding 3, differences between the two formulae were minimal. Various orifice dimensions, orientations, and submergence levels were considered, and it was concluded that these factors had little impact on the relative deviation values between small and large orifice formulas. The study suggested that, in most cases, the small orifice formula (Equation (4)) could be used without significant error, regardless of orifice dimensions, orientation, and submergence, applying to both equilateral and isosceles triangular orifices.
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
Vatankhah & Mirnia (2019) proposed that the flow discharge through an equilateral triangular side orifice for the varying upstream and downstream water depths along the main channel can be estimated using Equation (10). He proposed that the coefficient of discharge for the triangular orifice (Cd) can be estimated using Equation (11) with the known upstream Froude number (Fr1), alternatively in the absence of Fr1 Equation (12) can be used.
(10)
(11)
(12)

Qian et al. (2019) generated 26 models using different combinations of input parameters and identified the most effective model among them. The model that utilized input variables W/H, B/L, H/y1, and Fr1 successfully predicted the coefficient of discharge (Cd) with an root mean squared error (RMSE) of 0.0122 and an R-value of 0.9598.

Jamei et al. (2021) estimated the discharge coefficient for a sharp-crested triangular side orifice under free-flow conditions by developing three linear data-driven models: locally weighted learning regression (LWLR), multiple linear regressions with interaction (MLRI), and multivariate linear regression (MLR). They introduced two modeling scenarios, one that incorporated the upstream flow Froude number for estimating the discharge coefficient (as given in Equations (13)–(17)) and one that did not. It was observed that both LWLR and MLRI exhibited similar performance in both modeling scenarios, providing accurate estimates of the discharge coefficient.
(13)
(14)
(15)
(16)
(17)

Recently, regularized extreme learning machine (RELM) models were proposed to predict the discharge coefficient of triangular side orifices and compared with the extreme learning machine (ELM) model. Researchers suggested that the RELM model (R = 0.995 and RMSE = 0.003) showed higher efficiency than the ELM model (R = 0.982 and RMSE = 0.010) (Mahmoudian et al. 2022; Moghadam et al. 2022). Using artificial intelligence, Shen et al. (2022) predicted the discharge coefficient (Cd) of triangular side orifices. They employed a back-propagation neural network (BPNN) to train the model and used a sparrow search algorithm (SSA) to optimize its weights and thresholds. They found that the SSA-BPNN model had high accuracy and strong generalization ability, with a maximum error of 6.56% and an average error of 1.73%. Sensitivity analysis using Sobol's method identified W/H, Fr1, and B/L as primary factors in optimizing the discharge capacity of the side orifices. Gerami Moghadam et al. (2022) concluded that the generalized structure group method of data handling (GSGMDH) outperformed the classical group method of data handling (GMDH) in predicting the coefficient of discharge (Cd) of triangular side orifices and suggested that the most effective parameters were the upstream Froude number and orifice height ratio.

Based on the above discussion, extensive literature on the discharge estimation for circular, rectangular, and square orifices is available. Recently, discharge through a triangular orifice has been observed experimentally, and machine learning techniques have also been employed to predict discharge. However, to the authors' knowledge, no literature is available for predicting discharge through triangular orifice using ANN. Moreover, no study is available for the most efficient triangular orifice, i.e., the geometrical properties of a triangular orifice for the maximum discharge passing through it. Hence, in the present study, ANN models were obtained to predict the discharge through the triangular orifice and velocity downstream of the main channel. The developed ANN models were used to obtain the most efficient triangular orifice section simultaneously, ensuring the maximum velocity downstream of the main channel using a novel hybrid multi-objective optimization model (NSGA-II) that uses genetic algorithms. A detailed comparative analysis of the ANN model proposed in this study with the earlier models proposed by researchers is presented.

Vatankhah & Mirnia (2018) performed experiments in a laboratory flume to gather data on the discharge and the relevant hydraulic parameters. They tested a range of orifice sizes viz. orifice length (L), orifice height (H), orifice crest height (W) and discharge through the triangular side orifice (Qs), and recorded the corresponding upstream head (y1), upstream velocity (V1), and downstream head (y2). The experiments were conducted in a hydraulic laboratory, using a 12 m long, 0.25 m wide, and 0.5 m deep horizontal rectangular channel connected to an upstream supply through a stilling tank, and a tailgate to regulate flow depth. The equilateral triangular side orifices made up of 0.01 m thick Plexiglas sheets with a crest thickness of about 1 mm, and the downstream edge beveled to a 45° angle were installed in the wall of the main channel, and their discharge characteristics were measured for 12 different geometric configurations (six orifices, each with two crest heights). The study collected a total of 570 runs of experimental data, including flow discharges and flow depths measured using piezometer taps and a point gauge with an accuracy of 0.1 mm. Triangular and rectangular flow measuring weirs were calibrated using an electromagnetic flowmeter with a precision level of ±0.5% of the full scale. The results showed that the discharge passing through the side orifice spilled into a diversion channel and then to the rectangular return channel, and the flow depth of the side channel did not affect the flow condition in all performed experiments that remained free flowing. Table 1 presents the statistical variation of experimental data for the equilateral triangular side orifices under free-flow conditions.

Table 1

Statistical variation of data

VariablesRange (min.–max.)MeanStandard deviationCoefficient of variation
H (m) 0.0400–0.1000 0.0709 0.0243 0.3425 
L (m) 0.3000–0.4000 0.3500 0.0500 0.1429 
W (m) 0.0500–0.1000 0.0747 0.0250 0.3347 
V1 (m/s) 0.2862–0.8429 0.5549 0.1201 0.2165 
y1 (m) 0.0941–0.2857 0.1762 0.0386 0.2195 
Qs (m3/s) 0.0017–0.0175 0.0084 0.0042 0.5076 
V2 (m/s) 0.1319–0.6421 0.3444 0.0959 0.2785 
VariablesRange (min.–max.)MeanStandard deviationCoefficient of variation
H (m) 0.0400–0.1000 0.0709 0.0243 0.3425 
L (m) 0.3000–0.4000 0.3500 0.0500 0.1429 
W (m) 0.0500–0.1000 0.0747 0.0250 0.3347 
V1 (m/s) 0.2862–0.8429 0.5549 0.1201 0.2165 
y1 (m) 0.0941–0.2857 0.1762 0.0386 0.2195 
Qs (m3/s) 0.0017–0.0175 0.0084 0.0042 0.5076 
V2 (m/s) 0.1319–0.6421 0.3444 0.0959 0.2785 

In this section, the methodology used is illustrated in Figure 1. The inputs for the models, designated as ANN-1 and ANN-2 for Qs and V2, respectively, were determined based on a discussion and data preprocessing from the literature. The selected variables included H, L, W, V1, and y1 as inputs, while Qs and V2 were selected as targets. Subsequently, these ANN models were employed to optimize the design of a triangular side orifice using multi-objective optimization (NSGA-II) and were compared with existing models described in the literature.
Figure 1

Flowchart for the present study.

Figure 1

Flowchart for the present study.

Close modal

Artificial neural network

An artificial neural network (ANN) is a machine-learning model that is inspired by the structure and function of the human brain. It is composed of interconnected nodes, known as artificial neurons, which process and transmit information. Each neuron receives input from other neurons, processes the information, and then outputs a signal to other neurons in the network. The overall behavior of the network is determined by the connections between the neurons and the strength of the signals they transmit.

The simplest form of an ANN is a single artificial neuron, called a perceptron. A perceptron takes in multiple inputs, each with a corresponding weight, and computes a weighted sum. This sum is then passed through an activation function, which determines the output of the neuron. The activation function is typically a nonlinear function, such as the sigmoid function or the rectified linear unit (ReLU) function. Multiple perceptrons can be combined to form a multi-layer perceptron (MLP), which is a feedforward neural network. In a feedforward neural network, information flows in one direction from input to output, passing through one or more hidden layers composed of artificial neurons. The hidden layers are where the network learns to recognize patterns in the data. The schematic representation of ANN model is shown in Figure 2.
Figure 2

Schematic representation of ANN model.

Figure 2

Schematic representation of ANN model.

Close modal

The process of training an ANN involves adjusting the weights of the connections between the neurons so that the network's output matches the desired output for a given set of inputs. This is accomplished using an optimization algorithm, such as stochastic gradient descent (SGD) or Lavenberg Marquardt (LM) algorithm that minimizes the difference between the network's predicted output and the actual output. Once trained, an ANN can be used for a variety of tasks, such as image classification, speech recognition, and natural language processing. The performance of an ANN can be improved by using deeper networks with more hidden layers, using convolutional neural networks (CNNs) for image data, or using recurrent neural networks (RNNs) for sequential data (Zurada 1994; Schalkoff 1997; Kheyroddin et al. 2018; Ebadi-Jamkhaneh & Ahmadi 2021; Ahmadi & Kioumarsi 2023; Ayaz et al. 2023).

Training of ANN model

Training a feedforward back-propagation artificial neural network (ANN) is the process of adjusting the weights of the connections between the neurons so that the network's output matches the desired output for a given set of inputs. The most common method for training a feedforward back-propagation ANN is supervised learning, in which the network is provided with a labeled training dataset and the goal is to learn the mapping from inputs to outputs.

The training process involves iteratively presenting the network with a sample from the training dataset and computing the error between the network's predicted output and the actual output. This error is then backpropagated through the network to update the weights of the connections so that the error is reduced on the next iteration. This process is repeated multiple times until the error reaches a satisfactory level or a maximum number of iterations is reached.

The weights of the connections are updated using an optimization algorithm, such as SGD, that minimizes the difference between the network's predicted output and the actual output. The optimization algorithm uses the gradients of the cost function with respect to the weights, which are computed using the back-propagation algorithm. The back-propagation algorithm uses the chain rule of calculus to propagate the error from the output layer to the input layer, computing the gradients of the cost function with respect to each weight in the network.

The training process can be influenced by several factors, such as the choice of activation function, the architecture of the network, the size of the training dataset, and the choice of optimization algorithm. In addition, overfitting can occur if the network becomes too complex and learns the noise in the training data, leading to poor performance on unseen data. To avoid overfitting, various regularization techniques, such as early stopping, dropout, and weight decay, can be used.

Levenberg–Marquardt algorithm

The Levenberg–Marquardt (LM) algorithm is a widely used optimization algorithm for training ANN and other nonlinear systems. It is a combination of the gradient descent and the Gauss–Newton methods and provides a way to efficiently find the minimum of a nonlinear cost function.

The LM algorithm starts by assuming that the cost function can be approximated by a linear function near the current solution. The gradient descent method is then used to update the parameters of the network in the direction of the steepest descent. If the approximation is good, the update should result in a reduction of the cost function. If the approximation is not good, the algorithm switches to a Gauss–Newton update, which considers the curvature of the cost function and provides a more accurate update.

The key idea behind the LM algorithm is to balance the accuracy of the linear approximation with the speed of convergence. This is achieved by using a damping factor, known as the Marquardt parameter, which is adjusted dynamically during the optimization process. If the approximation is good, the Marquardt parameter is reduced, allowing the algorithm to converge more quickly. If the approximation is not good, the Marquardt parameter is increased, providing a more accurate update.

The LM algorithm has several advantages over other optimization algorithms, such as being relatively fast and robust, and not requiring a good initialization of the parameters. It has been widely used in various fields, such as computer vision, control systems, and machine learning, and has achieved good results on a wide range of nonlinear optimization problems (Hagan & Menhaj 1994).

NSGA-II

NSGA-II (Non-dominated Sorting Genetic Algorithm 2) is a popular multi-objective optimization algorithm used to solve problems where multiple conflicting objectives exist. It is a type of evolutionary algorithm that is based on the principles of genetic algorithms.

NSGA-II works by sorting the solutions into different levels of non-domination and preserving diversity in the population by balancing the trade-off between the conflicting objectives. The algorithm starts with an initial population of candidate solutions, which are then evaluated based on multiple objectives. The solutions are sorted into different levels of non-domination, and the best solutions are selected for the next generation through a tournament selection process.

Crossover and mutation are then performed to generate offspring, and the new solutions are added to the population. The sorting and selection process is repeated for multiple generations until a satisfactory set of non-dominated solutions is obtained.

NSGA-II is widely used in various fields such as engineering design, finance, and environmental management to address multi-objective optimization problems. It has been shown to be effective in handling large-scale, complex problems with multiple conflicting objectives.

In this study, two different feedforward back-propagation ANN models namely, ANN-1 and ANN-2, have been developed to predict the discharge through the triangular side orifice (Qs) and the downstream velocity in the main channel (V2), respectively. The discharge through the side triangular orifice (Qs) and the downstream velocity (V2) primarily depends on the length of the orifice (L), height of the orifice (H), crest height of the orifice (W), upstream flow velocity (V1), and upstream flow depth (y1). Both ANN-1 and ANN-2 models comprise three layers – input, hidden, and output layer. The input layer has five neurons, and the output layer has one neuron. L, H, W, V1, and y1 have been used as inputs corresponding to five neurons of the input layer while Qs as the output to ANN-1 model. ANN-2 model is developed to predict the downstream velocity in the main channel (V2). In this model, L, H, W, V1, and y1 have been used as inputs while V2 as the output corresponding to neurons of input and output layers, respectively.

The ANN-1 and ANN-2 models were initialized for the training by uniformly distributed randomly generating input weights (α), layer weights (λ), and biases, (β). The initial value of μ was set as 0.001 with the increasing and decreasing factor for μ as 0.1 and 10, respectively. The maximum value for μ was set as 1010 and the minimum performance gradient of 10−7. The sigmoid function was taken as the activation function. The maximum number of iterations equal to 1,000 was set as the stopping criterion. In order to void the overfitting, the model was validated using the validation dataset. The error was minimized using the back-propagation step. The optimal number of neurons in the hidden layer of the ANN model was determined through a trial-and-error approach, resulting in the identification of the optimal architecture as 5–20–1. The finalized input weights (α), biases, (β), and output weights (λ) are presented in Tables 2 and 3 for the ANN-1 and ANN-2 models, respectively. The schematic representations of ANN-1 and ANN-2 models are shown in Figures 3 and 4, respectively. A mathematical representation of the ANN-1 and ANN-2 models is presented in Equations (19) and (20), respectively.
(18)
(19)
(20)
Table 2

Weights and bias values for the ANN-1 model

ANN model parametersInput weights, α1
Bias, β1Layer weights, λ1
NeuronsHLWV1y1
−1.9981 −0.3433 0.7681 1.6269 0.4897 2.3832 −0.5335 
1.5687 0.8877 1.5240 0.2668 0.6128 −2.4458 0.1532 
−1.4234 −0.0207 −1.0829 0.7664 1.5691 2.1338 0.6447 
0.4419 −0.9261 −1.2376 1.0825 1.1866 −2.4492 0.5193 
0.8113 1.8471 −0.3764 2.3826 0.0035 −1.1131 −0.0398 
−0.5858 −1.5913 −2.1619 −1.6665 −0.0128 1.6315 0.4369 
−1.6701 −0.0358 1.6770 1.5636 0.8679 0.9097 −0.4943 
1.1128 −1.7668 −0.3926 0.0141 −1.2944 −1.0117 −0.2226 
−0.0045 −0.8936 −2.7880 0.9787 −0.9306 −0.6366 −1.3415 
10 −2.0246 1.5268 −1.2597 1.9696 0.6900 −0.1499 −0.4659 
11 −0.7868 1.0817 1.6066 1.2680 0.2745 −0.2232 0.4429 
12 1.4757 −1.1839 1.1185 −1.1561 −0.5031 0.7338 −1.0977 
13 −1.1562 −0.7055 −1.3509 0.6475 1.2783 −1.3104 0.3831 
14 0.3531 −0.6064 0.2784 2.3168 1.6301 0.9541 −0.2157 
15 1.2432 1.3171 −0.9268 −0.0916 0.5800 1.5803 0.6706 
16 −0.8006 1.2380 −2.0639 0.6735 −0.7175 −1.3324 0.2280 
17 −1.2626 −0.6177 1.7234 −.0195 −1.3139 −1.7805 0.2793 
18 −1.6987 −0.6258 1.6020 1.0352 −0.0669 −2.1943 −0.7138 
19 0.7973 −1.2705 −0.0374 0.4391 0.7360 1.2883 1.1147 
20 1.4409 1.0112 −0.9783 1.0497 −1.7078 1.9633 0.1943 
ANN model parametersInput weights, α1
Bias, β1Layer weights, λ1
NeuronsHLWV1y1
−1.9981 −0.3433 0.7681 1.6269 0.4897 2.3832 −0.5335 
1.5687 0.8877 1.5240 0.2668 0.6128 −2.4458 0.1532 
−1.4234 −0.0207 −1.0829 0.7664 1.5691 2.1338 0.6447 
0.4419 −0.9261 −1.2376 1.0825 1.1866 −2.4492 0.5193 
0.8113 1.8471 −0.3764 2.3826 0.0035 −1.1131 −0.0398 
−0.5858 −1.5913 −2.1619 −1.6665 −0.0128 1.6315 0.4369 
−1.6701 −0.0358 1.6770 1.5636 0.8679 0.9097 −0.4943 
1.1128 −1.7668 −0.3926 0.0141 −1.2944 −1.0117 −0.2226 
−0.0045 −0.8936 −2.7880 0.9787 −0.9306 −0.6366 −1.3415 
10 −2.0246 1.5268 −1.2597 1.9696 0.6900 −0.1499 −0.4659 
11 −0.7868 1.0817 1.6066 1.2680 0.2745 −0.2232 0.4429 
12 1.4757 −1.1839 1.1185 −1.1561 −0.5031 0.7338 −1.0977 
13 −1.1562 −0.7055 −1.3509 0.6475 1.2783 −1.3104 0.3831 
14 0.3531 −0.6064 0.2784 2.3168 1.6301 0.9541 −0.2157 
15 1.2432 1.3171 −0.9268 −0.0916 0.5800 1.5803 0.6706 
16 −0.8006 1.2380 −2.0639 0.6735 −0.7175 −1.3324 0.2280 
17 −1.2626 −0.6177 1.7234 −.0195 −1.3139 −1.7805 0.2793 
18 −1.6987 −0.6258 1.6020 1.0352 −0.0669 −2.1943 −0.7138 
19 0.7973 −1.2705 −0.0374 0.4391 0.7360 1.2883 1.1147 
20 1.4409 1.0112 −0.9783 1.0497 −1.7078 1.9633 0.1943 
Table 3

Weights and bias values for the ANN-2 model

ANN model parametersInput weights, α2
Bias, β2Layer weights, λ2
NeuronsHLWV1y1
−0.0380 −1.1597 −2.0656 −0.7575 1.0109 2.7440 −0.7838 
−1.1496 0.9556 −0.1061 −1.3098 −1.0671 2.3622 0.0087 
1.2711 −1.1414 1.3462 −1.2993 −1.3468 −2.1965 −0.3035 
2.1142 0.3665 −1.1628 0.0393 0.6405 −1.7163 0.2764 
0.6758 −1.8780 1.0718 −1.3003 −0.4442 −1.3700 −0.3895 
0.9523 −0.9512 −1.6597 −1.1150 −1.3812 −1.3765 −0.3384 
0.5588 3.0583 0.0820 −2.5652 −0.9659 −0.3903 −0.8999 
−1.3405 0.4949 1.1507 0.9243 −0.7578 1.1798 0.1375 
0.2101 −0.5654 0.3128 0.7254 −1.9996 −0.6381 0.2464 
10 1.5425 0.9587 −1.2920 −0.2231 −1.1418 −0.0062 0.0227 
11 −1.3778 −0.7698 1.4947 −2.0687 0.2060 −0.8086 −0.1117 
12 0.9984 0.9565 −1.1923 −1.2693 1.4830 0.0686 0.0781 
13 0.9331 1.4203 −1.8091 −0.7885 −0.9031 1.3118 −0.5108 
14 −0.1369 2.0733 1.1373 −1.2257 1.1636 −0.9247 −0.4008 
15 −0.2220 0.2289 0.1632 2.2518 1.2899 −1.4626 −0.1449 
16 2.3981 0.0156 −0.0770 0.7976 −0.0701 1.5534 0.0592 
17 0.7002 −2.2767 0.3673 −0.3042 −0.7346 1.5135 −0.6997 
18 0.3257 1.7548 0.5674 2.2367 −0.1081 1.8769 0.1161 
19 −1.7764 −0.8759 −1.7090 0.1760 0.4790 −2.1934 0.3410 
20 −1.2106 −0.3600 0.8094 −0.9271 −2.4594 −1.8661 −0.0614 
ANN model parametersInput weights, α2
Bias, β2Layer weights, λ2
NeuronsHLWV1y1
−0.0380 −1.1597 −2.0656 −0.7575 1.0109 2.7440 −0.7838 
−1.1496 0.9556 −0.1061 −1.3098 −1.0671 2.3622 0.0087 
1.2711 −1.1414 1.3462 −1.2993 −1.3468 −2.1965 −0.3035 
2.1142 0.3665 −1.1628 0.0393 0.6405 −1.7163 0.2764 
0.6758 −1.8780 1.0718 −1.3003 −0.4442 −1.3700 −0.3895 
0.9523 −0.9512 −1.6597 −1.1150 −1.3812 −1.3765 −0.3384 
0.5588 3.0583 0.0820 −2.5652 −0.9659 −0.3903 −0.8999 
−1.3405 0.4949 1.1507 0.9243 −0.7578 1.1798 0.1375 
0.2101 −0.5654 0.3128 0.7254 −1.9996 −0.6381 0.2464 
10 1.5425 0.9587 −1.2920 −0.2231 −1.1418 −0.0062 0.0227 
11 −1.3778 −0.7698 1.4947 −2.0687 0.2060 −0.8086 −0.1117 
12 0.9984 0.9565 −1.1923 −1.2693 1.4830 0.0686 0.0781 
13 0.9331 1.4203 −1.8091 −0.7885 −0.9031 1.3118 −0.5108 
14 −0.1369 2.0733 1.1373 −1.2257 1.1636 −0.9247 −0.4008 
15 −0.2220 0.2289 0.1632 2.2518 1.2899 −1.4626 −0.1449 
16 2.3981 0.0156 −0.0770 0.7976 −0.0701 1.5534 0.0592 
17 0.7002 −2.2767 0.3673 −0.3042 −0.7346 1.5135 −0.6997 
18 0.3257 1.7548 0.5674 2.2367 −0.1081 1.8769 0.1161 
19 −1.7764 −0.8759 −1.7090 0.1760 0.4790 −2.1934 0.3410 
20 −1.2106 −0.3600 0.8094 −0.9271 −2.4594 −1.8661 −0.0614 
Figure 3

ANN-1 model.

Figure 4

ANN-2 model.

The developed ANN models have been trained using the experimental data of the discharge of the triangular side orifice (Qs) and the velocity at the downstream of the channel (V2). Out of the total data set, 70% data sets have been used in training while 15% each has been using in testing and validation of ANN model. The associated weights between the connections of artificial neurons were initialized randomly and total error function was calculated at the output layer following the feedforward step. The Levenberg–Marquardt (LM) algorithm has been used in the back-propagation step of the training of ANN Model. The performance of the developed ANN model for predicting the discharge of the triangular side orifice has been assessed by evaluating the statistical parameters, namely mean absolute error (MAE), average absolute deviation, mean squared error (MSE), and correlation coefficient (R) as shown in Equations (21)–(24), respectively.
(21)
(22)
(23)
(24)
(25)
(26)
(27)
where, n is the total number of observations; = covariance of Qs and ; and are the standard deviation of Qs and , respectively, whereas and are corresponding values of their mean. Similarly, for evaluating the performance of the developed ANN-2 model for predicting the velocity at downstream section across the triangular side orifice, Equations (21)–(24) were used by replacing the discharge values with the velocity.
After the complete training of ANN models, performance results were obtained and presented with the help of different types of plots (Figures 512). Values of statistical parameters MAE, AAD, MSE, and R were obtained after training the ANN-1 and ANN-2 models which are summarized in Table 4. Figures 5 and 9 represent the plot of MSE with a number of epochs. The best validation performance was obtained at epoch 12 for ANN-1 model and for ANN-2 model it was obtained at epoch 41. The mean square errors (MSE) corresponding to the best validation performances were found to be 2.059 × 10−08 and 2.589 × 10−05 for ANN-1 and ANN-2 models, respectively. Figure 7 represents the scatter plots of Qs using ANN-1 model for training, validation, and testing. The scatter plots of V2 using ANN-2 model are represented in Figure 11. In these scatter plots, the experimental values are plotted against their corresponding values predicted by the ANN models along with a line of agreement. It was observed that the predicted Qs and V2 are in good agreement with the experimental Qs and V2.
Table 4

Performance evaluation of predicted values of Qs and V2

VariablesQs from ANN-1 modelV2 from ANN-2 model
MAE 0.00011 0.00323 
AAD 1.31522 0.93745 
MSE 1.99212 × 10−08 2.44572 × 10−05 
R 0.99945 0.99867 
Number of epochs 12 41 
Minimum gradient 10−07 10−07 
μ 0.001 0.001 
μ decrease ratio 0.1 0.1 
μ increase ratio 10 10 
VariablesQs from ANN-1 modelV2 from ANN-2 model
MAE 0.00011 0.00323 
AAD 1.31522 0.93745 
MSE 1.99212 × 10−08 2.44572 × 10−05 
R 0.99945 0.99867 
Number of epochs 12 41 
Minimum gradient 10−07 10−07 
μ 0.001 0.001 
μ decrease ratio 0.1 0.1 
μ increase ratio 10 10 
Figure 5

Plot of MSE with a number of epochs (ANN-1 model).

Figure 5

Plot of MSE with a number of epochs (ANN-1 model).

Close modal
Figure 6

Error histogram of ANN-1 model.

Figure 6

Error histogram of ANN-1 model.

Close modal
Figure 7

Regression plots for training, testing, and validation (ANN-1 model).

Figure 7

Regression plots for training, testing, and validation (ANN-1 model).

Close modal
Figure 8

Stemplot for ANN-1 model.

Figure 8

Stemplot for ANN-1 model.

Close modal
Figure 9

Plot of MSE with a number of epochs (ANN-2 model).

Figure 9

Plot of MSE with a number of epochs (ANN-2 model).

Close modal
Figure 10

Error histogram of ANN-2 model.

Figure 10

Error histogram of ANN-2 model.

Close modal
Figure 11

Regression plots for training, testing, and validation (ANN-2 model).

Figure 11

Regression plots for training, testing, and validation (ANN-2 model).

Close modal
Figure 12

Stemplot for ANN-2 model.

Figure 12

Stemplot for ANN-2 model.

Close modal

The MAE, AAD, MSE, and R provide only the average values of model performance parameters. To show the pointwise variation of errors, two different plots, namely, the error histogram and the stem plot have been used in this study. Figures 6 and 10 show the error histogram with 20 bins for ANN-1 and ANN-2 models, respectively. It is observed that the numbers of instances of fallen data are high for bins having lesser error ranges. Also, with the increase in the error ranges of bins, the corresponding number of instances decreases following a bell-shaped error distribution. Stem-plots between the data points and corresponding prediction errors for ANN-1 and ANN-2 models are shown in Figures 8 and 12, respectively. In these plots, it was observed that most of data points fall within the smaller error range of the order of 10−4 and 10−2, respectively. Performance results presented above are in good agreement with experimental results, which demonstrate the capability and practical applicability of proposed ANN models in predicting the discharge through the triangular side orifice.

Comparison of ANN Model with models proposed in the literature

Recently, various researchers have proposed several mathematical models for estimating discharge through triangular orifice. This section discusses the limitations of existing equations for calculating discharge through the triangular side orifices. For evaluation of performance, statistical parameters, namely MAE, AAD, MSE, and R using Equations (21)–(24) and relative error, (ψ) using Equation (28) were evaluated. The performance parameters for each model are summarized in Table 5. The ψ versus predicted discharge was also plotted to compare existing equations with the ANN model.
(28)
Table 5

Performance evaluation of various models

S. No.AuthorsModelsPerformance parameters
MAEAADMSER
1. Present study ANN-1, Equation (190.00011 1.31522 1.99 × 10−08 0.99945 
2. Vatankhah & Mirnia (2018)  Equation (10.00038 4.48222 2.04 × 10−07 0.99560 
3. Vatankhah & Mirnia (2018)  Equation (20.00217 25.83366 5.68 × 10−06 0.99582 
4. Vatankhah & Mirnia (2018)  Equation (30.00041 4.85584 2.88 × 10−07 0.99697 
5. Mehraein (2019)  Equation (60.00045 5.30027 2.79 × 10−07 0.99702 
6. Vatankhah & Mirnia (2019)  Equation (110.00053 6.24798 4.49 × 10−07 0.99800 
7. Vatankhah & Mirnia (2019)  Equation (120.00027 3.16904 1.42 × 10−07 0.99654 
8. Jamei et al. (2021)  Equation (130.00031 3.66576 1.71 × 10−07 0.99730 
9. Jamei et al. (2021)  Equation (140.00032 3.84328 1.87 × 10−07 0.99661 
10. Jamei et al. (2021)  Equation (150.00030 3.53512 1.35 × 10−07 0.99746 
11. Moghadam et al. (2022)  RELM 0.00026 3.08053 1.07 × 10−07 0.99725 
S. No.AuthorsModelsPerformance parameters
MAEAADMSER
1. Present study ANN-1, Equation (190.00011 1.31522 1.99 × 10−08 0.99945 
2. Vatankhah & Mirnia (2018)  Equation (10.00038 4.48222 2.04 × 10−07 0.99560 
3. Vatankhah & Mirnia (2018)  Equation (20.00217 25.83366 5.68 × 10−06 0.99582 
4. Vatankhah & Mirnia (2018)  Equation (30.00041 4.85584 2.88 × 10−07 0.99697 
5. Mehraein (2019)  Equation (60.00045 5.30027 2.79 × 10−07 0.99702 
6. Vatankhah & Mirnia (2019)  Equation (110.00053 6.24798 4.49 × 10−07 0.99800 
7. Vatankhah & Mirnia (2019)  Equation (120.00027 3.16904 1.42 × 10−07 0.99654 
8. Jamei et al. (2021)  Equation (130.00031 3.66576 1.71 × 10−07 0.99730 
9. Jamei et al. (2021)  Equation (140.00032 3.84328 1.87 × 10−07 0.99661 
10. Jamei et al. (2021)  Equation (150.00030 3.53512 1.35 × 10−07 0.99746 
11. Moghadam et al. (2022)  RELM 0.00026 3.08053 1.07 × 10−07 0.99725 
The ANN model proposed in this study has MAE = 0.00011 and MSE = 1.99 × 10−08. The average absolute deviation, AAD, for the ANN model was observed to be 1.32%, having R = 0.99945. It was observed that Equation (1) (AAD = 4.48% and R = 0.9956) proposed by Vatankhah & Mirnia (2018) has a high relative error when compared with that of the ANN model, as shown in Figure 13. It also has been observed that for the lower discharge values, the relative error is higher; however, for higher discharges, the relative error is lesser. It is evident from Table 5 that Equation (1) has MAE three times that of the ANN model. Similarly, the MSE for Equation (1) is ten times that of the ANN model. It has been observed that Equation (2), with AAD of 25.83%, MSE = 5.68 × 10−06, MAE = 0.00217, and R = 0.99582, had the poorest performance among all the models proposed in the literature, including the ANN-1 model. This suggests that y1 cannot be ignored while estimating the discharge through the triangular side orifice. A comparison of ψ of Equation (3) having R = 0.99697 with the ANN-1 model plotted in Figure 14 tends to underestimate the discharge with MAE = 0.00041 and AAD = 4.86%, which is 3.7 times that of the ANN-1 model. The MSE for Equation (3) is 14 times that of the ANN model. The comparison of the ANN model and Equation (6) proposed by Mehraein (2019) has been plotted in Figure 15. Equation (6) having R = 0.99702 tends to overestimate the discharge with MAE and MSE equal to 0.00045 and 2.79 × 10−07, respectively. It is evident from Figure 15 that the relative error is much higher for lower discharges with AAD = 5.3%. Discharge equations, Equations (11) and (12) proposed by Vatankhah & Mirnia (2019), with average absolute deviations of 6.25 and 3.17%, respectively, show higher relative error as compared to the ANN-1 model and overestimate the higher discharge values as shown in Figures 16 and 17. The MAE and MSE for Equation (11) (R = 0.998) were computed as 0.00053 and 4.49 × 10−07, respectively, whereas Equation (12) with R = 0.99654 have MAE = 0.00027 and MSE = 1.42 × 10−07. The equations proposed by Vatankhah & Mirnia (2018), Mehraein (2019), and Vatankhah & Mirnia (2019) were derived using the regression analysis, whereas Jamei et al. (2021) and Moghadam et al. (2022) used machine learning algorithms.
Figure 13

Relative error plot for Vatankhah & Mirnia (2018) (Equation (1)).

Figure 13

Relative error plot for Vatankhah & Mirnia (2018) (Equation (1)).

Close modal
Figure 14

Relative error plot for Vatankhah & Mirnia (2018) (Equation (3)).

Figure 14

Relative error plot for Vatankhah & Mirnia (2018) (Equation (3)).

Close modal
Figure 15

Relative error plot for Mehraein (2019) (Equation (6)).

Figure 15

Relative error plot for Mehraein (2019) (Equation (6)).

Close modal
Figure 16

Relative error plot for Vatankhah & Mirnia (2019) (Equation (11)).

Figure 16

Relative error plot for Vatankhah & Mirnia (2019) (Equation (11)).

Close modal
Figure 17

Relative error plot Vatankhah & Mirnia (2019) (Equation (12)).

Figure 17

Relative error plot Vatankhah & Mirnia (2019) (Equation (12)).

Close modal
The comparison of ANN with machine learning algorithms MLR (Equations (13) and (14)) and MLRI (Equation (15)) proposed by Jamei et al. (2021) suggests that the ANN-1 model can predict discharge more accurately with the least relative error for lower as well as higher discharges, as shown in Figures 1820. Moreover, it is evident from Table 5 that there is no significant improvement in the performance parameters of Equations (13)–(15) over regression equations discussed above. Additionally, the relative error of RELM algorithm proposed by Moghadam et al. (2022) plotted in Figure 21 was compared with that of the ANN-1 model. It can be observed that initially, for lower discharge values, the RELM has a high relative error and then gradually decreases for intermediate discharge values. Although the RELM having R = 0.99725 works well for higher discharge values but the MAE = 0.00026 and AAD = 3.08% is twice that of the ANN-1 model while the MSE = 1.07 × 10−07 is five times the MSE of the ANN-1 model.
Figure 18

Relative error plot for Jamei et al. (2021) (Equation (13)).

Figure 18

Relative error plot for Jamei et al. (2021) (Equation (13)).

Close modal
Figure 19

Relative error plot for Jamei et al. (2021) (Equation (14)).

Figure 19

Relative error plot for Jamei et al. (2021) (Equation (14)).

Close modal
Figure 20

Relative error plot for Jamei et al. (2021) (Equation (15)).

Figure 20

Relative error plot for Jamei et al. (2021) (Equation (15)).

Close modal
Figure 21

Relative error plot for Moghadam et al. (2022).

Past researchers Vatankhah & Mirnia (2018), Jamei et al. (2021), and Moghadam et al. (2022) calculated the discharge using Equation (4) by assuming that y1 = y2. However, this assumption does not validate the experimental observations where y1y2. As a result, Mehraein (2019) proposed Equation (6), which is highly data dependent with 12 regression coefficients, failed to provide any improvement over this assumption. Additionally, Vatankhah & Mirnia (2019) suggested Equation (10) for computing discharge through the triangular side orifice where y1 was used instead of HCL using Equations (11) and (12) for calculating the Cd; however, Equation (11) did not provide a promising improvement over other equations. Equation (12) yielded good results over other equations, but it did not consider the Fr1 for discharge estimation, although it should not have been neglected, as suggested by Qian et al. (2019) and Shen et al. (2022). In the present study, the proposed ANN-1 model for the estimation of Qs considering H, L, W, V1, and y1 as primary factors within the ranges shown in Table 1 can precisely simulate the discharge through the triangular side orifice with the MSE of the order of 10−8 and R ≈ 1.

Another objective of this study is to find the optimal values of design parameters of a triangular side orifice for which two objectives, namely, the discharge through the side orifice (Qs) and the downstream velocity in the main channel (V2) are maximized simultaneously while keeping the constant upstream discharge (Q1 = Q0). For this purpose, a hybrid multi-objective optimization model using Genetic Algorithm (NSGA-II) has been developed in this study. The developed hybrid NSGA-II model is comprised of three models, namely, NSGA-II mode, ANN-1 model, and ANN-2 model. The two objective functions of NSGA-II model have been formulated by linking it with ANN-1 and ANN-2 model in such a way that the minimum of these objective functions will correspond to the maximum Qs and maximum V2. Mathematically, the objective functions for hybrid NSGA-II model can be represented as:
where x is the vector of design parameters (decision variables) of triangular side orifice (H, L, W, V1, and y1); xl is the lower bound on vector x; xu is the upper bound on vector x.
The hybrid NSGA-II model starts with generating the initial population of decision variables (H, L, W, V1, and y1). The values of the initial population serve as input to ANN-1 and ANN-2 models, which are externally linked with the NSGA-II model. These input parameters are then used to calculate the values of Qs and V2. These outputs of ANN models are then used to evaluate the fitness values of hybrid NSGA-II model by formulating the two objective functions f1 and f2. Based on the fitness values of objective functions, different genetic algorithm (GA) operators, namely, crossover, mutation, and elitism have been applied to meet the stopping criteria. The developed hybrid NSGA-II model gives a series of optimal solutions in terms of Pareto front which minimizes both the objectives f1 and f2 simultaneously. The values of different optimization parameters of NSGA-II model are given in Table 6. The flow chart of hybrid NSGA-II model is given in Figure 22. The Pareto front obtained from the hybrid NSGA-II model between objective 1 and objective 2 is shown in Figure 23. The series of optimal solution along with the values of objective functions of hybrid NSGA-II model is summarized in Table 7.
Table 6

Values of different parameters used in NSGA-II model

ParametersValues
Population size 50 
Selection function Tournament 
Tournament size 
Crossover fraction 0.8 
Crossover ratio 1.0 
Migration fraction 0.2 
Migration interval 20 
Pareto front population fraction 0.35 
Maximum number of generations 500 
Function tolerance 10−04 
Constraint tolerance 10−03 
ParametersValues
Population size 50 
Selection function Tournament 
Tournament size 
Crossover fraction 0.8 
Crossover ratio 1.0 
Migration fraction 0.2 
Migration interval 20 
Pareto front population fraction 0.35 
Maximum number of generations 500 
Function tolerance 10−04 
Constraint tolerance 10−03 
Table 7

Optimal values of the decision variables and objective functions of hybrid NSGA-II model

Sl. No.HLWV1y1f1 = −Qsf2 = −V2
0.04729 0.371665 0.07296 0.573811 0.215953 −0.0259 −0.31245 
0.046994 0.373988 0.054025 0.783175 0.157595 −0.01141 −0.7848 
0.043073 0.359047 0.0565 0.627614 0.196526 −0.01357 −0.69031 
0.044057 0.359745 0.0722 0.596476 0.206393 −0.02325 −0.50613 
0.043867 0.361234 0.072055 0.578811 0.214226 −0.02461 −0.47597 
0.045013 0.364375 0.072605 0.576091 0.214922 −0.02524 −0.42349 
0.047253 0.370461 0.072946 0.573871 0.215876 −0.02585 −0.32646 
0.042838 0.358268 0.068325 0.625794 0.198003 −0.01895 −0.5905 
0.043986 0.361359 0.072579 0.59706 0.205702 −0.02352 −0.49176 
10 0.045919 0.367537 0.072806 0.574311 0.215606 −0.02565 −0.37416 
11 0.04598 0.366143 0.072812 0.575055 0.215586 −0.02554 −0.3917 
12 0.047174 0.362115 0.053983 0.782622 0.157705 −0.01299 −0.74729 
13 0.047868 0.359789 0.053939 0.782363 0.158157 −0.01329 −0.73123 
14 0.046087 0.369508 0.072825 0.573833 0.215876 −0.0258 −0.34868 
15 0.042855 0.358773 0.064429 0.619808 0.198068 −0.01648 −0.61517 
16 0.042844 0.358749 0.070367 0.621899 0.198544 −0.02053 −0.56824 
17 0.043283 0.35899 0.06286 0.618583 0.198734 −0.01574 −0.62562 
18 0.043206 0.358924 0.060893 0.622113 0.197306 −0.01467 −0.64664 
19 0.04421 0.362053 0.072236 0.576833 0.214858 −0.02486 −0.4601 
20 0.04357 0.359425 0.070966 0.598036 0.204957 −0.02243 −0.52289 
21 0.044634 0.365664 0.072446 0.575235 0.214988 −0.02535 −0.41235 
22 0.046994 0.373988 0.054025 0.783175 0.157595 −0.01141 −0.7848 
23 0.04729 0.371665 0.07296 0.573811 0.215953 −0.0259 −0.31245 
24 0.043687 0.360084 0.064736 0.619565 0.19883 −0.01704 −0.60284 
25 0.042843 0.35841 0.068744 0.624419 0.198129 −0.01931 −0.58493 
26 0.049777 0.357878 0.053907 0.778371 0.159017 −0.01352 −0.70734 
27 0.04315 0.358858 0.068625 0.594264 0.207423 −0.02136 −0.54964 
28 0.046854 0.367887 0.072789 0.575204 0.215466 −0.02567 −0.36395 
29 0.043227 0.358917 0.061175 0.618913 0.198375 −0.01489 −0.64192 
30 0.047117 0.363624 0.053998 0.78317 0.15763 −0.01284 −0.75503 
31 0.04315 0.358858 0.068625 0.594264 0.207423 −0.02136 −0.54964 
32 0.048137 0.368576 0.053957 0.781623 0.158084 −0.01237 −0.76655 
33 0.043115 0.358904 0.059755 0.626132 0.197855 −0.01438 −0.66398 
34 0.049681 0.358203 0.053972 0.779917 0.158393 −0.01347 −0.70937 
35 0.044611 0.362174 0.072463 0.577179 0.214619 −0.0249 −0.45318 
Sl. No.HLWV1y1f1 = −Qsf2 = −V2
0.04729 0.371665 0.07296 0.573811 0.215953 −0.0259 −0.31245 
0.046994 0.373988 0.054025 0.783175 0.157595 −0.01141 −0.7848 
0.043073 0.359047 0.0565 0.627614 0.196526 −0.01357 −0.69031 
0.044057 0.359745 0.0722 0.596476 0.206393 −0.02325 −0.50613 
0.043867 0.361234 0.072055 0.578811 0.214226 −0.02461 −0.47597 
0.045013 0.364375 0.072605 0.576091 0.214922 −0.02524 −0.42349 
0.047253 0.370461 0.072946 0.573871 0.215876 −0.02585 −0.32646 
0.042838 0.358268 0.068325 0.625794 0.198003 −0.01895 −0.5905 
0.043986 0.361359 0.072579 0.59706 0.205702 −0.02352 −0.49176 
10 0.045919 0.367537 0.072806 0.574311 0.215606 −0.02565 −0.37416 
11 0.04598 0.366143 0.072812 0.575055 0.215586 −0.02554 −0.3917 
12 0.047174 0.362115 0.053983 0.782622 0.157705 −0.01299 −0.74729 
13 0.047868 0.359789 0.053939 0.782363 0.158157 −0.01329 −0.73123 
14 0.046087 0.369508 0.072825 0.573833 0.215876 −0.0258 −0.34868 
15 0.042855 0.358773 0.064429 0.619808 0.198068 −0.01648 −0.61517 
16 0.042844 0.358749 0.070367 0.621899 0.198544 −0.02053 −0.56824 
17 0.043283 0.35899 0.06286 0.618583 0.198734 −0.01574 −0.62562 
18 0.043206 0.358924 0.060893 0.622113 0.197306 −0.01467 −0.64664 
19 0.04421 0.362053 0.072236 0.576833 0.214858 −0.02486 −0.4601 
20 0.04357 0.359425 0.070966 0.598036 0.204957 −0.02243 −0.52289 
21 0.044634 0.365664 0.072446 0.575235 0.214988 −0.02535 −0.41235 
22 0.046994 0.373988 0.054025 0.783175 0.157595 −0.01141 −0.7848 
23 0.04729 0.371665 0.07296 0.573811 0.215953 −0.0259 −0.31245 
24 0.043687 0.360084 0.064736 0.619565 0.19883 −0.01704 −0.60284 
25 0.042843 0.35841 0.068744 0.624419 0.198129 −0.01931 −0.58493 
26 0.049777 0.357878 0.053907 0.778371 0.159017 −0.01352 −0.70734 
27 0.04315 0.358858 0.068625 0.594264 0.207423 −0.02136 −0.54964 
28 0.046854 0.367887 0.072789 0.575204 0.215466 −0.02567 −0.36395 
29 0.043227 0.358917 0.061175 0.618913 0.198375 −0.01489 −0.64192 
30 0.047117 0.363624 0.053998 0.78317 0.15763 −0.01284 −0.75503 
31 0.04315 0.358858 0.068625 0.594264 0.207423 −0.02136 −0.54964 
32 0.048137 0.368576 0.053957 0.781623 0.158084 −0.01237 −0.76655 
33 0.043115 0.358904 0.059755 0.626132 0.197855 −0.01438 −0.66398 
34 0.049681 0.358203 0.053972 0.779917 0.158393 −0.01347 −0.70937 
35 0.044611 0.362174 0.072463 0.577179 0.214619 −0.0249 −0.45318 
Figure 22

Flow chart of hybrid NSGA-II model.

Figure 22

Flow chart of hybrid NSGA-II model.

Close modal
Figure 23

Pareto front obtained from hybrid NSGA-II model (objective function 1 and objective function 2).

Figure 23

Pareto front obtained from hybrid NSGA-II model (objective function 1 and objective function 2).

Close modal

The prediction of discharge through triangular orifices is essential for proper functioning and design optimization in various industrial and engineering applications. Traditional methods like empirical equations have limitations in terms of accuracy and applicability, while CFD simulations can be computationally intensive. However, ANNs offer a reliable and efficient alternative to conventional methods for predicting discharge coefficients, especially in situations where the relationships between the input parameters and discharge are complex.

In the present study, the ANN-1 model developed for predicting discharge through the triangular side orifice (Qs) has an MAE of 0.00011 and MSE of 1.99 × 10−08, with an AAD of 1.32% and R = 0.99945. Another model ANN-2 developed for predicting the downstream velocity (V2) has an MAE = 0.00323, AAD = 0.937%, and MSE of 2.44572 × 10−05 with a correlation coefficient, R = 0.99867. In addition, the most efficient triangular orifice has been identified by employing a hybrid multi-objective optimization model using GA (NSGA-II) to find optimal values of design parameters for maximizing discharge and downstream velocity simultaneously, thereby obtaining a series of optimal solutions in terms of Pareto front.

Moreover, a comparative study between the existing discharge equations proposed by various researchers and the ANN-1 model suggests that the developed ANN-1 model is capable of precisely simulate the discharge through the triangular side orifice with the MSE of the order of 10−8 and R ≈ 1.

All relevant data are included in the paper or its Supplementary Information.

The authors declare there is no conflict.

Ahmadi
M.
&
Kioumarsi
M.
2023
Predicting the elastic modulus of normal and high strength concretes using hybrid ANN-PSO
.
Materials Today: Proceedings
.
https://doi.org/10.1016/j.matpr.2023.03.178
.
Ayaz
M.
,
Chourasiya
S.
&
Danish
M.
2023
Performance analysis of different ANN modelling techniques in discharge prediction of circular side orifice
.
Modeling Earth Systems and Environment
.
https://doi.org/10.1007/s40808-023-01766-7
.
Azimi
H.
,
Shabanlou
S.
,
Ebtehaj
I.
,
Bonakdari
H.
&
Kardar
S.
2017
Combination of computational fluid dynamics, adaptive neuro-fuzzy inference system, and genetic algorithm for predicting discharge coefficient of rectangular side orifices
.
Journal of Irrigation and Drainage Engineering
143
(
7
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001190
.
Ebadi-Jamkhaneh
M.
&
Ahmadi
M.
2021
Comprehensive investigations of the effect of bolt tightness on axial behavior of a MERO joint system: experimental, FEM, and soft computing approaches
.
Journal of Structural Engineering
147
(
12
).
https://doi.org/10.1061/(ASCE)ST.1943-541X.0003168
.
Ebtehaj
I.
,
Bonakdari
H.
,
Khoshbin
F.
&
Azimi
H.
2015
Pareto genetic design of group method of data handling type neural network for prediction discharge coefficient in rectangular side orifices
.
Flow Measurement and Instrumentation
41
,
67
74
.
https://doi.org/10.1016/j.flowmeasinst.2014.10.016
.
Eghbalzadeh
A.
,
Javan
M.
,
Hayati
M.
&
Amini
A.
2016
Discharge prediction of circular and rectangular side orifices using artificial neural networks
.
KSCE Journal of Civil Engineering
20
(
2
),
990
996
.
https://doi.org/10.1007/s12205-015-0440-y
.
Esmailzadeh
M.
,
Heidarpour
M.
&
Eslamian
S. S.
2015
Flow characteristics of a sharp-crested side sluice gate
.
Journal of Irrigation and Drainage Engineering
141
(
7
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0000852
.
Gerami Moghadam
R.
,
Yaghoubi
B.
,
Rajabi
A.
,
Shabanlou
S.
&
Izadbakhsh
M. A.
2022
Simulation of discharge coefficient of triangular lateral orifices using an evolutionary design of generalized structure group method of data handling
.
Iranian Journal of Science and Technology, Transactions of Mechanical Engineering
.
https://doi.org/10.1007/s40997-022-00499-9
.
Ghodsian
M.
2003
Flow through side sluice gate
.
Journal of Irrigation and Drainage Engineering
129
(
6
).
https://doi.org/10.1061/(ASCE)0733-9437(2003)129:6(458)
.
Gill
M. A.
1987
Flow through side slots
.
Journal of Environmental Engineering
113
(
5
),
1047
1057
.
https://doi.org/10.1061/(ASCE)0733-9372(1987)113:5(1047)
.
Guo
J. C. Y.
&
Stitt
R. P.
2017
Flow through partially submerged orifice
.
Journal of Irrigation and Drainage Engineering
143
(
8
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001192
.
Hagan
M. T.
&
Menhaj
M. B.
1994
Training feedforward networks with the Marquardt algorithm
.
IEEE Transactions on Neural Networks
5
(
6
),
989
993
.
https://doi.org/10.1109/72.329697
.
Hussain
A.
,
Ahmad
Z.
&
Asawa
G. L.
2010
Discharge characteristics of sharp-crested circular side orifices in open channels
.
Flow Measurement and Instrumentation
21
(
3
).
https://doi.org/10.1016/j.flowmeasinst.2010.06.005
.
Hussain
A.
,
Ahmad
Z.
&
Asawa
G. L.
2011
Flow through side square orifices in open channels
.
Journal of Hydraulic Engineering
17
(
1
),
12
22
.
DOI: 10.1080/09715010.2011.10515056
.
Hussain
A.
,
Ahmad
Z.
&
Ojha
C. S. P.
2016
Flow through lateral circular orifice under free and submerged flow conditions
.
Flow Measurement and Instrumentation
52
,
57
66
.
https://doi.org/10.1016/j.flowmeasinst.2016.09.007
.
Jamei
M.
,
Ahmadianfar
I.
,
Chu
X.
&
Yaseen
Z. M.
2021
Estimation of triangular side orifice discharge coefficient under a free flow condition using data-driven models
.
Flow Measurement and Instrumentation
77
,
101878
.
https://doi.org/10.1016/j.flowmeasinst.2020.101878
.
Kheyroddin
A.
,
Ahmadi
M.
&
Kioumarsi
M.
2018
Using intelligent system approach for shear strength forecasting of steel fiber-reinforced concrete beams
. In:
SynerCrete'18 International Conference on Interdisciplinary Approaches for Cement-Based Materials and Structural Concrete
,
October
, pp.
1029
1034
.
Mahmoudian
A.
,
Yosefvand
F.
,
Shabanlou
S.
,
Izadbakhsh
M. A.
&
Rajabi
A.
2022
Robust extreme learning machine for estimation of triangular, rectangular, and parabolic weirs
.
Flow Measurement and Instrumentation
88
,
102237
.
https://doi.org/10.1016/j.flowmeasinst.2022.102237
.
Mehraein
M.
2019
Discussion of ‘Predicting discharge coefficient of triangular side orifice under free flow conditions’ by Ali R. Vatankhah and S. H. Mirnia
.
Journal of Irrigation and Drainage Engineering
145
(
8
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001412
.
Moghadam
R. G.
,
Yaghoubi
B.
,
Rajabi
A.
,
Shabanlou
S.
&
Izadbakhsh
M. A.
2022
Evaluation of discharge coefficient of triangular side orifices by using regularized extreme learning machine
.
Applied Water Science
12
(
7
),
145
.
https://doi.org/10.1007/s13201-022-01665-9
.
Noman
S. A.
,
Hussain
A.
,
Danish
M.
&
Ali
R.
2022
Prediction of discharge coefficient of circular side orifice through machine learning technique
. In:
9th International Symposium on Hydraulic Structures
, pp.
130
139
.
https://doi.org/10.26077/1d18-ff7d
.
Qian
S.
,
Xu
H.
,
Feng
J.
,
Wang
X.
&
Ding
X.
2019
Discussion of ‘Predicting discharge coefficient of triangular side orifice under free flow conditions’ by Ali R. Vatankhah and S. H. Mirnia
.
Journal of Irrigation and Drainage Engineering
145
(
8
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001411
.
Ramamurthy
A. S.
,
Tim
U. S.
&
Sarraf
S.
1986
Rectangular lateral orifices in open channels
.
Journal of Environmental Engineering
112
(
2
),
292
300
.
https://doi.org/10.1061/(ASCE)0733-9372(1986)112:2(292)
.
Ramamurthy
A. S.
,
Tim
U. S.
&
Rao
M. V. J.
1987
Weir-Orifice units for uniform flow distribution
.
Journal of Environmental Engineering
113
(
1
),
155
166
.
https://doi.org/10.1061/(ASCE)0733-9372(1987)113:1(155)
.
Schalkoff
R. J.
1997
Artificial Neural Networks
.
McGraw-Hill
,
Singapore
.
Shen
G.
,
Li
S.
,
Parsaie
A.
,
Li
G.
,
Cao
D.
&
Pandey
P.
2022
Prediction and parameter quantitative analysis of side orifice discharge coefficient based on machine learning
.
Water Supply
22
(
12
),
8880
8892
.
https://doi.org/10.2166/ws.2022.394
.
Sosnowska
A.
2021
Discharge of a triangular orifice under free flow conditions
.
Archives of Hydro-Engineering and Environmental Mechanics
68
(
1
),
19
28
.
https://doi.org/10.1515/heem-2021-0002
.
Swamee
P. K.
,
Pathak
S. K.
&
Ali
M. S.
1993
Analysis of rectangular side sluice gate
.
Journal of Irrigation and Drainage Engineering
119
(
6
),
1026
1035
.
https://doi.org/10.1061/(ASCE)0733-9437(1993)119:6(1026)
.
Vatankhah
A. R.
&
Bijankhan
M.
2013
Discussion of ‘New method for modeling thin-walled orifice flow under partially submerged conditions’ by David Brandes and William T. Barlow
.
Journal of Irrigation and Drainage Engineering
139
(
9
),
789
793
.
https://doi.org/10.1061/(ASCE)IR.1943-4774.0000584
.
Vatankhah
A. R.
&
Mirnia
S. H.
2018
Predicting discharge coefficient of triangular side orifice under free flow conditions
.
Journal of Irrigation and Drainage Engineering
144
(
10
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001343
.
Vatankhah
A. R.
&
Mirnia
S. H.
2019
Closure to ‘Predicting discharge coefficient of triangular side orifice under free flow conditions’ by Ali R. Vatankhah and S. H. Mirnia
.
Journal of Irrigation and Drainage Engineering
145
(
8
).
https://doi.org/10.1061/(ASCE)IR.1943-4774.0001410
.
Zurada
J. M.
1994
Introduction to Artificial Neural Systems
.
Jaico Publishing House
,
India
.
This is an Open Access article distributed under the terms of the Creative Commons Attribution Licence (CC BY 4.0), which permits copying, adaptation and redistribution, provided the original work is properly cited (http://creativecommons.org/licenses/by/4.0/).