Sewage treatment optimization method and system based on data driving

Through data-driven multiple linear regression and neural network prediction, combined with genetic algorithm optimization, the problems of adaptability and quality neglect of traditional sewage treatment optimization methods are solved, and efficient and safe sewage treatment is achieved.

CN118779840AInactive Publication Date: 2024-10-15WUXI RUITAIHENG AUTOMATION SYST TECH CO LTD

Patent Information

Application Number
CN202410765852.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing sewage treatment optimization methods rely on the traditional ASM model, which is difficult to adapt to the needs of new sewage treatment technologies, resulting in poor optimization results. They only consider economics and ignore sewage treatment quality, which may lead to excessive sewage and increase environmental and public health risks.

Method used

Using a data-driven sewage treatment optimization method, multiple linear regression algorithms are used to determine the energy consumption and sewage treatment quality regression equations, combined with real-time data to predict exceedances, and adjust control parameters to achieve the goals of minimum energy consumption and optimal sewage treatment quality. The length of use Time-memory neural network and genetic algorithm optimize control parameters.

Benefits of technology

It improves the applicability and flexibility of sewage treatment optimization, improves control accuracy and efficiency, reduces sewage excess, reduces risks to the environment and public health, and reduces water pollution and ecosystem damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779840A_ABST
    Figure CN118779840A_ABST
Patent Text Reader

Abstract

The invention provides a sewage treatment optimization method and system based on data driving, and relates to the technical field of data processing, and the method comprises the steps: obtaining a sample data set; determining an energy consumption regression equation through a multiple linear regression algorithm; determining a sewage treatment quality regression equation through a multiple linear regression algorithm; acquiring real-time sewage treatment data; according to the real-time sewage treatment data, predicting whether the sewage exceeds the standard or not after the sewage treatment; when the standard exceeds the standard, determining standard-exceeding control parameters according to the standard-exceeding degree; when the standard does not exceed the standard, the minimum energy consumption and the optimal sewage treatment quality are taken as targets, the dissolved oxygen flow, the internal reflux flow and the external reflux flow are taken as control parameters, a sewage treatment target function is constructed, the energy consumption is determined through an energy consumption regression equation, and the sewage treatment quality is determined through a sewage treatment quality regression equation; according to the sewage treatment objective function, determining an optimal control parameter through an optimization algorithm; and controlling the sewage treatment process according to the optimal control parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a sewage treatment optimization method and system based on data drive. Background Art

[0002] Most urban sewage treatment plants use biochemical methods to treat industrial and domestic sewage, the most common of which is to degrade pollutants through biochemical reactions in activated sludge. In order to maintain the normal operation of the city, sewage treatment plants must continue to operate under stable conditions to ensure that sewage discharge meets standards. It is urgent to establish a complete sewage treatment optimization method.

[0003] Most of the current wastewater treatment optimization methods refer to the Activated Sludge Model No. 1 (ASM) model developed by the International Water Quality Association in the late 1980s. However, with the development of wastewater treatment technology and changes in wastewater treatment links, the ASM model has been difficult to adapt to the needs of new wastewater treatment technologies. Continuing to optimize wastewater treatment in the traditional ASM model is likely to lead to poor optimization results and fail to further improve wastewater treatment efficiency.

[0004] At the same time, current sewage optimization methods often only consider economic efficiency, and perform single-objective optimization with the goal of minimizing the energy consumption of sewage treatment plants, but fail to include sewage treatment quality in the optimization goals. This may lead to sewage exceeding the standard at certain times, and certain pollutants cannot be effectively removed, resulting in sewage discharge exceeding the standard, which will increase the risk of sewage discharge to the environment and public health, and may lead to water pollution, ecosystem damage and threats to human health. Summary of the invention

[0005] In order to solve the problem that the ASM model in the prior art is difficult to adapt to the needs of the new sewage treatment technology, continuing to optimize sewage treatment in the traditional ASM model is likely to lead to poor optimization effect and unable to further improve the sewage treatment efficiency. At the same time, the current sewage optimization method often only considers the economic performance, and performs single-objective optimization with the minimum energy consumption of the sewage treatment plant as the goal, but fails to include the sewage treatment quality in the optimization goal, which may lead to sewage exceeding the standard at certain times, and certain pollutants cannot be effectively removed, resulting in sewage discharge exceeding the standard, which will increase the risk of sewage discharge to the environment and public health, and may cause water pollution, ecosystem damage and threats to human health. Technical problems, the present invention provides a data-driven sewage treatment optimization method and system.

[0006] The technical solution provided by the embodiment of the present invention is as follows:

[0007] First aspect:

[0008] An embodiment of the present invention provides a data-driven sewage treatment optimization method, comprising:

[0009] S1: Obtain a sample data set, the sample data set comprising a plurality of training samples, each of the training samples comprising dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge, energy consumption, dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and sewage treatment quality;

[0010] S2: According to the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples, the energy consumption regression equation is determined by a multivariate linear regression algorithm;

[0011] S3: According to the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and the corresponding sewage treatment quality in the training samples, the sewage treatment quality regression equation is determined by a multivariate linear regression algorithm;

[0012] S4: Obtain real-time sewage treatment data;

[0013] S5: predicting whether the sewage exceeds the standard after treatment based on the real-time sewage treatment data;

[0014] S6: When there is an excess, determine the excess control parameters according to the degree of excess;

[0015] S7: When there is no excess, the target is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, the internal return flow rate, and the external return flow rate are used as control parameters to construct a sewage treatment objective function, wherein the energy consumption is determined by the energy consumption regression equation, and the sewage treatment quality is determined by the sewage treatment quality regression equation;

[0016] S8: Determine the optimal control parameters through an optimization algorithm according to the sewage treatment objective function;

[0017] S9: Control the sewage treatment process according to the optimal control parameters.

[0018] Second aspect:

[0019] An embodiment of the present invention provides a data-driven sewage treatment optimization system, comprising:

