Electric power material emergency supply prediction method based on dynamic network link

Through the dynamic network link prediction method, GRU and Transformer technologies are used to generate node embedding vectors, which solves the problem of unutilized time series information and noise influence in the emergency supply chain network, and achieves efficient prediction of the emergency supply chain of power supplies.

CN118586546AInactive Publication Date: 2024-09-03STATE GRID HUBEI ELECTRIC POWER CO LTD MATERIALS CO

Patent Information

Application Number
CN202410647654.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The time series information of the emergency supply chain network is not fully utilized, and there is noise and data sparsity, which makes traditional methods unable to effectively extract features and predict dynamic links.

Method used

The dynamic network link prediction method is used to learn node incremental evolution characteristics and graph structure characteristics through the GRU network, combined with the Transformer encoder and MLP network, to generate node embedding vectors for dynamic link prediction.

Benefits of technology

Efficient prediction of the emergency supply chain of power supplies is achieved, and time series and graph structure information can be effectively used to reduce the impact of noise and improve prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586546A
    Figure CN118586546A
Patent Text Reader

Abstract

The invention belongs to the technical field of computers, and particularly relates to an electric power material emergency supply prediction method based on a dynamic network link. According to the method, on the basis of encoding discrete historical data of a supply chain network, a node time sequence state is updated through a plurality of historical interaction increments based on a time sequence state feature and a graph structure feature of a dynamic network link, and node representation is generated in combination with graph structure information to complete a task of dynamic link prediction. According to the method, the whole process from feature alignment cascade processing, feature fusion, dynamic node embedding generation to dynamic network link prediction is realized, and the supply and demand relationship change of electric power materials under the possible emergency condition in the future can be predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and in particular relates to a method for predicting the emergency supply of power materials based on dynamic network links. Background Technology

[0002] In reality, the interconnectedness of entities can usually be represented as a network, with entities as nodes and connections between them as edges or links. A supply chain network is a chain structure formed around a core enterprise's core products or services during the production and distribution process, encompassing raw material suppliers, manufacturers, distributors, delivery providers, and ultimately, end users. An emergency supply chain network refers to a supply chain network that responds to emergencies such as a significant increase in demand, severe supply shortages, or disruptions to supply chains caused by specific events. Predicting potential changes and risks within the supply chain network in advance maximizes its resilience and enhances its emergency response capabilities.

[0003] Like social networks, text networks, logistics networks, and shopping networks, emergency supply chain networks exhibit significant temporal and complex characteristics. Their topology constantly evolves due to the addition and disappearance of new entities and links, hence the term "dynamic network." Link prediction techniques in dynamic networks aim to predict the likelihood of a link forming between two nodes in the network based on node attributes and surrounding structure. Dynamic network link prediction specifically aims to predict future changes in links using historical network information.

[0004] In recent years, research on dynamic network link prediction has continuously provided core technical support for numerous application areas such as event prediction, social network discovery, recommender systems, and paper network mining. Dynamic network link prediction can infer the future behavior of nodes in a network and predict the network's evolutionary patterns and development trends. Emergency supply chain networks are a typical type of complex dynamic network with obvious temporal and complexity characteristics. Using dynamic network link prediction can reveal its operational patterns and predict possible future emergency supply behaviors.

[0005] While dynamic network link prediction has significant theoretical and applied value in many fields, including basic research, business, and social security, existing technologies still face the following problems and challenges in emergency supply chain prediction.

[0006] (1) The temporal information of the emergency supply chain network needs to be further utilized. As entities are constantly added or deleted from the emergency supply chain network over time, it is an important challenge to make timely use of these dynamically arriving new data to update the learned network representation, while also taking into account the use of historical data and ensuring the efficiency of the algorithm.

[0007] (2) Fault Tolerance of Feature Extraction in Emergency Supply Chain Networks. With the diversification of information sources in emergency supply chain networks, a significant amount of noise and even erroneous information is often present. Data sparsity in the network results in relatively little effective information, and the catastrophic dimensionality of the adjacency matrix renders many traditional global graph-based analysis methods unusable. Achieving effective feature extraction, processing and filtering noise, and preserving the network's effective high-order structural information presents a challenge. Summary of the Invention

[0008] To address the shortcomings of existing technologies, this invention proposes a method for predicting the emergency supply of power materials based on dynamic network links. This method can fully utilize the temporal state characteristics and graph structure characteristics of dynamic network links to predict the emergency supply of power materials.

