Abstract

In order to solve the problems of water eutrophication, algae anoxic decay, and death by biological poisoning, which are caused by the excessive emission of total nitrogen in wastewater treatment process, this paper proposes a method of total nitrogen peak suppression which is based on neural network decision optimization. First, the SSORBF neural network is established according to the wastewater treatment process, and total nitrogen, inflow flow, current total nitrogen, dissolved oxygen concentration, and nitrate nitrogen concentration are selected to predict the total nitrogen concentration. Second, the density- and memory-based NSGA2 multiobjective optimization method is used to set the optimal solution to meet the requirement of energy consumption. If the prediction of total nitrogen exceeded the set value, the optimal control strategy is adopted to control the peak value of total nitrogen in advance, and it cannot exceed the national maximum allowable emission value. If the prediction of total nitrogen is lower than the set value, it continues to track the parameter set value. Finally, compared with other methods, the proposed method can effectively suppress the peak value of total nitrogen under 18 mg/L and reduce the energy consumption in wastewater treatment by 7.6%. It can provide decisions and advice for wastewater treatment plants.

1. Introduction

Total nitrogen concentration is an important indicator to measure the quality of effluent water [13]. Excessive discharge of total nitrogen can cause serious consequences, such as reduced dissolved oxygen concentration in water bodies, eutrophication of water bodies, and death of organisms [46]. For this issue, China stipulates the daily maximum allowable emission concentration for basic control projects of water pollutant emissions (Table 1, 2002). The total nitrogen level I Class A emission standard is 15 mg/L and the Class B emission standard is 20 mg/L. Strict emission standards highlight the importance China attaches to the total nitrogen emissions. Currently, the common methods to measure total nitrogen concentration in China are traditional biological denitrification processes, new biological denitrification processes, and physical and chemical processes [79]. Among them, traditional biological nitrogen removal processes such as A2/O and SBR have classic process structures and high ammonia nitrogen removal rates, but they have complex operating procedures, long cycles, and high treatment costs. New biological nitrogen removal processes such as short-range biological nitrogen removal technology and synchronous digestion denitrification technology have good removal effects when the concentration of ammonia nitrogen wastewater is low, but they are susceptible to the impact of dissolved oxygen, pH, and other conditions. Physical and chemical methods (such as sedimentation, stripping, and adsorption) require expensive equipment and reagents, and most wastewater treatment plants cannot afford long-term treatment costs [10, 11]. The above processes can effectively achieve the effective removal of ammonia nitrogen in the wastewater treatment process, but how to achieve optimal control, energy conservation, consumption reduction, and peak suppression on the premise that the effluent from the wastewater treatment process meets the standard is still a difficult problem in the current research.

Researchers have done a lot of studies on the control of key parameters in wastewater treatment processes. Stare et al. [12] proposed a simplified nonlinear model and a linear black box model. Compared to PI controllers, the model’s predictive control strategy has a good ammonia nitrogen removal efficiency in the case of large errors. Vega et al. [13] proposed a hierarchical control method based on nonlinear model prediction, using a strategy of combining real-time optimization and model predictive control to achieve predictive control of dissolved oxygen and nitrate nitrogen, improving the control effect of key parameters and reducing wastewater treatment operating costs. Mulas et al. [14] proposed a multivariable controller based on a dynamic matrix control strategy to control total nitrogen concentration with the goal of minimizing economic and removal efficiency. Experiments have shown that this method can simultaneously reduce energy consumption and total nitrogen concentration. Han et al. [15] proposed a data driven multiobjective predictive control method for wastewater treatment processes using data related to wastewater treatment processes. The results show that this method can achieve good control over dissolved oxygen and nitrate nitrogen in a relatively short time. Santin et al. [16] proposed an improved fuzzy decision control method for wastewater treatment, using a fuzzy controller to control the nitrification and denitrification processes in the wastewater treatment process, achieving the goal of meeting the water quality standards and reducing operating costs while avoiding excessive emissions of ammonia nitrogen and total nitrogen. Although this method effectively inhibits the peak value of ammonia nitrogen in the effluent, there is a problem of high energy consumption. Li et al. [17] proposed an optimization method for wastewater treatment decision-making based on the NSGA2 optimization algorithm. A fixed structure neural network was used to establish a prediction model for ammonia nitrogen and total nitrogen in the effluent, and the optimization algorithm was used to optimize the set values to reduce the total nitrogen and ammonia nitrogen concentration in effluent on the premise that the water quality and energy consumption meet the standards. Although this method can effectively reduce the concentration of pollutants, there is a large computational complexity in the neural network. Inaccurate prediction results in changes in water inflow parameters. In summary, for wastewater treatment systems with large time-varying, strongly coupled, and nonlinear characteristics, how to reduce energy consumption and improve removal efficiency while effectively suppressing the peak value of total nitrogen in the effluent water is worth exploring.

