Aircraft ground air conditioning energy consumption prediction method and storage medium based on IALO-AM-BiLSTM model

By using the IALO-AM-BiLSTM model in aircraft ground air conditioning energy consumption prediction, combined with the bidirectional long short-term memory neural network and attention mechanism, and using the improved ant lion optimization algorithm to optimize the hyperparameters, the simplicity of the model and the hyperparameters in the existing technology are solved. Configuration of complex problems significantly improves prediction accuracy and efficiency.

CN114065635BActive Publication Date: 2024-09-13CIVIL AVIATION UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111389226.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-09-13
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

In the existing technology, in the prediction of aircraft ground air conditioning energy consumption, the model is simple, fails to effectively utilize the time patterns in the data, and the prediction accuracy is limited. In particular, the LSTM neural network cannot distinguish the importance of time series features, the hyperparameter configuration is complex, and the optimization algorithm exists. Difficult problem of parameter adjustment.

Method used

An aircraft ground air-conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model is used, combined with a two-way long short-term memory neural network and an attention mechanism, and the hyperparameters are optimized by improving the ant lion optimization algorithm to improve prediction accuracy and efficiency.

Benefits of technology

The accuracy of aircraft ground air conditioning energy consumption prediction is significantly improved, with a mean square error of 6.045, an average absolute percentage error of 0.928%, and a coefficient of determination of 0.956, which proves the high accuracy and adaptability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065635B
    Figure CN114065635B
Patent Text Reader

Abstract

The invention provides an aircraft ground air conditioning energy consumption prediction method based on an IALO-AM-BiLSTM model and a storage medium, comprising: collecting aircraft ground air conditioning energy consumption data to form a data set; constructing an IALO-AM-BiLSTM model, wherein the model comprises two parts: an AM-BiLSTM initial prediction model and an IALO hyperparameter optimization algorithm; mining bidirectional time series features of a data set using a BiLSTM neural network of the AM-BiLSTM initial prediction model, and then assigning different weights to the bidirectional time series features through an attention mechanism AM; using the IALO hyperparameter algorithm to find a hyperparameter combination that optimizes the prediction result of a part in the AM-BiLSTM initial prediction model; using the optimal hyperparameter combination to configure the hyperparameters of an AM-BiLSTM final prediction model; and using the AM-BiLSTM final prediction model to predict the power consumption of ground air conditioning operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of energy consumption prediction, and in particular relates to an aircraft ground air conditioning energy consumption prediction method and a storage medium based on an IALO-AM-BiLSTM model. Background Art

[0002] In recent years, green emission reduction technologies have been promoted. The Civil Aviation Administration has proposed the construction of green airports, including resource conservation, efficient operation, and low-carbon emission reduction. The construction of green airports is inseparable from the research on the intelligence and greening of airport equipment. In airport operation management, ground air conditioning is the main equipment for cooling and dehumidifying aircraft cabins. Accurately predicting its power consumption during operation is of great significance for the construction of green airports. The energy consumption of ground air conditioning is affected by multi-dimensional factors, and how to improve the prediction accuracy has always been a concern. In order to reduce the use of highly polluting and expensive aviation kerosene, airlines mainly use ground air conditioning equipment instead of onboard air conditioning to ventilate, cool and dehumidify aircraft parked on the ground. Accurately predicting the energy consumption of aircraft ground air conditioning can provide a scientific reference for airports to control energy consumption and reasonably allocate power resources, meeting the needs of high efficiency, energy saving and ensuring cabin thermal comfort.

[0003] At present, the research on ground air conditioning energy consumption prediction mainly uses neural networks to establish a mapping relationship between input and output. Assuming that the mapping relationship still holds true on unknown data sets, the input of the unknown data set is substituted into the mapping relationship, and the output obtained is the prediction result. For example, wavelet neural networks are used to predict aircraft ground air conditioning energy consumption, and coral reef and particle swarm joint algorithms are used to optimize the hyperparameters in the model; there is also an aircraft ground air conditioning energy consumption prediction method based on the IPSO-Elman model. The above research on aircraft ground air conditioning energy consumption prediction has certain value, but it fails to effectively utilize the time law in the data, and the model used is relatively simple, and there is still room for improvement in prediction accuracy. Based on this, people also proposed a long short-term memory (LSTM) neural network, which can selectively add or delete the flow information. LSTM neural network and its variants are currently one of the most widely used and effective models in the study of time series prediction problems. There is also a CNC machine tool thermal error prediction method based on LSTM neural network, and the use of LSTM neural network to predict power load. The above research has improved the prediction accuracy to a certain extent, but ignores the three shortcomings of LSTM neural network. First, LSTM neural networks can only mine time series features from the past, so some scholars use two LSTM neural networks in opposite directions to form a bidirectional long short-term memory (BiLSTM) neural network and apply it to the field of time series prediction. Studies have shown that compared with single-layer LSTM models, BiLSTM neural networks can train more data and improve prediction accuracy by mining more time series features. Secondly, LSTM neural networks cannot distinguish the importance of time series features and are prone to missing important features. To address this problem, many scholars have added attention mechanisms (AM) to prediction models to improve prediction accuracy. The attention mechanism is a mechanism that optimizes resource allocation and improves prediction results by assigning different weights to features. Finally, the prediction accuracy of LSTM neural networks is closely related to the configuration of hyperparameters, especially for models with multiple hyperparameters. Only by configuring a suitable hyperparameter combination can the prediction performance of the model be fully utilized.For hyperparameters with a large search range, manual or brute force parameter adjustment has problems such as high computational cost and long time consumption. Therefore, some scholars use swarm intelligence optimization algorithms to improve the efficiency of hyperparameter optimization. Existing literature uses particle swarm optimization (PSO) algorithm to optimize the smoothing factor of generalized regression neural network (GRNN). Through simulation experiments, it is proved that the PSO-GRNN model is effective in predicting the static pressure value in the lungs. However, the PSO algorithm has the problem of too many adjustment parameters, which will bring new parameter adjustment problems. Other literature uses Ant Lion Optimizer (ALO) algorithm to optimize the number of hidden neurons and learning rate of LSTM neural network, and proves that the LSTM-ALO model has the advantage of high prediction accuracy by predicting monthly runoff. However, this model only considers the case of a small number of hyperparameters. For problems with a large number of hyperparameters and complex search space, further research is needed.

