To ensure water quality at the control cross-section of main streams (CCMS) in a rainstorm period, an inverse design method was proposed to determine the optimal discharge flow of tributary rivers. The design variables are tributary discharges and the target variables are the required concentrations of chemical oxygen demand (COD), dissolved oxygen (DO) and ammonia nitrogen (NH3-N) at CCMS. The relationship between target variables and design variables was identified using an artificial neural network (ANN). The database was obtained by Environmental Fluid Dynamics Code (EFDC) and the optimal tributary discharges were obtained by a genetic algorithm (GA) coupled with well trained ANN. The results showed the following results: (a) The relative prediction errors of ANN are mostly less than 5%. (b) When the inlet flow rate is 0 m3/s, 30 m3/s, 50 m3/s, 100 m3/s and 200 m3/s, the optimization total discharges of tributaries are 5.7 m3/s, 12.5 m3/s, 18.6 m3/s, 33.4 m3/s and 61.8 m3/s, respectively. (c) Most of optimization plans entirely satisfy the water quality requirements at CCMS except a few plans, in which the relative errors between optimized results and required values of COD and DO are less than 0.4% and 0.1%, respectively. The study showed that the inverse design method is efficient for determining the optimal discharges of multiple tributaries.

  • An inverse design method of Environmental Fluid Dynamics Code, artificial neural network and genetic algorithm is proposed.

  • The optimal discharge of multiple tributaries into mainstream is obtained.

  • The optimal discharge schemes satisfy the water quality requirement of a main stream.

  • The inverse design method is proved to be highly efficient.

Graphical Abstract

Graphical Abstract

Rivers are major inland water resources for municipal, industrial and irrigational purposes. However, the water quality of rivers in many regions has deteriorated because of artificial pollution such as industrial wastewater, domestic sewage and urban and agricultural runoff. Simultaneously, rainfall runoff including numerous pollutants has become an important pollution source (Wijesiri et al. 2015). Particularly, these pollutants are transported to main streams via tributaries in a rainstorm period and lead to the deterioration of water quality. To ensure the water quality requirements of main streams, the rainfall runoff pollution via tributaries needs to be controlled.

Some studies have shown that stormwater runoff contained large amounts of heavy metal, organic matter and suspended substance (Helmreich et al. 2010; Zhao et al. 2021). Meanwhile, stormwater was also found to be a significant source of labile organic matter to receiving waters, especially during the first flush of runoff (McCabe et al. 2021). Furthermore, it was reported that suspended substances were an important carrier of chemical oxygen demand and total phosphorus. In stormwater runoff, the average particulate phosphorus concentration was high and organic phosphorus was in the majority (Zhang et al. 2018b; Hu et al. 2021). These pollutants lead to the eutrophication of receiving waters. It is very important to control the discharge of stormwater runoff into receiving waters.

Artificial intelligence algorithm has been successfully applied in many fields including water engineering, ecological and environmental sciences. ANN is successfully used for predicting water quality because it is characterized to model the complex pattern and nonlinear processes without any advance knowledge of the relationship between the input and output data (Salari et al. 2018; Jahan & Pradhanang 2021). The parameters of transient storage model were well predicted by using the symbiotic organism search algorithm and improved moth-swarm algorithm, respectively (Madadi et al. 2020a, 2020b). To solve optimization problems, the GA is usually used. For instance, it is used for optimizing the structural best management practices to improve water quality goals and assess water quality in parameter optimization (Kaini et al. 2012; Sotomayor et al. 2018). Recently, the inverse design method has gained much attention due to its high efficiency and wide applications. Zhai et al. (2014) proposed an inverse design method to research the air flow of a three-dimensional aircraft cabin. This was based on multi-objective GA and computational fluid dynamics was used. Xu et al. (2020) used the GA to propose a new optimization approach for reservoir operation to balance hydropower generation and plant diversity conservation in downstream wetlands. However, to our best knowledge, the discharge rate of all tributary rivers into main streams to ensure the water quality at CCMS has rarely been optimized in a rainstorm period based on the reverse design principle.

