Heating device control method, apparatus, and electronic device
Patent Information
- Application Number
- CN202510378441.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2045-03-28
AI Technical Summary
这导致能源浪费和用户体验不佳
[0042]通过获取目标对象对应的历史对象用水数据,可以获取到目标对象在预设周期内的用水情况,再在接收到针对目标时间段的加热预测指令的情况下,从每个子周期用水数据中,确定在目标时间段内的时间段用水数据,可以精准获取目标对象在预设周期中每个预设子周期对应的目标时间段内的用水情况,接着,结合多个预设子周期各自对应的时间段用水数据,对目标时间段进行对象用水预测处理,得到目标时间段对应的对象用水预测结果,可以提升针对目标时间段的对象用水预测准确度,然后,结合对象用水预测结果,控制目标对象对应的目标加热设备执行加热操作,可以减少能源浪费,提升用户体验。
Smart Images

Figure CN120176299B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of water heater technology, and in particular to a heating equipment control method, device and electronic equipment. Background Technology
[0002] The market share of gas water heaters with zero-cold-water function is increasing year by year compared to ordinary gas water heaters. During use, users' water demand for gas water heaters exhibits certain regularities, but traditional gas water heaters often employ a fixed circulation control mode, failing to optimize for users' actual water usage habits. This leads to energy waste and a poor user experience. Summary of the Invention
[0003] In view of the above-mentioned technical problems, this disclosure proposes a heating equipment control method, device and electronic equipment.
[0004] According to one aspect of the present disclosure, a heating device control method is provided, the method comprising:
[0005] Obtain historical water usage data corresponding to the target object. The historical water usage data is used to indicate the water usage of the target object within a preset period. The historical water usage data includes sub-period water usage data corresponding to each of the multiple preset sub-periods within the preset period.
[0006] Upon receiving a heating prediction instruction for a target time period, the water usage data for the time period within the target time period is determined from the water usage data of each sub-cycle.
[0007] Based on the water usage data of each time period corresponding to the plurality of preset sub-periods, the target time period is subjected to object water usage prediction processing to obtain the object water usage prediction result corresponding to the target time period; the object water usage prediction result is used to indicate the predicted water usage of the target object in at least one sub-period within the target time period.
[0008] Based on the water usage prediction results of the target object, the target heating device corresponding to the target object is controlled to perform heating operation.
[0009] Optionally, the object water usage prediction result includes water usage indication information, which is used to indicate whether a heating operation is performed within the target time period; the step of performing object water usage prediction processing on the target time period based on the water usage data corresponding to each of the multiple preset sub-cycles to obtain the object water usage prediction result corresponding to the target time period includes:
[0010] Based on the water usage data corresponding to the time periods of the multiple preset sub-periods, a first water usage matrix is generated; the number of rows in the first water usage matrix is the same as the number of the multiple preset sub-periods, and the number of columns in the first water usage matrix is the same as the number of sub-time periods contained in the target time period;
[0011] Based on the first water usage matrix data and the first preset matrix data, a second water usage matrix data is determined; the second water usage matrix data is used to indicate whether the target object uses water within the target time period of each preset sub-cycle in the preset cycle;
[0012] Based on the second water usage matrix data, the water usage indication information is determined.
[0013] Optionally, determining the water usage indication information based on the second water usage matrix data includes:
[0014] Based on the second water usage matrix data, the number of elements in the first matrix is determined; the number of elements in the first matrix is the number of elements in the second water usage matrix data that are greater than or equal to the number of elements in the first preset element data.
[0015] The water usage indication information is determined based on the number of elements in the first matrix.
[0016] Optionally, determining the water usage indication information based on the number of elements in the first matrix includes:
[0017] If the number of elements in the first matrix is greater than or equal to the number of preset elements, the water usage indication information is determined to be the first indication information, and the first indication information is used to indicate that the heating start-up operation is performed within the target time period.
[0018] or,
[0019] If the number of elements in the first matrix is less than the preset number of elements, the water usage indication information is determined to be the second indication information, which is used to indicate that a heating shutdown operation is performed within the target time period.
[0020] Optionally, the target time period includes multiple sub-time periods, and the target water usage prediction result further includes water usage time data, which is used to indicate the sub-time periods within the target time period where heating on-time operation is performed; the method further includes:
[0021] Based on the first water usage matrix data and the second preset matrix data, a third water usage matrix data is determined; the third water usage matrix data is used to indicate the number of sub-cycles in which the target object uses water within each sub-time period in the preset cycle;
[0022] Based on the third water usage matrix data, the water usage time data is determined.
[0023] Optionally, determining the water usage time data based on the third water usage matrix data includes:
[0024] At least one target element data is selected from the third water use matrix data; the at least one target element data is an element data in the third water use matrix data that is greater than or equal to a second preset element data.
[0025] The water usage time data is generated based on the sub-time periods corresponding to each of the at least one target element data.
[0026] Optionally, the water usage data for each preset sub-period includes multiple historical water usage bytes, and each bit in the later preset number of bits in each historical water usage byte is used to indicate whether the target object uses water within the corresponding sub-time period; the method further includes:
[0027] Upon detecting a water usage data update instruction, the current recorded water usage time corresponding to the current update time period is obtained; the current recorded water usage time is the time during which the target object started using water within the current update time period.
[0028] Based on the currently recorded water usage time, generate multiple current water usage bytes corresponding to the current update time period;
[0029] Based on the multiple current water usage bytes, the historical object water usage data is updated to obtain the updated historical object water usage data.
[0030] Optionally, the currently recorded water usage time includes the water usage time of multiple objects, and the method further includes:
[0031] If, among the multiple object water usage times, there exists a target water usage time pair whose corresponding water usage time interval is less than a preset water usage time interval, the water usage times of the later objects in the target water usage time pair are filtered to obtain the filtered current recorded water usage time; the target water usage time pair is any two adjacent object water usage times among the multiple object water usage times.
[0032] The step of generating multiple current water usage bytes corresponding to the current update time period based on the currently recorded water usage time includes:
[0033] Based on the filtered current recorded water usage time, multiple current water usage bytes corresponding to the current update time period are generated.
[0034] According to another aspect of the present disclosure, a heating device control apparatus is provided, the apparatus comprising:
[0035] The first data acquisition module is used to acquire historical water usage data corresponding to the target object. The historical water usage data is used to indicate the water usage of the target object within a preset period. The historical water usage data includes water usage data for each of the multiple preset sub-periods within the preset period.
[0036] The second data acquisition module is used to determine the time period water consumption data within the target time period from the water consumption data of each sub-cycle when a heating prediction instruction for the target time period is received.
[0037] The object water use prediction module is used to perform object water use prediction processing on the target time period based on the water use data of the time periods corresponding to the multiple preset sub-periods, and obtain the object water use prediction result corresponding to the target time period; the object water use prediction result is used to indicate the predicted water use of the target object in at least one sub-period within the target time period.
[0038] The control module is used to control the target heating device corresponding to the target object to perform heating operations based on the water usage prediction results of the object.
[0039] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the above-described heating device control method.
[0040] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the above-described heating device control method.
[0041] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0042] By acquiring historical water usage data corresponding to the target object, the water usage of the target object within a preset period can be obtained. Then, upon receiving a heating prediction instruction for a target time period, the water usage data for the time period within the target time period can be determined from the water usage data of each sub-period. This allows for accurate acquisition of the target object's water usage within the target time period corresponding to each preset sub-period within the preset period. Next, by combining the water usage data for the time periods corresponding to multiple preset sub-periods, object water usage prediction processing is performed on the target time period to obtain the object water usage prediction result for the target time period. This can improve the accuracy of object water usage prediction for the target time period. Finally, based on the object water usage prediction result, the target heating equipment corresponding to the target object can be controlled to perform heating operations, which can reduce energy waste and improve user experience.
[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0045] Figure 1 This is a schematic diagram of the structure of a target heating device according to an exemplary embodiment;
[0046] Figure 2 This is a flowchart illustrating a heating device control method according to an exemplary embodiment;
[0047] Figure 3 This is a schematic diagram illustrating historical water usage data of an object according to an exemplary embodiment;
[0048] Figure 4 This is a schematic diagram illustrating a process for acquiring water usage data over a time period, according to an exemplary embodiment.
[0049] Figure 5 This is a schematic diagram illustrating an object water usage prediction process according to an exemplary embodiment;
[0050] Figure 6 This is a block diagram illustrating a heating device control apparatus according to an exemplary embodiment;
[0051] Figure 7 This is a block diagram illustrating an electronic device for controlling a target heating device based on object water usage prediction results, according to an exemplary embodiment.
[0052] Figure 8 This is a block diagram illustrating another electronic device for controlling a target heating device based on object water usage prediction results, according to an exemplary embodiment. Detailed Implementation
[0053] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0054] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0055] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.
[0056] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating the structure of a target heating device according to an exemplary embodiment. Specifically, as shown below... Figure 1 As shown, the target heating device may include a controller, a water usage detection module, and a heating module. The controller can be used to implement the aforementioned heating device control method; the water usage detection module can be used to detect hot water usage of the target object to obtain water usage data corresponding to the target object; and the heating module can be used to heat the water. Furthermore, the heating module can heat water in the target pipeline, or it can heat water in the target container; this disclosure does not limit the scope.
[0057] Please see Figure 2 , Figure 2 This is a flowchart illustrating a heating device control method according to an exemplary embodiment. Figure 2 As shown, this heating device control method can be applied to electronic devices such as terminals or servers, and specifically includes the following steps:
[0058] S201: Obtain historical water usage data corresponding to the target object.
[0059] In a specific embodiment, the target object can refer to an object that has a need for hot water. Historical object water usage data can be used to indicate the water usage of the target object within a preset period. Historical object water usage data can include water usage data corresponding to each of multiple preset sub-periods within the preset period. The preset period can refer to the entire water usage record period covered by the historical object water usage data. The preset period can include multiple different preset sub-periods. Different preset sub-periods do not need to overlap. For example, the duration of the preset period can be 8 days; the duration of the preset sub-period can be 1 day; correspondingly, the preset period can include 8 preset sub-periods, where preset sub-period 1 can be the first day of the preset period; preset sub-period 2 can be the second day of the preset period; preset sub-period 3 can be the third day of the preset period; preset sub-period 4 can be the fourth day of the preset period; preset sub-period 5 can be the fifth day of the preset period; preset sub-period 6 can be the sixth day of the preset period; preset sub-period 7 can be the seventh day of the preset period; and preset sub-period 8 can be the eighth day of the preset period.
[0060] In one specific embodiment, the water usage data for each preset sub-period may include multiple historical water usage bytes. Each bit in the later preset number of bits within each historical water usage byte can be used to indicate whether the target object used water during the corresponding sub-time period.
[0061] In one specific embodiment Figure 3 This is a schematic diagram illustrating historical water usage data of an object according to an exemplary embodiment. Specifically, as shown below... Figure 3 As shown, the historical water usage data can be represented by a two-dimensional array of 8 rows and 24 columns (192 bytes). Each row corresponds to one day, and each byte corresponds to a 1-hour time period. The lower 6 bits of each byte map to 6 sub-time periods of 10 minutes each (e.g., one bit can be 0:00-0:10). When water usage is enabled in any sub-time period, the corresponding bit data of the sub-time period can be set to 1.
[0062] In one specific embodiment, the above method may further include:
[0063] Upon detecting a water usage data update command, obtain the current recorded water usage time corresponding to the current update time period;
[0064] Based on the current recorded water usage time, generate multiple bytes of current water usage data corresponding to the current update time period;
[0065] Based on multiple current water usage bytes, the historical object's water usage data is updated to obtain the updated historical object's water usage data.
[0066] In one specific embodiment, a water usage data update instruction can be used to instruct the updating of historical water usage data. The water usage data update instruction can be triggered at half-cycle intervals. For example, if the preset sub-cycle length is one day, the water usage data update instruction can be triggered at 0:02 and 12:02 each day; correspondingly, the water usage data update instruction triggered at 0:02 each day can generate data from 0:00 to 11:59, and the water usage data update instruction triggered at 12:02 each day can generate data from 12:00 to 23:59.
[0067] In one specific embodiment, the current update time period can be the time period that needs to be updated. Specifically, the current update time period can include at least one time period. For example, the duration of the current update time period can be 12 hours.
[0068] In one specific embodiment, the currently recorded water usage time can be the time the target object started using water within the current update time period. The currently recorded water usage time can include the water usage times of multiple objects. The water usage time of any object can refer to the time the target object used hot water. The water usage time of any object can include the corresponding water-starting time and the corresponding water-stopping time for the target object. The water-starting time can refer to the moment when hot water is turned on; the water-stopping time can refer to the moment when hot water use ends after the water-starting time. It is understood that the interval between the water-starting time and the corresponding water-stopping time in the water usage time of any object can reflect the duration of this water usage.
[0069] In one specific embodiment, based on the water initiation time of each object's water usage time in the currently recorded water usage time, a corresponding sub-time period is determined as the target sub-time period; correspondingly, the bit data of the above-mentioned target sub-time period can be set to preset bit data. Specifically, the above-mentioned preset bit data can be 1.
[0070] In one specific embodiment, if any object's water usage time in the currently recorded water usage time has a corresponding water usage duration less than a preset water usage duration, then the water usage time of that object can be filtered out. Specifically, the preset water usage duration can be set according to actual application needs. Optionally, the preset water usage duration can be 2 minutes.
[0071] In one specific embodiment, the above method may further include:
[0072] If, among multiple object water usage times, there is a target water usage time pair whose corresponding water usage time interval is less than the preset water usage time interval, the water usage time of the object that is later in the target water usage time pair is filtered to obtain the filtered current recorded water usage time.
[0073] Accordingly, based on the currently recorded water usage time, multiple bytes of current water usage data corresponding to the current update time period are generated, including:
[0074] Based on the filtered current water usage time, generate multiple bytes of current water usage data corresponding to the current update time period.
[0075] In one specific embodiment, the target water usage time pair can be any two adjacent water usage times from a plurality of object water usage times.
[0076] In a specific embodiment, the water usage time interval corresponding to the target water usage time pair can refer to the time interval between the water usage shutdown time of the previous target water usage time and the water usage start time of the next target water usage time in the target water usage time pair.
[0077] In one specific embodiment, the preset water usage time interval can be set according to actual application needs. For example, the preset water usage time interval can be 3 minutes.
[0078] In a specific embodiment, if there is a target water usage time pair among multiple object water usage times where the corresponding water usage time interval is less than a preset water usage time interval, it can be determined that the target water usage time pair belongs to the same water usage demand of the target object. The later object water usage time in the target water usage time pair can be filtered to obtain the filtered current recorded water usage time, thereby improving the accuracy of object water usage prediction.
[0079] In a specific embodiment, such as Figure 3 As shown, assuming the current recorded water usage time includes object water usage time 1, object water usage time 2, and object water usage time 3, and the water usage start time corresponding to object water usage time 1 is 0:51, the water usage start time corresponding to object water usage time 2 is 0:46, and the water usage start time corresponding to object water usage time 3 is 0:08, it can be determined that the current water usage byte data corresponding to the above object water usage time is "00110001".
[0080] In one specific embodiment, historical object water usage data can be rolled over based on multiple current water usage byte data to obtain updated historical object water usage data. Specifically, multiple historical water usage byte data belonging to the current update time period in the earliest preset sub-period of the historical object water usage data can be deleted. Then, multiple historical water usage byte data belonging to the current update time period in the next preset sub-period of the earliest preset sub-period can be overwritten to the historical water usage byte data within the current update time period in the earliest preset sub-period, and so on, until the historical water usage byte data within the current update time period in the last preset sub-period overwrites the historical water usage byte data within the current update time period in the previous preset sub-period. Then, the multiple current water usage byte data are overwritten to the current update time period in the last preset sub-period to obtain updated historical object water usage data. Furthermore, during the byte data update process within the current update time period, byte data in the historical object water usage data that does not belong to the current update time period may not be updated. It can be understood that, assuming the current update time period is 0-11h, the data from 12-23h in the historical object water usage data may not be updated.
[0081] In the above embodiments, by storing and recording the water usage of the target object within a preset period using multiple historical water usage bytes, the water usage data of the target object can be compressed and stored. This improves the resolution of the user's water usage data storage while reducing the storage space occupied, and enables fast access to the target object's water usage data through bit operations.
[0082] S203: Upon receiving a heating prediction instruction for a target time period, determine the time period water usage data within the target time period from the water usage data of each sub-cycle.
[0083] In one specific embodiment, a heating prediction command can be used to instruct the prediction of water usage of a target object within a target time period. The heating prediction command may include a target time period, which refers to the time period during which water usage needs to be predicted. The target time period may include at least one sub-time period. Specifically, a heating prediction command may be triggered every 30 minutes. The duration of any sub-time period may be 10 minutes. The duration of the target time period may be 30 minutes.
[0084] In one specific embodiment, a heating prediction command can be triggered before the target time period arrives. For example, assuming the current time is 23:55, the heating prediction command is triggered before 0:00 to predict the water usage during the target time period (0:00 to 0:30). Then, after the prediction is completed, the next half-hour period can be used as the target time period (e.g., 0:30 to 1:00) to predict the water usage during the target time period.
[0085] In one specific embodiment, the water usage data for each preset sub-cycle can be used to indicate the historical water usage of a target object within a target time period of each preset sub-cycle. The water usage data for each preset sub-cycle may include bit data corresponding to at least one sub-time period. Specifically, the bit data corresponding to any sub-time period within the water usage data for any preset sub-cycle can characterize whether the target object has activated water usage during any of the aforementioned sub-time periods within any preset sub-cycle.
[0086] In a specific embodiment, the sub-time period corresponding to each bit data in the sub-period water use data corresponding to any preset sub-period can be matched with the target time period. If the matched sub-time period belongs to the target time period, the corresponding bit data can be used as the water use data for the time period corresponding to any preset sub-period.
[0087] In one specific embodiment, a preset sliding window can be used to read water usage data for multiple preset sub-periods from historical object water usage data by sliding the window at preset intervals of a preset duration. Specifically, Figure 4 This is a schematic diagram illustrating a process for acquiring water usage data over a time period, according to an exemplary embodiment. For example, as shown... Figure 4 As shown, assuming the current time is 23:55, the above-mentioned preset sliding window can be Figure 4 The data in the box shown can be placed into a 7x3 matrix, which represents the first water usage matrix data for the first 7 days from 0:00 to 0:30. At 0:25, the red box is moved to the left, and the data for the first 7 days from 0:30 to 0:59 is placed into the matrix, which represents the first water usage matrix data for the first 7 days from 0:30 to 0:59.
[0088] S205: Based on the water usage data of each time period corresponding to multiple preset sub-periods, perform object water usage prediction processing on the target time period to obtain the object water usage prediction result corresponding to the target time period.
[0089] In one specific embodiment, the object water usage prediction result can be used to indicate the predicted water usage of the target object in at least one sub-time period within a target time period. Specifically, the object water usage prediction result may include water usage indication information. This water usage indication information can be used to indicate whether a heating operation is performed within the target time period. Further, the object water usage prediction result may also include water usage time data. This water usage time data can be used to indicate the sub-time period within the target time period where a heating start-up operation is performed.
[0090] In one specific embodiment, the water usage indication information may include first indication information or second indication information. The first indication information may be used to indicate that a heating start-up operation should be performed within a target time period. The second indication information may be used to indicate that a heating stop-up operation should be performed within the target time period.
[0091] In a specific embodiment, the above-mentioned object water use prediction processing based on the water use data of each of the multiple preset sub-periods corresponding to the target time period, to obtain the object water use prediction result corresponding to the target time period, may include:
[0092] Based on the water usage data for each time period corresponding to multiple preset sub-periods, a first water usage matrix data is generated.
[0093] Based on the first water usage matrix data and the first preset matrix data, the second water usage matrix data is determined;
[0094] Based on the second water usage matrix data, water usage indication information is determined.
[0095] In one specific embodiment, the number of rows in the first water usage matrix data can be the same as the number of multiple preset sub-periods, and the number of columns in the first water usage matrix data can be the same as the number of sub-periods contained in the target time period.
[0096] In a specific embodiment, the water usage data for each time period corresponding to a preset sub-cycle can be arranged sequentially from first to last according to the time order of the preset sub-cycle to obtain the first water usage matrix data.
[0097] In one specific embodiment, the second water usage matrix data can be used to indicate whether the target object uses water within a target time period of each preset sub-cycle in a preset period.
[0098] In a specific embodiment, the number of rows in the first preset matrix data can be the same as the number of rows in the first water use matrix data, the number of columns in the first preset matrix data can be 1, and all elements in the first preset matrix data can be 1.
[0099] In one specific embodiment, the first water usage matrix data and the first preset matrix data can be multiplied to obtain the aforementioned second water usage matrix data. Specifically, the first water usage matrix data can be multiplied by the first preset matrix data to obtain the aforementioned second water usage matrix data.
[0100] In one specific embodiment, determining water usage indication information based on the second water usage matrix data may include:
[0101] Based on the second water usage matrix data, determine the number of elements in the first matrix;
[0102] Based on the number of elements in the first matrix, water usage indication information is determined.
[0103] In one specific embodiment, the number of elements in the first matrix can be the number of elements in the second water usage matrix data that are greater than or equal to the number of elements in the first preset element data. The number of elements in the first matrix can represent the historical water usage frequency of the target object within the target time period.
[0104] In one specific embodiment, the number of elements in the second water matrix data that are greater than or equal to the first preset element data can be used as the number of elements in the first matrix. Specifically, the first preset element data can be 1.
[0105] In one specific embodiment, determining the water usage indication information based on the number of elements in the first matrix may include:
[0106] If the number of elements in the first matrix is greater than or equal to the preset number of elements, the water usage indication information is determined as the first indication information;
[0107] or,
[0108] If the number of elements in the first matrix is less than the preset number of elements, the water usage indication information is determined to be the second indication information.
[0109] In one specific embodiment, the preset number of elements can be set according to the actual application needs. Optionally, the preset number of elements can be 2.
[0110] In the above embodiments, a first water usage matrix is generated by using water usage data corresponding to the time periods of multiple preset sub-cycles. Based on the first water usage matrix and the first preset matrix, a second water usage matrix is determined. Based on the second water usage matrix, water usage indication information is determined. This can achieve accurate prediction of whether a target object uses water within a target time period, thereby improving prediction efficiency and accuracy.
[0111] In one specific embodiment, the above method may further include:
[0112] The third water use matrix data is determined based on the first water use matrix data and the second preset matrix data;
[0113] Based on the third water usage matrix data, the water usage time data is determined.
[0114] In one specific embodiment, the third water usage matrix data can be used to indicate the number of sub-cycles in which the target object uses water within each sub-time period of a preset period.
[0115] In one specific embodiment, the number of rows in the second preset matrix data can be 1, the number of columns in the second preset matrix data can be the same as the number of rows in the first preset matrix data, and all elements in the second preset matrix data can be 1.
[0116] In one specific embodiment, matrix multiplication can be performed on the first water usage matrix data and the second preset matrix data to obtain the aforementioned third water usage matrix data. Specifically, the second preset matrix data can be multiplied by the first water usage matrix data to obtain the aforementioned third water usage matrix data.
[0117] In one specific embodiment, the above-mentioned determination of water usage time data based on third-party water usage matrix data may include:
[0118] Filter out at least one target element from the third-party water matrix data;
[0119] Water usage time data is generated based on the sub-time periods corresponding to at least one target element data.
[0120] In one specific embodiment, at least one target element data can be element data in the third water matrix data that is greater than or equal to the second preset element data.
[0121] In one specific embodiment, elements in the third water matrix data that are greater than or equal to the second preset element data can be used as at least one target element data. Specifically, the second preset element data can be 1.
[0122] In one specific embodiment, the sub-time periods corresponding to at least one target element data can be used as water usage time data.
[0123] In one specific embodiment Figure 5 This is a schematic diagram illustrating an object water usage prediction process according to an exemplary embodiment. Specifically, as shown below... Figure 5 As shown, for the first water use matrix data (such as...) Figure 5 (middle matrix B) and the first preset matrix data (such as...) Figure 5 By performing matrix multiplication on matrix C, the second water matrix data mentioned above can be obtained (e.g., ...). Figure 5 In the middle matrix E); for the second preset matrix data (such as... Figure 5 The middle matrix A) and the first water matrix data (such as Figure 5 By performing matrix multiplication on matrix B, the aforementioned third-party water matrix data (such as...) can be obtained. Figure 5 (middle matrix D).
[0124] In the above embodiments, by using the first water usage matrix data and the second preset matrix data, the third water usage matrix data is determined, and based on the third water usage matrix data, the water usage time data is determined. This enables accurate prediction of whether a target object uses water in each sub-time period within the target time period, which can improve prediction resolution, prediction efficiency, and prediction accuracy. This allows for more granular prediction of object water usage, thereby further saving energy and improving user experience.
[0125] S207: Based on the water usage prediction results of the target object, control the target heating equipment corresponding to the target object to perform heating operations.
[0126] In one specific embodiment, when the target water usage prediction result includes water usage indication information, the target heating device can be controlled based on the water usage indication information. Specifically, when the water usage indication information is the second indication information, it can be determined that a heating shutdown operation will be performed within the target time period, i.e., the heating module can be turned off. When the water usage indication information is the first indication information, a heating turn-on operation can be performed within the target time period; furthermore, when the water usage indication information is the first indication information, the heating module can be turned on throughout the target time period, or the specific time of turning on the heating module can be further controlled in a finer granular manner based on the water usage time data.
[0127] In one specific embodiment, when the target water usage prediction result includes first indication information, the heating module can be controlled to turn on within the time range from the start time of the water usage time data to the end time of the target time period based on the water usage time data in the target water usage prediction result. For example, assuming the target time period is 0:00–0:30, and the water usage time data is divided into sub-time periods “0:00–0:10” and “0:20–0:30”, the heating module can be turned on during the next time period “0:00–0:30”; assuming the target time period is 0:00–0:30, and the water usage time data is divided into sub-time periods “0:10–0:20”, the heating module can be turned on during the next time period “0:10–0:30”.
[0128] In the above embodiments, by acquiring historical water usage data corresponding to the target object, the water usage of the target object within a preset period can be obtained. Then, upon receiving a heating prediction instruction for a target time period, the water usage data for the time period within the target time period is determined from the water usage data of each sub-period. This allows for accurate acquisition of the water usage of the target object within the target time period corresponding to each preset sub-period within the preset period. Next, by combining the water usage data for the time periods corresponding to multiple preset sub-periods, object water usage prediction processing is performed on the target time period to obtain the object water usage prediction result corresponding to the target time period. This can improve the accuracy of object water usage prediction for the target time period. Finally, by combining the object water usage prediction result, the target heating device corresponding to the target object is controlled to perform heating operations, which can reduce energy waste and improve user experience.
[0129] Figure 6 This is a block diagram illustrating a heating device control apparatus according to an exemplary embodiment. Figure 6 As shown, the device may include:
[0130] The first data acquisition module 610 can be used to acquire historical water usage data corresponding to the target object. The historical water usage data is used to indicate the water usage of the target object within a preset period. The historical water usage data includes water usage data of each of the multiple preset sub-periods within the preset period.
[0131] The second data acquisition module 620 can be used to determine the water consumption data for the target time period from the water consumption data of each sub-cycle when a heating prediction instruction for the target time period is received.
[0132] The object water use prediction module 630 can be used to perform object water use prediction processing on a target time period based on water use data corresponding to the time periods of multiple preset sub-periods, and obtain the object water use prediction result corresponding to the target time period; the object water use prediction result is used to indicate the predicted water use of the target object in at least one sub-period within the target time period.
[0133] The control module 640 can be used to control the target heating equipment corresponding to the target object to perform heating operations based on the object's water usage prediction results.
[0134] In one specific embodiment, the above-mentioned object water usage prediction module 630 may include:
[0135] The first matrix acquisition module can be used to generate a first water usage matrix based on water usage data for each time period corresponding to multiple preset sub-periods; the number of rows in the first water usage matrix is the same as the number of multiple preset sub-periods, and the number of columns in the first water usage matrix is the same as the number of sub-time periods contained in the target time period;
[0136] The second matrix acquisition module can be used to determine the second water use matrix data based on the first water use matrix data and the first preset matrix data; the second water use matrix data is used to indicate whether the target object uses water within the target time period of each preset sub-cycle in the preset cycle;
[0137] The instruction information generation module can be used to determine water use instruction information based on the second water use matrix data.
[0138] In one specific embodiment, the above-mentioned indication information generation module may include:
[0139] The first quantity acquisition module can be used to determine the number of elements in the first matrix based on the second water use matrix data; the number of elements in the first matrix is the number of elements in the second water use matrix data that are greater than or equal to the number of elements in the first preset element data.
[0140] The instruction information acquisition module can be used to determine water usage instruction information based on the number of elements in the first matrix.
[0141] In one specific embodiment, the above-mentioned instruction information acquisition module may include a first instruction generation module or a second instruction generation module. The first instruction generation module may be used to determine the water usage instruction information as the first instruction information when the number of first matrix elements is greater than or equal to the number of preset elements. The first instruction information is used to indicate that a heating start-up operation is performed within a target time period. The second instruction generation module may be used to determine the water usage instruction information as the second instruction information when the number of first matrix elements is less than the number of preset elements. The second instruction information is used to indicate that a heating stop-up operation is performed within a target time period.
[0142] In one specific embodiment, the above-described apparatus may further include:
[0143] The third matrix acquisition module can be used to determine the third water use matrix data based on the first water use matrix data and the second preset matrix data; the third water use matrix data is used to indicate the number of sub-cycles in which the target object uses water within each sub-time period in the preset period;
[0144] The time data acquisition module can be used to determine water usage time data based on third-party water usage matrix data.
[0145] In one specific embodiment, the time data acquisition module described above may include:
[0146] The target element acquisition module can be used to filter out at least one target element data from the third water use matrix data; the at least one target element data is an element data in the third water use matrix data that is greater than or equal to a second preset element data;
[0147] The time data generation module can be used to generate water usage time data based on the sub-time periods corresponding to at least one target element data.
[0148] In one specific embodiment, the above-described apparatus may further include:
[0149] The water usage time acquisition module can be used to acquire the current recorded water usage time corresponding to the current update time period when a water usage data update instruction is detected; the current recorded water usage time is the time when the target object started using water within the current update time period;
[0150] The byte data generation module can be used to generate multiple current water usage bytes corresponding to the current update time period based on the current recorded water usage time.
[0151] The data update module can be used to update the water usage data of historical objects based on multiple current water usage bytes, and obtain the updated water usage data of historical objects.
[0152] In one specific embodiment, the above-described apparatus may further include:
[0153] The filtering module can be used to filter the water usage time of objects that are later in the target water usage time pair when the corresponding water usage time interval of the target water usage time pair is less than the preset water usage time interval, so as to obtain the filtered current recorded water usage time; the target water usage time pair is any two adjacent water usage times of objects in the multiple object water usage times;
[0154] Accordingly, the aforementioned byte data generation module may include:
[0155] The execution module can be used to generate multiple bytes of current water usage data corresponding to the current update time period based on the filtered current record water usage time.
[0156] Regarding the apparatus in the above embodiments, the specific manner in which each module and unit performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0157] Figure 7 This is a block diagram illustrating an electronic device for controlling a target heating device based on object water usage prediction results, according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, the electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a heating device control method.
[0158] Figure 8 This is a block diagram illustrating another electronic device for controlling a target heating device based on object water usage prediction results, according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown, the electronic device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a heating device control method. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.
[0159] Those skilled in the art will understand that Figure 7 or Figure 8The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0160] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the heating device control method as described in the embodiments of this disclosure.
[0161] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the heating device control method of the present disclosure embodiments.
[0162] In an exemplary embodiment, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform the heating device control method of the present disclosure embodiments.
[0163] 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. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0164] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0165] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for controlling a heating device, characterized in that, The method includes: Obtain historical water usage data corresponding to the target object. The historical water usage data is used to indicate the water usage of the target object within a preset period. The historical water usage data includes sub-period water usage data corresponding to each of the multiple preset sub-periods within the preset period. Upon receiving a heating prediction instruction for a target time period, the water usage data for the time period within the target time period is determined from the water usage data of each sub-cycle. Based on the water usage data of each time period corresponding to the plurality of preset sub-periods, the target time period is subjected to object water usage prediction processing to obtain the object water usage prediction result corresponding to the target time period; the object water usage prediction result is used to indicate the predicted water usage of the target object in at least one sub-period within the target time period. Based on the water usage prediction results of the target object, control the target heating device corresponding to the target object to perform heating operations; The target water usage prediction result includes water usage indication information, which indicates whether heating operation should be performed within the target time period; the step of performing target water usage prediction processing on the target time period based on the water usage data corresponding to each of the multiple preset sub-cycles to obtain the target water usage prediction result for the target time period includes: Based on the water usage data corresponding to the time periods of the multiple preset sub-periods, a first water usage matrix is generated; the number of rows in the first water usage matrix is the same as the number of the multiple preset sub-periods, and the number of columns in the first water usage matrix is the same as the number of sub-time periods contained in the target time period; Based on the first water usage matrix data and the first preset matrix data, a second water usage matrix data is determined; the second water usage matrix data is used to indicate whether the target object uses water within the target time period of each preset sub-cycle in the preset cycle; Based on the second water usage matrix data, the water usage indication information is determined.
2. The method according to claim 1, characterized in that, The step of determining the water usage indication information based on the second water usage matrix data includes: Based on the second water usage matrix data, the number of elements in the first matrix is determined; the number of elements in the first matrix is the number of elements in the second water usage matrix data that are greater than or equal to the number of elements in the first preset element data. The water usage indication information is determined based on the number of elements in the first matrix.
3. The method according to claim 2, characterized in that, Determining the water usage indication information based on the number of elements in the first matrix includes: If the number of elements in the first matrix is greater than or equal to the number of preset elements, the water usage indication information is determined to be the first indication information, and the first indication information is used to indicate that a heating start-up operation is performed within the target time period. or, If the number of elements in the first matrix is less than the preset number of elements, the water usage indication information is determined to be the second indication information, which is used to indicate that a heating shutdown operation is performed within the target time period.
4. The method according to claim 1, characterized in that, The target time period includes multiple sub-time periods, and the target water usage prediction result also includes water usage time data, which is used to indicate the sub-time periods within the target time period where heating on-time operation is performed; the method further includes: Based on the first water usage matrix data and the second preset matrix data, a third water usage matrix data is determined; the third water usage matrix data is used to indicate the number of sub-cycles in which the target object uses water within each sub-time period in the preset cycle; Based on the third water usage matrix data, the water usage time data is determined.
5. The method according to claim 4, characterized in that, The determination of the water usage time data based on the third water usage matrix data includes: At least one target element data is selected from the third water use matrix data; the at least one target element data is an element data in the third water use matrix data that is greater than or equal to a second preset element data. The water usage time data is generated based on the sub-time periods corresponding to each of the at least one target element data.
6. The method according to claim 1, characterized in that, The water usage data for each preset sub-period includes multiple historical water usage bytes. Each bit in the later preset number of bits within each historical water usage byte is used to indicate whether the target object uses water within the corresponding sub-period. The method further includes: Upon detecting a water usage data update instruction, the current recorded water usage time corresponding to the current update time period is obtained; the current recorded water usage time is the time during which the target object started using water within the current update time period. Based on the currently recorded water usage time, generate multiple current water usage bytes corresponding to the current update time period; Based on the multiple current water usage bytes, the historical object water usage data is updated to obtain the updated historical object water usage data.
7. The method according to claim 6, characterized in that, The currently recorded water usage time includes the water usage time of multiple objects, and the method further includes: If, among the multiple object water usage times, there exists a target water usage time pair whose corresponding water usage time interval is less than a preset water usage time interval, the water usage times of the later objects in the target water usage time pair are filtered to obtain the filtered current recorded water usage time; the target water usage time pair is any two adjacent object water usage times among the multiple object water usage times. The step of generating multiple current water usage bytes corresponding to the current update time period based on the currently recorded water usage time includes: Based on the filtered current recorded water usage time, multiple current water usage bytes corresponding to the current update time period are generated.
8. A control device for heating equipment, characterized in that, The device includes: The first data acquisition module is used to acquire historical water usage data corresponding to the target object. The historical water usage data is used to indicate the water usage of the target object within a preset period. The historical water usage data includes water usage data for each of the multiple preset sub-periods within the preset period. The second data acquisition module is used to determine the time period water consumption data within the target time period from the water consumption data of each sub-cycle when a heating prediction instruction for the target time period is received. The object water use prediction module is used to perform object water use prediction processing on the target time period based on the water use data of the time periods corresponding to the multiple preset sub-periods, and obtain the object water use prediction result corresponding to the target time period; the object water use prediction result is used to indicate the predicted water use of the target object in at least one sub-period within the target time period. The control module is used to control the target heating device corresponding to the target object to perform heating operations based on the water usage prediction results of the object; The object water usage prediction result includes water usage indication information, which is used to indicate whether heating operation should be performed within the target time period; the object water usage prediction module includes: The first matrix acquisition module is used to generate a first water usage matrix based on the water usage data of the time periods corresponding to the plurality of preset sub-periods; the number of rows in the first water usage matrix is the same as the number of the plurality of preset sub-periods, and the number of columns in the first water usage matrix is the same as the number of sub-time periods contained in the target time period; The second matrix acquisition module is used to determine the second water use matrix data based on the first water use matrix data and the first preset matrix data; the second water use matrix data is used to indicate whether the target object uses water within the target time period of each preset sub-cycle in the preset cycle; The indication information generation module is used to determine the water usage indication information based on the second water usage matrix data.
9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the executable instructions to implement the heating device control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Heating processing method and device
CN107655212A
Water heater water consumption amount prediction method and device, water heater and electronic equipment
CN110822724A
