Water leakage detection method and device, water purifier, readable storage medium and program product

By acquiring historical water usage data from water purifiers to establish a dynamic benchmark model and comparing it with real-time water usage data, the problem of inaccurate water purifier leakage detection has been solved, achieving higher detection accuracy.

CN121783465APending Publication Date: 2026-04-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing methods for detecting leaks in water purifiers are prone to misjudgment or omission in complex water usage scenarios, leading to inaccurate detection.

Method used

By acquiring historical water usage data for the target water usage area, normal water usage parameters for any future water usage period are determined, and real-time water usage data is compared with these parameters to identify whether a leak has occurred.

Benefits of technology

It improves the accuracy of leak detection, can adapt to complex and ever-changing water usage scenarios, and reduces false alarms and missed alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121783465A_ABST
    Figure CN121783465A_ABST
Patent Text Reader

Abstract

The invention relates to a water leakage detection method and device, a water purifier, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring historical water consumption data of a target water consumption area; determining normal water consumption parameters of the target water consumption area in any water consumption time period in the future according to the historical water consumption data; wherein the normal water consumption parameter is used for representing the water consumption condition of the target water consumption area when water leakage does not occur; acquiring real-time water consumption data of the target water consumption area; and detecting whether water leakage occurs or not according to the water consumption time period of the real-time water consumption data and the normal water consumption parameters corresponding to the water consumption time period. Through the technical scheme provided by the invention, the normal water consumption parameters for water leakage detection are combined with the historical water consumption data to determine and reflect the actual water consumption condition, the defects that a traditional detection scheme depends on a fixed threshold value and is difficult to adapt to complex and changeable water consumption scenes are overcome, and the accuracy of water leakage detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home appliance technology, and in particular to a leak detection method, device, water purifier, computer-readable storage medium, and computer program product. Background Technology

[0002] Currently, water purifiers pose a risk of leakage during use due to pipe ruptures, loose connections, or other reasons. Traditional leak detection methods typically rely on simple threshold judgments (e.g., continuous water flow exceeding a certain fixed duration) or signals from a single sensor. These methods are prone to misjudgment or missed detection in complex water usage scenarios, resulting in inaccurate leak detection. Summary of the Invention

[0003] Therefore, it is necessary to provide a leak detection method, device, water purifier, computer-readable storage medium, and computer program product to address the aforementioned technical problems and improve the accuracy of leak detection.

[0004] Firstly, this application provides a method for detecting water leakage, including:

[0005] Obtain historical water usage data for the target water usage area;

[0006] Based on the historical water usage data, the normal water usage parameters for the target water usage area in any future water usage period are determined; wherein, the normal water usage parameters are used to characterize the water usage of the target water usage area when no leakage occurs;

[0007] Obtain real-time water usage data for the target water-using area;

[0008] Based on the water usage time period in which the real-time water usage data is located, and the normal water usage parameters corresponding to the water usage time period, a leak is detected.

[0009] In one embodiment, the historical water usage data includes historical water usage for multiple historical water usage periods, and the normal water usage parameters include a normal water usage volatility threshold. Determining the normal water usage parameters for the target water usage area in any future water usage period based on the historical water usage data includes:

[0010] The historical water consumption fluctuation rate for each of the historical water consumption periods is determined based on the historical water consumption for each of the historical water consumption periods.

[0011] The normal water consumption fluctuation threshold is determined based on the historical water consumption fluctuation rate for each of the historical water consumption periods.

[0012] In one embodiment, determining the historical water consumption fluctuation rate for each of the historical water consumption periods based on the historical water consumption for each of the historical water consumption periods includes:

[0013] Based on the historical water consumption for each historical water consumption period, determine the mean and standard deviation of historical water consumption for each historical water consumption period.

[0014] The ratio of the historical water consumption standard deviation to the historical water consumption mean is used as the historical water consumption volatility for the historical water consumption period.

[0015] In one embodiment, determining the normal water consumption fluctuation threshold based on the historical water consumption fluctuation rate for each of the historical water consumption periods includes:

[0016] Calculate the mean volatility and standard deviation of volatility based on the historical water consumption volatility for each of the aforementioned historical water consumption periods.

[0017] The product between the standard deviation of volatility and a preset adjustment coefficient is determined, and the sum of the product and the mean volatility is used as the normal water use volatility threshold.

[0018] In one embodiment, the real-time water usage data includes real-time water consumption, and the step of detecting whether a leak has occurred based on the water usage period in which the real-time water usage data is located and the normal water usage parameters corresponding to the water usage period includes:

[0019] Based on the historical water usage data, the peak water usage periods for the target water area are determined;

[0020] Determine whether the time period in which the real-time water usage data is located is the peak water usage period;

[0021] The real-time water consumption fluctuation rate for the water consumption period is determined based on the real-time water consumption during the water consumption period.

[0022] Leakage is detected when the real-time water consumption fluctuation rate is greater than or equal to the normal water consumption fluctuation rate threshold corresponding to the water consumption period, and the water consumption period is not the peak water consumption period.

[0023] In one embodiment, determining the peak water usage period for the target water area based on the historical water usage data includes:

[0024] The average historical water consumption for each of the historical water consumption periods is determined based on the historical water consumption for each of the historical water consumption periods.

