CN117743829A - Short-term power load quantity prediction method based on deep learning - Google Patents

Short-term power load quantity prediction method based on deep learning Download PDF

Info

Publication number
CN117743829A
CN117743829A CN202311831821.5A CN202311831821A CN117743829A CN 117743829 A CN117743829 A CN 117743829A CN 202311831821 A CN202311831821 A CN 202311831821A CN 117743829 A CN117743829 A CN 117743829A
Authority
CN
China
Prior art keywords
prediction
power load
decomposition
short
term power
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
Application number
CN202311831821.5A
Other languages
Chinese (zh)
Inventor
赵建文
荣光伟
刘子明
张丽华
周鹏飞
孙丰刚
�谷洋
张虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningyang Power Supply Co Of State Grid Shandong Electric Power Co
State Grid Corp of China SGCC
Shandong Agricultural University
TaiAn Power Supply Co of State Grid Shandong Electric Power Co Ltd
Original Assignee
Ningyang Power Supply Co Of State Grid Shandong Electric Power Co
State Grid Corp of China SGCC
Shandong Agricultural University
TaiAn Power Supply Co of State Grid Shandong Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ningyang Power Supply Co Of State Grid Shandong Electric Power Co, State Grid Corp of China SGCC, Shandong Agricultural University, TaiAn Power Supply Co of State Grid Shandong Electric Power Co Ltd filed Critical Ningyang Power Supply Co Of State Grid Shandong Electric Power Co
Priority to CN202311831821.5A priority Critical patent/CN117743829A/en
Publication of CN117743829A publication Critical patent/CN117743829A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a short-term power load quantity prediction method based on deep learning, which comprises the following implementation steps: (1) performing empirical mode decomposition on load data; (2) sub-sequence classification; (3) high frequency component re-decomposition and parameter optimization; (4) modeling; (5) Compared with the traditional short-term power load prediction method, the method can convert the non-stable and nonlinear original time sequence into a plurality of subsequences and reconstruct the subsequences by introducing modal decomposition, thereby solving the problems of large short-term power load fluctuation and difficult accurate prediction; the high-frequency component is subjected to secondary decomposition, so that the obvious characteristic of time sequence data can be effectively extracted, and the subsequence obtained by secondary decomposition and the subsequence without secondary decomposition are used as model input characteristics, so that the prediction accuracy is effectively improved; the problem of selecting key parameters of LSTM network and VMD decomposition is solved by using SSA to optimize, and the problems of time consumption and poor prediction effect of manual parameter adjustment are solved.

Description

一种基于深度学习的短期电力负荷量预测方法A short-term power load forecasting method based on deep learning

技术领域Technical field

本发明涉及电力负荷预测技术领域,特别是涉及一种基于深度学习的电力负荷量预测方法。The present invention relates to the technical field of power load forecasting, and in particular to a power load forecasting method based on deep learning.

背景技术Background technique

电力系统负荷预测是根据电力负荷、经济、社会、气象等历史数据去探索电力负荷历史数据变化规律对未来负荷的影响,寻求电力负荷与各种相关因素之间的内在联系,对未来电力负荷进行科学预测。电力负荷预测不准确可能会引发电力系统故障导致大规模停电,影响社会正常生产和生活。因此,准确的负荷预测建模对保证电力系统安全、稳定运行具有重要意义。Power system load forecasting is to explore the impact of historical changes in power load on future load based on historical data such as power load, economy, society, and meteorology, to seek the intrinsic relationship between power load and various related factors, and to predict future power load. Scientific prediction. Inaccurate power load forecasting may cause power system failures and lead to large-scale power outages, affecting normal production and life of society. Therefore, accurate load forecast modeling is of great significance to ensure the safe and stable operation of the power system.

传统负荷预测模型缺乏适应和预测能力、鲁棒性较差,预测结果不准确,其精度难以满足负荷预测的要求。Traditional load forecasting models lack adaptability and prediction capabilities, have poor robustness, and have inaccurate prediction results, and their accuracy cannot meet the requirements of load forecasting.

发明内容Contents of the invention