In order to solve the problems, this paper proposes a total nitrogen peak suppression method based on neural network decision optimization control. First, this method uses the spiking self-organizing RBF neural network (SSORBF neural network) to establish a prediction model for total nitrogen in wastewater treatment, then uses a density- and memory-based NSGA2 multiobjective algorithm (NSGA2-DM) to optimize energy consumption and water quality, select the appropriate solution as the set value for dissolved oxygen and nitrate nitrogen, and finally adopt different optimal suppression control strategies based on whether the predicted total nitrogen exceeds the standard. This method can effectively improve the prediction accuracy and adaptive ability of the network, reduce the peak value of total nitrogen in the effluent, and meet the requirements of energy conservation and consumption reduction, as well as effluent compliance.

2. Prediction Model

The neural network has good nonlinear fitting ability and generalization strength. The RBF neural network prediction model is shown in Figure 1. The network mainly consists of an input layer, a hidden layer, and an output layer.(1)The output of the neurons in the input layer is .(2)The hidden layer output is , c is the center vector, and σ is the width.Where is the center vector of the jth neuron in the RBF layer; is a random value, and is the width of the jth node. The maximum value of j is m, m is the number of neurons in the hidden layer, and is the random value within the range.(3)The output layer is , is the output weight, and is the output of the output layer at time t.

In order to select the appropriate number of neurons, this paper adopts the SSORBF neural network with adaptive structural adjustment [18] and uses the biological neuron membrane potential excitation mechanism to establish a self-organized dynamic adjustment mechanism. When the peak intensity of neurons is greater than the excitation threshold, action potentials are activated and new neuronal processing tasks are added; if the spike intensity of a neuron is less than the excitation threshold, it is considered that the neuron is in an inactive state and the hidden layer neuron needs to be deleted. The adjusted network structure is used as a model for predicting the total nitrogen output of wastewater treatment.

In this study, variance threshold [19], analysis of variance (ANOVA) [20], and mutual information (MI) [21] were used to select the feature of the data. The concentration of total nitrogen in wastewater treatment is influenced by many factors, such as pH, temperature, BOD, COD, ORP, dissolved oxygen concentration, total nitrogen in water, inflow flow, current total nitrogen in water, nitrate nitrogen concentration, and so on. Some parameters have a significant impact on the total nitrogen in the effluent, while others have a smaller impact. Based on the mechanism analysis and literature research of the wastewater treatment process, five variables with the greatest impact are selected as the input of the network: total nitrogen in water, inflow flow, current total nitrogen in water, dissolved oxygen concentration, and nitrate nitrogen concentration. The network output is the predicted value of total nitrogen concentration in water. Select the data sampled from the BSM1 experimental platform as the model training test data. The set value of SO,5 concentration is set at 1.4–2.4 mg/l, and the set value of SNO,2 concentration is set at 0.5–1.5 mg/l. The data sampling period is 14 days and the sampling time is 15 minutes. 181390 sets of data are obtained. Among them, 163251 sets of data are used as training samples, and 18139 sets of data are used as test samples [17]. Using trial and error methods, the network structure is initially selected as 5-50-1, and the sample sampling normalization method is used. The learning algorithm uses a gradient algorithm with a learning rate of 0.1, and the maximum number of learning steps is 4000. RMSE of different prediction models is shown in Table 2. It can be seen that the proposed method has better training RMSE and testing RMSE under the same number of neurons.

3. Optimization of Set Points for Wastewater Treatment Processes

From the above analysis, it can be seen that SO,5, and SNO,2 have a direct impact on the total nitrogen concentration of the effluent, and optimizing their set points can effectively reduce energy consumption. Therefore, this article uses the establishment of energy consumption and water quality models as optimization objective functions and then uses the NSGA2-DM algorithm to optimize multiple objectives, selecting appropriate solutions as the set values for SO,5, and SNO,2.