[0004] Combined with the above analysis, an IALO-AM-BiLSTM model and storage medium that can be used for ground air conditioning energy consumption prediction are proposed. Summary of the invention

[0005] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides an aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] A method for predicting aircraft ground air conditioning energy consumption based on the IALO-AM-BiLSTM model comprises the following steps:

[0008] Collect aircraft ground air conditioning energy consumption data to form a data set;

[0009] Constructing an IALO-AM-BiLSTM model, wherein the IALO-AM-BiLSTM model includes two parts: an AM-BiLSTM initial prediction model and an IALO hyperparameter optimization algorithm;

[0010] The BiLSTM neural network of the AM-BiLSTM initial prediction model is used to mine the bidirectional time series features of the data set, and then the attention mechanism AM is used to assign different weights to the bidirectional time series features;

[0011] Use the IALO hyperparameter algorithm to find the hyperparameter combination that optimizes the prediction results in the AM-BiLSTM initial prediction model. The fitness value of the IALO hyperparameter algorithm is the mean square error of the prediction results of the AM-BiLSTM model.

[0012] Use the optimal hyperparameter combination to configure the hyperparameters of the AM-BiLSTM final prediction model;

[0013] The AM-BiLSTM final prediction model is used to predict the power consumption of ground air conditioning.

[0014] Preferably, the aircraft ground air conditioning energy consumption data includes the initial temperature and initial humidity of the cabin before the ground air conditioning works, the final temperature and final humidity of the cabin after the work is completed, and the power consumption of the whole process.

[0015] Preferably, the AM-BiLSTM initial prediction model and the AM-BiLSTM final prediction model both include an input layer, a BiLSTM layer, a Dropout layer, a Dense layer, an AM layer and an output layer.

[0016] Preferably, the IALO hyperparameter optimization algorithm includes two improvement mechanisms:

[0017] (1) Random walk space reduction mechanism, the improved mathematical expression is shown as follows;

[0018]

[0019]

[0020] Where: ω is the shrinkage factor, t is the current number of iterations, T is the maximum number of iterations, and rand is a random number between 0 and 1;

[0021] (2) Ant position update mechanism, which nonlinearly and dynamically adjusts the weight coefficient β of the common ant lion according to the number of iterations, as shown in the following formula;

[0022]

[0023]

[0024] Where: β is the weight coefficient of the common ant lion, β max is the maximum value of the weight coefficient of the common ant lion, β min is the minimum value of the weight coefficient of the common ant lion, t is the current number of iterations, and T is the maximum number of iterations;

[0025] is the position of the i-th ant at the t-th iteration; The ants randomly walk around the common antlion in the tth iteration; ant randomly walks around the elite antlion in the tth iteration.

[0026] Preferably, the AM-BiLSTM initial prediction model or the AM-BiLSTM final prediction model includes:

[0027] (1) Input layer: The environmental data at each moment is used as the input of the model. The input at time t is shown as follows:

[0028] X t =[pre-temp t ,post-temp t ,pre-humidity t ,post-humidity t ]

[0029] Where: X t is the input sequence at time t, pre-temp t is the initial cabin temperature before the ground air conditioning starts working at time t; post-temp t The final cabin temperature after the ground air conditioning is completed at time t; pre-humidity t is the initial humidity of the cabin before the ground air conditioning starts working at time t; post-humidity t The final humidity of the cabin after the ground air conditioning is completed at time t;

[0030] (2) BiLSTM layer: Use two LSTM neural networks in opposite directions to analyze the input sequence X at time t. t Calculate and output y t It is regarded as the bidirectional time series characteristics of ground air conditioning energy consumption data;

[0031] (3) Dropout layer: The bidirectional time series features of ground air conditioning energy consumption data are randomly discarded according to the discard rate;

[0032] (4) Dense layer: The output of the Dropout layer is transformed nonlinearly in the Dense layer;

[0033] (5) AM layer: The output hidden state of the Dense layer is regarded as the input of the AM layer, and the output s of the AM layer at time t is calculated t ;

[0034] (6) Output layer: A fully connected layer is used to perform dimensionality reduction calculation on the output of the AM layer. Its activation function is the sigmoid function. The final output result Y is the power consumption of the ground air conditioner at the predicted time.

[0035] Preferably, the hyperparameters refer to the batch size, the number of units in the BiLSTM layer, the number of units in the Dense layer, the number of iterations, the discard rate of the Dropout layer, and the learning rate in the AM-BiLSTM initial prediction model.

[0036] Preferably, the AM-BiLSTM final prediction model is trained before predicting the power consumption of the ground air conditioner, and the training process includes the following steps:

[0037] (1) The data set is divided into a training set and a test set in a ratio of 7:3, and the maximum value normalization method is used to process them respectively. The calculation formula is as follows:

[0038]

[0039] Where: x e is the normalized input data; x a is the original input data; x max 、x min is the maximum and minimum value of each variable in the original data;

[0040] (2) The batch size of the model prediction part, the number of neurons in the BiLSTM layer, the discard rate of the Dropout layer, the number of neurons in the Dense layer, the number of iterations, and the learning rate hyperparameters are set as optimization objects and their respective search spaces are determined;

[0041] (3) Set the number of iterations T, population size N, and number of variables D of the IALO algorithm;

[0042] (4) The positions of ants and ant lions are randomly initialized, and the prediction part of the model is trained with the training set. The mean square error (MSE) of the prediction error is selected as the fitness function, and the fitness value corresponding to each position is calculated. The calculation formula of MSE is as follows:

