A liquid level control method for a secondary water supply tank based on water age

Through the liquid level reverse thrust water consumption algorithm and ARIMA model prediction, the water tank liquid level is dynamically adjusted, solving the long retention time and pollution problems of the water tank in the secondary water supply system, and improving water quality safety and management accuracy.

CN114610085BActive Publication Date: 2024-11-22SHANGHAI ZHONGYI IND CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210383361.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2024-11-22
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

In the existing secondary water supply system, the water tank retention time is too long, resulting in residual chlorine volatilization, which poses a risk of bacterial proliferation, and pollution problems such as mosquitoes, rats and ants entering and siphoning sewage are difficult to effectively solve.

Method used

The liquid level control method based on water age is adopted, and the water consumption is predicted through the liquid level reverse push water consumption algorithm and the ARIMA model, and the water tank level is dynamically adjusted to achieve water replenishment on demand and reduce the retention time of water in the water tank.

Benefits of technology

Effectively reduce the retention time of drinking water in the water tank, reduce residual chlorine volatility, improve water quality safety, and achieve accurate liquid level management through liquid level control algorithm and water age formula evaluation, solving data lag in traditional systems and the problem of low accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610085B_ABST
    Figure CN114610085B_ABST
Patent Text Reader

Abstract

The invention discloses a liquid level control method for a secondary water supply tank based on water age, comprising the following steps: S1, according to the change of high and low liquid levels of a single water tank, reversely deriving the half-hourly water consumption of a single water tank through a liquid level reverse water consumption algorithm; S2, using an ARIMA model to predict the daily water consumption of a single water tank in the next week, and iterating the model every day to re-predict the daily water consumption of the single water tank in the next week; S3, calculating the half-hourly water consumption weight of a single water tank, and combining the daily water consumption prediction value of the next week to obtain the half-hourly water consumption prediction value of the single water tank in the next week; S4, generating the half-hourly water replenishment level and stop replenishment level of the next week according to the liquid level control algorithm and the water consumption prediction value, and updating the half-hourly water replenishment level and stop replenishment level of the next week every day; S5, using a universal water age formula to calculate the actual water age of the water tank every day.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the fields of intelligent control and secondary water supply systems, and in particular to a liquid level control method of a secondary water supply tank based on water age. Background Art

[0002] Secondary water supply refers to the storage and pressurization of urban public water supply or self-built water supply by units or individuals, and then supplying it to users through pipelines. Usually, water tanks and water pump units are used as secondary water supply facilities. However, there are pollution problems in secondary water supply, which are mainly manifested in the following aspects: (1) The vent pipes and overflow pipes of water tanks and water pumps are not sealed with protective treatment, which leads to mosquitoes, rats, ants or other foreign objects entering the pool; (2) The drainage pipes and overflow pipes of water tanks and water pumps are connected to the sewer, or are buried in sewage, which leads to sewage entering through reverse siphonage; (3) The tap water in water tanks and water pumps stays in the tanks and water pumps for too long, which leads to the volatilization of residual chlorine in the water, and cannot meet the needs of continuous disinfection.

[0003] In the current secondary water supply system in Shanghai, there are a large number of old residential areas, and the design size of the pump room and roof water tank is too large, resulting in a long retention time of tap water entering the residential area pump room and roof water tank, large volatilization of residual chlorine, and the risk of bacterial proliferation. The present invention reduces the retention time (water age) of drinking water in the residential area and water tank, reduces the volatilization of residual chlorine, and ensures the safety of the "last mile" of residents' drinking water. Summary of the invention

[0004] In order to overcome the deficiencies of the above-mentioned prior art, the purpose of the present invention is to provide a liquid level control method for a secondary water supply tank based on water age, which adjusts the liquid level of the water tank according to the user's water consumption, realizes water replenishment of the water tank on demand, and reduces the residence time of drinking water in the water tank.

[0005] To achieve the above object, the present invention proposes a liquid level control method for a secondary water supply tank based on water age, comprising the following steps:

[0006] Step S1, according to the change of high and low liquid levels in a single water tank, reversely deduce the half-hourly water consumption of a single water tank through a liquid level reverse water consumption algorithm;

[0007] Furthermore, step S1 includes the following steps:

[0008] Step S11, using the liquid level to reverse the water consumption algorithm, input the water tank liquid level and water tank bottom area data, and extract all high liquid point points and low liquid point points in a day;

[0009] Furthermore, in step S11, the determination of the high liquid point and the low liquid point comprises the following steps:

[0010] Step S111, determine the size of the liquid level difference ΔL, where ΔL is the difference between the highest and lowest liquid levels in the historical data of the past week. If ΔL≤0.1 meter, execute step S122; if ΔL>0.1 meter, execute step S123;

[0011] Step S112: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 5min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t , if L t is equal to the highest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 >0.01 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t is equal to the lowest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 <=0, and ΔL 2 >0.01m, then L t Mark as low fluid point;

