Carbon source adding safety control method, device and equipment in sewage treatment process and medium

By constructing a denitrifying bacteria activity index and a carbon source addition control strategy model, the carbon source addition action was generated and corrected, which solved the problems of lag and excessive carbon source addition in wastewater treatment, achieved the accuracy and safety of carbon source addition, and ensured that the total nitrogen in the effluent consistently met the standards.

CN123026307APending Publication Date: 2026-11-03XINTONG EMPOWERMENT (CHANGSHA) ARTIFICIAL INTELLIGENCE IND APPLICATION SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611545065.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-08
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

Existing carbon source addition control methods in wastewater treatment suffer from lag, risk of overdosing, difficulty in achieving accuracy, adaptability, and safety, and lack of interpretability and traceability, leading to instability in total nitrogen in effluent.

Method used

By collecting current operating data and equipment operation data of the wastewater treatment system, a denitrifying bacteria activity index is constructed. Combined with a carbon source addition control strategy model, candidate carbon source addition actions are generated and corrected to ensure the safety and accuracy of addition. The denitrifying bacteria activity index, carbon source demand constraints, and environmental constraints are used for correction to generate target carbon source addition actions.

Benefits of technology

It improves the accuracy, adaptability, safety and interpretability of carbon source dosing control, reduces unnecessary carbon source chemical consumption, lowers the risk of excessive chemical oxygen demand in effluent, and ensures that total nitrogen in effluent consistently meets standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123026307A_ABST
    Figure CN123026307A_ABST
Patent Text Reader

Abstract

The application discloses a carbon source adding safety control method, device, equipment and medium in a sewage treatment process, and relates to the technical field of computers, and comprises the following steps: collecting current working condition data and current equipment operation data of a sewage treatment system; determining a denitrifying bacteria activity index and a nitrate nitrogen load based on the current working condition data, determining a carbon source demand gap based on the nitrate nitrogen load and available chemical oxygen demand of an anoxic section; generating a candidate carbon source adding action based on a state vector comprising the carbon source demand gap and the current equipment operation data and a pre-trained carbon source adding control strategy model; correcting the candidate carbon source adding action based on current constraints to obtain a target carbon source adding action; and judging whether a preset control condition is met according to the carbon source adding control strategy model confidence, the denitrifying bacteria activity index and the data measuring point state, and if yes, controlling a carbon source adding equipment to execute adjustment based on the target carbon source adding action. The application improves the accuracy, adaptability and safety of carbon source adding control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, equipment and medium for safe control of carbon source addition in wastewater treatment processes. Background Technology

[0002] In biological nitrogen removal processes for wastewater treatment, the direct target of carbon source addition is the denitrification process in the anoxic zone. Its essence is not simply supplementing chemicals, but rather matching the available carbon source in the anoxic zone with the current activity of denitrifying bacteria and the nitrate nitrogen load to be treated. Traditional carbon source addition methods typically control the process by fixing the carbon-to-nitrogen ratio, controlling the nitrate nitrogen deviation in the anoxic zone, or controlling the total nitrogen deviation in the effluent. While this method is simple to implement, it often suffers from latency and the risk of over-addition.

[0003] Therefore, among the existing carbon source dosing control solutions, some use feedback control of total nitrogen in the effluent or nitrate nitrogen in the anoxic zone to control the carbon source dosage. Although this has a certain degree of automatic adjustment capability, it is prone to catch-up dosing after insufficient dosing or delayed overdosing after a decrease in total nitrogen. Other solutions rely on human experience to control carbon source dosing. Due to the lack of unified quantitative basis, when influent flow rate, nitrogen load, temperature, or internal reflux load changes rapidly, problems such as untimely response, unstable dosage, and difficulty in reviewing control effects may occur. Still others use data-driven optimization models to control carbon source dosing, but if these models are directly used for unconstrained random exploration on-site, there are significant risks, and they are difficult to meet the needs of industrial sites. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a method, apparatus, equipment, and medium for safe control of carbon source addition in wastewater treatment processes. This method addresses the problems existing in current related solutions, improving the accuracy, adaptability, safety, interpretability, and traceability of carbon source addition control while ensuring stable compliance with effluent total nitrogen standards. It also reduces unnecessary carbon source chemical consumption and lowers the risk of effluent chemical oxygen demand exceeding standards. The specific solution is as follows: In a first aspect, this application provides a method for safe control of carbon source addition in a wastewater treatment process, including: During the operation of the wastewater treatment system, current operating condition data and current equipment operation data of the wastewater treatment system are collected; the current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic zone, and influent flow rate; the current equipment operation data includes the status of carbon source dosing equipment. A denitrifying bacteria activity index is constructed based on current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using carbon sources under current operating conditions; The nitrate nitrogen load is determined based on the current operating data, and the carbon source demand gap is determined based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section. Candidate carbon source addition actions are generated based on the current state vector and a pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operating data; Based on the current constraints of denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment, the candidate carbon source addition action is corrected to determine the target carbon source addition action after the correction. Based on the current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data, it is determined whether the preset control conditions are met. When they are met, the carbon source addition equipment is controlled to perform adjustment based on the target carbon source addition action.

[0005] Optionally, the construction of the denitrifying bacteria activity index based on current operating condition data includes: The nitrate nitrogen substrate factor is determined based on the nitrate nitrogen concentration and the nitrate nitrogen half-saturation coefficient. The carbon source factor is determined based on the available chemical oxygen demand and the carbon source conversion factor required for denitrification in the anoxic section. The hypoxic environment factor is determined based on the dissolved oxygen inhibition coefficient and the dissolved oxygen in the hypoxic section of the current operating condition data. The redox potential correction factor is determined based on the first preset correction coefficient and the redox potential in the current operating condition data. The pH correction factor is determined based on the second preset correction coefficient and the pH in the current operating condition data. The temperature correction factor is determined based on the third preset correction coefficient, the reference temperature, and the temperature in the current operating condition data. The sludge activity factor is determined based on the concentration of volatile suspended solids in the mixed liquor from the current operating condition data. A denitrifying bacteria activity index is constructed based on the nitrate substrate factor, the carbon source factor, the anoxic environment factor, the redox potential correction factor, the temperature correction factor, the pH correction factor, and the sludge activity factor.

