A method, device, electronic device and storage medium for determining chlorination flow rate

By obtaining and resampling the historical flow and cross-sectional area data of the water plant, combined with the residual chlorine concentration prediction model, the chlorine addition amount in each stage of the water plant is accurately determined, which solves the problem of inaccurate chlorine flow caused by changes in water flow velocity and improves sodium hypochlorite Precision and cost-effectiveness of the submission.

CN117964011BActive Publication Date: 2025-02-18NANQI XIANCE (NANJING) HIGH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410170790.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-06
Publication Date
2025-02-18
Estimated Expiration
2044-02-06

AI Technical Summary

Technical Problem

In a water plant, the change in water flow rate makes it impossible to accurately determine the chlorination flow rate, which in turn affects the delivery accuracy of sodium hypochlorite.

Method used

By obtaining the historical flow and historical cross-sectional area of ​​the target water plant's water inlet pipe within the historical duration, determining the current sampling frequency, and resampling data from the data buffer, we obtain the same sampling frequency as the data set used for modeling. The current sampled data set. Based on these data, the chlorine flow rate corresponding to the residual chlorine concentration of the target water tank and the residual chlorine concentration of the factory water was determined using a preset residual chlorine concentration prediction model.

Benefits of technology

The accurate determination of the amount of chlorine added at each stage of the water plant is achieved, the control stability of residual chlorine from the factory is improved, and the accuracy of sodium hypochlorite is controlled, saving the cost of delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117964011B_ABST
    Figure CN117964011B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for determining chlorination flow rate. The method includes: obtaining the historical flow rate and historical cross-sectional area corresponding to the water inlet main pipe; determining the current sampling frequency based on the historical flow rate, historical cross-sectional area and preset acquisition frequency; resampling data based on the current sampling frequency to determine the current sampling data set; determining the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration based on the current sampling data set and the preset clean water tank residual chlorine concentration prediction model; determining the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate; determining the target chlorination flow rate based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, thereby accurately determining the chlorination amount of the water plant at each stage, thereby controlling the sodium hypochlorite addition accuracy and saving the cost of placement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computing technology, and in particular to a method, device, electronic equipment and storage medium for determining a chlorination flow rate. Background Art

[0002] With the development of computer technology, more and more intelligent models are being applied to production and life. For example, the chlorination system of a water plant can be simulated using a mechanism model or a data model to estimate the amount of sodium hypochlorite added.

[0003] At present, when using models to estimate the amount of sodium hypochlorite to be released at each stage, the modeling capability and sensor accuracy are very high, and due to the different water flow rates in the water plant, it is impossible to accurately know when the water currently monitored by the residual chlorine monitoring point in the clear water tank will reach the residual chlorine monitoring point for the outgoing water. For example, if the water flow rate is too high, the time to reach the residual chlorine monitoring point for the outgoing water will be advanced, and if the water flow rate is too low, the time to reach the residual chlorine monitoring point for the outgoing water will be delayed. At this time, based on the time difference between the two monitoring points corresponding to a certain water flow rate, accurate monitoring data cannot be obtained, resulting in the inability to accurately determine the chlorination flow rate, and then the inability to accurately estimate the amount of sodium hypochlorite released. Summary of the invention

[0004] The present invention provides a chlorination flow determination method, device, electronic equipment and storage medium, which can accurately determine the chlorination amount of a water plant at each stage, thereby controlling the dosing accuracy of sodium hypochlorite and saving the dosing cost.

[0005] According to one aspect of the present invention, a method for determining a chlorination flow rate is provided, comprising:

[0006] Obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period;

[0007] Determine a current sampling frequency based on the historical flow rate, the historical cross-sectional area and a preset collection frequency corresponding to a preset time index;

[0008] Resample data from a data buffer based on the current sampling frequency to determine a current sampling data set corresponding to the current sampling frequency; the data buffer is used to store historical data collected based on a preset collection frequency in a preset time index;

[0009] Determine the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration based on the current sampling data set and the preset clean water tank residual chlorine concentration prediction model;

[0010] Determine a target post-chlorination flow rate corresponding to a target factory water residual chlorine concentration based on the current sampling data set, a preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate;

[0011] Based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, the target chlorination flow rate corresponding to the target water plant is determined.

[0012] According to another aspect of the present invention, a device for determining a chlorination flow rate is provided, the device comprising:

[0013] A historical data acquisition module, used to obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period;