The aim of this study was to determine the optimal tributary discharge to meet the water quality requirements at CCMS in a rainstorm period. To realize this purpose, an inverse design method was proposed based on the combination of EFDC, ANN and GA. Tributary discharges are design variables and the required concentrations of COD, DO and NH3-N at CCMS are target variables. The database of 25 samples was obtained by EFDC for training the ANN in order to establish the relationship between the variables of design and target. Subsequently, the GA was applied to find optimization plans. Finally, the obtained optimization plans were verified by EFDC. With the optimization plans, control strategies were carried out to prevent the water quality deterioration in the main stream in a rainstorm period.

Inverse design method

The inverse design method was used to find the optimal conditions to satisfy the required objectives. This operates in an inverse adaptation of the forward method used commonly. In this method, the discharges of multiple tributaries were put as design variables, and the concentrations of COD, DO and NH3-N at the CCMS were set as target variables. The target variables were obtained through EFDC simulation under different typical cases. Based on results of EFDC simulation, the BPNN (Back Propagation Neural Network) learned the relationship between the variables of design and target. With the requirement of water quality for the main stream at CCMS, the GA and well trained BPNN were combined to obtain the optimal discharges of tributaries.

Establishing the EFDC database is the primary step. Different cases were generated using the orthogonal design method. The concentrations of water quality parameters at the CCMS under different cases were obtained by EFDC. The values of the main parameters for EFDC are shown in Table 1. The boundary conditions were set up according to Table 2.

Table 1

Values of main parameters in the EFDC model

ParametersValueParametersValue
Grids 2,642 Initial value of NH3-N 2 mg/L 
Initial water level 1.5 m Degradation rate of COD 0.1 day−1 
Bottom roughness 0.02 Re-nutrition coefficient 1.1 day−1 
Temperature of water 27 °C Maximum nitrification rate 0.1 day−1 
Initial value of COD 30 mg/L Initial value of DO 5 mg/L 
Release rate of NH3-N by sediment 0.2 g/m2/day Oxygen consumption rate of sediment 6 g/m2/day 
ParametersValueParametersValue
Grids 2,642 Initial value of NH3-N 2 mg/L 
Initial water level 1.5 m Degradation rate of COD 0.1 day−1 
Bottom roughness 0.02 Re-nutrition coefficient 1.1 day−1 
Temperature of water 27 °C Maximum nitrification rate 0.1 day−1 
Initial value of COD 30 mg/L Initial value of DO 5 mg/L 
Release rate of NH3-N by sediment 0.2 g/m2/day Oxygen consumption rate of sediment 6 g/m2/day 
Table 2

Averaged water quality of Sanchakou and tributary rivers in a rainstorm (unit: mg/L)

Water quality parametersSanchakou InflowBeijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
COD 30.0 81.0 72.0 75.0 73.0 71.0 
DO 5.0 3.0 3.5 3.8 4.7 3.3 
NH3-N 2.0 3.1 5.0 4.0 5.8 4.2 
Water quality parametersSanchakou InflowBeijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
COD 30.0 81.0 72.0 75.0 73.0 71.0 
DO 5.0 3.0 3.5 3.8 4.7 3.3 
NH3-N 2.0 3.1 5.0 4.0 5.8 4.2 

Secondly, the EFDC database was separated into the training samples and testing samples. The BPNN was trained by training samples while testing samples were used to validate accuracy of the BPNN. The well trained BPNN was obtained and its accuracy was validated by the mean squared errors of predicting testing samples.

In an inverse design step, the GA and the well trained BPNN were combined to obtain the optimal discharge of each tributary by satisfying the requirements of water quality of the main stream at CCMS. In this method, the well trained BPNN was used to predict target variables of new individuals. The GA was to find the optimal solutions. The individuals with high fitness were selected and the selected individuals were then used in the next iteration of the algorithm (Ayvaz & Elci 2018). When the maximum generation size was reached, the iteration stops and the optimal discharges of tributaries were obtained. Finally, the optimal discharges of tributaries were verified by EFDC to ensure that the optimal discharges satisfied the requirement of the water quality of main stream at CCMS. The flow chart of the calculation is explained in Figure 1.

Figure 1

Flow chart of the inverse design of the optimal tributary discharge rate.

Figure 1

Flow chart of the inverse design of the optimal tributary discharge rate.

Close modal

Artificial neural network

