Complex network key node identification method and system

By using the encoder-decoder architecture and virtual node technology in complex networks, combined with the method of double-layer multi-layer perceptron, combined with reinforcement learning shaped by structured rewards, the efficiency and accuracy of key node identification methods in the existing technology are solved. Solving the deficiencies and achieving efficient and accurate key node identification.

CN118656686AInactive Publication Date: 2024-09-17HUNAN EQUATORIAL GALAXY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410095262.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing key node identification methods in complex networks are difficult to be efficient and accurate at the same time, are computationally intensive or consume too many resources, and oversimplify network dynamics and ignore network attributes, resulting in low identification accuracy.

Method used

Using the encoder-decoder architecture and virtual node technology combined with a double-layer multi-layer perceptron, the MiniKey model is trained through reinforcement learning shaped by structured rewards, using virtual nodes to capture the overall characteristics of the network, and adding a penalty term to the reward function to optimize the key Node identification.

Benefits of technology

It is possible to identify the best key nodes with as few nodes as possible, ensuring identification accuracy while improving speed and reducing resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656686A
    Figure CN118656686A
Patent Text Reader

Abstract

The invention discloses a complex network key node identification method and system, and the method comprises the steps: employing an encoder-decoder architecture to achieve the identification of key nodes on a modeling graph, adding a virtual node which is used for representing a current network state in a MiniKey model during the coding, and capturing the overall feature representation of a whole network through employing a virtual node technology; a double-layer multi-layer perceptron is used for decoding a state-action pair into a scalar value, and the scalar value is predicted to be the maximum award after the action a is adopted in the given state s; the whole MiniKey model is trained by using reinforcement learning of structured reward shaping, and on the basis of taking an original key node identification index ANC as a target of reinforcement learning, a structured reward shaping index is taken as a penalty term of a reward function in reinforcement learning. According to the method, the reward function subjected to reward shaping has higher speed and less resource loss while the optimal identification accuracy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital information transmission technology, and in particular discloses a method and system for identifying key nodes of a complex network after applying structured reward shaping optimization. Background Art

[0002] At present, the academic research on key node identification in complex networks is mainly based on mixed integer optimization, traditional network centrality measurement, evolutionary algorithms and deep reinforcement learning. Due to the large scale and complex structure of complex networks, the existing key node identification technology solutions often target a single goal and pursue identification accuracy, which makes it difficult to take into account both efficiency and accuracy at the same time.

[0003] In 2019, the journal Networks, Volume 73, Issue 1, Pages 48-88, published "Detecting critical node structures on graphs: Amathematical programming approach" (DOI: 10.1002 / net.21834), by JL Walteros, A Veremyev, PM Pardalos, EL Pasiliao, which uses mixed integer programming techniques to find critical nodes in complex networks. However, as the size of the network increases, this method quickly becomes computationally intensive, limiting their practical application in larger networks.

[0004] A complex network key node identification method and system based on voting mechanism (Announcement No.: CN115225447B) considers the voting probability of each node to its neighbors to determine the key nodes on the basis of the collective influence in the traditional centrality measurement. Although this method has the advantages of being intuitive and computationally efficient, it oversimplifies the complex dynamics of the network and ignores the network properties, resulting in a low accuracy compared with other technical solutions.

[0005] A method for identifying key nodes of endogenous systems based on a dynamic threshold search algorithm (Announcement No.: CN116128054A) abstracts key node identification into a minimum feedback vertex set problem, and identifies key nodes through reduction rules, greedy construction, and local search optimization. However, this method is computationally intensive, and its probabilistic nature may affect its accuracy in identifying key nodes.

[0006] A method for identifying key nodes of smart grid based on deep reinforcement learning (Announcement No.: CN114943430B) builds a model for identifying key nodes of power grid based on deep reinforcement learning on the basis of building a power grid, which has high accuracy. However, this model runs on a single-objective deep reinforcement learning framework, which usually requires removing a large number of nodes to achieve the best disintegration effect, uses too many node resources, and is not efficient enough.

