Medicament dynamic proportioning and sludge discharge synergistic reduction method based on effective sludge age
By acquiring and separating parameters of activated sludge mixed liquor, a real-time effective sludge age index is generated, and a chemical response model is constructed to achieve coordinated control of chemical dosing and sludge discharge operations. This solves the problem of disconnection between sludge discharge and chemical dosing, reduces chemical consumption and operating costs, and improves the stability of effluent quality.
Patent Information
- Application Number
- CN202611331394.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
In activated sludge wastewater treatment processes, the lack of coordination between sludge discharge control and chemical dosing control leads to excessive phosphorus removal chemical dosing and increased operating costs.
By acquiring the parameters of the activated sludge mixed liquor from the bioreactor and sludge discharge pipeline, the active and inactive components are separated to generate a real-time effective sludge age index. Combined with the influent total phosphorus load and water temperature, a chemical response model is constructed to generate an optimized chemical dosing ratio scheme. The time axis of chemical dosing and sludge discharge operation is aligned through a collaborative scheduling arbitrator.
It achieves precise coordination between chemical dosing and sludge discharge, reduces chemical consumption and excess sludge discharge, lowers operating costs, and improves the stability of effluent quality and the adaptability of the system.
Smart Images

Figure CN123170802A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wastewater treatment technology, and more specifically, to a method and system for dynamic reagent ratio and synergistic sludge reduction based on effective sludge age. Background Technology
[0002] In activated sludge wastewater treatment processes, biological phosphorus removal achieves phosphorus removal through sludge discharge, requiring the system to maintain a relatively short sludge age to ensure the dominant growth of polyphosphate-accumulating bacteria. Chemical phosphorus removal, on the other hand, removes soluble phosphates by adding phosphorus removal agents such as aluminum and iron salts, converting them into chemical precipitates. In existing technologies, sludge discharge control and chemical dosing control are typically operated as two relatively independent control loops. The former is adjusted based on sludge concentration or sludge age, while the latter is added based on influent total phosphorus load or effluent total phosphorus feedback. Due to the lack of an effective coordination mechanism between the two control loops, in actual operation, sludge discharge and chemical dosing are prone to disconnect in terms of timing and effectiveness, leading to overdosing of phosphorus removal agents and increased operating costs. Summary of the Invention
[0003] In view of the above problems, the present invention provides a method for dynamic formulation of reagents and synergistic sludge reduction based on effective sludge age, the method comprising:
[0004] Step 1: Obtain the characterization parameters of the first activated sludge mixture in the bioreactor of the target wastewater treatment system and the characterization parameters of the second activated sludge mixture in the sludge discharge pipeline. Separate the active and inactive components of the first and second activated sludge mixture characterization parameters respectively to generate the characterization values of effective activated sludge concentration and ineffective suspended solids concentration in the bioreactor, as well as the characterization values of effective activated sludge concentration and ineffective suspended solids concentration in the sludge discharge pipeline.
[0005] Step 2: Based on the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value, combined with the total sludge concentration of the bioreactor and the daily sludge discharge, a real-time effective sludge age index is generated.
[0006] Step 3: Based on the deviation direction and rate of change of the real-time effective sludge age index from the preset effective sludge age target range, generate a sludge discharge strategy adjustment signal. The sludge discharge strategy adjustment signal includes the adjustment amount of the sludge discharge pump set start-up timing and the adjustment amount of the duration of a single sludge discharge.
[0007] Step four: Using the deviation between the real-time effective sludge age index and the preset effective sludge age target range as the first driving signal, and the total phosphorus load of the influent of the target wastewater treatment system as the second driving signal, the sludge discharge strategy adjustment signal generated in step three is obtained. The change in the sludge discharge pump group operating frequency or single running time contained in the sludge discharge strategy adjustment signal is converted into an estimated disturbance value of the effective activated sludge concentration in the bioreactor. The estimated disturbance value is used as the feedforward compensation signal. A pre-constructed reagent response model is called. The input variables of the reagent response model include at least the first driving signal, the second driving signal, and the feedforward compensation signal. Multi-objective optimization processing is performed to generate an optimized reagent dosing ratio scheme for the current time period.
[0008] Step 5: Input the optimized reagent dosage ratio scheme and the sludge discharge strategy adjustment signal into the collaborative scheduling arbitrator. The collaborative scheduling arbitrator performs time axis alignment processing based on the time scale difference between the reagent action response time and the sludge discharge system response time, and generates a reagent dosing instruction sequence and a sludge discharge pump group control instruction sequence.
[0009] The chemical dosing command sequence and the sludge pump group control command sequence are interleaved on the time axis, so that the disturbance of sludge concentration in the biological system caused by sludge discharge operation is matched with the compensation effect of chemical dosing in time; the real-time effective sludge age index is the core constraint variable used to coordinate the control of chemical dosing and sludge discharge during the actual operation of the target wastewater treatment system.
[0010] Based on the above, this invention uses the effective sludge age as a common constraint variable for sludge discharge control and chemical dosing control, enabling two originally relatively independent control loops to operate collaboratively under the same objective function. This effectively overcomes the shortcomings of traditional control architectures, such as misalignment in sludge discharge operation and chemical dosing timing, and inappropriate cancellation or superposition of effects. The effective sludge age index, obtained through online separation of active and inactive components, eliminates the interference of inert suspended solids on the control baseline, ensuring an accurate correspondence between the adjustment direction of the sludge discharge strategy and changes in the influent total phosphorus load.
[0011] Differential sludge discharge adjustment achieved through joint judgment of deviation direction and rate of change, coupled with a cascaded transmission mechanism from sludge discharge strategy adjustment signal to estimated disturbance value and then to feedforward compensation signal, ensures that the adjustment of reagent dosage precedes the actual occurrence of sludge discharge disturbance, changing the lag mode of passive response in traditional feedback control. The pre-compensation and post-compensation time axis misalignment of the collaborative scheduling arbitrator ensures precise correspondence between disturbance and compensation in the time dimension, avoiding fluctuations in effluent quality during disturbances and preventing reagent waste due to overcompensation. Asymmetric multivariate weighted superposition logic ensures that the reagent dosage direction remains reasonable under the sign combination of the two driving factors: effective sludge age deviation and influent total phosphorus load. A lower limit protection with a difference not less than zero enhances system safety under extreme conditions. The temperature compensation mechanism and adaptive updating of the preset activity threshold enable the method to automatically adapt to seasonal changes and sludge property evolution under all-weather operation conditions, significantly reducing the frequency of manual adjustments. Long-term statistical analysis and safety limit protection further ensure the stability and reliability of the method in continuous industrial operation environments, reducing the fluctuation range of effluent water quality and effectively reducing the consumption of chemical reagents and the discharge of excess sludge. Attached Figure Description
[0012] Figure 1 This is a flowchart illustrating the method provided in an embodiment of the present invention;
[0013] Figure 2 This is a schematic diagram comparing the predicted and measured values of total phosphorus concentration in the effluent of this invention.
[0014] Figure 3 This is a schematic diagram comparing the cumulative dosage of the present invention with that of the prior art. Detailed Implementation
[0015] like Figures 1-3 As shown.
[0016] This technical solution provides a method and system for dynamic reagent ratio and synergistic sludge reduction based on effective sludge age. The technical details are explained in detail below using a specific application scenario.
[0017] The present invention provides a method for dynamic reagent ratio and sludge reduction based on effective sludge age, applicable to urban wastewater treatment plants or industrial park wastewater treatment systems employing the activated sludge process, particularly suitable for wastewater treatment systems with biological phosphorus removal stages supplemented by chemical phosphorus removal reagents. This method is repeated in control cycles, with each cycle preferably lasting 5 to 15 minutes. A control cycle that is too short will lead to frequent actuator operation and increased equipment wear, while a control cycle that is too long will fail to respond promptly to fluctuations in influent water quality. In specific applications, the control cycle can be set to 10 minutes, depending on the scale of the wastewater treatment system and the severity of water quality fluctuations. The method of the present invention will be described in detail below with reference to specific embodiments.
[0018] I. Data Acquisition and Separation of Active and Inactive Components
[0019] At the beginning of each control cycle, the characterization parameters of the first activated sludge mixture in the bioreactor of the target wastewater treatment system and the characterization parameters of the second activated sludge mixture in the sludge discharge pipeline are first obtained.
[0020] The characterization parameters of the first activated sludge mixed liquor in the bioreactor include at least the first mixed liquor suspended solids concentration (MLSS) and the first mixed liquor volatile suspended solids concentration (MLVSS). The characterization parameters of the second activated sludge mixed liquor in the sludge discharge pipeline include at least the second mixed liquor suspended solids concentration (MLSS) and the second mixed liquor volatile suspended solids concentration (MLVSS). Both indicators are measured using the gravimetric method. Specifically, samples of the mixed liquor are collected from the end of the aerobic zone of the bioreactor and from the sludge discharge pipeline sampling point before the sludge discharge pump inlet. Sampling at both points should be completed within the same time window, and the width of the time window should not exceed one-third of the current control cycle. If the sampling point on the sludge discharge pipeline is far from the bioreactor, and there is a time delay in the transmission of the mixed liquor in the pipeline, the hydraulic retention time needs to be calculated based on the length, diameter, and sludge discharge flow rate of the sludge discharge pipeline. The sampling time of the second activated sludge mixed liquor characterization parameter should be shifted forward by this delay relative to the first parameter to ensure that the two characterization parameters reflect the state of the same batch of sludge.
[0021] After obtaining MLSS and MLVSS, the active and inactive components of the two sets of characterization parameters were separated.
[0022] For the first set of characterization parameters in the bioreactor, the first ratio of the concentration of volatile suspended solids (MLVSS) to the concentration of MLSS in the first mixed liquor is calculated, i.e., the ratio of MLVSS to MLSS. This first ratio is compared with a preset activity threshold. The preset activity threshold is a pre-defined criterion with a value ranging from 0.4 to 0.6, preferably 0.5. When the first ratio is greater than or equal to the preset activity threshold, the corresponding sludge is marked as an active component; when the first ratio is less than the preset activity threshold, the corresponding sludge is marked as an inactive component. It should be noted that the "marking" here does not refer to individual marking of every suspended particle in the mixed liquor, but rather a statistical division—based on the comparison result of the MLVSS to MLSS ratio and the preset activity threshold, the total amount of MLSS is proportionally divided into active and inactive components. Specifically, when the ratio of MLVSS to MLSS is greater than or equal to a preset activity threshold, all MLVSS are considered the concentration of active components, and the concentration of inactive components is zero; when the ratio is less than the preset activity threshold, the concentration of active components is zero, and all MLSS are considered inactive components. The sum of the concentrations of all active components is used to obtain the characterization value of the effective activated sludge concentration in the bioreactor; the sum of the concentrations of all inactive components is used to obtain the characterization value of the ineffective suspended solids concentration in the bioreactor.
[0023] The second set of characterization parameters in the sludge discharge pipeline is processed using the same method. A second ratio is calculated between the volatile suspended solids concentration and the total suspended solids concentration in the second mixed liquor. This second ratio is compared to a preset activity threshold. When the second ratio is greater than or equal to the preset activity threshold, the corresponding sludge is marked as an active component; when the second ratio is less than the preset activity threshold, the corresponding sludge is marked as an inactive component. The sum of the concentrations of all active components is calculated to obtain the effective activated sludge concentration characterization value in the sludge discharge pipeline; the sum of the concentrations of all inactive components is calculated to obtain the ineffective suspended solids concentration characterization value in the sludge discharge pipeline.
[0024] Through the above separation process, the active microbial community in the mixed liquor is distinguished from inert substances, inorganic suspended solids, and dead or decaying microbial cells, providing accurate active component data for subsequent calculation of effective sludge age.
[0025] II. Generation of Real-Time Effective Sludge Age Indicators
[0026] After obtaining the effective activated sludge concentration characterization values in the bioreactor and the sludge discharge pipeline, the real-time effective sludge age index is generated by combining the total sludge concentration in the bioreactor with the daily sludge discharge volume.
[0027] First, the effective activated sludge concentration in the bioreactor is multiplied by the effective volume of the bioreactor to obtain the total effective activated sludge volume in the bioreactor. The effective volume of the bioreactor refers to the actual volume occupied by the mixed liquor in the aeration tank or bioreactor, in cubic meters. This value is determined during the design phase and stored in the configuration parameters of the control system.
[0028] Next, the total daily sludge discharge is multiplied by the characterization value of the effective activated sludge concentration in the sludge discharge pipeline to obtain the daily effective activated sludge discharge amount. Here, "total daily sludge discharge" does not refer to the amount of sludge that has not yet occurred that day, but rather the cumulative total sludge discharge within the past 24-hour sliding window up to the current moment. Specifically, the control system records in real time the duration of each sludge discharge operation, the sludge discharge flow rate, and the effective activated sludge concentration in the sludge discharge pipeline. These data are accumulated within the 24-hour sliding window to obtain the daily effective activated sludge discharge amount. If the system has just started operating for less than 24 hours, the cumulative value within the actual operating time is proportionally converted to a 24-hour equivalent value.
[0029] Finally, the total effective activated sludge volume is divided by the daily effective activated sludge discharge to obtain the real-time effective sludge age index. This index is measured in days and represents the average residence time of activated sludge in the current bioreactor. Unlike traditional sludge age, the real-time effective sludge age index used in this invention only includes metabolically active sludge components, excluding interference from inert suspended solids and inactive organisms. Therefore, it can more accurately reflect the actual residence time of active microorganisms such as polyphosphate-accumulating bacteria within the system.
[0030] III. Generation of Sludge Discharge Strategy Adjustment Signals
[0031] After obtaining the real-time effective sludge age index, a sludge discharge strategy adjustment signal is generated based on the deviation direction and rate of change of the index from the preset effective sludge age target range.
[0032] The preset effective sludge age target range is a pre-defined reasonable range for the effective sludge age. For wastewater treatment systems employing biological phosphorus removal processes, the lower limit of this target range is preferably 5 days, and the upper limit is preferably 15 days. When the effective sludge age is less than 5 days, the residence time of polyphosphate-accumulating bacteria in the system is insufficient, and the biological phosphorus removal capacity cannot be fully utilized; when the effective sludge age is greater than 15 days, sludge aging accelerates, the proportion of active components decreases, and sludge settling performance may deteriorate. The specific values of this target range can be manually set based on factors such as the design influent water quality, discharge standards, and sludge settling characteristics of the target wastewater treatment system, and are stored as configuration parameters in the control system during system initialization.
[0033] Within each control cycle, the real-time effective sludge age index value at the current moment is compared with the lower limit and upper limit of the preset effective sludge age target range, and different sludge discharge strategies are adjusted according to the comparison results.
[0034] When the real-time effective sludge age index value is lower than the lower limit of the target range, it indicates that the current sludge discharge volume is too large, resulting in insufficient residence time of activated sludge in the system, and the sludge discharge volume needs to be reduced. At this time, a sludge discharge reduction signal is generated. Based on this, the step size for reducing the sludge discharge volume is further determined according to the deviation rate of the real-time effective sludge age index value. The deviation rate is defined as the rate of change of the current real-time effective sludge age index value relative to the previous real-time effective sludge age index value, i.e., the increment per unit time, expressed in days or days per minute. The time interval between the previous moment and the current moment is equal to the control cycle. When the deviation rate is negative, it indicates that the effective sludge age index is deviating from the target range and continuing to decline, and the trend is worsening. At this time, the operating frequency or single-cycle duration of the sludge discharge pump group is reduced with a first reduction step size. The first reduction step size is a relatively large adjustment step size, such as reducing the operating frequency of the sludge discharge pump group by 10% to 15% of the current frequency, or shortening the duration of a single sludge discharge by 10% to 15% of the current duration. When the rate of change of the deviation is positive, it indicates that the effective sludge age index is recovering toward the target range and the trend is improving. At this time, the operating frequency or single running time of the sludge pump group should be reduced by a second reduction step smaller than the first reduction step, for example, by reducing the current frequency by 3% to 8%, in order to avoid over-adjustment.
[0035] When the real-time effective sludge age index value is higher than the upper limit of the target range, it indicates that the current sludge discharge volume is insufficient, resulting in excessive residence time of activated sludge in the system, requiring an increase in sludge discharge volume. At this time, a sludge discharge volume increase signal is generated. When the deviation rate of change is positive, it indicates that the effective sludge age index is deviating from the target range and continuing to rise, with a worsening trend. The operating frequency or single-cycle duration of the sludge discharge pump group is increased by a first increment, for example, increasing the operating frequency of the sludge discharge pump group by 10% to 15% of the current frequency. When the deviation rate of change is negative, it indicates that the effective sludge age index is falling back towards the target range, with an improving trend. The operating frequency or single-cycle duration of the sludge discharge pump group is increased by a second increment smaller than the first increment, for example, increasing the current frequency by 3% to 8%.
[0036] When the real-time effective sludge age index value is between the lower limit and the upper limit, it indicates that the current sludge discharge strategy is reasonable, and the operating frequency and single running time of the current sludge discharge pump group should remain unchanged.
[0037] To reduce the impact of measurement noise on the calculation of the deviation change rate, a first-order lag filter or moving average filter is applied to the real-time effective sludge age index value before calculating the deviation change rate. If the absolute value of the filtered deviation change rate is less than the preset dead zone threshold, it is considered to be a zero change rate, and the current sludge discharge strategy remains unchanged. When the sign of the deviation change rate changes abruptly, it indicates that the system may have been subjected to external disturbances. In this case, the current control action remains unchanged, and a judgment is made after observing at least one complete control cycle.
[0038] The sludge discharge strategy adjustment signal includes at least the adjustment amount of the sludge pump set start-up timing and the adjustment amount of the duration of a single sludge discharge. For sludge pump sets equipped with variable frequency drives, the start-up timing adjustment is reflected in the adjustment of the operating frequency of the sludge pump set; for power frequency sludge pump sets with only start-stop control functions, the start-up timing adjustment is reflected in advancing or delaying the start time of the sludge pump set, and the duration of a single sludge discharge is reflected in the change of the duration of the current operation of the sludge pump set.
[0039] IV. Calculation of Predicted Disturbance Values and Generation of Feedforward Compensation Signals
[0040] The deviation between the real-time effective sludge age index and the preset effective sludge age target range is used as the first driving signal, and the total phosphorus load of the influent of the target wastewater treatment system is used as the second driving signal. At the same time, the sludge discharge strategy adjustment signal generated in step three is also acquired.
[0041] The changes in the operating frequency or single-cycle duration of the sludge discharge pump set included in the sludge discharge strategy adjustment signal are converted into an estimated disturbance value for the effective activated sludge concentration in the bioreactor. This conversion process is based on the principle of material balance: an increase in the operating frequency of the sludge discharge pump set or an extension of the single-cycle duration means an increase in the volume of mixed liquor extracted from the bioreactor. This mixed liquor contains a certain concentration of effective activated sludge, so the total amount of effective activated sludge in the bioreactor will decrease accordingly. Specifically, the adjustment of the sludge discharge pump set operating frequency is converted into a change in sludge discharge flow rate, which is then multiplied by the characterization value of the effective activated sludge concentration in the sludge discharge pipeline to obtain the mass of additional effective activated sludge discharged per unit time. This mass is divided by the effective volume of the bioreactor to obtain the rate of change of effective activated sludge concentration. This is then multiplied by the duration of the sludge discharge operation to obtain the estimated change in effective activated sludge concentration, i.e., the estimated disturbance value. The estimated disturbance value can be positive or negative—when the sludge discharge rate increases, the estimated disturbance value is negative, indicating that the activated sludge concentration will decrease; when the sludge discharge rate decreases, the estimated disturbance value is positive, indicating that the activated sludge concentration will increase.
[0042] The aforementioned estimated disturbance value is used as a feedforward compensation signal. The physical meaning of this feedforward compensation signal is: before the actual implementation of the sludge discharge strategy adjustment, the magnitude of the impact of the adjustment on the activated sludge concentration in the bioreactor is estimated in advance, and this magnitude of impact is used as the basis for adjusting the reagent dosage.
[0043] V. Construction and Application of the Drug Response Model
[0044] A pre-built drug response model is invoked. The input variables of the model include at least a first driving signal, a second driving signal, and a feedforward compensation signal. Multi-objective optimization processing is performed to generate an optimized drug dosing ratio scheme for the current time period.
[0045] The chemical response model specifically employs a multi-input multi-output response surface model. The input variables of the response surface model include three values: the normalized deviation between the real-time effective sludge age index and the center value of the preset effective sludge age target interval, the normalized value of the influent total phosphorus load, and the current water temperature. The output variables of the response surface model include the dosage ratios of various phosphorus removal agents, such as the dosage proportions of polyaluminum chloride, aluminum sulfate, and polyferric sulfate. The output variables are dimensionless proportioning coefficients, representing the proportion of each agent in the total dosage, and the sum of the values of all output variables is 1.
[0046] The response surface model is constructed as follows: Offline experimental data or historical operating data of the target wastewater treatment system are obtained as the training sample set. Each sample in the training sample set includes a combination of input variables and the corresponding measured total phosphorus concentration in the effluent. With the effluent total phosphorus concentration not exceeding the preset discharge standard as a hard constraint, and minimizing the weighted sum of dosages of various phosphorus removal agents as the optimization objective, the model coefficients of the response surface model are fitted to obtain the trained response surface model. The specific mathematical form of the model is a second-order polynomial response surface model. The least squares method is used to fit the model coefficients. The training sample set should cover various influent water quality conditions that the target wastewater treatment system may encounter, including combinations of different influent total phosphorus concentrations, different water temperatures, and different effective sludge ages. After the model fitting is completed, variance analysis is required to ensure that the goodness of fit and prediction accuracy of the model meet the requirements of engineering applications.
[0047] In the response surface model, the normalized deviation is calculated as follows: Obtain the current real-time effective sludge age index value, and obtain the lower and upper limits of the preset effective sludge age target interval. Calculate the arithmetic mean of the lower and upper limits as the center value of the preset effective sludge age target interval. Calculate the difference between the current real-time effective sludge age index value and the center value of the preset effective sludge age target interval. Divide this difference by the center value of the preset effective sludge age target interval to obtain the normalized deviation value. When the normalized deviation value is positive, it indicates that the current real-time effective sludge age index is higher than the center value of the preset effective sludge age target interval. In this case, the response surface model outputs a dosage ratio value in the direction of decreasing the dosage. When the normalized deviation value is negative, it indicates that the current real-time effective sludge age index is lower than the center value of the preset effective sludge age target interval. In this case, the response surface model outputs a dosage ratio value in the direction of increasing the dosage. The larger the absolute value of the normalized deviation value, the greater the adjustment range of the dosage ratio value output by the response surface model relative to the baseline dosage ratio value. The physical basis of this control logic is that a higher effective sludge age means that there is a sufficient amount of polyphosphate-accumulating bacteria in the system and a stronger biological phosphorus removal capacity, thus reducing the reliance on chemical phosphorus removal agents; conversely, a lower effective sludge age means that there is an insufficient amount of polyphosphate-accumulating bacteria and a weakened biological phosphorus removal capacity, requiring the addition of chemical phosphorus removal agents to compensate.
[0048] The normalized value of the influent total phosphorus load is calculated as follows: Obtain the real-time influent total phosphorus concentration at the current moment. Obtain the historical sequence of influent total phosphorus concentration for the target wastewater treatment system within a preset historical time window, preferably the past 24 hours. Calculate the arithmetic mean of the historical influent total phosphorus concentration sequence as the influent total phosphorus baseline concentration. Calculate the difference between the real-time influent total phosphorus concentration and the influent total phosphorus baseline concentration. Divide this difference by the influent total phosphorus baseline concentration to obtain the normalized value of the influent total phosphorus load.
[0049] When both the normalized deviation and the normalized total phosphorus load of the influent are positive, the net adjustment of the dosage ratio output by the response surface model relative to the baseline dosage ratio is composed of a weighted sum of two parts. The first part is the first adjustment range determined by the absolute value of the normalized deviation; when the normalized deviation is positive, the first adjustment range is negative, indicating the direction of reducing the dosage. The second part is the second adjustment range determined by the absolute value of the normalized total phosphorus load of the influent; when the normalized total phosphorus load is positive, the second adjustment range is positive, indicating the direction of increasing the dosage. The positive or negative direction of the net adjustment range is determined by the algebraic sum and sign of the weighted sum. The weighting coefficient for the normalized deviation is preferably 0.7, and the weighting coefficient for the normalized total phosphorus load of the influent is preferably 0.3. The values of these two weighting coefficients are determined based on sensitivity analysis using historical data from the target wastewater treatment system—the partial effect coefficients of effective sludge age and influent total phosphorus load on effluent total phosphorus concentration are calculated separately, and the ratio of these partial effect coefficients is used as the weighting coefficients. When the absolute value of the net adjustment after weighted summation is less than the preset dead zone, the baseline dosage is maintained unchanged to prevent control oscillations.
[0050] When the normalized deviation remains negative and the normalized value of the influent total phosphorus load is positive, the upward adjustment of the dosage ratio output by the response surface model relative to the baseline dosage ratio is the difference between the second adjustment range and the first adjustment range, and this difference is not less than zero. Specifically, the first adjustment range is positive when the normalized deviation is negative. The physical basis for this asymmetric superposition logic is that both the low effective sludge age and the high influent total phosphorus load point to a need for increased reagent dosage. Therefore, the net adjustment direction should not result in a reduction in reagent dosage, and the lower limit protection of a difference not less than zero ensures this.
[0051] The response surface model also uses the current water temperature as a third input variable. The current water temperature is a real-time measured value of the mixed liquor temperature in the biological reactor of the target wastewater treatment system, provided by a temperature sensor installed in the biological reactor.
[0052] Before calling the response surface model, a temperature compensation step must be performed. The current water temperature value is obtained, and the difference between the current water temperature value and the preset reference water temperature value is calculated to obtain the water temperature deviation value. The preset reference water temperature value is preferably 20 degrees Celsius. The preset effective sludge age target range is compensated and corrected based on the water temperature deviation value. When the water temperature deviation value is positive, it indicates that the current water temperature is higher than the reference water temperature, and the microbial metabolic activity is enhanced. In this case, the lower and upper limits of the preset effective sludge age target range are multiplied by a first temperature compensation coefficient less than 1. The first temperature compensation coefficient monotonically decreases as the water temperature deviation value increases. When the water temperature deviation value is negative, it indicates that the current water temperature is lower than the reference water temperature, and the microbial metabolic activity is weakened. In this case, the lower and upper limits of the preset effective sludge age target range are multiplied by a second temperature compensation coefficient greater than 1. The second temperature compensation coefficient monotonically increases as the absolute value of the water temperature deviation value increases. The compensated and corrected effective sludge age target range replaces the preset effective sludge age target range and is used for subsequent calculation of the normalized deviation value and determination of the deviation direction. The physical significance of temperature compensation is that: under low temperature conditions, the growth rate of microorganisms slows down, requiring a longer sludge age to maintain sufficient activated sludge concentration, so the target range should be appropriately shifted upwards; under high temperature conditions, the growth rate of microorganisms accelerates, and a shorter sludge age can meet the treatment requirements, so the target range can be appropriately shifted downwards.
[0053] VI. Time axis alignment processing for collaborative scheduling arbitrators
[0054] The optimized reagent dosing ratio and sludge discharge strategy adjustment signals are input into the collaborative scheduling arbitrator. The collaborative scheduling arbitrator is a software module embedded in the wastewater treatment plant's central control system, running on an industrial control computer or programmable logic controller. Its input interface receives the optimized reagent dosing ratio and sludge discharge strategy adjustment signals from the host computer, while its output interface sends a time-aligned sequence of control commands to the reagent dosing actuators and sludge discharge pump unit actuators. The arbitrator communicates with the field actuators via industrial Ethernet or fieldbus, with the data refresh cycle consistent with the control cycle.
[0055] The collaborative scheduling arbitrator performs time axis alignment processing based on the time scale difference between the agent action response time and the sludge discharge system response time, generating agent dosing instruction sequence and sludge discharge pump group control instruction sequence.
[0056] First, the reagent mixing and diffusion time constant of the target wastewater treatment system is obtained as the reagent response time. The reagent mixing and diffusion time constant refers to the time required for the chemical phosphorus removal agent to fully mix and achieve uniform distribution within the biological reactor after being injected into the mixture at the dosing point. This time constant can be determined through tracer experiments or by calculating the ratio of the hydraulic retention time of the biological reactor to the reagent diffusion coefficient. Its typical range is 2 to 10 minutes, with the specific value depending on the flow characteristics and mixing conditions of the biological reactor.
[0057] The sludge discharge lag time constant of the target wastewater treatment system is obtained from the start-up time of the sludge pump set until the sludge mixture completely leaves the biological reactor. The sludge discharge lag time constant refers to the delay time from pump start-up to the start of sludge extraction at the discharge port and the onset of change in the effective activated sludge concentration in the biological reactor. This time constant depends on the length and diameter of the sludge discharge pipeline and the pump flow rate.
[0058] Obtain the control command sequence of the sludge pump group determined according to the aforementioned sludge discharge strategy adjustment signal. This sequence includes the start time and stop time of each sludge pump group.
[0059] Calculate the difference between the reagent mixing and diffusion time constant and the sludge discharge lag time constant. If the difference is positive, it is used as the pre-compensation advance amount; if the difference is not greater than zero, the pre-compensation advance amount is set to zero or the minimum advance amount allowed by the system. The physical meaning of the pre-compensation advance amount is that the reagent needs to be added in advance before the actual sludge discharge disturbance occurs, so that the reagent has been distributed in the system and plays a compensating role when the disturbance arrives.
[0060] Obtain the reagent dosing baseline instruction sequence corresponding to the aforementioned optimized reagent dosing ratio scheme. This sequence already contains all feedforward compensation increments generated by the estimated disturbance values.
[0061] At the time point corresponding to the pre-compensation advance amount before the start time of each sludge pump group in the sludge pump group control command sequence, a portion of the dosage within the corresponding sludge discharge period is extracted from the reagent dosage reference command sequence as a pre-compensation dosage command, and the timestamp of this portion of the dosage is moved forward to the time point corresponding to the pre-compensation advance amount. The dosage of the pre-compensation dosage command is equal to the first allocation ratio of the total dosage of the reagent dosage reference command sequence within that sludge discharge period.
[0062] Within the minimum system response delay following the stop time of each sludge pump group in the sludge pump group control command sequence, a portion of the dosage for the corresponding sludge discharge period is extracted from the chemical dosing baseline command sequence as a post-compensation dosing command, and the timestamp of this portion of the dosage is shifted to the minimum system response delay after the stop time. The dosage of the post-compensation dosing command is equal to the second allocation ratio of the total dosage of the chemical dosing baseline command sequence within that sludge discharge period. The minimum system response delay refers to the shortest time required from the issuance of the chemical dosing command to the actual start of the chemical phosphorus removal effect of the chemical agent; its value is related to the properties of the chemical agent and the dosing method, and is preferably 1 to 3 minutes.
[0063] The sum of the first and second allocation ratios equals 1, ensuring that the total dosage of the pre-compensation and post-compensation dosage instructions equals the original total dosage of the extracted reagent dosage reference instruction sequence during the sludge discharge period. The dosage of any remaining dosage instructions within the sludge discharge pump unit's operating period in the reagent dosage reference instruction sequence is correspondingly reduced by the sum of the pre-compensation and post-compensation dosage instructions, ensuring that the final total dosage of the reagent dosage instruction sequence remains constant within the total dosage determined by the optimized reagent dosage ratio scheme. If the dosage of a certain instruction after deduction is less than the minimum dosage of the metering pump, that instruction is merged into an adjacent instruction for execution. If the original total dosage during the sludge discharge period is insufficient to cover the sum of the pre-compensation and post-compensation amounts, all original dosages during the sludge discharge period are redistributed according to the first and second allocation ratios, ensuring that the sum of the pre-compensation and post-compensation amounts does not exceed the original total dosage.
[0064] The reagent dosing command sequence, after being processed by shifting the timestamps forward and backward, is output as the final reagent dosing command sequence, as is the sludge pump group control command sequence. The final reagent dosing command sequence and the final sludge pump group control command sequence are interleaved on the timeline—the reagent dosing commands are scheduled before the sludge pump starts and after it stops, with the reagent dosage decreasing accordingly during the pump's operation. This achieves a precise temporal match between the disturbance to the sludge concentration in the biological system caused by sludge discharge and the compensating effect of reagent dosing. When the time windows of multiple sludge discharge events overlap, these events are merged into a single event, and pre-compensation and post-compensation are not recalculated.
[0065] The determination of the first and second allocation ratios is as follows: The adjustment amount of the sludge pump group operating frequency or the adjustment amount of a single run duration contained in the sludge discharge strategy adjustment signal is obtained, and this adjustment amount is used as the sludge discharge disturbance intensity indication value. The larger the sludge discharge disturbance intensity indication value, the more severe the impact of the sludge discharge strategy adjustment on the activated sludge concentration in the bioreactor, requiring a larger proportion of compensation to be shifted forward before sludge discharge occurs. The first allocation ratio is equal to the product of the first baseline allocation value and the first adjustment coefficient corresponding to the sludge discharge disturbance intensity indication value. The first baseline allocation value is preferably 0.6 to 0.7. The first adjustment coefficient is zero when the sludge discharge disturbance intensity indication value is lower than a preset intensity threshold, and monotonically increases with the increase of the sludge discharge disturbance intensity indication value when the sludge discharge disturbance intensity indication value is higher than or equal to the preset intensity threshold, and the first allocation ratio is not greater than 1. The preset intensity threshold is, for example, when the sludge discharge volume change is less than 10%, no pre-compensation is required. To ensure a smooth transition of the first allocation ratio at the threshold, the first adjustment coefficient is designed as an S-shaped function, with a transition zone set near the preset intensity threshold to allow the coefficient to smoothly transition from zero to a positive value. The second allocation ratio is equal to 1 minus the first allocation ratio. Both the first and second allocation ratios are between 0 and 1, and their sum is always equal to 1.
[0066] VII. Execution process of the complete control cycle
[0067] The following example, using a complete control cycle, illustrates the execution sequence of the above steps.
[0068] At the start of each control cycle, i.e., at T=0, the system simultaneously collects mixed liquor samples from the bioreactor and the sludge discharge pipeline to obtain MLSS and MLVSS data. After data acquisition, the active and inactive components are separated within T=0 to T=30 seconds to obtain the effective activated sludge concentration characterization values in the bioreactor and the sludge discharge pipeline. Subsequently, within T=30 seconds to T=1 minute, the real-time effective sludge age index is calculated by combining the total sludge discharge data within the past 24-hour sliding window.
[0069] Between T=1 minute and T=2 minutes, the real-time effective sludge age index is compared with the preset effective sludge age target range to determine the direction and rate of deviation, generating a sludge discharge strategy adjustment signal. This signal is not executed immediately within the current control cycle but serves as input for the next feedforward compensation calculation.
[0070] Within T=2 to T=3 minutes, the sludge discharge strategy adjustment signal is converted into an estimated disturbance value for the effective activated sludge concentration in the bioreactor, generating a feedforward compensation signal. Simultaneously, influent total phosphorus load data and water temperature data are acquired, and the reagent response model is invoked for forward inference to generate an optimized reagent dosing ratio scheme.
[0071] Within T=3 to T=4 minutes, the optimized reagent dosing ratio scheme and sludge discharge strategy adjustment signals will be input into the collaborative scheduling arbitrator for time axis alignment processing, generating the final reagent dosing instruction sequence and the final sludge discharge pump group control instruction sequence.
[0072] Between T=4 and T=5 minutes, the control system will send the final chemical dosing command sequence and the final sludge pump control command sequence to the field execution equipment via the industrial communication network. The chemical dosing command is executed by the metering pump controller, and the sludge pump control command is executed by the sludge pump frequency converter or start / stop controller. Both types of commands are executed synchronously at the beginning of the next control cycle.
[0073] In the above timing arrangement, the time required for each step can be adjusted according to the actual system's computing power and communication latency, but the total duration of a complete control cycle should not exceed 15 minutes. VIII. Specific Implementation Methods
[0075] Example 1
[0076] A municipal wastewater treatment plant employs the A² / O biological phosphorus removal process, with a designed treatment capacity of 50,000 cubic meters per day and an effective volume of 15,000 cubic meters in the biological reactor. The influent total phosphorus concentration typically fluctuates between 2.5 mg / L and 4.5 mg / L per day, while the effluent total phosphorus discharge standard is no more than 0.5 mg / L per day. The preset target range for effective sludge age is 5 days (lower limit), 15 days (upper limit), and 10 days (middle value). The preset activity threshold is set at 0.5. The preset reference water temperature is 20 degrees Celsius. The control cycle is set at 10 minutes.
[0077] During a certain control period, the system collected MLSS (Mixed Surface Suspension) of 3500 mg / L and MLVSS (Multi-Volume Suspension) of 2450 mg / L in the bioreactor. The ratio of MLVSS to MLSS was 0.7, which is greater than the preset activity threshold of 0.5. Therefore, the effective activated sludge concentration was 2450 mg / L, and the ineffective suspended solids concentration was zero. In the sludge discharge pipeline, MLSS was collected at 8000 mg / L and MLVSS at 5600 mg / L, with a ratio of 0.7, also greater than the preset activity threshold. The effective activated sludge concentration in the sludge discharge pipeline was 5600 mg / L.
[0078] The cumulative sludge discharge volume within the sliding window over the past 24 hours was 400 cubic meters per day. Multiplying this by the effective activated sludge concentration in the sludge discharge pipeline, which is 5600 mg / L per day, yields a daily effective activated sludge discharge of 2240 kg. The total effective activated sludge volume in the bioreactor is 2450 mg * 15000 m³ = 36750 kg. Dividing the total effective activated sludge volume by the daily effective activated sludge discharge yields a real-time effective sludge age of 16.4 days.
[0079] The real-time effective sludge age index of 16.4 days is 15 days higher than the upper limit of the target range, and the deviation is positive. Compared with the real-time effective sludge age index of 16.0 days in the previous control period, the rate of change of deviation is positive, indicating that the effective sludge age index is continuing to rise away from the target range. According to the sludge discharge strategy adjustment rules, an increase signal for sludge discharge is generated, and the operating frequency of the sludge discharge pump group is increased by 12% of the current frequency with a first increase step.
[0080] The sludge discharge strategy adjustment signal was converted into an estimated disturbance value. A 12% increase in the operating frequency of the sludge discharge pump unit corresponds to an increase in sludge discharge flow rate of approximately 48 cubic meters per day. Multiplying this by the characterization value of the effective activated sludge concentration in the sludge discharge pipeline, which is 5600 mg / L per day, yields an additional 268.8 kg of effective activated sludge discharged per day. Dividing this by the effective volume of the bioreactor, which is 15000 cubic meters, yields an estimated decrease in the effective activated sludge concentration of 0.018 mg / L per day, which serves as a feedforward compensation signal.
[0081] The current real-time total phosphorus concentration in the influent is 4.2 mg / L per day. The arithmetic mean of the historical total phosphorus concentration over the past 24 hours is 3.5 mg / L per day. The normalized value of the total phosphorus load is 0.2, which is positive. The current water temperature is 25 degrees Celsius, which is 20 degrees Celsius higher than the reference temperature, resulting in a temperature deviation of 5 degrees Celsius. The first temperature compensation coefficient is set to 0.9, and the target range is corrected to 4.5 to 13.5 days, with a central value of 9 days. The normalized deviation of the real-time effective sludge age of 16.4 days from the corrected central value of 9 days is 0.82, which is positive.
[0082] The normalized deviation value of 0.82 and the normalized value of total phosphorus load in the influent of 0.2 were input into the response surface model. When the normalized deviation value was positive, the first adjustment range was negative; when the normalized value of total phosphorus load in the influent was positive, the second adjustment range was positive. After weighted summation, the net adjustment range was negative, meaning the dosage was reduced by approximately 8% from the baseline dosage. The model output reduced the polyaluminum chloride dosage ratio from the baseline of 150 kg / day to 138 kg / day.
[0083] The collaborative scheduling arbitrator calculated a reagent mixing and diffusion time constant of 5 minutes, a sludge discharge lag time constant of 2 minutes, and a pre-compensation lead time of 3 minutes. The sludge discharge pump unit is scheduled to start in 10 minutes and run continuously for 20 minutes. 65% of the original reagent dosage during the sludge discharge period is used as the pre-compensation dosage instruction, moved forward to 3 minutes before sludge discharge starts; 35% is used as the post-compensation dosage instruction, moved backward to 2 minutes after sludge discharge stops. The remaining reagent dosage during the sludge discharge period is correspondingly reduced. The final reagent dosage instruction sequence and the sludge discharge pump unit control instruction sequence are interleaved on the time axis. The pre-compensation reagent has entered the bioreactor and is evenly distributed before the actual sludge discharge disturbance occurs, effectively offsetting the adverse effects of the decrease in activated sludge concentration caused by sludge discharge on phosphorus removal efficiency.
[0084] Example 2
[0085] A wastewater treatment plant in an industrial park uses an oxidation ditch process, designed to treat 20,000 cubic meters of wastewater per day, with an effective volume of 8,000 cubic meters in the biological reactor. The plant experiences significant fluctuations in the total phosphorus concentration of the influent, frequently experiencing shock loads exceeding 6 mg / L per day during the rainy season. The preset target range for effective sludge age is 6 days at the lower limit, 14 days at the upper limit, and 10 days at the center. The preset activity threshold is set at 0.55.
[0086] During a certain control period, the system collected MLSS (Mixed Surface Suspension) of 4200 mg / L and MLVSS (Multi-Volume Suspension) of 2100 mg / L in the bioreactor. The ratio of MLVSS to MLSS was 0.5, which is less than the preset activity threshold of 0.55. Therefore, the effective activated sludge concentration was zero, and the ineffective suspended solids concentration was 4200 mg / L. This indicates that the proportion of active microorganisms in the system is low, and the sludge is severely aged or has been impacted by toxic substances.
[0087] The MLSS collected in the sludge discharge pipeline was 10,000 mg / L, and the MLVSS was 5,000 mg / L, with a ratio of 0.5, which is also less than the preset activation threshold. The effective activated sludge concentration in the sludge discharge pipeline was zero. At this time, the daily effective activated sludge discharge was zero, and the real-time effective sludge age index tended to infinity, far exceeding the upper limit of the target range of 14 days.
[0088] According to the sludge discharge strategy adjustment rules, an increase signal for sludge discharge is generated. However, since the effective activated sludge concentration in the sludge discharge pipeline is zero, increasing sludge discharge can only remove ineffective suspended solids and cannot improve the situation of excessively old effective activated sludge. At this time, the system issues an early warning signal, prompting operators to check the activity status of the activated sludge and investigate whether there are problems such as toxic substance impact or nutrient imbalance.
[0089] Meanwhile, the real-time total phosphorus concentration in the influent was 5.8 mg / L per day, far exceeding the baseline value of 3.2 mg / L per day. The normalized value of the total phosphorus load in the influent was 0.81, which was positive. The normalized deviation value of the real-time effective sludge age index was extremely positive. The reagent dosage ratio output by the response surface model needed to be significantly increased from the baseline dosage. The model output increased the dosage of polyaluminum chloride from the baseline of 80 kg / day to 145 kg / day, and the dosage of polyferric sulfate as an auxiliary agent from 20 kg / day to 45 kg / day.
[0090] The coordinated dispatch arbitrator moves the chemical dosing instruction forward according to the pre-compensation advance amount, ensuring that the chemical phosphorus removal agent has been fully distributed before the high concentration of total phosphorus in the influent reaches the biological reactor. Thus, in the case of severe insufficiency of biological phosphorus removal capacity, chemical phosphorus removal can be used to ensure that the total phosphorus in the effluent meets the standard.
[0091] This embodiment illustrates that when the proportion of active components in the system is severely low, the method of the present invention can still maintain the quality of the effluent by dynamically adjusting the chemical phosphorus removal agent, while simultaneously prompting operators to take measures to restore the biological system through early warning.
[0092] IX. System Implementation Method
[0093] The above method can be implemented through a dynamic reagent ratio and sludge discharge reduction system based on the effective sludge age. This system includes a data acquisition module, an activated sludge separation module, an effective sludge age calculation module, a sludge discharge strategy generation module, a reagent response model module, a feedforward compensation module, and a collaborative scheduling arbitrator module.
[0094] The data acquisition module is used to acquire characterization parameters of the first activated sludge mixture in the bioreactor and the second activated sludge mixture in the sludge discharge pipeline. The module's input interface is connected to the MLSS and MLVSS online analyzers installed in the bioreactor and sludge discharge pipeline, respectively, and its output interface is connected to the activated sludge separation module.
[0095] The active separation module is used to separate the active and inactive components of the first activated sludge mixture characterization parameters and the second activated sludge mixture characterization parameters, respectively, to generate the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value in the bioreactor, as well as the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value in the sludge discharge pipeline.
[0096] The effective sludge age calculation module is used to generate a real-time effective sludge age index based on the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value, combined with the total sludge concentration of the bioreactor and the daily sludge discharge volume.
[0097] The sludge discharge strategy generation module is used to generate sludge discharge strategy adjustment signals based on the deviation direction and rate of change of the real-time effective sludge age index from the preset effective sludge age target range.
[0098] The feedforward compensation module is used to convert the change in the operating frequency or single running time of the sludge discharge pump group contained in the sludge discharge strategy adjustment signal into an estimated disturbance value of the effective activated sludge concentration in the bioreactor, and use this estimated disturbance value as the feedforward compensation signal.
[0099] The reagent response model module has a pre-stored trained reagent response model. This module uses the deviation between the real-time effective sludge age index and the preset effective sludge age target range as the first driving signal, the total phosphorus load of the influent of the target wastewater treatment system as the second driving signal, and receives the feedforward compensation signal output by the feedforward compensation module. It then calls the reagent response model to perform multi-objective optimization processing and generates the optimized reagent dosing ratio scheme for the current time period.
[0100] The collaborative scheduling arbitrator module receives signals from the optimized reagent dosing ratio scheme and sludge discharge strategy adjustment. Based on the timescale difference between the reagent response time and the sludge discharge system response time, it performs time axis alignment processing to generate a reagent dosing command sequence and a sludge discharge pump group control command sequence. The module's output interface connects to the controller of the reagent dosing metering pump and the frequency converter or start / stop controller of the sludge discharge pump group.
[0101] The modules mentioned above can be integrated into the same industrial control computer, or they can be distributed between the programmable logic controller and the host monitoring computer. Data interaction between the modules is achieved through shared memory or industrial communication protocols.
[0102] In step eight above, the sludge discharge strategy adjustment signal includes the adjustment amount of the sludge discharge pump set operating frequency or the adjustment amount of the single running duration. The specific value of this adjustment amount is determined in the following manner.
[0103] First, the difference between the real-time effective sludge age index value and the lower limit of the preset effective sludge age target range is calculated to obtain the first absolute deviation value. This first absolute deviation value represents the degree to which the current effective sludge age deviates from the lower limit of the target range, and is expressed in days. Simultaneously, the difference between the real-time effective sludge age index value and the upper limit of the preset effective sludge age target range is calculated to obtain the second absolute deviation value. This second absolute deviation value represents the degree to which the current effective sludge age deviates from the upper limit of the target range, and is expressed in days.
[0104] Obtain the rate of change of deviation at the current moment. The sign of the rate of change of deviation determines the adjustment step size, which is divided into the following four operating conditions.
[0105] When the real-time effective sludge age index value is lower than the lower limit of the target range, it indicates that the sludge discharge volume is too large and needs to be reduced. If the deviation rate of change is negative, it means that the effective sludge age index is deviating from the target range and continuing to decline, indicating a worsening trend. In this case, a larger step size is needed to reduce sludge discharge. The specific calculation method is as follows: divide the absolute value of the first deviation by the lower limit to obtain a dimensionless relative deviation. Then multiply this relative deviation by the first proportional value of the preset sludge discharge adjustment amplitude coefficient. The product is used as the reduction in operating frequency or the reduction in single-run duration. If the deviation rate of change is positive, it means that the effective sludge age index is recovering towards the target range, indicating an improving trend. In this case, divide the absolute value of the first deviation by the lower limit and multiply by the second proportional value of the preset sludge discharge adjustment amplitude coefficient as the reduction amount. The first proportional value is greater than the second proportional value to reflect a differentiated control strategy of using a larger step size when the trend worsens and a smaller step size when the trend improves.
[0106] When the real-time effective sludge age index value is higher than the upper limit of the target range, it indicates that the sludge discharge volume is insufficient and needs to be increased. If the deviation rate is positive, it means the effective sludge age index is deviating from the target range and continuing to rise, indicating a worsening trend. The second absolute value of the deviation, divided by the upper limit, is multiplied by the third proportional value of the preset sludge discharge adjustment coefficient to determine the increase in operating frequency or single-run duration. If the deviation rate is negative, it means the effective sludge age index is falling back towards the target range, indicating an improving trend. The second absolute value of the deviation, divided by the upper limit, is multiplied by the fourth proportional value of the preset sludge discharge adjustment coefficient to determine the increase. The third proportional value must be greater than the fourth proportional value.
[0107] The preset sludge discharge adjustment range coefficient is a constant greater than zero. Physically, it represents the gain coefficient that converts a unit relative deviation into the sludge discharge adjustment range. The preferred value range for this coefficient is 0.3 to 0.8, with the specific value depending on the ratio of the rated capacity of the sludge discharge pump set to the volume of the biological reactor in the target wastewater treatment system. The larger the rated capacity of the sludge discharge pump set, the more significant the impact of the unit adjustment on the effective sludge age, and the smaller the preset sludge discharge adjustment range coefficient should be; conversely, a larger value should be used. In one specific embodiment, the preset sludge discharge adjustment range coefficient is set to 0.5.
[0108] The first, second, third, and fourth proportional values are all preset proportional coefficients, all greater than zero and less than or equal to 1. The first and third proportional values represent the proportional coefficients for large step adjustments, with a preferred value range of 0.8 to 1.0. The second and fourth proportional values represent the proportional coefficients for small step adjustments, with a preferred value range of 0.3 to 0.6. In one specific embodiment, the first and third proportional values are both 0.9, and the second and fourth proportional values are both 0.5.
[0109] The adjustment amount of the operating frequency shall not exceed the preset maximum adjustment ratio of the current operating frequency, and the adjustment amount of a single run duration shall not exceed the preset maximum adjustment ratio of the current single run duration. The preset maximum adjustment ratio is used to limit the maximum variation of the sludge pump group's operating parameters within a single control cycle to prevent excessive adjustment from causing drastic system fluctuations. The preferred value of this preset maximum adjustment ratio is 20%, meaning that the adjustment amount of the sludge pump group's operating frequency or single run duration within a single control cycle shall not exceed 20% of the current value. For example, when the current sludge pump group's operating frequency is 40 Hz, the maximum upward adjustment in a single instance shall not exceed 8 Hz, and the maximum downward adjustment shall also not exceed 8 Hz. This limiting design ensures that the control system can maintain the stability of sludge discharge operation even under extreme deviation conditions, avoiding a jump in the effective sludge age index from one extreme to another due to excessive single adjustment.
[0110] Using the above calculation method, the value of the sludge discharge adjustment is directly proportional to the relative degree of deviation of the effective sludge age from the target range, related to the step size corresponding to the sign of the deviation change rate, and constrained by the preset maximum adjustment ratio. This design ensures that the sludge discharge adjustment can respond to both the severity and the trend of deviation, without compromising system stability due to excessively large single adjustments.
[0111] The preset activity threshold used in the above separation process is not a fixed constant, but can be adaptively adjusted according to the actual operating status of the target wastewater treatment system. This preset activity threshold is determined and updated in the following manner.
[0112] During the system startup initialization phase, multiple sets of samples of the ratio of volatile suspended solids (MLVSS) to MLSS concentrations in the target wastewater treatment system during its historical stable operating period are first obtained. The historical stable operating period refers to a period of stable operation during which the wastewater treatment system is not subjected to shock loads, does not experience sludge bulking, and consistently meets effluent quality standards; the total duration of this period is preferably no less than 7 days. During these 7 days, at least one set of MLVSS to MLSS ratio samples is collected daily, resulting in at least 7 sets of ratio samples. The arithmetic mean and standard deviation of these ratio samples are calculated. The initial value of the preset activity threshold is obtained by subtracting a preset multiple from the arithmetic mean and standard deviation. The preferred value of the preset multiple is 1.0 to 2.0, more preferably 1.5. For example, if the arithmetic mean of the ratio samples is 0.65, the standard deviation is 0.08, and the preset multiple is 1.5, then the initial value of the preset activity threshold is 0.65 - 0.12 = 0.53. The physical basis of this calculation method is that the ratio of active components to inactive components is relatively stable during historical stable operating periods. By shifting the arithmetic mean downward by a certain multiple of the standard deviation, it can ensure that most activated sludge samples under normal operating conditions can be correctly labeled as active components, while sludge samples that deviate significantly from the normal range can be labeled as inactive components.
[0113] Once the initial value of the preset activity threshold is determined, the system enters the online operation phase. The preset activity threshold is not static but is adaptively updated based on real-time monitoring data. The specific update method is as follows.
[0114] The system acquires the real-time ratio of the current concentration of volatile suspended solids in the liquid mixture to the current concentration of suspended solids in the liquid mixture. The calculation frequency of this real-time ratio is consistent with the control cycle, i.e., the real-time ratio is calculated once per control cycle. The system continuously monitors this real-time ratio, and triggers a threshold update when the real-time ratio is lower than the current preset activity threshold for a preset number of consecutive detection cycles. The preferred preset number of detection cycles is 3 to 6 consecutive control cycles, more preferably 5 consecutive control cycles. The criterion of being lower than the preset activity threshold for 5 consecutive control cycles effectively filters out accidental measurement noise or instantaneous fluctuations, avoiding erroneous threshold updates due to single measurement anomalies, and ensuring the reliability of threshold adjustment.
[0115] When the triggering condition is met, the current preset activity threshold is replaced by the moving average of the real-time ratios over a consecutive preset number of detection cycles, thus updating the preset activity threshold. The moving average is calculated using an equal-weighted average method, which involves adding the five real-time ratios over five consecutive control cycles and dividing by five to obtain the moving average. This moving average represents the actual level of the proportion of active components in the recent period. Replacing the original threshold with this moving average allows the preset activity threshold to adjust according to changes in the properties of the system sludge. For example, when the wastewater treatment system operates at low temperatures for an extended period, microbial metabolic activity generally decreases, and the overall ratio of MLVSS to MLSS is low. If the preset activity threshold remains fixed, a large amount of normally operating activated sludge may be misclassified as inactive components. Through the above adaptive update mechanism, the preset activity threshold can be lowered as the overall ratio level decreases, ensuring accurate identification of active components.
[0116] It should be noted that the preset activity threshold is updated only in one direction; that is, when an update is triggered, the current threshold is replaced by a moving average. However, the replaced threshold still needs to meet certain reasonableness constraints. In one specific implementation, the replaced preset activity threshold must not be lower than 0.3 and not higher than 0.7. If it exceeds this range, the threshold update operation is prohibited, and the system issues a prompt message requesting manual confirmation. This constraint design prevents the threshold from drifting to an unreasonable range due to sensor failure or extreme abnormal operating conditions, ensuring the reliability of the separation process.
[0117] The pre-compensation advance and post-compensation insertion times in the above time axis alignment process are not fixed parameters, but are adaptively adjusted according to the current operating conditions. The specific method of this adaptive adjustment is as follows.
[0118] First, the temperature and suspended solids concentration of the mixed liquor in the bioreactor are obtained at the current moment. The temperature is measured in real time by a temperature sensor installed in the bioreactor, and the suspended solids concentration is measured in real time by an online MLSS analyzer. The reagent mixing-diffusion time constant is then corrected based on the temperature and suspended solids concentration, resulting in the corrected reagent mixing-diffusion time constant.
[0119] The temperature of the mixture significantly affects the diffusion rate of the drug. As temperature increases, the molecular motion of the drug intensifies, the diffusion rate accelerates, and the drug mixing-diffusion time constant decreases; conversely, as temperature decreases, the diffusion rate slows down, and the drug mixing-diffusion time constant increases. The concentration of suspended solids in the mixture also affects the mixing-diffusion of the drug. Higher suspended solids concentrations increase the viscosity of the mixture, increasing the resistance to drug diffusion and consequently increasing the drug mixing-diffusion time constant; lower suspended solids concentrations result in better fluidity of the mixture and a smaller drug diffusion time constant. The correction method involves multiplying the drug mixing-diffusion time constant at the baseline temperature by the product of a temperature correction factor and a concentration correction factor. The temperature correction factor monotonically decreases with increasing temperature and monotonically increases with decreasing temperature, with a preferred value range of 0.7 to 1.5. The concentration correction factor monotonically increases with increasing suspended solids concentration, with a preferred value range of 0.8 to 1.3. Multiplying these two values together with the baseline drug mixing-diffusion time constant yields the corrected drug mixing-diffusion time constant.
[0120] The system acquires the current concentration of suspended solids in the sludge discharge pipeline and the adjustment amount of the sludge pump unit's operating frequency determined from the sludge discharge strategy adjustment signal. The concentration of suspended solids in the sludge discharge pipeline is measured in real time by an online MLSS analyzer installed on the pipeline. The sludge discharge lag time constant is corrected based on the concentration of suspended solids in the sludge discharge pipeline and the adjustment amount of the sludge pump unit's operating frequency, resulting in the corrected sludge discharge lag time constant.
[0121] The concentration of suspended solids in the sludge discharge pipeline affects the density and flowability of the sludge mixture. Higher concentrations result in a more viscous mixture, increasing resistance to transmission in the pipeline and consequently extending the sludge discharge lag time. The adjustment of the sludge pump unit's operating frequency reflects changes in the pump's rotational speed. Increasing the frequency increases the pump's flow rate, accelerating the flow velocity of the mixture in the pipeline and shortening the sludge discharge lag time; conversely, decreasing the frequency reduces the flow rate, slowing the flow velocity and extending the sludge discharge lag time. The correction method involves multiplying the sludge discharge lag time constant under baseline conditions by the product of a concentration correction factor and a frequency correction factor. The concentration correction factor monotonically increases with increasing suspended solids concentration in the sludge discharge pipeline, with an preferred range of 0.9 to 1.4. The frequency correction factor monotonically decreases with increasing sludge pump unit operating frequency adjustment, with an preferred range of 0.7 to 1.1. Multiplying these two factors together with the baseline sludge discharge lag time constant yields the corrected sludge discharge lag time constant.
[0122] The absolute value of the increase or decrease in the operating frequency of the sludge discharge pump group determined in the sludge discharge strategy adjustment signal is used as the disturbance intensity factor. The unit of the disturbance intensity factor is Hertz. The larger the value, the more drastic the adjustment of the sludge discharge strategy, the stronger the impact on the concentration of activated sludge in the bioreactor, and the longer the pre-compensation lead time is required to deploy the reagents in advance.
[0123] For pre-compensation dosing commands, calculate the difference between the corrected reagent mixing and diffusion time constant and the corrected sludge discharge lag time constant. If the difference is positive, it indicates that the time required for complete reagent mixing is longer than the lag time of sludge discharge disturbance, and the reagent dosing needs to be advanced to before sludge discharge initiation. Multiply this difference by the first stretching coefficient as the pre-compensation advance amount. If the difference is not greater than zero, it indicates that the reagent mixing and diffusion is fast enough, and pre-compensation is not required. In this case, the pre-compensation advance amount is set to zero or the minimum advance amount allowed by the system. The minimum advance amount allowed by the system is preferably 10 seconds to ensure that the timestamp of the pre-compensation dosing command in the control command sequence can be clearly distinguished from the sludge discharge initiation time.
[0124] The first stretching coefficient monotonically increases with the increase of the disturbance intensity factor and is not less than 1. The physical meaning of the first stretching coefficient is that when the sludge discharge adjustment range is large, even if the difference between the reagent mixing and diffusion time and the sludge discharge lag time is the same, the pre-compensation advance needs to be further stretched so that the reagent can be added at an earlier time point to cope with a larger disturbance impact. The preferred numerical range of the first stretching coefficient is 1.0 to 2.0. In one specific embodiment, when the disturbance intensity factor is less than or equal to 2 Hz, the first stretching coefficient is 1.0; when the disturbance intensity factor is between 2 Hz and 10 Hz, the first stretching coefficient increases linearly from 1.0 to 1.8; when the disturbance intensity factor is greater than 10 Hz, the first stretching coefficient is the upper limit of 1.8.
[0125] For post-compensation dosing commands, a different processing logic is used compared to pre-compensation. The purpose of post-compensation is to compensate for residual disturbances that are not completely eliminated after the sludge discharge operation. Since post-compensation is performed after sludge discharge stops, its time window accuracy requirement is lower than that of pre-compensation. Therefore, the aforementioned difference is ignored, and the post-compensation insertion time is fixed within the minimum system response delay after the stop time of each sludge pump group in the sludge pump group control command sequence. The preferred value for the minimum system response delay is 1 to 3 minutes, and the specific value depends on the delay time from the addition of the reagent to the exertion of its chemical phosphorus removal effect.
[0126] The dosage of the post-compensation dosage instruction is adjusted based on the disturbance intensity factor. A larger disturbance intensity factor indicates a more severe disturbance to the system caused by the sludge discharge adjustment, and a more significant residual effect after sludge discharge stops, requiring an increased post-compensation dosage to compensate for the residual disturbance. A larger disturbance intensity factor also means a greater upward fluctuation in the post-compensation dosage instruction relative to the second preset ratio. The second preset ratio is the aforementioned second allocation ratio. In one specific implementation, when the disturbance intensity factor is less than or equal to 3 Hz, the post-compensation dosage remains at the baseline value corresponding to the second allocation ratio and does not fluctuate; when the disturbance intensity factor is greater than 3 Hz, the post-compensation dosage fluctuates upward based on the baseline value of the second allocation ratio, with the upward fluctuation proportional to the disturbance intensity factor and an upward coefficient of 1.0 to 1.5. Since the sum of the pre-compensation dosage and the post-compensation dosage must remain constant, an upward fluctuation in the post-compensation dosage implies a corresponding downward adjustment in the pre-compensation dosage, but the adjusted pre-compensation dosage must still meet the requirement of not being lower than the minimum effective dosage.
[0127] The timing of the pre-compensation injection command is determined by the pre-compensation lead time, which is the time point corresponding to the pre-compensation lead time before the start-up time of each sludge pump group. The timing of the subsequent compensation injection command is determined by the subsequent compensation injection time, which is the time point within the minimum system response delay after the stop time of each sludge pump group. Through the above adaptive correction, the pre-compensation lead time and the subsequent compensation injection amount can be adjusted in real time according to the dynamic changes of the current operating conditions, so that the time axis alignment treatment can maintain the optimal compensation effect under different water temperatures, different sludge concentrations, and different sludge discharge adjustment ranges.
[0128] The following is a specific running example illustrating the dynamic update process of the preset activity threshold.
[0129] During the initialization phase of a wastewater treatment system, 10 sets of MLVSS to MLS ratio samples were collected during historical stable operation periods. The ratios were 0.68, 0.72, 0.65, 0.70, 0.66, 0.69, 0.71, 0.67, 0.73, and 0.64. The arithmetic mean of these 10 sets of data was 0.685, and the standard deviation was 0.031. A preset multiplier of 1.5 was chosen. For example, if the arithmetic mean of the ratio samples was 0.65 and the standard deviation was 0.08, and the preset multiplier was 1.5, then the initial value of the preset activity threshold would be determined according to the formula... Calculation, where It is the arithmetic mean. Standard deviation This is a preset multiple. Substitute the value. , , Calculated In another specific implementation, the arithmetic mean is 0.685, the standard deviation is 0.031, and the preset multiple is 1.5. The significant figures are 0.64.
[0130] After the system was put into operation, it entered the low-temperature period of winter, with the water temperature gradually decreasing from 25 degrees Celsius to 12 degrees Celsius. Affected by the low temperature, the metabolic activity of microorganisms decreased, and the ratio of MLVSS to MLSS continued to decline. Starting from the 30th control cycle, the real-time ratio for five consecutive control cycles was 0.60, 0.59, 0.61, 0.58, and 0.60, respectively, all lower than the current preset activity threshold of 0.64. The threshold update condition was triggered, and the moving average of these five real-time ratios was calculated to be 0.596, updating the preset activity threshold from 0.64 to 0.596.
[0131] After the update, if the real-time ratio in subsequent control cycles continues to fall below the new threshold of 0.596, another update will be triggered. If the real-time ratio rises above 0.596, no update will be triggered, and the current threshold will remain unchanged. Through this adaptive update, the preset activity threshold always tracks the actual level of sludge activity in the system, avoiding misjudgments caused by fixed thresholds.
[0132] A concrete example of adaptive time axis offset: The following example illustrates the process of adaptive correction of time axis offset.
[0133] The baseline reagent mixing and diffusion time constant for a wastewater treatment system is 6 minutes, and the baseline sludge discharge lag time constant is 2 minutes. At the current moment, the mixed liquor temperature in the bioreactor is 15 degrees Celsius, which is 20 degrees Celsius lower than the baseline temperature; a temperature correction factor of 1.25 is used. The MLSS in the bioreactor is 4000 mg / L; a concentration correction factor of 1.1 is used. The corrected reagent mixing and diffusion time constant is 6 * 1.25 * 1.1 = 8.25 minutes.
[0134] The MLSS in the sludge discharge pipeline is 9000 mg / L, with a concentration correction factor of 1.15. The operating frequency of the sludge pump set, determined by the current sludge discharge strategy adjustment signal, is increased from 45 Hz to 50 Hz, an increase of 5 Hz, with a frequency correction factor of 0.9. After correction, the sludge discharge lag time constant is 2 * 1.15 * 0.9 = 2.07 minutes.
[0135] The disturbance intensity factor is the increase of 5 Hz in the operating frequency of the sludge pump set. The difference between the corrected reagent mixing and diffusion time constant of 8.25 minutes and the corrected sludge discharge lag time constant of 2.07 minutes is 6.18 minutes, which is positive. The first stretching coefficient corresponding to the disturbance intensity factor of 5 Hz is taken as 1.4. The pre-compensation lead time is 6.18 * 1.4 = 8.65 minutes, meaning the pre-compensation dosing command needs to be scheduled approximately 8.65 minutes before the start-up time of the sludge pump set.
[0136] The post-compensation insertion time is fixed within the minimum system response delay after the sludge pump unit stops, with the minimum system response delay set to 2 minutes. The post-compensation dosage surcharge coefficient corresponding to the disturbance intensity factor of 5 Hz is set to 1.2. If the second allocation ratio is 35%, the post-compensation dosage will be increased from the baseline 35% to 35%*1.2=42%. Correspondingly, the pre-compensation dosage will be reduced from the baseline 65% to 58% to maintain the total dosage balance.
[0137] Through the above adaptive correction, the pre-compensation lead time was adjusted from 4 minutes under fixed conditions to 8.65 minutes under low temperature and high concentration conditions, and the post-compensation dosage was adjusted from 35% to 42%. This fully compensated for the effects of slower agent diffusion and enhanced sludge discharge disturbance under low temperature and high viscosity conditions, ensuring accurate matching of agent dosage and sludge discharge disturbance on the time axis under different conditions.
[0138] The method of this invention achieves coordinated control of reagent dosage and sludge discharge by using the effective sludge age as the core constraint variable. Compared with traditional methods, it has the following beneficial effects.
[0139] First, by separating and treating active and inactive components, the interference of inert suspended solids on sludge age calculation is eliminated, so that the effective sludge age index can truly reflect the actual residence time of active microorganisms such as polyphosphate-accumulating bacteria in the system, providing an accurate basic variable for the coordinated control of reagent dosing and sludge discharge.
[0140] Second, by jointly judging the direction of deviation and the rate of change of deviation, the sludge discharge strategy can be adjusted in a differentiated manner. When the trend deteriorates, a large step size is used to quickly correct the deviation, and when the trend improves, a small step size is used to prevent over-adjustment, thereby improving the stability and robustness of sludge discharge control.
[0141] Third, by converting the sludge discharge strategy adjustment signal into an estimated disturbance value and inputting it as a feedforward compensation signal into the reagent response model, the adjustment of the reagent dosage is triggered before the actual sludge discharge disturbance occurs, thus overcoming the lag defect of traditional feedback control.
[0142] Fourth, by using the pre-compensation and post-compensation time axis misalignment matching mechanism of the coordinated scheduling arbitrator, the compensation effect of the chemical addition and the disturbance effect of the sludge discharge operation are precisely matched in time. This avoids the fluctuation of effluent water quality during the disturbance period caused by insufficient pre-compensation, and also avoids the waste of chemicals caused by excessive pre-compensation.
[0143] Fifth, by introducing asymmetric multivariate weighted superposition logic into the response surface model, the adjustment direction of the reagent dosage can be reasonably offset when the two driving factors, effective sludge age deviation and influent total phosphorus load, are opposite in direction, and can be superimposed in the same direction without reversing the sign when they are in the same direction, thus ensuring the safety and robustness of the control system under extreme operating conditions.
[0144] Sixth, the effective sludge age target range is corrected in real time through a temperature compensation mechanism, so that the control strategy can automatically adapt to the impact of seasonal water temperature changes on microbial activity and maintain the best control effect at all times throughout the year.
[0145] Further explanation is needed regarding the operational support mechanism during the initial system startup phase. When the target wastewater treatment system is put into operation for the first time, and the preset activity threshold has not yet been calibrated or the reagent response model has not yet been trained, the system automatically switches to an open-loop transition mode. In the open-loop transition mode, the preset activity threshold uses a default value of 0.5, the sludge discharge strategy is controlled based on the traditional sludge age, and the reagent dosage is fed forward based on the influent total phosphorus load according to a preset stoichiometric ratio, without any collaborative optimization. When the accumulated effective operating data of the system meets the sample size requirement for the preset activity threshold calibration and the training sample set of the reagent response model reaches the minimum sample size, the system automatically switches from the open-loop transition mode to the closed-loop collaborative control mode. The switch between the transition mode and the control mode adopts a non-disruptive switching strategy, that is, at the moment of switching, the operating frequency of the sludge discharge pump group and the reagent dosage are maintained at the values of the previous moment, and then the adjustment of the collaborative control algorithm is gradually introduced to avoid a step change in the control quantity at the moment of switching.
[0146] To ensure data quality during the calibration and updating of the preset activity threshold, the ratio samples used for calculating the initial value of the preset activity threshold must undergo data validity verification before being used in the calculation. Data validity verification includes removing obvious outliers. The criterion for outliers is data points exceeding three standard deviations above or below the arithmetic mean of the ratio samples during historical stable operating periods. When the number of removed outliers exceeds 10% of the total sample size, the batch of data does not meet the calibration conditions, and the system extends the acquisition window of the historical stable operating period until the number of valid samples meets the requirements. During online updates, when the condition of a consecutive preset number of detection cycles being below the preset activity threshold is triggered, the system also needs to verify whether the difference between the maximum and minimum values of the real-time ratios within these consecutive detection cycles exceeds the preset dispersion threshold. If it exceeds, it indicates that the data fluctuation is too large and does not meet the update conditions; this update operation is postponed until the data stabilizes. The preferred value for the preset dispersion threshold is 0.15.
[0147] Regarding the handling of outliers in the deviation change rate calculation, when the difference between the current real-time effective sludge age index value and the previous value exceeds the preset change rate upper limit, the system determines it as a measurement anomaly or a severe shock to the system. In this case, the change rate is not used to adjust the sludge discharge strategy; instead, the sludge discharge strategy of the previous control cycle remains unchanged, and a data anomaly warning is issued. The preset change rate upper limit is determined based on the design parameters of the target wastewater treatment system, with an optimal value of no more than 3 days of change in effective sludge age per control cycle. When measurement anomalies occur for three consecutive control cycles, the system automatically switches to open-loop transition mode. After the measurement data returns to normal and remains stable for five consecutive control cycles, it switches back to closed-loop collaborative control mode.
[0148] Regarding the safety constraints between the dosage ratio scheme output by the response surface model and actual execution, the dosage ratio values of each agent output by the model must undergo safety limit verification before being sent to the collaborative scheduling arbitrator. The verification rules include: the dosage of a single agent must not exceed its maximum allowable dosage, which is determined by the safe dosage range provided by the agent supplier; the weighted sum of the dosages of all agents must not exceed the preset total dosage limit, which is jointly determined by the sedimentation capacity and sludge treatment capacity of the wastewater treatment system. When the model output exceeds the safety limit range, the system scales down proportionally to the safety limit boundary value according to the dosage ratio of each agent, records the over-limit event, and uses it as a training sample for subsequent online calibration of the response surface model. This limit protection mechanism ensures that the dosage of chemical phosphorus removal agents will not exceed the system's capacity and safe operating boundaries under any operating conditions.
[0149] Regarding the feedback verification of the effects of sludge discharge strategy adjustment signals and chemical dosing commands, within each control cycle, after the final chemical dosing command sequence and sludge pump control command sequence are executed, the system synchronously acquires the online monitoring value of total phosphorus in the effluent during the data acquisition phase of the next control cycle. The effluent total phosphorus monitoring value is compared with the preset discharge standard value. If the effluent total phosphorus concentration exceeds the 80% warning line of the preset discharge standard value but does not exceed the discharge standard value for three consecutive control cycles, the system automatically increases the correction terms of the preset sludge discharge adjustment amplitude coefficient and the weighting coefficients of each input variable in the response surface model to slightly improve the control gain. If the effluent total phosphorus concentration exceeds the preset discharge standard value, the system immediately triggers safety protection actions, including forcibly increasing the phosphorus removal chemical dosage to the maximum allowable dosage, suspending sludge discharge operation, and issuing audible and visual alarm signals to prompt manual intervention by the operator.
[0150] Regarding the system configuration and storage method of preset parameters, the preset effective sludge age target range, preset activity threshold, preset sludge discharge adjustment coefficient, first proportional value, second proportional value, third proportional value, fourth proportional value, preset maximum adjustment ratio, preset reference water temperature value, reagent mixing and diffusion time constant, sludge discharge lag time constant, system minimum response delay, preset multiple, preset number of detection cycles, preset dispersion threshold, preset change rate upper limit, maximum allowable dosage, and total dosage upper limit are all stored in the non-volatile storage medium of the control system during system initialization and can be viewed and modified through the host computer human-machine interface. All parameter modifications require confirmation from authorized personnel before taking effect, and modification records are automatically saved to the system log for subsequent traceability and auditing.
[0151] Regarding the long-term stability assurance of the entire collaborative control method under continuous 24-hour operation, the control system automatically collects operational indicators such as the cumulative runtime of the sludge pump group, cumulative sludge volume, cumulative chemical dosage, average total phosphorus concentration in the effluent, and number of exceedances every 24 hours. When the statistical results for 7 consecutive days show that the average total phosphorus concentration in the water is lower than 50% of the preset discharge standard and the chemical dosage has increased by more than 20% compared to the average of the previous 7 days, the system judges that the chemical dosage is excessive and automatically triggers online correction of the response surface model to reduce the chemical dosage to a reasonable level. When the statistical results for 7 consecutive days show that the average total phosphorus concentration in the water is higher than 70% of the preset discharge standard and the cumulative runtime of the sludge pump group has increased by more than 30% compared to the average of the previous 7 days, the system judges that the sludge discharge strategy is too aggressive and automatically adjusts the preset effective sludge age target range upward by 10% of the current target range width. Through the above long-term statistics and adaptive correction, the system can maintain optimal control performance under the influence of long-term trends such as seasonal changes, water quality characteristics evolution, and equipment performance degradation, without the need for frequent manual intervention.
[0152] To verify the technical effectiveness of this invention, a 30-day comparative verification experiment was conducted at a municipal wastewater treatment plant. This wastewater treatment plant uses the A² / O biological phosphorus removal process, with a designed treatment capacity of 30,000 cubic meters per day and an effective volume of 10,000 cubic meters in the biological reactor. The actual influent total phosphorus concentration fluctuated between 2.0 mg / L and 5.0 mg / L per day. During the verification experiment, the operation of the wastewater treatment plant was divided into two phases: the first 15 days used traditional control methods, i.e., sludge discharge was manually adjusted based on sludge concentration, and chemical dosing was fed forward according to a fixed stoichiometric ratio based on the influent total phosphorus load; the latter 15 days used the present invention's method of dynamic chemical ratio and sludge reduction based on effective sludge age, with a control cycle set at 10 minutes, a preset effective sludge age target range of 5 to 15 days, a preset activity threshold of 0.5, a preset sludge discharge adjustment coefficient of 0.5, and a chemical response model using polyaluminum chloride and polyferric sulfate as output variables. During the verification test, the total phosphorus discharge standard for the effluent was no more than 0.5 mg / L per day.
[0153] Figure 2 The results show a comparison between the measured values of total phosphorus concentration in the effluent from 48 consecutive sampling points over 24 hours (i.e., within 24 hours) over the following 15 days using the method of this invention, and the predicted values from the response surface model. The sampling interval for each sampling point was 30 minutes. The measured values were directly read from an online total phosphorus analyzer installed at the effluent outlet, while the predicted values were calculated by the reagent response model using forward inference based on the input variables at the same time: the normalized deviation of the real-time effective sludge age, the normalized value of the influent total phosphorus load, and the current water temperature. Figure 2 It can be seen that the measured value curve and the predicted value curve show a high degree of consistency in their trends. The predicted value curve fluctuates around the measured value curve, with a maximum absolute deviation of 0.04 mg / L and an average absolute deviation of 0.015 mg / L. During the entire 24-hour validation period, the measured total phosphorus concentration in the effluent remained stable between 0.30 mg / L and 0.45 mg / L per day, far below the emission standard limit of 0.5 mg / L per day. This comparison result indicates that the reagent response model has high prediction accuracy under different influent conditions. The reagent dosing ratio scheme generated based on the model's forward inference can reliably ensure that the total phosphorus in the effluent meets the standard, achieving precise dosing without relying on feedback correction of the total phosphorus in the effluent.
[0154] Figure 3 A comparison curve of the cumulative chemical phosphorus removal agent dosage for the first 15 days using the traditional control method and the subsequent 15 days using the method of this invention is presented. The cumulative agent dosage is expressed in kilograms as the dosage of polyaluminum chloride, and is accumulated daily by a mass flow meter installed on the agent dosing pipeline. Figure 3It can be seen that when using the traditional control method, the cumulative dosage of chemicals increases rapidly in the first 15 days, reaching approximately 198 kg by the 15th day, with an average daily dosage of approximately 13.2 kg. After adopting the method of this invention, the rate of increase in cumulative dosage slows significantly, reaching approximately 280 kg by the 30th day, meaning the cumulative dosage in the following 15 days is approximately 82 kg, with an average daily dosage of approximately 5.5 kg, a reduction of approximately 58% compared to the traditional control method. While the dosage of chemicals is significantly reduced, the total phosphorus concentration in the effluent does not exceed the discharge standard during the following 15 days. This indicates that this invention, through accurate assessment of biological phosphorus removal capacity based on effective sludge age, proactively reduces the dosage of chemical chemicals when biological phosphorus removal capacity is sufficient, achieving a significant saving in chemical consumption. Furthermore, the cumulative sludge discharge in the following 15 days is approximately 22% lower than in the first 15 days, resulting in a corresponding reduction in excess sludge treatment costs. Verification test results show that, under the premise of ensuring stable compliance of effluent quality, the present invention can simultaneously achieve the dual technical effects of reducing chemical reagent dosage and reducing excess sludge.
[0155] In summary, the method for dynamic reagent ratio and sludge reduction based on effective sludge age provided by this invention is applicable to various wastewater treatment systems that employ activated sludge process supplemented by chemical phosphorus removal, including but not limited to A² / O process, oxidation ditch process, sequencing batch reactor process and its variations.
[0156] In the specific embodiments described above, the steps of data acquisition, activated sludge separation, effective sludge age calculation, sludge discharge strategy adjustment, feedforward compensation generation, reagent response model inference, and collaborative scheduling arbitration within each control cycle are executed sequentially according to the described time sequence, forming a complete closed-loop control process. It should be understood that this invention is not limited to the specific values, process parameters, and equipment selections described above. Those skilled in the art, within the scope of the technical concept disclosed in this invention, can adjust the preset parameters, reasonably change the execution order of some steps, or make equivalent substitutions for certain functional modules based on the actual operating conditions of the target wastewater treatment system. Such changes and substitutions do not depart from the technical essence of this invention.
[0157] This invention uses the effective sludge age as a core constraint variable to coordinate and match the two originally relatively independent control loops of sludge discharge control and chemical dosing control in terms of both time and amount, thereby achieving the organic integration of biological and chemical phosphorus removal. Under the premise of ensuring stable effluent quality, it effectively reduces the consumption of chemical agents and the discharge of excess sludge.
Claims
1. A method for dynamic formulation of reagents and synergistic sludge reduction based on effective sludge age, characterized in that, The method includes: Step 1: Obtain the characterization parameters of the first activated sludge mixture in the bioreactor of the target wastewater treatment system and the characterization parameters of the second activated sludge mixture in the sludge discharge pipeline. Separate the active and inactive components of the two respectively to generate the characterization values of the effective activated sludge concentration and the ineffective suspended solids concentration in the bioreactor, as well as the characterization values of the effective activated sludge concentration and the ineffective suspended solids concentration in the sludge discharge pipeline. Step 2: Based on the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value, combined with the total sludge concentration of the bioreactor and the daily sludge discharge, a real-time effective sludge age index is generated. Step 3: Generate a sludge discharge strategy adjustment signal based on the deviation direction and rate of change of the real-time effective sludge age index from the preset effective sludge age target range. Step four: Using the deviation between the real-time effective sludge age index and the preset effective sludge age target range as the first driving signal, the total phosphorus load of the influent of the target wastewater treatment system as the second driving signal, and the sludge discharge strategy adjustment signal as the feedforward compensation signal; calling the pre-constructed reagent response model, whose input variables include at least the first driving signal, the second driving signal, and the feedforward compensation signal, to perform multi-objective optimization processing and generate the optimized reagent dosing ratio scheme for the current time period; Step 5: Input the optimized reagent dosage ratio scheme and the sludge discharge strategy adjustment signal into the collaborative scheduling arbitrator. The collaborative scheduling arbitrator will perform time axis alignment processing to generate a reagent dosage instruction sequence and a sludge discharge pump group control instruction sequence. The chemical dosing command sequence and the sludge pump group control command sequence are interleaved on the time axis, so that the disturbance of sludge concentration in the biological system caused by sludge discharge operation is matched with the compensation effect of chemical dosing in time; the real-time effective sludge age index is the core constraint variable used to coordinate the control of chemical dosing and sludge discharge during the actual operation of the target wastewater treatment system.
2. The method according to claim 1, characterized in that, The separation of active and inactive components in the characterization parameters of the first and second activated sludge mixtures includes: The suspended solids concentration and volatile suspended solids concentration values are extracted from the first activated sludge mixture characterization parameters and the second activated sludge mixture characterization parameters, respectively. The ratio between the two is calculated and compared with a preset activity threshold. Based on the comparison results, active components and inactive components are labeled respectively, and the effective activated sludge concentration characterization value and ineffective suspended solids concentration characterization value in the bioreactor and the sludge discharge pipeline are statistically analyzed respectively.
3. The method according to claim 2, characterized in that, The process of generating a real-time effective sludge age index based on the effective activated sludge concentration characterization value and the ineffective suspended solids concentration characterization value, combined with the total sludge concentration of the bioreactor and the daily sludge discharge volume, includes: The total amount of effective activated sludge in the bioreactor is obtained by multiplying the effective activated sludge concentration value by the effective volume of the bioreactor. Multiply the total daily sludge discharge by the effective activated sludge concentration characterization value in the sludge discharge pipeline to obtain the daily effective activated sludge discharge amount; The real-time effective sludge age index is obtained by dividing the total effective activated sludge volume by the daily effective activated sludge discharge volume.
4. The method according to claim 3, characterized in that, The pre-constructed agent response model is a multi-input multi-output response surface model. The input variables of the response surface model include the normalized deviation between the real-time effective sludge age index and the center value of the preset effective sludge age target interval, the normalized value of the influent total phosphorus load, and the current water temperature. The output variables of the response surface model include the dosage ratio values of various phosphorus removal agents. The response surface model is constructed as follows: offline experimental data or historical operating data of the target wastewater treatment system are obtained as a training sample set. Each sample in the training sample set contains a combination of input variables and the corresponding measured total phosphorus concentration in the effluent. The total phosphorus concentration in the effluent does not exceed the preset emission standard as a hard constraint. The optimization objective is to minimize the weighted sum of the dosage of various phosphorus removal agents. The model coefficients of the response surface model are then fitted with parameters to obtain the trained response surface model.
5. The method according to claim 4, characterized in that, The response surface model uses the normalized deviation between the real-time effective sludge age index and the center value of the preset effective sludge age target interval as the first input variable. The normalized deviation is calculated as follows: Obtain the real-time effective sludge age index value at the current moment, obtain the lower limit and upper limit of the preset effective sludge age target interval, and calculate the arithmetic mean of the lower limit and the upper limit as the center value of the preset effective sludge age target interval; Calculate the difference between the real-time effective sludge age index value and the center value of the preset effective sludge age target interval, and divide the difference by the center value of the preset effective sludge age target interval to obtain the normalized deviation value. When the normalization deviation value is positive, it indicates that the current real-time effective sludge age index is higher than the center value of the preset effective sludge age target interval, and the response surface model outputs the dosage ratio value along the direction of reducing the dosage. When the normalization deviation value is negative, it indicates that the current real-time effective sludge age index is lower than the center value of the preset effective sludge age target interval, and the response surface model outputs the dosage ratio value along the direction of increasing the dosage. The larger the absolute value of the normalized deviation, the greater the adjustment range of the dosage ratio output by the response surface model relative to the baseline dosage ratio.
6. The method according to claim 5, characterized in that, The response surface model uses the normalized value of the total phosphorus load in the influent as the second input variable. The normalized value of the total phosphorus load in the influent is calculated as follows: Obtain the real-time total phosphorus concentration value of the influent at the current moment, obtain the historical sequence of total phosphorus concentration of the target wastewater treatment system within a preset historical time window, and calculate the arithmetic mean of the historical sequence of total phosphorus concentration of the influent as the reference value of total phosphorus concentration of the influent. Calculate the difference between the real-time total phosphorus concentration value of the influent and the reference total phosphorus concentration value of the influent, and divide the difference by the reference total phosphorus concentration value of the influent to obtain the normalized value of the total phosphorus load of the influent; When the normalized deviation value is positive and the normalized value of the influent total phosphorus load is positive, the net adjustment range of the dosage ratio output by the response surface model relative to the baseline dosage ratio is a weighted sum of a first adjustment range determined by the absolute value of the normalized deviation value and a second adjustment range determined by the absolute value of the normalized total phosphorus load. Wherein, when the normalized deviation value is positive, the first adjustment range is negative to indicate a decrease in the dosage; when the normalized value of the influent total phosphorus load is positive, the second adjustment range is positive to indicate an increase in the dosage. The positive or negative direction of the net adjustment range is determined by the algebraic sum and sign of the weighted sum. When the normalized deviation value remains negative and the normalized value of the total phosphorus load in the influent is positive, the upward adjustment of the dosage ratio value output by the response surface model relative to the baseline dosage ratio value is the difference between the second adjustment range and the first adjustment range, and the difference is not less than zero; wherein, when the normalized deviation value is negative, the first adjustment range is positive.
7. The method according to claim 6, characterized in that, The response surface model uses the current water temperature value as the third input variable, and the current water temperature value is the real-time measured value of the mixed liquor temperature in the biological reactor of the target wastewater treatment system. The method further includes a temperature compensation step: Obtain the current water temperature value, calculate the difference between the current water temperature value and the preset reference water temperature value, and obtain the water temperature deviation value; The preset effective sludge age target range is compensated and corrected based on the water temperature deviation value. When the water temperature deviation value is positive, the lower limit and upper limit of the preset effective sludge age target range are multiplied by a first temperature compensation coefficient less than 1. The first temperature compensation coefficient decreases monotonically as the water temperature deviation value increases. When the water temperature deviation value is negative, the lower limit and upper limit of the preset effective sludge age target range are multiplied by a second temperature compensation coefficient greater than 1. The second temperature compensation coefficient increases monotonically as the absolute value of the water temperature deviation value increases. The corrected effective sludge age target range is used to replace the preset effective sludge age target range for the calculation of the normalized deviation value in subsequent steps.
8. The method according to claim 7, characterized in that, The step of generating a sludge discharge strategy adjustment signal based on the deviation direction and rate of change of the real-time effective sludge age index from the preset effective sludge age target range includes: Obtain the real-time effective sludge age index value at the current moment; The real-time effective sludge age index value is compared with the lower limit and upper limit of the preset effective sludge age target range, respectively; When the real-time effective sludge age index value is lower than the lower limit value, a sludge discharge reduction signal is generated, and the sludge discharge reduction step size is determined according to the deviation change rate of the real-time effective sludge age index value. The deviation change rate is the change rate of the real-time effective sludge age index value at the current moment relative to the real-time effective sludge age index value at the previous moment. When the deviation change rate is negative, it indicates that the effective sludge age index is deviating from the target range and continues to decrease, and the operating frequency or single running time of the sludge pump group is reduced by the first reduction step size; when the deviation change rate is positive, it indicates that the effective sludge age index is rising towards the target range, and the operating frequency or single running time of the sludge pump group is reduced by the second reduction step size, which is smaller than the first reduction step size. When the real-time effective sludge age index value is higher than the upper limit value, a sludge discharge increase signal is generated. When the deviation change rate is positive, it indicates that the effective sludge age index is moving away from the target range and continuing to rise. The operating frequency or single running time of the sludge discharge pump group is increased by a first increase step size. When the deviation change rate is negative, it indicates that the effective sludge age index is falling back towards the target range. The operating frequency or single running time of the sludge discharge pump group is increased by a second increase step size smaller than the first increase step size. When the real-time effective sludge age index value is between the lower limit and the upper limit, the operating frequency and single running time of the current sludge discharge pump group remain unchanged.
9. The method according to claim 8, characterized in that, The process involves the collaborative scheduling arbitrator performing time axis alignment based on the timescale difference between the agent's response time and the sludge discharge system's response time, generating a sequence of agent dosing instructions and a sequence of sludge discharge pump control instructions, including: The process involves obtaining the reagent mixing and diffusion time constant of the target wastewater treatment system as the reagent response time, obtaining the sludge discharge lag time constant as the sludge discharge system response time, and using the difference between the two as the pre-compensation advance amount. It also involves obtaining the sludge discharge pump group control command sequence and the reagent dosing reference command sequence. At the pre-compensation advance amount before the start time of each sludge discharge pump group, a portion of the dosage within the corresponding sludge discharge period is extracted as a pre-compensation dosing command and the timestamp is moved forward. After the stop time of each sludge discharge pump group, a portion of the dosage within the corresponding sludge discharge period is extracted as a post-compensation dosing command and the timestamp is moved backward. The sum of the dosage amounts of the pre-compensation dosing command and the post-compensation dosing command equals the original total dosage within the extracted sludge discharge period, and the sum of the dosage amounts of the pre-compensation dosing command and the post-compensation dosing command is subtracted from the original dosage to ensure the total dosage is conserved. The processed sequence is then output as the final reagent dosing command sequence and the final sludge discharge pump group control command sequence.
10. The method according to claim 9, characterized in that, The first preset ratio and the second preset ratio are determined as follows: The adjustment amount of the sludge pump group operating frequency or the adjustment amount of a single running time contained in the sludge discharge strategy adjustment signal is obtained, and the adjustment amount of the sludge pump group operating frequency or the adjustment amount of a single running time is used as the sludge discharge disturbance intensity indication value. The first allocation ratio is equal to the product of the first benchmark allocation value and the first adjustment coefficient corresponding to the sludge disturbance intensity indication value. The first adjustment coefficient is zero when the sludge disturbance intensity indication value is lower than a preset intensity threshold, and monotonically increases as the sludge disturbance intensity indication value increases when the sludge disturbance intensity indication value is higher than or equal to the preset intensity threshold. The first allocation ratio is not greater than 1. The second allocation ratio is equal to 1 minus the first allocation ratio; Both the first allocation ratio and the second allocation ratio are between 0 and 1, and their sum is always equal to 1.