[0020] processor;

[0021] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the data-driven sewage treatment optimization method as described in the first aspect is implemented.

[0022] The third aspect:

[0023] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the data-driven sewage treatment optimization method as described in the first aspect is implemented.

[0024] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0025] (1) In the present invention, the energy consumption regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples. The sewage treatment quality regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and corresponding sewage treatment quality in the training samples, rather than directly adopting the determination method of energy consumption and sewage treatment quality in the traditional ASM model. The applicability and flexibility of the sewage optimization method for various sewage optimization technologies are improved, which is more in line with the optimization needs driven by actual data, helps to improve the accuracy of control in the sewage optimization treatment process, improve the sewage treatment optimization effect, and further improve the sewage treatment efficiency.

[0026] (2) In the present invention, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, and then determine the optimal control parameters through an optimization algorithm based on the sewage treatment objective function. On the basis of considering energy consumption, sewage treatment quality is included in the optimization target to reduce sewage exceeding the standard, reduce the risk of sewage discharge to the environment and public health, and reduce water pollution, ecosystem damage and threats to human health.

[0027] (3) In the present invention, based on the real-time sewage treatment data, it is predicted whether there is any excess in sewage after treatment, and the problem of sewage exceeding the standard is discovered in time. When there is an excess, the excess control parameters are determined according to the degree of excess, and the possibility of excessive discharge is reduced, thereby further reducing the risks of sewage discharge to the environment and public health, reducing water pollution, ecosystem damage and threats to human health. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 A schematic diagram of a process flow of a data-driven sewage treatment optimization method provided by an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of the structure of a data-driven sewage treatment optimization system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0032] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0033] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0034] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0036] Reference Manual Attached Figure 1 , showing a flow chart of a data-driven sewage treatment optimization method provided in an embodiment of the present invention.

[0037] The embodiment of the present invention provides a data-driven sewage treatment optimization method, which can be implemented by a data-driven sewage treatment optimization device, which can be a terminal or a server. The processing flow of the data-driven sewage treatment optimization method can include the following steps:

[0038] S1: Get a sample dataset.

[0039] The sample data set includes multiple training samples, each of which contains data such as dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge, energy consumption, dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and sewage treatment quality.

[0040] S2: According to the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples, the energy consumption regression equation is determined through the multivariate linear regression algorithm.

[0041] In a possible implementation, the energy consumption regression equation is specifically:

[0042]

[0043] Among them, E represents energy consumption, t0 represents the starting time, ΔT represents the statistical period, t represents time, Q O Indicates the dissolved oxygen flow rate, used to control the concentration of dissolved oxygen, Q O (t) represents the dissolved oxygen flow rate at time t, Q I Indicates the internal reflux flow rate, which is used to control the concentration of nitrogen and nitrate nitrogen, Q I (t) represents the internal reflow flow at time t, Q R Represents the external reflux flow rate, used to control the suspended solids concentration, Q R (t) represents the external return flow at time t, Q W represents the sludge discharge, Q W (t) represents the sludge discharge at time t, and β0, β1, β2, β3 and β4 represent the regression coefficients of the energy consumption regression equation.

[0044] Specifically, the established multivariate linear regression model can be fitted by the least squares method to obtain the coefficients of the regression equation.

[0045] In the present invention, the multiple linear regression algorithm can flexibly handle the complex relationship between multiple independent variables. In the energy consumption regression equation, by considering multiple factors such as dissolved oxygen flow, internal reflow flow, external reflow flow and sludge discharge, their influence on energy consumption can be analyzed more comprehensively, rather than being limited to a single factor.

[0046] Optionally, the dissolved oxygen flow rate is specifically:

[0047]

[0048] Among them, S O Indicates dissolved oxygen concentration, S O (t) represents the dissolved oxygen concentration at time t, V k represents the volume of the kth reaction cell, a k represents the dissolved oxygen transfer coefficient of the kth reaction tank, a k (t) represents the dissolved oxygen transfer coefficient of the kth reaction tank at time t, and K represents the total number of reaction tanks.

[0049] It should be noted that the dissolved oxygen flow rate can be calculated by multiplying the dissolved oxygen concentration, volume and dissolved oxygen transfer coefficient in each reaction tank, and then summing the contributions of all reaction tanks. This equation reflects the dynamic changes of dissolved oxygen in the sewage treatment system and takes into account the influence of different reaction tanks.

[0050] S3: According to the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and the corresponding sewage treatment quality in the training samples, the sewage treatment quality regression equation is determined through the multivariate linear regression algorithm.

[0051] In a possible implementation, the energy consumption regression equation is specifically:

[0052]

[0053] Where, Qu represents the sewage treatment quality, S O Indicates dissolved oxygen concentration. There is a correlation between dissolved oxygen concentration and dissolved oxygen flow rate. S O (t) represents the dissolved oxygen concentration at time t, S NO Indicates the nitrate nitrogen concentration, which is correlated with the internal reflux flow rate. NO (t) represents the nitrate nitrogen concentration at time t, S N Indicates nitrogen concentration, which is correlated with internal reflux flow rate. N (t) represents the nitrogen concentration at time t, S S Indicates the suspended matter concentration, which is correlated with the external return flow rate. S (t) represents the suspended solids concentration at time t, and γ0, γ1, γ2, γ3 and γ4 represent the regression coefficients of the sewage treatment quality regression equation.

[0054] Similarly, the established multivariate linear regression model can be fitted by the least squares method to obtain the coefficients of the regression equation.

[0055] It should be noted that the quality of sewage treatment is usually affected by multiple factors, including dissolved oxygen concentration, nitrogen concentration, suspended solids concentration, etc. By establishing a multiple linear regression model, the impact of these factors on the quality of sewage treatment can be comprehensively considered, making the model more comprehensive.

