Open Access
Issue
Wuhan Univ. J. Nat. Sci.
Volume 28, Number 3, June 2023
Page(s) 223 - 236
DOI https://doi.org/10.1051/wujns/2023283223
Published online 13 July 2023

© Wuhan University 2023

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

0 Introduction

In recent years, with the rapid development of the urban construction in China, the problem of the building energy consumption has become increasingly prominent. At present, the building energy consumption accounts for about 30% of the total energy consumption of the whole society, and the building energy consumption on per unit area is 2-3 times that of the developed countries, which has become one of the main obstacles limiting China's sustainable development [1]. It is urgent to reduce the level of the building energy consumption and improve the efficiency of the building energy utilization. In the energy consumption of the entire construction industry, the energy consumption of air-conditioners is more than 40%, and thus the accurate power loads forecasting for the air-conditioner becomes the key to reduce the building energy consumption.

The power loads for the air-conditioner is a group of values arranged at the same interval according to the sequence of the occurrence time. It is a typical time series with the uncertain nonlinear and discrete characteristics. Given the typical time series, the method of the power loads forecasting for air-conditioner has been developed gradually from the traditional statistical regression forecasting models to the nonlinear and discrete models of the shallow and deep neural network forecasting based on the artificial intelligence.

Artificial neural network (ANN) is one of the most widely used shallow network prediction models in the time series prediction. With the development of the prediction methods from the shallow neural network to the deep neural network, recurrent neural network (RNN) has received extensive attention, and the long short-term memory (LSTM) network [2] has promoted the development of RNN. It is so precise because LSTM can identify the nonlinearity and complexity of the data structures and patterns in the time series forecasting [3] that it has been widely used in the power loads forecasting [4,5]. However, although LSTM has many advantages in dealing with the complex nonlinear data, it has the limitations. For example, the LSTM method is too complex to be trained, and its performance is less than that of the simple ARIMA (autoregressive integrated moving average) method [6]. Zhang et al[7] proposed a new hybrid model for the power loads forecasting based on the improved empirical model of decomposition (IEMD), ARIMA and wavelet neural network (WNN), and found that its accuracy was better than that of the LSTM. Kim et al[8] proposed a simple recursive initial convolution neural network (RICNN) to enhance power loads forecasting in a specific time, and found that its accuracy was equivalent to that from the LSTM model. Just due to the above shortcomings of LSTM, in recent years, more and more researchers have improved the LSTM prediction models by combining with the traditional methods or the other machine learning methods. For example, Laib et al[9] combined the multi-layered perceptron (MLP) neural network with the LSTM model to improve the prediction accuracy significantly.

In particular, recently Shao et al [10] proposed a building energy consumption prediction model by integrating attention mechanism and LSTM. On the basis of LSTM model, the attention mechanism is added to highlight the impact of the building energy consumption characteristics included in the key time on the prediction results. Subsequently, aiming at the instability of the influence degree of each input characteristic on the cooling loads in the shopping malls, a short-term zoned cooling loads prediction model based on the double attention mechanism and LSTM was proposed by Zhao et al[11], and the key influencing factors of the cooling loads in different areas of the shopping malls were screened by using grey relational degree analysis method. On the basis of the LSTM model, the feature attention was used to analyze the relationship between historical information and input variables autonomously to extract important features, and the sequential attention was used to select the historical information at critical moments of the LSTM network to improve the stability of long-term prediction effects. They found that, compared with the LSTM model, the error indexes were significantly reduced for the CNN-LSTM and attention-LSTM models, indicating a good generalization ability and strong stability.

In China, the average level of the energy consumption of the hospital buildings is second only to that of the shopping malls. The hospital has the characteristics of the year-round work cycle, complex equipment composition, large flow of people, and obvious seasonality [12,13]. Therefore, as a typical public building, the hospital building has a high energy consumption level, and the power load is a typical time series with the uncertain nonlinear and discrete characteristics. The systematic investigations into the energy consumption for the hospital building is of great significance for the energy conservation, regulation and supervision of the energy consumption, and the energy-saving reconstruction.