The BPNN was used to realize the mapping relationship of input data and output ones. The discharges of five tributary rivers are input variables and the concentrations of COD, DO or NH3-N at CCMS are output ones. Therefore, the input layer and output layer have five nodes and one node, respectively. As for the hidden layer, the number range of nodes was firstly determined as:
(1)
where, l, m and n are the number of nodes of hidden, input and output layers, respectively. a is a constant between 0 and 10. The optimal number of hidden nodes was determined by trial and error method and was 6 initially. Finally, three single-output BPNNs for COD, DO or NH3-N were established separately. The structure of three-layer BPNN is shown in Figure 2.
Figure 2

Structure of the three-layer ANN.

Figure 2

Structure of the three-layer ANN.

Close modal

Other parameters used for BPNN were mainly based on a previous study (Zhang et al. 2018a). Meanwhile, their values were determined through multiple debugging. The transfer functions selected for the neurons of hidden layer and output layer were Tansig function (S-type hyperbolic tangent function) and Purelin function (linear transfer function), respectively. The Levenberg–Marquardt algorithm was used to train the network in the training function. The learning rate and the goal of mean squared error were set as 0.02 and 0.01, respectively. The default number of epochs was 100. When the predicted results of COD could reach the target accuracy, the well trained BPNN for COD was obtained. Similarly, the well trained BPNN for DO and NH3-N was also obtained.

In order to evaluate the prediction performance of the trained BPNN, root mean square error (RMSE) was used. The RMSE between predicted results of BPNN and target output was expressed as:
(2)
where, is the predicted concentration of COD, DO or NH3-N; is target concentration of COD, DO or NH3-N; n is number of samples. The case in which the inlet flow rate of the main stream was 50 m3/s was taken as an example. Table 3 shows the values of RMSE varying with the learning rate, number of hidden nodes and number of training samples. A small learning rate ensures the stability of training, but a too small learning rate reduces the speed of training. Therefore, the learning rate was chosen as 0.02.
Table 3

Root mean square error varies with three parameters of BPNN

NumberNumber of hidden nodesLearning rateNumber of training samplesRMSE
CODDONH3-N
0.001 15 0.031 0.016 0.028 
0.02 20 0.019 0.013 0.011 
0.1 25 0.0021 0.03 0.0068 
0.001 20 0.012 0.016 0.004 
0.02 25 0.0031 0.031 0.0097 
0.1 15 0.0023 0.025 0.012 
0.001 25 0.0085 0.028 0.0068 
0.02 15 0.0075 0.018 0.014 
0.1 20 0.0033 0.022 0.017 
NumberNumber of hidden nodesLearning rateNumber of training samplesRMSE
CODDONH3-N
0.001 15 0.031 0.016 0.028 
0.02 20 0.019 0.013 0.011 
0.1 25 0.0021 0.03 0.0068 
0.001 20 0.012 0.016 0.004 
0.02 25 0.0031 0.031 0.0097 
0.1 15 0.0023 0.025 0.012 
0.001 25 0.0085 0.028 0.0068 
0.02 15 0.0075 0.018 0.014 
0.1 20 0.0033 0.022 0.017 

Genetic algorithm

Coupled with the BPNN, the GA was used to find the optimal discharges of tributaries. This includes population initialization, fitness function, selection operator, crossover operator and mutation operator. Real number encoding was chosen for individual coding because real number coding could indirectly and naturally express the continuous parameter optimization. Furthermore, it can improve the operational accuracy and speed. The roulette wheel selection was used as the selection operator. The cross point was selected randomly for each pairing and the crossover operator was the single point crossover operator. The mutated gene was obtained by using the stochastic method. Based on previous studies (Lei et al. 2014) and multiple debugging, the values of the parameters were determined. The population size, maximum genetic algebra, crossover probability and mutation probability were 50, 200, 0.8 and 0.1, respectively.

Hydrodynamic and water quality model

The EFDC model is an efficient tool for understanding the hydrodynamics and water quality responses in surface water systems such as rivers, stream networks and lakes (Quijano et al. 2017; Saharia et al. 2019; Zhao et al. 2020). The Boussinesq approximation and hydrostatic assumption are assumed in EFDC. This EFDC consists of a hydrodynamic module, water quality module, sediment module and so on. It uses horizontal Cartesian and vertical sigma coordinates. Because the horizontal magnitude of the main stream is much greater than the vertical one, a two-dimensional EFDC model was used to simulate the hydrodynamic and water quality of the main stream. To accommodate realistic horizontal boundaries, it is convenient to formulate the control equations with curvilinear orthogonal coordinates in the x and y directions.