[0025] The historical water consumption period in which the average historical water consumption is greater than a preset water consumption threshold is defined as the peak water consumption period.

[0026] In one embodiment, the method further includes:

[0027] In the event of a detected leak, a control signal is generated; wherein the control signal is used to control the valve assembly to cut off the water supply pipeline of the target water area, thereby stopping the water supply to the target water area.

[0028] Secondly, this application also provides a leakage detection device, comprising:

[0029] The first acquisition module is used to acquire historical water use data for the target water use area;

[0030] The determination module is used to determine the normal water use parameters of the target water use area in any future water use period based on the historical water use data; wherein, the normal water use parameters are used to characterize the water use of the target water use area when no leakage occurs;

[0031] The second acquisition module is used to acquire real-time water usage data of the target water usage area;

[0032] The detection module is used to detect whether a leak has occurred based on the water usage period in which the real-time water usage data is located and the normal water usage parameters corresponding to the water usage period.

[0033] Thirdly, this application also provides a water purifier, which is supplied with water by a water supply pipeline. The water purifier includes a valve assembly, a detection assembly, and a control assembly. The valve assembly and the detection assembly are both connected to the control assembly. The valve assembly and the detection assembly are both disposed on the water supply pipeline. The valve assembly is used to control the on / off state of the water supply pipeline, and the detection assembly is used to collect water usage data on the water supply pipeline.

[0034] The control component includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the first aspects above.

[0035] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects above.

[0036] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects above.

[0037] The aforementioned leak detection methods, devices, water purifiers, computer-readable storage media, and computer program products, by acquiring historical water usage data of the target water area and determining normal water usage parameters for future water usage periods based on this historical data, can establish a dynamic benchmark model that conforms to actual water usage habits and trends. During real-time detection, real-time water usage data is compared with the normal water usage parameters for the corresponding time period, thereby achieving intelligent identification and judgment of leaks. The technical solution provided in this application, which combines normal water usage parameters for leak detection with historical water usage data, reflects actual water usage conditions, overcoming the shortcomings of traditional detection schemes that rely on fixed thresholds and are difficult to adapt to complex and changing water usage scenarios, thus improving the accuracy of leak detection. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart illustrating a water leakage detection method in one embodiment;

[0040] Figure 2 This is a flowchart illustrating a leakage detection method in another embodiment;

[0041] Figure 3 This is a flowchart illustrating a leakage detection method in yet another embodiment;

[0042] Figure 4 This is a flowchart illustrating a leakage detection method in yet another embodiment;

[0043] Figure 5 This is a schematic diagram of the structure of a leakage detection device in one embodiment;

[0044] Figure 6 This is a schematic diagram of the structure of a water purifier in one embodiment. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0046] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0047] The leakage detection method provided in this application can be applied to various water-using devices, including water purifiers, water heaters, water purifiers, ice makers, etc., but is not limited to these. In some embodiments, the method is applied to a water purifier, and it can be implemented on the control component of the water purifier. As an example, the control component of the water purifier can be the control circuit board of the water purifier.

[0048] In one exemplary embodiment, such as Figure 1 As shown, a water leakage detection method is provided. Taking the application of this method to the control component of a water purifier as an example, the method includes the following steps S110 to S140.

[0049] S110: Obtain historical water usage data for the target water usage area.

[0050] Specifically, the control component acquires historical water usage data for a target water usage area. The target water usage area refers to the currently monitored water-using equipment or pipeline, such as a household's overall water supply network or a branch pipeline connected to a specific water-using device. Historical water usage data can be collected in various ways. As an example, the control component connects to a detection component, which collects historical water usage data. The detection component can specifically be a smart water meter.

[0051] The detection component collects water usage data in real time, and this data is transmitted to the control component for storage. Historical water usage data refers to water usage over a past period, such as a week, a month, or a year. In some embodiments, water usage data can be water consumption, water flow rate, average water consumption, average water consumption duration, etc., and historical water usage data includes historical water consumption, historical water flow rate, historical average water consumption, historical average water consumption duration, etc.

[0052] S120: Based on historical water usage data, determine the normal water usage parameters for the target water usage area during any future water usage period.

[0053] Among them, the normal water use parameter is used to characterize the water use situation of the target water use area when no leakage occurs.

[0054] Specifically, after acquiring historical water usage data, the control component determines the normal water usage parameters for any future water usage period based on the historical water usage data.

[0055] Water usage periods are a way of dividing time. They can be set according to actual needs, such as dividing a day into 24 one-hour water usage periods or 48 half-hour water usage periods. They can also be divided into irregular periods such as morning, daytime, evening and nighttime according to the user's lifestyle.

[0056] Normal water usage parameters are core indicators or a set of indicators used to quantitatively characterize the normal water usage of a target water-using area during a specific water usage period when no leakage occurs. It's important to understand that normal water usage parameters are not fixed absolute values, but rather a benchmark reference dynamically generated based on historical water usage data. As an example, normal water usage parameters can be the normal water consumption range for a specific water usage period, a normal water usage rate threshold, or a normal water usage volatility threshold reflecting water usage stability.

