Sewage treatment method and device

By calculating water quality errors and dynamically adjusting emissions using preset control algorithms, the problem that existing sewage treatment systems cannot respond to water quality changes in a timely manner is solved, and efficient water quality treatment and stable system operation are achieved.

CN120039957APending Publication Date: 2025-05-27福建海峡石墨烯产业技术研究院有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510197513.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The existing sewage treatment system cannot respond in a timely manner when facing changes in water quality, resulting in excessive or small emissions, affecting the effectiveness of water quality control.

Method used

By obtaining the water quality data of the target sedimentation tank, the water quality error is calculated, and a preset control algorithm is used to calculate the emission control signal based on the water quality error, and the emission volume is dynamically adjusted. The control parameters in the preset control algorithm are determined based on historical water quality errors, and the control parameters are optimized to maintain the stability of the system.

Benefits of technology

It has achieved dynamic adjustment of emissions according to changes in water quality, improved water quality treatment efficiency, reduced water quality failure caused by system instability, and reduced labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120039957A_ABST
    Figure CN120039957A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a sewage treatment method and device, and the method comprises the steps: obtaining water quality data of a target sedimentation tank, and calculating a water quality error based on the water quality data; according to the water quality error, a preset control algorithm is used for calculating a discharge control signal, and control parameters in the preset control algorithm are determined according to historical water quality errors; emission information corresponding to an emission mechanism of the target sedimentation tank is determined, the emission information is adjusted according to the emission control signal, target emission information is obtained, and the emission mechanism carries out sewage emission according to the target emission information. The discharge amount is dynamically adjusted according to the water quality change, the labor cost is reduced, discharge is automatically performed according to the target discharge information, and the water quality treatment efficiency of the sedimentation tank is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the technical field of sewage treatment, and particularly to a sewage treatment method. Background Art

[0002] With the intensification of the global water pollution problem, water quality treatment technology is particularly crucial. In the process of sewage treatment, the sedimentation tank is a key link, which is used to remove suspended particles and sediments in the sewage. Therefore, the sludge discharge of the sedimentation tank is extremely important. Most of the traditional sedimentation tank sludge discharge systems adopt timed discharge or manual intervention control. These methods cannot timely reflect the changes in water quality and water volume, with high labor intensity and poor effects. Therefore, designing a sludge discharge system with high control precision and good real-time performance has become one of the hot issues widely concerned in the water treatment industry.

[0003] Currently, due to the advantages of simple structure and convenient adjustment of the PID controller, it is widely used in the field of water quality treatment. The proportional parameter, differential parameter, and integral parameter of the PID controller directly determine the pros and cons of the control system performance. Therefore, the selection of PID control parameters has become the core issue in the design of the PID controller. In the water quality treatment scenario, due to the fact that the water quality changes may be non-linear and irregular, the traditional PID control cannot fully consider the dynamic volatility of the water quality. Therefore, how to efficiently and accurately treat sewage is an urgent problem to be solved currently. Summary of the Invention

[0004] In view of this, the embodiments of this specification provide a sewage treatment method. One or more embodiments of this specification also relate to a sewage treatment device, a computing device, a computer-readable storage medium, and a computer program product simultaneously to solve the technical defects existing in the prior art.

[0005] According to the first aspect of the embodiments of this specification, a sewage treatment method is provided, including:

[0006] Obtain the water quality data of the target sedimentation tank, and calculate the water quality error based on the water quality data;

[0007] Calculate the discharge control signal using a preset control algorithm according to the water quality error, wherein the control parameters in the preset control algorithm are determined according to the historical water quality error;

[0008] Determine the discharge information corresponding to the discharge mechanism of the target sedimentation tank, and adjust the discharge information according to the discharge control signal to obtain the target discharge information, wherein the discharge mechanism discharges sewage according to the target discharge information.

[0009] According to the second aspect of the embodiments of this specification, a sewage treatment device is provided, including:

[0010] A first calculation module, configured to obtain water quality data of a target sedimentation tank and calculate a water quality error based on the water quality data;

[0011] A second calculation module, configured to calculate an emission control signal according to the water quality error by using a preset control algorithm, wherein control parameters in the preset control algorithm are determined according to historical water quality errors;

[0012] An adjustment module, configured to determine emission information corresponding to an emission mechanism of the target sedimentation tank and adjust the emission information according to the emission control signal to obtain target emission information, wherein the emission mechanism discharges sewage according to the target emission information.

[0013] According to a third aspect of the embodiments of the present specification, a computing device is provided, including:

[0014] A memory and a processor;

[0015] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above sewage treatment method are implemented.

[0016] According to a fourth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above sewage treatment method are implemented.

[0017] According to a fifth aspect of the embodiments of the present specification, a computer program product is provided, including a computer program or instructions, and when the computer program or instructions are executed by a processor, the steps of the above sewage treatment method are implemented.

[0018] An embodiment of the present specification realizes calculating a water quality error according to water quality data, calculating an emission control signal according to the water quality error by using a preset control algorithm, achieving the purpose of dynamically adjusting the emission volume according to water quality changes, and the control parameters in the preset control algorithm are determined according to historical water quality errors. Through the optimization of the control parameters, in long-term operation, the system can always maintain high stability, reducing the situation of unqualified water quality caused by system instability. Subsequently, the emission information is adjusted based on the emission control signal to obtain target emission information, and sewage is discharged according to the target emission information, reducing labor costs and automatically discharging according to the target emission information, improving the water quality treatment efficiency of the sedimentation tank. Description of the Drawings

[0019] Figure 1 is a flowchart of a sewage treatment method provided by an embodiment of the present specification;

