Water quality analysis method and system, electronic equipment and medium

By constructing the water quality reference function and the current function, and using sensors to obtain the water volume and flow ratio, the problem of inaccurate judgment of the purification needs of water purifiers or water softeners in the existing technology is solved, and the user's water use experience is improved.

CN115705609BActive Publication Date: 2025-08-26NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110926050.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2025-08-26
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

The prior art cannot accurately determine whether the water purifier or water softener needs to be purified by calculating the water flow rate, resulting in poor user water use experience.

Method used

By constructing the water quality reference function and the current water quality function, the sensor is used to obtain the real-time water volume and water flow, and determine whether purification treatment is needed based on the function ratio and threshold.

Benefits of technology

It achieves a more accurate judgment of the needs of purified water, which facilitates users to replace the filter element or add salt, and improves the water use experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115705609B_ABST
    Figure CN115705609B_ABST
Patent Text Reader

Abstract

The present invention discloses a water quality analysis method and system, electronic equipment, and medium. The water quality analysis method includes constructing a water quality reference function in a pipeline when the device to be tested delivers tap water, the water quality reference function being used to characterize the relationship between the real-time water volume and the real-time water flow rate of the tap water; constructing a water quality current function in the pipeline when the device to be tested delivers purified water, the water quality current function being used to characterize the relationship between the current water volume and the current water flow rate of the purified water; the real-time water volume and the current water volume are obtained by a first sensor; the real-time water flow rate and the current water flow rate are obtained by a second sensor; and determining whether to purify the purified water based on the water quality reference function and the water quality current function. The method realizes the analysis of water quality through water flow rate and water volume, and further determines whether the purification device of the device to be tested needs to be replaced and the water needs to be purified, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of water treatment, and in particular to a water quality analysis method and system, electronic equipment and medium. Background Art

[0002] Existing water softening and water purification products mostly use the method of calculating water flow to determine whether the dishwasher water softener needs to be rinsed with resin and salted, and whether the filter cartridge of the water purifier needs to be replaced. However, the method of calculating water flow may result in inaccurate calculations, resulting in meaningless replacement of the filter cartridge in areas with good water quality, while in areas with poor water quality, the softening and purification efficiency of the water in the later stages of use will be lower than expected. Therefore, the existing technology cannot more accurately determine whether the water softener needs to be salted or the filter cartridge of the water purifier needs to be replaced by calculating water flow, which affects the purification process of softened and purified water and poor users' water experience. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to overcome the defect in the prior art that it is impossible to more accurately judge whether purified water needs to be purified by water flow, resulting in a poor water experience for users, and to provide a water quality analysis method and system, electronic equipment and medium.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] A method for analyzing water quality, comprising the following steps:

[0006] Construct a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and real-time water flow rate of tap water.

[0007] Construct a current water quality function in the pipeline when the device under test delivers purified water. The current water quality function is used to characterize the relationship between the current amount of purified water and the current water flow rate.

[0008] The real-time water volume and the current water volume are obtained by a first sensor;

[0009] The real-time water flow rate and the current water flow rate are obtained by a second sensor;

[0010] Determine whether to perform purification treatment on the purified water according to the water quality reference function and the water quality current function.

[0011] Preferably, the water quality reference function is represented by F1=f1*a1+b1, wherein F1 is the real-time water volume, f1 is the real-time water flow, and a1 and b1 are parameters of the water quality reference function;

[0012] The water quality current function is represented by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow rate, and a2 and b2 are parameters of the water quality current function;

[0013] The step of determining whether to purify the purified water according to the water quality reference function and the water quality current function specifically includes the following steps:

[0014] Determine whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

[0015] Preferably, the step of determining whether to purify the purified water according to the water quality reference function parameter and the water quality current function parameter specifically includes:

[0016] Determining whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter;

[0017] The ratio includes a first ratio and a second ratio. The first ratio is the ratio of a1 to a2, and the second ratio is the ratio of b1 to b2.

[0018] Preferably, the step of judging whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter specifically includes:

[0019] Determining whether the number of times the first ratio is continuously less than a first threshold value exceeds a second threshold value, and / or determining whether the number of times the second ratio is continuously less than a third threshold value exceeds a fourth threshold value;

[0020] If so, the purified water is purified.

[0021] Preferably, the step of judging whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter further comprises:

[0022] It is determined whether the first ratio exceeds a fifth threshold value and / or whether the second ratio exceeds a sixth threshold value. If so, the purified water is purified.

[0023] Preferably, the analysis method further comprises the following steps:

[0024] Update the actual remaining purified water volume of the device to be tested according to the current function parameter of the water quality;

[0025] It is determined whether the actual remaining purified water volume is greater than a seventh threshold value. If so, a step of determining whether to purify the purified water is performed according to the water quality reference function and the water quality current function.

[0026] Preferably, the analysis method obtains the actual remaining purified water volume by solving the following formula, including:

[0027] f5=((f4-f3)*a2+b2) / h;

[0028] Wherein f4 is the preset purified water volume, f3 is the current purified water volume, f5 is the actual remaining purified water volume, and h is the third ratio of the real-time water volume to the real-time water flow rate.

[0029] A water quality analysis system, comprising:

[0030] A construction module is used to construct a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and the real-time water flow rate of the tap water;

[0031] The construction module is also used to construct a current water quality function in the pipeline when the device to be tested transports purified water, and the current water quality function is used to characterize the relationship between the current amount of purified water and the current water flow rate;

[0032] The real-time water volume and the current water volume are obtained by a first sensor;

[0033] The real-time water flow rate and the current water flow rate are obtained by a second sensor;

[0034] The first judgment module is used to judge whether to purify the purified water according to the water quality reference function and the water quality current function.

[0035] Preferably, the water quality reference function is represented by F1=f1*a1+b1, wherein F1 is the real-time water volume, f1 is the real-time water flow, and a1 and b1 are parameters of the water quality reference function;

[0036] The water quality current function is represented by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow rate, and a2 and b2 are parameters of the water quality current function;

[0037] The first judgment module is specifically configured to judge whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

[0038] Preferably, the first judgment module is further configured to judge whether to perform purification treatment on the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter;

[0039] The ratio includes a first ratio and a second ratio. The first ratio is the ratio of a1 to a2, and the second ratio is the ratio of b1 to b2.

[0040] Preferably, the analysis system includes a processing module, and the processing module is used to purify the purified water;

[0041] The first judgment module is specifically configured to judge whether the number of times the first ratio is continuously less than a first threshold exceeds a second threshold, and / or judge whether the number of times the second ratio is continuously less than a third threshold exceeds a fourth threshold;

[0042] If so, the processing module is called.

[0043] Preferably, the first judgment module is further configured to judge whether the first ratio exceeds a fifth threshold value, and / or whether the second ratio exceeds a sixth threshold value, and if so, call the processing module.

[0044] Preferably, the analysis system further includes an updating module and a second judging module;

[0045] The updating module is used to update the actual remaining purified water volume of the device to be detected according to the current function parameter of the water quality;

[0046] The second judgment module is further configured to judge whether the actual remaining amount of purified water is greater than a seventh threshold value; if not, calling the first judgment module to execute an action of judging whether to purify the purified water.

[0047] Preferably, the updating module is used to obtain the actual remaining purified water volume by solving the following formula, including:

[0048] f5=((f4-f3)*a2+b2) / h;

[0049] Wherein f4 is the preset purified water volume, f3 is the current purified water volume, f5 is the actual remaining purified water volume, and h is the third ratio of the real-time water volume to the real-time water flow rate.

[0050] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the water quality analysis method described above is implemented.

[0051] A storage medium stores a computer program, which implements the water quality analysis method described above when executed by a processor.

[0052] The positive progress of the present invention lies in: obtaining a water quality reference function in the pipeline when the device to be tested is delivering tap water, and the water quality reference function is used to characterize the relationship between the real-time water volume and the real-time water flow rate of the tap water; obtaining a current water quality function in the pipeline when the device to be tested is delivering purified water, and the current water quality function is used to characterize the relationship between the current water volume and the current water flow rate of the purified water; and judging whether to purify the purified water based on the water quality reference function and the current water quality function. By judging the relationship between the water volume and the water flow rate, it is possible to more accurately judge whether the purified water needs to be purified, making it easier for users to replace the filter element of the device to be tested or add salt to the device to be tested, thereby improving the user's water use experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a flow chart of the water quality analysis method of Example 1 of the present invention.

[0054] Figure 2 This is a flow chart of the water quality analysis method of Example 2 of the present invention.

[0055] Figure 3 This is a flow chart of the water quality analysis method of Example 2 of the present invention.

