A method for controlling landfill leachate treatment based on collaborative control
By improving the PID joint filter and the Actor-Critic structure of reinforcement learning, a collaborative control model is constructed, which solves the problem that water quality monitoring data cannot be reflected in time in traditional landfill leachate treatment, achieves nonlinear and time-varying control, and improves treatment efficiency. and stability, reducing environmental pollution.
Patent Information
- Application Number
- CN202410781130.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In traditional landfill leachate treatment, due to complex biochemical reactions, many variables, and strong time-delay coupling, water quality monitoring data cannot reflect dynamic changes in a timely manner and cannot meet the needs of nonlinear and time-varying control, resulting in serious environmental pollution.
Using a method based on collaborative control, a collaborative control model is constructed by improving the PID joint filter and the Actor-Critic structure in reinforcement learning, using water turbidity, pH, dissolved oxygen concentration and sulfide concentration errors as inputs to achieve control over the incoming water. For the control of flow rate and blower inlet valve opening, nonlinear change functions and gray prediction auxiliary control are introduced to improve the stability and adaptability of the control system.
It realizes non-linear and time-varying control of landfill leachate treatment, improves the stability and accuracy of the control system, can timely reflect water quality changes, meets the needs of efficient landfill leachate treatment, and reduces environmental pollution.
Smart Images