[0006] Optionally, determining the nitrate nitrogen load based on current operating data includes: The nitrate nitrogen load to be treated in the denitrification process is determined based on the nitrate nitrogen concentration, the nitrite nitrogen concentration, and the influent flow rate.

[0007] Optionally, determining the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section includes: The theoretical carbon source requirement is determined based on the nitrate nitrogen load and the target correction function; wherein, the target correction function is a correction function based on the denitrifying bacteria activity index; The carbon source demand gap is determined based on the theoretical carbon source demand, the available chemical oxygen demand in the anoxic section, the influent flow rate, and the carbon source availability coefficient in the anoxic section.

[0008] Optionally, the step of correcting the candidate carbon source addition action based on the current constraints of denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment to determine the target carbon source addition action includes: A safe and feasible domain for the current operating condition is constructed by using constraints such as denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment. Determine whether the candidate carbon source addition action is within the safe and feasible region to determine the addition action determination result; When the result of the addition action determination is within the safe and feasible domain, the corresponding candidate carbon source addition action is determined as the target carbon source addition action; When the result of the addition action is not within the safe and feasible region, the corresponding candidate carbon source addition action is projected to the adjacent action within the safe and feasible region to obtain the target carbon source addition action.

[0009] Optionally, the step of determining whether the preset control conditions are met based on the current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data includes: Based on the current state vector and the candidate carbon source addition action, the current model confidence of the carbon source addition control strategy model is determined, and it is determined whether the current model confidence is greater than a preset confidence threshold, so as to determine the first judgment result; Determine whether the activity index of the denitrifying bacteria is greater than a preset activity index threshold to determine the second determination result; Determine whether the status of the measuring points corresponding to the current operating data and the current equipment operation data is normal in order to determine the third judgment result; Based on the first judgment result, the second judgment result, and the third judgment result, determine whether the preset control conditions are currently met.

[0010] Optionally, the method further includes: When the first judgment result, the second judgment result, or the third judgment result is negative, it is determined that the preset control condition is not currently met. A new target carbon source addition action is generated using a preset traditional control method, and the carbon source addition device is controlled using the new target carbon source addition action.

[0011] Secondly, this application provides a carbon source dosing safety control device in a wastewater treatment process, comprising: The data acquisition module is used to collect the current operating condition data and current equipment operation data of the wastewater treatment system during its operation. The current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic zone, and influent flow rate. The current equipment operation data includes the status of the carbon source dosing equipment. The activity index construction module is used to construct the denitrifying bacteria activity index based on the current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using a carbon source under the current operating conditions; The demand gap determination module is used to determine the nitrate nitrogen load based on the current operating data, and to determine the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section. The carbon source addition action generation module is used to generate candidate carbon source addition actions based on the current state vector and a pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operating data; The action correction processing module is used to correct the candidate carbon source addition action based on the current denitrifying bacteria activity index constraint, carbon source demand constraint, effluent chemical oxygen demand risk constraint, anoxic environment constraint, and carbon source addition equipment constraint, so as to determine the target carbon source addition action after processing. The carbon source dosing control module is used to determine whether the current preset control conditions are met based on the current model confidence level of the carbon source dosing control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data. When the conditions are met, the module controls the carbon source dosing equipment to perform adjustment based on the target carbon source dosing action.

[0012] Thirdly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the aforementioned carbon source addition safety control method in the wastewater treatment process.

[0013] Fourthly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the steps of the aforementioned carbon source addition safety control method in the wastewater treatment process.

[0014] As can be seen, in this application, during the operation of the wastewater treatment system, current operating condition data and current equipment operating data of the wastewater treatment system are collected; wherein, the current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic section, and influent flow rate; the current equipment operating data includes the status of carbon source dosing equipment; a denitrifying bacteria activity index is constructed based on the current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using carbon sources under the current operating conditions; the nitrate nitrogen load is determined according to the current operating condition data, and a carbon source demand gap is determined based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section; based on the current state vector and pre... A pre-trained carbon source addition control strategy model generates candidate carbon source addition actions. The current state vector includes the denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, and current equipment operating data. Based on current constraints such as denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment constraints, the candidate carbon source addition actions are corrected to determine the target carbon source addition action. The current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and current equipment operating data are used to determine whether the preset control conditions are met. If met, the carbon source addition equipment is controlled to perform adjustment based on the target carbon source addition action.

[0015] In other words, this application first collects the current operating data and equipment operation data of the wastewater treatment system during its operation; then, based on the current operating data, it determines the denitrifying bacteria activity index and nitrate nitrogen load, and uses the nitrate nitrogen load and available chemical oxygen demand (COD) in the anoxic zone to determine the carbon source demand gap; then, it inputs the current state vector, including the denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, and current equipment operation data, into a pre-trained carbon source addition control strategy model to generate candidate carbon source addition actions; then, based on constraints such as the denitrifying bacteria activity index, carbon source demand, effluent COD risk, anoxic environment, and carbon source addition equipment, it corrects the candidate carbon source addition actions to determine the target carbon source addition action; finally, based on the current model confidence of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and current equipment operation data, it determines whether the preset control conditions are met; if so, the target carbon source addition action is executed. This approach can address the problems existing in current solutions, improve the accuracy, adaptability, safety, interpretability, and traceability of carbon source dosing control while ensuring that the total nitrogen in the effluent consistently meets the standards, and reduce unnecessary carbon source chemical consumption, thereby lowering the risk of excessive chemical oxygen demand in the effluent. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0017] Figure 1 This application provides a flowchart of a method for safe control of carbon source addition in a wastewater treatment process; Figure 2 A schematic diagram of a carbon source dosing safety control device in a wastewater treatment process is provided in this application; Figure 3 This application provides a structural diagram of an electronic device. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] Among the existing carbon source dosing control schemes, some use feedback control of total nitrogen in the effluent or nitrate nitrogen in the anoxic zone to control the carbon source dosage. Although this has a certain degree of automatic adjustment capability, it is prone to catch-up dosing after insufficient dosing or delayed overdosing after a decrease in total nitrogen. Others choose to control carbon source dosing based on human experience. Due to the lack of unified quantitative basis, when the influent flow rate, nitrogen load, temperature, or internal reflux load changes rapidly, problems such as untimely response, unstable dosage, and difficulty in reviewing the control effect may occur. Still others use data-driven optimization models to control carbon source dosing, but if these models are directly used for unconstrained random exploration on-site, there are significant risks, and they are difficult to meet the needs of industrial sites.