[0014] A current sampling frequency determination module, used to determine the current sampling frequency based on the historical flow, the historical cross-sectional area and the preset acquisition frequency corresponding to the preset time index;

[0015] A current sampling data set determination module, configured to resample data from a data buffer based on the current sampling frequency to determine a current sampling data set corresponding to the current sampling frequency; the data buffer is configured to store historical data collected based on a preset collection frequency in a preset time index;

[0016] A target pre-chlorination flow rate determination module is used to determine a target pre-chlorination flow rate corresponding to a target clean water tank residual chlorine concentration based on the current sampling data set and a preset clean water tank residual chlorine concentration prediction model;

[0017] A target post-chlorination flow rate determination module is used to determine a target post-chlorination flow rate corresponding to a target factory water residual chlorine concentration based on the current sampling data set, a preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate;

[0018] The target chlorination flow determination module is used to determine the target chlorination flow corresponding to the target water plant based on the target pre-chlorination flow, the target post-chlorination flow, the preset pre-chlorination flow and the preset post-chlorination flow.

[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0020] at least one processor; and

[0021] a memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method for determining the chlorination flow rate according to any embodiment of the present invention.

[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining a chlorination flow rate according to any embodiment of the present invention when executed.

[0024] The technical solution of the embodiment of the present invention is to obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time length; determine the current sampling frequency based on the historical flow, the historical cross-sectional area and the preset acquisition frequency corresponding to the preset time index; resample the data from the data buffer based on the current sampling frequency to determine the current sampling data set corresponding to the current sampling frequency; the data buffer is used to store the historical data collected based on the preset acquisition frequency in the preset time index, so as to obtain the current sampling data set with the same sampling frequency as the data set used for modeling, thereby solving the problem of the inability to fit the model caused by the inconsistency of the backtracking window caused by the time lag of different systems in the model. problem, and improve the accuracy and generalization of the prediction model; based on the current sampling data set and the preset clean water tank residual chlorine concentration prediction model, determine the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration; based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate, determine the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration; based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, determine the target chlorine replenishment flow rate corresponding to the target water plant, so that the chlorine addition amount of the water plant at each stage can be accurately determined, the control stability of the factory residual chlorine can be improved, and then the sodium hypochlorite addition accuracy can be controlled, saving the investment cost.

[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 is a flow chart of a method for determining a chlorination flow rate provided according to Embodiment 1 of the present invention;

[0028] Figure 2 is a flow chart of a method for determining a chlorination flow rate provided according to Embodiment 2 of the present invention;

[0029] Figure 3 is a schematic structural diagram of a chlorination flow rate determination device provided according to Embodiment 3 of the present invention;

[0030] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the method for determining the chlorination flow rate according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", "target", "initial", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Embodiment 1

[0034] Figure 1 A flow chart of a method for determining chlorination flow rate is provided for the first embodiment of the present invention. This embodiment can be applied to predicting the amount of chlorination in each stage of a water plant. The method can be executed by a chlorination flow rate determination device. The chlorination flow rate determination device can be implemented in the form of hardware and / or software. The chlorination flow rate determination device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0035] S110, obtaining the historical flow rate and the historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period.

[0036] The historical duration may be a period of time before the current moment that is preset. For example, the historical duration may be, but is not limited to, the last 60 minutes. The target water plant may refer to a water plant that is equipped with a tap water chlorination system. The source water may refer to water to be treated. The source water inlet pipe is the water inlet main. The historical flow rate may refer to the average flow rate information of the water inlet main within the historical duration. The cross-sectional area may refer to the cross-sectional area of ​​the water inlet main.

[0037] Specifically, the historical flow and the historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period are obtained from the data buffer. The data buffer may be a first-in-first-out buffer.

[0038] It should be noted that the standard design scheme of the tap water chlorination system is "three additions, two tests", that is, setting up three sodium hypochlorite addition points: pre-chlorination (before entering the sand filter), post-chlorination (before entering the clear water tank) and chlorine replenishment (factory water collection well), and setting up two residual chlorine monitoring points: the clear water tank residual chlorine monitoring point and the factory water residual chlorine monitoring point.

[0039] S120. Determine a current sampling frequency based on the historical flow rate, the historical cross-sectional area, and the preset collection frequency corresponding to the preset time index.

[0040] The preset time index may refer to a time index reconstructed based on the flow rate of the water inlet main. The preset time index is related to the flow rate of the water inlet main of the target water plant. The current sampling frequency may refer to a sampling frequency when data resampling is performed.

[0041] Specifically, the historical flow rate is divided by the historical cross-sectional area to determine the average flow rate of the water inlet main within the historical time period, and the average flow rate is divided by the preset collection frequency to determine the current sampling frequency corresponding to the model input data.

[0042] S130, resampling data from a data buffer based on a current sampling frequency, and determining a current sampling data set corresponding to the current sampling frequency; the data buffer is used to store historical data collected based on a preset collection frequency in a preset time index.

[0043] Among them, the current sampling data set contains various data that affect the residual chlorine concentration in water. Specifically, a copy of the historical data in the data buffer can be made, and the copied historical data can be resampled based on the current sampling frequency to determine the current sampling data set corresponding to the current sampling frequency, thereby obtaining a current sampling data set with the same sampling frequency as the data set used for modeling, thereby solving the problem that the model cannot be fitted due to inconsistent backtracking windows caused by different system time lags in the model, and improving the accuracy and generalization of the prediction model.

[0044] S140. Based on the current sampling data set and a preset clean water tank residual chlorine concentration prediction model, determine the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration.

[0045] The preset clean water tank residual chlorine concentration prediction model may be a chlorine concentration prediction model pre-established based on a long-shortterm memory (LSTM) model. The preset clean water tank residual chlorine concentration prediction model is used to predict the residual chlorine concentration of the clean water tank. The target clean water tank residual chlorine concentration may be the optimal residual chlorine concentration in the clean water tank pre-set based on business needs.

[0046] Specifically, the current sampling data set is brought into the preset clean water tank residual chlorine concentration prediction model to predict the clean water tank residual chlorine concentration, and the pre-target chlorine addition flow rate is determined based on the principle that the predicted result is closest to the target clean water tank residual chlorine concentration.

[0047] S150, determining a target post-chlorination flow rate corresponding to a target residual chlorine concentration of factory water based on a current sampling data set, a preset prediction model for residual chlorine concentration of factory water, and a target pre-chlorination flow rate.

[0048] The preset residual chlorine concentration prediction model for factory water may be a chlorine concentration prediction model pre-established based on the LSTM model. The preset residual chlorine concentration prediction model for factory water is used to predict the residual chlorine concentration in the factory water collection well. The target residual chlorine concentration of factory water may be the optimal residual chlorine concentration in the factory water collection well pre-set based on business needs.

[0049] Specifically, the current sampling data set and the target pre-chlorination flow rate are brought into the preset factory water residual chlorine concentration prediction model to predict the factory water residual chlorine concentration, and the target post-chlorination flow rate is determined based on the principle that the prediction result is closest to the target factory water residual chlorine concentration.

[0050] S160. Determine the target chlorine replenishment flow rate corresponding to the target water plant based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate, and the preset post-chlorination flow rate.

[0051] The preset pre-chlorination flow rate may refer to the optimal pre-chlorination flow rate preset based on business needs. For example, the preset pre-chlorination flow rate may refer to the pre-chlorination flow rate required to reach the target residual chlorine concentration in the clean water tank. The preset post-chlorination flow rate may refer to the optimal post-chlorination flow rate preset based on business needs. For example, the preset post-chlorination flow rate may refer to the post-chlorination flow rate required to reach the target residual chlorine concentration of the factory water.

[0052] Specifically, a first weighted flow difference between the target pre-chlorination flow and the preset pre-chlorination flow is determined, a second weighted flow difference between the target post-chlorination flow and the preset post-chlorination flow is determined, and the first weighted flow difference and the second weighted flow difference are input into a flow PID controller to calculate the chlorine replenishment flow to determine the target chlorine replenishment flow corresponding to the target water plant.

[0053] The technical solution of the embodiment of the present invention obtains the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time length; determines the current sampling frequency based on the historical flow, historical cross-sectional area and the preset collection frequency corresponding to the preset time index; resamples data from the data buffer based on the current sampling frequency to determine the current sampling data set corresponding to the current sampling frequency; the data buffer is used to store the historical data collected based on the preset collection frequency in the preset time index, so as to obtain the current sampling data set with the same sampling frequency as the data set used for modeling, thereby solving the problem of the model being unable to be fitted due to the inconsistency of the backtracking window caused by the time lag of different systems in the model. The problem is solved, and the accuracy and generalization of the prediction model are improved; based on the current sampling data set and the preset clear water tank residual chlorine concentration prediction model, the target pre-chlorination flow rate corresponding to the target clear water tank residual chlorine concentration is determined; based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate, the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration is determined; based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, the target chlorination flow rate corresponding to the target water plant is determined, so that the chlorine addition amount of the water plant at each stage can be accurately determined, the control stability of the factory residual chlorine can be improved, and then the sodium hypochlorite addition accuracy can be controlled to save the investment cost.

[0054] Based on the above technical solution, S120 may include: determining the average flow rate corresponding to the water inlet main within the historical time period by dividing the historical flow rate and the historical cross-sectional area; rounding the average flow rate to obtain the rounded flow rate; determining the current sampling frequency by dividing the preset collection frequency corresponding to the preset time index and the rounded flow rate.

[0055] The rounded flow rate may refer to a flow rate obtained by rounding down the average flow rate. The maximum value of the rounded flow rate is 10, and the minimum value is 1. The advantage of this setting is that the rounded flow rate used to calculate the current sampling frequency can be guaranteed to be within a valid range.

[0056] Based on the above technical solution, S130 may include: determining the current sampling period based on the current sampling frequency, and taking the current sampling period as the current time unit; based on the current sampling frequency, collecting the current water quality data set, the current water quantity data set and the current meteorological data set corresponding to a preset number of current time units from the current moment to the historical moment in the data buffer.

[0057] Among them, the current water quality data set includes: at least one of turbidity, conductivity, pH and water temperature; the current water volume data set includes the flow rate of the water inlet main; the current meteorological data set includes: air temperature and / or light. The current sampling period can refer to the time interval between each sampling data. The current time unit can refer to the time unit corresponding to one unit of time. For example, 1 time unit corresponds to 3 minutes. The current time unit needs to be used for backtracking. For example, the backtracking length is 20 time units, a total of 60 minutes.

[0058] On the basis of the above technical solution, the method also includes: obtaining the cross-sectional area corresponding to the water inlet main and the instantaneous flow corresponding to the water inlet main at each historical collection moment in the original time index; determining the instantaneous flow velocity corresponding to the water inlet main based on the cross-sectional area and the instantaneous flow, and rounding the instantaneous flow velocity to determine the rounded instantaneous flow velocity; setting the counting duration corresponding to the current historical collection moment based on the rounded instantaneous flow velocity, and superimposing the counting duration corresponding to each historical collection moment on the basis of the first historical collection moment to determine the preset time index.

[0059] The original time index may be a time index established in world time. The first historical collection time may refer to the historical collection time corresponding to the first historical data. The counting time is related to the instantaneous flow rate when the historical data is collected.

[0060] For example, to obtain the instantaneous flow rate Q of the water inlet main In (m 3 / h), and the cross-sectional area C of the main inlet pipe of the target water plant s (m 2 ), and calculate the instantaneous flow rate of the water inlet main as V In (m / s) = Q In / (C s ×3600). For instantaneous flow velocity V In Perform rounding operation, recorded as limited The minimum value is 1 and the maximum value is 10. Set the count length of historical data collection to For each historical collection data in the entire historical data set, the corresponding counting length is calculated, and the clock starting point corresponding to the first historical collection moment is set to 2020.01.0100:00:00. The counting length corresponding to each historical collection data is vertically accumulated to construct a reorganized preset time index. Based on the renormalized preset time index, the historical collection data can be merged or interpolated at a sampling frequency of 3 minutes to obtain a new data set. Compared with the original time index of the data set, the newly constructed preset time index is reorganized according to the flow rate of the water inlet main. Among them, the greater the flow rate of the water inlet main, the slower the time flow speed in the preset time index, so that when the same number of time units are traced back, the time range of the traceback is shorter in the time period with a greater flow rate, and vice versa, the time range of the traceback is larger in the time period with a smaller flow rate, which is consistent with objective reality.

[0061] Embodiment 2

[0062] Figure 2 This is a flow chart of a method for determining a chlorination flow rate provided in Example 2 of the present invention. Based on the above examples, this example describes in detail the process of determining a pre-target chlorination flow rate. The explanations of the terms that are the same or corresponding to the above examples are not repeated here. Figure 2 As shown, the method includes:

[0063] S210, obtaining the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period.

[0064] S220: Determine a current sampling frequency based on the historical flow rate, the historical cross-sectional area, and the preset collection frequency corresponding to the preset time index.

[0065] S230, resampling data from a data buffer based on a current sampling frequency, and determining a current sampling data set corresponding to the current sampling frequency; the data buffer is used to store historical data collected based on a preset collection frequency in a preset time index.

[0066] S240, input the current sampling data set into the preset clean water tank residual chlorine concentration prediction model, intercept the data block required for prediction based on the current sampling data set in the preset clean water tank residual chlorine concentration prediction model, and perform pre-chlorination flow prediction based on the data block to determine the candidate pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration.

[0067] The data block may refer to data within a period of time required for the pre-chlorination flow prediction. The data block may refer to data corresponding to a portion of a time period within a preset time index range.

[0068] S250. If it is detected that the candidate pre-chlorination flow rate is within the available flow rate range, the candidate pre-chlorination flow rate is determined as the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration.

[0069] The available flow range may refer to the flow range corresponding to the pre-chlorination flow that can be achieved in the target water plant. The advantage of such a setting is that it can adapt to the hardware facilities of different water plants and determine the accurate target pre-chlorination flow.

[0070] S260. If it is detected that the candidate pre-chlorination flow rate is not within the available flow range, the pre-chlorination flow rate closest to the candidate pre-chlorination flow rate within the available flow range is determined as the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration.

[0071] Among them, the advantage of such a setting is that it can adapt to the hardware facilities of different water plants, and determine the achievable target pre-chlorination flow rate based on the pre-chlorination flow rate that can be achieved by the target water plant.

[0072] S270. Determine the target post-chlorination flow rate corresponding to the target residual chlorine concentration of the factory water based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate.

[0073] S280, determining the target chlorine replenishment flow rate corresponding to the target water plant based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate.

[0074] The technical solution of the embodiment of the present invention is to input the current sampling data set into a preset clear water tank residual chlorine concentration prediction model, intercept the data block required for prediction based on the current sampling data set in the preset clear water tank residual chlorine concentration prediction model, and perform pre-chlorination flow prediction based on the data block to determine the candidate pre-chlorination flow corresponding to the target clear water tank residual chlorine concentration; if it is detected that the candidate pre-chlorination flow is within the available flow range, the candidate pre-chlorination flow is determined as the target pre-chlorination flow corresponding to the target clear water tank residual chlorine concentration; if it is detected that the candidate pre-chlorination flow is not within the available flow range, the pre-chlorination flow closest to the candidate pre-chlorination flow within the available flow range is determined as the target pre-chlorination flow corresponding to the target clear water tank residual chlorine concentration, thereby ensuring that the determined target pre-chlorination flow is achievable by the target water plant, thereby effectively improving the accuracy and generalization of the residual chlorine concentration prediction model in the chlorination system of the tap water plant, further improving the control stability of the residual chlorine concentration, and reducing the cost of sodium hypochlorite addition.

[0075] It should be noted that in the process of source water treatment, after the sodium hypochlorite is added with pre-chlorination, it needs to accompany the source water through the transmission pipeline, sand filter, carbon filter, and arrive at the residual chlorine monitoring point in the clear water tank. This usually takes 30 to 90 minutes, and the specific arrival time depends on the flow rate of the main pipe entering the plant. At the same time, under different main pipe flow rates, the water inlet and outlet speeds of the clear water tank will also have obvious differences. Since the time difference between different historical collection data needs to be considered in the modeling process, and due to the difference in flow rate, this time difference is not fixed, but will decrease with the increase of the main water inlet flow rate, and will also increase with the decrease of the main water flow rate. Therefore, the impact of different main water inlet flow rates needs to be considered in the residual chlorine concentration prediction model.

[0076] On the basis of the above technical solution, S270 may include: inputting the current sampling data set and the target pre-chlorination flow rate into the preset factory water residual chlorine concentration prediction model, and intercepting the data block corresponding to the data block of the preset clear water tank residual chlorine concentration prediction model required for prediction based on the current sampling data set in the preset factory water residual chlorine concentration prediction model. It can be understood that the two data blocks correspond to the historical sampling data corresponding to the water entering through the water inlet main at the same time. Based on the data block intercepted this time, the post-chlorination flow rate is predicted to determine the candidate post-chlorination flow rate corresponding to the target factory water residual chlorine concentration; if it is detected that the candidate post-chlorination flow rate is within the available flow range, the candidate post-chlorination flow rate is determined as the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration; if it is detected that the candidate post-chlorination flow rate is not within the available flow range, the post-chlorination flow rate closest to the candidate post-chlorination flow rate within the available flow range is determined as the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration.

[0077] Based on the above technical solution, S280 may include: determining a first chlorine flow difference based on a target pre-chlorination flow and a preset pre-chlorination flow; determining a second chlorine flow difference based on a target post-chlorination flow and a preset post-chlorination flow; performing a closed-loop control calculation based on the first chlorine flow difference and the second chlorine flow difference to determine the target chlorine replenishment flow corresponding to the target water plant.

[0078] Among them, the advantage of this setting is that the target chlorine replenishment flow rate corresponding to the target water plant can be determined by the difference between the chlorination flow rates.

[0079] It should be noted that after determining the target pre-chlorination flow rate and the target post-chlorination flow rate, the method also includes: inputting the difference between the residual chlorine monitoring value of the factory water monitored by the factory water residual chlorine monitoring point and the target factory water residual chlorine concentration into the concentration PID controller for calculation to determine the target chlorine replenishment flow rate corresponding to the target water plant.

[0080] The following is an embodiment of a chlorination flow determination device provided in an embodiment of the present invention. The device and the chlorination flow determination methods of the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the chlorination flow determination device, reference can be made to the embodiment of the above-mentioned chlorination flow determination method.

[0081] Embodiment 3

[0082] Figure 3 This is a schematic diagram of the structure of a chlorination flow rate determination device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a historical data acquisition module 310, a current sampling frequency determination module 320, a current sampling data set determination module 330, a target pre-chlorination flow determination module 340, a target post-chlorination flow determination module 350 and a target chlorination flow determination module 360.

[0083] Among them, the historical data acquisition module 310 is used to obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time length; the current sampling frequency determination module 320 is used to determine the current sampling frequency based on the historical flow, historical cross-sectional area and the preset acquisition frequency corresponding to the preset time index; the current sampling data set determination module 330 is used to resample data from the data buffer based on the current sampling frequency to determine the current sampling data set corresponding to the current sampling frequency; the data buffer is used to store the historical data collected based on the preset acquisition frequency in the preset time index; the target front The chlorination flow determination module 340 is used to determine the target pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration based on the current sampling data set and the preset clean water tank residual chlorine concentration prediction model; the target post-chlorination flow determination module 350 is used to determine the target post-chlorination flow corresponding to the target factory water residual chlorine concentration based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow; the target chlorination flow determination module 360 ​​is used to determine the target chlorination flow corresponding to the target water plant based on the target pre-chlorination flow, the target post-chlorination flow, the preset pre-chlorination flow and the preset post-chlorination flow.

[0084] The technical solution of the embodiment of the present invention obtains the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time length; determines the current sampling frequency based on the historical flow, historical cross-sectional area and the preset collection frequency corresponding to the preset time index; resamples data from the data buffer based on the current sampling frequency to determine the current sampling data set corresponding to the current sampling frequency; the data buffer is used to store the historical data collected based on the preset collection frequency in the preset time index, so as to obtain the current sampling data set with the same sampling frequency as the data set used for modeling, thereby solving the problem of the model being unable to be fitted due to the inconsistency of the backtracking window caused by the time lag of different systems in the model. The problem is solved, and the accuracy and generalization of the prediction model are improved; based on the current sampling data set and the preset clear water tank residual chlorine concentration prediction model, the target pre-chlorination flow rate corresponding to the target clear water tank residual chlorine concentration is determined; based on the current sampling data set, the preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate, the target post-chlorination flow rate corresponding to the target factory water residual chlorine concentration is determined; based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, the target chlorination flow rate corresponding to the target water plant is determined, so that the chlorine addition amount of the water plant at each stage can be accurately determined, the control stability of the factory residual chlorine can be improved, and then the sodium hypochlorite addition accuracy can be controlled to save the investment cost.

[0085] Optionally, the current sampling frequency determination module 320 is specifically used to: determine the average flow velocity corresponding to the water inlet main within the historical time period based on the division processing of the historical flow rate and the historical cross-sectional area;

[0086] The average flow rate is rounded to obtain a rounded flow rate; the rounded flow rate is divided by a preset acquisition frequency corresponding to a preset time index to determine a current sampling frequency.

[0087] Optionally, the current sampling data set determination module 330 is specifically used to: determine the current sampling period based on the current sampling frequency, and use the current sampling period as the current time unit; based on the current sampling frequency, collect the current water quality data set, current water quantity data set and current meteorological data set corresponding to a preset number of current time units from the current moment to the historical moment in the data buffer.

[0088] Optionally, the current water quality data set includes: at least one of turbidity, conductivity, pH and water temperature; the current water quantity data set includes the water inlet main flow; the current meteorological data set includes: air temperature and / or light.

[0089] Optionally, the target pre-chlorination flow determination module 340 is specifically used to: input the current sampling data set into a preset clean water tank residual chlorine concentration prediction model, intercept the data block required for prediction based on the current sampling data set in the preset clean water tank residual chlorine concentration prediction model, and perform pre-chlorination flow prediction based on the data block to determine the candidate pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration; if it is detected that the candidate pre-chlorination flow is within the available flow range, the candidate pre-chlorination flow is determined as the target pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration; if it is detected that the candidate pre-chlorination flow is not within the available flow range, the pre-chlorination flow that is closest to the candidate pre-chlorination flow within the available flow range is determined as the target pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration.

[0090] Optionally, the target chlorine replenishment flow determination module 360 ​​is specifically used to: determine a first chlorine flow difference based on a target pre-chlorination flow and a preset pre-chlorination flow; determine a second chlorine flow difference based on a target post-chlorination flow and a preset post-chlorination flow; perform closed-loop control calculations based on the first chlorine flow difference and the second chlorine flow difference to determine the target chlorine replenishment flow corresponding to the target water plant.

[0091] Optionally, the device further comprises:

[0092] An instantaneous flow acquisition module is used to obtain the cross-sectional area corresponding to the water inlet main pipe and the instantaneous flow corresponding to the water inlet main pipe corresponding to each historical collection moment in the original time index;

[0093] The module for determining the rounded instantaneous flow rate is used to determine the instantaneous flow rate corresponding to the water inlet main pipe based on the cross-sectional area and the instantaneous flow rate, and to round the instantaneous flow rate to determine the rounded instantaneous flow rate;

[0094] The preset time index determination module is used to set the counting time corresponding to the current historical collection moment based on the rounded instantaneous flow rate, and to superimpose the counting time corresponding to each historical collection moment on the basis of the first historical collection moment to determine the preset time index.

[0095] The chlorination flow determination device provided in the embodiment of the present invention can execute the chlorination flow determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the chlorination flow determination method.

[0096] It is worth noting that in the above-mentioned embodiment of determining the chlorination flow rate, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0097] Embodiment 4

