Adjustable load prediction method and system based on time sequence self-encoding and clustering algorithm

Through the method based on timing autocoding and clustering algorithm, the global and local timing characteristics of multi-user power load are extracted, and feature learning is combined with the Informer model to solve the accuracy and stability of multi-user power load prediction, and a more efficient load prediction effect is achieved.

CN120200240AActive Publication Date: 2025-06-24STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510644750.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-06-24
Estimated Expiration
2045-05-20

AI Technical Summary

Technical Problem

The prior art is difficult to achieve rapid and accurate prediction of power loads for multiple users, especially when the electricity consumption behavior of each user is complex and changeable.

Method used

The adjustable load prediction method based on timing self-coding and clustering algorithm is adopted, and the global and local timing features are extracted through the sparse attention mechanism and the LSTM model, and feature learning is combined with the Informer model to determine the adaptive fusion weight and generate adjustable load prediction values.

Benefits of technology

It improves the accuracy and stability of load prediction, effectively deals with variable length and speed problems in time series data, overcomes noise and local changes, and significantly improves prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120200240A_ABST
    Figure CN120200240A_ABST
Patent Text Reader

Abstract

The invention discloses an adjustable load prediction method and system based on a time sequence self-encoding and clustering algorithm. An auxiliary test data set and a test data set are obtained through clustering; a coding layer is constructed based on a sparse attention mechanism and an LSTM model, a decoding layer is constructed based on an Informer model, in the coding layer, global time sequence features are extracted from an auxiliary test data set, local time sequence features are extracted from the test data set, fluctuation of the global time sequence features and the local time sequence features is inhibited, and the accuracy of the coding layer is improved. Determining an adaptive fusion weight according to the global time sequence features and the local time sequence features; in the decoding layer, performing feature learning on the global time sequence features and the local time sequence features after fluctuation suppression to obtain change features of the global time sequence features and the local time sequence features; and taking the weighted sum of output data of the coding layer and the decoding layer as an adjustable load prediction value. The problems of variable length, variable speed, noise and local change in the time sequence are solved, and the trend characterization precision of the model on the load time sequence data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system load forecasting, and particularly relates to an adjustable load forecasting method and system based on time series autoencoding and clustering algorithms. Background Technique

[0002] With the accelerated development of the new power system, a large number of photovoltaic power sources, electric vehicles, etc. are connected to the distribution network, making its structure and operation increasingly complex, and the way of load aggregation participating in power grid regulation is more flexible, bringing challenges to its accurate forecasting.

[0003] In the prior art, a single load forecasting model cannot meet the forecasting needs of various loads. To avoid the mutual influence between different loads, it is necessary to extract effective features from historical loads, perform classification processing and forecasting. Multi-user power load forecasting refers to forecasting the power loads of multiple users or regions based on historical load data, which can enable power grid enterprises to master the power demands of different users or regions, so as to better carry out planning and implement dispatching optimization, etc. However, due to the complex and diverse electricity consumption behaviors of each user, it is difficult to achieve fast and accurate forecasting using traditional methods. Summary of the Invention

[0004] To solve the deficiencies in the prior art, the present invention provides an adjustable load forecasting method and system based on time series autoencoding and clustering algorithms, which divides the electricity consumption types of different users and processes time series data to improve the effect of multi-user load clustering and the accuracy and stability of load forecasting.

[0005] The present invention adopts the following technical solutions.

[0006] The present invention proposes an adjustable load forecasting method based on time series autoencoding and clustering algorithms, including: Obtain all historical data of the adjustable load, and obtain an auxiliary test data set through clustering; obtain the real-time value of the adjustable load, and obtain a test data set through clustering; Construct an encoding layer of the forecasting model based on the sparse attention mechanism and the LSTM model, construct a decoding layer of the forecasting model based on the Informer model, and the encoding layer and the decoding layer constitute the forecasting model; in the encoding layer, extract global time series features from the auxiliary test data set based on the sparse attention mechanism, extract local time series features from the test data set based on the LSTM model, suppress the fluctuations of the global time series features and the local time series features based on the adaptive gating function, and determine the adaptive fusion weight according to the global time series features and the local time series features; in the decoding layer, perform feature learning on the global time series features and the local time series features after fluctuation suppression to obtain the change features of the global time series features and the local time series features; based on the adaptive fusion weight, use the weighted sum of the output data of the encoding layer and the output data of the decoding layer as the adjustable load forecasting value.