[0020] Therefore, this application provides a carbon source addition safety control scheme in the wastewater treatment process, which can solve the problems existing in the existing related schemes. Under the premise of ensuring that the total nitrogen in the effluent is stably up to standard, it improves the accuracy, adaptability, safety, interpretability and traceability of carbon source addition control, reduces unnecessary carbon source chemical consumption, and reduces the risk of chemical oxygen demand exceeding the standard in the effluent.

[0021] See Figure 1 As shown in the figure, this invention discloses a method for safe control of carbon source addition in a wastewater treatment process, including: Step S11: During the operation of the wastewater treatment system, collect the current operating condition data and current equipment operation data of the wastewater treatment system; wherein, the current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic section and influent flow rate; the current equipment operation data includes the status of carbon source dosing equipment.

[0022] In this embodiment, for a wastewater treatment system in operation, data such as influent flow rate, nitrate nitrogen in the anoxic zone, nitrite nitrogen, available chemical oxygen demand (COD), dissolved oxygen in the anoxic zone, oxidation-reduction potential, temperature, pH, activated sludge concentration, internal return flow rate, external return flow rate, effluent total nitrogen, effluent COD, carbon source dosage, dosing pump frequency, valve opening, chemical tank level, equipment current, start / stop status, and alarm status are acquired from online instruments, PLCs (Programmable Logic Controllers), DCS (Distributed Control Systems), historical databases, and manual testing systems. This data provides raw operating condition data, equipment data, and data quality indicators for subsequent calculations. It is understood that among the collected data, dosing pump frequency, valve opening, chemical tank level, equipment current, start / stop status, and alarm status represent current equipment operating data, while the rest represent current operating condition data. The carbon source dosage is defined as follows: ; in, for The amount of external carbon source available at all times Add flow rate to carbon source, To determine the effective organic matter concentration of the added carbon source, The carbon source availability coefficient.

[0023] Furthermore, in this embodiment, after data collection, the data may not be usable directly. It can undergo a series of preprocessing operations before proceeding to subsequent processes. Preprocessing operations may include, but are not limited to, data cleaning, time alignment, hysteresis compensation, sliding window statistics, rate of change calculation, and data measurement point quality assessment. Specifically, when abnormal data is detected at a data measurement point, a quality identifier can be generated. Abnormal data includes, but is not limited to, missing values, abrupt changes, out-of-range values, instrument maintenance values, and communication interruption values.

[0024] Furthermore, the direct control object in this embodiment can be the amount of external carbon source added, or it can be the frequency of the adding pump, the set value of the adding flow rate, the opening degree of the adding valve, or the combined start-stop state of multiple adding pumps corresponding to the amount of carbon source added. The following description uses the amount of carbon source added as an example, but it is not limited to this execution form.

[0025] Step S12: Construct a denitrifying bacteria activity index based on current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using carbon sources under current operating conditions.

[0026] In this embodiment, to determine whether the denitrifying bacteria in the current anoxic section have the ability to effectively utilize carbon sources and remove nitrate nitrogen, a denitrifying bacteria activity index can be constructed using the collected data. Specifically: a nitrate nitrogen substrate factor is determined based on the nitrate nitrogen concentration and nitrate nitrogen half-saturation coefficient; a carbon source factor is determined based on the available chemical oxygen demand (COD) in the anoxic section and the carbon source conversion factor required for denitrification; an anoxic environment factor is determined based on the dissolved oxygen inhibition coefficient and the dissolved oxygen in the anoxic section of the current operating data; an oxidation-reduction potential correction factor is determined based on a first preset correction coefficient and the oxidation-reduction potential in the current operating data; a pH correction factor is determined based on a second preset correction coefficient and the pH in the current operating data; a temperature correction factor is determined based on a third preset correction coefficient, a reference temperature, and the temperature in the current operating data; a sludge activity factor is determined based on the mixed liquor volatile suspended solids concentration in the current operating data; and a denitrifying bacteria activity index is constructed based on the nitrate nitrogen substrate factor, the carbon source factor, the anoxic environment factor, the oxidation-reduction potential correction factor, the temperature correction factor, the pH correction factor, and the sludge activity factor.

[0027] Specifically, in this embodiment, the denitrifying bacteria activity index is preferably determined by a combination of nitrate nitrogen substrate factors, carbon source factors, anoxic environment factors, redox potential correction factors, temperature correction factors, pH correction factors, sludge activity factors, and inhibition factors. These factors can be calculated using normalization, threshold segmentation, empirical functions, data-driven estimation, or a combination of these methods. The denitrifying bacteria activity index is: ; in, for Denitrifying bacteria activity index at any time; Nitrate nitrogen substrate factor; Carbon source factor; It is a hypoxic environmental factor; It is a redox potential correction factor; This is a temperature correction factor; It is a pH correction factor; It is a sludge active agent; It is an inhibitory factor; This represents a limiting function that restricts the result to a preset range.

[0028] Nitrate nitrogen substrate factors are used to characterize whether the current nitrate or nitrite nitrogen levels are sufficient to support denitrification. When nitrate nitrogen levels are too low, the carbon source requirement is low; when nitrate nitrogen levels are high and other conditions are suitable, the carbon source utilization requirement of denitrifying bacteria may increase. Nitrate nitrogen substrate factors: ; in, This refers to the nitrate nitrogen equivalent concentration. The half-saturation coefficient of nitrate nitrogen. To prevent the minimum value where the denominator is zero.

[0029] The carbon source factor is used to characterize the sufficiency of existing available carbon sources relative to nitrate nitrogen loading in the anoxic zone. When existing carbon sources are insufficient, additional external carbon sources can be added; when existing carbon sources are sufficient, it is not advisable to continue increasing the dosage. Carbon source factor: ; in, For the hypoxic section, there is already an estimated value of the available chemical oxygen demand. The carbon source conversion factor required for denitrification. This refers to the nitrate nitrogen load. The nitrate nitrogen load is defined as follows: ; in, for The nitrate nitrogen equivalent load that needs to be handled by the denitrification process at all times This refers to the amount of water entering the anoxic zone. This refers to the concentration of nitrate nitrogen. This refers to the concentration of nitrite nitrogen. This is the conversion factor for nitrite nitrogen to nitrate nitrogen equivalent.

