Power transmission line icing thickness prediction method based on EMD-KPCA-LSTM
Through the EMD-KPCA-LSTM method, the meteorological data features are decomposed and extracted and LSTM training is performed, which solves the problem of large data fluctuation and complexity in the prediction of ice thickness of transmission lines, and achieves higher prediction accuracy and stability.
Patent Information
- Application Number
- CN202410597357.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-30
AI Technical Summary
When predicting the ice thickness of transmission lines, the existing technology faces the problems of large data samples and large random fluctuations, resulting in low prediction accuracy, slow convergence of a single optimization algorithm, and difficulty in effectively processing complex nonlinear processes.
A method based on EMD-KPCA-LSTM is used to decompose the meteorological data into modal components of different frequencies through empirical mode decomposition (EMD), extract features using kernel principal component analysis (KPCA), and input them into the long short-term memory network ( LSTM) is trained and combined with the time series prediction model to improve prediction accuracy and generalization ability.
It effectively reduces the instability of meteorological data and model complexity, improves prediction accuracy and calculation efficiency, is suitable for complex icing prediction tasks, and provides more accurate and robust icing thickness prediction results.
Smart Images

Figure CN118568451A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of transmission line icing prediction, and in particular to a transmission line icing thickness prediction method based on EMD-KPCA-LSTM. Background Art
[0002] Transmission lines are mostly exposed to outdoor natural conditions and are therefore vulnerable to extreme weather. Among them, icing of transmission lines is the most destructive meteorological disaster. Icing disasters can cause serious losses to the power grid, damage transmission lines and towers, and even cause power outages in some areas. Due to my country's vast territory and diverse topography, most transmission lines pass through extremely cold regions. The increase in ice thickness may lead to serious accidents such as line tripping and ice shedding, which seriously threatens the stability of the power system. Therefore, the research on the prediction of icing on transmission lines has important engineering practical value and also provides necessary guidance for the de-icing and ice melting of the power grid.
[0003] At present, domestic and foreign scholars have conducted numerous studies on the prediction of equivalent ice thickness for transmission lines, mainly including physical models, mathematical statistical models and intelligent algorithm models.
[0004] (I) In terms of physical models, reference [1]: Zhang Zhijin, Zhang Yi, Jiang Xingliang, et al. Characterization of insulator icing based on equivalent collision coefficient of standard rotating conductor [J]. Transactions of the Chinese Society of Electrotechnical Engineering, 2018, 33(21): 5119-5127. In the technical solution recorded, for rotating circular conductors, in order to reduce the impact between conductors of different diameters, a model based on an improved back-calculation evolutionary algorithm was established, which is used as a physical prediction model for the equivalent icing thickness of transmission lines.
[0005] Reference [2]: Zhu Yongcan, Huang Xinbo, Jia Jianyuan, et al. Numerical analysis model of ice growth and influencing factors of transmission line [J]. Journal of Xi'an Jiaotong University, 2015, 49(07): 120-125. In the technical solution recorded, based on the thermodynamic principle, the local ice growth model of the transmission line is established through the mass balance and heat balance equations, and the factors such as conductor temperature, ice surface temperature, line load, overflow water, etc. are added as calculation parameters of ice growth to establish a more comprehensive ice growth model. However, the generation of line ice is a complex nonlinear process with many influencing factors. Therefore, the ice generation mechanism method based on physical principles is generally complex and difficult to calculate, and it is difficult to apply to the actual ice thickness prediction.
[0006] (II) In terms of statistical models, reference [3]: Liu Hongwei, Lu Jiazheng, Lai Xunyang, et al. Research on short-term multivariate grey prediction model for ice thickness of transmission lines [J]. High Voltage Technology, 2015, 41(10): 3372-3377. It is proposed to use a multivariate grey prediction model to model a small amount of data or incomplete information to complete the prediction of ice coverage.
[0007] Reference [4]: Yang Jing, Li Yingna, Zhao Zhengang, et al. Short-term icing prediction based on phase space reconstruction wavelet neural network [J]. Sensors and Microsystems, 2019, 38(09): 108-111. The chaotic nature of the icing sequence is analyzed through phase space reconstruction to complete the short-term prediction of line icing.
[0008] Reference [5]: Huang Xinbo, Wang Yuxin, Zhu Yongcan, et al. Line icing prediction based on genetic algorithm and fuzzy logic [J]. High Voltage Technology, 2016, 42(04): 1228-1235. Fuzzy logic theory is used to establish a line icing thickness prediction model based on meteorological information. Statistical model methods often rely on a large number of assumptions and cannot fully utilize the microclimate characteristics around the transmission line, resulting in a decrease in the accuracy of icing prediction.
[0009] (III) In terms of machine learning models, reference [6]: Li Xianchu, Zhang Xi, Liu Jie, et al. AMPSO-BP neural network prediction model for ice coverage of transmission line conductors [J]. Electric Power Construction, 2021, 42(09): 140-146. Based on the BP neural network, the ice thickness of the transmission line is predicted, and the improved particle swarm algorithm is used to optimize the parameters such as the weight and threshold of the BP network to improve the prediction accuracy of ice coverage. However, as the scale of the problem increases, the use of a single heuristic algorithm similar to the BP neural network may lead to problems such as slow convergence speed and low prediction accuracy during the optimization process. The hybrid algorithm composed of multiple algorithms can combine the advantages of multiple different algorithms, make up for the shortcomings of a single algorithm, improve the search capability, convergence speed and accuracy, and make it more effective to find the global optimal solution in complex problems.
[0010] Reference [7]: Chen Yong, Li Peng, Zhang Zhongjun, et al. Online prediction model of ice load on transmission lines based on PCA-GA-LSSVM [J]. Power System Protection and Control, 2019, 47(10): 110-119. The principal component analysis is performed on the factors affecting the change of ice thickness, and the genetic optimization algorithm is used to optimize the parameters such as the penalty coefficient and kernel function width in LSSVM. It can process data with nonlinear relationships and has strong fitting ability, but LSSVM may face the problem of high computational complexity when processing large-scale data sets.
[0011] Reference [8]: Li Bo, Li Peng, Gao Lian, et al. Transmission line ice weight prediction model based on PCA-VMD-CNN [J]. China Safety Science and Technology, 2022, 18(10): 216-222. The ice thickness data is reconstructed based on the variational mode decomposition method, in which VMD can reduce the instability of the original sequence and obtain intrinsic mode components with different center frequencies, thereby improving the accuracy of ice prediction.
[0012] Reference [9]: Xiong Wei, Xu Hao, Xu Linxiang, et al. RF-APJA-MKRVM combined prediction model for transmission line icing considering time accumulation effect [J]. High Voltage Technology, 2022, 48(03): 948-957. Based on the perspective that line icing is a time accumulation process, by considering the time accumulation effect of icing growth and the initial thickness at different stages, the prediction results of icing at different stages are obtained based on the combined prediction model. When using machine learning methods to predict the thickness of icing, many observation data including temperature, humidity and wind speed should be used to train the model.
[0013] Accurately predicting the ice thickness of transmission lines is of great guiding significance for the anti-icing and de-icing work of power grids. In view of the low prediction accuracy of existing models caused by the strong discontinuity and volatility of line icing process, a new method for predicting the ice thickness of transmission lines is urgently needed. Summary of the invention
[0014] In view of the problems that regression prediction models such as BP and LSSVM have poor performance when encountering a large number of data samples, and a single optimization algorithm has slow convergence speed. The present invention provides a transmission line ice thickness prediction method based on EMD-KPCA-LSTM according to the micro-meteorological data of the environment in which the transmission line is covered with ice, which can better solve the prediction problems under conditions such as large data samples and large random volatility, and can provide guidance and basis for ice prediction.
[0015] The technical solution adopted by the present invention is:
[0016] The transmission line ice thickness prediction method based on EMD-KPCA-LSTM includes the following steps:
[0017] Step 1: Obtain meteorological data and ice thickness data of the transmission line;
[0018] Step 2: Use empirical mode decomposition (EMD) to decompose the meteorological data series into modal components and residual components of various frequencies;
[0019] Step 3: Use the kernel principal component analysis method KPCA to extract the feature sequence data obtained by the empirical mode decomposition (EMD) in step 2, and select the main input features with a high contribution rate to the ice thickness data;
[0020] Step 4: Convert the feature sequence and ice thickness data generated by feature extraction in step 3 into a data set suitable for long short-term memory network LSTM training, and divide the data set into a training set and a test set;
[0021] Step 5: Initialize the parameters of the LSTM network, input the training set of the sample into the LSTM network for training, and save the training results of the training set until the target accuracy of the LSTM network is obtained;
[0022] Step 6: After the EMD-KPCA-LSTM combined prediction model is trained, the test set is input for prediction, and finally the ice cover prediction value of the test set and the evaluation index of the EMD-KPCA-LSTM combined prediction model are output.
[0023] In step 1, firstly, the meteorological data around the transmission line and the ice thickness data of the transmission line in the past two years are obtained, wherein the meteorological data mainly include temperature, humidity and wind speed, which have been proved to be meteorological factors with a high correlation with ice thickness in previous articles; and the data at the same time are combined to finally obtain the data samples about the time series, as shown in detail. Figure 3(a) to Figure 3(d) shown.
[0024] The specific research is as follows: 6 micro-meteorological variables X1, X2, X3, X4, X5, X6 (i.e. ambient temperature, relative humidity, ambient wind speed, wind direction angle, pressure and sunshine intensity) are subjected to principal component analysis to obtain 6 indicator variables. The eigenvalues of the covariance matrix of the 6 indicator variables are shown in Table 1.
[0025] It can be seen from Table 1 that the cumulative contribution rate of the first three principal components has reached 92.7%, so the first three principal components are regarded as the main meteorological factors affecting ice thickness.
[0026] Table 1 Eigenvalues of the covariance matrix of the six variables
[0027]
[0028]
[0029] In step 2, the meteorological data obtained in step 1 has large volatility and nonlinearity. If the original three meteorological conditions are directly used as input variables to build a prediction model, it may face complexity challenges. In order to reduce the complexity of the model and improve the prediction effect, the EMD algorithm is used to process the meteorological data. EMD is an adaptive method that gradually extracts local features of the signal, which can effectively decompose nonlinear and non-stationary signals. The specific decomposition steps of the algorithm are as follows:
[0030] First, find all local maximum and local minimum points of the meteorological data sequence x.
[0031] Definition of local maximum: If point x max (t) is a local maximum, which means it is larger than its left and right adjacent points. The specific formula is as follows:
[0032] x max (t)>x(t+1)∩x max (t)>x(t-1);
[0033] In the formula: x(t+1) represents the data value after the data point t; x(t-1) represents the data value before the data point t; t represents a data point in the meteorological data sequence.
[0034] Definition of local minimum: If point x min (t) is a local minimum, which means it is smaller than its left and right adjacent points. The specific formula is as follows:
[0035] x min (t)<x(t+1)∩x min (t)<x(t-1);
[0036] And calculate the mean g(t) of all local maximum and local minimum points:
[0037]
[0038] The first component f1(t) is obtained as:
[0039] f1(t)=x(t)-g(t);
[0040] Take the first component f1(t) as the original input signal and find the mean g1(t) of the local maximum and local minimum of f1(t):
[0041]
[0042] Where: f 1max (t) represents the local maximum point of the first component f1(t); f 1min(t) represents the local minimum point of f1(t). Then according to the above processing method, the second component f2(t) can be obtained;
[0043] f2(t)=f1(t)-g1(t)
[0044] Where: f1(t) represents the first component obtained by decomposing the meteorological data sequence x; g1(t) represents the mean of the local maximum and local minimum of f1(t).
[0045] Repeat the above operation until the remaining intrinsic mode function is a monotonic function, where the definition of a monotonic function is as follows:
[0046]
[0047] Where: f n (t) represents the residual function obtained by decomposing the meteorological data series n times.
[0048] Stop the decomposition process and finally decompose the meteorological data sequence x(t) into n modal components q with different frequencies i (t) and the residual component r n (t), as follows:
[0049]
[0050] Where: n represents the number of times all decompositions are completed.
[0051] In step 3, step 2 is decomposed to obtain different modal components q i (t) and the residual component r n (t) feature sequence can make the input feature data richer, but it will also increase the input data dimension of the system. In order to ensure the operation speed of the long short-term memory network LSTM, it can effectively overcome the overfitting problem and effectively improve the accuracy of the prediction. Therefore, the kernel principal component analysis method KPCA is used to extract features from the feature sequence to improve the calculation efficiency and accuracy of the algorithm while maintaining the validity and representativeness of the information provided. KPCA is a technology for feature extraction on nonlinear data. It is an extension of principal component analysis and can process nonlinear data. Its specific implementation process is as follows:
[0052] Choose a suitable kernel function matrix F i,j , mapping the feature sequence to the high-dimensional space G. The kernel function matrix F i,j The expression is:
[0053]
[0054] Where: Represents the vector after data point i is mapped to the high-dimensional feature space; Represents the vector after data point j is mapped to the high-dimensional feature space. This mapping is done by the mapping function The function is usually nonlinear and aims to transfer data from the original space to a higher-dimensional space so that linear algorithms can be used to solve nonlinear problems.
[0055] Calculate the covariance matrix C of the feature sequence in the high-dimensional space G G , so that the data is linearly separable in this space, where the covariance matrix C G It can be expressed as:
[0056]
[0057] Where: C G represents the covariance matrix; n represents the number of samples; Represents the data of mapping the feature sequence x to the high-dimensional space G; T represents the transpose of the vector.
[0058] Calculate the covariance matrix C G The eigenvalues and eigenvectors of , where the eigenvalue is λ and the corresponding eigenvector is α, are expressed as follows:
[0059] λα=C G α
[0060] After obtaining the covariance matrix, the eigenvalues are sorted from large to small, and the first k largest eigenvalues are selected. Their corresponding eigenvectors are used as principal components to construct a new dimensionality reduction space.
[0061] Therefore, the initial feature sequence x is mapped to obtain the principal component t of the kth dimension k As follows:
[0062]
[0063] Where: Represents the weight of the original feature sequence in each dimension of the new feature space; express Kernel function mapped to high-dimensional feature space; express Kernel function mapped to high-dimensional feature space; x i represents the i-th data point of the feature sequence x; x represents the data in the feature sequence; Represents the kernel function matrix at point x i The inner product of and x; n represents the number of pivot elements.
[0064] In step 3, the main input features with higher contribution rates to the ice thickness data are selected, mainly by sorting the eigenvalues and calculating the contribution rate of each eigenvector:
[0065]
[0066] Where: Contri(λ i ) represents the eigenvalue λ i λ represents the contribution rate of the feature; λ represents the eigenvalue; n represents the number of feature sequences.
[0067] When the cumulative contribution rate of the first n selected components exceeds 90%, the selection is stopped and the first n components are taken as the main components of the feature sequence.
[0068] In step 4, the principal components generated by feature extraction in step 3 are converted into a training set suitable for the long short-term memory network LSTM, where the main contribution rate of each component is as follows: Figure 5 As shown, according to Figure 5 Results The main components were selected.
[0069] The training set and data set are divided at the same time. In order to improve the prediction accuracy, the training set is the first 70% of the data set, and the validation set is the last 30% of the data set.
[0070] Long short-term memory network LSTM is a variant of recurrent neural network, which is widely used in time series data prediction tasks. The specific network structure is as follows: Figure 2 As shown. The LSTM network can better manage and update the memory state through the forget gate, input gate and output gate in its gating mechanism, thereby handling long-term dependencies. Therefore, the LSTM network becomes an effective ice cover prediction model. Each unit in the LSTM network consists of three gates, namely the input gate, the forget gate and the output gate. The specific calculation formulas of the three gates are as follows:
[0071] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0072] Where: f t is the forget gate; t-1 It represents the previous output; x t Represents the input of the current cell; W f represents the weight matrix of the forget gate; σ represents the sigmoid function; b f is the deviation term.
[0073]
[0074] Where: i t is the input gate; σ represents the sigmoid function; C t is the unit state; tanh is the activation function; W i and W C represents the weight matrix of the forget gate; b i and b C is the deviation term.
[0075]
[0076] Where: t represents the output gate; σ represents the sigmoid function; h t Represents the output value of the current unit; W o represents the weight matrix of the forget gate; b o is the deviation term;
[0077] In step 5: after the input and output data sets in step 4 are imported into the LSTM network, the LSTM network needs to be initialized. The hyper parameters of the network are set including the learning rate l r 、Hidden layer node h n and the regularization coefficient r e , and set the delay step and prediction time step; the delay step refers to the time interval in which past data points are used as input features for current prediction in time series analysis; the prediction time step refers to the step size for predicting future data starting from the current time point.
[0078] After setting the relevant parameters of the long short-term memory network LSTM, the training set is input into the long short-term memory network LSTM for training, the training results of the training set are saved, and the target accuracy of the LSTM network model is obtained.
[0079] The step 6 is specifically as follows:
[0080] After the training in step 5, the EMD-KPCA-LSTM combined prediction model is input into the test set samples for ice cover prediction. Finally, the ice cover prediction value and the prediction performance related evaluation indicators of the EMD-KPCA-LSTM combined prediction model are output.
[0081] Among them, the relevant evaluation indicators use four evaluation indicators, namely mean square error, mean absolute error, mean absolute percentage error and determination coefficient.
[0082] The formula for calculating the mean square error is as follows:
[0083]
[0084] The mean absolute error is calculated as follows:
[0085]
[0086] The calculation formula of mean absolute percentage error, i.e. relative error, is as follows:
[0087]
[0088] The formula for calculating the coefficient of determination is as follows:
[0089]
[0090] Where: y i is the actual value of the i-th sample; is the predicted value of the i-th estimated sample; y i ′ is the average of the actual sample values; n represents the number of samples.
[0091] The present invention provides a method for predicting ice thickness of transmission lines based on EMD-KPCA-LSTM, and the technical effects are as follows:
[0092] 1) Aiming at the problem of low model prediction accuracy caused by strong discontinuity and volatility of meteorological data, the method of the present invention uses the EMD algorithm to decompose the original meteorological data sequence, which can reduce the instability of the data and reflect the volatility and trend changes of the original meteorological data.
[0093] 2) The high-dimensional input features generated by meteorological data decomposition increase the complexity of the prediction model. The method of the present invention adopts the feature extraction method of KPCA to reduce the input feature dimension, effectively overcome the overfitting problem, and improve the calculation efficiency and accuracy of the algorithm.
[0094] 3) Compared with the previous intelligent algorithms that focus on the decomposition of output variables, the EMD-KPCA-LSTM icing prediction method of the present invention focuses on the nonlinearity of the input characteristic meteorological factors, decomposes the original meteorological data sequence and extracts features. At the same time, the correlation between the icing process and the time series is also considered, and the prediction method for multivariate time series is adopted, which has more accurate prediction accuracy and strong generalization, and is suitable for icing prediction with large volatility of input features. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] Figure 1 It is a flow chart of the combined prediction model in the present invention.
[0096] Figure 2 This is the structural diagram of LSTM in the present invention.
[0097] Figure 3(a) is the original data diagram of the transmission line with respect to the time series (wind speed);
[0098] Figure 3(b) is the original data graph (temperature) of the transmission line with respect to the time series;
[0099] Figure 3(c) is the original data graph of the transmission line with respect to the time series (humidity);
[0100] Figure 3(d) is the original data graph of the transmission line with respect to the time series (ice cover thickness).
[0101] Figure 4(a) is the result of EMD decomposition of wind speed data of transmission lines;
[0102] Figure 4(b) is the result of EMD decomposition of transmission line temperature data;
[0103] Figure 4(c) shows the result of EMD decomposition of the transmission line humidity data.
[0104] Figure 5 This is the contribution rate diagram of each characteristic component after the meteorological data is decomposed.
[0105] Figure 6 Schematic diagram of ice cover prediction values of different algorithms. DETAILED DESCRIPTION
[0106] The process of the transmission line ice thickness prediction method based on EMD-KPCA-LSTM is as follows Figure 1 As shown, the following steps are included:
[0107] Step 1: Obtain meteorological data and ice thickness data of the transmission line.
[0108] In step 1, firstly, the meteorological data around the power transmission line and the line ice thickness data in the past two years are obtained, wherein the meteorological data mainly include temperature, humidity and wind speed, which have been proved in previous articles to be meteorological factors with a high correlation with ice thickness; and the data at the same time are combined to finally obtain the data samples about the time series. Figure 3(a) to Figure 3(d) shown.
[0109] Step 2: Use the EMD algorithm to decompose the original meteorological data sequence into modal components and residual components of various frequencies.
[0110] In the step 2, the volatility and nonlinearity of the meteorological data obtained in step 1 are large. If the original three meteorological conditions are directly used as input variables to build a prediction model, it may face complexity challenges. In order to reduce the complexity of the model and improve the prediction effect, the EMD algorithm is used to process the meteorological data. EMD is an adaptive method that gradually extracts local features of the signal, which can effectively decompose nonlinear and non-stationary signals. The specific decomposition steps of the algorithm are as follows:
[0111] Definition of local maximum: If point x max (t) is a local maximum, which means it is larger than its left and right adjacent points. The specific formula is as follows:
[0112] x max (t)>x(t+1)∩x max (t)>x(t-1);
[0113] In the formula: x(t+1) represents the data value after the data point t; x(t-1) represents the data value before the data point t; t represents a data point in the meteorological data sequence.
[0114] Definition of local minimum: If point x min (t) is a local minimum, which means it is smaller than its left and right adjacent points. The specific formula is as follows:
[0115] x min (t)<x(t+1)∩x min (t)<x(t-1);
[0116] And calculate the mean g(t) of all local maximum and local minimum points:
[0117]
[0118] The first component f1(t) is obtained as:
[0119] f1(t)=x(t)-g(t);
[0120] Take the first component f1(t) as the original input signal and find the mean g1(t) of the local maximum and local minimum of f1(t):
[0121]
[0122] Where: f 1max (t) represents the local maximum point of the first component f1(t); f 1min (t) represents the local minimum point of f1(t). Then according to the above processing method, the second component f2(t) can be obtained;
[0123] f2(t)=f1(t)-g1(t)
[0124] Where: f1(t) represents the first component obtained by decomposing the meteorological data sequence x; g1(t) represents the mean of the local maximum and local minimum of f1(t).
[0125] Repeat the above operation until the remaining intrinsic mode function is a monotonic function, where the definition of a monotonic function is as follows:
[0126]
[0127] Where: f n (t) represents the residual function obtained by decomposing the meteorological data series n times.
[0128] Stop the decomposition process and finally decompose the meteorological data sequence x(t) into n modal components q with different frequencies i (t) and the residual component r n (t), as follows:
[0129]
[0130] Where: n represents the number of times all decompositions are completed.
[0131] Step 3: Use KPCA to extract features from the feature sequence data obtained by EMD decomposition and select the main input features with higher contribution rate to ice thickness data.
[0132] In step 3, step 2 is decomposed to obtain different modal components q i (t) and the residual component r n (t) feature sequence can make the input feature data richer, but it will also increase the input data dimension of the system. In order to ensure the operation speed of the long short-term memory network LSTM, it can effectively overcome the overfitting problem and effectively improve the accuracy of the prediction. Therefore, the kernel principal component analysis method KPCA is used to extract features from the feature sequence to improve the calculation efficiency and accuracy of the algorithm while maintaining the validity and representativeness of the information provided. KPCA is a technology for feature extraction on nonlinear data. It is an extension of principal component analysis and can process nonlinear data. Its specific implementation process is as follows:
[0133] Choose a suitable kernel function matrix F i,j , mapping the feature sequence to the high-dimensional space G. The kernel function matrix F i,j The expression is:
[0134]
[0135] Where: Represents the vector after data point i is mapped to the high-dimensional feature space; Represents the vector after data point j is mapped to the high-dimensional feature space. This mapping is achieved through a mapping function φ, which is usually nonlinear and aims to transfer data from the original space to a higher-dimensional space so that linear algorithms can be used to solve nonlinear problems.
[0136] Calculate the covariance matrix C of the feature sequence in the high-dimensional space G G , so that the data is linearly separable in this space, where the covariance matrix C G It can be expressed as:
[0137]
[0138] Where: C G represents the covariance matrix; n represents the number of samples; Represents the data of mapping the feature sequence x to the high-dimensional space G; T represents the transpose of the vector
[0139] Calculate the covariance matrix C G The eigenvalues and eigenvectors of , where the eigenvalue is λ and the corresponding eigenvector is α, are expressed as follows:
[0140] λα=C G α
[0141] After obtaining the covariance matrix, the eigenvalues are sorted from large to small, and the first k largest eigenvalues are selected. Their corresponding eigenvectors are used as principal components to construct a new dimensionality reduction space.
[0142] Therefore, the initial feature sequence x is mapped to obtain the principal component t of the kth dimension k As follows:
[0143]
[0144] Where: Represents the weight of the original feature sequence in each dimension of the new feature space; express Kernel function mapped to high-dimensional feature space; express Kernel function mapped to high-dimensional feature space; x i represents the i-th data point of the feature sequence x; x represents the data of the feature sequence; Represents the kernel function matrix at point x i The inner product of and x; n represents the number of pivot elements.
[0145] In step 3, the main input features with higher contribution rates to the ice thickness data are selected, mainly by sorting the eigenvalues and calculating the contribution rate of each eigenvector:
[0146]
[0147] Where: Contri(λ i ) represents the eigenvalue λ i λ represents the contribution rate of the feature; λ represents the eigenvalue; n represents the number of feature sequences.
[0148] When the cumulative contribution rate of the first n selected components exceeds 90%, stop selecting; and use these first n components as the main input features of the feature sequence.
[0149] Step 4: Convert the feature sequence and ice thickness data generated after feature extraction into a data set suitable for LSTM network training, and divide the training set and data set at the same time.
[0150] The principal components generated by feature extraction in step 3 are converted into a training set suitable for the long short-term memory network LSTM, where the main contribution rate of each component is as follows: Figure 5 shown.
[0151] The training set and data set are divided at the same time. In order to improve the prediction accuracy, the training set is the first 70% of the data set, and the validation set is the last 30% of the data set.
[0152] Long short-term memory network is a variant of recurrent neural network, which is widely used in time series data prediction tasks. The specific network structure is as follows: Figure 2 As shown. The LSTM algorithm can better manage and update the memory state through the forget gate, input gate and output gate in its gating mechanism, thereby handling long-term dependencies. Therefore, the LSTM algorithm becomes an effective ice cover prediction model. Each unit in LSTM consists of three gates, namely the input gate, the forget gate and the output gate. The specific calculation formulas of the three gates are as follows:
[0153] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0154] Where: f t is the forget gate; t-1 It represents the previous output; x t Represents the input of the current cell; W f represents the weight matrix of the forget gate; σ represents the sigmoid function; b f is the deviation term.
[0155]
[0156] Where: i t is the input gate; σ represents the sigmoid function; C t is the unit state; tanh is the activation function; W i and W C represents the weight matrix of the forget gate; b i and b C is the deviation term.
[0157]
[0158] Where: t represents the output gate; σ represents the sigmoid function; h t Represents the output value of the current unit; W o represents the weight matrix of the forget gate; b o is the deviation term.
[0159] Step 5: Initialize the parameters of the LSTM network, input the sample training set into the LSTM model for training, and save the training results of the training set until the target accuracy of the model is obtained.
[0160] After importing the input and output data sets in step 4 into LSTM, the LSTM network needs to be initialized. The hyperparameters of the network are set, including the learning rate l r 、Hidden layer node h n and the regularization coefficient r e , and set the delay step and the predicted time step. After setting the relevant parameters of the LSTM network, input the training set into the LSTM model for training and save the training results of the training set.
[0161] Step 6: After the model training is completed, the test set is input for prediction, and the ice cover prediction value of the test set and the relevant evaluation indicators of the prediction model are finally output.
[0162] After the training in step 5, the EMD-KPCA-LSTM combined prediction model is input into the test set samples for ice cover prediction. Finally, the ice cover prediction value and the prediction performance related evaluation indicators of the EMD-KPCA-LSTM combined prediction model are output. The four evaluation indicators used are mean square error, mean absolute error, mean absolute percentage error and determination coefficient.
[0163] The formula for calculating the mean square error is as follows:
[0164]
[0165] The mean absolute error is calculated as follows:
[0166]
[0167] The calculation formula of mean absolute percentage error, i.e. relative error, is as follows:
[0168]
[0169] The formula for calculating the coefficient of determination is as follows:
[0170]
[0171] Where: y i is the actual value of the i-th sample; is the predicted value of the i-th estimated sample; y i ′ is the average of the actual sample values, and n represents the number of samples.
[0172] Example:
[0173] In order to verify the effectiveness and feasibility of the combined icing prediction model proposed in the present invention, real-time data collected by the online monitoring system of the 220kV transmission tower line of Sanmenxia Power Supply Company of Henan Power Grid in the past two years were selected as samples for algorithm verification.
[0174] S1: Obtain meteorological data and ice thickness data of the transmission line.
[0175] The 220kV transmission tower line of Sanmenxia Power Supply Company of Henan Power Grid was selected. For the 220kV Luzao line in Lushi area and the 220kV Zaozhai line in Lingbao area, the tension sensor installed on the tower was used to measure the tension response at the insulator string position to show the equivalent ice thickness. The tension sensor was installed on the tension insulator string on the 26# tower of the Luzao line and the tension insulator string on the 40# tower of the Zaozhai line. The conductor model is JL3 / G1A-400 / 50.
[0176] The micro-meteorological sensors installed on the tower are used to measure meteorological parameters such as temperature, humidity, and wind speed. The measurement time periods for meteorological parameters such as temperature, humidity, wind speed, and ice thickness are from December 2021 to March 2022 and from December 2022 to March 2023, with a sampling interval of 2 hours, for a total of 1000 groups. The time series measurement results of temperature, humidity, wind speed, and ice thickness are shown in Figure 2. Figure 3(a) to Figure 3(d) As shown. Figure 3(a) to Figure 3(d) It can be seen that the given data measurement data contains 4 complete icing cycles, which can verify the proposed icing combined prediction model.
[0177] S2: The EMD algorithm is used to decompose the original meteorological data sequence into modal components and residual components of various frequencies.
[0178] Since meteorological data are random and volatile, the EMD method is used to decompose the original data to obtain the modal component and residual component of each environmental factor data, so as to highlight the local characteristics of the original environmental sequence. Figure 4(a) to Figure 4(c) The figure shows the modal components and residual components obtained after EMD decomposition of each meteorological data. 27-dimensional modal components and 3 residual components can be decomposed, and a total of 30-dimensional feature components are used as new input feature sequences.
[0179] S3: Use KPCA to extract features from the feature sequence data obtained by EMD decomposition. Select the main input features with higher contribution rate to ice thickness data;
[0180] Since meteorological data generates 30-dimensional input features after EMD decomposition, the dimension of the input features is increased. In order to reduce the input feature dimension, speed up the iteration speed of the prediction model, reduce the training time, and effectively overcome the overfitting problem, the feature extraction method of kernel principal component analysis is adopted to improve the accuracy of the prediction. The contribution rate of each characteristic component of the covariance matrix is as follows: Figure 5 The specific contribution rate and cumulative contribution rate of each characteristic sequence of the covariance matrix are shown in Table 2, where a contribution rate of 90% has been set.
[0181] Table 2 Contribution rate of each characteristic sequence
[0182]
[0183] As can be seen from Table 2, the cumulative contribution rate of the first 16 feature sequences is greater than 90%, indicating that these principal components are highly representative and better integrate the information capabilities of the original feature sequences. Therefore, the first 16 feature sequences are selected to replace the 30 feature sequences.
[0184] S4: The feature sequence and ice thickness data generated after feature extraction are converted into a data set suitable for long short-term memory (LSTM) network training, and the training set and data set are divided at the same time.
[0185] The 16 principal components generated after feature extraction are used as input, and the ice thickness data is used as output, which is converted into a data set suitable for LSTM network training. At the same time, the training set and the data set are divided. In order to improve the prediction accuracy, the training set is the first 70% of the data set, and the validation set is the last 30% of the data set.
[0186] S5: Initialize the parameters of the LSTM network, input the training set of samples into the LSTM model for training, and save the training results of the training set until the target accuracy of the model is obtained.
[0187] After importing the input and output data sets in S5 into LSTM, the LSTM network needs to be initialized. Set the hyperparameters of the network. The network parameters are set as follows: including the learning rate l r =0.0095, number of hidden layer nodes h n =60, regularization coefficient r e = 0.0003, and set the delay step to 5 steps for the LSTM network, and the prediction time step to 2 steps. After setting the relevant parameters of the LSTM network, input the training set into the LSTM model for training, and save the training results of the training set.
[0188] S6: After the model training is completed, the test set is input for prediction, and the ice cover prediction value of the test set and the relevant evaluation indicators of the prediction model are finally output.
[0189] The LSTM network constructed by S5 predicts the test set and obtains the corresponding prediction value. In order to more intuitively analyze the advantages of the proposed combined prediction model, the BP model, LSTM model, and EMD-LSTM model are selected for comparison with the proposed model. The ice thickness prediction curves of the validation set of each model are shown in Figure 2. Figure 6 The comparison results of the prediction evaluation indicators of each model are shown in Table 3.
[0190] Table 3 Prediction performance indicators of each model
[0191]
[0192] As shown in Table 3, the accuracy of the EMD-KPCA-LSTM ice cover combined prediction model used is compared with EMD-LSTM and LSTM, in which RMSE is reduced by 0.3294mm and 0.0666mm respectively; MAE is reduced by 0.4086mm and 0.0741mm respectively; MAPE is reduced by 8.1863% and 2.7785% respectively; and R 2 The results show that the prediction effect of the proposed model is greatly improved compared with other methods, and the effectiveness of the proposed model is verified.
[0193] Depend on Figure 6 It can be seen that the BP neural network model has the worst prediction effect and low prediction accuracy. Comparing the prediction results of the LSTM model and the EMD-LSTM model, it can be seen that after adding the EMD algorithm, the model increases the number of input features. Compared with the single mode, the prediction accuracy of the combined model is reduced, which is basically consistent with the expected results of the experiment. The kernel principal component analysis method is adopted to reduce the original input 30 features to 16, so that the EMD-KPCA-LSTM prediction model shows the best prediction accuracy, and also proves the necessity of KPCA feature extraction. Finally, it is shown that after using EMD to decompose meteorological data, KPCA feature extraction is used to reduce the input dimension, and the LSTM model is used for prediction. It can greatly improve the performance of the prediction model, more accurately predict the ice thickness of the transmission line, and allow the power department to understand the ice condition of the transmission line more timely and accurately, and make corresponding treatment, thereby improving the stability of the power system line operation.
Claims
1. The transmission line ice thickness prediction method based on EMD-KPCA-LSTM is characterized by The following steps are involved: Step 1: Obtain meteorological data and ice thickness data of the transmission line; Step 2: Use empirical mode decomposition (EMD) to decompose the meteorological data series into modal components and residual components of various frequencies; Step 3: Use the kernel principal component analysis method KPCA to extract the feature sequence data obtained by the empirical mode decomposition (EMD) in step 2, and select the input features with high contribution rate to the ice thickness data; Step 4: Convert the feature sequence and ice thickness data generated by feature extraction in step 3 into a data set suitable for long short-term memory network LSTM training, and divide the data set into a training set and a test set; Step 5: Initialize the parameters of the LSTM network, input the training set of the samples into the LSTM network for training, and save the training results of the training set until the target accuracy of the LSTM network is obtained.
2. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 1 is characterized in that: It also includes step 6: after the EMD-KPCA-LSTM combined prediction model is trained, the test set is input for prediction, and finally the ice cover prediction value of the test set and the evaluation index of the EMD-KPCA-LSTM combined prediction model are output.
3. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 1 is characterized in that: In step 1, firstly, the meteorological data around the power transmission line and the ice thickness data of the power transmission line in the past two years are obtained, wherein the meteorological data includes temperature, humidity and wind speed, and the data at the same time are combined. Finally, we get data samples about time series.
4. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 1 is characterized in that: In step 2, the EMD algorithm is used to process the meteorological data, and the specific decomposition steps are as follows: First, find all local maximum and local minimum points of the meteorological data sequence x; If point x max (t) is a local maximum, which means it is larger than its left and right adjacent points. The specific formula is as follows: x max (t)>x(t+1)∩x max (t)>x(t-1); Where: x(t+1) represents the data value after data point t; x(t-1) represents the data value before data point t; t represents a data point in the meteorological data sequence; If point x min (t) is a local minimum, which means it is smaller than its left and right adjacent points. The specific formula is as follows: x min (t)<x(t+1)∩x min (t)<x(t-1); And calculate the mean g(t) of all local maximum and local minimum points: The first component f1(t) is obtained as: f1(t)=x(t)-g(t); Take the first component f1(t) as the original input signal and find the mean g1(t) of the local maximum and local minimum of f1(t): Where: f 1max (t) represents the local maximum point of the first component f1(t); f 1min (t) represents the local minimum point of f1(t); Then according to the above processing method, the second component f2(t) can be obtained; f2(t)=f1(t)-g1(t) Where: f1(t) represents the first component obtained by decomposing the meteorological data sequence x; g1(t) represents the mean of the local maximum and local minimum of f1(t); Repeat the above operation until the remaining intrinsic mode function is a monotonic function, where the definition of a monotonic function is as follows: Where: f n (t) represents the residual function obtained by decomposing the meteorological data series n times; Stop the decomposition process and finally decompose the meteorological data sequence x(t) into n modal components q with different frequencies i (t) and the residual component r n (t), as follows: Where: n represents the number of times all decompositions are completed.
5. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 4 is characterized in that: In step 3, step 2 is decomposed to obtain different modal components q i (t) and the residual component r n The characteristic sequence of (t) is extracted by using the kernel principal component analysis method KPCA. The specific implementation process is as follows: Select the kernel function matrix F i,j , maps the feature sequence into the high-dimensional space G, where the kernel function matrix F i,j The expression is: Where: Represents the vector after data point i is mapped to the high-dimensional feature space; Represents the vector after data point j is mapped to the high-dimensional feature space; Calculate the covariance matrix C of the feature sequence in the high-dimensional space G G , so that the data is linearly separable in this space, where the covariance matrix C G It is expressed as: Where: C G represents the covariance matrix; n represents the number of samples; Represents the data of mapping the feature sequence x to the high-dimensional space G; T represents the transpose of the vector; Calculate the covariance matrix C G The eigenvalues and eigenvectors of , where the eigenvalue is λ and the corresponding eigenvector is α, are expressed as follows: la=C G a After obtaining the covariance matrix, sort the eigenvalues from large to small, select the first k largest eigenvalues, and use their corresponding eigenvectors as principal components to construct a new dimensionality reduction space. Therefore, the initial feature sequence x is mapped to obtain the principal component t of the kth dimension k As follows: Where: Represents the weight of the original feature sequence in each dimension in the new feature space; express Kernel function mapped to high-dimensional feature space; express Kernel function mapped to high-dimensional feature space; x i represents the i-th data point of the feature sequence x; x represents the data in the feature sequence; Represents the kernel function matrix at point x i The inner product of and x; n represents the number of pivot elements.
6. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 5 is characterized in that: In step 3, the main input features with high contribution to the ice thickness data are selected, sorted according to the size of the eigenvalues, and the contribution rate of each eigenvector is calculated: Where: Contri(λ i ) represents the eigenvalue λ i The contribution rate of; λ represents the eigenvalue; n represents the number of characteristic sequences; When the cumulative contribution rate of the first n selected components exceeds 90%, the selection is stopped and the first n components are taken as the main components of the feature sequence.
7. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 6 is characterized in that: In the step 4, the principal components generated by feature extraction in step 3 are converted into a training set suitable for a long short-term memory network LSTM, and the training set and the data set are divided at the same time; Each unit in the long short-term memory network LSTM consists of three gates, namely the input gate, the forget gate and the output gate. The specific calculation formulas of the three gates are as follows: f t =σ(W f ·[h t-1 ,x t ]+b f ) Where: f t is the forget gate; t-1 It represents the previous output; x t Represents the input of the current cell; W f represents the weight matrix of the forget gate; σ represents the sigmoid function; b f is the deviation term; Where: i t is the input gate; σ represents the sigmoid function; C t is the unit state; tanh is the activation function; W i and W C represents the weight matrix of the forget gate; b i and b C is the deviation term; In the formula: o t represents the output gate; σ represents the sigmoid function; h t Represents the output value of the current unit; W o represents the weight matrix of the forget gate; b o is the deviation term.
8. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 7 is characterized in that: In step 5: after the data set input and output in step 4 is imported into the long short-term memory network LSTM, the long short-term memory network LSTM needs to be initialized; the hyper parameters of the network are set including the learning rate l r 、Hidden layer node h n and the regularization coefficient r e , and set the delay step and the prediction time step; the delay step refers to the time interval in which past data points are used as input features for the current prediction in time series analysis; The predicted time step refers to the step length of predicting future data starting from the current time point; After setting the relevant parameters of the long short-term memory network LSTM, the training set is input into the long short-term memory network LSTM for training, the training results of the training set are saved, and the target accuracy of the LSTM network model is obtained.
9. The method for predicting ice thickness of power transmission lines based on EMD-KPCA-LSTM according to claim 2 is characterized in that: The step 6 is specifically as follows: The EMD-KPCA-LSTM combined prediction model trained in step 5 is input into the test set samples for ice cover prediction; finally, the ice cover prediction value and the prediction performance-related evaluation indicators of the EMD-KPCA-LSTM combined prediction model are output; Among them, the relevant evaluation indicators use four evaluation indicators, namely, mean square error, mean absolute error, mean absolute percentage error and determination coefficient; The formula for calculating the mean square error is as follows: The mean absolute error is calculated as follows: The calculation formula of mean absolute percentage error, i.e. relative error, is as follows: The formula for calculating the coefficient of determination is as follows: Where: y i is the actual value of the i-th sample; is the predicted value of the i-th estimated sample; y i ′ is the average of the actual sample values; n represents the number of samples.
Citation Information
Cited By
Stress time sequence change point-based line icing thickness estimation method and system, and medium
CN118940020A
Maximum load prediction method based on EMD-KPCA-improved BP neural network
CN120124786A
Power transmission line icing thickness prediction method and device based on LSTM model
CN122064935A