[0012] Step S113: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 15min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t , if L t Equal to the highest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 >0.03 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t Equal to the lowest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 <=0, and ΔL 2 >0.03 m, then L t Mark the low fluid point.

[0013] Step S12, dividing a day into multiple small time periods, traversing and marking the high liquid point and the low liquid point according to the difference between the high liquid point and the low liquid point in the small time period, the liquid level time and the liquid level value corresponding to the liquid level time;

[0014] Step S13, marking the liquid point corresponding to the hour and half hour and the first and last liquid point of the day;

[0015] Step S14, extracting the liquid point locations marked in step S12 and step S13, and arranging them in ascending order of time;

[0016] Step S15, calculate the first-order difference of all liquid point locations after ascending order, obtain the difference result, extract the difference result less than or equal to zero, and form all the liquid level drop heights G = [G 1 ,G 2 ,...];

[0017] Step S16, calculate the half-hour water consumption Q of a single water tank i , specifically:

[0018] Q i =S i *S 0

[0019]

[0020] Where i = 1, 2, 3, ..., 48, S i S is the total height of liquid level drop every half hour, 0 is the bottom area of ​​the water tank, G ij These are all the liquid level drop heights in the corresponding half-hour period determined in step S15.

[0021] Step S2, using the ARIMA model to predict the daily water consumption of a single water tank in the next week, and iterating the model every day to re-predict the daily water consumption of a single water tank in the next week;

[0022] Further, step S2 includes the following steps:

[0023] Step S21, extracting the historical values ​​of the half-hourly water consumption of the single water tank obtained in step S1 in the last two months, summing up the historical values, and obtaining the daily water consumption of the single water tank;

[0024] Step S22, using the ARIMA model to train the half-hourly water consumption historical data of the single water tank in the last two months to obtain a single water tank ARIMA model;

[0025] Step S23, using the single water tank ARIMA model and the daily water consumption of the single water tank, predicting the daily water consumption of the single water tank in the next week;

[0026] Step S24, iteratively updating the ARIMA model of a single water tank every day, and re-forecasting the daily water consumption of a single water tank in the next week.

[0027] Step S3, calculating the water consumption weight of a single water tank at the half-hour level, combining the daily water consumption forecast value of the single water tank in the next week, and obtaining the water consumption forecast value of the single water tank every half hour in the next week;

[0028] Further, step S3 includes the following steps:

[0029] Step S31, extracting the actual water consumption data of a single water tank at half an hour level in the last month;

[0030] Step S32, performing outlier processing on the actual water consumption data of a single water tank at the half-hour level;

[0031] Furthermore, in step S32, the abnormal value processing is specifically as follows:

[0032] Calculate the quarter quantile T for the actual water consumption data of a single water tank at the half-hour level 1 and quartile T 3 , remove those greater than T 3 +1.5×(T 3 -T 1 ) and remove those less than T 1 -1.5×(T 3 -T 1 ) outliers.

[0033] Step S33, based on the actual water consumption data after outlier processing, calculate the average water consumption of a single water tank every half hour from Monday to Sunday in the past month, specifically:

[0034]

[0035] Where Q ij Q is the average water consumption per half hour from Monday to Sunday in the last month for a single water tank. ijm is the actual water consumption, i represents the day of the week, i=1,2,3,...,7, j represents every half hour, j=1,2,3,...,48, m represents the number of weeks, m=1,2,3,4.

[0036] Step S34, based on the average water consumption of the single water tank every half hour from Monday to Sunday in the past month, calculate the water consumption weight σ of the single water tank every half hour from Monday to Sunday in the past month ij , specifically:

[0037]

[0038] Among them, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, j is every half hour, Qij =[Q i1 , Q i2 ,...,Q ij ,...,Q i48 ], Q ij is the average water consumption per half hour from Monday to Sunday in the single water tank in step S33 in the past month;

[0039] Step S35, based on the water consumption weight and combined with the predicted daily water consumption of a single water tank in the next week described in step S2, obtain the predicted water consumption value q for each half hour of the next week for a single water tank ij , specifically:

[0040] q ij =QF i ×σ ij

[0041] Among them, QF i is the daily water consumption of a single water tank predicted in step S2 for the next week, σ ij is the water consumption weight every half hour from Monday to Sunday, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, i=1,2,3,4,5,6,7, and j is every half hour.

[0042] Step S4, generating a half-hourly replenishment level and a stop replenishment level for the next week based on the half-hourly water consumption forecast value of the single water tank in the next week and the liquid level control algorithm, and updating the replenishment level and the stop replenishment level daily;

[0043] Further, step S4 includes the following steps:

[0044] Step S41, extracting the predicted value of water consumption of a single water tank every half hour in the next week in step S3;

[0045] Step S42, using the liquid level control algorithm to determine the water replenishment level and stop replenishment level of the single water tank, and update the water replenishment level and stop replenishment level daily, and the equipment controls the water tank liquid level according to the water replenishment level and stop replenishment level plan.

[0046] Further, step S42 includes the following steps:

[0047] LMIN ij =L 0 +ΔL 2