In this work, in order to realize and improve the energy-saving potential of the transmission and distribution system of air-conditioner in the hospital, and accurately control the distribution of the power load into each department of the hospital as required, the characteristics of loads and key influencing factor of load in the different departments of the hospital were analyzed, and a power loads forecasting method oriented to the functional partition of the hospital was proposed. Firstly, the key influencing factors of the power loads in different zones, such as the building space structure, business type and personnel density, were screened based on the grey relational degree analysis. Then, in view of the characteristics of the hospital power loads affected by various factors and time series changes, the feature attention mechanism and sequential attention mechanism were introduced on the basis of attention-LSTM network. The former was used to analyze the relationship between the historical information and input variables autonomously to extract important features, and the latter was used to select the historical information at critical moments of LSTM network to improve the stability of long-term prediction effects. Taking the power loads of Shanxi Eye Hospital as an example, combined with attention-LSTM network, the importance of key historical moments to predict the loads was analyzed, the output of the model was optimized, and the accuracy of the model was improved.

1 Power Loads Characteristics of Hospital Building Partitions

1.1 Functional Partitions and Loads Characteristics

The comprehensive Grade III-A Hospital is mainly composed of four departments: outpatient department, inpatient department, management department and logistics department. The outpatient department and inpatient department are the main building energy consumption departments in the hospital [13]. In these two departments, people's flow are diversified in nature, and people's flow time is long-lasting and unevenly distributed, meanwhile the medical energy consumption facilities are centralized, the performances of the equipment are different (e.g., rated voltage and loads are greatly different among the different energy consumption equipment), and the areas are special (surgical operation ward, medical ward, intensive care unit, etc.). Therefore, only the outpatient department and inpatient department are considered.

Furthermore, due to the large energy consumption of the diagnosis and treatment equipment, and scientific and effective energy saving measures taken on the basis of the safe use of the equipment, the instrument diagnosis and treatment departments are separately divided from the outpatient department and inpatient department in this work. Based on the hospital's year-round work cycle, complex equipment composition, large and obvious seasonal characteristics of people flow, taking Shanxi Eye Hospital (Grade III-A Hospital) as the research object, the main hospital building was divided into the outpatient department, inpatient department, instrument diagnosis and treatment department, and the power loads were discussed according to the different characteristics in the different seasons (winter and summer) in order to more accurately predict the actual loads demands with the uncertainty and non-uniformity to avoid the energy waste.

Due to the uncertainty of the activities of the hospital personnel, the average number of the people detained in a certain area in a certain period of time is taken as the statistical value of the number of personnel. For example, the average number of people between 7:30 a.m. and 8:30 a.m. is considered as the number of people at 8:00 a.m. The hourly personnel densities in the different departments are obtained by fitting through the multiple linear regression, and the changes of the personnel density in each department are shown in Fig. 1. In terms of the time period, the personnel density in January is higher than that in July, and the personnel density on Monday morning is higher than those from Tuesday to Sunday morning, and the personnel density is higher in the morning than in the afternoon. On Saturday and Sunday, the personnel densities decrease significantly in comparison with those from Monday to Friday. The density of the personnel is closely related to the rules of daily life. From the perspective of space, the density of the outpatient department is significantly higher than those of the inpatient department and the instrument diagnosis and treatment department, which is related to department functions.

thumbnail Fig. 1

Personnel density changes in each functional department

It has been found from many investigations that the changes of the daily power load in a week and the hourly power load in the same department are periodic and similar, and those in the workday are different from those on Saturday or Sunday. In this work, the changes of the hourly power load of each functional partition on a Tuesday and a Sunday are collected in Fig. 2.

thumbnail Fig. 2

Changes in load of each functional department on a Tuesday and a Sunday in July and January

