A self-correcting prediction method for multi-dimensional time series power material inventory data in a big data environment

By adopting the self-correction forecasting method of multi-dimensional time series power material inventory data in a big data environment, using the incremental probability transfer matrix and the stochastic evolving recurrent neural network, the accuracy, efficiency and feasibility problems of power material demand forecasting in power grid projects are solved. It achieves accurate cross-stage forecasting of power material demand and reduces inventory management risks.

CN113869597BActive Publication Date: 2024-09-06WUHAN NARI LIABILITY OF STATE GRID ELECTRIC POWER RES INST +5
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111186909.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2024-09-06
Estimated Expiration
2041-10-12

AI Technical Summary

Technical Problem

Existing technologies have accuracy, efficiency and feasibility problems in predicting power material demand in power grid projects. This is mainly due to the lack of detailed project construction information and schedule uncertainty, which leads to inaccurate inventory forecasts, which in turn affects the project construction progress or causes a backlog of materials.

Method used

The self-correction prediction method of multi-dimensional time series power material inventory data in the big data environment is adopted, and the cross-stage forecast of power material demand is realized through the unification of multi-source and multi-dimensional data formats, the construction of incremental probability transfer matrices and the stochastic evolution of recurrent neural networks.

Benefits of technology

It improves the accuracy, efficiency and feasibility of power supply demand forecasting, can effectively adapt to changes in different development stages of the power industry, and reduces the risk of inventory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113869597B
    Figure CN113869597B
Patent Text Reader

Abstract

The present invention discloses a self-correction prediction method for multi-dimensional time series power material inventory data in a big data environment, relates to the technical fields of big data, artificial intelligence and information system, and comprises the following steps: S1. unifying the formats of multi-source and multi-dimensional data; S2. transfer matrix and state transfer of incremental probability; S3. prediction of transition probability across development stages; S4. training and prediction of randomly evolved recurrent neural networks; the present invention provides a power material attribute state transfer module designed for data within a stage, and a randomly evolved recurrent neural network designed for data across stages, so that the randomly evolved recurrent neural network can effectively predict the future power material demand across development stages through training models, and because the whole process calculation is in the form of tensor calculation, it is suitable for GPU to perform efficient calculation acceleration, thereby solving the problems of accuracy, efficiency and feasibility in the prediction of power material demand of power grid projects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of big data, artificial intelligence and information systems, and in particular to a self-correcting prediction method for multi-dimensional time series electric power material inventory data in a big data environment. Background Art

[0002] With the gradual increase in investment in distribution network construction, State Grid Corporation mainly purchases distribution network materials through agreement inventory procurement, which requires accurate prediction of the demand for various materials in order to maintain a stable supply of distribution network construction materials. At present, the prediction of agreement inventory procurement demand is generally a bottom-up process from the project department to the State Grid Material Department. First, each construction project department submits an annual material demand plan to the Provincial Company Material Department. On this basis, the Provincial Company Material Department calculates the actual annual procurement demand based on the current remaining amount of physical materials and the remaining amount of agreement inventory materials, compares, adjusts and analyzes the calculated actual procurement demand with the historical demand data, and forms the final procurement demand opinion to be reported to the State Grid Corporation Material Department or prepares for independent procurement;

[0003] With the strengthening of distribution network construction and the improvement of technical standards for power grid construction, the following problems exist in the process of agreement inventory demand management:

[0004] 1) The agreement inventory forecast led by the materials department, because there is no detailed basic information on project construction, can only refer to historical agreement procurement data and make appropriate adjustments on this basis, resulting in inaccurate forecasts of agreement inventory material demand;

[0005] 2) The project department submits the material demand for the project, and the material department summarizes and adjusts the demand to forecast the demand, because the ambiguity of the project scale and progress can easily lead to a certain deviation between the bidding and procurement material standards and quantities and the actual construction needs;

[0006] 3) The uncertainty of the project material usage cycle, the material procurement time cycle, and the order fulfillment status make it risky to meet the agreed inventory material demand, which may affect the project construction progress or cause material backlog. Summary of the invention

[0007] The present invention provides a self-correcting prediction method for multi-dimensional time series power material inventory data in a big data environment, which solves the technical problems in accuracy, efficiency and feasibility in the prediction of power material demand for power grid projects.

[0008] In order to solve the above technical problems, the present invention provides a self-correction prediction method for multi-dimensional time series power material inventory data in a big data environment, comprising the following steps:

[0009] A self-correcting prediction method for multi-dimensional time series power material inventory data under a big data environment, characterized by comprising the following steps:

[0010] Step S1. Unify the format of multi-source multi-dimensional data: generate a label vector for label data, and then convert the incremental frequency of non-quantitative data;

[0011] Among them, the incremental frequency of quantitative data is a method to unify the quantitative data format. It only calculates the frequency of the change rate of quantitative data under a pair of threshold amplitudes, that is, how often the quantitative data maintains its change rate between the two thresholds;

[0012] For data types that can be converted into quantitative data, incremental frequency conversion can also be implemented, because this type of data has the concept of change. As long as there is a change, the probability of the degree of change being in a certain characteristic state can be recorded;

[0013] The specific steps may include:

[0014] Step S101, if the data is quantitative numerical data, proceed to the next step; if the data is data that can be converted into quantitative numerical data, take the two data with the largest difference in the historical data and make a difference, take the absolute value of the difference as the denominator, take the original data as the numerator, and classify the interpolation according to the distribution of the historical data;

[0015] Step S102, recording the change range (increment) of the level of historical data in different periods according to the specific task;

[0016] Step S103, counting the frequency of occurrence of each change amplitude;

[0017] Step S104: Calculate the incremental probability.

[0018] In a big data environment, due to the large number of samples, the statistical frequency will converge to probability according to its distribution rate. Therefore, the historical increment frequency of power materials in a big data environment can be approximated to the increment probability.

[0019] Definition: Incremental Probability

[0020]

[0021] The function num() is a counting function, which means the number of states of the independent variable. t Indicates the state of the power material data at time t, Indicates the number of power materials in state i at time t-1; represents the number of power materials that change from state i at time t-1 to state j at time t; the quotient of the two is the frequency of the change from state i to state j. In the big data environment, this frequency converges to p according to the probability distribution P.ij , that is, the frequency under big data is approximated to probability, and this probability is the incremental probability.

[0022] Step S2. Transfer matrix and state transfer of incremental probability: construct the transfer matrix of incremental probability, transfer the state of power material attributes within a development stage, and finally select the data evolution within a development stage;

[0023] Among them, the transfer matrix formula of incremental probability is as follows:

[0024]

[0025] Where P(t-1,t) represents the incremental transfer matrix of the quantitative data of a certain attribute of the power material from time t-1 to time t, where the element p ij is the incremental transition probability, which indicates the probability of data transferring from state i to state j. According to this definition, the number of rows and columns of the matrix both represent the labels of the states. Therefore, when the range of data attribute values ​​can be divided into n state levels, an n-order square matrix can be generated.

[0026] Among them, within the same development stage, the relative stability of the data changes generated by a certain attribute of the same power material can be inferred from the Chapman-Kolmogonov equation:

[0027]

[0028] Among them, m means that the electric material has experienced m unit time, and P(t,t+m) represents the probability transfer matrix of the electric material after experiencing m unit time from time t. According to the Chapman-Kolmogonov equation, this multi-step transfer matrix is ​​equivalent to P m (t, t+1). P(t, t+1) is a one-step transfer matrix, which only experiences the time from t to t+1. Therefore, the specific probability value of each element can be obtained by calculating the incremental probability. Once an incremental probability transfer matrix is ​​determined, the transfer matrix P(t, t+m) after any m-step transfer can be obtained, where the element p ij It represents the probability that the electric power material will transfer from state i to state j after m unit time. It should be noted that 1≤m≤T, that is, the range of the positive integer m cannot be greater than the total time T of a development stage;

[0029] Among them, according to the transfer matrix formula of incremental probability, the column number of the attribute state transfer matrix is ​​also the mark of the state, so the probability of evolving to a new state can be obtained by the column number corresponding to each row element in the matrix P (t, t + m) after the transfer. When the state is defined as a numerical interval, the column number corresponding to the maximum element of each row corresponds to the maximum probability of evolving to this state interval, and this state interval is used as the attribute evolution prediction result within a development stage;

[0030] Step S3. Prediction of transition probability across development stages: first, randomly evolve the recurrent neural network, then construct the randomly evolved recurrent neural network, and finally define the development stage;

[0031] Among them, the random evolution recurrent neural network is a neural network that has been randomly transformed. The difference from the standard recurrent neural network is that in the interval of each cycle, a data state transfer process in step S2 is added. The process involves constructing a transfer matrix of the incremental probability of power materials, which requires statistical historical equipment historical data information. The input of historical information is used as information correction for its development stage. The entire random recurrent neural network is in a state of continuous correction. Since historical data needs to be frequencyized, the frequency results of each statistics are different. Therefore, each predicted device attribute data has multiple evolution possibilities. These evolved data are decoded by the parameters transmitted from the hidden layer of the previous development period to finally output the prediction result of demand.

[0032] Among them, the construction of random evolution recurrent neural network includes the following modules:

[0033] (1) Power material attribute data X: Power material attribute data refers to technical and non-technical data related to power materials. Any generated data related to power materials and changing over time can be used as power material attribute data X;

[0034] (2) Coding parameter U: Coding parameter U is a coding matrix, which is used to encode the input power materials. The coding is performed by matrix multiplication of the input parameter vector, that is, X·U, where X is the attribute data vector of the power material, and U is the coding parameter matrix. The parameters in the U matrix are randomly initialized at the initial moment to assign element values;

[0035] (3) Hidden layer: The hidden layer parameters are the parameter matrix W of the hidden layer in the recurrent neural network. The relationship between the hidden layer parameters, the encoding matrix U and the input data X is as follows:

[0036] h T =φ(U T X T +W T-1 h T-1 +b)