[0056] In the present invention, the energy consumption regression equation is determined by a multiple linear regression algorithm according to the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples. The sewage treatment quality regression equation is determined by a multiple linear regression algorithm according to the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and corresponding sewage treatment quality in the training samples, instead of directly adopting the determination method of energy consumption and sewage treatment quality in the traditional ASM model. The applicability and flexibility of the sewage optimization method for various sewage optimization technologies are improved, which is more in line with the actual data-driven optimization needs, helps to improve the accuracy of control in the sewage optimization treatment process, improve the sewage treatment optimization effect, and further improve the sewage treatment efficiency.

[0057] S4: Obtain real-time sewage treatment data.

[0058] S5: Based on real-time sewage treatment data, predict whether sewage exceeds the standard after treatment.

[0059] In a possible implementation, S5 specifically includes: predicting whether the sewage exceeds the standard after treatment through a long short-term memory neural network based on real-time sewage treatment data.

[0060] Among them, the Long Short-Term Memory (LSTM) neural network is a special recurrent neural network (RNN) designed specifically to process and predict time series data, with the long and short-term memory capabilities of memory units. The main feature of the LSTM network is that it has the ability to learn long-term dependencies, which makes it better at processing time series data. Compared with ordinary RNNs, LSTM introduces gating mechanisms, including forget gates, input gates, and output gates. These gating mechanisms can control the flow of information, thereby more effectively processing long-term dependencies in time series.

[0061] In the present invention, the LSTM neural network can learn and capture long-term dependencies in time series data, so it can more accurately predict future sewage treatment conditions. Compared with traditional statistical methods or simple machine learning models, LSTM can usually provide more accurate prediction results.

[0062] In a possible implementation, S5 specifically includes:

[0063] S501: Inputting a sewage treatment data sequence into the long short-term memory neural network, the real-time sewage treatment data sequence includes: dissolved oxygen concentration, nitrate nitrogen concentration, ammonia nitrogen concentration, nitrogen concentration, suspended solids concentration, biological oxygen demand, chemical oxygen demand, total nitrogen concentration and pH value.

[0064] S502: Extract the hidden state at each moment through the long short-term memory neural network:

[0065] I t =Sigmoid(W XI X t +W HI h t-1 +b I )

[0066] F t =Sigmoid(W XF X t +W HF h t-1 +b F )

[0067] O t =Sigmoid(W XO X t +W HO h t-1 +b O )

[0068]

[0069] h t =O t tanh(C t )

[0070] Among them, X t represents the sewage treatment data sequence at time t, I t represents the activation output vector of the input gate at time t, Sigmoid() represents the Sigmoid activation function, and W XI Represents the weight matrix between the word segmentation sequence and the input gate, W HI represents the weight matrix between the hidden state and the input gate, b I represents the bias term of the input gate, F t represents the activation output vector of the forget gate at time t, W XF Represents the weight matrix between the word segmentation sequence and the forget gate, W HF represents the weight matrix between the hidden state and the forget gate, b F represents the bias term of the forget gate, O t represents the activation output vector of the output gate at time t, W XO Represents the weight matrix between the word segmentation sequence and the output gate, W HO represents the weight matrix between the hidden state and the output gate, b O represents the bias term of the output gate, C t represents the activation output vector of the cell storage unit at time t, represents the temporary cell state of the cell storage unit at time t, C t-1 represents the activation output vector of the cell storage unit at time t-1, tanh() represents the tanh activation function, W XC Represents the weight matrix between the word segmentation sequence and the cell storage unit, W HC represents the weight matrix between the hidden state and the cell storage unit, b C represents the bias term of the cell storage unit, h t represents the hidden state at time t, h t-1 represents the hidden state at time t-1, and t represents time.

[0071] S503: Aggregate the hidden states at each moment and predict the index value at the next moment:

[0072]

[0073] Among them, S Nh3 represents the predicted value of effluent ammonia nitrogen concentration, T represents the prediction period, W Nh3 represents the weight matrix of effluent ammonia nitrogen concentration, b Nh3 Indicates the bias term of the outlet ammonia nitrogen concentration, S Ntot Indicates the predicted value of total nitrogen concentration in effluent, W Ntot represents the weight matrix of total nitrogen concentration in effluent water, b Ntot Represents the total nitrogen concentration bias in the outlet water.

[0074] It should be noted that by aggregating the hidden states to predict the index value at the next moment, the stability, accuracy and efficiency of the prediction can be improved, providing more reliable support for the monitoring and control of the sewage treatment process.

[0075] In the present invention, by using the LSTM neural network to process and predict sewage treatment data, the accuracy, real-time and automation of the prediction can be improved, which helps to promptly discover and solve problems in the sewage treatment process and ensure that the quality of sewage treatment meets the specified standards.

[0076] S6: When there is an excess, determine the excess control parameters according to the degree of excess.

[0077] Among them, the indicators that may exceed the standard monitored by the present invention are the effluent ammonia nitrogen concentration and the effluent total nitrogen concentration.

[0078] Ammonia nitrogen refers to the nitrogen dissolved in water in the form of ammonia (NH3) and free ammonia nitrogen (NH4 +) in the form of nitrogen. Ammonia nitrogen in water bodies can cause eutrophication and promote algae growth, thus causing eutrophication problems. The effluent ammonia nitrogen concentration refers to the concentration of ammonia nitrogen in the wastewater after treatment by the sewage treatment plant, usually expressed in milligrams per liter (mg / L) or in the form of ammonia nitrogen. For most sewage treatment plants, controlling the effluent ammonia nitrogen concentration is one of the important indicators to ensure the wastewater treatment effect and water quality compliance.