[0007] Obtain the historical data of the adjustable load, and obtain the auxiliary test data set through clustering, including: Obtain the historical data of the adjustable load to form the load auxiliary training time series, and use the K-medoids method to cluster the load auxiliary training time series to determine the data categories; based on the clustering cost function, use the elbow inflection point determination method to optimize the data categories; the clustering clusters corresponding to the optimized data categories are used as the auxiliary test data set.

[0008] The clustering cost function satisfies the following relationship:

[0009] In the formula, is the clustering cost function when the number of clusters is , is the clustering cluster of the load auxiliary training time series determined based on the dynamic time warping method The average cumulative distance between the sample x in and the clustering center of the clustering cluster .

[0010] When the first-order difference of the clustering cost function is less than the set threshold , it is determined that the elbow inflection point is reached, where the value range of the threshold is ; when the elbow inflection point is reached, the data categories reach the optimum, and the number of clusters reaches the optimum value . The clustering clusters corresponding to the optimized data categories are all load data time series, and multiple load data time series of different categories form the auxiliary test data set.

[0011] Obtain the real-time value of the adjustable load, and obtain the test data set through clustering, including: Obtain the real-time value of the adjustable load to form the load training time series, and use the K-medoids method to cluster the load training time series; with the goal of minimizing the clustering cost function, match the clustering categories of the load training time series with the optimized data categories, and use the clustering clusters of the load training time series with matching categories as the test data set.

[0012] With the goal of minimizing the clustering cost function, it satisfies the following relationship:

[0013] In the formula, is the clustering cost function when the number of clusters reaches the optimum value , is the clustering center of the clustering cluster of the load training time series determined based on the dynamic time warping method The clustering center of the clustering cluster of the load-assisted training time series The average cumulative distance; The clustering clusters of the load training time series with category matching are all load data time series, and multiple load data time series of different categories constitute the test data set.

[0014] The global time series feature and the local time series feature after fluctuation suppression are the output data of the encoding layer of the prediction model; the change features of the global time series feature and the local time series feature are the output data of the decoding layer of the prediction model.

[0015] The adaptive gating function satisfies the following relational expression:

[0016] In the formula, Is the global time series feature and the local time series feature after fluctuation suppression at time , Is the sigmoid function, Is the gating input weight matrix, Is the data corresponding to the auxiliary test data set or the test data set at time , Is the gating input vector, Is the fluctuation suppression weight matrix, Is the global time series feature and the local time series feature at time , Is the regularization constraint value.

[0017] The adaptive fusion weight satisfies the following relational expression:

[0018] In the formula, Is the adaptive fusion weight at time , Is the adjustment coefficient of the adaptive fusion weight, which is used to control the steepness of the change of the adaptive fusion weight, Is the adjustment threshold of the adaptive fusion weight; The adjustable load prediction result satisfies the following relational expression:

[0019] In the formula, Is the adjustable load prediction result at time , Is the output data of the encoding layer of the prediction model at time , Is the output data of the decoding layer of the prediction model at time .

[0020] Based on the auxiliary test data set and the test data set, determine the benchmark correction terms for each optimized data category; generate the correction weights for the benchmark correction terms of each data category based on the matching degree between the real-time value of the adjustable load and the cluster center to which it belongs and the adaptive fusion weight, using the Sigmoid function; when the root mean square error and the mean absolute error of the adjustable load prediction result are both minimized, determine the regularization constraint value representing the fluctuation consistency of the adjustable load prediction value; feedback the regularization constraint value to the adaptive gating function to suppress the fluctuations of the global time series features and the local time series features, so as to update the output data of the encoding layer and the output data of the decoding layer, and obtain the updated adjustable load prediction value; superimpose the weighted sum of the updated adjustable load prediction value and the benchmark correction terms of each optimized data category to obtain the optimized adjustable load prediction value.

