Intelligent control system for carbon source addition in sewage based on rapid BOD detection
By analyzing historical flow data at carbon source addition points, calculating flow change rate and impact index, and adjusting carbon source addition amount in combination with decay index, the problem of lag in rapid BOD detection during sudden flow changes is solved, achieving precise control of carbon source addition and avoiding excessive total nitrogen in effluent and carbon source waste.
Patent Information
- Application Number
- CN202611348027.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-09-02
AI Technical Summary
Existing intelligent control systems for wastewater carbon source dosing based on rapid BOD detection have low accuracy, especially when there are sudden changes in influent flow rate, they cannot adjust the carbon source dosage in time, resulting in excessive total nitrogen in the effluent or waste of carbon source.
By analyzing the historical flow data sequence of the carbon source addition point, the flow change rate and impact index are calculated. Combined with the decay index, a compensation index is obtained, and the carbon source addition amount is dynamically adjusted to compensate for the deviation caused by the lag of rapid BOD detection.
It improves the accuracy of intelligent control of wastewater carbon source addition, avoids excessive total nitrogen in effluent and waste of carbon source, ensures effective contact between denitrifying bacteria and carbon source, and improves denitrification effect.
Smart Images

Figure CN122861234B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of intelligent control for wastewater treatment, specifically to an intelligent control system for wastewater carbon source dosing based on rapid BOD detection. Background Technology
[0002] Wastewater treatment plants commonly employ biological denitrification processes (such as the AAO process) to remove total nitrogen from wastewater. In this process, denitrifying bacteria utilize a carbon source as an electron donor to carry out denitrification, reducing nitrate nitrogen to nitrogen gas to remove total nitrogen. When the influent carbon source is insufficient, the denitrification reaction cannot proceed fully, leading to excessive total nitrogen in the effluent. Therefore, it is usually necessary to add an additional carbon source in the anoxic zone.
[0003] In related technologies, the required carbon source dosage is mainly predicted by rapid biochemical oxygen demand (BOD) detection results. However, rapid BOD detection has a lag effect. When the influent flow rate changes abruptly, the predicted carbon source dosage is still the calculation result under the operating conditions before the flow rate change, and cannot reflect the actual carbon source demand at the current moment.
[0004] This shows that the accuracy of intelligent control of wastewater carbon source addition based on rapid BOD detection is relatively low in related technologies. Summary of the Invention
[0005] The purpose of this invention is to provide an intelligent control system for wastewater carbon source dosing based on rapid BOD detection, which solves the technical problem of low accuracy in intelligent control of wastewater carbon source dosing based on rapid BOD detection in related technologies.
[0006] In a first aspect, embodiments of the present invention provide an intelligent control system for wastewater carbon source dosing based on rapid BOD detection, the system comprising: an analysis module, an evaluation module, a calculation module, a compensation module, and a control module connected in communication; The analysis module is used to analyze the fluctuations of the historical flow data sequence corresponding to the carbon source addition point to obtain the flow change rate. The flow change rate is used to characterize the severity of the fluctuations in wastewater flow. The historical flow data sequence is a sequence of flow data from multiple times within a preset time period, tracing back from the current flow data collection time. The assessment module is used to conduct a comprehensive assessment based on the historical flow data sequence, the flow change rate, and the baseline flow to obtain an impact index, wherein the impact index is used to characterize the degree of influence of wastewater flow fluctuations on carbon source dosage. The calculation module is used to perform a fusion calculation based on the impact index, the decay index, and the direction of flow change to obtain a compensation index. The compensation index is used to characterize the correction magnitude of the initial carbon source dosage. The decay index is obtained based on the analysis of the historical flow data sequence. The compensation index is positively correlated with the impact index and also positively correlated with the decay index. The direction of flow change is used to indicate the upward or downward trend of the historical flow data sequence. The initial carbon source dosage is obtained based on steady-state prediction of the influent water quality data, flow data, and total nitrogen concentration. The compensation module is used to compensate the initial carbon source dosage based on the compensation index to obtain the target carbon source dosage, wherein the target carbon source dosage is used to characterize the amount of carbon source that needs to be added at the current moment; The control module is used to add carbon source based on the target carbon source dosage.
[0007] In one embodiment, the analysis of fluctuations in the historical flow data sequence corresponding to the carbon source addition point to obtain the flow change rate includes: Based on the historical flow data sequence corresponding to the carbon source addition point, the absolute difference of the flow data at two adjacent time points is calculated to obtain multiple absolute differences; The average change magnitude is obtained by calculating the ratio based on the cumulative sum of multiple absolute differences and the number of traffic data included in the historical traffic data series; The flow rate of change is obtained by calculating the ratio of the average change amplitude to the sampling interval of the flow data.
[0008] In one embodiment, the impact index is obtained by comprehensively evaluating the historical traffic data sequence, the traffic change rate, and the baseline traffic, including: The fluctuation intensity value is obtained by multiplying the standard deviation of multiple flow data in the historical flow data sequence with the flow rate of change, wherein the fluctuation intensity value is used to characterize the relative oscillation amplitude of the sewage flow. The relative magnitudes of multiple flow data points in the historical flow data sequence with the baseline flow are analyzed to obtain the maximum single deviation value, wherein the maximum single deviation value is used to characterize the maximum degree of deviation between the sewage flow and the baseline flow. The impact index is obtained by multiplying the fluctuation intensity value by the maximum single deviation value.
[0009] In one embodiment, the step of obtaining the calculation of the decay exponent includes: Calculate the difference between each traffic data point in the historical traffic data sequence and the baseline traffic flow to obtain multiple differences; The duration of the impact is obtained by taking the time difference between the collection time of the traffic data corresponding to the largest difference among multiple differences and the current time. An attenuation index is obtained by performing an exponential calculation based on the duration of the impact and the sampling interval of the flow data. The attenuation index is negatively correlated with the duration of the impact and positively correlated with the sampling interval of the flow data.
[0010] In one embodiment, the calculation of the compensation index based on the impact index, attenuation index, and direction of flow change includes: The product of the impact index and the attenuation index is calculated to obtain the compensation coefficient, wherein the compensation coefficient is used to characterize the impact intensity after time attenuation; The compensation index is obtained by calculating the sum of the compensation coefficient and the preset constant.
[0011] In one embodiment, the target carbon source addition amount is the product of the compensation index and the initial carbon source addition amount.
[0012] In one embodiment, the system further includes: a multi-source sensing module; The multi-source sensing module is used to acquire monitoring data from multiple preset detection points in the wastewater treatment plant. The multiple preset detection points include at least the inlet and the carbon source addition point, and the monitoring data from each preset detection point includes at least water quality data and flow rate data.
[0013] In one embodiment, the evaluation module is further used to verify the impact index based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, and obtain a comprehensive impact index.
[0014] In one embodiment, the verification of the impact index based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point to obtain a comprehensive impact index includes: Based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, data matching is performed to obtain multiple reference flow data corresponding to each historical water quality data. Among them, the historical monitoring data sequence is a sequence composed of flow data from multiple times within a reference time period tracing back from the acquisition time of the current flow data. By analyzing the fluctuations of multiple reference flow data corresponding to each historical water quality data, the historical flow change rate corresponding to each historical water quality data is obtained. For each historical water quality data, a comprehensive evaluation is conducted based on its corresponding multiple reference flow data, its corresponding historical flow change rate and benchmark flow to obtain the historical impact index corresponding to each historical water quality data. The difference between the candidate impact index sequence and the candidate water quality data sequence is analyzed to obtain the deviation value, wherein the deviation value is used to characterize the overall degree of deviation between the candidate impact index sequence and the candidate water quality data sequence in terms of numerical amplitude. The candidate impact index sequence is a sequence composed of historical impact indices and impact indices corresponding to multiple historical water quality data, and the candidate water quality data sequence is a sequence composed of multiple historical water quality data and water quality data at the current moment. The DTW distance between the candidate impact index sequence and the candidate water quality data sequence is calculated to obtain the misalignment value, wherein the misalignment value is used to characterize the degree of difference between the candidate impact index sequence and the candidate water quality data sequence in terms of evolution trend; The product of the deviation value and the misalignment value is calculated to obtain the comprehensive impact index, wherein the comprehensive impact index is used to characterize the degree of influence of the fluctuation of sewage flow on the carbon source dosage after multi-source data verification.
[0015] In one embodiment, the step of obtaining the initial carbon source dosage includes: The water quality data, flow rate data, and total nitrogen concentration at the inlet are input into the deep learning model to obtain the initial carbon source dosage output by the deep learning model.
[0016] The present invention has the following beneficial effects: This invention analyzes the fluctuations in historical flow data sequences corresponding to carbon source addition points to obtain the flow change rate. Based on the historical flow data sequence, the flow change rate, and the baseline flow, a comprehensive evaluation is performed to obtain an impact index. Subsequently, a compensation index is calculated by fusing the impact index, the decay index, and the direction of flow change. The initial carbon source addition amount is compensated based on the compensation index to obtain the target carbon source addition amount. Then, carbon source is added based on the target carbon source addition amount. This invention considers the impact of sudden changes in influent flow on carbon source demand. Addressing the problem of the inherent lag in rapid BOD detection leading to the inability to detect flow changes in a timely manner, this invention analyzes the flow fluctuations at the carbon source addition point, identifies flow changes, and adjusts the carbon source addition amount through the compensation index to compensate for the deviation caused by the detection lag. This avoids the supply-demand mismatch problem caused by the prediction lag of carbon source addition due to sudden changes in influent flow in related technologies, thereby avoiding the problem of excessive total nitrogen in effluent or carbon source waste, and improving the accuracy of intelligent control of wastewater carbon source addition based on rapid BOD detection. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the structure of an intelligent control system for adding carbon sources to wastewater based on rapid BOD detection, provided in an embodiment of the present invention. Detailed Implementation
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0019] In related technologies, the required carbon source dosage is mainly predicted based on rapid BOD detection results. However, rapid BOD detection itself requires waiting for the biochemical reaction process of microbial degradation of organic matter and consumption of dissolved oxygen, a process that cannot be compressed to the second level, resulting in an inherent lag of tens of minutes in the detection results. In other words, rapid BOD detection has a lag; when the influent flow rate changes abruptly, the predicted carbon source dosage is still the calculation result under the operating conditions before the flow rate change, meaning the predicted required carbon source dosage cannot reflect the actual carbon source demand at the current moment, leading to a mismatch between the carbon source dosage and the actual demand. Therefore, the accuracy of the intelligent control system for wastewater carbon source dosing based on rapid BOD detection using related technologies is relatively low.
[0020] To improve the accuracy of intelligent control of wastewater carbon source dosing based on rapid BOD detection, this invention proposes an intelligent control system for wastewater carbon source dosing based on rapid BOD detection. Please refer to [link to relevant documentation]. Figure 1 , Figure 1 The diagram shows a schematic of a wastewater carbon source dosing intelligent control system 100 based on rapid BOD detection according to an embodiment of the present invention. The system includes: an analysis module 101, an evaluation module 102, a calculation module 103, a compensation module 104, and a control module 105 connected by communication.
[0021] The analysis module 101 is used to analyze the fluctuations of the historical flow data sequence corresponding to the carbon source addition point and obtain the flow change rate. The flow change rate is used to characterize the severity of the fluctuation of the sewage flow. The historical flow data sequence is a sequence of flow data from multiple times within a preset time period, which is traced back from the current flow data collection time.
[0022] The assessment module 102 is used to conduct a comprehensive assessment based on historical flow data series, flow change rate and baseline flow to obtain the impact index, which is used to characterize the degree of impact of wastewater flow fluctuation on carbon source addition.
[0023] The calculation module 103 is used to perform a fusion calculation based on the impact index, the decay index and the direction of flow change to obtain the compensation index. The compensation index is used to characterize the correction magnitude of the initial carbon source dosage. The decay index is obtained based on the analysis of historical flow data series. The compensation index is positively correlated with the impact index and also positively correlated with the decay index. The initial carbon source dosage is obtained by steady-state prediction based on the water quality data, flow data and total nitrogen concentration at the inlet.
[0024] The compensation module 104 is used to compensate the initial carbon source dosage based on the compensation index to obtain the target carbon source dosage, wherein the target carbon source dosage is used to characterize the amount of carbon source that needs to be added at the current moment. The control module 105 is used to add carbon source based on the target carbon source dosage.
[0025] It should be noted that the system provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above.
[0026] This invention is applicable to wastewater treatment scenarios employing biological denitrification processes, such as wastewater treatment scenarios where influent flow fluctuates frequently due to heavy rains. The following example illustrates the process of controlling carbon source dosing in wastewater based on rapid BOD detection, using a wastewater carbon source dosing intelligent control method based on rapid BOD detection. This method includes the following steps: Step S1: The analysis module analyzes the fluctuation changes of the historical flow data sequence corresponding to the carbon source addition point to obtain the flow change rate.
[0027] The flow rate change rate is used to characterize the severity of the fluctuation in sewage flow. The historical flow data sequence is a sequence of flow data from multiple times within a preset time period, tracing back from the current flow data collection time.
[0028] The intelligent control system for wastewater carbon source dosing based on rapid BOD detection provided by this invention further includes a multi-source sensing module. This multi-source sensing module is used to acquire monitoring data from multiple preset detection points in the wastewater treatment plant. These preset detection points include at least the inlet and the carbon source dosing point, and the monitoring data from each preset detection point includes at least water quality data and flow rate data.
[0029] Water quality data includes BOD data. The multi-source sensing module includes a rapid BOD analyzer. The rapid BOD analyzer is installed at the inlet to acquire BOD data. BOD detection requires a preset biochemical reaction time (e.g., 10 to 15 minutes) to obtain a single BOD data point; that is, the lag time for BOD detection is 10 to 15 minutes. Due to the physical limitations of a single detection cycle (including sample introduction, reaction, cleaning, and data processing) of the rapid BOD analyzer, to ensure the reliability of the detection results while considering equipment maintenance costs, the sampling interval for BOD data can be set to 20 minutes.
[0030] The multi-source sensing module also includes a flow sensor. Flow sensors are installed at both the water inlet and the carbon source dosing point. These flow sensors are used to collect flow data at their respective locations, and the sampling interval for the flow data can be 1 minute.
[0031] This invention takes a 10-minute lag time for BOD detection as an example. Since the inherent lag time of rapid BOD detection is 10 minutes, the preset time can be set to 10 minutes. This allows for the backtracking of flow time series data within this lag time when BOD data is acquired, achieving time-series alignment between water quality data and flow fluctuations in the corresponding time period. For example, if the latest flow data is acquired at the carbon source addition point at 14:00, meaning the current flow data collection time is 14:00, then the historical flow data sequence consists of flow data from 13:50 to 14:00, comprising 11 time periods.
[0032] Analysis revealed that when the wastewater flow rate at the carbon source addition point (also known as the entrance to the anoxic zone) suddenly increases, the amount of wastewater entering the anoxic zone per unit time increases. At this time, with the carbon source addition rate remaining constant, although the total amount of carbon source entering the anoxic zone remains the same, the amount of carbon source allocated to each unit volume of wastewater decreases, meaning the carbon source concentration is diluted. This reduces the effective contact probability between denitrifying bacteria and the carbon source and nitrate nitrogen, resulting in high total nitrogen levels in the treated water. Conversely, when the wastewater flow rate at the carbon source addition point suddenly decreases, the amount of wastewater entering the anoxic zone per unit time decreases. At this time, with the carbon source addition rate remaining constant, the amount of carbon source allocated to each unit volume of wastewater increases, meaning the carbon source concentration rises. This increases the effective contact probability between denitrifying bacteria and the carbon source and nitrate nitrogen, leading to a carbon source supply exceeding actual demand and resulting in incomplete carbon source utilization and waste. Based on this, the present invention can analyze the fluctuations in the historical flow data sequence corresponding to the carbon source addition point, and dynamically adjust the carbon source addition amount according to the real-time flow change direction, so that the carbon source supply is matched with the actual hydraulic load of the sewage flow in the anoxic zone. This ensures that denitrifying bacteria have sufficient carbon source supply to ensure denitrification effect when the flow suddenly increases, and avoids carbon source excess when the flow suddenly decreases, thereby reducing waste and the risk of secondary pollution.
[0033] Specifically, the analysis of fluctuations in the historical flow data sequence corresponding to the carbon source addition point to obtain the flow change rate includes: Based on the historical flow data sequence corresponding to the carbon source addition point, the absolute difference of the flow data at two adjacent time points is calculated to obtain multiple absolute differences; The average change magnitude is obtained by calculating the ratio based on the cumulative sum of multiple absolute differences and the number of traffic data included in the historical traffic data series; The flow rate of change is obtained by calculating the ratio of the average change amplitude to the sampling interval of the flow data.
[0034] For example, suppose the current traffic data is collected at time t, and the traffic change rate at time t is... It can be represented as: In the formula, This represents the average change amplitude. nt is the total number of sampling points within the time window corresponding to the historical traffic data sequence, and its value is equal to the number of traffic data points included in the historical traffic data sequence. For the first time within this time window Traffic data corresponding to each moment. Within this time window Traffic data for one moment. This refers to the sampling interval for traffic data.
[0035] Step S2: The evaluation module performs a comprehensive evaluation based on the historical flow data sequence, the flow change rate, and the baseline flow to obtain the impact index.
[0036] Among them, the impact index is used to characterize the degree of influence of wastewater flow fluctuations on carbon source addition.
[0037] Analysis revealed that when the actual effluent total nitrogen deviates from the expected effluent total nitrogen, wastewater flow fluctuations occur, and the larger the deviation, the more pronounced the flow fluctuations. This deviation reflects a supply-demand imbalance in carbon sources, meaning the carbon source dosage fails to match the actual carbon source demand at the current moment. Furthermore, the larger and more drastic the flow fluctuations, the greater the deviation between the actual and expected effluent total nitrogen. Therefore, by analyzing the differences between each flow rate in the historical flow data series and the baseline flow rate, the magnitude of the instantaneous flow rate deviation from the baseline level can be quantified. Simultaneously, by comprehensively analyzing the dispersion and flow change rate of the historical flow data series, the fluctuation of wastewater flow can be analyzed to quantify the impact of wastewater flow fluctuations on carbon source dosage.
[0038] The evaluation module can receive the traffic change rate sent by the analysis module and perform a comprehensive evaluation based on it.
[0039] Specifically, the impact index is obtained by comprehensively evaluating the historical traffic data sequence, the traffic change rate, and the baseline traffic, including: The fluctuation intensity value is obtained by multiplying the standard deviation of multiple flow data in the historical flow data sequence with the flow rate of change, wherein the fluctuation intensity value is used to characterize the relative oscillation amplitude of the sewage flow. The relative magnitudes of multiple flow data points in the historical flow data sequence with the baseline flow are analyzed to obtain the maximum single deviation value, wherein the maximum single deviation value is used to characterize the maximum degree of deviation between the sewage flow and the baseline flow. The impact index is obtained by multiplying the fluctuation intensity value by the maximum single deviation value.
[0040] For example, the shock index corresponding to time t. It can be represented as: In the formula, This represents the fluctuation intensity value. This represents the standard deviation of multiple traffic data points in a historical traffic data series. Let be the rate of change of flow at time t. This represents the largest single deviation value. The first time window corresponding to the historical traffic data sequence Traffic data corresponding to each moment. To evaluate the baseline traffic pre-stored in the module, for example, the baseline traffic The value is 100 tons / hour. For a pre-set very small positive number, for example, The value is 10 -6 .
[0041] In one example, the assessment module can also validate the impact index based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, thereby obtaining a comprehensive impact index. The implementation process includes: Based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, data matching is performed to obtain multiple reference flow data corresponding to each historical water quality data. Among them, the historical monitoring data sequence is a sequence composed of flow data from multiple times within a reference time period tracing back from the acquisition time of the current flow data. By analyzing the fluctuations of multiple reference flow data corresponding to each historical water quality data, the historical flow change rate corresponding to each historical water quality data is obtained. For each historical water quality data, a comprehensive evaluation is conducted based on its corresponding multiple reference flow data, its corresponding historical flow change rate and benchmark flow to obtain the historical impact index corresponding to each historical water quality data. The difference between the candidate impact index sequence and the candidate water quality data sequence is analyzed to obtain the deviation value, wherein the deviation value is used to characterize the overall degree of deviation between the candidate impact index sequence and the candidate water quality data sequence in terms of numerical amplitude. The candidate impact index sequence is a sequence composed of historical impact indices and impact indices corresponding to multiple historical water quality data, and the candidate water quality data sequence is a sequence composed of multiple historical water quality data and water quality data at the current moment. The DTW distance between the candidate impact index sequence and the candidate water quality data sequence is calculated to obtain the misalignment value, wherein the misalignment value is used to characterize the degree of difference between the candidate impact index sequence and the candidate water quality data sequence in terms of evolution trend; The product of the deviation value and the misalignment value is calculated to obtain the comprehensive impact index, wherein the comprehensive impact index is used to characterize the degree of influence of the fluctuation of sewage flow on the carbon source dosage after multi-source data verification.
[0042] The evaluation module pre-stores reference durations, such as 24 hours. It can retrieve multiple flow data points from the time the current flow data was acquired, tracing back 24 hours. Historical water quality data includes multiple historical BODs acquired within the past 24 hours, excluding the current BOD. The evaluation module can trace back 10 minutes from the acquisition time of each historical BOD to obtain the corresponding time window. Subsequently, the evaluation module matches the time window corresponding to each historical BOD with the acquisition times corresponding to the multiple flow data points from the past 24 hours to determine multiple reference flow data points corresponding to each historical BOD.
[0043] It is understandable that the method by which the evaluation module obtains the historical flow change rate corresponding to each historical water quality data point is similar to the method by which the flow change rate is obtained in step S1, and will not be repeated here. Furthermore, the method by which the evaluation module obtains the historical impact index corresponding to each historical water quality data point is similar to the method by which the impact index is obtained, and will also not be repeated here.
[0044] For example, the composite shock index corresponding to time t. It can be represented as: In the formula, This represents the deviation value. k is the sum of the number of time windows corresponding to historical BODs and the number of time windows corresponding to historical traffic data sequences. The value of k is equal to the number of historical BODs plus 1. Let be the normalized shock index corresponding to the j-th time window, i.e., the j-th normalized shock index in the candidate shock index sequence. Multiple historical shock indices and shock indices in the candidate shock index sequence can be normalized using a maximum-minimum normalization method to obtain the normalized shock index. If the maximum and minimum values are equal during this normalization process, the normalized shock index can be directly set to 0.5. This is the normalized BOD value corresponding to the j-th time window, i.e., the j-th normalized BOD value in the candidate water quality data sequence. Similarly, the maximum-minimum normalization method can be used to normalize multiple historical BOD values and the current BOD in the candidate water quality data sequence to obtain the normalized BOD value. If the maximum and minimum values are equal during the normalization process, the normalized BOD value can be set to 0.5.
[0045] This is a misaligned value. The evaluation module pre-stores a dynamic time warping (DTW) algorithm, which can be used to calculate the DTW distance between candidate shock index sequences and candidate water quality data sequences.
[0046] The evaluation module can use BOD data from multiple historical periods and the corresponding impact index for time-series matching and verification, which can improve the accuracy of identifying the intensity of traffic fluctuations.
[0047] In this embodiment of the invention, subsequent steps may be calculated using the comprehensive impact index, or the subsequent steps may also be calculated using the impact index. This invention does not specifically limit this.
[0048] Step S3: The calculation module performs a fusion calculation based on the impact index, attenuation index, and direction of flow change to obtain the compensation index.
[0049] The compensation index is used to characterize the correction magnitude of the initial carbon source dosage, the decay index is obtained based on the analysis of the historical flow data sequence, the compensation index is positively correlated with the impact index, and the compensation index is also positively correlated with the decay index, the direction of flow change is used to indicate the upward or downward trend of the historical flow data sequence, and the initial carbon source dosage is obtained based on steady-state prediction of the water quality data, flow data and total nitrogen concentration at the inlet.
[0050] Since flow fluctuations gradually decrease over time, the calculation module can analyze the duration of the strongest flow fluctuation up to the current moment to obtain a decay index, which quantifies the residual impact of historical shocks on current carbon source demand. Based on this decay index and the shock index, a compensation index is obtained.
[0051] The calculation module can receive the impact index sent by the evaluation module and perform a fusion calculation based on the impact index, attenuation index and the direction of flow change to obtain the compensation index.
[0052] Specifically, the compensation index is obtained by fusing the impact index, attenuation index, and direction of flow change, including: The product of the impact index and the attenuation index is calculated to obtain the compensation coefficient, wherein the compensation coefficient is used to characterize the impact intensity after time attenuation; The compensation index is obtained by calculating the sum of the compensation coefficient and the preset constant.
[0053] For example, the compensation index corresponding to time t. It can be represented as: In the formula, The impact index corresponding to time t is calculated in a way that avoids the problem of the impact index and the preset constant being unable to be directly added due to inconsistencies in dimensions. Only its numerical value is used in the calculation. Let be the decay exponent at time t. 1 is a preset constant. For symbolic functions, This is a quantitative value representing the overall trend direction of historical traffic data sequences. The calculation module can perform linear regression fitting on the historical traffic data sequences to obtain a fitted straight line, the slope of which is... This formula implies that a sudden increase in flow requires an increase in the amount of carbon source added, while a sudden decrease in flow requires a decrease in the amount of carbon source added.
[0054] Or, the compensation exponent at time t. It can also be expressed as: In the formula, Let be the comprehensive impact index corresponding to time t. Let be the decay exponent at time t. 1 is a preset constant. As mentioned earlier, For symbolic functions, A quantitative value representing the overall trend direction of historical traffic data sequences.
[0055] In this embodiment of the invention, the calculation module can process the obtained compensation index. Limit the amplitude and adjust the compensation index. Limit the range to [0.7, 1.3] to avoid overcompensation or undercompensation.
[0056] In one example, the steps to calculate the decay exponent include: Calculate the difference between each traffic data point in the historical traffic data sequence and the baseline traffic flow to obtain multiple differences; The duration of the impact is obtained by taking the time difference between the collection time of the traffic data corresponding to the largest difference among multiple differences and the current time. An attenuation index is obtained by performing an exponential calculation based on the duration of the impact and the sampling interval of the flow data. The attenuation index is negatively correlated with the duration of the impact and positively correlated with the sampling interval of the flow data.
[0057] For example, the decay exponent at time t. It can be represented as: In the formula, To determine the duration of the impact, This represents the time of data collection corresponding to the largest difference among multiple differences. exp() represents an exponential function with the natural constant e as its base.
[0058] In one example, the steps to obtain the initial carbon source dosage include: The water quality data, flow rate data, and total nitrogen concentration at the inlet are input into a deep learning model to obtain the initial carbon source dosage output by the deep learning model. This deep learning model is, for example, an LSTM-GRU model.
[0059] The multi-source sensing module also includes a total nitrogen monitor. This total nitrogen monitor is installed at the inlet end and is used to collect the total nitrogen concentration at the inlet end.
[0060] Before inputting the water quality data, flow rate data, and total nitrogen concentration at the inlet into the deep learning model, the computation module of this invention can acquire multiple training data sets. Each training data set includes: a water quality data sample, a flow rate data sample, and a total nitrogen concentration sample, as well as a corresponding carbon source dosage label. Then, the computation module can train the model using these multiple training data sets to obtain the deep learning model.
[0061] Step S4: The compensation module compensates the initial carbon source dosage based on the compensation index to obtain the target carbon source dosage.
[0062] The target carbon source addition amount is used to characterize the amount of carbon source that needs to be added at the current moment.
[0063] The compensation module can receive the compensation index sent by the calculation module and compensate the initial carbon source dosage according to the compensation index. The compensation module can determine the target carbon source dosage as the product of the compensation index and the initial carbon source dosage.
[0064] In this embodiment of the invention, as described in step S1 above, the sampling interval for BOD data is 20 minutes, and the initial carbon source dosage is updated every 20 minutes. When the compensation module compensates for the initial carbon source dosage based on the compensation index, it uses the latest updated initial carbon source dosage as a benchmark to calculate the target carbon source dosage.
[0065] Step S5: The control module adds carbon source based on the target carbon source dosage.
[0066] The control module can receive the target carbon source dosage sent by the compensation module and control the dosing equipment (such as a dosing pump) to add carbon source at the target carbon source dosage.
[0067] The intelligent control system for wastewater carbon source dosing based on rapid BOD detection provided by this invention further includes a feedback module and an adjustment module. The feedback module analyzes the difference between the total nitrogen concentration in the effluent and the total nitrogen concentration in the influent to obtain the actual nitrogen removal rate. The adjustment module uses backpropagation to adjust the weight parameters of a deep learning model (such as an LSTM-GRU model) along the direction of decreasing absolute difference between the actual and predicted nitrogen removal rates. Specifically, the adjustment module constructs a loss function based on the difference between the actual and predicted nitrogen removal rates, calculates the gradient using the backpropagation algorithm, and successively fine-tunes the weight parameters of the deep learning model along the direction of decreasing loss function, so that the predicted nitrogen removal rate output by the deep learning model gradually approaches the actual nitrogen removal rate.
[0068] Understandably, a total nitrogen monitor is also installed at the effluent end to collect the total nitrogen concentration at the effluent. The feedback module can calculate the difference between the total nitrogen concentration at the influent end and the total nitrogen concentration at the effluent end to obtain the actual nitrogen removal rate. The predicted nitrogen removal rate is the expected total nitrogen that can be removed, calculated by a deep learning model (such as the LSTM-GRU model) based on the influent total nitrogen concentration and the target carbon source dosage. For example, the predicted nitrogen removal rate is 15.0 mg / L.
[0069] In summary, this embodiment of the invention analyzes the fluctuations in historical flow data sequences corresponding to carbon source addition points to obtain the flow change rate. Based on the historical flow data sequence, the flow change rate, and the baseline flow, a comprehensive evaluation is performed to obtain an impact index. Subsequently, a compensation index is calculated by fusing the impact index, the decay index, and the direction of flow change. The initial carbon source addition amount is compensated based on the compensation index to obtain the target carbon source addition amount. Then, carbon source is added based on the target carbon source addition amount. This embodiment of the invention considers the impact of sudden changes in influent flow on carbon source demand. Addressing the problem of the inherent lag in rapid BOD detection leading to the inability to detect flow changes in a timely manner, this embodiment analyzes the flow fluctuations at the carbon source addition point, identifies flow changes, and adjusts the carbon source addition amount through the compensation index to compensate for the deviation caused by the detection lag. This avoids the supply-demand mismatch problem caused by the prediction lag of carbon source addition due to sudden changes in influent flow in related technologies, thereby avoiding the problem of excessive total nitrogen in effluent or carbon source waste, and improving the accuracy of intelligent control of wastewater carbon source addition based on rapid BOD detection.
Claims
1. A smart control system for wastewater carbon source dosing based on rapid BOD detection, characterized in that, The system includes: a communication connection analysis module, an evaluation module, a calculation module, a compensation module, and a control module; The analysis module is used to analyze the fluctuations of the historical flow data sequence corresponding to the carbon source addition point to obtain the flow change rate. The flow change rate is used to characterize the severity of the fluctuations in wastewater flow. The historical flow data sequence is a sequence of flow data from multiple times within a preset time period, tracing back from the current flow data collection time. The assessment module is used to conduct a comprehensive assessment based on the historical flow data sequence, the flow change rate, and the baseline flow to obtain an impact index, wherein the impact index is used to characterize the degree of influence of wastewater flow fluctuations on carbon source dosage. The calculation module is used to perform a fusion calculation based on the impact index, the decay index, and the direction of flow change to obtain a compensation index. The compensation index is used to characterize the correction magnitude of the initial carbon source dosage. The decay index is obtained based on the analysis of the historical flow data sequence. The compensation index is positively correlated with the impact index and also positively correlated with the decay index. The direction of flow change is used to indicate the upward or downward trend of the historical flow data sequence. The initial carbon source dosage is obtained based on steady-state prediction of the influent water quality data, flow data, and total nitrogen concentration. The compensation module is used to compensate the initial carbon source dosage based on the compensation index to obtain the target carbon source dosage, wherein the target carbon source dosage is used to characterize the amount of carbon source that needs to be added at the current moment. The control module is used to add carbon source based on the target carbon source dosage. The step of calculating the compensation index by fusing the impact index, attenuation index, and direction of flow change includes: The product of the impact index and the attenuation index is calculated to obtain the compensation coefficient, wherein the compensation coefficient is used to characterize the impact intensity after time attenuation; The compensation index is obtained by calculating the sum of the compensation coefficient and the preset constant.
2. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The analysis of the historical flow data sequence corresponding to the carbon source addition point yields the flow change rate, including: Based on the historical flow data sequence corresponding to the carbon source addition point, the absolute difference of the flow data at two adjacent time points is calculated to obtain multiple absolute differences; The average change magnitude is obtained by calculating the ratio based on the cumulative sum of multiple absolute differences and the number of traffic data included in the historical traffic data series; The flow rate of change is obtained by calculating the ratio of the average change amplitude to the sampling interval of the flow data.
3. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The impact index is obtained by comprehensively evaluating the historical flow data sequence, the flow change rate, and the baseline flow, including: The fluctuation intensity value is obtained by multiplying the standard deviation of multiple flow data in the historical flow data sequence with the flow rate of change, wherein the fluctuation intensity value is used to characterize the relative oscillation amplitude of the sewage flow. The relative magnitudes of multiple flow data points in the historical flow data sequence with the baseline flow are analyzed to obtain the maximum single deviation value, wherein the maximum single deviation value is used to characterize the maximum degree of deviation between the sewage flow and the baseline flow. The impact index is obtained by multiplying the fluctuation intensity value by the maximum single deviation value.
4. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The steps to obtain the decay exponent include: Calculate the difference between each traffic data point in the historical traffic data sequence and the baseline traffic flow to obtain multiple differences; The duration of the impact is obtained by taking the time difference between the collection time of the traffic data corresponding to the largest difference among multiple differences and the current time. An attenuation index is obtained by performing an exponential calculation based on the duration of the impact and the sampling interval of the flow data. The attenuation index is negatively correlated with the duration of the impact and positively correlated with the sampling interval of the flow data.
5. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The target carbon source addition amount is the product of the compensation index and the initial carbon source addition amount.
6. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The system also includes: a multi-source sensing module; The multi-source sensing module is used to acquire monitoring data from multiple preset detection points in the wastewater treatment plant. The multiple preset detection points include at least the inlet and the carbon source addition point, and the monitoring data from each preset detection point includes at least water quality data and flow rate data.
7. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The assessment module is also used to verify the impact index based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, and obtain a comprehensive impact index.
8. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 7, characterized in that, The impact index is verified based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, resulting in a comprehensive impact index, including: Based on multiple historical water quality data and historical monitoring data sequences corresponding to the carbon source addition point, data matching is performed to obtain multiple reference flow data corresponding to each historical water quality data. Among them, the historical monitoring data sequence is a sequence composed of flow data from multiple times within a reference time period tracing back from the acquisition time of the current flow data. By analyzing the fluctuations of multiple reference flow data corresponding to each historical water quality data, the historical flow change rate corresponding to each historical water quality data is obtained. For each historical water quality data, a comprehensive evaluation is conducted based on its corresponding multiple reference flow data, its corresponding historical flow change rate and benchmark flow to obtain the historical impact index corresponding to each historical water quality data. The difference between the candidate impact index sequence and the candidate water quality data sequence is analyzed to obtain the deviation value, wherein the deviation value is used to characterize the overall degree of deviation between the candidate impact index sequence and the candidate water quality data sequence in terms of numerical amplitude. The candidate impact index sequence is a sequence composed of historical impact indices and impact indices corresponding to multiple historical water quality data, and the candidate water quality data sequence is a sequence composed of multiple historical water quality data and water quality data at the current moment. The DTW distance between the candidate impact index sequence and the candidate water quality data sequence is calculated to obtain the misalignment value, wherein the misalignment value is used to characterize the degree of difference between the candidate impact index sequence and the candidate water quality data sequence in terms of evolution trend; The product of the deviation value and the misalignment value is calculated to obtain the comprehensive impact index, wherein the comprehensive impact index is used to characterize the degree of influence of the fluctuation of sewage flow on the carbon source dosage after multi-source data verification.
9. The intelligent control system for wastewater carbon source dosing based on rapid BOD detection according to claim 1, characterized in that, The steps to obtain the initial carbon source dosage include: The water quality data, flow rate data, and total nitrogen concentration at the inlet are input into the deep learning model to obtain the initial carbon source dosage output by the deep learning model.
Citation Information
Patent Citations
Carbon source adding system and method for sewage treatment plant
CN112978919A
Intelligent adding method of sewage treatment carbon source
CN120817673A