[0079] Among them, total nitrogen refers to the sum of all forms of nitrogen in the water, including ammonia nitrogen, nitrate nitrogen, nitrite nitrogen, etc. Total nitrogen is an important nutrient in water bodies, but too high a total nitrogen concentration can lead to eutrophication of water bodies, cause excessive growth of algae, affect the ecological balance of water bodies, and even cause harm to aquatic organisms. The total nitrogen concentration in effluent refers to the total concentration of all forms of nitrogen in the wastewater after treatment by the sewage treatment plant, usually expressed in milligrams per liter (mg / L). Monitoring and controlling the total nitrogen concentration in effluent is one of the important indicators to ensure the effective operation of the wastewater treatment system and the protection of the water environment.

[0080] In the present invention, based on the real-time sewage treatment data, it is predicted whether there is any excess in sewage after treatment, and the problem of sewage exceeding the standard is discovered in time. When there is an excess, the excess control parameters are determined according to the degree of excess, and the possibility of excessive emissions is reduced, thereby further reducing the risks of sewage discharge to the environment and public health, reducing water pollution, ecosystem damage and threats to human health.

[0081] In a possible implementation, S6 specifically includes:

[0082] S601: When the effluent ammonia nitrogen concentration exceeds the standard, the external reflux flow rate is increased to dilute the ammonia nitrogen. The increased external reflux flow rate is determined according to the excess amount of the effluent ammonia nitrogen concentration:

[0083] ΔQ R =γ1(S Nh3 -ST Nh3 )

[0084] Among them, Q R Represents the external return flow, ΔQ R represents the external reflux increment, γ1 represents the first conversion coefficient, S Nh3 Indicates the predicted value of effluent ammonia nitrogen concentration, ST Nh3 Indicates the standard value of effluent ammonia nitrogen concentration.

[0085] Among them, those skilled in the art can set the standard value of effluent ammonia nitrogen concentration ST according to actual conditions. Nh3 The present invention does not limit the size of the first conversion coefficient γ1.

[0086] It should be noted that when the ammonia nitrogen concentration in the effluent exceeds the environmental protection standard or treatment target, the ammonia nitrogen concentration in the effluent can be quickly diluted by increasing the external reflux flow rate, thereby alleviating the excessive situation and reducing pollution to the environment.

[0087] S602: When the total nitrogen concentration in the effluent exceeds the standard, the total amount of carbon source is increased to promote the denitrification reaction. The total amount of carbon source to be increased is determined according to the excess amount of the effluent ammonia nitrogen concentration:

[0088] Δq ec =γ2(S Ntot -ST Ntot )

[0089] Among them, q ec represents the total amount of carbon source, Δq ec represents the total amount of carbon source increment, γ2 represents the second conversion coefficient, S Ntot Indicates the predicted value of total nitrogen concentration in effluent, ST Ntot Indicates the standard value of total nitrogen concentration in effluent water.

[0090] Among them, those skilled in the art can set the standard value of total nitrogen concentration in effluent water ST according to actual conditions. Ntot The present invention does not limit the size of the first conversion coefficient γ2.

[0091] It should be noted that by increasing the total amount of carbon source to promote denitrification reaction, the treatment effect of the sewage treatment system can be improved, the emission of nitrogen pollutants can be reduced, and the water environment can be protected. At the same time, it is simple to operate and low in cost, making it an effective sewage treatment strategy.

[0092] S7: When there is no exceeding of the standard, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, in which the energy consumption is determined by the energy consumption regression equation, and the sewage treatment quality is determined by the sewage treatment quality regression equation.

[0093] In a possible implementation, the sewage treatment objective function specifically includes:

[0094] F(θ)=max{λ1f1(θ)+λ2f2(θ)}

[0095]

[0096] f2(θ)=Qu(θ)

[0097] Among them, F() represents the sewage treatment objective function, θ represents the control parameter set, which includes dissolved oxygen flow, internal reflow flow and external reflow flow, f1() represents the energy consumption sub-objective function, f2() represents the sewage treatment quality sub-objective function, E represents energy consumption, Qu represents sewage treatment quality, λ1 represents the weight coefficient of energy consumption item, and λ2 represents the weight coefficient of sewage treatment quality item.

[0098] Among them, those skilled in the art can set the weight coefficient λ1 of the energy consumption item and the weight coefficient λ2 of the sewage treatment quality item according to actual conditions, and the present invention does not limit this.

[0099] Among them, different dissolved oxygen flow rates, internal reflow flow rates and external reflow flow rates will not only affect energy consumption, but also affect the quality of sewage treatment.

[0100] It should be noted that energy consumption and sewage treatment quality are two important indicators in the sewage treatment process, but there is a certain trade-off between them. Through the sewage treatment objective function, the benefits of energy consumption and sewage treatment quality are comprehensively considered, so that the trade-off between the two can be taken into account when optimizing the control parameters to maximize the comprehensive benefits.

[0101] In the present invention, the sewage treatment objective function comprehensively considers the two factors of energy consumption and treatment quality, which helps to strike a balance between energy consumption and treatment quality when optimizing control parameters, improve resource utilization efficiency, achieve environmental protection and sustainable development goals, and optimize the operation strategy of the sewage treatment system.

[0102] S8: According to the sewage treatment objective function, determine the optimal control parameters through the optimization algorithm.

[0103] In a possible implementation, S8 specifically includes: determining optimal control parameters through a genetic algorithm according to the sewage treatment objective function.

[0104] Traditional genetic algorithms are often used for single-objective optimization. The present invention provides a new genetic algorithm for multi-objective optimization.

[0105] The objective function is used as the fitness function of the genetic algorithm.

[0106] Accordingly, the two sub-objective functions serve as sub-fitness functions of the genetic algorithm.

[0107] Furthermore, the function value of the fitness function is called the fitness value, and the function value of the sub-fitness function is called the sub-fitness value.

[0108] Initialize the population Q1, which contains multiple individuals, each of which represents a feasible set of control parameters.

[0109] In traditional genetic algorithms, elite selection or roulette wheel selection is often used for selection, which is prone to premature convergence and fall into a local optimal solution. In order to solve this problem, the present invention proposes a new selection method:

[0110] Based on the Q-Learning algorithm, the individuals in the population are selected to form population Q2.

[0111] The gene space constructed by the population is used as the action strategy space of the Q-Learning algorithm. The change in fitness value after performing a random selection action is used as the immediate reward for performing the selection action. The population is randomly selected and the Q matrix of the Q-Learning algorithm is updated. Then, the selection at the next iteration can be made based on the updated Q matrix:

[0112] Q(S t ,A t )=εQ(S t ,A t )+(1-ε)(R t+1 +μmaxQ(S t+1 , a)-Q(S t ,A t ))

[0113] Among them, S t represents the state at the tth iteration, A t represents the randomly selected action at the tth iteration, Q(S t ,A t ) indicates that in state S t Execute randomly selected action A t Q value, ε represents the learning rate, R t+1 Indicates that in state S t Execute randomly selected action A t The instant reward, μ represents the discount factor, maxQ(S t+1 ,a) represents the next state S t+1 The maximum Q value of the action a that can be selected in , also known as the long-term reward.

[0114] It should be noted that the learning rate ε is used to control the balance between exploration and utilization. When selecting an action, a part of the probability will select a random action for exploration, while another part of the probability will select the action with the maximum Q value in the current state for utilization. This balance enables the algorithm to explore new action spaces while utilizing known optimal actions, thereby better optimizing the individual selection process. The discount factor μ can take into account long-term benefits, and when selecting an action, not only the current immediate reward is considered, but also the possible long-term benefits in the future.

[0115] In the present invention, the idea of ​​reinforcement learning is combined in the selection process. The Q-Learning algorithm can dynamically update the Q value matrix according to the changes in the state and action of the individual, so that the individuals in the population can make appropriate choices according to the current state. This adaptability makes the algorithm have better adaptability and generalization ability. The Q-Learning algorithm combines the strategies of exploration and utilization. By randomly selecting actions and selecting the optimal action based on the Q value, it can use existing empirical knowledge while constantly exploring new selection strategies to achieve a balance between exploration and utilization and avoid falling into a local optimal solution.

[0116] Perform a crossover operation on population Q2, randomly select two individuals from population Q2 as parents, generate a random number, and compare the random number with the crossover probability P e Compare the size, if the random number is less than the crossover probability P e , then the parent is cross-operated to generate new individuals to form population Q3. The generation of new individuals y1 and y2 is as follows:

[0117] y1=ramd×x1+(1-rand)×x2y2=rand×x2+(1-rand)×x1

[0118] Among them, x1 and x2 represent the parent, and rand represents a random number between 0 and 1.

[0119] In the present invention, the crossover operation enables individuals in the population to exchange genetic information, thereby promoting the evolution process of the genetic algorithm. By randomly selecting two individuals for crossover, the excellent characteristics of the parent individuals can be combined to form new offspring individuals, which is conducive to the transmission and mixing of genetic information. At the same time, the crossover operation introduces new individual variants and increases the diversity of the population. By crossing the chromosome parts of two parents, the new individuals produced may have different feature combinations between the parent individuals, thereby enriching the diversity of the population and helping to avoid falling into a local optimal solution.

[0120] Among them, the crossover probability P e Specifically:

[0121]

[0122] Among them, P e represents the crossover probability, P e,max represents the maximum crossover probability, P e,min represents the minimum crossover probability, δ represents the fitness value of the current individual, δ avg represents the average fitness value of the population, δ max Represents the maximum fitness value among individuals.

[0123] In the present invention, the adaptability of the crossover probability allows the algorithm to be adjusted according to the fitness of the current population. When the fitness of the population is high, the crossover probability will increase accordingly to promote the diversity and exploration ability of the genetic algorithm; and when the fitness of the population is low, the crossover probability will decrease to avoid premature convergence to the local optimal solution.

[0124] Perform a mutation operation on population Q3, select a parent x3 from the mutation set, generate a random number, and compare the random number with the mutation probability P m Compare the size. If the random number is less than the mutation probability P, m , then the parent x3 is mutated to generate a new individual y3 to replace the original individual to form a population Q4. The generation method of the new individual y3 is as follows:

[0125]

[0126] Among them, x3 represents the parent, and rand represents a random number between 0 and 1.

[0127] In the present invention, randomness is introduced into the mutation operation, so that individuals in the population can change to a certain extent. By performing random mutation operations on the parent, new individuals with large differences from the parent can be generated, thereby increasing the diversity of the population and helping to avoid falling into a local optimal solution. At the same time, the mutation operation helps to search more widely in the solution space, thereby enhancing the globality of the search. By introducing random mutation operations, individuals in the population can change in different directions, which helps to discover other potential solutions in the solution space and improves the global search ability of the algorithm.

[0128] Specifically, the mutation set is formed as follows:

[0129] Determine the average ranking parameter for each individual:

[0130]

[0131] Among them, RA(x i ) represents the average ranking parameter of the i-th individual, x i represents the i-th individual, RA1(x i ) represents the ranking of the i-th individual in the sub-fitness function constructed with the energy consumption sub-objective function, RA2(x i ) represents the ranking of the i-th individual in the sub-fitness function constructed with the sewage treatment quality sub-objective function.

[0132] Determine the difference parameter between each individual and the worst individual:

[0133]

[0134] Among them, BD(x i ) represents the difference parameter between the ith individual and the worst individual, f1(x i ) represents the sub-fitness value of the i-th individual in the sub-fitness function constructed with the energy consumption sub-objective function, f 1,max represents the sub-fitness value of the best individual in the sub-fitness function constructed with the energy consumption sub-objective function, f 1,min represents the sub-fitness value of the worst individual in the sub-fitness function constructed with the energy consumption sub-objective function, f2(x i ) represents the sub-fitness value of the i-th individual in the sub-fitness function constructed with the sewage treatment quality sub-objective function, f 2,max represents the sub-fitness value of the optimal individual in the sub-fitness function constructed with the sewage treatment quality sub-objective function, f 2,min It represents the sub-fitness value of the worst individual in the sub-fitness function constructed with the sewage treatment quality sub-objective function.