本发明所要解决的技术问题是针对电力负荷预测精度问题,提供一种结合模态分解技术和深度学习的电力负荷预测方法,兼顾模型训练时间和预测精度,实现高精度的电力负荷短期预测,为电力负荷精准调控提供一定技术参考。为了实现上述发明目的,本发明所采取的技术方案为:The technical problem to be solved by this invention is to provide a power load prediction method that combines modal decomposition technology and deep learning to achieve high-precision short-term power load prediction by taking into account both model training time and prediction accuracy. Accurate regulation of electric power load provides certain technical reference. In order to achieve the above-mentioned object of the invention, the technical solutions adopted by the present invention are:

一种基于深度学习的电力负荷预测方法,它包括以下实现步骤:An electric power load forecasting method based on deep learning, which includes the following implementation steps:

(1)对负荷数据进行经验模态分解;(2)子序列分类;(3)高频分量再分解和参数优化;(4)模型搭建;(5)结果预测,具体为:(1) Empirical mode decomposition of load data; (2) Subsequence classification; (3) High-frequency component re-decomposition and parameter optimization; (4) Model construction; (5) Result prediction, specifically:

步骤1:采用经验模态分解将原始负荷数据进行分解,得到n个本征模态函数IMFi(i=1,2,..,n)以及残差量。Step 1: Use empirical mode decomposition to decompose the original load data to obtain n intrinsic mode functions IMF i (i=1, 2,...,n) and residual amounts.

具体方法是:The specific method is:

1)对原始信号利用三次样条进行插值,寻找其上、下包络线Xmax(t)和Xmin(t),并计算平均包络线为 1) Use cubic splines to interpolate the original signal, find its upper and lower envelopes X max (t) and X min (t), and calculate the average envelope as

2)原序列信号与包络均值mj-1(t)相减,X(t)-mj-1(t)=hj(t),得到hj(t)。该处的hj(t)为残差剩余信号。2) Subtract the original sequence signal from the envelope mean m j-1 (t), X(t)-m j-1 (t)=h j (t), and obtain h j (t). h j (t) here is the residual signal.

3)为得到较平滑序列,对上述步骤重复操作,将剩余分量进行分解直至满足终止条件。3) In order to obtain a smoother sequence, repeat the above steps and decompose the remaining components until the termination condition is met.

步骤2:对子序列进行样本熵计算并分类。Step 2: Calculate the sample entropy of the subsequence and classify it.

对经验模态分解后所得的各IMF分量按照频率从高到低排列。利用样本熵函数计算本征模态函数IMFi(i=1,2,..,n)及残差量residual的样本熵,评估模态分量复杂性;利用K均值聚类算法将其分成三类,形成高中低频分量。The IMF components obtained after empirical mode decomposition are arranged from high to low in frequency. Use the sample entropy function to calculate the sample entropy of the intrinsic modal function IMF i (i=1,2,..,n) and the residual quantity residual, and evaluate the modal component complexity; use the K-means clustering algorithm to divide it into three category, forming high, middle and low frequency components.

步骤3:对高频分量采用变分模态VMD算法进行再分解,得到一系列模态分量。Step 3: Use the variational modal VMD algorithm to re-decompose the high-frequency components to obtain a series of modal components.

VMD分解本质上为求解变分问题,可建立如下优化问题进行解决:VMD decomposition is essentially a variational problem that can be solved by establishing the following optimization problem:

其中,α为惩罚因子;λ为拉格朗日乘法算子,uk为第k个模态函数分量;wk为第k个模态函数的中心频率;δ(t)为狄拉克函数,||·||表示范数,f(t)表示原始信号,*表示卷积算子。Among them, α is the penalty factor; λ is the Lagrangian multiplier operator, u k is the k-th modal function component; w k is the center frequency of the k-th modal function; δ (t) is the Dirac function, ||·|| represents the norm, f(t) represents the original signal, and * represents the convolution operator.

步骤4:对每个子序列建立相应LSTM模型进行训练预测,其中以麻雀搜索优化算法辅助模型参数选择;Step 4: Establish a corresponding LSTM model for each subsequence for training and prediction, in which the Sparrow search optimization algorithm is used to assist in model parameter selection;

