Method and device for determining natural cooling time

By segmenting and clustering historical temperature data of water heaters, the natural cooling time can be determined, solving the problem that users cannot accurately estimate the natural cooling time of water heaters, and realizing the estimation of reasonable water consumption and the improvement of energy utilization efficiency.

CN116147207BActive Publication Date: 2025-10-17GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211604147.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-10-17
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

Users cannot accurately estimate the natural cooling time of the water heater, resulting in the water heater producing too much or too little hot water, causing energy waste and inconvenience.

Method used

By acquiring historical temperature data from water heaters, segmenting and normalizing the data, and using the K-means clustering algorithm to cluster the data into three categories, the natural cooling time is determined, the cooling rate is calculated, and the natural cooling time and non-natural cooling time are distinguished.

Benefits of technology

Accurately determine the natural cooling time, estimate user water consumption, avoid energy waste, and meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116147207B_ABST
    Figure CN116147207B_ABST
Patent Text Reader

Abstract

The application provides a natural cooling time determination method and device. The method comprises the following steps: obtaining historical temperature data of a water heater in a unit time; segmenting the historical temperature data based on a preset time length to obtain temperature segments corresponding to each time segment; determining a temperature change rate of the temperature segments corresponding to each time segment to obtain sample data; performing clustering processing on the sample data to obtain clustering information; and determining a natural cooling time of the water heater in the unit time based on the clustering information.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of water heaters, in particular to a method and device for determining natural cooling time. BACKGROUND

[0002] In actual use, users cannot know the demand for hot water, so they often cause the water heater to produce too much hot water, resulting in energy waste, or produce too little hot water, which cannot meet the normal use of users. Therefore, how to calculate the daily water consumption of users is a very important problem. To estimate the water consumption of users, the natural cooling time of the water heater needs to be determined first. SUMMARY

[0003] To solve the above problems in the related art, the present application provides a method and device for determining natural cooling time, which can determine the natural cooling time of the water heater, so as to determine the water consumption of users.

[0004] The present application provides a method for determining natural cooling time, comprising:

[0005] Obtaining historical temperature data of the water heater in a unit time, wherein the historical temperature data is arranged continuously based on time;

[0006] Segmenting the historical temperature data based on a preset time length to obtain temperature segments corresponding to each time segment;

[0007] Determining the temperature change rate of each temperature segment to obtain sample data;

[0008] Performing clustering processing on the sample data to obtain clustering information;

[0009] Determining the natural cooling time of the water heater in a unit time based on the clustering information.

[0010] In some embodiments, the method further comprises:

[0011] Determining the water use time of users in a unit time based on the natural cooling time;

[0012] Determining the water consumption of users in a unit time based on the water use time.

[0013] In some embodiments, the method further comprises:

[0014] Respectively performing normalization processing on each temperature segment to obtain the temperature change rate of each temperature segment to obtain sample data.

[0015] In some embodiments, the clustering information comprises: a first cluster and a second cluster, a temperature change rate of first sample data corresponding to the first cluster is greater than a temperature change rate of second sample data corresponding to the second cluster, and the natural cooling time of the water heater in a unit of time is determined based on the plurality of clusters, comprising:

[0016] determining a time corresponding to the second sample data as the natural cooling time of the water heater in a unit of time.

[0017] In some embodiments, the plurality of clusters further comprises a third cluster, a temperature change rate of third sample data corresponding to the third cluster is less than the temperature change rate of the first sample data corresponding to the first cluster and greater than the temperature change rate of the second sample data corresponding to the second cluster, and the natural cooling time of the water heater in a unit of time is determined based on the clustering information, comprising:

[0018] calculating a first cooling speed of the water heater in a unit of time based on a temperature segment corresponding to the second sample data;

[0019] determining a cooling change interval based on the first cooling speed;

[0020] calculating a second cooling speed corresponding to each temperature segment based on a temperature segment corresponding to each third sample data;

[0021] determining whether each second cooling speed is within the cooling change interval;