[0007] Therefore, the above-mentioned defects existing in the existing key node identification methods in complex networks are technical problems that need to be solved urgently. Summary of the invention

[0008] The present invention provides a method and system for identifying key nodes in a complex network, aiming to solve the above-mentioned defects existing in the existing key node identification methods in complex networks.

[0009] One aspect of the present invention relates to a method for identifying key nodes in a complex network, comprising the following steps:

[0010] The encoder-decoder architecture is used to model the key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is used to predict the maximum reward after taking action a in a given state s.

[0011] The entire MiniKey model is trained using reinforcement learning with structured reward shaping. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning.

[0012] Furthermore, an encoder-decoder architecture is used to model key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a). The steps of predicting the maximum reward after taking action a in a given state s with the scalar value Q(s, a) include:

[0013] When encoding, the MiniKey model first adds a virtual node s, which connects all nodes v in the graph to represent the current state of the network;

[0014] Initialize the embedding of node v and virtual node s Apply a linear rectification function to the node features Xv The dot product of the weight parameter W1 is calculated and the result is normalized using the L2 norm.

[0015] The MiniKey model enters a loop and runs K times, where the loop corresponds to the K layers of the graph neural network; in each iteration, the loop calculates new embeddings for each node v and virtual node s;

[0016] For each node v, by summing its neighbors The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W2 and the previous embedding of the node v The connection, as well as the dot product W3 and the newly calculated neighbor node embedding , and calculate the new embedding z for each node v v ;

[0017] After processing all nodes, use the L2 norm to embed the new Perform normalization;

[0018] After K layers, the final embedding is calculated for each node v and virtual node s

[0019] Furthermore, an encoder-decoder architecture is used to model the key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is predicted in the step of the maximum reward after taking action a in a given state s. The scalar value Q(s, a) is defined as:

[0020]

[0021] Where Q(s,a) is a scalar value and W4∈R p×1 , W5∈R p×1 is a learnable weight parameter (where p represents the dimension of the parameter), z s and z a ∈R 1×p They are state embedding and action embedding respectively. The symbol T represents the transposition operation of the matrix; ReLU is the linear rectification function.

[0022] Furthermore, the entire MiniKey model is trained using reinforcement learning with structured reward shaping. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning. The reward in the MiniKey model is expressed as:

[0023]

[0024] Among them, r(v k ) is the reward of node k, N is the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively;

[0025] Termination Status The corresponding cumulative reward function is as follows:

[0026]

[0027] in, represents the recognition accuracy of the key nodes when the algorithm terminates, R(v1,v2,…v n ) is correct The expansion of Represents the node removed at termination; r(S i ,v i ) means to remove node v i The instantaneous reward obtained, N represents the number of nodes in the original network, σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively.

[0028] Furthermore, the entire MiniKey model is trained using reinforcement learning with structured reward shaping. On the basis of considering the original key node identification index ANC as the goal of reinforcement learning, the reward function is modified by adding a penalty term in the step of taking the structured reward shaping index as the penalty term of the reward function in reinforcement learning. The reward function after adding the penalty term is:

[0029]

[0030] Among them, R tot (v1,v2,…v n ) represents the total reward function, R(v1,v2,…v n ) represents the original reward function, R penalty (v1,v2,…v n) represents a reward function with a structured penalty, N represents the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively; Indicates nodes whose maximum connected component LCC degree is 1 or 2.

[0031] Another aspect of the present invention relates to a complex network key node identification system, comprising:

[0032] The encoding and decoding module is used to model the key node identification on the graph using the encoder-decoder architecture. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is used to predict the maximum reward after taking action a in a given state s.

[0033] The model training module is used to train the entire MiniKey model using reinforcement learning with structured reward shaping. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning.

