Power grid host load prediction method, device and medium based on Phik feature selection
Through the Phik feature selection method, the Person correlation coefficient method and the Phik correlation coefficient method are used to extract features, combined with the GRU model and feature fusion layer, to solve the problems of long running time and low prediction accuracy in power grid host load prediction, achieving a more efficient and more efficient Accurate load forecasting.
Patent Information
- Application Number
- CN202110931677.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-13
AI Technical Summary
Existing power grid host load prediction methods take a long time to run and have poor adaptability and prediction accuracy. Especially due to the nonlinearity and randomness of load data, traditional models are difficult to predict accurately.
Using a method based on Phik feature selection, the time series components and nonlinear dependence data are extracted through the Person correlation coefficient method and Phik correlation coefficient method, and combined with the GRU model and feature fusion layer, a prediction model is generated to improve prediction accuracy and operating efficiency.
It improves the operating efficiency, adaptability and prediction accuracy of power grid host load prediction, and can more accurately capture time series relationships and non-linear dependency data.
Smart Images

Figure CN113610174B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of electrical technology, and in particular to a method, device and medium for predicting power grid host load based on Phik feature selection. Background Art
[0002] At present, with the development of society, the increase of industrialization scenarios and human life electricity consumption scenarios, the load of the power grid has gradually increased. How to predict the load of the power grid host to avoid failure caused by excessive load has become a key issue. The existing prediction methods are mainly based on statistical models to predict the host load, but due to the nonlinearity and randomness of load data, it is unlikely to accurately predict the host performance. Or host load prediction based on machine learning algorithms, but it is sensitive to parameter and kernel function selection. Or data-driven methods such as deep learning, but the traditional convolutional neural network (CNN) model can only extract spatial information and cannot capture sequence relationships. Or a recurrent neural network (RNN) sequence model, the RNN sequence model contains a hidden layer with a closed loop, thereby capturing nonlinear time series problems. However, due to the gradient disappearance problem in the back propagation process, the chain structure of the RNN cannot train time series data with long time lags. The gradient disappearance problem is an inherent problem of neural networks, which is solved by a long short-term neural network (LSTM). LSTM models long-term dependencies for time series problems and determines the optimal time lag by giving memory cells the ability to remember or forget certain information. Therefore, LSTM has been used for load forecasting. Although LSTM has the ability to remember long-term dependencies for load forecasting, its structure is complex and takes a long time to train.
[0003] It can be seen that there is an urgent need for a power grid host load prediction method based on Phik feature selection with short running time, higher adaptability and prediction accuracy. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a method, device and medium for predicting power grid host load based on Phik feature selection, which at least partially solve the problems of long operation time, poor adaptability and prediction accuracy in the prior art.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for predicting a power grid host load based on Phik feature selection, comprising:
[0006] Extracting historical data corresponding to the target power grid host, and dividing the historical data into a training set and a test set;
[0007] Performing Person correlation analysis on the initial features of the training set using the Person correlation coefficient method to obtain multiple time series components, and selecting the time series components whose correlation with the mean value of the label value meets the preset conditions as the first feature set;
[0008] Generate a second feature set based on the correlation between the prediction variables and the auxiliary variables in the training set according to the Phik correlation coefficient method;
[0009] Inputting the first feature set and the second feature set into a GRU model respectively, and then inputting the output values of the two GRU models into a feature fusion layer to obtain a prediction model corresponding to the target power grid host;
[0010] According to the prediction model and the test set, a load prediction interval corresponding to the target power grid host is obtained.
[0011] According to a specific implementation of the embodiment of the present disclosure, the step of generating a second feature set according to the initial prediction model and the Phik correlation coefficient method includes:
[0012] Calculate the objective function corresponding to the static variables and influencing variables in the initial prediction model according to the Phik correlation coefficient method;
[0013] The objective function is solved by using the Brent method to form the second feature set.
[0014] According to a specific implementation of the embodiment of the present disclosure, the step of solving the objective function by using the Brent method to form the second feature set includes:
[0015] Iterate the objective function according to the mean value theorem to calculate the stationary point;
[0016] All the stationary points form the second feature set.
[0017] According to a specific implementation of the embodiment of the present disclosure, after the step of extracting historical data corresponding to the target power grid host and dividing the historical data into a training set and a test set, the method further includes:
[0018] The KNN interpolation method is used to complete the missing point data in the training set and the test set.
[0019] According to a specific implementation of the embodiment of the present disclosure, the feature fusion layer includes a gate mechanism and a multi-layer perceptron.
[0020] In a second aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0021] at least one processor; and,
[0022] a memory communicatively connected to the at least one processor; wherein,
[0023] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the power grid host load prediction method based on Phik feature selection in the aforementioned first aspect or any implementation of the first aspect.
[0024] In a third aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the power grid host load prediction method based on Phik feature selection in the aforementioned first aspect or any implementation of the first aspect.
[0025] In a fourth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the power grid host load prediction method based on Phik feature selection in the aforementioned first aspect or any implementation of the first aspect.
[0026] The power grid host load prediction scheme based on Phik feature selection in the embodiment of the present disclosure includes: extracting historical data corresponding to the target power grid host, and dividing the historical data into a training set and a test set; using the Person correlation coefficient method to perform Person correlation analysis on the initial features of the training set to obtain multiple time series components, and selecting the time series components whose correlation with the mean of the label value meets the preset conditions as the first feature set; according to the Phik correlation coefficient method, the correlation between the predicted variables and the auxiliary variables in the training set is used to generate a second feature set; the first feature set and the second feature set are respectively input into a GRU model, and then the output values of the two GRU models are input into the feature fusion layer to obtain the prediction model corresponding to the target power grid host; according to the prediction model and the test set, the load prediction interval corresponding to the target power grid host is obtained.
[0027] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the Person correlation coefficient selects a first feature set that is more correlated with the prediction moment from the time dimension, and the Phik correlation coefficient captures the nonlinear dependency data in the historical data from the time series dimension to obtain a second feature set, and then the two feature sets are output through the feature fusion layer and combined with the test set to obtain the load prediction interval, thereby improving the operating efficiency, adaptability and prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 A flow chart of a method for predicting power grid host load based on Phik feature selection provided in an embodiment of the present disclosure;
[0030] Figure 2 A schematic diagram of Person correlation analysis results involved in a power grid host load prediction method based on Phik feature selection provided in an embodiment of the present disclosure;
[0031] Figure 3 A schematic diagram of Phik correlation analysis results involved in a power grid host load prediction method based on Phik feature selection provided in an embodiment of the present disclosure;
[0032] Figure 4 A schematic diagram of the fusion layer structure involved in a power grid host load prediction method based on Phik feature selection provided in an embodiment of the present disclosure;
[0033] Figure 5 and Figure 6 A schematic diagram of a prediction interval involved in a method for predicting a power grid host load based on Phik feature selection provided in an embodiment of the present disclosure;
[0034] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0036] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0037] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0038] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0039] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0040] At present, with the development of society, the increase in industrial scenarios and human life electricity consumption scenarios, the load of the power grid is gradually increasing. How to predict the load of the power grid host to avoid failures caused by excessive load has become a key issue. The existing prediction methods are mainly:
[0041] Predict host load based on statistical models. Common models include ARIMA, SARIMA, etc. These parameter-based models have been widely used in the prediction of time series data. However, accurate estimation of statistical model parameters is not easy under dynamic CPU load changes. The ARIMA model assumes that time series data is stationary when the mean and variance are constant. Although the ARIMA model shows acceptable performance in load prediction, it is unlikely to accurately predict host performance due to the nonlinearity and randomness of load data.
[0042] Machine learning algorithms are also applied to host load prediction. For example, the support vector machine (SVM) model is applied to the prediction of CPU load. The support vector machine is a linear classification model based on supervised learning, which can find the spatial boundaries of given data. Although the support vector machine is suitable for binary classification, it is sensitive to the selection of parameters and kernel functions.
[0043] Data-driven methods, such as deep learning, have ushered in a new era in host load forecasting. Deep learning is a subfield of machine learning that uses artificial neural networks to learn representations from data. The deep learning model of a neural network automatically obtains the optimal values of weight parameters from the training data. It can accurately represent more complex nonlinear relationships in the data. However, traditional convolutional neural network (CNN) models can only extract spatial information and cannot capture sequential relationships.
[0044] Recurrent Neural Network (RNN) sequence model, RNN sequence model contains hidden layers with closed loops to capture nonlinear time series problems. However, due to the gradient vanishing problem during back propagation, the chain structure of RNN cannot train time series data with long time lags. The gradient vanishing problem is an inherent problem of neural networks, which is solved by a Long Short-Term Memory (LSTM) neural network. LSTM builds a long-term dependency model for time series problems and determines the optimal time lag by giving memory units the ability to remember or forget certain information. Therefore, LSTM has been used for load forecasting. Although LSTM has the ability to remember long-term dependencies for load forecasting, it has a complex structure and takes a long time to train.
[0045] The embodiment of the present disclosure provides a method for predicting a power grid host load based on Phik feature selection, and the method can be applied to a power grid host load prediction process in a power supply and demand scenario.
[0046] See also Figure 1 , is a flow chart of a method for predicting power grid host load based on Phik feature selection provided by an embodiment of the present disclosure. Figure 1 As shown, the method mainly comprises the following steps:
[0047] S101, extracting historical data corresponding to a target power grid host, and dividing the historical data into a training set and a test set;
[0048] During the specific implementation, considering that the target power grid host is working, the load data will be stored accordingly, and the corresponding historical data can be extracted. For example, when it is necessary to predict the load of the power grid host in area A for a certain period of time in the future, the historical data of the power grid host in area A can be extracted first. Specifically, if it is necessary to predict the load of the power grid host in area A from 9 am to 12 pm in the future, the load historical data of the power grid host in area A from 9 am to 12 pm in the past few days can be extracted, and then the historical data can be divided into a training set and a test set to facilitate subsequent processing flow.
[0049] S102, performing Person correlation analysis on the initial features of the training set using the Person correlation coefficient method to obtain multiple time series components, and selecting the time series components whose correlation with the mean value of the label value meets the preset conditions as the first feature set;
[0050] When implementing it, Figure 2 As shown, the Pearson correlation coefficient method describes the average linear dependency between two variables. After obtaining the training set, the Person correlation coefficient method can be used to perform Person correlation analysis on the initial features of the training set to obtain multiple time series components, and then the time series components whose correlation with the label value mean meets the preset conditions are selected as the first feature set, wherein the label value can be a pre-selected sample point, and then the mean of all sample points is calculated as the label value mean.
[0051] S103, generating a second feature set based on the correlation between the prediction variables and the auxiliary variables in the training set according to the Phik correlation coefficient method;
[0052] When implementing it, Figure 3 As shown, according to the global feature generation method of the DeepAR model, hierarchical timestamps such as week, month and year can be generated as prediction variables and unknown timestamps such as holidays or special events can be generated as auxiliary variables. Then, influencing factors related to the prediction features are added, including the traffic characteristics of the two business ports. At the same time, the Phik correlation coefficient is used to measure the correlation between the prediction variables and the auxiliary variables, and the variables with higher correlation are screened out to form the second feature set.
[0053] S104, inputting the first feature set and the second feature set into a GRU model respectively, and then inputting the output values of the two GRU models into a feature fusion layer to obtain a prediction model corresponding to the target power grid host;
[0054] In the specific implementation, considering that the first feature set and the second feature set are feature data of different dimensions, the first feature set and the second feature set can be respectively input into a GRU model, and the huge historical information features can be extracted as a relatively simple and efficient feature input under the premise of making full use of historical information. Of course, the mean of the k neighbors near the historical value time node can also be input into the GRU model to retain local information, and then the output values of the two GRU models can be input as follows Figure 4 The feature fusion layer shown obtains the prediction model corresponding to the target power grid host, thereby improving the prediction accuracy of the prediction model.
[0055] S105, obtaining a load prediction interval corresponding to the target power grid host according to the prediction model and the test set.
[0056] For example, when it is necessary to predict the load of the target power grid host for a period of time in the future, after obtaining the prediction model, the test set can be input into the prediction model to obtain the prediction interval corresponding to the target power grid host. Of course, the prediction interval can also be compared and analyzed with the actual interval in subsequent data analysis, such as Figure 5 and Figure 6 shown.
[0057] The power grid host load prediction method based on Phik feature selection provided in this embodiment selects a first feature set that is more relevant to the prediction moment from the time dimension through the Person correlation coefficient, and obtains a second feature set by capturing nonlinear dependency data in historical data from the time series dimension using the Phik correlation coefficient. The two feature sets are then output through a feature fusion layer and combined with a test set to obtain a load prediction interval, thereby improving operating efficiency, adaptability, and prediction accuracy.
[0058] On the basis of the above embodiment, the step S103 of generating a second feature set according to the initial prediction model and the Phik correlation coefficient method includes:
[0059] Calculate the objective function corresponding to the static variables and influencing variables in the initial prediction model according to the Phik correlation coefficient method;
[0060] The objective function is solved by using the Brent method to form the second feature set.
[0061] As implemented, for unbound interval variables, apply an interval interval to each variable. Reasonable intervals are usually the norm for the use case. As a default, there are 10 uniform intervals per variable. Fill in a contingency table for the selected variable pairs, with N records, r rows and k columns. Use Pearson's x 2 Test statistics and statistical frequency estimates to evaluate x 2 Contingency test. 2 Interpreted as a bivariate normal distribution from no statistical inference
[0062] a) If Set ρ to 0;
[0063] b) Otherwise, use fixed N, r, k and transform function, for example using Brent's method and numerically solving for ρ in the range [0,1];
[0064] c) The solution of ρ is defined as the correlation coefficient Phik.
[0065] The method can be generalized to more variables by using multivariate Gaussian functions instead of bivariate Gaussian functions.
[0066] The chi-square test can analyze the degree of fit of a variable, such as the goodness of fit test (binomial distribution, Poisson distribution and normal distribution). It can also be used to analyze the relationship between two variables: whether they are independent of each other and whether they come from the same population. For two variables A and B, a contingency table is used for analysis. Among them, variable A has c categories and variable B has r categories. i is often used to represent rows and j is used to represent columns, then i=1,2,…,r; j=1,2,…,c; nij represents the frequency of the i-th row and j-th column, and n represents the total frequency, that is, the sample size.
[0067] Pearson 2 The test formula is: o ij represents the actual frequency of the actual i-th row and j-th column, and E ij The calculation formula is: The integral of the bivariate normal distribution in the interval ij is: in, and is the sample mean. It is worth noting that ρ is symmetric on x and y, and ρ∈[-1, 1].
[0068]
[0069] Among them, σ x (σ y ) is the width of the probability distribution in x(y), and the correlation parameter ρ represents the linear association between x and y.
[0070] Then the sum of all intervals is:
[0071] Considering the need to account for noise, a sample-specific benchmark pedestal can be introduced, which is related to the effective number of degrees of freedom n for bivariate samples. sdof A simple estimate is about:
[0072] n sdof =(r-1)(k-1)-n empty (expected), where empty(expected) is the number of empty intervals of the sample correlation frequency estimate, and Pedestal is defined as:
[0073] The noise floor can be configured via parameter c, which by default is set to 0.
[0074] Maximum possible x for limit testing 2 The values are:
[0075]
[0076]
[0077] Furthermore, the step of solving the objective function by the Brent method to form the second feature set includes:
[0078] Iterate the objective function according to the mean value theorem to calculate the stationary point;
[0079] All the stationary points form the second feature set.
[0080] Specifically, Brent's method is a combination of bisection method, secant method and inverse quadratic interpolation method. In each iteration, Brent's method will determine which of the three methods works best, and then use this method to run an iteration. For example, according to the mean value theorem, the objective function f is iterated. If the function values f(a)f(b) of the two endpoints a and b of the objective function f are <0, then there must be a stationary point between (a, b) (the derivative is 0). We can continue to iterate and eventually obtain the stationary point, and then perform the second feature set on all the main ends.
[0081] Optionally, after the step of extracting historical data corresponding to the target power grid host and dividing the historical data into a training set and a test set, the method further includes:
[0082] The KNN interpolation method is used to complete the missing point data in the training set and the test set.
[0083] In specific implementation, considering that various interference factors may cause data missing in historical data, the KNN interpolation method can be used to complete the missing point data in the training set and the test set according to the data missing situation, so as to improve the subsequent prediction accuracy.
[0084] Optionally, the feature fusion layer includes a gate mechanism and a multi-layer perceptron.
[0085] In specific implementation, the gate mechanism and the multi-layer perception layer can be used to form the feature fusion layer, and more efficient and accurate data fusion processing can be performed on the first feature set and the second feature set, so that the parameters in the prediction model can be obtained with higher accuracy.
[0086] See also Figure 7The embodiment of the present disclosure further provides an electronic device 70, which includes: at least one processor and a memory in communication with the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the power grid host load prediction method based on Phik feature selection in the aforementioned method embodiment.
[0087] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the power grid host load prediction method based on Phik feature selection in the aforementioned method embodiment.
[0088] The embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the power grid host load prediction method based on Phik feature selection in the aforementioned method embodiment.
[0089] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 70 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0090] like Figure 7 As shown, the electronic device 70 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 70 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0091] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication device 709 may allow the electronic device 70 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 70 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0092] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0093] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0094] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0095] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can execute the relevant steps of the method embodiment.
[0096] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can perform the relevant steps of the method embodiment.
[0097] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0098] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0099] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware.
[0100] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
[0101] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for predicting power grid host load based on Phik feature selection, characterized in that: include: Extracting historical data corresponding to the target power grid host, and dividing the historical data into a training set and a test set; Performing Person correlation analysis on the initial features of the training set using the Person correlation coefficient method to obtain multiple time series components, and selecting the time series components whose correlation with the mean value of the label value meets the preset conditions as the first feature set; The first feature set is a feature set that is more relevant to the prediction moment and is selected from the time dimension through the Person correlation coefficient; Generate a second feature set based on the correlation between the prediction variables and the auxiliary variables in the training set according to the Phik correlation coefficient method; The second feature set is a feature set obtained by capturing nonlinear dependency data in historical data from the time series dimension through the Phik correlation coefficient; Inputting the first feature set and the second feature set into a GRU model respectively, and then inputting the output values of the two GRU models into a feature fusion layer to obtain a prediction model corresponding to the target power grid host; According to the prediction model and the test set, a load prediction interval corresponding to the target power grid host is obtained.
2. The method according to claim 1, characterized in that The step of generating a second feature set based on the correlation between the prediction variables and the auxiliary variables in the training set according to the Phik correlation coefficient method includes: Calculate the objective function corresponding to the static variables and the influencing variables in the initial prediction model according to the Phik correlation coefficient method; The objective function is solved by using the Brent method to form the second feature set.
3. The method according to claim 2, characterized in that The step of solving the objective function by using the Brent method to form the second feature set includes: Iterate the objective function according to the mean value theorem to calculate the stationary point; All the stationary points form the second feature set.
4. The method according to claim 1, characterized in that: After the step of extracting the historical data corresponding to the target power grid host and dividing the historical data into a training set and a test set, the method further includes: The KNN interpolation method is used to complete the missing point data in the training set and the test set.
5. The method according to claim 1, characterized in that The feature fusion layer includes a gate mechanism and a multi-layer perceptron.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the power grid host load prediction method based on Phik feature selection according to any one of the preceding claims 1-5.
7. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the power grid host load prediction method based on Phik feature selection according to any one of claims 1 to 5.