[0009] To achieve the above objectives, the technical solution of the present invention is to update the timing state of nodes incrementally through historical interactions and generate node representations by combining graph structure information for predictive tasks of the emergency power supply chain.

[0010] A method for predicting emergency power supply based on dynamic network links, characterized by including:

[0011] The discrete historical data of the emergency power supply chain network are encoded using a dynamic network to obtain the first database.

[0012] A temporal state incremental update subnetwork and a graph structure feature extraction subnetwork are constructed. The temporal state incremental update subnetwork learns the incremental evolution features of nodes based on the GRU network and outputs the hidden state of the next node. The graph structure feature extraction subnetwork performs feature extraction and outputs the extracted features.

[0013] A dynamic node embedding generation subnetwork is constructed. The features output from the temporal state incremental update subnetwork and the graph structure feature extraction subnetwork are sequentially divided, aligned, and concatenated to generate a feature matrix of the key points to be predicted. This matrix is ​​then fed into the Transformer encoder, where a self-attention mechanism is used to fuse the features. The output hidden representation is passed through an intensity calculation layer, where influence decay weighting is performed to obtain the final node embedding vector. Finally, the vector is fed into an MLP (Multilayer Perceptron) network to output the dynamic link prediction results.

[0014] The input node pairs to be predicted are sequentially updated through the temporal state incremental update subnetwork and the graph structure feature extraction subnetwork, and finally through the dynamic node embedding generation subnetwork. Feature alignment and fusion are performed to generate the final node embedding representation and to calculate the dynamic link prediction task.

[0015] As a preferred approach, the input node pairs u and v to be predicted, such as u representing power material warehouse A and v representing supplier material warehouse B, are fed into the time-series state incremental update subnetwork and the graph structure feature extraction subnetwork, respectively, to obtain the time-series state features and graph structure features corresponding to nodes u and v. Then, the above features are fed into the dynamic node embedding generation subnetwork for feature alignment and fusion to generate the final node embedding representation and perform the calculation of the dynamic link prediction task.

[0016] As a preferred approach, when performing time-series coding, the emergency power supply chain network G consists of a set of network sequences with a chronological order, i.e., G = {G1, G2, ..., G...} T Each individual network is a snapshot of the emergency power supply chain network at a given point in time, where T represents the number of historical snapshots of the dynamic network G. The t-th snapshot can be represented as a set of points V. t The set of edges E t The constructed graph G t =(V t E t ), 1≤t≤T, where, v i ∈V represents node i in the network.

[0017] As a preferred option, the nodes in the emergency power supply chain network are divided into two categories: power supply warehouses and supplier warehouses. i ,v j )∈E is from v i to v j A directed edge, representing v i to v j There is material transportation. The weight of an edge is represented by the product of the transportation volume c of a certain material and the urgency level w of the material (0≤w≤1). Time t represents the moment when the power material emergency supply chain network exists.

[0018] As a preferred approach, in the temporal state incremental update sub-network, the state of the node most recently updated is read from the node state storage module. Then, combined with the temporal encoding information and edge weight information of this interaction, the incremental evolution characteristics of the node are learned through the GRU network, and the newly output hidden state of the next node is written into the node state storage module for subsequent use.

[0019] As a preferred approach, in the graph structure feature extraction subnetwork, the set of one-hop neighbors of corresponding nodes u and v is extracted, and then temporal feature extraction, common neighbor feature extraction, node feature extraction and edge feature extraction are performed respectively. These features are then fed into the dynamic node embedding generation subnetwork.

[0020] Preferably, in the dynamic node embedding generation subnetwork, the features output from the first two subnetworks are sequentially divided, aligned, and concatenated to generate feature matrices Z related to nodes u and v. u and Z v The data is then fed into a Transformer encoder, where a self-attention mechanism is used to fuse features. The output hidden representation is then processed by an intensity calculation layer, where an influence decay weighting calculation is performed to obtain the final node embedding vector. Finally, the vector is fed into an MLP (Multilayer Perceptron) network, which outputs the result of the dynamic link prediction. If the result is 0, it means that the prediction is that there will be no material transportation relationship between the power material warehouse A and the supplier material warehouse B at that moment.

[0021] As a preferred approach, during supply forecasting, the input nodes u and v, such as u representing power material warehouse A and v representing supplier material warehouse B, are fed into the time-series state incremental update subnetwork and the graph structure feature extraction subnetwork, respectively, to obtain the time-series state features and graph structure features corresponding to nodes u and v. Then, these features are fed into the dynamic node embedding generation subnetwork for feature alignment and fusion to generate the final node embedding representation and perform the calculation of the dynamic link prediction task. Attached Figure Description

[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly described below:

[0023] Figure 1 This is the calculation process of the GRU state transition module.

[0024] Figure 2 It is a process of feature segmentation, alignment, and cascading.

[0025] Figure 3 This is the overall processing flow of the neighbor differentiation aggregation module.

[0026] Figure 4 It is a forecasting process for emergency power supply based on dynamic network links. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0028] To address the problems existing in the prior art, this invention provides a method for predicting emergency power supply based on dynamic network links. The invention will be described in detail below with reference to the accompanying drawings.

[0029] 1. This invention designs a time-series state incremental iteration method based on GRU. As a time-series state incremental update sub-network, it mainly includes a time-series coding module, a node state storage module, and a GRU state iteration module.

[0030] (1) Timing coding module

[0031] Temporal graph neural networks (TMNs) typically generate dynamic node embeddings by extracting information from temporal neighbors. To capture additional temporal dependencies, TMNs primarily employ three methods to process neighbor information: grouping neighbors based on their occurrence time and learning sequences from these groups (i.e., snapshot-based TMNs); adding additional temporal encoding information for each past neighbor; and maintaining node memory to summarize the current state of each node. This invention mainly utilizes a combination of the second and third strategies to enhance the learning of temporal dependencies.

[0032] There are many types of temporal coding, the main purpose of which is to map time from the time domain to the number domain, converting it into an embedding vector for easier model processing. When designing temporal coding, it is necessary to consider whether the embedding result can capture periodic and aperiodic patterns, whether it can maintain stability under time scaling, and whether it is simple enough to be easily integrated with the model and applied to downstream tasks. This invention adopts the following coding method:

[0033] Δt=tt - #(1)

[0034] φ(Δt)=cos(ωΔt+b)#(2)

[0035] By calculating the relative time difference, a trainable periodic encoding is performed using a sine or cosine function. Since the encoded time information is fed into the Transformer encoder as a temporal feature and substituted into the original positional encoding for self-attention-based weight calculation, and since both the key matrix K and the query matrix Q are formed by adding or concatenating entity embeddings and temporal encodings, the temporal encoding only involves the calculation of the inner product during the computation process.

[0036]

[0037] Learning patterns with relatively long time spans are more likely to reveal key temporal information. Therefore, considering two time points t1 and t2, the ideal state is to combine <φ(t1), φ(t2)> with a self-attention mechanism. Thus, we define a time kernel K: T×T→R, mapping the inner product of time T×T to the real number field R, i.e.:

[0038]

[0039] The time kernel is translation invariant, therefore for a constant c, we have To reduce computational complexity while maintaining the approximate accuracy of the kernel function, a stochastic Fourier characteristic method is used for approximate calculation, resulting in the following R0. d Finite-dimensional temporal encoding function mapping:

[0040]

[0041] In the above formulas, 't' represents the calculated relative time difference, and 'ω' is generally a trainable parameter. However, calculating the gradient of the trained parameter 'ω' with respect to the cosine function reveals a positive correlation between the gradient and the value of 't'. Since the training data is sorted in ascending order of timestamps, the gradient fluctuates more significantly in the later stages of training as the relative time difference increases, leading to training instability.

[0042]

[0043] To address the gradient instability issue during later training, a sequence with a specific distribution can be used to initialize the frequency ω of the sine and cosine functions. Specifically, this invention uses an exponentially decreasing sequence with base 10 to fit the time coding function, and sets ω to be fixed and not updated during training.

[0044] (2) Node state storage module

[0045] The main function of the node state storage module is to retain the updated state of the node and serialize these states to disk for use in the verification and testing phases.

[0046] Specifically, for nodes with inconsistent historical interaction counts, a fixed number of neighbor samples cannot provide sufficient information to generate a dynamic node embedding at the current moment. Therefore, a node state storage module is needed to aggregate the historical interaction information of nodes and retain the node state after the most recent interaction. When a new interaction occurs, if the node becomes a temporal neighbor of other nodes, it can obtain supplementary information from the node state storage module, combine it with other features, and feed it into a recurrent neural network to perform a state transition. The output of the recurrent neural network is then written into the node state storage module.