Figure CN118348777B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of landfill leachate treatment control application, and in particular relates to a landfill leachate treatment control method based on collaborative control. Background Art
[0002] During the garbage stacking and landfilling process, leachate is generated due to fermentation, precipitation leaching, and surface and groundwater infiltration. The leachate has complex components, high organic matter concentration, high ammonia nitrogen concentration, contains a variety of heavy metal ions, high salt content, is dark black, and emits a foul odor. Untreated leachate will cause serious secondary pollution to the environment after flowing through the surface or seeping into groundwater. Therefore, pollution control of leachate has become an important part of harmless garbage treatment.
[0003] Since the biochemical reactions in the leachate treatment process are complex and involve too many variables, and there are time lags and couplings between the various treatment links, it is easy to be disturbed by various factors, and the water quality parameters in the reaction tank need to be controlled. Traditional monitoring and control schemes generally perform manual sampling regularly according to actual needs, take water samples back to the laboratory for experimental analysis to obtain test results, and then process them. However, this manual sampling method cannot fully and accurately reflect the continuous dynamic changes in the water quality of the monitored points, and cannot timely grasp and respond to sudden changes in water quality information in the reaction tank. The monitoring data obtained in this way often cannot reflect the actual situation of the water quality and cannot meet the needs of nonlinear and time-varying control. Summary of the invention
[0004] Aiming at the technical problems existing in the treatment of landfill leachate, the present invention proposes a landfill leachate treatment control method based on collaborative control which has reasonable design, simple method, strong theoretical basis and can meet the requirements of nonlinearity and time variation.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is: a landfill leachate treatment control method based on collaborative control, comprising the following steps:
[0006] S1. Obtain the water turbidity, pH, dissolved oxygen concentration and sulfide concentration in the landfill leachate treatment pool, set the specified value of water turbidity, pH, dissolved oxygen concentration and sulfide concentration, and obtain the water turbidity error. , pH error , dissolved oxygen concentration error And the sulfide concentration error ;
[0007] S2. Construct a collaborative control model by improving the PID joint filter and the Actor-Critic structure in reinforcement learning to form a collaborative control model, water turbidity error , pH error , dissolved oxygen concentration error And the sulfide concentration error They are respectively used as the input of the coordinated control, and the output of each coordinated control is respectively used as the input of the coupling object and the grey prediction auxiliary controller, thereby constructing four feedback controls. The improved PID introduces a nonlinear transformation function, and the control formula of the improved PID is:
[0008] ,in, is the output, represents the coefficient of PID, , is the coefficient of determination, 0< <1,0< <1, and is a nonlinear function, The formula is:
[0009] ,in, is the water turbidity error, is the pH error, is the dissolved oxygen concentration error, is the sulfide concentration error, is the interval length, The formula is:
[0010] ,in, Water turbidity error The rate of change, pH error The rate of change, Dissolved oxygen concentration error The rate of change, is the sulfide concentration error The rate of change, is the interval length, e is the base of natural logarithm;
[0011] S3, water turbidity error , pH error , dissolved oxygen concentration error And the sulfide concentration error They are respectively used as inputs of the collaborative control model to control the water inlet flow rate and the opening of the blower intake valve.
[0012] Preferably, in step S2 The coefficients representing PID include proportional, integral, and differential coefficients.
[0013] Preferably, the filter is a second-order filter, and its transfer function is:
[0014] , where s is a complex variable, , , is an adjustable coefficient, the coupling objects include the water inlet flow rate and the opening of the blower intake valve, and the grey prediction auxiliary controller performs state prediction, and its equation is:
[0015] ,in, represents the cumulative generation sequence, represents the original data sequence, and Parameters to be determined.
[0016] Preferably, the Actor in the Actor-Critic structure in the reinforcement learning is used for measurement estimation, the Critic estimates the current state and the performance of the action, and obtains the value function to update the gradient for the Actor and evaluate the quality of the Actor's current strategy. The Critic approximates the updated value function by sampling, and the value function updates the parameters of the strategy along the direction of maximum benefit. The correction value provided by the random action corrector depends on the value function provided by the Critic. The value function takes advantage learning into account, and the calculation formula of the modified correction term is:
[0017] ,in, , is the state and action at time t, express The action of the moment, represents the smaller one among the Q values, Represents the parameters of the target value network.
[0018] Compared with the prior art, the advantages and positive effects of the present invention are:
[0019] The present invention proposes a landfill leachate treatment control method based on collaborative control. The collaborative control is established by improving the PID joint filter and the Actor-Critic structure in reinforcement learning to improve the strategy learning efficiency of the algorithm and the stability of the control system. The outputs of each collaborative control are respectively used as the input of the coupling object and the gray prediction auxiliary controller, and then four feedback controls are constructed to obtain a high-efficiency landfill leachate treatment control that meets nonlinearity and time variation. The improved PID introduces a nonlinear change function, and the gain parameter of the controller changes with the control error, which improves the adaptability of the algorithm. The reinforcement learning value function takes advantage learning into account, and reduces the Q value estimation corresponding to the non-optimal action to widen the gap between the optimal action state value and the non-optimal state value. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of the structure of a garbage leachate treatment control method based on collaborative control provided by an embodiment of the present invention;
[0022] Figure 2 A graph showing the turbidity treatment control results of landfill leachate provided in an embodiment of the present invention;
[0023] Figure 3 A graph showing the pH control results of landfill leachate provided in an embodiment of the present invention;
[0024] Figure 4 A graph showing the control results of the dissolved oxygen concentration treatment of landfill leachate provided in an embodiment of the present invention;
[0025] Figure 5 This is a graph of the sulfide concentration treatment control results of landfill leachate provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.
[0028] Examples, such as Figure 1As shown, considering that the biochemical reactions in the process of landfill leachate treatment are complex and involve too many variables, and that there are time lags and couplings between the various treatment links, and that they are easily disturbed by various factors, it is necessary to control the water quality parameters in the reaction tank. The traditional monitoring and control scheme generally involves regular manual sampling according to actual needs, and the water samples are taken back to the laboratory for experimental analysis to obtain the test results, and then processed. However, this manual sampling method cannot fully and accurately reflect the continuous dynamic changes in the water quality of the monitored points, and it is also impossible to timely grasp and respond to sudden changes in water quality information in the reaction tank. The monitoring data obtained in this way often cannot reflect the actual situation of the water quality, and cannot meet the needs of nonlinear and time-varying control. To this end, the present invention proposes a landfill leachate treatment control method based on collaborative control.
[0029] Considering that the turbidity, pH, dissolved oxygen concentration and sulfide concentration of the water in the landfill leachate treatment pool are related to the water inlet flow rate of the coupled object and the opening of the blower inlet valve, it is necessary to decouple them. So first, obtain the turbidity, pH, dissolved oxygen concentration and sulfide concentration of the water in the landfill leachate treatment pool, set the specified value of water turbidity, pH, dissolved oxygen concentration and sulfide concentration, and get the water turbidity error , pH error , dissolved oxygen concentration error And the sulfide concentration error .
[0030] Considering that the proportional link of PID control reflects the deviation signal of the control system proportionally, the system will immediately feedback to the controlled target after the deviation occurs; the integral link is mainly used to eliminate static error and improve the system's zero difference; the differential link mainly reflects the change trend of the deviation signal, thereby speeding up the system's action speed and reducing the adjustment time. The introduced proportional link, integral link, and differential link will take effect when the system error changes. When the speed of change is faster, the output signal is stronger, so it can speed up the adjustment speed and improve the dynamic performance of the system. However, it will also cause overshoot, instability and high-frequency interference of the system, especially when the proportional and integral links change suddenly, it will cause overshoot or instability of the system. Since the parameters of the PID control algorithm are fixed, it is easy to cause overshoot of the system and cannot fully meet the stability requirements of the control system. Therefore, nonlinear factors are introduced on the basis of the original PID, that is, nonlinear change functions are introduced. Since the gain parameters of the controller change with the control error, the adaptability of the algorithm is improved. The second-order filter can reduce the overshoot while improving the response speed and reducing the system error.
[0031] The control strategy directly uses the Actor-Critic structure in reinforcement learning as the controller of the system. Under this control strategy, the strategy learning efficiency of the algorithm is low, and the control system is prone to oscillation and divergence. The reason for this phenomenon is that the reinforcement learning algorithm is disordered in the initial exploration stage, which leads to system instability, so it is easy to learn a control strategy that is unstable. Under the collaborative control strategy, its benchmark controller can help the system maintain stability, thereby improving the strategy learning efficiency of the algorithm and the stability of the control system. The multi-dimensional state information is combined with the Actor-Critic structure in reinforcement learning, the improved PID controller and the controlled object to form an environment that interacts with the intelligent agent. After the Actor-Critic structure in reinforcement learning interacts with the system environment, it will generate several state, action and reward quadruplets, which are stored in the experience pool. Then, N samples are randomly sampled from the experience pool for training and network update.
[0032] Due to the limitations of the PID controller, its control performance in terms of control accuracy and response speed of the system is poor. The grey prediction model can use differential equations to discover the development laws and trends of chaotic series, and has a good prediction effect on complex systems with uncertain factors. Therefore, the grey prediction auxiliary controller can accurately estimate the measured signal, which is suitable for solving the problem of predicting the laws of uncertain systems and is widely used in prediction systems in many fields. In the control method, there will be a certain time lag problem. In the long-term system operation, the time lag problem will be continuously amplified, and the control accuracy will continue to decrease. Combining grey prediction auxiliary control with PID control, the system state is introduced based on the GM (1,1) model, which improves the time lag of traditional PID control and improves the control accuracy.
[0033] The most important step in advantage learning is to determine whether the current action is the optimal action, and then to reduce the Q value estimate corresponding to the non-optimal action to widen the gap between the optimal action state value and the non-optimal state value. The input of the reinforcement learning Q value network is the state and action, and the output is the Q value estimate of the action-state pair. The current state and current action in the experience are input into the target Q network, and the output Q value is recorded as The current state in the experience is input into the online policy network to obtain a new action, and then the action is taken as the optimal action and input into the target Q value network together with the current state. The obtained Q value estimate is recorded as the optimal state Q value. Since the actions output by the policy network are continuous, the state action pair The Q value of the state-action pair The Q value of The value of may be less than 0. When the correction term is subtracted, the target Q will be increased, which may cause an overestimation of the Q value. Therefore, the correction term needs to be further modified. When the correction term is less than 0, the value of the correction term is equal to 0.
[0034] Therefore, a collaborative control model is constructed by improving the PID joint filter and the Actor-Critic structure in reinforcement learning to form a collaborative control, and the water turbidity error , pH error , dissolved oxygen concentration error And the sulfide concentration error They are respectively used as the input of the coordinated control, and the output of each coordinated control is respectively used as the input of the coupling object and the grey prediction auxiliary controller, thereby constructing four feedback controls. The improved PID introduces a nonlinear transformation function, and the control formula of the improved PID is:
[0035] ,in, is the output, Indicates the coefficients of PID, including proportional, integral and differential coefficients, , is the coefficient of determination, 0< <1,0< <1, and is a nonlinear function, The formula is:
[0036] ,in, is the water turbidity error, is the pH error, is the dissolved oxygen concentration error, is the sulfide concentration error, is the interval length, The formula is:
[0037] ,in, Water turbidity error The rate of change, pH error The rate of change, Dissolved oxygen concentration error The rate of change, is the sulfide concentration error The rate of change, is the interval length, e is the base of the natural logarithm, the filter is a second-order filter, and its transfer function is:
[0038] , where s is a complex variable, , , is an adjustable coefficient, the coupling objects include the water inlet flow rate and the opening of the blower intake valve, and the grey prediction auxiliary controller performs state prediction, and its equation is:
[0039] ,in, represents the cumulative generation sequence, represents the original data sequence, and is the parameter to be determined. The Actor in the Actor-Critic structure in the reinforcement learning is used for measurement estimation. The Critic estimates the current state and the performance of the action, and obtains the value function to update the gradient for the Actor and evaluate the quality of the Actor's current strategy. The Critic approximates the updated value function by sampling. The value function updates the parameters of the strategy along the direction of maximum benefit. The correction value provided by the random action corrector depends on the value function provided by the Critic. The value function considers advantage learning. The calculation formula of the modified correction term is:
[0040] ,in, , is the state and action at time t, express The action of the moment, represents the smaller one among the Q values, Represents the parameters of the target value network.
[0041] Finally, the water turbidity error , pH error , dissolved oxygen concentration error And the sulfide concentration error As the input of the collaborative control model, the water inlet flow rate and the opening of the blower air inlet valve are controlled. The control results are shown in the figure below. Figure 2 , Figure 3 , Figure 4 , Figure 5 As shown in the figure, it can be seen that the water turbidity, pH, dissolved oxygen concentration and sulfide concentration are all controlled to reach the specified values within the initial ten minutes and remain stable near the specified values. By improving the PID joint filter and the Actor-Critic structure in reinforcement learning to form collaborative control, the strategy learning efficiency of the algorithm and the stability of the control system are improved.
[0042] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A landfill leachate treatment control method based on collaborative control, characterized in that: The steps include: S1, obtaining the water turbidity, pH value, dissolved oxygen concentration and sulfide concentration in the landfill leachate treatment pool, setting the water turbidity specified value, pH value specified value, dissolved oxygen concentration specified value and sulfide concentration specified value, and obtaining the water turbidity error e1, pH value error e2, dissolved oxygen concentration error e3 and sulfide concentration error e4; S2. Construct a collaborative control model. The collaborative control is established by improving the PID joint filter and the Actor-Critic structure in reinforcement learning. The water turbidity error e1, the pH error e2, the dissolved oxygen concentration error e3 and the sulfide concentration error e4 are respectively used as the input of the collaborative control. The output of each collaborative control is respectively used as the input of the coupling object and the gray prediction auxiliary controller, and then four feedback controls are constructed. The improved PID introduces a nonlinear transformation function. The control formula of the improved PID is: Among them, u(k) is the output, I represents the coefficient of PID, is the coefficient of determination, f(e1,e2,e3,e4,ε) and f(Δe1,Δe2,Δe3,Δe4,ε) are nonlinear changing functions. The formula for f(e1,e2,e3,e4,ε) is: Among them, e1 is the water turbidity error, e2 is the pH error, e3 is the dissolved oxygen concentration error, e4 is the sulfide concentration error, ε is the interval length, and the formula f(Δe1, Δe2, Δe3, Δe4, ε) is: Among them, Δe1 is the rate of change of water turbidity error e1, Δe2 is the rate of change of pH error e2, Δe3 is the rate of change of dissolved oxygen concentration error e3, Δe4 is the rate of change of sulfide concentration error e4, ε is the interval length, and e is the base of the natural logarithm; S3, using water turbidity error e1, pH error e2, dissolved oxygen concentration error e3 and sulfide concentration error e4 as inputs of the collaborative control model to achieve control of the water inlet flow rate and the opening of the blower intake valve.
2. The method for controlling landfill leachate treatment based on collaborative control according to claim 1, characterized in that: In step S2, I represents that the coefficients of PID include proportional, integral and differential coefficients.
3. The method for controlling landfill leachate treatment based on collaborative control according to claim 1, characterized in that: The filter is a second-order filter, and its transfer function is: Wherein, s is a complex variable, a1, b1, b2 are adjustable coefficients, the coupling objects include the water inlet flow rate and the opening of the blower intake valve, and the grey prediction auxiliary controller performs state prediction, and its equation is: Δx(k)+a*x(k)=b Among them, Δx(k) represents the cumulative generated sequence, x(k) represents the original data sequence, and a and b are parameters to be determined.
4. The method for controlling landfill leachate treatment based on collaborative control according to claim 1, characterized in that: The Actor in the Actor-Critic structure in the reinforcement learning is used for measurement estimation. The Critic estimates the current state and the performance of the action, and obtains the value function to update the gradient for the Actor and evaluate the quality of the Actor's current strategy. The Critic approximates the updated value function by sampling. The value function updates the parameters of the strategy along the direction of maximum benefit. The correction value provided by the random action corrector depends on the value function provided by the Critic. The value function takes advantage learning into account. The calculation formula of the modified correction term is: Among them, s t 、a t is the state and action at time t, a t+1 represents the action at time t+1, minQ represents the smaller one among the Q values, θ - Represents the parameters of the target value network.
Citation Information
Patent Citations
Self-adaption electronic speed governing method for PID diesel engine
CN110259592A
Sewage treatment fine control system and method based on Internet of Things
CN111777138A
Reinforcement learning adaptive PID control method based on parallel dominant action evaluation
CN115167102A
Multi-objective optimization control system and method in sewage treatment process
CN115356930A
Neural networks for prediction and control
US20070022068A1
Cited By
Regulation and control method and system for leachate treatment of garbage transfer station
CN121698512A
Intelligent control method for leachate treatment of garbage transfer station
CN122608249A
An intelligent control method for leachate treatment of a waste transfer station
CN122608249B