[0057] Understandably, the control component determines the normal water usage parameters for the target water usage area at any given time period in the future, based on historical water usage data. Any given time period in the future refers to any water usage period after the time point at which the control component determines the normal water usage parameters. For example, if the control component determines the normal water usage parameters at 0:00 every Monday, then any given time period in the future would be any water usage period that follows that week, such as the water usage period from 0:00 to 1:00, or the water usage period from 3:00 to 4:00 on Tuesday.

[0058] In some feasible embodiments, to ensure the accuracy of predicting normal water usage parameters and to facilitate data processing, the control component determines the normal water usage parameters for the target water usage area during future preset prediction time periods based on historical water usage data. Similar to the example above, the control component determines the normal water usage parameters at 0:00 every Monday. The preset prediction time period is set to one week, so the control component determines the normal water usage parameters for that week. For the remaining water usage periods after that week, the normal water usage parameters are not determined but are recalculated after the end of that week.

[0059] As an example, the control component includes a normal water usage parameter determination model. This model generates normal water usage parameters for the same water usage period as the historical data collection time, based on the input historical water usage data. After acquiring the historical water usage data, the control component processes the data using the normal water usage parameter determination model to obtain the normal water usage parameters. For instance, if historical water usage data collected between 1:00 AM and 2:00 AM on Monday is input into the normal water usage parameter determination model, the model can output normal water usage parameters for Tuesday, Wednesday, ..., Friday from 1:00 AM to 2:00 AM.

[0060] S130: Obtain real-time water usage data for the target water usage area.

[0061] Specifically, the control component acquires real-time water usage data for the target water usage area, and this real-time water usage data is also collected by the detection component. The type of real-time water usage data is consistent with the type of historical water usage data, and is determined based on the type of water usage data. For example, water usage data can be water consumption, water flow rate, average water consumption, average water usage duration, etc., while real-time water usage data includes historical water consumption, real-time water flow rate, real-time average water consumption, real-time average water usage duration, etc.

[0062] As an example, to facilitate subsequent data processing and segmentation, the detection component labels the water usage data based on the collection time node. Therefore, based on this labeling of collection time nodes, historical water usage data and real-time water usage data are also labeled with collection time nodes, thus allowing the collection time or water usage period of historical and real-time water usage data to be determined.

[0063] S140: Detect whether a leak has occurred based on the real-time water usage data and the corresponding normal water usage parameters.

[0064] Specifically, for any future water usage period, the control component determines the normal water usage parameters for that period. When that water usage period arrives, the control component obtains the real-time water usage data for that period through the detection component. Based on the water usage period in which the real-time water usage data is located and the corresponding normal water usage parameters, the control component performs leak detection to determine whether a leak has occurred.

[0065] Understandably, the normal water usage parameters for a given period are actually a baseline determined based on historical water usage data. By comparing real-time water usage data with these normal parameters, the degree of deviation between the real-time data and normal conditions can be determined, thereby enabling leak detection. For example, if the real-time water usage data significantly and continuously deviates from the range defined by the normal water usage parameters for that period, the control component can determine that a leak is suspected.

[0066] In this embodiment, by acquiring historical water usage data of the target water usage area and determining normal water usage parameters for future water usage periods based on this historical data, a dynamic benchmark model that conforms to actual water usage habits and trends can be established. During real-time detection, real-time water usage data is compared with the normal water usage parameters for the corresponding time period, thereby achieving intelligent identification and judgment of leakage. The technical solution provided in this application, which combines normal water usage parameters for leakage detection with historical water usage data, reflects the actual water usage situation and overcomes the shortcomings of traditional detection schemes that rely on fixed thresholds and are difficult to adapt to complex and changing water usage scenarios, thus improving the accuracy of leakage detection.

[0067] In some feasible embodiments, historical water usage data includes historical water usage over multiple historical water usage periods, and normal water usage parameters include a normal water usage volatility threshold. (Refer to...) Figure 2 S120 includes the following S210 to S220.

[0068] S210: Determine the historical water consumption fluctuation rate for each historical water consumption period based on the historical water consumption for each historical water consumption period.

[0069] S220: Determine the normal water consumption fluctuation threshold based on the historical water consumption fluctuation rate for each historical water consumption period.

[0070] Specifically, historical water consumption data includes historical water consumption over multiple historical water consumption periods. Based on these historical water consumption figures, the control component determines the historical water consumption volatility for each historical water consumption period. Historical water consumption volatility characterizes the fluctuations in historical water consumption over various historical water consumption periods and is a relative indicator measuring the degree of data dispersion. As an example, historical water consumption volatility can take the form of a coefficient of variation, a coefficient of variance, or other coefficients that can standardize the amplitude or nature of the fluctuations.

[0071] After identifying multiple historical water usage fluctuation rates, the control component determines corresponding normal water usage parameters based on these fluctuations. These normal water usage parameters include a normal water usage fluctuation rate threshold. This threshold represents a reasonable upper limit for water consumption fluctuations around its typical value during a water usage period, assuming no leaks.