[0047] This invention uses a dictionary to preserve the mapping from node IDs to node hidden state vectors, and uses the pickle standard library as the implementation method for serialization and deserialization.

[0048] (3) Node status integration

[0049] In dynamic networks, the length of historical interactions between nodes may vary. For nodes with long interaction histories, using a fixed number of neighbor sampling strategies may lead to the loss of useful historical information. This invention utilizes recurrent neural networks (RNNs) to address this issue. RNNs are renowned for their excellent processing capabilities for sequential data. By arranging a node's historical neighbors in chronological order and capturing the temporal dependencies within the historical neighbor sequences, RNNs achieve incremental integration of all historical neighbor information.

[0050] This invention employs a GRU state transition module to perform node state transitions based on newly arriving interactions, temporal information, and previous node state information. This module is primarily built upon GRU; like LSTM, GRU can solve the problems of long-term memory and gradient explosion during backpropagation. Furthermore, GRU has fewer parameters and lower computational complexity, significantly improving training efficiency.

[0051] The input-output structure of GRU is the same as that of a regular RNN, with one input being the current input x. t and the hidden state h passed down from the previous node t-1 The output is the output y of the currently hidden node. t and the hidden state h passed to the next node t The key step in GRU lies in the final memory update phase, which involves both forgetting and remembering operations simultaneously.

[0052]

[0053]

[0054] In the formula r t This represents the reset gate, used to control how past information should affect the current candidate hidden state. z t It is an update gate. The range of the gate signal is 0 to 1. The closer the gate signal is to 1, the more new input information is remembered, while the closer the gate signal is to 0, the more information is forgotten.

[0055] The calculation process of the GRU state transition module is as follows: Figure 1 As shown, node u and node v extract node features x through fully connected layers respectively. u,N and x v,N In this interaction, edge e is used to extract edge features x through a fully connected layer. E The timestamp t of this interaction is used to obtain feature x through temporal coding. T Nodes u and v will retrieve the previous hidden state representation h from the node state storage module. u (t - ) and hv (t - ) as their respective hidden states h t-1 Input GRU, another input x of GRU t The node features x obtained from the previous steps u,N and x v,N Edge features x E and time series features x T It is formed by cascading.

[0056] x T =φ d (t)#(9)

[0057] y u (t), h u (t)=GRU(h u (t - ), concat(x T x E x v,N ))#(10)

[0058] y v (t), h v (t)=GRU(h v (t - ), concat(x T x E x u,N ))#(11)

[0059] After the GRU performs memory update calculations internally, two outputs are obtained, where h is the output. u (t) and h v (t) will be written to the node state storage module for use when the next interaction arrives, y u (t) and y v (t) will be sent as the output of the GRU state change module to the subsequent dynamic node embedding generation subnetwork.

[0060] 2. This invention designs a neighbor differentiation aggregation method based on self-attention and intensity decay, which serves as a dynamic node embedding generation subnetwork. It mainly includes a feature block alignment concatenation module, a neighbor differentiation aggregation module, and a dynamic link prediction module.

[0061] (1) Feature block alignment and concatenation module

[0062] The feature block alignment concatenation module mainly processes the node temporal state features transmitted from the temporal state incremental update subnetwork. and And the node neighbor features derived from the graph structure feature extraction subnetwork. and The feature blocks are segmented, aligned, and concatenated together to obtain the concatenated feature [Z]. u ||Z v Then, it is sent to the subsequent neighbor differentiation aggregation module for dynamic node embedding generation.

[0063] First, extract one hop of historical interactions from nodes u and v, such as... Figure 2 As shown, two sets of historical interaction nodes are obtained. and The elements in the set are sorted in descending order of their occurrence time. The relative time difference between the occurrence time of each node in both sets and the current timestamp t to be predicted is calculated, and then time-series encoded using a time encoder to obtain the time-series encoded features. and The node features and edge weight features of the nodes in the two sets are encoded using fully connected layers respectively. and as well as and In order to consider both the existing It appeared again The characteristics of common neighbor nodes in the set were used to encode neighbor co-occurrence. and For example, the frequencies of elements a, b, and c in the two sets are 1 / 2, 2 / 1, and 0 / 1, respectively. Therefore, we obtain... and Then, a two-layer MLP with ReLU as the activation function is used to obtain the collinearity feature of neighbors. and