[0056] Figure 4 This is a schematic diagram of the module structure of the water quality analysis system of Example 3 of the present invention.

[0057] Figure 5 This is a schematic structural diagram of an electronic device according to embodiment 4 of the present invention. DETAILED DESCRIPTION

[0058] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0059] Example 1

[0060] See also Figure 1 As shown, this embodiment provides a water quality analysis method, which includes the following steps:

[0061] S1. Constructing a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and the real-time water flow rate of the tap water.

[0062] S2. Constructing a current water quality function in the pipeline when the device to be tested delivers purified water. The current water quality function is used to characterize the relationship between the current amount of purified water and the current water flow rate.

[0063] S3. Determine whether to purify the purified water according to the water quality reference function and the water quality current function.

[0064] Specifically, the real-time water volume and the current water volume are obtained through the first sensor. The first sensor is a water level electrode, and the water volume of tap water or purified water is measured through the water level electrode. The real-time water flow rate and the current water flow rate are obtained through the second sensor. The second sensor is a water flow sensor. The water flow sensor is mainly composed of a copper valve body, a water flow rotor assembly, a flow stabilization assembly and a Hall element. When water flows through the rotor assembly, the magnetic rotor rotates, and the speed changes linearly with the flow rate. The Hall element outputs a corresponding pulse signal and feeds it back to the controller, which determines the size of the water flow rate and measures the water flow rate of tap water and purified water through the second sensor. It should be noted that the present application performs mathematical comparative analysis on the data obtained by different types of sensors to further obtain more accurate detection results.

[0065] It should be noted that the water quality reference function is constructed by obtaining the real-time water volume and real-time water flow values ​​of multiple tap water in the pipeline when the device to be tested delivers tap water over a period of time, and constructing the water quality reference function based on the multiple real-time water volume and real-time water flow values ​​obtained. Constructing the water quality reference function can specifically include first sampling, sampling the real-time water volume and real-time water flow values. Since the water flow velocity is fluctuating and the frequency of change is relatively high, a large number of random signals will appear in the water flow signal during the sampling process, especially at small flow rates. The random signals are more obvious, so the real-time water volume and real-time water flow values ​​must be filtered while sampling. A weighted sorting sliding window method is used to filter the real-time signal water flow and water volume, and a water quality reference function is constructed based on the filtered multiple real-time water volume and real-time water flow values. The method for constructing the current water quality function in the pipeline when the device to be tested delivers purified water can be consistent with the method for constructing the water quality reference function, which will not be repeated here.

[0066] The equipment to be tested can be a water softener or a water purifier, and the purified water can be soft water or purified water. The water quality reference function and the water quality current function can be used to determine whether the water softener needs to be added with salt or whether the water purifier needs to have its filter cartridge replaced. The purified water can be treated by adding salt to the water softener or replacing its filter cartridge.

[0067] Step S3 may include determining whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

[0068] The water quality reference function is expressed by F1=f1*a1+b1, where F1 is the real-time water volume, f1 is the real-time water flow rate, and a1 and b1 are the water quality reference function parameters;

[0069] The current water quality function is expressed by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow, and a2 and b2 are the parameters of the current water quality function;

[0070] Preferably, the water quality reference function and the water quality current function can be obtained by function fitting based on the obtained real-time values ​​of multiple water flow rates and water quantities. a1 and b1 are the water quality reference function parameters, and a2 and b2 are the water quality current function parameters, which can be calculated by the least squares method. Specifically:

[0071] (1) Since the water flow velocity is fluctuating and the frequency of change is relatively high, a large number of random signals will appear in the water flow signal during the sampling process, especially when the flow rate is small, the random signals are more obvious. The real-time signals f(t) and F(t) are filtered using a weighted sorting sliding window method. f(t) is the flow rate of tap water at a certain moment and F(t) is the amount of tap water at a certain moment. Assuming that the window value is N, all values ​​in the window are sorted first to obtain the median. The i-th real-time value after filtering is Xi = ai-N+1*Xi-N+1+ai-N+2*Xi-N+2+…ai*Xi, where the weights are given in the form of normal j distribution, and the sum of all weights is 1.