[0037] where h T Indicates the encoding information of the hidden layer in the development stage T, U T is the encoding matrix at stage T, X T is the input data vector at stage T, W T-1 is the parameter matrix at stage T-1, h T-1represents the encoding vector of the hidden layer in the development stage T-1, b represents the bias vector, and the function φ() represents a nonlinear activation function. Its specific analytical expression can be determined according to the specific task, but it needs to ensure that it has nonlinearity. According to the previous experimental experience of this study, in the prediction of power material demand, φ() chooses the tanh function as its specific form, which has a more significant effect; that is:

[0038]

[0039] The role of nonlinear activation function is to activate the linear code in the neural network, simulating the operation of biological neurons to learn and identify the semantic patterns contained in massive data;

[0040] It can be found that the information transfer in the hidden layer defined in (3) is in a recursive form, because its output h T Not only the input X of the current stage T It is also related to the output h of the hidden layer in the previous stage. T-1 Related, so X T It actually undertakes the function of updating the data of the current development stage, and it only needs to count the attribute data of power materials at the beginning of this development stage, because the later data of this stage can be directly estimated and solved by the attribute state transfer method in step S2, h T-1 It takes on the function of sequence memory, passing the parameters of the past (T-1) to the current (T), and after the parameters are updated, passing the current parameters to the next cycle;

[0041] (4) Output layer: Each time the hidden layer output information h is cycled, it is matrix multiplied with the output layer parameter matrix V in the output layer, and then activated by the activation function to output the demand forecast result Y, that is:

[0042] O T =Vh T +c

[0043] Among them, T represents the output layer information of the development stage T, V represents the parameter matrix of the output layer, and c represents the bias of the output layer. At this time, the calculation of the output result can be constructed according to the specific prediction requirements;

[0044] When the output result is in numerical form, there is

[0045] Y T =O T =Vh T +c

[0046] That is, directly let Y T =O T , prediction result Y T is the value of the regression form

[0047] When the output result is in discrete form such as classification or range prediction, a softmax activation function can be constructed

[0048]

[0049] Among them, n represents the total number of neurons in the output layer. Through the softmax function, the predicted value can be mapped to probability, and the value with the largest probability is the classification result;

[0050] (5) Attribute state transfer module and predicted attribute data module: The attribute state transfer module executes the probabilistic attribute state transfer in step S2;

[0051] Step S4. Training and prediction of random evolution recurrent neural network: first input data and input labels, then model training, and finally model prediction; the time experienced in each development stage is different, but no matter how long the time is, it is only necessary to correspond this time to the number of times the state transfer matrix is ​​multiplied. Because at the same development stage, external factors have little impact on the prediction results, it is only necessary to multiply the matrices in a way that consumes less computing resources to obtain the prediction data evolution information within the stage. The function of the prediction attribute data module is equivalent to that of the electric power material attribute data module. The difference between them is that the data in the prediction attribute data module is calculated through the probability transfer of the attribute state, rather than the real data. This is because when the electric power material data prediction task is across development stages, the data of any stage occurs in the future. Therefore, at this time, the state transfer solution can only be performed by presetting the attribute state transfer matrix of the development stage.

[0052] In step S1, the multi-source multi-dimensional data are divided into two categories. The first category is labeled data, which refers to a type of data that is difficult to quantify, and the second category is quantitative data, which refers to data that can be quantified or converted into quantitative values.

[0053] The construction of the incremental probability transfer matrix in step S2 is used to predict the data evolution of electric power materials within a development cycle.

[0054] Among them, the input data in step S4 is to input historical real data into the stochastic evolution recurrent neural network, and it should be noted that the time series length represented by the data needs to include at least one development stage.

[0055] Compared with the related art, the self-correction prediction method for multi-dimensional time series power material inventory data in a big data environment provided by the present invention has the following beneficial effects:

[0056] The present invention provides a method for predicting equipment demand through power material data of historical projects, probabilistically unifying the data format, adopting the design idea of ​​divide-and-conquer and then merging the data within the development stage and across stages of power materials, designing a power material attribute state transfer module for the data within the stage, and designing a random evolution recurrent neural network for the cross-stage data. By training the model, the random evolution recurrent neural network can effectively predict the future power material demand across the development stage, and because the whole calculation is in the form of tensor calculation, it is suitable for GPU to perform efficient calculation acceleration, thereby solving the problems of accuracy, efficiency and feasibility in the prediction of power material demand of power grid projects. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a schematic diagram of the overall structure of the randomly evolved recurrent neural network across development stages of the present invention. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] In an embodiment, a self-correcting prediction method for multi-dimensional time series power material inventory data in a big data environment is characterized by comprising the following steps:

[0060] Step S1. Unify the format of multi-source multi-dimensional data: generate a label vector for label data, and then convert the incremental frequency of non-quantitative data;

[0061] Step S2. Transfer matrix and state transfer of incremental probability: construct the transfer matrix of incremental probability, transfer the state of power material attributes within a development stage, and finally select the data evolution within a development stage;

[0062] Step S3. Prediction of transition probability across development stages: first, randomly evolve the recurrent neural network, then construct the randomly evolved recurrent neural network, and finally define the development stage;

[0063] Step S4. Training and prediction of the randomly evolved recurrent neural network: first input data and input labels, then model training, and finally model prediction.