步骤为:首先,随机生成一组超参数进行LSTM模型训练。然后,通过评估LSTM模型在验证集上的性能确定每组超参数的适应度。根据适应度评估结果对麻雀搜索算法中的所有麻雀进行排序,将适应度较高的麻雀排在前面。根据排序结果选择麻雀进行交配和突变操作,以生成新的超参数组合。不断重复操作直到算法收敛,即找到最优的超参数组合。将麻雀搜索优化算法所得参数送入LSTM完成模型训练。The steps are: first, randomly generate a set of hyperparameters for LSTM model training. Then, the fitness of each set of hyperparameters is determined by evaluating the performance of the LSTM model on the validation set. All sparrows in the sparrow search algorithm are sorted according to the fitness evaluation results, and the sparrows with higher fitness are ranked first. Sparrows are selected for mating and mutation operations based on the ranking results to generate new hyperparameter combinations. The operation is repeated until the algorithm converges, that is, the optimal hyperparameter combination is found. The parameters obtained by the Sparrow search optimization algorithm are sent to LSTM to complete model training.

步骤5:模型预测及评估。Step 5: Model prediction and evaluation.

将每个LSTM预测模型所得预测值进行反归一化处理,再进行聚合操作得到最终的实际预测值。引入均方根误差(RMSE)、平均绝对误差(MAE)、确定系数(R2)指标来检验模型的预测效果。The predicted values obtained by each LSTM prediction model are denormalized, and then the aggregation operation is performed to obtain the final actual predicted value. The root mean square error (RMSE), mean absolute error (MAE), and coefficient of determination (R 2 ) indicators are introduced to test the prediction effect of the model.

本发明的有益效果为:The beneficial effects of the present invention are:

本发明通过引入模态分解,可将非平稳、非线性原始时间序列转化为若干子序列并重构,解决了短期电力负荷波动大、难以准确预测问题;通过对高频分量进行二次分解,可以有效地提取时序数据显著特征,将二次分解得到的子序列和未二次分解的子序列作为模型输入特征,有效提高了预测精度;利用SSA优化LSTM网络、VMD分解的关键参数选取问题,解决人工参数调整耗时和预测效果差的问题。By introducing modal decomposition, the present invention can convert non-stationary and non-linear original time series into several sub-sequences and reconstruct them, solving the problem of large short-term power load fluctuations and difficulty in accurate prediction; by performing secondary decomposition of high-frequency components, It can effectively extract the significant features of time series data, and use the subsequences obtained by secondary decomposition and subsequences without secondary decomposition as model input features, which effectively improves the prediction accuracy; SSA is used to optimize the key parameter selection of LSTM network and VMD decomposition. Solve the problems of time-consuming manual parameter adjustment and poor prediction effect.

附图说明Description of drawings

图1为:本发明方法的流程图;Figure 1 is: a flow chart of the method of the present invention;

图2为:本发明方法步骤2中对分解所得子序列分类重构示意图;Figure 2 is a schematic diagram of classification and reconstruction of subsequences obtained by decomposition in step 2 of the method of the present invention;

图3为:本发明方法中对高频分量采用VMD再分解所得子序列示意图;Figure 3 is a schematic diagram of the subsequence obtained by using VMD to decompose high-frequency components in the method of the present invention;

图4为:本发明方法所预测的结果与真实值示意图;Figure 4 is a schematic diagram of the results predicted by the method of the present invention and the true values;

具体实施方式Detailed ways

下面结合附图对本发明作进一步的说明:本发明方法的流程图如图1所示,该方法的具体实现过程如下:The present invention will be further described below in conjunction with the accompanying drawings: the flow chart of the method of the present invention is shown in Figure 1, and the specific implementation process of the method is as follows:

步骤1:采用经验模态分解(EMD,Empirical Model Decomposition)对原始电力负荷数据进行分解,得到若干本征模态函数IMF以及残差量residual。具体方法是:Step 1: Use empirical mode decomposition (EMD, Empirical Model Decomposition) to decompose the original power load data to obtain several intrinsic mode functions IMF and residual amounts. The specific method is:

1)对原始信号利用三次样条进行插值,寻找其上、下包络线Xmax(t)和Xmin(t),并计算平均包络线为 1) Use cubic splines to interpolate the original signal, find its upper and lower envelopes X max (t) and X min (t), and calculate the average envelope as