[0030] Anaerobic environmental factors are used to characterize the degree to which dissolved oxygen in the anoxic zone inhibits the activity index of denitrifying bacteria. Higher dissolved oxygen levels in the anoxic zone indicate a more easily disrupted anoxic environment and a more readily inhibited denitrifying bacteria activity index. Example of anoxic environmental factors: ; in, Dissolved oxygen in the hypoxic section This represents the dissolved oxygen inhibition coefficient.

[0031] The redox potential correction factor is used to characterize whether the redox state in the anoxic region is suitable for denitrification. When the redox potential deviates from the suitable range, the denitrifying bacteria activity index evaluation result should be lowered. Example of redox potential correction factor: ; in, This represents the redox potential in the anoxic region. The redox potential is a reference value for suitable denitrification. This is the deviation correction factor.

[0032] Temperature correction factors and pH correction factors are used to characterize the effects of environmental conditions on the activity index of denitrifying bacteria. These correction factors can be determined based on process experience, historical data, or model calibration results. Example of a temperature correction factor: ; in, Water temperature For reference temperature, This is the correction factor for denitrification temperature.

[0033] Example of pH correction factor: ; in, The pH reference value is suitable for denitrification. This is the pH deviation correction factor.

[0034] The sludge activity factor is used to characterize the bioreactivity of an activated sludge system containing denitrifying bacteria. This factor can be determined based on mixed liquor suspended solids concentration, mixed liquor volatile suspended solids concentration, sludge age, sludge load, oxygen consumption rate, specific oxygen consumption rate, or a sludge activity estimation model. Example of a sludge activity factor: ; in, The concentration of volatile suspended solids in the mixture. This is a reference value for suitable denitrification.

[0035] Step S13: Determine the nitrate nitrogen load based on the current operating data, and determine the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section.

[0036] In this embodiment, after completing the denitrifying bacteria activity index assessment, nitrate nitrogen load identification and carbon source demand gap calculation will be performed. Specifically, the nitrate nitrogen load to be treated by the denitrification process will be determined based on the nitrate nitrogen concentration, the nitrite nitrogen concentration, and the influent flow rate. The theoretical carbon source demand will be determined based on the nitrate nitrogen load and a target correction function; wherein the target correction function is a correction function based on the denitrifying bacteria activity index; and the carbon source demand gap will be determined based on the theoretical carbon source demand, the available chemical oxygen demand in the anoxic section, the influent flow rate, and the carbon source availability coefficient in the anoxic section.

[0037] Specifically, this embodiment calculates the theoretical carbon source requirement based on the nitrate nitrogen load, target nitrogen load, and denitrifying bacteria activity index of the denitrification process. The theoretical carbon source requirement represents the amount of available organic carbon needed to meet the denitrification target. Theoretical carbon source requirement: ; in, For theoretical carbon source requirements, The conversion factor for denitrification carbon sources. The target remaining nitrate nitrogen load (i.e., the target nitrogen load). This represents the function that takes the positive part. This is a correction function based on the denitrifying bacteria activity index (i.e., the target correction function).

[0038] The carbon source demand gap is calculated based on the available carbon sources in the anoxic zone. If the available carbon sources in the anoxic zone can cover the denitrification demand, no additional carbon source is needed; if a gap exists, candidate addition actions are generated based on the gap. Carbon source demand gap: ; in, To address the carbon source demand gap, This is an estimated value of the available chemical oxygen demand (COD) in the hypoxic section (i.e., the available COD in the hypoxic section). This refers to the amount of water entering the anoxic zone. The available carbon source utilization coefficient in the anoxic section (i.e., the carbon source availability coefficient in the anoxic section).

[0039] In addition, the baseline injection amount can be calculated based on the carbon source demand gap. The baseline injection amount is not the final action and still needs to be subject to safety constraints and projections. Baseline injection amount: ; in, Increase the flow rate of the basic carbon source. To determine the effective organic matter concentration of the added carbon source, For the external carbon source utilization coefficient, To prevent the minimum value where the denominator is zero.

[0040] The direction of carbon source addition can be determined based on the denitrifying bacteria activity index and the carbon source demand gap. When the denitrifying bacteria activity index is higher than the first activity threshold and the carbon source demand gap is greater than the set threshold, an increase in carbon source addition is permitted; when the denitrifying bacteria activity index is between the first and second activity thresholds, only minor adjustments or maintenance are allowed; when the denitrifying bacteria activity index is lower than the second activity threshold, or when the risk of high effluent chemical oxygen demand is high, further increases in carbon source addition are prohibited. Determining the direction of carbon source addition: ; in, Adjusting the direction of carbon source addition The first activity threshold, This is the second activity threshold. The minimum carbon source deficit threshold, Risk of chemical oxygen demand in effluent, This represents the upper limit of the chemical oxygen demand (COD) risk in the effluent. The generated baseline dosage and dosage direction can be used to generate subsequent actions.

[0041] Step S14: Generate candidate carbon source addition actions based on the current state vector and the pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operation data.

[0042] In this embodiment, a current state vector can be generated using the denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, current equipment operating data, and historical control actions or correction records. This current state vector is then input into a pre-trained carbon source dosing control strategy model to generate candidate carbon source dosing actions. These candidate actions can be represented as an increment in the external carbon source dosing flow rate, an increment in the dosing pump frequency, an increment in the valve opening, or a combined start / stop action of multiple dosing pumps.

[0043] It is important to understand that, in this embodiment, the pre-trained carbon source dosing control strategy model is trained offline before deployment. The initial strategy model can be a data-driven optimization model, an expert rule model, or a historical similarity operating condition model. The training process involves organizing the historical operating data of the wastewater treatment system into a sample sequence according to time sequence, with each sample including at least one state. Historical actual deployment actions The state at the next moment or after a certain time delay. The training process considers factors such as changes in denitrifying bacteria activity index, total nitrogen effect, chemical oxygen demand (COD) risk, chemical consumption effect, changes in anoxic environment, and safety events. The preferred action space is incremental carbon source addition, including discrete actions such as decreasing the addition amount, maintaining the addition amount, slightly increasing the addition amount, and moderately increasing the addition amount. Continuous actions can also be used, outputting increments in addition flow rate, pump frequency, or valve opening. The reward function during training can simultaneously consider achieving the target total nitrogen, reducing nitrate nitrogen, the matching degree between denitrifying bacteria activity index and carbon source utilization, COD risk in effluent, carbon source and chemical consumption, safety in anoxic environments, penalties for frequent equipment actions, and safety boundary penalties. Example of a reward function: ; in, Penalty for exceeding total nitrogen limits or deviations. Penalty for insufficient removal of nitrate nitrogen. Risk penalty for effluent chemical oxygen demand. Penalty for carbon source consumption, The penalty for deviating from the hypoxic environment. Penalties for violating safety regulations Punishment based on the frequency of the action. to For weights.