[0064] In step S1, the multi-source multi-dimensional data is divided into two categories: the first category is labeled data, which refers to data types that are difficult to quantify; the second category is quantitative data, which refers to data that can be quantified or converted into quantitative values;

[0065] The incremental frequency of the quantitative data in S1 is a method for unifying the quantitative data format, which only calculates the frequency of the quantitative data change rate occurring under a pair of threshold amplitudes, that is, how often the quantitative data maintains its change rate between the two thresholds;

[0066] The construction of the incremental probability transfer matrix in step S2 is used to predict the data evolution of electric power materials in a development cycle;

[0067] Among them, the input data in step S4 is to input historical real data into the stochastic evolution recurrent neural network, and it should be noted that the time series length represented by the data needs to include at least one development stage.

[0068] The specific implementation is as follows:

[0069] Step 1: Unify the formats of multi-source and multi-dimensional data

[0070] The prediction of power material demand involves the analysis and learning of a large amount of multi-source high-dimensional historical data. These data have their own types and formats, so the data formats need to be unified. The present invention divides multi-source multi-dimensional data into two categories. The first category is labeled data, which refers to data types that are difficult to quantify, such as equipment name, equipment number, etc. The second category is quantitative data, which refers to data that can be quantified or converted into quantitative values, such as amount, demand quantity, project voltage level, etc.

[0071] 1.1 Generate label vectors for labeled data

[0072] For marked data, One-Hot vectors are used for encoding. The vector dimension represents the number of attribute values ​​contained in the marked data attribute. Only the marked attribute values ​​in the vector are set to 1, and the unmarked attribute values ​​are set to 0. A vector can only represent one attribute value under the attribute. Therefore, the One-Hot vector corresponds to the attribute value one by one.

[0073] For example, the name of the new project is "Power Grid Transformation-A", its data attribute is "New Project Name", and the attribute value is marked as "Power Grid Transformation-A". Suppose there are n attribute values ​​under the new project attribute, among which "Power Grid Transformation-A" is the kth attribute value, then the following tag vector can be generated

[0074]

[0075] Among them l n The tag vector representing the nth attribute value under attribute l (name of new project) marks the "Grid Transformation-A" project. By this method, all tagged data can be unified into vector data by one-to-one correspondence of the tag vectors.

[0076] 1.2 Incremental frequency conversion of non-quantitative data

[0077] The incremental frequency of quantitative data is a method proposed by the present invention to unify the quantitative data format. It only calculates the frequency of the quantitative data change rate occurring under a pair of threshold amplitudes, that is, how often the quantitative data maintains its change rate between the two thresholds;

[0078] For example, in historical data, the frequency of the total amount of new projects in month k increasing by 10% compared with the total amount of new projects in month k-1 is 0.8, the frequency of the increase by 15% is 0.1, and the frequency of other proportions is 0.1. Therefore, no matter what the original type of quantitative data is, it can be unified into a frequency value between 0 and 1 through the statistical method of incremental frequency;

[0079] For data types that can be converted into quantitative data, incremental frequency conversion can also be implemented. Because this type of data has the concept of change, as long as the change occurs, the probability of the degree of change being in a certain characteristic state can be recorded. For example, the demand for high voltage, medium voltage, and low voltage of project equipment changes. The difference between high voltage and low voltage can be set to 2 levels of voltage, then the corresponding value of high voltage to low voltage is -2, the corresponding value of high voltage to medium voltage is -1, and the corresponding value of medium voltage to high voltage is +1. In fact, this kind of intermediate process can take a variety of quantitative equivalent transformation methods, but in the end, it is only necessary to count the frequency of this change rate falling within a specific range.

[0080] An example can be divided into 4 sub-steps:

[0081] (1) If the data is quantitative numerical data, proceed to the next step. If the data can be converted into quantitative numerical data, take the two data with the largest difference in the historical data and make a difference. The absolute value of the difference is used as the denominator and the original data is used as the numerator. The interpolation is classified into levels according to the distribution of the historical data.

[0082] (2) Record the change (increment) of historical data levels at different periods according to specific tasks;

[0083] (3) Count the frequency of each change range;

[0084] (4) Calculate the incremental probability.

[0085] In a big data environment, due to the large number of samples, the statistical frequency will converge to probability according to its distribution rate. Therefore, the historical increment frequency of power materials in a big data environment can be approximated to the increment probability.

[0086] Definition: Incremental Probability

[0087]

[0088] The function num() is a counting function, which means the number of states of the independent variable. t Indicates the state of the power material data at time t, Indicates the number of power materials in state i at time t-1; represents the number of power materials that change from state i at time t-1 to state j at time t; the quotient of the two is the frequency of the change from state i to state j. In the big data environment, this frequency converges to p according to the probability distribution P. ij , that is, the frequency under big data is approximated to probability, and this probability is the incremental probability.

[0089] Step 2: Transfer matrix and state transfer of incremental probability

[0090] 2.1 Construction of incremental probability transfer matrix

[0091] When all quantitative data are unified into incremental probabilities, they can be included in a consistent mathematical category for analysis. The changing states of all attributes involved in power project requirements can be represented by a one-to-one corresponding matrix. This matrix is ​​called the incremental probability transfer matrix in this paper. Its function is to predict the data evolution of power materials in a development cycle.