[0020] Figure 2It is a process flow chart of a sewage treatment method provided by an embodiment of this specification;

[0021] Figure 3 It is a schematic structural diagram of a sewage treatment device provided by an embodiment of this specification;

[0022] Figure 4 It is a structural block diagram of a computing device provided by an embodiment of this specification. Detailed implementation manners

[0023] In the following description, many specific details are set forth in order to provide a thorough understanding of this specification. However, this specification can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementations disclosed below.

[0024] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a", "the", and "said" used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0025] It should be understood that although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0026] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data that have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entrances are provided for the user to choose to authorize or refuse.

[0027] First, the noun terms involved in one or more embodiments of this specification are explained.

[0028] PID control: PID (Proportional Integral Derivative) control is one of the earliest developed control strategies. Due to its simple algorithm, good robustness, and high reliability, it is widely used in industrial process control, especially suitable for deterministic control systems that can establish accurate mathematical models.

[0029] Turbidity sensor: It measures the turbidity of water (unit: NTU) based on the principle of light scattering. This sensor can reflect the concentration of suspended particles in water in real time. Usually, the measuring range of the turbidity sensor is 0 - 1000 NTU, and the target value is usually 1 - 2 NTU.

[0030] Particulate matter concentration sensor: It is used to measure the concentration of sediment in water (unit: mg / L), which is achieved by resistive or optical methods. The measuring range of the particulate matter concentration sensor is generally 0 - 5000 mg / L, and the target value is usually set to 50 mg / L.

[0031] Currently, the existing methods of timed sludge discharge and manual control lack the ability to respond to real-time changes in water quality, and cannot accurately adjust the discharge frequency and discharge volume, thus affecting the water quality treatment efficiency. In the sedimentation tank, the change of water quality is usually dynamic, while the traditional system fails to achieve intelligent and adaptive water quality monitoring and sludge discharge control, resulting in the discharge control strategy being unable to adapt to water quality changes in real time. Although traditional PID control and fuzzy control methods can cope with certain degrees of changes, they cannot effectively handle long-term fluctuations in water quality. Especially when the water quality fluctuates greatly, traditional control methods often show poor adaptability and cannot stably ensure that the water quality reaches the ideal target for a long time. The current discharge control systems generally rely on fixed discharge cycle and discharge volume control strategies. This static control method lacks flexibility and adaptability. When sudden changes in water quality occur, the existing systems cannot respond in time, often resulting in excessive or insufficient discharge volume, affecting the water quality treatment effect.

[0032] Based on this, in this specification, a sewage treatment method is provided. This specification also relates to a sewage treatment device, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail one by one in the following embodiments.

[0033] See Figure 1 , Figure 1 which shows a flowchart of a sewage treatment method provided according to an embodiment of this specification, specifically including the following steps.

[0034] Step 102: Obtain the water quality data of the target sedimentation tank, and calculate the water quality error based on the water quality data.

[0035] Among them, the target sedimentation tank can be understood as a pool used to remove suspended particles and sediments in water. The sedimentation tank can effectively separate the particles in water through gravity. The water quality data of the target sedimentation tank can be understood as the data obtained by collecting the water quality at various positions in the target sedimentation tank through sensors. By collecting the water quality data at multiple positions in the target sedimentation tank, a comprehensive detection of the water quality is determined. After obtaining the water quality data, the water quality error can be calculated based on the water quality data. The water quality error can be understood as the water quality error calculated after comparing the collected water quality data with the preset standard water quality data. Through the water quality error, the current water quality situation can be understood, so as to judge whether sewage discharge is required.

[0036] In practical applications, after the sedimentation tank filters and precipitates the water in the tank, a sediment, i.e., a sewage mixture, will be formed at the bottom of the sedimentation tank. To treat it, the sedimentation tank needs to open the discharge mechanism such as a discharge valve, a discharge pump, etc. to discharge the sediment. When the sediment accumulates too much, it needs to be cleaned and discharged in time to avoid the problem that the water quality fails to meet the standard for a long time. On the contrary, if the discharge is too frequent, there may also be problems of resource waste and affecting the efficiency of the discharge system. Therefore, the opening degree of the discharge mechanism needs to be controlled according to the water quality data.

[0037] Specifically, the water quality data may include water quality turbidity data and water quality particle concentration data. The water quality turbidity data can reflect the concentration of suspended particles in water, and the water quality particle concentration data can reflect the concentration of sediments in the sedimentation tank. After collecting the water quality data, the water quality error can be calculated based on the water quality data, and the water quality situation of the current sedimentation tank can be judged according to the water quality error to determine whether sewage discharge is required.

[0038] Furthermore, in order to obtain the water quality data more accurately and avoid problems in the subsequent discharge system caused by inaccurate collection of water quality data, data can be collected through multiple sensors. Specifically, to obtain the water quality data of the target sedimentation tank, it includes: determining at least one sensor of the target sedimentation tank, and collecting the initial water quality data corresponding to the target sedimentation tank through the at least one sensor; filtering the initial water quality data to obtain the water quality data.

[0039] Among them, the target sedimentation tank can correspond to multiple sensors for data collection. Different sensors can be distributed at different positions of the target sedimentation tank, which is convenient for collecting the water quality data at multiple positions of the target sedimentation tank and ensuring a comprehensive detection of the water quality of the target sedimentation tank.