[0043]

[0044] In the formula, y i is the true value, f(x i ) is the predicted value, n is the number of true values;

[0045] (5) Determine the elite ant lion according to the fitness value, and draw ordinary ant lions through roulette;

[0046] (6) The random walk space is updated according to the following formula. The ants perform random walks around the elite ant lion and the ordinary ant lion respectively;

[0047]

[0048]

[0049]

[0050]

[0051]

[0052]

[0053] Where: t is the current iteration number, T is the maximum iteration number, and rand is a random number between 0 and 1;

[0054] is the minimum value of the i-th variable at the t-th iteration;

[0055] is the position of the i-th antlion at the t-th iteration;

[0056] c t is the minimum value of all variables at the tth iteration;

[0057] I is the contraction coefficient;

[0058] is the maximum value of the i-th variable at the t-th iteration;

[0059] d t is the maximum value of all variables at the tth iteration;

[0060] (7) Determine the final position of the ant according to the following formula and calculate the weight coefficient β of the common ant lion;

[0061]

[0062]

[0063] Where: β max =0.8; β min =0.2;

[0064] Then compare it with the fitness value of the elite ant lion and update the position of the elite ant lion according to the following formula;

[0065]

[0066] (8) Determine whether the termination condition is met. If so, output the optimal position. Otherwise, return to step (4). The termination condition is that the maximum number of iterations is reached.

[0067] (9) Use the optimal hyperparameter combination obtained by the IALO algorithm to configure the prediction part of the model and train it with the training set;

[0068] (10) Input the feature data of the test set into the trained model and output the prediction results;

[0069] (11) Denormalize the prediction results, compare them with the target data of the test set, and combine them with the evaluation index.

[0070] Another object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements an aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model.

[0071] The aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model provided by the present invention has the following beneficial effects:

[0072] This method uses a bidirectional long short-term memory (BiLSTM) neural network and an attention mechanism (AM) to construct the prediction part of the model, which can fully mine and utilize the time series features in the data; and takes the optimal prediction accuracy as an indicator, and proposes a hyperparameter optimization method based on the improved ant lion optimization (IALO) algorithm. Compared with the standard ant lion optimization (ALO) algorithm, the IALO algorithm improves the shrinkage factor in the random walk space reduction mechanism and gives the shrinkage coefficient a certain degree of randomness. At the same time, it introduces a dynamic adjustment mechanism for the ordinary ant lion weight coefficient, which improves the convergence speed and optimization ability of the algorithm. Simulations were performed on actual data sets, and the mean square error (MSE) of the prediction results of this method was 6.045, the mean absolute percentage error (MAPE) was 0.928%, and the coefficient of determination (R 2 ) is 0.956. By comparing with other prediction methods, it is fully proved that this prediction method has the advantages of high accuracy and strong adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the embodiment of the present invention and its design scheme, the following briefly introduces the drawings required for this embodiment. The drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0074] Figure 1 This is a flow chart of a method for predicting aircraft ground air conditioning energy consumption based on an IALO-AM-BiLSTM model according to Embodiment 1 of the present invention;

[0075] Figure 2 This is the basic unit structure diagram of LSTM;

[0076] Figure 3 This is the BiLSTM structure diagram;

[0077] Figure 4 This is the structural diagram of the attention mechanism;

[0078] Figure 5 To predict the partial structure diagram;

[0079] Figure 6 It is the curve diagram of the contraction factor adjustment process;

[0080] Figure 7 This is the curve diagram of the weight coefficient adjustment process of the common ant lion;

[0081] Figure 8 This is the training flow chart of the IALO-AM-BiLSTM model;

[0082] Fig. 9 It is a curve chart of the iterative process of the optimization algorithm;

[0083] Fig.10 Comparison chart of prediction results of different models and true values. DETAILED DESCRIPTION

[0084] In order to enable those skilled in the art to better understand the technical solution of the present invention and implement it, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the scope of protection of the present invention.

[0085] Example 1

[0086] This embodiment proposes a method for predicting aircraft ground air conditioning energy consumption based on the IALO-AM-BiLSTM model, wherein the IALO-AM-BiLSTM model uses a bidirectional long short-term memory (BiLSTM) neural network, an attention mechanism (AM), and an improved ant lion optimization (IALO) algorithm. These three networks and algorithms are described below.

[0087] First, Bidirectional Long Short-Term Memory Neural Network

[0088] The LSTM neural network is a chain structure composed of many repeated basic units, each of which has a long-term state c. t 、Short-term state h t Two states, and three gate structures: input gate, forget gate and output gate. Through the calculation of the three gates, information can be deleted or added to the basic unit state. The structure of the basic unit is as follows Figure 2 As shown, the specific operation process is shown in formulas (1)-(6).

[0089] f t =σ(W f ·[h t-1 ,x t ]+b f ) (1)

[0090] i t=σ(W i ·[h t-1 ,x t ]+b i ) (2)

[0091]

[0092]

[0093] o t =σ(W o ·[h t-1 ,x t ]+b o ) (5)

[0094] h t =o t ·tanh(c t ) (6)

[0095] Where: [h t-1 ,x t ] is the output h of the previous moment t-1 and the current input x t The concatenation vector, W f , W i , W c , W o are the weight matrices of the forget gate, input gate, basic unit state, and output gate respectively; b f , b i , b c , b o They are the bias items of forget gate, input gate, basic unit state and output gate respectively; σ() is the sigmoid activation function; tanh() is the tanh activation function.

[0096] The BiLSTM neural network is composed of two LSTM neural networks with opposite directions. Figure 3 As shown, the forward LSTM neural network is denoted as LSTM1 and the backward LSTM neural network is denoted as LSTM2.