On the whole, the power load change of each department presents a double peak shape, and the double peaks of those in the diagnosis and treatment department and outpatient department are more obvious than those in the inpatient department. Furthermore, the power load demand of each functional partition varies greatly. The power load demand in the inpatient department is the largest, followed by the instrument diagnosis and treatment department, and the outpatient department has the smallest power load demand. Moreover, for the instrument diagnosis, treatment department and the outpatient department, the power load demand on Tuesday is significantly greater than that on Sunday, and the power load demand during the normal working period is greater than that during the non-working period . For the inpatient department, the power load demand on Tuesday is larger than that on Sunday, but the difference is smaller than that of the instrument diagnosis and treatment department or the outpatient department; The power load demand in the normal working period is larger than that during the non-working period, and the difference is smaller than that in the instrument diagnosis and treatment department or the outpatient department. For the inpatient department and instrument diagnosis and treatment department, the power load demand in July is greater than that in January, while for the outpatient department, the trend is just the opposite.

1.2 Analysis of Influencing Factors of Power Load for Functional Partition

The power load of Grade III-A Hospital mainly consists of the personnel power load, diagnosis and treatment power load (mainly the electrical equipment power load), lighting power load, enclosure power load and fresh air power load. Grey relation analysis (GRA) can be used for the statistical analysis of the non-linear relationship between power load and multivariable factors [14]. The steps are as follows:

Step 1   Determine the reference sequence and comparison sequence:

Air-conditioning power load (Yc) is as the reference sequence, and the personnel density (Xp), lighting power density (Xl), electrical power density (Xe), dry bulb temperature (Xt), relative humidity (Xh), solar radiation (Xr), wind speed (Xw), power load at time T-1 (XC(T-1)), power load at time T-2 (XC(T-2)) are set as the comparison sequence. Set the reference sequence Yc, the reference sequence is as Yc={Yc(1), Yc(2), …, Yc(n)}, and the comparison sequence is Xi={Xi(1), Xi(2), Xi(3), …, Xi(n)}, where Xi is the comparison sequence Xp, Xl, Xe, Xt, Xh, Xr ,XC(T-1), XC(T-2), and Xw.

Step 2   Calculate the grey correlation coefficient between the reference sequence and comparison sequence (ξi(k)):

ξ i ( k ) = m i n i m i n k | y ( k ) - x i ( k ) | + ρ m i n i m i n k | y ( k ) - x i ( k ) | | y ( k ) - x i ( k ) | + ρ m i n i m i n k | y ( k ) - x i ( k ) | (1)

where y(k) is the sequence of the normalized power load, x(k) is the sequence of the normalized influencing factors, and resolution coefficient ρ=0.5.

Step 3   Calculate grey correlation degree ri:

r i = 1 n k = 1 n ξ i ( k ) (2)

The grey correlation degrees between the different input variables and air-conditioning power loads in the dynamic prediction model of the air-conditioning power load in each functional area are shown in Table 1.

Similar to the large shopping malls, the grey correlation degree between the air-conditioning power load and wind speed in each functional partition of the hospital is small. This is because the hospital building adopts a closed enclosure structure, which does not form natural ventilation with the outside world. For the inpatient department and outpatient department, the direct heat transfers occur with the outdoor temperature and solar radiation due to the spatial location, which is greatly affected by the external meteorological parameters. The area with the large power of the diagnosis and treatment equipment has a large heat dissipation, which directly affects the change of the summer (cooling) power load, so it has strong correlation with the air-conditioning cooling power load. Due to the difference of the space layout and function in the different functional zones, the influencing factors of the air-conditioning power loads in different functional zones vary greatly. For example, no matter in summer or in winter, the power load in the instrument diagnosis and treatment department is significantly affected by the power of the diagnosis and treatment equipment; The power loads in the outpatient and inpatient departments are greatly affected by the personnel density and lighting power density. In addition, no matter the cooling load or heating load, XC(T-2) is far less related to XC(T-1). Therefore, in order to reduce the coupling effect of the historical power load on the current power load forecasting, only the key influencing factors of each functional area and the regional historical power load data at T-1 are considered to form the input data set in the following forecasting models.

Table 1

Grey correlation degree between influencing variables and loads for each functional area (i.e., outpatient department (OD), inpatient department (ID), and instrument diagnosis and treatment department (IDTD)) on January (Jan) and July (Ju)

2 LSTM Model for Power Load Forecasting Based on Attention Mechanism

2.1 LSTM Neural Network