[0022] determining a time corresponding to the third sample data of the second cooling speed in the cooling change interval as the natural cooling time of the water heater in a unit of time.

[0023] In some embodiments, the first cooling speed of the water heater in a unit of time is calculated based on a temperature segment corresponding to the second sample data, comprising:

[0024] differential calculation is performed based on each temperature segment corresponding to the second sample data to obtain differential data;

[0025] calculating an average value of the differential data;

[0026] determining the average value as the first cooling speed of the water heater in a unit of time.

[0027] In some embodiments, the water use time of the user in a unit of time is determined based on the natural cooling time, comprising:

[0028] determining a time in a unit of time except the natural cooling time as the water use time of the user in a unit of time.

[0029] The embodiment of the present application provides a natural cooling time determination device, which comprises:

[0030] An acquisition module is configured to acquire historical temperature data of a water heater in a unit time, wherein the historical temperature data is arranged continuously based on time;

[0031] A segmentation module is configured to segment the historical temperature data based on a preset time length to obtain temperature segments corresponding to each time segment;

[0032] A first determination module is configured to determine a temperature change rate of the temperature segments corresponding to each time segment to obtain sample data;

[0033] A clustering module is configured to perform clustering processing on the sample data to obtain clustering information;

[0034] A second determination module is configured to determine a natural cooling time of the water heater in the unit time based on the clustering information.

[0035] The embodiment of the present application provides an electronic device, which comprises:

[0036] A memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to execute the natural cooling time determination method.

[0037] The embodiment of the present application provides a water heater, which comprises the electronic device.

[0038] The embodiment of the present application provides a storage medium, which stores a computer program capable of being executed by one or more processors and capable of being used to implement the natural cooling time determination method.

[0039] The natural cooling time determination method and device provided by the present application can acquire historical temperature data of a water heater in a unit time, segment the historical temperature data based on a preset time length to obtain temperature segments corresponding to each time segment, determine a temperature change rate of the temperature segments corresponding to each time segment to obtain sample data, perform clustering processing on the sample data to obtain clustering information, and determine a natural cooling time of the water heater in the unit time based on the clustering information, so that the natural cooling time can be determined, and the water consumption of a user can be determined. BRIEF DESCRIPTION OF DRAWINGS

[0040] The present application will be described in more detail below based on the embodiments and with reference to the drawings.

[0041] Figure 1 A structural schematic diagram of a water heater provided by the embodiment of the present application is shown in the figure;

[0042] Figure 2 An implementation flowchart of a natural cooling time determination method provided by an embodiment of the present application is shown in the figure.

[0043] Figure 3 A structural schematic diagram of a natural cooling time determination device provided by an embodiment of the present application is shown in the figure.

[0044] Figure 4 A component structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in the figure.

[0045] In the drawings, the same components are designated by the same reference numerals, and the drawings are not drawn according to the actual scale. DETAILED DESCRIPTION

[0046] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings, and the described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0047] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0048] If similar descriptions of "first\second\third" appear in the application file, the following explanations are added, in the following description, the terms "first\second\third" involved only distinguish similar objects, and do not represent a specific order of the objects, and it can be understood that "first\second\third" can be interchanged with a specific order or sequence as allowed, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0050] Before introducing the embodiments of the present application, the problems in the related art are briefly introduced, Figure 1 A structural schematic diagram of a water heater provided in the related art is shown in the figure, such as Figure 1As shown, the water tank of the water heater has a cold water inlet at the bottom of the water tank, connected to the tap water, to fill the water tank; has a hot water outlet at the top of the water tank, to output hot water to the user; the upper part of the water tank has a temperature sensing bag for measuring the temperature of the water in the water tank. In the case of a hot water tank, without additional heating, constantly draining hot water, adding cold water, keeping the water volume of the water tank unchanged, in general, due to the existence of water temperature stratification in the water tank, when the water is less, the water temperature changes very little, and even the temperature change cannot be perceived. But when the water volume exceeds a certain value, the temperature of the temperature sensing bag will drop rapidly, which makes it difficult to estimate the water volume.