[0040] In practical applications, sensors can also be installed at key positions in the sedimentation tank, such as the inlet, outlet, and bottom of the tank. One or more sensors can be installed at each position to avoid abnormal data detection by a single sensor, which may lead to abnormal sewage discharge in the future. Specifically, when implemented, the sensors include, but are not limited to, turbidity sensors and particulate concentration sensors. The water quality data in the sedimentation tank is collected in real time through the sensors. Turbidity reflects the concentration of suspended particulate matter in the water, while particulate concentration reflects the concentration of sediment in the sedimentation tank. The turbidity sensor can be installed at the outlet and bottom of the sedimentation tank to monitor the turbidity of the water body, and the particulate concentration sensor can be installed in the middle and bottom of the sedimentation tank to monitor the concentration of sediment in the water, helping to judge the accumulation of sediment. The data collection frequency can set the collection time according to the actual collection strategy, such as collecting once every second. When using the sensors to collect data, the initial water quality data corresponding to the target sedimentation tank is collected. After data preprocessing of the initial water quality data, water quality data can be obtained. Data preprocessing can include processing operations such as denoising and filtering to ensure data accuracy.

[0041] In a specific embodiment of this specification, the sensors for determining the target sedimentation tank are the sensors at positions such as the inlet, outlet, and bottom of the tank. The sensors include turbidity sensors and particulate concentration sensors. Data is collected through the sensors at each position to obtain the initial water quality data uploaded by multiple sensors, and the initial water quality data is filtered through processing such as denoising and filtering to obtain the water quality data of the target sedimentation tank.

[0042] Based on this, the water quality data is collected through the sensors at each position of the target sedimentation tank to ensure a comprehensive detection of the water quality in the target sedimentation tank, and at the same time, the water quality data in the target sedimentation tank can be obtained in real time, providing data support for subsequent sewage discharge treatment.

[0043] Furthermore, in order to be able to control the discharge in real time, it is necessary to calculate the water quality error based on the water quality data and use the water quality error for subsequent discharge control. Specifically, calculating the water quality error based on the water quality data includes: determining the water quality standard data corresponding to the target sedimentation tank; calculating the water quality error according to the water quality standard data and the water quality data.

[0044] Among them, the water quality standard data can be understood as the pre-set water quality standard. The water quality standard data can be set according to the water quality design standard or the preset water quality requirements. According to the water quality standard data and the water quality data, the water quality error can be calculated. The water quality error is the difference between the target water quality and the current water quality.

[0045] In practical applications, the water quality standard data, i.e., the target value, can be set in advance according to design standards or preset water quality requirements. For example, the target turbidity is 0.5 NTU (nephelometric turbidity unit), and the target particulate matter concentration is 100 mg / L (milligrams per liter). After obtaining the water quality data of the target sedimentation tank through real-time measurement by sensors, the water quality error can be calculated. Correspondingly, it is necessary to subtract the measured turbidity from the target turbidity to calculate the turbidity error, and subtract the measured particulate matter concentration from the target particulate matter concentration to obtain the particulate matter concentration error.

[0046] Based on this, by detecting the water quality data of the target sedimentation tank in real time, the water quality error at the corresponding moment can be calculated, which is convenient for adjusting the discharge system based on the water quality error subsequently, ensuring that the system can perform precise control according to the actual water quality changes. In the case of a large water quality error, such as too high turbidity or too high particulate matter concentration, the discharge volume can be increased to remove the excessive sediment as soon as possible.

[0047] Step 104: Calculate the discharge control signal according to the water quality error using a preset control algorithm, where the control parameters in the preset control algorithm are determined according to historical water quality errors.

[0048] Among them, the preset control algorithm can be understood as an algorithm used to calculate the control signal of the discharge mechanism. The preset control algorithm can calculate the discharge control signal using the water quality error. The discharge control signal is used to control the discharge volume of the discharge mechanism, so as to achieve the matching of the discharge volume and the water quality change. The preset control algorithm can adopt the PID control algorithm or the fuzzy control algorithm. In this specification, the PID control algorithm is taken as an example for illustration. The PID control algorithm is composed of three parts of parameters: proportional P, integral I, and derivative D. The proportional part P makes a rapid adjustment according to the current error, the integral part I eliminates the long-term error, and the derivative part D predicts the change trend of the error. By dynamically adjusting the parameters, the discharge system can accurately adjust the discharge volume, and the control process realizes the rapid response of water quality treatment by continuously calculating and correcting the error.

[0049] In practical applications, the control parameters in the preset control algorithm, i.e., the PID control parameters, include the proportional coefficient Kp, the integral coefficient Ki, and the derivative coefficient Kd. The proportional coefficient Kp is used to rapidly respond to the water quality error. When there is a large deviation between the real-time measured water quality and the target standard water quality, the proportional control will rapidly adjust the discharge volume; the integral coefficient Ki is used to eliminate the long-term error and ensure that the system can eliminate the deviation caused by water quality fluctuations; the derivative coefficient Kd is used to predict the change trend of the error and reduce the influence of water quality fluctuations on the discharge volume. Specifically in implementation, Kp, Ki, and Kd in the PID control algorithm can be determined after being optimized based on historical water quality errors. By optimizing the control parameters based on historical water quality errors, the discharge system is in the best control state during long-term operation to ensure that the discharge volume always meets the water quality requirements.

[0050] In a specific embodiment of this specification, after calculating the water quality error, the PID control algorithm is used to calculate the discharge control signal based on the water quality error, and subsequently, the discharge mechanism is controlled based on the discharge control signal, thereby realizing the requirement of response control based on water quality changes.

[0051] Furthermore, since the control parameters in the preset control algorithm are determined based on historical water quality errors, when using the preset control algorithm to calculate the discharge control signal, it is necessary to determine the current control parameters. Specifically, calculating the discharge control signal using the preset control algorithm based on the water quality error includes: determining the control parameters corresponding to the current discharge cycle, and updating the preset control algorithm based on the control parameters to obtain the target control algorithm; calculating the discharge control signal using the target control algorithm according to the water quality error.