[0034] Furthermore, the encoding and decoding module includes:

[0035] Adding a unit, when used for encoding, the MiniKey model first adds a virtual node s, which connects all nodes v in the graph to represent the current state of the network;

[0036] The first normalization unit is used to initialize the embedding of node v and virtual node s Apply a linear rectification function to the node features X v The dot product of the weight parameter W1 is calculated and the result is normalized using the L2 norm.

[0037] The first computation unit, used by the MiniKey model, enters a loop and runs K times, where the loop corresponds to the K layers of the graph neural network; in each iteration, the loop calculates new embeddings for each node v and virtual node s;

[0038] The second computing unit is used to calculate, for each node v, the sum of its neighbors The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W2 and the previous embedding of the node v The connection, as well as the dot product W3 and the newly calculated neighbor node embedding , and calculate the new embedding z for each node v v ;

[0039] The second normalization unit is used to use the L2 norm to embed the new Perform normalization;

[0040] The third computing unit is used to calculate the final embedding for each node v and virtual node s after K layers

[0041] Furthermore, in the encoding and decoding module, the scalar value Q(s,a) is defined as:

[0042]

[0043] Where Q(s,a) is a scalar value and W4∈R p×1 , W5∈R p×1 is a learnable weight parameter (where p represents the dimension of the parameter), z s and z a ∈R 1×p They are state embedding and action embedding respectively. The symbol T represents the transposition operation of the matrix; ReLU is the linear rectification function.

[0044] Furthermore, in the model training module, the reward in the MiniKey model is expressed as:

[0045]

[0046] Among them, r(v k ) is the reward of node k, N is the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively;

[0047] Termination Status The corresponding cumulative reward function is as follows:

[0048]

[0049] in, represents the recognition accuracy of the key nodes when the algorithm terminates, R(v1,v2,…v n) is correct The expansion of Represents the node removed at termination; r(S i ,v i ) means to remove node v i The instantaneous reward obtained, N represents the number of nodes in the original network, σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively.

[0050] Furthermore, in the model training module, the reward function is modified and a penalty term is added. The reward function after adding the penalty term is:

[0051]

[0052] Among them, R tot (v1,v2,…v n ) represents the total reward function, R(v1,v2,…v n ) represents the original reward function, R penalty (v1,v2,…v n ) represents a reward function with a structured penalty, N represents the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively; Indicates nodes whose maximum connected component LCC degree is 1 or 2.

[0053] The beneficial effects achieved by the present invention are:

[0054] The present invention provides a method and system for identifying key nodes in a complex network. The method and system adopt an encoder-decoder architecture to model key node identification on a graph. When encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A double-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is predicted to be the maximum reward after taking action a in a given state s. The reinforcement learning of structured reward shaping is used to train the entire MiniKey model. On the basis of considering the original key node identification index ANC as the target of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning. The method and system for identifying key nodes in a complex network provided by the present invention use as few nodes as possible to identify the best key node, and the reward function after reward shaping has faster speed and less resource loss while ensuring the best recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 The present invention is a flowchart of a method for identifying key nodes in a complex network. DETAILED DESCRIPTION

[0056] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0057] like Figure 1 As shown, the first embodiment of the present invention proposes a method for identifying key nodes in a complex network, comprising the following steps:

[0058] Step S100, using an encoder-decoder architecture to model key node recognition on the graph, adding a virtual node to the MiniKey model to represent the current network state during encoding, and using virtual node technology to capture the overall feature representation of the entire network; using a two-layer multi-layer perceptron to decode a state-action pair (s, a) into a scalar value Q(s, a), and using the scalar value Q(s, a) to predict the maximum reward after taking action a in a given state s.

[0059] The encoder-decoder architecture is used to model the key node identification on the graph G(V,E). During encoding, a virtual node s is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network; a two-layer multilayer perceptron (MLPs) is used to decode a state-action pair (s,a) into a scalar value Q(s,a), and the scalar value Q(s,a) is used to predict the maximum reward after taking action a in a given state s. The MiniKey model identifies key nodes with the least number of nodes. MiniKey means small and critical.

