Network monitoring data completion method and device
By extracting the topological and dynamic features of network monitoring data through a neural network model, the problem of insufficient accuracy and flexibility in existing network monitoring data completion technologies is solved, and efficient online and offline data completion is achieved.
Patent Information
- Application Number
- CN202311771578.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-21
AI Technical Summary
Existing methods for completing network monitoring data are insufficient in terms of accuracy and flexibility, especially in their limited ability to capture nonlinear information and their lack of flexibility in both online and offline scenarios.
A neural network model is adopted, which is trained by inputting subsequences, bipartite graph sequences, binary masks and network topology information. The model extracts the topological and dynamic features of nodes by using multilayer perceptron neural networks and graph convolutional layers, and updates the hidden state by combining reset gates and update gates to achieve accurate completion of network traffic datasets.
It improves the accuracy of data completion, enabling quick and accurate completion of missing data in both online and offline scenarios, enhances the ability to capture non-linear associations, and provides scenario flexibility.
Smart Images

Figure CN117828283B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network data monitoring, and specifically to a method and device for network monitoring data completion. Background Technology
[0002] Network monitoring is a crucial process for managing and maintaining modern computer networks, requiring continuous measurement and analysis of traffic distribution among network entities. This process is indispensable for tasks such as anomaly detection, troubleshooting, and network optimization, highlighting the necessity of monitoring the entire network. However, due to factors such as device connection interruptions, malfunctions, and significant measurement overhead, the integrity of network-wide monitoring data is often difficult to guarantee.
[0003] Existing methods for completing monitoring data can be mainly divided into traditional methods and neural network-based methods. Traditional methods typically use matrix completion or tensor completion techniques to fill in missing elements in the monitoring data. These methods decompose the monitoring matrix or tensor into multiple low-rank factor matrices, train these factor matrices based on the observed data, and use these trained factor matrices to estimate the unobserved data. Neural network-based methods are partly an extension of traditional methods, using embedded matrices to replace the factor matrices in traditional matrix or tensor completion algorithms; another part involves mining the temporal and spatial features of the data to complete the missing data.
[0004] Traditional data completion methods, while possessing a solid theoretical foundation, have limited ability to estimate missing values because they only capture linear information from network monitoring data, neglecting nonlinear aspects. While methods that introduce neural network techniques to obtain embedding matrices or tensors based on traditional methods improve completion performance, they are limited by model design constraints and do not fully utilize the powerful capabilities of neural networks. Other methods that use neural networks to mine temporal and spatial features of data for data completion do not effectively utilize network-related features, resulting in limited accuracy in network data completion. Furthermore, existing completion methods are typically only applicable to single offline or online completion scenarios, lacking flexibility in adapting to different scenarios. Summary of the Invention
[0005] This application provides a method and apparatus for completing network monitoring data to solve at least one of the aforementioned problems existing in current network monitoring data completion methods.
[0006] To achieve the above objectives, this application adopts the following technical solution.
[0007] On the one hand, a method for completing network monitoring data is provided, which includes the following steps:
[0008] The subsequence, bipartite graph sequence, binary mask, and network topology information from the network traffic dataset are input into the network monitoring data completion model to train the model, resulting in a trained network monitoring data completion model.
[0009] The network monitoring data completion model is configured to obtain the topological features of each node in the bipartite graph sequence based on the network topology information of the network traffic dataset, obtain the dynamic features of each node in the bipartite graph sequence at each time step based on the subsequence, binary mask and topological features, encode each node in the bipartite graph sequence to obtain the static features of each node, and estimate the invisible part of the network traffic dataset based on the dynamic and static features of each node in the bipartite graph sequence.
[0010] The training set and test set of the network monitoring data completion model are obtained by the following method: a binary mask is randomly generated on the OD matrix of the network traffic dataset, and the network traffic dataset corresponding to the two values in the binary mask is divided into a training set and a test set, where the training set is the visible part and the test set is the invisible part.
[0011] The bipartite graph sequence is obtained by dividing the training set into subsequences along the time dimension and then modeling the subsequences.
[0012] In some embodiments, obtaining the dynamic features of each node in a bipartite graph sequence at each time step based on subsequences, binary masks, and topological features includes the following steps:
[0013] The hidden state of the node at the previous time step is input into the first multilayer perceptual neural network to obtain the first prediction result.
[0014] The hidden state of the node at the previous time step, the first prediction result, the binary mask and the topological features are fused and then input into the first graph convolutional layer to obtain the dynamic features of the node at the current time step.
[0015] In some embodiments, after obtaining the dynamic characteristics of a node at the current moment, the method further includes:
[0016] The dynamic features of the node at the current moment are input into the second multilayer perceptual neural network to obtain the second prediction result;
[0017] The second prediction result is concatenated with the binary mask and topological features. The concatenated features are then input together with the hidden state of the node at the previous time step into the reset gate and the update gate. The reset gate includes a source node reset gate and a destination node reset gate, and the update gate includes a source node update gate and a destination node update gate.
[0018] The output of the reset gate, the hidden state of the node in the previous time step, and the concatenated features are input into the second graph convolutional layer.
[0019] The output of the second graph's convolutional layer, the node's hidden state at the previous time step, and the output of the update gate are input into the hidden state update layer to obtain the node's hidden state at the current time step.
[0020] In some embodiments, estimating the invisible portion of a network traffic dataset based on the dynamic and static characteristics of each node in the bipartite graph sequence includes:
[0021] The dynamic and static features of each node in the bipartite graph sequence are concatenated and then input into the third multilayer perceptron to obtain the estimation results of the invisible part of the network traffic dataset.
[0022] In some embodiments, in online scenarios, the dynamic features include forward dynamic features; in offline scenarios, the dynamic features include both forward dynamic features and reverse dynamic features. Forward dynamic features refer to extracting dynamic features from data in forward chronological order, while reverse dynamic features refer to extracting dynamic features from data in reverse chronological order.
[0023] In another aspect, a computer device is provided, including a memory, a processor, and program instructions stored in the memory that are executable by the processor, wherein the processor executes the program instructions to implement the steps of the above-described network monitoring data completion method.
[0024] This application has at least the following technical effects or advantages:
[0025] 1. By capturing non-linear relationships between data through neural networks, the accuracy of data completion can be improved.
[0026] 2. Fully consider the relevant characteristics of network data to achieve targeted data completion and further improve the accuracy of data completion.
[0027] 3. By updating the hidden state of the data at each time step and comprehensively utilizing the extracted features to predict unobserved edges on the bipartite graph, the accuracy of data completion is further improved.
[0028] 4. By proposing an online mode, a model trained on collected data with fixed parameters is used to complete newly arriving data, ensuring rapid completion of missing data with a certain level of accuracy. Attached Figure Description
[0029] Figure 1 This is a flowchart illustrating a network monitoring data completion method in one embodiment of this application;
[0030] Figure 2 This is a schematic diagram illustrating the modeling of a data matrix as a bipartite graph in one embodiment of this application;
[0031] Figure 3 This is a schematic diagram of a topological feature extraction method in one embodiment of this application;
[0032] Figure 4 This is a schematic diagram of a static feature extraction method in one embodiment of this application;
[0033] Figure 5 This is a schematic diagram of a dynamic feature extraction method in one embodiment of this application;
[0034] Figure 6 This is a schematic diagram of the structure of a dynamic feature extractor in one embodiment of this application;
[0035] Figure 7 This is a schematic diagram illustrating the completion methods in offline and online scenarios in one embodiment of this application. Detailed Implementation
[0036] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0037] Example 1
[0038] See Figure 1 A method for completing network monitoring data, comprising the following steps:
[0039] The subsequence, bipartite graph sequence, binary mask, and network topology information from the network traffic dataset are input into the network monitoring data completion model to train the model, resulting in a trained network monitoring data completion model.
[0040] The network monitoring data completion model is configured to obtain the topological features of each node in the bipartite graph sequence based on the network topology information of the network traffic dataset, obtain the dynamic features of each node in the bipartite graph sequence at each time step based on the subsequence, binary mask and topological features, encode each node in the bipartite graph sequence to obtain the static features of each node, and estimate the invisible part of the network traffic dataset based on the dynamic and static features of each node in the bipartite graph sequence.
[0041] The training set and test set of the network monitoring data completion model are obtained by the following method: a binary mask is randomly generated on the OD matrix of the network traffic dataset, and the network traffic dataset corresponding to the two values in the binary mask is divided into a training set and a test set, where the training set is the visible part and the test set is the invisible part.
[0042] The bipartite graph sequence is obtained by dividing the training set into subsequences along the time dimension and then modeling the subsequences.
[0043] Specifically,
[0044] (1) First, obtain the network traffic dataset and divide it into a training set and a test set, i.e., the visible part and the invisible part (missing part). The specific method for dividing the training set and the test set is to randomly generate a 0-1 binary mask, where 1 represents the visible part (training set) and 0 represents the invisible part (test set). Specifically, if the traffic between n source nodes and m destination nodes in the network is monitored, the network monitoring data at time t can be represented by matrix X. t ∈R n×m This indicates that its corresponding binary mask matrix is M. t ∈R n×m . and Representing matrix X respectively t and M t The element in the i-th row and j-th column. When Time indicates The visible part, and Then it means This represents the missing part. After continuous monitoring for time T, a tensor X∈R formed by stacking multiple monitoring matrices can be obtained. T×n×m and its corresponding binary mask tensor M∈R T×n×m .
[0045] The partitioned network traffic dataset is divided into subsequences along the time dimension according to a fixed window length and step size, for use in subsequent model training and missing data completion.
[0046] And, as Figure 2 As shown, the network traffic dataset (subsequence) is modeled as a bipartite graph sequence. The monitoring matrix X for each time slice is... t Convert to bipartite graph G t = <V t E t >,V t and E t Represent the bipartite graph G respectively t The nodes and edges.
[0047] Monitoring Matrix X t The data is n rows and m columns, where the correspondence between the rows and columns and the source and destination nodes implies a bipartite graph G. t node V in t It can be divided into two sets: and Source node set Contains n nodes, the set of destination nodes It contains m nodes. A matrix is formed if and only if the corresponding element in the matrix... When observed, the edge Connect source node set Nodes in and the set of destination nodes Nodes in side The value carried is equal to The value of X. Therefore, complete X. t The missing data in the graph can be converted into a bipartite graph G. t Estimation of unobserved edges in the middle.
[0048] (2) Figure 1 As shown, the network topology information is read, and the topology features of each node in the bipartite graph are generated using a topology feature generator. A static feature encoder is used to encode the static features of each source and destination node, and each subsequence obtained in step (1) is input into the network monitoring data completion model. In the network monitoring data completion model, the bipartite graph sequence is sequentially input into a dynamic feature extractor at each time step to obtain the dynamic features of each node at each time step. The static features of the nodes and the dynamic features at each time step are used to estimate the values corresponding to the missing edges.
[0049] In offline scenarios, subsequences, bipartite graph sequences, binary masks, and network topology information from the network traffic dataset are collectively input into the network monitoring data completion model for forward propagation, yielding estimates of the visible and invisible portions of the network traffic data. Then, the loss between the estimated and true values of the visible portion is calculated using a loss function. Backpropagation is then used to update and optimize all trainable parameters of the model to improve estimation accuracy. These steps are repeated iteratively until the change in the offline and visible portion loss values over multiple training iterations is less than a threshold or the maximum number of pre-set training iterations is reached.
[0050] After training, the data to be completed is input into the trained model to obtain the final offline completion result.
[0051] Specifically, the network monitoring data completion model in this step is trained through the following steps:
[0052] (2-1) Read the topology information of the network data and generate the topology features of each bipartite graph node. For example... Figure 3 As shown, each row of the topology feature matrix represents the topology feature vector of the corresponding node. If the network topology information at time t, i.e., the actual topological adjacency relationships of network nodes in the network data, can be represented by the network topology matrix T... t Let represent the topological feature matrix Top at time t. t The formalized expression is as follows:
[0053]
[0054] In this formula, 0 is a zero matrix with appropriate dimensions. (Top) t In this context, each row corresponds to the topological features of the associated node. and Let i and j represent the topology information of the i-th source node and the j-th destination node, respectively, where 1≤i≤n and 1≤j≤m.
[0055] (2-2) The static features of the source and destination nodes are encoded by a static feature encoder, such as... Figure 4 As shown. Static characteristics encapsulate the inherent information of network nodes, such as location and configuration information. Given a network with n source nodes and m destination nodes, each node has a unique one-hot code to represent its static characteristics, ensuring that the static characteristics of a node are unique. In the static characteristics of the i-th source node, the i-th element is 1, and the remaining elements are 0. Similarly, in the static characteristics of the j-th destination node, the (n+j)-th element is 1, and the remaining elements are 0.
[0056] (2-3) The matrix to be completed is input into the dynamic feature extractor at each time step to obtain the dynamic features of each node at each time step.
[0057] like Figure 5 and Figure 6 As shown, obtaining the dynamic features of each node in a bipartite graph sequence at each time step based on subsequences, binary masks, and topological features includes the following steps:
[0058] The hidden state of the node at the previous time step is input into the first multilayer perceptual neural network to obtain the first prediction result.
[0059] The hidden state of the node at the previous time step, the first prediction result, the binary mask and the topological features are fused and then input into the first graph convolutional layer to obtain the dynamic features of the node at the current time step.
[0060] After obtaining the dynamic characteristics of the node at the current moment, it also includes:
[0061] The dynamic features of the node at the current moment are input into the second multilayer perceptual neural network to obtain the second prediction result;
[0062] The second prediction result is concatenated with the binary mask and topological features. The concatenated features are then input together with the hidden state of the node at the previous time step into the reset gate and the update gate. The reset gate includes a source node reset gate and a destination node reset gate, and the update gate includes a source node update gate and a destination node update gate.
[0063] The output of the reset gate, the hidden state of the node in the previous time step, and the concatenated features are input into the second graph convolutional layer.
[0064] The output of the second graph's convolutional layer, the node's hidden state at the previous time step, and the output of the update gate are input into the hidden state update layer to obtain the node's hidden state at the current time step.
[0065] Estimating the invisible portion of a network traffic dataset based on the dynamic and static characteristics of each node in a bipartite graph sequence includes:
[0066] The dynamic and static features of each node in the bipartite graph sequence are concatenated and then input into the third multilayer perceptron to obtain the estimation results of the invisible part of the network traffic dataset.
[0067] Specifically, the dynamic feature extractor is mainly divided into two modules: a feature learning module and a hidden state update module. The feature learning module extracts the dynamic features of the current time step using the information of the current time step and the hidden state of the previous time step; the hidden state update module is used to update the hidden state of the current time step, and the hidden state is used to record the historical information of each node.
[0068] The feature learning module is mainly divided into two steps: edge pre-estimation and node feature extraction.
[0069] Edge prediction utilizes the hidden states of nodes from the previous time step to pre-estimate the missing edges in the bipartite graph at the current time step. Specifically, the hidden states of the two nodes connected to the edge to be estimated are concatenated and input into a multilayer perceptron neural network to obtain a prediction result, which is expressed as follows:
[0070]
[0071] in Represents node o i and d j The estimated values of the edges between them in the feature learning module. and This represents the hidden states of the i-th source node and the j-th destination stage at time t-1. Therefore, at time t, an estimation matrix is... It can be obtained. Based on the estimated matrix in the feature learning module, replacing the visible parts with the true values yields the matrix. In this matrix, hour hour
[0072] Following the pre-estimation step is the node feature extraction step. The feature extraction step first extracts the node's hidden state and matrix from the previous time step. The binary mask matrix and topological feature information are fused, and then graph convolution operations are used to mine the internal relationships between nodes to obtain the dynamic features at the current time step. The specific formula is as follows:
[0073]
[0074]
[0075]
[0076] in, and Let represent the fused features of the i-th source node and the j-th destination node, respectively. Concat represents the vector concatenation operation. and Represent matrices respectively The i-th row and j-th column, and These represent the binary mask matrix M respectively. t The i-th row and j-th column of C, where W and b are the weight matrix and bias, respectively. t Let G be the set of fused features of all source and destination nodes at time t, and let G denote the graph convolution operation. S is the adjacency matrix of a fully connected bipartite graph. t The node feature matrix is obtained after graph convolution, which records the dynamic features of all nodes at time t.
[0077] After obtaining the dynamic feature representation of the node at time t, the hidden state of the node is updated using the hidden state update module. The hidden state update module also consists of two steps: edge pre-estimation and hidden state update.
[0078] The edge pre-estimation step uses the dynamic features of the nodes at the current time to estimate the edges, and its formula is expressed as follows:
[0079]
[0080] in Represents node o i and d j The estimated values of edges in the hidden state update module. and This represents the dynamic characteristics of the i-th source node and the j-th destination node at time t. Therefore, an estimation matrix is generated at time t. It can be obtained. Based on the estimated matrix in the hidden state update module, the visible portion can be replaced with the true values to obtain the matrix. In this matrix, hour hour
[0081] Then, the hidden state of the node is updated using an Attention and Graph Convolution Mixed GRU (AGGRU).
[0082]
[0083]
[0084]
[0085] Where AGGRU represents the AGGRU unit, INFO t This represents the fused feature used to update the hidden state at time t. and It is the feature obtained by fusing the i-th source node and the j-th destination node.
[0086] The specific implementation formula for AGGRU is as follows:
[0087]
[0088]
[0089]
[0090]
[0091]
[0092] H t =U t ·H t-1 +(1-U t )·P t
[0093] Where σ represents the sigmoid function, and There are four different multi-head attention modules, each used to compute the output of the reset gate (R gate) and update gate (U gate) for the source node and the destination node, respectively. t for and The combination, U t for and The combination of , (·) represents the element-wise multiplication of matrices. P t H is a candidate hidden state. t-1 H represents the hidden state of a node at time t-1. t Let be the hidden state after the update at time t.
[0094] In summary, the hidden state update module improves the accuracy of hidden state representation by incorporating real-time dynamic features to reflect the latest information. Then, the dynamic feature extractor uses the updated hidden state to calculate the dynamic features for subsequent time slices, thereby ensuring the continuous and seamless flow of relevant information over time.
[0095] (2-4) Completion of missing values (i.e., unobserved edges in a bipartite graph). This application supports both offline and online data completion, with different completion methods for each scenario, such as... Figure 7 As shown. Specifically, in online scenarios, dynamic features only include positive dynamic features. In offline scenarios, to accurately estimate network traffic data, dynamic features include both positive and negative dynamic features. A bidirectional dynamic feature extractor is used to extract both positive and negative dynamic features, capturing time patterns from the past to the present, as well as patterns from the future to the present.
[0096] In the network monitoring data completion model, for any node v (including the source node and the destination node) in a bipartite graph, the bidirectional final node feature representation at time t... Both forward and reverse dynamic features can be used. and static features The formula is as follows:
[0097]
[0098] Therefore, the node features are concatenated and input into a multilayer perceptron to obtain the edge estimate. This step can be expressed by the following formula:
[0099]
[0100] Here, MLP bi This represents a multilayer perceptron neural network. and Let represent the bidirectional final node feature representations of the i-th source node and the j-th destination node at time t, respectively. This represents the network traffic data estimation results using bidirectional final node features.
[0101] Similarly, the unidirectional final node feature representation at time t Then, due to positive dynamic characteristics Static features Its composition, expressed by the formula, is as follows:
[0102]
[0103] The estimation of edges adopts the same estimation method as that used for bidirectional node features. The features of the two nodes connected by the edge are concatenated and input into the multilayer perceptron to obtain the estimation result.
[0104]
[0105] This represents the network traffic data estimation result using unidirectional final node features.
[0106] To effectively train the model, we first define an error function L, which is used to calculate the error between the estimated value and the true value of the visible part of the data. The specific formula is as follows:
[0107]
[0108] in X represents the estimated tensor, M represents the original tensor, and M represents the binary mask tensor. express The (i,j)th element at time t in the tensor; similarly... and These represent the (i,j)th elements of the X and M tensors at time t, respectively.
[0109] Based on the error function L, we define the model's loss function as follows:
[0110]
[0111] in and This represents the tensor obtained by stacking the estimation matrices from the edge pre-estimation step in the feature learning module of the forward and reverse dynamic feature extractors. and This represents the tensor obtained by stacking the estimation matrices of the edge pre-estimation step in the hidden state update module of the forward and reverse dynamic feature extractors.
[0112] like Figure 7 As shown, in offline scenarios, after the model completes training, incomplete network traffic data, its binary mask, and the corresponding network topology information are input into the trained model for forward propagation. This yields network traffic data estimation results using bidirectional final node feature representations, which serve as the offline model's estimation results for missing data. In online scenarios, a lightweight unidirectional model is used. Compared to the complete network monitoring data completion model, this model only includes a forward dynamic feature extractor and a multilayer perceptron neural network using unidirectional final node feature representations.
[0113] like Figure 7As shown, in an online scenario, by inputting incomplete network traffic data, its binary mask, and the network topology information corresponding to the data into a lightweight one-way model, the network traffic data estimation result obtained using the feature representation of the one-way final node can be used as the estimation result for the missing data in the online scenario.
[0114] The online lightweight unidirectional model directly reads the trained network monitoring data to complete the corresponding parameters of the model. The online data that needs to be completed is input to obtain the online completion result.
[0115] Test Results
[0116] This invention is implemented using PyTorch programming. Specific settings are as follows: batch size is 100, and initial learning rate is 0.003.
[0117] The test used is Dataset, Composed of 23 network nodes, the dataset recorded traffic measurements every 15 minutes over 112 days. During training and testing, data was randomly sampled from the original dataset and divided into visible and invisible portions at a 1:9 ratio. Furthermore, the first 3000 matrices were used for data completion in offline scenarios, and the following 600 matrices were used for data completion in online scenarios. During testing, a threshold was set to exclude extremely large outliers from the dataset.
[0118] The evaluation metric used in this invention is NMAE, which is used to evaluate the completion error of missing parts. The smaller the NMAE metric, the smaller the error. Its expression is:
[0119]
[0120] in and These represent the true value and the completed estimate, respectively. Indicates the missing part.
[0121] The test results obtained by this invention are compared with those of commonly used methods, and the evaluation results are shown in Table 1 below:
[0122] Table 1
[0123] method NMAE CoSTCo (Offline) 0.6424 NTC (Offline) 1.5309 NTF (Offline) 0.5322 NTM (Offline) 0.8407 DLMC (Offline) 2.0103 GRIN (Offline) 0.4715 This invention (offline) 0.3042 This invention (online) 0.4441
[0124] According to Table 1 above, in Experimental results from offline and online scenarios in the dataset show that the network monitoring data completion method based on a flexible bidirectional model proposed in this invention has a much smaller completion error than existing methods.
[0125] Table 2
[0126] method Time elapsed (s) CoSTCo (Offline) 254.8211 NTC (Offline) 112.7185 NTF (Offline) 154.0298 NTM (Offline) 86.1265 DLMC (Offline) 7.7408 GRIN (Offline) 1862.4989 This invention (offline) 4655.4744 This invention (online) 0.3815
[0127] Table 2 records the time consumption of different methods in offline and online scenarios. The data completion time of this invention in online scenarios is much shorter than that in offline scenarios, and missing data can be completed in real time.
[0128] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for completing network monitoring data, the method comprising the following steps: The subsequence, bipartite graph sequence, binary mask, and network topology information from the network traffic dataset are input into the network monitoring data completion model to train the model, resulting in a trained network monitoring data completion model. The network monitoring data completion model is configured to obtain the topological features of each node in the bipartite graph sequence based on the network topology information of the network traffic dataset, obtain the dynamic features of each node in the bipartite graph sequence at each time step based on the subsequence, binary mask and topological features, encode each node in the bipartite graph sequence to obtain the static features of each node, and estimate the invisible part of the network traffic dataset based on the dynamic and static features of each node in the bipartite graph sequence. The training set and test set of the network monitoring data completion model are obtained by the following method: a binary mask is randomly generated on the OD matrix of the network traffic dataset, and the network traffic dataset corresponding to the two values in the binary mask is divided into a training set and a test set, where the training set is the visible part and the test set is the invisible part. The bipartite graph sequence is obtained by dividing the training set into subsequences along the time dimension and then modeling the subsequences. in, The steps to obtain the dynamic features of each node in a bipartite graph sequence at each time step based on subsequences, binary masks, and topological features are as follows: The hidden state of the node at the previous time step is input into the first multilayer perceptual neural network to obtain the first prediction result. The hidden state of the node at the previous time step, the first prediction result, the binary mask and the topological features are fused and then input into the first graph convolutional layer to obtain the dynamic features of the node at the current time step. After obtaining the dynamic characteristics of the node at the current moment, the following steps are also included: The dynamic features of the node at the current moment are input into the second multilayer perceptual neural network to obtain the second prediction result; The second prediction result is concatenated with the binary mask and topological features. The concatenated features are then input together with the hidden state of the node at the previous time step into the reset gate and the update gate. The reset gate includes a source node reset gate and a destination node reset gate, and the update gate includes a source node update gate and a destination node update gate. The output of the reset gate, the hidden state of the node in the previous time step, and the concatenated features are input into the second graph convolutional layer. The output of the second graph's convolutional layer, the node's hidden state at the previous time step, and the output of the update gate are input into the hidden state update layer to obtain the node's hidden state at the current time step. Estimating the invisible portion of a network traffic dataset based on the dynamic and static characteristics of each node in a bipartite graph sequence includes: After concatenating the dynamic and static features of each node in the bipartite graph sequence, the data is input into the third multilayer perceptron to obtain an estimation result of the invisible part of the network traffic dataset. In online scenarios, the dynamic features include positive dynamic features; in offline scenarios, the dynamic features include both positive and negative dynamic features; the static features include location and configuration information.
2. A computer device comprising a memory, a processor, and program instructions stored in the memory and executable by the processor, wherein the processor executes the program instructions to perform the steps of claim 1.
Citation Information
Patent Citations
Transaction fraud detection method based on heterogeneous relationship network attention mechanism
CN111260462A
Network traffic prediction method based on dynamic space-time diagram convolution
CN116192669A