2)原序列信号与包络均值mj-1(t)相减,X(t)-mj-1(t)=hj(t),得到hj(t)。2) Subtract the original sequence signal from the envelope mean m j-1 (t), X(t)-m j-1 (t)=h j (t), and obtain h j (t).

3)为得到较平滑序列,对上述步骤重复操作,将剩余分量进行分解直至满足终止条件。3) In order to obtain a smoother sequence, repeat the above steps and decompose the remaining components until the termination condition is met.

步骤2:对经验模态分解后所得的各IMF分量按照频率从高到低排列。计算所有模态分量的样本熵,使用K均值聚类算法进行分类,对同一类的模态分量进行重构以形成高中低频三类重构分量,如图2所示。Step 2: Arrange the IMF components obtained after empirical mode decomposition from high to low in frequency. Calculate the sample entropy of all modal components, use the K-means clustering algorithm for classification, and reconstruct the modal components of the same class to form three types of reconstructed components of high, medium and low frequency, as shown in Figure 2.

样本熵计算方法:Sample entropy calculation method:

1)若原始信号是长度为N的序列,分别为x(1),x(2),x(3)…x(N),按照顺序取其长度为m的样本,其中第i个样本可以表示为X(i)=[x(i),x(i+1),L x(i+m-1)],i=1~N-m-1。1) If the original signal is a sequence of length N, respectively x(1), x(2), x(3)...x(N), take samples of length m in order, of which the i-th sample can be Expressed as X(i)=[x(i),x(i+1),L x(i+m-1)], i=1~N-m-1.

2)计算样本X(i)与X(j)之间的距离d[X(i),X(j)],定义为对应元素差值的最大值,即符号||表示绝对值运算;2) Calculate the distance d[X(i),X(j)] between samples X(i) and X(j), which is defined as the maximum value of the corresponding element difference, that is The symbol || represents absolute value operation;

3)给定阈值r,统计距离小于阈值r的个数以并将其与N-m进行比值,记作 3) Given a threshold r, count the number of distances smaller than the threshold r and compare it with Nm, denoted as

4)求解出该序列的样本熵:4) Solve the sample entropy of the sequence:

接着针对求解出的序列样本熵,利用KMeans将给定的数据集划分成K个簇(在本发明中K设定为3),并给出每个样本数据对应的中心点。Then, based on the calculated sequence sample entropy, KMeans is used to divide the given data set into K clusters (K is set to 3 in the present invention), and the center point corresponding to each sample data is given.

步骤3:对重构后高频分量采用VMD算法进行再分解,以麻雀搜索算法辅助参数优化,如分解个数、惩罚因子。具体方法为:Step 3: Use the VMD algorithm to re-decompose the reconstructed high-frequency components, and use the Sparrow search algorithm to assist parameter optimization, such as the number of decompositions and penalty factors. The specific methods are:

VMD分解本质上为求解变分问题,可建立如下优化问题进行解决:VMD decomposition is essentially a variational problem that can be solved by establishing the following optimization problem:

其中,α为二次惩罚因子;λ为拉格朗日乘法算子,uk为第k个模态函数分量;wk为第k个模态函数的中心频率;αt为狄拉克函数。Among them, α is the quadratic penalty factor; λ is the Lagrange multiplier operator, u k is the k-th modal function component; w k is the center frequency of the k-th modal function; α t is the Dirac function.

对上述进行求解,得到更新公式为Solve the above and get the updated formula as

其中n表示迭代次数。其中分别表示/>f(t)、u(t)和λ(t)的傅里叶变换。更新过程终止条件为:/>其中,τ为噪声容限,ε>0为收敛门限。where n represents the number of iterations. in Respectively expressed/> Fourier transform of f(t), u(t) and λ(t). The update process termination condition is:/> Among them, τ is the noise tolerance, and ε>0 is the convergence threshold.

步骤4:对每个子序列建立相应LSTM模型进行训练预测,其中以麻雀搜索优化算法辅助模型参数选择:Step 4: Establish a corresponding LSTM model for each subsequence for training and prediction, in which the Sparrow search optimization algorithm is used to assist in model parameter selection:

步骤为:首先,随机生成一组超参数进行LSTM模型训练。然后,通过评估LSTM模型在验证集上的性能确定每组超参数的适应度。根据适应度评估结果对麻雀搜索算法中的所有麻雀进行排序,将适应度较高的麻雀排在前面。根据排序结果选择麻雀进行交配和突变操作,以生成新的超参数组合。不断重复操作直到算法收敛,即找到最优的超参数组合。将麻雀搜索优化算法所得参数送入LSTM完成模型训练。The steps are: first, randomly generate a set of hyperparameters for LSTM model training. Then, the fitness of each set of hyperparameters is determined by evaluating the performance of the LSTM model on the validation set. All sparrows in the sparrow search algorithm are sorted according to the fitness evaluation results, and the sparrows with higher fitness are ranked first. Sparrows are selected for mating and mutation operations based on the ranking results to generate new hyperparameter combinations. The operation is repeated until the algorithm converges, that is, the optimal hyperparameter combination is found. The parameters obtained by the Sparrow search optimization algorithm are sent to LSTM to complete model training.

步骤5:模型预测及评估。Step 5: Model prediction and evaluation.

将每个LSTM预测模型所得预测值进行反归一化处理,再进行聚合操作得到最终的实际预测值。引入均方根误差(RMSE)、平均绝对误差(MAE)、确定系数(R2)指标来检验模型的预测效果。The predicted values obtained by each LSTM prediction model are denormalized, and then the aggregation operation is performed to obtain the final actual predicted value. The root mean square error (RMSE), mean absolute error (MAE), and coefficient of determination (R 2 ) indicators are introduced to test the prediction effect of the model.

均方根误差反映预测值的离散性和模型误差的大小。The root mean square error reflects the discreteness of the predicted values and the size of the model error.

平均绝对误差是绝对误差的平均值,能更好地反映预测值误差的实际情况。The mean absolute error is the average of the absolute errors, which can better reflect the actual situation of the predicted value error.

拟合优度可以反映自变量对因变量的解释程度,其值越大表示拟合优度越好。The goodness of fit can reflect the degree to which the independent variable explains the dependent variable. The larger the value, the better the goodness of fit.

图4为本发明方法所预测的结果与真实值示意图。其中预测结果(部分)如表1所示:Figure 4 is a schematic diagram of the results predicted by the method of the present invention and the actual values. The prediction results (part) are shown in Table 1:

表1预测结果于真实值Table 1 Prediction results versus true values

时间time 实际负荷量kWhActual load kWh 预测负荷量kWhForecast load kWh 22:3022:30 2269.7292269.729 2209.4072209.407 22:4522:45 2203.3062203.306 2116.7522116.752 23:0023:00 2385.5682385.568 2393.7352393.735 23:1523:15 1945.7621945.762 1975.9201975.920 23:3023:30 1753.1811753.181 1724.8831724.883

表2为本发明方法与对照模型所预测结果的评价指标对照表。如下:Table 2 is a comparison table of evaluation indicators for the predicted results of the method of the present invention and the comparison model. as follows:

表2评价指标表Table 2 Evaluation index table

模型Model 本发明方法Method of the present invention EMD-LSTMEMD-LSTM VMD-LSTMVMD-LSTM R2 R 2 0.9210.921 0.6970.697 0.8330.833 RMSERMSE 128.1128.1 236.98236.98 175.79175.79 MAEMAE 83.6583.65 122.93122.93 100.43100.43

从表1和2可以看出,利用测试数据对电力负荷进行预测,本发明方法预测结果与真实结果拟合度较高,预测精度高。It can be seen from Tables 1 and 2 that when test data is used to predict power load, the prediction results of the method of the present invention have a high degree of fit with the real results, and the prediction accuracy is high.

深度学习算法可以通过数据分析挖掘其对其内在规律,从而达到构建模型进行负荷预测的目的。针对负荷数据的时序变化特征,通过分解算法将其分解为多个不同频率的模态分量,进一步降低了数据拟合难度,使数据曲线平滑且具有周期性,提高神经网络的拟合程度。The deep learning algorithm can mine its inherent laws through data analysis, so as to achieve the purpose of building a model for load forecasting. In view of the time series variation characteristics of the load data, the decomposition algorithm is used to decompose it into multiple modal components of different frequencies, which further reduces the difficulty of data fitting, makes the data curve smooth and periodic, and improves the fitting degree of the neural network.