[0072] In some embodiments, when determining the normal water consumption fluctuation threshold for a specific future water consumption period, historical water consumption data from historical water consumption periods with the same time attributes as the specific future water consumption period are used. The same time attributes refer to the same time classification method, such as the same day of the week, the same type of holiday, etc. As an example, to determine the normal water consumption fluctuation threshold for Tuesdays from 1:00 AM to 2:00 AM, historical water consumption fluctuations are calculated based on historical water consumption data from the first Tuesday of the previous week, the second Tuesday of the previous week, ..., the nth Tuesday of the previous week from 1:00 AM to 2:00 AM, and then the normal water consumption fluctuation threshold is obtained based on multiple historical water consumption fluctuations. In this case, historical water consumption fluctuations can more accurately describe the water consumption pattern from Tuesdays from 1:00 AM to 2:00 AM, thereby determining an accurate normal water consumption fluctuation threshold. Of course, the selection method for historical water consumption data is not limited to this; historical water consumption data from the same time period on all dates within the most recent n days can also be selected comprehensively, or a cluster of historical time periods with similar water consumption patterns can be identified and selected for analysis using a machine learning model.

[0073] In this embodiment, after determining the historical water usage fluctuation rate for each historical water usage period, the control component synthesizes all historical water usage fluctuation rates and uses statistical analysis to set a universally applicable or time-specific normal water usage fluctuation rate threshold. At this point, the normal water usage fluctuation rate threshold combines the actual water usage situation of the target water usage area in the current scenario, characterizing the normal fluctuation characteristics of water usage during water usage periods without leakage. It is a parameter value reflecting the overall water usage pattern. It is understandable that if a leak occurs in the target water usage area, its typical water usage pattern will be disrupted. Therefore, using the normal water usage fluctuation rate threshold as a normal water usage parameter for leak detection can effectively filter out fluctuations in overall water usage caused by factors such as seasons, holidays, or temporary changes in household population. This allows for more sensitive detection of abnormal situations where water usage patterns are disrupted, laying a more reliable foundation for subsequent accurate identification of whether a leak has occurred.

[0074] In some feasible embodiments, S210 includes the following steps.

[0075] Based on the historical water consumption for each historical water consumption period, the mean and standard deviation of historical water consumption for each historical water consumption period are determined; the ratio of the standard deviation of historical water consumption to the mean of historical water consumption is used as the historical water consumption volatility for each historical water consumption period.

[0076] Specifically, when determining the historical water consumption fluctuation rate for each historical water consumption period, the control component determines the historical water consumption mean and standard deviation for multiple historical water consumption periods based on the historical water consumption for each historical water consumption period. In some embodiments, the multiple historical water consumption periods have the same time attribute. The historical water consumption mean represents the typical water consumption level for that historical water consumption period, and its calculation method is not limited to the arithmetic mean; it can also use the geometric mean or trimmed mean, depending on the characteristics of the data distribution. The historical water consumption standard deviation is used to quantify the absolute magnitude of water consumption fluctuation around the historical water consumption mean.

[0077] After determining the standard deviation and mean of historical water consumption, the ratio between the standard deviation and the mean is calculated to determine the historical water consumption volatility for the historical water consumption period. The standard deviation of historical water consumption is denoted as σ0, and the mean of historical water consumption is denoted as μ0. Therefore, the historical water consumption volatility is expressed as CV = (σ0 / μ0) × 100%.

[0078] In this embodiment, the method for determining historical water consumption volatility eliminates the impact of different baseline water consumption levels across different historical water consumption periods. For example, the average water consumption during the evening peak hours is high, and its standard deviation is naturally likely to be large; while the average water consumption during the nighttime hours is low, and its standard deviation is also small. Directly comparing the standard deviations would not provide a fair comparison. However, using the ratio of historical water consumption standard deviation to historical water consumption average to determine historical water consumption volatility places historical water consumption periods at different levels on the same scale, measuring the relative stability of their water consumption patterns, and thus providing a unified data foundation for subsequent calculations. Of course, in other embodiments, historical water consumption volatility can also be expressed as the ratio of historical water consumption average to historical water consumption standard deviation, or other measures that can standardize the amplitude of volatility. The core is to achieve comparability of volatility across historical water consumption periods.

[0079] In some feasible embodiments, S220 includes the following steps.

[0080] Based on the historical water consumption volatility of each historical water consumption period, calculate the mean volatility and standard deviation of volatility; determine the product between the standard deviation of volatility and the preset adjustment coefficient, and use the sum of the product and the mean volatility as the normal water consumption volatility threshold.

[0081] Specifically, after determining the historical water consumption volatility for multiple historical water use periods, the control component processes these historical water consumption volatility values ​​to calculate the mean and standard deviation of the volatility. The mean volatility reflects the average volatility level of the overall water use pattern in the target water use area, while the standard deviation of the volatility reflects the degree of difference between the historical water consumption volatility values ​​of different historical water use periods.

[0082] After determining the mean volatility and standard deviation of volatility, the control component calculates the product of the standard deviation of volatility and a preset adjustment factor, and uses the sum of this product and the mean volatility as the normal water use volatility threshold. The mean volatility is denoted as μ1, the standard deviation of volatility as σ1, and the adjustment factor as k. Therefore, the normal water use volatility threshold is expressed as M = μ1 + kσ1. As an example, k can be configured by those skilled in the art; for example, k can be 2 or 3.