[0060] Step S200: Use structured reward shaping reinforcement learning to train the entire MiniKey model. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning.

[0061] The entire MiniKey model is trained using reinforcement learning with structured reward shaping. On the basis of considering the original key node identification index ANC (Accumulated Normalize Connectivity) as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning. ANC is an indicator used to measure the accuracy of key node identification, and the smaller the value, the better.

[0062] Further, see Figure 1 This embodiment provides a complex network key node identification method, step S100 includes:

[0063] Step S110: Design of encoder for MiniKey model.

[0064] The identification of key players in complex networks depends largely on the feature representation of elements within the network. Therefore, an effective feature learning model can enhance the performance of the model. In this embodiment, GraphSage is used to encode nodes within the network into potential representations. In addition, a technology called virtual node technology is used to capture the overall feature representation of the entire network. Among them, GraphSage is a graph neural network framework.

[0065] Step S110 includes:

[0066] Step S111: During encoding, the MiniKey model first adds a virtual node s, which connects all nodes v in the graph and is used to represent the current state of the network.

[0067] Step S112: Initialize the embedding h of node v and virtual node s v (0) ; Apply the linear rectification function to the node feature X v The dot product of the weight parameter W1 is calculated and the result is normalized using the L2 norm.

[0068] ReLU (Linear rectification function) function is applied to the node feature X v The dot product of the weight parameter W1.

[0069] Step S113, the MiniKey model enters a loop and runs K times, where the loop corresponds to the K layers of the graph neural network; in each iteration, the loop calculates a new embedding for each node v and virtual node s.

[0070] Step S114: For each node v, sum its neighborhood The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W2 and the previous embedding of the node v The connection, as well as the dot product W3 and the newly calculated neighbor node embedding , and calculate the new embedding z for each node v v .

[0071] Step S115: After processing all nodes, use the L2 norm to embed the new Normalize.

[0072] Step S116: After K layers, calculate the final embedding for each node v and virtual node s

[0073] The encoding process of MiniKey is as follows:

[0074]

[0075] Where G(V, E) represents a graph, V represents a set of nodes, and E represents a set of edges. 1×c Represents a matrix of size 1×c that needs to be learned to be obtained. c×p Represents a matrix of size c×p that needs to be learned to be obtained. p×(p / 2) Represents a matrix of size p×(p / 2) that needs to be learned. For any node v.

[0076] Step S120: Design of decoder of MiniKey model.

[0077] A two-layer multilayer perceptron (MLP) is used to decode a state-action pair (s, a) into a scalar value Q(s, a) that predicts the maximum reward after taking action a in a given state s, which is defined as follows:

[0078]

[0079] In formula (1), Q(s,a) is a scalar value, W4∈R p×1 , W5∈R p×1 is a learnable weight parameter (where p represents the dimension of the parameter), z s and z a ∈R 1×p They are state embedding and action embedding respectively. The symbol T represents the transposition operation of the matrix; ReLU is the linear rectification function.

[0080] Preferably, see Figure 1 In this embodiment, a complex network key node identification method is provided. In order to find the best key player set in a complex network with the least number of nodes, this problem is formalized as a Markov decision process (MDP) in the graph. The reinforcement learning component of the MiniKey model in step S200 is as follows:

[0081] Step S210, States.

[0082] In the MiniKey model, a state is denoted as S. It represents a partial solution to the key player identification problem. Each state is represented as a vector in a p-dimensional space, which is defined as z in the encoder process. s .

[0083] Step S220: Transitions.

[0084] The transition function in the MiniKey model is deterministic and corresponds to choosing a node v∈G that is not yet in state S.

[0085] Step S230: Actions.