[0098] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0099] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0100] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0101] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a chlorination flow determination method.

[0102] In some embodiments, the chlorination flow determination method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the chlorination flow determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the chlorination flow determination method in any other appropriate manner (e.g., by means of firmware).

[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0104] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0108] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for determining chlorination flow rate, characterized in that: include: Obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period; The current sampling frequency is determined based on the preset acquisition frequency corresponding to the historical flow rate, the historical cross-sectional area and the preset time index; the preset time index is a time index reconstructed based on the flow velocity of the water inlet main; the greater the flow velocity of the water inlet main, the slower the time flow speed in the preset time index; when the preset time index is used to trace back the same number of time units, the shorter the time range of the traceback is in the time period with a greater flow velocity; Resample data from a data buffer based on the current sampling frequency to determine a current sampling data set corresponding to the current sampling frequency; The data buffer is used to store historical data collected based on a preset collection frequency in a preset time index; Determine the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration based on the current sampling data set and the preset clean water tank residual chlorine concentration prediction model; Determine a target post-chlorination flow rate corresponding to a target factory water residual chlorine concentration based on the current sampling data set, a preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate; Based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate, the target chlorination flow rate corresponding to the target water plant is determined.

2. The method according to claim 1, characterized in that The determining of the current sampling frequency based on the historical flow, the historical cross-sectional area and the preset collection frequency corresponding to the preset time index includes: Based on the historical flow rate and the historical cross-sectional area, the average flow velocity corresponding to the water inlet main within the historical time period is determined; Rounding the average flow rate to obtain a rounded flow rate; The current sampling frequency is determined by dividing the preset acquisition frequency corresponding to the preset time index by the rounded flow rate.