[0048]

[0049] If LMAXij -(L 0 +ΔL 2 )<ΔL 1 ,but

[0050] like but

[0051] like

[0052] but

[0053] Among them, LMIN ij For the water level, LMAX ij is the stop filling level, L 0 is the lowest liquid level that the water tank can be adjusted to, L R is the highest liquid level that the water tank can adjust to, ΔL 1 is the minimum water filling height difference set for a single time, ΔL 2 is the height difference between the set minimum liquid level, the maximum liquid level and the limit liquid level, i is the day of the week, i=1,2,3,4,5,6,7, j is every half hour, and n is the different water storage time selected according to the time stage of j, high level or multiple layers.

[0054] Step S5, according to the water replenishment level and the stop replenishment level, the actual water age of the water tank is calculated daily using a universal water age formula, and the optimal liquid level control solution is obtained through the actual water age evaluation.

[0055] Furthermore, step S5 further includes the following steps:

[0056] Step S51, using a dynamic mixed water age formula to determine the water age of the water tank, the water age when the calculation result of the water tank water age reaches a stable stage is the actual water age;

[0057] Furthermore, in step S51, the dynamic mixed water age formula is specifically:

[0058]

[0059] Where o is the water age, V 进 is the water inflow at the current moment, o 进 is the water age, V is the water volume in the water tank at the current moment, is the water age at the previous moment, Δt is the time difference between the current moment and the previous moment, if V <V 进 , then o is zero;

[0060] Step S52, extracting the actual water age values ​​of multiple water tanks and averaging them to obtain an average water age value;

[0061] Step S53, performing data analysis on the average water age value to obtain the correlation between the average daily water consumption of the water tank, the average water storage capacity of the water tank and the water age, performing regression analysis and fitting a static water age formula, which is a universal water age formula;

[0062] Further, in step S53, the fitted static water age formula is:

[0063]

[0064] Among them, o is the water age, V is the average water storage capacity of the water tank, and Q is the average daily water consumption of the water tank.

[0065] Step S54, performing accuracy check on the static water age formula.

[0066] Compared with the prior art, the liquid level control method of the secondary water supply tank based on water age of the present invention has the following beneficial effects:

[0067] (1) Through the liquid level control algorithm, the low liquid level and high liquid level schemes of the water tank can be dynamically generated, and the water tank liquid level can be floatingly controlled through the scheme;

[0068] (2) The algorithm for inferring water tank water consumption based on liquid level solves the problems of no remote water meter, incomplete coverage of remote water meters, and delayed data collection of remote water meters. The water tank water consumption can be quickly calculated according to the change of water tank liquid level, laying the foundation for accurately predicting daily water tank water consumption. It avoids the problem of delayed solution, cumbersome operation, and low accuracy caused by the delayed reporting time and large amount of data of traditional residential remote small meters.

[0069] (3) The effect of liquid level control is evaluated through the water age formula, and the static water age formula is fitted as a general water age formula to facilitate the rapid survey of water age in secondary water supply business;

[0070] (4) By fitting the water usage pattern algorithm of the water tank, based on the water usage patterns of different water tanks, an algorithm for fitting the water usage pattern of the water tank is developed to analyze the water usage patterns of different water tanks, laying the foundation for accurately predicting the water consumption of 30-level water tanks. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A flow chart of the steps of a liquid level control method of a secondary water supply tank based on water age according to the present invention;

[0072] Figure 2 A schematic diagram showing the lowest and highest points of a preferred embodiment disclosed in the present invention;

[0073] Figure 3 A schematic diagram of marking whole points and half points according to a preferred embodiment of the present invention;

[0074] Figure 4-a This is a daily water usage distribution diagram of water tank No. 1 in the application area of ​​a liquid level control algorithm of a preferred embodiment disclosed by the present invention from Monday to Sunday;

[0075] Figure 4-b This is a daily water usage distribution diagram of water tank No. 2 in the application area of ​​a preferred embodiment of the liquid level control algorithm disclosed in the present invention from Monday to Sunday;

[0076] Figure 5 A schematic diagram of a water replenishment level and a stop replenishment level scheme of a preferred embodiment disclosed in the present invention;

[0077] Figure 6 A graph showing actual liquid level variation trends controlled by a liquid level control algorithm according to a preferred embodiment of the present invention;

[0078] Figure 7 A long-term historical trend diagram of the liquid level control algorithm control of a preferred embodiment disclosed in the present invention;

[0079] Figure 8 This is a liquid level change trend diagram controlled by a traditional float valve;

[0080] Fig. 9 This is the liquid level change trend diagram controlled by the reed switch;

[0081] Fig.10 A water age variation trend diagram determined by using a mixed water age formula according to a preferred embodiment of the present invention;

[0082] Fig.11 A diagram showing the relationship between water age and water storage / daily water consumption in a preferred embodiment disclosed in the present invention;

[0083] Fig.12 A regression analysis result diagram of a preferred embodiment disclosed in the present invention;