According to the analysis of the power load data from the different departments of the hospital, the changes of the power load have obvious periodic laws, so it is necessary to fully consider the time series. Compared with the traditional neural network, LSTM network model can effectively analyze the implicit information in the time sequence by using the time series [15]. In the power load forecasting by LSTM network, the historical power load information of the previous time can be fully used to process the sequence data, and the processed sequence data can be used to adjust the output of the power load at the next time.

The LSTM repeated module is composed of three activation function gates (i.e., forget gate σ1, input gate σ2, and output gate σ3) and two activation tanh functions (ϕ1 and ϕ2) regarding the output, shown in Fig. 3. The symbol (•) represents the concatenation operation, and the π and Σ symbols represent the element-wise multiplication and addition, respectively. The fundamental component of LSTM is the cell state, in which a line comes from the previous block memory to the current block memory. Afterward, the flow of information straight down the line is allowed. In other words, the forgetting part of the memory of the cell state was determined by the input of the cell state at the last time in the forget gate, the memory and intermediate output of the cell state. The data to be added to the cell state is adjusted by the sigmoid function, and the intermediate output is determined by the updated memory cell state and the output. The input variable X can be represented by Eq. (3).

X = ( X p X l X e X t X h X r X C ( T - 1 ) ) = ( X p X p ( 1 ) X p ( 2 ) X p ( n ) X l X l ( 1 ) X l ( 2 ) X l ( n ) X e X e ( 1 ) X e ( 2 ) X e ( n ) X t X t ( 1 ) X t ( 2 ) X t ( n ) X h X h ( 1 ) X h ( 2 ) X h ( n ) X r X r ( 1 ) X r ( 2 ) X r ( n ) X C ( T - 1 ) X C ( T - 1 ) ( 1 ) X C ( T - 1 ) ( 2 ) X C ( T - 1 ) ( n ) ) (3)

thumbnail Fig. 3

LSTM repeating module

The output of the forget gate is as follows:

f T = σ ( W f [ h T - 1 , X T ] + b f ) (4)

The input of the input gate is as follows:

i T = σ ( W i [ h T - 1 , X T ] + b c )          C T ' = t a n h ( W c [ h T - 1 , X T ] + b c )          C T = f T C T - 1 + i T C T ' (5)

The information of the output gate is as follows:

O T = σ ( W o [ h T - 1 , X T ] + b o ) (6)

where fT and iT are the information discarded and updated by the LSTM network, and CT' , CT, OT, hT+1, W and b are the intermediate variable to store the current cell information, new cell state, information of the output gate at time T, output value of the hidden layer node, weight measurement of each gate, and deviation, respectively, and hT= OTtanh(CT).

2.2 Attention Mechanism

The attention mechanism in deep learning is a mechanism by which the resource allocation is simulated according to the human brain attention. At a specific moment, the attention will be focused on the certain area that needs to be focused, so as to obtain more details that needs to be got attention while suppress other useless information [16]. Based on the principle of the attention mechanism, the feature attention mechanism and sequential attention mechanism are designed to analyze the influence of the real-time change of the meteorological factors, subjective behavior of personnel, and power of the diagnosis and treatment equipment on the change of the hospital power load. The former is used to analyze the importance of the different input variables to the power load, and to explore the correlation between the variables and power load, and the latter is used to analyze the importance of the power load at different historical times to the power load at the prediction time, and select the data at the critical time to improve the accuracy of the prediction model.

2.2.1 Feature attention mechanism

The changes of the air-conditioning power load are influenced by many factors. According to the grey relational degree analysis above, the key variables that affect the air-conditioning power load are different for the different departments, and the relational degrees of the key variables are also different. In order to explore the relational degree of the key factors to the air-conditioning power load of the different departments of the hospital, and learn further the information of the input features, the feature attention mechanism is introduced, as shown in Fig. 4. The multiple perceptron method is used to quantify the weight of each feature influence.

thumbnail Fig. 4

Feature attention mechanism

According to the algorithm of the feature attention mechanism, the hidden state hT-1 of the LSTM network at the previous time and the input feature XTN of the current time are taken as the input of the feature attention mechanism, and the attention weight of each variable at the current time is calculated through Eq. (7), and then normalized using Eq. (8). Finally, the feature attention output X' is obtained by multiplying the weight of the current moment by the corresponding feature variable, and the influence of the relevant feature will be obtained through adaptive optimization.

