Building thermal load small sample prediction method based on simulation data and meta-learning method

By using simulation data and meta-learning methods in building heat load forecasting, a basic model for heat load small sample forecasting suitable for the same type of buildings is established, which solves the problems of insufficient data and insufficient model applicability in the existing technology, and achieves low-cost , Highly versatile thermal load prediction.

CN118656907AInactive Publication Date: 2024-09-17STATE GRID (TIANJIN) INTEGRATED ENERGY SERVICE CO LTD +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411149046.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

With existing technologies, it is difficult for data-driven models to achieve good results when building new buildings, rarely monitoring buildings, or when data privacy issues are involved. Moreover, existing transfer learning methods have deficiencies in model applicability and efficiency, resulting in low data costs and efficiency.

Method used

A small-sample prediction method for building heat load based on simulation data and meta-learning methods is adopted. Simulated building data is used to replace real building data, and features are extracted using meta-learning methods. A basic model for small-sample forecasting of heat loads suitable for the same type of buildings is established. A small amount of target building data for fine-tuning.

Benefits of technology

It reduces data costs, increases data diversity, improves the versatility and accuracy of the model, and can effectively solve the problem of small-sample load prediction for similar buildings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656907A
    Figure CN118656907A
Patent Text Reader

Abstract

The invention relates to a building thermal load small sample prediction method based on simulation data and a meta-learning method, and the method comprises the steps: determining the geometric shape of a simulation building according to the building type of a target building, setting the probability distribution of building parameters, and carrying out the Monte Carlo sampling, and obtaining different building parameter sets representing different use conditions of the building; performing simulation to obtain thermal load data of the building under different use conditions as source building data; constructing each group of source building data into an independent meta-task, and training on the meta-task by using a meta-learning method to obtain a thermal load small sample prediction basic model suitable for the same type of buildings; and for a target building with insufficient data, performing parameter initialization on the target task model by using the obtained parameters of the basic model, and performing training for a few times by using the data of the target building to obtain a thermal load prediction model suitable for the target building. According to the method, the data cost is greatly reduced, and higher universality and accuracy are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of building load prediction, and in particular to a small sample prediction method for building heat load based on simulation data and meta-learning method. Background Art

[0002] Optimizing the operation of HVAC systems is an important way to achieve building energy conservation. Accurately predicting the cooling and heating loads of buildings is a prerequisite for optimizing the operation of HVAC systems and has important guiding significance. Therefore, accurately predicting the cooling and heating loads of buildings is an urgent problem to be solved. At present, the methods for predicting building heat loads are mainly divided into physical models (white box models) and data-driven models (black box models). Representatives of white box models include EnergyPlus, TRNSYS and other software, but these models require accurate building information as input, which is usually difficult to obtain. With the development of big data technology, building operation data has become more and more abundant, so data-driven models have also developed rapidly. However, when facing new buildings, less monitored buildings or involving data privacy issues, there is less data available for training, and data-driven models are prone to overfitting, making it difficult to obtain good results. When solving this problem of building heat load prediction with few samples, how to expand and utilize data is the key to solving the problem.

[0003] It is a common method to use the rich data of other buildings to assist the modeling of the target building. The rich data of other buildings contains implicit knowledge about the building operation and heat load. Being able to learn and use this knowledge can assist the modeling of the target data and reduce prediction errors. However, there are also problems with using actual buildings as source buildings. Building operation data is often not open to the public, and the public building data sets are too old to be used to solve practical problems. In contrast, although simulated building data may lead to deviations due to the inability to obtain the true parameters of the building, its low acquisition cost and convenient acquisition method enable it to generate a large amount of load data to make up for the deviation. Therefore, using simulated buildings as source buildings is also a feasible method.

[0004] After expanding the data, it is equally important to utilize the data. Directly merging it with the dataset of the target building is a simple method, but its auxiliary role is limited and it cannot fully mine the knowledge in the source building data. In contrast, transfer learning is a more effective and commonly used method. Transfer learning solves the problem of insufficient data for the target task by fully learning the rules and knowledge from other source tasks with rich data and transferring them to the target task. In order to solve the inevitable deviation between the source building and the target building, researchers proposed a multi-source transfer learning method based on the transfer learning method, which compensates for the deviation by using multiple source buildings for joint migration. However, whether it is transfer learning or multi-source transfer learning, the current method is only for a specific single target building to assist its modeling, and the model obtained under this method is only applicable to the target building. For other buildings that also face the problem of insufficient data, this model often cannot play a good effect, and it is necessary to collect new source building data and retrain the auxiliary. This has led to an increase in data costs on the one hand and a decrease in efficiency on the other.