[0052] Among them, the current discharge cycle can be understood as the cycle of discharging sewage this time. Since the discharge frequency can be controlled by a preset time interval, the control parameters will change and adjust with the water quality error in different discharge cycles. Therefore, when discharging in the current discharge cycle, it is first necessary to determine the control parameters corresponding to the current discharge cycle, update the preset control algorithm based on the control parameters to obtain the target control algorithm, and then calculate the discharge control signal using the target control algorithm according to the water quality error.

[0053] In practical applications, the control parameters corresponding to the current discharge cycle need to be calculated using the water quality errors in the historical discharge cycles. After determining the control parameters corresponding to the current discharge cycle, it is necessary to update the preset control algorithm based on the control parameters. Specifically, the preset control algorithm is the PID control algorithm, and the control parameters are the proportional coefficient Kp, the integral coefficient Ki, and the differential coefficient Kd. The calculation formula of the PID control algorithm is shown in formula (1):

[0054]

[0055] Among them, e(t) is the water quality error at the current moment, u(t) is the calculated discharge control signal, Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the differential coefficient.

[0056] After determining the control parameters corresponding to the current discharge cycle, the preset control algorithm can be updated according to the control parameters, that is, substituting the obtained Kp, Ki, and Kd into the calculation formula of the PID control algorithm, thereby obtaining the target control algorithm, and subsequently using the target control algorithm to calculate the discharge control signal based on the water quality error.

[0057] Furthermore, determining the control parameters corresponding to the current discharge cycle includes: obtaining the historical water quality error of the target sedimentation tank; calculating the control parameters corresponding to the current discharge cycle according to the historical water quality error.

[0058] Among them, the historical water quality error can be understood as the water quality error corresponding to the historical discharge cycle. The historical water quality error can include the water quality errors of multiple discharge cycles. For example, after 5 rounds of discharge cycles, the water quality errors corresponding to the 5 rounds of discharge cycles are obtained, and these water quality errors are used as the historical water quality error. The control parameters corresponding to the current discharge cycle are calculated through the historical water quality error, so that the discharge system can adapt to the water quality fluctuations during long-term operation.

[0059] In practical applications, the control parameters corresponding to the current discharge cycle can be calculated through a preset optimization algorithm. The preset optimization algorithm is used to optimize the PID control parameters in the PID control algorithm. By optimizing the proportional coefficient, integral coefficient, and differential coefficient of the PID controller, the best control effect can be ensured under variable water quality conditions. Specifically, when implemented, the preset optimization algorithm can select genetic algorithms, particle swarm algorithms, ant colony algorithms, etc.

[0060] The genetic algorithm is a computational model that simulates the natural selection of Darwin's theory of biological evolution and the biological evolution process of genetic mechanisms. It is a method for searching for the optimal solution by simulating the natural evolution process. Using the genetic algorithm to optimize the PID control parameters in the long term, the optimization goal is to adjust the parameters of the PID controller through fitness evaluation so that the system is always in the best control state during long-term operation. The optimization process of the genetic algorithm includes initializing the population, fitness evaluation, crossover and mutation operations, and generating the optimal control strategy through iteration. The particle swarm algorithm is a global optimization algorithm based on swarm intelligence that simulates the process of bird flocks foraging and has good performance in multi-objective optimization problems. The advantage of the particle swarm algorithm is that it can quickly search for the optimal solution and shows good results in both continuous and discrete problems. The ant colony algorithm is an optimization algorithm that simulates the foraging behavior of ants and is suitable for dealing with combinatorial optimization problems. This algorithm has strong global search capabilities and is particularly prominent in parameter optimization and path selection problems.

[0061] In summary, the above three optimization algorithms can all be used to optimize the control parameters in the PID control algorithm. Different optimization algorithms have their own advantages and can be selected according to the actual situation. In the embodiments of this specification, the genetic algorithm is used as an example for illustration.

[0062] In a specific embodiment of this specification, the historical water quality error accumulated over 3 emission cycles is obtained, and the control parameters corresponding to the current emission cycle are calculated according to the historical water quality error by using a genetic algorithm. The control parameters of the current emission cycle are brought into the PID control algorithm to obtain the target control algorithm used in the current emission cycle, so as to calculate the emission control signal of the current emission cycle based on the target control algorithm. In the current emission cycle, since the PID control algorithm belongs to a closed-loop control algorithm, the PID control algorithm will automatically adjust the emission control signal based on the real-time detected water quality error, so as to realize the adjustment of the emission volume according to the water quality change. For example, if the feedback data shows that the emission volume is insufficient or excessive, the emission control signal can be automatically adjusted to increase or decrease the opening of the emission mechanism to ensure that the emission volume always meets the water quality requirements.

[0063] Further, in order to accurately optimize the control parameters, it is necessary to calculate according to the historical water quality error. Specifically, calculating the control parameters corresponding to the current emission cycle according to the historical water quality error includes: determining the historical control parameters and historical water quality errors corresponding to multiple historical emission cycles; calculating the fitness information corresponding to each historical control parameter according to each historical water quality error, and selecting the target historical control parameter from multiple historical control parameters based on the fitness information; determining the control parameters corresponding to the current emission cycle according to the target historical control parameter.