[0044] Furthermore, this embodiment can utilize motion advantages for offline training. For historical throwing motions... The value model is used to calculate the advantage value of an action relative to the average action value under the same conditions. A positive advantage value indicates that the action has better effects on total nitrogen, chemical oxygen demand, pesticide consumption, or safety in hypoxic environments under similar denitrifying bacteria activity index conditions; a negative advantage value indicates that the action is relatively inferior. The model prioritizes learning high-advantage actions and reduces the degree of imitation of low-advantage actions. Action advantage: ; in, Indicates the state Execute action The value of the action, Representing state The average or benchmark value below, This is an advantage in terms of movement.

[0045] In one specific implementation, to prevent the model from learning dangerous actions outside of historical data, behavioral policy constraints, action range constraints, denitrifying bacteria activity index constraints, effluent chemical oxygen demand risk penalties, and uncertainty penalties are introduced during training, so that the output of the strategy model is as close as possible to the feasible addition range verified in historical data.

[0046] Furthermore, in this embodiment, while training the carbon source addition control strategy model offline, a corresponding confidence model can also be trained simultaneously. The confidence model can determine its confidence level based on factors such as the distance between the input state and historical data distribution, model ensemble prediction variance, stability evaluation using the denitrifying bacteria activity index, measurement point quality, number of historical similar samples, and risk score of candidate addition actions. This confidence level is used to determine online whether the carbon source addition actions generated by the strategy model are usable. After training is complete, a basic model can be output. The basic model includes at least the carbon source addition control strategy model, the value model, the confidence model, and the corresponding safety boundary parameters. Before the initial deployment, the basic model is trained only on offline data and not subjected to unconstrained exploration on-site to avoid deployment risks.

[0047] Furthermore, after deploying the carbon source addition control strategy model online in this embodiment, the model can also be optimized. Specifically, the status of each control cycle after deployment, denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, candidate carbon source addition actions, safe carbon source addition actions, the final executed carbon source addition action, model confidence, control mode switching reasons, water quality response, chemical consumption response, energy consumption response, and alarm information are stored as online samples. Time periods of instrument failure, equipment failure, manual intervention, abnormal emissions, or chemical abnormalities are marked to avoid directly using them as high-quality samples for model updates. Online optimization preferably uses periodic offline retraining or small-step updates at the edge, and unconstrained random exploration of the model in the field is not allowed. New samples are only used as positive samples to enhance the model if they meet the conditions of stable water quality, no violation of safety constraints, reliable evaluation of denitrifying bacteria activity index, and traceability of addition effect. In addition, safety boundaries are calibrated during training. Based on long-term operating data, the threshold values ​​for denitrifying bacteria activity index, carbon source demand gap, effluent chemical oxygen demand risk limit, dissolved oxygen limit in anoxic zone, redox potential allowable range, action range limit, and confidence threshold are calibrated to gradually adapt the safe and feasible domain to the actual operating conditions of specific wastewater treatment plants.

[0048] At the same time, after online deployment, risk ledgers and effect reports can be generated, and the percentage of actions generated by the strategy model, the number of control mode switching times, the average carbon source dosage, the carbon source chemical consumption per unit volume of water, the effluent total nitrogen compliance rate, the duration of effluent chemical oxygen demand exceeding the limit, the duration of dissolved oxygen exceeding the limit in the anoxic section, the change in the denitrifying bacteria activity index, and the carbon source utilization effect can be statistically analyzed on a daily, weekly, or monthly basis.

[0049] Step S15: Based on the current constraints of denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source dosing equipment, the candidate carbon source dosing action is corrected to determine the target carbon source dosing action after the correction.

[0050] In this embodiment, after generating the action, it needs to be safely corrected using constraints. Specifically, a safe and feasible domain for the current operating condition is constructed using constraints such as denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source dosing equipment. The candidate carbon source dosing action is then determined to be within this domain to establish the dosing action judgment result. If the dosing action judgment result indicates that it is within the domain, the corresponding candidate carbon source dosing action is identified as the target carbon source dosing action. If the dosing action judgment result indicates that it is not within the domain, the corresponding candidate carbon source dosing action is projected onto an adjacent action within the domain to obtain the target carbon source dosing action. Furthermore, if no action exists within the domain, a control mode switching operation is triggered, switching the control mode from a strategy model-based intelligent control mode to a traditional control mode, and a new carbon source dosing action is generated.

[0051] It is understandable that the safe and feasible domain is not fixed, but rather changes dynamically based on the current denitrifying bacteria activity index and carbon source demand gap. For example, when the denitrifying bacteria activity index is high, the nitrate nitrogen load is high, the carbon source in the anoxic section is insufficient, and the risk of effluent chemical oxygen demand is low, the range of actions to increase carbon source addition is allowed to be appropriately expanded; when the denitrifying bacteria activity index is low, the nitrate nitrogen load is low, the effluent chemical oxygen demand is close to the upper limit, or the dissolved oxygen in the anoxic section is high, the range of actions to increase carbon source addition is narrowed or closed.