3. The method according to claim 1, characterized in that The resampling of data from a data buffer based on the current sampling frequency to determine a current sampling data set corresponding to the current sampling frequency includes: Determine a current sampling period based on the current sampling frequency, and use the current sampling period as a current time unit; Based on the current sampling frequency, a current water quality data set, a current water quantity data set and a current meteorological data set corresponding to a preset number of current time units are collected in a data buffer from the current moment to the historical moment.

4. The method according to claim 3, characterized in that The current water quality data set includes: at least one of turbidity, conductivity, pH and water temperature; the current water quantity data set includes the water inlet main flow; the current meteorological data set includes: air temperature and / or light.

5. The method according to claim 1, characterized in that The method of determining a target pre-chlorination flow rate corresponding to a target residual chlorine concentration in a clean water tank based on the current sampling data set and a preset clean water tank residual chlorine concentration prediction model comprises: Input the current sampling data set into a preset clean water tank residual chlorine concentration prediction model, intercept the data block required for prediction based on the current sampling data set in the preset clean water tank residual chlorine concentration prediction model, and perform pre-chlorination flow prediction based on the data block to determine the candidate pre-chlorination flow corresponding to the target clean water tank residual chlorine concentration; If it is detected that the candidate pre-chlorination flow rate is within the available flow range, the candidate pre-chlorination flow rate is determined as the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration; If it is detected that the candidate pre-chlorination flow rate is not within the available flow range, the pre-chlorination flow rate closest to the candidate pre-chlorination flow rate within the available flow range is determined as the target pre-chlorination flow rate corresponding to the target clean water tank residual chlorine concentration.