[0086] An action in the MiniKey model corresponds to selecting a node v that is not currently part of state S. This node is also represented by its p-dimensional embedding in the encoder process as z v .

[0087] Step S240: Rewards.

[0088] The reward r(S,v) in the MiniKey model can be defined as ANC, i.e., selecting node v k As an action and transition to the new state S′=(S,v k ) after ANC. Therefore, it can be expressed as:

[0089]

[0090] In formula (2), r(v k ) is the reward of node k, N is the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively.

[0091] Termination status at this time The corresponding cumulative reward function is as follows:

[0092]

[0093] In formula (3), represents the recognition accuracy of the key nodes when the algorithm terminates, R(v1,v2,…v n ) is correct The expansion of Represents the node removed at termination; r(S i ,v i ) means to remove node v i The instantaneous reward obtained, N represents the number of nodes in the original network, σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively.

[0094] In addition to considering the original ANC as the reinforcement learning objective, we also add an additional structural penalty as a constraint on the agent. The learning goal of the MiniKey model is to optimize both ANC and SLR (Solution Length Ratio), that is, to identify the best key node with as few nodes as possible. Inspired by the network dismantling algorithm CoreHD, for the network dismantling problem, a star network is more ideal for dismantling. In this case, removing only the central node can disconnect many edges. In contrast, if there are too many nodes with degree 1 or 2 in the largest connected component, a large number of nodes will need to be consumed to ensure that there are no remaining edges in the network. Nodes with degree 1 in the network are usually leaf nodes, and nodes with degree 2 are usually in chains and rings; the more nodes of these two types there are, the more nodes need to be removed to ensure that there are no edges in the network. In the extreme case of a chain of length N, N-1 nodes will need to be removed to ensure that there are no edges.

[0095] SLR is the solution length ratio, which is the ratio of the total number of nodes that need to be removed to prune the complex network to have no edges to the total number of nodes in the original complex network.

[0096] Based on these observations, the reward function is modified to include a penalty term, specifically, the number of nodes with degree 1 or 2 in the largest connected component of the remaining network. This design aims to minimize the presence of nodes with degree 1 or 2 in the largest connected component while optimizing network disassembly. Experiments show that this key reward function design enables the MiniKey model to identify key nodes in the network with fewer nodes.

[0097]

[0098] In formula (4), R tot (v1,v2,…v n ) represents the total reward function, R(v1,v2,…v n ) represents the original reward function, R penalty (v1,v2,…v n ) represents a reward function with a structured penalty, N represents the number of nodes in the original network, and σ represents the solution to remove nodes v1, v2, …v n The network after that, G\{v1,v2,…v n} is the number of nodes in the largest connected component; σ(G) represents the number of nodes in the largest connected component of the original network; v1, v2, v k Represent node 1, node 2 and node k respectively; Indicates nodes whose LCC (Largest connected component) degree is 1 or 2.

[0099] It is worth noting that the learning goal of the MiniKey model is to minimize the reward function R tot (v1,v2,…v n ), and the original reward function R(v1,v2,…v n ) will inevitably decrease monotonically as the network size decreases. At this point, only when the structural penalty reward R penalty (v1,v2,…v n ) also decreases, the reward function R after reward shaping tot (v1,v2,…v n ) to achieve the best effect. That is, while reducing the number of nodes with degree 1 or 2 in the largest connected component, the size of the largest connected component in the remaining network decreases fastest.

[0100] Step S240: strategy.

[0101] The strategy in the MiniKey model is based on the approximate Q function A deterministic greedy strategy is applied When action v is executed, a node from G is added to the current partial solution, resulting in a reward defined in the equation r(S, v) = Q(s, a), where π(v|S) represents the point selection strategy π used by the reinforcement learning model to select node v when the model is in state S. This strategy requires model learning to obtain. Indicates that it belongs to the future state set All nodes v′; Represents the action-state value function, according to the state feature z s and action v′. r(S,v) represents the instantaneous reward obtained by selecting node v in state S. Q(s,a) has the same meaning, but requires different expressions.