[0072] (2) For the filter window N, the current measured value Xi and the first N-1 data measured before are sorted in ascending order, and N is Xi-N+1, Xi-N+2…Xi. The median value is mainly used to determine the size of the weighted value. When the window N is 5 in the figure below, ai-(N-1) / 2 is the weighted value of the median value. According to the normal distribution density function The median value Xi-(N-1) / 2 weight ai-(N-1) / 2 is taken as the area probability of the interval u±1δ, which is 0.6826. The difference between the weights ai-N+2 and ai-(N-1) / 2+1 of Xi-N+2 and the area probability u±1δ of ai-(N-1) / 2+1 is (0.9545-0.6826) / 2=0.13595. The difference between the weights ai-N+1 and ai-3δ area probability u±2δ of Xi-N+1 and Xi is (0.9973-0.9545) / 2=0.0428. Therefore, the filtered value of this point is the i-th real-time value Xi=ai-N+1*Xi-N+1+ai-N+2*Xi-N+2+…ai*Xi.

[0073] (3) The parameters a1 and b1 of the tap water quality reference function are obtained by using the least squares method based on the real-time ratio of f(t) and F(t) during the tap water inflow process. Specifically:

[0074] The water quality reference function F1=f1*a1+b1 is obtained through function fitting.

[0075] In addition, the current water quality function F2=f2*a2+b2 is obtained by referring to the above method.

[0076] This embodiment constructs a water quality reference function when the device to be tested delivers tap water and a current water quality function when delivering purified water, and determines whether the purified water needs to be purified based on the water quality reference function and the current water quality function. By judging the relationship between the water volume and the water flow rate, it is more accurate to determine whether the purified water needs to be purified, which makes it convenient for users to replace the filter element of the device to be tested or add salt to the device to be tested, thereby improving the user's water use experience.

[0077] Example 2

[0078] See also Figure 2 、 3 As shown, this embodiment provides a water quality analysis method, which is a further improvement of Example 1. The analysis method includes the following steps:

[0079] Preferably, see Figure 2 As shown, step S3 specifically includes:

[0080] S31. Determine whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter.

[0081] The ratio includes a first ratio and a second ratio. The first ratio is the ratio of a1 to a2, and the second ratio is the ratio of b1 to b2.

[0082] As a preferred embodiment, see Figure 3 As shown, step S31 specifically includes the following steps:

[0083] S311. Determine whether the number of times the first ratio is continuously less than a first threshold exceeds a second threshold, and / or determine whether the number of times the second ratio is continuously less than a third threshold exceeds a fourth threshold;

[0084] If yes, go to step S4; if no, go to step S1.

[0085] S4. Purify the purified water.

[0086] Preferably, the first threshold, the second threshold, the third threshold, and the fourth threshold can be set according to actual needs and are not limited here.

[0087] It should be noted that the term "continuous" here does not necessarily refer to continuity within the same time interval. For example, if the device to be tested obtains the water volume and flow rate when delivering soft water, a current water quality function for soft water is constructed and the parameters of the current water quality function for soft water are compared with the parameters of a reference water quality function for tap water. The second threshold is preferably set to three, and the first ratio is less than the first threshold more than three times in a row. Three consecutive times means that soft water is used three times in a row, not during the same water inlet process, and is compared with the most recent use of tap water. If the ratio is less than the first threshold three times in a row, it indicates that the ion filtration capacity of the water softener has weakened and salt addition is required to purify the soft water. If the ratio is not less than the first threshold three times in a row, it indicates that the water softener does not need salt addition, and testing continues and awaits the next measurement result. If it is necessary to determine whether the purified water needs to be purified, the method is the same as the soft water analysis method and will not be repeated here.

[0088] As another preferred implementation, step S31 may also be implemented in the following manner, including:

[0089] Determine whether the first ratio exceeds a fifth threshold value and / or whether the second ratio exceeds a sixth threshold value. If so, execute step S4 to purify the purified water. If not, execute step S1.

[0090] In this embodiment, see Figure 3 As shown, after step S311, the analysis method of this embodiment further includes the following steps:

[0091] S5. Update the actual remaining purified water volume of the device to be detected according to the current function parameter of the water quality.

[0092] S6. Determine whether the actual remaining purified water volume is greater than a seventh threshold value. If so, execute step S311; if not, execute step S4.

[0093] As a preferred implementation, steps S5 and S6 may be executed before step S311 , and the order of the two (ie, step S311 and steps S5 and S6 ) is not limited here.

[0094] As a preferred embodiment, steps S5 and S6 can be executed before step S1. When step S6 determines that the actual remaining amount of purified water is greater than the sixth threshold, step S5 is executed. If it is determined that the actual remaining amount of purified water is less than the sixth threshold, step S1 is executed.