6. The method according to claim 1, characterized in that The determining of the target chlorination flow rate corresponding to the target water plant based on the target pre-chlorination flow rate, the target post-chlorination flow rate, the preset pre-chlorination flow rate and the preset post-chlorination flow rate includes: Determining a first chlorine flow difference based on the target pre-chlorination flow and the preset pre-chlorination flow; Determining a second chlorine flow rate difference based on the target post-chlorination flow rate and the preset post-chlorination flow rate; A closed-loop control calculation is performed based on the first chlorine flow difference and the second chlorine flow difference to determine a target chlorine replenishment flow corresponding to the target water plant.

7. The method according to claim 1, characterized in that The method further comprises: Obtain the cross-sectional area corresponding to the water inlet main and the instantaneous flow rate corresponding to the water inlet main corresponding to each historical collection moment in the original time index; Determine the instantaneous flow velocity corresponding to the water inlet main pipe based on the cross-sectional area and the instantaneous flow rate, and round the instantaneous flow velocity to determine the rounded instantaneous flow velocity; The counting duration corresponding to the current historical collection moment is set based on the rounded instantaneous flow rate, and the counting duration corresponding to each historical collection moment is superimposed on the basis of the first historical collection moment to determine a preset time index.

8. A chlorination flow rate determination device, characterized in that: include: A historical data acquisition module, used to obtain the historical flow and historical cross-sectional area corresponding to the water inlet main in the target water plant within the historical time period; The current sampling frequency determination module is used to determine the current sampling frequency based on the historical flow rate, the historical cross-sectional area and the preset acquisition frequency corresponding to the preset time index; the preset time index is a time index reconstructed based on the flow velocity of the water inlet main; the greater the flow velocity of the water inlet main, the slower the time flow speed in the preset time index; when the preset time index is used to trace back the same number of time units, the time range of the traceback is shorter in the time period with a greater flow velocity; A current sampling data set determination module, configured to resample data from a data buffer based on the current sampling frequency, and determine a current sampling data set corresponding to the current sampling frequency; The data buffer is used to store historical data collected based on a preset collection frequency in a preset time index; A target pre-chlorination flow rate determination module is used to determine a target pre-chlorination flow rate corresponding to a target clean water tank residual chlorine concentration based on the current sampling data set and a preset clean water tank residual chlorine concentration prediction model; A target post-chlorination flow rate determination module is used to determine a target post-chlorination flow rate corresponding to a target factory water residual chlorine concentration based on the current sampling data set, a preset factory water residual chlorine concentration prediction model and the target pre-chlorination flow rate; The target chlorination flow determination module is used to determine the target chlorination flow corresponding to the target water plant based on the target pre-chlorination flow, the target post-chlorination flow, the preset pre-chlorination flow and the preset post-chlorination flow.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the chlorination flow rate determination method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the chlorination flow rate determination method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Chlorine supplementing method for guaranteeing water quality biological stability of long-distance water delivery pipe network

    CN110287645A

  • Water treatment chlorination control method and device

    CN113651402A