[0064] Among them, the historical control parameter can be understood as the control parameter used in the historical emission cycle. By determining the historical control parameter and the historical water quality error, the fitness information corresponding to the historical control parameter can be calculated. The fitness information can be understood as the fitness of the control parameter for the emission control of water quality data. The smaller the water quality error, the higher the fitness. After determining the fitness information corresponding to each historical control parameter, the target historical control parameter can be selected from multiple historical control parameters based on the fitness information. Based on the target historical control parameter, the control parameters corresponding to the current emission cycle can be determined, specifically including performing crossover and mutation operations on the target historical control parameter, and then new control parameters can be generated, so as to obtain the control parameters corresponding to the current emission cycle.

[0065] In practical applications, the preset optimization algorithm is a genetic algorithm. The calculation process of the genetic algorithm includes initializing the population, fitness evaluation, selection operation, crossover operation, mutation operation, iterative optimization, and updating the PID parameters. Specifically, initializing the population can be generating a random population, and an individual in the population is the historical control parameter in the historical emission cycle, such as [Kp = 2, Ki = 0.5, Kd = 0.1]. When performing fitness evaluation, the individual fitness is evaluated through the historical water quality error corresponding to the historical control parameter. The calculation formula of the fitness is shown in formula (2):

[0066]

[0067] Among them, fitness is the fitness, and the error is the historical water quality error. It can be found from the above formula (2) that the smaller the error, the higher the fitness. When entering the selection operation, selection can be made based on the calculated fitness, and individuals with higher fitness are selected to enter the next generation. When entering the crossover operation and mutation operation, new individuals can be generated through the crossover and mutation operations to generate a new combination of PID parameters, so as to obtain the control parameters corresponding to the current discharge cycle.

[0068] It should be noted that during the process of optimizing the control parameters, the preset optimization algorithm can also be used to perform multiple rounds of iterative optimization in the above manner, so as to select the optimal combination of PID parameters for the real-time adjustment of the discharge control system.

[0069] Step 106: Determine the discharge information corresponding to the discharge mechanism of the target sedimentation tank, and adjust the discharge information according to the discharge control signal to obtain the target discharge information, where the discharge mechanism discharges sewage according to the target discharge information.

[0070] Among them, the discharge mechanism can be understood as the discharge execution mechanism of the discharge system. The discharge mechanism mainly includes a discharge pump and a discharge valve, and the discharge mechanism can accurately adjust the sewage discharge volume according to the discharge control signal. Specifically, during implementation, the adjustment response time requirements for the discharge pump and the discharge valve do not exceed 3 seconds, and the adjustment accuracy is 1%, ensuring accurate control of the discharge volume and water quality changes.

[0071] In practical applications, the discharge pump accurately adjusts the discharge volume by controlling the water flow rate. The discharge control signal is transmitted to the discharge pump in the form of current or voltage, and the discharge pump can adjust the discharge volume according to the discharge control signal; the discharge valve adjusts the opening degree through the discharge control signal to ensure that the water flow rate matches the discharge frequency. The opening degree adjustment response speed and accuracy of the discharge valve affect the accuracy of discharge control.

[0072] Specifically, during implementation, after calculating the discharge control signal based on the water quality error through the PID control algorithm, the discharge information of the discharge mechanism can be adjusted based on the discharge control signal. The discharge information can be understood as the current discharge value of the discharge mechanism. For example, the discharge information can be the current opening degree value of the discharge valve. The opening degree value of the discharge valve is adjusted through the discharge control signal, and the adjusted opening degree value is the target discharge information. After being adjusted by the discharge control signal, the discharge mechanism can discharge sewage according to the target discharge information.

[0073] Further, in order to accurately obtain the emission information corresponding to the emission mechanism, it is necessary to first determine the type of the emission mechanism. Specifically, determining the emission information corresponding to the emission mechanism of the target sedimentation tank includes: determining the type information of the emission mechanism of the target sedimentation tank; and obtaining the emission information of the emission mechanism according to the type information.

[0074] Among them, the type information of the emission mechanism can be understood as the type information of the emission mechanism. The emission mechanism may include, but is not limited to, device mechanisms such as emission valves and emission pumps. The emission information corresponding to different types of emission mechanisms is also different. For example, the emission information of the emission pump is the flow value, that is, the volume of the liquid transported by the emission pump per unit time; while the emission information of the emission valve is the opening value, that is, the opening degree of the valve is usually expressed as a percentage from 0 to 100%. Therefore, when determining the emission information of the emission mechanism, it is necessary to first determine the type of the emission mechanism, and then obtain the emission information corresponding to the emission mechanism based on the type.

[0075] In a specific embodiment of this specification, the type information of the emission mechanism of the target sedimentation tank is determined. The type information is determined to be an emission valve and an emission pump respectively, and the opening value of the emission valve and the emission flow value of the emission pump are obtained.

[0076] Further, after determining the emission information of the emission mechanism, the emission information can be adjusted by using the emission control signal. Specifically, adjusting the emission information according to the emission control signal to obtain the target emission information includes: converting the emission control signal according to a preset conversion coefficient to obtain an emission control parameter; and updating the emission information based on the emission control parameter to obtain the target emission information.

[0077] Among them, the preset conversion coefficient can be understood as a conversion coefficient set in advance. The preset conversion coefficient is used to convert the emission control signal into a corresponding emission control parameter. By using the emission control parameter, the emission information can be updated to obtain the target emission information. The target emission information is the emission information corresponding to the emission mechanism in the current emission cycle. The subsequent emission mechanism performs sewage emission treatment according to the target emission information, so as to ensure that the water quality after emission meets the set standards.

