A multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction method
By employing a multi-scale periodic enhancement and adaptive gating method, the problem of insufficient periodic feature extraction in multivariate power consumption prediction is solved, achieving accurate prediction and improved stability of complex power consumption variation patterns.
Patent Information
- Application Number
- CN202611448296.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-24
AI Technical Summary
Existing multivariate power consumption prediction methods lack multi-scale periodic feature extraction, and fixed-scale feature extraction methods are unable to capture local, medium-range, and long-range cross-cycle variation features. Furthermore, fixed-weight fusion methods are unable to dynamically adjust the contribution of periodic information.
By employing a multi-scale periodic enhancement and adaptive gating method, periodic information of multivariate power consumption time series is extracted through frequency domain analysis. A multi-scale periodic sensing enhancement module and an adaptive gating fusion module are constructed to dynamically adjust the contribution of periodic features, thereby achieving accurate prediction of complex power consumption variation patterns.
This improved the model's ability to characterize complex, multi-cycle power consumption patterns and its prediction accuracy, and enhanced the model's adaptability to different operating conditions.
Smart Images

Figure CN123158129A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence, deep learning, and energy prediction technology, specifically to a multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction method. Background Technology
[0002] With the development of smart grids, energy management systems, and industrial digitalization technologies, accurately predicting future electricity consumption is crucial for grid dispatch optimization, energy resource allocation, and load management. Electricity consumption data is typically influenced by various factors, including user behavior, production activities, environmental factors, and temporal patterns, exhibiting significant nonlinear, periodic, and multivariate coupling characteristics. Therefore, accurately predicting future load changes using historical electricity consumption data has become a critical technical challenge in the field of energy management.
[0003] Currently, electricity consumption prediction methods mainly include statistical methods, machine learning methods, and deep learning-based time series prediction methods. Traditional statistical methods typically rely on manually designed assumptions about time patterns, such as autoregressive models and moving average models, which have limited ability to model complex nonlinear variation patterns. In recent years, deep learning-based methods have been widely used in electricity consumption prediction tasks by automatically learning time series features. Among them, recurrent neural networks, convolutional neural networks, and attention-based models can effectively extract long-term dependencies in time series, but they still suffer from insufficient utilization of periodic information when dealing with time series with multi-scale periodic variation characteristics.
[0004] Some existing time series forecasting methods can utilize frequency domain analysis to obtain periodic information in time series and combine it with periodic structure for predictive modeling. However, existing methods usually focus on utilizing single periodic information or fixed periodic patterns, making it difficult to effectively model the periodic variation patterns at different time scales.
[0005] Furthermore, existing time series forecasting methods typically employ fixed-scale feature extraction structures when dealing with data exhibiting varying patterns over different time spans, making it difficult to simultaneously capture temporal evolution relationships across different ranges. For electricity consumption data exhibiting sudden load changes, complex operating conditions, and multivariate coupling effects, relying solely on single-scale feature extraction methods can easily lead to the loss of crucial change information, reducing the model's prediction accuracy and stability.
[0006] Therefore, in order to address the problems of insufficient multi-scale periodic feature extraction and fixed periodic information fusion methods in existing power consumption prediction methods, it is necessary to propose a multivariate power consumption prediction method that can effectively perceive different periodic patterns and dynamically adjust the periodic contribution based on input features. Summary of the Invention
[0007] The present invention aims to solve the following technical problems in existing multivariate power consumption prediction methods: (1) Existing prediction methods are not capable of extracting the multi-scale periodic evolution law in multivariate power consumption time series. Fixed-scale or fixed-receptive-field feature extraction methods are difficult to capture local, medium-range and long-range cross-period change features at the same time. (2) Existing periodic feature fusion methods usually adopt fixed weights or frequency domain amplitude-based fusion methods, which are difficult to dynamically adjust the importance of each periodic feature according to the change state of different input samples, resulting in insufficient utilization of effective periodic information.
[0008] To address the aforementioned technical issues, this invention proposes a multi-scale periodic enhancement and adaptive gating method for predicting multivariate power consumption. By effectively extracting periodic information from multivariate power consumption time series and combining multi-scale feature enhancement and dynamic weight allocation, it achieves accurate prediction of complex power consumption variation patterns.
[0009] To achieve the above objectives, the present invention adopts the following technical solution: A multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating includes the following steps:
[0010] S1. Data Acquisition and Preprocessing: Acquire multivariate power consumption time series within a historical time window. The multivariate power consumption time series includes the target power consumption variable and auxiliary variables related to power consumption changes. Perform data cleaning, missing value processing, and normalization on the acquired raw data to reduce the impact of outlier data, missing data, and differences in the units of different variables on the prediction results, and construct a multivariate power consumption time series for model training and prediction.
[0011] Let the input time series be represented as: ,in, Indicates the input time length. Indicates time step The corresponding multivariate feature vector.
[0012] S2. Periodic-aware feature extraction: The time series obtained in step S1 is subjected to feature embedding processing, mapping the original multivariate features to a high-dimensional feature space to obtain hidden feature representations containing information on power consumption changes and the correlation information of auxiliary variables. Subsequently, the embedded time series is transformed along the time dimension in the frequency domain to obtain the frequency domain response corresponding to each frequency component. The responses are sorted according to the amplitude response intensity corresponding to each discrete frequency index, and the response with the largest amplitude response is selected. The frequency index is used as the dominant frequency component. Based on the correspondence between the frequency index and the period length, the _th_ frequency component is calculated. The period length corresponding to each dominant frequency component: ,in, Indicates the first The length of each dominant cycle; Indicates the length of the input time series; Indicates the first Each frequency component.
[0013] Through the above process, the potential periodic patterns in multivariate power consumption time series can be automatically detected.
[0014] S3. Periodic Two-Dimensional Structure Reconstruction: Based on the multiple dominant periods obtained in step S2, the embedded multivariate power consumption time series is periodically divided according to different period lengths. Continuous time steps are reorganized according to period lengths, mapping the time positions within the same period to one dimension of the two-dimensional structure, and mapping the evolutionary relationships between different periods to the other dimension of the two-dimensional structure, thereby converting the original one-dimensional time series into a two-dimensional periodic feature representation. For the first... The dominant cycle, whose two-dimensional cycle characteristics can be expressed as: ,in, Indicates batch size, Indicates the hidden feature dimension. Indicates the number of cycles. Indicates the first Each cycle length.
[0015] In the two-dimensional periodic structure, one dimension is used to describe the relationship of change between different positions within a single period, and the other dimension is used to describe the evolutionary relationship between adjacent periods and different periods, thereby providing a structured expression of the intra-period and cross-period changes that were originally mixed in a one-dimensional time axis.
[0016] S4. Multi-scale Periodicity Awareness Enhancement: Based on the two-dimensional periodic features corresponding to each dominant period obtained in step S3, a multi-scale periodicity awareness enhancement module is constructed to extract cross-period evolution information across different time spans. The multi-scale periodicity awareness enhancement module includes multiple feature extraction branches with different cross-period feature extraction ranges. Different scale branches employ two-dimensional convolution operations with different dilation rates. Convolution dilation is only applied in the cross-period direction of the two-dimensional periodic structure, while the dilation rate in the intra-period direction remains at 1. The dilation rate controls the sampling interval of the convolution kernel in the cross-period direction; a larger dilation rate results in a larger cross-period range covered by the convolution operation.
[0017] Specifically, it includes: The first-scale feature extraction branch is used to extract local variation features between adjacent periods; The second-scale feature extraction branch is used to extract cross-period evolution features over a medium time span. The third-scale feature extraction branch is used to extract cross-period variation features over a longer time span.
[0018] For the The dominant cycle in the first The enhanced features obtained at each scale can be expressed as: ,in, Indicates the first The cycle is in the first Periodic enhancement features obtained at each scale This represents the feature extraction operation at the corresponding scale. Through collaborative modeling between branches at different scales, the model can simultaneously acquire local, medium-range, and long-range cross-cycle evolution information, improving its ability to represent complex energy consumption cycle variation patterns.
[0019] For the same dominant period, the enhanced features obtained from the three scale feature extraction branches are jointly fused to obtain the fused two-dimensional features for the corresponding period. Subsequently, based on the arrangement relationship during the reconstruction of the two-dimensional periodic structure, the fused two-dimensional features are restored to a one-dimensional time series representation, and the padding generated during the period division process is removed to obtain periodic enhanced features of consistent length. ,in, , This indicates the number of dominant cycles and the cycle enhancement features corresponding to each dominant cycle. They have the same time length and feature dimensions, and are used for subsequent adaptive gating fusion.
[0020] S5. Adaptive Gated Fusion: After step S4, different dominant cycles yield corresponding cycle enhancement features. Considering the varying contributions of each cycle feature to future power consumption changes under different operating conditions, this invention constructs an adaptive gated fusion module to dynamically weight different cycle features. First, statistical feature extraction is performed on each cycle enhancement feature to obtain the overall response information and significant response information of each cycle feature, forming corresponding cycle feature description vectors. Subsequently, the concatenated cycle feature description vectors are input into the gated network, and the result is obtained through nonlinear mapping. Gating score corresponding to each dominant cycle The gating scores corresponding to each dominant period are normalized using Softmax to obtain the period fusion weights: ,in, Indicates the first The fusion weights corresponding to each dominant cycle Indicates the first The gating score corresponding to each periodic feature This indicates the number of dominant cycles. Based on the fusion weights of each cycle, the cycle enhancement features corresponding to different dominant cycles are weighted and fused: ,in, This indicates the periodic enhancement feature after fusion. Indicates the first Enhancement features corresponding to each dominant cycle.
[0021] S6. Power Consumption Prediction Output: Input the fused periodic enhancement features obtained in step S5 into the prediction network. Map the high-dimensional features to the target prediction space through the prediction mapping relationship to obtain the power consumption prediction result for the future time period. The prediction result is expressed as follows: ,in, This represents a series of predicted electricity consumption over a future time period. Represents the prediction mapping function, This represents the features after multi-scale periodic enhancement and adaptive gating fusion. Finally, the prediction results are denormalized to restore them to the actual numerical scale of the original power consumption data, yielding the final future power consumption prediction result. Beneficial effects
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] This invention uses periodic sensing and two-dimensional periodic structure reconstruction to structurally express the intra-period variation and cross-period evolution relationship in a one-dimensional multivariate power consumption time series. It also combines a multi-scale periodic sensing enhancement mechanism to extract local, medium-range, and long-range cross-period variation features, thereby improving the model's ability to represent complex multi-period power consumption variation patterns.
[0024] This invention constructs an adaptive gating fusion mechanism to dynamically calculate fusion weights based on the response states of the dominant periodic features in different input samples. This changes the traditional fixed weight or periodic fusion method based solely on frequency domain amplitude, improving the flexibility and effectiveness of utilizing different periodic information.
[0025] This invention combines multi-scale periodic perception enhancement with adaptive gating fusion, enabling the model to adaptively extract and fuse periodic features with high predictive value based on the actual changes in the multivariate power consumption time series, thereby improving the accuracy, stability, and adaptability to complex operating conditions of multivariate power consumption prediction. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0027] Figure 1 This is an overall flowchart of a multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction method according to the present invention; Figure 2This is a schematic diagram of the multi-scale periodic sensing enhancement and adaptive gating fusion network structure of the present invention. Detailed Implementation
[0028] The present invention will be further described in detail below with reference to specific embodiments and accompanying drawings. These embodiments are only used to explain the present invention and do not constitute a limitation on the scope of protection of the present invention.
[0029] like Figure 1 As shown in the figure, this embodiment provides a multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction method. The method mainly includes six steps: data acquisition and preprocessing, periodic sensing feature extraction, periodic two-dimensional structure reconstruction, multi-scale periodic sensing enhancement, adaptive gating fusion, and power consumption prediction output.
[0030] The specific implementation steps are as follows:
[0031] S1. Data Acquisition and Preprocessing: First, multivariate electricity consumption time series within a historical time window are acquired through energy management systems, power monitoring equipment, or smart meters. The multivariate electricity consumption time series includes a target electricity consumption variable and auxiliary variables related to electricity consumption changes. The target electricity consumption variable characterizes the actual electricity consumption within the historical time period, while the auxiliary variables describe relevant external factors affecting electricity consumption changes. The acquired raw multivariate electricity consumption time series undergoes data cleaning, missing value processing, and normalization to reduce the impact of outliers, missing data, and differences in the units of different variables on the model's prediction results. A time series is then constructed based on a preset historical time window.
[0032] Suppose the input time series is represented as: ,in, Indicates the length of the input time window; Indicates the first Multivariate features corresponding to each time point.
[0033] S2. Periodic-aware feature extraction: The multivariate power consumption time series obtained in step S1 is subjected to feature embedding processing. The original multivariate features are mapped to a high-dimensional feature space to obtain a hidden feature representation containing power consumption change information and related auxiliary variable information.
[0034] To obtain the potential periodic variation patterns in multivariate power consumption time series, a Fast Fourier Transform (FFT) is performed along the time dimension on the embedded time series to obtain the frequency domain feature representation of the time series. The Fast Fourier Transform can be expressed as: ,in, Represents frequency The corresponding frequency domain features, Represents a multivariate time series of electricity consumption in the time domain. Indicates the length of the time series.
[0035] By analyzing the amplitude of each frequency component, several dominant frequency components with higher amplitudes are selected from the frequency domain characteristics, and the corresponding dominant period length is calculated based on the correspondence between frequency and period. ,in, Indicates the first The length of each cycle, Indicates the length of the time series. Indicates the first Each frequency.
[0036] Through the above processing, multiple dominant periods with high response intensity in the current input multivariate power consumption time series can be automatically obtained, providing periodic basis for subsequent two-dimensional periodic structure reconstruction.
[0037] S3. Periodic Two-Dimensional Structure Reconstruction: Based on the multiple dominant periods obtained in step S2, the embedded time series is segmented, padded, and rearranged according to different period lengths to convert the original one-dimensional time series into the corresponding two-dimensional periodic feature representation.
[0038] For the i-th dominant cycle, its two-dimensional cycle characteristics can be expressed as: ,in, Indicates batch size; Indicates the hidden feature dimension; This represents the number of cycles obtained by dividing the system according to the i-th dominant cycle. Indicates the first The dominant cycle length. In the two-dimensional cycle structure, one dimension describes the changing relationships between different positions within a single cycle, and the other dimension describes the evolutionary relationships between adjacent cycles and different cycles. Through this two-dimensional reconstruction method, the intra-cycle change information and cross-cycle evolution information, which were originally mixed in a one-dimensional time axis, can be structurally expressed, thus providing a foundation for further extraction of cycle features at different time scales.
[0039] S4. Enhanced Multi-Scale Periodic Sensing: such as Figure 2 As shown, a multi-scale periodic perception enhancement module is constructed for the two-dimensional periodic features corresponding to different dominant periods obtained in step S3, in order to extract cross-period evolution information under different time spans.
[0040] The multi-scale periodic perception enhancement module includes multiple feature extraction branches with different receptive ranges. Different scale branches employ two-dimensional convolution operations with different dilation rates. The convolution dilation only applies to the cross-period direction of the two-dimensional periodic structure, while the dilation rate in the intra-period direction remains unchanged.
[0041] Specifically, including: The first-scale feature extraction branch uses a convolutional structure with a smaller receptive range to extract local variation features between adjacent periods; The second-scale feature extraction branch uses a convolutional structure with a medium receptive range to extract cross-period evolution features over a medium time span. The third-scale feature extraction branch employs a convolutional structure with a larger receptive range to extract cross-period variation features over a longer time span.
[0042] In this embodiment, three scale feature extraction branches are set for the two-dimensional periodic features corresponding to each dominant period. The dilation rates of the three scale branches in the cross-period direction are set to 1, 2, and 4, respectively. The dilation rate is used to control the sampling interval of the convolution kernel in the cross-period direction. The larger the dilation rate, the larger the cross-period range covered.
[0043] Specifically, the expansion rate of the first scale branch is set to 1 to model the nearest neighbor relationship between the current cycle and its adjacent cycles, and the extracted features are defined as local cross-cycle change features; the expansion rate of the second scale branch is set to 2 to expand the sampling range in the cross-cycle direction and model the change relationship across several adjacent cycles, and the extracted features are defined as medium-range cross-cycle evolution features; the expansion rate of the third scale branch is set to 4 to further expand the feature perception range in the cross-cycle direction and model the evolution relationship between multiple cycles with a large interval, and the extracted features are defined as long-range cross-cycle change features.
[0044] Therefore, in this embodiment, the local, medium-range, and long-range periods are not divided according to fixed hours or fixed period lengths, but rather based on the different feature perception ranges formed by different expansion rates in the cross-period direction of the two-dimensional periodic structure. The correlation between nearest-neighbor periods, medium-range periods, and large-range periods is established through three scale branches, and the periodic features obtained at different scales are jointly characterized to achieve multi-scale cross-period correlation modeling.
[0045] For the The dominant cycle in the first The enhanced features obtained at each scale can be represented as: ,in, Indicates the first The cycle is in the first Enhanced features obtained at each scale; Indicates the first Feature extraction operations at each scale.
[0046] By leveraging the synergistic effect of multiple scale branches, the model can simultaneously acquire local, medium-range, and long-range cross-cycle evolutionary features, thereby enhancing the model's ability to represent complex, multi-scale periodic change patterns.
[0047] For the same dominant period, the enhanced features obtained from the three scale feature extraction branches Direct concatenation along the feature dimension forms a multi-scale fusion feature containing local, mid-range, and long-range cross-cycle evolution information. Subsequently, this fusion feature is restored to a one-dimensional time series representation according to the arrangement relationship during two-dimensional periodic structure reconstruction. Finally, the padded portions at the ends are removed based on the length of the original input sequence to obtain periodic enhancement features of consistent length. This is used for subsequent adaptive gating fusion.
[0048] S5. Adaptive Gated Fusion: After the multi-scale periodic perception enhancement in step S4, corresponding periodic enhancement features are obtained for different dominant periods. Considering that the contribution of each dominant period to future power consumption changes varies under different input states, this embodiment further constructs an adaptive gated fusion module to dynamically weight and fuse the enhancement features corresponding to different dominant periods.
[0049] First, statistical features are extracted from the periodic enhancement features corresponding to each dominant period. Average pooling and max pooling are used to obtain the overall response information and salient response information of the periodic features, respectively, and the two are combined to form the corresponding periodic feature description vector.
[0050] The obtained periodic feature description vector is input into a gated network. The importance score corresponding to each dominant period is calculated through nonlinear mapping, and the periodic fusion weight is obtained through a normalization function. ,in, Indicates the first The fusion weights corresponding to each dominant cycle Indicates the first The gating score corresponding to each periodic feature Indicates the number of dominant cycles.
[0051] Based on the obtained periodic weights, the enhanced features of different periods are dynamically fused: ,in, This indicates the periodic enhancement feature after fusion; Indicates the first Each cycle enhances the feature.
[0052] Through the aforementioned adaptive gating fusion method, the model can dynamically adjust the contribution ratio of different dominant cycles in the final feature representation based on the feature response state of the current input multivariate power consumption time series. Compared with methods that use fixed weights or determine cycle contribution solely based on frequency domain amplitude, this method improves the flexibility of cycle information utilization, enabling the prediction model to better adapt to changes in power consumption cycle patterns under different operating conditions.
[0053] S6. Power consumption prediction output: Input the fused periodic enhancement features obtained in step S5 into the prediction network, establish a nonlinear mapping between historical power consumption features and future power consumption changes through the prediction mapping relationship, and generate power consumption prediction results for the future target time period.
[0054] The prediction result can be expressed as: , This indicates the predicted electricity consumption for a future period. This indicates a predictive mapping network. This indicates the features after periodic enhancement and gating fusion.
[0055] After the prediction is completed, the model output is denormalized to restore the prediction results to the actual numerical scale of the original power consumption data, thereby obtaining the final future power consumption prediction results.
[0056] Through the above six steps, this embodiment completes the entire prediction process from inputting historical multivariate power consumption time series to outputting future power consumption prediction results.
[0057] To verify the effectiveness of the multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction method proposed in this invention, this embodiment selects a multivariate power consumption time series containing historical power load and related influencing factors for prediction experiments. The data is divided into training set, validation set, and test set according to time order. Multivariate observation data within a continuous historical time window is used as model input, and power consumption values for future time periods are used as prediction targets.
[0058] In this embodiment, the input data includes the target power consumption variable and auxiliary variables such as temperature and time attributes, employing a multivariate input, univariate output prediction method. The input sequence length is set to 96 time steps, and the prediction length is set to 24 time steps; the model's hidden feature dimension is set to 256, the number of dominant cycles is set to 5, and the multi-scale cycle perception enhancement module uses three cross-cycle feature extraction branches at three different scales, with expansion rates set to 1, 2, and 4, respectively. During model training, the Adam optimizer is used, with an initial learning rate set to 0.0001, a batch size set to 32, and model parameters selected based on the validation set error.
[0059] To evaluate the model's predictive performance, mean squared error (MSE), mean absolute error (MAE), root mean square error (RMSE), and coefficient of determination (R²) were used as evaluation metrics. Smaller MSE, MAE, and RMSE indicate lower model prediction errors, while a closer R² to 1 indicates a better fit between the model's predicted values and actual electricity consumption changes.
[0060] To verify the predictive performance of the method of this invention, it was compared with Informer, PatchTST, iTransformer, and TimesNet models under the same data partitioning and prediction task conditions. All models used the same training, validation, and test sets to minimize the impact of different data partitioning on the experimental results. The comparison results are shown in Table 1. Table 1. Comparison of prediction performance of different prediction methods Prediction methods Mean Squared Error (MSE) Mean Absolute Error (MAE) Root Mean Square Error (RMSE) Coefficient of determination (R²) Informer 0.0615 0.1538 0.2480 0.9121 PatchTST 0.0475 0.1376 0.2179 0.9320 iTransformer 0.0424 0.1411 0.2059 0.9394 TimesNet 0.0392 0.1331 0.1980 0.9440 Method of the present invention 0.0328 0.1221 0.1811 0.9532
[0061] Experimental results show that the method of this invention has good predictive performance in multivariate power consumption prediction tasks. Compared with the original periodic modeling method, this invention uses a multi-scale periodic perception enhancement module to extract multi-scale features from the two-dimensional periodic structure corresponding to each dominant period, enabling the model to simultaneously acquire local periodic changes, mesoscale periodic evolution, and cross-period change patterns over a longer time span, thereby improving the ability to represent complex periodic patterns.
[0062] Furthermore, this invention employs an adaptive gating mechanism to replace the fusion method that determines the periodic contribution solely based on frequency domain amplitude. For different input samples, the overall and significant response information of each periodic enhancement feature is first extracted through average pooling and max pooling. Then, the gating network dynamically generates fusion weights for different dominant periods. Therefore, when the main variation law of the multivariate power consumption time series changes, the model can adjust the contribution ratio of each periodic feature in the final prediction result accordingly, improving the model's adaptability to different operating states.
[0063] The above experiments show that the multi-scale periodic perception enhancement and adaptive gating fusion method proposed in this invention can make fuller use of the periodic change information in the multivariate power consumption time series, effectively model the periodic evolution law at different time scales, and dynamically select periodic information with high predictive value according to the current sample characteristics, thereby improving the accuracy and stability of multivariate power consumption prediction.
Claims
1. A multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating, characterized in that, Includes the following steps: S1. Obtain historical multivariate power consumption time series, perform data cleaning and normalization on the power consumption data, and construct a multivariate power consumption time series for prediction. S2. The multivariate power consumption time series is subjected to feature embedding processing, and its periodic features are extracted by frequency domain analysis to obtain multiple dominant periodic information. S3. Based on the dominant periodic information, perform a two-dimensional periodic mapping on the embedded multivariate power consumption time series, and convert the one-dimensional time series into a two-dimensional periodic representation that includes the variation features within the period and the evolution features between periods. S4. Construct a multi-scale periodic perception enhancement module to extract multi-scale features from the two-dimensional periodic representations corresponding to different dominant periods, and obtain periodic evolution features under different cross-period perception ranges through two-dimensional convolution operations with different expansion rates. S5. Construct an adaptive gating fusion module, calculate the periodic weights based on the feature response information of different periodic features, and use the periodic weights to dynamically fuse multiple periodic features. S6. Input the fused periodic enhancement features into the prediction network to obtain the power consumption prediction results for future time periods.
2. The multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating according to claim 1, characterized in that: The periodic feature extraction method in step S2 includes: Perform a fast Fourier transform along the time dimension on the multivariate power consumption time series to obtain the corresponding frequency domain amplitude information; Multiple dominant frequency components are selected based on the magnitude of the frequency domain amplitude, and the corresponding period length is calculated based on the mapping relationship between frequency and period.
3. The multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating according to claim 1, characterized in that: The periodic two-dimensional structure reconstruction method in step S3 includes: Based on the obtained period length, the input sequence is periodically segmented and rearranged to convert the multivariate power consumption time series into a two-dimensional periodic structure. In the two-dimensional periodic structure, one dimension represents the relationship between adjacent periods, and the other dimension represents the relationship within a single period.
4. The multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating according to claim 1, characterized in that: The multi-scale periodic perception enhancement module includes multiple feature extraction branches at different scales; The feature extraction branches at different scales employ two-dimensional convolution operations with different dilation rates. The convolutional dilation only operates in the cross-period direction of the two-dimensional periodic structure, while the dilation rate within the period remains constant. This expands the feature receptive field in the cross-period direction while preserving the phase structure within the period. The dilation rate controls the sampling interval of the convolution kernel in the cross-period direction, with different dilation rates corresponding to different feature receptive regions.
5. The multivariate power consumption prediction method according to claim 4, characterized in that, The multi-scale periodic perception enhancement module includes three scale feature extraction branches. The expansion rates of the three scale feature extraction branches in the cross-period direction are 1, 2 and 4, respectively, and the expansion rate in the intra-period direction is 1.
6. The multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating according to claim 1, characterized in that: The adaptive gating fusion module includes: Periodic feature description unit, weight calculation unit, and feature fusion unit; Among them, the periodic feature description unit obtains the corresponding periodic feature representation by statistically aggregating each periodic feature; The weight calculation unit generates corresponding periodic weights based on the periodic feature representation; The feature fusion unit performs weighted fusion of multiple periodic features according to the periodic weights.
7. The method according to claim 6, characterized in that, The periodic feature description unit performs average pooling and max pooling on the enhanced features of each period, concatenates the obtained average response features with the maximum response features, and inputs the concatenated feature description vector into the gating network to obtain the gating score corresponding to each dominant period; the fusion weights corresponding to each dominant period are obtained through Softmax normalization. in: Indicates the first The fusion weights corresponding to each periodic feature; Indicates the first One periodic characteristic; This represents the gated mapping function.
8. The multivariate power consumption prediction method with multi-scale periodic enhancement and adaptive gating according to claim 1, characterized in that: The prediction network adopts a time series prediction model based on deep neural networks. By learning the mapping relationship between the fused periodic enhancement features and future power consumption changes, it can predict the power consumption value for future time periods.
9. A multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction system, characterized in that, include: The system comprises a data acquisition and preprocessing module, a periodic sensing feature extraction module, a periodic two-dimensional structure reconstruction module, a multi-scale periodic sensing enhancement module, an adaptive gating fusion module, and a prediction output module; wherein each module is used to execute the method described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements any one of the multi-scale periodic enhancement and adaptive gating multivariate power consumption prediction methods according to claims 1 to 8.