[0021] The correction weights of the benchmark correction terms for each data category satisfy the following relational expression:

[0022] In the formula, is the correction weight of the th data category at time , is the matching degree between the real-time value of the adjustable load and the cluster center of the th data category to which it belongs, is the th data category at time 's benchmark correction term, is the adaptive fusion weight at time .

[0023] The regularization constraint value satisfies the following relational expression:

[0024] In the formula, is the regularization constraint value, is the mean square error function, and are respectively the fluctuation change amounts of the real value of the adjustable load and its adjacent time points, and are respectively the fluctuation change amounts of the adjustable load prediction value and its adjacent time points, is the adjustment parameter for fluctuation consistency, used to control the sensitivity to fluctuations, .

[0025] The optimized adjustable load prediction value satisfies the following relational expression:

[0026] In the formula, The optimized adjustable load prediction result at time , and the updated adjustable load prediction result at time . is the optimal value of the number of clusters.

[0027] The present invention also provides an adjustable load prediction system based on a time series autoencoder and a clustering algorithm, including: A dataset construction module, configured to obtain historical data of adjustable load, and obtain an auxiliary test dataset through clustering; obtain real-time values of adjustable load, and obtain a test dataset through clustering; A prediction module, configured to construct an encoding layer of a prediction model based on a sparse attention mechanism and an LSTM model, and construct a decoding layer of the prediction model based on an Informer model. The encoding layer and the decoding layer constitute the prediction model. In the encoding layer, global time series features are extracted from the auxiliary test dataset based on the sparse attention mechanism, and local time series features are extracted from the test dataset based on the LSTM model. Based on an adaptive gating function, fluctuations of the global time series features and the local time series features are suppressed, and an adaptive fusion weight is determined according to the global time series features and the local time series features. In the decoding layer, feature learning is performed on the global time series features and the local time series features after fluctuation suppression to obtain change features of the global time series features and the local time series features. Based on the adaptive fusion weight, the weighted sum of the output data of the encoding layer and the output data of the decoding layer is used as the adjustable load prediction value.

[0028] The present invention is also a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method.

[0029] The present invention is also a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method are implemented.

[0030] The beneficial effects of the present invention are as follows. Compared with the prior art, it at least includes that the present invention provides an adjustable load prediction method based on time series autoencoding and clustering algorithms. The K-medoids method based on the Dynamic Time Warping (DTW) algorithm is used to perform dynamic time adjustment clustering on the multi-user historical load test data set and the original load data and perform category matching, which can effectively handle the variable length and variable speed problems in time series data and overcome the noise and local changes in time series data, and improve the training effect of the data. The sparse attention mechanism and the feature extraction module of LSTM are used to extract time series features from the auxiliary training data and load data in the data set, learn the time series change trend of the historical load, and capture the advantages of the dependence relationship of the sequence data. The Informer model is used to learn the feature data, which improves the trend representation accuracy of the model for load time series data. Description of the Drawings

[0031] Figure 1 is a flowchart of an adjustable load prediction method based on time series autoencoding and clustering algorithms proposed by the present invention; Figure 2 is a schematic diagram of load training time series of multiple categories obtained by using the K-medoids method in the embodiment of the present invention. Detailed Embodiments

[0032] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments described in this application are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the spirit of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0033] The present invention proposes an adjustable load prediction method based on time series autoencoding and clustering algorithms, as Figure 1 shown, including: Step 1, obtain the historical data of the adjustable load to form a load auxiliary training time series, and use the K-medoids method to cluster the load auxiliary training time series to determine the data categories.

[0034] Obtain all the historical data of the adjustable load, and after preprocessing and normalization, obtain the load auxiliary training time series; perform preprocessing on all the historical data of the adjustable load including: correcting outliers, filling in missing values, and normalizing the preprocessed data; In the embodiment, all historical data of the adjustable load is the active power collected by the electricity meters in an industrial park in a certain area; each load data after preprocessing and normalization forms a load auxiliary training time series in chronological order.

[0035] The K-medoids clustering algorithm abandons the mean strategy in K-means and selects the sample located at the center as the clustering center, reducing the sensitivity of K-medoids to outliers. In the embodiment, all historical data of various adjustable loads are divided into clusters through the clustering of the load auxiliary training time series.