[0064]

[0065]

[0066] Secondly, it is about and The process of performing block division, alignment, and concatenation operations. To control the length of the input Transformer sequence, [the following is done / implemented]. and This paper utilizes a block-based technique to merge multi-row matrices into a single row. Assuming the block size is P, and considering node features... For example, It will be split into Block, to obtain a new feature matrix Other features and It is obtained through the same processing method. This is to combine the above-mentioned segmented features with temporal state features. and Alignment is performed to the same dimension d using a fully connected layer. For example, the alignment is obtained using the following formula. Among them W N and b N These are trainable parameters.

[0067]

[0068]

[0069] A similar alignment method can be used to obtain... and temporal state characteristics Finally, these aligned features are concatenated horizontally to obtain... Similarly, for and The same processing method can be used to obtain...

[0070]

[0071]

[0072] Finally and Cascading yields [Z] u ||Z v It is then sent to the subsequent neighbor differentiation aggregation module.

[0073] (2) Neighbor Differentiation Aggregation Module

[0074] The neighbor differentiation aggregation module consists of two parts: a Transformer encoder and an intensity calculation layer. The Transformer encoder utilizes a self-attention mechanism to process the cascaded features [Z]. u ||Z v Feature fusion is performed to obtain the fused feature representation. Subsequently, the intensity calculation layer calculates the intensity function, redistributes the weights of the influence of different historical neighbors, and outputs the dynamic node representations corresponding to nodes u and v. and

[0075] The Transformer encoder mainly consists of four parts: positional encoding, multi-head attention, residual connections and normalization, and a feedforward neural network. In the specific implementation, positional encoding is replaced by the temporal encoding described earlier, which can better consider temporal dependencies; the multi-head attention mechanism allows the encoder to consider multiple concerns, thus handling more complex sequence relationships; GELU is used in place of ReLU as the activation function in the feedforward neural network to better avoid the gradient vanishing problem; and regularization is performed before each processing block rather than after it.

[0076] The intensity calculation layer comprises two parts: a nonlinear transformation layer and an intensity attenuation layer. The nonlinear transformation layer defines three nonlinear transformations to achieve the desired fusion characteristics. For example, they are

[0077]

[0078]

[0079]

[0080] α u and β u Using GELU as the activation function, γ u Using Softplus as the activation function, after obtaining the three parameters mentioned above, the intensity decay layer calculates the intensity function. The intensity function is mainly constructed using the exponential function and the Softplus function. The Softplus function can constrain the result of the intensity function to be positive. The specific calculation method is as follows:

[0081] λ u (t)=softplus(α u +(β u -α u )exp(-γ u (tt i )))#(twenty one)

[0082] As can be seen from the intensity function, when t = t i At that time, the initial intensity λ u (t)=β u , t i This represents the historical interaction time, where t represents the current timestamp, and so on. i As the value of β increases, the relative time difference also increases, indicating a relatively distant historical interaction, and the intensity decays exponentially. The rate of decay is determined by (β... u -α uThis is jointly determined by both excitation and inhibition effects, allowing for the simultaneous capture of both. The inhibition effect indicates that past interactions reduce the likelihood of the current interaction occurring. The intensity function is inspired by the Hawkes process, a statistical model based on point processes, and its function is as follows:

[0083] λ(t)=μ+∑ i φ(tt i )#(twenty two)

[0084] Where φ(tt) i ) is the kernel function that triggers the event.

[0085] In the intensity attenuation layer, each historical interaction t will be... i The impact of each historical interaction on the current link is calculated individually using the intensity function, and then the impact of each historical interaction is used as a weight in the calculation. The final dynamic node representation is obtained through calculation. The dynamic node representation of node v can be obtained by following the same calculation steps.

[0086]

[0087]

[0088] Among them W out and b out All are trainable parameters, d out It is the output dimension represented by the final dynamic node.

[0089] The overall processing flow of the neighbor differentiation aggregation module is as follows: Figure 3 As shown, the cascaded feature [Z] u ||Z v After stacking L layers of Transformer encoders, feature information from different locations is captured through a multi-head self-attention mechanism, and the fused feature representation is output. Then, through three nonlinear transformations, the three parameters of the intensity function are obtained. Finally, the features of each historical interaction are weighted and aggregated based on their influence to output the final dynamic node representation. and It is applied to the dynamic link prediction module.