[0078] In practical applications, the emission control signal is usually a continuous control signal, which represents the flow rate or the opening adjustment amount that the system needs to emit. The emission control signal can be a voltage, current signal or other forms of standard signals. Therefore, it is necessary to first perform a linear or non-linear conversion on the emission control signal. For example, if the emission control signal is in the form of a voltage of 5V (volts) and becomes 0.5 after conversion, then the corresponding opening value of the emission valve is 50%. During specific implementation, the converted emission control parameter also needs to be updated correspondingly according to the type of the emission mechanism. For example, if the emission control signal becomes 0.5 after conversion, the corresponding opening value of the emission valve is 50%, and the corresponding flow rate value of the emission pump is 50% of the maximum flow rate value.

[0079] In a specific embodiment of this specification, the PLC control system is responsible for receiving the emission control signal output by the PID. The PLC is connected to a valve driver, a pump driver, etc. After obtaining the emission control signal, the PLC control system can convert the emission control signal based on a preset conversion coefficient, and it also involves the processing of converting an analog signal into a digital signal. Through the emission control parameter converted into a digital signal, the emission information of the emission mechanism is updated, and each emission mechanism is controlled according to the updated target emission information.

[0080] Further, after the emission mechanism discharges sewage according to the target emission information, the method further includes: obtaining the emission water quality data of the target sedimentation tank, correlating the emission water quality data with the target emission information to obtain correlation data; storing the correlation data in a database, where the data in the database is used to optimize the control parameters.

[0081] Among them, the emission water quality data can be understood as the water quality data after emission. The emission water quality data can be collected during the emission process or after the emission. After obtaining the emission water quality data, the emission water quality data can be correlated with the target emission information of the current emission mechanism to generate correlation data as combined information. After storing the correlation data in the database, the historical data stored in the database can be used later to optimize the control parameters for subsequent emission cycles, or the emission mechanism currently in emission can be adjusted through the PID control algorithm, so as to realize the real-time adjustment of the emission amount according to the water quality change to achieve the best emission effect.

[0082] A sewage treatment method provided in this specification includes obtaining water quality data of a target sedimentation tank, calculating a water quality error based on the water quality data; calculating an emission control signal using a preset control algorithm according to the water quality error, wherein control parameters in the preset control algorithm are determined according to historical water quality errors; determining emission information corresponding to an emission mechanism of the target sedimentation tank, and adjusting the emission information according to the emission control signal to obtain target emission information, wherein the emission mechanism discharges sewage according to the target emission information. It realizes calculating the water quality error based on the water quality data, calculating the emission control signal according to the water quality error using the preset control algorithm, achieving the purpose of dynamically adjusting the emission volume according to the water quality change, and the control parameters in the preset control algorithm are determined according to historical water quality errors. Through the optimization of the control parameters, in long-term operation, the system can always maintain high stability, reducing the situation of unqualified water quality caused by system instability. Subsequently, based on the emission control signal, the emission information is adjusted to obtain the target emission information, and sewage is discharged according to the target emission information, reducing labor costs, automatically discharging according to the target emission information, and improving the water quality treatment efficiency of the sedimentation tank.

[0083] The following combines the attached Figure 2 , taking the application of the sewage treatment method provided in this specification in sewage discharge as an example, to further illustrate the sewage treatment method. Among them, Figure 2 shows the processing flowchart of a sewage treatment method provided in an embodiment of this specification, specifically including the following steps.

[0084] Step 202: Determine at least one sensor of the target sedimentation tank, and collect initial water quality data corresponding to the target sedimentation tank through the at least one sensor.

[0085] In an implementable manner, determine multiple sensors of a certain sedimentation tank in a sewage treatment plant, including a turbidity sensor and a particle concentration sensor, and collect water quality data through the multiple sensors to obtain the initial water quality data of the target sedimentation tank. The initial water quality data includes the water quality data collected by the multiple sensors.

[0086] Step 204: Perform filtering processing on the initial water quality data to obtain water quality data.

[0087] In an implementable manner, perform denoising and filtering processing on the water quality data collected by the multiple sensors to obtain water quality data.

[0088] Step 206: Determine the water quality standard data corresponding to the target sedimentation tank, and calculate the water quality error according to the water quality standard data and the water quality data.

[0089] In an implementable manner, determine the water quality standard data set in advance for the target sedimentation tank, calculate the water quality error based on the water quality standard data and the water quality data. For example, if the turbidity error is -0.5 NTU and the particulate matter concentration is -100 mg / L, it indicates that the current target sedimentation tank needs to discharge sewage. If sewage discharge is in progress, the discharge volume needs to be increased.

[0090] Step 208: Obtain the historical water quality error corresponding to the target sedimentation tank, determine the preset optimization algorithm, and use the preset optimization algorithm to calculate the control parameters corresponding to the current discharge cycle based on the historical water quality error.

[0091] In an implementable manner, determine the historical PID control parameters and historical water quality errors corresponding to multiple previous historical discharge cycles respectively. Use the genetic algorithm to calculate the fitness corresponding to each historical PID control parameter based on the historical water quality error, and select the target historical control parameter from the historical PID control parameters based on the fitness. Then, update the target historical control parameter based on the crossover and mutation operations to obtain the PID control parameter corresponding to the current discharge cycle.

[0092] Step 210: Update the preset control algorithm based on the control parameters to obtain the target control algorithm.

[0093] In an implementable manner, update the PID control algorithm based on the PID control parameters to obtain the updated PID control algorithm.

[0094] Step 212: Calculate the discharge control signal using the target control algorithm based on the water quality error.

[0095] In an implementable manner, calculate the discharge control signal u(t) using the updated PID control algorithm based on the water quality error e(t).

[0096] Step 214: Determine the type information of the discharge mechanism of the target sedimentation tank, and obtain the discharge information of the discharge mechanism according to the type information.