[0097] These two LSTM neural networks have the same network structure but different weight matrices and bias terms. The output of the forward LSTM1 is calculated at each moment. and the output from the backward LSTM2 Will and Combined, we get the output y of BiLSTM t , its mathematical expression is:

[0098]

[0099]

[0100]

[0101] Where: They are the weight matrix and bias term of LSTM1 respectively; are the weight matrix and bias term of LSTM2 respectively; v and c are the weight matrix and bias term of calculated output respectively.

[0102] Second, attention mechanism

[0103] The attention mechanism is a technology that allows the model to pay more attention to more important information and learn and absorb it. In the time series prediction task, the attention mechanism can be used to assign different weights to each state of the hidden layer, and then perform weighted operations based on the weights to achieve the purpose of optimizing the prediction results. The structure of the attention mechanism is as follows: Figure 4 As shown in the figure, x t is the input of the model at time t, y t is the state of the hidden layer at time t.

[0104] The operation process of the attention mechanism is divided into three stages. In the first stage, the hidden layer state y at each moment is calculated by the scoring function. t The attention score is calculated as:

[0105] e t =score(y t )=tanh(y t ·θ+b) (10)

[0106] Where: θ and b represent the weight matrix and bias term of the scoring function respectively.

[0107] The second stage uses the softmax layer to t Perform normalization operation to find the corresponding weight value at each moment. The calculation formula is:

[0108]

[0109] The third stage is to set the weight value a at each moment t The state y corresponding to the hidden layer t The weighted sum is the output Y after the AM layer. The calculation formula is:

[0110]

[0111] Third, Ant Lion Optimization Algorithm

[0112] The antlion optimization algorithm is inspired by the antlion preying on ants in nature. It uses a variety of mechanisms such as random walk, roulette strategy and elite strategy. Compared with genetic algorithm and particle swarm optimization algorithm, it has the advantages of fewer adjustment parameters, fast convergence speed and strong global ability. The operation steps are as follows.

[0113] Step (1): Randomly initialize the positions X of ants and antlions n,d , as shown in formula (13). Each position represents a solution to the problem. The corresponding fitness value can be calculated according to the given fitness function. The one with the best fitness value is selected as the elite antlion, denoted by R E .

[0114] X n,d =L d +rand(U d -L d ) (13)

[0115] Where: n = 1, 2, ..., N; d = 1, 2, ..., D; N is the number of ants and ant lions; D is the number of variables; L d is the lower limit of the dth variable; U d is the upper limit of the dth variable.

[0116] Step (2): The ALO algorithm uses random walks to simulate the walking process of ants. The mathematical expression of the random walk step set X(t) is:

[0117] X(t)={0,cumsum[2r(t1)-1],...,cumsum[2r(t) n )-1]} (14)

[0118]

[0119]

[0120] Where: cumsum() is the function for calculating the cumulative sum; t n Indicates the nth iteration; n is the maximum number of iterations; rand is a random number between 0 and 1; represents the normalized position of the i-th dimension variable at the t-th iteration; a i d i are the minimum and maximum values ​​of the random walk of the i-th dimension variable respectively; are the minimum and maximum values ​​of the random walk of the i-th dimension variable in the t-th generation, respectively.

[0121] Step (3): Let the vector and The hypersphere is defined as the search space of the ant’s random walk. In order to speed up the capture process, the random walk space will continue to shrink. Its expression is as shown in equations (17)-(20).

[0122]

[0123]

[0124]

[0125]

[0126] Where: c t d t are the minimum and maximum vectors of all variables at the tth iteration respectively; is the position of the i-th antlion at the t-th iteration; t is the current iteration number, and T is the maximum iteration number.

[0127] Step (4): In each iteration, the antlion with the best fitness value is saved as the elite antlion, and then an ordinary antlion is drawn through roulette. Each ant randomly walks around the ordinary antlion and the elite antlion. The formula for updating the ant position is:

[0128]

[0129] Where: is the position of the i-th ant at the t-th iteration; The ants randomly walk around the common antlion in the tth iteration; ant randomly walks around the elite antlion in the tth iteration.

[0130] Step (5): The ant will eventually be preyed upon by the antlion. If the fitness value of the ant is better than that of the corresponding antlion, the position of the antlion is replaced by the position of the ant, as shown in equation (22). Then, the fitness values ​​of the antlion and the elite antlion are compared, and the one with the better fitness value is saved as the elite antlion in the next iteration.

[0131]

[0132] Based on this, the present invention proposes an aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model, specifically as follows: Figure 1 As shown, the following steps are included:

[0133] Step 1: Collect aircraft ground air conditioning energy consumption data to form a data set. In this embodiment, the aircraft ground air conditioning energy consumption data includes the initial temperature and initial humidity of the cabin before the ground air conditioning works, the final temperature and final humidity of the cabin after the work is completed, and the power consumption of the whole process.

[0134] Step 2: Construct the IALO-AM-BiLSTM model. The IALO-AM-BiLSTM model includes two parts: the AM-BiLSTM initial prediction model and the IALO hyperparameter optimization algorithm.

[0135] This embodiment classifies the factors that affect the energy consumption of aircraft ground air conditioning into three categories: the first is external environmental conditions including ambient temperature, ambient humidity, light intensity, etc.; the second is internal environmental initial conditions including cabin space, cabin initial temperature, cabin initial humidity, etc.; the third is internal environmental target conditions including temperature after work is completed, humidity after work is completed, etc. Among them, the external environmental conditions that have a greater impact on the energy consumption of ground air conditioning have a strong time law, so the idea of ​​time series prediction can be introduced into the research on the prediction of aircraft ground air conditioning energy consumption, and the prediction accuracy can be improved by strengthening the use of the time series characteristics of the data.

[0136] On this basis, the IALO-AM-BiLSTM model is proposed. The model consists of a prediction part and a hyperparameter optimization part. The prediction part combines the BiLSTM neural network with the attention mechanism to enhance the utilization of time series features in the data. The hyperparameter optimization part uses the IALO algorithm to automatically find the hyperparameter combination that optimizes the prediction effect. The IALO algorithm is based on the standard ALO algorithm and improves the ant random walk space reduction mechanism in step (3) and the ant position update mechanism in step (4).