以上所述仅是本发明的优选实施方式,应当指出,对于技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进,这些改进在不付出创造性劳动前提下也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be pointed out that those of ordinary skill in the technical field can also make several improvements without departing from the principles of the present invention. These improvements can be made without inventive efforts. The following should also be regarded as the protection scope of the present invention.

Claims (7)

1.一种基于深度学习的短期电力负荷量预测方法,其特征在于,它包括以下实现步骤:(1)对负荷数据进行经验模态分解;(2)子序列分类;(3)高频分量再分解和参数优化;(4)模型搭建;(5)结果预测。1. A short-term power load prediction method based on deep learning, characterized in that it includes the following implementation steps: (1) Empirical mode decomposition of load data; (2) Subsequence classification; (3) High-frequency components Re-decomposition and parameter optimization; (4) model construction; (5) result prediction. 2.根据权利要求1所述的基于深度学习的短期电力负荷量预测方法,其特征在于,具体方法步骤为:步骤(1):采用经验模态分解将原始负荷数据进行分解,得到n个本征模态函数IMFi(i=1,2,..,n)以及残差量;2. The short-term power load prediction method based on deep learning according to claim 1, characterized in that the specific method steps are: Step (1): Use empirical mode decomposition to decompose the original load data to obtain n original load data. Eigenmode function IMF i (i=1,2,..,n) and residual amount; 步骤(2):对子序列进行样本熵计算并分类;Step (2): Calculate the sample entropy of the subsequence and classify it; 对经验模态分解后所得的各IMF分量按照频率从高到低排列;利用样本熵函数计算本征模态函数IMFi(i=1,2,..,n)及残差量residual的样本熵,评估模态分量复杂性;利用K均值聚类算法将其分成三类,形成高中低频分量;Arrange the IMF components obtained after empirical mode decomposition from high to low frequency; use the sample entropy function to calculate the samples of the intrinsic mode function IMF i (i=1,2,..,n) and the residual amount residual Entropy, evaluates the complexity of modal components; uses K-means clustering algorithm to divide them into three categories to form high, medium and low frequency components; 步骤(3):对高频分量采用变分模态VMD算法进行再分解,得到一系列模态分量;Step (3): Use the variational modal VMD algorithm to re-decompose the high-frequency components to obtain a series of modal components; 步骤(4):对每个子序列建立相应LSTM模型进行训练预测,其中以麻雀搜索优化算法辅助模型参数选择;Step (4): Establish a corresponding LSTM model for each subsequence for training and prediction, in which the Sparrow search optimization algorithm is used to assist in model parameter selection; 步骤(5):模型预测及评估:将每个LSTM预测模型所得预测值进行反归一化处理,再进行聚合操作得到最终的实际预测值,引入均方根误差(RMSE)、平均绝对误差(MAE)、确定系数(R2)指标来检验模型的预测效果。Step (5): Model prediction and evaluation: denormalize the prediction values obtained by each LSTM prediction model, and then perform an aggregation operation to obtain the final actual prediction value. Introduce the root mean square error (RMSE), mean absolute error ( MAE) and coefficient of determination (R 2 ) indicators to test the prediction effect of the model. 3.根据权利要求2所述的基于深度学习的短期电力负荷量预测方法,其特征在于,步骤(1)的具体方法是:3. The short-term power load prediction method based on deep learning according to claim 2, characterized in that the specific method of step (1) is: 1)对原始信号利用三次样条进行插值,寻找其上、下包络线Xmax(t)和Xmin(t),并计算平均包络线为 1) Use cubic splines to interpolate the original signal, find its upper and lower envelopes X max (t) and X min (t), and calculate the average envelope as 2)原序列信号与包络均值mj-1(t)相减,X(t)-mj-1(t)=hj(t),得到hj(t)。该处的hj(t)为残差剩余信号;2) Subtract the original sequence signal from the envelope mean m j-1 (t), X(t)-m j-1 (t)=h j (t), and obtain h j (t). h j (t) here is the residual signal; 3)为得到较平滑序列,对上述步骤重复操作,将剩余分量进行分解直至满足终止条件。3) In order to obtain a smoother sequence, repeat the above steps and decompose the remaining components until the termination condition is met. 4.根据权利要求2所述的基于深度学习的短期电力负荷量预测方法,其特征在于,步骤(3)的具体方法是:4. The short-term power load prediction method based on deep learning according to claim 2, characterized in that the specific method of step (3) is: 样本熵计算方法:Sample entropy calculation method: 1)若原始信号是长度为N的序列,分别为x(1),x(2),x(3)…x(N),按照顺序取其长度为m的样本,其中第i个样本可以表示为X(i)=[x(i),x(i+1),L x(i+m-1)],i=1~N-m-1;1) If the original signal is a sequence of length N, respectively x(1), x(2), x(3)...x(N), take samples of length m in order, of which the i-th sample can be Expressed as X(i)=[x(i),x(i+1),L x(i+m-1)], i=1~N-m-1; 2)计算样本X(i)与X(j)之间的距离d[X(i),X(j)],定义为对应元素差值的最大值,即符号||表示绝对值运算;2) Calculate the distance d[X(i),X(j)] between samples X(i) and X(j), which is defined as the maximum value of the corresponding element difference, that is The symbol || represents absolute value operation; 3)给定阈值r,统计距离小于阈值r的个数以并将其与N-m进行比值,记作 3) Given a threshold r, count the number of distances smaller than the threshold r and compare it with Nm, denoted as 4)求解出该序列的样本熵:4) Solve the sample entropy of the sequence: 接着针对求解出的序列样本熵,利用KMeans将给定的数据集划分成K个簇(在本发明中K设定为3),并给出每个样本数据对应的中心点。Then, based on the calculated sequence sample entropy, KMeans is used to divide the given data set into K clusters (K is set to 3 in the present invention), and the center point corresponding to each sample data is given. 5.根据权利要求2所述的基于深度学习的短期电力负荷量预测方法,其特征在于,步骤(3)的具体方法是:5. The short-term power load prediction method based on deep learning according to claim 2, characterized in that the specific method of step (3) is: VMD分解本质上为求解变分问题,可建立如下优化问题进行解决:VMD decomposition is essentially a variational problem that can be solved by establishing the following optimization problem: 其中,α为惩罚因子;λ为拉格朗日乘法算子,uk为第k个模态函数分量;wk为第k个模态函数的中心频率;δ(t)为狄拉克函数,||·||表示范数,f(t)表示原始信号,*表示卷积算子。Among them, α is the penalty factor; λ is the Lagrangian multiplier operator, u k is the k-th modal function component; w k is the center frequency of the k-th modal function; δ (t) is the Dirac function, ||·|| represents the norm, f(t) represents the original signal, and * represents the convolution operator. 6.根据权利要求2所述的基于深度学习的短期电力负荷量预测方法,其特征在于,步骤(4)的具体方法是:6. The short-term power load prediction method based on deep learning according to claim 2, characterized in that the specific method of step (4) is: 首先,随机生成一组超参数进行LSTM模型训练;然后,通过评估LSTM模型在验证集上的性能确定每组超参数的适应度;根据适应度评估结果对麻雀搜索算法中的所有麻雀进行排序,将适应度较高的麻雀排在前面;根据排序结果选择麻雀进行交配和突变操作,以生成新的超参数组合;不断重复操作直到算法收敛,即找到最优的超参数组合;将麻雀搜索优化算法所得参数送入LSTM完成模型训练。First, a set of hyperparameters are randomly generated for LSTM model training; then, the fitness of each set of hyperparameters is determined by evaluating the performance of the LSTM model on the validation set; all sparrows in the sparrow search algorithm are sorted according to the fitness evaluation results, Rank sparrows with higher fitness at the front; select sparrows for mating and mutation operations based on the ranking results to generate new hyperparameter combinations; continue to repeat the operation until the algorithm converges, that is, find the optimal hyperparameter combination; optimize the sparrow search The parameters obtained by the algorithm are sent to LSTM to complete model training. 7.根据权利要求2所述的基于深度学习的短期电力负荷量预测方法,其特征在于,步骤(5)中:均方根误差反映预测值的离散性和模型误差的大小:7. The short-term power load prediction method based on deep learning according to claim 2, characterized in that in step (5): the root mean square error reflects the discreteness of the predicted value and the size of the model error: 平均绝对误差是绝对误差的平均值,能更好地反映预测值误差的实际情况:The mean absolute error is the average of the absolute errors, which can better reflect the actual situation of the predicted value error: 拟合优度可以反映自变量对因变量的解释程度,其值越大表示拟合优度越好:The goodness of fit can reflect the degree to which the independent variable explains the dependent variable. The larger the value, the better the goodness of fit:
CN202311831821.5A 2023-12-28 2023-12-28 Short-term power load quantity prediction method based on deep learning Pending CN117743829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311831821.5A CN117743829A (en) 2023-12-28 2023-12-28 Short-term power load quantity prediction method based on deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311831821.5A CN117743829A (en) 2023-12-28 2023-12-28 Short-term power load quantity prediction method based on deep learning