[0083] It is understandable that the method for determining the normal water usage volatility threshold mentioned above is actually based on constructing a confidence interval using the standard deviation and mean of volatility (for example, when k is 2, the confidence interval is [μ1-kσ1, μ1+kσ]), and the normal water usage volatility threshold is the upper boundary of this confidence interval. When the real-time water usage data is within this confidence interval, it indicates that the actual water usage during the current water usage period is not significantly different from the typical value, while when the water usage data is outside the confidence interval, it indicates that the actual water usage during the current water usage period differs significantly from the typical value.

[0084] In this embodiment, a normal water usage volatility threshold is set based on the mean volatility and the standard deviation of volatility, so that the set normal water usage volatility threshold is neither too lenient nor too strict, avoiding underreporting of water leakage due to being too lenient, and avoiding false reporting of water leakage due to being too strict.

[0085] In some feasible embodiments, real-time water usage data includes real-time water consumption. (See reference...) Figure 3 S140 specifically includes the following S310 to S340.

[0086] S310: Determine the peak water usage period for the target water area based on historical water usage data.

[0087] S320: Determine whether the real-time water usage data falls within a peak water usage period.

[0088] S330: Determine the real-time water consumption fluctuation rate for each water consumption period based on the real-time water consumption during that period.

[0089] S340: Leakage is detected when the real-time water consumption fluctuation rate is greater than or equal to the normal water consumption fluctuation rate threshold corresponding to the water consumption period, and the water consumption period is not a peak water consumption period.

[0090] Specifically, after determining the normal water consumption fluctuation threshold for a future water consumption period, the control component collects real-time water consumption data for that period through the detection component when the time arrives. This real-time data includes real-time water consumption volume, and the control component determines the real-time water consumption fluctuation rate for the current water consumption period based on this volume. The control component also determines peak water consumption periods for the target water consumption area based on historical water consumption data. Peak water consumption periods refer to one or more time intervals within the target water consumption area where water consumption is relatively concentrated and significantly higher than other water consumption periods. If the real-time water consumption fluctuation rate is greater than or equal to the normal water consumption fluctuation threshold for the current water consumption period, and the current water consumption period is not a peak water consumption period, the control component determines that a leak has occurred during the current water consumption period.

[0091] As an example, the control component can determine the real-time water consumption volatility based on methods that identify similarities in historical water consumption volatility. For instance, the control component calculates the real-time water consumption standard deviation and the real-time water consumption mean at multiple recent time points within the water consumption period, and then uses the ratio of the real-time water consumption standard deviation to the real-time water consumption mean as the real-time water consumption volatility.

[0092] In some embodiments, the control component determines the peak water usage periods for the target water area based on the historical average water consumption. For example, the control component calculates the historical average water consumption based on historical water consumption and determines the historical water usage periods where the historical average water consumption is greater than a preset water consumption threshold as peak water usage periods. As an example, the water consumption threshold can be determined by those skilled in the art based on the overall water consumption of the target water area.

[0093] In some embodiments, the water consumption threshold can also be determined from historical water consumption. For example, the control component calculates the global historical water consumption average based on all historical water consumption and uses the global historical water consumption average as the water consumption threshold.

[0094] In this embodiment, a joint judgment is made based on the identification of peak water usage periods and the comparison between real-time water usage fluctuation rate and normal water usage fluctuation rate threshold to determine whether a leak has occurred. It is understood that normal water usage during peak water usage periods (such as morning and evening washing and cooking times) can be large and fluctuate significantly, and its real-time water usage fluctuation rate may reach or even exceed the normal water usage fluctuation rate threshold calculated based on global data. By adding the necessary condition of off-peak water usage periods, the control component can effectively exempt such reasonable fluctuations caused by normal life rhythms, thereby focusing detection resources more on abnormal fluctuations that occur during periods of low expected water usage (such as late at night or weekday daytime). This greatly reduces the false alarm rate and improves the accuracy of leak detection.

[0095] In some feasible embodiments, refer to Figure 4The method further includes the following step S410.

[0096] S410: Generates a control signal when a leak is detected.

[0097] The control signal is used to control the valve assembly to cut off the water supply pipeline of the target water area, thereby stopping the water supply to the target water area.

[0098] Specifically, the target water-using area is supplied with water by a water supply pipeline. A valve assembly is installed on the water supply pipeline, and the valve assembly is connected to a control component. The valve assembly is controlled by the control component to change its on / off state, thereby connecting or disconnecting the water supply pipeline and controlling whether the water supply pipeline supplies water to the target water-using area. In this embodiment, when the control component detects a leak, it generates a control signal, which is sent to the valve assembly to control it. The control signal is used to control the valve assembly to cut off the water supply pipeline to the target water-using area, thus stopping the water supply to the target water-using area.

[0099] The technical solutions provided in this application will be described in detail in conjunction with the above embodiments and considering an optional example.

[0100] Suppose a water purifier is installed in a household, and this water purifier implements the leakage detection method described in the above embodiments of this application. A smart water meter (as a detection component) and a solenoid valve assembly (as a valve assembly) controlled by a control component are installed on the water supply pipe of the water purifier. The smart water meter communicates with the control component and continuously reports water usage data. The control component stores the household's historical water usage over the past 30 days, recorded hourly, for example, with 24 water usage periods per day (00:00-01:00, 01:00-02:00, ..., 23:00-24:00).

