A method, device and medium for predicting temperature of multiple areas of a building

By establishing teacher and student models for multiple areas of the building, combined with linear fitting and loss calculation, the complexity of multi-area temperature prediction is solved, efficient and accurate temperature prediction is achieved, and energy consumption is reduced.

CN116629133BActive Publication Date: 2024-10-18SHANDONG DAWEI INT ARCHITECTURE DESIGN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310638137.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-10-18
Estimated Expiration
2043-05-30

AI Technical Summary

Technical Problem

Existing building indoor temperature prediction methods are difficult to simply and efficiently consider the temperature interactions between multiple areas, resulting in a waste of computing resources and low prediction efficiency.

Method used

By establishing a teacher network for the area to be measured and its adjacent areas, the prediction results of multiple teacher models are obtained and linearly fitted, combined with the student model for training, and the teacher and student losses are calculated to determine the total temperature loss, thereby achieving multi-region building Accurate prediction of temperature.

Benefits of technology

It reduces the consumption of computing resources, improves the accuracy and efficiency of temperature prediction, and can save energy consumption while ensuring thermal comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116629133B_ABST
    Figure CN116629133B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and medium for predicting the temperature of multiple areas of a building, which is used to solve the problem that the existing technology cannot simply and efficiently obtain the predicted value of the temperature of multiple areas of a building. The method includes: determining the area to be tested and the adjacent area in the multiple areas of the building, and respectively establishing a teacher network to obtain the corresponding teacher prediction model; obtaining the prediction results corresponding to multiple teacher prediction models and performing linear fitting on the multiple prediction results to obtain the teacher prediction results; establishing a student model for the area to be tested and obtaining the student prediction results; calculating the teacher loss according to the teacher prediction results and the preset target prediction results, and calculating the student loss according to the teacher prediction results and the student prediction results; calculating the total temperature loss in the multiple areas of the building according to the teacher loss and the student loss to complete the training of the student prediction model, and determining the temperature prediction value corresponding to the area to be tested through the trained student model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing methods specifically suitable for prediction purposes, and in particular to a method, device and medium for predicting the temperature of multiple areas of a building. Background Art

[0002] At present, air conditioning system is the main energy-consuming equipment in building energy consumption, accounting for about 55% of the total energy consumption. The building system is a complex system with the characteristics of nonlinearity, large hysteresis, multivariable, severe coupling, slow change, etc. The large hysteresis characteristics of the building system can be used to predict the indoor temperature of the building at the next moment, so as to guide the adjustment of the building air conditioning system according to the indoor temperature at the next moment, which can save building energy consumption as much as possible while ensuring the thermal comfort of users.

[0003] The indoor temperature of a building is affected by weather characteristics, indoor environmental parameters, time information and other related factors. In particular, there are multiple areas in a building, and the building temperatures of each area affect each other, making the temperature modeling of each area more complicated. In recent years, many researchers have established temperature prediction models based on multiple influencing factors, but the modeling process consumes a lot of computing resources, and the network structure is usually redundant, making it difficult to simply and efficiently obtain the predicted values ​​of the temperature of multiple areas of the building. Summary of the invention

[0004] The embodiments of the present application provide a method, device and medium for predicting the temperature of multiple areas of a building, which are used to solve the technical problem that the indoor temperature of the existing building is affected by relevant factors such as weather characteristics, indoor environmental parameters, time information, etc., and it is impossible to simply and efficiently obtain the predicted values ​​of the temperature of multiple areas of the building.

[0005] On the one hand, an embodiment of the present application provides a method for predicting the temperature of multiple areas of a building, comprising:

[0006] Determine a test area in the building and multiple adjacent areas corresponding to the test area, and respectively establish corresponding teacher networks for the test area and the multiple adjacent areas to obtain corresponding teacher models;

[0007] Respectively obtain multiple prediction results corresponding to multiple teacher models, and perform linear fitting on the multiple prediction results to obtain corresponding teacher prediction results;

[0008] Establishing a corresponding student model for the area to be tested, and obtaining a student prediction result output by the student model;

[0009] Calculate the corresponding teacher loss according to the teacher prediction result and the preset target prediction result, and calculate the corresponding student loss according to the teacher prediction result and the student prediction result;