[0051] Embodiment one:

[0052] Based on the problems in the related art, the embodiment of the present application provides a natural cooling time determination method, which is applied to an electronic device. The electronic device can be a controller of a water heater. In some embodiments, the electronic device can be a mobile terminal, a computer, a server, etc. The natural cooling time determination method provided by the embodiment of the present application can realize the functions by calling program codes through the processor of the electronic device, wherein the program codes can be saved in a computer storage medium.

[0053] The embodiment of the present application provides a natural cooling time determination method, Figure 2 The implementation process of the natural cooling time determination method provided by the embodiment of the present application is shown in the following figure: Figure 2 As shown, it includes:

[0054] Step S1, obtaining the historical temperature data of the water heater in a unit time, wherein the historical temperature data is arranged continuously based on time.

[0055] In the embodiment of the present application, the electronic device can be in communication connection with the water heater, and obtains the historical temperature data of the water heater in a unit time from the water heater. In some embodiments, the electronic device can be in communication connection with the server, and obtains the historical temperature data of the water heater in a unit time from the server.

[0056] In the embodiment of the present application, the unit time can be configured, for example, it can be one day, or half a day. The historical temperature data can include time and corresponding tank temperature, water temperature, etc. The historical temperature data is a temperature arranged continuously based on time.

[0057] In the embodiment of the present application, the historical temperature data in a unit time can have n data.

[0058] Step S2, segmenting the historical temperature data based on a preset time length to obtain the temperature segment corresponding to each time segment.

[0059] In the embodiments of the present application, the preset time length can be configured, and the preset time length is less than the unit time. For example, the preset time length is m time length. The historical temperature time can be segmented according to the m time length, and n data are segmented, and each time period corresponds to a temperature period.

[0060] In step S3, the temperature change rate of each temperature period is determined to obtain sample data.

[0061] In the embodiments of the present application, the temperature change rate of each temperature period can be obtained by performing normalization processing on each temperature period to obtain sample data.

[0062] By performing normalization processing on each temperature period, the influence of temperature is removed, and the temperature change rate is obtained. The normalized temperature change rate is in [0, 1].

[0063] In step S4, the sample data is clustered to obtain clustering information.

[0064] In the embodiments of the present application, the clustering processing is K-means clustering. The steps of K-means clustering processing are as follows: the data is divided into K groups, K objects are randomly selected as initial cluster centers, the distance between each object and each seed cluster center is calculated, and each object is assigned to the cluster center closest to it. The cluster center and the object assigned to it represent a cluster. The cluster center of each cluster is recalculated according to the existing objects in the cluster after each sample is assigned. This process will be repeated until a certain termination condition is met. The termination condition can be that no (or a minimum number of) objects are reassigned to different clusters, no (or a minimum number of) cluster centers change, or the error sum of squares is locally minimized.

[0065] In the embodiments of the present application, the clustering information can include two clusters, and the two clusters can include a first cluster and a second cluster. The temperature change rate of the first sample data corresponding to the first cluster is greater than the temperature change rate of the second sample data corresponding to the second cluster.

[0066] In some embodiments, the clustering information can include three clusters, and the three clusters include a first cluster, a second cluster and a third cluster. The temperature change rate of the first sample data corresponding to the first cluster is greater than the temperature change rate of the second sample data corresponding to the second cluster. The temperature change rate of the third sample data corresponding to the third cluster is less than the temperature change rate of the first sample data corresponding to the first cluster, and greater than the temperature change rate of the second sample data corresponding to the second cluster.

[0067] In the embodiments of the present application, the sample data corresponding to the first cluster can be defined as sample data corresponding to a relatively certain non-natural temperature drop, and the sample data corresponding to the second cluster can be defined as sample data corresponding to a relatively certain natural temperature drop. The sample data corresponding to the third cluster can be defined as uncertain sample data.