[0101] The control component acquires historical water usage data for the past 30 days. To establish a dynamic baseline for future leak detection, the control component needs to determine normal water usage parameters for each future water usage period. In this example, this normal water usage parameter is specifically represented by the normal water usage volatility threshold. The process for determining the normal water usage volatility threshold is as follows: The control component first calculates the historical water usage volatility for each historically identical water usage period (e.g., the period from 01:00 to 02:00 on all dates). Specifically, the control component extracts the water usage from 01:00 to 02:00 each day over the past 30 days, forming a sample set containing 30 data points. Next, it calculates the arithmetic mean of this sample set (i.e., the historical water usage mean μ0) and the sample standard deviation (i.e., the historical water usage standard deviation σ0). Then, it divides the sample standard deviation by the arithmetic mean to obtain the historical water usage volatility (CV) for the 01:00 to 02:00 period, which is (σ0 / μ0) × 100%. This historical water consumption volatility quantifies the relative fluctuation in the household's water consumption between 1:00 AM and 2:00 AM. The control unit performs the same calculation for all 24 time periods of the day, resulting in 24 historical water consumption volatility rates.

[0102] The control component determines a normal water usage volatility threshold for leak detection based on these 24 historical water usage volatility values. The mean (mean volatility μ1) and standard deviation (standard deviation volatility σ1) of these 24 volatility values ​​are calculated, and the corresponding normal water usage volatility threshold M is calculated: M = μ1 + kσ1. Assuming the calculated μ1 = 10% (mean volatility 10%), σ1 = 3%, and k = 2, then the normal water usage volatility threshold M = 10% + 2 × 3% = 16%.

[0103] Meanwhile, the control component automatically identifies peak water usage periods based on historical water consumption data. It calculates the average water consumption for each time period (e.g., 01:00-02:00, 02:00-03:00, etc.) over the past 30 days. If calculations reveal that the average water consumption during 19:00-20:00 and 20:00-21:00 is significantly higher than other time periods and exceeds a preset water consumption threshold (e.g., 1.5 times the average daily hourly water consumption), the control component marks these two time periods as peak water usage periods.

[0104] After the dynamic baseline is established, the control component enters the real-time monitoring phase. One day, at 02:05 AM during off-peak water usage, the smart water meter reports real-time water usage data. The control component acquires the current water usage period of 02:00-03:00 and reads the recent (e.g., the past few minutes) instantaneous flow rate or short-term cumulative water volume within this period. Based on this real-time water usage, the control component quickly calculates the real-time water usage volatility for the current 02:00-03:00 period. The calculation method is similar to that of historical water usage volatility, but with a shorter data time window. Assuming that due to slow leakage in the water supply pipeline, the absolute value of water usage during this period is small, but it exhibits irregular, intermittent, and minute water flows, the calculated real-time volatility reaches 25%.

[0105] The control component executes the leakage detection logic as follows: First, it determines whether the current water usage period (02:00-03:00) is a peak water usage period. Second, it determines whether the current real-time water usage fluctuation rate is greater than or equal to the normal water usage fluctuation rate threshold for that water usage period. Since both conditions—off-peak water usage period and real-time water usage fluctuation rate exceeding the normal water usage fluctuation threshold—are met simultaneously, the control component ultimately detects a leakage.

[0106] At this time, the control component generates a control signal and sends it to the valve component to cut off the water supply to the water purifier and prevent further water leakage.

[0107] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0108] Based on the same inventive concept, this application also provides a leak detection device for implementing the leak detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more leak detection device embodiments provided below can be found in the limitations of the leak detection method described above, and will not be repeated here.

[0109] In one exemplary embodiment, such as Figure 5 As shown, a leak detection device is provided, including: a first acquisition module 501, a determination module 502, a second acquisition module 503, and a detection module 504, wherein:

[0110] The first acquisition module 501 is used to acquire historical water use data of the target water use area;

[0111] The determination module 502 is used to determine the normal water use parameters of the target water use area in any future water use period based on historical water use data; wherein, the normal water use parameters are used to characterize the water use of the target water use area when no leakage occurs;

[0112] The second acquisition module 503 is used to acquire real-time water usage data of the target water usage area;

[0113] The detection module 504 is used to detect whether a leak has occurred based on the water usage period of the real-time water usage data and the normal water usage parameters corresponding to the water usage period.

[0114] In some embodiments, historical water usage data includes historical water usage for multiple historical water usage periods, and normal water usage parameters include a normal water usage fluctuation rate threshold. The determination module 502 is further configured to:

[0115] Based on the historical water consumption of each historical water consumption period, the historical water consumption fluctuation rate for each historical water consumption period is determined; based on the historical water consumption fluctuation rate for each historical water consumption period, the normal water consumption fluctuation rate threshold is determined.

[0116] In some embodiments, the determining module 502 is further configured to:

[0117] Based on the historical water consumption for each historical water consumption period, the mean and standard deviation of historical water consumption for each historical water consumption period are determined; the ratio of the standard deviation of historical water consumption to the mean of historical water consumption is used as the historical water consumption volatility for each historical water consumption period.

[0118] In some embodiments, the determining module 502 is further configured to:

[0119] Based on the historical water consumption volatility of each historical water consumption period, calculate the mean volatility and standard deviation of volatility; determine the product between the standard deviation of volatility and the preset adjustment coefficient, and use the sum of the product and the mean volatility as the normal water consumption volatility threshold.