[0084] Fig.13 This is a trend diagram of water age changes in a nursing home water tank according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0085] The following describes the implementation of the present invention through specific examples and in conjunction with the accompanying drawings. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0086] Figure 1 FIG. 1 is a flow chart of the steps of a method for controlling the liquid level of a secondary water supply tank based on water age according to the present invention. Figure 1 As shown, the present invention provides a liquid level control method for a secondary water supply tank based on water age, comprising the following steps:

[0087] Step S1, according to the change of high and low liquid levels in a single water tank, reversely deduce the half-hourly water consumption of a single water tank through a liquid level reverse water consumption algorithm;

[0088] Among them, the liquid level collection frequency is at least 1 time / min.

[0089] In this embodiment, step S1 further includes the following steps:

[0090] Step S11, using the liquid level to reversely calculate the water consumption algorithm, input the water tank liquid level and the water tank bottom area, and extract the high liquid point and the low liquid point within a day;

[0091] Further, in this embodiment, the determination of the high liquid point and the low liquid point includes the following steps:

[0092] Step S111, determine the size of the liquid level difference ΔL, where ΔL is the difference between the highest and lowest liquid levels in the historical data of the past week. If ΔL≤0.1 meter, execute step S122; if ΔL>0.1 meter, execute step S123;

[0093] Step S112: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 5min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t , if L t is equal to the highest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 >0.01 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t is equal to the lowest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 <=0, and ΔL 2 >0.01m, then L t Mark as low fluid point;

[0094] Step S113: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 15min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t, if L t Equal to the highest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 >0.03 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t Equal to the lowest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 <=0, and ΔL 2 >0.03 m, then L t Mark the low fluid point.

[0095] Step S12, dividing a day into multiple small time periods, traversing and marking the high liquid point and the low liquid point according to the difference between the high liquid point and the low liquid point in the small time period, the liquid level time and the liquid level value corresponding to the liquid level time;

[0096] Figure 2 This is a schematic diagram of marking the lowest and highest points of a preferred embodiment disclosed in the present invention, referring to Figure 2 In this embodiment, the highest liquid point and the lowest liquid point are marked.

[0097] Step S13, marking the liquid level points corresponding to the hour and half hour and the first and last liquid level points of the day, that is, marking the liquid level data corresponding to 00:00, 00:30, 1:00, 1:30...

[0098] Figure 3 This is a schematic diagram of marking whole points and half points of a preferred embodiment disclosed in the present invention, with reference to Figure 3 In this embodiment, the liquid point positions at the whole point and the half point are marked.

[0099] Step S14, extract the liquid point locations marked in step S12 and step S13, arrange them in ascending order of time, and let the extracted marked points be M=[M 1 ,M 2 ,...,M n ];

[0100] Step S15, calculate the first-order difference of all liquid point locations after ascending order, obtain the difference result, extract the difference result less than or equal to zero, and form all the liquid level drop heights G = [G 1 ,G 2 ,...];

[0101] Step S16, calculate the half-hour water consumption Q of a single water tank i , specifically:

[0102] Q i =S i *S0

[0103]

[0104] Where i = 1, 2, 3, ..., 48, S i S is the total height of liquid level drop every half hour, 0 is the bottom area of ​​the water tank, G ij These are all the liquid level drop heights in the corresponding half-hour period determined in step S15.

[0105] Step S2, using the half-hourly water consumption of the single water tank, using the ARIMA model to predict the daily water consumption of the single water tank in the next week, and iterating the model every day to re-predict the daily water consumption of the single water tank in the next week;

[0106] In this embodiment, step S2 further includes the following steps:

[0107] Step S21, extracting the historical values ​​of the half-hourly water consumption of the single water tank obtained in step S1 in the last two months, summing up the historical values, and obtaining the daily water consumption of the single water tank;

[0108] Step S22, using the ARIMA model to train the half-hourly water consumption historical data of the single water tank in the last two months to obtain a single water tank ARIMA model;

[0109] Step S23, using the single water tank ARIMA model and the daily water consumption of the single water tank, predict the daily water consumption QF of the single water tank in the next week i , i represents the day of the week, i=1,2,3,4,5,6,7;

[0110] Step S24, iteratively updating the ARIMA model of a single water tank every day, and re-forecasting the daily water consumption of a single water tank in the next week.

[0111] Step S3, calculating the water consumption weight of a single water tank at the half-hour level, combining the daily water consumption forecast value of the single water tank in the next week, and obtaining the water consumption forecast value of the single water tank every half hour in the next week;

[0112] In this embodiment, step S3 further includes the following steps:

[0113] Step S31, extracting the actual water consumption data of a single water tank at half an hour level in the last month;

[0114] Step S32, performing outlier processing on the actual water consumption data of a single water tank at the half-hour level;

[0115] Furthermore, in step S32, the abnormal value processing is specifically as follows:

[0116] Calculate the quarter quantile T for the actual water consumption data of a single water tank at the half-hour level 1 and quartile T 3 , remove those greater than T 3 +1.5×(T 3 -T 1 ) and remove those less than T 1 -1.5×(T 3 -T 1 ) outliers.

