Water treatment dosing control method and water treatment dosing control system
By introducing a dual-layer collaborative control architecture of a fully automated coagulation test device and a flow current meter on the decision side into the water treatment dosing control system, the problem of disconnection between the laboratory and production was solved, and the precision and adaptability of dosing control were achieved, thereby improving the coagulation effect and the utilization rate of the reagents.
Patent Information
- Application Number
- CN202611711632.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
The existing coagulation dosing control technology in municipal water supply and drainage treatment suffers from a serious disconnect between laboratory beaker tests and actual production, resulting in poor dosing control effects, inability to respond promptly to sudden changes in raw water quality, and a lack of intelligent decision-making ability for reagent types, leading to poor adaptability.
A dual-layer collaborative control architecture is adopted, consisting of a fully automated coagulation test device on the decision-making side and a flow current meter on the production line side. By constructing a comprehensive scoring function curve, the dosing scheme is dynamically optimized, enabling real-time tracking of water quality changes and intelligent decision-making on the type of reagent.
It achieves high precision in chemical dosing control, strong adaptability to sudden changes in water quality, improves the stability of coagulation effect and chemical utilization rate, reduces resource waste, and ensures the continuity and reliability of the water treatment process.
Smart Images

Figure CN123170784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water treatment technology, and more specifically, to a water treatment chemical dosing control method and a water treatment chemical dosing control system. Background Technology
[0002] The existing coagulation dosing control technology in municipal water supply and drainage treatment suffers from a serious disconnect between laboratory beaker tests and actual production. Due to differences between the laboratory and the production site in key parameters such as water quality conditions (temperature, pH, etc.), stirring intensity, and reagent concentration, the optimal dosage determined in the laboratory cannot directly guide production. Furthermore, the low frequency and small amount of data from manual tests result in a significant lag and an inability to respond promptly to sudden changes in raw water quality, leading to poor coagulation dosing control.
[0003] To address the aforementioned issues, existing technologies urgently need improvement. Summary of the Invention
[0004] This application provides a water treatment chemical dosing control method and a water treatment chemical dosing control system, which solves the problem of chemical dosing control lag caused by the disconnect between laboratory pilot tests and actual production and the low frequency of manual testing. It realizes adaptive adjustment of the dosing amount based on real-time water quality changes and improves the stability of coagulation effect.
[0005] To achieve the above objectives, this application provides a water treatment dosing control method, applied to a control device in a water treatment dosing control system. The dosing control system further includes a fully automatic coagulation test device and a first flow current meter located on the decision-making side, and a second flow current meter and a dosing pump located on the production line side. The water treatment dosing control method includes: The fully automatic coagulation test device is controlled to extract raw water samples at preset times, and various coagulation test schemes with different types of reagents and dosage gradients are executed under the test environment. Multidimensional coagulation effect parameters under each coagulation test scheme are collected. The flow current values for each coagulation test scheme were obtained using a first flow current meter. Based on the correspondence between the multidimensional coagulation effect parameters and the flow current value under each coagulation test scheme, a comprehensive scoring function curve with the flow current value as the independent variable is constructed. Based on the comprehensive scoring function curve, determine the target flow current value and the recommended dosing regimen; Based on the real-time flow current value after actual coagulation on the production line monitored by the second flow current meter, and the recommended dosing scheme, the dosing pump is controlled to make the real-time flow current value track the target flow current value.
[0006] This application also discloses a water treatment plus control system, including control equipment, a fully automatic coagulation test device and a first flow current meter located on the decision side, and a second flow current meter and a dosing pump located on the production line side. The control equipment includes: A memory on which computer programs are stored; A processor is used to execute computer programs stored in memory to implement the methods described above.
[0007] This application provides a water treatment dosing control method and a water treatment dosing control system. Through a two-layer collaborative control architecture of a fully automatic coagulation test device on the decision side and a flow current meter on the production line side, a quantitative correlation model between multidimensional coagulation effect parameters and flow current values is established, realizing dynamic optimization and real-time tracking of the dosing scheme. This effectively solves the problem of disconnect between laboratory pilot tests and actual production, and has the technical advantages of high dosing control accuracy and strong adaptability to sudden changes in water quality.
[0008] Other features and advantages of this application will be described in detail in the following detailed description section. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] To gain a more complete understanding of this application and its beneficial effects, the following description will be provided in conjunction with the accompanying drawings, wherein the same reference numerals in the following description denote the same parts.
[0011] Figure 1 This is a schematic flowchart of a water treatment chemical dosing control method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a scenario of the water treatment dosing control system provided in an embodiment of this application; Figure 3 This is a schematic diagram of a comprehensive scoring function curve provided in an embodiment of this application. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.
[0013] In traditional municipal water supply and drainage coagulation dosing control technologies, there is a disconnect between laboratory beaker tests and actual production. Due to differences in water quality conditions such as temperature and pH, stirring intensity (G value), and reagent concentration between the laboratory and the production site, the optimal dosage determined in the laboratory cannot directly guide production operations. Furthermore, existing systems employ a single fixed target value for online control, stabilizing the flow current value (SC value) at a preset target. However, the optimal correlation between the SC value and coagulation effect dynamically changes with the type of reagent (iron / aluminum salt) and water quality conditions (turbidity, water temperature), making it impossible to achieve on-demand dosing with a fixed target value. In addition, the system lacks intelligent reagent selection capabilities, only determining the dosage and unable to automatically select iron salts, aluminum salts, or their combinations based on water quality changes. This leads to key performance issues such as decreased coagulation stability, reduced reagent utilization, and system response lag.
[0014] For example, during the operation of a municipal water supply plant, when encountering heavy rain, the turbidity of the raw water increases rapidly, and the water temperature changes. Due to the low frequency of manual laboratory tests, it is impossible to respond promptly to sudden changes in water quality; the existing system keeps the SC value fixed at a preset value, but under the condition of water quality changes, this fixed target value leads to insufficient charge neutralization, inadequate floc formation, and excessive turbidity in the sedimentation tank effluent; at the same time, the system cannot automatically identify the need to switch the type of chemical agent, resulting in low coagulation efficiency, requiring manual intervention and affecting the continuity of water supply.
[0015] If the above problems are not resolved, it will lead to fluctuations in effluent water quality, increase the processing load of subsequent filtration and disinfection units, and may cause water quality safety risks; the dosage of chemicals will deviate from the actual needs, resulting in waste of resources; and the system will have insufficient adaptability to changes in water quality, reducing overall treatment efficiency and reliability.
[0016] For ease of understanding, the following explains some key terms in this embodiment: Water Treatment Dosing Control System: This system is an integrated automated control platform designed for precise management and optimization of coagulant dosing during water treatment. By monitoring water quality parameters in real time and combining this with experimental data, the system dynamically adjusts the dosing strategy to ensure effective water treatment and optimize chemical consumption. Control Equipment: This equipment is the core computing and execution unit in the water treatment dosing control system, typically consisting of a programmable logic controller (PLC), an industrial computer, or a dedicated controller. Its function is to receive data from sensors and testing equipment, execute preset control algorithms, and send control commands to actuators such as dosing pumps.
[0017] Decision-making side: This term refers to the part of the water treatment chemical dosing control system responsible for water quality analysis, experimental simulation, and dosing strategy optimization. This side typically includes high-precision analytical instruments and automated experimental equipment. Its main task is to dynamically generate optimal dosing decisions based on changes in raw water quality. Fully automated coagulation test device: This device is a highly automated laboratory apparatus capable of simulating coagulation reactions in actual water treatment processes. It can automatically extract water samples, add different reagents, stir, and monitor various parameters in real time during the coagulation process to evaluate the effectiveness of different dosing schemes. First flow current meter: This instrument is an online analytical device used to measure the surface charge state of colloidal particles in a water sample. During the coagulation process, it characterizes the degree of charge neutralization of colloidal particles by measuring the flow current value in the water sample, thereby indirectly reflecting the effect of coagulant dosing. This first flow current meter is typically deployed in the decision-making side experimental setup for evaluating experimental schemes.
[0018] Production Line Side: This term refers to the execution part of the water treatment dosing control system that directly acts on the actual water treatment production line. This side includes online monitoring equipment and dosing actuators. Its main task is to adjust the dosage of chemicals on the production line in real time according to the dosing plan generated by the decision-making side. Second Flow Current Meter: This instrument functions similarly to the first flow current meter, but it is deployed on the production line side to monitor the flow current value of the coagulated water sample in real time. The reading of this second flow current meter serves as a feedback signal for closed-loop control, guiding the adjustment of the dosing pump. Dosing Pump: This device is the actuator used to precisely add coagulant to the water treatment production line. Its dosage can usually be precisely controlled through variable frequency speed regulation or stroke adjustment in response to commands issued by the control equipment.
[0019] Raw water sample: This water sample refers to the original source water that has not undergone any treatment. Its water quality parameters (such as turbidity, pH, conductivity, etc.) will change dynamically with time, season and environmental factors.
[0020] Coagulation Test Protocols: These protocols refer to pre-set test combinations in a fully automated coagulation test device, targeting a specific raw water sample. These combinations include different types of reagents (such as iron salts and aluminum salts), different reagent ratios, and different dosage gradients. Executing these protocols allows for the evaluation of the impact of different dosing strategies on coagulation effectiveness. Multidimensional Coagulation Effect Parameters: These parameters refer to multiple independent indicators used to comprehensively evaluate the coagulation effect during the coagulation test. These parameters may include floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate, reflecting the coagulant's ability to remove impurities from water from different dimensions.
[0021] Flow current value: This value is an electrical signal measured by a flow current meter. Its magnitude and sign reflect the surface charge state of colloidal particles in the water sample. During coagulation, a flow current value approaching zero usually indicates that the colloidal particles have reached an optimal charge neutralization state, which is beneficial for flocculation and sedimentation.
[0022] Comprehensive scoring function curve: This curve is a mathematical function with the flow current value as the independent variable and the comprehensive score of multi-dimensional coagulation effect parameters as the dependent variable. By standardizing and weighting multiple coagulation effect parameters, this curve quantifies the complex coagulation effect into a single comprehensive score, thus intuitively reflecting the quality of coagulation effect corresponding to different flow current values.
[0023] Target flow current value: This value is determined based on the comprehensive scoring function curve and corresponds to the flow current value with optimal coagulation effect or optimal economic coagulation effect. This value serves as the setpoint for dosing control on the production line side, guiding the adjustment of the dosing pump.
[0024] Recommended dosing plan: This plan is determined based on the comprehensive scoring function curve and corresponds to a specific dosing strategy for the target flow current value. The plan typically includes information such as the type of reagent, reagent ratio, and initial dosage.
[0025] Real-time flow current value: This value is the flow current value of the water sample monitored in real time by the second flow current meter on the production line. This value serves as a feedback signal for the closed-loop control system and is compared with the target flow current value to adjust the dosage of the dosing pump.
[0026] This embodiment provides a water treatment dosing control method that achieves intelligent control of the water treatment coagulation dosing process through a "decision-execution" two-layer architecture. This method is applied to the control equipment in a water treatment dosing control system, which also includes a fully automated coagulation testing device and a first flow current meter on the decision-making side, and a second flow current meter and a dosing pump on the production line side. The control equipment can be an industrial computer or a PLC controller, responsible for the logical operations and instruction issuance of the entire system. The fully automated coagulation testing device and the first flow current meter on the decision-making side work together to perform water quality analysis and dosing scheme optimization in a laboratory environment. The second flow current meter and the dosing pump on the production line side are responsible for monitoring water quality and executing dosing commands during actual production. For example, the control equipment can be a central control unit connected to the testing device on the decision-making side and the dosing pump on the production line side via a network.
[0027] like Figure 1 As shown, in some embodiments, the water treatment chemical dosing control method proposed in this application includes: S100: Controls the fully automatic coagulation test device to extract raw water samples at preset times, executes various coagulation test schemes with different types of reagents and dosage gradients under the test environment, and collects multi-dimensional coagulation effect parameters under each coagulation test scheme.
[0028] Raw water samples can be taken manually at regular intervals or automatically controlled by a simple timer. The experimental protocol can be pre-set with fixed combinations of reagents and dosage gradients, such as testing different dosages of a single reagent or testing a fixed ratio of two reagents. The collection of multidimensional coagulation effect parameters can include visually observing floc size and settling velocity, or measuring turbidity removal rate using a simple turbidimeter.
[0029] S200: Obtain the flow current value under each coagulation test scheme through the first flow current meter.
[0030] During each test, the first flow current meter can manually record the flow current value on its display screen or transmit the data to the control device via a simple analog signal interface. For example, after adding different drug dosages in each test, three steps are immediately performed: rapid stirring, slow stirring, and static sedimentation. The reading SC value of the first flow current meter is recorded at the moment the drug rapidly disperses after the addition.
[0031] S300: Based on the correspondence between the multidimensional coagulation effect parameter and the flow current value under each coagulation test scheme, construct a comprehensive scoring function curve with the flow current value as the independent variable.
[0032] This construction process can be achieved manually by plotting the experimental data points on a coordinate system and then visually identifying the trend line. Alternatively, a simple linear regression method can be used to fit each parameter to the flowing current value, and then the fitting results can be simply weighted and summed. For example, parameters such as turbidity removal rate and floc settling velocity can be linearly fitted to their corresponding flowing current values, and then these fitting results can be summed to obtain a preliminary comprehensive score.
[0033] S400: Based on the comprehensive scoring function curve, determine the target flow current value and the recommended dosing scheme.
[0034] This determination process can be carried out by the operator, who can visually observe the highest point or a specific point on the plotted curve to determine the target flow current value, and then use the corresponding test plan as the recommended dosing plan. For example, if the operator observes that the comprehensive scoring curve reaches a maximum value at a certain flow current value, they will set that flow current value as the target value and record the type and dosage of the reagent corresponding to that maximum value.
[0035] S500: Based on the real-time flow current value after actual coagulation on the production line monitored by the second flow current meter, and the recommended dosing scheme, the dosing pump is controlled to operate so that the real-time flow current value tracks the target flow current value.
[0036] The second flow current meter can periodically send real-time flow current values to the control equipment. Upon receiving the recommended dosing plan, the control equipment can set the initial dosage of the dosing pump according to the plan. Then, the control equipment compares the real-time reading of the second flow current meter with the target flow current value. When a deviation exists, the control equipment increases or decreases the dosage of the dosing pump through simple on / off control or manual adjustment, gradually bringing the real-time flow current value closer to the target value. For example, if the real-time flow current value deviates from the target value, the control equipment can issue a command to increase or decrease the dosage of the dosing pump in fixed steps until the real-time flow current value falls within the allowable error range of the target value.
[0037] The following example will provide a more detailed explanation of the above technical solution: Suppose that at a water plant at location A, its water treatment dosing control system requires coagulation treatment of raw water. The system includes a control device, a fully automated coagulation test device and a first flow current meter located on the decision-making side, and a second flow current meter and a dosing pump configured on the production line side.
[0038] First, the control equipment triggers the fully automated coagulation test device on the decision-making side to start according to a preset cycle (e.g., every 2 hours). This device automatically draws water samples from the raw water pipeline into the reaction vessel. Under the test environment, the device executes a series of preset coagulation test protocols. These protocols may include: gradient dosage tests with only PAC (polyaluminum chloride) (e.g., 10 mg / L, 20 mg / L, 30 mg / L, 40 mg / L, 50 mg / L), gradient dosage tests with only ferric chloride, and gradient dosage tests with a 1:1 mixture of PAC and ferric chloride. In each specific dosage test, a first flow current meter acquires and records the corresponding flow current value in real time. Simultaneously, the device also collects multi-dimensional coagulation effect parameters, such as measuring floc settling velocity and floc size through an image recognition module, measuring the removal rate of particles of different sizes through an online particle counter, and measuring the turbidity removal rate through an online turbidity meter.
[0039] Next, the control equipment constructs a comprehensive scoring function curve with the flow current value as the independent variable, based on the relationship between the multidimensional coagulation effect parameters collected under each coagulation test scheme and the corresponding flow current values. Specifically, the system standardizes the collected parameters such as floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate to eliminate dimensional differences between them. Then, each standardized parameter is fitted with its corresponding flow current value using a polynomial to obtain a function curve of each parameter changing with the flow current value. Finally, these function curves are summed to construct the comprehensive scoring function curve Y(SC).
[0040] Subsequently, the control equipment determines the target flow current value and recommended dosing scheme under the current water quality conditions based on the constructed comprehensive scoring function curve. For example, the system automatically calculates the maximum point of the comprehensive scoring function curve, determines the flow current value corresponding to this maximum point as the target flow current value (e.g., -35), and determines the coagulation test scheme corresponding to this maximum point (e.g., PAC 40mg / L) as the recommended dosing scheme. This process ensures that the determined target flow current value and dosing scheme can achieve the optimal coagulation effect.
[0041] Finally, based on the real-time flow current value after coagulation monitored by the second flow current meter on the production line side, and the recommended dosing scheme, the control equipment will control the dosing pump to operate, so that the real-time flow current value on the production line tracks the target flow current value. For example, the control equipment receives the recommended dosing scheme (using PAC single agent) and the target flow current value (-35). If the flow current value monitored by the second flow current meter in real time is -20, the control equipment will calculate the deviation. Since the absolute value of the real-time flow current value (-20) is less than the target flow current value (-35), it indicates that the current neutralization is insufficient, and the control equipment will drive the dosing pump to increase its speed and increase the dosage of PAC. As the dosage of the agent increases, the reading of the second flow current meter will gradually move towards -35 until it stabilizes near the target value. After the preset time period ends, the fully automatic coagulation test device will restart, recalculate and update the target flow current value and recommended dosing scheme according to the new raw water quality, thereby realizing dynamic adaptive control of water quality changes.
[0042] Based on the above examples, the technical concept of this embodiment demonstrates a significant technical contribution.
[0043] First, addressing the significant disconnect between laboratory beaker tests and actual production in existing technologies, this embodiment introduces a two-tiered "decision-execution" architecture, achieving close linkage between laboratory decision-making and production line execution. In the example above, the fully automated coagulation testing device and the first flow current meter on the decision-making side, under controlled testing conditions, can periodically conduct multi-scheme tests on raw water samples and generate dynamically updated target flow current values and recommended dosing schemes. This contrasts sharply with the low frequency and lag of traditional manual beaker tests, demonstrating that this embodiment can respond promptly to sudden changes in raw water quality. Furthermore, since the control objective is the electroneutralization state (flow current value), an intrinsic chemical parameter of coagulation, rather than the specific dosage, this target value is far less sensitive to hydraulic mixing conditions (G-value) than the dosage. Therefore, the target flow current value obtained in the laboratory can be directly mapped to production control, effectively solving the problem in traditional methods where unequal G-values prevent laboratory results from guiding production.
[0044] Secondly, this embodiment addresses the problem of poor adaptability in existing online control methods with a single fixed target value. In the example above, the system does not use a preset fixed flow current value as the control target. Instead, it dynamically calculates the optimal target flow current value based on the current real-time water quality conditions by constructing a comprehensive scoring function curve and determining its maximum point. For example, when the water quality changes, the system will re-test and generate a new comprehensive scoring function curve, thereby determining a new target flow current value (e.g., updated from -35 to -28). This dynamic adaptive mechanism ensures that dosing control can truly achieve on-demand dosing, avoiding poor coagulation effects or reagent waste caused by fixed target values when water quality changes.
[0045] Furthermore, this embodiment overcomes the technical deficiency of existing systems that lack intelligent decision-making capabilities regarding reagent types. In the above example, the fully automated coagulation test device can execute various coagulation test schemes involving different reagent types (such as PAC, ferric chloride, and their mixtures) and dosage gradients. By comprehensively evaluating these schemes, the system can intelligently select the optimal reagent type and ratio under the current water quality conditions and output it as part of the recommended dosing scheme. This contrasts sharply with the limitations of existing systems that require prior manual selection of coagulation reagent types and can only determine the dosage. This embodiment can automatically optimize reagent selection based on water quality changes, further improving coagulation effect and economy.
[0046] In summary, this embodiment effectively solves the core problems existing in water treatment dosing control technology, such as the disconnect between laboratory and production, poor adaptability of fixed target values, and lack of reagent type decision-making ability, through its unique two-layer control architecture, dynamic target value determination mechanism, and intelligent reagent decision-making capability. It achieves precise, intelligent, and adaptive control of water treatment coagulation dosing.
[0047] In some embodiments of this application, the step of determining the target flow current value and the recommended dosing scheme based on the comprehensive scoring function curve includes: determining the maximum point of the comprehensive scoring function curve; determining the flow current value corresponding to the maximum point as the target flow current value; and determining the coagulation test scheme corresponding to the maximum point as the recommended dosing scheme.
[0048] As a specific implementation method, after constructing the comprehensive scoring function curve, its maximum point can be determined using numerical analysis methods. For example, the curve can be discretized, representing it as a series of data points (SC_i, Y_i), where SC_i is the flow current value and Y_i is the corresponding comprehensive score. Then, by traversing these data points, the point where the first derivative of the Y_i value is 0 is found; this point is the maximum point. Assuming the found maximum point is (SC_max, Y_max), then SC_max is determined as the target flow current value. Simultaneously, during the test conducted in the fully automated coagulation test device on the decision-making side, the specific coagulation test scheme (including reagent type and dosage) corresponding to each flow current value SC_i is recorded. Therefore, the coagulation test scheme corresponding to SC_max is determined as the recommended dosing scheme. For example, if the curve achieves the highest overall score when the flow current is -10mV, then -10mV is set as the target flow current value, and the combination of reagents and dosages used in the experiment (e.g., iron salt dosage of X mg / L and aluminum salt dosage of Y mg / L) is determined as the recommended dosage scheme.
[0049] Through the above technical solution, this application provides a clear and quantitative method to determine the target flow current value and recommended dosing scheme from the comprehensive scoring function curve. By identifying the maximum point of the curve, the optimal operating state for overall coagulation effect can be directly locked, thereby avoiding subjectivity and uncertainty in selecting target values and schemes. This allows production line-side dosing control to be based on a scientifically validated optimal target, significantly improving the accuracy and reliability of dosing control, ensuring that the water treatment process always operates at or near the optimal coagulation effect state, thereby improving the overall efficiency of water treatment and the stability of effluent quality.
[0050] In some embodiments of this application, after determining the flow current value corresponding to the maximum point as the target flow current value, the application further includes obtaining the first derivative and rate of change of the comprehensive scoring function curve; determining the point where the first derivative on the comprehensive scoring function curve first drops below a preset threshold or the position where the rate of change of the first derivative first shows an inflection point as the growth slowdown point; determining the flow current value corresponding to the growth slowdown point as the economic control target to replace the flow current value corresponding to the maximum point; and using the economic control target as the target flow current value to reduce the dosage of the reagent while ensuring that the coagulation effect reaches the optimal value by a preset percentage.
[0051] Specifically, the comprehensive scoring function curve reflects the trend of coagulation effect as the flow current value changes. Obtaining its first derivative reveals the rate at which the coagulation effect changes with the flow current value, i.e., the slope of the curve. The rate of change of the first derivative (i.e., the second derivative) further describes the speed of this change and helps identify key inflection points in the curve's shape. The first derivative and rate of change can be calculated using numerical differentiation methods, such as the finite difference method, on discrete comprehensive scoring function data points, or by directly differentiating the fitted analytical expression. The point where growth slows down refers to the position where the rate of increase in coagulation effect begins to decrease significantly. When the first derivative first drops below a preset threshold, it indicates that the marginal benefit of the coagulation effect (the improvement in effect per unit increase in flow current value) has become insignificant. When the rate of change of the first derivative first shows an inflection point, it means that the acceleration of the coagulation effect's growth has changed, usually from accelerated growth to decelerated growth, which also marks a decrease in the efficiency of effect improvement. Identifying these points helps to find a balance between effect and cost. The point where growth slows down can be determined by iterating through the calculated sequence of first derivatives to find the first point less than or equal to a preset threshold. The preset threshold can be set based on experience or historical data. For identifying inflection points, the second derivative can be calculated to find the location where the sign of the second derivative changes or its absolute value reaches a local extremum. The economic control objective is to minimize the flow current value corresponding to the dosage of the chemical while ensuring good coagulation performance. Once the point where growth slows down is determined, the system will query the horizontal coordinate (i.e., the flow current value) of that point on the comprehensive scoring function curve and use it as the new target flow current value. This new target value will replace the original target value determined by the maximum point and will guide subsequent dosing control. By selecting the point where growth slows down as the target, the system can significantly reduce chemical consumption without significantly sacrificing coagulation performance (e.g., achieving 90% or 95% of the optimal effect), thereby achieving economic benefits. After determining the economic control target, the control equipment will send it to the dosing pump on the production line side. The dosing pump will perform closed-loop control based on this target current value and adjust the dosing amount so that the real-time current value monitored by the second current meter can track and stabilize near the economic control target value.
[0052] The following is a concrete example. In a water treatment dosing control system, after acquiring the comprehensive scoring function curve, the control equipment can first calculate the first derivative of the curve at each flow current value point using numerical calculation methods, such as the central difference method. Subsequently, the rate of change of these first derivative sequences, i.e., the second derivative, can be further calculated. For example, when the first derivative decreases from 0.5 to 0.05, and the preset threshold is 0.1, the system will identify this point as a point of slowing growth. Alternatively, when the second derivative changes from a positive value to a negative value, and its absolute value reaches a local maximum, an inflection point can also be identified. Once the point of slowing growth is determined, the control equipment will extract the corresponding flow current value. For example, if the flow current value corresponding to the maximum point is -10mV, and the flow current value corresponding to the point of slowing growth is -15mV, then -15mV will be set as the new target flow current value. This target value is then sent to the dosing pump on the production line side, guiding the pump to adjust the dosage so that the real-time flow current value monitored by the second flow current meter stabilizes at -15mV. In this way, even if the coagulation effect does not reach the theoretical absolute optimum (e.g., 95% of the optimal effect), the dosage of the chemical can be significantly reduced, thereby reducing operating costs.
[0053] Through the above technical solution, this application fully considers the economic efficiency of operating costs while pursuing excellent coagulation results. By analyzing the first derivative and rate of change of the comprehensive scoring function curve, the point where the growth of coagulation effect slows down can be accurately identified. This point represents the critical point where the dosage of reagents can be significantly reduced while ensuring that the coagulation effect reaches the preset percentage of the optimal value. Using the flow current value corresponding to this slowing-down point as the economic control target can effectively avoid excessive reagent addition for minor effect improvements, thereby reducing reagent consumption and operating costs in the water treatment process. This method achieves a balance between coagulation effect and economic benefits, making the water treatment process more efficient and sustainable.
[0054] In some embodiments of this application, a step is proposed to collect multidimensional coagulation effect parameters under various coagulation test schemes, including: collecting floc settling velocity and floc size through an image recognition module; collecting particle removal rates of different sizes through an online particle counter; collecting turbidity removal rates through an online turbidimeter; and performing data standardization processing on the floc settling velocity, floc size, particle removal rates of different sizes, and turbidity removal rates to eliminate dimensional differences among the parameters, thereby obtaining the multidimensional coagulation effect parameters. The step of constructing a comprehensive scoring function curve with the flow current value as the independent variable based on the correspondence between the multidimensional coagulation effect parameters and the flow current value under each coagulation test scheme includes: performing polynomial fitting on the multidimensional coagulation effect parameters and the corresponding flow current values respectively to obtain function curves showing the change of each multidimensional coagulation effect parameter with the flow current value; and summing multiple function curves to construct the comprehensive scoring function curve.
[0055] As a specific implementation method, in a water treatment dosing control system, when the fully automated coagulation test device extracts raw water samples and performs a coagulation test according to a preset time, the control equipment on the decision side initiates a series of data acquisition and processing procedures. First, an industrial camera, acting as an image recognition module, continuously captures a sequence of images of the floc settling process in the test beaker. By analyzing these images, the settling velocity and equivalent circle diameter of the flocs are calculated to characterize the floc size. Simultaneously, an online particle counter monitors the number of particles in the treated water sample with diameters ranging from 0.5 micrometers to 10 micrometers in real time and compares this number with the number of particles in the raw water to calculate the removal rate of particles of different sizes. Furthermore, an online turbidity meter measures the turbidity of the treated water sample and compares it with the turbidity of the raw water to calculate the turbidity removal rate. These raw data, such as floc settling velocity, floc size, particle removal rate, and turbidity removal rate, are standardized due to their different dimensions and numerical ranges. For example, the Min-Max standardization method is used to linearly scale all parameter values to between 0 and 1, ensuring they have equal weight and comparability. Next, for each coagulation test scheme, the standardized floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate were paired with the flow current value measured by the corresponding flow current meter. Then, the control equipment used this paired data to perform a cubic polynomial fit on each parameter. For example, a function y1(SC) representing the standardized floc settling velocity as a function of the flow current value was obtained, a function y2(SC) representing the standardized floc size as a function of the flow current value was obtained, and so on, resulting in y3(SC) and y4(SC). Finally, the four fitted function curves were summed, i.e., Y(SC) = y1(SC) + y2(SC) + y3(SC) + y4(SC), thus constructing the final comprehensive scoring function curve. This curve visually demonstrates the quantitative score of the comprehensive coagulation effect under different flow current values, providing a clear basis for subsequently determining the optimal flow current value and recommending the dosing scheme.
[0056] Through the above technical solutions, this application enables a comprehensive, objective, and quantitative evaluation of coagulation performance. By collecting multi-dimensional parameters, including floc settling velocity, floc size, removal rates of particles of different sizes, and turbidity removal rates, the limitations of single-index evaluation are overcome, leading to a deeper understanding of the coagulation process. Data standardization eliminates dimensional differences between parameters, ensuring fairness and comparability of different indicators in the comprehensive evaluation. The comprehensive scoring function curve constructed based on polynomial fitting accurately captures the complex nonlinear relationship between coagulation performance and flow current values, thus providing a continuous and comprehensive coagulation performance evaluation model. This refined evaluation mechanism allows decision-makers to more accurately identify optimal coagulation conditions, avoiding dosing deviations caused by incomplete or inaccurate evaluations, thereby improving the precision and efficiency of water treatment dosing control and ensuring stable compliance of effluent quality standards.
[0057] In some embodiments of this application, the steps of acquiring floc settling velocity and floc size through an image recognition module include: continuously capturing an image sequence of the floc settling process using an image recognition module such as an industrial camera; calculating the pixel displacement vector field between adjacent image frames in the image sequence using optical flow method, tracking the motion trajectory of the centroid of a single floc, calculating the velocity component in the vertical direction, and obtaining the floc settling velocity; binarizing the images in the image sequence to obtain a binarized image; identifying independent floc regions in the binarized image using a connected component detection algorithm, calculating the pixel area of each independent floc region and converting it into the equivalent circle diameter, and obtaining the floc size.
[0058] In one specific implementation, the image recognition module can be configured with a high-resolution industrial camera, such as a CMOS camera with a resolution of 2592x1944 pixels and a frame rate of 50fps, and equipped with a suitable telecentric lens to ensure distortion-free images. This camera can be mounted above the transparent settling cup of a fully automated coagulation test device, vertically downwards to capture the floc settling process. During filming, the camera can continuously capture a 10-second image sequence, capturing 50 frames per second. After acquiring the image sequence, the image processing unit can first preprocess each frame, such as grayscale conversion and noise filtering. Subsequently, an optical flow method based on the Lucas-Kanade algorithm is used to calculate the displacement vector field of pixels between adjacent image frames (e.g., the nth frame and the (n+1)th frame). By analyzing these vector fields, the centroid motion trajectory of the main flocs in the image can be identified and tracked. For example, a minimum area threshold can be set to filter out excessively small noise points, and then the centroid is calculated for connected components that meet the conditions. For each tracked floc, its vertical displacement (in pixels) in the image coordinate system can be recorded. Combined with camera calibration parameters (e.g., how many pixels per millimeter) and frame rate, the actual settling velocity of the floc (e.g., millimeters per second) can be calculated. Simultaneously, to obtain the floc size, the image processing unit can binarize each frame in the image sequence. For example, Otsu's adaptive thresholding algorithm can be used to separate the foreground (floc) from the background, generating a black-and-white binary image. Then, a connected component detection algorithm is applied to the binary image to identify all independent white connected regions in the image, each region representing an independent floc. For each identified connected region, the number of pixels it contains is calculated, which is the pixel area of the floc. Assuming the camera is calibrated and 1 millimeter corresponds to 100 pixels, then a floc with a pixel area of 10,000 pixels has a physical area of 1 square millimeter. The diameter can be converted to an equivalent circle diameter using the formula "diameter = 2 * sqrt(area / π)". For example, the equivalent circle diameter of 1 square millimeter of floc is approximately 1.13 millimeters. These calculation results, namely floc settling velocity and floc size, will be used as part of the multidimensional coagulation effect parameters and input into the subsequent comprehensive scoring function construction stage.
[0059] Through the above technical solution, this application enables automated, high-precision, and objective measurement of floc settling velocity and floc size. Traditional floc observation methods often rely on manual judgment, which suffers from strong subjectivity, low efficiency, and difficulty in quantification. This solution utilizes an image recognition module to continuously capture image sequences and combines optical flow and connected component detection algorithms to accurately track floc movement trajectories and quantify their morphological characteristics. This allows for the acquisition of more accurate and comprehensive multi-dimensional coagulation effect parameters in coagulation experiments, providing a high-quality data foundation for constructing a comprehensive scoring function curve with the flow current as the independent variable. Ultimately, this helps decision-makers more accurately evaluate the effects of different coagulation schemes, determine optimal target flow current values and recommended dosing schemes, thereby improving the accuracy and reliability of water treatment chemical control and optimizing chemical dosing efficiency.
[0060] In some embodiments of this application, this application further proposes to standardize the data of the floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate to eliminate the dimensional differences of each parameter and obtain the multidimensional coagulation effect parameters. This includes: standardizing the floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate using the z-score standardization method or the min-max standardization method, converting the parameters of different dimensions into a dimensionless unified scale, and obtaining the multidimensional coagulation effect parameters; and performing polynomial fitting of the multidimensional coagulation effect parameters with the corresponding flow current values to obtain the function curves of each multidimensional coagulation effect parameter changing with the flow current value, including: fitting the standardized data with a cubic polynomial to establish continuous function relationship curves between the floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate and the flow current value.
[0061] For example, when processing the collected data on floc settling velocity, floc size, removal rates of particles of different sizes, and turbidity removal rates, we can first calculate the mean and standard deviation of each data set. Then, we can use the z-score standardization method, subtracting the mean of the dataset from each data point and dividing by its standard deviation, thereby adjusting the data distribution of all parameters to a dimensionless form with a mean of 0 and a standard deviation of 1. Alternatively, we can use the min-max standardization method, finding the maximum and minimum values of each parameter dataset to linearly scale the data to the [0, 1] interval. After standardization, for example, for the standardized floc settling velocity data and the corresponding flow current value, we can use regression algorithms such as the least squares method to fit a cubic polynomial function. This function can describe how the standardized floc settling velocity changes with the flow current value. The same method can be applied to the standardized floc size, removal rates of particles of different sizes, and turbidity removal rates to establish cubic polynomial function relationship curves between them and the flow current value.
[0062] By standardizing the multidimensional coagulation effect parameters using the above technical solutions, the dimensional differences and numerical ranges among different parameters are effectively eliminated, ensuring the fairness of each parameter in the comprehensive evaluation. Based on this, a continuous function curve is established using cubic polynomial fitting, which can more accurately capture the nonlinear relationship between coagulation effect parameters and flow current values, making the constructed comprehensive scoring function curve more precise and stable. This significantly improves the reliability of the comprehensive scoring function curve, thereby making the target flow current value and recommended dosing scheme determined based on this curve more accurate, ultimately improving the precision and operational stability of water treatment chemical control.
[0063] In some embodiments of this application, it is proposed that before the fully automated coagulation test device extracts raw water samples at preset times, a pre-set dosing scheme for adding ferric salt coagulants alone, a pre-set dosing scheme for adding aluminum salt coagulants alone, and a pre-set dosing scheme for adding ferric and aluminum salts in different compound ratios are implemented. A gradient setting of the dosage is then applied to each dosing scheme to obtain the coagulation test scheme. The "pre-set dosing scheme for adding ferric salt coagulants alone" refers to a strategy that explicitly specifies the use of only ferric salt coagulants during the test design phase. Ferric salt coagulants typically include ferric chloride, ferrous sulfate, etc. The pre-set dosing scheme can be achieved by manually inputting the specific agent type and initial dosing range, or it can be automatically recommended by the system based on historical data or preset rules. For example, a pre-set dosing scheme for polyferric sulfate can be implemented.
[0064] "A pre-set dosing scheme for aluminum salt coagulants" refers to a strategy that explicitly specifies the use of only aluminum salt coagulants in experiments. Aluminum salt coagulants typically include aluminum sulfate and polyaluminum chloride, and their dosing schemes are pre-set in a similar manner to those for ferric salt coagulants, aiming to explore the coagulation effect of a single aluminum salt at different dosages. For example, a pre-set dosing scheme for polyaluminum chloride can be used.
[0065] "A pre-designed dosing scheme for iron and aluminum salts in different compound ratios" refers to a strategy in experimental design that considers adding iron and aluminum salts as coagulants in a specific ratio. This compound dosing scheme aims to utilize the synergistic effect of the two agents to adapt to more complex water quality conditions. The pre-designed compound ratio can be achieved by setting a fixed ratio combination (e.g., 1:1, 1:2, 2:1) or by dynamically generating a series of ratios through an algorithm.
[0066] "Setting a gradient for the dosage of each dosing scheme" means that for each of the above-mentioned preset dosing schemes (whether it is a single agent or a compound agent), a series of increasing or decreasing dosage values need to be set. These gradients can be linear, for example, setting a dosage point every 5 mg / L; or they can be non-linear, for example, increasing the density of dosage points within the critical effect range. By setting gradients, the impact of different dosages on the coagulation effect can be systematically evaluated, thereby finding the optimal dosage range.
[0067] As a specific implementation method, three main addition schemes can be preset when constructing the coagulation test scheme. The first is to add iron salt coagulant alone, for example, selecting polyferric sulfate as the iron salt and setting its addition rate gradient to 10 mg / L, 20 mg / L, 30 mg / L, and 40 mg / L. The second is to add aluminum salt coagulant alone, for example, selecting polyaluminum chloride as the aluminum salt and setting its addition rate gradient to 5 mg / L, 10 mg / L, 15 mg / L, and 20 mg / L. The third is to add iron salt and aluminum salt together, setting the total addition rate to 30 mg / L, and then combining them according to different compounding ratios, for example, the mass ratio of iron salt to aluminum salt is 1:2, 1:1, and 2:1, and the total addition rate is finely adjusted for each ratio, for example, testing is conducted at three gradients of 25 mg / L, 30 mg / L, and 35 mg / L. In this way, multiple test schemes covering single and compound agents can be generated, and each scheme can be ensured to have a clear dosage gradient so that they can be systematically tested in a fully automated coagulation test device.
[0068] Through the above technical solution, this application can systematically construct multiple coagulation test schemes including single and compound agents, and implement refined dosage gradient settings for each scheme. This enables the fully automated coagulation test device on the decision-making side to comprehensively explore the impact of different agent types, compounding ratios, and dosages on the coagulation effect, thereby avoiding locally optimal or suboptimal dosing strategies caused by incomplete test schemes. Ultimately, this helps to more accurately construct the comprehensive scoring function curve and determine the truly optimal target flow current value and recommended dosing scheme, thus significantly improving the accuracy and economy of water treatment chemical control.
[0069] In some embodiments of this application, the steps of controlling a fully automatic coagulation test device to extract raw water samples at a preset time include: continuously monitoring raw water quality parameters and calculating the water quality change rate, wherein the raw water quality parameters include one or more of various parameters such as turbidity, conductivity, pH, and water temperature; when the water quality change rate is lower than a first preset threshold, setting the preset time period as a standard period; when the water quality change rate exceeds the first preset threshold, shortening the preset time period to a rapid period, so that the test frequency of the decision-making side adaptively matches the rate of change of the raw water quality.
[0070] The following is a concrete example. An integrated online water quality monitoring system is deployed on the raw water inlet pipeline of a water treatment plant. This system includes a high-precision online turbidity meter, an online conductivity meter, and an online water temperature sensor. These sensors send real-time data to the control equipment every minute. The processor in the control equipment calculates the moving average rate of change of turbidity, conductivity, and water temperature over the past 30 minutes every 5 minutes. For example, for turbidity, the difference between the current 30-minute average turbidity and the previous 30-minute average turbidity is calculated and divided by the time interval to obtain the turbidity change rate. The system presets a first preset threshold, for example, a threshold of 0.5 NTU / hour for turbidity change rate, 50 μS / cm / hour for conductivity change rate, and 0.2 ℃ / hour for water temperature change rate. When the rate of change of all monitored parameters is lower than their respective first preset thresholds, the control equipment sets the test cycle of the fully automatic coagulation test device to a standard cycle, for example, conducting a complete coagulation test every 4 hours. If the rate of change of any parameter exceeds its corresponding first preset threshold, for example, if the turbidity change rate reaches 1.0 NTU / hour, the control equipment immediately shortens the test cycle to a rapid cycle, such as conducting a test every hour. This switching mechanism ensures that when the raw water quality is stable, the test frequency remains at a low level to conserve resources; while when the water quality changes rapidly, the test frequency increases rapidly to ensure that the decision-making side can provide timely and accurate dosing guidance, thereby enabling the dosing control on the production line to respond quickly to changes in water quality.
[0071] Through the above technical solution, this application can intelligently adjust the testing frequency of the fully automatic coagulation test device on the decision-making side according to the actual dynamic changes in the raw water quality. When the raw water quality is stable, the system conducts tests at a lower frequency, effectively avoiding unnecessary reagent consumption and equipment wear, and reducing operating costs. When the raw water quality changes rapidly, the system can quickly increase the testing frequency to ensure that the decision-making side obtains the latest water quality information and coagulation effect data in a timely manner, thereby quickly updating the recommended dosing scheme. This allows the dosing pumps on the production line to adjust the dosage in a timely and accurate manner, ensuring that the real-time flow current value can effectively track the target flow current value, thereby maintaining stable effluent water quality and avoiding poor coagulation effect or excessive reagent dosing due to water quality fluctuations. This significantly improves the economy and response speed of the water treatment dosing control system.
[0072] In some embodiments of this application, after controlling the dosing pump to operate so that the real-time flowing current value tracks the target flowing current value, the application further includes: when an updated target flowing current value is obtained, determining whether the deviation between the updated target flowing current value and the currently effective target flowing current value exceeds a preset threshold; if the deviation exceeds the preset threshold, dividing the deviation into N steps, where N is an integer greater than or equal to 3; within a preset transition time window, gradually adjusting the setpoint of the PID controller from the currently effective target flowing current value to the updated target flowing current value; after each adjustment, waiting for the reading of the second flowing current meter to stabilize before performing the next adjustment.
[0073] In one specific implementation, when the control equipment on the decision-making side calculates a new target flow current value of -15mV based on changes in raw water quality, while the target flow current value currently being used by the PID controller on the production line is -5mV, the system first calculates the deviation between the two as 10mV. Assuming a preset threshold of 2mV, since 10mV exceeds 2mV, the system determines that a smooth transition is needed. At this point, the control equipment can divide this 10mV deviation into N=5 steps, each step being 2mV. Subsequently, within a preset transition time window, such as 10 minutes, the system will gradually adjust the PID controller's setpoint. First, the setpoint is adjusted from -5mV to -7mV. After adjustment, the system monitors the reading of the second flow current meter until its rate of change is below a very small threshold (e.g., 0.1mV / minute) and remains so for 30 seconds, indicating that the system has stabilized. Next, the system adjusts the setpoint to -9mV and again waits for the second flow current meter reading to stabilize. This cycle repeats, with the setpoint successively adjusted to -11mV, -13mV, and finally to -15mV. Throughout the process, the PID controller precisely controls the output of the dosing pump based on the current setpoint and the real-time feedback from the second flow current meter, ensuring a smooth change in the dosage. This allows the real-time flow current value on the production line to gradually and smoothly track the new target value.
[0074] Through the above technical solution, when the target flow current value in the water treatment dosing control system changes significantly, the system can avoid drastic fluctuations in the dosing amount caused by sudden changes in the setpoint. This step-by-step, stable adjustment mechanism with feedback confirmation effectively reduces the impact on the coagulation process and significantly improves the stability of the production line operation and the reliability of the effluent quality. Simultaneously, by waiting for the second flow current meter reading to stabilize before proceeding to the next adjustment, the effectiveness of each adjustment and the responsiveness of the system are ensured, avoiding oscillations and overshoot during the control process, thereby achieving more precise and stable tracking control of the target flow current value.
[0075] In some embodiments of this application, when only a single coagulant is used and no agent type switching is involved, the method includes: reducing the multiple coagulation test schemes containing different agent types and dosage gradients to test schemes with different dosage gradients of a single agent, so as to remove the function of comparing iron salt and aluminum salt compound schemes and the agent type decision function; only retaining the two-layer control logic architecture of the fully automatic coagulation test device on the decision side and the second flow current meter on the control side, at which time the output of the decision side only contains the target flow current value and recommended dosage corresponding to the single agent.
[0076] The following is a concrete example to illustrate this. Suppose a water plant has long used only polyaluminum chloride (PAC) as a coagulant, and the water quality changes relatively stably, eliminating the need for frequent switching of reagent types or compounding. In this case, the simplified method proposed in this application can be used. First, in the configuration interface of the control equipment, the operator selects "single coagulant mode" and specifies the currently used coagulant as "polyaluminum chloride." After receiving this configuration, the system's internal test scheme generation module will automatically adjust, no longer generating test schemes containing iron salt, aluminum salt compounding, or comparisons of different reagent types. Instead, it will only generate a series of dosage gradient test schemes for polyaluminum chloride, for example, PAC dosages of 5 ppm, 10 ppm, 15 ppm, and 20 ppm. The fully automated coagulation test device on the decision-making side extracts raw water samples and executes the tests according to these simplified test schemes. For example, it adds different gradients of PAC to different beakers and collects multi-dimensional coagulation effect parameters such as floc settling velocity, floc size, particle removal rate, and turbidity removal rate in each beaker. Simultaneously, it obtains the corresponding flow current value using a first flow current meter. Subsequently, the control equipment constructs a comprehensive scoring function curve with the flow current value as the independent variable based on the experimental data of these single agents. Since only a single agent is involved, the curve construction process is more straightforward. The system identifies the maximum point of the curve, determines the flow current value corresponding to that point as the target flow current value (e.g., -10mV), and determines the corresponding PAC dosage (e.g., 12ppm) as the recommended dosage. Finally, the decision-making side outputs only two key parameters to the production line control equipment: "target flow current value: -10mV" and "recommended dosage: 12ppm (PAC)". The second flow current meter on the control side monitors the flow current value on the production line in real time. Based on these parameters, the PAC dosage of the dosing pump is precisely adjusted through algorithms such as PID controller to ensure that the real-time flow current value on the production line is stable at around -10mV, thereby achieving efficient and economical coagulation effect.
[0077] The above technical solution significantly simplifies the experimental process and computational burden on the decision-making side when the water treatment system uses only a single coagulant and does not involve switching between different types of chemicals. The system no longer performs unnecessary chemical comparisons and compounding optimizations, thus avoiding resource waste and improving experimental efficiency and decision-making speed. This streamlined two-layer control logic architecture enables the system to continuously provide accurate dosing guidance with lower operating costs and faster response times in specific application scenarios, ensuring the stability and economy of coagulation effects. It effectively solves the inefficiency and resource waste problems caused by comprehensive and complex decision-making processes in single-chemical application scenarios.
[0078] In some embodiments of this application, the application proposes a method for centrally deploying the decision-making side and providing decision-making services to the control sides of multiple water plants. The method includes: centrally deploying the fully automated coagulation test device of the decision-making side in a central laboratory or cloud server; establishing a remote communication connection with the control side deployed at multiple water plant sites through a wired communication network or a 5G wireless communication network; having a single decision-making side remotely issue corresponding target flow current values and recommended dosing schemes to the control sides at multiple water plant sites; and achieving unified management and standardized control of the group-level coagulation dosing process.
[0079] The following is a concrete example. Suppose a large water group owns multiple water plants located in different geographical locations, such as Water Plant A, Water Plant B, and Water Plant C. To optimize the dosing process and control costs across the group, the group chooses to centrally deploy the fully automated coagulation testing equipment on the decision-making side in its central laboratory located in the city center. This central laboratory is equipped with advanced fully automated coagulation testing equipment and a first flow current meter. Each water plant only deploys a second flow current meter and dosing pumps on the production line side. When the raw water quality of Water Plant A changes, its control-side equipment sends real-time water quality parameters (such as turbidity, pH value, etc.) to the decision-making side in the central laboratory via a 5G wireless communication network. After receiving the data from Water Plant A, the decision-making side uses its centralized fully automated coagulation testing equipment to conduct simulation tests and, combined with the data from the first flow current meter, quickly analyzes and generates the optimal target flow current value and recommended dosing scheme for the current water quality of Water Plant A. Subsequently, these decision results are remotely transmitted to the control side of Water Plant A via the 5G network. After receiving the instructions, the control unit of water plant A adjusts the operation of the dosing pumps according to these parameters and uses a second flow current meter to monitor the coagulation effect in real time, ensuring that the flow current value tracks the target value. Similarly, water plants B and C can obtain decision-making services from the central laboratory in a similar manner. In this way, the group can centrally manage the dosing strategies of all water plants, ensuring that each plant can use the optimal dosing scheme under different water quality conditions, while avoiding redundant investment and facilitating the maintenance and upgrading of centralized equipment by the expert team.
[0080] Through the above technical solution, this application effectively solves the problems of high cost, redundant resource allocation, and difficulty in unified management caused by the independent deployment of decision-making equipment in multiple water plants. Centralized deployment of the decision-making side allows for the sharing of expensive fully automated coagulation testing equipment and first current meter, significantly reducing equipment investment and maintenance costs for individual water plants. Simultaneously, the connection between the decision-making side and the control sides of multiple water plants is achieved through a remote communication network, enabling a single decision center to provide unified and standardized dosing decision services to all water plants, thereby realizing unified management and standardized control of the group-level coagulation dosing process. This not only improves the professionalism and consistency of decision-making but also greatly enhances overall operational efficiency and management level, ensuring that the coagulation effect of each water plant reaches its optimal level under different water quality conditions, while optimizing reagent dosing and reducing operating costs.
[0081] In some embodiments of this application, multiple coagulation test schemes are proposed, including comparisons of multiple schemes for process conditions. The method also includes automatically executing comparative tests with different dosing sequences, such as adding iron salts before aluminum salts, adding aluminum salts before iron salts, and adding iron and aluminum salts simultaneously; automatically executing comparative tests with different stirring conditions, including rapid stirring G-value gradients, slow stirring G-value gradients, and stirring time parameter gradients; collecting flow current values and multidimensional coagulation effect parameters under each combination of process conditions; and outputting a complete recommended dosing scheme including the dosing sequence and stirring condition parameters after evaluation by a comprehensive scoring function curve.
[0082] As a specific implementation method, in a water treatment dosing control system, when a comprehensive optimization of the coagulation process is required, the control equipment can initiate a test procedure that includes comparisons of process conditions. For example, for a specific raw water quality, the system first presets three dosing sequences: Sequence 1 (iron salt added first, aluminum salt added later, with a 30-second interval), Sequence 2 (aluminum salt added first, iron salt added later, with a 30-second interval), and Sequence 3 (iron and aluminum salts added simultaneously). Simultaneously, for each dosing sequence, the system also sets different combinations of stirring conditions; for example, the rapid stirring G-value is set to 500 seconds. -1 and 800s -1 Two gradients, with the slow stirring G-value set to 30 seconds. -1 and 60s -1 Two dosage gradients and two slow stirring times set at 15 minutes and 25 minutes are provided. The fully automated coagulation test device will automatically execute a series of coagulation tests according to the preset reagent types, dosage gradients, and all the above-mentioned dosing sequences and stirring conditions. For example, in a certain test, the device may execute "iron salt dosage X, aluminum salt dosage Y, iron salt added first then aluminum salt, rapid stirring G value 500s". -1 Slow stirring, G value 30s -1The test involved a combination of "iron salt dosage A, aluminum salt dosage B, aluminum salt added first then iron salt, and rapid stirring for 15 minutes". After each test, the first flow current meter measured and recorded the flow current value, while the image recognition module collected the floc settling velocity and floc size, the online particle counter collected the removal rate of particles of different sizes, and the online turbidity meter collected the turbidity removal rate. All of this data was transmitted to the control equipment for processing. The control equipment standardized these multi-dimensional coagulation effect parameters and, combined with the corresponding flow current values, constructed a comprehensive scoring function curve. By comparing the performance of all test schemes on the comprehensive scoring function curve, the system could identify the scheme with the highest score. For example, the system might find that, under the current water quality, "iron salt dosage A, aluminum salt dosage B, aluminum salt added first then iron salt, rapid stirring G value 800s" was the best combination. -1 Slow stirring, G value 60s -1 The combination of "slow stirring for 25 minutes" received the highest overall score. At this point, the control equipment will output this combination as a complete recommended dosing plan, which includes not only the type and dosage of the chemicals, but also clearly specifies the dosing order: "aluminum salts first, then iron salts," and "rapid stirring at G-value of 800 seconds." -1 Slow stirring, G value 60s -1 The recommended mixing conditions are "slow mixing time of 25 minutes". The dosing pumps and mixing equipment on the production line side will operate according to this recommended scheme, and the second current meter will monitor the operation in real time to ensure that the actual operation effect matches the target.
[0083] Through the aforementioned technical solution, this application expands the optimization scope of coagulation dosing control from a single agent type and dosage to more comprehensive process conditions, including dosing sequence and stirring conditions. This allows the system to gain a deeper understanding of the combined impact of different operating parameters on coagulation performance, thereby generating a more refined and instructive complete recommended dosing scheme at the decision-making level. In actual production, based on this comprehensively optimized scheme, not only can the optimal dosage and type of agent be ensured, but also the floc formation quality and settling performance can be significantly improved by precisely controlling the dosing sequence and stirring intensity. This results in a more stable and efficient water treatment effect under complex and variable raw water quality conditions. This effectively avoids the problems of poor coagulation effect or agent waste caused by mismatched process conditions, thereby reducing operating costs and improving the reliability of effluent quality.
[0084] In some embodiments of this application, this application proposes to automatically record and store historical test data, which includes raw water quality parameters, flow current value variation curves for each scheme, and multidimensional coagulation effect parameters; automatically record and store historical dosing schemes and historical target flow current values; use the stored historical data to perform water quality change trend analysis and seasonal process parameter optimization; and use the stored historical data to perform retrospective evaluation of coagulation effect and diagnosis of dosing system faults.
[0085] The following is a concrete example. In a water treatment plant, control equipment continuously records water quality parameters such as raw water turbidity, pH value, and temperature. After each fully automated coagulation test, the flow current value variation curves under different reagent types and dosage gradients, as well as the standardized multidimensional coagulation effect parameters such as floc settling velocity, floc size, particle removal rate, and turbidity removal rate, are all recorded in detail. Simultaneously, the target flow current value and recommended dosing scheme determined by the system based on the comprehensive scoring function curve are also stored. After a period of operation, the system accumulates a large amount of historical data. Through analysis of this historical data, the system finds that the raw water turbidity is generally low during the dry season each year, but the organic matter content is relatively high. In this case, the scheme using a combination of iron and aluminum salts is more effective, and the target flow current value should be slightly adjusted. Based on this water quality change trend analysis, the system can automatically adjust the initial setting range of the reagent mixing ratio in the dry season test scheme, or adjust the weights of different multidimensional coagulation effect parameters in the comprehensive scoring function curve, to adapt to seasonal changes and optimize process parameters. When the turbidity of the production line effluent suddenly increases on a particular day, engineers can retrieve historical data and compare it with current water quality parameters, target and actual flow current values, and historical operating records of the dosing pumps. By reviewing this data, they can discover an abnormal fluctuation in a certain indicator of the raw water quality (such as conductivity) that day. This fluctuation was not adequately identified in real-time control, leading to a decrease in coagulation effectiveness. This data-driven retrospective evaluation and fault diagnosis makes problem localization faster and more accurate.
[0086] Through the above technical solutions, the water treatment dosing control system can learn from historical operating data, enabling long-term trend analysis of water quality changes and optimization of seasonal process parameters, thereby improving the adaptability and foresight of the control strategy. Simultaneously, this solution also supports retrospective evaluation of coagulation effects and fault diagnosis of the dosing system, significantly enhancing the system's intelligence level and operational reliability, effectively reducing operational risks, and ensuring the long-term stability and efficiency of the water treatment process.
[0087] In some embodiments of this application, when applied to water plants in estuary areas affected by tides, the method of controlling the fully automatic coagulation test device to extract raw water samples at preset times includes: real-time monitoring of raw water salinity changes via a conductivity meter installed in the pipeline upstream of the second flow current meter; calculating the flow current correction value under the current salinity using a pre-calibrated salinity-flow current correction coefficient lookup table to eliminate physical deviations in flow current meter measurements caused by salinity changes; continuously calculating the conductivity change rate, and determining a tidal transition period when the conductivity change rate exceeds a preset threshold, triggering a high-frequency mode to shorten the preset time from a standard period to a rapid period, and... Prioritize testing reagent solutions that match the current salinity range; in the PLC control logic, set up a double-buffer structure with a current effective target flow current value register and a preloaded target flow current value register, and write the updated target flow current value into the preloaded register first; compare the deviation between the target value in the preloaded register and the current effective value, if the deviation is within the preset range, switch in the next test cycle, if the deviation exceeds the preset range, start a segmented transition program to gradually adjust the set value; through the coordinated execution of conductivity compensation correction, adaptive frequency adjustment and double-buffered smooth switching, achieve precise adaptive correction of flow current meter drift and dosing control in tidal environments.
[0088] The system utilizes a conductivity meter installed in the pipeline upstream of the second flow current meter to monitor changes in raw water salinity in real time. The conductivity meter is an instrument used to measure the conductivity of liquids, and its measurement results indirectly reflect the salinity of the water. Real-time monitoring means that the device can continuously or at high frequency acquire data and transmit it to the control equipment for processing. Its function is to obtain raw water salinity information in a timely manner, providing basic data for subsequent flow current correction and control strategy adjustment. The conductivity meter can employ an electrode-type sensor to determine conductivity by measuring the conductivity of ions in the solution; or it can employ an electromagnetic induction sensor to measure conductivity through the electromagnetic field generated by an induction coil, avoiding electrode contamination.
[0089] The system calculates the corrected flow current value for the current at the current salinity using a pre-calibrated salinity-flow current correction coefficient lookup table. This eliminates physical deviations in the flow current meter measurement caused by salinity variations. The pre-calibrated lookup table is a database storing the relationship between different salinity values and their corresponding flow current correction coefficients. Before practical application, the flow current meter can be calibrated experimentally under different salinity conditions, its measurement deviations recorded, and the corresponding correction coefficients calculated. When the current salinity value is monitored in real time, the system can query the lookup table to obtain the corresponding correction coefficient and then calculate the corrected flow current value. This aims to correct the interference caused by salinity variations in the flow current meter measurement results, ensuring the accuracy of the flow current value. The lookup table can be stored as a two-dimensional array or a hash table in the memory of the control device. When calculating the correction value, direct lookup matching or estimation using linear interpolation, polynomial interpolation, or other methods can be used.
[0090] The system continuously calculates the rate of change in conductivity. When this rate exceeds a preset threshold, it is determined to be a tidal transition period. A high-frequency mode is then triggered, shortening the preset time from a standard period to a rapid period, and prioritizing the testing of reagent solutions matching the current salinity range. The rate of change in conductivity refers to the magnitude of change in conductivity per unit time, which can be calculated through differential or regression analysis of continuously collected conductivity data. The preset threshold is a critical value set based on experience or historical data to judge the severity of water quality changes. When the rate of change exceeds this threshold, it indicates that the water quality is undergoing rapid changes, typically corresponding to a tidal transition period. Triggering the high-frequency mode means that the preset time period for the fully automated coagulation testing device on the decision-making side to extract raw water samples will be shortened from a longer standard period (e.g., several hours) to a shorter rapid period (e.g., tens of minutes), thus increasing the testing frequency. Simultaneously, the system will select the most likely effective reagent solution from a variety of preset solutions based on the current salinity range for priority testing, thereby improving decision-making efficiency and accuracy. The rate of change in conductivity can be calculated using algorithms such as the moving average method or Kalman filtering; the preset threshold can be dynamically adjusted based on the characteristics of different water plants and historical data; the priority testing of reagent schemes can be achieved through pre-established salinity-reagent scheme matching rules.
[0091] In the PLC control logic, a double-buffered structure is formed by setting the currently effective target current value register and the preloaded target current value register. The updated target current value is first written to the preloaded register. The PLC (Programmable Logic Controller) is the core device of industrial automation control, and its control logic is responsible for executing the dosing control method. Registers are internal storage units within the PLC used to store data. The double-buffered structure refers to using two independent registers to manage the target current value: one register stores the currently effective target value used to control the dosing pump, and the other register is used to temporarily store the updated target value calculated by the decision-making side and about to take effect. This structure ensures isolation between the old and new target values, avoiding control instability that may result from direct overwriting. The updated target current value is first written to the preloaded register, awaiting system evaluation and smooth switching. This double-buffered structure can be implemented by allocating two independent word or double-word storage units in the PLC's memory area; it can also be simulated in the application layer of the control device through software programming.
[0092] The system compares the deviation between the target value in the preload register and the current effective value. If the deviation is within a preset range, the system switches in the next test cycle. If the deviation exceeds the preset range, a segmented transition program is initiated to gradually adjust the setpoint. The system continuously compares the difference between the updated target value stored in the preload register and the target value in the current effective register. If this difference (deviation) is within an acceptable preset range, indicating minimal change, the system can directly switch the value in the preload register to the current effective value at the start of the next test cycle. However, if the deviation is large, a direct switch may impact the production line; therefore, the system initiates a segmented transition program. This program breaks down large deviations into multiple small steps, gradually adjusting the setpoint of the dosing pump within a preset transition time to smoothly transition from the current effective value to the new target value. The deviation can be calculated using simple subtraction; the preset range can be configured according to process requirements and system stability; the segmented transition program can utilize the ramp function of a PID controller, or be implemented by using timers and counters to control the increment or decrement of the output value.
[0093] The following is a concrete example. When the water treatment dosing control method is applied to a water plant in an estuary area affected by tides, it can be implemented as follows: An online conductivity meter, such as an industrial-grade conductivity sensor from a certain brand, is installed on the pipeline upstream of the second current meter on the production line side. Its output signal is connected to the PLC in the control equipment. The PLC program reads the conductivity data once per minute and calculates the conductivity change rate over the past hour. For example, if the conductivity change rate exceeds 0.5 mS / cm / h for two consecutive hours, the PLC determines that the current period is a tidal transition period.
[0094] At this point, the PLC will send instructions to the fully automated coagulation test device on the decision-making side, shortening the water sample extraction and test cycle from the usual 4 hours to 1 hour. Simultaneously, based on the salinity value measured by the conductivity meter (e.g., 15 ppt), the system will preferentially select an optimized iron and aluminum salt compound solution from the preset reagent solution library, tailored for medium salinity water (e.g., 10-20 ppt), for testing.
[0095] Regarding flow current correction, the control device internally stores a pre-calibrated salinity-flow current correction coefficient lookup table. This table, through previous experiments, records the flow current correction coefficient corresponding to every 1 ppt of salinity within the 0-30 ppt salinity range. When the conductivity meter measures the current salinity as 15 ppt, the system queries the lookup table to obtain the correction coefficient corresponding to 15 ppt and applies it to the real-time reading of the second flow current meter to eliminate the influence of salinity on the measurement results.
[0096] When the decision-making side calculates a new target current value (e.g., updated from -10 mV to -15 mV), this value is first written to a preload register (e.g., DB1.DBW2) inside the PLC. The PLC program continuously compares the new target value in the preload register with the old target value in the currently effective register (e.g., DB1.DBW0). If the deviation is less than 2 mV, the PLC directly copies the value from the preload register to the currently effective register after the next test cycle, completing the switch. If the deviation is greater than 2 mV, for example, a deviation of 5 mV from -10 mV to -15 mV, the PLC will start a segmented transition program. This program divides the 5 mV deviation into 5 steps, adjusting the currently effective target current value by 1 mV every 5 minutes until -15 mV is reached. After each adjustment, the system waits for the reading of the second current meter to stabilize to ensure smooth operation of the production line before executing the next adjustment.
[0097] Through the above technical solutions, this application can effectively address the problem of rapid changes in raw water quality faced by water plants in estuary areas affected by tides. The real-time monitoring of the conductivity meter and the salinity-flow current correction mechanism significantly improve the measurement accuracy of the flow current meter under complex salinity conditions, avoiding inaccurate dosing due to measurement deviations. Adaptive frequency adjustment and priority testing functions for reagent schemes enable the decision-making side to respond more quickly and accurately to water quality changes, ensuring timely provision of optimal dosing strategies even during tidal transitions. The introduction of a dual-buffer structure and segmented transition program ensures the smoothness of the target flow current value switching process, effectively avoiding the impact of sudden changes in setpoints on the coagulation process, thereby maintaining the stable operation of the production line. Overall, the solution of this application achieves precise correction of flow current meter measurement drift and precise adaptive dosing control under tidal conditions, significantly improving the reliability and coagulation effect of the water treatment dosing control system under dynamic water quality conditions.
[0098] In some embodiments of this application, a water treatment dosing control system is proposed. This system includes a control device, a fully automated coagulation test device and a first flow current meter located on the decision-making side, and a second flow current meter and a dosing pump located on the production line side. The control device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program in the memory to implement the aforementioned method.
[0099] This water treatment dosing control system addresses the shortcomings of existing technologies through a two-tiered control logic of "decision-first, execution-later." In the decision-making phase, a fully automated coagulation testing device periodically and automatically extracts raw water samples. Simulating production conditions in a laboratory environment, it tests various schemes, including single-addition of iron salt, single-addition of aluminum salt, and different compound ratios. A first flow current meter records the flow current value variation curves under each scheme. Simultaneously, an image recognition module calculates the floc settling velocity and size, and an online particle counter detects the removal rate of particles of different sizes. Combined with turbidity data, a multi-dimensional comprehensive evaluation index is constructed. The system determines the maximum value point by fitting this index curve. The flow current value corresponding to this point is the target flow current value under the current water quality conditions, and the corresponding reagent scheme is the recommended dosing scheme. This mechanism solves the problem of rigid control based on fixed flow current values, because the target flow current value is dynamically calculated based on the current real-time water quality, rather than a preset fixed value. Because of the differences between the laboratory and the production site in key parameters such as water temperature, pH, and stirring intensity, the "optimal dosage" determined in the laboratory in traditional methods cannot directly guide production. However, this application uses the electroneutralization state, an intrinsic chemical parameter of coagulation, as the control target, which effectively avoids the problem that laboratory results cannot be mapped to production due to unequal hydraulic mixing conditions.
[0100] During the execution phase, the control equipment uses the received target flow current value as the setpoint and the real-time monitoring value of the second flow current meter as the feedback value. A PID algorithm is used to adjust the operating parameters of the dosing pump, ensuring that the actual flow current value tracks the target flow current value in real time. When the reading of the second flow current meter deviates from the target flow current value, the system automatically increases or decreases the dosage, ensuring that the electrical neutralization state at the production site tracks the optimal state determined in the laboratory in real time. This dual flow current meter architecture solves the problem of disconnect between the laboratory and production: because the electrical neutralization state is far less sensitive to hydraulic mixing conditions than to the dosage, the target flow current value obtained in the laboratory can be directly mapped to production control, bypassing the problem of G-value inequality. Simultaneously, through periodic update experiments, the system achieves adaptive adaptation to dynamic changes in water quality and, through multi-scheme comparative experiments, possesses intelligent decision-making capabilities for reagent types, overcoming the limitation of existing systems that can only decide the dosage but cannot automatically select iron salts, aluminum salts, or their optimal compound formulations.
[0101] Through the above technical solution, the water treatment dosing control system of this application effectively solves the core problems of severe disconnect between laboratory beaker tests and actual production, poor adaptability of online control methods with single fixed target values, and lack of intelligent decision-making capabilities for reagent types. This system achieves precise, intelligent, and adaptive control of the coagulation dosing process through collaborative linkage between the decision-making side and the production line side. It can respond promptly to sudden changes in water quality, avoiding the lag caused by low frequency of manual testing, while ensuring optimal coagulation effect and optimizing reagent consumption, significantly improving the efficiency and stability of municipal water supply and drainage treatment.
[0102] The present application will now be further explained in conjunction with specific application scenarios.
[0103] This invention provides a method and system for controlling chemical dosing in water treatment. By constructing a two-layer "decision-execution" architecture, this invention achieves intelligent decision-making and precise control of coagulation chemical dosing. Figure 2 As shown, the water treatment dosing control system of the present invention mainly includes: The decision-making side includes a fully automated coagulation test device and a first flow current meter. The fully automated coagulation test device integrates an image recognition module, an online particle counter, an online turbidity meter, and an automatic dosing and stirring system, used to simulate production conditions for coagulation tests. The first flow current meter is used to monitor the flow current value in real time during the test. The core equipment is the fully automated coagulation test device, which includes: a reaction vessel for holding raw water samples and conducting coagulation tests; a stirrer for simulating mixing and reaction conditions in production; an automatic dosing pump for accurately adding different types and amounts of coagulants; inlet and outlet pumps for automatically extracting raw water samples and discharging waste liquid; a first flow current meter (SCD-1) for real-time monitoring of the flow current value during the test; an image recognition module including an industrial camera and light source for capturing images of flocs; an online particle counter for detecting the number of particles of different sizes; an online turbidity meter for detecting the turbidity of the water sample; and a PLC slave station for executing test actions and collecting data, communicating with the control equipment (PLC master station).
[0104] Production line side: Includes a second flow current meter, a dosing pump, and a coagulation reaction tank. The second flow current meter is installed at the process node after chemical dosing and mixing in the production line to monitor the actual flow current value after coagulation in real time. Specifically, the production line side includes the water plant's raw water pipeline, coagulation reaction tank, variable frequency dosing pump, second flow current meter (SCD-2), and a PLC master station as the control equipment. The SCD-2 is installed on the pipeline after chemical dosing and mixing.
[0105] Control equipment: As the core of the system, it is connected to both the decision-making side and the production line side, and is used to execute the control method described in this invention. The control equipment can be a PLC (Programmable Logic Controller) master station or an industrial computer.
[0106] The water treatment dosing control method of the present invention, applied to the control equipment of the above-mentioned system, is based on a two-layer control logic of "decision first, then execution," and specifically includes the following steps: Step 1: Decision-making stage – Constructing a multi-parameter comprehensive evaluation model and determining decision instructions.
[0107] Periodic automatic sampling and multi-scheme testing: The control equipment controls the fully automatic coagulation test device to automatically extract raw water samples according to a preset time cycle (e.g., 2 hours). The device executes a variety of preset coagulation test schemes, including: adding iron salt coagulants (e.g., ferric chloride) alone, adding aluminum salt coagulants (e.g., PAC) alone, and a scheme in which iron salts and aluminum salts are mixed in different proportions (e.g., 1:1). Under each scheme, a series of different dosage gradients (e.g., 10, 20, 30, 40, 50 mg / L) are set.
[0108] Furthermore, the preset time period can be dynamically adjusted according to the rate of change in raw water quality. By monitoring parameters such as raw water turbidity and conductivity, the control equipment automatically shortens the test cycle from a standard cycle (e.g., 2 hours) to a rapid cycle (e.g., 15-30 minutes) when water quality changes drastically, thus achieving adaptive decision-making frequency.
[0109] Multidimensional coagulation effect parameter collection: In each dosage test, the control equipment controls the fully automated coagulation testing device to simultaneously collect multi-dimensional coagulation effect parameters, specifically including: Image recognition for floc parameters: A sequence of images of the floc settling process is continuously captured using an industrial camera. Optical flow is used to calculate the pixel displacement vector field between adjacent frames, tracing the trajectory of the floc centroid and calculating the vertical velocity component to obtain the floc settling velocity. Simultaneously, after binarizing the images, a connected component detection algorithm is used to identify independent floc regions and convert them to equivalent circle diameters to obtain the floc size.
[0110] Instrument testing: The removal rate of particles with different sizes (e.g., 2-5μm, 5-10μm) after precipitation was detected by an online particle counter; the turbidity removal rate was detected by an online turbidity meter.
[0111] Data standardization and construction of comprehensive scoring function: To eliminate the influence of different physical dimensions, the control equipment standardized the collected floc settling velocity (y1), floc size (y2), particle removal rate (y3), and turbidity removal rate (y4) using methods such as z-score or min-max standardization. Subsequently, a cubic polynomial was used to fit each standardized parameter to its corresponding flow current value (obtained via a first flow current meter), resulting in function curves of each parameter as a function of the flow current value (SC): y1(SC), y2(SC), y3(SC), y4(SC). Finally, the four function curves were summed to construct a comprehensive scoring function curve with the flow current value as the independent variable. Y(SC) = y1(SC) + y2(SC) + y3(SC) + y4(SC) Decision output: like Figure 3 As shown, the control device determines the decision command based on the comprehensive scoring function curve Y(SC): Determine the maximum value of the Y(SC) curve. The flow current value corresponding to this point is the target flow current value (SC*-target) under the current water quality; the coagulation test plan (type of reagent, ratio, dosage) corresponding to this point is the recommended dosing plan.
[0112] Economic control target selection: In addition to the maximum point, the system can also select the point on the Y(SC) curve where the growth slows down (the position where the first derivative first drops below the preset threshold or an inflection point appears) as the economic control target. This target can effectively reduce the amount of reagent added while ensuring that the coagulation effect reaches the optimal value of 90%-95%, thus achieving a balance between economic benefits and treatment effect.
[0113] Step Two: Execution Phase – Closed-Loop Follow-up Control of the Production Site.
[0114] Command issuance and execution: The control equipment issues the "target current value" and "recommended dosing scheme" determined in the decision-making stage to the production line side as decision commands.
[0115] PID closed-loop control: The control equipment on the production line side starts the corresponding dosing pump according to the recommended dosing scheme, and uses the online current value monitored in real time by the second current meter as the feedback value and the received target current value as the set value. The operating frequency or stroke of the dosing pump is automatically adjusted through the PID (proportional-integral-derivative) algorithm so that the real-time current value accurately tracks the target current value.
[0116] Dynamic adaptive update: When the system enters the next decision cycle, the control equipment will control the decision-making side to recalculate and issue new target values and plans based on the new raw water quality. At the same time, to ensure control stability, when the target value changes abruptly, the control equipment will execute smooth transition control: judge the deviation between the old and new target values, and if it exceeds the preset threshold, divide the deviation into N steps (N≥3), and gradually adjust the PID controller setpoint within the preset transition time window (e.g., 15 minutes) to avoid drastic fluctuations in the dosage.
[0117] The specific implementation steps of the present invention will now be described in detail.
[0118] System initialization and scheme preset: The PLC master station presets the reagent schemes to be tested (such as PAC alone, ferric chloride alone, 1:1 compound) and the dosage gradient of each scheme according to the historical data and process requirements of the water plant.
[0119] Decision cycle begins: The PLC master station triggers the fully automatic coagulation test device to start according to a preset cycle (e.g., 2 hours). The device automatically samples the raw water from the pipeline to the reaction vessel via inlet and outlet pumps. During this process, the PLC master station continuously monitors the raw water quality, and dynamically adjusts the test cycle if drastic changes in water quality are detected.
[0120] The device sequentially executes multiple preset coagulation test schemes, automatically completing tests with different reagents and dosages.
[0121] In each experiment, the system automatically collects multidimensional parameters. The SCD-1 records the flow current value; the image recognition module captures images and calculates the floc settling velocity (y1) and floc size (y2) using optical flow and connected component detection algorithms; the particle counter and turbidity meter collect the particle removal rate (y3) and turbidity removal rate (y4), respectively.
[0122] The PLC master station (or the host computer communicating with it) performs data standardization and cubic polynomial fitting on the collected y1 to y4 data to construct a comprehensive scoring function Y(SC). Then, by solving for the maximum point or the point where the growth slows down of Y(SC), the target flow current value and the corresponding recommended dosing scheme under the current water quality are determined.
[0123] The PLC master station will issue the target current value and recommended dosing scheme determined in the previous step as decision instructions.
[0124] Implementation and Feedback: The PLC master station on the production line receives the decision command and starts the corresponding dosing pump.
[0125] The SCD-2 monitors the flow current value after the dosing and mixing process in real time and feeds it back to the PLC master station.
[0126] The PID controller inside the PLC master station uses the target value as the set value and the feedback value of SCD-2 as the measured value to perform calculations and adjust the operating frequency of the dosing pump in real time.
[0127] When the PLC master station receives a significantly different new target value, it will trigger a smooth transition control program to adjust the setpoint to the new target value step by step, ensuring a smooth production process.
[0128] Cyclic update: The system returns to the initial step and enters the next decision cycle to achieve dynamic adaptive control.
[0129] In some embodiments, for water plants that use only a single coagulant and have stable water quality, the decision-making side test scheme can be simplified by conducting only gradient tests of that agent, retaining the core two-layer control architecture, and reducing costs.
[0130] This application enables the centralized deployment of a fully automated coagulation testing device in a central laboratory, providing remote decision-making services to the production line side of multiple water plants via 5G / wired networks, thereby achieving unified management at the group level.
[0131] This application can be based on a group-level decision-making architecture on a cloud platform: as mentioned above, the decision-making side is centrally deployed in the cloud or a central laboratory, providing decision-making services to multiple remote water plants through a high-speed network. The core of this architecture still lies in the concept of "dual flow current meter co-operation," that is, the central testing device (integrating the first flow current meter) provides a dynamic control target for the second flow current meter on the remote production line. This is an extension of the physical architecture of this invention and is within the protection scope of this invention.
[0132] This application has the following effects: Achieving adaptive and precise dosing: Through a two-tiered "decision-execution" architecture and dynamically updated target values, the system can automatically follow changes in raw water quality, achieving true on-demand and adaptive dosing, thus eliminating reliance on human experience.
[0133] Breaking through the limitations of traditional evaluation methods, a comprehensive scoring model is constructed by introducing multi-dimensional parameters such as floc settling velocity and particle removal rate. This model seeks the global optimal solution that achieves "optimal settling performance and most complete particle removal," rather than a local solution that merely achieves "turbidity compliance," thus effectively reducing the load on subsequent processes.
[0134] Intelligent decision-making for reagent types: The system can automatically conduct comparative tests on iron salts, aluminum salts and their compound formulations and select the best one, providing a scientific basis for decision-making in dealing with complex water quality.
[0135] Improve system stability and security: Through technologies such as smooth transition control, production fluctuations caused by sudden changes in target values are effectively avoided.
[0136] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0137] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0138] The embodiments, implementation methods, and related technical features of this application can be combined and substituted for each other without conflict.
[0139] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although the descriptions of each embodiment in this application have different focuses, and parts not described in detail in a certain embodiment can be referred to the relevant descriptions of other embodiments, any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the content of the technical solution of this application shall still fall within the scope of the technical solution of this application.
Claims
1. A method for controlling chemical dosing in water treatment, characterized in that, A control device applied in a water treatment dosing control system, the water treatment dosing control system further including a fully automatic coagulation test device and a first flow current meter located on the decision side, and a second flow current meter and a dosing pump located on the production line side, the water treatment dosing control method including: The fully automatic coagulation test device is controlled to extract raw water samples at a preset time, and various coagulation test schemes with different types of reagents and dosage gradients are executed under the test environment. Multidimensional coagulation effect parameters under each coagulation test scheme are collected. The flow current values for each coagulation test scheme were obtained using the first flow current meter. Based on the correspondence between the multidimensional coagulation effect parameters and the flow current value under each coagulation test scheme, a comprehensive scoring function curve with the flow current value as the independent variable is constructed. Based on the comprehensive scoring function curve, determine the target flow current value and the recommended dosing scheme; Based on the real-time flow current value after actual coagulation on the production line monitored by the second flow current meter, and the recommended dosing scheme, the dosing pump is controlled to operate so that the real-time flow current value tracks the target flow current value.
2. The method according to claim 1, characterized in that, The step of determining the target flow current value and recommended dosing scheme based on the comprehensive scoring function curve includes: Determine the maximum point of the comprehensive scoring function curve; The flow current value corresponding to the maximum point is determined as the target flow current value, and the coagulation test scheme corresponding to the maximum point is determined as the recommended dosing scheme.
3. The method according to claim 2, characterized in that, After determining the flow current value corresponding to the maximum point as the target flow current value, the method further includes: Obtain the first derivative and rate of change of the comprehensive scoring function curve; The point at which the first derivative of the comprehensive scoring function curve first drops below a preset threshold or the point at which the rate of change of the first derivative first inflects is identified as the point where growth slows down. The current value corresponding to the point where the growth slows down is determined as the economic control target that replaces the current value corresponding to the maximum point. The economic control target is used as the target current value to reduce the amount of reagent added while ensuring that the coagulation effect reaches the optimal value by a preset percentage.
4. The method according to claim 1, characterized in that, The collected multidimensional coagulation effect parameters under each coagulation test scheme include: The floc settling velocity and floc size are collected using an image recognition module; The removal rate of particles of different sizes was collected using an online particle counter. Turbidity removal rate was collected using an online turbidimeter; The floc settling velocity, floc size, removal rate of particles of different sizes, and turbidity removal rate were standardized to eliminate the dimensional differences of each parameter, thus obtaining the multidimensional coagulation effect parameters. The step of constructing a comprehensive scoring function curve with the flow current value as the independent variable based on the correspondence between the multidimensional coagulation effect parameters and the flow current value under each coagulation test scheme includes: performing polynomial fitting on the multidimensional coagulation effect parameters and the corresponding flow current value respectively to obtain the function curve of each multidimensional coagulation effect parameter changing with the flow current value; summing multiple function curves to construct the comprehensive scoring function curve.
5. The method according to claim 4, characterized in that, The acquisition of floc settling velocity and floc size via an image recognition module includes: The image recognition module continuously captures image sequences of the floc sedimentation process. The pixel displacement vector field between adjacent image frames in the image sequence is calculated using the optical flow method. The motion trajectory of the centroid of a single floc is tracked, and the velocity component in the vertical direction is calculated to obtain the floc settling velocity. The images in the image sequence are binarized to obtain binarized images; The connected component detection algorithm is used to identify independent floc regions in the binarized image. The pixel area of each independent floc region is calculated and converted into the equivalent circle diameter to obtain the size of the floc.
6. The method according to claim 1, characterized in that, The control of the fully automatic coagulation test device to extract raw water samples at preset times includes: Continuous monitoring of raw water quality parameters and calculation of water quality change rate, wherein the raw water quality parameters include one or more of turbidity, conductivity and water temperature; When the water quality change rate is lower than the first preset threshold, the period of the preset time is set as the standard period; When the water quality change rate exceeds the first preset threshold, the preset time period is shortened to a rapid period so that the test frequency of the decision-making side can adaptively match the change rate of the raw water quality.
7. The method according to claim 1, characterized in that, After controlling the dosing pump to operate so that the real-time flow current value tracks the target flow current value, the method further includes: When the updated target current value is obtained, it is determined whether the deviation between the updated target current value and the currently effective target current value exceeds a preset threshold. If the deviation exceeds the preset threshold, the deviation is divided into N steps, where N is an integer greater than or equal to 3. Within a preset transition time window, the setpoint of the PID controller is gradually adjusted from the currently effective target current value to the updated target current value. After each adjustment, wait for the reading of the second current meter to stabilize before proceeding to the next adjustment.
8. The method according to claim 1, characterized in that, The multiple coagulation test schemes also include a comparison of multiple schemes of process conditions, and the method further includes: Automatically execute comparative tests of different dosing sequences, including dosing iron salt first and then aluminum salt, dosing aluminum salt first and then iron salt, and dosing iron salt and aluminum salt simultaneously; Automatically perform comparative tests under different stirring conditions, including rapid stirring G-value gradient, slow stirring G-value gradient, stirring time parameter gradient, and settling time after stirring; The flow current values and multi-dimensional coagulation effect parameters were collected under various combinations of process conditions. After evaluation by the comprehensive scoring function curve, a complete recommended dosing scheme is output, including the dosing sequence and stirring condition parameters.
9. The method according to any one of claims 1 to 8, characterized in that, When applied to water plants in estuary areas affected by tides, the control of the fully automatic coagulation test device to extract raw water samples at preset times includes: The changes in raw water salinity are monitored in real time by a conductivity meter installed in the pipeline upstream of the second flow current meter. The flow current correction value at the current salinity is calculated by using a pre-calibrated salinity-flow current correction coefficient lookup table to eliminate the physical deviation of the flow current meter measurement caused by salinity changes. The conductivity change rate is continuously calculated. When the conductivity change rate exceeds a preset threshold, it is determined to be a tidal transition period. The high-frequency mode is triggered to shorten the preset time from a standard period to a rapid period, and the reagent scheme that matches the current salinity range is tested first. Compare the deviation between the updated target current value and the currently effective target current value. If the deviation is within the preset range, switch in the next test cycle. If the deviation exceeds the preset range, start the segmented transition procedure to gradually adjust the set value.
10. A water treatment dosing control system, characterized in that, The system includes control equipment, a fully automated coagulation test device and a first flow current meter located on the decision-making side, and a second flow current meter and a dosing pump located on the production line side. The control equipment includes: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the method as claimed in any one of claims 1 to 9.