According to the research background of the wastewater treatment process, energy consumption and water quality are used as the objective functions of the optimization algorithm. However, due to the complexity of wastewater treatment mechanism and many influencing factors, this paper uses the current conventional feed-forward neural network to establish energy consumption and water quality models. The input variables for both the energy consumption model and the water quality model are the concentration of suspended solids in the effluent, SNH,e, SO,5, and SNO,2 [24]. Data collection does not consider time delay, and data are collected every 15 minutes. The SNO,2 concentration setting values and the SO,5 concentration setting values are selected within a range of values and experiments are conducted on the BSM1 platform.

3.1. Optimization Problem Model

In order to establish an effective optimization model and simplify the description of the problem, F1 and F2 are selected as the energy consumption and water quality objective functions, and f1 and f2 are selected as the energy consumption and water quality models, respectively. are the dissolved oxygen concentration in the fifth zone and the nitrate nitrogen concentration in the second zone, respectively.where and are the lower and upper bounds of the ith decision variable, respectively; is the penalty term for exceeding the limit; CNtot is the predicted total nitrogen exceeding the limit in the effluent; represents the SNtot,e prediction model established in Section 2 of the article; and 18 is the upper limit value of SNtot,e by the empirical method.

3.2. Local Search

Calculate its sparsity by assuming the target vector of the ith solution is . After normalization, the sparsity calculation formula for the ith solution is as follows:where is the number of target vectors in the objective function space whose Euclidean distance from the target vector is less than r, and the value range of r is . In this paper, the value is 0.1. The sparse solution selects the nondominant solution with the smallest current sparsity, N = 100, and the number of decision variables, n = 2.

Two population variation strategies are used here. First, use the limit optimization method to conduct a local search, resulting in a number of local solutions of n, and the mutation formula is as follows:where is a decision variable; h is a random number between 0 and 1; and q is a positive real number, called a shape parameter. In this paper, q is set to 1.1; is the maximum value that can be changed for the current decision variable.

Second, in order to avoid falling into a local optimum, a random migration strategy is used for mutation operations, resulting in a local solution number of 0.2N.where is a random number between 0 and 1.2. The maximum changeable value of the decision variable and the mutated solution set are n + 0.2N local solutions generated by the above two mutation strategies for the mutated decision variable.

The NSGA2-DM algorithm is based on the original genetic algorithm, and it establishes a memory bank to store the central solution and environmental variables. When the input data changes, an initial population is generated based on the memory to quickly find the optimal solution, reducing the amount of computation and improving the search speed.

3.3. Multiobjective Optimization and Optimal Solution Selection

Using the NSGA2-DM algorithm to obtain multiple nondominated solutions can effectively obtain a solution set that meets the requirements of energy consumption and water quality. The specific process can be summarized as follows: First, initialize the population and calculate the fitness and crowding distance of all solutions in the population. Second, the optimal N solutions are obtained through cross-mutation to form the next-generation population. Finally, the optimal solution is obtained through iteration. The obtained multiple nondominant solutions are brought into the SSORBF prediction model. If the effluent index meets the standard, select the solution with the lowest energy consumption. If the effluent index does not meet the standard, a peak suppression control strategy is adopted, and the solution with the highest water quality is selected as the set value.

4. Peak Suppression Control of Total Nitrogen Concentration in Effluent

The wastewater treatment process adopts the denitrification process using organic compounds in the wastewater as the carbon source for the denitrification process, thereby eliminating the need for additional carbon sources such as methanol and acetic acid. The peak inhibition strategy for total nitrogen in effluent is shown in Figure 2. The biochemical reaction tank in the figure is the secondary treatment stage in the wastewater treatment process, and tracking control mainly controls the oxygen conversion coefficient (KLa5) and internal return flow (Qa) in the fifth zone. Therefore, it can be seen that when the predicted values of SNtot,e do not exceed the standard, fuzzy control rules are used to control KLa5 and Qa through the error and error variation between the current concentration and the set value, respectively, to achieve tracking control of SNtot,e. This article focuses on peak suppression control methods and will not do much in-depth research here.

When SNtot,e is predicted to exceed the standard, fuzzy control is performed on the first and second zone external carbon sources (qEC1) and (qEC2) based on the predicted SNtot values. Increasing carbon sources can promote denitrification and remove nitrogen. In this paper, the value range of SNtot suppression control is 17 to 19.7 mg/L, and the value range of qEC is 4 to 6 m3/d. Therefore, the fuzzy rules are as follows:If (SNtot is 19.0–19.7), then (qEC1 is 5, qEC2 is 2)If (SNtot is 18.0–18.9), then (qEC1 is 4, qEC2 is 1)If (SNtot is 17.0–17.9), then (qEC1 is 4, qEC2 is 0)