[0068] In the embodiments of the present application, the temperature drop of the water heater mainly includes two cases: one is caused by user water use, and the other is caused by no user water use. The "natural temperature drop" refers to the temperature drop caused by environmental factors without user water use. The "non-natural temperature drop" mainly refers to the temperature drop caused by user water use.

[0069] In the embodiments of the present application, when the temperature change rate changes rapidly, it is considered that there is user water use, otherwise it is considered to be a natural temperature drop. However, when clustering, because the temperature change rate is relatively small, in order to ensure the reliability of the estimation result, the part that the temperature change rate is not easy to distinguish is defined as "not very certain position".

[0070] In step S5, the natural temperature drop time of the natural temperature drop of the water heater in a unit time is determined based on the clustering information.

[0071] In the embodiments of the present application, when the clustering information includes the first cluster and the second cluster, the time corresponding to the second sample data can be determined as the natural temperature drop time of the natural temperature drop of the water heater in a unit time.

[0072] In some embodiments, when the clustering information includes the first cluster, the second cluster and the third cluster, step S5 can be implemented by the following steps:

[0073] In step S51, the first temperature drop speed of the natural temperature drop of the water heater in a unit time is calculated based on the temperature segment corresponding to the second sample data.

[0074] In the embodiments of the present application, the difference data can be obtained by differential calculation based on each temperature segment corresponding to the second sample data, the average value of the difference data is calculated, and the average value is determined as the first temperature drop speed of the natural temperature drop of the water heater in a unit time.

[0075] In step S52, the temperature drop change interval is determined based on the first temperature drop speed.

[0076] In the embodiments of the present application, the change range value of the natural temperature drop can be set, the lower limit value of the temperature drop change interval of the natural temperature drop is obtained by subtracting the change range value from the first temperature drop speed, and the upper limit value of the temperature drop change interval of the natural temperature drop is obtained by adding the change range value to the first temperature drop speed.

[0077] Step S53, calculating each second cooling speed corresponding to each temperature segment based on the temperature segment corresponding to each third sample data.

[0078] In the embodiments of the present application, the difference data can be obtained by differential calculation based on the temperature segment corresponding to each third sample data, the average value of the difference data is calculated, and the average value is determined as the second cooling speed.

[0079] Step S54, determining whether each second cooling speed is in the cooling change interval.

[0080] Step S55, determining the time corresponding to the third sample data of the second cooling speed in the cooling change interval as the natural cooling time of the natural cooling in the unit time.

[0081] The time corresponding to the third sample data of the second cooling speed which is not in the cooling change interval is determined as the time of non-natural cooling in the unit time.

[0082] The method for determining the natural cooling time provided by the present application can obtain the historical temperature data of the water heater in the unit time, segment the historical temperature data based on a preset time length to obtain the temperature segment corresponding to each time segment, determine the temperature change rate of the temperature segment corresponding to each time segment to obtain sample data, perform clustering processing on the sample data to obtain clustering information, and determine the natural cooling time of the natural cooling of the water heater in the unit time based on the clustering information, so as to determine the natural cooling time and determine the water consumption of the user.

[0083] In some embodiments, after step S5, the method further comprises:

[0084] Step S6, determining the water use time of the user in the unit time based on the natural cooling time.

[0085] In the embodiments of the present application, the time in the unit time except the natural cooling time can be determined as the water use time of the user in the unit time.

[0086] Step S7, determining the water consumption of the user in the unit time based on the water use time.

[0087] In the embodiments of the present application, the water consumption of the user can be determined based on the water use time and the flow rate in the unit time.

[0088] In the embodiments of the present application, the water heater can be controlled based on the water consumption, so that the problem of energy waste or inability to meet the normal use of the user can be avoided.

[0089] Embodiment two:

[0090] Based on the foregoing various embodiments, the embodiments of the application further provide a natural cooling time determination method. According to the temperature sensor of the water heater, the approximate position of the natural temperature drop of the water heater can be located. Then, according to the position of the natural temperature drop, the speed of the natural temperature drop can be calculated. When the time of the natural temperature drop and the speed of the natural temperature drop are obtained, the time of the non-natural temperature drop can be estimated, and the information such as when the user uses water and how much water the user uses can be estimated. Finally, the information source of the user habit can be obtained. The method comprises the following steps:

[0091] In step S101, historical temperature data of the water heater is obtained, and the data is arranged in time sequence.

[0092] In step S102, the data is divided into n data segments according to m time length, and the total length of the data is m×n.

[0093] In step S103, in order to remove the influence of temperature, only the change of temperature is concerned, and therefore, the normalization processing is performed on each data segment, and the normalization is performed to [0, 1].

[0094] In step S104, the normalized data segment is used as sample data for clustering, K-means clustering is used, and the clustering is divided into three categories. The meanings of the three categories are “determined non-natural temperature drop position”, “determined natural temperature drop position”, and “uncertain position” respectively.

[0095] In step S105, the original data corresponding to the “determined natural temperature drop position” is taken, the difference calculation is performed on the segmented data, and finally the average value of the difference data is taken to obtain the natural temperature drop speed v.

[0096] In step S106, the natural temperature drop speed of the “uncertain position” is calculated according to step S105.

[0097] In step S107, if the natural temperature drop speed of the “uncertain position” is between [v-d, v+d], and d is the set change range of the natural temperature drop, it is considered that the “uncertain position” is the “determined natural temperature drop” position, otherwise, it is the “determined non-natural temperature drop” position.

[0098] Embodiment three:

[0099] Based on the foregoing embodiments, the embodiments of the present application provide a natural cooling time determination device, each module included in the device and each unit included in each module can be realized by a processor in a computer device; of course, it can also be realized by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processing (DSP) or a field programmable gate array (FPGA).

[0100] The embodiments of the present application provide a natural cooling time determination device, Figure 3 A structural schematic diagram of the natural cooling time determination device provided by the embodiments of the present application is shown in Figure 3 The natural cooling time determination device 300 includes:

[0101] The acquisition module 301 is configured to acquire historical temperature data of a water heater in a unit time, wherein the historical temperature data is arranged continuously based on time.

[0102] The segmentation module 302 is configured to segment the historical temperature data based on a preset time length to obtain temperature segments corresponding to each time segment.

[0103] The first determination module 303 is configured to determine a temperature change rate of the temperature segments corresponding to each time segment to obtain sample data.

[0104] The clustering module 304 is configured to perform clustering processing on the sample data to obtain clustering information.

[0105] The second determination module 305 is configured to determine a natural cooling time of the water heater in a unit time based on the clustering information.

[0106] In some embodiments, the natural cooling time determination device 300 is further configured to:

[0107] determine a water use time of a user in a unit time based on the natural cooling time;

[0108] determine a water use amount of the user in a unit time based on the water use time.

[0109] In some embodiments, the determination of the temperature change rate of each temperature segment to obtain sample data includes:

[0110] normalizing each temperature segment to obtain the temperature change rate of each temperature segment to obtain sample data.

[0111] In some embodiments, the clustering information comprises: a first cluster and a second cluster, a temperature change rate of first sample data corresponding to the first cluster is greater than a temperature change rate of second sample data corresponding to the second cluster, and the natural cooling time of the water heater in a unit of time is determined based on the plurality of clusters, comprising:

[0112] determining a time corresponding to the second sample data as the natural cooling time of the water heater in a unit of time.

[0113] In some embodiments, the plurality of clusters further comprises: a third cluster, a temperature change rate of third sample data corresponding to the third cluster is less than the temperature change rate of the first sample data corresponding to the first cluster, and greater than the temperature change rate of the second sample data corresponding to the second cluster, and the natural cooling time of the water heater in a unit of time is determined based on the clustering information, comprising:

[0114] calculating a first cooling speed of the water heater in a unit of time based on a temperature segment corresponding to the second sample data;

[0115] determining a cooling change interval based on the first cooling speed;