[0135] According to the average ranking parameters of each individual and the difference parameters between them and the worst individual, the comprehensive evaluation parameters of the individual are determined:

[0136] C(x i )=ρ1RA(x i )+ρ2BD(x i )

[0137] Among them, C(x i ) represents the comprehensive evaluation parameter of the ith individual, ρ1 represents the weight coefficient of the average ranking parameter, and ρ2 represents the weight coefficient of the difference parameter between the worst individual and the ith individual.

[0138] Among them, those skilled in the art can set the weight coefficient ρ1 of the average ranking parameter and the weight coefficient ρ2 of the difference parameter between the average ranking parameter and the worst individual according to actual conditions, and the present invention does not limit this.

[0139] It should be noted that the comprehensive evaluation parameter takes into account the individual's ranking in the population and the fitness difference between the individual and the worst individual. The average ranking parameter reflects the relative position of the individual in the entire population, while the fitness difference parameter measures the degree of individual superiority relative to the worst individual. Therefore, the comprehensive evaluation parameter takes into account the position and quality of the individual, and can more comprehensively evaluate the pros and cons of the individual.

[0140] Individuals whose comprehensive evaluation parameters are less than the preset parameter values ​​are put into the mutation set.

[0141] Among them, those skilled in the art can set the size of the preset parameter value according to actual conditions, and the present invention does not limit it.

[0142] In the present invention, individuals whose comprehensive evaluation parameters are less than the preset parameter values ​​are placed in the mutation set, which helps to quickly discover and guide the search towards excellent solutions. This can more centrally perform mutation operations on individuals with improvement potential, accelerate the convergence speed of the algorithm, and improve the search efficiency of the algorithm.

[0143] Furthermore, only individuals whose comprehensive evaluation parameters are less than the preset parameter values ​​are selected and put into the mutation set, and those relatively poor or less typical individuals are selected for change. On the one hand, better genes can be directly retained, and on the other hand, unnecessary computing overhead can be reduced, the efficiency of mutation operations can be improved, which helps to speed up the operation of the algorithm and make the optimization process more efficient.

[0144] Among them, the mutation probability P m Specifically:

[0145]

[0146] Among them, P m represents the mutation probability, P m,max represents the maximum mutation probability, P m,min represents the minimum mutation probability, δ represents the fitness value of the current individual, δ avg represents the average fitness value of the population, δ max Represents the maximum fitness value among individuals.

[0147] In the present invention, the adaptability of the mutation probability allows the algorithm to be adjusted according to the fitness of the current population. When the fitness of the population is high, the mutation probability will increase accordingly to promote the diversity and exploration ability of the genetic algorithm; when the fitness of the population is low, the mutation probability will decrease to avoid premature convergence to the local optimal solution.

[0148] Determine whether the number of iterations has reached the maximum number of iterations. If so, determine the individual with the highest fitness value as the optimal control parameter set. Otherwise, return to the step of selecting individuals in the population and continue iterating.

[0149] In the present invention, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, and then the optimal control parameters are determined through an optimization algorithm based on the sewage treatment objective function. On the basis of considering energy consumption, the sewage treatment quality is included in the optimization target to reduce sewage exceeding the standard, reduce the risk of sewage discharge to the environment and public health, and reduce water pollution, ecosystem damage and threats to human health.

[0150] S9: Control the sewage treatment process according to the optimal control parameters.

[0151] Specifically, the sewage treatment process can be controlled through a PID control algorithm based on optimal control parameters.

[0152] Among them, PID control algorithm is a classic control algorithm, which is widely used in industrial control systems, robot control, automation systems, etc. PID is the abbreviation of Proportional-Integral-Derivative, which stands for proportional, integral and differential controllers respectively.

[0153] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0154] (1) In the present invention, the energy consumption regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples. The sewage treatment quality regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and corresponding sewage treatment quality in the training samples, rather than directly adopting the determination method of energy consumption and sewage treatment quality in the traditional ASM model. The applicability and flexibility of the sewage optimization method for various sewage optimization technologies are improved, which is more in line with the optimization needs driven by actual data, helps to improve the accuracy of control in the sewage optimization treatment process, improve the sewage treatment optimization effect, and further improve the sewage treatment efficiency.

[0155] (2) In the present invention, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, and then determine the optimal control parameters through an optimization algorithm based on the sewage treatment objective function. On the basis of considering energy consumption, sewage treatment quality is included in the optimization target to reduce sewage exceeding the standard, reduce the risk of sewage discharge to the environment and public health, and reduce water pollution, ecosystem damage and threats to human health.

[0156] (3) In the present invention, based on the real-time sewage treatment data, it is predicted whether there is any excess in sewage after treatment, and the problem of sewage exceeding the standard is discovered in time. When there is an excess, the excess control parameters are determined according to the degree of excess, and the possibility of excessive discharge is reduced, thereby further reducing the risks of sewage discharge to the environment and public health, reducing water pollution, ecosystem damage and threats to human health.

[0157] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a data-driven sewage treatment optimization system provided by the present invention.

[0158] The present invention further provides a data-driven sewage treatment optimization system 20, which is applied to the above-mentioned data-driven sewage treatment optimization method, comprising:

[0159] Processor 201;

[0160] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the data-driven sewage treatment optimization method described in the method embodiment is implemented.

[0161] The data-driven sewage treatment optimization system 20 provided in the present invention can execute the above-mentioned data-driven sewage treatment optimization method and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.

[0162] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0163] (1) In the present invention, the energy consumption regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples. The sewage treatment quality regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and corresponding sewage treatment quality in the training samples, rather than directly adopting the determination method of energy consumption and sewage treatment quality in the traditional ASM model. The applicability and flexibility of the sewage optimization method for various sewage optimization technologies are improved, which is more in line with the optimization needs driven by actual data, helps to improve the accuracy of control in the sewage optimization treatment process, improve the sewage treatment optimization effect, and further improve the sewage treatment efficiency.