[0095] As a preferred embodiment, steps S5 and S6 can be executed before step S2. When step S6 determines that the actual remaining amount of purified water is greater than the sixth threshold, step S5 is executed. If it is determined that the actual remaining amount of purified water is less than the sixth threshold, step S2 is executed.

[0096] The analysis method obtains the actual remaining purified water volume by solving the following formula, including:

[0097] f5 = ((f4-f3)*a2+b2) / h; where f4 is the preset purified water volume, f3 is the current purified water volume, f5 is the actual remaining purified water volume, and h is the third ratio of the real-time water volume to the real-time water flow rate.

[0098] It should be noted that under ideal conditions, the ratio of water volume to water flow rate, h, is calibrated at the factory by the water flow sensor and remains constant within a certain error range. The pulse count setting for a water softener or purifier is measured using laboratory-standard tap water.

[0099] By determining the first and second ratios, it is possible to more accurately determine whether the purified water needs to be purified. Furthermore, based on the determination of the first and second ratios, determining the actual remaining purified water volume can further accurately determine whether the purified water needs to be treated. If the first and second ratios are less than the actual set thresholds three times in a row, it is further determined whether the actual remaining purified water volume is greater than a sixth threshold. If it is greater than the sixth threshold, it indicates that the water volume sensor has a large measurement error and further testing and determination is required. If it is less than the sixth threshold, it indicates that the purified water needs to be purified.

[0100] This embodiment makes a comprehensive judgment based on the ratio of the water quality reference function parameter to the water quality current function parameter and the actual remaining purified water volume. By combining the actual remaining purified water volume, it can avoid the situation where the analysis result is inaccurate due to excessive sensor measurement error. It can more accurately judge whether the purified water needs to be purified, facilitate users to replace the filter element of the equipment to be tested or add salt to the equipment to be tested, and improve the user's water experience.

[0101] Example 3

[0102] like Figure 4 As shown, this embodiment provides a water quality analysis system, the analysis system comprising:

[0103] Construction module 1 is used to construct a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and real-time water flow of tap water.

[0104] The construction module 1 is also used to construct a current water quality function in the pipeline when the device to be tested transports purified water. The current water quality function is used to characterize the relationship between the current water volume and current water flow of the purified water.

[0105] The first judgment module 2 is used to judge whether to purify the purified water according to the water quality reference function and the water quality current function.

[0106] Specifically, the real-time water volume and the current water volume are obtained through the first sensor. The first sensor is a water level electrode, and the water volume of tap water or purified water is measured through the water level electrode. The real-time water flow rate and the current water flow rate are obtained through the second sensor. The second sensor is a water flow sensor. The water flow sensor is mainly composed of a copper valve body, a water flow rotor assembly, a flow stabilization assembly and a Hall element. When water flows through the rotor assembly, the magnetic rotor rotates, and the speed changes linearly with the flow rate. The Hall element outputs a corresponding pulse signal and feeds it back to the controller, which determines the size of the water flow rate and measures the water flow rate of tap water and purified water through the second sensor. It should be noted that this application performs mathematical comparative analysis on the data obtained by different types of sensors to further obtain more accurate detection results.

[0107] It should be noted that the water quality reference function is constructed by obtaining the real-time water volume and real-time water flow values ​​of multiple tap water in the pipeline when the device to be tested delivers tap water over a period of time, and constructing the water quality reference function based on the multiple real-time water volume and real-time water flow values ​​obtained. The water quality reference function can be constructed specifically by first sampling the real-time water volume and real-time water flow values. Since the water flow velocity is fluctuating and the frequency of change is relatively high, a large number of random signals will appear in the water flow signal during the sampling process, especially at small flow rates. Therefore, the real-time water volume and real-time water flow values ​​must be filtered while sampling. A weighted sorting sliding window method is used to filter the real-time signal water flow and water volume, and a water quality reference function is constructed based on the filtered multiple real-time water volume and real-time water flow values. The method for constructing the current water quality function in the pipeline when the device to be tested delivers purified water can be consistent with the method for constructing the water quality reference function, which will not be repeated here.

[0108] The equipment to be tested can be a water softener or a water purifier, and the purified water can be soft water or purified water. The water quality reference function and the water quality current function can be used to determine whether the water softener needs to be added with salt and whether the water purifier needs to replace the filter element.