Publications (1)

Publication Number Publication Date
CN117743829A true CN117743829A (en) 2024-03-22

Family

ID=90283131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311831821.5A Pending CN117743829A (en) 2023-12-28 2023-12-28 Short-term power load quantity prediction method based on deep learning

Country Status (1)

Country Link
CN (1) CN117743829A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118014166A (en) * 2024-04-09 2024-05-10 陕西德联新能源有限公司 Load prediction method and system of heating system based on big data
CN118536638A (en) * 2024-04-08 2024-08-23 华能国际电力股份有限公司井冈山电厂 Electric power optimization method and system based on intelligent data processing analysis and digital twin
CN119275835A (en) * 2024-12-06 2025-01-07 国网江西省电力有限公司电力科学研究院 A forecasting and evaluation method for short-term power load

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118536638A (en) * 2024-04-08 2024-08-23 华能国际电力股份有限公司井冈山电厂 Electric power optimization method and system based on intelligent data processing analysis and digital twin
CN118014166A (en) * 2024-04-09 2024-05-10 陕西德联新能源有限公司 Load prediction method and system of heating system based on big data
CN119275835A (en) * 2024-12-06 2025-01-07 国网江西省电力有限公司电力科学研究院 A forecasting and evaluation method for short-term power load

Similar Documents

