Sewage treatment aeration intelligent control method based on environment priori knowledge
Through intelligent control methods based on prior knowledge of the environment and the use of long-short-term memory neural network models, the problem of relying on artificial fuzzy aeration control in sewage treatment is solved, precise aeration control of sewage treatment is achieved, and treatment efficiency and discharge quality are improved. .
Patent Information
- Application Number
- CN202410723595.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The aeration control of existing sewage treatment plants mainly relies on manual fuzzy control, resulting in slow response speed, low accuracy, strong manual dependence, and inability to ensure accurate aeration volume, resulting in excessive sewage discharge and environmental pollution.
An intelligent control method for sewage treatment aeration based on prior knowledge of the environment is adopted. By acquiring water quality and equipment monitoring data, an adjustable parameter long-short-term memory neural network adaptive model is built to achieve precise control of the blower equipment and adjust the aeration amount.
It improves the intelligent control of sewage biochemical treatment, ensures reasonable oxygen supply during the aeration process, reduces energy consumption, simplifies the process, and ensures that sewage discharge meets standards.
Smart Images

Figure CN118724304A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of sewage treatment, and in particular to an intelligent control method for sewage treatment aeration based on environmental prior knowledge. Background Art
[0002] The discharge of untreated industrial and domestic sewage in excess of standards into natural water bodies will seriously pollute natural water bodies, leading to deterioration of water quality, reduction of biodiversity, and threats to human health; at the same time, harmful substances in these sewage may penetrate into groundwater, further affecting drinking water safety.
[0003] Biochemical treatment of sewage can effectively degrade organic pollutants, reduce harmful substances, improve water quality, protect the ecological environment, and ensure the safety of discharged water bodies. It is a key link in sewage treatment. The aeration process is crucial in the biochemical treatment of sewage. It promotes microbial activity by increasing oxygen supply, effectively decomposes organic pollutants, improves treatment efficiency, and ensures that the effluent quality meets the standards.
[0004] At present, the control of the aeration stage of the biological treatment process of sewage in China is still mainly concentrated on manual fuzzy control. Based on manual experience, the changes in key water quality indicators are used to infer whether the aeration volume is insufficient or excessive, and the blower aeration volume is manually increased or decreased. Through manual fuzzy control, it can respond to water quality changes to a certain extent and maintain stable effluent water quality; but at the same time, it has the disadvantages of slow response speed, low accuracy, strong dependence on manual labor, etc. The operation is complicated and the treatment efficiency is unstable, which easily leads to increased energy consumption, management and maintenance costs, making it difficult to achieve the best sewage treatment effect.
[0005] In summary, the prior art has the problem that the aeration stage relies on manual fuzzy control, which makes it impossible to ensure that the aeration amount can accurately meet the biochemical process, and there is a technical problem that excessive sewage discharge causes environmental pollution; therefore, the present invention proposes an intelligent control method for sewage treatment aeration to improve the technical problems existing in the above-mentioned prior art. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent control method for sewage treatment aeration based on environmental prior knowledge, so as to solve the problems that the existing sewage treatment plant aeration control process relies heavily on manual fuzzy control, resulting in slow response speed, strong manual dependence and low control accuracy.
[0007] To achieve the above object, the present invention adopts the following technical solution: a sewage treatment aeration intelligent control method based on environmental prior knowledge, characterized in that it includes the following steps:
[0008] S100, obtaining a water quality indicator monitoring data set according to water quality indicators in the process of water inlet monitoring, process monitoring and water outlet monitoring;
[0009] S200, collecting equipment data according to the sewage treatment equipment to obtain an equipment condition monitoring data set;
[0010] S300, fusing the water quality index monitoring data set and the equipment working condition monitoring data set, and expanding them into a fused data set with environmental prior knowledge according to environmental prior knowledge;
[0011] S400, building an adjustable parameter long short-term memory neural network adaptive model, wherein the adjustable parameter adaptive model is embedded in a control system terminal of a sewage treatment blower device;
[0012] S500, inputting the fused data into a long short-term memory neural network adaptive model with adjustable parameters, and controlling the sewage treatment blower equipment according to the long short-term memory neural network and the adaptive parameters.
[0013] Furthermore, the step S100 includes the following steps:
[0014] SA100, monitor the water quality of the water samples collected through the water inlet sampling pipe according to the data acquisition device to obtain the water inlet monitoring data set;
[0015] SB100, monitor the water quality of the water sample collected through the sampling tube of the biochemical process section according to the data acquisition device to obtain a biochemical process monitoring data set;
[0016] SC100, according to the data acquisition device, monitors the water quality of the water samples collected through the outlet sampling pipe to obtain the historical outlet monitoring data set.
[0017] Furthermore, in the SA100-SC100, the sampling time of the water inlet monitoring data and the biochemical process monitoring data is the current moment t, and the sampling time of the historical water outlet monitoring data is the previous historical moment t-1; there are multiple data acquisition devices, each of which includes at least two water quality monitors, and the average value is used to avoid accidental errors; the data in the data set are preprocessed, missing values are filled, and outliers are deleted.
[0018] Furthermore, the equipment operating condition monitoring data set includes a digital control monitoring data set and a real-time control monitoring data set; the data types in the equipment operating condition monitoring data set include sewage anaerobic hydraulic retention time data, anoxic hydraulic retention time data, aerobic hydraulic retention time data, sludge transportation time and deep treatment agent addition time.
[0019] Furthermore, the step S300 includes the following steps:
[0020] S310, aligning the water quality index monitoring data set in S100 and the equipment condition monitoring data set in S200 by data rows and data columns, and setting the data interval to the minimum sampling time;
[0021] S320, constructing the difference and percentage difference between the influent water quality and the water quality of the biochemical process section, the influent water quality and the historical effluent water quality, and the biochemical process section water quality and the historical effluent water quality according to the environmental prior knowledge of the removal rate and the removal percentage;
[0022] S330, constructing the multi-day average values of the influent water quality, the water quality of the biochemical process section and the historical effluent water quality based on the environmental prior knowledge of the average value;
[0023] S340, constructing multiple variable comparison values of influent water quality, biochemical process water quality and historical effluent water quality based on environmental prior knowledge of comparison values;
[0024] S350. Based on the environmental prior knowledge of difference, difference percentage, average value and comparison value, the structural characteristics are fused to obtain the fused data of the sewage treatment plant that can be used for model building.
[0025] Furthermore, in the S400, the adjustable parameter long short-term memory neural network controls the information flow through the forget gate, the input gate and the output gate; the forget gate determines how much memory of the previous moment is discarded, the input gate determines the information storage of the current input, and the output gate determines the output state at the current moment; each gate has a corresponding weight matrix and bias parameter;
[0026] The construction method of the adjustable parameter long short-term memory neural network is: by calculating the error on the time step and back-propagating it, the weight and bias of the network are adjusted; during the training process, the input sequence data is output through forward propagation, the loss function is calculated, and then the gradient of each time step is calculated step by step through the back-propagation algorithm, and the parameters of the long short-term memory neural network are continuously updated until the model percentage error is less than 5%, and the temporary adjustable parameters are output at the same time;
[0027] The adjustable parameters of the adaptive model include the number of memory cells, the number of hidden layers of the neural network, and the dimension of the neural network input data.
[0028] Furthermore, the mathematical model of the adjustable parameter long short-term memory neural network is as follows:
[0029]
[0030] F t =σ(w F x t +w F H t-1 +b F )
[0031] I t =σ(w I x t +w I H t-1 +b J )
[0032]
[0033] C t =F t *C t-1 +I t *tanh(w C x t +w C H t-1 +b C )
[0034] O t =σ(w O x t +w O H t-1 +b o )
[0035] H t =O t *tanh(C t-1 )
[0036] in:
[0037] σ(x)=sigmoid(x) is the sigmoid activation function;
[0038] x t is the input value, including the independent variables of the inlet water quality monitoring data set, the independent variables of the biochemical process water quality monitoring data set, the independent variables of the historical effluent water quality monitoring data set, the independent variables of the equipment operating condition monitoring data set, and the independent variables of the water quality characteristics constructed by the environmental priori;
[0039] F t It is the Gate of Oblivion;
[0040] w F is the weight matrix of the forget gate, applied to the current input x t ;
[0041] w F H t-1 is the weight matrix of the forget gate, applied to the hidden state H at the previous moment t-1 ;
[0042] b F is the bias term of the forget gate;
[0043] I t is the input gate;
[0044] w I is the weight matrix of the input gate, applied to the current input x t ;
[0045] w I H t-1 is the weight matrix of the input gate, applied to the hidden state H at the previous moment t-1 ;
[0046] b I is the bias term of the input gate;
[0047] tanh(x) is the hyperbolic tangent activation function;
[0048] C t , C t-1 It is the memory unit state update;
[0049] w C is the weight matrix of the memory cell state, applied to the current input x t and the hidden state H at the previous moment t-1 ;
[0050] b C is the bias term of the memory cell state;
[0051] O t is the output gate, which is the aeration volume of the blower;
[0052] w O is the weight matrix of the output gate, applied to the current input x t ;
[0053] w O H t-1 is the weight matrix of the output gate, applied to the hidden state H at the previous moment t-1 ;
[0054] b o is the bias term of the output gate;
[0055] H t is a hidden state.
[0056] Furthermore, 20% of the fused data in S300 is used for pre-training, and the fused data is used as an input variable to train the long short-term memory neural network and obtain temporary adjustable parameters.
[0057] Furthermore, the step S500 includes the following steps:
[0058] S510, setting the parameters of the long short-term memory neural network as temporary adjustable parameters, inputting 100% of the fusion data into the long short-term memory neural network, and the model outputting the recommended aeration volume of the blower;
[0059] S520, the control module adjusts the direction and size of the guide vanes according to the recommended aeration volume of the blower, thereby affecting the aeration volume and achieving precise control;
[0060] S530, monitoring the water quality of the water samples collected through the real-time effluent sampling tube according to the data acquisition device, obtaining the effluent water quality at time t, and obtaining an effluent monitoring data set;
[0061] S540: Determine whether the water quality index meets the standard. If the water quality pollution index meets the standard, obtain a sewage discharge instruction.
[0062] Beneficial effects of the present invention:
[0063] The method of the present invention has the beneficial effects of reducing energy consumption and simplifying the process; it solves the technical problems in the prior art that the process parameter setting of sewage biochemical treatment depends on manual fuzzy control, resulting in insufficient or excessive oxygen provided by the blower in the sewage treatment aeration process, insufficient or excessive aeration in the sewage treatment biochemical process, resulting in failure to ensure effective biochemical treatment of sewage, and realizes the technical effects of improving the intelligent control of the sewage biochemical treatment aeration process, improving the rationality of the oxygen supply in the aeration process, scientific setting of sewage biochemical treatment process parameters, improving the effectiveness of sewage biochemical treatment, and ensuring that sewage discharge meets the specified index requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a schematic flow diagram of the method of the present invention;
[0065] Figure 2 It is a schematic diagram of sampling positions and timings involved in the method of the present invention;
[0066] Figure 3 It is a flow chart of the construction characteristics of the environmental prior knowledge of the method of the present invention;
[0067] Figure 4 It is a structural schematic diagram of the control system of the method of the present invention. DETAILED DESCRIPTION
[0068] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0069] Example
[0070] like Figure 1 As shown, a sewage treatment aeration intelligent control method based on environmental prior knowledge includes the following steps:
[0071] S100, obtaining a water quality indicator monitoring data set according to water quality indicators in the processes of inlet monitoring, process monitoring and outlet monitoring;
[0072] SA100, monitoring the water quality of the water sample collected through the water inlet sampling pipe according to the data acquisition device to obtain a water inlet monitoring data set, wherein the data acquisition device includes multiple types, and each data acquisition device includes at least two water quality monitors;
[0073] SA110, obtain the past influent sampling dataset of the target sewage treatment plant;
[0074] SA120, according to the past water sampling data set in SA110, perform data preprocessing, fill in missing values, and delete outliers;
[0075] SA130. Calculate the average value of two or more data and configure the parameters of the water quality monitor according to the fluctuation characteristics of water quality indicators.
[0076] SB100, monitoring the water quality of the water sample collected through the sampling tube of the biochemical process section according to the data acquisition device to obtain a biochemical process monitoring data set, wherein the data acquisition device includes multiple types, and each data acquisition device includes at least two water quality monitors;
[0077] SB110, obtain the past process biochemical section sampling data set of the target sewage treatment plant;
[0078] SB120, according to the sampling data set of the past process biochemical section in SB110, perform data preprocessing, fill in missing values, and delete outliers;
[0079] SB130. Calculate the average value of two or more data and configure the parameters of the water quality monitor according to the fluctuation characteristics of water quality indicators.
[0080] SC100, monitoring the water quality of the water samples collected through the water outlet sampling pipe according to the data acquisition device, and obtaining a historical water outlet monitoring data set, wherein the data acquisition device includes multiple types, and each data acquisition device includes at least two water quality monitors;
[0081] SC110, obtain the historical effluent sampling data set of the target sewage treatment plant;
[0082] SC120, according to the historical water sampling data set in SC110, perform data preprocessing, fill in missing values, and delete outliers;
[0083] SC130, calculate the average value of two or more data, and configure the parameters of the water quality monitor according to the fluctuation characteristics of water quality indicators.
[0084] like Figure 2 As shown, the sampling time of the inlet monitoring data and the biochemical process monitoring data is the current moment t, and the sampling time of the historical outlet water quality monitoring data is the previous moment t-1 in history.
[0085] Specifically, in this embodiment, the target sewage treatment plant is a professional sewage treatment organization that adopts biochemical treatment to treat sewage. The sewage undergoes sewage inlet regulation, effluent regulation, anaerobic reaction, anoxic reaction, aerobic reaction, sludge treatment and disposal, deep treatment, and flocculation sedimentation and other sewage biochemical treatment processes in the sewage treatment equipment of the target sewage treatment plant.
[0086] In this embodiment, there are multiple data acquisition devices involved, and each data acquisition device performs its own function to monitor different pollution indicators. For example, the flow detector measures the water volume, the temperature detector measures the temperature, the COD detector measures the COD, the total nitrogen detector measures the total nitrogen content of the sewage, the ammonia nitrogen detector measures the ammonia nitrogen content of the sewage, and the total phosphorus detector measures the total phosphorus content of the sewage; each data acquisition device includes at least two water quality detectors, and the average value is used to avoid accidental errors.
[0087] S200, acquiring an equipment condition monitoring data set by collecting equipment data of the sewage treatment equipment;
[0088] Specifically, in this embodiment, the sewage undergoes sewage inlet regulation, effluent regulation, anaerobic reaction, anoxic reaction, aerobic reaction, sludge treatment and disposal, deep treatment and flocculation sedimentation and other sewage biochemical treatment processes in the sewage treatment equipment of the target sewage treatment plant. The anaerobic hydraulic retention time, anoxic hydraulic retention time, aerobic hydraulic retention time, sludge transportation time, and deep treatment agent addition time of the sewage are adjusted and controlled based on the control system to achieve the construction of anaerobic conditions, anoxic conditions, aerobic conditions, sludge discharge conditions and normal deep treatment conditions of the sewage treatment equipment, so that the sewage can effectively undergo the biochemical treatment process.
[0089] Data collection is performed on the control system used to control the sewage treatment equipment for sewage treatment, and data collection is performed on the actual operation data of the sewage treatment equipment to obtain the equipment condition monitoring data set. The data types in the equipment condition monitoring data set include sewage anaerobic hydraulic retention time data, anoxic hydraulic retention time data, aerobic hydraulic retention time data, sludge transportation time, and deep treatment agent addition time.
[0090] The equipment condition monitoring data set includes digital control monitoring data set and real-time control monitoring data set. The digital control monitoring data set is the sewage anaerobic hydraulic retention time control parameters, anoxic hydraulic retention time control parameters, aerobic hydraulic retention time control parameters, sludge transport time control parameters, and deep treatment agent addition time control parameters obtained by data collection of the control system. The real-time control monitoring data set is the sewage anaerobic hydraulic retention time real-time parameters, anoxic hydraulic retention time real-time parameters, aerobic hydraulic retention time real-time parameters, sedimentation time real-time parameters, drainage time real-time parameters, and blower aeration volume real-time parameters obtained by data collection of sewage treatment equipment.
[0091] S300, such as Figure 3 As shown in the figure, the inlet water quality index, process biochemical section water quality index, historical effluent water quality index and equipment condition monitoring data set are integrated, and the environmental prior knowledge characteristics are constructed; the data fusion is completed by constructing the removal rate, average value and comparison value respectively;
[0092] S310, aligning the influent water quality index, process biochemical section water quality index, historical effluent water quality index and equipment condition monitoring data set by data rows and data columns, and setting the data interval to the minimum sampling time;
[0093] S320, constructing the difference and percentage difference between the influent water quality and the water quality of the biochemical process section, the influent water quality and the historical effluent water quality, and the biochemical process section water quality and the historical effluent water quality according to the environmental prior knowledge of the removal rate and the removal percentage;
[0094] Specifically, the difference and percentage difference between the influent and process biochemical sections include the following: the difference in water volume change between the influent and process biochemical sections, the difference in temperature change between the influent and process biochemical sections, the difference in COD change between the influent and process biochemical sections, the difference in total nitrogen change between the influent and process biochemical sections, the difference in ammonia nitrogen change between the influent and process biochemical sections, and the difference in total phosphorus change between the influent and process biochemical sections. The percentage difference in water volume change between the influent and process biochemical sections, the percentage difference in temperature change between the influent and process biochemical sections, the percentage difference in COD change between the influent and process biochemical sections, the percentage difference in total nitrogen change between the influent and process biochemical sections, the percentage difference in ammonia nitrogen change between the influent and process biochemical sections, and the percentage difference in total phosphorus change between the influent and process biochemical sections.
[0095] The difference and percentage difference between the process biochemical section and the historical effluent include the following: the difference in water volume change between the process biochemical section and the historical effluent, the difference in temperature change between the process biochemical section and the historical effluent, the difference in COD change between the process biochemical section and the historical effluent, the difference in total nitrogen change between the process biochemical section and the historical effluent, the difference in ammonia nitrogen change between the process biochemical section and the historical effluent, and the difference in total phosphorus change between the process biochemical section and the historical effluent. The percentage difference in water volume change between the process biochemical section and the historical effluent, the percentage difference in temperature change between the process biochemical section and the historical effluent, the percentage difference in COD change between the process biochemical section and the historical effluent, the percentage difference in total nitrogen change between the process biochemical section and the historical effluent, the percentage difference in ammonia nitrogen change between the process biochemical section and the historical effluent, and the percentage difference in total phosphorus change between the process biochemical section and the historical effluent.
[0096] The difference and percentage difference between the inlet and historical effluent include the following: the difference in water volume change between the inlet and historical effluent, the difference in temperature change between the inlet and historical effluent, the difference in COD change between the inlet and historical effluent, the difference in total nitrogen change between the inlet and historical effluent, the difference in ammonia nitrogen change between the inlet and historical effluent, and the difference in total phosphorus change between the inlet and historical effluent. The percentage difference in water volume change between the inlet and historical effluent, the percentage difference in temperature change between the inlet and historical effluent, the percentage difference in COD change between the inlet and historical effluent, the percentage difference in total nitrogen change between the inlet and historical effluent, the percentage difference in ammonia nitrogen change between the inlet and historical effluent, and the percentage difference in total phosphorus change between the inlet and historical effluent.
[0097] S330, based on the environmental prior knowledge of the average value, construct the multi-day average values of the influent water quality, the water quality of the biochemical process stage and the historical effluent water quality, including the multi-day average values of 1 day, 2 days, 3 days, 5 days, 10 days and 30 days;
[0098] Specifically, the multi-day average values of a single location of the inlet, process biochemical section, and effluent include the following characteristics: the multi-day average value of the water volume of the inlet, process biochemical section, and effluent; the multi-day average value of the temperature of the inlet, process biochemical section, and effluent; the multi-day average value of the COD of the inlet, process biochemical section, and effluent; the multi-day average value of the total nitrogen of the inlet, process biochemical section, and effluent; the multi-day average value of the ammonia nitrogen of the inlet, process biochemical section, and effluent; the multi-day average value of the total phosphorus of the inlet, process biochemical section, and effluent.
[0099] Multi-day averages of the difference and percentage difference between the influent water quality and the biochemical process section water quality, the influent water quality and the historical effluent water quality, and the biochemical process section water quality and the historical effluent water quality, including the following features: Multi-day averages of all structural features of S320.
[0100] S340, constructing multiple variable comparison values of influent water quality, biochemical process water quality and historical effluent water quality based on environmental prior knowledge of comparison values;
[0101] Specifically, the comparison values of the inlet water and the process biochemical section include the following: the comparison value of COD between the inlet water and the process biochemical section, the comparison value of total nitrogen between the inlet water and the process biochemical section, the comparison value of ammonia nitrogen between the inlet water and the process biochemical section, and the comparison value of total phosphorus between the inlet water and the process biochemical section.
[0102] The comparison values between the process biochemical section and historical effluent include the following: the comparison value of COD between the process biochemical section and historical effluent, the comparison value of total nitrogen between the process biochemical section and historical effluent, the comparison value of ammonia nitrogen between the process biochemical section and historical effluent, and the comparison value of total phosphorus between the process biochemical section and historical effluent.
[0103] The comparison values between the inlet and historical effluent include the following: the comparison value of COD between the inlet and historical effluent, the comparison value of total nitrogen between the inlet and historical effluent, the comparison value of ammonia nitrogen between the inlet and historical effluent, and the comparison value of total phosphorus between the inlet and historical effluent.
[0104] S350. Based on the environmental prior knowledge of difference, difference percentage, average value and comparison value, the structural characteristics are fused to obtain the fused data of the sewage treatment plant that can be used for model building.
[0105] S400, building an adjustable parameter long short-term memory neural network adaptive model, wherein the adjustable parameter long short-term memory neural network adaptive model is embedded in the control system terminal of the sewage treatment blower equipment;
[0106] S410, building a long short-term memory neural network with adjustable parameters, wherein the adjustable parameter adaptive model includes the number of memory cells, the number of hidden layers of the neural network, and the dimension of the neural network input data;
[0107] S420, using 20% of the fused data for pre-training, using the fused data as input variables, training the long short-term memory neural network and obtaining temporary adjustable parameters.
[0108] The mathematical model formula of the long short-term memory neural network is as follows:
[0109]
[0110] F t =σ(w F x t +w F H t-1 +b F )
[0111] I t =σ(w I x t +w I H t-1 +b I )
[0112]
[0113] C t =F t *C t-1 +I t *tanh(w C x t +w C H t-1 +b C )
[0114] O t =σ(w o x t +w o H t-1 +b O )
[0115] H t =O t *tanh(C t-1 )
[0116] in:
[0117] σ(x)=sigmoid(x) is the sigmoid activation function;
[0118] x t is the input value, including the independent variables of the inlet water quality monitoring data set, the independent variables of the biochemical process water quality monitoring data set, the independent variables of the historical effluent water quality monitoring data set, the independent variables of the equipment operating condition monitoring data set, and the independent variables of the water quality characteristics constructed by the environmental priori;
[0119] F t It is the Gate of Oblivion;
[0120] w F is the weight matrix of the forget gate, applied to the current input x t ;
[0121] w F H t-1 is the weight matrix of the forget gate, applied to the hidden state H at the previous moment t-1 ;
[0122] b F is the bias term of the forget gate;
[0123] I t is the input gate;
[0124] w I is the weight matrix of the input gate, applied to the current input x t ;
[0125] w I H t-1is the weight matrix of the input gate, applied to the hidden state H at the previous moment t-1 ;
[0126] b I is the bias term of the input gate;
[0127] tanh(x) is the hyperbolic tangent activation function;
[0128] C t , C t-1 It is the memory unit state update;
[0129] w C is the weight matrix of the memory cell state, applied to the current input x t and the hidden state H at the previous moment t-1 ;
[0130] b C is the bias term of the memory cell state;
[0131] O t is the output gate, which is the aeration volume of the blower;
[0132] w O is the weight matrix of the output gate, applied to the current input x t ;
[0133] w O H t-1 is the weight matrix of the output gate, applied to the hidden state H at the previous moment t-1 ;
[0134] b O is the bias term of the output gate;
[0135] H t is a hidden state.
[0136] The LSTM neural network with adjustable parameters controls the flow of information through the forget gate, input gate and output gate. The forget gate determines how much memory from the previous moment is discarded, the input gate determines the storage of the current input information, and the output gate determines the output state at the current moment. Each gate has a corresponding weight matrix and bias parameters.
[0137] The construction method of the adjustable parameter long short-term memory neural network is to adjust the weights and biases of the network by calculating the error on the time step and back propagating it. During the training process, the input sequence data is output through forward propagation, the loss function is calculated, and then the gradient of each time step is calculated step by step through the back propagation algorithm, and the parameters of the long short-term memory neural network are continuously updated until the model percentage error is less than 5%, and the temporary adjustable parameters are output at the same time.
[0138] Environmental prior knowledge of sewage treatment aeration intelligent control system module such as Figure 4 As shown, the module is embedded in the aerator.
[0139] S500, inputting the fused data into a long short-term memory network model with adjustable parameters, and controlling the sewage treatment blower equipment according to the long short-term memory neural network and the adaptive parameters;
[0140] S510, setting the parameters of the long short-term memory neural network as temporary adjustable parameters, inputting 100% of the fusion data into the long short-term memory neural network, and the model outputting the recommended aeration volume of the blower;
[0141] S520, the control module adjusts the direction and size of the guide vanes according to the recommended aeration volume of the blower, thereby affecting the aeration volume and achieving precise control;
[0142] S530, monitoring the water quality of the water samples collected through the real-time effluent sampling tube according to the data acquisition device, obtaining the effluent water quality at time t, and obtaining an effluent monitoring data set;
[0143] S540: Determine whether the water quality index meets the national standard water quality index. If the water pollution index meets the national standard water quality index, obtain a sewage discharge instruction.
[0144] Comparative Example
[0145] The intelligent control of sewage treatment aeration control based on environmental prior knowledge of the present invention is compared with the traditional artificial fuzzy control, and the results are as follows:
[0146]
[0147] It can be seen that by adopting the method of the present invention, the COD and total nitrogen in the effluent are significantly lower than those by the artificial fuzzy control method, which has obvious advantages.
[0148] The present invention is not limited to the above-mentioned optimal implementation mode. Anyone can derive other various forms of products under the inspiration of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that are the same or similar to those of the present application fall within the protection scope of the present invention.
Claims
1. A sewage treatment aeration intelligent control method based on environmental prior knowledge, characterized in that: The following steps are involved: S100, obtaining a water quality indicator monitoring data set according to water quality indicators in the process of water inlet monitoring, process monitoring and water outlet monitoring; S200, collecting equipment data according to the sewage treatment equipment to obtain an equipment condition monitoring data set; S300, fusing the water quality index monitoring data set and the equipment working condition monitoring data set, and expanding them into a fused data set with environmental prior knowledge according to environmental prior knowledge; S400, building an adjustable parameter long short-term memory neural network adaptive model, wherein the adjustable parameter adaptive model is embedded in a control system terminal of a sewage treatment blower device; S500, inputting the fused data into a long short-term memory neural network adaptive model with adjustable parameters, and controlling the sewage treatment blower equipment according to the long short-term memory neural network and the adaptive parameters.
2. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 1, characterized in that: The step S100 includes the following steps: SA100, monitor the water quality of the water samples collected through the water inlet sampling pipe according to the data acquisition device to obtain the water inlet monitoring data set; SB100, monitor the water quality of the water sample collected through the sampling tube of the biochemical process section according to the data acquisition device to obtain a biochemical process monitoring data set; SC100, according to the data acquisition device, monitors the water quality of the water samples collected through the water outlet sampling pipe to obtain the historical water outlet monitoring data set.
3. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 2, characterized in that: In the SA100-SC100, the sampling time of the water inlet monitoring data and the biochemical process monitoring data is the current moment t, and the sampling time of the historical water outlet monitoring data is the previous historical moment t-1; there are multiple data acquisition devices, each of which includes at least two water quality monitors, and the average value is used to avoid accidental errors; the data in the data set is preprocessed, missing values are filled, and outliers are deleted.
4. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 1, characterized in that: The equipment operating condition monitoring data set includes a digital control monitoring data set and a real-time control monitoring data set; the data types in the equipment operating condition monitoring data set include sewage anaerobic hydraulic retention time data, anoxic hydraulic retention time data, aerobic hydraulic retention time data, sludge transportation time and deep treatment agent addition time.
5. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 1, characterized in that: The step S300 includes the following steps: S310, aligning the water quality index monitoring data set in S100 and the equipment condition monitoring data set in S200 by data rows and data columns, and setting the data interval to the minimum sampling time; S320, constructing the difference and percentage difference between the influent water quality and the water quality of the biochemical process section, the influent water quality and the historical effluent water quality, and the biochemical process section water quality and the historical effluent water quality according to the environmental prior knowledge of the removal rate and the removal percentage; S330, constructing the multi-day average values of the influent water quality, the water quality of the biochemical process section and the historical effluent water quality based on the environmental prior knowledge of the average value; S340, constructing multiple variable comparison values of influent water quality, biochemical process water quality and historical effluent water quality based on environmental prior knowledge of comparison values; S350. Based on the environmental prior knowledge of difference, difference percentage, average value and comparison value, the structural characteristics are fused to obtain the fused data of the sewage treatment plant that can be used for model building.
6. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 1, characterized in that: In the S400, the adjustable parameter long short-term memory neural network controls the information flow through the forget gate, input gate and output gate; the forget gate determines how much memory of the previous moment is discarded, the input gate determines the information storage of the current input, and the output gate determines the output state at the current moment; each gate has a corresponding weight matrix and bias parameter; The method of constructing a LSTM neural network with adjustable parameters is to adjust the weights and biases of the network by calculating the error at the time step and back-propagating it; During the training process, the input sequence data is output through forward propagation calculation, the loss function is calculated, and then the gradient of each time step is gradually calculated through the back propagation algorithm, and the parameters of the long short-term memory neural network are continuously updated until the model percentage error is less than 5%, and temporary adjustable parameters are output at the same time; The adjustable parameters of the adaptive model include the number of memory cells, the number of hidden layers of the neural network, and the dimension of the neural network input data.
7. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 6, characterized in that: The adjustable parameter long short-term memory neural network mathematical model is as follows: F t =σ(w F x t +w F H t-1 +b F ) I t =σ(w I x t +w I H t-1 +b I ) C t =F t *C t-1 +I t *tanh(w C x t +w C H t-1 +b C ) O t =σ(w O x t +w O H t-1 +b0) H t =O t *tanh(C t-1 ) in: σ(x)=sigmoid(x) is the sigmoid activation function; x t is the input value, including the independent variables of the inlet water quality monitoring data set, the independent variables of the biochemical process water quality monitoring data set, the independent variables of the historical effluent water quality monitoring data set, the independent variables of the equipment operating condition monitoring data set, and the independent variables of the water quality characteristics constructed by the environmental priori; F t It is the Gate of Oblivion; w F is the weight matrix of the forget gate, applied to the current input x t ; w F H t-1 is the weight matrix of the forget gate, applied to the hidden state H at the previous moment t-1 ; b F is the bias term of the forget gate; I t is the input gate; w I is the weight matrix of the input gate, applied to the current input x t ; w I H t-1 is the weight matrix of the input gate, applied to the hidden state H at the previous moment t-1 ; b I is the bias term of the input gate; tanh(x) is the hyperbolic tangent activation function; C t , C t-1 It is the memory unit state update; w C is the weight matrix of the memory cell state, applied to the current input x t and the hidden state H at the previous moment t-1 ; b C is the bias term of the memory cell state; O t is the output gate, which is the aeration volume of the blower; w O is the weight matrix of the output gate, applied to the current input x t ; w O H t-1 is the weight matrix of the output gate, applied to the hidden state H at the previous moment t-1 ; b O is the bias term of the output gate; H t is a hidden state.
8. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 7, characterized in that: 20% of the fused data in S300 is used for pre-training, and the fused data is used as input variables to train the long short-term memory neural network and obtain temporary adjustable parameters.
9. A sewage treatment aeration intelligent control method based on environmental prior knowledge according to claim 8, characterized in that: The S500 includes the following steps: S510, setting the parameters of the long short-term memory neural network as temporary adjustable parameters, inputting 100% of the fusion data into the long short-term memory neural network, and the model outputting the recommended aeration volume of the blower; S520, the control module adjusts the direction and size of the guide vanes according to the recommended aeration volume of the blower, thereby affecting the aeration volume and achieving precise control; S530, monitoring the water quality of the water samples collected through the real-time effluent sampling tube according to the data acquisition device, obtaining the effluent water quality at time t, and obtaining an effluent monitoring data set; S540: Determine whether the water quality index meets the standard. If the water quality pollution index meets the standard, obtain a sewage discharge instruction.
Citation Information
Patent Citations
Control method for saving energy of aeration in sewage treatment
CN101833281A
Outlet water quality online monitoring and real-time forecasting system of water reclamation plant and control method thereof
CN102807301A
Sewage treatment aeration intelligent control method and system based on deep learning
CN112782975A
Aeration control system for river ecological restoration and control method thereof
CN113011661A
Aeration control method and device
CN113325702A
Cited By
Coupling control system for deep denitrification of sewage
CN119717499A