[0092] Definition 1: Transfer matrix of incremental probability

[0093]

[0094] Where P(t-1,t) represents the incremental transfer matrix of the quantitative data of a certain attribute of the power material from time t-1 to time t, where the element p ij is the incremental transition probability, which represents the probability of data transferring from state i to state j. According to this definition, the number of rows and columns of the matrix both represent the labels of the states. Therefore, when the range of data attribute values ​​can be divided into n state levels, an n-order square matrix can be generated.

[0095] 2.2 Transfer of power material attribute states within a development stage

[0096] In the same development stage, the data changes of a certain attribute of the same power material are relatively stable, which can be inferred from the Chapman-Kolmogonov equation:

[0097]

[0098] Among them, m means that the electric material has experienced m unit time, and P(t,t+m) represents the probability transfer matrix of the electric material after experiencing m unit time from time t. According to the Chapman-Kolmogonov equation, this multi-step transfer matrix is ​​equivalent to P m(t, t+1). P(t, t+1) is a one-step transfer matrix, which only experiences the time from t to t+1. Therefore, the specific probability value of each element can be obtained by calculating the incremental probability. Once an incremental probability transfer matrix is ​​determined, the transfer matrix P(t, t+m) after any m-step transfer can be obtained, where the element p ij It represents the probability that the electric power material will be transferred from state i to state j after m units of time. It should be noted that 1≤m≤T, that is, the range of the positive integer m cannot be greater than the total time T of a development stage.

[0099] 2.3 Data evolution selection within a development stage

[0100] According to Definition 1, the column number of the attribute state transfer matrix is ​​also the mark of the state. Therefore, the probability of evolving to a new state can be obtained by the column number corresponding to each row element in the matrix P(t, t+m) after the transfer; when the state is defined as a numerical interval, the column number corresponding to the maximum element of each row corresponds to the state interval with the highest probability of evolving to this state, and this state interval is used as the attribute evolution prediction result within a development stage.

[0101] Step 3 Prediction of transition probabilities across development stages

[0102] 3.1 Random Evolution Recurrent Neural Network

[0103] Learning and predicting serialized data are usually implemented using recurrent neural networks and their variants. However, due to the rapid development of the power industry, the demand data of power materials do not have significant temporal variation patterns in different development stages, but have significant variation patterns within the same development stage; therefore, the prediction model for the demand quantity of power materials needs to be able to self-correct and evolve in different development periods to adapt to external influencing factors at different development stages of the power industry; the present invention discloses a random evolutionary neural network, which is a recurrent neural network that has been randomly modified and can perform serialized self-correction predictions on the demand for power materials at different development stages;

[0104] A standard recurrent neural network can process serialized input information and output serialized prediction results. However, this structure does not have a self-correction mechanism, that is, when external factors change, the model parameters cannot be adjusted accordingly, and the prediction results are still made one-to-one based on the input data. The random evolution recurrent neural network is a neural network that has been randomly transformed. The difference from the standard recurrent neural network is that a data state transfer process is added in the gap between each cycle (see step 2.2). This process involves constructing a transfer matrix of the incremental probability of power materials, which requires statistical historical equipment data information. The input of historical information is used as information correction for its development stage. The entire random recurrent neural network is in a state of continuous correction, and because historical data needs to be frequencyized, the frequency results of each statistics are different. Therefore, each predicted device attribute data has multiple evolution possibilities. These evolved data are decoded by the parameters transmitted from the hidden layer of the previous development period to finally output the forecast results of demand.

[0105] 3.2 Constructing a Random Evolved Recurrent Neural Network

[0106] A complete random evolution recurrent neural network includes the following modules

[0107] (1) Power material attribute data X

[0108] Electric power material attribute data refers to technical and non-technical data related to electric power materials. As long as the generated data is related to electric power materials and changes with time, it can be used as electric power material attribute data X.

[0109] (2) Coding parameter U

[0110] (3) The coding parameter U is a coding matrix, which is used to encode the input power materials. The coding is performed by matrix multiplication of the input parameter vector, that is, X·U, where X is the attribute data vector of the power material, and U is the coding parameter matrix. The parameters in the U matrix are randomly initialized at the initial moment to assign element values.

[0111] (4) Hidden Layer

[0112] The hidden layer parameters are the parameter matrix W of the hidden layer in the recurrent neural network, and their relationship with the encoding matrix U and the input data X is as follows:

[0113] h T =φ(U T X T +W T-1 h T-1 +b)

[0114] where h TIndicates the encoding information of the hidden layer in the development stage T, U T is the encoding matrix at stage T, X T is the input data vector at stage T, W T-1 is the parameter matrix at stage T-1, h T-1 represents the encoding vector of the hidden layer in the development stage T-1, b represents the bias vector, and the function φ() represents a nonlinear activation function. Its specific analytical expression can be determined according to the specific task, but it needs to ensure that it has nonlinearity. According to the previous experimental experience of this study, in the prediction of power material demand, φ() chooses the tanh function as its specific form, which has a more significant effect. That is:

[0115]

[0116] The role of the nonlinear activation function is to activate the linear code in the neural network, simulating the operation of biological neurons to learn and identify the semantic patterns contained in massive data.