[0137] First, the prediction part is based on BiLSTM neural network and attention mechanism, and Dropout is introduced to avoid overfitting due to less training data. The AM-BiLSTM initial prediction model includes six layers of network, including input layer, BiLSTM layer, Dropout layer, Dense layer, AM layer, and output layer. The layer structure is as follows: Figure 5 shown.

[0138] The functions of each network layer are as follows:

[0139] (1) Input layer: The environmental data at each moment is used as the input of the model. The input at time t is shown as follows:

[0140] X t =[pre-temp t ,post-temp t ,pre-humidity t ,post-humidity t ]

[0141] Where: X t is the input sequence at time t, pre-temp tis the initial cabin temperature before the ground air conditioning starts working at time t; post-temp t The final cabin temperature after the ground air conditioning is completed at time t; pre-humidity t is the initial humidity of the cabin before the ground air conditioning starts working at time t; post-humidity t It is the final humidity of the cabin after the ground air conditioning is completed at time t.

[0142] (2) BiLSTM layer: Use two LSTM neural networks in opposite directions to analyze the input sequence X at time t. t Calculate and output y t It is regarded as the bidirectional time series feature of ground air conditioning energy consumption data (i.e., the bidirectional time series feature mined by the BiLSTM neural network).

[0143] (3) Dropout layer: The bidirectional time series features of ground air conditioning energy consumption data are randomly discarded according to the discard rate.

[0144] (4) Dense layer: The output of the Dropout layer is transformed nonlinearly in the Dense layer.

[0145] (5) AM layer: The output hidden state of the Dense layer is regarded as the input of the AM layer, and the output s of the AM layer at time t is calculated t .

[0146] (6) Output layer: A fully connected layer is used to perform dimensionality reduction calculation on the output of the AM layer. Its activation function is the sigmoid function. The final output result Y is the power consumption of the ground air conditioner at the predicted time.

[0147] Second, hyperparameter optimization part

[0148] Selecting appropriate hyperparameters is crucial to fully exert the predictive performance of the model. Inappropriate hyperparameter optimization methods will have the disadvantages of wasting time, wasting resources, or unstable and insufficient predictive performance. Considering that the proposed prediction part contains more hyperparameters, this embodiment proposes an IALO hyperparameter optimization algorithm for multi-hyperparameter optimization to solve the shortcomings of the standard ALO algorithm when dealing with complex multi-dimensional search spaces, such as difficulty in optimization and slow convergence. The two proposed improvement mechanisms are as follows.

[0149] ① Random walk space reduction mechanism

[0150] From expressions (17)-(20), we can see that the shrinkage factor ω is a piecewise constant function, which makes the random walk space shrink piecewise linearly as the number of iterations increases. The standard random walk space shrinkage mechanism has three shortcomings. First, the large step change of the search space at the segmentation point will miss some areas and may miss the optimal solution; second, the segmented shrinkage process of the search space is slow and uneven, resulting in slow convergence; third, in the iteration process of the same stage, the random walk space of all ants is exactly the same, which not only reduces the diversity of the algorithm but also wastes computing power.

[0151] In order to improve the optimization performance, convergence performance and diversity of the algorithm, a continuous nonlinear random walk space reduction mechanism with a certain randomness is proposed. The improved mathematical expressions are shown in Equations (24)-(25).

[0152]

[0153]

[0154] Where: t is the current iteration number, T is the maximum iteration number, and rand is a random number between 0 and 1.

[0155] This mechanism mainly improves the contraction factor ω, and its change curve is as follows Figure 6 shown.

[0156] Depend on Figure 6 It can be seen that: (1) the improved shrinkage factor ω can still meet the shrinkage scale change requirements; (2) the improved shrinkage factor ω has continuity, which can avoid missing certain areas in the optimization process.

[0157] In addition, adding a random part within the shrinkage coefficient I not only effectively enhances the diversity of the algorithm, but also accelerates convergence in the later stages of iteration.

[0158] ②Ant position update mechanism

[0159] In the standard ALO algorithm, ants update their positions by randomly walking around elite antlions and ordinary antlions drawn through roulette. Ordinary antlions mainly affect the global search ability of the algorithm, while elite antlions mainly affect the local optimization ability of the algorithm. The weights of the two when updating the ant positions are always 0.5. However, in the actual iteration process, the requirements for global search ability and local optimization ability vary at different times. Stronger global search ability is required in the early and middle stages of the iteration to increase the diversity of the population and avoid falling into the local optimal solution; while stronger local optimization ability is required in the later stages of the iteration to increase the convergence speed near the global optimal point and find a better solution.

[0160] In order to meet the different requirements of the algorithm for global search capability and local optimization capability at different stages, this embodiment proposes a method for nonlinearly and dynamically adjusting the weight coefficient β of the ordinary ant lion according to the number of iterations, as shown in formulas (26)-(27).

[0161]

[0162]

[0163] Where: β is the weight coefficient of the common ant lion, β max is the maximum value of the weight coefficient of the common ant lion, β min is the minimum value of the weight coefficient of the common ant lion, t is the current number of iterations, and T is the maximum number of iterations;

[0164] is the position of the i-th ant at the t-th iteration; The ants randomly walk around the common antlion in the tth iteration; ant randomly walks around the elite antlion in the tth iteration.

[0165] The curve of the weight coefficient β of the common ant lion changing with the number of iterations is as follows: Figure 7 As shown in the figure, it can be seen that after adopting this adjustment method, the IALO algorithm has a stronger global optimization ability in the early stage of iteration, and then reduces the global optimization ability at a relatively slow speed. In the middle of the iteration, it still focuses on global optimization, thereby searching for a better solution area in the global scope and avoiding falling into the local optimal trap. Then, the local optimization ability is enhanced at a faster speed, so that the local optimization is mainly used in the later stage of iteration, ensuring that the algorithm can fully find the local optimal solution in the global optimal area.