[0102] Based on MiniKey modeling, DQN (Deep Q Network) is used to train MiniKey, with simulated Barabási–Albert (BA) graphs as training samples. DQN is a variant of reinforcement learning in which Q learning is combined with deep neural networks. This goal can be mathematically defined by the following cost function:

[0103]

[0104] In formula (5), J(θ) represents the loss function of the algorithm, θ represents the parameters to be learned; (s, a, r, s′)~D represents the reinforcement learning 4-tuple (s, a, r, s′) taken from cache D, s represents the current state, a represents the action, r represents the reward, γ is the discount factor, and s′ represents the new state obtained after executing action a; Indicates the following formula [(r+γmax a′ Q(s′,a′;θ′)-Q(s,a;θ)) 2 ] expectation. max a′ Q(s′, a′; θ′) represents the maximum value of Q(s′, a′; θ′).

[0105] The present embodiment provides a complex network key node identification system, including an encoding and decoding module and a model training module, wherein the encoding and decoding module is used to adopt an encoder-decoder architecture to model key node identification on a graph, add a virtual node to the MiniKey model to represent the current network state during encoding, and use virtual node technology to capture the overall feature representation of the entire network; use a two-layer multi-layer perceptron to decode a state-action pair (s, a) into a scalar value Q(s, a), and use the scalar value Q(s, a) to predict the maximum reward after taking action a in a given state s; the model training module is used to train the entire MiniKey model using reinforcement learning with structured reward shaping, and use the structured reward shaping indicator as the penalty term of the reward function in reinforcement learning on the basis of considering the original key node identification indicator ANC as the goal of reinforcement learning.

[0106] The encoding and decoding module uses an encoder-decoder architecture to model the key node identification on the graph G(V,E). During encoding, a virtual node s is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network; a two-layer multilayer perceptron (MLPs) is used to decode a state-action pair (s,a) into a scalar value Q(s,a), and the scalar value Q(s,a) predicts the maximum reward after taking action a in a given state s. The MiniKey model identifies key nodes with the least number of nodes. MiniKey means small and critical.

[0107] The model training module uses reinforcement learning with structured reward shaping to train the entire MiniKey model. On the basis of considering the original key node recognition indicator ANC (Accumulated Normalize Connectivity) as the goal of reinforcement learning, the structured reward shaping indicator is used as the penalty term of the reward function in reinforcement learning. ANC is an indicator used to measure the accuracy of key node recognition. The smaller the value, the better.

[0108] Further, see Figure 1 The key node identification system of complex networks provided in this embodiment, the encoding and decoding module includes an adding unit, a first normalization unit, a first calculation unit, a second calculation unit, a second normalization unit and a third calculation unit, wherein the adding unit is used to first add a virtual node s to the MiniKey model during encoding, and the virtual node s connects all nodes v in the graph to represent the current state of the network; the first normalization unit is used to initialize the embedding of the node v and the virtual node s Apply a linear rectification function to the node features X v The dot product of the weight parameter W1 is calculated and the result is normalized using the L2 norm. The first calculation unit is used for the MiniKey model to enter a loop and run K times. The loop corresponds to the K layers of the graph neural network. In each iteration, the loop calculates a new embedding for each node v and virtual node s. The second calculation unit is used for each node v by summing its neighborhood. The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W2 and the previous embedding of the node v The connection, as well as the dot product W3 and the newly calculated neighbor node embedding , and calculate the new embedding z for each node v v ; The second normalization unit is used to use the L2 norm to embed the new Normalize; the third computing unit is used to calculate the final embedding for each node v and virtual node s after the K layer