[0117] It can be found that the information transfer in the hidden layer defined in (5) is in a recursive form, because its output h T Not only the input X of the current stage T It is also related to the output h of the hidden layer in the previous stage. T-1 related to; so X T It actually undertakes the function of updating the data of the current development stage, and it only needs to count the attribute data of power materials at the beginning of this development stage, because the later data of this stage can be directly estimated and solved by the attribute state transfer method in step 2.2; h T-1 It takes on the function of sequence memory, passing the parameters of the past (T-1) to the current (T), and after the parameters are updated, passing the current parameters to the next cycle.

[0118] (5) Output layer

[0119] Each time the hidden layer output information h is cycled, it is matrix multiplied with the output layer parameter matrix V in the output layer, and then activated by the activation function to output the demand forecast result Y, that is:

[0120] O T =Vh T +c

[0121] Among them, T represents the output layer information of the development stage T, V represents the parameter matrix of the output layer, and c represents the bias of the output layer. At this time, the calculation of the output result can be constructed according to the specific prediction requirements;

[0122] When the output result is in numerical form, there is

[0123] Y T =O T =Vh T +c

[0124] That is, directly let Y T =O T , prediction result Y T is the value of the regression form

[0125] When the output result is in discrete form such as classification or range prediction, a softmax activation function can be constructed

[0126]

[0127] Among them, n represents the total number of neurons in the output layer. Through the softmax function, the predicted value can be mapped to probability, and the value with the largest probability is the classification result.

[0128] (6) Attribute state transfer module and predicted attribute data module

[0129] The attribute state transfer module executes the probabilistic attribute state transfer in step 2.2. The time experienced in each development stage is different, but no matter how long it is, it is only necessary to correspond this time to the number of times the state transfer matrix is ​​multiplied. Because at the same development stage, external factors have little impact on the prediction results, it is only necessary to multiply the matrices in a way that consumes less computing resources to obtain the prediction data evolution information within the stage. The function of the prediction attribute data module is equivalent to that of the power material attribute data module. The difference between them is that the data in the prediction attribute data module is calculated through the probability transfer of the attribute state, rather than the real data. This is because when the power material data prediction task is across development stages, the data at any stage occurs in the future. Therefore, at this time, the state transfer solution can only be performed by presetting the attribute state transfer matrix of the development stage, such as Figure 1 shown.

[0130] 3.3 Definition of Development Stages

[0131] In this study, a development stage refers to a time interval in which external factors have relatively little impact on electric power materials. In reality, this interval is related to many factors, such as national industrial policies, economic development level, energy structure upgrade, etc. Therefore, it is necessary to comprehensively examine various factors before determining the length of a development stage. However, in actual operation, since the task goal is to predict data such as the demand for electric power materials in the next stage, and the previous development stages are already historical data, it is easy to divide the duration of the development stage based on history.

[0132] Step 4: Training and prediction of stochastic evolution recurrent neural network

[0133] The purpose of training the random evolution recurrent neural network is to update all its internal parameters before performing the prediction task, so that it has strong generalization ability and prediction accuracy. The process can be divided into three sub-steps:

[0134] 4.1 Input Data

[0135] When inputting historical real data into the random evolution recurrent neural network, it is necessary to note that the time series length represented by the data must include at least one development stage. This makes the cyclic process meaningful. At the same time, the data in each development stage does not need to be calculated for attribute state transfer, and only the corresponding time data in the stage needs to be input as real samples; this is because the attribute state transfer is essentially used to overcome the cross-stage prediction task. In the prediction task, the data in the future development stage is not actually generated, so it can only be predicted by state transfer calculation. For the training stage, all data already exists and can be directly input.

[0136] 4.2 Input Tags

[0137] Simply assign labels corresponding to historical data to the output layer. When the label is a specific demand, directly enter a numerical value. When the label is a classification mark or interval range mark, enter the corresponding one-hot vector.

[0138] 4.3 Model Training

[0139] The model training process can adopt the standard training method. It should be noted that due to the big data nature of power material data, it is recommended to use GPU for tensor operations in practical applications to significantly improve the computing efficiency. It can be found that even if there is an additional attribute state transfer process in the prediction stage, it still belongs to tensor operations and can also be solved by GPU tensor operations. Therefore, the entire random evolution recurrent neural network can use GPU to complete the calculation throughout the training and prediction stages.

[0140] 4.4 Model prediction

[0141] When the training error of the randomly evolved recurrent neural network drops to a set threshold, the model training ends, and the parameters U, W, and V have reached the optimal level. At this time, new data can be input to input the corresponding prediction results.