[0036] Step 2: Based on the clustering cost function, use the elbow inflection point determination method to optimize the data categories; the clustering clusters corresponding to the optimized data categories are used as the auxiliary test data set.

[0037] The clustering cost function satisfies the following relational expression:

[0038] In the formula, is the clustering cost function when the number of clusters is , is the clustering cluster of the load auxiliary training time series determined based on the dynamic time warping method The average cumulative distance between the sample x in and the clustering center of the clustering cluster

[0039] When the first-order difference of the clustering cost function is less than the set threshold , it is determined that the elbow inflection point is reached, where the value range of the threshold is , and the preferred value in the embodiment is 5%; when the elbow inflection point is reached, the data categories reach the optimum, and the number of clusters reaches the optimum value , and the clustering clusters corresponding to the optimized data categories are all load data time series, and multiple load data time series of different categories form the auxiliary test data set.

[0040] Based on the clustering cost function, the present invention uses the elbow inflection point determination method to determine the best clustering category of the load auxiliary training time series, thereby ensuring the similarity of the load data in the same category and the overall clustering effect, and when processing time series data, it can reduce the influence of outliers on the clustering result.

[0041] Step 3: Obtain the real-time value of the adjustable load to form a load training time series, and use the K-medoids method to cluster the load training time series; aiming at minimizing the clustering cost function, match the clustering categories of the load training time series with the optimized data categories, and use the clustering clusters of the load training time series with category matching as the test data set.

[0042] Aiming at minimizing the clustering cost function, the following relationship is satisfied:

[0043] In the formula, is the clustering cost function when the number of clusters reaches the optimal value ; is the clustering center of the clustering cluster of the load training time series determined based on the dynamic time warping method and the clustering center of the clustering cluster of the load-assisted training time series The average cumulative distance.

[0044] The clustering clusters of the load training time series with category matching are all load data time series, and multiple load data time series of different categories constitute the test data set.

[0045] The present invention also matches the real-time collected adjustable load data with the clustering categories of a large amount of historical load data based on the optimal number of clusters. When the clustering cost function reaches the minimum, the matching of the real-time collected adjustable load data with the clustering categories of a large amount of historical load data is realized, which can not only ensure that the user loads of the same category have strong similarity, but also help the model better capture the time series characteristics of the data, thus facilitating the model learning and training and improving the description accuracy of the model for the load data; in addition, by optimizing the determination of the optimal number of clusters and minimizing the clustering cost function through double-layer control, the problem of limited amount of real-time collected adjustable load data is solved.

[0046] Figure 2 are the obtained load training time series of multiple categories. The load training time series of each category have the same time axis and are divided into multiple categories according to the load fluctuation range.

[0047] Step 4: Construct the encoding layer of the prediction model based on the sparse attention mechanism and the LSTM model, and construct the decoding layer of the prediction model based on the Informer model. The encoding layer and the decoding layer form the prediction model. In the encoding layer, extract the global temporal features from the auxiliary test dataset based on the sparse attention mechanism, extract the local temporal features from the test dataset based on the LSTM model, suppress the fluctuations of the global temporal features and the local temporal features based on the adaptive gating function, and determine the adaptive fusion weights according to the global temporal features and the local temporal features. In the decoding layer, perform feature learning on the global temporal features and the local temporal features after fluctuation suppression to obtain the change features of the global temporal features and the local temporal features. Based on the adaptive fusion weights, use the weighted sum of the output data of the encoding layer and the output data of the decoding layer as the adjustable load prediction value.

[0048] Specifically, Step 4 includes: Step 4.1: Construct the encoding layer of the prediction model based on the sparse attention mechanism and the LSTM model, and construct the decoding layer of the prediction model based on the Informer model. The encoding layer and the decoding layer form the prediction model. The prediction model is a temporal autoencoder with the same input and output sequence lengths for temporal reconstruction. The temporal autoencoder proposed in the present invention uses LSTM as the encoder and Informer as the decoder. Through end-to-end encoding-decoding reconstruction, it can not only adaptively align load sequences of different lengths and rates, but also capture multi-scale temporal features of load changes during the encoding stage. During the training process, the LSTM encoder is responsible for extracting short-term and long-term dependence information of the sequence, while the Informer decoder reconstructs the sequence through the global attention mechanism, naturally filtering out noise and retaining key trends, enabling subsequent clustering and prediction to be based on more representative latent vectors, significantly improving the clustering purity and prediction accuracy, and effectively accelerating the model convergence.