[0166] Step 3: Use the BiLSTM neural network of the AM-BiLSTM initial prediction model to fully mine the bidirectional time series features of the data set (bidirectional time series features refer to the time series before training and the time series after training), and then assign different weights to the bidirectional time series features through the attention mechanism AM, so as to highlight the impact of important features on the prediction results;

[0167] Step 4: Use the IALO hyperparameter algorithm to find the hyperparameter combination that optimizes the prediction results in the AM-BiLSTM initial prediction model, where the fitness value of the IALO hyperparameter algorithm is the mean square error of the prediction results of the AM-BiLSTM model;

[0168] Step 5. Use the optimal hyperparameter combination to configure the hyperparameters of the AM-BiLSTM final prediction model; the hyperparameters refer to the batch size, the number of units in the BiLSTM layer, the number of units in the Dense layer, the number of iterations, the discard rate of the Dropout layer, and the learning rate in the AM-BiLSTM initial prediction model.

[0169] Step 6: Use the AM-BiLSTM final prediction model to predict the power consumption of ground air conditioning.

[0170] In this embodiment, the structure and function of the AM-BiLSTM final prediction model are the same as those of the AM-BiLSM initial prediction model. The difference is that the hyperparameters of the AM-BiLSTM final prediction model are the optimal hyperparameters. The AM-BiLSTM initial prediction model and the AM-BiLSTM final prediction model both include an input layer, a BiLSTM layer, a Dropout layer, a Dense layer, an AM layer, and an output layer.

[0171] Furthermore, this embodiment trains the AM-BiLSTM final prediction model before predicting the power consumption of the ground air conditioner. Figure 8 As shown, the training process includes the following steps:

[0172] (1) The data set is divided into a training set and a test set in a ratio of 7:3, and the maximum value normalization method is used to process them respectively. The calculation formula is as follows:

[0173]

[0174] Where: x e is the normalized input data; x a is the original input data; x max 、x min are the maximum and minimum values ​​of each variable in the original data.

[0175] (2) The batch size of the model prediction part, the number of neurons in the BiLSTM layer, the discard rate of the Dropout layer, the number of neurons in the Dense layer, the number of iterations, the learning rate and other hyperparameters are set as optimization objects and their respective search spaces are determined.

[0176] (3) Set the number of iterations T, population size N, and number of variables D of the IALO algorithm.

[0177] (4) The positions of ants and ant lions are randomly initialized, and the prediction part of the model is trained with the training set. The mean square error (MSE) of the prediction error is selected as the fitness function, and the fitness value corresponding to each position is calculated. The calculation formula of MSE is as follows:

[0178]

[0179] In the formula, y i is the true value, f(x i ) is the predicted value, and n is the number of true values.

[0180] (5) Determine the elite ant lion based on the fitness value, and draw ordinary ant lions through roulette.

[0181] (6) The random walk space is updated according to the following formula, and the ants perform random walks around the elite ant lion and the ordinary ant lion respectively:

[0182]

[0183]

[0184]

[0185]

[0186]

[0187]

[0188] Where: t is the current iteration number, T is the maximum iteration number, and rand is a random number between 0 and 1;

[0189] is the minimum value of the i-th variable at the t-th iteration;

[0190] is the position of the i-th antlion at the t-th iteration;

[0191] c t is the minimum value of all variables at the tth iteration;

[0192] I is the contraction coefficient;

[0193] is the maximum value of the i-th variable at the t-th iteration;

[0194] d t is the maximum value of all variables at the tth iteration;

[0195] (7) Determine the final position of the ant according to the following formula and calculate the weight coefficient β of the common ant lion:

[0196]

[0197]

[0198] In this embodiment, β max =0.8; β min=0.2.

[0199] Then compare it with the fitness value of the elite ant lion and update the position of the elite ant lion according to the following formula:

[0200]

[0201] (8) Determine whether the termination condition is met. If so, output the optimal position. Otherwise, return to step (4). The termination condition is that the maximum number of iterations is reached.

[0202] (9) Use the optimal hyperparameter combination obtained by the IALO algorithm to configure the prediction part of the model and train it using the training set.

[0203] (10) Input the feature data of the test set into the trained model and output the prediction results.

[0204] (11) Denormalize the prediction results, compare them with the target data of the test set, and combine them with the evaluation index.

[0205] Another object of the present invention is to provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements an aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model.

[0206] The following is a specific example to verify the aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model proposed in this invention.

[0207] First, data sources

[0208] The data of using ground air conditioners to cool and dehumidify aircraft cabins in summer at an airport in eastern my country are collected as a data set. The cooling capacity of the ground air conditioners is 150kW, and the aircraft models are all Boeing 737-800. The data set has 300 groups, including the initial temperature and initial humidity before work, the final temperature and final humidity after work is completed, and the power consumption of the whole process. The initial temperature, initial humidity, final temperature and final humidity are used as feature data, and the power consumption is used as target data. Some sample data are shown in Table 1.

[0209] Table 1. Some sample tables of the dataset

[0210]

[0211] Second, evaluation indicators

[0212] Select mean square error (MSE), mean absolute percentage error (MAPE) and coefficient of determination (R 2) is used as the evaluation index, where the smaller the values ​​of MSE and MAPE are, the closer the prediction result is to the true value and the higher the prediction accuracy is; R 2 The closer the value is to 1, the greater the goodness of fit, the higher the degree of explanation of the independent variable on the dependent variable, and the better the established model. The calculation formula of MSE is shown in formula (29), and the calculation formulas of other evaluation indicators are shown in formulas (30)-(31).

[0213]

[0214]

[0215] In the formula, is the average of n true values.