[0010] According to the teacher loss and the student loss, the total temperature loss in the building is calculated to complete the training of the student model, and the temperature prediction value corresponding to the area to be tested is determined through the trained student model.

[0011] In one implementation of the present application, after establishing corresponding teacher networks for the area to be tested and the plurality of adjacent areas, the method further includes:

[0012] Relevant parameters corresponding to the tested area and multiple adjacent areas and temperature states of each area at multiple historical moments are obtained respectively; the relevant parameters include outdoor temperature, outdoor humidity, regional indoor wind speed, regional indoor humidity and the number of days in this month, and the temperature states at multiple historical moments include the temperature state at the first historical moment, the temperature state at the second historical moment, the temperature state at the third historical moment and the temperature state at the fourth historical moment;

[0013] Determine the temperature state corresponding to the current moment of the area based on the outdoor temperature, outdoor humidity, regional indoor wind speed, regional indoor humidity, number of days in this month, and the temperature state of the first historical moment, the temperature state of the second historical moment, the temperature state of the third historical moment, and the temperature state of the fourth historical moment of the area to be measured and any one of the multiple adjacent areas.

[0014] In an implementation of the present application, after determining the temperature state corresponding to the area at the current moment, the method further includes:

[0015] Determine network parameters of the target network and network parameters of the evaluation network, and determine the Q value of the evaluation network at the first historical moment according to the network parameters of the target network, the temperature state at the first historical moment, and the action at the first historical moment;

[0016] The Q value at the first historical moment is multiplied by the attenuation coefficient during the evaluation network training process and the maximum value of the action at the first historical moment, and the product is added to the fixed reward at the current moment, and subtracted from the Q value at the current moment to obtain a corresponding calculation result;

[0017] The calculation result is multiplied by the learning rate during the evaluation network training process, and the product of the calculation result and the learning rate is added to the Q value at the current moment to obtain the Q value of the action of the evaluation network under the temperature state at the current moment, thereby completing the Q value iteration of deep reinforcement learning.

[0018] In one implementation of the present application, after completing the Q-value iteration of deep reinforcement learning, the method further includes:

[0019] Obtaining the Q value corresponding to the evaluation network before and after the Q value iteration, and determining the time difference deviation corresponding to the Q value before and after the Q value iteration;

[0020] The evaluation network is trained according to the time difference deviation, and the loss function in the evaluation network training process is calculated to complete the training of the teacher network.

[0021] In one implementation of the present application, the obtaining of multiple prediction results corresponding to multiple teacher models respectively and performing linear fitting on the multiple prediction results to obtain corresponding teacher prediction results specifically includes:

[0022] Determine a region to be tested in the building, and a plurality of adjacent regions corresponding to the region to be tested, and obtain a plurality of corresponding prediction results based on teacher models corresponding to the region to be tested and the plurality of adjacent regions;

[0023] Obtaining a target prediction result preset by the teacher model, and determining linear function parameters corresponding to the multiple prediction results respectively based on the least squares method and the target prediction result;

[0024] According to the linear function parameters corresponding to each prediction result, linear fitting is performed on the corresponding prediction results respectively, and the corresponding teacher prediction results are obtained.

[0025] In one implementation of the present application, establishing a corresponding student model for the area to be tested and obtaining a student prediction result output by the student model specifically includes:

[0026] Establishing a corresponding student model for the area to be tested, and inputting the area to be tested into the student model for training;

[0027] The area to be tested is optimized through the student model, and the student prediction result corresponding to the optimized area to be tested is output through the fully connected layer.

[0028] In one implementation of the present application, the corresponding teacher loss is calculated according to the teacher prediction result and the preset target prediction result, and the corresponding student loss is calculated according to the teacher prediction result and the student prediction result, specifically including:

[0029] Determine the number of regions corresponding to the tested region and the multiple adjacent regions, and calculate the mean square error loss corresponding to the multiple teacher models according to the number of regions, the teacher prediction results corresponding to the multiple teacher models, and the pre-set target prediction results of the multiple teacher models, so as to use the mean square error loss corresponding to the multiple teacher models as the teacher loss;