[0116] calculating a second cooling speed corresponding to each temperature segment based on a temperature segment corresponding to each third sample data;

[0117] determining whether each second cooling speed is within the cooling change interval;

[0118] determining a time corresponding to the third sample data of the second cooling speed in the cooling change interval as the natural cooling time of the water heater in a unit of time.

[0119] In some embodiments, the first cooling speed of the water heater in a unit of time is calculated based on a temperature segment corresponding to the second sample data, comprising:

[0120] differential calculation is performed based on each temperature segment corresponding to the second sample data to obtain differential data;

[0121] calculating an average value of the differential data;

[0122] determining the average value as the first cooling speed of the water heater in a unit of time.

[0123] In some embodiments, the water use time of the user in a unit of time is determined based on the natural cooling time, comprising:

[0124] determining a time in a unit of time except the natural cooling time as the water use time of the user in a unit of time.

[0125] It should be noted that, in the embodiments of the present application, if the natural cooling time determination method described above is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various other program code storage media. Thus, the embodiments of the present application are not limited to any particular combination of hardware and software.

[0126] Correspondingly, the embodiments of the present application provide a storage medium having a computer program stored thereon, characterized in that the computer program is executed by a processor to implement the steps of the natural cooling time determination method provided in the above embodiments.

[0127] Example 4

[0128] The embodiments of the present application provide an electronic device; Figure 4 The electronic device provided by the embodiments of the present application has a component structure diagram as shown in Figure 4 The electronic device 500 includes a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to realize the connection and communication between the components. The user interface 503 can include a display screen, and the external communication interface 504 can include a standard wired interface and a wireless interface. The processor 501 is configured to execute the program of the natural cooling time determination method stored in the memory to implement the steps of the natural cooling time determination method provided in the above embodiments.

[0129] It should be noted that the descriptions of the above storage medium and electronic device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0130] It should be understood that every feature, structure, or characteristic described herein is within a preferred embodiment of the present application. Thus, it is meant that the features, structures, or characteristics can be combined with each other in any manner within a preferred embodiment of the present application. In addition, it is contemplated that each feature, structure, or characteristic can be implemented in hardware, software, or a combination thereof.

[0131] It should be noted that, as used herein, the articles "a", "an", "the", and "at least one" are intended to mean that there is one or more of the elements in the preceding descriptions. The articles "a" (or "an"), as well as the first article "the" and "at least one" do not denote a limitation of quantity, and are used with their plain, ordinary meaning. Thus, these articles should be interpreted in the manner it is employed by those having ordinary skill in the art to indicate that the accompanying recited elements can be included either singly or in multiple number, that the referenced member or elements may, but need not, be present, and that all possible combinations of the recited members are considered.

[0132] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The described device embodiments are merely illustrative, and the division of units is merely logical function division, and there can be other division manners in actual implementation, such as a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling, or direct coupling or communication connection between components can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0133] The units described as separate components may, or can not be, physically separate, and the components shown as units may, or can not be, physical units; they can be located in one place, or distributed on a plurality of network units; and some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0134] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.

[0135] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware, the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the method embodiments when executed.

[0136] Alternatively, the integrated units of the present application can be stored in a computer readable storage medium if they are realized in the form of software function modules and sold or used as independent products. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products, and the computer software products are stored in a storage medium, including a plurality of instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various media that can store program codes.