e T N = V e T t a n h ( W e h T - 1 + U e X T N + b e ) (7)

a T N = s o f t m a x ( e T N ) = e x p ( e T N ) / i = 1 M e T N (8)

where VeRN×1, WeRN×q, UeRN×N, and beRN×N are the neuron weights that needs to be learnt in the multilayer perceptron and the bias parameter, respectively, and q is the number of neurons in the last hidden layer of the LSTM network.

2.2.2 Sequential attention mechanism

The power load at the current moment is greatly affected by the historical power load, and the influence of the power load at different times is different. In order to clarify the impact of the information at each historical time on the current prediction results, the sequential attention mechanism is introduced into the output of the LSTM network. By means of the probability distribution, the importance of the information of the historical time of LSTM network is analyzed, and the importance of the power load at each historical time to the power load at the prediction time is analyzed, thus the prediction accuracy is improved.

The structure of the sequential attention mechanism is shown in Fig. 5. XT(T∈[1, n]) and hT(T∈[1, n]) represent the input and output of the hidden layer of the LSTM model, and α'T(T∈[1, n])is the probability distribution of the attention mechanism to the output of the hidden layer of the LSTM, and y is the output value of the LSTM network with the sequential attention mechanism, respectively. The attention weight matrix α' and eigenvector expression v is as follows:

e T ' = u s t a n h ( w s h T + b s ) (9)

α T ' = e x p ( e T ' ) / n = 1 T e n ' (10)

v = T = 1 n α T ' h T (11)

thumbnail Fig. 5

Sequential attention mechanism

where eT' is the normalized weight matrix, and ws, bs and us are the weight matrix, bias amount and time series matrix of the randomly initialized attention mechanism, respectively.

2.3 LSTM Model for Power Load Forecasting Based on Double Attention Mechanism

The LSTM prediction model of the double attention mechanism is shown in Fig. 6. This model is mainly composed of the input vector, feature attention layer, LSTM network layer, sequential attention mechanism layer and fully connected output layer. The input vector is combined with the hidden state hT-1 at the previous time of LSTM network, and the weight of each feature variable at the current time is calculated through the feature attention mechanism layer. Then, the feature attention input X' is calculated by multiplying the weight with the corresponding feature variable. After learning characteristics through LSTM network, the feature variable input X' is used to calculate the influence weight of the output of the power load information at each historical time through the sequential attention mechanism layer, and the improved output of the current time hidden layer state is obtained. Finally, it is input to the full connection layer, and the final prediction result is obtained.

thumbnail Fig. 6

LSTM model structure based on double attention mechanism

2.4 Evaluation Index

Three evaluation indexes (correlation coefficient R2, mean absolute percentage error (MAPE), root mean square error (RMSE)) were used to evaluate the accuracy of the prediction model. The fitting accuracy of the power load forecasting model in a certain period of time is quantified by estimating the R2 value. The greater the value of R2, the more accurate the model is. MAPE can be used to quantify variance in data, and the RMSE value is used to evaluate the error between the predicted value and real value.

R 2 = 1 - j = 1 n ( C p , j - C a , j ) 2 j = 1 n ( C p , j - C a , j ) 2 + j = 1 n ( C p , j - C a , m e a n ) 2 (12)

M A P E = 1 n j = 1 n | C p , j - C a , j C a , j | (13)

R M S E = j = 1 n ( C p , j - C a , j ) 2 n (14)

where n, J, Ca,j, Cp,j and Ca,mean are the total number of power load, index of the data in time, actual power load, predicted power load, average value of the actual power load, respectively.

3 Case Analysis

3.1 Data Set