[0030] According to the number of regions, the teacher loss and the student prediction result, the mean square error loss corresponding to the student model is calculated, and the mean square error loss corresponding to the student model is used as the student loss.

[0031] In one implementation of the present application, the total temperature loss in the building is calculated according to the teacher loss and the student loss to complete the training of the student model, and the temperature prediction value corresponding to the area to be tested is determined by the trained student model, specifically including:

[0032] Determine weighting coefficients of a plurality of teacher models corresponding to the region to be tested and a plurality of adjacent regions, and determine a weighting coefficient of a student model corresponding to the region to be tested based on the weighting coefficients corresponding to the plurality of teacher models;

[0033] Calculating a total temperature loss corresponding to the building according to the weighted coefficients corresponding to the multiple teacher models, the teacher loss, the weighted coefficient corresponding to the student model, and the student loss, so as to complete the training of the student model;

[0034] The temperature prediction value corresponding to the area to be tested is determined by the trained student model to achieve the prediction of the temperature of multiple areas of the building.

[0035] On the other hand, the embodiment of the present application further provides a device for predicting the temperature of multiple areas of a building, the device comprising:

[0036] at least one processor;

[0037] and, a memory communicatively coupled to the at least one processor;

[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for predicting the temperature of multiple zones in a building as described above.

[0039] On the other hand, an embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0040] Such as the above-mentioned method for predicting the temperature of multiple areas of a building.

[0041] The present application provides a method, device and medium for predicting the temperature of multiple areas of a building, which at least have the following beneficial effects:

[0042] By establishing a teacher network for the area to be tested and each adjacent area corresponding to the area to be tested and obtaining the corresponding teacher prediction model, the mutual influence of temperature between multiple adjacent areas is taken into account; the prediction results of multiple teacher models are obtained, and the prediction results of the teacher models of the area to be tested and multiple adjacent areas are integrated through linear fitting to obtain the teacher prediction results and improve the accuracy of the teacher model; a student model is established for the area to be predicted and the corresponding student prediction results are obtained, so that the student model can be guided by the teacher prediction results; the teacher losses corresponding to multiple teacher models are calculated, and the student losses corresponding to the student models are calculated. According to the teacher losses and the student losses, the total temperature losses in multiple areas of the building are calculated, and the training of the classroom model and the student model is completed. Then, the temperature prediction value corresponding to the area to be tested can be determined through the trained student model. By applying the teacher knowledge distillation model to the temperature prediction in the building, the amount of calculation can be reduced and a lot of computing resources can be saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0044] Figure 1 A schematic diagram of a flow chart of a method for predicting the temperature of multiple areas of a building provided in an embodiment of the present application;

[0045] Figure 2 A schematic flow chart of another method for predicting the temperature of multiple areas of a building provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the internal structure of a device for predicting the temperature of multiple areas in a building provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0048] The embodiment of the present application provides a method, device and medium for predicting the temperature of multiple areas of a building. By establishing a teacher network for the area to be tested and each adjacent area corresponding to the area to be tested and obtaining a corresponding teacher prediction model, the mutual influence of the temperature between multiple adjacent areas is considered; the prediction results of multiple teacher models are obtained, and the prediction results of the teacher models of the area to be tested and multiple adjacent areas are integrated through linear fitting, so that the teacher prediction results can be obtained, and the accuracy of the teacher model can be improved; a student model is established for the area to be predicted and the corresponding student prediction results are obtained, so that the student model can be guided by the teacher prediction results; the teacher losses corresponding to the multiple teacher models are calculated, and the student losses corresponding to the student models are calculated, and the total temperature losses in multiple areas of the building are calculated according to the teacher losses and the student losses, and the training of the classroom model and the student model is completed, so that the temperature prediction value corresponding to the area to be tested can be determined by the trained student model, and by applying the teacher knowledge distillation model to the temperature prediction in the building, the amount of calculation can be reduced and a large amount of computing resources can be saved. The technical problem that the indoor temperature of the existing building is affected by relevant factors such as weather characteristics, indoor environmental parameters, and time information, and the prediction value of the temperature of multiple areas of the building cannot be obtained simply and efficiently is solved.