[0137] The above is only an embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for determining natural cooling time, characterized in that: include: Acquire historical temperature data of the water heater within a unit time, wherein the historical temperature data is arranged continuously based on time; Segmenting the historical temperature data based on a preset time period to obtain temperature segments corresponding to each time period; Determine the temperature change rate of the temperature section corresponding to each time period to obtain sample data; Performing clustering processing on the sample data to obtain clustering information; Determining a natural cooling time of the water heater for natural cooling within a unit time based on the clustering information; Determining the user's water consumption time per unit time based on the natural cooling time; Determining the user's water consumption per unit time based on the water consumption time; The clustering information includes: a first cluster and a second cluster, the temperature change rate of first sample data corresponding to the first cluster is greater than the temperature change rate of second sample data corresponding to the second cluster, and determining the natural cooling time of the water heater in unit time based on multiple clusters includes: Determine the natural cooling time of the water heater within a unit time according to the time corresponding to the second sample data; The multiple clusters further include: a third cluster, wherein a temperature change rate of third sample data corresponding to the third cluster is less than a temperature change rate of first sample data corresponding to the first cluster, and greater than a temperature change rate of second sample data corresponding to the second cluster, and determining a natural cooling time of the water heater within a unit time based on the cluster information includes: Calculating a first cooling rate of the water heater that naturally cools down within a unit time based on the temperature range corresponding to the second sample data; determining a temperature reduction variation interval based on the first temperature reduction rate; Calculating each second cooling rate corresponding to each temperature segment based on the temperature segment corresponding to each third sample data; Determining whether each second cooling rate is within the cooling variation range; The natural cooling time of natural cooling within unit time is determined according to the time corresponding to the third sample data of the second cooling speed in the cooling variation interval.

2. The method according to claim 1, characterized in that Determining the temperature change rate of each temperature segment to obtain sample data includes: Each temperature segment is normalized to obtain the temperature change rate of each temperature segment to obtain sample data.

3. The method according to claim 1, characterized in that The calculating, based on the temperature range corresponding to the second sample data, a first cooling rate of the water heater that naturally cools down within a unit time includes: Performing differential calculation based on each temperature segment corresponding to the second sample data to obtain differential data; Calculating an average value of the differential data; The average value is determined as a first cooling rate of the water heater during natural cooling per unit time.

4. The method according to claim 1, wherein determining the user's water usage time per unit time based on the natural cooling time comprises: The time in unit time excluding the natural cooling time is determined as the water consumption time of the user in unit time.

5. A device for determining natural cooling time, characterized in that: include: An acquisition module, configured to acquire historical temperature data of the water heater within a unit time, wherein the historical temperature data is arranged continuously based on time; A segmentation module, configured to segment the historical temperature data based on a preset time period to obtain temperature segments corresponding to each time period; A first determination module is used to determine the temperature change rate of the temperature section corresponding to each time period to obtain sample data; A clustering module, used to perform clustering processing on the sample data to obtain clustering information; A second determining module is used to determine a natural cooling time of the water heater within a unit time based on the clustering information; A third determining module is used to determine the water consumption time of the user per unit time based on the natural cooling time; A fourth determining module, configured to determine the water consumption of the user per unit time based on the water consumption time; The clustering information includes: a first cluster and a second cluster, the temperature change rate of first sample data corresponding to the first cluster is greater than the temperature change rate of second sample data corresponding to the second cluster, and determining the natural cooling time of the water heater in unit time based on multiple clusters includes: Determine the natural cooling time of the water heater within a unit time according to the time corresponding to the second sample data; The multiple clusters further include: a third cluster, wherein a temperature change rate of third sample data corresponding to the third cluster is less than a temperature change rate of first sample data corresponding to the first cluster, and greater than a temperature change rate of second sample data corresponding to the second cluster, and determining a natural cooling time of the water heater within a unit time based on the cluster information includes: Calculating a first cooling rate of the water heater that naturally cools down within a unit time based on the temperature range corresponding to the second sample data; determining a temperature reduction variation interval based on the first temperature reduction rate; Calculating each second cooling rate corresponding to each temperature segment based on the temperature segment corresponding to each third sample data; Determining whether each second cooling rate is within the cooling variation range; The natural cooling time of natural cooling within unit time is determined according to the time corresponding to the third sample data of the second cooling speed in the cooling variation interval.

6. An electronic device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for determining the natural cooling time according to any one of claims 1 to 4 is executed.

7. A water heater, characterized in that: include: The electronic device according to claim 6.

8. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the method for determining the natural cooling time as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Control method and equipment of double-container water heater and double-container water heater

    CN114992852A