In order to further validate the above model, the actual data from Shanxi Eye Hospital during the period of 2021-05-01-2021-07-31 and 2021-11-01-2022-01-28 were used to learn and test the prediction model. For heat load, the data from 2021-05-01 to 2021-06-31 are used as the training set, and those from 2021-07-01 to 2021-07-15 are used as the verification set, and those from 2021-07-15 to 2021-07-31 are used as the test set. For the cooling load, the data from 2021-11-01 to 2021-12-31 are used as the training set, those from 2022-01-01 to 2022-01-14 are used as the verification set, and those from 2022-01-15 to 2022-01-28 are used as the test set. The original data set during the period of 8:00 -22:00 includes the power load data (kW), dry bulb temperature (℃), relative humidity (%), solar radiation (kW/m2), personnel density (N/m2), lighting power density (W/m2), and equipment power density (W/m2).

3.2 Experimental Setup

Considering the difference of the changes of the power load within a week, weekend, summer and winter, the hourly density of the personnel in different weeks and seasons is fitted as the input of the power load prediction, which is used to estimate the impact of the time and week. Keras is used for the data processing. The input time step is set to 6 h, and the data of the first 6 h are used to predict the power load at the next time by sliding the time window. The LSTM network parameters are adjusted by the grid search and cross validation methods. According to the Refs. [11,17-19], the parameters of the final LSTM prediction model are determined through multiple adjustments of the relevant parameters of the model (i.e., number of LSTM network layers: 2; number of the LSTM neurons in the first and second layers: 128 and 32; initial learning rate: 0.001; activation function: Relu; Dropout: 0.2; Gradient descent method; training cycle: 200).

3.3 Results and Discussion

3.3.1 Influence of variable selection on experimental results

The key influencing factors of the power load in the different functional partitions are different. In order to explore the influence of the input variables on the prediction model, the original data set is divided into two categories, namely, the feature variables selected by the grey relational degree analysis and those without the analysis. With the help of the attention LSTM model, they are predicted, and the prediction accuracy is shown in Table 2, and the results are shown in Fig. 7.

thumbnail Fig. 7

Prediction results of cooling load under different input variables

It can be seen from Fig. 7 that the predicted curve has the best fit with the real curve after selecting the characteristic variables. From Table 2, after selecting input variables, MAPE decreases to less than 5.5% for most of cases, and R2 > 0.95, and RMSE also decreases significantly. For the same dataset, when the original variables are selected, the error is lower than that of those without variable selection. Therefore, selecting the input characteristic variables can eliminate redundant variables and invalid variables, enhance the generalization ability of the model, and effectively improve the prediction speed and prediction results of the model.

Table 2

Prediction accuracy under different input variables

3.3.2 Influence of prediction model on results

In order to verify the effectiveness and prediction effect of the LSTM model based on the double attention mechanism, the differences of the power load demand in working days, weekends, summer and winter are considered. Tuesday, July 24, 2021, is selected as the typical summer working day, and Sunday, July 29, 2021 is selected as the typical summer weekend day. January 22, 2022 (Tuesday) is as a typical winter working day, and January 27, 2022 (Sunday) is a typical winter weekend day. The prediction results from the LSTM model based on the double attention mechanism are compared with those from the traditional LSTM prediction model, CNN-LSTM model and attention-LSTM model. For each of the functional partitions, the predicted values of three different prediction models are compared with the actual values, and the results are shown in Figs. 8-13.

thumbnail Fig. 8

Prediction curve of load in outpatient department in working day

thumbnail Fig. 9

Prediction curve of load in outpatient department in weekend

thumbnail Fig. 10

Prediction curve of load in inpatient department in working day

thumbnail Fig. 11

Prediction curve of load in inpatient department in weekend

thumbnail Fig. 12

Prediction curve of load in instrument diagnosis and treatment department in working day

thumbnail Fig. 13

Prediction curve of load in instrument diagnosis and treatment department in weekend

From Figs. 8-13, the LSTM model based on double attention mechanism has the best fit between the prediction curve and the real value in the power load prediction of each functional area on working days. It can be seen from Table 3 that the MAPE values of each functional area are 3.45%, 3.28%, 3.68%, 3.25%, 3.60% and 3.19%, respectively, lower than those of the other three models. In most cases, the values of R² are greater than 0.98, higher than those of the other models. The value of RMSE are smaller than those of other models. All above results indicate that the LSTM model based on double attention mechanism is more accurate in the prediction of the power load in hospital.

For the prediction of power load in each functional area on weekends, the LSTM model based on double attention mechanism has also the best fit between the prediction curve and the real value. From Table 4, it can be seen that the MAPE values are 3.36%, 3.52%, 2.73%, 3.61%, 3.53% and 2.62%, respectively, lower than those of the other three models. In most cases, the values of R² are greater than 0.98, higher than those of the other models. The value of RMSE are smaller than those of other models. Therefore, the LSTM model based on double attention mechanism is more accurate in the prediction of the power load in hospital.

In conclusion, based on the above results of the power load forecasting on weekdays and weekends, the LSTM model based on the double attention mechanism has the better forecasting performance, higher forecasting accuracy and better stability than those from the traditional LSTM forecasting model, CNN-LSTM and attention-LSTM models. This is due to the addition of two-layer attention mechanism on the basis of LSTM network model, which not only analyzes the importance of relevant features and optimizes the input features through feature attention mechanism for the multivariable input, but also optimizes the output of the model through the sequential attention mechanism combined with the historical power load information.

Table 3

Working day load prediction error

Table 4

Weekend day load prediction error

4 Conclusion

In order to further improve the energy-saving potential, and accurately control the distribution of the power load into each department of the hospital, the characteristics and key influencing factor of load in the outpatient, inpatient, and instrument diagnosis and treatment departments were analyzed, and a power load prediction by LSTM model based on the double attention mechanism was proposed in this paper. The experimental results show that the LSTM model based on the double attention mechanism has the high forecasting accuracy and stability. The conclusions of this article are as follows :

1) Grey correlation analysis shows that the key factors affecting the power load of each functional area in hospital are different. The determination of the key factors can improve the accuracy of the power load prediction and the generalization ability of the prediction model.

2) The LSTM model based on the double attention mechanism has the better forecasting performance, higher forecasting accuracy and better stability than those from the traditional LSTM forecasting model, CNN-LSTM and attention-LSTM models. This is due to the addition of two-layer attention mechanism on the basis of LSTM network model, which not only analyzes the importance of relevant features and optimizes the input features through feature attention mechanism for the multivariable input, but also optimizes the output of the model through the sequential attention mechanism combined with the historical power load information.