In a water quality model, the governing mass-balance equation for each state variable is expressed as:
(3)
where, C is the concentration of state variable; u and v are velocity components in the x and y directions, respectively; Kx and Ky are turbulent diffusivity coefficients in the x and y directions, respectively; Sc is internal and external sources and sinks per unit volume.

Equation (3) shows the dispersion and transportation of COD, DO and NH3-N. According to the variables of water quality and their relationship, the structure chart of state variables and interactions are shown in Figure 3 (Huang et al. 2018).

Figure 3

The structure chart of state variables and interactions.

Figure 3

The structure chart of state variables and interactions.

Close modal

The upstream segment of the Haihe River located in the downtown of Tianjin city was chosen to investigate the applicability and reliability of the proposed method. The flow field is between Sanchakou (Beiyun River, Ziya River and Xinkai River) and Liulin. Liulin was set up as the cross-section of water quality control. There are five main tributary rivers including Beijin River, Nanjin River, Hucang River, Yueya River and Fuxing River. Figure 4 shows the location of the upstream of Haihe River, Sanchakou, Liulin and tributary rivers. The annual average rainfall and road evaporation are 539 and 470 mm, respectively (Bai et al. 2020). In addition, concentrations of nitrogen and phosphorus were seriously high in Haihe River during the study period.

Figure 4

Location of the Haihe River and tributary rivers.

Figure 4

Location of the Haihe River and tributary rivers.

Close modal
The catchments of tributary rivers were divided and their areas were estimated according to earlier research (Xu et al. 2015). The catchment areas of Beijin River, Nanjin River, Hucang River, Yueya River and Fuxing River were about 31.8 km2, 16.73 km2, 11.29 km2, 46.76 km2 and 33.82 km2, respectively. According to the rainstorm analysis in this region (Hao & Wang 2008), fifty years of rainfall recurrence period was selected as the extreme rainfall scenario. The rainfall was estimated by the following equation:
(4)
where, i is the rainstorm intensity (mm/min); P is the rainfall recurrence period (a); is the duration time (min).

Here, the runoff coefficient was chosen to be 0.5 (Zhang 2005). Based on the surface runoff, the maximum discharge of Beijin River, Nanjin River, Hucang River, Yueya River and Fuxing River were chosen as 18 m3/s, 10 m3/s, 7.0 m3/s, 27 m3/s and 20 m3/s, respectively. Four scenarios were chosen for the inlet flow rate of the main stream (Q) at the Sanchakou boundary (Zhang 2005). They were 30 m3/s, 50 m3/s, 100 m3/s and 200 m3/s. In addition, the case that Q = 0 m3/s was also chosen, which was taken as the benchmark calculation.

The simulation cases of EFDC model were generated using an orthogonal experiment design method. The range of each tributary's discharge was divided into five levels for one inlet flow rate of the main stream. Table 4 shows the flow of each tributary river under different inlet flow rates for the main stream. For each inlet flow rate of the main stream, five factors and five levels orthogonal experiment schemes shown in Table 5 were adopted to establish the database of the inverse design method. Twenty-five simulation cases were set up for each inlet flow rate of the main stream. In addition, two more cases were added to ensure the completeness of the database. One case was zero discharge of each tributary river (0, 0, 0, 0, 0), and the other was the maximum discharge of each tributary river. When Q was 0 m3/s, 30 m3/s, 50 m3/s, 100 m3/s and 200 m3/s, the cases of the maximum discharge of each tributary river were (5, 1, 1, 0.5, 0.5), (8, 4, 4, 3.5, 3.5), (10, 7, 5, 5, 5), (14, 10, 7, 10, 10) and (18, 10, 7, 27, 20), respectively. Therefore, there were 27 simulation cases for each inlet flow rate of the main stream. Finally, the database of flow field and water quality was obtained by EFDC model.

Table 4

Discharge of each tributary river at different inlet flow rates for the main stream (unit: m3/s)

QLevelDesign variables
Beijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
1.0 0.0 0.0 0.0 0.0 
 2.0 0.3 0.3 0.1 0.1 
 3.0 0.6 0.6 0.2 0.2 
 4.0 0.8 0.8 0.3 0.3 
 5.0 1.0 1.0 0.5 0.5 
30 1.0 0.0 0.0 0.0 0.0 
 2.0 1.0 1.0 1.5 1.5 
 4.0 2.0 2.0 2.0 2.0 
 6.0 3.0 3.0 3.0 3.0 
 8.0 4.0 4.0 3.5 3.5 