[0117] Step S33, based on the actual water consumption data after outlier processing, calculate the average water consumption of a single water tank every half hour from Monday to Sunday in a month, specifically:

[0118]

[0119] Among them, Q ij Q is the average water consumption per half hour from Monday to Sunday in the last month for a single water tank. ijm is the actual water consumption. i represents the day of the week, i=1,2,3,...,7. j represents every half hour, j=1,2,3,...,48. m represents the week number, because the historical data of the past four weeks are selected, so m=1,2,3,4.

[0120] Step S34, based on the average water consumption of the single water tank every half hour from Monday to Sunday in the past month, calculate the water consumption weight σ of the single water tank every half hour from Monday to Sunday in the past month ij , specifically:

[0121]

[0122] Among them, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, j is every half hour, Q ij =[Q i1 , Q i2 ,...,Q ij ,...,Q i48 ], Q ij is the average water consumption per half hour from Monday to Sunday in the single water tank in step S33 in the past month;

[0123] Step S35, based on the water consumption weight and combined with the predicted daily water consumption of a single water tank in the next week described in step S2, obtain the predicted water consumption value q for each half hour of the next week for a single water tank ij , specifically:

[0124] q ij =QFi ×σ ij

[0125] Among them, QF i is the daily water consumption of a single water tank predicted in step S2 for the next week, σ ij is the water consumption weight every half hour from Monday to Sunday, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, i=1,2,3,4,5,6,7, and j is every half hour.

[0126] In step S3, when calculating the water use weight, since the water use rules of each water tank are different, the water use weight of each water tank needs to be calculated separately. In this embodiment, the water tank No. 1 and the water tank No. 2 in the community are used as examples to further illustrate:

[0127] Figure 4-a This is a daily water usage distribution diagram of water tank No. 1 in the application area of ​​a preferred embodiment of the present invention, from Monday to Sunday, for reference. Figure 4-a It can be seen that the water consumption of water tank No. 1 is relatively large during the evening peak hours on weekdays from Monday to Friday, and the evening peak water consumption on weekends is lower than that on weekdays.

[0128] Figure 4-b This is a daily water usage distribution diagram of water tank No. 2 in the application area of ​​a preferred embodiment of the present invention, from Monday to Sunday, for reference. Figure 4-b It can be seen that there is no obvious peak in water usage in the morning and evening in Water Tank No. 2.

[0129] Figure 4-a and Figure 4-b The water usage patterns of the two water tanks are obviously different, so it is necessary to dynamically fit the water usage pattern of a single water tank.

[0130] Step S4, based on the half-hourly water consumption forecast value of the single water tank in the next week and the liquid level control algorithm, generate the half-hourly water replenishment level and stop replenishment level in the next week, and update the water replenishment level and stop replenishment level daily. The equipment controls the water tank liquid level according to the water replenishment level and stop replenishment level scheme;

[0131] In this embodiment, step S4 further includes the following steps:

[0132] Step S41, extract the predicted water consumption value Q of the single water tank every half hour in the next week in step S3 i =[Q i1 , Q i2 ,...,Q ij ,...,Q i48 ].

[0133] Step S42, using a liquid level control algorithm to determine the water replenishment level and stop replenishment level of a single water tank, and updating the water replenishment level and stop replenishment level daily, and the equipment controls the water tank liquid level according to the water replenishment level and stop replenishment level scheme;

[0134] In this embodiment, step S42 further includes the following steps, specifically:

[0135] LMIN ij =L 0 +ΔL 2

[0136]

[0137] If LMAX ij -(L 0 +ΔL 2 )<ΔL 1 ,but

[0138] like but

[0139] like

[0140] but

[0141] Among them, LMIN ij For the water level, LMAX ij is the stop filling level, L 0 is the lowest liquid level that the water tank can be adjusted to, L R is the highest liquid level that the water tank can adjust to, ΔL 1 is the minimum water filling height difference set for a single time, ΔL 2 is the height difference between the set minimum liquid level, the maximum liquid level and the limit liquid level, i is the day of the week, i=1,2,3,4,5,6,7, j is every half hour, and n is the different water storage time selected according to the time stage of j, high level or multiple layers.

[0142] In this embodiment, Figure 5 This is a schematic diagram of a water replenishment level and a stop replenishment level scheme according to a preferred embodiment of the present invention. Figure 5 In the figure, the curve representing the stop-replenishment liquid level plan is above the curve representing the water replenishment liquid level plan. If the water tank level is lower than the water replenishment liquid level plan curve, water replenishment begins; if the water tank level is higher than the stop-replenishment liquid level plan curve, water replenishment stops.

[0143] Figure 6 This is a trend diagram of actual liquid level change controlled by a liquid level control algorithm according to a preferred embodiment of the present invention. Figure 6 There are two changes in the

[0144] Trend 1: The water consumption of the water tank is relatively large during the morning and evening peaks. At this time, the liquid level control method controls more water replenishment during the morning and evening peaks, and less water replenishment during the noon and evening;