[0109] Preferably, the water quality reference function is represented by F1=f1*a1+b1, where F1 is the real-time water volume, f1 is the real-time water flow rate, and a1 and b1 are parameters of the water quality reference function;

[0110] The current water quality function is expressed by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow, and a2 and b2 are the parameters of the current water quality function;

[0111] Preferably, the water quality reference function and the water quality current function can be obtained by function fitting based on the obtained real-time values ​​of multiple water flow rates and water quantities. a1 and b1 are the water quality reference function parameters, and a2 and b2 are the water quality current function parameters, which can be calculated by the least squares method. Specifically:

[0112] (1) Since the water flow velocity is fluctuating and the frequency of change is relatively high, a large number of random signals will appear in the water flow signal during the sampling process, especially when the flow rate is small, the random signals are more obvious. The real-time signals f(t) and F(t) are filtered using a weighted sorting sliding window method. f(t) is the flow rate of tap water at a certain moment and F(t) is the amount of tap water at a certain moment. Assuming that the window value is N, all values ​​in the window are sorted first to obtain the median. The i-th real-time value after filtering is Xi = ai-N+1*Xi-N+1+ai-N+2*Xi-N+2+…ai*Xi, where the weights are given in the form of normal j distribution, and the sum of all weights is 1.

[0113] (2) For the filter window N, the current measured value Xi and the first N-1 data measured before are sorted in ascending order, and N is Xi-N+1, Xi-N+2…Xi. The median value is mainly used to determine the size of the weighted value. When the window N is 5 in the figure below, ai-(N-1) / 2 is the weighted value of the median value. According to the normal distribution density function The median value Xi-(N-1) / 2 weight ai-(N-1) / 2 is taken as the area probability of the interval u±1δ, which is 0.6826. The difference between the weights ai-N+2 and ai-(N-1) / 2+1 of Xi-N+2 and the area probability u±1δ of ai-(N-1) / 2+1 is (0.9545-0.6826) / 2=0.13595. The difference between the weights ai-N+1 and ai-3δ area probability u±2δ of Xi-N+1 and Xi is (0.9973-0.9545) / 2=0.0428. Therefore, the filtered value of this point is the i-th real-time value Xi=ai-N+1*Xi-N+1+ai-N+2*Xi-N+2+…ai*Xi.

[0114] (3) The parameters a1 and b1 of the tap water quality reference function are obtained by using the least squares method based on the real-time ratio of f(t) and F(t) during the tap water inflow process. Specifically: The water quality reference function F1=f1*a1+b1 is obtained through function fitting.

[0115] In addition, the current water quality function F2=f2*a2+b2 is obtained by referring to the above method.

[0116] The first judgment module 2 is used to judge whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

[0117] Preferably, the first judgment module 2 is used to judge whether to purify the purified water according to the ratio of the water quality reference function parameter and the water quality current function parameter;

[0118] The ratio includes a first ratio and a second ratio. The first ratio is the ratio of a1 to a2, and the second ratio is the ratio of b1 to b2.

[0119] The analysis system further includes a processing module 3, which is used to purify the purified water.

[0120] Specifically, the first judgment module 2 is used to determine whether the number of times the first ratio is continuously less than the first threshold exceeds the second threshold, and / or, to determine whether the number of times the second ratio is continuously less than the third threshold exceeds the fourth threshold; if so, the processing module 3 is called, if not, the construction module 1 is called.

[0121] Preferably, the first threshold, the second threshold, the third threshold, and the fourth threshold can be set according to actual needs and are not limited here.

[0122] It should be noted that the term "continuous" here does not necessarily refer to continuity within the same time interval. For example, if the device to be tested obtains the water volume and flow rate when delivering soft water, a current water quality function for soft water is constructed and the parameters of the current water quality function for soft water are compared with the parameters of a reference water quality function for tap water. The second threshold is preferably set to three, and the first ratio is less than the first threshold more than three times in a row. Three consecutive times means that soft water is used three times in a row, not during the same water inlet process, and is compared with the most recent use of tap water. If the ratio is less than the first threshold three times in a row, it indicates that the ion filtration capacity of the water softener has weakened and salt addition is required to purify the soft water. If the ratio is not less than the first threshold three times in a row, it indicates that the water softener does not need salt addition, and testing continues and awaits the next measurement result. If it is necessary to determine whether the purified water needs to be purified, the method is the same as the soft water analysis method and will not be repeated here.