[0097] In an implementable manner, determine the type information of the discharge mechanism of the target sedimentation tank, including the discharge pump and the discharge valve. Determine the discharge information of each discharge mechanism according to the type information. For example, the current opening value of the discharge valve is 30%.

[0098] Step 216: Convert the discharge control signal according to the preset conversion coefficient to obtain the discharge control parameter, and update the discharge information based on the discharge control parameter to obtain the target discharge information.

[0099] In an implementable manner, the emission control signal u(t) is converted according to a preset conversion coefficient to obtain an emission control parameter, and the emission information is updated using the emission control parameter to obtain target emission information such as the opening value of the emission valve being 50%. Subsequently, the emission valve can be controlled to perform sewage treatment emissions according to the opening value of 50%.

[0100] Based on this, after analyzing, calculating, and processing the water quality data, an emission control signal is obtained. Based on the emission control signal, the emission amount is controlled and adjusted, thereby realizing the adjustment of the emission amount and frequency based on the water quality change. Compared with the traditional fixed-time emission or manual intervention methods, the system can respond to the water quality change in real time, ensure that the sediment in the sedimentation tank is discharged in time, and avoid the deterioration of water quality caused by excessive accumulation of sediment in the tank. This real-time adjustment significantly improves the water quality treatment efficiency of the sedimentation tank. Secondly, by optimizing the PID control parameters through the genetic algorithm, the system can optimize the PID parameters in the long term according to the actual water quality change, ensuring that the system can operate stably in a complex and dynamic water quality environment.

[0101] Corresponding to the above method embodiments, this specification also provides embodiments of a sewage treatment device. Figure 3 The structural schematic diagram of a sewage treatment device provided by an embodiment of this specification is shown. As Figure 3 shown, the device includes:

[0102] A first calculation module 302, configured to obtain the water quality data of the target sedimentation tank and calculate the water quality error based on the water quality data;

[0103] A second calculation module 304, configured to calculate an emission control signal according to the water quality error using a preset control algorithm, wherein the control parameters in the preset control algorithm are determined according to the historical water quality error;

[0104] An adjustment module 306, configured to determine the emission information corresponding to the emission mechanism of the target sedimentation tank and adjust the emission information according to the emission control signal to obtain target emission information, wherein the emission mechanism performs sewage emissions according to the target emission information.

[0105] Optionally, the first calculation module 302 is further configured to determine at least one sensor of the target sedimentation tank and collect the initial water quality data corresponding to the target sedimentation tank through the at least one sensor; perform filtering processing on the initial water quality data to obtain water quality data.

[0106] Optionally, the first calculation module 302 is further configured to determine the water quality standard data corresponding to the target sedimentation tank; calculate the water quality error according to the water quality standard data and the water quality data.

[0107] Optionally, the second calculation module 304 is further configured to determine control parameters corresponding to the current discharge cycle, update the preset control algorithm based on the control parameters to obtain a target control algorithm, and calculate a discharge control signal using the target control algorithm according to the water quality error.

[0108] Optionally, the second calculation module 304 is further configured to obtain the historical water quality error corresponding to the target sedimentation tank and calculate the control parameters corresponding to the current discharge cycle according to the historical water quality error.

[0109] Optionally, the second calculation module 304 is further configured to determine the historical control parameters and historical water quality errors respectively corresponding to a plurality of historical discharge cycles, calculate the fitness information corresponding to each historical control parameter according to each historical water quality error, select a target historical control parameter from the plurality of historical control parameters based on the fitness information, and determine the control parameters corresponding to the current discharge cycle according to the target historical control parameter.

[0110] Optionally, the adjustment module 306 is further configured to determine the mechanism type information of the discharge mechanism of the target sedimentation tank and obtain the discharge information of the discharge mechanism according to the mechanism type information.

[0111] Optionally, the adjustment module 306 is further configured to convert the discharge control signal according to a preset conversion coefficient to obtain discharge control parameters, and update the discharge information based on the discharge control parameters to obtain target discharge information.

[0112] Optionally, the device further includes an association module, configured to obtain the discharge water quality data of the target sedimentation tank, associate the discharge water quality data with the target discharge information to obtain associated data, and store the associated data in a database, where the data in the database is used to optimize the control parameters.

[0113] A sewage treatment device provided in this specification includes: a first calculation module configured to obtain water quality data of a target sedimentation tank and calculate a water quality error based on the water quality data; a second calculation module configured to calculate an emission control signal using a preset control algorithm according to the water quality error, wherein control parameters in the preset control algorithm are determined according to historical water quality errors; an adjustment module configured to determine emission information corresponding to an emission mechanism of the target sedimentation tank and adjust the emission information according to the emission control signal to obtain target emission information, wherein the emission mechanism discharges sewage according to the target emission information. It realizes calculating the water quality error according to the water quality data, calculating the emission control signal according to the water quality error using the preset control algorithm, achieving the purpose of dynamically adjusting the emission volume according to the water quality change, and the control parameters in the preset control algorithm are determined according to historical water quality errors. Through the optimization of the control parameters, in long-term operation, the system can always maintain high stability, reducing the situation of unqualified water quality caused by system instability. Subsequently, the emission information is adjusted based on the emission control signal to obtain target emission information, and sewage is discharged according to the target emission information, reducing labor costs and automatically discharging according to the target emission information, improving the water quality treatment efficiency of the sedimentation tank.

[0114] The above is a schematic solution of a sewage treatment device according to this embodiment. It should be noted that the technical solution of this sewage treatment device and the technical solution of the above sewage treatment method belong to the same concept. For the details not described in detail in the technical solution of the sewage treatment device, reference can be made to the description of the technical solution of the above sewage treatment method.