[0216] Third, hyperparameter optimization results and analysis

[0217] The hyperparameters in the proposed IALO-AM-BiLSTM model include batch size, number of units in the BiLSTM layer, number of units in the Dense layer, number of iterations, dropout rate in the Dropout layer, learning rate, etc. Their combination has a great influence on the prediction results of the model. The search space of the hyperparameters is set based on comprehensive consideration of the specific situation of the instance and the search efficiency, as shown in Table 2.

[0218] Table 2 Hyperparameter search space

[0219]

[0220] PSO-AM-BiLSTM and ALO-AM-BiLSTM were selected as comparison models. The hyperparameter optimization part of each model was trained using the training set. The number of iterations was set to 100 and the population size was set to 50. The convergence process of each model is shown in the figure. Fig. 9 shown.

[0221] from Fig. 9 It can be seen that: (1) the optimization results of the IALO algorithm are significantly better than those of the PSO algorithm and the ALO algorithm; (2) although the ALO algorithm has good optimization ability in the early stage of iteration, it cannot escape the local optimal trap in the middle and late stages of the iteration process; (3) the IALO algorithm not only has excellent optimization effect in the early stage of iteration, but can also further optimize the optimization results in the late stage of iteration, proving that the IALO algorithm has good global optimization ability and local optimization ability in the entire iteration process.

[0222] The optimal hyperparameter combinations finally found by each optimization algorithm are shown in Table 3.

[0223] Table 3 Optimal hyperparameter combinations of each algorithm

[0224]

[0225] Fourth, prediction results and analysis

[0226] Use each hyperparameter optimization algorithm to obtain the optimal hyperparameter combination to configure each prediction model, make predictions on the test set, and compare the prediction results with the prediction results of the BP model, LSTM model, BiLSTM model, and AM-BiLSTM model that are manually adjusted based on experience. The comparison between the predicted values ​​of each model and the true values ​​is shown in Figure 2. Fig.10 shown.

[0227] In order to scientifically evaluate the performance of each model, MSE, MAPE and R 2 The prediction results of each model are further analyzed by using other evaluation indicators. The analysis results are shown in Table 4.

[0228] Table 4 Comparison of prediction results of different models (test set)

[0229]

[0230] By analyzing the indicators in Table 4, we can conclude that: (1) The prediction results of the IALO-AM-BiLSTM model are better in MSE, MAPE, and R 2 (1) The AM-BiLSTM model outperforms other models in many indicators; (2) Extracting more time series features helps to improve the prediction accuracy and goodness of fit of the model; (3) Introducing the attention mechanism into the model can improve the utilization of time series features and the prediction accuracy of the model; (4) The IALO algorithm is superior to the PSO algorithm and the ALO algorithm in parameter optimization, and can give full play to the prediction performance of the AM-BiLSTM model.

[0231] This embodiment aims to improve the prediction accuracy of ground air conditioning energy consumption. It introduces the idea of ​​time series prediction, combines BiLSTM neural network, attention mechanism and IALO algorithm to establish IALO-AM-BiLSTM model, and conducts simulation verification on examples. The following conclusions are obtained after analysis:

[0232] (1) Based on the analysis of the factors affecting ground air conditioning energy consumption, the prediction accuracy is improved by improving the utilization efficiency of time series features. The proposed model can fully mine the time series features of the data through the BiLSTM neural network and combine the attention mechanism to give different weights to each feature. The simulation verification shows that enhancing the utilization of time series features can significantly improve the accuracy of ground air conditioning energy consumption prediction.

[0233] (2) Two optimization mechanisms are proposed to improve the ALO algorithm. One is an ant position update mechanism based on nonlinear dynamic adjustment of the antlion weight coefficient, and the other is a continuous nonlinear random walk space reduction mechanism with a certain degree of randomness. These two optimization mechanisms can improve the convergence speed, optimization performance and diversity of the algorithm, enhance the ability of the IALO algorithm to handle hyperparameter optimization problems with complex search spaces, and further improve the prediction accuracy and goodness of fit of the model.

[0234] The IALO-AM-BiLSTM model proposed in this embodiment and which can be used for predicting the energy consumption of ground air conditioners is divided into a prediction part and a hyperparameter optimization part. The prediction part first uses the BiLSTM neural network to fully mine the bidirectional time series characteristics of the data, and then highlights the influence of important features on the prediction results through the attention mechanism; the hyperparameter optimization part uses the proposed Improved Ant Lion Optimizer (IALO) algorithm to find the hyperparameter combination that optimizes the prediction results.

[0235] The energy consumption data of ground air-conditioning equipment at an airport in eastern my country in summer is used as data sample, and the IALO-AM-BiLSTM model is compared with multiple models such as BP, LSTM, BiLSTM, AM-BiLSTM, PSO-AM-BiLSTM, and ALO-AM-BiLSTM. The simulation results show that the IALO-AM-BiLSTM model has significant advantages in prediction accuracy and goodness of fit.

[0236] The embodiments described above are only preferred specific implementation modes of the present invention, and the protection scope of the present invention is not limited thereto. Any simple changes or equivalent replacements of the technical solutions that can be obviously obtained by any technician familiar with the field within the technical scope disclosed in the present invention belong to the protection scope of the present invention.

Claims