[0164] (2) In the present invention, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, and then determine the optimal control parameters through an optimization algorithm based on the sewage treatment objective function. On the basis of considering energy consumption, sewage treatment quality is included in the optimization target to reduce sewage exceeding the standard, reduce the risk of sewage discharge to the environment and public health, and reduce water pollution, ecosystem damage and threats to human health.

[0165] (3) In the present invention, based on the real-time sewage treatment data, it is predicted whether there is any excess in sewage after treatment, and the problem of sewage exceeding the standard is discovered in time. When there is an excess, the excess control parameters are determined according to the degree of excess, and the possibility of excessive discharge is reduced, thereby further reducing the risks of sewage discharge to the environment and public health, reducing water pollution, ecosystem damage and threats to human health.

[0166] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0167] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0168] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0169] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0170] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0171] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0172] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0173] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0174] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0175] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0176] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0177] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0178] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the data-driven sewage treatment optimization method as described in the method embodiment is implemented.

[0179] A computer-readable storage medium provided by the present invention can implement the steps and effects of the data-driven sewage treatment optimization method of the above method embodiment. To avoid repetition, the present invention will not go into details.

[0180] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0181] (1) In the present invention, the energy consumption regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples. The sewage treatment quality regression equation is determined by a multiple linear regression algorithm based on the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and corresponding sewage treatment quality in the training samples, rather than directly adopting the determination method of energy consumption and sewage treatment quality in the traditional ASM model. The applicability and flexibility of the sewage optimization method for various sewage optimization technologies are improved, which is more in line with the optimization needs driven by actual data, helps to improve the accuracy of control in the sewage optimization treatment process, improve the sewage treatment optimization effect, and further improve the sewage treatment efficiency.

[0182] (2) In the present invention, the goal is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, internal reflow flow rate and external reflow flow rate are used as control parameters to construct a sewage treatment objective function, and then determine the optimal control parameters through an optimization algorithm based on the sewage treatment objective function. On the basis of considering energy consumption, sewage treatment quality is included in the optimization target to reduce sewage exceeding the standard, reduce the risk of sewage discharge to the environment and public health, and reduce water pollution, ecosystem damage and threats to human health.

[0183] (3) In the present invention, based on the real-time sewage treatment data, it is predicted whether there is any excess in sewage after treatment, and the problem of sewage exceeding the standard is discovered in time. When there is an excess, the excess control parameters are determined according to the degree of excess, and the possibility of excessive discharge is reduced, thereby further reducing the risks of sewage discharge to the environment and public health, reducing water pollution, ecosystem damage and threats to human health.

[0184] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0185] There are a few points to note:

[0186] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.

[0187] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.

[0188] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.

[0189] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A data-driven sewage treatment optimization method, characterized in that: include: S1: Obtain a sample data set, the sample data set comprising a plurality of training samples, each of the training samples comprising dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge, energy consumption, dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and sewage treatment quality; S2: According to the dissolved oxygen flow, internal reflow flow, external reflow flow, sludge discharge and corresponding energy consumption in the training samples, the energy consumption regression equation is determined by a multivariate linear regression algorithm; S3: According to the dissolved oxygen concentration, nitrate nitrogen concentration, nitrogen concentration, suspended solids concentration and the corresponding sewage treatment quality in the training samples, the sewage treatment quality regression equation is determined by a multivariate linear regression algorithm; S4: Obtain real-time sewage treatment data; S5: predicting whether the sewage exceeds the standard after treatment based on the real-time sewage treatment data; S6: When there is an excess, determine the excess control parameters according to the degree of excess; S7: When there is no excess, the target is to minimize energy consumption and optimize sewage treatment quality, and the dissolved oxygen flow rate, the internal return flow rate, and the external return flow rate are used as control parameters to construct a sewage treatment objective function, wherein the energy consumption is determined by the energy consumption regression equation, and the sewage treatment quality is determined by the sewage treatment quality regression equation; S8: Determine the optimal control parameters through an optimization algorithm according to the sewage treatment objective function; S9: Control the sewage treatment process according to the optimal control parameters.

2. The data-driven sewage treatment optimization method according to claim 1, characterized in that: The energy consumption regression equation is specifically: Among them, E represents energy consumption, t0 represents the starting time, ΔT represents the statistical period, t represents time, Q O Indicates the dissolved oxygen flow rate, used to control the concentration of dissolved oxygen, Q O (t) represents the dissolved oxygen flow rate at time t, Q I Indicates the internal reflux flow rate, which is used to control the concentration of nitrogen and nitrate nitrogen, Q I (t) represents the internal reflow flow at time t, Q R Represents the external reflux flow rate, used to control the suspended solids concentration, Q R (t) represents the external return flow at time t, Q W represents the sludge discharge, Q W (t) represents the sludge discharge at time t, and β0, β1, β2, β3 and β4 represent the regression coefficients of the energy consumption regression equation.

3. The data-driven sewage treatment optimization method according to claim 1 is characterized in that: The energy consumption regression equation is specifically: Where, Qu represents the sewage treatment quality, S O Indicates dissolved oxygen concentration. There is a correlation between dissolved oxygen concentration and dissolved oxygen flow rate. S O (t) represents the dissolved oxygen concentration at time t, S NO Indicates the nitrate nitrogen concentration, which is correlated with the internal reflux flow rate. NO (t) represents the nitrate nitrogen concentration at time t, S N Indicates nitrogen concentration, which is correlated with internal reflux flow rate. N (t) represents the nitrogen concentration at time t, S S Indicates the suspended matter concentration, which is correlated with the external return flow rate. S (t) represents the suspended solids concentration at time t, and γ0, γ1, γ2, γ3 and γ4 represent the regression coefficients of the sewage treatment quality regression equation.