[0090] (3) Dynamic Link Prediction Module

[0091] The main function of the dynamic link prediction module is to determine whether target pairs u and v are linked at time t. A binary classification method is used to implement dynamic link prediction. Specifically, a multilayer perceptron is used to read the dynamic node representations of nodes u and v. and Using ReLU as the activation function, the probability of a link existing is output.

[0092] like Figure 4 As shown, the emergency power supply prediction method based on dynamic network links provided in this embodiment of the invention includes:

[0093] Step one: First, use dynamic networks to perform time-series coding on a certain power material emergency supply chain network. The power material emergency supply chain network G consists of a set of network sequences with a time order, i.e., G = {G1, G2, ..., G...} T Each individual network is a snapshot of the emergency power supply chain network at a given point in time, where T represents the number of historical snapshots of the dynamic network G. The t-th snapshot can be represented as a set of points V. t The set of edges E t The constructed graph G t =(V t E t ), 1≤t≤T, where, v i ∈V represents node i in the network. Nodes in the emergency power supply chain network are divided into two categories: power supply warehouses and supplier warehouses. For example, in March 2024, a certain province had 253 power supply warehouses and 197 supplier warehouses. (v i ,v j )∈E is from v i to v j A directed edge, representing v i to v j There is material transportation. The weight of an edge is represented by the product of the transportation volume c of a certain material and the urgency level w of the material (0≤w≤1). Time t represents the moment when the power material emergency supply chain network exists.

[0094] Step 2: During supply forecasting, input the node pair u and v to be predicted, such as u representing power material warehouse A and v representing supplier material warehouse B. Enter the time-series state incremental update subnetwork and graph structure feature extraction subnetwork respectively to obtain the time-series state features and graph structure features corresponding to nodes u and v. Then, send the above features together into the dynamic node embedding generation subnetwork for feature alignment and fusion to generate the final node embedding representation and perform dynamic link prediction task calculation.

[0095] Step 3: In the temporal state incremental update sub-network, the state of the node most recently updated is read from the node state storage module. Combined with the temporal encoding information and edge weight information of this interaction, the incremental evolution characteristics of the node are learned through the GRU network, and the newly output hidden state of the next node is written into the node state storage module for subsequent use.

[0096] Step 4: In the graph structure feature extraction subnetwork, extract the one-hop neighbor set of corresponding nodes u and v, and then perform temporal feature extraction, common neighbor feature extraction, node feature extraction and edge feature extraction respectively. Send these features together into the dynamic node embedding generation subnetwork.

[0097] Step 5: In the dynamic node embedding generation subnetwork, the features output from the first two subnetworks are sequentially divided, aligned, and concatenated to generate the feature matrix Z related to nodes u and v. u and Z v The data is then fed into a Transformer encoder, where a self-attention mechanism is used to fuse features. The output hidden representation is then processed by an intensity calculation layer, where an influence decay weighting calculation is performed to obtain the final node embedding vector. Finally, the vector is fed into an MLP (Multilayer Perceptron) network, which outputs the result of the dynamic link prediction. If the result is 0, it means that the prediction is that there will be no material transportation relationship between the power material warehouse A and the supplier material warehouse B at that moment.

[0098] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0099] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for predicting emergency supply of power materials based on dynamic network links. It is characterized in that include, The dynamic network is used to encode the discrete historical data of the power material emergency supply chain network to obtain the first database; Construct a time series state incremental update subnetwork and a graph structure feature extraction subnetwork, wherein the time series state incremental update subnetwork learns the node incremental evolution features based on the GRU network and outputs the next node hidden state; the graph structure feature extraction subnetwork performs feature extraction and outputs the extracted features; Construct a dynamic node embedding generation subnetwork, sequentially block, align, and cascade the features output by the time series state incremental update subnetwork and the graph structure feature extraction subnetwork to generate a feature matrix of the joint points to be predicted, and then send it to the Transformer encoder to fuse the features using the self-attention mechanism. The output hidden representation passes through the strength calculation layer and performs influence attenuation weighted calculation to obtain the final node embedding vector, which finally enters an MLP (Multilayer Perceptron) network to output the results of dynamic link prediction. Input the node pair to be predicted, and pass through the time series state incremental update subnetwork and the graph structure feature extraction subnetwork in turn, and finally pass through the dynamic node embedding generation subnetwork to perform feature alignment and fusion, generate the final node embedding representation and perform calculations on the dynamic link prediction task.

