Building energy consumption prediction method based on frequency enhancement decomposition Transform network
By using the frequency enhanced decomposition Transformer network in building energy consumption prediction, combined with seasonal-trend progressive decomposition and dual-branch frequency enhancement module, the problem of multi-variable and long-term prediction is solved, and more efficient energy consumption trend capture and prediction accuracy are improved. .
Patent Information
- Application Number
- CN202410759659.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
AI Technical Summary
Existing building energy consumption prediction methods are difficult to effectively handle the complex interactions between multiple variables, the time components of intertwined distributions, and the offset of long-term predictions, and perform poorly in multi-variable and long-term predictions.
A network structure based on the frequency enhanced decomposition Transformer is adopted. Seasonal-trend progressive decomposition module and dual-branch frequency enhancement module are used to extract seasonal local features and trend global features respectively. Combined with the multi-variable time series Transformer module, the interaction between multiple energy consumption variables is captured. effects and long-term dependencies.
It improves the accuracy and long-term prediction performance of building energy consumption prediction, can effectively unravel complex time patterns and components, and significantly improves the accuracy of multi-step prediction.
Smart Images

Figure CN118607718A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of building energy consumption prediction and artificial intelligence technology, and in particular relates to a building energy consumption prediction method based on frequency enhancement decomposition Transformer. Background Art
[0002] Scholars at home and abroad have proposed many models and theories with practical application value for the problem of building energy consumption prediction. Building energy consumption data is a kind of time series data, which can be analyzed using statistical model-based methods and neural network model-based methods.
[0003] Time series prediction methods based on statistical models mainly include various regression models, such as autoregressive model (AR), moving average model (MA), autoregressive moving average model (ARMA) and autoregressive integrated moving average model (ARIMA), etc. These methods perform well when processing linear time series data, but have limited performance when processing nonlinear and complex time series data, and can only process single variable time series data.
[0004] With the improvement of computing power and the increase of data volume, machine learning methods have been widely used in time series forecasting. In particular, deep learning models, such as various recurrent neural networks (RNN) and their variant models, Transformer and its variant models, have been valued for their advantages in capturing the temporal dependencies of time series data.
[0005] Lai et al. proposed a time series prediction model LSTNet based on LSTM, which combines the characteristics of convolutional neural networks and recurrent neural networks and can simultaneously capture the local features and long-term dependencies of time series. Oreshkin proposed the N-BEATS model, which uses a stacked architecture based on feedforward neural networks and predicts through multiple residual blocks, showing excellent performance on multiple time series prediction benchmark datasets. In addition, there are some research works based on temporal convolution networks (TCN) that attempt to model temporal causality with causal convolutions, such as DeepGLO. There are also many studies on linear network-based models in the field of time series prediction. Das et al. proposed an encoder-decoder model based on multi-layer perceptrons, called the time series dense encoder TiDE, which has the simplicity and speed of linear models and can also handle covariates and nonlinear dependencies. Ekambaram et al. proposed a lightweight architecture TSMixer based on multi-layer perceptron modules, which divides the time series into multiple patches and keeps the channels independent. It adds a cross-channel coordination head to perform cross-channel modeling, capture sequence correlation, and effectively learn channel interactions specific to tasks and data.
[0006] Transformer has achieved great success in the two major fields of computer vision and natural language processing due to its powerful modeling ability in capturing long-term dependencies. It has become another basic model after convolutional neural networks and recurrent neural networks. Inspired by the great success in a wide range of fields, Transformer has also seen a lot of research in the field of time series analysis. Lim et al. proposed a time series prediction model TFT based on the Transformer architecture, which uses a multi-head self-attention mechanism and a gated convolutional network to capture the long-term dependencies and complex patterns of time series. Zhou et al. proposed a time series prediction model Informer based on a sparse attention mechanism, which improves the accuracy and efficiency of long-term time series prediction through a refined attention mechanism. Wu et al. combined the characteristics of the self-attention mechanism with the autoregressive model, proposed an Autoformer model, and introduced a time decomposition mechanism. Liu et al. explored the problem of using the Transformer model for non-stationary time series, and proposed non-stationary attention to prevent general stabilization methods from destroying the true characteristics of the sequence. It can update the internal mechanism to reincorporate non-stationary information while attenuating the non-stationarity of the time series, thereby improving the model's prediction ability for non-stationary sequences. Zhou et al. proposed a model based on frequency enhancement and decomposition, FEDformer, which captures the global profile of the time series through seasonal trend decomposition, captures more detailed structures with Transformer, uses Fourier transform for sparse representation of time series, and captures important information through frequency domain mapping to replace the self-attention mechanism, while optimizing computational complexity and memory. Nie et al. introduced patch into the Transformer model and proposed a PatchTST model, which divides the time series into subsequence patches as the input token of the Transformer and keeps the channels independent, so that the embedding retains local semantic information and the model can focus on longer semantic information.
[0007] In general, the research on time series forecasting is constantly developing. The combination of traditional statistical methods and modern machine learning techniques provides more possibilities for solving practical problems. Future research may continue to explore more efficient model structures and algorithms, as well as how to better deal with issues such as uncertainty and instability of data.
[0008] However, the prediction of building energy consumption based on neural network models still faces some challenges, mainly: First, there are complex interactions between multiple variables, and predicting multiple variables at the same time requires modeling the correlation between multiple variables. Second, the building energy consumption data has complex time components with intertwined distribution, which will interfere with the prediction results and increase the difficulty of prediction. Third, the existing energy consumption prediction methods are prone to large prediction deviations when making long-term predictions, and their application value is limited. It is difficult to meet actual needs, and it is necessary to explore better long-term prediction methods. Summary of the invention
[0009] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a building energy consumption prediction method based on frequency enhanced decomposition Transformer network, which aims to use historical building energy consumption time series data to predict the changing trend of building energy consumption data in the future and realize multi-variable and multi-step building energy consumption prediction.
[0010] In order to achieve the above object, the technical solution adopted by the present invention is:
[0011] A building energy consumption prediction method based on frequency enhancement decomposition Transformer includes the following steps:
[0012] Step 1: Collect building energy consumption time series data and preprocess them;
[0013] Step 2, establish an energy consumption prediction model based on the frequency enhancement decomposition Transformer network, the model includes a normalization layer, an embedding layer, a WFDformer encoder layer, a projection transformation layer and a denormalization layer in sequence; the WFDformer encoder layer is used to obtain the feature representation of the time series, which includes a multivariate time series Transformer module and a dual-branch frequency enhancement module; the multivariate time series Transformer module includes a multi-head attention layer, a feedforward neural network layer and two seasonal-trend progressive decomposition modules, and the feedforward neural network layer is arranged between the two seasonal-trend progressive decomposition modules; the dual-branch frequency enhancement module includes a wavelet enhancement module and a Fourier enhancement module; in each WFDformer encoder layer, its multivariate energy consumption time series input After decomposition, the initial seasonal term is obtained and the initial trend term X ens Enter the wavelet enhancement module, X entEntering the Fourier enhancement module, the output of the wavelet enhancement module passes through the multi-head attention layer and is then progressively decomposed by the two season-trend progressive decomposition modules in turn to obtain the season term and trend term again; the output of the Fourier enhancement module is added to the trend term of the first layer of progressive decomposition, the result is added to the trend term of the second layer of progressive decomposition, and then added to the season term of the second layer of progressive decomposition as the output of the current WFDformer encoder layer; wherein d is the variable dimension and L is the sequence length;
[0014] Step 3: Use the building energy consumption data training set to train the model built in step 2, input the building energy consumption time series data into the trained model for multi-step prediction, and obtain the multi-step building energy consumption prediction results.
[0015] Compared with the prior art, the present invention improves some problems existing in the existing building energy consumption prediction methods. First, since building energy consumption data often contains complex and entangled time patterns and seasonal trends, etc., a seasonal-trend progressive decomposition module is proposed to progressively decompose the historical input sequence to help the model disentangle the entangled patterns and components layer by layer. Secondly, in view of the problem that the existing building energy consumption prediction methods are difficult to model the relationship between multiple variables at the same time, a multivariate time series Transformer encoder structure with variable tokens as input is proposed, so that the self-attention mechanism is used to capture the interaction between multiple energy consumption variables. Finally, considering the difference in time scale between seasonal components and trend components, a dual-branch frequency enhancement module is proposed, and wavelet enhancement and Fourier enhancement modules are designed respectively, which more specifically enhance the model's ability to extract seasonal local features and trend global features, so as to improve the long-term prediction performance of the model. The present invention verifies the effectiveness of the proposed energy consumption prediction model through a series of experiments, and achieves high accuracy under multiple prediction steps. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the present invention.
[0017] Figure 2 It is a structural diagram of the energy consumption prediction model based on frequency enhancement decomposition Transformer of the present invention.
[0018] Figure 3 It is a schematic diagram of the multivariate time series Transformer module of the present invention.
[0019] Figure 4 It is a schematic diagram of the season-trend progressive decomposition module of the present invention.
[0020] Figure 5 It is a schematic diagram of the wavelet enhancement module of the present invention.
[0021] Figure 6It is a schematic diagram of the time-frequency ConvNeXt module of the present invention.
[0022] Figure 7 Schematic diagram of the Fourier enhancement module of the present invention.
[0023] Figure 8 The diagram is a schematic diagram of air conditioning energy consumption variables according to an embodiment of the present invention. The left diagram is a 96-step prediction 96-step result diagram, and the right diagram is a 96-step prediction 192-step result diagram. DETAILED DESCRIPTION
[0024] The embodiments of the present invention are described in detail below with reference to the accompanying drawings and examples.
[0025] Figure 1 This is a flow chart of the implementation of the method for long-term energy consumption prediction based on frequency enhancement decomposition Transformer of the present invention. This embodiment mainly includes the following steps:
[0026] Step 1: Define the building energy consumption prediction problem.
[0027] Building energy consumption generally contains multiple variables, and there is a strong correlation between the variables. The building energy consumption prediction problem can be regarded as a multivariate time series prediction problem: Specifically, given the energy consumption history time series data containing multiple variables: d is the variable dimension, T is the number of time steps, and this method aims to predict the future value of S time steps, that is,
[0028] Step 2: Collect building energy consumption time series data and preprocess the data
[0029] Various energy management systems (EMS) are used to collect and record time series data on building energy consumption, mainly including electricity consumption, cooling load, heating energy consumption, air conditioning load, lighting and power socket energy consumption, etc. The preprocessing of building energy consumption data includes data cleaning and normalization. Data cleaning includes outlier processing, missing value filling, etc. The purpose of normalization in this method is to reduce the non-stationarity of non-stationary time series. Since the model input data is obtained by intercepting the sliding window, normalizing each input sample helps to reduce the distribution difference of the overall input time series, so that the input samples received by the model follow a more stable distribution. The normalization processing of this method includes two layers of normalization, one is the overall normalization of data preprocessing, and the other is the sliding window normalization, which is used to reduce the non-stationarity of the non-stationary time series of the overall sliding window input sample. Specifically, for each multivariate time series input, the sliding window normalization process is to process it according to the following formula:
[0030]
[0031] Where: represents element-by-element division, ⊙ represents element-by-element multiplication, that is, each element is subtracted from the mean, and then each element is divided by the standard deviation, x i represents the multivariate time series at time i, x′ i Represents x i The result after normalization, S represents x i Length.
[0032] After being processed by the normalization layer, the subsequences in adjacent windows will eventually obey the same mean and variance, and the distribution differences of the overall training samples in the time dimension will be weakened, thereby improving the overall stability of the input data.
[0033] Step 3: Establish an energy consumption prediction model based on frequency enhanced decomposition Transformer.
[0034] The energy consumption prediction model structure based on frequency enhancement decomposition Transformer proposed in this invention is as follows: Figure 2 As shown, the model includes a normalization layer, an embedding layer, a WFDformer (Wavelet Fourier DecompositionTransformer) encoder layer, a projection transformation layer and a denormalization layer in sequence. The WFDformer encoder layer is the encoder part of this method and is also the most core part. It is used to obtain the feature representation of the time series, which includes a multivariate time series Transformer module and a dual-branch frequency enhancement module. The multivariate time series Transformer module includes a multi-head attention layer, a feedforward neural network layer and two seasonal-trend progressive decomposition modules, and the feedforward neural network layer is arranged between the two seasonal-trend progressive decomposition modules. The dual-branch frequency enhancement module includes a wavelet enhancement module and a Fourier enhancement module.
[0035] In each WFDformer encoder layer, its multivariate energy consumption time series input After decomposition, the initial seasonal term is obtained and the initial trend term Where d is the variable dimension and L is the sequence length. ens Enter the wavelet enhancement module of the WFDformer encoder layer, X ent Enter the Fourier enhancement module of the WFDformer encoder layer. The output of the wavelet enhancement module passes through the multi-head attention layer and is then progressively decomposed by two season-trend progressive decomposition modules to obtain the season term and trend term respectively. The output of the Fourier enhancement module is added to the trend term of the first progressive decomposition layer, and the result is added to the trend term of the second progressive decomposition layer, and then added to the season term of the second progressive decomposition layer as the output of the current WFDformer encoder layer.
[0036] refer to Figure 2 As shown, assume that the input of the model is a multivariate time series historical input sample After being initialized by the normalization layer and the embedding layer, it is encoded by M WFDformer encoder layers in sequence. After that, the encoded output is transformed into the predicted output by the projection transformation layer, and restored to the original data space by the denormalization layer to obtain the final predicted output. Where S is the sequence length of Y, and Y is the predicted future value after L and S time steps.
[0037] In this invention, the entire time series of a variable is taken as a token, called variable token. The multivariate time series Transformer in the WFDformer encoder layer takes the variable token as input and transforms the input sample X to the final predicted output The operation process is shown as follows:
[0038]
[0039] H m+1 =WFDformer(H m ),m=0,…,M-1
[0040]
[0041] Where: represents the historical input sequence of the dth variable, all X d,: That is, it constitutes the multivariate time series historical input sample X. represents the embedding vector obtained by the embedding layer, H m is an N-dimensional embedding vector representing the output of the m-th WFDformer encoder layer, That is, the sequence length L is increased to N dimensions, and the variable dimension d remains unchanged. represents the encoded output of the first variable in the mth WFDformer encoder layer, represents the encoded output of the d-th variable in the m-th WFDformer encoder layer, represents the encoded output of the d-th variable in the M-th WFDformer encoder layer. is the output of the dth variable obtained by the projection transformation layer. After the denormalization layer, it is restored to the original data space, that is, Embedded And projection transformation All of them are realized through MLP projection transformation.
[0042] Next, the multivariate time series Transformer module, season-trend progressive decomposition module, wavelet enhancement module, and Fourier enhancement module are introduced in detail.
[0043] 1) Multivariate Time Series Transformer Module
[0044] This paper examines the application of the Transformer model in the field of time series prediction from a flipped perspective. Most previous studies have embedded all variables and time features of the same timestamp into a mixed space as the input token of the Transformer, while the method of the present invention considers the entire time series of the same variable as a token, that is, a variable token, which can be regarded as a variable-independent perspective. The seasonal-trend progressive decomposition module is introduced as an internal module of the Transformer encoder structure, and this part is called the multivariate time series Transformer module, and its structure is as follows Figure 3 shown.
[0045] 2) Season-Trend Progressive Decomposition Module
[0046] Building energy consumption usually shows a certain periodic pattern, which is often closely related to the operation mode of the building. However, this periodicity is not static and is often disturbed by many external factors, especially changes in weather conditions. For example, fluctuations in factors such as temperature, humidity and sunshine may cause irregular changes in energy consumption, which brings difficulties to prediction. Therefore, the present invention adopts the idea of decomposition to greatly alleviate this situation, decoupling complex time series changes into components with simpler components and clearer changes, simplifying the complex, making each part of the model more targeted, and the progressive internal decomposition can gradually analyze the components at different levels in the middle of the model, and progressively decompose the sequence changes.
[0047] In each of the seasonal-trend progressive decomposition modules, for a multivariate time series input of length L The decomposition process is described as follows:
[0048] X t =AvgPool(Padding(X O ))
[0049] X s =X O -X t
[0050] Where: They represent the extracted seasonal term and trend term respectively, AvgPool(·) represents the moving average operation, and Padding(·) is used to ensure that the sequence length remains unchanged.
[0051] The whole process can be done using X s ,X t = SeriesDecomp(X O ) to summarize, indicating the operation of the decomposition module. Figure 4 Shown is an example of decomposing a multivariate time series into trend and seasonal terms.
[0052] Place the season-trend progressive decomposition module inside the encoder, such as the overall structure Figure 2 As shown in Figure 2, a structure of seasonal-trend progressive decomposition is formed under the stacking of multiple encoders. Assume that the input of the encoder is a historical sequence with a time step length of L. The sequence is decomposed into the initial seasonal terms. and the initial trend term Assuming the number of encoder layers is M, the overall process of the mth WFDformer encoder layer can be summarized as The internal calculation process is as follows:
[0053]
[0054] X s m,2 ,X t m,2 = SeriesDecomp(FFN(X s m,1 )+X s m,1 )
[0055]
[0056] Where: X t m,i , i∈{1,2} represents the trend term obtained by the i-th season-trend progressive decomposition module in the m-th WFDformer encoder layer, X s m,i ,i∈{1,2} represents the seasonal term obtained by the i-th season-trend progressive decomposition module in the m-th WFDformer encoder layer, MA represents the multi-head attention layer, WE represents the wavelet enhancement module, FE represents the Fourier enhancement module, and FFN represents the feedforward neural network layer; represents the initial seasonal term obtained by decomposing the output of the m-1th WFDformer encoder layer, Represents the initial trend term obtained by decomposing the output of the m-1th WFDformer encoder layer.
[0057] In the present invention, the multivariable energy consumption time series is input Decompose to get the initial seasonal term and the initial trend term This can be achieved using a third seasonal-trend progressive decomposition module that has the same structure as the two seasonal-trend progressive decomposition modules.
[0058] 3) Wavelet enhancement module
[0059] Wavelet transform is an effective frequency analysis method, especially suitable for processing non-stationary time series data. Compared with the global view of frequency provided by Fourier transform, wavelet transform is sensitive to local features, and the multi-scale characteristics of the time-frequency graph it generates help to accurately locate frequency components in the time domain and frequency domain. The present invention uses continuous wavelet transform (CWT) to perform wavelet enhancement, generating a time-frequency map for a time series input of length L. Where s represents the wavelet scale.
[0060] The method proposed in the present invention combines the advantages of wavelet transform and ConvNeXt network. By transforming the time series data into wavelet time-frequency graph, the local features and dynamic changes of the data can be captured more intuitively and in detail. Then, the wavelet time-frequency graph is input into the ConvNeXt module to obtain feature representation. The introduction of ConvNeXt network further enhances the ability to extract key local features from these wavelet time-frequency graphs. After being processed by the above-mentioned time-frequency ConvNeXt module, the feature representation is finally converted back to a time series through a strip convolution network. The wavelet enhancement module is as follows: Figure 5 shown.
[0061] The time-frequency ConvNeXt module structure of the present invention is as follows Figure 6 As shown in the figure, it contains two ConvNeXt networks. The first network expands the input dimension to four times, and the second network reduces it to the original dimension, allowing the model to learn features in a higher dimensional space to obtain richer information. In the middle is a GELU activation layer, which increases the nonlinear characteristics of the model and helps improve the learning and generalization capabilities of the network.
[0062] 4) Fourier enhancement module
[0063] Fourier transform can provide global frequency information for time series, and is more suitable for overall information extraction than wavelet transform. The method of the present invention uses both Fourier transform and wavelet transform, wherein wavelet transform is mainly used for seasonal terms, while Fourier transform is mainly used for trend terms, respectively capturing the local characteristics and global properties of time series more specifically. Figure 7 As shown:
[0064] Assume that the input of the Fourier enhancement module is First, linear projection is performed on the input to obtain Then q is converted from the time domain to the frequency domain, and the Fourier transform of q is recorded as A randomly selected subset of Fourier components can retain most of the information under weaker conditions. Therefore, the present invention retains U randomly selected components in the frequency domain, using a selection operator:
[0065]
[0066] Where: The calculation process of the Fourier enhancement module is expressed as follows:
[0067]
[0068] Where: is a randomly initialized parameter kernel, which is learned and optimized during the model training process, and can effectively filter and strengthen the frequency components that are more important to the prediction task, while reducing or ignoring the influence of unimportant or noise frequency components. f =Q⊙R, The operator ⊙ is defined as:
[0069]
[0070] Where: d i =1,2...d is the input channel, d o =1,2...d is the output channel. Then The result is zero-filled to Then perform inverse Fourier transform back to the time domain. After the above operations, the trend term decomposed by the progressive decomposition module has been enhanced. Since the trend term can reflect the overall trend information of the sequence, the wavelet enhancement module in this section enables the model to better capture and utilize the global trend and periodicity in the time series data.
[0071] Step 4: Send the building energy consumption data training set to the frequency enhanced decomposition Transformer energy consumption prediction model for training.
[0072] Step 5: Input the building energy consumption time series data into the trained model for multi-step prediction to obtain the multi-step building energy consumption prediction results.
[0073] The following is a diagram of using 96 time steps as input to predict the next 96 and 192 time steps on the CUBEMS dataset. Figure 8The air conditioning energy consumption variable is shown. The CUBEMS dataset comes from the building energy management system of a seven-story academic office building [Pipattanasomporn M, Chitalia G, Songsiri J, et al. CU-BEMS, smart building electricity consumption and indoor environmental sensor datasets [J]. Scientific Data, 2020, 7(1): 241.]. The system records in detail the three main loads in 33 areas on the seven floors of the building: air conditioning unit load, lighting, and power socket energy consumption. The dataset includes minute-by-minute measurement data for 549 days in the second half of 2018 and the whole year of 2019. For the convenience of research, this paper samples it into hourly intervals, summarizes and integrates different types of loads, and adds weather information of the area during the corresponding time period (including average temperature, maximum temperature, humidity, wind speed, etc.), totaling 12 variables.
[0074] After normalization, the MSE of the 96-step prediction result is 0.103, and the MSE of the 192-step prediction result is 0.127. Figure 8 It can be seen that this method can predict a relatively accurate increase or decrease trend, the trend curve basically fits the real curve, and can basically infer the extreme value of the energy consumption series.
Claims
1. A building energy consumption prediction method based on frequency enhanced decomposition Transformer network, characterized in that: The steps include: Step 1: Collect building energy consumption time series data and preprocess them; Step 2, establishing an energy consumption prediction model based on a frequency enhancement decomposition Transformer network, the model includes a normalization layer, an embedding layer, a WFDformer encoder layer, a projection transformation layer and a denormalization layer in sequence; the WFDformer encoder layer is used to obtain the feature representation of the time series, which includes a multivariate time series Transformer module and a dual-branch frequency enhancement module; the multivariate time series Transformer module includes a multi-head attention layer, a feedforward neural network layer and two season-trend progressive decomposition modules, and the feedforward neural network layer is arranged between the two season-trend progressive decomposition modules; the dual-branch frequency enhancement module includes a wavelet enhancement module and a Fourier enhancement module; In each WFDformer encoder layer, its multivariate energy consumption time series input After decomposition, the initial seasonal term is obtained and the initial trend term X ens Enter the wavelet enhancement module, X ent Entering the Fourier enhancement module, the output of the wavelet enhancement module passes through the multi-head attention layer and is then progressively decomposed by the two season-trend progressive decomposition modules in turn to obtain the season term and trend term again; the output of the Fourier enhancement module is added to the trend term of the first layer of progressive decomposition, the result is added to the trend term of the second layer of progressive decomposition, and then added to the season term of the second layer of progressive decomposition as the output of the current WFDformer encoder layer; wherein d is the variable dimension and L is the sequence length; Step 3: Use the building energy consumption data training set to train the model built in step 2, input the building energy consumption time series data into the trained model for multi-step prediction, and obtain the multi-step building energy consumption prediction results.
2. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: The building energy consumption time series data includes power consumption, cooling load, heating energy consumption, air conditioning load, lighting and power socket energy consumption. The preprocessing of building energy consumption data includes data cleaning and normalization. The data cleaning includes outlier processing and missing value filling. The normalization includes two layers of normalization, one is the overall normalization of data preprocessing, and the other is sliding window normalization, which is used to reduce the non-stationarity of the non-stationary time series of the overall sliding window input sample. For each multivariate time series input, the sliding window normalization process is to process it according to the following formula: Where: represents element-by-element division, ⊙ represents element-by-element multiplication, that is, each element is subtracted from the mean, and then each element is divided by the standard deviation, x i represents the multivariate time series at time i, x i ′ represents x i The result after normalization, S represents x i Length.
3. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: The input of the model is a multivariate time series historical input sample After initialization by the normalization layer and the embedding layer, it is encoded by M WFDformer encoder layers in sequence. After that, the encoded output is transformed into the predicted output by the projection transformation layer, and restored to the original data space by the denormalization layer to obtain the final predicted output. Where S is the sequence length of Y, and Y is the predicted future value after L and S time steps.
4. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: The multivariate time series transformer in the WFDformer encoder layer takes a variable token as input, where the variable token is the entire time series of a variable, from the input sample X to the final predicted output The operation process is shown as follows: H m+1 =WFDformer(H m ),m=0,…,M-1 Where: represents the historical input sequence of the d-th variable, represents the embedding vector obtained by the embedding layer, H m is an N-dimensional embedding vector representing the output of the m-th WFDformer encoder layer, That is, the sequence length L is increased to N dimensions, and the variable dimension d remains unchanged. represents the encoded output of the d-th variable in the m-th WFDformer encoder layer, represents the encoded output of the d-th variable in the M-th WFDformer encoder layer; Y d,: is the output of the dth variable obtained by the projection transformation layer. d,: After the denormalization layer, it is restored to the original data space, that is, Embedded And projection transformation All of them are realized through MLP projection transformation.
5. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: In each of the seasonal-trend progressive decomposition modules, for a multivariate time series input of length L The decomposition process is described as follows: X t =AvgPool(Padding(X O )) X s =X O -X t Where: They represent the extracted seasonal term and trend term respectively, AvgPool(·) represents the moving average operation, and Padding(·) is used to ensure that the sequence length remains unchanged.
6. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: The internal calculation process of the mth WFDformer encoder layer is as follows: Where: X t m,i , i∈{1,2} represents the trend term obtained by the i-th season-trend progressive decomposition module in the m-th WFDformer encoder layer, X s m,i ,i∈{1,2} represents the seasonal term obtained by the i-th season-trend progressive decomposition module in the m-th WFDformer encoder layer, MA represents the multi-head attention layer, WE represents the wavelet enhancement module, FE represents the Fourier enhancement module, and FFN represents the feedforward neural network layer; represents the initial seasonal term obtained by decomposing the output of the m-1th WFDformer encoder layer, It represents the initial trend term obtained by decomposing the output of the m-1th WFDformer encoder layer, SeriesDecomp, that is, AvgPool(Padding(·)).
7. The building energy consumption prediction method based on frequency enhancement decomposition Transformer according to claim 1 or 6 is characterized in that: The multivariable energy consumption time series input The initial seasonal terms are decomposed using the third seasonal-trend progressive decomposition module. and the initial trend term 8. According to claim 1, the building energy consumption prediction method based on frequency enhancement decomposition Transformer is characterized in that: The wavelet enhancement module first converts the time series data into a wavelet time-frequency diagram through wavelet transform, then inputs the wavelet time-frequency diagram into the ConvNeXt module to obtain feature representation, and finally converts the feature representation back to a time series through a strip convolutional network.
9. The building energy consumption prediction method based on frequency enhancement decomposition Transformer according to claim 8 is characterized in that: The ConvNeXt module contains two ConvNeXt networks, the first network expands the input dimension to four times, and the second network reduces it to the original dimension, with a GELU activation layer in the middle.
10. The building energy consumption prediction method based on frequency enhancement decomposition Transformer according to claim 1 is characterized in that: In the Fourier enhancement module, the input is first linearly projected to obtain Then q is converted from the time domain to the frequency domain, and the Fourier transform of q is recorded as Keep U randomly selected components in the frequency domain, using a selection operator: Where: Then the calculation process of the Fourier enhancement module is expressed as: Where: is a randomly initialized parameter kernel, let The operator ⊙ is defined as: Where: d i =1,2...d is the input channel, d o =1,2...d is the output channel, then The result is zero-filled to Then perform an inverse Fourier transform back to the time domain.
Citation Information
Cited By
Covariant time sequence prediction method based on multi-scale decoupling
CN120105070A
Building energy consumption determination method and device based on time sequence decomposition and time-frequency fusion
CN120105354A
