The present invention relates to method of optimizing recommended coagulation operating parameters for water treatment; more particularly, to saving energy and reducing the cost of drug dosage, where, from the perspective of improving water purification efficiency, models of artificial neural network (ANN) and regression are used to develop an optimized coagulation procedure for predicting appropriate coagulant dosage and stirring speed.
According to the World Health Organization, water is one of the essential elements for life. Water purification plant is an important infrastructure for providing people with tap water. In the complex procedure of the water purification plant, coagulation is the first procedure in water purification procedure, which is particularly important. In most of the water purification plants at present, the operating parameters for coagulation are mostly based on water-quality monitoring data and regular jar tests to adjust dosages. Then, the operators in the water purification plant judge the actual operating parameters based on subjective experiences. Yet, during water treatment, data of raw-water quality are highly variable and dynamically changing, which have complex and non-linear relationships between water qualities and operating parameters. If the dosages were to be adjusted according to different water conditions in real time, manpower burden would be increased. Therefore, during current methods, it is difficult to adjust actual operating parameters based on objective factors in real time, as it may lead to a decrease in coagulation efficiency, result in poor sedimentation efficiency, and increase burden on fast filtering. The above coagulation situations make it difficult to adjust the operating parameters of water treatment in real time and affect water treatment efficiency while increasing the cost of energy, drug, and personnel expense.
Many studies have shown that models of neural network and regression can be used to predict coagulant dosage (Kang Shifang et al., 1999; Deng & Lin, 2017; Santos et al., 2017; Baouab et al., 2018). The efficiency of water purification is improved and automatic monitoring is achieved to respond with appropriate coagulant dosages in real time. Yet, discussion on optimized coagulation procedure is still lacking. However, most of the previous researches on coagulation are focused on controlling coagulant dosages; but there are few considering stirring speed at the same time (the G value of the equipment engineering standard of tap-water-supply facility is 10-75). Nevertheless, in coagulation, in addition to controlling the coagulant dosages, the stirring speed is also one of the factors affecting the efficiency. Therefore, it is necessary to consider the coagulant dosages and the stirring speed at the same time.
There is a fact that most of the previous researches used historical data for model training. Although the operators can use the data for judgment and decision-making, but may not fit for obtaining the best operating parameters with lowest cost. The reason is that historical data come from subjective experiences of the operators. Personal subjective experiences may lead to unstable water treatment and unnecessary expense of dosage and energy. It is necessary to precisely control dosages and stirring speed for fully enhancing water purification efficiency and solving the problem of cost of drug and energy. Hence, the prior arts do not fulfill all user's requests on actual use.
The main purpose of the present invention is to save energy and reduce the cost of drug dosage, where, from the perspective of improving water purification efficiency, algorithms of Back Propagation Neural Network, Extreme Learning Machines, Multiple Linear Regression, and Multiple Nonlinear Regression are used to design and develop an optimized coagulation procedure.
Another purpose of the present invention is to apply Artificial Intelligence of Things (AIoT) for optimizing the coagulation procedure, where training data, such as water quality conditions, coagulant dosages, mixing speeds, etc., are used to estimate corresponding turbidity changes through AI and statistical models; and, after considering the drinking water standards and the cost of drug and energy, optimized operating parameters are obtained.
To achieve the above purposes, the present invention is a method of optimizing recommended coagulation operating parameters for water treatment, comprising steps of: (a) training step: collecting coagulation data through a jar test; using the collected coagulation data, comprising water conditions and coagulation operating parameters, as training data of a plurality of models of ANN and regression to estimate turbidity changes under different values of the water conditions and the coagulation operating parameters; the water conditions comprise a raw turbidity, a raw pH, and a temperature; and the coagulation operating parameters comprise a coagulant dosage and a stirring speed; and (b) applying step: inputting values of the water conditions, a set value of the coagulant dosage, and a set value of the stirring speed into the models of ANN and regression obtained after being trained in step (a) to estimate a turbidity change and subtract the turbidity change from the raw turbidity of the water conditions to judge that, on meeting an operating specification, the coagulant dosage and the stirring speed together having the lowest cost are predicted to be the best of the coagulation operating parameters; and, through comparing the models of ANN and regression, a recommended model of the coagulation operating parameters is selected from the models of ANN and regression. Accordingly, a novel method of optimizing recommended coagulation operating parameters for water treatment is obtained.
The present invention will be better understood from the following detailed description of the preferred embodiment according to the present invention, taken in conjunction with the accompanying drawings, in which
The following description of the preferred embodiment is provided to understand the features and the structures of the present invention.
Please refer to
(a) Training s1: Coagulation data are collected through a jar test. The collected coagulation data comprise water conditions and coagulation operating parameters; and are used as training data of a plurality of models of artificial neural network (ANN) and regression to estimate turbidity changes under the different water conditions and the coagulation operating parameters. Therein, the turbidity change is a difference between raw turbidity and turbidity of sedimented water; the water conditions comprise a raw turbidity, a raw pH, and a temperature; and the coagulation operating parameters comprise a coagulant dosage and a stirring speed.
(b) Applying s2: Values of said water conditions, a set value of the coagulant dosage, and a set value of the stirring speed are inputted into the models of ANN and regression obtained after being trained in step (a) to estimate a turbidity change and subtract the turbidity change from the raw turbidity of the water conditions to judge that, on meeting an operating specification, the coagulant dosage and the stirring speed together having the lowest cost are predicted to be the best of the coagulation operating parameters; and, through comparing the models of ANN and regression, a recommended model of the coagulation operating parameters is selected from the models of ANN and regression. Therein, the operating specification is that the turbidity of a supernatant part of any of the sedimented waters is required to be less than 5 nephelometric turbidity unit (NTU). Thus, a novel method of optimizing recommended coagulation operating parameters for water treatment is obtained.
In a state-of-use, the coagulation data collected in the jar test in step (a) comprises 10 raw turbidities of 10˜100 NTU with an interval of 10 NTU thereof, 5 stirring speeds of 20˜60 rounds per minute (rpm) with an interval of 10 rpm thereof, and 12 coagulant dosages of 0.1˜50 parts per million (ppm) of concentrations to obtain a total of 1200 sets of the coagulation data. Therein, for making the training data generalized and wholesome enough, the present invention prepares raw waters with different turbidities for jar test to simulate a variety of water qualities; and the deployment method is to obtain sediment from a weir and add it to the raw waters for forming different turbidities.
In a state-of-use, in step (a), the jar test comprises the following sub-steps, as shown in
(a1) Preparing raw waters s11: A plurality of raw waters with different turbidities are prepared. The water conditions of the raw waters are measured, comprising raw turbidities, raw pHs, and temperatures. The prepared raw waters with the different turbidities are loaded into 12 beakers of 1000 milliliters.
(a2) Adding coagulant s12: A coagulant is added in, where the coagulant is polyaluminum chloride and ferric chloride.
(a3) Setting stirring speeds s13: A plurality of stirring speeds for different mixings, comprising fast and slow mixings, are set, where a stirring speed of 150 rpm per 3 minutes and 30 seconds is set for fast mixing; and stirring speeds of 20˜60 rpm per 41 minutes are set for slow mixing.
(a4) Staying still s14: Flocs are sedimented to the bottoms of the beakers by staying still.
(a5) Obtaining supernatant part and measuring data s15: A plurality of supernatant parts of 30 milliliters at a position about 2 centimeters below the liquid surface of each of the sedimented waters obtained after step (a4) are taken to measure and record a turbidity, a pH, and a temperature of the supernatant part.
In a state-of-use, step (b) is to obtain a plurality of the set values of coagulant dose and stirring speed through simulation in an application program. In this state-of-use, five groups of different initial set values are prepared and set. Then, the coagulation operating parameters with the lowest cost is approached through adjustment from the set values having lower cost, while the converging spacing of the set values is the difference between the set values changed in the adjustment.
In a state-of-use, in step (b), after judging that the operating specification is met, a judgement of a spacing of the set values is further made, which is a spacing of the set values of the coagulant dose is required to be less than 0.1 ppm or that of said stirring speed is required to be less than 0.1 rpm, to obtain the best coagulation operating parameters.
In a state-of-use, before analyzing and calculating, it is necessary to process data, like filtering, integrating, and transforming them, at first, for avoiding problems, like data missing, noise, and outliers, resulting in misjudgment. The present invention processes pretreatment to the data before training the models, where the pretreatment includes regularization, generalization, and understanding the relationship between jar-test stirring speeds and real-field velocity gradient.
On training the models, different units may be used; or, the representativeness of magnitude and change in value may be different to further affect analysis result. Therefore, regularization is needed to solve the problem. The normalization processed in the present invention is that of minimum value and maximum value, as shown in Formula (1) and Formula (2), where each parameter is set with an appropriate range to maintain the overall ratio of the parameters in principle. Therein, the coagulation data collected in the jar test comprises 0˜100 NTU of raw turbidities, 0˜14 of raw pHs, 0˜50 ppm of doses of polyaluminum chloride, 0˜6 ppm of doses of ferric chloride, and 20˜60 rpm of stirring speeds for slow mixing.
Therein, X is the observed value of inputted parameter; Xnom is the normalized value of inputted parameter; Xmin is the minimum value of inputted parameter; Xmax is the maximum value of inputted parameter; Y is the observed value of inputted parameter; Ynom is the normalized value of outputted parameter; Ymin is the minimum value of outputted parameter; and Ymax is the maximum value of outputted parameter.
For collecting data of various stirring speeds, the present invention collects the data through the jar test. However, the jar test uses a relatively simple stirring device, which has a certain gap with the real-field coagulation unit. Therefore, the stirring speeds of the jar test are converted into the stirring speeds used in actual factory through mathematical formulas. Coagulation mostly uses paddles as agitators. The paddle-type floc-device and the jar-test device have powers (P) consumed by stirring in liquid, where P is derived through Formula (3), a Newtonian mechanics formula; Formula (5) is obtained through Formula (4); Formula (6) and Formula (7) are substituted into Formula (5) to get Formula (8). The jar-test device and and the real-field agitators process conversion through an equal treatment of Gt value, i.e. the Gt value at the real field is equal to that of the jar test. Therefore, through Formula (9), Formula (8), and Formula (10), the stirring speeds set in the jar test are converted into the stirring speeds at the real field.
Therein, r is a radius of stirring (m); v is a tangential speed of paddle (meter per second, m/sec); P is a required shaft horsepower (HP); V is a volume (cubic meter, m3); ρ is a fluid density (kilogram per cubic meter, kg/m3); γ is a hydrodynamic speed (square meter per second, m2/sec); Cd is an impedance coefficient; μ is a fluid viscosity (kilogram per meter and second, kg/m·sec); A is a blade area (m2); and Q is a flow quantity (cubic meter per day, CMD).
In a state-of-use, the present invention carries out preliminary analysis on the basis of the water conditions (data) and the operating parameters to evaluate the performance of water purification operations and analyze the outlet-water quality of coagulation-related units and to understand the relationship between water purification operating parameters and water quality changes.
In
Usually, on training, a model is diagnosed according to its training losses and validation losses for expectation of optimizing the trained model, which means to obtain a model with good generalization ability. In a state-of-use, in step (a), the models of ANN and regression comprises Back Propagation Neural Network (BPNN), Extreme Learning Machines (ELM), Multiple Linear Regression (MLR), and Multiple Nonlinear Regression (MNR), as shown in
In a state-of-use, the present invention uses the coagulation data of the jar test as the basis for developing the optimized coagulation procedure. Through the comparison of various methods of ANN and regression, a model is selected to develop with accuracy verified. The verifying method is as follows:
The present invention uses the optimized coagulation procedure to train the relationships between raw quality, coagulant dose, stirring speed and turbidity change. According to the turbidity changes obtained from the jar test as the basis for verifying models, the predicted values of the models are compared. At the same time, the root-mean-square difference (RMSD) and coefficient of determination (Coefficient of determination, R2) are calculated as evaluation indicators for verifying the accuracy of the optimized coagulation procedure.
The following states-of-use are only examples to understand the details and contents of the present invention, but not to limit the scope of patent of the present invention.
The coagulation data is collected from Mar. 21, 2022 to May 20, 2022 as summing up to a total of 1200 data records. In order to cover different water conditions in training data, the present invention sections the data according to turbidity and stirring speed for slow mixing (turbidity interval of 10 NTU, speed interval of 10 rpm); and obtains 90% of the same turbidity and speed intervals for model training and testing while the other 10% for model validation.
The input variables are raw turbidity, raw pH, dosage of polyaluminum chloride, dosage of ferric chloride, and stirring speed for slow mixing; and the output variable is turbidity change. The values of RMSD and R2 of model verification are shown in
In overall, the optimized coagulation procedure is to directly observe the relationships between the raw quality, coagulant dosage, stirring speed, and turbidity change in the jar test, where the BPNN and MNR models have better performances.
The present invention uses the models of ANN and regression to develop the optimized coagulation procedure in response to changes in raw quality for predicting appropriate coagulant dosage and stirring speed to improve water purification efficiency and save medical and electrical cost, where, with the assistance of artificial intelligence, the burden on the operators is reduced.
By comparing various models of ANN and regression, the research and development of the most suitable algorithm for optimizing the coagulation procedure are discussed. The result shows that, in the optimized coagulation procedure, the BPNN and MNR models have high accuracy, whose RMSDs are 1.64 NTU and 1.57 NTU, respectively.
The optimized coagulation procedure aims to observe the relationships between raw quality, coagulant dosage, stirring speed and turbidity change in the jar test, where the BPNN and MNR models have higher prediction accuracy. Furthermore, most of the existing documents only focus on judging coagulant dosage automatically; yet, the present invention further evaluates the stirring speed in the optimized coagulation procedure, where more comprehensive considerations of the factors affecting the coagulation efficiency are made to make the overall procedure more complete. In overall, the optimized coagulation procedure obtains good prediction accuracy while saving cost of energy and midical dosage and improving water purification efficiency.
To sum up, the present invention is a method of optimizing recommended coagulation operating parameters for water treatment, where, for saving energy and reducing cost as well as improving water purification efficiency, algorithms of BPNN, ELM, MLR, and MNR are used to design and develop an optimized coagulation procedure; for developing the optimized coagulation procedure with accuracy and suitability, the present invention collects coagulation data of different water conditions and operating parameters through jar test to estimate turbidity change under the different water conditions and operating parameters through ANN and regression models; and, thus, best operating parameters are obtained with coagulant dosage and stirring speed together having the lowest cost on meeting the drinking water standards.
The preferred embodiment herein disclosed is not intended to unnecessarily limit the scope of the invention. Therefore, simple modifications or variations belonging to the equivalent of the scope of the claims and the instructions disclosed herein for a patent are all within the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
112113910 | Apr 2023 | TW | national |