Temperature value determination method and device and computer readable storage medium
By acquiring and correcting historical temperature data, the target temperature prediction model is used to improve the accuracy of temperature prediction, and the increase in energy consumption caused by temperature prediction error in the prior art is solved.
Patent Information
- Application Number
- CN202510209368.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-06-24
AI Technical Summary
Due to factors such as environmental and computing model performance, the prior art often experiences errors in temperature value prediction, resulting in excessive temperature regulation and increased energy consumption.
By obtaining the predicted temperature values and actual temperature values of the target site at multiple historical moments, the initial predicted temperature value is determined based on the target temperature prediction model, and the initial predicted temperature value is corrected by calculation of the correction weight value and temperature difference value to obtain a more accurate predicted temperature value at the target moment.
It improves the accuracy of the temperature value, reduces the error in temperature regulation, and thus reduces energy consumption.
Smart Images

Figure CN120196883A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of temperature prediction, and particularly to a method and apparatus for determining a temperature value and a computer-readable storage medium. Background Art
[0002] In some cases, it is necessary to predict the temperature value of certain places (such as mushroom houses, supermarkets) in order to control the temperature of the places.
[0003] However, due to the influence of factors such as the environment and the performance of the calculation model, there is often an error between the determined temperature value and the actual temperature value, which may over-adjust the temperature, thereby increasing energy consumption. Summary of the Invention
[0004] This application provides a method and apparatus for determining a temperature value and a computer-readable storage medium, which can improve the accuracy of the determined temperature value and reduce energy consumption.
[0005] To achieve the above object, this application adopts the following technical solutions:
[0006] In a first aspect, a method for determining a temperature value is provided. The method includes: obtaining the predicted temperature value and the actual temperature value of a target place at multiple historical moments; the predicted temperature values at multiple historical moments are determined based on a target temperature prediction model; determining an initial predicted temperature value of the target place at a target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments; and correcting the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment.
[0007] In combination with the first aspect, in some embodiments of the first aspect, correcting the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment includes: determining the temperature difference value at each historical moment among multiple historical moments; the temperature difference value is the difference between the predicted temperature value and the actual temperature value at the historical moment; determining an initial correction weight value for each historical moment among multiple historical moments based on a probability density function and the temperature difference value at each historical moment; normalizing the initial correction weight value for each historical moment among multiple historical moments to obtain a target correction weight value for each historical moment; taking the sum of the target products at each historical moment among multiple historical moments as the temperature correction value; the target product is the product of the temperature difference value at the historical moment and the target correction weight value; and taking the difference between the initial predicted temperature value of the target place at the target moment and the temperature correction value as the predicted temperature value of the target place at the target moment.
[0008] In combination with the first aspect, in certain embodiments of the first aspect, determining an initial predicted temperature value of the target field at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments includes: performing abnormal data correction processing on the actual temperature values at multiple historical moments to obtain multiple corrected actual temperature values at multiple historical moments; inputting the multiple corrected actual temperature values at multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target field at the target moment.
[0009] In combination with the first aspect, in certain embodiments of the first aspect, performing abnormal data correction processing on the actual temperature values at multiple historical moments to obtain multiple corrected actual temperature values at multiple historical moments includes: determining a first historical moment and a second historical moment among multiple historical moments; the actual temperature value at the first historical moment is a temperature value within a preset normal temperature range, and the actual temperature value at the second historical moment is a temperature value outside the preset normal temperature range; constructing a B-spline curve based on the actual temperature value at the first historical moment; using the temperature value corresponding to the second historical moment in the B-spline curve as the corrected actual temperature value at the second historical moment to determine multiple corrected actual temperature values at multiple historical moments.
[0010] In combination with the first aspect, in certain embodiments of the first aspect, determining multiple corrected actual temperature values at multiple historical moments includes: determining a target first historical moment among the first historical moments; the absolute value of the difference between the actual temperature value at the target first historical moment and the temperature value at the target first historical moment in the B-spline curve is greater than a preset threshold; using the temperature value corresponding to the target first historical moment in the B-spline curve as the corrected actual temperature value at the target first historical moment to obtain multiple corrected actual temperature values at multiple historical moments.
[0011] In a second aspect, a temperature value determination device is provided for implementing the temperature value determination method of the first aspect above. The temperature value determination device includes corresponding modules, units, or means for implementing the above method. The module, unit, or means can be implemented by hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
[0012] In combination with the second aspect, in certain embodiments of the second aspect, the apparatus includes: an acquisition module and a processing module; the acquisition module is configured to acquire the predicted temperature values and the actual temperature values of the target location at multiple historical moments; the predicted temperature values at multiple historical moments are determined based on the target temperature prediction model; the processing module is configured to determine the initial predicted temperature value of the target location at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments; the processing module is further configured to correct the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments to obtain the predicted temperature value of the target location at the target moment.
[0013] In combination with the second aspect, in certain embodiments of the second aspect, the processing module is further configured to correct the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments to obtain the predicted temperature value of the target location at the target moment, including: determining the temperature difference value at each of the multiple historical moments; the temperature difference value is the difference between the predicted temperature value and the actual temperature value at the historical moment; based on the probability density function and the temperature difference value at each of the multiple historical moments, determining the initial correction weight value at each historical moment; performing a normalization process on the initial correction weight value at each of the multiple historical moments to obtain the target correction weight value at each historical moment; taking the sum of the target products at each of the multiple historical moments as the temperature correction value; the target product is the product of the temperature difference value at the historical moment and the target correction weight value; taking the difference between the initial predicted temperature value of the target location at the target moment and the temperature correction value as the predicted temperature value of the target location at the target moment.
[0014] In combination with the second aspect, in certain embodiments of the second aspect, the processing module is configured to determine the initial predicted temperature value of the target location at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments, including: performing abnormal data correction processing on the actual temperature values at multiple historical moments to obtain the corrected actual temperature values at multiple historical moments; inputting the corrected actual temperature values at multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target location at the target moment.
[0015] In combination with the second aspect, in some embodiments of the second aspect, the processing module is further configured to perform abnormal data correction processing on the actual temperature values at multiple historical moments to obtain the corrected actual temperature values at multiple historical moments, including: determining a first historical moment and a second historical moment among the multiple historical moments; the actual temperature value at the first historical moment is a temperature value within a preset normal temperature range, and the actual temperature value at the second historical moment is a temperature value outside the preset normal temperature range; constructing a B-spline curve based on the actual temperature value at the first historical moment; using the temperature value corresponding to the second historical moment in the B-spline curve as the corrected actual temperature value at the second historical moment, and determining the corrected actual temperature values at multiple historical moments.
[0016] In combination with the second aspect, in some embodiments of the second aspect, the processing module is further configured to determine the corrected actual temperature values at multiple historical moments, including: determining a target first historical moment among the first historical moments; the absolute value of the difference between the actual temperature value at the target first historical moment and the temperature value at the target first historical moment in the B-spline curve is greater than a preset threshold; using the temperature value corresponding to the target first historical moment in the B-spline curve as the corrected actual temperature value at the target first historical moment, and obtaining the corrected actual temperature values at multiple historical moments.
[0017] In a third aspect, a temperature value determination device is provided, including: at least one processor and a memory for storing instructions executable by the processor; wherein, the processor is configured to execute the instructions to implement the method provided in the first aspect and any one of its possible embodiments.
[0018] In a fourth aspect, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of the temperature value determination device, the temperature value determination device can execute the method provided in the first aspect and any one of its possible embodiments.
[0019] In a fifth aspect, a computer program product containing instructions is provided. When it runs on a computer, the computer can execute the method provided in the first aspect and any one of its possible embodiments.
[0020] Based on the solution of the present application, the predicted temperature values and actual temperature values determined based on the target temperature prediction model at multiple historical moments of the target location are obtained. Subsequently, an initial predicted temperature value of the target location at the target moment is determined based on the target temperature prediction model and the actual temperature values at multiple historical moments. Subsequently, the initial predicted temperature value is corrected according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target location at the target moment. The initial predicted temperature value can be corrected, thereby improving the accuracy of the determined temperature value and reducing energy consumption.
[0021] Among them, for the technical effects brought by any one of the second to fifth aspects, reference may be made to the technical effects brought by different embodiments of the first aspect above, which will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 FIG. is a schematic structural diagram of a temperature value determination system provided by the present application;
[0023] Figure 2 FIG. is a schematic flowchart of a temperature value determination method provided by the present application;
[0024] Figure 3 FIG. is a schematic flowchart of another temperature value determination method provided by the present application;
[0025] Figure 4 FIG. is a schematic flowchart of another temperature value determination method provided by the present application;
[0026] Figure 5 FIG. is a schematic flowchart of another temperature value determination method provided by the present application;
[0027] Figure 6 FIG. is a schematic structural diagram of a temperature value determination device provided by the present application;
[0028] Figure 7 FIG. is a schematic structural diagram of another temperature value determination device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0029] In the description of the present application, unless otherwise specified, "a plurality" means two or more than two. "At least one (item)" or a similar expression thereof refers to any combination of these items, including any combination of a single item or plural items. For example, at least one (item) of a, b, or c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c may be single or multiple.
[0030] In addition, for the sake of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the terms "first" and "second" do not limit the quantity and execution order, and the terms "first" and "second" do not necessarily mean different.
[0031] Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner for easy understanding.
[0032] It can be understood that the "embodiments" mentioned throughout the specification mean that specific features, structures, or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, the various embodiments throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. It can be understood that in various embodiments of the present application, the magnitude of the sequence numbers of the various processes does not mean the order of execution is prior or subsequent, and the order of execution of the various processes should be determined by their functions and internal logics, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0033] It can be understood that in the present application, "when", "if", and "in case" all refer to corresponding processing under certain objective circumstances, not limited to time, and do not require a judgment action when implemented, nor do they mean there are other limitations.
[0034] It can be understood that some optional features in the embodiments of the present application can, in some scenarios, be implemented independently without relying on other features, such as the current scheme they are based on, to solve corresponding technical problems and achieve corresponding effects. In some scenarios, they can also be combined with other features according to requirements. Correspondingly, the devices given in the embodiments of the present application can also implement these features or functions accordingly, which will not be elaborated here.
[0035] In the present application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. In the various embodiments of the present application, as well as in the various implementation methods of each embodiment, if there is no special specification and logical conflict, the terms and / or descriptions between different embodiments, as well as between the various implementation methods of each embodiment, are consistent and can be mutually referred to. The technical features in different embodiments, as well as in the various implementation methods of each embodiment, can be combined to form new embodiments, implementation manners, implementation methods, or implementation ways according to their internal logical relationships. The following embodiments of the present application do not constitute a limitation to the protection scope of the present application.
[0036] In some cases, it is necessary to predict the temperature value of certain places (such as mushroom houses) in order to regulate the temperature of the places.
[0037] However, due to factors such as the environment and the performance of the computational model, there is often an error between the determined temperature value and the actual temperature value, which may over-adjust the temperature, thereby increasing energy consumption.
[0038] To solve the above problems, the present application provides a method for determining a temperature value, which includes: obtaining the predicted temperature values and actual temperature values of the target field at multiple historical moments; the predicted temperature values at multiple historical moments are determined based on a target temperature prediction model; determining an initial predicted temperature value of the target field at a target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments; and correcting the initial predicted temperature value according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target field at the target moment.
[0039] Based on this solution, the predicted temperature values and actual temperature values of the target field at multiple historical moments determined based on the target temperature prediction model are obtained. Subsequently, an initial predicted temperature value of the target field at the target moment is determined based on the target temperature prediction model and the actual temperature values at multiple historical moments. Subsequently, the initial predicted temperature value is corrected according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target field at the target moment, which can correct the initial predicted temperature value, thereby improving the accuracy of the determined temperature value and reducing energy consumption.
[0040] Figure 1 The following is a schematic diagram of the architecture of a temperature value determination system provided by the present application. The technical solution of the embodiments of the present application can be applied to Figure 1 the temperature value determination system shown in Figure 1 As shown, the temperature value determination system 10 includes a temperature value determination device 11 and an electronic device 12.
[0041] Among them, the temperature value determination device 11 is directly or indirectly connected to the electronic device 12. In this connection relationship, a wired connection or a wireless connection can be used, and the embodiments of the present application do not make any limitations in this regard.
[0042] Data interaction can be carried out between the temperature value determination device 11 and the electronic device 12.
[0043] It should be noted that the temperature value determination device 11 and the electronic device 12 can be independent devices or integrated into the same device, and the present application does not make specific limitations in this regard.
[0044] When the temperature value determination device 11 and the electronic device 12 are integrated into the same device, the communication method between the temperature value determination device 11 and the electronic device 12 is the communication between internal modules of the device. In this case, the communication process between the two is the same as the "communication process between the temperature value determination device 11 and the electronic device 12 when they are independent of each other".
[0045] In the following embodiments provided by the present application, the present application takes the temperature value determination device 11 and the electronic device 12 being independently arranged as an example for illustration.
[0046] In practical applications, the temperature value determination method provided by the embodiments of the present application can be applied to the temperature value determination device 11, or can also be applied to the devices included in the temperature value determination device 11.
[0047] Next, with reference to the accompanying drawings, taking the temperature value determination method being applied to the temperature value determination device 11 as an example, the temperature value determination method provided by the embodiments of the present application will be described.
[0048] Figure 2 is a schematic flowchart of a temperature value determination method provided by the present application, as Figure 2 shown, the method includes the following steps:
[0049] S201. The temperature value determination device obtains the predicted temperature values and actual temperature values of the target location at multiple historical moments.
[0050] Among them, the predicted temperature values at multiple historical moments are determined based on the target temperature prediction model.
[0051] It should be noted that the target location can be a mushroom house, a game hall, a supermarket. Of course, the target location can also be other locations, and the present application does not make specific limitations on this.
[0052] The time interval between any two adjacent historical moments among multiple historical moments can be the same or different, and the present application does not make specific limitations on this.
[0053] The time interval between any two adjacent historical moments among multiple historical moments can be of any duration, and the present application does not make specific limitations on this.
[0054] The target temperature prediction model can include a CNN structure and a GRU structure, and predicts the temperature value based on the attention mechanism. Of course, the target temperature prediction model can also include other neural network structures, and the present application does not make specific limitations on this.
[0055] As a possible implementation manner, in combination with Figure 1 , the temperature value determination device receives a message from the electronic device, and the message includes the predicted temperature values and actual temperature values of the target location at multiple historical moments. The temperature value determination device obtains the predicted temperature values and actual temperature values of the target location at multiple historical moments from the message.
[0056] S202. The temperature value determination device determines the initial predicted temperature value of the target location at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments.
[0057] It should be noted that the time interval between the target moment and the last historical moment among multiple historical moments may be the same as or different from the time interval between any two adjacent historical moments among multiple historical moments. This application does not make specific restrictions on this.
[0058] As a possible implementation, the temperature value determination device performs abnormal data correction processing on the actual temperature values of multiple historical moments to obtain multiple corrected actual temperature values of multiple historical moments; inputs the multiple corrected actual temperature values of multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target location at the target moment.
[0059] It should be noted that the specific description of this possible implementation can refer to the relevant description in the subsequent part of this application, and this application will not elaborate here for the time being.
[0060] As another possible implementation, the temperature value determination device inputs the actual temperature values of multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target location at the target moment.
[0061] It should be noted that the specific scheme for the target temperature prediction model to predict temperature values can refer to existing schemes, and this application will not elaborate here.
[0062] S203. The temperature value determination device corrects the initial predicted temperature value according to the predicted temperature values and actual temperature values of multiple historical moments to obtain the predicted temperature value of the target location at the target moment.
[0063] As a possible implementation, the temperature value determination device determines the temperature difference value of each historical moment among multiple historical moments; the temperature difference value is the difference between the predicted temperature value and the actual temperature value of the historical moment; based on the probability density function and the temperature difference value of each historical moment among multiple historical moments, determines the initial correction weight value of each historical moment; performs normalization processing on the initial correction weight value of each historical moment among multiple historical moments to obtain the target correction weight value of each historical moment; takes the sum of the target products of each historical moment among multiple historical moments as the temperature correction value; the target product is the product of the temperature difference value of the historical moment and the target correction weight value; takes the difference between the initial predicted temperature value of the target location at the target moment and the temperature correction value as the predicted temperature value of the target location at the target moment.
[0064] It should be noted that the specific description of this possible implementation can refer to the relevant description in the subsequent part of this application, and this application will not elaborate here for the time being.
[0065] Based on S201 - S203, the predicted temperature values and actual temperature values of the target location at multiple historical moments determined by the target temperature prediction model are obtained. Subsequently, based on the target temperature prediction model and the actual temperature values at multiple historical moments, the initial predicted temperature value of the target location at the target moment is determined. Then, the initial predicted temperature value is corrected according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target location at the target moment. The initial predicted temperature value can be corrected, thereby improving the accuracy of the determined temperature value and reducing energy consumption.
[0066] The above is a general description of the temperature value determination method provided by this application. Next, the temperature value determination method provided by this application will be further described with reference to the accompanying drawings.
[0067] In one design, Figure 3 is a schematic flowchart of another temperature value determination method provided by this application. As Figure 3 shown, S203 provided in the specific implementation manner of this application may specifically include the following multiple steps:
[0068] S301. The temperature value determination device determines the temperature difference value at each of the multiple historical moments.
[0069] Among them, the temperature difference value is the difference between the predicted temperature value and the actual temperature value at the historical moment.
[0070] As a possible implementation manner, taking the multiple historical moments including 5 historical moments as an example, if the predicted temperature value at the first historical moment is 15°C and the actual temperature value is 13°C, the predicted temperature value at the second historical moment is 17°C and the actual temperature value is 18°C, the predicted temperature value at the third historical moment is 18°C and the actual temperature value is 17°C, the predicted temperature value at the fourth historical moment is 20°C and the actual temperature value is 19°C, and the predicted temperature value at the fifth historical moment is 22°C and the actual temperature value is 24°C, the temperature value determination device determines that the temperature difference value at the first historical moment is 2°C, the temperature difference value at the second historical moment is -1°C, the temperature difference value at the third historical moment is 1°C, the temperature difference value at the fourth historical moment is 1°C, and the temperature difference value at the fifth historical moment is -2°C.
[0071] S302. The temperature value determination device determines the initial correction weight value at each historical moment based on the probability density function and the temperature difference value at each of the multiple historical moments.
[0072] As a possible implementation, taking the example in S301, the temperature value determination device determines that the initial correction weight value at the first historical moment is 0.054 based on the probability density function, the initial correction weight value at the second historical moment is 0.121, the initial correction weight value at the third historical moment is 0.195, the initial correction weight value at the fourth historical moment is 0.225, and the initial correction weight value at the fifth historical moment is 0.199.
[0073] It should be noted that the specific description of determining the initial correction weight value based on the probability density function can refer to existing solutions, and this application will not elaborate on it here.
[0074] S303. The temperature value determination device normalizes the initial correction weight value at each historical moment among multiple historical moments to obtain the target correction weight value at each historical moment.
[0075] As a possible implementation, taking the example in S302, the temperature value normalizes the initial correction weight values at 5 historical moments, and determines that the target correction weight value at the first historical moment is 0.068, the target correction weight value at the second historical moment is 0.152, the target correction weight value at the third historical moment is 0.245, the target correction weight value at the fourth historical moment is 0.283, and the target correction weight value at the fifth historical moment is 0.252.
[0076] It should be noted that the specific description of normalizing the determined initial correction weight value can refer to existing solutions, and this application will not elaborate on it here.
[0077] In this way, the sum of the target correction weight values at multiple historical moments can be made equal to 1.
[0078] S304. The temperature value determination device takes the sum of the target products at each historical moment among multiple historical moments as the temperature correction value.
[0079] Among them, the target product is the product of the temperature difference value at the historical moment and the target correction weight value.
[0080] As a possible implementation, taking the example in S303, the temperature value determination device determines that the target product at the first historical moment is 2°C × 0.068 = 0.136°C, and the target product at the second historical moment is -1°C ×
[0081] 0.152 = -0.152 °C, the target product at the third historical moment is 1 °C × 0.245 = 0.245 °C, the target product at the fourth historical moment is 1 °C × 0.283 = 0.283 °C, and the target product at the fifth historical moment is -2 °C × 0.252 = -0.504 °C. The temperature correction value is determined by adding the five target products, which is -0.092 °C.
[0082] S305. The temperature value determination device uses the difference between the initial predicted temperature value of the target field at the target moment and the temperature correction value as the predicted temperature value of the target field at the target moment.
[0083] As a possible implementation, taking the example in S304, if the initial predicted temperature value of the target field at the target moment is 23 °C, the temperature value determination device determines that the predicted temperature value of the target field at the target moment is 23 °C - (-0.092 °C) = 23.092 °C.
[0084] Based on S301 - S305, by determining the temperature difference value for each historical moment among multiple historical moments; the temperature difference value is the difference between the predicted temperature value and the actual temperature value at the historical moment. Then, based on the probability density function and the temperature difference value for each historical moment among multiple historical moments, the initial correction weight value for each historical moment is determined. Then, the initial correction weight value for each historical moment among multiple historical moments is normalized to obtain the target correction weight value for each historical moment. Then, the sum of the target products for each historical moment among multiple historical moments is used as the temperature correction value; the target product is the product of the temperature difference value at the historical moment and the target correction weight value. Based on the predicted temperature values and actual temperature values of the target field at multiple historical moments, the deviation between the temperature value predicted by the target temperature prediction model and the actual temperature value is determined, that is, the temperature correction value. Then, the difference between the initial predicted temperature value of the target field at the target moment is used as the predicted temperature value of the target field at the target moment, thereby improving the accuracy of the determined temperature value.
[0085] In one design, Figure 4 is a flowchart of another temperature value determination method provided by this application. As Figure 4 shown, S202 provided in the specific implementation manner of this application may specifically include the following multiple steps:
[0086] S401. The temperature value determination device performs abnormal data correction processing on the actual temperature values of multiple historical moments to obtain the corrected actual temperature values of multiple historical moments.
[0087] As a possible implementation, the temperature value determination device determines a first historical moment and a second historical moment among multiple historical moments; the actual temperature value at the first historical moment is within the preset normal temperature range, and the actual temperature value at the second historical moment is outside the preset normal temperature range; a B-spline curve is constructed based on the actual temperature value at the first historical moment; the temperature value corresponding to the second historical moment in the B-spline curve is used as the corrected actual temperature value at the second historical moment, and the corrected actual temperature values of the multiple historical moments are determined.
[0088] It should be noted that the specific description of this possible implementation can refer to the relevant description in the subsequent part of the specific implementation manner of this application, and this application will not elaborate here for the time being.
[0089] As another possible implementation, the temperature value determination device performs abnormal data correction processing on the actual temperature values of multiple historical moments based on the binning method to obtain the corrected actual temperature values of the multiple historical moments.
[0090] It should be noted that the specific description of this possible implementation can refer to existing solutions, and this application will not elaborate here.
[0091] S402. The temperature value determination device inputs the corrected actual temperature values of multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target field at the target moment.
[0092] When the time interval between the target moment and the last historical moment among the multiple historical moments is different from the time interval between any two adjacent historical moments among the multiple historical moments, the temperature value determination device can also input the target moment into the target temperature prediction model so that the target temperature prediction model predicts the initial predicted temperature value of the target field at the target moment.
[0093] When the time interval between the target moment and the last historical moment among the multiple historical moments is the same as the time interval between any two adjacent historical moments among the multiple historical moments, the temperature value determination device does not need to input the target moment into the target temperature prediction model, and the target temperature prediction model can determine the target moment according to the time interval between the multiple historical moments and predict the initial predicted temperature value of the target field at the target moment.
[0094] Based on S401 - S402, by performing abnormal data correction processing on multiple actual temperature values to obtain the corrected multiple actual temperature values, the quality of the data input into the target temperature prediction model can be improved, the accuracy of the initial predicted temperature value output by the target temperature prediction model can be improved, and further the accuracy of the determined temperature value can be improved.
[0095] In one design, Figure 5The flowchart of another temperature value determination method provided by this application is shown as follows. Figure 5 As shown in and
[0096] , S401 provided in the specific implementation manner of this application may specifically include the following multiple steps:
[0096] S501. The temperature value determination device determines the first historical moment and the second historical moment among multiple historical moments.
[0097] Among them, the actual temperature value at the first historical moment is within the preset normal temperature range, and the actual temperature value at the second historical moment is outside the preset normal temperature range.
[0098] It should be noted that the preset normal temperature range can be [14°C, 21°C]. Of course, the preset normal temperature range can also be a temperature range of other values, and this application does not make specific limitations on this.
[0099] In some embodiments, the second historical moment may also include a historical moment with a null actual temperature value.
[0100] As a possible implementation manner, taking the example in S301, if the preset normal temperature range is [10°C, 21°C], the actual temperature values at the first historical moment, the second historical moment, the third historical moment, and the fourth historical moment are within the preset normal temperature range, and the actual temperature value at the fifth historical moment is outside the preset normal temperature range. The temperature value determination device determines that the first historical moment includes the first historical moment, the second historical moment, the third historical moment, and the fourth historical moment, and the second historical moment includes the fifth historical moment.
[0101] S502. The temperature value determination device constructs a B-spline curve based on the actual temperature value at the first historical moment.
[0102] It should be noted that the B-spline curve includes the temperature values corresponding to each historical moment among multiple historical moments.
[0103] S503. The temperature value determination device uses the temperature value corresponding to the second historical moment in the B-spline curve as the corrected actual temperature value at the second historical moment, and determines the corrected actual temperature values of multiple historical moments.
[0104] As a possible implementation manner, taking the example in S501, if the temperature value corresponding to the fifth historical moment in the B-spline interval is 21°C, the temperature value determination device uses 21°C as the corrected actual temperature value at the fifth historical moment to obtain the corrected actual temperature values of multiple historical moments.
[0105] As another possible implementation, taking the example in S501, if the temperature value corresponding to the fifth historical moment in the B-spline interval is 21°C, the temperature value determination device takes 21°C as the corrected actual temperature value of the fifth historical moment.
[0106] Thereafter, the temperature value determination device determines the target first historical moment among the first historical moments; the absolute value of the difference between the actual temperature value of the target first historical moment and the temperature value of the target first historical moment in the B-spline curve is greater than a preset threshold. The temperature value corresponding to the target first historical moment in the B-spline curve is taken as the corrected actual temperature value of the target first historical moment, and corrected actual temperature values of multiple historical moments are obtained.
[0107] The preset threshold can be 3°C, 4°C. Of course, the preset threshold can also be other values, and this application does not make specific limitations on this.
[0108] Exemplarily, taking the preset threshold as 3°C as an example, if the temperature value corresponding to the first historical moment in the B-spline curve is 19°C and the actual temperature value of the first historical moment is 15°C, and the absolute value of the difference between the two is greater than the preset threshold, the temperature value determination device determines the first historical moment as the target first historical moment among the first historical moments, and takes the temperature value corresponding to the first historical moment in the B-spline curve as the corrected actual temperature value of the first historical moment, and corrected actual temperature values of multiple historical moments are obtained.
[0109] In this way, by determining the target first historical moment among the first historical moments, since the absolute value of the difference between the actual temperature value of the target first historical moment and the temperature value of the target first historical moment in the B-spline curve is greater than the preset threshold, it indicates that there is a deviation in the actual temperature value of the target first historical moment. Thereafter, taking the temperature value corresponding to the target first historical moment in the B-spline curve as the corrected actual temperature value of the target first historical moment, and obtaining corrected actual temperature values of multiple historical moments, the quality of the data can be further improved.
[0110] Based on S501 - S503, by determining the first historical moment and the second historical moment among multiple historical moments; the actual temperature value of the first historical moment is a temperature value within the preset normal temperature range, and the actual temperature value of the second historical moment is a temperature value outside the preset normal temperature range. Thereafter, a B-spline curve is constructed based on the actual temperature value of the first historical moment. Thereafter, the actual temperature value of the second historical moment is replaced with the temperature value corresponding to the second historical moment in the B-spline curve, and corrected actual temperature values of multiple historical moments are obtained. The temperature value outside the preset normal temperature range can be corrected based on the temperature value within the preset normal temperature range, thereby improving the quality of the data.
[0111] The above mainly introduced the solution provided by the embodiments of the present application from the perspective of the temperature value determination device executing the temperature value determination method. To implement the above functions, the temperature value determination device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0112] The embodiments of the present application can divide the function modules of the temperature value determination device according to the above method examples. For example, each function module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software function module. Optionally, the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation. In addition, the "module" here can refer to a specific application-specific integrated circuit (ASIC), a circuit, a processor and a memory that execute one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.
[0113] In the case of adopting the function module division, Figure 6 shows a schematic structural diagram of a temperature value determination device. As Figure 6 shown, the temperature value determination device 60 includes an acquisition module 601 and a processing module 602.
[0114] In some embodiments, the temperature value determination device 60 may further include a storage module ( Figure 6 not shown in the figure), which is used to store program instructions and data.
[0115] Among them, the acquisition module 601 is used to acquire the predicted temperature values and actual temperature values of the target location at multiple historical moments; the predicted temperature values at multiple historical moments are determined based on the target temperature prediction model; the processing module 602 is used to determine the initial predicted temperature value of the target location at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments; the processing module 602 is further used to correct the initial predicted temperature value according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target location at the target moment.
[0116] Optionally, the processing module 602 is further configured to correct the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments, so as to obtain the predicted temperature value of the target field at the target moment, including: determining the temperature difference value at each historical moment among the multiple historical moments; the temperature difference value is the difference between the predicted temperature value and the actual temperature value at the historical moment; determining the initial correction weight value at each historical moment based on the probability density function and the temperature difference value at each historical moment among the multiple historical moments; performing normalization processing on the initial correction weight value at each historical moment among the multiple historical moments to obtain the target correction weight value at each historical moment; taking the sum of the target products at each historical moment among the multiple historical moments as the temperature correction value; the target product is the product of the temperature difference value at the historical moment and the target correction weight value; taking the difference between the initial predicted temperature value of the target field at the target moment and the temperature correction value as the predicted temperature value of the target field at the target moment.
[0117] Optionally, the processing module 602 is configured to determine the initial predicted temperature value of the target field at the target moment based on the target temperature prediction model and the actual temperature values at multiple historical moments, including: performing abnormal data correction processing on the actual temperature values at multiple historical moments to obtain the corrected actual temperature values at multiple historical moments; inputting the corrected actual temperature values at multiple historical moments into the target temperature prediction model to obtain the initial predicted temperature value of the target field at the target moment.
[0118] Optionally, the processing module 602 is further configured to perform abnormal data correction processing on the actual temperature values at multiple historical moments to obtain the corrected actual temperature values at multiple historical moments, including: determining the first historical moment and the second historical moment among the multiple historical moments; the actual temperature value at the first historical moment is the temperature value within the preset normal temperature range, and the actual temperature value at the second historical moment is the temperature value outside the preset normal temperature range; constructing a B-spline curve based on the actual temperature value at the first historical moment; taking the temperature value corresponding to the second historical moment in the B-spline curve as the corrected actual temperature value at the second historical moment, and determining the corrected actual temperature values at multiple historical moments.
[0119] Optionally, the processing module 602 is further configured to determine the corrected actual temperature values at multiple historical moments, including: determining the target first historical moment in the first historical moment; the absolute value of the difference between the actual temperature value at the target first historical moment and the temperature value at the target first historical moment in the B-spline curve is greater than the preset threshold; taking the temperature value corresponding to the target first historical moment in the B-spline curve as the corrected actual temperature value at the target first historical moment to obtain the corrected actual temperature values at multiple historical moments.
[0120] All relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be elaborated here.
[0121] In the case where the functions of the above function modules are implemented in the form of hardware, Figure 7 FIG. shows a schematic structural diagram of another temperature value determination device. As Figure 7 shown, the temperature value determination device 70 includes a processor 701, a memory 702, and a bus 703. The processor 701 and the memory 702 can be connected through the bus 703.
[0122] The processor 701 is the control center of the temperature value determination device 70, and can be a single processor or a collective term for multiple processing elements. For example, the processor 701 can be a general-purpose central processing unit (CPU), or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0123] As an embodiment, the processor 701 can include one or more CPUs, such as Figure 7 the CPU0 and CPU1 shown in
[0124] The memory 702 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0125] As a possible implementation, the memory 702 can exist independently of the processor 701. The memory 702 can be connected to the processor 701 through the bus 703 for storing instructions or program codes. When the processor 701 calls and executes the instructions or program codes stored in the memory 702, the temperature value determination method provided in the embodiments of the present application can be implemented.
[0126] In another possible implementation, the memory 702 can also be integrated with the processor 701.
[0127] The bus 703 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 7 it is only represented by a thick line in Figure 7 , but it does not mean that there is only one bus or one type of bus.
[0128] It should be noted that Figure 7 the structure shown does not constitute a limitation on the temperature value determination device 70. Except Figure 7 for the components shown, the temperature value determination device 70 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0129] As an example, in combination with Figure 6 , the functions implemented by the acquisition module 601 and the processing module 602 in the temperature value determination device 60 are the same as Figure 7 the functions of the processor 701 in Figure 7 .
[0130] Optionally, as shown in Figure 7 Figure 7 , the temperature value determination device 70 provided in the embodiments of the present application may further include a communication interface 704.
[0131] The communication interface 704 is used to connect to other devices through a communication network. The communication network can be an Ethernet, a wireless access network, a wireless local area network (WLAN), etc. The communication interface 704 may include a receiving unit for receiving data and a sending unit for sending data.
[0132] In a possible implementation manner, in the temperature value determination device 70 provided in the embodiments of the present application, the communication interface 704 may also be integrated in the processor 701, and the embodiments of the present application do not make specific limitations on this.
[0133] As a possible product form, the temperature value determination device according to the embodiments of the present application can also be implemented by using the following: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing various functions described throughout the present application.
[0134] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above functional units is used as an example for illustration. In actual applications, the above functions can be allocated to different functional units according to needs, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0135] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program or instruction is stored. When the computer program or instruction is executed, the computer is caused to execute each step in the method flow shown in the foregoing method embodiments.
[0136] The embodiments of the present application provide a computer program product containing instructions. When the instructions run on a computer, the computer is caused to execute each step in the method flow shown in the foregoing method embodiments.
[0137] The embodiments of the present application provide a chip system, including: a processor and an interface circuit; the interface circuit is configured to receive a computer program or instruction and transmit it to the processor; the processor is configured to execute the computer program or instruction so that the chip system executes each step in the method flow shown in the foregoing method embodiments.
[0138] Among them, a computer-readable storage medium can be, for example, but not limited to, a system, device, or component of electricity, magnetism, light, electromagnetic, infrared ray, or semiconductor, or any combination of the above. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection with one or more wires, a portable computer disk, a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in a specific-purpose ASIC. In the embodiments of the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or component.
[0139] Since the temperature value determination device, computer-readable storage medium, and computer program product provided in this embodiment can be applied to the temperature value determination method provided in the above, therefore, the technical effects that can be obtained can also refer to the method embodiments above, and the embodiments of the present application will not be elaborated here.
[0140] Although the present application has been described in conjunction with various embodiments herein, however, in the process of implementing the claimed present application, those skilled in the art can understand and achieve other changes of the disclosed embodiments by viewing the drawings, the disclosure content, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude a plurality of cases. A single processor or other unit can implement several functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0141] Although the present application has been described in connection with specific features and their embodiments, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the present application. Accordingly, the present specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.
Claims
1. A method for determining a temperature value, characterized in that: The method comprises: Obtaining predicted temperature values and actual temperature values of a target location at multiple historical moments; the predicted temperature values at the multiple historical moments are determined based on a target temperature prediction model; Determining an initial predicted temperature value of the target place at a target time based on the target temperature prediction model and the actual temperature values at the multiple historical times; The initial predicted temperature value is corrected according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment.
2. The method according to claim 1, characterized in that The step of correcting the initial predicted temperature value according to the predicted temperature values and the actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment includes: Determine a temperature difference value at each of the multiple historical moments; the temperature difference value is a difference between a predicted temperature value and an actual temperature value at the historical moment; Determine an initial correction weight value for each historical moment based on the probability density function and the temperature difference value at each of the multiple historical moments; Normalizing the initial revised weight value of each historical moment in the multiple historical moments to obtain a target revised weight value of each historical moment; The sum of the target products of each of the multiple historical moments is used as the temperature correction value; the target product is the product of the temperature difference value of the historical moment and the target correction weight value; The difference between the initial predicted temperature value of the target location at the target time and the temperature correction value is used as the predicted temperature value of the target location at the target time.
3. The method according to claim 1 or 2, characterized in that: The determining the initial predicted temperature value of the target place at the target time based on the target temperature prediction model and the actual temperature values at the multiple historical times includes: Performing abnormal data correction processing on the actual temperature values at the multiple historical moments to obtain a plurality of corrected actual temperature values at the multiple historical moments; The corrected multiple actual temperature values at the multiple historical moments are input into the target temperature prediction model to obtain the initial predicted temperature value of the target place at the target moment.
4. The method according to claim 3, characterized in that The performing abnormal data correction processing on the actual temperature values at the multiple historical moments to obtain the corrected multiple actual temperature values at the multiple historical moments includes: Determine a first historical moment and a second historical moment among the multiple historical moments; the actual temperature value of the first historical moment is a temperature value within a preset normal temperature range, and the actual temperature value of the second historical moment is a temperature value outside the preset normal temperature range; constructing a B-spline curve based on the actual temperature value at the first historical moment; The temperature value corresponding to the second historical moment in the B-spline curve is used as the corrected actual temperature value of the second historical moment, and multiple corrected actual temperature values of the multiple historical moments are determined.
5. The method according to claim 4, characterized in that The determining of the corrected multiple actual temperature values at the multiple historical moments comprises: Determine a target first historical moment in the first historical moment; the absolute value of the difference between the actual temperature value of the target first historical moment and the temperature value of the target first historical moment in the B-spline curve is greater than a preset threshold; The temperature value corresponding to the first historical moment of the target in the B-spline curve is used as the corrected actual temperature value of the first historical moment of the target, so as to obtain multiple corrected actual temperature values of the multiple historical moments.
6. A temperature value determination device, characterized in that: The device comprises: an acquisition module and a processing module; The acquisition module is used to acquire predicted temperature values and actual temperature values of the target place at multiple historical moments; the predicted temperature values at the multiple historical moments are determined based on the target temperature prediction model; The processing module is used to determine the initial predicted temperature value of the target place at the target time based on the target temperature prediction model and the actual temperature values of the multiple historical times; The processing module is further used to correct the initial predicted temperature value according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment.
7. The device according to claim 6, characterized in that The processing module is further used to correct the initial predicted temperature value according to the predicted temperature values and actual temperature values at multiple historical moments to obtain the predicted temperature value of the target place at the target moment, including: Determine a temperature difference value at each of the multiple historical moments; the temperature difference value is a difference between a predicted temperature value and an actual temperature value at the historical moment; Determine an initial correction weight value for each historical moment based on the probability density function and the temperature difference value at each of the multiple historical moments; Normalizing the initial revised weight value of each historical moment in the multiple historical moments to obtain a target revised weight value of each historical moment; The sum of the target products of each of the multiple historical moments is used as the temperature correction value; the target product is the product of the temperature difference value of the historical moment and the target correction weight value; The difference between the initial predicted temperature value of the target location at the target time and the temperature correction value is used as the predicted temperature value of the target location at the target time.
8. The device according to claim 6 or 7, characterized in that The processing module is used to determine the initial predicted temperature value of the target place at the target time based on the target temperature prediction model and the actual temperature values at the multiple historical times, including: Performing abnormal data correction processing on the actual temperature values at the multiple historical moments to obtain a plurality of corrected actual temperature values at the multiple historical moments; The corrected multiple actual temperature values at the multiple historical moments are input into the target temperature prediction model to obtain the initial predicted temperature value of the target place at the target moment.
9. A temperature value determination device, characterized in that: The temperature value determination device comprises: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the device executes the method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 5.
Citation Information
Cited By
Temperature detection method and system, air conditioner, device and storage medium
CN121655083A