[0109] The complex network key node identification method and system provided in this embodiment, compared with the prior art, adopts an encoder-decoder architecture to model key node identification on the graph, adds a virtual node to the MiniKey model to represent the current network state during encoding, and uses virtual node technology to capture the overall feature representation of the entire network; uses a two-layer multi-layer perceptron to decode a state-action pair (s, a) into a scalar value Q(s, a), and predicts the maximum reward after taking action a in a given state s; uses reinforcement learning shaped by structured rewards to train the entire MiniKey model, and considers the original key node identification index ANC as the goal of reinforcement learning, and uses the structured reward shaping index as the penalty term of the reward function in reinforcement learning. The complex network key node identification method and system provided in this embodiment use as few nodes as possible to identify the best key node, and the reward function after reward shaping has faster speed and less resource loss while ensuring the best recognition accuracy.

[0110] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for identifying key nodes in complex networks. It is characterized in that The following steps are involved: The encoder-decoder architecture is used to model the key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is used to predict the maximum reward after taking action a in a given state s. The entire MiniKey model is trained using reinforcement learning with structured reward shaping. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning.

2. The method for identifying key nodes in a complex network according to claim 1, It is characterized in that The encoder-decoder architecture is used to model the key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a). The steps of predicting the maximum reward after taking action a in a given state s with the scalar value Q(s, a) include: When encoding, the MiniKey model first adds a virtual node s, which connects all nodes v in the graph to represent the current state of the network; Initialize the embedding of node v and virtual node s Apply a linear rectification function to the node features X v and weight parameter W 1 The dot product of and normalize the result using the L2 norm; The MiniKey model enters a loop and runs K times, where the loop corresponds to the K layers of the graph neural network; in each iteration, the loop calculates new embeddings for each node v and virtual node s; For each node v, by summing its neighbors The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W 2 and the previous embedding of node v The connection and dot product W 3 and the newly computed neighbor node embeddings , and calculate the new embedding z for each node v v ; After processing all nodes, use the L2 norm to embed the new Perform normalization; After K layers, the final embedding is calculated for each node v and virtual node s 3. The complex network key node identification method according to claim 1, It is characterized in that The encoder-decoder architecture is used to model the key node recognition on the graph. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is predicted in the step of the maximum reward after taking action a in a given state s. The scalar value Q(s, a) is defined as: Where Q(s,a) is a scalar value, W 4 ∈R p×1 , W 5 ∈R p×1 is a learnable weight parameter, p represents the dimension of the parameter; z s and z a ∈R 1×p They are state embedding and action embedding respectively. The symbol T represents the transpose operation of the matrix; ReLU is the linear rectification function.

4. The method for identifying key nodes in a complex network according to claim 1, It is characterized in that The reinforcement learning using structured reward shaping is used to train the entire MiniKey model. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning. The reward in the MiniKey model is expressed as: Among them, r(v k ) is the reward of node k, N is the number of nodes in the original network, and σ is the solution to remove node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively; Termination Status The corresponding cumulative reward function is as follows: in, represents the recognition accuracy of the key nodes when the algorithm terminates, R(v 1 ,v 2 ,…v n ) is correct The expansion of Represents the node removed at termination; r(S i ,v i ) means to remove node v i The instantaneous reward obtained, N represents the number of nodes in the original network, σ represents the solution to remove the node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively.

5. The method for identifying key nodes in a complex network as claimed in claim 4, It is characterized in that The reinforcement learning using structured reward shaping is used to train the entire MiniKey model. On the basis of considering the original key node identification index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning. The reward function is modified and a penalty term is added. The reward function after adding the penalty term is: Among them, R tot (v 1 ,v 2 ,…v n ) represents the total reward function, R(v 1 ,v 2 ,…v n ) represents the original reward function, R penalty (v 1 ,v 2 ,…v n ) represents a reward function with a structured penalty, N represents the number of nodes in the original network, and σ represents the solution to remove the node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively; Indicates nodes whose maximum connected component LCC degree is 1 or 2.

6. A complex network key node identification system, It is characterized in that include: The encoding and decoding module is used to model the key node identification on the graph using the encoder-decoder architecture. During encoding, a virtual node is added to the MiniKey model to represent the current network state, and the virtual node technology is used to capture the overall feature representation of the entire network. A two-layer multi-layer perceptron is used to decode a state-action pair (s, a) into a scalar value Q(s, a), and the scalar value Q(s, a) is used to predict the maximum reward after taking action a in a given state s. The model training module is used to train the entire MiniKey model using reinforcement learning with structured reward shaping. On the basis of considering the original key node recognition index ANC as the goal of reinforcement learning, the structured reward shaping index is used as the penalty term of the reward function in reinforcement learning.

7. The complex network key node identification system according to claim 6, It is characterized in that The encoding and decoding module includes: Adding unit, when used for encoding, the MiniKey model first adds a virtual node s, and the virtual node s connects all nodes v in the graph to represent the current state of the network; The first normalization unit is used to initialize the embedding of node v and virtual node s Apply a linear rectification function to the node features X v and weight parameter W 1 The dot product of and normalize the result using the L2 norm; The first computation unit is used for the MiniKey model to enter a loop and run K times, where the loop corresponds to the K layers of the graph neural network; in each iteration, the loop calculates a new embedding for each node v and virtual node s; The second computing unit is used to calculate, for each node v, the sum of its neighbors The embeddings of all nodes j in To compute the embedding; by applying the linear rectification function to the dot product W 2 and the previous embedding of node v The connection and dot product W 3 and the newly computed neighbor node embeddings , and calculate the new embedding z for each node v v ; The second normalization unit is used to use the L2 norm to embed the new Perform normalization; The third computing unit is used to calculate the final embedding for each node v and virtual node s after K layers 8. The complex network key node identification system according to claim 6, It is characterized in that In the encoding and decoding module, the scalar value Q(s,a) is defined as: Where Q(s,a) is a scalar value, W 4 ∈R p×1 , W 5 ∈R p×1 is a learnable weight parameter, p represents the dimension of the parameter; z s and z a ∈R 1×p They are state embedding and action embedding respectively. The symbol T represents the transpose operation of the matrix; ReLU is the linear rectification function.

9. The complex network key node identification system according to claim 6, It is characterized in that In the model training module, the reward in the MiniKey model is expressed as: Among them, r(v k ) is the reward of node k, N is the number of nodes in the original network, and σ is the solution to remove node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively; Termination Status The corresponding cumulative reward function is as follows: in, represents the recognition accuracy of the key nodes when the algorithm terminates, R(v 1 ,v 2 ,…v n ) is correct The expansion of Represents the node removed at termination; r(S i ,v i ) means to remove node v i The instantaneous reward obtained, N represents the number of nodes in the original network, σ represents the solution to remove the node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively.

10. The complex network key node identification system according to claim 9, It is characterized in that In the model training module, the reward function is modified and a penalty term is added. The reward function after adding the penalty term is: Among them, R tot (v 1 ,v 2 ,…v n ) represents the total reward function, R(v 1 ,v 2 ,…v n ) represents the original reward function, R penalty (v 1 ,v 2 ,…v n ) represents a reward function with a structured penalty, N represents the number of nodes in the original network, and σ represents the solution to remove the node v 1 ,v 2 ,…v n After the network, G\{v 1 ,v 2 ,…v n } is the number of nodes of the largest connected component; σ(G) represents the number of nodes of the largest connected component of the original network; v 1 、v 2 、v k Represent node 1, node 2 and node k respectively; Indicates nodes whose maximum connected component LCC degree is 1 or 2.

Citation Information

Patent Citations

  • Multilayer network key node identification method and device, equipment and storage medium

    CN114861747A

  • Node identification method and device, electronic equipment and computer readable storage medium

    CN115134247A

  • Fault criticality assessment using graph convolutional networks

    US20220245439A1