[0052] Specifically, the safe and feasible domain is used to restrict the candidate carbon source addition actions output by the carbon source addition control strategy model to within the range allowed by the current operating conditions. It can be composed of the following constraints: 1) The denitrifying bacteria activity index constraint is used to ensure that the carbon source addition action is only allowed to be executed when the denitrifying bacteria activity index meets the requirements. When When the level falls below the second activity threshold, further increases in dosage are prohibited, or only maintaining or decreasing the dosage is permitted. 2) Carbon source demand constraints are used to ensure that increases in carbon source dosage are only permitted when there is an effective carbon source gap. When When the dosage falls below the minimum deficit threshold, further increases in dosage are prohibited, or only maintaining or reducing the dosage is permitted. 3) Upper and lower limits on dosage are used to prevent insufficient denitrification due to excessively low carbon source dosage, or excessively high carbon source dosage leading to increased chemical consumption and a higher risk of increased chemical oxygen demand in the effluent. This constraint can be expressed as: ; in, This represents the lower limit for carbon source addition. This represents the change in the amount of carbon source added. This represents the upper limit for carbon source addition. The carbon source addition flow rate (i.e., the amount of carbon source added).

[0053] 4) Single-action amplitude constraint is used to limit the amplitude of a single adjustment, avoiding impact and controlling oscillations. This constraint can be expressed as: .

[0054] 5) The effluent chemical oxygen demand (COD) constraint is used to ensure that the predicted COD of the effluent after an increase in carbon sources does not exceed the upper limit of the discharge risk. This constraint can be expressed as: ; in, This represents the upper limit of chemical oxygen demand in the effluent. This is a predicted value for the chemical oxygen demand (COD) of the effluent after a certain period of time.

[0055] 6) The anoxic environment constraint is used to ensure that the dosing process does not result in excessively low redox potential, abnormal conditions in the anoxic zone, or excessive accumulation of carbon sources. This constraint can be expressed as: ; in, This is the lower limit of the redox potential in the anoxic region. This represents the predicted redox potential for the anoxic phase after a certain period of time. This represents the upper limit of the redox potential in the anoxic region.

[0056] 7) Subsequent aerobic stage safety constraints are used to prevent excessive carbon source entry into the aerobic stage from causing increased oxygen consumption by heterotrophic bacteria, decreased dissolved oxygen in the aerobic stage, and inhibition of the nitrification process. This constraint can be expressed as: ; in, This represents the predicted dissolved oxygen value for the aerobic phase after a certain period of time. This is the lower limit of dissolved oxygen in the aerobic zone.

[0057] 8) Pump frequency and valve opening constraints ensure that actions can be performed by field equipment, including upper and lower limits for corresponding pump frequency and valve constraints. 9) Action interval constraints prevent frequent adjustments to carbon source injection pumps or valves, including a lower limit for action intervals. 10) Measuring point quality constraints ensure the reliability of key input data. When key measuring points such as nitrate nitrogen, total nitrogen, chemical oxygen demand, dissolved oxygen, oxidation-reduction potential, flow rate, carbon source injection flow rate, or equipment feedback are missing, exceed their range, have not been updated for a long time, or have abnormal quality indicators, intelligent optimization actions are not allowed to directly control field equipment.

[0058] Step S16: Determine whether the current preset control conditions are met based on the current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data. If the conditions are met, control the carbon source addition equipment to perform adjustment based on the target carbon source addition action.

[0059] In this embodiment, after completing the safety correction of the action, it is also necessary to check whether it is usable on site. That is: based on the current state vector and the candidate carbon source addition action, the current model confidence of the carbon source addition control strategy model is determined, and it is determined whether the current model confidence is greater than a preset confidence threshold to determine the first judgment result; it is determined whether the denitrifying bacteria activity index is greater than a preset activity index threshold to determine the second judgment result; it is determined whether the status of the measuring point corresponding to the current working condition data and the current equipment operation data is normal to determine the third judgment result; based on the first judgment result, the second judgment result, and the third judgment result, it is determined whether the current preset control conditions are met. When the first judgment result, the second judgment result, or the third judgment result is negative, it is determined that the current preset control conditions are not met; a new target carbon source addition action is generated using a preset traditional control method, and the carbon source addition device is controlled using the new target carbon source addition action. Understandably, when the conditions are not met, the preset traditional control mode is switched to use. The preset traditional control mode can be fixed carbon-nitrogen ratio control, segmented rule control, proportional-integral-derivative control, feedback control based on total nitrogen or nitrate nitrogen deviation, manual setpoint control, or a combination of the above modes.

[0060] Specifically, the following situations will trigger a control mode switch operation: when key measurement points such as nitrate nitrogen, total nitrogen, chemical oxygen demand (COD), dissolved oxygen, oxidation-reduction potential (ORP), flow rate, or carbon source dosing flow rate are missing, exceed their range, are not updated for a long time, or have abnormal quality labels; when the denitrifying bacteria activity index is lower than the second activity threshold, or the denitrifying bacteria activity index evaluation is unstable; when candidate actions cause predicted effluent COD to exceed the limit, ORP to be abnormal, carbon source chemical consumption to exceed the upper limit, dissolved oxygen in the aerobic section to be insufficient, or the dosing pump to exceed the safe range; when effluent total nitrogen or nitrate nitrogen continuously deteriorates and the model actions fail to improve the trend; when the carbon source dosing pump malfunctions, current is abnormal, valves are stuck, chemical tank level is insufficient, pipeline is blocked, or frequency feedback is abnormal. Even when using the preset traditional control method, the status before and after the control mode switch, candidate carbon source dosing actions, the reason for the control mode switch, and the final effect will be recorded for subsequent offline review. If a certain type of operating condition triggers takeover for a long period of time, that type of operating condition can be added to the retraining samples, or a separate conservative strategy boundary can be set.

[0061] In summary, this embodiment provides a safe and optimized carbon source addition control scheme based on matching the denitrifying bacteria activity index with the carbon source demand gap. The scheme is as follows: 1) Instead of simply adjusting the carbon source according to a fixed carbon-nitrogen ratio, effluent total nitrogen deviation, or nitrate nitrogen deviation in the anoxic zone, a denitrifying bacteria activity index is constructed by comprehensively considering factors such as nitrate nitrogen, nitrite nitrogen, available chemical oxygen demand, dissolved oxygen in the anoxic zone, oxidation-reduction potential, temperature, pH, sludge activity, and retention time. This index is used to characterize the current ability of the anoxic zone to remove nitrate nitrogen using the carbon source.

[0062] 2) A matching control mechanism was proposed, which considers the denitrifying bacteria activity index, nitrate nitrogen load, and carbon source demand gap. Instead of simply adjusting the dosage based on total nitrogen levels, the mechanism uses the denitrifying bacteria activity index to determine whether the added carbon source can be effectively utilized. Then, it calculates the carbon source gap based on the nitrate nitrogen load and existing available carbon sources. Only when an effective carbon source gap exists and the denitrifying bacteria activity index meets the requirements is the addition of an increased amount of added carbon source permitted.