[0049] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0050] Figure 1 The following is a flow chart of a method for predicting the temperature of multiple areas of a building provided in an embodiment of the present application. Figure 1 As shown, a method for predicting the temperature of multiple areas of a building provided in an embodiment of the present application includes:

[0051] 101. Determine a region to be tested in the building and multiple adjacent regions corresponding to the region to be tested, and respectively establish corresponding teacher networks for the region to be tested and the multiple adjacent regions to obtain corresponding teacher models.

[0052] In view of the excessive number of parameters in the multi-region temperature prediction model and the insufficient training time process, the training time is compressed while retaining the model performance to the maximum extent, and the mutual influence of the temperature between multiple regions is considered. This application proposes a prediction method for the temperature of multiple regions of a building, which takes into account the mutual influence of the temperature of multiple regions of the building and makes full use of the building temperature-related data to establish an accurate and efficient temperature prediction model. The server first determines the area to be tested in the building and multiple adjacent areas corresponding to the area to be tested, and establishes corresponding teacher networks for the area to be tested and each adjacent area, and trains the teacher network based on deep reinforcement learning to obtain a trained teacher model.

[0053] In one embodiment of the present application, after the server establishes corresponding teacher networks for the area to be tested and multiple adjacent areas, the server obtains the relevant parameters corresponding to the area to be tested and multiple adjacent areas and the temperature status of each area at multiple historical moments. It should be noted that the relevant parameters in the embodiment of the present application include outdoor temperature, outdoor humidity, regional indoor wind speed, regional indoor humidity and the number of days in this month, and the temperature status of multiple historical moments includes the temperature status of the first historical moment, the temperature status of the second historical moment, the temperature status of the third historical moment and the temperature status of the fourth historical moment.

[0054] The server can determine the temperature state corresponding to the current moment of the area based on the outdoor temperature, outdoor humidity, indoor wind speed, indoor humidity, number of days in this month, and the temperature state at the first historical moment, the temperature state at the second historical moment, the temperature state at the third historical moment, and the temperature state at the fourth historical moment of the area to be tested and any of multiple adjacent areas.

[0055] In one embodiment of the present application, after determining the temperature state corresponding to the current moment of the area, the server determines the network parameters of the target network and the network parameters of the evaluation network, and determines the Q value of the evaluation network at the first historical moment based on the network parameters of the target network, the temperature state at the first historical moment, and the action at the first historical moment. Then, the server multiplies the Q value at the first historical moment with the attenuation coefficient during the training process of the evaluation network and the maximum value of the action at the first historical moment, adds the product to the fixed reward at the current moment, and subtracts it from the Q value at the current moment to obtain the corresponding calculation result. Then, the server multiplies the calculation result with the learning rate during the training process of the evaluation network, and adds the product corresponding to the calculation result and the learning rate to the Q value at the current moment to obtain the Q value of the action of the evaluation network under the temperature state at the current moment, thereby completing the Q value iteration of deep reinforcement learning.

[0056] In one embodiment of the present application, after completing the Q-value iteration of deep reinforcement learning, the server obtains the Q-values ​​corresponding to the evaluation network before and after the Q-value iteration, and determines the time difference deviation corresponding to the Q-values ​​before and after the Q-value iteration, and then can train the evaluation network according to the time difference deviation to calculate the loss function in the evaluation network training process and complete the training of the teacher network.

[0057] 102. Obtain multiple prediction results corresponding to multiple teacher models respectively, and perform linear fitting on the multiple prediction results to obtain corresponding teacher prediction results.

[0058] Based on multiple teacher models corresponding to the area to be tested and multiple adjacent areas, the server can obtain the prediction results corresponding to each teacher model, and then perform linear fitting on the multiple prediction results, so as to obtain the teacher prediction results corresponding to the multiple teacher models and improve the accuracy of the teacher model.

[0059] Specifically, the server determines an area to be tested and multiple adjacent areas corresponding to the area to be tested in the building, and obtains multiple corresponding prediction results based on the teacher models corresponding to the area to be tested and the multiple adjacent areas. In addition, the server also needs to obtain the target prediction result pre-set by the teacher model, and determine the linear function parameters corresponding to the multiple prediction results based on the least squares method and the target prediction result pre-set by the teacher model, so that the corresponding prediction results can be linearly fitted according to the linear function parameters corresponding to each prediction result, and the corresponding teacher prediction results can be obtained.