[0005] Therefore, it is necessary to establish a basic model with high versatility that can effectively solve the small sample load prediction problem for similar buildings. Summary of the invention

[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a small sample prediction method for building heat load based on simulation data and meta-learning methods. By using simulated building data instead of real building data, the data cost is reduced on the one hand, and the diversity of data is enriched on the other hand. At the same time, the source data features are extracted by the meta-learning method to obtain a small sample prediction basic model for heat load suitable for the same type of building. The small sample prediction basic model can be fine-tuned using only a small amount of data of the target building to obtain a heat load prediction model suitable for the target building.

[0007] The present invention solves the technical problem by adopting the following technical solutions:

[0008] The small sample prediction method of building heat load based on simulation data and meta-learning method includes the following steps:

[0009] Step 1: Select a suitable typical building model according to the building type of the target building to determine the geometric shape of the simulated building, and set the standard value and value range of the simulated building parameters according to the building specification document;

[0010] Step 2: setting the probability distribution of the building parameters in step 1, and performing Monte Carlo sampling according to the probability distribution to obtain different building parameter sets representing different usage conditions of the building;

[0011] Step 3: Perform building simulation according to the building parameter set obtained in step 2, obtain heat load data of the building under different usage conditions as source building data, and standardize each set of source data;

[0012] Step 4: Each set of source building data is constructed as a separate meta-task, and a meta-learning method is used to train on the meta-task to obtain a basic model for heat load small sample prediction applicable to the same type of buildings;

[0013] Step 5: For target buildings with insufficient data, use the parameters of the basic model obtained in step 4 to initialize the parameters of the target task model, and use the data of the target building for a few trainings to obtain a heat load prediction model suitable for the target building;

[0014] Step 6: Use the heat load prediction model trained in step 5 to predict the heat load of the target building.

[0015] Moreover, the simulated building parameters in step 1 include four categories: building appearance, enclosure structure parameters, internal disturbance parameters, and timetable.

[0016] Moreover, the probability distribution of the building parameters in step 2 is as follows: the probability distribution of the two types of parameters, building appearance and timetable, should be set to uniform distribution, and the probability distribution of the two types of parameters, enclosure structure parameters and internal disturbance parameters, should be set to normal distribution.

[0017] Moreover, the specific implementation method of step 3 is: using SketchUp software to build a geometric model of the simulated building, and using the eppy library in Python and EnergyPlus software to implement batch simulation and heat load calculation of the building, and standardize each group of source data.

[0018] Moreover, the specific implementation method of the standardization is:

[0019] ;

[0020] in, is the mean value of the data, is the standard deviation of the data, is the original data, is the standardized data.

[0021] Moreover, each meta-task in step 4 includes a support set, a query set and a base learner, wherein the support set is composed of one day's data extracted from the first 70% of the source building data before each round of local training; the base learner is used for the machine learning model; and the query set is composed of the last 30% of the data of each source building data and remains fixed.

[0022] Moreover, the meta-learning method in step 4 includes local updating and global updating, wherein;

[0023] Local learning: For each meta-task, the model parameters of the base learner are first initialized as the model parameters of the meta-learner, then the base learner parameters are updated using the support set, and finally the base learner is tested using the query set to obtain the local loss;

[0024] For each meta-task , its base learner The parameters are initialized to the meta-learner parameters:

[0025]

[0026] in, Meta-task The corresponding base learner The model parameters, is the model parameter of the meta-learner, and then for each base learner , using its corresponding support set Update the parameters:

[0027] in, Representative base learner In the support set The loss of income, Represents the parameters Find the gradient, is the local learning rate, and then in the corresponding query set Test on to get the local loss:

[0028]

[0029] in, Representative meta-task The local loss obtained after completing this round of local learning is Representative base learner In the query set After all meta-tasks have updated their parameters and obtained their local losses, this round of local learning ends.

[0030] Global learning: Integrate the local losses of each meta-task into a global loss, use the global loss to update the meta-learner parameters, and then return to local learning to continue the cycle;

[0031] Among them: The process of global learning is as follows:

[0032] First calculate the global loss:

[0033]

[0034] in, is the global loss, and then the parameters of the meta-learner are updated:

[0035]

[0036] in, Represents the parameters of the meta-learner Find the gradient, is the global learning rate.

[0037] Moreover, the specific implementation method of obtaining a small sample prediction basic model for heat load applicable to the same type of buildings in step 4 is: the meta-model obtained after the global learning times reaches the specified times is the small sample prediction basic model.

[0038] The advantages and positive effects of the present invention are:

[0039] The present invention uses a prototype building for building simulation to collect data instead of real buildings, thereby reducing costs and increasing data diversity. At the same time, the model is trained using a meta-learning method to obtain a basic model for heat load prediction with a small sample size that is suitable for buildings of the same type. The basic model only needs to be trained a small number of times using a small amount of data from the target building to obtain a heat load prediction model suitable for the target building. Compared with the existing building heat load prediction method with a small sample size, the basic model for small sample prediction proposed by the present invention greatly reduces data costs and has higher versatility and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of the present invention;

[0041] Figure 2 Schematic diagram of CV-RMSE of the present invention and the prior art on the target building test set. DETAILED DESCRIPTION

[0042] The present invention is further described in detail below with reference to the accompanying drawings.

[0043] Small sample prediction method of building heat load based on simulation data and meta-learning method, such as Figure 1 As shown, the following steps are included:

[0044] Step 1: Select a suitable typical building model according to the building type of the target building to determine the geometric shape of the simulated building, and set the standard value and value range of the simulated building parameters according to the building specification document. Among them, the simulated building parameters include four categories: building shape, enclosure structure parameters, internal disturbance parameters, and timetable.

[0045] Step 2: Set the probability distribution of the building parameters in step 1, and perform Monte Carlo sampling based on the probability distribution to obtain different building parameter sets representing different building usage conditions. The probability distribution of the building parameters is as follows: the probability distribution of the building appearance and timetable parameters should be set to uniform distribution, and the probability distribution of the enclosure structure parameters and internal disturbance parameters should be set to normal distribution.

[0046] Step 3: Perform building simulation according to the building parameter set obtained in step 2, obtain the heat load data of the building under different usage conditions as source building data, and standardize each set of source data.

[0047] Use SketchUp software to build the geometric model of the simulated building, and use the eppy library in Python and EnergyPlus software to realize batch simulation and heat load calculation of the building.

[0048] Step 4: Construct each set of source building data into a separate meta-task, and use the meta-learning method to train on the meta-task to obtain a basic model for small sample prediction of heat load applicable to the same type of buildings.

[0049] Each meta-task consists of a support set, a query set, and a base learner. The support set consists of one day’s data extracted from the first 70% of the source building data before each round of local training. The base learner is used for machine learning models. The query set consists of the last 30% of the data of each source building data and remains fixed.

[0050] Meta-learning methods include local updates and global updates, where;

[0051] Local learning: For each meta-task, the model parameters of the base learner are first initialized as the model parameters of the meta-learner, then the base learner parameters are updated using the support set, and finally the base learner is tested using the query set to obtain the local loss;

[0052] Global learning: The local losses of each meta-task are integrated into the global loss, the global loss is used to update the meta-learner parameters, and then the local learning is returned to continue the cycle.

[0053] The specific implementation method of obtaining a small sample prediction basic model for heat load applicable to the same type of buildings is as follows: the meta-model obtained after the global learning times reaches the specified times is the small sample prediction basic model.

[0054] Step 5: For target buildings with insufficient data, use the parameters of the basic model obtained in step 4 to initialize the parameters of the target task model, and use the data of the target building for a few trainings to obtain a heat load prediction model suitable for the target building. The target task model used in this step has the same structure as the base learner used in the local training in step 4.

[0055] Step 6: Use the heat load prediction model trained in step 5 to predict the heat load of the target building.

[0056] Based on the above-mentioned small sample prediction method of building heat load based on simulation data and meta-learning method, calculations are performed on a certain high-rise residential building to illustrate the effect of the present invention.

[0057] This embodiment will construct a small sample situation where only one day of data is available on 10 target buildings, and use the last 30% of the data of each building as a test set to detect the effect of the heat load model of the target building.

[0058] Step S101: setting the standard value and value range of the simulated building, as shown in Table 1.

[0059]

[0060] Step S102: Setting probability distribution for the parameters set in step S101 is also shown in Table 1. The Monte Carlo sampling method is used to perform 600 samplings to obtain 600 sets of building parameter sets, representing 600 high-rise residential buildings with different usage conditions.

[0061] Step S103: Use the 600 sets of parameter sets sampled in step S102 to perform building simulation, obtain 600 sets of building heat load data as source data, and perform standardization on each set of data.

[0062] Where: The standardized formula is shown in formula (1):

[0063]

[0064] in, is the mean value of the data, is the standard deviation of the data, is the original data, is the standardized data.

[0065] Step S104: construct 600 sets of source building data into 600 meta-tasks, and train them using a meta-learning method to obtain a basic model for small sample prediction of heat load for high-rise residential buildings.

[0066] Among them: The support set of each meta-task is the source building data The data of a random day in is randomly drawn again before each round of local training.

[0067] The query set of each meta-task is the back-end of the source building data. , which remains unchanged. The base learner uses the multi-layer perceptron model in the machine learning model, and its structure is as follows: Input layer: contains 25 input features.

[0068] The first hidden layer has 100 neurons and uses the ReLU activation function.

[0069] Dropout layer: used to reduce the risk of overfitting and discard 25% of neurons.

[0070] The second hidden layer has 100 neurons and uses the ReLU activation function.

[0071] Dropout layer: 25% of neurons are discarded again.

[0072] The third hidden layer has 100 neurons and uses the ReLU activation function.

[0073] Dropout layer: 25% of neurons are discarded again.

[0074] Output layer: has one neuron and is used for regression.

[0075] In this embodiment, the local learning rate of the base learner is Global learning rate with meta-learner Both are set to 0.001. Both the meta-learner and the base learner use the Adam optimizer, and the loss function uses the mean square error. The number of local training is set to 10 times.

[0076] Among them: The process of local learning is:

[0077] First, for each meta-task , its base learner The parameters are initialized to the meta-learner parameters, as shown in formula (2):

[0078]

[0079] in, Meta-task The corresponding base learner The model parameters, is the model parameter of the meta-learner, and then for each base learner , using its corresponding support set Update the parameters as shown in formula (3):

[0080] in, Representative base learner In the support set The loss of income, Represents the parameters Find the gradient, is the local learning rate, and then in the corresponding query set The local loss is obtained by testing on it, as shown in formula (4):

[0081]

[0082] in, Representative meta-task The local loss obtained after completing this round of local learning is Representative base learner In the query set After all meta-tasks have updated their parameters and obtained their local losses, this round of local learning ends.

[0083] Among them: The process of global learning is as follows:

[0084] First, calculate the global loss, as shown in formula (5):

[0085]

[0086] in, is the global loss. Then the parameters of the meta-learner are updated as shown in formula (6):

[0087]

[0088] in, Represents the parameters of the meta-learner Find the gradient, is the global learning rate.

[0089] Step S105: For each target building, the parameters of the heat load small sample prediction basic model obtained in S104 are used to initialize the parameters of the target task model, and the data of the target building are used for a few trainings to obtain a heat load prediction model suitable for the target building. There are 10 target buildings in total, so a total of 10 heat load prediction models are finally obtained.

[0090] Among them: During the training process of the target task model, the learning rate is 0.0001 and the number of training times is 10.

[0091] Step S106: For each target building, use the heat load prediction model obtained in S105 to perform heat load prediction on the target building.

[0092] In this comparative example, a multi-source transfer learning method is used to obtain a pre-trained model and fine-tune it on the target building to obtain the final task learner model; at the same time, the same data and the same model as the embodiment are used. The pre-trained model is trained on the source domain building using a learning rate of 0.001, and fine-tuned on the target building small sample data set using a learning rate of 0.0001.

[0093] The CV-RMSE of the task learner model obtained by all methods in the embodiment and the comparative example on the target building test set is as follows: Figure 2 It can be seen from the results of the embodiment and the comparative example that the basic model for predicting building heat load with a small sample based on simulation data and meta-learning method proposed by the present invention is superior to the commonly used multi-source transfer learning method in terms of accuracy and versatility.

[0094] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.

Claims

1. A small sample prediction method for building heat load based on simulation data and meta-learning method, characterized by: The following steps are involved: Step 1: Select a suitable typical building model according to the building type of the target building to determine the geometric shape of the simulated building, and set the standard value and value range of the simulated building parameters according to the building specification document; Step 2, setting the probability distribution of the building parameters in step 1, and performing Monte Carlo sampling according to the probability distribution to obtain different building parameter sets representing different usage conditions of the building; Step 3: Perform building simulation according to the building parameter set obtained in step 2, obtain heat load data of the building under different usage conditions as source building data, and standardize each set of source data; Step 4: Each set of source building data is constructed as a separate meta-task, and a meta-learning method is used to train on the meta-task to obtain a basic model for heat load small sample prediction applicable to the same type of buildings; Step 5: For target buildings with insufficient data, use the parameters of the basic model obtained in step 4 to initialize the parameters of the target task model, and use the data of the target building for a few trainings to obtain a heat load prediction model suitable for the target building; Step 6: Use the heat load prediction model trained in step 5 to predict the heat load of the target building.

2. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 1 is characterized by: The simulated building parameters in 1 include four categories: building appearance, enclosure structure parameters, internal disturbance parameters, and timetable.

3. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 2 is characterized by: The probability distribution of the building parameters in step 2 is as follows: the probability distribution of the two types of parameters, building appearance and timetable, should be set to uniform distribution, and the probability distribution of the two types of parameters, envelope structure parameters and internal disturbance parameters, should be set to normal distribution.

4. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 3 is characterized by: The specific implementation method of step 3 is: using SketchUp software to build a geometric model of the simulated building, and using the eppy library in Python and EnergyPlus software to implement batch simulation and heat load calculation of the building, and standardize each group of source data.

5. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 4 is characterized by: The specific implementation method of the standardization is: ; in, is the mean value of the data, is the standard deviation of the data, is the original data, is the standardized data.

6. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 5 is characterized by: Each meta-task in step 4 includes a support set, a query set and a base learner, wherein the support set is composed of one day's data extracted from the first 70% of the source building data before each round of local training; the base learner is used for the machine learning model; and the query set is composed of the last 30% of the data of each source building data and remains fixed.

7. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 6 is characterized by: The meta-learning method in step 4 includes local updating and global updating, wherein; Local learning: For each meta-task, the model parameters of the base learner are first initialized as the model parameters of the meta-learner, then the base learner parameters are updated using the support set, and finally the base learner is tested using the query set to obtain the local loss; For each meta-task , its base learner The parameters are initialized to the meta-learner parameters: ; in, Meta-task The corresponding base learner The model parameters, is the model parameter of the meta-learner, and then for each base learner , using its corresponding support set Update the parameters: ; in, Representative base learner In the support set The loss of income, Represents the parameters Find the gradient, is the local learning rate, and then in the corresponding query set Test on to get the local loss: ; in, Representative meta-task The local loss obtained after completing this round of local learning is Representative base learner In the query set After all meta-tasks have updated their parameters and obtained their local losses, this round of local learning ends. Global learning: Integrate the local losses of each meta-task into a global loss, use the global loss to update the meta-learner parameters, and then return to local learning to continue the cycle; Among them: The process of global learning is as follows: First calculate the global loss: ; in, is the global loss, and then the parameters of the meta-learner are updated: ; in, Represents the parameters of the meta-learner Find the gradient, is the global learning rate.

8. The method for predicting building heat load with a small sample based on simulation data and meta-learning method according to claim 7 is characterized by: The specific implementation method of obtaining a small sample prediction basic model for heat load applicable to the same type of buildings in step 4 is as follows: the meta-model obtained after the global learning times reaches a specified number is the small sample prediction basic model.

Citation Information

Patent Citations

  • Building energy consumption prediction method based on multi-source fusion feature selection and fuzzy difference enhanced Stacking framework

    CN114386142A

  • Building cooling, heating and power load prediction method and system based on transfer learning

    CN115310727A

  • Model construction method and device and building load prediction method and device

    CN115879190A

  • Low-carbon park cold and hot electrical load prediction method based on typical database

    CN116205425A

  • Method for predicting cold and heat loads of office building based on integrated machine learning

    CN116796887A