[0063] 3) The carbon source addition is shifted from result feedback control to load matching control constrained by the denitrifying bacteria activity index. This allows for early determination of whether carbon source supplementation is needed based on the denitrifying bacteria activity index, nitrate nitrogen load, and carbon source deficit in the anoxic zone, before the total nitrogen in the effluent is fully reflected, thereby reducing delayed dosing and fluctuations in total nitrogen.

[0064] 4) A dynamic safe and feasible domain based on the denitrifying bacteria activity index was constructed. The safe and feasible domain is not a fixed upper and lower limit for dosing, but rather it is dynamically changed according to the denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, effluent chemical oxygen demand risk, anoxic environment risk, dosing equipment status, and operation interval.

[0065] 5) Combine candidate dosing actions with safety projections. Data-driven optimization models, expert rule models, or historical similarity operating condition models only output candidate carbon source dosing actions. These candidate actions must be constrained by denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and equipment before they can be issued to the carbon source dosing pump or valve.

[0066] 6) A traditional takeover mechanism is set up for low activity index or low confidence level. When the denitrifying bacteria activity index is lower than the set threshold, key measuring points are abnormal, the current operating conditions exceed the historical data distribution, the risk of high chemical oxygen demand in the effluent is high, the dissolved oxygen in the anoxic section is too high, or the dosing equipment is abnormal, it will automatically switch to fixed carbon-nitrogen ratio, segmented rule, proportional-integral-derivative control or manual set value control.

[0067] 7) A closed-loop mechanism has been established, encompassing 'denitrifying bacteria activity index identification, nitrate nitrogen load identification, carbon source addition safety optimization, and operational effect feedback'. The denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, candidate actions, safety projection actions, final execution actions, reasons for connection, water quality response, and chemical consumption changes are continuously recorded and used for model retraining and safety boundary calibration.

[0068] 8) It has strong engineering adaptability. The denitrifying bacteria activity index can be characterized by direct or indirect indicators such as nitrate nitrogen, nitrite nitrogen, available chemical oxygen demand, dissolved oxygen in the anoxic zone, oxidation-reduction potential, temperature, pH, mixed liquor suspended solids concentration, mixed liquor volatile suspended solids concentration, sludge age, denitrification rate, and nitrate nitrogen removal efficiency; the control objects can be carbon source dosage, dosing pump frequency, dosing flow rate, valve opening, or multi-pump combination start-up and shutdown; applicable processes can include A / O, A² / O, oxidation ditch, sequencing batch reactor, membrane bioreactor, and multi-series biological treatment tank systems.

[0069] Furthermore, this solution can be deployed in the host computer, edge computing devices, industrial servers, DCS / PLC control systems, or cloud-edge collaborative platforms of wastewater treatment plants. On-site online instruments and controllers are responsible for collecting operating data and executing dosing actions; edge computing devices or industrial servers are responsible for state construction, calculating the denitrifying bacteria activity index, model reasoning, safety judgment, and action recording; and the PLC or DCS is responsible for the final dosing action distribution and equipment interlock protection.

[0070] Therefore, in this embodiment, the current operating conditions and equipment operation data of the wastewater treatment system are collected first during the operation of the system. Then, the denitrifying bacteria activity index and nitrate nitrogen load are determined based on the current operating conditions data, and the carbon source demand gap is determined using the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section. After that, the current state vector, including the denitrifying bacteria activity index, nitrate nitrogen load, carbon source demand gap, and current equipment operation data, is input into a pre-trained carbon source addition control strategy model to generate candidate carbon source addition actions. Then, the candidate carbon source addition actions are corrected based on the constraints of the denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment to determine the target carbon source addition action. After that, the current model confidence, denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating conditions and current equipment operation data are used to determine whether the preset control conditions are met. If they are met, the target carbon source addition action is executed. This approach can address the problems existing in current solutions, improve the accuracy, adaptability, safety, interpretability, and traceability of carbon source dosing control while ensuring that the total nitrogen in the effluent consistently meets the standards, and reduce unnecessary carbon source chemical consumption, thereby lowering the risk of excessive chemical oxygen demand in the effluent.

[0071] See Figure 2 As shown in the embodiments, this application also discloses a carbon source addition safety control device in the wastewater treatment process, including: Data acquisition module 11 is used to collect current operating condition data and current equipment operation data of the wastewater treatment system during operation; wherein, the current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic zone, and influent flow rate; the current equipment operation data includes the status of carbon source dosing equipment; The activity index construction module 12 is used to construct a denitrifying bacteria activity index based on current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using a carbon source under current operating conditions; The demand gap determination module 13 is used to determine the nitrate nitrogen load based on the current operating data, and to determine the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section. The carbon source addition action generation module 14 is used to generate candidate carbon source addition actions based on the current state vector and the pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operation data; Action correction processing module 15 is used to correct the candidate carbon source addition action based on the current denitrifying bacteria activity index constraint, carbon source demand constraint, effluent chemical oxygen demand risk constraint, anoxic environment constraint and carbon source addition equipment constraint, so as to determine the target carbon source addition action after processing. The carbon source addition control module 16 is used to determine whether the current preset control conditions are met based on the current model confidence of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data. When the conditions are met, the carbon source addition device is controlled to perform adjustment based on the target carbon source addition action.

[0072] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0073] Furthermore, embodiments of this application also disclose an electronic device, Figure 3 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0074] Figure 3This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the carbon source dosing safety control method for the wastewater treatment process disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0075] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0076] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0077] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the carbon source dosing safety control method in the wastewater treatment process disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.

[0078] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned safe control method for carbon source addition in the wastewater treatment process. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0079] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0080] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0081] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0082] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0083] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for safe control of carbon source addition in a wastewater treatment process, characterized in that, include: During the operation of the wastewater treatment system, current operating condition data and current equipment operation data of the wastewater treatment system are collected; the current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic zone, and influent flow rate; the current equipment operation data includes the status of carbon source dosing equipment. A denitrifying bacteria activity index is constructed based on current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using carbon sources under current operating conditions; The nitrate nitrogen load is determined based on the current operating data, and the carbon source demand gap is determined based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section. Candidate carbon source addition actions are generated based on the current state vector and a pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operating data; Based on the current constraints of denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment, the candidate carbon source addition action is corrected to determine the target carbon source addition action after the correction. Based on the current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data, it is determined whether the preset control conditions are met. When they are met, the carbon source addition equipment is controlled to perform adjustment based on the target carbon source addition action.