[0142] To sum up, the demand for electric power materials is closely related to many factors, such as equipment types and models, number, amount and duration of new projects, number, amount and duration of reconstruction projects, number, amount and duration of expansion projects, different levels of electromagnetic indicators, total length of project lines, etc. Therefore, this type of data has multi-source and high-dimensional properties; with the development of the electric power industry, new projects will be generated or old projects will be rebuilt in different periods, and the reference data is of time series type, so the demand forecast for electric power materials is a typical multi-dimensional time series data forecasting problem; in practice, the traditional method has always been weak in predicting historical power data. This is because the power industry is developing rapidly, and historical data may be applicable to the development stage at that time, but not to the current stage. Rapid development has resulted in a shorter time span for each stage, which has put forward requirements for the self-correction of data, that is, the grasp of historical data must be consistent with the development stage at that time, and the prediction of equipment demand in the current period based on the historical data of the previous period must be consistent with the development stage of the current period; therefore, the prediction model needs to have the ability to correct the model according to the current development stage and improve the accuracy of equipment demand prediction. This method can be used to solve the problem of power material demand prediction for power grid projects. The power material data in the power grid system has three characteristics: first, the data is time-series, which is typical time series data; second, the data volume is extremely large, which is typical big data; third, the data dimension is high, and the data attributes and formats of power material records are diverse. The data has a high dimension; in order to predict the equipment demand through the power material data of historical projects, the data format is probabilistically unified, and the design idea of ​​divide-and-conquer and then merge the data within the development stage and across stages of power materials is adopted. A power material attribute state transfer module is designed for the data within the stage, and a random evolution recurrent neural network is designed for the cross-stage data. Through the training model, the random evolution recurrent neural network can effectively predict the future power material demand across development stages, and because the entire calculation is in the form of tensor calculation, it is suitable for GPU to perform efficient computing acceleration, thereby solving the problems of accuracy, efficiency and feasibility in the prediction of power material demand in power grid projects.

[0143] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0144] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is determined by the appended claims and their equivalents.

Claims