References

  1. Fan C, Xiao F, Zhao Y. A short-term building cooling load prediction method using deep learning algorithms[J]. Applied Energy, 2017, 195: 222-233. [CrossRef] [Google Scholar]
  2. Hochreiter S, Schnidhuber J. Long short-term memory[J]. Neural Computation, 1997, 9(8): 1735-1780. [CrossRef] [Google Scholar]
  3. Song S L, Huang H T, Ruan T X. Abstractive text summarization using LSTM-CNN based deep learning[J]. Multimedia Tools and Applications, 2019, 78(1): 857-875. [CrossRef] [Google Scholar]
  4. Zheng J, Xu C, Zhang Z, et al. Electric load forecasting in smart grid using long short- term-memory based recurrent neural network[C]// 2017 51st Annual Conference on Information Sciences and Systems (CISS) . Baltimore: IEEE Press, 2017: 1-6. [Google Scholar]
  5. Marino D L, Amarasinghe K, Manic M. Building energy load forecasting using deep neural networks[C]// IECON 2016—42nd Annual Conference of the IEEE Industrial Electronics Society. Florence: IEEE Press, 2016: 7046-7051. [Google Scholar]
  6. Makridakis S, Spiliotis E, Assimakopoulos V. Statistical and machine learning forecasting methods: Concerns and ways forward[J]. PloS One, 2018, 13(3): e0194889. [NASA ADS] [CrossRef] [PubMed] [Google Scholar]
  7. Zhang J, Wei Y, Li D, et al. Short term electricity load forecasting using a hybrid model[J]. Energy, 2018, 158: 774-781. [CrossRef] [Google Scholar]
  8. Kim J, Moon J, Hwang E, et al. Recurrent inception convolution neural network for multi short-term load forecasting[J]. Energy Build, 2019, 194: 328-341. [CrossRef] [Google Scholar]
  9. Laib O, Khadir M T, Mihaylova L. Toward efficient energy systems based on natural gas consumption prediction with LSTM recurrent neural networks[J]. Energy, 2019, 177: 530-542. [CrossRef] [Google Scholar]
  10. Shao B L, Shi Y B, Zhao Y. Research on building energy consumption prediction model by integrating attention mechanism and LSTM [J]. Software Guide, 2021, 20(10): 61-67 (Ch). [Google Scholar]
  11. Zhao A J, Yang H J, Jing J, et al. A cold load prediction method of shopping malls oriented to functional Zoning[J]. Journal of Chongqing University, 2022(1): 1-15 (Ch). [Google Scholar]
  12. Xiao C, Chen N, Hu C, et al. Short and mid-term sea surface temperature prediction using time-series satellite data and LSTM-AdaBoost combination approach[J]. Remote Sensing of Environment, 2019, 233: 111358. [NASA ADS] [CrossRef] [Google Scholar]
  13. Cao J, Li Z, Li J. Financial time series forecasting model based on CEEMDAN and LSTM[J]. Physica A: Statistical Mechanics and Its Applications, 2019, 519: 127-139. [NASA ADS] [CrossRef] [Google Scholar]
  14. Xie H X, Chen F F, Liu Y, et al. Short-term power load prediction based on improved grey relational analysis and CMPSO-LSSVM algorithm[J]. Modern Electronics Technique, 2021, 44(8): 177-181 (Ch). [Google Scholar]
  15. Tian H H, Han A Y, Yu L T, et al. Research on multi-load short-term forecasting model of regional integrated energy system based on GRA-LSTM neural network[J]. Guangdong Electric Power, 2020, 33(5): 44-51 (Ch). [Google Scholar]
  16. Zhou Y J, Dou Z C, Ge S W, et al. Dynamic personalized search based on RNN with attention mechanism[J]. Chinese Journal of Computers, 2020, 43(5): 812-826 (Ch). [Google Scholar]
  17. Kong W, Dong Z Y, Jia Y, et al. Short-term residential load forecasting based on LSTM recurrent neural network[J]. IEEE Transactions on Smart Grid, 2017, 10(1): 841-851. [Google Scholar]
  18. Zhang J, Wei Y, Li D, et al. Short term electricity load forecasting using a hybrid model[J]. Energy, 2018, 158: 774-781. [CrossRef] [Google Scholar]
  19. Jain R K, Smith K M, Culligan P J, et al. Forecasting energy consumption of multi-family residential buildings using support vector regression: Investigating the impact of temporal and spatial monitoring granularity on performance accuracy[J]. Applied Energy, 2014, 123: 168-178. [CrossRef] [Google Scholar]

All Tables

Table 1

Grey correlation degree between influencing variables and loads for each functional area (i.e., outpatient department (OD), inpatient department (ID), and instrument diagnosis and treatment department (IDTD)) on January (Jan) and July (Ju)

Table 2

Prediction accuracy under different input variables

Table 3

Working day load prediction error

Table 4

Weekend day load prediction error

All Figures

thumbnail Fig. 1

Personnel density changes in each functional department

In the text
thumbnail Fig. 2

Changes in load of each functional department on a Tuesday and a Sunday in July and January

In the text
thumbnail Fig. 3

LSTM repeating module

In the text
thumbnail Fig. 4

Feature attention mechanism

In the text
thumbnail Fig. 5

Sequential attention mechanism

In the text
thumbnail Fig. 6

LSTM model structure based on double attention mechanism

In the text
thumbnail Fig. 7

Prediction results of cooling load under different input variables

In the text
thumbnail Fig. 8

Prediction curve of load in outpatient department in working day

In the text
thumbnail Fig. 9

Prediction curve of load in outpatient department in weekend

In the text
thumbnail Fig. 10

Prediction curve of load in inpatient department in working day

In the text
thumbnail Fig. 11

Prediction curve of load in inpatient department in weekend

In the text
thumbnail Fig. 12

Prediction curve of load in instrument diagnosis and treatment department in working day

In the text
thumbnail Fig. 13

Prediction curve of load in instrument diagnosis and treatment department in weekend

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.