2. The method for safe control of carbon source addition in wastewater treatment process according to claim 1, characterized in that, The construction of the denitrifying bacteria activity index based on current operating condition data includes: The nitrate nitrogen substrate factor is determined based on the nitrate nitrogen concentration and the nitrate nitrogen half-saturation coefficient. The carbon source factor is determined based on the available chemical oxygen demand and the carbon source conversion factor required for denitrification in the anoxic section. The hypoxic environment factor is determined based on the dissolved oxygen inhibition coefficient and the dissolved oxygen in the hypoxic section of the current operating condition data. The redox potential correction factor is determined based on the first preset correction coefficient and the redox potential in the current operating condition data. The pH correction factor is determined based on the second preset correction coefficient and the pH in the current operating condition data. The temperature correction factor is determined based on the third preset correction coefficient, the reference temperature, and the temperature in the current operating condition data. The sludge activity factor is determined based on the concentration of volatile suspended solids in the mixed liquor from the current operating condition data. A denitrifying bacteria activity index is constructed based on the nitrate substrate factor, the carbon source factor, the anoxic environment factor, the redox potential correction factor, the temperature correction factor, the pH correction factor, and the sludge activity factor.

3. The method for safe control of carbon source addition in wastewater treatment process according to claim 1, characterized in that, The determination of nitrate nitrogen load based on current operating data includes: The nitrate nitrogen load to be treated in the denitrification process is determined based on the nitrate nitrogen concentration, the nitrite nitrogen concentration, and the influent flow rate.

4. The method for safe control of carbon source addition in wastewater treatment process according to claim 1, characterized in that, The determination of the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section includes: The theoretical carbon source requirement is determined based on the nitrate nitrogen load and the target correction function; wherein, the target correction function is a correction function based on the denitrifying bacteria activity index; The carbon source demand gap is determined based on the theoretical carbon source demand, the available chemical oxygen demand in the anoxic section, the influent flow rate, and the carbon source availability coefficient in the anoxic section.

5. The method for safe control of carbon source addition in wastewater treatment process according to any one of claims 1 to 4, characterized in that, The process of correcting the candidate carbon source addition actions based on current constraints such as denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment to determine the target carbon source addition action includes: A safe and feasible domain for the current operating condition is constructed by using constraints such as denitrifying bacteria activity index, carbon source demand, effluent chemical oxygen demand risk, anoxic environment, and carbon source addition equipment. Determine whether the candidate carbon source addition action is within the safe and feasible region to determine the addition action determination result; When the result of the addition action determination is within the safe and feasible domain, the corresponding candidate carbon source addition action is determined as the target carbon source addition action; When the result of the addition action is not within the safe and feasible region, the corresponding candidate carbon source addition action is projected to the adjacent action within the safe and feasible region to obtain the target carbon source addition action.

6. The method for safe control of carbon source addition in wastewater treatment process according to claim 1, characterized in that, The step of determining whether the preset control conditions are met based on the current model confidence level of the carbon source addition control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data includes: Based on the current state vector and the candidate carbon source addition action, the current model confidence of the carbon source addition control strategy model is determined, and it is determined whether the current model confidence is greater than a preset confidence threshold, so as to determine the first judgment result; Determine whether the activity index of the denitrifying bacteria is greater than a preset activity index threshold to determine the second determination result; Determine whether the status of the measuring points corresponding to the current operating data and the current equipment operation data is normal in order to determine the third judgment result; Based on the first judgment result, the second judgment result, and the third judgment result, determine whether the preset control conditions are currently met.

7. The method for safe control of carbon source addition in wastewater treatment process according to claim 6, characterized in that, Also includes: When the first judgment result, the second judgment result, or the third judgment result is negative, it is determined that the preset control condition is not currently met. A new target carbon source addition action is generated using a preset traditional control method, and the carbon source addition device is controlled using the new target carbon source addition action.

8. A safety control device for carbon source addition in a wastewater treatment process, characterized in that, include: The data acquisition module is used to collect the current operating condition data and current equipment operation data of the wastewater treatment system during its operation. The current operating condition data includes nitrate nitrogen concentration, nitrite nitrogen concentration, available chemical oxygen demand in the anoxic zone, and influent flow rate. The current equipment operation data includes the status of the carbon source dosing equipment. The activity index construction module is used to construct the denitrifying bacteria activity index based on the current operating condition data; the denitrifying bacteria activity index is used to characterize the ability of denitrifying bacteria in the anoxic section to remove nitrate nitrogen using a carbon source under the current operating conditions; The demand gap determination module is used to determine the nitrate nitrogen load based on the current operating data, and to determine the carbon source demand gap based on the nitrate nitrogen load and the available chemical oxygen demand in the anoxic section; the carbon source demand gap is used to characterize the difference between the theoretical denitrification carbon source demand and the available carbon source in the anoxic section. The carbon source addition action generation module is used to generate candidate carbon source addition actions based on the current state vector and a pre-trained carbon source addition control strategy model; wherein, the current state vector includes the denitrifying bacteria activity index, the nitrate nitrogen load, the carbon source demand gap, and the current equipment operating data; The action correction processing module is used to correct the candidate carbon source addition action based on the current denitrifying bacteria activity index constraint, carbon source demand constraint, effluent chemical oxygen demand risk constraint, anoxic environment constraint, and carbon source addition equipment constraint, so as to determine the target carbon source addition action after processing. The carbon source dosing control module is used to determine whether the current preset control conditions are met based on the current model confidence level of the carbon source dosing control strategy model, the denitrifying bacteria activity index, and the status of the measuring points corresponding to the current operating data and the current equipment operation data. When the conditions are met, the module controls the carbon source dosing equipment to perform adjustment based on the target carbon source dosing action.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the carbon source addition safety control method in the wastewater treatment process as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the carbon source addition safety control method in the wastewater treatment process as described in any one of claims 1 to 7.