[0060] 103. Establish a corresponding student model for the area to be tested, and obtain the student prediction result output by the student model.

[0061] The server not only establishes a teacher model, but also establishes a corresponding student model for the area to be tested in the building, trains the student model, and outputs the student prediction results corresponding to the area to be tested through the trained student model.

[0062] Specifically, the server establishes a corresponding student model for the area to be tested, and inputs the area to be tested into the student model for training, optimizes the area to be tested through the student model, and outputs the student prediction result corresponding to the optimized area to be tested through the fully connected layer, completing the training of the student model and obtaining the student prediction result corresponding to the area to be tested.

[0063] 104. Calculate the corresponding teacher loss based on the teacher's prediction results and the preset target prediction results, and calculate the corresponding student loss based on the teacher's prediction results and the student's prediction results.

[0064] The server obtains the target prediction results corresponding to multiple pre-set teacher models, and calculates the teacher losses corresponding to the multiple teacher models based on the target prediction results and the teacher prediction results after linear fitting. Then, the server can also determine the student loss corresponding to the student model based on the teacher prediction results and the student prediction results.

[0065] Specifically, the server first determines the number of regions corresponding to the test area and multiple adjacent regions in the multi-teacher model, and then calculates the mean square error loss corresponding to the multiple teacher models according to the determined number of regions, the teacher prediction results corresponding to the multiple teacher models, and the target prediction results of the pre-set multiple teacher models, thereby using the mean square error loss corresponding to the multiple teacher models as the teacher loss. Then, the server also calculates the mean square error loss corresponding to the student model based on the number of regions, the teacher loss and the student prediction results, and uses the mean square error loss corresponding to the student model as the student loss.

[0066] 105. According to the teacher loss and the student loss, the total temperature loss in the building is calculated to complete the training of the student model, and the temperature prediction value corresponding to the tested area is determined by the trained student model.

[0067] Based on the calculated teacher loss and student loss, the server can calculate the total temperature loss in the building and complete the training of multiple teacher models and student models to obtain the trained student model. The server can also determine the temperature prediction value of the area to be tested in the building at the next moment through the trained student model to complete the temperature prediction of the building at the next moment.

[0068] Specifically, the server determines the weight coefficients of multiple teacher models corresponding to the area to be tested and multiple adjacent areas, and determines the weight coefficient of the student model corresponding to the area to be tested based on the weight coefficients corresponding to the multiple teacher models. It should be noted that in the embodiment of the present application, the sum of the weight coefficients corresponding to the multiple teacher models and the weight coefficients corresponding to the student model is unit 1.

[0069] The server calculates the total temperature loss corresponding to the building based on the weighted coefficients and teacher losses corresponding to multiple teacher models, the weighted coefficients and student losses corresponding to the student models, and thus completes the training of multiple teacher models and student models. Then, the server can determine the temperature prediction value corresponding to the area to be tested in the building through the trained student model, thereby realizing the prediction of the temperature in multiple areas of the building.

[0070] Figure 2 A schematic diagram of another method for predicting the temperature of multiple areas of a building provided in an embodiment of the present application. Figure 2As shown, first, the server needs to determine the area to be tested in the building and the multiple adjacent areas corresponding to the area to be tested. The server establishes corresponding teacher networks for the area to be tested and the multiple adjacent areas, respectively, and obtains the teacher models corresponding to the area to be tested and the multiple adjacent areas, respectively. Through each teacher model, the prediction results corresponding to the area to be tested and the multiple adjacent areas can be obtained, and then the obtained multiple prediction results are linearly fitted to obtain the corresponding teacher prediction results. Then, the server combines the teacher prediction results with the preset target prediction results to determine the teacher loss. After that, the server also establishes a corresponding student model for the area to be tested, obtains the corresponding student prediction results through the student model, and calculates the student loss based on the teacher prediction results and the student prediction results, so that the server can determine the total temperature loss in the building based on the teacher loss and the student loss, and complete the training of multiple teacher models and student models. In this way, the server can determine the temperature prediction value corresponding to the area to be tested through the trained student model, and realize the accurate prediction of the temperature of multiple areas in the building.

