Attribute network abnormal node detection method and system based on iterative filtering
Patent Information
- Application Number
- CN202410607125.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing network abnormal node detection methods have insufficient feature extraction capabilities in high-dimensional data, cannot effectively identify complex patterns, and fail to fully consider the network topology, resulting in poor detection performance, especially the presence of abnormal nodes in graph neural networks. The assumption of homogeneity is violated, resulting in node features being mixed with abnormal information and frequent misjudgments.
An attribute network abnormal node detection method based on iterative filtering is adopted to avoid noise data interference through the iterative filtering training process. The weight sharing encoder is used to learn network embedding and attribute embedding, the feature fusion device performs feature combination, and the dual-channel decoder reconstructs the network structure and Node attributes, the abnormal node discriminator calculates the abnormal score based on reconstruction error and similarity, and the node filter removes abnormal nodes to ensure the detection effect of the model.
It improves the accuracy and efficiency of abnormal network node detection, avoids misjudgment of edge nodes, enhances the model's ability to identify abnormal network nodes, improves attribute network modeling performance, and is suitable for abnormal behaviors in areas such as network security and social media. detection.
Smart Images

Figure CN118573418A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet detection technology, and in particular to a method and system for detecting abnormal nodes in an attribute network based on iterative filtering. Background Art
[0002] With the rapid growth of the Internet and social media, attribute network anomaly node detection, which aims to identify abnormal nodes that deviate significantly from the majority of normal nodes, has become a hot area of academic research and industrial practice. In real-world networks such as social media, bioinformatics networks, financial transaction networks, and communication networks, not only are the number of nodes huge, but the relationships between them are also intricate, and the nodes themselves carry rich attribute information. These networks are also facing a variety of potential threats and risks, such as network security issues, the spread of false information on social media, financial fraud, health monitoring anomalies, and other abnormal phenomena in network operations. In order to effectively address these challenges, academia and industry are gradually turning to explore how to use node attribute information to identify and analyze abnormal nodes in the network.
[0003] In traditional network abnormal node detection, specific rules such as decision tree algorithms, statistics-based and clustering-based methods are often used. In addition, with the development of machine learning, machine learning-based methods have emerged. These methods extract features and reduce data dimensions, and then use classifiers for effective classification to identify abnormal nodes in attribute networks. Although the above methods have achieved certain results in abnormal node detection methods based on low-dimensional and simple network structures, they face two major limitations: first, as the dimension of network data increases, these methods are insufficient in feature extraction and cannot effectively identify complex patterns in high-dimensional data; second, these early methods often fail to fully consider the topological structure of the network and ignore the abnormal patterns that may be caused by interactions between nodes, resulting in poor detection performance. The rapid development of deep learning technology, especially the rise of graph neural networks (GNNs), has provided a new direction for solving the above problems. Graph neural networks are naturally suitable for processing graph structure data and have powerful network feature extraction and learning capabilities, which significantly improves the accuracy and efficiency of abnormal node detection. Graph neural networks rely on the homogeneity assumption of the network, that is, nodes connected by edges have similar features or belong to the same category, but the existence of abnormal nodes destroys the homogeneity assumption of the network. An abnormal node is often connected to several normal nodes, resulting in abnormal information mixed into the node features extracted by the graph neural network. Secondly, when calculating the anomaly score, it is based only on the reconstruction error, and only considers the comparison between the original information of the node and the reconstructed information. Abnormal nodes will interfere with the learning of normal node features, so the interfered nodes may not be reconstructed. Summary of the invention
[0004] To this end, the present invention provides an attribute network abnormal node detection method and system based on iterative filtering, which solves the problem of misjudgment of edge nodes in the existing network node anomaly detection, avoids the interference of noise data on the training process through the iterative filtering training process, improves the network abnormal node detection performance, and improves the attribute network modeling effect.
[0005] According to the design scheme provided by the present invention, on the one hand, a method for detecting abnormal nodes in an attribute network based on iterative filtering is provided, comprising:
[0006] Acquire graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, attribute network adjacency matrix and attribute network attribute matrix;
[0007] The attribute network adjacency matrix and the attribute matrix are used as the training data input of the abnormal node detection model, and the abnormal nodes in the attribute network to be detected are determined and output by using the iterative filtering model training process. In each iterative filtering model training, the abnormal nodes in the training data are detected and filtered and the training data is updated until the next iterative filtering training data no longer generates new abnormal nodes;
[0008] Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
[0009] As the abnormal node detection method of attribute network based on iterative filtering of the present invention, further, the weight sharing encoder learns the process of network embedding and attribute embedding based on the graph network data of the attribute network and based on the shared weight parameters, including:
[0010] The adjacency matrix and attribute matrix of the attribute network are used as inputs for network embedding learning, and the network embedding is learned based on the degree matrix and shared weight parameters of the attribute network;
[0011] The identity matrix and attribute matrix are used as input for attribute embedding learning, attribute embedding is learned based on shared weight parameters, and the shared weight parameters are used to map network embedding and attribute embedding to the same feature space.
[0012] As the attribute network abnormal node detection method based on iterative filtering of the present invention, further, the feature fuser combines the learned network embedding and attribute embedding in the feature space and obtains the node embedding information and the network global information, including:
[0013] The alignment between the network embedding and the attribute embedding is established through element-by-element multiplication operations to obtain the consistency information between the two;
[0014] The network embedding and attribute embedding are merged by element-by-element addition operation to obtain complementary information of the two.
[0015] The consistency information and complementary information of the two are combined to obtain the final node embedding representation, so as to obtain the global information of the network and the similarity between the node embedding information and the global information based on the node embedding representation.
[0016] As the abnormal node detection method of the attribute network based on iterative filtering of the present invention, further, the process of the dual-channel decoder reconstructing the network structure and node attributes of the attribute network from the combined network features includes:
[0017] Reconstructing node attributes by performing feature conversion using an attribute decoder, wherein the attribute decoder adopts a fully connected neural network structure;
[0018] The structural decoder is used to reconstruct the network topology by calculating the inner product of the combined network features.
[0019] As the attribute network abnormal node detection method based on iterative filtering of the present invention, further, the abnormal node discriminator determines the abnormality of the network node according to the network structure reconstruction error, the node attribute reconstruction error and the similarity between the node embedding information and the network global information, including:
[0020] Obtain the network structure reconstruction error and node attribute reconstruction error, and calculate the similarity between the two based on the node embedding information and the network global information;
[0021] The anomaly score of the network node is calculated by using the reconstruction errors and similarities in combination with the balance parameter. The network nodes are sorted according to the anomaly score, and the abnormal nodes in the network are screened out according to the sorting results and the preset anomaly threshold.
[0022] As the attribute network abnormal node detection method based on iterative filtering of the present invention, further, the node filter filters the determined network abnormal nodes and the corresponding features of the abnormal nodes, including:
[0023] Locate the abnormal network nodes and modify the row data corresponding to the abnormal network nodes in the adjacency matrix to remove the abnormal network nodes from the graph network data
[0024] As the attribute network abnormal node detection method based on iterative filtering of the present invention, further, the training loss function of the abnormal node detection model is expressed as: L = α1R S +α2R A +α3s sim , where α1, α2 and α3 are equilibrium parameters, R S The network structure reconstruction error is, R A is the attribute reconstruction error, S sim It is the similarity between the node embedding information and the global network information.
[0025] In another aspect, the present invention further provides an attribute network abnormal node detection system based on iterative filtering, comprising: a data acquisition module and an abnormality detection module, wherein:
[0026] A data acquisition module, used to acquire graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, attribute network adjacency matrix and attribute network attribute matrix;
[0027] The anomaly detection module is used to use the attribute network adjacency matrix and the attribute matrix as training data inputs of the abnormal node detection model, and use the iterative filtering model training process to determine and output the abnormal nodes in the attribute network to be detected, and in each iterative filtering model training, detect and filter the abnormal nodes in the training data and update the training data until the next iterative filtering training data no longer generates new abnormal nodes;
[0028] Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
[0029] Beneficial effects of the present invention:
[0030] In the process of detecting abnormal nodes, the present invention preliminarily screens possible abnormal nodes and filters them from the training data set, and continuously repeats this process, iteratively updates the data set until no new abnormal nodes are generated, thereby ensuring the homogeneity assumption of the network, avoiding interference between abnormal features and normal nodes, and causing misjudgment of edge nodes, thereby improving the detection effect of the model; when compressing nodes to extract features, not only the neighbor information is aggregated but also the node's own information is integrated at the same time, so that the extracted features contain both neighbor features and retain their own features to the greatest extent, avoiding dilution of the node's own features, and improving the detection accuracy; because the normal nodes in the local area where the abnormal nodes are located are interfered with, the reconstruction error is large and they are easily misjudged. On the basis of the reconstruction error, the node and the global similarity calculation is added to effectively improve the interference of the reconstruction error on the node abnormal misjudgment, enhance the model's ability to identify network abnormal nodes, and improve the attribute network node modeling performance. It can be applicable to the attribute network abnormal behavior detection task requirements in fields such as network security and social media, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the abnormal node detection process of the attribute network based on iterative filtering in the embodiment;
[0032] Figure 2 This is a schematic diagram of the encoder experimental effect in the embodiment;
[0033] Figure 3 AUC comparison of each model in the embodiment;
[0034] Figure 4 The figure shows the experimental results of the model in the embodiment on the data set. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.
[0036] Attribute network abnormal node detection has a wide range of applications in the real world, such as detecting bad information disseminators in social networks and information fraudsters in financial networks. Existing abnormal node detection methods based on the compression and reconstruction idea with graph neural network as the architecture, due to the mutual interference between abnormal nodes and normal nodes during compression encoding, the node features learned by the local network where the abnormal nodes are located are inaccurate, resulting in the misjudgment of edge nodes when detecting abnormalities. Figure 1 As shown, a method for detecting abnormal nodes in an attribute network based on iterative filtering is provided, comprising:
[0037] S101, obtaining graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, an attribute network adjacency matrix, and an attribute network attribute matrix;
[0038] S102, using the attribute network adjacency matrix and the attribute matrix as training data inputs of the abnormal node detection model, using the iterative filtering model training process to determine and output the abnormal nodes in the attribute network to be detected, and in each iterative filtering model training, detecting and filtering the abnormal nodes in the training data and updating the training data until the next iterative filtering training data no longer generates new abnormal nodes;
[0039] Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
[0040] Define the attribute network as G = (V, A, X), where V = {v1, v2, v3...v n}(|V|=n) represents the node of the attribute network; Represents the adjacency matrix of the attribute network. When A ij = 0, indicating that node v i and node v j There is no edge connection between them. ij =1 means there is an edge connection between the two; Represents the attribute matrix of the network, the vector of the i-th row Represents the i-th node v of the attribute network i Attribute information of the .
[0041] For a given attribute network G = (V, A, X), based on the adjacency matrix A and the attribute matrix X, learn a function f to calculate the anomaly score. For each node v in the network i , can calculate the node anomaly score S according to its anomaly degree i ; The more abnormal the node is, the higher its abnormal score S i The larger the value, the higher the abnormality score. The nodes are sorted according to the abnormality score, and the nodes with higher ranking are abnormal nodes.
[0042] See also Figure 1The model framework shown is based on compression-reconstruction unsupervised anomaly detection. The anomaly detection model can be expressed as AnomFFNF, which consists of five main parts: weight sharing encoder, feature fusion, dual-channel decoder, abnormal node discriminator and node filter. The weight sharing encoder is used to learn network embedding and attribute embedding simultaneously. The feature fusion fuses the original attribute information of the node with the smoothed network information to ensure the integrity and consistency of the information; the fused embedding vector is calculated through Readout to obtain the global information of the network and calculate the similarity between each node and the global information. The dual-channel decoder decodes the learned sample data to complete the sample reconstruction and calculate the reconstruction error. The abnormal node discriminator calculates the abnormal value score by integrating the network reconstruction error, attribute reconstruction error and the similarity between each node and the global information, thereby preliminarily screening out abnormal nodes. The node filter further filters out possible abnormal nodes and retrains the weight sharing encoder using the filtered network.
[0043] Specifically, the weight sharing encoder learns the process of network embedding and attribute embedding based on the graph network data of the attribute network and the shared weight parameters, which can be designed to include:
[0044] The adjacency matrix and attribute matrix of the attribute network are used as inputs for network embedding learning, and the network embedding is learned based on the degree matrix and shared weight parameters of the attribute network;
[0045] The identity matrix and attribute matrix are used as input for attribute embedding learning, attribute embedding is learned based on shared weight parameters, and the shared weight parameters are used to map network embedding and attribute embedding to the same feature space.
[0046] The weight-sharing encoder can learn both network embedding and attribute embedding in a shared latent space. Specifically, the weight-sharing encoder has two inputs.
[0047] First, for network embedding, the input is the network adjacency matrix A and the node attribute matrix X. Among them, H 0 =X.
[0048] H l+1 =σ(D -1 / 2 AD -1 / 2 H l W l ) (1)
[0049] In formula (1), H l , H l+1 , W l They represent the input, output, and shared weight parameters of the weight-sharing autoencoder. d represents the degree matrix of the attribute network, D -1 / 2 AD -1 / 2represents the normalized adjacency matrix. In addition, σ(.) represents the activation function.
[0050] Secondly, in order to capture the attribute information of the node, the identity matrix I and the attribute matrix F are used 0 =X as input. The specific method is shown in formula (2):
[0051] F l+1 =σ(IF l W l ) (2)
[0052] F in formula (2) l 、F l+1 , W l Respectively represent the input, output, and shared weight parameters of the node attributes, where the shared parameter matrix W l Shared with formula (1).
[0053] Since the network information of the attribute network and the attribute information of the nodes are mapped to the low-dimensional space through the same parameter matrix, it can be ensured that the structures after the mapping of the two are in the same feature space.
[0054] Among them, the feature fuser embeds the learned network embedding and attribute embedding in the feature space to combine features and obtain node embedding information and network global information. The process can be designed to include:
[0055] The alignment between the network embedding and the attribute embedding is established through element-by-element multiplication operations to obtain the consistency information between the two;
[0056] The network embedding and attribute embedding are merged by element-by-element addition operation to obtain complementary information of the two.
[0057] The consistency information and complementary information of the two are combined to obtain the final node embedding representation, so as to obtain the global information of the network and the similarity between the node embedding information and the global information based on the node embedding representation.
[0058] In order to maintain the consistency and integrity of the embedded network information, a feature fusion is used to combine the network embedding H in the feature space. l and attribute embedding F l .
[0059] First, the alignment between the network embedding and the attribute embedding is established through an element-wise multiplication operation, which is denoted by the symbol ×. The purpose of the element-wise multiplication operation is to enhance the task-related information while mitigating the impact of task-irrelevant details between the network embedding and the attribute embedding. The consistency information between the network embedding and the attribute embedding is denoted by Z. con To express, the specific calculation is shown in formula (3):
[0060] Z con=H l ×F l (3)
[0061] Secondly, in order to make full use of network information and attribute information, the network embedding and attribute embedding are merged by element-by-element addition. This fusion method can fuse network information and attribute information, thereby promoting information complementarity. The complementary information of network embedding and attribute embedding is expressed by Z com The calculation process is shown in formula (4)
[0062] Z com =H l +F l (4)
[0063] Next, merge the consistency information Z con and complementary information Z com The final node embedding representation Z is obtained. The specific calculation process is shown in formula (5):
[0064] Z=Z con +Z com (5)
[0065] Finally, based on the final embedding representation Z of the node, the global information of the entire network and the similarity between each node and the global information are calculated. Since the vast majority of nodes in the network are normal nodes and only a small number of abnormal nodes are present, the vector of the entire network can be used to approximate the normal mode of the node. Under this premise, as long as the similarity between the node vector and the vector representation of the entire network is calculated, the degree of abnormality of the node can be determined. For example, if a node is a normal node, then the representation vector of the node is similar to the vector of the normal mode; conversely, if the node is an abnormal node, then its representation vector is far away from the vector of the normal mode. The global information g of the network is obtained using the Readout function. The specific process is shown in formula (6).
[0066]
[0067] The similarity calculation uses a bilinear model. The vector similarity between each node and the normal mode is calculated using a bilinear model. The similarity is expressed by the symbol The specific calculation is shown in formula (7).
[0068]
[0069] Among them, W is a learnable parameter matrix that makes the vector of each node and the normal mode as close as possible.
[0070] Among them, the process of the dual-channel decoder reconstructing the network structure and node attributes of the attribute network from the combined network features can be designed to include:
[0071] Reconstructing node attributes by performing feature conversion using an attribute decoder, wherein the attribute decoder adopts a fully connected neural network structure;
[0072] The structural decoder is used to reconstruct the network topology by calculating the inner product of the combined network features.
[0073] In order to reconstruct the network structure and node attributes from the low-dimensional feature z that integrates the network information and attribute information, a dual-channel decoder is used in this embodiment. The reconstruction process includes the following steps:
[0074] First, the attribute decoder uses a fully connected neural network to perform feature conversion and reconstruct node attributes. The specific formula is shown in formula (8).
[0075]
[0076] in, Represents the reconstructed attribute features. l∈(1, 2, 3...) represents the number of decoder layers.
[0077] Next, the low-dimensional embedding similarity of each node pair is calculated through the inner product to reconstruct the edges of the network topology. Similar to the attribute decoder, the low-dimensional feature Z that integrates the network information and attribute information is used as the input of the structure decoder. See formula (9).
[0078]
[0079] In the structural decoder, (.)T is used to represent the transpose of the matrix, and the Sigmoid activation function is used for normalization, that is, Sigmoid(.).
[0080] Specifically, the abnormal node discriminator determines the abnormality of network nodes based on the network structure reconstruction error, node attribute reconstruction error and the similarity between node embedding information and network global information, which can be designed to include:
[0081] Obtain the network structure reconstruction error and node attribute reconstruction error, and calculate the similarity between the two based on the node embedding information and the network global information;
[0082] The anomaly score of the network node is calculated by using the reconstruction errors and similarities in combination with the balance parameter. The network nodes are sorted according to the anomaly score, and the abnormal nodes in the network are screened out according to the sorting results and the preset anomaly threshold.
[0083] The graph neural network model has achieved good expressiveness in the representation of attribute networks with structures and attributes. However, the graph neural network model is designed based on the homogeneity assumption, that is, nodes with edges have similar features or belong to the same category. This is the main reason why the graph neural network model can extract good features. However, in the attribute network abnormal node inspection task, the existence of abnormal nodes destroys the homogeneity assumption of the graph neural network model. For example, an abnormal node may be connected to several normal nodes. At this time, the abnormal node vector representation obtained by aggregation of the graph neural network may be similar to that of the normal node, resulting in the inability to distinguish between normal nodes and abnormal nodes. Therefore, there are disadvantages in using only the graph neural network model to extract features.
[0084] In order to effectively use the graph neural network model in the abnormal node detection task, two key problems need to be solved: (1) utilizing the powerful expression ability of the graph neural network without destroying its homogeneity assumption; (2) solving the problem of inconsistent connections between normal nodes and abnormal nodes, and preventing the introduction of noise data into the node representation.
[0085] First of all, the first problem is that the existence of abnormal nodes destroys the homogeneity assumption of the graph neural network. The second problem is that there are inconsistent edges between abnormal nodes and normal nodes. In the final analysis, it is the abnormal nodes and the edges between abnormal nodes and normal nodes that cause the existence of the above problems. Therefore, consider removing the abnormal nodes and the edges between abnormal nodes during the aggregation process. If only normal nodes are aggregated, then the graph neural network will follow the homogeneity assumption, and the purity of the node representation vector learning process can be maintained, and the above problems will be solved. Therefore, the key point to solve the above two problems is: how to identify abnormal nodes and remove them from the graph, that is, to design an abnormal node discriminator.
[0086] Secondly, in the task of detecting abnormal nodes in attribute networks, normal nodes in the data account for the majority of the total data, and abnormal nodes are only a small part. The encoder can capture the characteristics of normal nodes in the data, but it is difficult to capture the characteristics of abnormal nodes. Therefore, the compression-reconstruction method is used for abnormal node detection. The data is first compressed to a low dimension by the encoder, and then restored by the decoder. The encoder can learn the normal data pattern, but cannot effectively restore abnormal nodes from low dimensions. A small number of abnormal nodes often have a large reconstruction error after compression-reconstruction, thereby detecting abnormal nodes in the network. Therefore, the reconstruction error is used as one of the bases for distinguishing abnormal nodes.
[0087] Next, since the compression-reconstruction attribute network abnormal node detection method aims to learn node representation by reconstructing the original data, rather than learning node representation through abnormal node detection itself. Although the node anomaly score can be calculated based on the reconstruction error, since this type of method does not directly target the goal of abnormal node detection, it can only achieve suboptimal performance. In order to make up for the shortcomings of compression-reconstruction, in the embodiment of this case, on the basis of calculating the reconstruction error, a task directly targeting the detection of abnormal nodes in the attribute network is designed, that is, the similarity between the calculated node and the global information is calculated, and the similarity between each node and the normal mode vector is calculated as the basis for directly distinguishing abnormal nodes and the goal of optimizing the loss function. (Improve the ability to identify edge nodes)
[0088] Finally, abnormal nodes are determined by comprehensively calculating the reconstruction error and the similarity between the node and the global information.
[0089] Using the similarity between the node and global information calculated by formula (7), formula (8) and formula (9) restore the reconstructed structure and attributes. First, calculate the structural reconstruction error and attribute reconstruction error, and record the structural reconstruction error as R S , the attribute reconstruction error is R A , see formula (10) and formula (11) for specific calculations.
[0090]
[0091]
[0092] Then, the reconstruction error and the similarity in formula (7) are used to calculate each node v i The outlier score of
[0093]
[0094] Among them, the first item is the reconstruction error of the original structure of the sample. The second item is the reconstruction error of the original attribute of the sample. The third item is the distance between each node and the normal pattern vector. The normal node and the normal pattern vector have a large similarity, a close distance, and a small value of the whole item; the abnormal node and the normal pattern vector have a small similarity, a far distance, and a large value of the whole item. α1, α2, and α3 are three balance parameters. In short, nodes with higher scores are more likely to be abnormal nodes. Therefore, the abnormal ranking is calculated based on the abnormal score to filter out abnormal nodes.
[0095] Specifically, the process of filtering the determined abnormal network nodes and the corresponding features of the abnormal nodes by the node filter can be designed to include:
[0096] The abnormal network nodes are located, and the row data corresponding to the abnormal network nodes in the adjacency matrix are modified to remove the abnormal network nodes from the graph network data.
[0097] Based on the discriminator identifying possible abnormal nodes, the specific method of implementing the node filter is as follows: before inputting the nodes and structures into the weight sharing encoder, the abnormal nodes are first located using the abnormal node discriminator, and the abnormal nodes are removed from the graph. Specifically, the row data of the corresponding node in the adjacency matrix can be modified to 0, so that the inconsistent noise influence is removed when the graph neural network is aggregated, the homogeneity assumption of the graph neural network is followed, and the feature extraction ability of the graph neural network is enhanced.
[0098] In addition, based on the abnormal nodes identified by the discriminator, their attributes are set to 0, so that the graph vector after readout can avoid noise data interference, thereby making the vector representation of the entire graph more consistent with the normal pattern in the network data. The filtered normal pattern vector is further applied to the abnormal node discriminator, which can continue to feed back to the abnormal node discriminator and the weight sharing encoder.
[0099] The loss function is the key to training optimization and an important part of the optimization model. The entire model uses holistic training, adding node filters and node-global similarity calculations on the basis of compression-reconstruction. The training process is similar to compression-reconstruction, so the loss of the model is the sum of the reconstruction error and the node global distance metric, and its mathematical expression can be expressed as:
[0100]
[0101] Among them, α1, α2 and α3 are the same as formula (12), and these three parameters are used to control the balance of the three losses.
[0102] Furthermore, based on the above method, an embodiment of the present invention also provides an attribute network abnormal node detection system based on iterative filtering, comprising: a data acquisition module and an abnormality detection module, wherein:
[0103] A data acquisition module, used to acquire graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, attribute network adjacency matrix and attribute network attribute matrix;
[0104] The anomaly detection module is used to use the attribute network adjacency matrix and the attribute matrix as training data inputs of the abnormal node detection model, and use the iterative filtering model training process to determine and output the abnormal nodes in the attribute network to be detected, and in each iterative filtering model training, detect and filter the abnormal nodes in the training data and update the training data until the next iterative filtering training data no longer generates new abnormal nodes;
[0105] Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
[0106] In order to verify the effectiveness of this solution, the following is a further explanation based on experimental data:
[0107] In order to verify the effectiveness of the model in this case, experiments were conducted on four public datasets focusing on the following three aspects, and the experimental results were analyzed.
[0108] 1. The impact of different encoders on the detection results of abnormal nodes in attribute networks. This paper mainly analyzes the impact of commonly used graph encoders GCN, GAT, and GIN on the experimental results.
[0109] 2. Comparison between the proposed model and the benchmark model. The proposed model AnomFFNF is compared with the existing classic attribute network abnormal node detection model.
[0110] 3. Analyze the impact of feature fusion and node filtering on abnormal node detection. According to the idea of ablation experiment, the feature fusion part is removed and compared with the model in this case; after removing the node filtering module, it is compared with this model to verify the effectiveness of this model.
[0111] Experiments are conducted on three widely used attribute network anomaly detection benchmark datasets, as shown in Table 1, namely Citeseer, Cora, and Pubmed.
[0112] Citeseer: This dataset consists of 3327 scientific papers, represented by Nodes. There are 4732 citation links, represented by Edges. The dimension of the attributes of each scientific paper is 3703.
[0113] Cora: This dataset consists of 2708 papers, represented by Node. There are 5429 citation links, represented by Edges. The attributes of each paper indicate whether the paper has a certain keyword, and the dimension of the attribute is 1433.
[0114] Pubmed: This dataset consists of 19,717 publications with 44,338 citation links between nodes. The dimension of the attributes of each publication is 500.
[0115] Table 1 Attribute network information statistics
[0116]
[0117]
[0118] The node attributes of the above three data sets are all vectorized using the bag-of-words model. The attributes of each node are represented by a vector, and the size of the vector dimension is determined by the dictionary size of the bag-of-words model.
[0119] Since the above three data sets do not have annotated abnormal nodes, the structure perturbation and attribute perturbation anomaly injection methods are used to perturb the data in the experiment.
[0120] Inject structurally abnormal nodes by disturbing the network topology. The principle behind this method is that in many real-world scenarios, very few nodes in a subgraph are fully connected, so fully connected structures are considered abnormal. First, randomly select m subgraphs in the network, each with n nodes; then, fully connect the n nodes in the m subgraphs to form a fully connected structure. The fully connected nodes in these subgraphs are considered structurally abnormal nodes.
[0121] Generate attribute abnormal nodes by perturbing node attributes. Use the node with the largest Euclidean distance to the target node in the network to perturb the attribute of the target node. First, randomly select m×n nodes from the network as candidate attribute abnormal nodes; then, for each target node in the candidate nodes, randomly select k nodes from the data except the candidate nodes, calculate the Euclidean distance between the target node and k nodes, and find the node j with the largest Euclidean distance to the target node; then replace the attribute of the target node with the attribute of node j; finally, generate m×n nodes as attribute abnormal nodes.
[0122] According to the above injection method and according to the size of the network, each data set is injected with abnormal nodes of about 5% of the network size. Finally, the perturbed network is obtained, and the total number of anomalies is listed in the last row of Table 1. In this experiment, all category labels are deleted, and only abnormal labels can be seen in the inference stage.
[0123] The experiment uses AUC value (Area Under the Curve) as the evaluation indicator to evaluate the performance of the model.
[0124] AUC is a common metric used to evaluate the performance of a binary classification model. It represents the area under the ROC curve. Its physical meaning is: given random positive and negative examples, the probability that the model predicts a positive example as a positive example is higher than the probability that the model predicts a negative example as a positive example. Therefore, the larger the AUC value, the better the model performance, that is, the more accurate the model is in distinguishing positive and negative examples.
[0125] The operating environment used is Windows 10, Python 3.8, PyTorch 1.1, and the hardware environment is NVIDIA GeForce graphics card with 16GB video memory. In order to ensure the fairness of the experimental results, the model in this case and the comparative experiment use the same environment and settings: the optimizer uses Adam, the learning rate is 0.01, the final node embedding dimension is set to 64, the number of layers of the graph neural network is set to 2, and the dropout value is 0.3.
[0126] 1. GNN encoder selection
[0127] The effects of different GNN encoders on the model are analyzed, mainly exploring the effects of common graph neural network encoders GCN, GAT, and GIN on model performance. Experimental verification is carried out on four datasets, and the experimental results are as follows: Figure 2 shown.
[0128] According to the experimental results, GIN is the best encoder for the entire model. Therefore, GIN can be selected as the final encoder for the model in the specific abnormal node detection. In the anomaly detection task, GIN more accurately distinguishes normal nodes from abnormal nodes. Although GAT is not as good as GIN in the abnormal node detection task, it is still improved compared to GCN. This is because GAT considers the weight contribution of different neighbors when aggregating neighbor information. In particular, for the data imbalance problem in the abnormal node detection task, GAT slows down the destruction of the homogeneity of the network by abnormal nodes in the process of aggregating neighbor information. GCN performed generally in this task. The main reason is that there are inconsistently connected edges in the data set, that is, the normal nodes and abnormal nodes are inconsistently connected. GCN introduces noise data in the aggregation process, resulting in the interference of the trained graph representation by the noise data.
[0129] 2. Model performance comparison experiment
[0130] The experimental results of the AnomFFNF model in this case solution are compared with the other five baseline models. The selected baseline models are as follows:
[0131] LOF (Breunig et al. 2000): An attribute-based anomaly detection method. It determines whether a node is an abnormal node by observing the attribute values of the same community. It only considers the attribute information of the node and ignores the structural anomaly of the attribute network.
[0132] DOMINANT (Ding et al. 2019): An anomaly detection architecture based on graph neural networks. Graph convolution and autoencoders are used to jointly reconstruct the adjacency matrix and attribute matrix. The degree of anomaly of each node is evaluated by calculating the reconstruction error. This method has the problem of over-smoothing. When GCN aggregates neighbor information, it smoothes the anomaly information.
[0133] AnomalyDAE (Fan et al, 2020): Anomaly detection architecture based on graph neural networks. GAT is applied to the embedding of attribute networks to learn the importance between different neighbor nodes, thereby improving the effect of anomaly detection. Anomaly detection based on compression-reconstruction does not directly target anomaly detection, and the results are suboptimal.
[0134] OC-GCN (Wang et al. 2021): An anomaly detection architecture based on graph neural networks. It uses the powerful representation capabilities of graph neural networks. For example, GraghSage is used to learn node embeddings for graph data. Then, the idea of binary classification is applied to detect abnormal nodes in the attribute network. The presence of abnormal nodes will destroy the homogeneity of the graph neural network.
[0135] JAANE (Fan et al, 2023): An anomaly detection architecture based on graph neural networks. The target node and its neighbor information are considered simultaneously in the aggregation process, and the feature vector of the node is learned by fusing the two. The hypersphere of normal nodes is learned by reconstructing the error and regularization modules, and the nodes outside the hypersphere are regarded as abnormal nodes. This model alleviates the over-smoothing problem, but the presence of abnormal nodes destroys the homogeneity assumption.
[0136] The AUC results of each model are as follows: Figure 3 As shown. Figure 3 The following conclusions can be drawn from the results.
[0137] (1) The AnomFFNF model in this case solution has achieved good results on the three datasets. Specifically, AnomFFNF has achieved certain improvements on Citeseer, Cora, and Pubmed, respectively, with the best AUC values increased by 3.46%, 1.04%, and 1.69% compared with the comparison model. This shows that AnomFFNF ensures the solution of the over-smoothing problem and the homogeneity assumption of the encoder through attribute fusion and node filtering, thereby improving the performance of abnormal node detection.
[0138] (2) The traditional abnormal node detection method is obviously inferior to the graph neural network-based method, which shows that the traditional mechanism cannot capture the attribute and structural information of the network at the same time, and its ability to process the network is limited.
[0139] (3) Among the methods based on graph neural networks, AnomalyDAE and OC-GCN are significantly better than the original DOMINANT, because both of them alleviate the over-smoothing problem to a certain extent. AnomalyDAE uses GAT as an encoder and performs certain screening in the process of aggregating neighbor information; OC-GCN uses GraghSage for graph representation learning, which alleviates over-smoothing compared to the original GCN.
[0140] 3. Ablation analysis
[0141] This paper mainly explores how the following modules affect model performance: (1) the influence of feature fusion and (2) the influence of node filters.
[0142] The impact of feature fusion on model performance is compared with the model without the node feature fusion module. The model without the feature fusion module is denoted as AnomNF. The experimental results of the original model and the model without the feature fusion module on four data sets are shown in Figure 2. Figure 4 As shown. It can be clearly seen from the data that AnomFFNF in this case solution has the best AUC performance on the three data sets. Further analysis shows that AnomFFNF in this case solution can not only aggregate the node's neighbor information when learning the node's vector representation, but also fuse its own information, which can prevent the surrounding neighbor information from diluting the abnormal node's own information and causing a decrease in detection accuracy. However, AnomNF in this case solution removes the feature fusion module and simply aggregates the neighbor information, which will cause the abnormal node's own information to be diluted by the surrounding neighbor nodes, and the model cannot learn the abnormal features, thus affecting its accuracy improvement.
[0143] The model without node filters is compared with the model in this case. The new model without node filters is denoted as AnomFF. The experimental results of the two models on three data sets are shown in Table 2.
[0144] Table 2 Impact of node filters
[0145] Citeseer Cora Pubmed AnomFFNF 0.92 0.9509 0.9414 AnomNF 0.8854 0.8617 0.8967
[0146] It can be seen from the experimental results that after adding the abnormal node filtering module, the experimental results of the model on the three data sets have been improved to a certain extent, and the AUC values have increased by 3.46%, 8.92%, and 4.47% respectively. The experiment fully proves the necessity of the node filtering module in the entire model; by adding the node filtering module, when learning the vector representation of the node, the model will eliminate possible abnormal nodes, ensuring the homogeneity assumption of the graph neural network; after removing the node discrimination module, the model degenerates into an ordinary abnormal node detection model. The entire model is not optimized for the abnormal node detection task. From the results, it is obviously inferior to the original model. This also verifies that removing the interference of abnormal nodes in the anomaly detection task is conducive to improving the accuracy of the model.
[0147] The above experimental data can prove that the feature fusion of this solution can ensure that the network's own features will not be diluted when fusing neighbor information, thereby avoiding misjudgment caused by the dilution of abnormal features; possible abnormal nodes are eliminated in node filtering to ensure the purity of node features, and the reconstruction error and the node and global similarity are used as the basis for judging node abnormalities. The node and global similarity are directly targeted at anomaly detection tasks, enhancing the target-driven nature of the model and facilitating deployment and implementation in actual attribute network abnormal behavior detection applications.
[0148] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0149] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0150] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.
[0151] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.
[0152] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for detecting abnormal nodes in attribute networks based on iterative filtering, characterized in that: Include: Acquire graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, attribute network adjacency matrix and attribute network attribute matrix; The attribute network adjacency matrix and the attribute matrix are used as the training data input of the abnormal node detection model, and the abnormal nodes in the attribute network to be detected are determined and output by using the iterative filtering model training process. In each iterative filtering model training, the abnormal nodes in the training data are detected and filtered and the training data is updated until the next iterative filtering training data no longer generates new abnormal nodes; Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
2. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1 is characterized in that: The weight-sharing encoder learns the process of network embedding and attribute embedding based on the graph network data of the attribute network and based on the shared weight parameters, including: The adjacency matrix and attribute matrix of the attribute network are used as inputs for network embedding learning, and the network embedding is learned based on the degree matrix and shared weight parameters of the attribute network; The identity matrix and attribute matrix are used as input for attribute embedding learning, attribute embedding is learned based on shared weight parameters, and the shared weight parameters are used to map network embedding and attribute embedding to the same feature space.
3. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1 is characterized in that: The feature fuser combines the learned network embedding and attribute embeddings in the feature space to obtain node embedding information and network global information, including: The alignment between the network embedding and the attribute embedding is established through element-by-element multiplication operations to obtain the consistency information between the two; The network embedding and attribute embedding are merged by element-by-element addition operation to obtain complementary information of the two. The consistency information and complementary information of the two are combined to obtain the final node embedding representation, so as to obtain the global information of the network and the similarity between the node embedding information and the global information based on the node embedding representation.
4. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1 is characterized in that: The process of the dual-channel decoder reconstructing the network structure and node attributes of the attribute network from the combined network features includes: Reconstructing node attributes by performing feature conversion using an attribute decoder, wherein the attribute decoder adopts a fully connected neural network structure; The structural decoder is used to reconstruct the network topology by calculating the inner product of the combined network features.
5. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1, characterized in that: The abnormal node discriminator determines the abnormality of network nodes based on the network structure reconstruction error, node attribute reconstruction error, and the similarity between node embedding information and network global information, including: Obtain the network structure reconstruction error and node attribute reconstruction error, and calculate the similarity between the two based on the node embedding information and the network global information; The anomaly score of the network node is calculated by using the reconstruction errors and similarities in combination with the balance parameter. The network nodes are sorted according to the anomaly score, and the abnormal nodes in the network are screened out according to the sorting results and the preset anomaly threshold.
6. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1, characterized in that: The node filter filters the abnormal network nodes and their corresponding features, including: The abnormal network nodes are located, and the row data corresponding to the abnormal network nodes in the adjacency matrix are modified to remove the abnormal network nodes from the graph network data.
7. The method for detecting abnormal nodes in attribute networks based on iterative filtering according to claim 1, characterized in that: The training loss function of the abnormal node detection model is expressed as: L = α1R s +α2R A +α3s sim , where α1, α2 and α3 are equilibrium parameters, R S The network structure reconstruction error is, R A is the attribute reconstruction error, S sim It is the similarity between the node embedding information and the global network information.
8. An attribute network abnormal node detection system based on iterative filtering, characterized in that: Contains: data acquisition module and anomaly detection module, among which, A data acquisition module, used to acquire graph network data of the attribute network to be detected, wherein the graph network data includes attribute network nodes, attribute network adjacency matrix and attribute network attribute matrix; The anomaly detection module is used to use the attribute network adjacency matrix and the attribute matrix as training data inputs of the abnormal node detection model, and use the iterative filtering model training process to determine and output the abnormal nodes in the attribute network to be detected, and in each iterative filtering model training, detect and filter the abnormal nodes in the training data and update the training data until the next iterative filtering training data no longer generates new abnormal nodes; Among them, the abnormal node detection model includes a weight sharing encoder that learns network embedding and attribute embedding based on the graph network data of the attribute network and based on shared weight parameters, a feature fusion device that combines the learned network embedding and attribute embedding in the feature space and obtains node embedding information and network global information, a dual-channel decoder that reconstructs the network structure and node attributes of the attribute network from the combined network features, an abnormal node discriminator that judges the abnormality of the network node based on the network structure reconstruction error, node attribute reconstruction error, the similarity between the node embedding information and the network global information, and a node filter that filters the judged network abnormal nodes and the corresponding features of the abnormal nodes.
9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Image anomaly detection method based on depth unsupervised automatic encoder
CN114638342A
Network node depth anomaly detection method based on density estimation
CN114970736A
Network abnormal point detection method based on hyperbolic space
CN115664970A
Multi-view comparison self-supervision attribute network abnormal point detection method
CN116128024A
Multi-modal anomaly detection method based on graph attention network and time convolution network
CN116701992A
Cited By
Large-scale data processing method and platform for digital economic monitoring
CN119359447A
Abnormal node detection method and system based on network enhancement joint sparse canonical correlation analysis
CN119945928A