2. According to claim 1, the method for predicting emergency supply of electric power materials based on dynamic network links, It is characterized in that Input the node pair to be predicted u and v ,like u Indicates Power Material Depot A, v Represents supplier material warehouse B, enters the time series state incremental update subnetwork and graph structure feature extraction subnetwork respectively, and obtains node u and v The corresponding time series state features and graph structure features are then sent together to the dynamic node embedding generation subnetwork for feature alignment and fusion to generate the final node embedding representation and perform calculations on the dynamic link prediction task.

3. According to claim 1, the method for predicting emergency supply of electric power materials based on dynamic network links, It is characterized in that When performing temporal coding, the power material emergency supply chain network G is composed of a set of network sequences with a time sequence, that is, G={G 1 , G 2 ,…,G T }, each individual network is a snapshot of the power material emergency supply chain network at a point in time, where T represents the number of historical snapshots of the dynamic network G, t A snapshot can be represented as a set of points V t and edge set E t The composition of the picture G t =( V t , E t ), 1≤ t ≤ T ,in, v i ∈ V Represents a node in the network i .

4. The method for predicting emergency supply of electric power materials based on dynamic network links according to claim 1, It is characterized in that The nodes in the power material emergency supply chain network are divided into two categories, namely, power material warehouses and supplier material warehouses. v i , v j )∈ E For v i arrive v j The directed edge of v i arrive v j There is material transportation, and the weight of the edge is expressed as the transportation volume of a certain material c and the urgency of supplies w ( ), time t Represents the moment when the power material emergency supply chain network exists.

5. The method for predicting emergency supply of electric power materials based on dynamic network links according to claim 1, It is characterized in that In the time-series state incremental update subnetwork, the most recently updated state of the node is read from the node state storage module, and then combined with the time-series coding information and edge weight information of this interaction, the node incremental evolution characteristics are learned through the GRU network, and the newly output next node hidden state is written into the node state storage module for subsequent use.

6. The method for predicting emergency supply of electric power materials based on dynamic network links according to claim 5, It is characterized in that In the graph structure feature extraction subnetwork, extract the corresponding nodes u and v The first step is to extract the one-hop neighbor set of a node, and then perform time series feature extraction, common neighbor feature extraction, node feature extraction and edge feature extraction respectively, and send these features together to the dynamic node embedding generation sub-network.

7. The method for predicting emergency supply of electric power materials based on dynamic network links according to claim 6, It is characterized in that In the dynamic node embedding generation subnetwork, the features output by the first two subnetworks are sequentially divided, aligned, and cascaded to generate the relevant nodes. u and v The characteristic matrix Z u and Z v , and then sent to the Transformer encoder, using the self-attention mechanism to fuse features, the output hidden representation passes through the strength calculation layer, performs influence attenuation weighted calculation, and obtains the final node embedding vector, and finally enters an MLP (Multilayer Perceptron) network to output the result of dynamic link prediction. If the result value is 0, it means that it is predicted that there will be no material transportation relationship between power material warehouse A and supplier material warehouse B at this moment.

8. The method for predicting emergency supply of electric power materials based on dynamic network links according to claim 7, It is characterized in that When supplying a forecast, enter the node pair to be forecasted u and v ,like u Indicates Power Material Depot A, v Represents supplier material warehouse B, enters the time series state incremental update subnetwork and graph structure feature extraction subnetwork respectively, and obtains node u and v The corresponding time series state features and graph structure features are then sent together to the dynamic node embedding generation subnetwork for feature alignment and fusion to generate the final node embedding representation and perform calculations on the dynamic link prediction task.

Citation Information

Patent Citations

  • Popularity prediction method based on graph time sequence information learning

    CN114997464A

  • Method for fusing structure and time sequence features to improve incremental learning effect of dynamic graph data

    CN116306883A

Cited By

  • Production material demand prediction method and system based on artificial intelligence

    CN120181544A

  • Artificial Intelligence-Based Production Material Requirement Prediction Method and System

    CN120181544B