[0071] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a device for predicting the temperature of multiple areas of a building, the structure of which is as follows: Figure 3 shown.

[0072] Figure 3 This is a schematic diagram of the internal structure of a device for predicting the temperature of multiple areas of a building provided in an embodiment of the present application. Figure 3 As shown, the device includes:

[0073] at least one processor;

[0074] and, a memory communicatively coupled to the at least one processor;

[0075] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to:

[0076] Determine a test area in the building and multiple adjacent areas corresponding to the test area, and respectively establish corresponding teacher networks for the test area and the multiple adjacent areas to obtain corresponding teacher models;

[0077] Obtain multiple prediction results corresponding to multiple teacher models respectively, and perform linear fitting on the multiple prediction results to obtain corresponding teacher prediction results;

[0078] Establish a corresponding student model for the area to be tested, and obtain the student prediction results output by the student model;

[0079] According to the teacher's prediction results and the preset target prediction results, the corresponding teacher loss is calculated, and according to the teacher's prediction results and the student's prediction results, the corresponding student loss is calculated;

[0080] According to the teacher loss and the student loss, the total temperature loss in the building is calculated to complete the training of the student model, and the temperature prediction value corresponding to the tested area is determined by the trained student model.

[0081] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0082] Determine a test area in the building and multiple adjacent areas corresponding to the test area, and respectively establish corresponding teacher networks for the test area and the multiple adjacent areas to obtain corresponding teacher models;

[0083] Obtain multiple prediction results corresponding to multiple teacher models respectively, and perform linear fitting on the multiple prediction results to obtain corresponding teacher prediction results;

[0084] Establish a corresponding student model for the area to be tested, and obtain the student prediction results output by the student model;

[0085] According to the teacher's prediction results and the preset target prediction results, the corresponding teacher loss is calculated, and according to the teacher's prediction results and the student's prediction results, the corresponding student loss is calculated;

[0086] According to the teacher loss and the student loss, the total temperature loss in the building is calculated to complete the training of the student model, and the temperature prediction value corresponding to the tested area is determined by the trained student model.

[0087] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0088] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0091] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0093] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0094] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0095] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0096] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0097] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for predicting the temperature of multiple areas of a building, characterized in that: The method comprises: Determine a test area in the building and multiple adjacent areas corresponding to the test area, and respectively establish corresponding teacher networks for the test area and the multiple adjacent areas to obtain corresponding teacher models; Respectively obtain multiple prediction results corresponding to multiple teacher models, and perform linear fitting on the multiple prediction results to obtain corresponding teacher prediction results; Establishing a corresponding student model for the area to be tested, and obtaining a student prediction result output by the student model; According to the teacher prediction result and the preset target prediction result, the corresponding teacher loss is calculated, and according to the teacher prediction result and the student prediction result, the corresponding student loss is calculated; According to the teacher loss and the student loss, the total temperature loss in the building is calculated to complete the training of the student model, and the temperature prediction value corresponding to the area to be tested is determined by the trained student model; The step of calculating the corresponding teacher loss according to the teacher prediction result and the preset target prediction result, and calculating the corresponding student loss according to the teacher prediction result and the student prediction result, specifically includes: Determine the number of regions corresponding to the tested region and the multiple adjacent regions, and calculate the mean square error loss corresponding to the multiple teacher models according to the number of regions, the teacher prediction results corresponding to the multiple teacher models, and the pre-set target prediction results of the multiple teacher models, so as to use the mean square error loss corresponding to the multiple teacher models as the teacher loss; Calculate the mean square error loss corresponding to the student model according to the number of regions, the teacher loss and the student prediction result, and use the mean square error loss corresponding to the student model as the student loss; The total temperature loss in the building is calculated according to the teacher loss and the student loss to complete the training of the student model, and the temperature prediction value corresponding to the area to be tested is determined by the trained student model, specifically including: Determine weighting coefficients of a plurality of teacher models corresponding to the region to be tested and a plurality of adjacent regions, and determine a weighting coefficient of a student model corresponding to the region to be tested based on the weighting coefficients corresponding to the plurality of teacher models; Calculating a total temperature loss corresponding to the building according to the weighted coefficients corresponding to the multiple teacher models, the teacher loss, the weighted coefficient corresponding to the student model, and the student loss, so as to complete the training of the student model; The temperature prediction value corresponding to the area to be tested is determined by the trained student model to achieve the prediction of the temperature of multiple areas of the building.