[0145] Change trend 2: The water tank consumes less water during the morning peak and more water during the evening peak. At this time, the liquid level control method controls the water replenishment amount during the morning peak to be lower than the water replenishment amount during the evening peak.

[0146] Figure 7 This is a long-term historical trend diagram of the liquid level control algorithm control of a preferred embodiment disclosed in the present invention. In this embodiment, the water consumption of the water tank drops from 14 tons per day to 10 tons per day. Therefore, the liquid level height controlled by the liquid level control method of the secondary water supply tank based on water age of the present invention is adjusted accordingly.

[0147] Figure 8 This is a liquid level change trend diagram controlled by a traditional float valve, such as Figure 8 As shown, the liquid level is always at a constant high level and the drinking water stays in the tank for a long time.

[0148] Fig. 9 This is the liquid level change trend diagram controlled by the reed switch, such as Fig. 9 As shown, the reed switch is used to control the water replenishment at a fixed height, the water stop at a fixed height, and the water replenishment height difference is fixed. The water replenishment times and the single water replenishment height are not adjusted in combination with the water consumption fluctuation, which is not conducive to energy saving of the pump group and improving water quality.

[0149] Figure 8 and Fig. 9 Both are traditional liquid level control methods for water tanks, and do not adjust the water tank liquid level height in accordance with the user's water consumption fluctuation. Figure 6 and Figure 7 What is presented is the liquid level change trend controlled by the liquid level control method described in the present invention. Through comparison, it can be seen that the control mode of the liquid level control method described in the present invention can completely replenish water on demand according to the user's water demand, reduce the residence time of drinking water in the water tank, and improve the water quality of drinking water.

[0150] Step S5, according to the water replenishment level and the stop replenishment level, the actual water age of the water tank is calculated daily using a universal water age formula, and the optimal liquid level control solution is obtained through the actual water age evaluation.

[0151] In this embodiment, step S5 further includes the following steps:

[0152] Step S51, using a dynamic mixed water age formula to determine the water age of the water tank, the water age when the calculation result of the water tank water age reaches a stable stage is the actual water age;

[0153] Furthermore, in step S51, the dynamic mixed water age formula is specifically:

[0154]

[0155] Where o is the water age, V 进 is the water inflow at the current moment, o 进 is the water age, V is the water volume in the water tank at the current moment, is the water age at the previous moment, Δt is the time difference between the current moment and the previous moment, if V <V 进 , then o is zero;

[0156] Fig.10 This is a water age variation trend diagram determined by a mixed water age formula in a preferred embodiment disclosed by the present invention, such as Fig.10 As shown, given the initial water age is 0, the increase in water age in the front part of the figure is caused by setting the initial water age to zero. The part circled by the rectangular box represents that the water age has reached a stable state. At this time, the water age in the stable stage is the actual and real water age.

[0157] Step S52, extracting the real water age values ​​of multiple water tanks and averaging them to obtain an average water age value;

[0158] Step S53, performing data analysis on the average water age value to obtain the correlation between the average daily water consumption of the water tank, the average water storage capacity of the water tank and the water age, performing regression analysis and fitting a static water age formula, which is a universal water age formula;

[0159] Further, in step S53, the static water age formula is specifically:

[0160]

[0161] Among them, o is the water age, V is the average water storage capacity of the water tank, and Q is the average daily water consumption of the water tank.

[0162] Fig.11 This is a relationship diagram between water age and water storage / daily water consumption according to a preferred embodiment of the present invention, as shown in FIG. Fig.11 As shown, there is an obvious linear correlation between water age and water storage capacity / daily water consumption, which is close to a direct proportional function.

[0163] Fig.12 This is a regression analysis result diagram of a preferred embodiment disclosed in the present invention, such as Fig.12 As shown, the R-squared (fitting degree) is 0.9997, close to 1, and the p-value (p value) is less than 0.05, which shows that the regression effect is good.

[0164] Step S54, performing accuracy check on the static water age formula.

[0165] Further, in this embodiment, the water age is determined according to step S53, and the water age data of high-rise and multi-story water tanks in residential areas are selected for fitting the static water age formula; a nursing home is selected for water age accuracy analysis. The bottom area of ​​the nursing home water tank is 6 square meters, and the float valve controls the water tank level. The water tank level is constant at 1.5 meters, and the daily water consumption is 18.05 tons. According to the static water age formula of step S53 It was concluded that the water age of the nursing home’s water tank was 10.91 hours.

[0166] Fig.13 This is a trend diagram of the water age change of the water tank in a nursing home according to a preferred embodiment of the present invention. Fig.13 As shown, according to the water age variation trend determined by the mixed water age formula in step S51, the average water age is 10.78 hours.

[0167] It can be seen that the water age results determined by step S51 and step S53 are very close and have high accuracy. In addition, step S53 can be applied to a variety of water tank level control modes, which is universal and simple, and can greatly facilitate the water tank water age survey work in business applications, so it is used as a universal water age formula.

[0168] The present invention adjusts the liquid level control scheme according to the water age limit. For example, the water age cannot exceed 24 hours. It is necessary to verify whether the water age exceeds 24 hours through the actual water age, that is, to verify the liquid level control effect.

[0169] Based on the above steps, the present invention collects the user water consumption of the water tank in real time through the liquid level reverse deduction user water consumption algorithm; analyzes the user water consumption pattern through the user water consumption prediction model, and obtains the half-hourly user water consumption prediction value for the next week; uses the liquid level control algorithm to calculate the liquid level floating control plan for the next few days according to the user water consumption prediction value, and the liquid level control algorithm gives a high liquid level control plan when the water consumption is at a peak, and gives a low liquid level control plan when the water consumption is at a low point, and evaluates the effect of the liquid level control plan through the water age formula; the present invention can effectively solve the problem of long retention time of drinking water in the community water tank in the secondary water supply system, reduce the water age, and improve the water quality of residents' drinking water.

[0170] In summary, the present invention provides a liquid level control method for a secondary water supply tank based on water age, which integrates a water tank liquid level reverse estimation algorithm for user water consumption, a user water consumption prediction model and a liquid level control algorithm, and reversely deduces the water consumption of the water tank through the high and low fluctuations of the water tank liquid level. According to the historical value of the water tank water consumption, the user water consumption in the next few days is predicted, and finally, according to the predicted value of the user water consumption and the liquid level control algorithm, a liquid level control scheme for the water tank is given to realize on-demand water replenishment of the water tank and reduce the residence time (water age) of drinking water in the water tank.

[0171] The above embodiments are only illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Any person skilled in the art may modify and change the above embodiments without violating the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be as set forth in the claims.

Claims

1. A method for controlling the liquid level of a secondary water supply tank based on water age, comprising the following steps: Step S1, according to the change of high and low liquid levels in a single water tank, reversely deduce the half-hourly water consumption of a single water tank through a liquid level reverse water consumption algorithm; Step S2, using the half-hourly water consumption of the single water tank, using the ARIMA model to predict the daily water consumption of the single water tank in the next week, and iterating the model every day to re-predict the daily water consumption of the single water tank in the next week; Step S3, calculating the water consumption weight of a single water tank at the half-hour level, combining the daily water consumption forecast value of the single water tank in the next week, and obtaining the water consumption forecast value of the single water tank every half hour in the next week; Step S4, based on the half-hourly water consumption forecast value of the single water tank in the next week and the liquid level control algorithm, generate the half-hourly water replenishment level and stop replenishment level in the next week, and update the water replenishment level and stop replenishment level daily. The equipment controls the water tank liquid level according to the water replenishment level and stop replenishment level scheme; Step S5, according to the water replenishment level and the stop replenishment level, the actual water age of the water tank is calculated daily using a universal water age formula, and the liquid level control effect is evaluated by the actual water age; Step S5 further includes the following steps: Step S51, using a dynamic mixed water age formula to determine the water age of the water tank, the water age when the calculation result of the water tank water age reaches a stable stage is the actual water age; Step S52, extracting the actual water age values ​​of multiple water tanks and averaging them to obtain the average water age value of the multiple water tanks; Step S53, performing data analysis on the average water age value to obtain the correlation between the average daily water consumption of the water tank, the average water storage capacity of the water tank and the water age, performing regression analysis and fitting a static water age formula; Step S54, performing accuracy test on the static water age formula; In step S51, the dynamic mixed water age formula is specifically: in, o is the water age, V 进 is the water inflow at the current moment, o 进 is the water age, V is the water volume in the water tank at the current moment, is the water age at the previous moment, Δt is the time difference between the current moment and the previous moment, if V <V 进 , then o is zero; In step S53, the fitted static water age formula is: Among them, o is the water age, V is the average water storage capacity of the water tank, and Q is the average daily water consumption of the water tank.

2. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 1, It is characterized in that Step S1 further includes the following steps: Step S11, using the liquid level to reverse the water consumption algorithm, input the water tank liquid level and water tank bottom area data, and extract all high liquid point points and low liquid point points in a day; Step S12, dividing a day into multiple small time periods, traversing and marking the high liquid point and the low liquid point according to the difference between the high liquid point and the low liquid point in the small time period, the liquid level time and the liquid level value corresponding to the liquid level time; Step S13, marking the liquid point corresponding to the hour and half hour and the first and last liquid point of the day; Step S14, extracting the liquid point locations marked in step S12 and step S13, and arranging them in ascending order of time; Step S15, calculate the first-order difference of all liquid point locations after ascending order, obtain the difference result, extract the difference result less than or equal to zero, and form all the liquid level drop heights G = [G 1 ,G 2 ,...]; Step S16, calculate the half-hour water consumption Q of a single water tank i , specifically: Q i =S i *S 0 Where i = 1, 2, 3, ..., 48, S i S is the total height of liquid level drop every half hour, 0 is the bottom area of ​​the water tank, G ij These are all the liquid level drop heights in the corresponding half-hour period determined in step S15.

3. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 1, It is characterized in that Step S2 further includes the following steps: Step S21, extracting the historical values ​​of the half-hourly water consumption of the single water tank obtained in step S1 in the last two months, summing up the historical values, and obtaining the daily water consumption of the single water tank; Step S22, using the ARIMA model to train the half-hourly water consumption historical data of the single water tank in the last two months to obtain a single water tank ARIMA model; Step S23, using the single water tank ARIMA model and the daily water consumption of the single water tank, predicting the daily water consumption of the single water tank in the next week; Step S24, iteratively updating the single water tank ARIMA model every day, and re-forecasting the daily water consumption of the single water tank in the next week.

4. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 1, It is characterized in that Step S3 further includes the following steps: Step S31, extracting the actual water consumption data of a single water tank at half an hour level in the last month; Step S32, performing outlier processing on the actual water consumption data of a single water tank at the half-hour level; Step S33, based on the actual water consumption data after outlier processing, calculate the average water consumption of a single water tank every half hour from Monday to Sunday in the past month, specifically: Among them, Q ij Q is the average water consumption per half hour from Monday to Sunday in the last month for a single water tank. ijm is the actual water consumption, i represents the day of the week, i=1,2,3,...,7, j represents every half hour, j=1,2,3,...,48, m represents the number of weeks, m=1,2,3,4; Step S34, based on the average water consumption of the single water tank every half hour from Monday to Sunday in the past month, calculate the water consumption weight σ of the single water tank every half hour from Monday to Sunday in the past month ij , specifically: Among them, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, j is every half hour, Q ij =[Q i1 , Q i2 ,...,Q ij ,...,Q i48 ], Q ij is the average water consumption per half hour from Monday to Sunday in the single water tank in step S33 in the past month; Step S35, based on the water consumption weight and combined with the predicted daily water consumption of a single water tank in the next week described in step S2, obtain the predicted water consumption value q for each half hour of the next week for a single water tank ij , specifically: q ij =QF i ×σ ij Among them, QF i is the daily water consumption of a single water tank predicted in step S2 for the next week, σ ij is the water consumption weight every half hour from Monday to Sunday, σ ij =[σ i1 , σ i2 ,...,σ ij ,...,σ i48 ], i is the day of the week, i=1,2,3,4,5,6,7, and j is every half hour.

5. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 1, It is characterized in that Step S4 further includes the following steps: Step S41, extracting the predicted value of water consumption of a single water tank every half hour in the next week in step S3; Step S42, using the liquid level control algorithm to determine the water replenishment level and stop replenishment level of the single water tank, and update the water replenishment level and stop replenishment level daily, and the equipment controls the water tank liquid level according to the water replenishment level and stop replenishment level plan.

6. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 2, It is characterized in that In step S11, the determination of the high liquid point and the low liquid point includes the following steps: Step S111, determine the size of the liquid level difference ΔL, where ΔL is the difference between the highest and lowest liquid levels in the historical data of the past week. If ΔL≤0.1 meter, execute step S122; if ΔL>0.1 meter, execute step S123; Step S112: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 5min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t , if L t is equal to the highest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 >0.01 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t is equal to the lowest level among all the levels in the time interval [t-Δt, t+Δt], and ΔL 1 <=0, and ΔL 2 >0.01m, then L t Mark as low fluid point; Step S113: the liquid level value L corresponding to the liquid level time t t , let the time difference Δt = 15min, the first liquid level difference ΔL 1 =L t -L t-Δt , the second liquid level difference ΔL 2 =L t+Δt -L t , if L t Equal to the highest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 >0.03 m, and ΔL 2 <=0, then L t Marked as high liquid point; if L t Equal to the lowest level among all liquid levels in the time interval [t-Δt, t+Δt], ΔL 1 <=0, and ΔL 2 >0.03 m, then L t Mark the low fluid point.

7. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 4, It is characterized in that In step S32, the abnormal value processing is specifically as follows: Calculate the quarter quantile T for the actual water consumption data of a single water tank at the half-hour level 1 and quartile T 3 , remove those greater than T 3 +1.5×(T 3 -T 1 ) and remove those less than T 1 -1.5×(T 3 -T 1 ) outliers.

8. A method for controlling the liquid level of a secondary water supply tank based on water age as claimed in claim 5, It is characterized in that Step S42 further includes the following steps: LMIN ij =L 0 +ΔL 2 Among them, LMIN ij For the water level, LMAX ij is the stop filling level, L 0 is the lowest liquid level that the water tank can be adjusted to, L R is the highest liquid level that the water tank can adjust to, ΔL 1 is the minimum water filling height difference set for a single time, ΔL 2 is the height difference between the set minimum liquid level, the maximum liquid level and the limit liquid level, i is the day of the week, i=1,2,3,4,5,6,7, j is every half hour, and n is the different water storage time selected according to the time stage of j, high level or multiple layers.