[0049] The sparse attention mechanism (Sparse Attention) and the LSTM model can achieve better performance in sequence tasks. Among them, the sparse attention mechanism reduces the sensitivity of the prediction model to noise, better focuses on deep temporal change features, and thus improves the model's feature capture generalization ability. The LSTM model effectively captures long-term dependence relationships in time series through the long short-term memory network; makes full use of global and local temporal features through Informer. The prediction model proposed in the present invention gives full play to the advantages of each data processing framework, better extracts deep temporal change features of the load, and improves the load prediction efficiency and accuracy.

[0050] Step 4.2: In the encoding layer, based on the sparse attention mechanism, global temporal features are extracted from the auxiliary test dataset, and local temporal features are extracted from the test dataset based on the LSTM model. Based on the adaptive gating function, the fluctuations of the global temporal features and local temporal features are suppressed. The adaptive gating function satisfies the following relationship:

[0051] In the formula, is the global or local temporal feature after fluctuation suppression at time ; is the sigmoid function, is the gating input weight matrix, is the data corresponding to time in the auxiliary test dataset or test dataset, is the gating input vector, is the fluctuation suppression weight matrix, is the global or local temporal feature at time ; is the regularization constraint value; The global and local temporal features after fluctuation suppression are the output data of the encoding layer of the prediction model.

[0052] Step 4.3: According to the global and local temporal features, the adaptive fusion weights are determined, satisfying the following relationship:

[0053] In the formula, is the adaptive fusion weight at time ; is the adjustment coefficient of the adaptive fusion weight, used to control the steepness of the change of the adaptive fusion weight, is the adjustment threshold of the adaptive fusion weight.

[0054] Step 4.4: In the decoding layer, feature learning is performed on the global and local temporal features after fluctuation suppression to obtain the change features of the global and local temporal features; The change features of the global and local temporal features are the output data of the decoding layer of the prediction model.

[0055] Step 4.5: Based on the adaptive fusion weights, the weighted sum of the output data of the encoding layer and the output data of the decoding layer of the prediction model is used as the adjustable load prediction value;

[0056] In the formula, is at time The adjustable load prediction result, is the output data of the encoding layer of the prediction model at time ; is the output data of the decoding layer of the prediction model at time ;

[0057] The prediction model proposed by the present invention can extract deep - level time - series change features in the load, thereby improving the prediction accuracy and precision of the adjustable load. In the process of design and optimization of the prediction model proposed by the present invention, the physical characteristics of the adjustable load are fully utilized. In each link such as data processing, model fusion and optimization objectives, targeted technical strategies are formulated starting from the actual characteristics such as the volatility, amplitude and mutation of the load data, so as to reflect the physical pertinence and engineering practicability of the proposed method.

[0058] Step 5: Based on the auxiliary test data set and the test data set, determine the benchmark correction items for each optimized data category; use the matching degree between the real - time value of the adjustable load and the belonging cluster center and the adaptive fusion weight, and based on the Sigmoid function, generate the correction weights of the benchmark correction items for each data category; when the root - mean - square error and the mean absolute error of the adjustable load prediction result are both the smallest, determine the regularization constraint value representing the fluctuation consistency of the adjustable load prediction value; feedback the regularization constraint value to the adaptive gating function to suppress the fluctuations of the global time - series features and the local time - series features, so as to update the output data of the encoding layer and the output data of the decoding layer, and obtain the updated adjustable load prediction value; superimpose the weighted sum of the updated adjustable load prediction value and the benchmark correction items for each optimized data category to obtain the optimized adjustable load prediction value.