4. The data-driven sewage treatment optimization method according to claim 1, characterized in that: The S5 is specifically: Based on the real-time sewage treatment data, a long short-term memory neural network is used to predict whether the sewage exceeds the standard after treatment.

5. The data-driven sewage treatment optimization method according to claim 4 is characterized in that: The S5 specifically includes: S501: Inputting a sewage treatment data sequence into the long short-term memory neural network, wherein the real-time sewage treatment data sequence includes: dissolved oxygen concentration, nitrate nitrogen concentration, ammonia nitrogen concentration, nitrogen concentration, suspended solids concentration, biological oxygen demand, chemical oxygen demand, total nitrogen concentration and pH value; S502: Extract the hidden state at each moment through the long short-term memory neural network: I t =Sigmoid(W XI X t +W HI h t-1 +b I ) F t =Sigmoid(W XF X t +W HF h t-1 +b F ) O t =Sigmoid(W XO X t +W HO h t-1 +b O ) h t =O t ·tanh(C t ) Among them, X t represents the sewage treatment data sequence at time t, I t represents the activation output vector of the input gate at time t, Sigmoid() represents the Sigmoid activation function, and W XI Represents the weight matrix between the word segmentation sequence and the input gate, W HI represents the weight matrix between the hidden state and the input gate, b I represents the bias term of the input gate, F t represents the activation output vector of the forget gate at time t, W XF Represents the weight matrix between the word segmentation sequence and the forget gate, W HF represents the weight matrix between the hidden state and the forget gate, b F represents the bias term of the forget gate, O t represents the activation output vector of the output gate at time t, W XO Represents the weight matrix between the word segmentation sequence and the output gate, W HO represents the weight matrix between the hidden state and the output gate, b O represents the bias term of the output gate, Ct represents the activation output vector of the cell storage unit at time t, represents the temporary cell state of the cell storage unit at time t, C t-1 represents the activation output vector of the cell storage unit at time t-1, tanh() represents the tanh activation function, W XC Represents the weight matrix between the word segmentation sequence and the cell storage unit, W HC represents the weight matrix between the hidden state and the cell storage unit, b C represents the bias term of the cell storage unit, h t represents the hidden state at time t, h t-1 represents the hidden state at time t-1, and t represents time; S503: Aggregate the hidden states at each moment and predict the index value at the next moment: Among them, S Nh3 represents the predicted value of effluent ammonia nitrogen concentration, T represents the prediction period, W Nh3 represents the weight matrix of effluent ammonia nitrogen concentration, b Nh3 Indicates the bias term of the outlet ammonia nitrogen concentration, S Ntot Indicates the predicted value of total nitrogen concentration in effluent, W Ntot represents the weight matrix of total nitrogen concentration in effluent water, b Ntot Represents the total nitrogen concentration bias in the outlet water.

6. The data-driven sewage treatment optimization method according to claim 1, characterized in that: The S6 specifically includes: S601: When the effluent ammonia nitrogen concentration exceeds the standard, the external reflux flow rate is increased to dilute the ammonia nitrogen. The increased external reflux flow rate is determined according to the excess amount of the effluent ammonia nitrogen concentration: △Q R =γ1(S Nh3 -ST Nh3 ) Among them, Q R Represents the external return flow, ΔQ R represents the external reflux increment, γ1 represents the first conversion coefficient, S Nh3 Indicates the predicted value of effluent ammonia nitrogen concentration, ST Nh3 Indicates the standard value of effluent ammonia nitrogen concentration; S602: When the total nitrogen concentration in the effluent exceeds the standard, the total amount of carbon source is increased to promote the denitrification reaction. The total amount of carbon source to be increased is determined according to the excess amount of the effluent ammonia nitrogen concentration: Δq ec =γ2(S Ntot -ST Ntot ) Among them, q ec represents the total amount of carbon source, Δq ec represents the total amount of carbon source increment, γ2 represents the second conversion coefficient, S Ntot Indicates the predicted value of total nitrogen concentration in effluent, ST Ntot Indicates the standard value of total nitrogen concentration in effluent water.

7. The data-driven wastewater treatment optimization method according to claim 1, characterized in that: The sewage treatment objective function specifically includes: F(θ)=max{λ1f1(θ)+λ2f2(θ)} f2(θ)=Qu(θ) Among them, F() represents the sewage treatment objective function, θ represents the control parameter set, which includes dissolved oxygen flow, internal reflow flow and external reflow flow, f1() represents the energy consumption sub-objective function, f2() represents the sewage treatment quality sub-objective function, E represents energy consumption, Qu represents sewage treatment quality, λ1 represents the weight coefficient of energy consumption item, and λ2 represents the weight coefficient of sewage treatment quality item.

8. The data-driven sewage treatment optimization method according to claim 1, characterized in that: The S8 is specifically: According to the sewage treatment objective function, the optimal control parameters are determined through a genetic algorithm.

9. A data-driven sewage treatment optimization system, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the data-driven sewage treatment optimization method as described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data-driven sewage treatment optimization method as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Vector quantization codebook designing method based on genetic algorithm

    CN104867164A

  • Coexistence method based on Q learning under non-cooperation

    CN114374977A

  • Multi-objective optimization control method for sewage treatment process of standard-exceeding inhibition strategy

    CN115755618A

  • Sewage treatment process optimization control method based on multi-objective sparrow algorithm

    CN116048022A

  • Optimization control method for sewage treatment process

    CN116360366A

Cited By

  • Aeration control method, device, equipment, medium and program product

    CN119148776A

  • Light quantum technology system for sewage treatment

    CN119660878A

  • Dynamic multi-objective optimization control method for sewage treatment process based on probability and dimension joint prediction

    CN119717523A

  • Multi-phase collaborative purification intelligent treatment system for heavy metal wastewater

    CN121085459A