Publication Publication Date Title
CN111860982B (en) VMD-FCM-GRU-based wind power plant short-term wind power prediction method
CN117743829A (en) Short-term power load quantity prediction method based on deep learning
CN114678080B (en) Converter end point phosphorus content prediction model, construction method and phosphorus content prediction method
CN112434848B (en) Nonlinear weighted combination wind power prediction method based on deep belief network
CN107730044A (en) A kind of hybrid forecasting method of renewable energy power generation and load
CN109523084A (en) A kind of ultrashort-term wind power prediction method based on pivot analysis and machine learning
CN110598854A (en) GRU model-based transformer area line loss rate prediction method
CN109583635B (en) Short-term load prediction modeling method for operational reliability
CN117592593A (en) Short-term power load prediction method based on improved quadratic modal decomposition and WOA optimization BILSTM-intent
CN113836823A (en) Load combination prediction method based on load decomposition and optimized bidirectional long-short term memory network
Wang et al. Prediction method of wind farm power generation capacity based on feature clustering and correlation analysis
CN107798426A (en) Wind power interval Forecasting Methodology based on Atomic Decomposition and interactive fuzzy satisfying method
CN111931983B (en) Precipitation prediction method and system
CN114548586B (en) Short-term power load prediction method and system based on hybrid model
CN115905857A (en) Non-invasive load decomposition method based on mathematical morphology and improved Transformer
CN113962145B (en) A quantitative modeling method for parameter uncertainty under interval data sample conditions
CN111832839B (en) Energy consumption prediction method based on sufficient incremental learning
CN112990603A (en) Air conditioner cold load prediction method and system considering data characteristics after frequency domain decomposition
CN113409072A (en) Empirical mode decomposition and distributed GRU neural network and price prediction method
CN116960978A (en) Offshore wind power power prediction method based on wind speed-power combination decomposition and reconstruction
CN110362911A (en) A kind of agent model selection method of Design-Oriented process
CN113033898A (en) Electrical load prediction method and system based on K-means clustering and BI-LSTM neural network
CN116862291A (en) A method for constructing an enterprise electricity carbon monitoring model
CN115630740A (en) A multi-model integrated distributed photovoltaic output short-term forecasting method and system
Wang et al. Multi‐harmonic sources location based on sparse component analysis and complex independent component analysis

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