[0123] The first judgment module 2 is further configured to judge whether the first ratio exceeds a fifth threshold value, and / or whether the second ratio exceeds a sixth threshold value; if so, the processing module 3 is called; if not, the construction module 1 is called.

[0124] The analysis system further includes an updating module 4 and a second judging module 5;

[0125] The updating module 4 is used to update the actual remaining purified water volume of the device to be detected according to the current function parameter of the water quality;

[0126] The second judgment module 5 is used to determine whether the actual remaining amount of purified water is greater than the seventh threshold. If so, the first judgment module 2 is called to determine whether the number of times the first ratio is continuously less than the first threshold exceeds the second threshold, and / or, whether the number of times the second ratio is continuously less than the third threshold exceeds the fourth threshold. If not, the processing module 3 is called.

[0127] It should be noted that before the first judgment module 2 executes the action of judging whether the number of times the first ratio is continuously less than the first threshold value exceeds the second threshold value, and / or judging whether the number of times the second ratio is continuously less than the third threshold value exceeds the fourth threshold value, the second judgment module 5 can be called to execute the action of judging whether the actual remaining purified water volume is greater than the seventh threshold value. If it is judged that the value of the actual remaining purified water volume is greater than the sixth threshold value, the construction module 1 is called; if the value of the actual remaining purified water volume is less than the sixth threshold value, the processing module 3 is called. There is no specific limitation on the order of execution of the first judgment module 2 and the second judgment module 5, and it can be reasonably set according to actual conditions.

[0128] As a preferred embodiment, the update module 4 and the second judgment module 5 can execute actions before the construction module 1. When the second judgment module 5 determines that the actual remaining purified water volume is greater than the sixth threshold, the construction module 1 is called; when the second judgment module 5 determines that the actual remaining purified water volume is less than the sixth threshold, the processing module 3 is called.

[0129] The updating module 4 is configured to obtain the actual remaining purified water volume by solving the following formula:

[0130] f5=((f4-f3)*a2+b2) / h;

[0131] Wherein f4 is the preset purified water volume, f3 is the current purified water volume, f5 is the actual remaining purified water volume, and h is the third ratio of the real-time water volume to the real-time water flow rate.

[0132] It should be noted that under ideal conditions, the ratio of water volume to water flow rate, h, is calibrated at the factory by the water flow sensor and remains constant within a certain error range. The pulse count setting for a water softener or purifier is measured using laboratory-standard tap water.

[0133] By determining the first and second ratios, it is possible to more accurately determine whether the purified water needs to be purified. Furthermore, based on the determination of the first and second ratios, determining the actual remaining purified water volume can further accurately determine whether the purified water needs to be treated. If the first and second ratios are less than the actual set thresholds three times in a row, it is further determined whether the actual remaining purified water volume is greater than a sixth threshold. If it is greater than the sixth threshold, it indicates that the water volume sensor has a large measurement error and further testing and determination is required. If it is less than the sixth threshold, it indicates that the purified water needs to be purified.

[0134] This embodiment makes a comprehensive judgment based on the ratio of the water quality reference function parameter to the water quality current function parameter and the actual remaining purified water volume. By combining the actual remaining purified water volume, it can avoid the situation where the analysis result is inaccurate due to excessive sensor measurement error. It can more accurately judge whether the purified water needs to be purified, facilitate users to replace the filter element of the equipment to be tested or add salt to the equipment to be tested, and improve the user's water experience.

[0135] Example 4

[0136] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Example 4 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the water quality analysis method of Example 1 or Example 2 is implemented. Figure 5 The electronic device 30 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.

[0137] The electronic device 30 may be a general-purpose computing device, such as a server device. Components of the electronic device 30 may include, but are not limited to, the at least one processor 31, the at least one memory 32, and a bus 33 connecting various system components (including the memory 32 and the processor 31).

[0138] The bus 33 includes a data bus, an address bus, and a control bus.

[0139] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .

[0140] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0141] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32 , such as the water quality analysis method of Example 1 or Example 2 of the present invention.

[0142] The electronic device 30 can also communicate with one or more external devices 34 (e.g., a keyboard, pointing device, etc.). This communication can occur via an input / output (I / O) interface 35. Furthermore, the model-generating device 30 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. As shown, the network adapter 36 communicates with other modules of the model-generating device 30 via a bus 33. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the model-generating device 30, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.