[0120] In some embodiments, real-time water usage data includes real-time water consumption, and the detection module 504 is further configured to:

[0121] Based on historical water usage data, determine the peak water usage period for the target water usage area; determine whether the water usage period in which the real-time water usage data is located is a peak water usage period; determine the real-time water usage fluctuation rate of the water usage period based on the real-time water usage; and detect water leakage if the real-time water usage fluctuation rate is greater than or equal to the normal water usage fluctuation rate threshold corresponding to the water usage period, and the water usage period is not a peak water usage period.

[0122] In some embodiments, the detection module 504 is further configured to:

[0123] Based on the historical water consumption of each historical water consumption period, the average historical water consumption for each historical water consumption period is determined; the historical water consumption period in which the average historical water consumption is greater than the preset water consumption threshold is determined as the peak water consumption period.

[0124] In some embodiments, the device further includes:

[0125] The generation module is used to generate a control signal when a leak is detected; the control signal is used to control the valve assembly to cut off the water supply pipeline of the target water area to stop the water supply to the target water area.

[0126] Each module in the aforementioned leak detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0127] In one exemplary embodiment, a water purifier is provided, referring to... Figure 6 The water purifier is supplied with water by a water supply pipeline. The water purifier includes a valve assembly 601, a detection assembly 602, and a control assembly 603. Both the valve assembly 601 and the detection assembly 602 are connected to the control assembly 603. Both the valve assembly 601 and the detection assembly 602 are installed on the water supply pipeline. The valve assembly 601 is used to control the on / off state of the water supply pipeline, and the detection assembly 602 is used to collect water usage data on the water supply pipeline. The control assembly 603 includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0128] Specifically, the water purifier is supplied with water through a water supply pipeline. Valve assembly 601 and detection assembly 602 are both located on the water supply pipeline, while control assembly 603 is located within the water purifier. Valve assembly 601 and detection assembly 602 are both connected to control assembly 603. Tap water from an external water source passes sequentially through detection assembly 602 and valve assembly 601 before entering the water tank of the water purifier. The water purifier processes the water in the tank and then outputs purified water to the user.

[0129] As an example, valve assembly 601 may specifically be a solenoid valve or a solenoid valve group, detection assembly 602 may specifically be a smart water meter, and control assembly 603 may specifically be the control motherboard of a water purifier.

[0130] In some feasible embodiments, the valve assembly 601 and the detection assembly 602 can be connected to the control assembly 603 via a wired or wireless connection. As an example, wireless connection methods include, but are not limited to, NFC near-field communication, Bluetooth, and Wi-Fi.

[0131] In some feasible embodiments, to ensure the reliability of the control component 603, a nano-waterproof coating is applied to the control component 603 so that the control component 603 can work stably in a relatively humid environment.

[0132] In some feasible embodiments, reference continues to be made to Figure 6 The valve assembly 601 includes a first solenoid valve 604, a second solenoid valve 605, and a three-way switching valve 606. The first end of the three-way switching valve 606 is connected to the water supply pipeline, the second end of the three-way switching valve 606 is connected to the first end of the first solenoid valve 604, and the third end of the three-way switching valve 606 is connected to the first end of the second solenoid valve 605. The second ends of the first solenoid valve 604 and the second ends of the second solenoid valve 605 are both connected to the water purifier.

[0133] Specifically, valve assembly 601 includes a first solenoid valve 604, a second solenoid valve 605, and a three-way switching valve 606. All three valves are connected to and controlled by control assembly 603. Under the control of control assembly 603, the three-way switching valve 606 can selectively connect its first end to its second end, or selectively connect its first end to its third end. When one of the solenoid valves 604 and 605 is active, the other solenoid valve is inactive. When the first solenoid valve 604 is active, the three-way switching valve 606 connects its first end to its second end. When the second solenoid valve 605 is active, the three-way switching valve 606 connects its first end to its third end.

[0134] In some feasible embodiments, upon detecting a leak, the control component 603 generates a control signal, which is sent to the target solenoid valve to control it to shut off the water supply line. The target solenoid valve is the currently operating solenoid valve between the first solenoid valve 604 and the second solenoid valve 605.

[0135] In some feasible embodiments, after sending a control signal to the target solenoid valve, the control component 603 continues to acquire real-time water usage through the detection component 602. If the real-time water usage is not zero, it sends a switching signal to the three-way switching valve 606 to switch the connection port, and then sends a control signal to the non-target solenoid valve again. The non-target solenoid valve is the solenoid valve that is not in operation between the first solenoid valve 604 and the second solenoid valve 605.

[0136] Understandably, when the control component 603 initially sends a control signal to the target solenoid valve, it expects to cut off the water supply. If the real-time water consumption is not zero, it indicates that the target solenoid valve's shut-off capability is insufficient, and there may be problems such as a loose valve or valve body malfunction. At this time, the three-way switching valve 606 is controlled to switch the water supply path to the water supply pipeline where the non-target solenoid valve is located, and the non-target solenoid valve is controlled to achieve the shut-off of the water supply.

[0137] In this embodiment, the valve assembly 601 includes a first solenoid valve 604 and a second solenoid valve 605. When either solenoid valve fails, the water supply path can be switched and the water supply path can be shut off accordingly. This avoids the situation where the water supply cannot be shut off when a leak is detected, thus ensuring reliability.