2. A method for predicting temperature of multiple areas of a building according to claim 1, characterized in that: After establishing corresponding teacher networks for the tested area and the plurality of adjacent areas respectively, the method further includes: Relevant parameters corresponding to the tested area and multiple adjacent areas and temperature states of each area at multiple historical moments are obtained respectively; the relevant parameters include outdoor temperature, outdoor humidity, regional indoor wind speed, regional indoor humidity and the number of days in this month, and the temperature states at multiple historical moments include the temperature state at the first historical moment, the temperature state at the second historical moment, the temperature state at the third historical moment and the temperature state at the fourth historical moment; Determine the temperature state corresponding to the current moment of the area based on the outdoor temperature, outdoor humidity, regional indoor wind speed, regional indoor humidity, number of days in this month, and the temperature state of the first historical moment, the temperature state of the second historical moment, the temperature state of the third historical moment, and the temperature state of the fourth historical moment of the area to be measured and any one of the multiple adjacent areas.

3. A method for predicting temperature of multiple areas of a building according to claim 2, characterized in that: After determining the temperature state corresponding to the current moment of the area, the method further includes: Determine network parameters of the target network and network parameters of the evaluation network, and determine the Q value of the evaluation network at the first historical moment according to the network parameters of the target network, the temperature state at the first historical moment, and the action at the first historical moment; The Q value at the first historical moment is multiplied by the attenuation coefficient during the evaluation network training process and the maximum value of the action at the first historical moment, and the product is added to the fixed reward at the current moment, and subtracted from the Q value at the current moment to obtain a corresponding calculation result; The calculation result is multiplied by the learning rate during the evaluation network training process, and the product of the calculation result and the learning rate is added to the Q value at the current moment to obtain the Q value of the action of the evaluation network under the temperature state at the current moment, thereby completing the Q value iteration of deep reinforcement learning.

4. A method for predicting temperature of multiple areas of a building according to claim 3, characterized in that: After completing the Q-value iteration of deep reinforcement learning, the method further includes: Obtaining the Q value corresponding to the evaluation network before and after the Q value iteration, and determining the time difference deviation corresponding to the Q value before and after the Q value iteration; The evaluation network is trained according to the time difference deviation, and the loss function in the evaluation network training process is calculated to complete the training of the teacher network.

5. The method for predicting the temperature of multiple areas of a building according to claim 1, characterized in that: The obtaining of multiple prediction results corresponding to multiple teacher models respectively and performing linear fitting on the multiple prediction results to obtain corresponding teacher prediction results specifically includes: Determine a region to be tested in the building, and a plurality of adjacent regions corresponding to the region to be tested, and obtain a plurality of corresponding prediction results based on teacher models corresponding to the region to be tested and the plurality of adjacent regions; Obtaining a target prediction result preset by the teacher model, and determining linear function parameters corresponding to the multiple prediction results respectively based on the least squares method and the target prediction result; According to the linear function parameters corresponding to each prediction result, linear fitting is performed on the corresponding prediction results respectively, and the corresponding teacher prediction results are obtained.

6. A method for predicting temperature of multiple areas of a building according to claim 1, characterized in that: The step of establishing a corresponding student model for the area to be tested and obtaining a student prediction result output by the student model specifically includes: Establishing a corresponding student model for the area to be tested, and inputting the area to be tested into the student model for training; The area to be tested is optimized through the student model, and the student prediction result corresponding to the optimized area to be tested is output through the fully connected layer.

7. A device for predicting the temperature of multiple areas of a building, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for predicting multi-zone temperature of a building as described in any one of claims 1-6.

8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: A method for predicting temperatures in multiple areas of a building as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent building environment regulation control system

    CN107505866A

  • Student model training method and device, equipment and storage medium

    CN115147687A