[0143] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above may be embodied in a single unit / module. Conversely, the features and functions of a single unit / module described above may be further divided and embodied by multiple units / modules.

[0144] Example 5

[0145] The present invention also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the water quality analysis method of the aforementioned embodiment 1 or embodiment 2.

[0146] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0147] In a possible embodiment, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the water quality analysis method of Example 1 or Example 2.

[0148] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on the remote device.

[0149] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.

Claims

1. A method for analyzing water quality, characterized in that: The analytical method comprises the following steps: Construct a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and real-time water flow rate of tap water. Construct a current water quality function in the pipeline when the device under test delivers purified water. The current water quality function is used to characterize the relationship between the current amount of purified water and the current water flow rate. The real-time water volume and the current water volume are obtained by a first sensor; The real-time water flow rate and the current water flow rate are obtained by a second sensor; Determining whether to purify the purified water according to the water quality reference function and the water quality current function; The water quality reference function is represented by F1=f1*a1+b1, where F1 is the real-time water volume, f1 is the real-time water flow, and a1 and b1 are water quality reference function parameters; The water quality current function is expressed by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow rate, and a2 and b2 are the parameters of the water quality current function; The step of determining whether to purify the purified water according to the water quality reference function and the water quality current function specifically includes the following steps: Determine whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

2. The water quality analysis method according to claim 1, wherein The step of judging whether to purify the purified water according to the water quality reference function parameter and the water quality current function parameter specifically includes: determining whether to perform purification treatment on the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter; The ratio includes a first ratio and a second ratio. The first ratio is the ratio of a1 to a2, and the second ratio is the ratio of b1 to b2.

3. The water quality analysis method according to claim 2, wherein: The step of judging whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter specifically includes: Determining whether the number of times the first ratio is continuously less than a first threshold value exceeds a second threshold value, and / or determining whether the number of times the second ratio is continuously less than a third threshold value exceeds a fourth threshold value; If so, the purified water is purified.

4. The water quality analysis method according to claim 2, wherein: The step of judging whether to purify the purified water according to the ratio of the water quality reference function parameter to the water quality current function parameter specifically further includes: It is determined whether the first ratio exceeds a fifth threshold value and / or whether the second ratio exceeds a sixth threshold value. If so, the purified water is purified.

5. The water quality analysis method according to claim 1, wherein: The analysis method further comprises the following steps: Update the actual remaining purified water volume of the device to be tested according to the current function parameter of the water quality; It is determined whether the actual remaining purified water volume is greater than a seventh threshold value. If so, a step of determining whether to purify the purified water is performed according to the water quality reference function and the water quality current function.

6. The method for analyzing water quality according to claim 5, wherein: The analysis method obtains the actual remaining purified water volume by solving the following formula, including: f5=((f4-f3)*a2 +b2) / h; Wherein f4 is the preset purified water volume, f3 is the current purified water volume, f5 is the actual remaining purified water volume, and h is the third ratio of the real-time water volume to the real-time water flow rate.

7. A water quality analysis system, characterized in that: The analysis system comprises: A construction module is used to construct a water quality reference function in the pipeline when the device to be tested delivers tap water. The water quality reference function is used to characterize the relationship between the real-time water volume and the real-time water flow rate of the tap water; The construction module is also used to construct a current water quality function in the pipeline when the device to be tested transports purified water, and the current water quality function is used to characterize the relationship between the current amount of purified water and the current water flow rate; The real-time water volume and the current water volume are obtained by a first sensor; The real-time water flow rate and the current water flow rate are obtained by a second sensor; a first judgment module, configured to judge whether to purify the purified water according to the water quality reference function and the water quality current function; The water quality reference function is represented by F1=f1*a1+b1, where F1 is the real-time water volume, f1 is the real-time water flow, and a1 and b1 are water quality reference function parameters; The water quality current function is expressed by F2=f2*a2+b2, where F2 is the current water volume, f2 is the current water flow rate, and a2 and b2 are the parameters of the water quality current function; The first judgment module is specifically configured to judge whether to perform purification treatment on the purified water according to the water quality reference function parameter and the water quality current function parameter.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the water quality analysis method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the water quality analysis method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Water quality real-time monitoring method and device and readable storage medium

    CN112926253A

  • Method for predicting replacement time of household water purifier based on linear regression algorithm

    CN112978959A