[0059] Specifically, step 5 includes: Step 5.1: Based on the auxiliary test data set and the test data set, determine the benchmark correction items for each optimized data category; Specifically, calculate the residual mean value between the historical data corresponding to each optimized data category and the real - time value respectively as the benchmark correction item for each optimized data category; calculate the residual mean value between the historical prediction value and the real value for each clustering category to form a category - specific benchmark correction item. Moreover, since both the auxiliary test data set and the test data set are based on clustering implemented by the dynamic time warping algorithm, the time - series alignment can be ensured.

[0060] Step 5.2: Use the matching degree between the real - time value of the adjustable load and the belonging cluster center and the adaptive fusion weight, and based on the Sigmoid function, generate the correction weights of the benchmark correction items for each data category, satisfying the following relationship:

[0061] where, is the calibration weight of the th data category at time , is the matching degree between the real-time value of the adjustable load and the clustering center of the th data category to which it belongs, is the th data category at time benchmark correction term, is the adaptive fusion weight at time .

[0062] Step 5.3, when the root mean square error and mean absolute error of the adjustable load prediction results are both minimized, determine the regularization constraint value representing the fluctuation consistency of the adjustable load prediction value, which satisfies the following relationship:

[0063] In the formula, is the regularization constraint value, is the mean square error function, and are respectively the fluctuation change amounts of the real value of the adjustable load and its adjacent time points, and are respectively the fluctuation change amounts of the predicted value of the adjustable load and its adjacent time points, is the adjustment parameter for fluctuation consistency, used to control the sensitivity to fluctuations, ; Use the two commonly used model evaluation indicators, root mean square error (RMSE) and mean absolute error (MAE), to evaluate the description effect of the load characteristics by the prediction model proposed in the present invention; Feed the regularization constraint value back to the adaptive gating function to suppress the fluctuations of the global time series features and local time series features, so as to update the output data of the encoding layer and the output data of the decoding layer, thereby updating the adjustable load prediction value, which satisfies the following relationship:

[0064] In the formula, is the updated adjustable load prediction result at time , is the updated output data of the encoding layer of the prediction model at time , is the updated output data of the decoding layer of the prediction model at time .

[0065] Step 5.4, superimpose the updated adjustable load prediction value with the weighted sum of the optimized baseline correction terms for each data category to obtain the optimized adjustable load prediction value, which satisfies the following relationship:

[0066] In the formula, is the optimized adjustable load prediction result at time

[0067] The present invention implements residual correction based on multi-modal feature fusion, and improves the prediction accuracy by combining clustering category information and time series auto-encoding features. This method fully utilizes the classification ability of clustering analysis for load patterns and the feature representation ability of time series auto-encoding. Through dynamic residual compensation, the systematic deviation is effectively reduced. Experiments show that the prediction error can be reduced by 12.3%, significantly improving the prediction stability in the scenario of sudden load. Joint training is carried out to predict the adjustable load with the trained prediction model.

[0068] The present invention also proposes an adjustable load prediction system based on time series auto-encoding and clustering algorithm, including: A dataset construction module, which is used to obtain the historical data of the adjustable load, and obtain the auxiliary test dataset through clustering; obtain the real-time value of the adjustable load, and obtain the test dataset through clustering; A prediction module, which is used to construct the encoding layer of the prediction model based on the sparse attention mechanism and the LSTM model, and construct the decoding layer of the prediction model based on the Informer model. The encoding layer and the decoding layer constitute the prediction model; in the encoding layer, based on the sparse attention mechanism, global time series features are extracted from the auxiliary test dataset, and local time series features are extracted from the test dataset based on the LSTM model. Based on the adaptive gating function, the fluctuations of the global time series features and the local time series features are suppressed, and the adaptive fusion weight is determined according to the global time series features and the local time series features; in the decoding layer, feature learning is performed on the global time series features and the local time series features after fluctuation suppression to obtain the change features of the global time series features and the local time series features; based on the adaptive fusion weight, the weighted sum of the output data of the encoding layer and the output data of the decoding layer is used as the adjustable load prediction value.

[0069] The present disclosure may be a system, method, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.

[0070] ​A computer-readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device, such as a punched card or raised structures in grooves storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage medium used herein is not construed as being an instantaneous signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0071] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. The network adapter or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0072] Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state-setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present disclosure.