[0138] In some feasible embodiments, valve assembly 601 further includes a bypass valve 607, which is disposed on a bypass line of the water supply line. The first end of the bypass valve 607 is connected between the detection assembly 602 and the first end of the three-way switching valve 606. In this embodiment, the user can operate the bypass valve 607 to obtain tap water, avoiding situations where the user cannot obtain water in case of water purifier malfunction or emergency.

[0139] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0140] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0142] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0143] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0144] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for detecting leaks, characterized in that, The method includes: Obtain historical water usage data for the target water usage area; Based on the historical water usage data, the normal water usage parameters for the target water usage area in any future water usage period are determined; wherein, the normal water usage parameters are used to characterize the water usage of the target water usage area when no leakage occurs; Obtain real-time water usage data for the target water-using area; Based on the water usage time period in which the real-time water usage data is located, and the normal water usage parameters corresponding to the water usage time period, a leak is detected.

2. The leakage detection method according to claim 1, characterized in that, The historical water usage data includes historical water usage for multiple historical water usage periods, and the normal water usage parameters include a normal water usage fluctuation rate threshold. Determining the normal water usage parameters for the target water usage area in any future water usage period based on the historical water usage data includes: The historical water consumption fluctuation rate for each of the historical water consumption periods is determined based on the historical water consumption for each of the historical water consumption periods. The normal water consumption fluctuation threshold is determined based on the historical water consumption fluctuation rate for each of the historical water consumption periods.

3. The leakage detection method according to claim 2, characterized in that, The step of determining the historical water consumption fluctuation rate for each of the historical water consumption periods based on the historical water consumption for each of the historical water consumption periods includes: Based on the historical water consumption for each historical water consumption period, determine the mean and standard deviation of historical water consumption for each historical water consumption period. The ratio of the historical water consumption standard deviation to the historical water consumption mean is used as the historical water consumption volatility for the historical water consumption period.

4. The leakage detection method according to claim 2, characterized in that, The step of determining the normal water consumption fluctuation threshold based on the historical water consumption fluctuation rate for each of the historical water consumption periods includes: Calculate the mean volatility and standard deviation of volatility based on the historical water consumption volatility for each of the aforementioned historical water consumption periods. The product between the standard deviation of volatility and a preset adjustment coefficient is determined, and the sum of the product and the mean volatility is used as the normal water use volatility threshold.

5. The leakage detection method according to claim 2, characterized in that, The real-time water usage data includes real-time water consumption. The step of detecting whether a leak has occurred based on the water usage period in which the real-time water usage data is located and the normal water usage parameters corresponding to that period includes: Based on the historical water usage data, the peak water usage periods for the target water area are determined; Determine whether the time period in which the real-time water usage data is located is the peak water usage period; The real-time water consumption fluctuation rate for the water consumption period is determined based on the real-time water consumption during the water consumption period. Leakage is detected when the real-time water consumption fluctuation rate is greater than or equal to the normal water consumption fluctuation rate threshold corresponding to the water consumption period, and the water consumption period is not the peak water consumption period.

6. The leakage detection method according to claim 5, characterized in that, Based on the historical water usage data, the peak water usage periods for the target water area are determined, including: The average historical water consumption for each of the historical water consumption periods is determined based on the historical water consumption for each of the historical water consumption periods. The historical water consumption period in which the average historical water consumption is greater than a preset water consumption threshold is defined as the peak water consumption period.

7. The leakage detection method according to claim 1, characterized in that, The method further includes: In the event of a detected leak, a control signal is generated; wherein the control signal is used to control the valve assembly to cut off the water supply pipeline of the target water area, thereby stopping the water supply to the target water area.

8. A leakage detection device, characterized in that, The device includes: The first acquisition module is used to acquire historical water use data for the target water use area; The determination module is used to determine the normal water use parameters of the target water use area in any future water use period based on the historical water use data; wherein, the normal water use parameters are used to characterize the water use of the target water use area when no leakage occurs; The second acquisition module is used to acquire real-time water usage data of the target water usage area; The detection module is used to detect whether a leak has occurred based on the water usage period in which the real-time water usage data is located and the normal water usage parameters corresponding to the water usage period.

9. A water purifier, characterized in that, The water purifier is supplied with water by a water supply pipeline. The water purifier includes a valve assembly, a detection assembly, and a control assembly. The valve assembly and the detection assembly are both connected to the control assembly. The valve assembly and the detection assembly are both installed on the water supply pipeline. The valve assembly is used to control the on / off state of the water supply pipeline, and the detection assembly is used to collect water usage data on the water supply pipeline. The control component includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method according to any one of claims 1 to 7.

10. The water purifier according to claim 9, characterized in that, The valve assembly includes a first solenoid valve, a second solenoid valve, and a three-way switching valve. The first end of the three-way switching valve is connected to the water supply pipeline, the second end of the three-way switching valve is connected to the first end of the first solenoid valve, the third end of the three-way switching valve is connected to the first end of the second solenoid valve, and the second ends of the first solenoid valve and the second solenoid valve are both connected to the water purifier.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Intelligent gas meter constant flow alarm detection method and system

    CN122259143A