A method and system for building a water plant flocculant intelligent dosing model
Through multiple water quality tests and stability analyses, an intelligent dosing model was built, and deviation analysis and constraint conditions were used to optimize dosing parameters, which solved the problem of difficulty in adaptive and precise dosing of flocculants in the existing technology and improved the accuracy of water treatment. sex and efficiency.
Patent Information
- Application Number
- CN202410759772.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The existing technology is difficult to adaptively and accurately add flocculants according to different raw water qualities, resulting in poor water treatment effects and affecting effluent quality and water purification costs.
Stability analysis results are generated through multiple raw water quality tests, network parameters of the intelligent dosing model are configured, deviation analysis and constraint conditions are used to optimize the dosing parameters, and an intelligent dosing model is built to automatically adjust the dosage.
It improves the accuracy and efficiency of flocculant dosing, ensures that water quality indicators are within the preset range, and solves the problem of dosing under changes in raw water quality.
Smart Images

Figure CN118335247B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water treatment, and in particular to a method and system for building a water plant flocculant intelligent dosing model. Background Art
[0002] The addition of flocculants in water plants is an important step in removing turbidity in the conventional surface water treatment process. It is a process with multiple variables, nonlinear mapping, and multiple disturbance changes, and is affected by many factors such as the temperature, turbidity value, pH value, oxygen consumption, coagulant dosage, hydraulic conditions, etc. of the source water. The core technical issue of coagulation dosing is the control of the dosage. Accurate and accurate addition of flocculants is the key to obtaining better effluent water quality and coagulation effect. The effect of coagulation dosing not only affects the subsequent water treatment process, but the dosage is also directly related to the effluent turbidity, water purification cost and economic benefits of the entire water plant. In the existing technology, faced with the ever-changing raw water quality parameters, it is difficult to accurately and adaptively add the required amount of flocculants according to the actual situation. Summary of the invention
[0003] The embodiment of the present application provides a method and system for building a water plant flocculant intelligent dosing model, which solves the technical problem in the prior art that it is difficult to accurately and adaptively dosing flocculants for different raw water qualities.
[0004] In view of the above problems, an embodiment of the present application provides a method and system for building a water plant flocculant intelligent dosing model.
[0005] A first aspect of an embodiment of the present application provides a method for building a water plant flocculant intelligent dosing model, the method comprising:
[0006] Based on the preset raw water quality index, multiple raw water quality tests are performed on N water pools of the target water plant during the preset test period to obtain N sets of water quality test results;
[0007] Performing stability analysis on the N water quality test result sets to generate N first dosing influencing factors;
[0008] According to the N first injection influencing factors, the network parameters of the N intelligent injection modules of the intelligent injection model are configured;
[0009] Interactively obtain preset water quality index benchmark values of the target water plant;
[0010] Collecting N real-time water quality index values of the current N water pools, performing deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generating N deviation step lengths;
[0011] Initializing and optimizing the dosing parameters of the N intelligent dosing modules according to the N deviation step lengths, and constraining the optimization process using a first constraint condition to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold;
[0012] The intelligent dosing model is constructed according to the N optimal intelligent dosing modules.
[0013] A second aspect of the embodiment of the present application provides a system for building a water plant flocculant intelligent dosing model, the system comprising:
[0014] A detection module, the detection module is used to perform multiple raw water quality tests on N water pools of a target water plant in a preset detection period based on preset raw water quality indicators to obtain N water quality test result sets;
[0015] A first analysis module, the first analysis module is used to perform stability analysis on the N water quality test result sets to generate N first dosing influencing factors;
[0016] A configuration module, the configuration module is used to configure the network parameters of the N intelligent dosing modules of the intelligent dosing model according to the N first dosing influencing factors;
[0017] An acquisition module, the acquisition module is used to interactively obtain a preset water quality index reference value of the target water plant;
[0018] A second analysis module, the second analysis module is used to collect N real-time water quality index values of the current N water pools, perform deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generate N deviation step lengths;
[0019] An optimization module, the optimization module is used to initialize and optimize the dosing parameters of the N intelligent dosing modules according to the N deviation step sizes, and use a first constraint condition to constrain the optimization process to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold;
[0020] A building module is used to build the intelligent dosing model according to the N optimal intelligent dosing modules.
[0021] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0022] First, according to the preset raw water quality index, the N water pools of the target water plant are tested for raw water quality multiple times during the preset test period to obtain N water quality test result sets. Then, these test result sets are subjected to stability analysis to generate N first dosing influencing factors. Subsequently, the network parameters of the N intelligent dosing modules of the intelligent dosing model are configured according to these factors. Further, the preset water quality index benchmark values of the target water plant are interactively obtained. Subsequently, the real-time water quality index values of the current N water pools are collected, and the deviations are analyzed from the preset water quality index benchmark values to calculate N deviation steps. According to these deviation steps, the dosing parameters of the N intelligent dosing modules are initialized and optimized to ensure that they are subject to the first constraint during the optimization process, that is, the difference between the real-time indicators of the N water qualities and the preset benchmark values must be within the preset deviation threshold. Finally, N optimal intelligent dosing modules are generated, taking into account the deviation step and the first constraint, and the intelligent dosing model is constructed based on these optimal intelligent dosing modules. The invention solves the technical problem in the prior art that it is difficult to accurately and adaptively add water of different raw water qualities, and achieves the technical effect of improving the accuracy of addition. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A schematic diagram of a method for constructing a water plant flocculant intelligent dosing model provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of the system structure for building a water plant flocculant intelligent dosing model provided in an embodiment of the present application.
[0026] Explanation of the accompanying drawings: detection module 11, first analysis module 12, configuration module 13, acquisition module 14, second analysis module 15, optimization module 16, construction module 17. DETAILED DESCRIPTION
[0027] The embodiment of the present application solves the technical problem in the prior art that it is difficult to accurately and adaptively add flocculants to different raw water qualities by providing a method and system for building a water plant flocculant intelligent dosing model.
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0029] It should be noted that the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products or devices.
[0030] Example 1
[0031] like Figure 1 As shown, the embodiment of the present application provides a method for building a water plant flocculant intelligent dosing model, wherein the method includes:
[0032] Based on the preset raw water quality index, multiple raw water quality tests are performed on N water pools of the target water plant during the preset test period to obtain N sets of water quality test results;
[0033] Due to its strong solubility, most of the water sources in my country are surface water that is in extensive contact with the external environment. In addition, due to the influence of human pollution factors such as industrial production, the raw water contains many impurities. Water plants need to use effective water treatment technologies to remove those impurities that endanger human health and affect human daily use according to the specific conditions of the water quality. By pre-setting the raw water quality detection indicators, multiple water quality tests are conducted on the N water pools of the target water plant during the predetermined detection period. After sorting and analyzing the test data, N water quality test result sets are formed, where each set contains the water quality data of the corresponding water pool during the preset detection period.
[0034] Further, based on the preset raw water quality index, the method includes:
[0035] Traversing the initial raw water quality indicators to perform a single disturbance analysis and generate multiple coagulation influencing factors, wherein the initial raw water quality indicators include turbidity, pH value, water temperature, oxygen consumption, raw water flow, conductivity, and ion concentration;
[0036] Determine whether the multiple coagulation influencing factors are greater than or equal to the preset coagulation influencing factor threshold. If so, add the corresponding initial raw water quality index to the preset raw water quality index, wherein the preset raw water quality index includes turbidity, oxygen consumption, pH value, and raw water flow rate.
[0037] The initial raw water quality indicators include turbidity, pH value, water temperature, oxygen consumption, raw water flow, conductivity, ion concentration, etc. Traversing the initial raw water quality indicators and performing a single perturbation analysis on each initial raw water quality indicator means changing the value of a certain indicator one by one while keeping other indicators unchanged to observe its effect on the coagulation process. Through single perturbation analysis, multiple coagulation influencing factors can be generated. The coagulation influencing factor is a numerical value that quantifies the impact of changes in indicators on the coagulation effect, which can intuitively reflect the importance of different water quality indicators to the coagulation process.
[0038] Among them, turbidity measures the concentration of suspended solids in raw water, which is the most important disturbance factor affecting the dosage in the coagulation dosing process. The turbidity value of raw water is related to rainfall, season, temperature and other factors, and the unit is NTU. When the suspended solids content is too low, the probability of collision between particles is very small, and the coagulation effect is poor. At this time, it is necessary to add alum-like high-molecular coagulant to improve the coagulation effect, and the required dosing mass concentration is also high, which wastes a lot of reagents. For example, when the turbidity of raw water is lower than 50NTU, the required optimal dosage is high, which can reach 24-27mg / L. In the process of coagulation dosing, different types of coagulants have applicable pH values. The high or low pH value will not only affect the full hydrolysis and net capture and sweeping effect of the coagulant, but also affect the surface properties of impurities in the water body and their existence. The dosage of coagulant and the final coagulation effect will be directly affected by the raw water flow rate, mainly manifested in that the change of influent flow rate will affect the velocity gradient of the water flow and cause collision between particles, and the change of flow rate will affect the coagulation sedimentation time. Different water temperatures have a great influence on the coagulation process. Since the hydrolysis of coagulants is an endothermic reaction, when the water temperature is low, the dissolution rate of the coagulant slows down and the hydrolysis becomes difficult. However, when the raw water temperature rises above 60°C, the high temperature will cause the flocculant to age and decompose into insoluble substances, affecting the coagulation effect.
[0039] The threshold of the coagulation influencing factor is set based on actual experience and coagulation process requirements. It is used to screen out water quality indicators that have a significant impact on the coagulation effect by judging whether the multiple coagulation influencing factors generated are greater than or equal to the preset coagulation influencing factor threshold. If a coagulation influencing factor is greater than or equal to the preset threshold, it means that the corresponding initial raw water quality indicator has an important impact on the coagulation process, and this indicator is added to the preset raw water quality indicator. The preset raw water quality indicators include turbidity, oxygen consumption, pH value, and raw water flow rate. These indicators are the most critical factors in the coagulation process and have a decisive influence on the coagulation effect.
[0040] Performing stability analysis on the N water quality test result sets to generate N first dosing influencing factors;
[0041] Stability analysis is mainly used to evaluate the degree of change and trend of water quality indicators in different time periods or under different conditions, so as to determine whether the water quality is stable and formulate corresponding dosing strategies accordingly. N sets of water quality test results cover multiple key water quality indicators and jointly reflect the water quality of the pool. By performing stability analysis on N sets of water quality test results, N first dosing influencing factors can be obtained. The first dosing influencing factor is based on the results of water quality stability analysis and is used to quantify the differences in water quality stability of different pools. It is also an important basis for adjusting dosing parameters and helping to optimize the dosing process. For example, if the water quality indicators of a pool fluctuate greatly, it means that its stability is poor and more frequent dosing adjustments may be required; while pools with relatively stable water quality indicators may adopt a more stable dosing strategy.
[0042] Furthermore, the stability analysis is performed on the N water quality test result sets to generate N first addition influencing factors, and the method includes:
[0043] Using the preset raw water quality index as an index, perform index retrieval on N water quality test result sets to obtain N turbidity test results, N oxygen consumption test results, N pH value test results and N raw water flow test results;
[0044] Performing stability tests on the N turbidity test results, the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results, respectively, to generate N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors;
[0045] The N turbidity stability factors, the N oxygen consumption stability factors, the N pH value stability factors and the N raw water flow stability factors are respectively averaged to generate N first dosing influencing factors.
[0046] When conducting stability analysis, first, using the preset raw water quality index as an index, extract the data corresponding to the preset index from each water quality test result set, such as the specific values of turbidity, oxygen consumption, pH value and raw water flow rate, and then obtain N turbidity test results, N oxygen consumption test results, N pH value test results and N raw water flow rate test results. Then, stability tests are performed on the N turbidity test results, N oxygen consumption test results, N pH value test results and N raw water flow rate test results, respectively, and N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors and N raw water flow rate stability factors are calculated and generated. Finally, the N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors and N raw water flow rate stability factors are averaged, and their average value, i.e., the first dosing influencing factor, is obtained by adding multiple values and dividing them by the number.
[0047] Further, stability tests are performed on the N turbidity test results, the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results to generate N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors, and the method includes:
[0048] Extracting a first turbidity detection result from the N turbidity detection results;
[0049] Extracting the mean value of the first turbidity detection result to generate a first turbidity detection mean value;
[0050] Calculating the variance of the first turbidity detection result to match the first turbidity detection step;
[0051] Taking the first turbidity detection mean value as a starting point, searching in the first turbidity detection result according to the first turbidity detection step to obtain a first-stage turbidity detection value;
[0052] Comparing the distribution density of the first turbidity detection mean value and the first stage turbidity detection value, updating the starting point according to the comparison result, and obtaining the first turbidity stability factor after multiple retrieval and analysis;
[0053] Performing stability testing on the N turbidity test results to generate the N turbidity stability factors;
[0054] Stability tests are performed on the N oxygen consumption test results, the N pH value test results and the N raw water flow rate test results respectively to generate N oxygen consumption stability factors, N pH value stability factors and N raw water flow rate stability factors.
[0055] From the N turbidity detection results, a turbidity detection result is randomly selected as the first turbidity detection result. The first turbidity detection result reflects the fluctuation of the turbidity of the corresponding water pool within the preset detection period. Next, the first turbidity detection mean is obtained by calculating the mean of the first turbidity detection result. The first turbidity detection mean reflects the average turbidity of the corresponding water pool within the preset detection period. Then, the variance of the first turbidity detection result is calculated and matched to the first turbidity detection pace. The variance of the first turbidity detection result reflects the degree of fluctuation of the turbidity of the corresponding water pool within the preset detection period. The larger the variance, the higher the degree of fluctuation, and the larger the corresponding first turbidity detection pace. Optionally, by obtaining multiple sample schemes and multiple sample turbidity detection results, each sample scheme includes a set of turbidity detection results and a corresponding turbidity detection pace. The variance of the turbidity detection results of each sample scheme is calculated, and these variances are stored with the corresponding turbidity detection steps to form a mapping table. According to the mapping relationship, the variance of the first turbidity detection result is used as an index to search in the mapping relationship, so as to match and obtain the first turbidity detection step. The first turbidity detection step is the turbidity value of a single move when performing stability analysis to find densely distributed turbidity detection results. By calculating the variance and matching the step, the range and accuracy of the search in the data set can be determined. Taking the first turbidity detection mean as the starting point, the first turbidity detection result is searched according to the first turbidity detection step, that is, starting from the mean, the data set is searched step by step according to the set step to find data points that meet specific conditions or ranges, so as to obtain the first stage turbidity detection value. The first turbidity detection mean and the first stage turbidity detection value are compared in distribution density by calculating the probability density function. According to the comparison result, if the distribution of the first stage turbidity detection value is not stable or concentrated enough, the starting point (i.e., the first turbidity detection mean) can be updated to a new value, and the search and analysis process is repeated. After multiple searches and analyses, the variance is calculated and the inverse is taken according to the final stable turbidity value to obtain the first turbidity stability factor, which reflects the stability of the first turbidity test result. Repeat the above process to perform stability tests on each of the N turbidity test results. In this way, each turbidity test result generates a stability factor, and N turbidity stability factors are generated. Using the same method as above, N oxygen consumption test results, N pH value test results, and N raw water flow test results are tested for stability, and N oxygen consumption stability factors, N pH value stability factors, and N raw water flow stability factors are generated.
[0056] Furthermore, the method for obtaining the first turbidity stability factor comprises:
[0057] Determine whether the distribution density of the turbidity detection value in the first stage is greater than the distribution density of the first turbidity detection mean value, and if so, update the turbidity detection value in the first stage as the starting point;
[0058] If not, the rand function is called to generate a first random number. If the first random number satisfies a preset value, the turbidity detection value of the first stage is updated as the starting point;
[0059] After multiple searches, the first-stage turbidity detection value corresponding to the maximum distribution density in the search process is used as the first target turbidity detection value;
[0060] The variance of a plurality of first turbidity detection values whose distance from the first target turbidity detection value is the first turbidity detection pace is calculated, and the inverse of the calculation result is used as the first turbidity stability factor.
[0061] After obtaining the first-stage turbidity detection value, it is necessary to judge the distribution density of the first-stage turbidity detection value, and update the starting point according to the result, perform multiple searches to find the first target turbidity detection value, and calculate the first turbidity stability factor accordingly. Specifically, it is determined whether the distribution density of the first-stage turbidity detection value is greater than the distribution density of the first turbidity detection mean. Among them, the distribution density of the first-stage turbidity detection value is the ratio of the number of detection values contained in the area constructed with the first turbidity detection step as the radius and the first turbidity detection value as the center to the area of the upper region. The distribution density reflects the concentration of the data points. If the distribution density of the first-stage turbidity detection value is greater, it means that the data in this stage is more concentrated and has higher representativeness. If this is the case, the first-stage turbidity detection value is updated to a new starting point so that the key area in the data set can be more accurately located in subsequent searches. If the distribution density of the first-stage turbidity detection value is not greater than the distribution density of the first turbidity detection mean, the rand function is called to generate the first random number. The rand function is usually used to generate random numbers, and is used here to introduce a certain degree of randomness to deal with uneven data distribution or special circumstances. If the generated first random number meets the preset numerical condition (such as falling within a certain range), for example, the preset numerical condition is [0, 0.6], if the generated first random number is 0.3, the first stage turbidity detection value is updated to the starting point, otherwise the original starting point remains unchanged. The introduction of this randomness helps to expand the search range and avoid falling into the local optimum. Next, after multiple searches, the first stage turbidity detection value corresponding to the maximum distribution density during the search process is recorded and used as the first target turbidity detection value. The first target turbidity detection value is screened out in multiple searches and has the largest distribution density, so it can better represent the key characteristics in the data set. Then, the variance of multiple first turbidity detection values whose distance from the first target turbidity detection value is the first turbidity detection step is calculated to evaluate the data fluctuation near the first target turbidity detection value. The inverse of the calculation result is used as the first turbidity stability factor, so that the size of the variance is converted into a stability index. The smaller the variance, the more stable the data, and the larger its inverse, the higher the stability factor reflected. Based on the above-mentioned principle of obtaining the turbidity stability factor, the stability factors of other raw water quality indicators are obtained in the same way.
[0062] According to the N first injection influencing factors, the network parameters of the N intelligent injection modules of the intelligent injection model are configured;
[0063] The intelligent dosing model contains multiple intelligent dosing modules, each of which is responsible for processing different types of water quality data and outputting corresponding dosing recommendations. When constructing the intelligent dosing module, a recurrent neural network (RNN) can be selected as the neural network structure, and the network parameters of each intelligent dosing module can be configured according to the N first dosing influencing factors. Determine the number of layers of the RNN, the number of neurons in each layer, select a suitable activation function (such as ReLU, tanh, etc.), and define an appropriate loss function. Use the prepared real-time water quality index value to input the RNN model for training, update the model parameters through the back propagation algorithm, and optimize the model's fitting ability. Deploy the trained RNN model to the intelligent dosing model, receive and analyze the real-time water quality index value in real time, and complete the construction of the intelligent dosing module. The input data of the intelligent dosing module is the real-time water quality index value, and the output data is the initialization dosing parameter. The N first dosing influencing factors correspond to the N intelligent dosing modules of the intelligent dosing model, and configure the network structure, activation function, learning rate and other parameters of the intelligent dosing module according to the specific value and distribution of the first dosing influencing factor. Optionally, the computing power allocation result of N intelligent dosing modules is obtained by multiplying the total computing power of the intelligent dosing model by the inverse of the ratio of the N first dosing influence factors to the sum of the N first dosing influence factors. Thus, the technical effect of the configured model being allocated less computing power when the water quality is more stable and the configured model being allocated more computing power when the water quality is more unstable is achieved, and the goal of reasonably allocating computing power to the intelligent dosing model of the flocculant of the target water plant and improving dosing quality and efficiency is achieved.
[0064] Interactively obtain preset water quality index benchmark values of the target water plant;
[0065] Collecting N real-time water quality index values of the current N water pools, performing deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generating N deviation step lengths;
[0066] By interacting with the target water plant's system, the preset water quality index benchmark values are obtained. These benchmark values are set by the water plant based on its own operational needs, treatment processes and water quality standards, and represent the water quality goals that the water plant expects to achieve. Next, collect N real-time water quality index values of N water pools, and perform deviation analysis on the collected N real-time water quality index values and the preset water quality index benchmark values. By calculating the difference or ratio between each real-time water quality index value and the corresponding benchmark value, N deviation steps can be generated. The deviation step is a quantitative indicator that indicates the size and direction of the gap between the real-time water quality and the expected water quality.
[0067] Initializing and optimizing the dosing parameters of the N intelligent dosing modules according to the N deviation step lengths, and constraining the optimization process using a first constraint condition to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold;
[0068] Based on N deviation steps, the dosing parameters of N intelligent dosing modules are initialized and optimized, and the first constraint is introduced to constrain the optimization process. The first constraint is set as the difference between the real-time water quality index value of N water qualities and the preset water quality index reference value to meet the preset deviation threshold. That is to say, in the process of finding the optimal dosing parameters, not only the performance improvement should be considered, but also the water quality index after dosing should be controlled within the preset deviation threshold range to avoid excessive fluctuations or deviations in water quality. By combining the information of the deviation step and the restrictions of the first constraint, the dosing parameters can be optimized more accurately, and finally N optimal intelligent dosing modules can be obtained. The optimal intelligent dosing module has the best combination of dosing parameters, which can achieve the efficiency and accuracy of the dosing strategy while meeting the water quality management requirements.
[0069] Further, the method comprises:
[0070] Determine N dosing parameter adjustment step lengths of the N intelligent dosing modules according to the N deviation step lengths;
[0071] Using the N dosing parameter adjustment steps, the initialization dosing parameters of the N intelligent dosing modules are randomly adjusted multiple times to obtain N preliminary adjustment dosing parameter sets;
[0072] The N preliminary adjustment and dosing parameter sets are constrained by using the first constraint condition to generate N stage adjustment and dosing parameter sets;
[0073] Traversing the N stages to adjust the dosing parameter set to perform fitness calculation, and generating N stage fitness sets;
[0074] Based on the N stage fitness sets, optimization is performed to generate N optimal intelligent dosing modules.
[0075] According to the N deviation step lengths, the addition parameter adjustment step length of the intelligent dosing module is further determined, and a series of parameter adjustments and optimizations are performed to generate the optimal intelligent dosing module. Specifically, first, the addition parameter adjustment step lengths of the N intelligent dosing modules are determined according to the N deviation step lengths, and the addition parameter adjustment step length is the amplitude of a single adjustment of the dosing parameter. Next, the initialization dosing parameters of the intelligent dosing module are randomly adjusted multiple times using these N dosing parameter adjustment step lengths. The purpose of random adjustment is to introduce a certain degree of randomness on the basis of the initialization parameters to explore a wider parameter space and find a possible better dosing parameter combination. Through multiple random adjustments, N preliminary adjustment dosing parameter sets can be obtained, each set containing multiple possible dosing parameter combinations. Then, the first constraint condition is used to constrain these N preliminary adjustment dosing parameter sets. By constraining the preliminary adjustment parameter set, those parameter combinations that do not meet the water quality management requirements can be excluded, ensuring that the remaining parameter sets can be further optimized under the premise of meeting the water quality requirements. Subsequently, when traversing these N constrained stage adjustment and dosing parameter sets and using the neural network model to perform fitness calculation, each parameter combination in the stage adjustment and dosing parameter set can be used as the input of the neural network model, and the fitness value of the output layer is obtained through forward propagation calculation. Through multiple iterations and training, the neural network model can gradually learn the mapping relationship between parameter combinations and fitness. After traversing all stage adjustment and dosing parameter sets and calculating the fitness values, N stage fitness sets can be obtained. These sets contain the fitness performance of different parameter combinations under constraints, providing basic data for subsequent optimization based on fitness sets.
[0076] Furthermore, the method further comprises:
[0077] The stage adjustment dosage parameters corresponding to the maximum values in the N stage fitness sets are respectively used as N target adjustment directions;
[0078] Based on the N target adjustment directions and the N dosage parameter adjustment step sizes, directional adjustment is performed on the remaining multiple stage adjustment dosage parameters in the N stage adjustment dosage parameter sets to obtain N directional adjustment dosage parameter sets;
[0079] After multiple adjustments, the directional adjustment dosing parameter corresponding to the maximum directional fitness value in the N directional adjustment dosing parameter sets is used as the N target dosing parameters;
[0080] The N optimal intelligent dosing modules are configured based on the N target dosing parameters.
[0081] First, select the maximum values from the N stage fitness sets respectively, and use the stage adjustment dosing parameters corresponding to these maximum values as N target adjustment directions. Next, based on the N target adjustment directions and the previously determined dosing parameter adjustment step size, the remaining multiple stage adjustment dosing parameters in the N stage adjustment dosing parameter sets are directional adjusted, that is, under the guidance of the target adjustment direction, the dosing parameters are fine-tuned in a targeted manner to further explore possible optimization space. Through directional adjustment, N directional adjustment dosing parameter sets can be obtained, and the parameters in each set are closer to the optimal solution. Then, after multiple such directional adjustments, the directional fitness after each adjustment is evaluated, the directional fitness after each adjustment is compared with the previous one, the parameter combination with higher fitness is retained, and the adjustment is continued. When the directional fitness after multiple adjustments is no longer significantly improved, the directional adjustment dosing parameters corresponding to the directional fitness maximum value in the current N directional adjustment dosing parameter sets are used as N target dosing parameters. Finally, based on these N target dosing parameters, N optimal intelligent dosing modules can be configured.
[0082] The intelligent dosing model is constructed according to the N optimal intelligent dosing modules.
[0083] By integrating N optimal intelligent dosing modules, an intelligent dosing model can be built, which can automatically adjust the dosing parameters according to real-time water quality data to ensure that water quality indicators always remain within the preset range.
[0084] In summary, the embodiments of the present application have at least the following technical effects:
[0085] First, according to the preset raw water quality index, the N water pools of the target water plant are tested for raw water quality multiple times during the preset test period to obtain N water quality test result sets. Then, these test result sets are subjected to stability analysis to generate N first dosing influencing factors. Subsequently, the network parameters of the N intelligent dosing modules of the intelligent dosing model are configured according to these factors. Further, the preset water quality index benchmark values of the target water plant are interactively obtained. Subsequently, the real-time water quality index values of the current N water pools are collected, and the deviations are analyzed from the preset water quality index benchmark values to calculate N deviation steps. According to these deviation steps, the dosing parameters of the N intelligent dosing modules are initialized and optimized to ensure that they are subject to the first constraint during the optimization process, that is, the difference between the real-time indicators of the N water qualities and the preset benchmark values must be within the preset deviation threshold. Finally, N optimal intelligent dosing modules are generated, taking into account the deviation step and the first constraint, and the intelligent dosing model is constructed based on these optimal intelligent dosing modules. The invention solves the technical problem in the prior art that it is difficult to accurately and adaptively add water of different raw water qualities, and achieves the technical effect of improving the accuracy of addition.
[0086] Example 2
[0087] Based on the same inventive concept as the method for building a water plant flocculant intelligent dosing model in the aforementioned embodiment, Figure 2 As shown, the present application provides a system for building a water plant flocculant intelligent dosing model. The system and method embodiments in the present application are based on the same inventive concept. The system includes:
[0088] A detection module 11, wherein the detection module 11 is used to perform multiple raw water quality tests on N water pools of a target water plant in a preset detection period based on preset raw water quality indicators to obtain N water quality test result sets;
[0089] A first analysis module 12, the first analysis module 12 is used to perform stability analysis on the N water quality test result sets to generate N first dosing influencing factors;
[0090] A configuration module 13, the configuration module 13 is used to configure the network parameters of the N intelligent dosing modules of the intelligent dosing model according to the N first dosing influencing factors;
[0091] An acquisition module 14, the acquisition module 14 is used to interactively obtain a preset water quality index reference value of the target water plant;
[0092] A second analysis module 15, the second analysis module 15 is used to collect N real-time water quality index values of the current N water pools, perform deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generate N deviation steps;
[0093] An optimization module 16, the optimization module 16 is used to initialize and optimize the dosing parameters of the N intelligent dosing modules according to the N deviation step sizes, and use a first constraint condition to constrain the optimization process to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold;
[0094] A building module 17 is used to build the intelligent dosing model according to the N optimal intelligent dosing modules.
[0095] Furthermore, the detection module 11 is used to perform the following method:
[0096] Traversing the initial raw water quality indicators to perform a single disturbance analysis and generate multiple coagulation influencing factors, wherein the initial raw water quality indicators include turbidity, pH value, water temperature, oxygen consumption, raw water flow, conductivity, and ion concentration;
[0097] Determine whether the multiple coagulation influencing factors are greater than or equal to the preset coagulation influencing factor threshold. If so, add the corresponding initial raw water quality index to the preset raw water quality index, wherein the preset raw water quality index includes turbidity, oxygen consumption, pH value, and raw water flow rate.
[0098] Furthermore, the first analysis module 12 is used to perform the following method:
[0099] Using the preset raw water quality index as an index, perform index retrieval on N water quality test result sets to obtain N turbidity test results, N oxygen consumption test results, N pH value test results and N raw water flow test results;
[0100] Performing stability tests on the N turbidity test results, the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results, respectively, to generate N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors;
[0101] The N turbidity stability factors, the N oxygen consumption stability factors, the N pH value stability factors and the N raw water flow stability factors are respectively averaged to generate N first dosing influencing factors.
[0102] Furthermore, the first analysis module 12 is used to perform the following method:
[0103] Extracting a first turbidity detection result from the N turbidity detection results;
[0104] Extracting the mean value of the first turbidity detection result to generate a first turbidity detection mean value;
[0105] Calculating the variance of the first turbidity detection result to match the first turbidity detection step;
[0106] Taking the first turbidity detection mean value as a starting point, searching in the first turbidity detection result according to the first turbidity detection step to obtain a first-stage turbidity detection value;
[0107] Comparing the distribution density of the first turbidity detection mean value and the first stage turbidity detection value, updating the starting point according to the comparison result, and obtaining the first turbidity stability factor after multiple retrieval and analysis;
[0108] Performing stability testing on the N turbidity test results to generate the N turbidity stability factors;
[0109] Stability tests are performed on the N oxygen consumption test results, the N pH value test results and the N raw water flow rate test results respectively to generate N oxygen consumption stability factors, N pH value stability factors and N raw water flow rate stability factors.
[0110] Furthermore, the first analysis module 12 is used to perform the following method:
[0111] Determine whether the distribution density of the turbidity detection value in the first stage is greater than the distribution density of the first turbidity detection mean value, and if so, update the turbidity detection value in the first stage as the starting point;
[0112] If not, the rand function is called to generate a first random number. If the first random number satisfies a preset value, the turbidity detection value of the first stage is updated as the starting point;
[0113] After multiple searches, the first-stage turbidity detection value corresponding to the maximum distribution density in the search process is used as the first target turbidity detection value;
[0114] The variance of a plurality of first turbidity detection values whose distance from the first target turbidity detection value is the first turbidity detection pace is calculated, and the inverse of the calculation result is used as the first turbidity stability factor.
[0115] Furthermore, the optimization module 16 is used to perform the following method:
[0116] Determine N dosing parameter adjustment step lengths of the N intelligent dosing modules according to the N deviation step lengths;
[0117] Using the N dosing parameter adjustment steps, the initialization dosing parameters of the N intelligent dosing modules are randomly adjusted multiple times to obtain N preliminary adjustment dosing parameter sets;
[0118] The N preliminary adjustment and dosing parameter sets are constrained by using the first constraint condition to generate N stage adjustment and dosing parameter sets;
[0119] Traversing the N stages to adjust the dosing parameter set to perform fitness calculation, and generating N stage fitness sets;
[0120] Based on the N stage fitness sets, optimization is performed to generate N optimal intelligent dosing modules.
[0121] Furthermore, the optimization module 16 is used to perform the following method:
[0122] The stage adjustment dosage parameters corresponding to the maximum values in the N stage fitness sets are respectively used as N target adjustment directions;
[0123] Based on the N target adjustment directions and the N dosage parameter adjustment step sizes, directional adjustment is performed on the remaining multiple stage adjustment dosage parameters in the N stage adjustment dosage parameter sets to obtain N directional adjustment dosage parameter sets;
[0124] After multiple adjustments, the directional adjustment dosing parameter corresponding to the maximum directional fitness value in the N directional adjustment dosing parameter sets is used as the N target dosing parameters;
[0125] The N optimal intelligent dosing modules are configured based on the N target dosing parameters.
[0126] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0127] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
[0128] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A method for building a water plant flocculant intelligent dosing model, It is characterized in that The method comprises: Based on the preset raw water quality index, multiple raw water quality tests are performed on N water pools of the target water plant during the preset test period to obtain N sets of water quality test results; Performing stability analysis on the N water quality test result sets to generate N first dosing influencing factors; According to the N first injection influencing factors, the network parameters of the N intelligent injection modules of the intelligent injection model are configured; Interactively obtain preset water quality index benchmark values of the target water plant; Collecting N real-time water quality index values of the current N water pools, performing deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generating N deviation step lengths; Initializing and optimizing the dosing parameters of the N intelligent dosing modules according to the N deviation step lengths, and constraining the optimization process using a first constraint condition to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold; Building the intelligent dosing model according to the N optimal intelligent dosing modules; Wherein, the stability analysis is performed on the N water quality test result sets to generate N first addition influencing factors, including: Using the preset raw water quality index as an index, perform index retrieval on N water quality test result sets to obtain N turbidity test results, N oxygen consumption test results, N pH value test results and N raw water flow test results; Performing stability tests on the N turbidity test results, the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results, respectively, to generate N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors; Respectively perform mean processing on the N turbidity stability factors, the N oxygen consumption stability factors, the N pH value stability factors and the N raw water flow stability factors to generate N first dosing influencing factors; Further, stability tests are performed on the N turbidity test results, the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results, respectively, to generate N turbidity stability factors, N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors, including: Extracting a first turbidity detection result from the N turbidity detection results; Extracting the mean value of the first turbidity detection result to generate a first turbidity detection mean value; Calculating the variance of the first turbidity detection result to match the first turbidity detection step; Taking the first turbidity detection mean value as a starting point, searching in the first turbidity detection result according to the first turbidity detection step to obtain a first-stage turbidity detection value; Comparing the distribution density of the first turbidity detection mean value and the first stage turbidity detection value, updating the starting point according to the comparison result, and obtaining the first turbidity stability factor after multiple retrieval and analysis; Performing stability testing on the N turbidity test results to generate the N turbidity stability factors; Performing stability tests on the N oxygen consumption test results, the N pH value test results, and the N raw water flow rate test results, respectively, to generate N oxygen consumption stability factors, N pH value stability factors, and N raw water flow rate stability factors; Wherein, obtaining the first turbidity stability factor comprises: Determine whether the distribution density of the turbidity detection value in the first stage is greater than the distribution density of the first turbidity detection mean value, and if so, update the turbidity detection value in the first stage as the starting point; If not, the rand function is called to generate a first random number. If the first random number satisfies a preset value, the turbidity detection value of the first stage is updated as the starting point; After multiple searches, the first-stage turbidity detection value corresponding to the maximum distribution density in the search process is used as the first target turbidity detection value; The variance of a plurality of first turbidity detection values whose distance from the first target turbidity detection value is the first turbidity detection pace is calculated, and the inverse of the calculation result is used as the first turbidity stability factor.
2. The method according to claim 1, It is characterized in that Based on the preset raw water quality index, the method includes: Traversing the initial raw water quality indicators to perform a single disturbance analysis and generate multiple coagulation influencing factors, wherein the initial raw water quality indicators include turbidity, pH value, water temperature, oxygen consumption, raw water flow, conductivity, and ion concentration; Determine whether the multiple coagulation influencing factors are greater than or equal to the preset coagulation influencing factor threshold. If so, add the corresponding initial raw water quality index to the preset raw water quality index, wherein the preset raw water quality index includes turbidity, oxygen consumption, pH value, and raw water flow rate.
3. The method according to claim 1, It is characterized in that The method comprises: Determine N dosing parameter adjustment step lengths of the N intelligent dosing modules according to the N deviation step lengths; Using the N dosing parameter adjustment steps, the initialization dosing parameters of the N intelligent dosing modules are randomly adjusted multiple times to obtain N preliminary adjustment dosing parameter sets; The N preliminary adjustment and dosing parameter sets are constrained by using the first constraint condition to generate N stage adjustment and dosing parameter sets; Traversing the N stages to adjust the dosing parameter set to perform fitness calculation, and generating N stage fitness sets; Based on the N stage fitness sets, optimization is performed to generate N optimal intelligent dosing modules.
4. The method according to claim 3, It is characterized in that The method comprises: The stage adjustment dosage parameters corresponding to the maximum values in the N stage fitness sets are respectively used as N target adjustment directions; Based on the N target adjustment directions and the N dosage parameter adjustment step sizes, directional adjustment is performed on the remaining multiple stage adjustment dosage parameters in the N stage adjustment dosage parameter sets to obtain N directional adjustment dosage parameter sets; After multiple adjustments, the directional adjustment dosing parameter corresponding to the maximum directional fitness value in the N directional adjustment dosing parameter sets is used as the N target dosing parameters; The N optimal intelligent dosing modules are configured based on the N target dosing parameters.
5. A system for building a water plant flocculant intelligent dosing model. It is characterized in that A method for constructing a water plant flocculant intelligent dosing model for implementing any one of claims 1 to 4, the system comprising: A detection module, the detection module is used to perform multiple raw water quality tests on N water pools of a target water plant in a preset detection period based on preset raw water quality indicators to obtain N water quality test result sets; A first analysis module, the first analysis module is used to perform stability analysis on the N water quality test result sets to generate N first dosing influencing factors; A configuration module, the configuration module is used to configure the network parameters of the N intelligent dosing modules of the intelligent dosing model according to the N first dosing influencing factors; An acquisition module, the acquisition module is used to interactively obtain a preset water quality index reference value of the target water plant; A second analysis module, the second analysis module is used to collect N real-time water quality index values of the current N water pools, perform deviation analysis on the N real-time water quality index values and the preset water quality index reference values, and generate N deviation step lengths; An optimization module, the optimization module is used to initialize and optimize the dosing parameters of the N intelligent dosing modules according to the N deviation step sizes, and use a first constraint condition to constrain the optimization process to generate N optimal intelligent dosing modules, wherein the first constraint condition is that the difference between the real-time water quality index value of the N water qualities and the preset water quality index reference value must meet a preset deviation threshold; A building module is used to build the intelligent dosing model according to the N optimal intelligent dosing modules.
Citation Information
Patent Citations
Method for treating seaculture wastewater by marine polysaccharide dual-component flocculant
CN102627343A
Satellite thermal control system intelligent control method based on space thermal environment prediction
CN117170294A
Process parameter control method and system for chip production
CN117234171A