[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the specific implementation manners of the present invention can still be modified or equivalently replaced, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.

Claims

1. An adjustable load forecasting method based on time series autoencoding and clustering algorithm, characterized in that: include: Obtain historical data of adjustable loads and obtain auxiliary test data sets through clustering; obtain real-time values ​​of adjustable loads and obtain test data sets through clustering; The encoding layer is constructed based on the sparse attention mechanism and the LSTM model, and the decoding layer is constructed based on the Informer model. The encoding layer and the decoding layer constitute a prediction model. In the encoding layer, the global timing features are extracted from the auxiliary test data set based on the sparse attention mechanism, and the local timing features are extracted from the test data set based on the LSTM model. Based on the adaptive gating function, the fluctuations of the global timing features and the local timing features are suppressed, and the adaptive fusion weights are determined according to the global timing features and the local timing features. In the decoding layer, feature learning is performed on the global timing features and the local timing features after the fluctuations are suppressed to obtain the change characteristics of the global timing features and the local timing features. Based on the adaptive fusion weight, the weighted sum of the output data of the encoding layer and the output data of the decoding layer is used as the adjustable load prediction value.

2. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 1 is characterized in that: Obtain historical data of adjustable loads and obtain auxiliary test data sets through clustering, including: The historical data of adjustable load is obtained to form a load-assisted training time series. The K-medoids method is used to cluster the load-assisted training time series to determine the data category. Based on the clustering cost function, the elbow inflection point determination method is used to optimize the data category. The cluster clusters corresponding to the optimized data category are used as auxiliary test data sets.

3. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 2 is characterized in that: The clustering cost function satisfies the following relationship: In the formula, is the number of clusters The clustering cost function when Clustering of load-assisted training time series determined based on dynamic time warping method Samples x and clusters in The cluster center The average cumulative distance.

4. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 3 is characterized in that: When the first-order difference of the clustering cost function Less than the set threshold When , it is determined that the elbow inflection point has been reached, where the threshold value range is ; When the elbow inflection point is reached, the data category reaches the optimal value and the number of clusters Reach the optimal value ,The clusters corresponding to the optimized data categories are all load data time series, and multiple different categories of load data time series constitute the auxiliary test data set.

5. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 4 is characterized in that: Get the real-time value of the adjustable load and get the test data set through clustering, including: The real-time value of the adjustable load is obtained to form a load training time series, and the K-medoids method is used to cluster the load training time series. With the goal of minimizing the clustering cost function, the clustering categories of the load training time series are matched with the optimized data categories, and the clustering clusters of the load training time series with matching categories are used as test data sets.

6. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 5 is characterized in that: The goal is to minimize the clustering cost function, satisfying the following relationship: In the formula, To achieve the optimal number of clusters The clustering cost function when is the cluster center of the load training time series cluster determined based on the dynamic time warping method Cluster centers of clusters of load-assisted training time series The average cumulative distance of The clusters of the load training time series with category matching are all load data time series, and multiple load data time series of different categories constitute the test data set.

7. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 1 is characterized in that: The global time series features and local time series features after fluctuation suppression are the output data of the encoding layer of the prediction model; The change characteristics of the global time series features and the local time series features are the output data of the decoding layer of the prediction model.

8. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 7 is characterized in that: The adaptive gating function satisfies the following relationship: In the formula, For at the moment The global and local time series characteristics after fluctuation suppression, is the sigmoid function, is the gating input weight matrix, The auxiliary test data set or the test data set concentration moment The corresponding data, is the gate input vector, is the volatility suppression weight matrix, For at the moment The global and local timing characteristics of is the regularization constraint value.

9. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 8 is characterized in that: The adaptive fusion weight satisfies the following relationship: In the formula, For at the moment The adaptive fusion weights, is the adjustment coefficient of the adaptive fusion weight, which is used to control the steepness of the adaptive fusion weight change. is the adjustment threshold of the adaptive fusion weight.

10. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 9 is characterized in that: The adjustable load prediction result satisfies the following relationship: In the formula, For at the moment The adjustable load forecast results are: is the encoding layer of the prediction model at time The output data, is the decoding layer of the prediction model at time Output data.

11. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 5, characterized in that: Also includes: Determine optimized benchmark correction items for each data category based on the auxiliary test data set and the test data set; The correction weights of the benchmark correction items of each data category are generated based on the Sigmoid function by utilizing the matching degree between the real-time value of the adjustable load and the corresponding cluster center and the adaptive fusion weight. When the root mean square error and the mean absolute error of the adjustable load prediction result are both minimized, the regularization constraint value characterizing the fluctuation consistency of the adjustable load prediction value is determined. The regularization constraint value is fed back to the adaptive gating function to suppress the fluctuation of the global timing characteristics and the local timing characteristics so as to update the output data of the encoding layer and the output data of the decoding layer to obtain the updated adjustable load prediction value. The updated adjustable load prediction value is superimposed with the weighted sum of the optimized benchmark correction items of each data category to obtain the optimized adjustable load prediction value.

12. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 11, characterized in that: The correction weights of the benchmark correction items for each data category satisfy the following relationship: In the formula, For the Data categories at time The correction weight of The real-time value of the adjustable load and the The matching degree of the cluster centers of the data categories, For the Data categories at time The reference correction term, For at the moment Adaptive fusion weights.

13. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 11, characterized in that: The regularization constraint value satisfies the following relationship: In the formula, is the regularization constraint value, is the mean square error function, and are the real value of the adjustable load and its fluctuation variation at adjacent time points, and are the adjustable load forecast value and its fluctuation variation at adjacent time points, is the adjustment parameter of fluctuation consistency, which is used to control the sensitivity to fluctuations. .

14. The adjustable load forecasting method based on time series autoencoding and clustering algorithm according to claim 12, characterized in that: The optimized adjustable load forecast value satisfies the following relationship: In the formula, For at the moment The optimized adjustable load forecasting result is For at the moment The updated adjustable load forecast results, is the optimal value for the number of clusters.

15. An adjustable load forecasting system based on time series autoencoding and clustering algorithm, characterized in that: include: The data set construction module is used to obtain the historical data of the adjustable load and obtain the auxiliary test data set through clustering; obtain the real-time value of the adjustable load and obtain the test data set through clustering; The prediction module is used to construct the encoding layer of the prediction model based on the sparse attention mechanism and the LSTM model, and to construct the decoding layer of the prediction model based on the Informer model. The encoding layer and the decoding layer constitute the prediction model. In the encoding layer, the global time series features are extracted from the auxiliary test data set based on the sparse attention mechanism, and the local time series features are extracted from the test data set based on the LSTM model. Based on the adaptive gating function, the fluctuations of the global time series features and the local time series features are suppressed, and the adaptive fusion weights are determined according to the global time series features and the local time series features. In the decoding layer, feature learning is performed on the global time series features and the local time series features after the fluctuations are suppressed to obtain the change characteristics of the global time series features and the local time series features. Based on the adaptive fusion weight, the weighted sum of the output data of the encoding layer and the output data of the decoding layer is used as the adjustable load prediction value.

16. The adjustable load forecasting system based on time series autoencoding and clustering algorithm according to claim 15, characterized in that: The dataset building blocks include: The auxiliary test data set construction unit is used to obtain all the historical data of the adjustable load to form a load-assisted training time series, and cluster the load-assisted training time series using the K-medoids method to determine the data category; based on the clustering cost function, the elbow inflection point determination method is used to optimize the data category; the cluster clusters corresponding to the optimized data category are used as the auxiliary test data set; The test data set construction unit is used to obtain the real-time value of the adjustable load to form a load training time series, and the K-medoids method is used to cluster the load training time series; with the minimum clustering cost function as the goal, the clustering category of the load training time series is matched with the optimized data category, and the clustering cluster of the load training time series with matching categories is used as the test data set.

17. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 14.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

Citation Information

Patent Citations

  • Network operation index prediction method and system based on Transform time sequence prediction model

    CN118158116A

  • Short-term load prediction method and system based on ARIMA and CNN-LSTM combined model

    CN118644096A

  • Adjustable electrical load characteristic analysis and prediction method and system based on machine learning

    CN119886542A

  • KR20200109196A