50 1.0 1.0 0.0 0.0 0.0 
 3.0 2.0 2.0 2.0 2.0 
 6.0 3.0 3.0 3.0 3.0 
 8.0 5.0 4.0 4.0 4.0 
 10.0 7.0 5.0 5.0 5.0 
100 2.0 2.0 1.0 2.0 2.0 
 5.0 4.0 3.0 4.0 4.0 
 8.0 6.0 4.0 6.0 6.0 
 11.0 8.0 5.0 8.0 8.0 
 14.0 10.0 7.0 10.0 10.0 
200 1.0 2.0 1.0 2.0 1.0 
 5.0 4.0 3.0 8.0 5.0 
 10.0 6.0 4.0 14.0 10.0 
 14.0 8.0 5.0 20.0 15.0 
 18.0 10.0 7.0 27.0 20.0 
QLevelDesign variables
Beijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
1.0 0.0 0.0 0.0 0.0 
 2.0 0.3 0.3 0.1 0.1 
 3.0 0.6 0.6 0.2 0.2 
 4.0 0.8 0.8 0.3 0.3 
 5.0 1.0 1.0 0.5 0.5 
30 1.0 0.0 0.0 0.0 0.0 
 2.0 1.0 1.0 1.5 1.5 
 4.0 2.0 2.0 2.0 2.0 
 6.0 3.0 3.0 3.0 3.0 
 8.0 4.0 4.0 3.5 3.5 
50 1.0 1.0 0.0 0.0 0.0 
 3.0 2.0 2.0 2.0 2.0 
 6.0 3.0 3.0 3.0 3.0 
 8.0 5.0 4.0 4.0 4.0 
 10.0 7.0 5.0 5.0 5.0 
100 2.0 2.0 1.0 2.0 2.0 
 5.0 4.0 3.0 4.0 4.0 
 8.0 6.0 4.0 6.0 6.0 
 11.0 8.0 5.0 8.0 8.0 
 14.0 10.0 7.0 10.0 10.0 
200 1.0 2.0 1.0 2.0 1.0 
 5.0 4.0 3.0 8.0 5.0 
 10.0 6.0 4.0 14.0 10.0 
 14.0 8.0 5.0 20.0 15.0 
 18.0 10.0 7.0 27.0 20.0 
Table 5

Orthogonal table of five factors and five levels

IndexVariables
Beijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
IndexVariables
Beijin RiverNanjin RiverHucang RiverYueya RiverFuxing River
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 

The flow rate of tributary rivers can be controlled by discharge gates to the main stream (Zhang 2005). The inlet flow rate at Sanchakou input boundary was changed by the upstream condition during a rainstorm. The optimal flow rate of tributary rivers was determined by the inverse design method under different inlet flow rates at Sanchakou during a rainstorm. When the tributary rivers discharged during a rainstorm period, the concentrations of COD, DO and NH3-N at the Liulin cross-section were required to satisfy water quality requirements, which the maximum values of COD and NH3-N and the minimum value of DO are 40 mg/L, 3 mg/L and 4 mg/L, respectively.

Optimized design

After the database was obtained, the BPNN was trained and tested. When the inlet flow rate of the main stream was 0 m3/s, 30 m3/s, 50 m3/s, 100 m3/s and 200 m3/s, two testing samples were selected to evaluate the well trained BPNN, respectively.

In order to verify the reliability of the prediction, the predicted results of BPNN and simulated ones of EFDC were compared in detail and the relative errors between the above results were calculated using the following equation:
(5)
where, RE is the relative error; B and S are predicted results of BPNN and simulated results of EFDC, respectively.

The results in Table 6 show that the relative errors between above two methods are small. Therefore, the water quality of the main stream at CCMS can be predicted by well trained BPNN.

Table 6

Predictive relative errors of test samples under different main stream inlet flows (unit: %)

Q (m3/s)Sample numberWater quality index
COD (%)DO (%)NH3-N (%)
6.2 0.4 1.1 
 1.1 6.9 2.0 
30 0.98 2.7 1.7 
 3.1 4.6 2.7 
50 4.4 0.8 3.3 
 2.2 0.8 0.1 
100 1.9 0.2 2.7 
 3.6 0.03 0.04 
