A multi-time scale air conditioning load forecasting method
Through the improved bird flock optimization algorithm and convolutional neural network, combined with historical air-conditioning load data and meteorological data, the multi-time scale problem of air-conditioning load forecasting is solved, and high-precision and high-reliability air-conditioning load forecasting is achieved to meet the needs of the energy system. Optimize scheduling requirements.
Patent Information
- Application Number
- CN202111343825.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-11-14
AI Technical Summary
In regional integrated energy systems, there are few studies on air-conditioning cooling and heating load forecasting, which makes it difficult to achieve optimal dispatch and energy flow coordinated deployment. There is a lack of high-precision and high-reliability multi-time scale air-conditioning load forecasting methods.
Using the improved bird flock optimization algorithm and convolutional neural network, by constructing a multi-time scale air conditioning load prediction model, combined with air conditioning load historical data, meteorological data and date type data, the weight parameters of the convolutional neural network are optimized to achieve cold and heat prediction. Multi-timescale forecasting of air conditioning loads.
The reliability and accuracy of air conditioning load prediction are improved, and cooling and heating loads can be predicted simultaneously on multiple time scales, avoiding overfitting and local optimal problems, and meeting practical application needs.
Smart Images

Figure CN114202102B
Abstract
Description
Technical Field
[0001] The present invention relates to a method for predicting a multi-time scale air conditioning load, and in particular to a method for predicting a multi-time scale air conditioning load based on an improved bird flock optimization algorithm and a convolutional neural network. Background Art
[0002] Under the vision of "carbon peak and carbon neutrality", the proportion of renewable energy such as wind and light will increase year by year in the next few years. By then, a large amount of new energy will need to be absorbed. This issue has attracted the attention of experts in the field of energy systems. Converting some wind and light new energy into cold and hot energy and providing cold and hot loads for factory areas or regional residential areas through air conditioning to promote the absorption of new energy has become one of the hot topics. In an integrated energy system, reliable source and load prediction is the basis for stable and reliable operation, multi-energy conversion and coordinated optimization scheduling of the integrated energy system.
[0003] At present, there are many studies on the prediction of electric load and renewable energy power generation in regional integrated energy systems, but there are few reports on the research of cooling and heating load of air conditioners. In order to better realize the optimization scheduling and coordinated allocation of various energy flows in regional integrated energy systems, high-precision and high-reliability cooling and heating load prediction of air conditioners is indispensable. Summary of the invention
[0004] The technical problem to be solved by the present invention is to propose a multi-time scale air conditioning load prediction method, which can predict the multi-time scale of cold and hot air conditioning loads with good reliability and high accuracy.
[0005] The technical solution of the present invention is:
[0006] A multi-time scale air conditioning load forecasting method comprises the following steps:
[0007] Step 1: Create a training set
[0008] Acquire historical data of air conditioning load, acquire meteorological data of corresponding date and date type data; construct a model data set for the collected historical data of air conditioning load and corresponding meteorological data of date and date type data; divide the meteorological type data and date type data into input data of training set, and divide the historical data of air conditioning load into comparison data of training set;
[0009] Step 2: Build a prediction model based on convolutional neural network
[0010] Input air conditioning load historical data, corresponding date meteorological data and date type data to train the convolutional neural network, and output air conditioning load forecast data;
[0011] Step 3: Comparative analysis of output data and comparison data
[0012] Compare and analyze the air conditioning load forecast data with the air conditioning load historical data to obtain the overall convergence accuracy of the model. If the overall convergence accuracy of the model meets the set model convergence accuracy requirements, the model training is completed. If the overall convergence accuracy of the model does not meet the set model convergence accuracy requirements, the improved bird flock optimization algorithm is used to optimize the weight parameters of each layer of the convolutional neural network, and return to step 2.
[0013] Step 4: Apply the improved bird flock optimization algorithm to train the convolutional neural network prediction model
[0014] By iteratively calculating new fitness values, updating historical optimal values and non-inferior values, removing duplicate particles and optimizing the weight parameters of each layer of the convolutional neural network;
[0015] Step 5: Apply the trained convolutional neural network model to perform short-term air conditioning load forecasting at multiple time scales.
[0016] Further preferably, when constructing a prediction model based on a convolutional neural network, the historical date type data and the meteorological type data are averaged into data with an hourly time scale;
[0017] The air conditioning load forecast data output by the forecast model includes hourly cold air conditioning load forecast data, hot air conditioning load forecast data and daily cold air conditioning load forecast data, and the forecast model output is recorded as Y.
[0018]
[0019] in, is the cooling load in hours; C day is the cooling load in daily units; is the heat load in hours; H day is the heat load in daily units;
[0020] The prediction model input is denoted as X, which is a vector containing hourly meteorological data and date data. Then X is expressed as
[0021] X=[W1,W2,...,W n ,T1,T2,...,T m ] T ;
[0022] Among them, W1, W2, ..., W n are meteorological data vectors respectively; n is the number of meteorological data categories; T1, T2, ..., T m are date type data vectors respectively; m is the number of categories of date type data.
[0023] Further optimization, when constructing a prediction model based on a convolutional neural network, X is organized into a matrix form for training;
[0024] X is organized into a matrix form, and V is the matrix dimension.
[0025]
[0026] Among them, ceil(·) is a round-up function, which means taking the integer value that is greater than and closest to the independent variable;
[0027] Arrange in V dimensions [W1,W2,...,W n ,T1,T2,...,T m ] T Each element in forms a V-order square matrix, and the remaining elements are filled with 0.
[0028] Further preferably, a prediction model based on a convolutional neural network is constructed, wherein the convolutional layer calculation process of the convolutional neural network is:
[0029]
[0030] Among them, y c is the output of the convolutional layer; w c is the shared weight of the convolution kernel of the convolution layer; x c Input data for the convolution layer; b c is the offset; is the convolution operation; R(·) is the nonlinear activation function. For the independent variable t, the expression of R(·) is
[0031]
[0032] The pooling layer of the convolutional neural network uses maximum pooling, and the calculation process is
[0033] y p =max(x p )
[0034] Among them, x p is the data within a certain receptive field of the pooling layer; y p For the included x p The output value obtained by pooling the receptive field within.
[0035] The convolutional neural network consists of multiple sets of convolutional layers and a corresponding number of pooling layers, which together form a prediction model. The input-output mapping relationship of the prediction model is:
[0036] Y=f(X)
[0037] Among them, f(·) is the mapping function of the convolutional neural network.
[0038] Further preferably, the calculation formula of the overall convergence accuracy of the model is:
[0039]
[0040]
[0041]
[0042]
[0043]
[0044] in, They are respectively the cold and heat load prediction accuracy at each hourly time scale and the cold and heat load prediction accuracy at the daily time scale; C day ′,H day ′ are the true values of cooling and heating loads in each historical hourly time scale and the true values of cooling and heating loads in each historical dayly time scale respectively; C day ,H day are the cold and heat load prediction values at each hourly time scale and the cold and heat load prediction values at the daily time scale respectively; λ is the overall convergence accuracy of the model; j∈[1,24];
[0045] Set model convergence accuracy The judgment is as follows:
[0046] when The model converges and can be used for prediction;
[0047] when The model has not converged yet, and the improved bird flock optimization algorithm needs to be applied to optimize the weights of each convolutional layer of the convolutional neural network.
[0048] Further optimization, in step 4, the improved bird flock optimization algorithm is applied to train the convolutional neural network, wherein the weights of each convolutional layer of the convolutional neural network are reflected by the individual position data of the bird flock in the bird flock optimization algorithm, and the change process of the individual position values of the bird flock in the bird flock optimization algorithm is the optimization process of the weight value of the convolutional neural network, by finding the optimal position of each individual bird flock when the group fitness is the highest.
[0049] Further preferably, in step 1, historical air-conditioning load data is obtained, including cold air-conditioning load data and hot air-conditioning load data in hours and cold air-conditioning load data and hot air-conditioning load data in days; date type data corresponding to the above loads are obtained, including month, date, week and holiday data; meteorological type data corresponding to the above loads are obtained, including temperature, wind speed, meteorological conditions, air pressure, and light radiation angle data with a time scale of 15 minutes and the average temperature and wind speed within 3 hours with a time scale of 1 hour.
[0050] Compared with the prior art, the present invention has the following outstanding and beneficial technical effects:
[0051] The present invention considers more influencing factors of cold and hot air conditioning loads, and constructs a convolutional neural network capable of extracting the intrinsic features of a large amount of input data. While refining the extraction of the intrinsic nonlinear features of the data, the link weight of the network is reduced as much as possible, so that the model has a better performance in terms of training speed, and at the same time, the overfitting phenomenon is avoided as much as possible. At the same time, the improved bird flock optimization algorithm is applied to make deep models such as convolutional neural networks easier to train, and to avoid falling into local optimal situations to a great extent. At the same time, the model adopts the form of multi-input and multi-output, and can simultaneously obtain cold and heat load prediction results of multiple time scales, with good reliability and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 is a flow chart of the present invention;
[0053] Figure 2 This is the hourly air conditioning load prediction effect diagram of the present invention (corresponding to Example 1);
[0054] Figure 3 This is a diagram showing the effect of daily air conditioning load prediction according to the present invention (corresponding to Example 1). DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0056] Example
[0057] The present invention provides a multi-time scale air conditioning load prediction method, comprising the following steps:
[0058] Step 1: Obtain historical data of air conditioning load, meteorological data of corresponding date and date type data;
[0059] Among them, obtain historical air conditioning load data, including cold and hot air conditioning load data in hours and cold and hot air conditioning load data in days; obtain date type data corresponding to the above loads, including month, date, week and holiday data; obtain meteorological type data corresponding to the above loads, including temperature, wind speed, meteorological conditions, air pressure, and light radiation angle data with a time scale of 15 minutes and the average temperature and wind speed within 3 hours with a time scale of 1 hour;
[0060] A model data set is constructed based on the collected historical data of air-conditioning load and the corresponding date meteorological data and date type data; the meteorological type data and date type data are divided into input data of the training set, and the historical data of air-conditioning load is divided into comparison data of the training set.
[0061] Step 2: Build a prediction model based on convolutional neural network;
[0062] The historical date type data and meteorological type data are averaged into data with hourly time scale, and the historical data of air conditioning load, the corresponding date meteorological data and date type data are input to train the convolutional neural network, and the air conditioning load prediction data is output;
[0063] The air conditioning load data output by the prediction model includes the cooling and heating air conditioning loads in hours and the cooling and heating air conditioning loads in days. The output of the prediction model is recorded as Y.
[0064]
[0065] in, is the cooling load in hours; C day is the cooling load in daily units; is the heat load in hours; H day is the heat load in daily units.
[0066] The prediction model input is denoted as X, which is a matrix containing hourly meteorological data and date data. Then X is expressed as
[0067] X=[W1,W2,...,W n ,T1,T2,...,T m ] T
[0068] Among them, W1, W2, ..., W n are meteorological data vectors respectively; n is the number of meteorological data categories; T1, T2, ..., T m are date type data vectors respectively; m is the number of categories of date type data.
[0069] Arrange X into a matrix form, let V be the matrix dimension, then
[0070]
[0071] Wherein, ceil(·) is a rounding function, which means taking the integer value that is greater than and closest to the independent variable.
[0072] Arrange in V dimensions [W1,W2,...,W n ,T1,T2,...,T m ] T Each element in forms a V-order square matrix, and the remaining elements are filled with 0.
[0073] Construct a prediction model based on convolutional neural network, where the convolutional layer calculation process of the convolutional neural network is
[0074]
[0075] Among them, y c is the output of the convolutional layer; w c is the shared weight of the convolution kernel of this convolution layer, usually a 3×3 convolution kernel is used; x c Input data for the convolution layer; b c It is the offset and can be ignored in practical applications; is the convolution operation; R(·) is the nonlinear activation function. For the independent variable t, the expression of R(·) is
[0076]
[0077] The pooling layer of the convolutional neural network uses maximum pooling, and the calculation process is
[0078] y p =max(x p )
[0079] Among them, x p is the data within a certain receptive field of the pooling layer; y p For the included x p The output value obtained by pooling the receptive field within.
[0080] The convolutional neural network consists of multiple sets of convolutional layers and a corresponding number of pooling layers, which together form a prediction model. The input-output mapping relationship of the prediction model is:
[0081] Y=f(X)
[0082] Among them, f(·) is the mapping function of the convolutional neural network.
[0083] Step 3: Comparative analysis of output data and comparison data
[0084] Compare and analyze the air conditioning load forecast data with the air conditioning load historical data, and obtain the overall convergence accuracy of the model based on the air conditioning load forecast data and the air conditioning load historical data;
[0085] Set model convergence accuracy The judgment is as follows:
[0086] when The model converges, model training is completed, and the model can be applied for prediction.
[0087] when The model has not converged yet, and the improved bird flock optimization algorithm needs to be applied to optimize the weights of each convolutional layer of the convolutional neural network and return to step 2.
[0088] The calculation formula for the overall convergence accuracy of the model is:
[0089]
[0090]
[0091]
[0092]
[0093]
[0094] in, They are respectively the cold and heat load prediction accuracy at each hourly time scale and the cold and heat load prediction accuracy at the daily time scale; C day ′,H day ′ are the true values of cooling and heating loads in each historical hourly time scale and the true values of cooling and heating loads in each historical dayly time scale respectively; C day ,H day are the cold and hot load prediction values at each hourly time scale and the cold and hot load prediction values at the daily time scale respectively; λ is the overall convergence accuracy of the model; j∈[1,24].
[0095] Step 4: Apply the improved bird flock optimization algorithm to train the convolutional neural network prediction model
[0096] The improved bird flock optimization algorithm is used to train the convolutional neural network prediction model. By iteratively calculating new fitness values, updating historical optimal values and non-inferior values, duplicate particles are removed and the weight parameters of each layer of the convolutional neural network are optimized.
[0097] The process of training convolutional neural network using improved bird flock optimization algorithm is as follows:
[0098] The weights of each convolutional layer of the convolutional neural network are reflected by the individual position data of the bird flock in the bird flock optimization algorithm. The change process of the individual position values of the bird flock in the bird flock optimization algorithm is the optimization process of the weight value of the convolutional neural network, which is achieved by finding the optimal position of each individual bird flock when the group fitness is the highest.
[0099] Formulate the rules of the bird flock optimization algorithm:
[0100] (1) The foraging and alert behaviors of individual birds in the flock are realized by formulating a random decision value. When the number randomly generated between (0, 1) by probability is greater than the set constant P, the individual birds in the flock will forage for food, otherwise they will maintain alert behavior.
[0101] (2) During the foraging behavior, each individual bird in the flock updates its foraging location and shares it with the entire flock, thereby sharing the flock’s optimal foraging location.
[0102]
[0103] in, is the position of the bird in the i-th row and j-th column at the t-th iteration; p i,j is the best position that the bird in row i and column j has passed; g j is the optimal position of the flock; S and T are the cognitive coefficient and evolution coefficient respectively, both of which are normal numbers; rand(0,1) represents a random number that obeys a Gaussian distribution with an expected value of 0 and a standard deviation of 1.
[0104] (3) In the alert behavior, each individual bird in the flock attempts to fly to the center of the population. Affected by the competition among the population, the birds with more food reserves have a greater probability of going to the center of the population than those with less food. To avoid competition, the behavior of individual birds in the flock can be expressed as
[0105]
[0106]
[0107]
[0108] Where k∈[1,N], and k≠i, N is the population size, that is, the number of all weights to be optimized in the convolutional neural network; δ1,δ2 are the flock approach coefficient and escape coefficient respectively; v1,v2 are constants between [0,2]; pFit i,jis the fitness of the individual bird in the i-th row and j-th column, that is, the prediction accuracy of the model after only updating the weight value of the neural network corresponding to the position of the individual bird; sumFit is the sum of the fitness of the entire bird flock, that is, the sum of the prediction accuracy of the model calculated by updating each individual position of the bird flock, that is, each weight value of the neural network; ε is used to avoid zero division; meanpFit is the average value of the fitness of the population, that is, the average value of the prediction accuracy of the model calculated by updating each individual position of the bird flock, that is, each weight value of the neural network.
[0109] (4) To escape being hunted or to find food, the flock of birds will periodically fly to other areas. When they arrive at another area, they will start looking for food again. The bird with the most food reserves in the population is called a food producer, and the bird with the least reserves is called a beggar. After flying to other areas, some beggar birds follow the producer birds to find food. The behavior of producers and beggars is represented by
[0110]
[0111]
[0112] Among them, FL is the probability that the beggar forages with the producer, FL∈[0,1].
[0113] Step 5: Apply the trained model to perform short-term air conditioning load forecasting at multiple time scales.
[0114] By inputting the weather and date type data of the day to be predicted into the trained prediction model, the cold and heat load prediction values in hours and days for the predicted day can be obtained.
[0115] Example 1
[0116] like Figure 1 As shown, this embodiment provides a multi-time scale air conditioning load prediction method, comprising the following steps:
[0117] Step 1: Obtain historical data of air conditioning load, meteorological data of corresponding date and date type data;
[0118] Among them, obtain historical air conditioning load data, including cold and hot air conditioning load data in hours and cold and hot air conditioning load data in days; obtain date type data corresponding to the above loads, including month, date, week and holiday data; obtain meteorological type data corresponding to the above loads, including temperature, wind speed, meteorological conditions, air pressure, and light radiation angle data with a time scale of 15 minutes and the average temperature and wind speed within 3 hours with a time scale of 1 hour;
[0119] A model data set is constructed based on the collected historical data of air-conditioning load and the corresponding date meteorological data and date type data; the meteorological type data and date type data are divided into input data of the training set, and the historical data of air-conditioning load is divided into comparison data of the training set.
[0120] Step 2: Build a prediction model based on convolutional neural network (CNN algorithm);
[0121] The historical date type data and meteorological type data are used as the input data of the model to average the data with hourly time scale, and the historical data of air conditioning load, the corresponding date meteorological data and date type data are input to train the convolutional neural network, and the air conditioning load prediction data is output;
[0122] The air conditioning load data output by the prediction model includes the cooling and heating air conditioning loads in hours and the cooling and heating air conditioning loads in days. The output of the prediction model is recorded as Y.
[0123]
[0124] in, is the cooling load in hours; C day is the cooling load in daily units; is the heat load in hours; H day is the heat load in daily units.
[0125] The prediction model input is denoted as X, which is a matrix containing hourly meteorological data and date data. Then X is expressed as
[0126] X=[W1,W2,...,W n ,T1,T2,...,T m ] T
[0127] Among them, W1, W2, ..., W n are meteorological data vectors respectively; n is the number of meteorological data categories; T1, T2, ..., T m are date type data vectors respectively; m is the number of categories of date type data.
[0128] Arrange X into a matrix form, let V be the matrix dimension, then
[0129]
[0130] Wherein, ceil(·) is a rounding function, which means taking the integer value that is greater than and closest to the independent variable.
[0131] Arrange in V dimensions [W1,W2,...,W n,T1,T2,...,T m ] T Each element in forms a V-order square matrix, and the remaining elements are filled with 0.
[0132] Construct a prediction model based on convolutional neural network, where the convolutional layer calculation process of the convolutional neural network is
[0133]
[0134] Among them, y c is the output of the convolutional layer; w c is the shared weight of the convolution kernel of this convolution layer, usually a 3×3 convolution kernel is used; x c Input data for the convolution layer; b c It is the offset and can be ignored in practical applications; is the convolution operation; R(·) is the nonlinear activation function. For the independent variable t, the expression of R(·) is:
[0135]
[0136] The pooling layer of the convolutional neural network uses maximum pooling, and the calculation process is
[0137] y p =max(x p )
[0138] Among them, x p is the data within a certain receptive field of the pooling layer; y p For the included x p The output value obtained by pooling the receptive field within.
[0139] The convolutional neural network consists of multiple sets of convolutional layers and a corresponding number of pooling layers, which together form a prediction model. The input-output mapping relationship of the prediction model is:
[0140] Y=f(X)
[0141] Among them, f(X) is the mapping function of the convolutional neural network.
[0142] In this example, the structure of the convolutional neural network is input layer, convolution layer, pooling layer, convolution layer, pooling layer, fully connected layer, and output layer.
[0143] Step 3: Comparative analysis of output data and comparison data. Compare and analyze the air conditioning load forecast data and the air conditioning load historical data accordingly, and obtain the overall convergence accuracy of the model based on the air conditioning load forecast data and the air conditioning load historical data;
[0144] Set model convergence accuracy The judgment is as follows:
[0145] when The model converges, model training is completed, and the model can be applied for prediction.
[0146] when The model has not converged yet, and the improved bird flock optimization algorithm needs to be applied to optimize the weights of each convolutional layer of the convolutional neural network and return to step 2.
[0147] In this embodiment, the model convergence accuracy is set For 10 -6 .
[0148] The calculation formula of the overall convergence accuracy of the model is:
[0149]
[0150]
[0151]
[0152]
[0153]
[0154] in, They are respectively the cold and heat load prediction accuracy at each hourly time scale and the cold and heat load prediction accuracy at the daily time scale; C day ′,H day ′ are the true values of cooling and heating loads in each historical hourly time scale and the true values of cooling and heating loads in each historical dayly time scale respectively; C day ,H day are the cold and hot load prediction values at each hourly time scale and the cold and hot load prediction values at the daily time scale respectively; λ is the overall convergence accuracy of the model; j∈[1,24].
[0155] Step 4: Apply the improved bird flock optimization algorithm to train the convolutional neural network prediction model, iteratively calculate new fitness values, update historical optimal values and non-inferior values, remove duplicate particles and optimize the weight parameters of each layer of the convolutional neural network;
[0156] The process of training convolutional neural network using improved bird flock optimization algorithm is as follows:
[0157] The weights of each convolutional layer of the convolutional neural network are reflected by the individual position data of the bird flock in the bird flock optimization algorithm. The change process of the individual position values of the bird flock in the bird flock optimization algorithm is the optimization process of the weight value of the convolutional neural network, which is achieved by finding the optimal position of each individual bird flock when the group fitness is the highest.
[0158] Formulate the rules of the bird flock optimization algorithm:
[0159] (1) The foraging and alert behaviors of individual birds in the flock are realized by formulating a random decision value. When the number randomly generated between (0, 1) by probability is greater than the set constant P, the individual birds in the flock will forage for food, otherwise they will maintain alert behavior.
[0160] (2) During the foraging behavior, each individual bird in the flock updates its foraging location and shares it with the entire flock, thereby sharing the flock’s optimal foraging location.
[0161]
[0162] in, is the position of the bird in the i-th row and j-th column at the t-th iteration; p i,j is the best position that the bird in row i and column j has passed; g j is the optimal position of the flock; S and T are the cognitive coefficient and evolution coefficient respectively, both of which are normal numbers; rand(0,1) represents a random number that obeys a Gaussian distribution with an expected value of 0 and a standard deviation of 1.
[0163] (3) In the alert behavior, each individual bird in the flock attempts to fly to the center of the population. Affected by the competition among the population, the birds with more food reserves have a greater probability of going to the center of the population than those with less food. To avoid competition, the behavior of individual birds in the flock can be expressed as
[0164]
[0165]
[0166]
[0167] Where k∈[1,N], and k≠i, N is the population size, that is, the number of all weights to be optimized in the convolutional neural network; δ1,δ2 are the flock approach coefficient and escape coefficient respectively; v1,v2 are constants between [0,2]; pFit i,jis the fitness of the bird in the i-th row and j-th column, that is, the prediction accuracy of the model after only updating the weight value of the neural network corresponding to the position of the bird; sumFit is the sum of the fitness of the entire bird flock, that is, the sum of the prediction accuracy of the model calculated by updating the position of each individual in the bird flock, that is, each weight value of the neural network; ε is used to avoid zero division; meanpFit is the average fitness of the population, that is, the average prediction accuracy of the model calculated by updating the position of each individual in the bird flock, that is, each weight value of the neural network. (4) In order to escape pursuit or find food, the flock of birds will fly to other areas regularly, and when they arrive at another area, they will start to forage again. The one with the most food reserves in the population is called a food producer, and the one with the least reserves is called a beggar. After flying to other areas, some beggar bird individuals follow the producer bird individuals to find food. The behavior of producers and beggars is expressed as
[0168]
[0169]
[0170] Among them, FL is the probability that the beggar forages with the producer, FL∈[0,1].
[0171] The initial parameters of the improved bird flock optimization algorithm are random values of the algorithm.
[0172] Step 5: Apply the trained model to perform short-term air conditioning load forecasting at multiple time scales.
[0173] By inputting the weather and date type data of the day to be predicted into the trained prediction model, the cold and heat load prediction values in hours and days for the predicted day can be obtained.
[0174] The multi-time scale cold and hot air conditioning load prediction results output by the prediction model are as follows Figure 2 , Figure 3 As shown, Figure 2 It is a graph of predicted and actual values of cold and hot air conditioning loads on an hourly time scale; Figure 3 This is a curve chart of the predicted and actual values of the cold and hot air conditioning loads on a daily time scale.
[0175] The forecast results of the cooling and heating air conditioning loads on an hourly time scale and the actual cooling and heating air conditioning load values are shown in Table 1:
[0176] Table 1 Comparison of some cold and hot air conditioning load prediction results based on hourly time scale
[0177]
[0178]
[0179] The forecast results of cooling and heating air conditioning loads on a daily time scale are shown in Table 2:
[0180] Table 2 Comparison of cold and hot air conditioning load prediction results based on the day time scale
[0181] serial number Air conditioning cooling load actual value Air conditioning cooling load prediction value Air conditioning heat load actual value Air conditioning cooling load prediction value 1 8290.07 7829.03 23794.40 25440.78 2 8693.30 8879.81 23604.69 21792.15 3 8637.79 8341.33 23008.89 22177.70 4 9439.21 10324.46 23534.14 24402.92 5 9145.88 8795.40 24210.47 23442.93 6 8551.98 9491.17 24147.30 25675.89 7 8654.76 9558.16 22807.45 21288.43
[0182] The average relative errors of the prediction results of cold and hot air conditioning loads with hourly and daily time scales are calculated respectively. Among them, the average relative error of the prediction results of air conditioning cold load with hourly time unit is 92.7%; the average relative error of the prediction results of air conditioning heat load with hourly time unit is 93.6%; the average relative error of the prediction results of air conditioning cold load with dayly time unit is 93.5%; the average relative error of the prediction results of air conditioning heat load with hourly time unit is 94.6%. The results show that the multi-time scale air conditioning load prediction method proposed in the present invention has good prediction performance, good reliability, high accuracy, and meets the needs of practical applications.
[0183] The above are only specific embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-time scale air conditioning load forecasting method, characterized by: The following steps are involved: Step 1: Create a training set Acquire historical data of air conditioning load, acquire meteorological data of corresponding date and date type data; construct a model data set for the collected historical data of air conditioning load and corresponding meteorological data of date and date type data; divide the meteorological type data and date type data into input data of training set, and divide the historical data of air conditioning load into comparison data of training set; Step 2: Build a prediction model based on convolutional neural network Input air conditioning load historical data, corresponding date meteorological data and date type data to train the convolutional neural network, and output air conditioning load forecast data; Step 3: Comparative analysis of output data and comparison data Compare and analyze the air conditioning load forecast data with the air conditioning load historical data to obtain the overall convergence accuracy of the model. If the overall convergence accuracy of the model meets the set model convergence accuracy requirements, the model training is completed. If the overall convergence accuracy of the model does not meet the set model convergence accuracy requirements, the improved bird flock optimization algorithm is used to optimize the weight parameters of each layer of the convolutional neural network, and return to step 2. Step 4: Apply the improved bird flock optimization algorithm to train the convolutional neural network prediction model By iteratively calculating new fitness values, updating historical optimal values and non-inferior values, removing duplicate particles and optimizing the weight parameters of each layer of the convolutional neural network; Step 5: Apply the trained convolutional neural network model to perform short-term air conditioning load forecasting at multiple time scales.
2. The multi-time scale air conditioning load forecasting method according to claim 1, characterized in that: When constructing a prediction model based on a convolutional neural network, the historical date type data and the meteorological type data are averaged into data with an hourly time scale; The air conditioning load forecast data output by the forecast model includes hourly cold air conditioning load forecast data, hot air conditioning load forecast data and daily cold air conditioning load forecast data, and the forecast model output is recorded as Y. in, is the cooling load in hours; C day is the cooling load in daily units; is the heat load in hours; H day is the heat load in daily units; The prediction model input is denoted as X, which is a vector containing hourly meteorological data and date data. Then X is expressed as X=[W1,W2,...,W n ,T1,T2,...,T m ] T ; Among them, W1, W2, ..., W n are meteorological data vectors respectively; n is the number of meteorological data categories; T1, T2, ..., T m are date type data vectors respectively; m is the number of categories of date type data.
3. The multi-time scale air conditioning load forecasting method according to claim 2, characterized in that: When building a prediction model based on a convolutional neural network, X is organized into a matrix form for training; X is organized into a matrix form, and V is the matrix dimension. Among them, ceil(·) is a round-up function, which means taking the integer value that is greater than and closest to the independent variable; Arrange in V dimensions [W1,W2,...,W n ,T1,T2,...,T m ] T Each element in forms a V-order square matrix, and the remaining elements are filled with 0.
4. The multi-time scale air conditioning load forecasting method according to claim 3 is characterized in that: Construct a prediction model based on convolutional neural network, where the convolutional layer calculation process of the convolutional neural network is: Among them, y c is the output of the convolutional layer; w c is the shared weight of the convolution kernel of the convolution layer; x c Input data for the convolution layer; b c is the offset; is the convolution operation; R(·) is the nonlinear activation function. For the independent variable t, the expression of R(·) is The pooling layer of the convolutional neural network uses maximum pooling, and the calculation process is and p =max(x p ) Among them, x p is the data within a certain receptive field of the pooling layer; p For the included x p The output value obtained by pooling the receptive field within; The convolutional neural network consists of multiple sets of convolutional layers and a corresponding number of pooling layers, which together form a prediction model. The input-output mapping relationship of the prediction model is: Y=f(X) Among them, f(·) is the mapping function of the convolutional neural network.
5. The multi-time scale air conditioning load prediction method according to claim 1, characterized in that: The calculation formula for the overall convergence accuracy of the model is: in, They are respectively the cold and heat load prediction accuracy at each hourly time scale and the cold and heat load prediction accuracy at the daily time scale; C day′ ,H day′ They are respectively the real values of cooling and heating loads in each historical hourly time scale and the real values of cooling and heating loads in each historical dayly time scale; C day ,H day are the cold and hot load prediction values at each hourly time scale and the cold and hot load prediction values at the daily time scale; λ is the overall convergence accuracy of the model; j∈[1,24]; set the model convergence accuracy The judgment is as follows: when The model converges and can be used for prediction; when The model has not converged yet, and the improved bird flock optimization algorithm needs to be applied to optimize the weights of each convolutional layer of the convolutional neural network.
6. The multi-time scale air conditioning load prediction method according to claim 1, characterized in that: In step 4, the improved bird flock optimization algorithm is applied to train the convolutional neural network, wherein the weights of each convolutional layer of the convolutional neural network are reflected by the individual position data of the bird flock in the bird flock optimization algorithm. The change process of the individual position values of the bird flock in the bird flock optimization algorithm is the optimization process of the weight value of the convolutional neural network, by finding the optimal position of each individual bird flock when the group fitness is the highest.
7. The multi-time scale air conditioning load prediction method according to claim 1, characterized in that: In step 1, historical air conditioning load data is obtained, including cold air conditioning load data and hot air conditioning load data in hours and cold air conditioning load data and hot air conditioning load data in days; date type data corresponding to the above loads are obtained, including month, date, week and holiday data; meteorological type data corresponding to the above loads are obtained, including temperature, wind speed, meteorological conditions, air pressure, and light radiation angle data with a time scale of 15 minutes and the average temperature and wind speed within 3 hours with a time scale of 1 hour.
