A short-range denitrifying desulfurization wastewater treatment method and system
Through real-time monitoring and dynamic adjustment of the sliding mode controller parameters, the problem of unstable control in the treatment of short-range denitrification desulfurization wastewater is solved, and efficient and stable wastewater treatment effect is achieved.
Patent Information
- Application Number
- CN202510661318.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-05-22
AI Technical Summary
In the existing short-range denitrification and desulfurization wastewater treatment methods, the control strategy is simple, and it is impossible to effectively predict the impact of disturbances and the sliding mode control is prone to vibration, resulting in unstable operation and difficulty in maintaining the ideal short-range denitrification and efficient desulfurization effect for a long time.
By collecting incoming water quality and process parameters in real time, predicting key biochemical index trajectories, dynamically adjusting the main sliding mode surface parameters and weight coefficients of the sliding mode controller, and generating control instructions using different approach control methods to suppress vibration and improve the robustness and adaptability of the system.
It realizes predictive response to changes in water inlet load and internal state fluctuations, enhances the adaptability and robustness of the control system, ensures the rapidity and accuracy of control, and optimizes the overall processing efficiency.
Smart Images

Figure CN120178692B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of wastewater treatment, and particularly relates to a method and system for treating wastewater by shortcut denitrification and desulfurization. Background Art
[0002] The rapid development of industrialization and urbanization has led to the discharge of a large amount of nitrogen- and sulfur-containing wastewater, causing increasingly severe pollution to the water environment, such as water eutrophication, black and odorous phenomena, and threats to the aquatic ecosystem and human health. Traditional biological nitrogen removal processes, such as complete nitrification-denitrification, although widely applied, have disadvantages such as high energy consumption, large carbon source demand, high sludge production, and long reaction cycles. Shortcut nitrification-denitrification can significantly reduce the aeration energy consumption by about 25%, reduce the organic carbon source demand by about 40%, and reduce the sludge production by controlling the oxidation of ammonia nitrogen at the nitrite nitrogen stage and then carrying out denitrification. However, the stable operation of shortcut nitrification has strict requirements for operating conditions, such as dissolved oxygen, pH, temperature, free ammonia / nitrous acid concentration. If not controlled properly, it is prone to collapse or excessive production of by-products. To cope with these complexities and uncertainties, traditional control methods such as proportional-integral-derivative (PID) control or simple open-loop / closed-loop logic control are actually difficult to achieve good control effects due to their linear characteristics and over-simplification of the system model, especially when dealing with biological wastewater treatment systems with strong nonlinearity, large time delay, and multi-variable coupling characteristics. Sliding mode control (SMC) has advantages such as strong robustness to system parameter uncertainties and external disturbances, and fast response, and has been widely studied and applied in the field of nonlinear system control. However, sliding mode control cannot guarantee in the reaching phase, the control output is prone to chattering phenomenon, and it is difficult for fixed sliding mode surface parameters to adapt to the dynamic changes of the system working conditions, especially in systems such as shortcut denitrification and desulfurization that require high precision of operating conditions and have complex internal biochemical reaction paths. How to dynamically adjust the control strategy and suppress chattering is the key to realizing the efficient and stable operation of wastewater treatment by shortcut denitrification and desulfurization. Summary of the Invention
[0003] Aiming at the problems in the existing method for treating wastewater by shortcut denitrification and desulfurization, such as simple control strategy, inability to effectively predict the influence of disturbances, and the inherent chattering of sliding mode control, resulting in unstable operation and difficulty in maintaining ideal shortcut denitrification and high-efficiency desulfurization effects for a long time. This application provides a method for treating wastewater by shortcut denitrification and desulfurization, including:
[0004] Collect the influent water quality indexes of the wastewater in real time, and synchronously obtain the process parameters during the wastewater treatment process; predict the trajectory of the key biochemical indexes based on the influent water quality indexes and process parameters, determine the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters, and if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes, adjust the main sliding mode surface parameters and the weight coefficients.
[0005] Use the weight coefficients to perform weighted combination on the process parameters to generate state variables, and calculate the sliding mode function value of the current state according to the state variables and the main sliding mode surface parameters; if the absolute value of the sliding mode function value is greater than the switching threshold, generate a control command using the first approaching control method, otherwise generate a control command using the second approaching control method.
[0006] Send the control command to the execution unit in the wastewater treatment system.
[0007] Optionally, the predicting the trajectory of the key biochemical indexes based on the influent water quality indexes and process parameters includes:
[0008] Obtain the influent water quality index data and process parameter data within a preset time length before the current moment, obtain an index sequence for each influent water quality index, and obtain a parameter sequence for each process parameter.
[0009] Input the index sequence and the parameter sequence into a pre-trained recurrent neural network to obtain the trajectory of the key biochemical indexes; the key biochemical indexes include the effluent nitrite nitrogen accumulation rate and the effluent sulfide concentration.
[0010] Optionally, the determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters includes:
[0011] Obtain the preset short-cut denitrification and desulfurization target parameters, and the target parameters include the target effluent nitrite nitrogen concentration range, the lower threshold of the target nitrite nitrogen accumulation rate, and the upper threshold of the target effluent sulfide concentration.
[0012] Based on the current working condition level reflected by the influent water quality indexes and the preset target parameters, determine the main sliding mode surface parameters through a preset multi-objective optimization solving program, and the main sliding mode surface parameters include the coefficients of each state variable error term in the sliding mode switching function; and synchronously determine the weight coefficients of the process parameters, and the weight coefficients are used to perform weighted combination on the process parameters to form the state variables of the sliding mode control.
[0013] Optionally, the adjusting the main sliding mode surface parameters and the weight coefficients if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes includes:
[0014] Obtain the effective operating region of key biochemical indicators, compare the predicted trajectory of key biochemical indicators with the effective operating region, and if the time when the predicted trajectory exceeds the boundary of the effective operating region within a preset determination duration in the future exceeds a preset ratio, it is considered a deviation.
[0015] When a deviation occurs, adjust the weight coefficients of the main sliding mode surface parameters and process parameters currently in use according to the direction and degree of the deviation through preset adjustment rules.
[0016] Optionally, calculating the sliding mode function value of the current state based on the state variable and the main sliding mode surface parameters includes:
[0017] Substitute the state variable and the main sliding mode surface parameters into to calculate the sliding mode function value of the current state , where is the main sliding mode surface parameter, is the state variable error term.
[0018] Optionally, generating a control instruction by adopting a first reaching control method includes:
[0019] The change rate of the sliding mode function The calculation formula is: , where s is the sliding mode function value, , are preset control parameters, is the power exponent parameter and , is a positive constant.
[0020] Based on the model of the actuator to be controlled and the change rate of the sliding mode function obtain the control instruction.
[0021] Optionally, generating a control instruction by adopting a second reaching control method includes:
[0022] The desired change rate of the sliding mode function The calculation formula is: , where s is the sliding mode function value, is the saturation function, C is the value corresponding to the working condition level, , are control gain parameters adjusted with C, is the boundary layer thickness parameter adjusted with C;
[0023] Based on the model of the actuator to be controlled and the change rate of the sliding mode function obtain the control instruction.
[0024] The present invention also provides a short-range denitrifying desulfurization wastewater treatment system, comprising:
[0025] A sliding mode determination unit, configured to collect the influent water quality indexes of the wastewater in real time, and synchronously obtain the process parameters during the wastewater treatment process; predict the trajectory of key biochemical indexes based on the influent water quality indexes and process parameters, determine the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-range denitrifying desulfurization target parameters, and if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes, adjust the main sliding mode surface parameters and the weight coefficients;
[0026] A control instruction generation unit, configured to generate a state variable by weighted combination of the process parameters using the weight coefficients, and calculate the sliding mode function value of the current state according to the state variable and the main sliding mode surface parameters; if the absolute value of the sliding mode function value is greater than the switching threshold, generate a control instruction by using a first approaching control method, otherwise generate a control instruction by using a second approaching control method;
[0027] A control unit, configured to send the control instruction to an execution unit in the wastewater treatment system.
[0028] Optionally, the predicting the trajectory of key biochemical indexes based on the influent water quality indexes and process parameters includes:
[0029] Obtaining the influent water quality index data and process parameter data within a preset time length before the current moment, obtaining an index sequence for each influent water quality index, and obtaining a parameter sequence for each process parameter;
[0030] Inputting the index sequence and the parameter sequence into a pre-trained recurrent neural network to obtain the trajectory of key biochemical indexes; the key biochemical indexes include the effluent nitrite nitrogen accumulation rate and the effluent sulfide concentration.
[0031] Optionally, the determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-range denitrifying desulfurization target parameters includes:
[0032] Obtaining the preset short-range denitrifying desulfurization target parameters, where the target parameters include the target effluent nitrite nitrogen concentration range, the lower threshold of the target nitrite nitrogen accumulation rate, and the upper threshold of the target effluent sulfide concentration;
[0033] Based on the current working condition level reflected by the influent water quality indexes and the preset target parameters, determine the main sliding mode surface parameters through a preset multi-objective optimization solving program, where the main sliding mode surface parameters include the coefficients of each state variable error term in the sliding mode switching function; and synchronously determine the weight coefficients of the process parameters, and the weight coefficients are used to weightedly compose the state variables of the sliding mode control.
[0034] Optionally, if the trajectory deviates from the effective operating region corresponding to the key biochemical index, adjusting the main sliding mode surface parameters and the weight coefficients includes:
[0035] Obtain the effective operating region of the key biochemical index, compare the predicted trajectory of the key biochemical index with the effective operating region. If the time when the predicted trajectory exceeds the boundary of the effective operating region within a preset determination duration in the future exceeds a preset ratio, it is considered a deviation.
[0036] When a deviation occurs, according to the direction and degree of the deviation, adjust the currently used main sliding mode surface parameters and the weight coefficients of the process parameters through a preset adjustment rule.
[0037] Optionally, calculating the sliding mode function value of the current state based on the state variable and the main sliding mode surface parameters includes:
[0038] Substitute the state variable and the main sliding mode surface parameters into to calculate the sliding mode function value of the current state , where are the main sliding mode surface parameters, is the state variable error term.
[0039] Optionally, generating a control instruction by adopting a first reaching control method includes:
[0040] The change rate of the sliding mode function is calculated as: , where s is the sliding mode function value, , are preset control parameters, is the power exponent parameter and , is a positive constant.
[0041] Based on the model of the actuator to be controlled and the change rate of the sliding mode function, obtain the control instruction.
[0042] Optionally, generating a control instruction by adopting a second reaching control method includes:
[0043] The change rate of the sliding mode function is calculated as: , where s is the sliding mode function value, is the saturation function, C is the value corresponding to the working condition level, , are the control gain parameters adjusted according to C, is the boundary layer thickness parameter adjusted according to C;
[0044] Based on the model of the actuator to be controlled and the change rate of the sliding mode function The control command is obtained.
[0045] In this application, the influent water quality and system process parameters are collected in real time to predict the trend of key biochemical indicators, and the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters are dynamically adjusted according to the prediction results and target parameters, so that the control system can predictably respond to the influent load change and internal state fluctuation, and optimize the control strategy in advance, thereby enhancing the adaptability and robustness to disturbances. Moreover, by using the sliding mode surface parameters and weight coefficients determined based on multi-objective optimization, it is possible to better coordinate multiple control objectives in the short-cut denitrification and desulfurization processes and achieve the optimization of the overall treatment efficiency. In addition, the strategy of switching different reaching control laws according to the magnitude of the sliding mode function value proposed in the present invention effectively takes into account the rapid reaching of the state and the chattering suppression near the sliding mode surface, ensuring both the rapidity and accuracy of the control and improving the smoothness of the control signal. Brief Description of the Drawings
[0046] Figure 1 is a flowchart of an embodiment of the present application;
[0047] Figure 2 is a structural diagram of the trajectory for predicting key biochemical indicators;
[0048] Figure 3 is a schematic diagram of the effective operation area;
[0049] Figure 4 is a schematic diagram of the exponential reaching law, the saturation function reaching law, the improved exponential reaching law, and the improved saturation function reaching rate. Detailed Embodiments
[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0051] In the description of the present application, the terms "first", "second" and the corresponding term numbers in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing objects with the same attributes when describing embodiments of the present application. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device comprising a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.
[0052] In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality" is two or more. The term "and / or" or the character " / " in the present application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B, or A / B, can represent: A exists alone, A and B exist simultaneously, and B exists alone.
[0053] Specific embodiments, such as Figure 1 shown, provide a short-range denitrifying desulfurization wastewater treatment method, including:
[0054] Step 1, collect the influent water quality indexes of the wastewater in real time, and synchronously obtain the process parameters during the wastewater treatment process; predict the trajectory of the key biochemical indexes based on the influent water quality indexes and process parameters, determine the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-range denitrifying desulfurization target parameters, and if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes, adjust the main sliding mode surface parameters and the weight coefficients.
[0055] Obtain the influent water quality indexes entering the wastewater treatment system through sensors or monitoring instruments. The influent water quality indexes include but are not limited to chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen concentration, total nitrogen concentration, total phosphorus concentration, sulfate concentration, pH value, temperature, conductivity, turbidity, and influent flow rate, etc. While collecting the influent water quality, the operation state parameters of each key process unit or reaction area inside the wastewater treatment system are also monitored and recorded. The process parameters include but are not limited to the dissolved oxygen concentration, oxidation-reduction potential, pH value, temperature, sludge concentration, sludge age, nitrite nitrogen concentration, nitrate nitrogen concentration, sulfide concentration, volatile fatty acid concentration, aeration volume, agitator speed, internal and external reflux flow rate, chemical agent dosage, etc.
[0056] Predict the trends of key biochemical reactions in a future period through a model. The key biochemical indicators refer to parameters that can directly or indirectly characterize the efficiency and stability of the core reactions of short-cut denitrification and desulfurization. In one embodiment, the key biochemical indicators include, but are not limited to, the effluent nitrite nitrogen accumulation rate, the ratio of effluent nitrate nitrogen to nitrite nitrogen, the effluent sulfide removal rate, the activity indicators of specific microbial populations, etc. The trajectories of the key biochemical indicators can be generated in various ways. For example, a biochemical reaction kinetics model is constructed based on the activated sludge model and the coupled sulfur cycle model, or support vector regression and artificial neural networks are used for prediction. Figure 2 Shows a generation method based on RNN. The target parameters of short-cut denitrification and desulfurization are the desired operating effects, such as the target effluent water quality standards, such as the desired nitrite accumulation rate range, the desired degree of sulfide oxidation, etc. For example, based on the data at time t1, the model predicts that after 2 hours, the effluent nitrite accumulation rate will drop to 50%.
[0057] The methods for determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indicators and the target parameters of short-cut denitrification and desulfurization include, but are not limited to, determination based on experience, determination based on model optimization, etc. Among them, determination based on model optimization specifically means calculating the optimal parameter combination through optimization algorithms such as genetic algorithms and particle swarm optimization to meet specific performance indicators, such as minimizing the tracking error, the fastest response speed, the best anti-disturbance ability, etc. The optimization objective can be combined with the current influent water quality and the set treatment target. More specifically, the weight coefficient of the process parameter of dissolved oxygen is 0.6, and the weight coefficient of the carbon source dosage is 0.4.
[0058] The effective operating region is composed of the multi-dimensional target intervals of the key biochemical indicators. For example, the nitrite nitrogen concentration is between A and B mg / L, and at the same time, the sulfide concentration is lower than C mg / L. In one embodiment, the determination of the trajectory deviation is based on the integral value or the maximum deviation amplitude of the distance between the predicted trajectory and the effective operating region. When it is determined that a deviation occurs, the main sliding mode surface parameters and the weight coefficients are adjusted through an optimization algorithm based on gradient descent, with the goal of minimizing the future deviation between the predicted trajectory and the target region, and the backpropagation error is used to update these parameters; or a case-based reasoning method is adopted to learn from historical similar deviation events and their successful corrective measures and adjust the parameters.
[0059] Step 2: Use the weight coefficients to perform weighted combination on the process parameters to generate state variables, and calculate the sliding mode function value of the current state according to the state variables and the main sliding mode surface parameters; if the absolute value of the sliding mode function value is greater than the switching threshold, generate a control instruction using the first reaching control method, otherwise generate a control instruction using the second reaching control method;
[0060] The wastewater treatment process involves many interacting parameters, such as temperature, pH, flow rate, concentrations of various substances, etc. Observing these parameters individually is not sufficient to comprehensively understand the system state and may even be misleading. For continuously monitored process parameters, their respective weight coefficients are used for weighted combination to generate one or more state variables. For example, the dissolved oxygen is 0.5 mg / L and the carbon source addition is 0.6 kg / h, and the state variable is 0.54. In one embodiment, the process parameters are all transformed to 0 - 1. Based on the new state variables and the main sliding mode surface parameters, the sliding mode function value of the current state is obtained. Assuming that the desired state variable X is stable at the target value of 0.6, and the state variable calculated above is 0.54. If the sliding mode function s is defined as then the sliding mode function value is -0.06. The sliding mode function quantifies the deviation between the current state and the target state defined by the main sliding mode surface. Comparing the absolute value of the sliding mode function value with a preset switching threshold, if the absolute value of the sliding mode function value exceeds this switching threshold, it indicates that the system significantly deviates from the expected operating trajectory. In this case, the first reaching control method will be adopted to generate a control instruction. The first control strategy is usually more regulatory and can quickly guide the system state back to the sliding mode surface. Conversely, if the absolute value of the sliding mode function value is less than or equal to the switching threshold, it means that the system operating state is closer to the ideal state or already on the sliding mode surface, and the second reaching control method will be adopted to generate a control instruction. The second control strategy is usually smoother and aims to maintain the system on the sliding mode surface while minimizing chattering or oscillation to ensure stable and precise control. The switching between the two control modes enables the system to quickly respond to large disturbances and perform fine adjustment when approaching the target state.
[0061] In an alternative embodiment, the generating of the control instruction by adopting the first reaching control method includes:
[0062] Adopting an exponential reaching law Calculating the desired sliding mode function change rate where and are preset first reaching control parameters, is the sign function;
[0063] Based on the model of the actuator to be controlled by solving the control instruction u is obtained, where f(x) and g(x) are functions characterizing the system characteristics and x is the current state.
[0064] Calculating the desired sliding mode function change rate through the exponential reaching law formula . Where s is the sliding mode function value calculated at the current moment, and are preset first approaching control parameters, and they are all positive numbers; affect the smoothness and response speed of the approaching process, while ensuring the coerciveness and finite-time reachability of the approaching process, is the sign function, which takes the value of 1 when its parameter is greater than 0, -1 when less than 0, and 0 when equal to 0. represents at the current state at what rate the desired sliding mode function s changes towards 0. For example, currently s = 2, , , then , indicating that it is desired that s decreases towards 0 at a rate of -1.1. Based on the desired rate of change of the sliding mode function , combined with the mathematical model of the actuator to be controlled to solve the actual control command u, this model is expressed as a differential equation describing the relationship between the derivative of the sliding mode function s and the system state x and the control input u , where f(x) represents the part of the system's own dynamic characteristics and is not directly affected by the control input u, and g(x) represents the gain of the influence of the control input u on the system dynamics; x represents the current overall state of the system and can include multiple state variables. In order to make the actual rate of change of the sliding mode function equal to the desired rate of change , that is, to achieve , directly solve the above equation to obtain the control command u. The control command is obtained through calculation, and the calculated u is the specific operation amount finally applied to the corresponding execution units in the wastewater treatment system, such as pumps, valves, aerators, etc.
[0065] In an alternative embodiment, the generating of the control command by adopting the second approaching control method includes:
[0066] Adopt the saturation function reaching law to calculate the desired rate of change of the sliding mode function , where and are preset second approaching control parameters, is the preset boundary layer thickness parameter, is the saturation function;
[0067] Based on the model of the actuator to be controlled , solve to obtain the control command u, where f(x) and g(x) are functions characterizing the system characteristics, and x is the current state.
[0068] Calculate the desired rate of change of the sliding mode function through the reaching law formula based on the saturation function , where s is the sliding mode function value calculated at the current moment, and are pre-set second approaching control parameters, both of which are positive numbers and are used to adjust the approaching speed and system response characteristics. is a pre-set boundary layer thickness parameter. , which defines a thin layer area around the sliding mode surface s = 0. When , , this term in the approaching law becomes , which is a linear term about s, making the control action smooth. When , the state is outside the boundary layer but still satisfies switching condition, , this term becomes , providing a stronger effect. represents that in the current state, it is expected that the sliding mode function s changes to 0 in a smoother manner. Similar to the first approaching control method, based on this expected change rate of the sliding mode function , the u calculated by combining the mathematical model of the actuator to be controlled is the control operation amount applied to the corresponding execution unit in the wastewater treatment system, which will not be elaborated here.
[0069] Step 3, send the control instruction to the execution unit in the wastewater treatment system.
[0070] Send the control instruction to the corresponding execution unit in the wastewater treatment system. For example, if the control instruction is to increase the carbon source dosing rate by 10%, then this instruction is sent to the carbon source dosing pump to increase its output frequency; if the control instruction is to reduce the dissolved oxygen in the aerobic tank by 0.5 mg / L, then this instruction is sent to the actuator that controls the valve opening of the aeration blower to reduce the valve opening.
[0071] In the complex biochemical treatment process of short-cut denitrification desulfurization, the change of state often has the characteristics of time lag and nonlinearity. Relying solely on instantaneous data for control adjustment is difficult to cope with the impact brought by the fluctuation of influent water quality, and it is also impossible to predict potential risks in advance. In an alternative embodiment, predicting the trajectory of key biochemical indicators based on the influent water quality indicators and process parameters includes:
[0072] Obtain the influent water quality indicator data and process parameter data within a pre-set time length before the current moment. For each influent water quality indicator, obtain an indicator sequence, and for each process parameter, obtain a parameter sequence;
[0073] Input the indicator sequence and the parameter sequence into a pre-trained recurrent neural network to obtain the trajectory of key biochemical indicators; the key biochemical indicators include the effluent nitrite nitrogen accumulation rate and the effluent sulfide concentration.
[0074] Specifically, the influent water quality indexes entering the wastewater treatment system and the process parameters of each key point in the system are continuously monitored and recorded. For example, data is collected once at a fixed time interval. For each monitored influent water quality index, such as influent COD, influent sulfide concentration, influent nitrate concentration, etc., a preset time length before the current time point is intercepted, for example, all the collected data points in the past 24 hours or the past 48 hours, so as to form an index sequence for the index. Similarly, for each monitored process parameter such as the pH value of reaction tank A, the ORP value of reaction tank B, the aeration rate, the addition of carbon source acceleration rate, etc., all data points within the same preset time length will be intercepted to form a corresponding parameter sequence. These processed index sequences and parameter sequences are used as input and sent to a pre-trained recursive neural network model, which has learned a large amount of complex nonlinear mapping relationships and time dynamics between influent conditions, operating parameters and effluent biochemical indicators in the training stage. When a new indicator sequence and parameter sequence are input, the RNN model will deduce forward time by time step according to the learned pattern, and output a sequence of predicted values for key biochemical indicators in the future. This predicted value sequence constitutes the future change direction of the key biochemical indicators. Those skilled in the art should know that when there are multiple water quality indicators, the water quality indicator sequence input into the recursive neural network model should be a matrix, and the number of rows of the matrix is equal to the number of water quality indicators. The same is true for the parameter sequence, which will not be repeated.
[0075] The operating state and external disturbances are dynamically changing. If the main sliding surface parameters of the sliding mode controller and the weight coefficients of the process parameters are fixed, then when facing different operating loads, it may not be possible to achieve the optimal state, and may even cause control instability. In an optional embodiment, the main sliding surface parameters of the sliding mode controller and the weight coefficients of the process parameters are determined according to the influent water quality index and the short-range denitrification desulfurization target parameters, including:
[0076] Obtaining preset short-range denitrification desulfurization target parameters, wherein the target parameters include a target effluent nitrite nitrogen concentration range, a target nitrite nitrogen accumulation rate lower limit threshold, and a target effluent sulfide concentration upper limit threshold;
[0077] Based on the current operating condition level reflected by the inlet water quality index and the preset target parameters, the main sliding surface parameters are determined through a preset multi-objective optimization solution procedure, and the main sliding surface parameters include the coefficients of the error terms of each state variable in the sliding mode switching function; and the weight coefficients of the process parameters are simultaneously determined, and the weight coefficients are used to weight the process parameters to form the state variables of the sliding mode control.
[0078] Specifically, obtain and load the target parameters of the pre-set short-cut denitrifying desulfurization process. The target parameters include, but are not limited to: the target effluent nitrite nitrogen concentration range, the lower threshold of the target nitrite nitrogen accumulation rate, and the upper threshold of the target effluent sulfide concentration. Continuously analyze the real-time collected influent water quality indicators, and classify or quantify the operating load represented by the current influent water quality through a pre-set model, such as determining whether the current is a low load, medium load, or high shock load, etc. Then, use the evaluated current operating condition level information and the pre-set short-cut denitrifying desulfurization target parameters as input conditions and provide them to a pre-set multi-objective optimization solution program, such as a genetic algorithm or a particle swarm algorithm. The core goal of this optimization program is to find a set of optimal sliding mode controller parameters on the premise of meeting multiple treatment objectives. The output includes the main sliding mode surface parameters, which define the coefficients of the error terms of each state variable in the sliding mode switching function, that is, the difference between the actual state and the desired state, thus determining the characteristics of the system state converging to the sliding mode surface; at the same time, the optimization program will also synchronously determine the weight coefficients of each process parameter such as the aeration volume, carbon source dosage, internal reflux ratio, etc. These weight coefficients are used to perform weighted combination on the original process parameters to form more comprehensive and sensitive state variables in the sliding mode control, ensuring that these state variables can effectively reflect the system dynamics that has the greatest impact on the control objectives.
[0079] In an optional embodiment, the step of adjusting the main sliding mode surface parameters and the weight coefficients when the trajectory deviates from the effective operating region corresponding to the key biochemical indicators includes:
[0080] Obtain the effective operating region of the key biochemical indicators, compare the predicted trajectory of the key biochemical indicators with the effective operating region. If the time when the predicted trajectory exceeds the boundary of the effective operating region within a preset determination duration in the future exceeds a preset ratio, it is considered a deviation.
[0081] When a deviation occurs, adjust the currently used main sliding mode surface parameters and the weight coefficients of the process parameters according to the direction and degree of the deviation through a pre-set adjustment rule.
[0082] Obtain the boundary of the effective operating region of the key biochemical indicators and determine whether the predicted trajectory deviates. The effective operating region is jointly defined by various short-cut denitrifying desulfurization target parameters. For example, the target effluent nitrite nitrogen concentration range, the lower limit of the target nitrite nitrogen accumulation rate, and the upper limit of the target effluent sulfide concentration, etc. Compare the predicted trajectory with the boundary of the effective operating region. If the predicted trajectory shows that within a preset determination duration in the future, the total time length during which one or some key biochemical indicators will exceed the boundary of their effective operating regions exceeds a preset ratio, for example, more than 20% of the preset determination duration is in an over-standard state, then a deviation has occurred, as Figure 3As shown. When a deviation occurs in the system, analyze the specific situation of the deviation, including the direction of the deviation, such as whether the predicted value of the nitrite nitrogen accumulation rate is too low or the predicted value of the sulfide concentration is too high, and the degree of the deviation, such as the amplitude and duration of the predicted value exceeding the boundary. According to the characteristics of these deviations, call the preset adjustment rule library. These rules are usually obtained based on expert experience and historical data analysis. For example, if it is predicted that the sulfide concentration in the effluent will continue to exceed the standard, it is indicated to increase the weight coefficient of the process parameters related to carbon source addition and correspondingly adjust a certain coefficient of the main sliding mode surface to enhance the desulfurization effect. The adjusted parameters will be immediately applied to the subsequent control calculations to pull the future operating trajectory of the system back into the effective operating area.
[0083] In an optional embodiment, calculating the sliding mode function value of the current state according to the state variable and the main sliding mode surface parameter includes:
[0084] Substitute the state variable and the main sliding mode surface parameter into to calculate the sliding mode function value of the current state , where is the main sliding mode surface parameter, and is the state variable error term.
[0085] Specifically, the state variable Xi is a synthesis of several key process parameters in the wastewater treatment process, and the main sliding mode surface parameter is determined according to the influent water quality, target parameters, and multi-objective optimization. They are the coefficients corresponding to each state variable in the sliding mode switching function. Substitute these obtained state variables and the corresponding main sliding mode surface parameters into the expression of the predefined sliding mode function or switching function for calculation. In an optional embodiment, the sliding mode function is in the form of a linear combination . For each state variable , it will be multiplied by the corresponding coefficient to obtain the contribution term of this state variable to the total value of the sliding mode function. Finally, perform an algebraic sum of all these contribution terms to obtain the sliding mode function value corresponding to the system state at the current moment.
[0086] In order for the system state to approach at a higher rate when it is far from the sliding mode surface and smoothly transition when it is close to the sliding mode surface, effectively reducing the chattering problem caused by the discontinuity of the sign function in the traditional reaching law. In an optional embodiment, the generating of the control instruction by adopting the first reaching control method includes:
[0087] The change rate of the sliding mode function The calculation formula is: , where s is the sliding mode function value, , are preset control parameters, is the power exponent parameter and , is a positive constant;
[0088] Based on the model of the actuator to be controlled and the change rate of the sliding mode function the control command is obtained.
[0089] The key power exponent is such that when the sliding mode variable 0 < < 1, is larger relative to the value of, so as to provide a faster convergence rate than the traditional linear approaching term, which helps to achieve that the system state reaches the sliding mode surface within a finite time. When the system state is far from the sliding mode surface, that is, is much larger than the positive constant , , approximating the traditional constant-speed approaching part , to overcome the system uncertainties and external disturbances. When the system state is very close to the sliding mode surface, that is, becomes very small and approaches 0. In this case, the second part approaches . Near the sliding mode surface, the switching control action provided by the discontinuous sign function is replaced. The smooth transition can suppress the control chattering caused by the high-frequency switching of the sign function. This embodiment focuses on fast reaching when far from the sliding mode surface to ensure rapidity; and focuses on smooth transition when approaching the sliding mode surface to ensure the steady-state performance of the system and reduce chattering, as Figure 4 shown. Among them, is a small positive number. In a more specific embodiment, .
[0090] Under different working conditions, the content of the control command should also be different. In an alternative embodiment, the second approaching control method is used to generate the control command, including:
[0091] The change rate of the sliding mode function The calculation formula is: , where s is the value of the sliding mode function, is the saturation function, C is the value corresponding to the working condition level, , are the control gain parameters adjusted with C, is the boundary layer thickness parameter adjusted with C;
[0092] Based on the model of the actuator to be controlled and the change rate of the sliding mode function the control command is obtained.
[0093] When the working condition level C indicates that the future water quality may deteriorate and the load will increase significantly, reduce the boundary layer thickness to make the sliding mode control more accurate near the sliding mode surface while increasing the control gain and to provide stronger approaching power and convergence speed, so as to quickly respond to and suppress the expected disturbances. On the contrary, when the prediction shows that the system is operating smoothly, the water quality is good, and the key indicators are stable within the target range, the system will increase the boundary layer thickness to make the control action softer, to maximize the suppression of chattering, and to reduce and to reduce the control energy consumption, as Figure 4 shown.
[0094] More specifically, the larger the operating condition level C is, the worse the operating condition is. For example, 0 represents low load, 0.5 represents medium load, and 1 represents high impact load. In an alternative embodiment , , , those skilled in the art should be aware that these formulas are merely exemplary, and the present application is not limited to this calculation method.
[0095] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some characteristic data can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, the functional units in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0098] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
Claims
1. A short-range denitrifying desulfurization wastewater treatment method, characterized in that, It includes: Collect the influent water quality indexes of the wastewater in real time and synchronously obtain the process parameters during the wastewater treatment process; Predict the trajectory of the key biochemical indexes based on the influent water quality indexes and process parameters, determine the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters. If the trajectory deviates from the effective operation area corresponding to the key biochemical indexes, adjust the main sliding mode surface parameters and the weight coefficients; Use the weight coefficients to perform weighted combination on the process parameters to generate state variables, and calculate the sliding mode function value of the current state according to the state variables and the main sliding mode surface parameters; if the absolute value of the sliding mode function value is greater than the switching threshold, generate a control command using the first reaching control method, otherwise generate a control command using the second reaching control method; Send the control command to the execution unit in the wastewater treatment system; The calculating the sliding mode function value of the current state according to the state variables and the main sliding mode surface parameters includes: Substitute the state variable and the main sliding mode surface parameters into to calculate the sliding mode function value of the current state , where is the main sliding mode surface parameter, is the state variable error term; The generating a control command using the first reaching control method includes: Sliding mode function change rate The calculation formula is as follows: , where s is the sliding mode function value, and are preset control parameters, is the power exponent parameter and , is a positive constant; Based on the model of the actuator to be controlled and the change rate of the sliding mode function Obtain the control command; The generating a control command using the second reaching control method includes: Sliding mode function change rate The calculation formula is as follows: , where s is the sliding mode function value, is the saturation function, C is the value corresponding to the working condition level, and are control gain parameters adjusted with C, is the boundary layer thickness parameter adjusted with C; Based on the model of the actuator to be controlled and the change rate of the sliding mode function The control command is obtained.
2. The method according to claim 1, wherein The predicting the trajectory of the key biochemical indexes based on the influent water quality indexes and process parameters includes: Obtain the influent water quality index data and process parameter data within a preset time length before the current moment. For each influent water quality index, obtain an index sequence, and for each process parameter, obtain a parameter sequence; Input the index sequence and the parameter sequence into a pre-trained recurrent neural network to obtain the trajectory of the key biochemical indexes; the key biochemical indexes include the effluent nitrite nitrogen accumulation rate and the effluent sulfide concentration.
3. The method according to claim 1, wherein The determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters includes: Obtain the preset short-cut denitrification and desulfurization target parameters, and the target parameters include the target effluent nitrite nitrogen concentration range, the lower threshold of the target nitrite nitrogen accumulation rate, and the upper threshold of the target effluent sulfide concentration; Based on the current working condition level reflected by the influent water quality indexes and the preset target parameters, determine the main sliding mode surface parameters through a preset multi-objective optimization solving program. The main sliding mode surface parameters include the coefficients of each state variable error term in the sliding mode switching function; and synchronously determine the weight coefficients of the process parameters. The weight coefficients are used to perform weighted combination on the process parameters to form the state variables of the sliding mode control.
4. The method according to claim 1, characterized in that The adjusting the main sliding mode surface parameters and the weight coefficients if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes includes: Obtain the effective operation area of the key biochemical indexes, compare the predicted trajectory of the key biochemical indexes with the effective operation area. If the time when the predicted trajectory exceeds the boundary of the effective operation area within a preset determination time length in the future exceeds the preset ratio, it is considered a deviation; When a deviation occurs, adjust the currently used main sliding mode surface parameters and the weight coefficients of the process parameters according to the direction and degree of the deviation through a preset adjustment rule.
5. A short-range denitrifying desulfurization wastewater treatment system, characterized in that, It includes: A sliding mode determination unit for real-time collecting the influent water quality indexes of the wastewater and synchronously obtaining the process parameters during the wastewater treatment process; Predicting the trajectory of key biochemical indexes based on the influent water quality indexes and process parameters, determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters, and adjusting the main sliding mode surface parameters and the weight coefficients if the trajectory deviates from the effective operation area corresponding to the key biochemical indexes; A control instruction generation unit for generating a state variable by weighted combination of the process parameters using the weight coefficients, and calculating the sliding mode function value of the current state according to the state variable and the main sliding mode surface parameters; if the absolute value of the sliding mode function value is greater than the switching threshold, generating a control instruction using the first reaching control method, otherwise generating a control instruction using the second reaching control method; A control unit for sending the control instruction to an execution unit in the wastewater treatment system; The calculating the sliding mode function value of the current state according to the state variable and the main sliding mode surface parameters includes: Substitute the state variable and the main sliding mode surface parameter into to calculate the sliding mode function value of the current state , where is the main sliding mode surface parameter, is the state variable error term; The generating a control instruction using the first reaching control method includes: Sliding mode function change rate The calculation formula is as follows: , where s is the sliding mode function value, 、 are preset control parameters, is the power exponent parameter and , is a positive constant; Based on the model of the actuator to be controlled and the change rate of the sliding mode function Obtain the control command; The generating a control instruction using the second reaching control method includes: Sliding mode function change rate The calculation formula is as follows: , where s is the sliding mode function value, is the saturation function, C is the value corresponding to the operating condition level, and are control gain parameters adjusted with C, is the boundary layer thickness parameter adjusted with C; Based on the model of the actuator to be controlled and the change rate of the sliding mode function The control command is obtained.
6. The system according to claim 5, characterized in that, The predicting the trajectory of key biochemical indexes based on the influent water quality indexes and process parameters includes: Obtaining the influent water quality index data and process parameter data within a preset time length before the current moment, obtaining an index sequence for each influent water quality index, and obtaining a parameter sequence for each process parameter; Inputting the index sequence and the parameter sequence into a pre-trained recurrent neural network to obtain the trajectory of the key biochemical indexes; the key biochemical indexes include the effluent nitrite nitrogen accumulation rate and the effluent sulfide concentration.
7. The system according to claim 5, wherein The determining the main sliding mode surface parameters of the sliding mode controller and the weight coefficients of the process parameters according to the influent water quality indexes and the short-cut denitrification and desulfurization target parameters includes: Obtaining the preset short-cut denitrification and desulfurization target parameters, the target parameters including the target effluent nitrite nitrogen concentration range, the lower threshold of the target nitrite nitrogen accumulation rate, and the upper threshold of the target effluent sulfide concentration; Based on the current working condition level reflected by the influent water quality indexes and the preset target parameters, determining the main sliding mode surface parameters through a preset multi-objective optimization solving program, the main sliding mode surface parameters including the coefficients of each state variable error term in the sliding mode switching function; and synchronously determining the weight coefficients of the process parameters, the weight coefficients being used to weightedly compose the state variables of the sliding mode control.
Citation Information
Patent Citations
Method for realizing synchronous desulfurization and denitrification of leather wastewater by utilizing sulfur autotrophic denitrification process
CN110902957A
Sewage treatment denitrification process control method based on buffeting-free fuzzy sliding mode
CN112327615A