200 1.6 0.4 0.7 
 3.5 0.2 1.5 
Q (m3/s)Sample numberWater quality index
COD (%)DO (%)NH3-N (%)
6.2 0.4 1.1 
 1.1 6.9 2.0 
30 0.98 2.7 1.7 
 3.1 4.6 2.7 
50 4.4 0.8 3.3 
 2.2 0.8 0.1 
100 1.9 0.2 2.7 
 3.6 0.03 0.04 
200 1.6 0.4 0.7 
 3.5 0.2 1.5 

The discharges of tributary rivers were optimized by GA coupled with well trained BPNN. When the inlet flow rate of the main stream was 0 m3/s, four optimization plans were obtained. They are shown in Figure 5(a). The four optimization plans were defined as Plan-1 to Plan-4. The total discharges of five tributary rivers were almost the same in different plans. In each plan, the discharge of Beijin River accounts for 70% of total discharge. The reason is because Beijin River is closest to Sanchakou and there is a long distance between Beijin River and the second tributary. The self-purification capacity of the main stream permits more discharge from the Beijin River.

Figure 5

Optimized discharge flow rate of tributary rivers ((a), (b), (c), (d) and (e) are for Q = 0 m3/s, Q = 30 m3/s, Q = 50 m3/s, Q = 100 m3/s and Q = 200 m3/s, respectively).

Figure 5

Optimized discharge flow rate of tributary rivers ((a), (b), (c), (d) and (e) are for Q = 0 m3/s, Q = 30 m3/s, Q = 50 m3/s, Q = 100 m3/s and Q = 200 m3/s, respectively).

Close modal

When the inlet flow rate of the main stream was 30 m3/s, 50 m3/s, 100 m3/s or 200 m3/s, four optimization plans were also obtained, respectively. These are shown in Figure 5(b)–5(e). Similarly, the discharge of each tributary river was different for each inlet flow rate, but the total discharges of five tributary rivers were almost the same. For example, when the inlet flow rate of the main stream was 30 m3/s, the total discharge of five tributary rivers was between 12.1 m3/s and 12.6 m3/s. The total discharge 12.6 m3/s of Plan-1 was the maximum.

When the inlet flow rate of the main stream was 50 m3/s, the total discharge of five tributary rivers was between 18 m3/s and 18.7 m3/s. The total discharge 18.7 m3/s of Plan-2 was the maximum. When the inlet flow rate of the main stream was 100 m3/s, the total discharge of five tributary rivers was between 31.1 m3/s and 33.5 m3/s. The total discharge 33.5 m3/s of Plan-4 was the maximum. When the inlet flow rate of the main stream was 200 m3/s, the total discharge of five tributary rivers was between 59.8 m3/s and 61.8 m3/s. The total discharge 61.8 m3/s of Plan-1 was the maximum.

From the above results, it was found that the total discharge of five tributary rivers increases when the inlet flow rate of the main stream increases because the dilution capacity of the main stream is enhanced. However, the self-purification capacity of the main stream is becoming weak due to the decrease of water retention time of the main stream. Therefore, the dilution of input water plays a dominant role in the reduction of pollutant concentration of the main stream at this time. When the inlet flow rate of the main stream increases, the pollutants from tributary rivers are discharged downstream out of the controlled upstream segment of Haihe River.

Verification of water quality at the control cross-section

In order to check the performance of the proposed inverse design method, the optimized plans were validated by comparing with the water quality requirements at CCMS. The comparison is shown in Table 7. For the index of COD, DO and NH3-N, the negative difference indicates that it not only meets the water quality requirement, but also has abundant environmental capacity for the corresponding index. Conversely, the positive difference implies that the optimized results do not satisfy the water quality requirements for the corresponding index.

Table 7

Difference between optimized results and required datum at control section (unit: mg/L)

Q (m3/s)Water quality indexesRequired water quality (mg/L)Plan-1Plan-2Plan-3Plan-4
COD 40 − 0.7 − 0.1 − 0.03 − 0.3 
 DO + 0.02 − 0.01 − 0.02 − 0.0005 
 NH3-N − 0.5 − 0.7 − 0.5 − 0.7 
30 COD 40 − 0.04 + 0.01 − 0.07 − 0.1 
 DO + 0.07 + 0.03 + 0.02 + 0.08 
 NH3-N − 0.3 − 0.5 − 0.5 − 0.3 