Switch back to fuzzy tracking control when the predicted total nitrogen in the effluent is below 17 mg/L and the total nitrogen in the fifth zone is below 13.5 mg/L. The parameter value of 17 mg/L is obtained based on empirical methods.

5. Results and Discussion

This experiment uses BSM1 sewage treatment process parameters and verifies the effectiveness of the proposed total nitrogen suppression method through experimental analysis and simulation. The evaluation indicators used include effluent quality (EQ), total cost (OCI) [25], and percentage of water quality exceeding the standard (P). The specific analysis is as follows.

Figure 3 shows the change curve of total nitrogen concentration in the effluent without the peak suppression method, and Figure 4 shows the change curve of total nitrogen concentration in the effluent with the peak suppression method. From the analysis in Figure 3, it can be seen that the effluent SNtot,e predicted by the SSORBF neural network exceeds the upper limit value of conventional total nitrogen control by 20 mg/L at 15 h, 20 h, and 65 h and cannot meet the emission standard. Therefore, when the predicted SNtot,e exceeds 18 mg/L, a suppression control method is used to add carbon sources in advance. The simulation effect is shown in Figure 4, and the ammonia nitrogen concentration in the effluent does not exceed 20 mg/L, achieving the goal of eliminating the peak value. Figure 5 shows the curve diagram of the change between the set value and the actual value of dissolved oxygen concentration after adding the peak suppression method, and Figure 6 shows the curve diagram of the change between the set value and the actual value of nitrate nitrogen concentration after adding the peak suppression method. The red curve in the figure represents the actual value, and the blue curve represents the set value. As can be seen from Figure 5, when the predicted total nitrogen exceeds the set value, peak suppression is the main goal, so the actual value of dissolved oxygen concentration differs greatly from the set value. When the total nitrogen does not exceed the set value (such as 125 h–150 h), tracking the set value is the main goal. Figure 6 reflects the change curve of nitrate nitrogen concentration, which is basically the same as that described in Figure 5 and will not be described in detail. From Figures 7 and 8, it shows the control of KLa5 and Qa by decision optimization control when SNtot,e predictions do not exceed the standard.

Table 3 shows the comparison and comparison results of the proposed algorithm with Jeppsson et al. [26], Nopens et al. [27], Flores Alsina et al. [28], and Santin et al. [16]. From the table, it can be seen that the percentage of total nitrogen in effluent exceeding the standard is 0%, and compared to other control algorithms, energy consumption is significantly reduced and water quality is improved. Experimental simulation results verify the effectiveness of peak suppression with this method.

6. Conclusion

In order to solve the problem that the peak value of total nitrogen in the wastewater treatment process exceeds the standard, this paper proposes a decision optimization method for total nitrogen in wastewater treatment based on the SSORBF neural network and NSGA2-DM optimization algorithm, which can effectively inhibit the concentration of total nitrogen in wastewater while reducing energy consumption. The specific conclusions are as follows:(1)An optimization algorithm is used to analyze the possible peaks, and optimal decisions are made to adjust the amount of carbon sources added on the premise that the effluent meets the standard. Through experimental analysis and comparison with other methods, this method achieves better total nitrogen control effect, lower energy consumption, and better effluent quality in sewage treatment, meeting the national discharge standards for sewage treatment.(2)When the predicted values of SNtot,e do not exceed the standard, fuzzy control rules are used to control KLa5 and Qa through the error and error variation between the current concentration and the set value, respectively. When the predicted values of SNtot,e exceed the standard, fuzzy control is performed on the first and second zone external carbon sources. Increasing carbon sources can promote denitrification and remove nitrogen.

From the long-term perspective of industry development, there are still many shortcomings in wastewater treatment data analysis methods; for example, network prediction and learning algorithms can be further improved, tracking control effects can be improved when total nitrogen does not exceed the standard, and the selection of nondominant solutions and learning algorithms during optimal control still need to be improved.

Data Availability

The data that support the findings of this study are available upon request from the corresponding author.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the Project of the Science and Technology of Henan Province (232102210049). We thank the Anyang Institute of Technology, Henan, China, for providing an environment conducive to the research.