[0115] Figure 4 The structural block diagram of a computing device 400 provided according to an embodiment of this specification is shown. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 through a bus 430, and a database 450 is used to store data.

[0116] The computing device 400 also includes an access device 440, which enables the computing device 400 to communicate via one or more networks 460. Examples of such networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface.

[0117] In one embodiment of the present specification, the above components of the computing device 400, as well as Figure 4 other components not shown, may also be connected to each other, for example, via a bus. It should be understood that Figure 4 the block diagram of the computing device shown is for illustrative purposes only and is not a limitation on the scope of the present specification. Those skilled in the art may add or replace other components as needed.

[0118] The computing device 400 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 400 can also be a mobile or stationary server.

[0119] Wherein, the processor 420 is used to execute the following computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above sewage treatment method are implemented.

[0120] The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above sewage treatment method belong to the same concept. For the details not described in detail in the technical solution of the computing device, reference can be made to the description of the technical solution of the above sewage treatment method.

[0121] An embodiment of this specification also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the above sewage treatment method are implemented.

[0122] The above is a schematic solution of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above sewage treatment method belong to the same concept. For the details not described in detail in the technical solution of the storage medium, reference can be made to the description of the technical solution of the above sewage treatment method.

[0123] An embodiment of this specification also provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the steps of the above sewage treatment method are implemented.

[0124] The above is a schematic solution of a computer program product according to this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the above sewage treatment method belong to the same concept. For the details not described in detail in the technical solution of the computer program product, reference can be made to the description of the technical solution of the above sewage treatment method.

[0125] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0126] The computer instructions include computer program code, which may be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0127] It should be noted that for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of this specification are not limited by the described action sequence, because according to the embodiments of this specification, some steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments of this specification.

[0128] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0129] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The alternative embodiments do not elaborate on all details and do not limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can well understand and utilize this specification.

Claims

1. A sewage treatment method, characterized in that: The method comprises: Acquire water quality data of a target sedimentation tank, and calculate a water quality error based on the water quality data; Calculating a discharge control signal using a preset control algorithm according to the water quality error, wherein a control parameter in the preset control algorithm is determined according to historical water quality errors; The discharge information corresponding to the discharge mechanism of the target sedimentation tank is determined, and the discharge information is adjusted according to the discharge control signal to obtain target discharge information, wherein the discharge mechanism discharges sewage according to the target discharge information.

2. The method according to claim 1, characterized in that Obtain water quality data of the target sedimentation tank, including: Determine at least one sensor of the target sedimentation tank, and collect initial water quality data corresponding to the target sedimentation tank through the at least one sensor; The initial water quality data is filtered to obtain water quality data.

3. The method according to claim 1, characterized in that Calculating a water quality error based on the water quality data includes: Determine the water quality standard data corresponding to the target sedimentation tank; A water quality error is calculated based on the water quality standard data and the water quality data.

4. The method according to claim 1, characterized in that: Calculates emission control signals based on water quality errors using a preset control algorithm, including: Determine the control parameters corresponding to the current emission cycle, and update the preset control algorithm based on the control parameters to obtain a target control algorithm; The emission control signal is calculated using the target control algorithm based on the water quality error.

5. The method according to claim 4, characterized in that Determine the control parameters corresponding to the current emission cycle, including: Obtaining the historical water quality error corresponding to the target sedimentation tank; The control parameters corresponding to the current discharge cycle are calculated according to the historical water quality errors.

6. The method according to claim 5, characterized in that The control parameters corresponding to the current discharge cycle are calculated according to the historical water quality errors, including: Determine the historical control parameters and historical water quality errors corresponding to multiple historical discharge periods; Calculating fitness information corresponding to each historical control parameter according to each historical water quality error, and selecting a target historical control parameter from a plurality of historical control parameters based on the fitness information; The control parameters corresponding to the current emission cycle are determined according to the target historical control parameters.

7. The method according to claim 1, characterized in that Determining the discharge information corresponding to the discharge mechanism of the target sedimentation tank includes: Determining the organization type information of the discharge organization of the target sedimentation tank; The emission information of the emission mechanism is obtained according to the mechanism type information.

8. The method according to claim 1, characterized in that Adjusting the emission information according to the emission control signal to obtain target emission information includes: Convert the emission control signal according to a preset conversion coefficient to obtain an emission control parameter; The emission information is updated based on the emission control parameter to obtain target emission information.

9. The method according to claim 8, characterized in that After the discharge mechanism discharges sewage according to the target discharge information, the method further includes: Acquire the discharge water quality data of the target sedimentation tank, associate the discharge water quality data with the target discharge information, and obtain associated data; The associated data is stored in a database, wherein the data in the database is used to optimize the control parameters.

10. A sewage treatment device, characterized in that: include: A first calculation module is configured to obtain water quality data of a target sedimentation tank and calculate a water quality error based on the water quality data; A second calculation module is configured to calculate a discharge control signal using a preset control algorithm according to the water quality error, wherein a control parameter in the preset control algorithm is determined according to a historical water quality error; The adjustment module is configured to determine the discharge information corresponding to the discharge mechanism of the target sedimentation tank, and adjust the discharge information according to the discharge control signal to obtain target discharge information, wherein the discharge mechanism discharges sewage according to the target discharge information.

11. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the sewage treatment method described in any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, implement the steps of the sewage treatment method described in any one of claims 1 to 9.

13. A computer program product, characterized in that It comprises a computer program or instructions, which, when executed by a processor, implements the steps of the sewage treatment method described in any one of claims 1 to 9.

Citation Information

Cited By

  • Foam eliminating method and system, storage medium and electronic equipment

    CN120717550A