50 COD 40 − 0.1 − 0.09 − 0.2 − 0.1 
 DO + 0.1 + 0.1 + 0.1 + 0.1 
 NH3-N − 0.4 − 0.4 − 0.4 − 0.3 
100 COD 40 − 0.5 − 0.05 − 0.05 − 0.03 
 DO + 0.3 + 0.3 + 0.3 + 0.3 
 NH3-N − 0.4 − 0.5 − 0.4 − 0.3 
200 COD 40 + 0.003 + 0.06 − 0.2 − 0.08 
 DO + 0.4 + 0.5 + 0.4 + 0.4 
 NH3-N − 0.4 − 0.4 − 0.4 − 0.5 
Q (m3/s)Water quality indexesRequired water quality (mg/L)Plan-1Plan-2Plan-3Plan-4
COD 40 − 0.7 − 0.1 − 0.03 − 0.3 
 DO + 0.02 − 0.01 − 0.02 − 0.0005 
 NH3-N − 0.5 − 0.7 − 0.5 − 0.7 
30 COD 40 − 0.04 + 0.01 − 0.07 − 0.1 
 DO + 0.07 + 0.03 + 0.02 + 0.08 
 NH3-N − 0.3 − 0.5 − 0.5 − 0.3 
50 COD 40 − 0.1 − 0.09 − 0.2 − 0.1 
 DO + 0.1 + 0.1 + 0.1 + 0.1 
 NH3-N − 0.4 − 0.4 − 0.4 − 0.3 
100 COD 40 − 0.5 − 0.05 − 0.05 − 0.03 
 DO + 0.3 + 0.3 + 0.3 + 0.3 
 NH3-N − 0.4 − 0.5 − 0.4 − 0.3 
200 COD 40 + 0.003 + 0.06 − 0.2 − 0.08 
 DO + 0.4 + 0.5 + 0.4 + 0.4 
 NH3-N − 0.4 − 0.4 − 0.4 − 0.5 

Note: Positive value represents that optimized results are more than required datum.

Negative value represents that optimized results are less than required datum.

From Table 7, it was found that the optimized results of the inverse design satisfied the water quality requirements at CCMS well. When the inlet flow rate of mainstream was 0 m3/s, the concentrations of COD and NH3-N at CCMS were better than those of water quality requirements. For Plan-1, the concentration of DO exceeded the water quality requirement. For Plan-2 to Plan-4, the concentrations of DO were less than the water quality requirement. However, the relative error between the optimized result and the required DO value at CCMS was very small and it was only 0.2%, 0.4% and 0.01%, respectively. This means that this method can reliably obtain the optimal flow rate of tributary discharged into the main stream. It also showed that DO is the limiting factor for this discharge case.

When the inlet flow rate of the main stream was 30 m3/s, 50 m3/s, 100 m3/s or 200 m3/s, the optimized concentration of DO at CCMS was more than that of water quality requirement. The concentration of NH3-N was less than the required value for the water quality requirement. When the inlet flow rate of the main stream was 30 m3/s, the concentration of COD of Plan-2 slightly exceeded that of the required value for the water quality requirement. Furthermore, when the inlet flow rate of the main stream was 200 m3/s, the optimized concentrations of COD of Plan-1 and Plan-2 were more than those of the required value of water quality requirement. However, the relative errors between the result of the inverse design method and the required COD value at CCMS was very small and it was only 0.03%, 0.008% and 0.1%, respectively. This means the inverse design method can give a reliable optimal flow rate for tributary rivers discharged into the main stream.

From the above optimized results, the absolute difference of NH3-N was the largest and was more than 0.3 mg/L in all plans. This means that NH3-N was not the limiting factor for all plans in this approach.

The optimized concentration of DO was more than that of the water quality requirement for most plans. With the increase of the inlet flow rate of the main stream, the difference for DO between the optimized results and the required value increases gradually in four plans. This is because the pollutant degradation ability and DO concentration of the main stream increase with increase in the inlet flow rate of the main stream. In addition, the positive relative errors of COD between the calculated results and the required water quality values were small. This illustrates that the discharges of tributary rivers to the main stream were mainly limited by the concentration of COD for many plans in this study.