1. A self-correcting prediction method for multi-dimensional time series power material inventory data under a big data environment, characterized in that: The following steps are involved: Step S1. Unify the format of multi-source multi-dimensional data: generate a label vector for label data, and then convert the incremental frequency of non-quantitative data; Among them, the incremental frequency of quantitative data is a method to unify the quantitative data format. It only calculates the frequency of the change rate of quantitative data under a pair of threshold amplitudes, that is, how often the quantitative data maintains its change rate between the two thresholds; For data types that can be converted into quantitative data, incremental frequency conversion is implemented, because this type of data has the concept of change. As long as a change occurs, the probability of the degree of change being in a certain characteristic state is recorded; The specific steps include: Step S101, if the data is quantitative numerical data, proceed to the next step; if the data is data that can be converted into quantitative numerical data, take the two data with the largest difference in the historical data and make a difference, take the absolute value of the difference as the denominator, take the original data as the numerator, and classify the interpolation according to the distribution of the historical data; Step S102, recording the change range of the level of historical data in different periods according to the specific task, i.e., the increment; Step S103, counting the frequency of occurrence of each change amplitude; Step S104, calculating the incremental probability; In a big data environment, due to the extremely large number of samples, the statistical frequency will converge to probability according to its distribution rate; therefore, the historical increment frequency of power materials in a big data environment is similar to the increment probability; Definition: Incremental Probability The function num ( ) is a counting function, which means the number of states of the statistical independent variable. Indicates that the power material data is t The state at any moment, Indicates that power supplies are t -1 The state at the moment i The number of Indicates that power materials are from t -1 moment status i Change to t Status at all times j The quotient of the two is the number of i To status j The frequency of occurrence, which is distributed according to probability in a big data environment P Converge to , that is, the frequency under big data is approximated to probability, and this probability is the incremental probability; Step S2. Transfer matrix and state transfer of incremental probability: construct the transfer matrix of incremental probability, transfer the state of power material attributes within a development stage, and finally select the data evolution within a development stage; Among them, the transfer matrix formula of incremental probability is as follows: in Quantitative data representing a property of electric power materials from time t -1 to time t The incremental transfer matrix, where the elements is the incremental transition probability, indicating that the data changes from state i Transfer to state j According to this definition, the number of rows and columns of the matrix represent the labels of the state; therefore, when the range of data attribute values ​​is divided into n When the state level is n Order square array; Among them, within the same development stage, the relative stability of the data changes generated by a certain attribute of the same power material can be inferred from the Chapman-Kolmogonov equation: in, m Indicates that power supplies have experienced m Unit time, Indicates the power supply from time t Start Experience m The probability transfer matrix after unit time, according to the Chapman-Kolmogonov equation, this multi-step transfer matrix is ​​equivalent to ;and is a one-step transition matrix, which only experiences the time from t arrive t +1, so by calculating the incremental probability, we can get the specific probability value of each element. Once we determine an incremental probability transfer matrix, we can get any m The transfer matrix after the step transfer , where the elements Indicates the power material from the state i experience m The probability of transferring to state j after unit time, it should be noted that , that is, a positive integer m The scope cannot be greater than the total time of a development stage T ; Among them, according to the transfer matrix formula of incremental probability, the column number of the attribute state transfer matrix is ​​also the label of the state, so through the transfer matrix The column number corresponding to each row of elements in the equation is used to obtain the probability of evolving to a new state; when the state is defined as a numerical interval, the column number corresponding to the maximum element of each row corresponds to the state interval with the highest probability of evolving to this state interval, and this state interval is used as the prediction result of the attribute evolution within a development stage; Step S3. Prediction of transition probability across development stages: first, randomly evolve the recurrent neural network, then construct the randomly evolved recurrent neural network, and finally define the development stage; Among them, the random evolution recurrent neural network is a neural network that has been randomly transformed. The difference from the standard recurrent neural network is that in the interval of each cycle, a data state transfer process in step S2 is added. This process involves constructing a transfer matrix of the incremental probability of power materials, which requires statistical historical equipment historical data information. The input of historical information is used as information correction for its development stage. The entire random recurrent neural network is in a state of continuous correction. In addition, since historical data needs to be frequencyized, the frequency results of each statistics are different. Therefore, each predicted device attribute data has multiple evolution possibilities. These evolved data are decoded by the parameters transmitted from the hidden layer of the previous development period to finally output the prediction result of demand. Among them, the construction of random evolution recurrent neural network includes the following modules: (1) Power material attribute data X: Power material attribute data refers to technical and non-technical data related to power materials. As long as the generated data is related to power materials and changes over time, it is regarded as power material attribute data. X ; (2) Encoding parameters U: Encoding parameters U It is a coding matrix, which is used to encode the input power materials. The encoding is performed by matrix multiplication of the input parameter vector, that is: X·U ,in X is the attribute data vector of electric power materials, U is the encoding parameter matrix, U The parameters in the matrix are assigned element values ​​by random initialization at the initial moment; (3) Hidden layer: The hidden layer parameters are the parameter matrix of the hidden layer in the recurrent neural network. W , which is consistent with the encoding matrix U and input data X The relationship is as follows: in Indicates that it is in the development stage T The coded information of the hidden layer is Liang. It is in the development stage T The encoding matrix, It is in the development stage T The input data vector is It is in the development stage T -1 parameter matrix, Indicates that it is in the development stage T -1 encoding vector of the hidden layer, b represents the bias vector, function Represents a nonlinear activation function, and its specific analytical expression is determined according to the specific task, but it needs to ensure that it has nonlinearity; according to the previous experimental experience of this study, in the prediction of power material demand, The effect of choosing the tanh function as its specific form is more significant; that is: The role of nonlinear activation function is to activate the linear code in the neural network, simulating the operation of biological neurons to learn and identify the semantic patterns contained in massive data; It can be found that the information transfer in the hidden layer defined in (3) is in a recursive form, because its output Not only the input of the current stage It is also related to the output of the hidden layer in the previous stage. about, so It actually undertakes the function of updating the data of the current development stage, and it only needs to count the attribute data of power materials at the beginning of this development stage, because the later data of this stage can be directly estimated and solved by the attribute state transfer method in step S2. It takes on the function of sequence memory, which is passed on to the past ( T -1) parameter in the current ( T ), after the parameters are updated, the current parameters are passed to the next cycle; (4) Output layer: Output information of the hidden layer in each cycle h In the output layer and the output layer parameter matrix V Perform matrix multiplication, then be activated by the activation function, and output the demand forecast result Y, that is: in Indicates the stage of development T The output layer information, V represents the parameter matrix of the output layer, c Represents the bias of the output layer, at which point the calculation of the output result is constructed according to the specific prediction requirements; When the output result is in numerical form, there is Direct Order , prediction results is the numerical value of the regression form; When the output result is in the form of classification or range prediction discrete form, construct a softmax activation function in, n Represents the total number of neurons in the output layer. The predicted value is mapped to probability through the softmax function, and the value with the largest probability is the classification result; (5) Attribute state transfer module and predicted attribute data module: The attribute state transfer module executes the probabilistic attribute state transfer in step S2; Step S4. Training and prediction of random evolution recurrent neural network: first input data and input labels, then model training, and finally model prediction; the time experienced in each development stage is different, but no matter how long the time is, it is only necessary to correspond this time to the number of times the state transfer matrix is ​​multiplied. Because at the same development stage, external factors have little impact on the prediction results, it is only necessary to multiply the matrices in a way that consumes less computing resources to obtain the prediction data evolution information within the stage. The function of the prediction attribute data module is equivalent to that of the electric power material attribute data module. The difference between them is that the data in the prediction attribute data module is calculated through the probability transfer of the attribute state, rather than the real data. This is because when the electric power material data prediction task is across development stages, the data of any stage occurs in the future. Therefore, at this time, the state transfer solution can only be performed by presetting the attribute state transfer matrix of the development stage.

2. According to the self-correction prediction method of multi-dimensional time series power material inventory data in a big data environment in claim 1, it is characterized in that: In step S1, the multi-source multi-dimensional data are divided into two categories. The first category is labeled data, which refers to data types that are difficult to quantify, and the second category is quantitative data, which refers to data that can be quantified or converted into quantitative values.

3. According to the self-correction prediction method of multi-dimensional time series power material inventory data in a big data environment in claim 1, it is characterized in that: The construction of the incremental probability transfer matrix in step S2 is used to predict the data evolution of electric power materials within a development cycle.

4. According to the self-correction prediction method of multi-dimensional time series power material inventory data in a big data environment in claim 1, it is characterized in that: The input data in step S4 is historical real data input into the stochastic evolution recurrent neural network, and it should be noted that the time series length represented by the data needs to include at least one development stage.