1. A method for predicting aircraft ground air conditioning energy consumption based on the IALO-AM-BiLSTM model, characterized in that: The following steps are involved: Collect aircraft ground air conditioning energy consumption data to form a data set; Constructing an IALO-AM-BiLSTM model, wherein the IALO-AM-BiLSTM model includes two parts: an AM-BiLSTM initial prediction model and an IALO hyperparameter optimization algorithm; The BiLSTM neural network of the AM-BiLSTM initial prediction model is used to mine the bidirectional time series features of the data set, and then the attention mechanism AM is used to assign different weights to the bidirectional time series features; Use the IALO hyperparameter algorithm to find the hyperparameter combination that optimizes the prediction results in the AM-BiLSTM initial prediction model. The fitness value of the IALO hyperparameter algorithm is the mean square error of the prediction results of the AM-BiLSTM model. Use the optimal hyperparameter combination to configure the hyperparameters of the AM-BiLSTM final prediction model; The AM-BiLSTM final prediction model is used to predict the power consumption of ground air conditioning; The IALO hyperparameter optimization algorithm includes two improvement mechanisms: (1) Random walk space reduction mechanism, the improved mathematical expression is shown as follows; Where: ω is the shrinkage factor, t is the current number of iterations, T is the maximum number of iterations, and rand is a random number between 0 and 1; (2) Ant position update mechanism, which nonlinearly and dynamically adjusts the weight coefficient β of the common ant lion according to the number of iterations, as shown in the following formula; Where: β is the weight coefficient of the common ant lion, β max is the maximum value of the weight coefficient of the common ant lion, β min is the minimum value of the weight coefficient of the common ant lion, t is the current number of iterations, and T is the maximum number of iterations; is the position of the i-th ant at the t-th iteration; The ants randomly walk around the common antlion in the tth iteration; The ants randomly walk around the elite ant lion in the tth iteration; The AM-BiLSTM initial prediction model or the AM-BiLSTM final prediction model includes: (1) Input layer: The environmental data at each moment is used as the input of the model. The input at time t is shown as follows: X t =[pre-temp t ,post-temp t ,pre-humidity t ,post-humidity t ] Where: X t is the input sequence at time t, pre-temp t is the initial cabin temperature before the ground air conditioning starts working at time t; post-temp t The final cabin temperature after the ground air conditioning is completed at time t; pre-humidity t is the initial humidity of the cabin before the ground air conditioning starts working at time t; post-humidity t The final humidity of the cabin after the ground air conditioning is completed at time t; (2) BiLSTM layer: Use two LSTM neural networks in opposite directions to analyze the input sequence X at time t. t Calculate and output y t It is regarded as the bidirectional time series characteristics of ground air conditioning energy consumption data; (3) Dropout layer: The bidirectional time series features of ground air conditioning energy consumption data are randomly discarded according to the discard rate; (4) Dense layer: The output of the Dropout layer is transformed nonlinearly in the Dense layer; (5) AM layer: The output hidden state of the Dense layer is regarded as the input of the AM layer, and the output s of the AM layer at time t is calculated t ; (6) Output layer: A fully connected layer is used to perform dimensionality reduction calculation on the output of the AM layer. Its activation function is the sigmoid function. The final output result Y is the power consumption of the ground air conditioner at the predicted time.

2. The aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model according to claim 1 is characterized in that: The aircraft ground air conditioning energy consumption data includes the initial temperature and initial humidity of the cabin before the ground air conditioning works, the final temperature and final humidity of the cabin after the work is completed, and the power consumption of the whole process.

3. The aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model according to claim 1 is characterized in that: The AM-BiLSTM initial prediction model and the AM-BiLSTM final prediction model both include an input layer, a BiLSTM layer, a Dropout layer, a Dense layer, an AM layer and an output layer.

4. The aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model according to claim 1 is characterized in that: The hyperparameters refer to the batch size, the number of units in the BiLSTM layer, the number of units in the Dense layer, the number of iterations, the discard rate of the Dropout layer, and the learning rate in the AM-BiLSTM initial prediction model.

5. The aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model according to claim 4 is characterized in that: Before predicting the power consumption of ground air conditioning, the AM-BiLSTM final prediction model is trained. The training process includes the following steps: (1) The data set is divided into a training set and a test set in a ratio of 7:3, and the maximum value normalization method is used to process them respectively. The calculation formula is as follows: Where: x e is the normalized input data; x a is the original input data; x max 、x min is the maximum and minimum value of each variable in the original data; (2) The batch size of the model prediction part, the number of neurons in the BiLSTM layer, the discard rate of the Dropout layer, the number of neurons in the Dense layer, the number of iterations, and the learning rate hyperparameters are set as optimization objects and their respective search spaces are determined; (3) Set the number of iterations T, population size N, and number of variables D of the IALO algorithm; (4) The positions of ants and ant lions are randomly initialized, and the prediction part of the model is trained with the training set. The mean square error (MSE) of the prediction error is selected as the fitness function, and the fitness value corresponding to each position is calculated. The calculation formula of MSE is as follows: In the formula, y i is the true value, f(x i ) is the predicted value, n is the number of true values; (5) Determine the elite ant lion according to the fitness value, and draw ordinary ant lions through roulette; (6) The random walk space is updated according to the following formula. The ants perform random walks around the elite ant lion and the ordinary ant lion respectively; Where: t is the current iteration number, T is the maximum iteration number, and rand is a random number between 0 and 1; is the minimum value of the i-th variable at the t-th iteration; is the position of the i-th antlion at the t-th iteration; c t is the minimum value of all variables at the tth iteration; I is the contraction coefficient; is the maximum value of the i-th variable at the t-th iteration; d t is the maximum value of all variables at the tth iteration; (7) Determine the final position of the ant according to the following formula and calculate the weight coefficient β of the common ant lion; Where: β max =0.8; β min =0.2; Then compare it with the fitness value of the elite ant lion and update the position of the elite ant lion according to the following formula; (8) Determine whether the termination condition is met. If so, output the optimal position. Otherwise, return to step (4). The termination condition is that the maximum number of iterations is reached. (9) Use the optimal hyperparameter combination obtained by the IALO algorithm to configure the prediction part of the model and train it with the training set; (10) Input the feature data of the test set into the trained model and output the prediction results; (11) The prediction results are denormalized, compared with the target data of the test set, and analyzed in combination with the evaluation indicators.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the aircraft ground air conditioning energy consumption prediction method based on the IALO-AM-BiLSTM model as described in any one of claims 1 to 5 is implemented.