An inverse design method was proposed by integrating the methods of BPNN, GA and EFDC to determine the optimal discharge flow rate of tributary rivers to ensure the required water quality conditions at CCMS. This method was applied to design maximum discharge of tributary rivers in a rainstorm period. The reliability of the method was verified by an example studied for the water quality control problem in Haihe River (main stream). The optimal discharges of tributary rivers were obtained using the inverse design method and verified by EFDC simulation. The main conclusions are listed in the following paragraph.

While the inlet flow rate of the main stream increases, the total discharge of tributary rivers into the main stream increases in a rainstorm period. The results revealed that the optimization plans ensured the water quality requirements at CCMS. For the present example, the concentration of COD was the limiting factor. For the rainfall of fifty years recurrence period, when the inlet flow rate of the main stream was 0 m3/s, 30 m3/s, 50 m3/s, 100 m3/s and 200 m3/s, the totally optimal discharge of five tributary rivers was 5.7 m3/s, 12.5 m3/s, 18.6 m3/s, 33.4 m3/s and 61.8 m3/s, respectively. The details for discharge rate of each tributary river have been described earlier in this text. The discharges of tributary rivers should be controlled by sluice gates according to the optimized results. The present method was proved to be highly efficient for determining the optimal discharges of tributary rivers into the main stream in a rainstorm period. In addition, the required water quality condition at CCMS was satisfied and the limiting factors of each plan were determined using the proposed inverse design method. The results showed that the present inverse design method has important application value for main stream water quality control and management.

This work was supported by the key project in the control and management of national polluted water bodies (2017ZX07106001).

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

Bai
H. B.
Liu
S. M.
Yu
S.
Xue
B. L.
2020
Spatial-temporal evolution characteristics of water quality in Haihe River Basin
.
Journal of Beijing Normal University (Natural Science)
56
(
2
),
290
297
(in Chinese)
.
Hao
J.
Wang
N.
2008
Analysis on spatial and temporal distribution features of rainstorm and estimation of design rainstorm in urban district of Tianjin
.
Water Resources and Hydropower Engineering
39
(
7
),
75
77
(in Chinese)
.
Lei
Y. J.
Zhang
S. W.
Li
X. W.
Lei
Y.
Zhou
C. M.
Wang
X. F.
2014
Genetic Algorithm Toolbox and Application
, 2nd edn.
Xidian University Press
,
China
, pp.
14
16
.
Madadi
M. R.
Akbarifard
S.
Qaderi
K.
2020b
Improved Moth-Swarm Algorithm to predict transient storage model parameters in natural streams
.
Environmental Pollution
262
,
114258
.
McCabe
K. M.
Smith
E. M.
Lang
S. Q.
Osburn
C. L.
Benitez-Nelson
C. R.
2021
Particulate and dissolved organic matter in stormwater runoff influences oxygen demand in urbanized headwater catchments
.
Environmental Science & Technology
55
,
952
961
.
Saharia
A. M.
Zhu
Z. D.
Aich
N.
Baalousha
M.
Atkinson
J. F.
2019
Modeling the transport of titanium dioxide nanomaterials from combined sewer overflows in an urban river
.
Science of the Total Environment
696
,
133904
.
Salari
M.
Shahid
E. S.
Afzali
S. H.
Ehteshami
M.
Conti
G. O.
Derakhshan
Z.
Sheibani
S. N.
2018
Quality assessment and artificial neural networks modeling for characterization of chemical and physical parameters of potable water
.
Food and Chemical Toxicology
118
,
212
219
.
Wijesiri
B.
Egodawatta
P.
McGree
J.
Goonetilleke
A.
2015
Influence of pollutant build-up on variability in wash-off from urban road surfaces
.
Science of the Total Environment
527–528
,
344
350
.
Xu
J.
Feng
P.
Sun
D. M.
Zhang
K.
2015
Study on drainage problems of mainstream of Haihe River underwater function zoning requirements in Tianjin
.
Water Resources and Hydropower Engineering
46
(
4
),
16
21
(in Chinese)
.
Zhang
X. Y.
2005
Research on the Character of Rainstorm and the Ability of Flood Routing About Main Haihe River in Tianjin
.
Master Thesis
,
Tianjin University
,
Tianjin
,
China
.
Zhang
W. Q.
Jin
X.
Meng
X.
Shan
B. Q.
2018b
Contribution of particulate matter in storm runoff to organic phosphorus loads in urban rivers
.
Environmental Science and Pollution Research
25
,
23342
23348
.
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/).