CN117592593A - Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent - Google Patents
Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent Download PDFInfo
- Publication number
- CN117592593A CN117592593A CN202311366894.1A CN202311366894A CN117592593A CN 117592593 A CN117592593 A CN 117592593A CN 202311366894 A CN202311366894 A CN 202311366894A CN 117592593 A CN117592593 A CN 117592593A
- Authority
- CN
- China
- Prior art keywords
- prediction
- decomposition
- optimization
- whale
- adopting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000354 decomposition reaction Methods 0.000 title claims abstract description 70
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005457 optimization Methods 0.000 title claims abstract description 45
- 241000283153 Cetacea Species 0.000 claims abstract description 37
- 238000013528 artificial neural network Methods 0.000 claims abstract description 30
- 238000011156 evaluation Methods 0.000 claims abstract description 14
- 238000012549 training Methods 0.000 claims abstract description 12
- 230000007246 mechanism Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 8
- 230000002457 bidirectional effect Effects 0.000 claims abstract description 6
- 238000007781 pre-processing Methods 0.000 claims abstract description 4
- 230000008569 process Effects 0.000 claims description 12
- 238000001914 filtration Methods 0.000 claims description 7
- 238000010606 normalization Methods 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 6
- 239000013598 vector Substances 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000012886 linear function Methods 0.000 claims description 3
- 238000000926 separation method Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims 2
- 230000006870 function Effects 0.000 description 14
- 101001095088 Homo sapiens Melanoma antigen preferentially expressed in tumors Proteins 0.000 description 5
- 102100037020 Melanoma antigen preferentially expressed in tumors Human genes 0.000 description 5
- 230000007774 longterm Effects 0.000 description 5
- 239000002245 particle Substances 0.000 description 5
- 208000003476 primary myelofibrosis Diseases 0.000 description 5
- 230000002596 correlated effect Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 230000015654 memory Effects 0.000 description 3
- 210000002569 neuron Anatomy 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 230000000306 recurrent effect Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 230000006403 short-term memory Effects 0.000 description 2
- 238000012706 support-vector machine Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000010219 correlation analysis Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 238000004836 empirical method Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000007787 long-term memory Effects 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- KJONHKAYOJNZEC-UHFFFAOYSA-N nitrazepam Chemical compound C12=CC([N+](=O)[O-])=CC=C2NC(=O)CN=C1C1=CC=CC=C1 KJONHKAYOJNZEC-UHFFFAOYSA-N 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000002922 simulated annealing Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 238000013179 statistical model Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
- G06N3/0442—Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/0985—Hyperparameter optimisation; Meta-learning; Learning-to-learn
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for ac mains or ac distribution networks
- H02J3/003—Load forecast, e.g. methods or systems for forecasting future load demand
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Molecular Biology (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Biomedical Technology (AREA)
- Artificial Intelligence (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Public Health (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Water Supply & Treatment (AREA)
- Entrepreneurship & Innovation (AREA)
- Primary Health Care (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Power Engineering (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent, comprising: step1, preprocessing historical power load data; step2, decomposing the preprocessed data by adopting a complete set of empirical modes to obtain a plurality of subsequence components; step3, adopting variation modal decomposition to further decompose, establishing an evaluation standard, and adopting a whale optimization algorithm to perform parameter optimization on the decomposition number and penalty factors; step4, selecting the influence factor with the maximum correlation to obtain an optimal feature set; step5, constructing a bidirectional long-short-term neural network for training and predicting, defining a loss function as an objective function, and optimizing the super parameters by adopting a whale optimization algorithm; step6, predicting to obtain a final prediction result; step7, verifying the validity of the prediction model. The secondary modal decomposition can adaptively decompose into a suitable number of simple modal components; the bi-directional processing power of the BiLSTM neural network and the attention mechanism and whale optimization algorithm further improve the prediction accuracy.
Description
Technical Field
The invention relates to the technical field of power system prediction, in particular to a short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-attention.
Background
The power load prediction can be classified into ultra-short term (4 h in the future), short term (72 h in the future) and medium-long term prediction (1 month to 1 year in the future) on a time scale; the prediction mode can be classified into point prediction, interval prediction and probability prediction. Short-term load prediction is an important component of load prediction, and the commonly used prediction methods can be summarized into three main categories: traditional mathematical statistical models, machine learning and deep learning. The traditional method and the machine learning have high prediction speed, but neglect the sample time sequence relation. In recent years, deep learning has been widely used. The BP neural network counter propagates errors, the training speed is low, and the prediction accuracy is not high. The support vector machine has good learning ability, but the network generalization ability is not strong, and the prediction accuracy is not high. As a special variant of recurrent neural networks (recurrent neural network, RNN), long short-term memory neural (long short term memory, LSTM) networks are currently the most popular deep neural networks in the field of time series prediction. The hidden layer structure of RNN sequential connection is inherited, and simple hidden layer neurons are replaced by long-short-time memory units, so that the problem of long-term dependence caused by gradient explosion and gradient disappearance is solved. However, the LSTM neural network can only use information of a history time and does not consider information of a future time, so that a relationship between a front time direction and a rear time direction of load data cannot be learned. The literature provides a DA mechanism, attention mechanisms are respectively added in the stages of a decoder and an encoder to highlight the effect of important information in input and output links, and the DA mechanism is applied to the field of short-term prediction of power load, so that a bidirectional long-short-term neural network model can fully learn the coupling relation between the load and influence factors.
In order to overcome the defect of random initialization of long-term network parameters, the network weight can be optimized through an optimization algorithm, and the network stability and the prediction precision are improved. Common optimization algorithms include genetic algorithm, particle swarm optimization algorithm, simulated annealing algorithm, and the like. WOA optimization was proposed in 2016. WOA is a swarm intelligent optimization algorithm that simulates whale swarm surrounds and chases hunting. The algorithm is simple in principle, easy to program and realize, few in setting parameters, and superior to PSO in solving accuracy and convergence speed.
Because the fluctuation direct prediction of the load sequence can generate larger errors, in order to weaken the nonlinearity of the sequence and further improve the prediction precision, some technologies decompose the wind power time sequence by adopting variation modal decomposition, then predict each subsequence, finally reconstruct the prediction result of each subsequence, decompose the photovoltaic power time sequence by adopting empirical mode decomposition, and then input a support vector machine for prediction. Although the prediction accuracy is improved by the method of predicting after decomposition, the problem of spectrum aliasing exists during decomposition, and the high-frequency strong non-stationary component generated by decomposition also causes a large prediction error. The secondary decomposition processing is performed on the time series data to predict again, so that the prediction accuracy of the high-frequency component part in the primary decomposition is improved, but the number of generated subcomponents is excessive, and the time required for the respective prediction is long. The high-frequency modal component still has the problem of high entropy value, and the modal decomposition process lacks an evaluation standard for guiding parameter setting, and often depends on experience to give parameters, so that the decomposition effect is not ideal.
Disclosure of Invention
The invention aims to solve the technical problem of providing a short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-attention, and solves the problem of poor prediction precision in power load prediction based on an artificial neural network in the prior art.
In order to solve the technical problems, the invention adopts the following technical scheme:
a short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent, comprising the steps of:
step1, preprocessing historical power load data; the method comprises the steps of performing missing value filling and abnormal value clearing on original load data;
step2, decomposing the preprocessed data by adopting a complete set of empirical modes to obtain a plurality of subsequence components;
step3, further decomposing the high-frequency components in the data obtained in Step2 by adopting a variation mode decomposition, establishing an evaluation standard, and carrying out parameter optimization on the number of the decomposition and a penalty factor by adopting a whale optimization algorithm;
step4, selecting the maximum correlation influence factor by adopting the maximum information coefficient to obtain an optimal feature set;
step5, constructing a bidirectional long-short-period neural network for each component subsequence, performing training prediction, adding an attention mechanism, defining a loss function as an objective function, and optimizing super parameters by adopting a whale optimization algorithm;
step6, predicting to obtain the result of each component, and superposing to obtain a final prediction result;
step7, verifying the validity of the prediction model.
In Step3, the decomposition process of the variation mode is as follows:
the step3.1, variance problem is that the sum of the estimated bandwidths of the eigenmode components is minimum, the constraint condition is that the sum of the eigenmode components is the original signal, and the formula is as follows:
wherein: { u k -a set of eigenmode components; { w k -a set of center frequencies; delta (t) is a pulse signal; k is the preset decomposition number; f (t) is the original signal;
step3.2, using a penalty factor α and a lagrangian multiplier λ (t), where α affects the reconstruction accuracy of the signal, to convert the constrained variational problem to an unconstrained problem, where λ (t) maintains the stringency of the constraint, as follows:
step3.3, solving the unconstrained problem through an alternate direction multiplier method, thereby realizing effective separation of signal frequencies, wherein iterative updating formulas of the intrinsic mode components and the center frequency are respectively as follows:
wherein:for the (n+1) th iteration the kth eigenmode component with center frequency omega corresponds to wiener filtering of the current residual signal and is for +.>Performing inverse Fourier transform;
step3.4, propose an evaluation criterion L suitable for the field of time sequence prediction loss The formula is
Wherein: l (L) loss Is the mean absolute error of the VMD reconstructed signal and the original signal;
step3.5, evaluation criteria L loss The minimum is an objective function, and a whale optimization algorithm WOA is utilized to optimize a penalty factor and the number K of decomposition of the variation modal decomposition, wherein the whale optimization algorithm comprises the following steps: according to the hunting characteristics of whales, the hunting object is first surrounded, and the position is adjusted according to the hunting object position and the spiral movement, so that the optimal hunting surrounding strategy is obtained. After the whale is contracted and surrounded, the screw equation is adopted to update the next position of the whale, so that proper hunting objects are efficiently hunted:
X(t+1)=D i e bl ·cos(2πl)+X * (t)
D i =|X * (t)-X(t)| (7)
wherein D represents the distance between the current whale and its prey; x is X * (t) obtaining a position vector of an optimal solution for the time t; d (D) i Representing the distance between the ith whale and the prey when the current optimal position is obtained; b represents a logarithmic spiral shape constant, and l is a random number between-1 and 1; in the updating process, random probability optimization is adopted to control whale groups to select between shrinkage, surrounding and spiral movement, so that the searching range is enlarged to find other suitable prey, and the global searching predation capability of WOA is enhanced; and finally, screening out the current optimal solution and the global optimal solution through iterative updating.
In Step1, the interpolation method is adopted to perform the deletion filling on the input data set, and then the linear function normalization is adopted to perform the normalization processing on the input data set.
And (3) calculating the predicted result obtained in Step6 through the loss function constructed in Step5, and adjusting parameters of the predicted network obtained in Step5 based on the calculated result until the predicted network with the minimum calculated result of the loss function is obtained and used for obtaining the predicted result.
The loss functions described above include mean square error, root mean square error, mean absolute error, and mean absolute percentage error.
The invention provides a short-term power load prediction method based on improved secondary modal decomposition and WOA optimization BILSTM-attention, which utilizes a complete set of empirical mode decomposition original power load sequences with self-adaptive noise, further decomposes sequences with strong complexity by utilizing variational mode decomposition, establishes an evaluation standard for decomposition results, and optimizes super parameters in variational mode decomposition by utilizing a whale optimization algorithm; then, carrying out importance ranking on relevant factors such as weather, electricity price and the like by using the maximum information coefficient to obtain an optimal feature set; and respectively establishing a bidirectional long-short term neural network for each modal component obtained by decomposition in combination with the feature set, adding an attention mechanism and adopting a whale algorithm to optimize the super-parameters of the neural network. And finally, each component is overlapped to obtain a final prediction result, so that the prediction precision is improved.
Drawings
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
FIG. 1 is a short-term power load prediction flow;
FIG. 2 is a diagram of the CEEMDAN processing to obtain modal components;
FIG. 3 is a VMD process to obtain modal components;
FIG. 4 is a comparison of the model predictions of example 1;
FIG. 5 is a comparison of the model predictions of example 2;
Detailed Description
The technical scheme of the invention is described in detail below with reference to the accompanying drawings and examples.
As shown in fig. 1, a short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-contribution, comprising the steps of:
step1, preprocessing historical power load data; the method comprises the steps of performing missing value filling and abnormal value clearing on original load data;
step2, decomposing the preprocessed data by adopting a complete set empirical mode to obtain a plurality of subsequence components, and decomposing by adopting a CEEMDAN time-frequency decomposition method;
the step3.1, variance problem is that the sum of the estimated bandwidths of the eigenmode components is minimum, the constraint condition is that the sum of the eigenmode components is the original signal, and the formula is as follows:
wherein: { u k -a set of eigenmode components; { w k -a set of center frequencies; delta (t) is a pulse signal; k is the preset decomposition number; f (t) is the original signal;
step3.2, using a penalty factor α and a lagrangian multiplier λ (t), where α affects the reconstruction accuracy of the signal, to convert the constrained variational problem to an unconstrained problem, where λ (t) maintains the stringency of the constraint, as follows:
step3.3, solving the unconstrained problem through an alternate direction multiplier method, thereby realizing effective separation of signal frequencies, wherein iterative updating formulas of the intrinsic mode components and the center frequency are respectively as follows:
wherein:the kth eigenmode component with the center frequency omega at the n+1th iteration is equivalent to wiener filtering of the current residual signal andand is about->Performing inverse Fourier transform;
step3.4, under ideal conditions, the reconstructed signal f' (t) is the same as the original signal f (t), and decomposition loss occurs in the actual decomposition process, the decomposition loss is derived from residual signals which do not accord with the definition of the eigen mode function, the amplitude is smaller, the fluctuation is faster, the prediction difficulty is larger, the model is often not considered, but if the decomposition loss is larger, the ignored information is more, the improvement of the prediction precision is not facilitated, and therefore, an evaluation standard L applicable to the time sequence prediction field is provided loss The formula is
Wherein: l (L) loss The mean absolute error of the VMD reconstruction signal and the original signal is smaller, which indicates that the smaller the decomposition loss is, the more information the mode contains is, and the more accurate the model is;
step3.5, evaluation criteria L loss The minimum is an objective function, and a whale optimization algorithm WOA is utilized to optimize a penalty factor and the number K of decomposition of the variation modal decomposition, wherein the whale optimization algorithm comprises the following steps: according to the hunting characteristics of whales, the hunting object is first surrounded, and the position is adjusted according to the hunting object position and the spiral movement, so that the optimal hunting surrounding strategy is obtained. After the whale is contracted and surrounded, the screw equation is adopted to update the next position of the whale, so that proper hunting objects are efficiently hunted:
X(t+1)=D i e bl ·cos(2πl)+X * (t)
D i =|X * (t)-X(t)| (7)
wherein D represents the distance between the current whale and its prey; x is X * (t) obtaining a position vector of an optimal solution for the time t; d (D) i Representing the distance between the ith whale and the prey when the current optimal position is obtained; b represents a logarithmic spiralA linear constant, i is a random number between-1 and 1; in the updating process, random probability optimization is adopted to control whale groups to select between shrinkage, surrounding and spiral movement, so that the searching range is enlarged to find other suitable prey, and the global searching predation capability of WOA is enhanced; finally, the current optimal solution and the global optimal solution are screened out through iterative updating;
step4, selecting the maximum correlation influence factor by adopting the maximum information coefficient to obtain an optimal feature set;
in the model training process, the influence of complex external conditions on the load can be reflected to a certain extent by introducing as many features as possible by the prediction model; however, features with lower correlation have limited predictive performance improvement, and too many feature set elements can lead to increased model input dimensions, so that both the complexity of the model and the training time consumption are significantly increased; in machine learning, feature screening is mainly divided into a packing method and a filtering method; the packaging method is characterized in that the characteristics are input into a prediction model for iteration, and the characteristics are selected according to a final prediction result; the filtering rule is to evaluate the feature set in advance and filter out the feature after sorting according to the evaluation result; common filtering methods such as correlation analysis, variance and selection methods are widely applied to various large fields due to the characteristics of high speed and small calculated amount;
unlike Pearson, which can only extract the correlation relationship between linear data, spearman can extract a simple monotonic nonlinear relationship, MIC effectively measures the linear or nonlinear correlation strength between two variables, and compensates the nonlinear relationship between the attributes of the weakly correlated variables while maintaining the attribute information of the strongly correlated variables;
step5, constructing a bidirectional long-short-period neural network for each component subsequence, performing training prediction, adding an attention mechanism, defining a loss function as an objective function, and optimizing super parameters by adopting a whale optimization algorithm;
the LSTM neural network replaces simple neurons in the RNN hidden layer with long-short-time memory units with long-term memory, so that the long-term dependence problem is effectively solved; the long-short-time memory unit comprises 3 parts of a forgetting gate, an input gate and an output gate, wherein the forgetting gate discards irrelevant information, the input gate determines new information stored in the unit state, and the output gate controls the output of the hidden layer node;
the LSTM neural network solves the long-term dependence problem of RNN, but cannot learn the relationship between the front and rear time directions of the load data because the information of the future time is not considered. For this reason, the bi-directional concept is introduced herein to obtain information of the whole time domain, the BiLSTM neural network is a combination of the LSTM neural network and the bi-directional RNN, the long-term dependence problem is effectively solved, and the model training can be performed by using sequence information of 2 directions in the past and in the future simultaneously; compared with RNN and LSTM neural networks, the BiLSTM neural network has stronger nonlinear expression capability, and can better process uncertainty in data;
step6, predicting to obtain the result of each component, and superposing to obtain a final prediction result;
step7, verifying the validity of the prediction model on the Australian load data set and the electrician cup load data set respectively.
In step2, CEEMDAN is a posterior, adaptive time-frequency decomposition method suitable for smoothing non-stationary sequences; unlike wavelet decomposition, which requires manual wavelet basis setting, CEEMDAN can adaptively decompose a sequence into a finite number of IMFs of different time scales, denoted CIMF; by adding white noise with opposite signs into the original signal, the problem that the white noise is introduced by the mode aliasing phenomenon and the integrated empirical mode decomposition existing in the empirical mode decomposition is solved; the multi-element load sequence is subjected to modal decomposition, so that the prediction difficulty can be reduced; taking the original electrical load as an example for analysis, the basic steps of CEEMDAN decomposition are as follows:
step2.1 adding M pairs of white noise of opposite sign to the original electrical load sequence, i.e
Wherein: g (t) is the original electrical load sequence;and->Positive and negative white noise introduced for the τ time respectively;and->The new electric load sequences after adding positive and negative white noise are respectively.
step2.2, performing modal decomposition on the 2 new electric load sequences by using empirical mode decomposition to obtain 2 groups of CIMF components.
step2.3, repeating step 2M times to obtain 2 sets of integrated CIMF components, i.e
Wherein: f (F) + And F - Respectively adding M times of positive and negative white noise and decomposing to obtain CIMF component group average values;andand respectively adding positive white noise and negative white noise for the τ time and decomposing to obtain component groups.
step2.4, take F + And F - The average value of (2) is the final electrical load sequence decomposition result. The basic formula of empirical mode decomposition is:
wherein: i η (t) is the η IMF component; a is the CIMF number after decomposition; r (t) is the residual component.
In Step1, the interpolation method is adopted to perform the deletion filling on the input data set, and then the linear function normalization is adopted to perform the normalization processing on the input data set.
And (3) calculating the predicted result obtained in Step6 through the loss function constructed in Step5, and adjusting parameters of the predicted network obtained in Step5 based on the calculated result until the predicted network with the minimum calculated result of the loss function is obtained and used for obtaining the predicted result.
The loss functions described above include mean square error, root mean square error, mean absolute error, and mean absolute percentage error.
The embodiment of the invention evaluates the prediction result through the following errors:
1.MSE
the Mean Square Error (MSE) refers to the expected value of the square of the difference between the predicted value and the actual value.
2.RMSE
Root Mean Square Error (RMSE) is the deviation between the predicted value and the actual value measured by square root processing on the basis of the MSE.
3.MAE
The Mean Absolute Error (MAE) refers to the average of the absolute errors between the predicted value and the actual value.
4.MAPE
Average absolute percent error (MAPE) refers to the result of averaging the sum of the duty cycles of the difference between the predicted value and the actual value among the actual values.
Example 1:
using multidimensional load data of 7 days from 25 days in 2006 to 31 days in 1 month in 2006 in certain region of Australia, sampling the data in units of 30min, and collecting 48 points every day; the data of the first 5 days are used as training sets, the data of the last 2 days are used as testing sets, and the testing sets are used as final model evaluation and cannot participate in the training process.
The feature vector of the data set adopted by the invention comprises 6 dimensions: the parameters of the load, the electricity price, the dew point temperature, the dry bulb temperature, the wet bulb temperature and the humidity are respectively that the parameters of 6 dimensions are every 30min
The sample was taken once and the characteristic parameters are shown in table 1.
TABLE 1 characterization parameters
Parameter setting
Hyper-parameters in neural networks are often difficult to determine, but directly affect the final prediction result. The traditional hyper-parameter value selection method is an empirical method; however, manual tuning tends to be time consuming and the results tend to be unsatisfactory. Based on feature screening, the invention adopts a whale optimization method to optimize the super parameters of the BiLSTM-At network model in the text.
The neuron optimizing range of the BiLSTM-At network is (1, 30), the iteration frequency optimizing range is (100, 200), the particle population scale is set to be 10, and the maximum iteration frequency is 100; the optimal combination of parameters is found to be (20, 135).
The key parameters of VMD modal decomposition are the decomposition number K and penalty factors, the key parameters are optimized by using a particle swarm algorithm, the decomposition number is (1, 50), the penalty factors are (1, 20000), the particle swarm size is 10, the maximum iteration number is 100, and the optimal parameter combination is found (6, 11602); the optimizing result is shown in the following table:
table 2 super parameter optimizing results
The table shows that after particle swarm super-parameter optimization, the model effect is improved by 0.14%, and the effectiveness of super-parameter optimization is verified.
Parameter optimization-based quadratic modal decomposition
The short-term load sequence has stronger nonlinearity, and the modal decomposition technology can weaken the non-stationarity of the sequence and reduce the prediction difficulty; therefore, in the first stage of the invention, the CEEMDAN technology with higher decomposition efficiency is adopted to decompose the original sequence; in order to avoid the situation of modal aliasing, simultaneously, fully decomposing the sequence, further decomposing the high-frequency component by using a VMD, and optimizing the number of the VMD decomposition and penalty factors by using WOA (WOA) by taking an error index as an objective function; thus 8 and 6 modal components of different frequency scales are obtained, as shown in fig. 2 and 3.
Feature selection based on pearson correlation coefficients
The accuracy of load prediction can be affected by excessive or redundant characteristic factors; the invention considers the method using the pearson correlation coefficient to screen the characteristic parameters first; filtering out the weakly correlated features, and taking the strongly correlated features as input, so that the final prediction accuracy of the model is improved; the pearson correlation coefficient analysis results and the feature screening results are shown in the following table:
TABLE 3 Pelson correlation coefficient analysis results
Influencing characteristics | Pearson coefficient |
Dew point temperature | 0.32 |
Dry bulb temperature | 0.75 |
Wet bulb temperature | 0.72 |
Humidity of the water | 0.18 |
Price of electricity | 0.81 |
TABLE 4 characterization screening results
Feature ordering | Feature type |
1 | Price of electricity |
2 | Dry bulb temperature |
3 | Wet bulb temperature |
As can be seen from table 2, in the 5 kinds of neural network models, the BP neural network is easily trapped in the local optimum, so that the prediction result is unstable and the error is large; the LSTM neural network has a complex network structure, the fluctuation range of the prediction result is smaller, the prediction accuracy is more accurate, and the MAPE of the model is reduced to 3.45%; the prediction accuracy of the BiLSTM neural network is highest, the prediction result is very stable, and the MAPE of the model is only 2.50%, and compared with the BP neural network and the LSTM neural network, the prediction accuracy of the BiLSTM neural network is improved by 32.15%, 27.06% and 5.54% respectively.
Notably, MAPE of BiLSTM neural network is better than WOA-BiLSTM-At, however R2 performs worse than WOA-BiLSTM-At because BiLSTM neural network has smaller average error and larger single point error, and the two-way long-short term neural network after optimization has more accurate and stable prediction result, the result is shown in FIG. 4.
Example 2:
using multidimensional load data of 2012, 1 month, 1 day, and 10 days of 2015, 1 month, and data of an electrician cup, sampling the data in units of 30 minutes, and collecting 48 points every day; the first 80% of the days are used as training sets, the last 20% of the days are used as test sets, and the test sets are used as final model evaluation and do not participate in the training process.
The dataset feature vectors employed herein contain 6 dimensions in total: the load, maximum temperature, minimum temperature, average temperature, rainfall, relative humidity, respectively.
Table 6 comparison of prediction model results
Mape | Rmse | Mae | R2 | |
BP | 1.1414 | 0.2795 | 0.2212 | 0.8776 |
LSTM | 0.8297 | 0.2099 | 0.1345 | 0.9053 |
BiLSTM | 1.0517 | 0.2557 | 0.1751 | 0.9628 |
BiLSTM-At | 0.8843 | 0.2758 | 0.2267 | 0.9912 |
WOA-BiLSTM-At | 1.2290 | 0.2858 | 0.2142 | 0.9537 |
As shown in FIG. 5, the method provided by the invention realizes the full-day prediction of the data set, the ultraviolet rays in the line graph are load prediction curves, the red lines are real load curves of the day, and as shown by the red lines, the fluctuation of the real load is more severe, and the prediction difficulty is high; as shown by ultraviolet rays, the method provided by the invention well simulates the trend of load fluctuation, realizes more accurate prediction, and has high economic value for a power grid system; compared with other methods, the load curve fitted by the method is closer to a true value; the single point accuracy of the method of the invention is higher.
In actual prediction, the fluctuation of the load sequence is large, and the improved secondary modal decomposition can adaptively decompose the complex load sequence into a proper number of simple modal components; in addition, the bi-directional processing capacity of the BiLSTM neural network, the attention mechanism and the whale optimization algorithm further improve the prediction precision; in summary, the practical application of the electrical cup data again proves the superiority of the method.
Claims (5)
1. A short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent, comprising the steps of:
step1, preprocessing historical power load data; the method comprises the steps of performing missing value filling and abnormal value clearing on original load data;
step2, decomposing the preprocessed data by adopting a complete set of empirical modes to obtain a plurality of subsequence components;
step3, further decomposing the high-frequency components in the data obtained in Step2 by adopting a variation mode decomposition, establishing an evaluation standard, and carrying out parameter optimization on the number of the decomposition and a penalty factor by adopting a whale optimization algorithm;
step4, selecting the maximum correlation influence factor by adopting the maximum information coefficient to obtain an optimal feature set;
step5, constructing a bidirectional long-short-period neural network for each component subsequence, performing training prediction, adding an attention mechanism, defining a loss function as an objective function, and optimizing super parameters by adopting a whale optimization algorithm;
step6, predicting to obtain the result of each component, and superposing to obtain a final prediction result;
step7, verifying the validity of the prediction model.
2. The short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent of claim 1, wherein in Step3, the variational modal decomposition process is as follows:
the step3.1, variance problem is that the sum of the estimated bandwidths of the eigenmode components is minimum, the constraint condition is that the sum of the eigenmode components is the original signal, and the formula is as follows:
wherein: { u k -a set of eigenmode components; { w k -a set of center frequencies; delta (t) is a pulse signal; k is the preset decomposition number; f (t) is the original signal;
step3.2, using a penalty factor α and a lagrangian multiplier λ (t), where α affects the reconstruction accuracy of the signal, to convert the constrained variational problem to an unconstrained problem, where λ (t) maintains the stringency of the constraint, as follows:
step3.3, solving the unconstrained problem through an alternate direction multiplier method, thereby realizing effective separation of signal frequencies, wherein iterative updating formulas of the intrinsic mode components and the center frequency are respectively as follows:
wherein:for the (n+1) th iteration the kth eigenmode component with center frequency omega corresponds to wiener filtering of the current residual signal and is for +.>Performing inverse Fourier transform;
step3.4, propose an evaluation criterion L suitable for the field of time sequence prediction loss The formula is
Wherein: l (L) loss Is the mean absolute error of the VMD reconstructed signal and the original signal;
step3.5, evaluation criteria L loss The minimum is an objective function, and a whale optimization algorithm WOA is utilized to optimize a penalty factor and the number K of decomposition of the variation modal decomposition, wherein the whale optimization algorithm comprises the following steps: according to the hunting characteristics of whales, the hunting object is first surrounded, and the position is adjusted according to the hunting object position and the spiral movement, so that the optimal hunting surrounding strategy is obtained. After the whale is contracted and surrounded, the screw equation is adopted to update the next position of the whale, so that proper hunting objects are efficiently hunted:
X(t+1)=D i e bl ·cos(2πl)+X * (t)
D i =|X * (t)-X(t)| (7)
wherein D represents the distance between the current whale and its prey; x is X * (t) obtaining a position vector of an optimal solution for the time t; d (D) i Representing the distance between the ith whale and the prey when the current optimal position is obtained; b represents a logarithmic spiral shape constant, and l is a random number between-1 and 1; in the updating process, random probability optimization is adopted to control whale groups to select between shrinkage, surrounding and spiral movement, so that the searching range is enlarged to find other suitable prey, and the global searching predation capability of WOA is enhanced; and finally, screening out the current optimal solution and the global optimal solution through iterative updating.
3. The short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent of claim 2, wherein in Step1, the input data set is subjected to deletion filling by adopting an interpolation method, and then is subjected to normalization processing by adopting linear function normalization.
4. The method for predicting short-term power load based on improved quadratic modal decomposition and WOA optimization BILSTM-intent of claim 3, wherein the loss function constructed in Step5 is used for calculating the prediction result obtained in Step6 through the loss function, and parameters of the prediction network obtained in Step5 are adjusted based on the calculation result until the prediction network with the minimum calculation result of the loss function is obtained for obtaining the prediction result.
5. The short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-contribution of claim 4, wherein said loss function includes mean square error, root mean square error, mean absolute error, and mean absolute percentage error.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311366894.1A CN117592593A (en) | 2023-10-20 | 2023-10-20 | Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311366894.1A CN117592593A (en) | 2023-10-20 | 2023-10-20 | Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117592593A true CN117592593A (en) | 2024-02-23 |
Family
ID=89917281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311366894.1A Pending CN117592593A (en) | 2023-10-20 | 2023-10-20 | Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117592593A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117811023A (en) * | 2024-02-28 | 2024-04-02 | 西安热工研究院有限公司 | Frequency modulation method and system for fused salt energy storage coupling thermal power generating unit |
-
2023
- 2023-10-20 CN CN202311366894.1A patent/CN117592593A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117811023A (en) * | 2024-02-28 | 2024-04-02 | 西安热工研究院有限公司 | Frequency modulation method and system for fused salt energy storage coupling thermal power generating unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108256697B (en) | Prediction method for short-term load of power system | |
CN110309603B (en) | Short-term wind speed prediction method and system based on wind speed characteristics | |
CN111860982A (en) | Wind power plant short-term wind power prediction method based on VMD-FCM-GRU | |
CN111027772B (en) | Multi-factor short-term load prediction method based on PCA-DBILSTM | |
CN110580543A (en) | Power load prediction method and system based on deep belief network | |
CN112364975A (en) | Terminal operation state prediction method and system based on graph neural network | |
CN111079989B (en) | DWT-PCA-LSTM-based water supply amount prediction device for water supply company | |
CN110443417A (en) | Multiple-model integration load forecasting method based on wavelet transformation | |
CN109992608B (en) | Multi-model fusion prediction method and system based on frequency domain | |
CN111144644B (en) | Short-term wind speed prediction method based on variation variance Gaussian process regression | |
CN109583588B (en) | Short-term wind speed prediction method and system | |
CN115293326A (en) | Training method and device of power load prediction model and power load prediction method | |
CN116596044B (en) | Power generation load prediction model training method and device based on multi-source data | |
CN112396234A (en) | User side load probability prediction method based on time domain convolutional neural network | |
CN117592593A (en) | Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent | |
CN111815065A (en) | Short-term power load prediction method based on long-term and short-term memory neural network | |
CN111178585A (en) | Fault reporting amount prediction method based on multi-algorithm model fusion | |
CN112418476A (en) | Ultra-short-term power load prediction method | |
CN111931983A (en) | Precipitation prediction method and system | |
CN112434891A (en) | Method for predicting solar irradiance time sequence based on WCNN-ALSTM | |
CN111506868B (en) | Ultra-short-term wind speed prediction method based on HHT weight optimization | |
CN113947182A (en) | Traffic flow prediction model construction method based on double-stage stack graph convolution network | |
Akut et al. | NeuroEvolution: Using genetic algorithm for optimal design of deep learning models | |
CN115759465A (en) | Wind power prediction method based on multi-target collaborative training and NWP implicit correction | |
CN116663745A (en) | LSTM drainage basin water flow prediction method based on PCA_DWT |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |