A method and system for recovering missing values ​​in network flow measurement data

Through the attention-enhanced long short-term memory network and the lightweight trilinear pooling network, the problems of inaccurate factor vector expression and low filling accuracy in the existing technology are solved, achieving more efficient network traffic data recovery, and capturing data The multi-order nonlinear correlation and time characteristics improve the recovery accuracy.

CN114692832BActive Publication Date: 2024-08-27HUNAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210310671.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-08-27
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

Existing network traffic data recovery methods based on tensor filling ignore the periodicity and stability time characteristics of network traffic, resulting in inaccurate expression of factor vectors, affecting recovery performance, and can only capture simple linear correlations, resulting in low filling accuracy.

Method used

Attention-enhanced long short-term memory network and lightweight trilinear pooling network are used to map the source nodes, destination nodes and time features to the shared feature space through the embedding network, and the attention mechanism and inner product interaction function are combined to capture the characteristics of the data. Multi-order nonlinear correlation improves the accuracy of time factor vectors and the interaction of factor vectors.

Benefits of technology

It improves the accuracy of network traffic data recovery, can more accurately describe time characteristics and capture complex feature interactions, and improves the recovery accuracy of missing values.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692832B
    Figure CN114692832B
Patent Text Reader

Abstract

The present invention discloses a method for recovering missing values ​​in network traffic measurement data, including modeling network traffic data into a three-dimensional tensor of source node-destination node-measurement time slot, mapping each source node, destination node, and measurement time slot to a shared potential feature space (D-dimensional vector space) and embedding them into factor vectors, using an attention-enhanced long short-term memory network to enhance the time factor vector by considering the time pattern of network traffic, designing a new multi-mode fusion method - lightweight trilinear pooling as an interactive function of tensor filling to effectively model the three-way and multi-order nonlinear correlation between different feature dimensions of the potential factor vector, accurately estimating the missing values ​​of the network traffic, and merging the estimated values ​​of all missing values ​​with all measured values ​​to obtain complete network traffic data. The present invention also discloses a system for recovering missing values ​​in network traffic measurement data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer networks, and more specifically, relates to a method and system for recovering missing values ​​in network flow measurement data. Background Art

[0002] Tasks such as network traffic engineering and anomaly detection rely on complete end-to-end network traffic data. Due to the lack of infrastructure to support measurement, the negative impact of high measurement costs on equipment, and inevitable transmission losses, network monitoring systems have the problem of incomplete network traffic data, measuring only a portion of the path (source node-destination node pair) or time slot. The key technology is to infer the missing values ​​from the measured values ​​of some source node-destination node pairs and time slots to recover the full network traffic data.

[0003] Existing network traffic data recovery methods are mainly based on sparse reconstruction technology, including missing data recovery methods based on compressed sensing, missing data recovery methods based on matrix filling, and missing data recovery methods based on tensor filling; the missing data recovery method based on compressed sensing models the network traffic as a one-dimensional tensor, and reconstructs the complete sparse vector from partial measurement values ​​by constructing an observation matrix and a sparse matrix; the missing data recovery methods based on matrix filling and tensor filling model the network traffic data as two-dimensional matrices and three-dimensional tensors, and reconstruct the matrices and tensors of partial observations through the approximate method of low-rank factor decomposition; among the above three methods, the missing data recovery method based on tensor filling has achieved the most advanced recovery performance with the help of the high-dimensional expression ability of tensors for data features.

[0004] However, the above-mentioned missing data recovery method based on tensor filling still has some non-negligible defects: first, it usually directly maps each pattern of the tensor into a factor vector, but ignores the time characteristic information of the periodicity and stability of network traffic, resulting in inaccurate expression of the factor vector, which in turn affects the recovery performance; second, it uses a fixed inner product function to calculate the interaction of factor vectors as the estimated value of network traffic, so it can only capture the simple linear correlation between the factor vectors and the same feature dimension, while network traffic usually has complex behavior patterns, which will lead to low actual filling accuracy of this method. Summary of the invention

[0005] In response to the above defects or improvement needs of the prior art, the present invention provides a method and system for recovering missing values ​​in network traffic measurement data, with the aim of solving the technical problems that the existing missing data recovery method based on tensor filling ignores the time characteristic information of periodicity and stability of network traffic, resulting in inaccurate expression of factor vectors, which in turn affects the recovery performance, and the method can only capture the simple linear correlation between the factor vectors and the same feature dimension, resulting in low actual filling accuracy.

[0006] To achieve the above object, according to one aspect of the present invention, a method for recovering missing values ​​in network traffic measurement data is provided, comprising:

[0007] (1) Obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value.

[0008] (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0009] (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

[0010] Preferably, the tensor filling model includes an embedding network, an attention-enhanced long short-term memory network, and a lightweight trilinear pooling network.

[0011] Preferably, the embedding network includes three parallel feature mapping layers, namely, a source node feature mapping layer, a destination node feature mapping layer, and a temporal feature mapping layer, and its specific structure is as follows:

[0012] A source node feature mapping layer, whose input is a source node ID, uses an I×D source node feature matrix A, extracts the source node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the source node ID; where the source node ID ranges from 1 to I, I is the number of source nodes in the end-to-end network, and D is the preset feature dimension;

[0013] A destination node feature mapping layer, whose input is a destination node ID, uses a J×D destination node feature matrix B, extracts the destination node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the destination node ID; the range of the destination node ID is 1 to J, and J is the number of destination nodes in the end-to-end network;

[0014] A time feature mapping layer, whose input is the current measurement time slot ID, uses a K×D time feature matrix C to calculate the first τ measurement time slot IDs of the current measurement time slot ID, extracts the corresponding τ rows from the time feature matrix, and outputs τ vectors of length D as the τ historical time factor vectors of the current measurement time slot; if the historical measurement time slots of the current measurement time slot are less than τ, the factor vector of the current earliest measurement time slot is repeatedly extracted multiple times until τ are filled, τ represents the number of historical measurement time slots, and the preferred value is 48, the current measurement time slot ID ranges from 1 to K, and K is the total number of measurement time slots within the sampling time;

[0015] Preferably, the attention-enhanced long short-term memory network includes a long short-term memory network sequence and an attention mechanism network, and its specific structure is as follows:

[0016] A long short-term memory network sequence, whose input is the τ historical time factor vectors output by the temporal feature mapping layer in the above embedding network in chronological order, and whose output is τ hidden state vectors of length D;

[0017] An attention mechanism network, whose input is the τ hidden state vectors output by the above LSTM network sequence, is multiplied and summed with τ attention weights to output a vector of length D as the enhanced time factor vector of the current measurement time slot.

[0018] Preferably, the τ attention weights in the attention mechanism network are calculated by the following steps:

[0019] (B21) Inputting one of the hidden state vectors outputted by the above LSTM network sequence into a fully connected layer, the fully connected layer first uses a D×D weight matrix to perform matrix multiplication with the input hidden state vector, then adds a D-dimensional bias vector, and finally, passes through a tanh activation function to finally output a D-dimensional attention feature vector;

[0020] (B22) The attention feature vector output by the fully connected layer in step (B21) is input into a fully connected layer, that is, this layer uses a D-dimensional attention weight vector to perform matrix multiplication with the input attention feature vector, and finally outputs a preliminary weight value, which corresponds to the initial attention weight of the hidden state vector input in the above step (B21).

[0021] (B23) For all remaining τ-1 hidden state vectors, repeat the above steps (B21) to (B22) to obtain τ-1 preliminary weight values, and perform softmax normalization on all the τ preliminary weight values ​​finally obtained to obtain the final τ weight values.

[0022] Preferably, the lightweight trilinear pooling network includes three parallel affine transformation layers, an inner product interaction layer and a nonlinear activation layer, and its specific structure is as follows:

[0023] An affine transformation layer, whose input is the source node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication of the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector;

[0024] An affine transformation layer, whose input is the destination node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication on the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector;

[0025] An affine transformation layer, whose input is the enhanced temporal factor vector output by the attention-enhanced LSTM network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication of the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector.

[0026] An inner product interaction layer, which performs inner product operations on the three feature vectors output by the above three affine transformation layers, and finally outputs the calculated interaction value;

[0027] A nonlinear activation layer that truncates the calculated interaction values ​​of the output of the inner product interaction layer to [0,1] and outputs an estimate of the missing value of the final network traffic measurement data.

[0028] Preferably, the tensor filling model is trained by the following steps:

[0029] (3-1) Obtain network traffic measurement data according to the preset sampling time and sampling time interval, randomly divide the obtained network traffic measurement data into a training set, a validation set, and a test set according to the ratio of r:r:(1-2r), and perform tensor modeling on the network traffic measurement data of the training set to obtain a three-dimensional traffic tensor of source node-destination node-measurement time slot, whose size is I×J×K, and each element x of the three-dimensional traffic tensor ijkrepresents the end-to-end network flow measurement value from source node i to destination node j at the measurement time slot k. If there is no network flow measurement value at this position, the corresponding position of the tensor is empty, usually represented by 0, that is, x ijk =0, where i∈[1,I], j∈[1,J], k∈[1,K], and r represents the sampling rate.

[0030] (3-2) Initialize the tensor filling model, including setting the feature dimension D = 50 and the number of historical measurement time slots τ = 48; use the Xavier initialization method to initialize the weight parameters of the embedding network, the attention-enhanced long short-term memory network, and the lightweight trilinear pooling network;

[0031] (3-3) randomly shuffle the network traffic data in the training set obtained in step (3-1), and then divide the randomly shuffled training set into multiple training subsets according to the batch size;

[0032] (3-4) obtaining a training subset from the multiple training subsets obtained in step (3-3);

[0033] (3-5) Extract a measurement value x from the training subset obtained in step (3-4) ijk , input the corresponding source node ID, destination node ID, and measurement time slot ID as index (i, j, k) into the embedding network to obtain a D-dimensional vector a i (which is the factor vector corresponding to the source node i), a D-dimensional vector b j (which is the factor vector corresponding to the destination node j), τ D-dimensional vectors c k-τ ,...,c k-1 (it is the factor vector of τ historical measurement slots corresponding to measurement slot k);

[0034] (3-6) Input the τ D-dimensional vectors obtained in step (3-5) into the attention-enhanced long short-term memory network, such as Figure 3 As shown, to obtain a D-dimensional vector c k , which is the factor vector corresponding to the enhancement of measurement time slot k;

[0035] (3-7) The factor vector a of the source node i obtained in step (3-5) i , factor vector b of destination node j j and the factor vector c of the measurement time slot k obtained in step (3-6) k Enter a lightweight trilinear pooling network, such as Figure 4 As shown, to obtain the measured value x ijk Estimated value of

[0036] (3-8) Calculate the measured value x obtained in step (3-7) ijk Estimated value of and the network traffic measurement value x obtained in step (3-5) ijk The square of the error between

[0037] (3-9) For the training subset obtained in step (3-4), repeat the above steps (3-5) to (3-8) until all the measurement values ​​in the training subset have been processed, and sum the squares of the errors between all the estimated values ​​and the measured values ​​as the loss function, minimize the loss function to update the tensor filling model, and record the loss function value of the validation set obtained in step (3-1) on the updated tensor filling model.

[0038] (3-10) For the remaining training subsets among the multiple training subsets obtained in step (3-3), repeat the above steps (3-4) to (3-10), that is, iteratively update the tensor filling model until the tensor filling model converges, thereby obtaining a trained tensor filling model; if all training subsets have been traversed and the tensor filling model still has not converged, repeat steps (3-3) to (3-10) for the next round of training.

[0039] (3-11) Use the test set obtained in step (3-1) to verify the tensor filling model trained in step (3-10) until the estimated accuracy reaches the optimal level, thereby obtaining a trained tensor filling model.

[0040] Preferably, the calculation formula in step (3-6) is:

[0041]

[0042]

[0043] Among them, the D-dimensional vectors h0 and cell0 represent the hidden state and cell state of the initialized long short-term memory network respectively, and the D-dimensional vector h t and cell t (1≤t≤τ) represent the hidden state and unit state of the long short-term memory network sequence output respectively; the real number e t and α t (1≤t≤τ) represent the calculated hidden states h t The initial attention weights and the normalized attention weights, the D×D-dimensional matrix P and the D-dimensional vector p represent the initialized fully connected weight matrix and bias vector, and the D-dimensional vector q represents the initialized attention weight vector.

[0044] Preferably, the calculation formula in step (3-7) is:

[0045]

[0046] Among them, the D×D dimensional matrix U (1) is the linear transformation matrix of the affine transformation, and the factor vector a of the source node i is transformed by matrix multiplication i The vector space of D is transformed linearly, and the D-dimensional vector v (1) is the translation vector of the affine transformation, and a is transformed by vector addition i The vector space of the translation operation; D × D dimensional matrix U (2) is the factor vector b for the destination node j j Linear transformation matrix for affine transformation, D-dimensional vector v (2) for b j Translation vector for affine transformation; D×D dimensional matrix U (3) is the factor vector c enhanced for measurement time slot k k Linear transformation matrix for affine transformation, D-dimensional vector v (3) c k The translation vector for the affine transformation.

[0047] According to another aspect of the present invention, there is provided a system for recovering missing values ​​in network traffic measurement data, comprising:

[0048] The first module is used to obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0049] A second module is used to repeat the above first module at a preset sampling time interval for all remaining missing values ​​in the network flow measurement data of the end-to-end network until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0050] The third module is used to merge all measurement values ​​in the network flow measurement data of the end-to-end network with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained by the first module and the second module, so as to obtain complete network flow data of the end-to-end network.

[0051] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0052] (1) Since the attention-enhanced long short-term memory network in the present invention adopts a long short-term memory network sequence and an attention mechanism network, it uses the attention-enhanced long short-term memory network to mine the time pattern of traffic from the factor vector of the historical measurement time slot, encode the dynamic change of data association along time, and thus form a hidden state; and then considering that different historical measurement time slots have different degrees of influence on the current measurement time slot, different weights are given to the hidden states of different measurement time slots, and the final enhanced time factor vector of the current measurement time slot is obtained, so that the enhanced time factor vector can more accurately describe the characteristics of the current measurement time slot, and can solve the problem of low recovery accuracy due to ignoring the time feature information of network traffic when the existing tensor-based missing data recovery method maps each pattern into a factor vector;

[0053] (2) Since the lightweight trilinear pooling network of the present invention adopts three affine transformation layers, one inner product interaction layer, and one nonlinear activation layer, it uses the lightweight trilinear pooling network as the interaction function of the tensor filling model, firstly transforms the factor vector through the affine transformation and then performs the inner product operation and the nonlinear activation operation, which can not only capture any three-way association between features, but also capture multi-order feature interactions and nonlinear correlations, and can solve the technical problem that the existing tensor-based recovery algorithm directly uses the inner product of the factor vector as the interaction function and can only capture the simple linear association between the factor vector and the same feature dimension, thereby resulting in low actual filling accuracy;

[0054] (3) Since the embedding network of the present invention uses a source node feature mapping layer, a destination node feature mapping layer, and a time feature mapping layer, it uses the embedding network to map each source node, destination node, and measurement time slot to a shared potential feature space (D-dimensional vector space), and embeds them into a source node factor vector, a destination node factor vector, and a time factor vector, it can extract node behavior features and time pattern features to capture data similarity, and use the similarity between data to improve data estimation accuracy;

[0055] (4) Since the present invention adopts step (3-3), the model is trained by a small batch of measurements each time. If multiple measurements in a batch share a source node, these measurements will share the same factor vector and be trained together. By taking advantage of this vector sharing, not only can the total number of training vectors be effectively reduced, but also the simultaneous use of multiple measurements to train a vector also helps to improve the ability of the factor vector to capture hidden features of traffic data. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flow chart of a method for recovering missing values ​​in network flow measurement data provided by the present invention;

[0057] Figure 2 It is a schematic diagram of a model of a method for recovering missing values ​​in network flow measurement data provided by the present invention;

[0058] Figure 3 It is a schematic diagram of a model of the attention-enhanced long short-term memory network provided by the present invention;

[0059] Figure 4 Schematic diagram of a model of a lightweight trilinear pooling network provided by the present invention;

[0060] Figure 5 It is a structural schematic diagram of a system for recovering missing values ​​in network flow measurement data provided by the present invention;

[0061] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0063] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements. The orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0064] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0065] The basic idea of ​​the present invention is to provide a method for recovering missing values ​​in network traffic measurement data. It models network traffic data into a three-dimensional tensor of source node-destination node-measurement time slot, maps each source node, destination node, and measurement time slot to a shared potential feature space (D-dimensional vector space) and embeds them into a factor vector, uses an attention-enhanced long short-term memory network to consider the temporal pattern of network traffic to enhance the temporal factor vector, and designs a new multi-mode fusion method - lightweight trilinear pooling as an interactive function for tensor filling to effectively model the three-way and multi-order nonlinear correlation between different feature dimensions of the potential factor vector, accurately estimate the missing values ​​of network traffic, and merge the estimated values ​​of all missing values ​​with all measured values ​​to obtain complete network traffic data. .

[0066] Combine the following Figures 1 to 6 The present invention provides a method and system for recovering missing values ​​in network traffic measurement data.

[0067] like Figure 1 As shown, the present invention provides a method for recovering missing values ​​in network flow measurement data, comprising the following steps:

[0068] (1) Obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0069] Specifically, the end-to-end network in the present invention includes but is not limited to the Internet, the Internet of Things, etc.

[0070] The advantage of this step is that after the model is trained, for any missing value in the network traffic measurement data, it is only necessary to extract its source node ID, destination node ID, and measurement time slot ID as input, without the need for complex data preprocessing.

[0071] (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0072] Specifically, the preset sampling time in this step is between 1 day and 1 year, preferably one month; the preset sampling time interval is 15 minutes.

[0073] (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

[0074] The advantages of the above steps (1) to (3) are that the trained tensor filling model provided by the present invention is used to perform high-precision estimation on all missing values ​​in the network traffic measurement data, and the estimated values ​​are used to replace the missing values ​​in the network traffic measurement data to obtain complete network traffic data of the end-to-end network to support the execution of downstream tasks such as traffic engineering and anomaly detection.

[0075] like Figure 2 As shown, the tensor filling model in the present invention includes three parts: an embedding network, an attention-enhanced long short-term memory network, and a lightweight trilinear pooling network.

[0076] The embedding network consists of three parallel feature mapping layers, namely the source node feature mapping layer, the destination node feature mapping layer, and the time feature mapping layer. Its specific structure is as follows:

[0077] (A1) a source node feature mapping layer, whose input is a source node ID (the range is 1 to I, I is the number of source nodes in the end-to-end network), using an I×D source node feature matrix A (D is a preset feature dimension, preferably 50), extracting the source node ID row from the source node feature matrix, and outputting a vector of length D as a factor vector of the source node ID;

[0078] (A2) a destination node feature mapping layer, whose input is a destination node ID (which ranges from 1 to J, where J is the number of destination nodes in the end-to-end network), uses a J×D destination node feature matrix B, extracts the destination node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the destination node ID;

[0079] (A3) A time feature mapping layer, whose input is the current measurement time slot ID (its range is 1 to K, K is the total number of measurement time slots in the sampling time), uses a K×D time feature matrix C, calculates the first τ measurement time slot IDs of the current measurement time slot ID, extracts the corresponding τ rows from the time feature matrix, and outputs τ vectors of length D as the τ historical time factor vectors of the current measurement time slot; if the current measurement time slot has less than τ historical measurement time slots, repeatedly extracts the factor vector of the current earliest measurement time slot multiple times until τ are filled, τ represents the number of historical measurement time slots, and the preferred value is 48.

[0080] The above embedding network maps each source node, destination node, and measurement time slot to a shared latent feature space (D-dimensional vector space), and embeds them into a source node factor vector, a destination node factor vector, and a time factor vector. It can extract node behavior features and time pattern features to capture data similarity, and use the similarity between data to improve data estimation accuracy.

[0081] The attention-enhanced LSTM network consists of a LSTM network sequence and an attention mechanism network, such as Figure 3 As shown, its specific structure is as follows:

[0082] (B1) A long short-term memory network sequence, whose input is the τ historical time factor vectors output by the temporal feature mapping layer in the above embedding network in chronological order, and whose output is τ hidden state vectors of length D;

[0083] (B2) An attention mechanism network, whose input is the τ hidden state vectors output by the above LSTM network sequence, and outputs a vector of length D as the enhanced time factor vector of the current measurement time slot by multiplying and summing them with τ attention weights.

[0084] In the above attention mechanism network, τ attention weights are calculated by the following steps:

[0085] (B21) Inputting one of the hidden state vectors outputted by the above LSTM network sequence into a fully connected layer, the fully connected layer first uses a D×D weight matrix to perform matrix multiplication with the input hidden state vector, then adds a D-dimensional bias vector, and finally, passes through a tanh activation function to finally output a D-dimensional attention feature vector;

[0086] (B22) inputting the attention feature vector output by the fully connected layer in step (B21) into a fully connected layer, that is, the layer uses a D-dimensional attention weight vector to perform matrix multiplication with the input attention feature vector, and finally outputs a preliminary weight value, which corresponds to the initial attention weight of the hidden state vector input in the above step (B21);

[0087] (B23) For all remaining τ-1 hidden state vectors, repeat the above steps (B21) to (B22) to obtain τ-1 preliminary weight values, and perform softmax normalization on all the τ preliminary weight values ​​finally obtained to obtain the final τ weight values.

[0088] The above-mentioned attention-enhanced long short-term memory network mines the time pattern of traffic from the factor vector of historical measurement time slots, encodes the dynamic changes of data association along time, and thus forms a hidden state; and then considers that different historical measurement time slots have different degrees of influence on the current measurement time slot and assigns different weights to the hidden states of different measurement time slots, and obtains the final enhanced time factor vector of the current measurement time slot, so that the enhanced time factor vector can more accurately describe the characteristics of the current measurement time slot.

[0089] The lightweight trilinear pooling network consists of three parallel affine transformation layers, an inner product interaction layer, and a nonlinear activation layer. Figure 4 As shown, its specific structure is as follows:

[0090] (C1) An affine transformation layer, whose input is the source node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication on the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector;

[0091] (C2) an affine transformation layer, whose input is the destination node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication on the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector;

[0092] (C3) an affine transformation layer, whose input is the enhanced temporal factor vector output by the attention-enhanced LSTM network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication of the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector.

[0093] (C4) an inner product interaction layer, which performs an inner product operation on the three feature vectors output by the above three affine transformation layers, and finally outputs a calculated interaction value;

[0094] (C5) A nonlinear activation layer that truncates the calculated interaction value of the output of the inner product interaction layer to [0,1] and outputs an estimate of the missing value of the final network traffic measurement data.

[0095] The above-mentioned lightweight trilinear pooling network serves as the interactive function of the tensor filling model provided by the present invention. Different from the traditional tensor filling model which directly calculates the inner product of the factor vector as the estimated value and can only capture the simple linear relationship between the features, it first transforms the factor vector through an affine transformation and then performs the inner product operation and the nonlinear activation operation, which can capture any three-way complex nonlinear association between the features.

[0096] The tensor filling model in the present invention is trained by the following steps:

[0097] (3-1) Obtain network flow measurement data according to the preset sampling time and sampling time interval, and randomly divide the obtained network flow measurement data into a training set, a validation set, and a test set according to the ratio of r:r:(1-2r), where r represents the sampling rate, and the preferred value is 10%. Perform tensor modeling on the network flow measurement data of the training set to obtain a three-dimensional flow tensor of source node-destination node-measurement time slot, whose size is I×J×K, and each element x of the three-dimensional flow tensor is ijk represents the end-to-end network flow measurement value from source node i to destination node j at the measurement time slot k. If there is no network flow measurement value at this position, the corresponding position of the tensor is empty, usually represented by 0, that is, x ijk =0, where i∈[1,I], j∈[1,J], k∈[1,K].

[0098] Specifically, the preset sampling time in this step is between 1 day and 1 year, preferably one month; the preset sampling time interval is 15 minutes.

[0099] The advantage of this step is that the network traffic measurement data is modeled into a three-dimensional tensor, while considering the spatial relationship between the source and destination nodes and the temporal relationship of the traffic, providing better high-level data expression capabilities. All measurement data are divided into training sets, validation sets, and test sets, with clear division of labor. The training set is used to train the model, the validation set is used to determine whether the model has converged, and the test set is used to verify the final model performance.

[0100] (3-2) Initialize the tensor filling model, including setting the feature dimension D = 50 and the number of historical measurement time slots τ = 48; use the Xavier initialization method to initialize the weight parameters of the embedding network, the attention-enhanced long short-term memory network, and the lightweight trilinear pooling network;

[0101] (3-3) randomly shuffle the network traffic data in the training set obtained in step (3-1), and then divide the randomly shuffled training set into multiple training subsets according to the batch size;

[0102] Specifically, the batch size in this step ranges from [1 to the size of the training set], and the preferred value is 64;

[0103] The advantage of this step is that each time the model is trained with a small batch of measurements, if multiple measurements in the batch share a source node, these measurements will share the same factor vector and be trained together. Taking advantage of this vector sharing, not only can the total number of training vectors be effectively reduced, but also using multiple measurements to train a vector at the same time can help improve the ability of the factor vector to capture the hidden features of traffic data.

[0104] (3-4) obtaining a training subset from the multiple training subsets obtained in step (3-3);

[0105] (3-5) Extract a measurement value x from the training subset obtained in step (3-4) ijk , input the corresponding source node ID, destination node ID, and measurement time slot ID as index (i, j, k) into the embedding network to obtain a D-dimensional vector a i (which is the factor vector corresponding to the source node i), a D-dimensional vector b j (which is the factor vector corresponding to the destination node j), τ D-dimensional vectors c k-τ ,...,c k-1 (it is the factor vector of τ historical measurement slots corresponding to measurement slot k);

[0106] The advantage of this step is that the above embedding network maps each source node, destination node, and measurement time slot to a shared latent feature space (D-dimensional vector space), and embeds them into a source node factor vector, a destination node factor vector, and a time factor vector. It can extract node behavior characteristics and time pattern characteristics to capture data similarity, and use the similarity between data to improve data estimation accuracy.

[0107] (3-6) Input the τ D-dimensional vectors obtained in step (3-5) into the attention-enhanced long short-term memory network, such as Figure 3 As shown, to obtain a D-dimensional vector c k , which is the factor vector corresponding to the enhancement of measurement time slot k;

[0108] Specifically, the calculation formula for this step is:

[0109]

[0110] Among them, the D-dimensional vectors h0 and cell0 represent the hidden state and cell state of the initialized long short-term memory network respectively, and the D-dimensional vector h t and cell t (1≤t≤τ) respectively represent the hidden state and unit state of the long short-term memory network sequence (LSTM) output; the real number e t and α t (1≤t≤τ) represent the calculated hidden states h t The initial attention weights and the normalized attention weights, the D×D-dimensional matrix P and the D-dimensional vector p represent the initialized fully connected weight matrix and bias vector, and the D-dimensional vector q represents the initialized attention weight vector.

[0111] The advantage of this step is that the attention-enhanced long short-term memory network mines the time pattern of traffic from the factor vector of the historical measurement time slot, encodes the dynamic changes of data association along time, and thus forms a hidden state; and then considers that different historical measurement time slots have different degrees of influence on the current measurement time slot and assigns different weights to the hidden states of different measurement time slots, and obtains the final enhanced time factor vector of the current measurement time slot, so that the enhanced time factor vector can more accurately describe the characteristics of the current measurement time slot.

[0112] (3-7) The factor vector a of the source node i obtained in step (3-5) i , factor vector b of destination node j j and the factor vector c of the measurement time slot k obtained in step (3-6) k Enter a lightweight trilinear pooling network, such as Figure 4 As shown, to obtain the measured value x ijk Estimated value of

[0113] Specifically, the calculation formula for this step is:

[0114]

[0115] Among them, the D×D dimensional matrix U (1) is the linear transformation matrix of the affine transformation, and the factor vector a of the source node i is transformed by matrix multiplication i The vector space of D is transformed linearly, and the D-dimensional vector v (1) is the translation vector of the affine transformation, and a is transformed by vector addition i The vector space of the translation operation; D × D dimensional matrix U (2) is the factor vector b for the destination node j j Linear transformation matrix for affine transformation, D-dimensional vector v (2) for b j Translation vector for affine transformation; D×D dimensional matrix U (3) is the factor vector c enhanced for measurement time slot k k Linear transformation matrix for affine transformation, D-dimensional vector v (3) c k The translation vector for the affine transformation.

[0116] The advantage of this step is that the above-mentioned lightweight trilinear pooling network, as an interaction function of the tensor filling model, is different from the traditional tensor filling model that directly calculates the inner product of the factor vector as an estimated value and can only capture the simple linear relationship between features. It first transforms the factor vector through an affine transformation and then performs inner product operations and nonlinear activation operations. It can not only capture arbitrary three-way correlations between features, but also capture multi-order feature interactions and nonlinear correlations.

[0117] The following example shows how a lightweight trilinear pooling network captures complex feature associations when D=2:

[0118] make represents element-wise multiplication, then Any element in e can be expressed as,

[0119]

[0120]

[0121]

[0122]

[0123]

[0124] Among them, g 3 ,g 2 ,g 1 ,g 0 They represent the third-order correlation, second-order correlation, first-order correlation, and constant bias term of the features respectively. And,

[0125]

[0126] Compared with the traditional tensor model that uses the inner product as the interaction function, that is, It can be seen that the third-order correlation g provided by the present invention 3 It can capture any three-way correlation between factor vector features. Similar to g 3 , g 2 ,g 1 ,g 0 Complex correlations can also be captured, which will not be described here. The outermost nonlinear activation function further enables the model to capture nonlinear correlations.

[0127] (3-8) Calculate the measured value x obtained in step (3-7) ijk Estimated value of and the network traffic measurement value x obtained in step (3-5) ijk The square of the error between

[0128] The square error L used in this step is:

[0129]

[0130] (3-9) For the training subset obtained in step (3-4), repeat the above steps (3-5) to (3-8) until all the measurement values ​​in the training subset have been processed, and sum the squares of the errors between all the estimated values ​​and the measured values ​​as the loss function, minimize the loss function to update the tensor filling model, and record the loss function value of the validation set obtained in step (3-1) on the updated tensor filling model.

[0131] (3-10) For the remaining training subsets among the multiple training subsets obtained in step (3-3), repeat the above steps (3-4) to (3-10), that is, iteratively update the tensor filling model until the tensor filling model converges (that is, the loss function value on the validation set obtained in step (3-9) does not decrease for 50 consecutive rounds), thereby obtaining a trained tensor filling model; if all training subsets have been traversed and the tensor filling model still has not converged, repeat steps (3-3) to (3-10) for the next round of training.

[0132] (3-11) Use the test set obtained in step (3-1) to verify the tensor filling model trained in step (3-10) until the estimated accuracy reaches the optimal level, thereby obtaining a trained tensor filling model.

[0133] Specifically, in this step, the network traffic measurement data in the test set can be treated as missing values ​​and their values ​​can be estimated according to steps (1) to (3).

[0134] Experimental Results

[0135] The present invention is deployed on Pytorch and uses the Adam optimizer to perform small batch gradient descent updates on the model. The specific settings are as follows: the learning rate is 0.0005, the weight decay coefficient is 10 -7 , the batch size is 64.

[0136] The present invention evaluates the recovery performance on three network traffic datasets Abilene, GEANT and WS-DREAM. The evaluation index used is the recovery error, including the normalized mean absolute error (NMAE) and the normalized root mean square error (NRMSE), which are calculated as follows:

[0137]

[0138]

[0139] in The index collection of the test set.

[0140] Table 1 is a NMAE error table of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering Abilene data at different sampling rates;

[0141] Table 2 is a table of NRMSE errors of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering Abilene data at different sampling rates;

[0142] Table 3 is a table of NMAE errors of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering GEANT data at different sampling rates;

[0143] Table 4 is a table of NRMSE errors of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering GEANT data at different sampling rates;

[0144] Table 5 is a table of NMAE errors of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering WS-DREAM data at different sampling rates;

[0145] Table 6 is a table of NRMSE errors of the method for recovering missing values ​​in network traffic measurement data provided by the present invention and four other tensor filling algorithms for recovering WS-DREAM data at different sampling rates;

[0146] Table 1 NMAE of Abilene data restored by filling algorithm at different sampling rates

[0147]

[0148] Table 2 NRMSE of Abilene data restored by filling algorithm at different sampling rates

[0149]

[0150]

[0151] Table 3 NMAE of GEANT data restored by filling algorithm at different sampling rates

[0152]

[0153] Table 4 NRMSE of GEANT data restored by filling algorithm at different sampling rates

[0154]

[0155] Table 5 NMAE of WS-DREAM data recovered by padding algorithm at different sampling rates

[0156]

[0157] Table 6 NRMSE of WS-DREAM data restored by filling algorithm at different sampling rates

[0158]

[0159] According to the experimental results of Tables 1 to 6 under three data sets, it can be seen that the method for recovering missing values ​​in network traffic measurement data provided by the present invention is superior to the existing methods in terms of five sampling rates and four indicators of NMAE and NRMSE.

[0160] The method for recovering missing values ​​in network traffic measurement data provided by the present invention, on the one hand, utilizes the attention-enhanced long short-term memory network to effectively mine the network traffic time pattern in historical data, and can better represent the time factor vector characteristics; on the other hand, it utilizes the lightweight trilinear pooling network to model any three-way correlation between factor vector characteristics, and more accurately calculates the estimated value of the traffic data, thereby achieving the optimal recovery effect.

[0161] Figure 5 : is a schematic diagram of the structure of a system for recovering missing values ​​in network flow measurement data provided by the present invention, the recovery system comprises: a first module, a second module and a third module, wherein:

[0162] The first module is used to obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0163] A second module is used to repeat the above first module at a preset sampling time interval for all remaining missing values ​​in the network flow measurement data of the end-to-end network until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0164] The third module is used to merge all measurement values ​​in the network flow measurement data of the end-to-end network with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained by the first module and the second module, so as to obtain complete network flow data of the end-to-end network.

[0165] It should be noted that the system for recovering missing values ​​in network traffic measurement data provided by the embodiment of the present invention can be implemented based on the method for recovering missing values ​​in network traffic measurement data described in any of the above embodiments during specific execution, which will not be elaborated in this embodiment.

[0166] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute a method for recovering missing values ​​in network traffic measurement data, the method comprising:

[0167] (1) Obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0168] (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0169] (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

[0170] In addition, the logic instructions in the above-mentioned memory 1330 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0171] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can perform the method for recovering missing values ​​in network traffic measurement data provided by the above methods, the method comprising:

[0172] (1) Obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0173] (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0174] (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

[0175] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for recovering missing values ​​in network traffic measurement data provided in the above embodiments is implemented, and the method includes:

[0176] (1) Obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain an estimated value corresponding to the missing value;

[0177] (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network;

[0178] (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0180] It will be easily understood by those skilled in the art that the above description is only 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 in the protection scope of the present invention.

Claims

1. A method for recovering missing values ​​in network flow measurement data, characterized in that: The steps include: (1) The source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data are obtained from the end-to-end network, and the source node ID, destination node ID, and measurement time slot ID are input into the trained tensor filling model as indexes to obtain an estimated value corresponding to the missing value; the tensor filling model includes an embedding network, an attention-enhanced long short-term memory network, and a lightweight trilinear pooling network; the embedding network includes three parallel feature mapping layers, namely, a source node feature mapping layer, a destination node feature mapping layer, and a temporal feature mapping layer, and its specific structure is as follows: A source node feature mapping layer, whose input is a source node ID, uses an I×D source node feature matrix A, extracts the source node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the source node ID; where the source node ID ranges from 1 to I, I is the number of source nodes in the end-to-end network, and D is the preset feature dimension; A destination node feature mapping layer, whose input is a destination node ID, uses a J×D destination node feature matrix B, extracts the destination node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the destination node ID; The destination node ID ranges from 1 to J, where J is the number of destination nodes in the end-to-end network; A time feature mapping layer, whose input is the current measurement time slot ID, uses a K×D time feature matrix C to calculate the first τ measurement time slot IDs of the current measurement time slot ID, extracts the corresponding τ rows from the time feature matrix, and outputs τ vectors of length D as the τ historical time factor vectors of the current measurement time slot; if the current measurement time slot has less than τ historical measurement time slots, the factor vector of the earliest current measurement time slot is repeatedly extracted multiple times until τ is filled, τ represents the number of historical measurement time slots, the current measurement time slot ID ranges from 1 to K, and K is the total number of measurement time slots within the sampling time; (2) for all remaining missing values ​​in the network flow measurement data of the end-to-end network, repeat the above step (1) at a preset sampling time interval until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network; (3) All measured values ​​in the network flow measurement data of the end-to-end network are combined with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained in steps (1) and (2), thereby obtaining complete network flow data of the end-to-end network.

2. The method for recovering missing values ​​in network flow measurement data according to claim 1, characterized in that: The attention-enhanced long short-term memory network includes a long short-term memory network sequence and an attention mechanism network. Its specific structure is as follows: A long short-term memory network sequence, whose input is the τ historical time factor vectors output by the temporal feature mapping layer in the above embedding network in chronological order, and whose output is τ hidden state vectors of length D; An attention mechanism network, whose input is the τ hidden state vectors output by the above LSTM network sequence, is multiplied and summed with τ attention weights to output a vector of length D as the enhanced time factor vector of the current measurement time slot.

3. The method for recovering missing values ​​in network flow measurement data according to claim 2, characterized in that: The τ attention weights in the attention mechanism network are calculated by the following steps: (B21) Inputting one of the hidden state vectors outputted by the above LSTM network sequence into a fully connected layer, the fully connected layer first uses a D×D weight matrix to perform matrix multiplication with the input hidden state vector, then adds a D-dimensional bias vector, and finally, passes through a tanh activation function to finally output a D-dimensional attention feature vector; (B22) inputting the attention feature vector output by the fully connected layer in step (B21) into a fully connected layer, that is, the layer uses a D-dimensional attention weight vector to perform matrix multiplication with the input attention feature vector, and finally outputs a preliminary weight value, which corresponds to the initial attention weight of the hidden state vector input in the above step (B21); (B23) For all remaining τ-1 hidden state vectors, repeat the above steps (B21) to (B22) to obtain τ-1 preliminary weight values, and perform softmax normalization on all the τ preliminary weight values ​​finally obtained to obtain the final τ weight values.

4. The method for recovering missing values ​​in network flow measurement data according to claim 3, characterized in that: The lightweight trilinear pooling network consists of three parallel affine transformation layers, an inner product interaction layer, and a nonlinear activation layer. Its specific structure is as follows: An affine transformation layer, whose input is the source node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication of the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector; An affine transformation layer, whose input is the destination node factor vector output by the above embedding network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication on the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector; An affine transformation layer, whose input is the enhanced temporal factor vector output by the attention-enhanced LSTM network. This layer uses a D×D linear transformation matrix and a D-dimensional translation vector to perform matrix multiplication of the linear transformation matrix and the input source node factor vector, and then adds the translation vector to finally output a D-dimensional feature vector. An inner product interaction layer, which performs inner product operations on the three feature vectors output by the above three affine transformation layers, and finally outputs the calculated interaction value; A nonlinear activation layer that truncates the calculated interaction values ​​of the output of the inner product interaction layer to [0,1] and outputs an estimate of the missing value of the final network traffic measurement data.

5. The method for recovering missing values ​​in network flow measurement data according to claim 1, characterized in that: The tensor filling model is trained by the following steps: (3-1) Obtain network traffic measurement data according to the preset sampling time and sampling time interval, randomly divide the obtained network traffic measurement data into a training set, a validation set, and a test set according to the ratio of r:r:(1-2r), and perform tensor modeling on the network traffic measurement data of the training set to obtain a three-dimensional traffic tensor of source node-destination node-measurement time slot, whose size is I×J×K, and each element x of the three-dimensional traffic tensor ijk represents the end-to-end network flow measurement value from source node i to destination node j at the measurement time slot k. If there is no network flow measurement value at this position, the corresponding position of the tensor is empty, usually represented by 0, that is, x ijk =0, where i∈[1,I], j∈[1,J], k∈[1,K], and r represents the sampling rate; (3-2) Initialize the tensor filling model, including setting the feature dimension D = 50 and the number of historical measurement time slots τ = 48; use the Xavier initialization method to initialize the weight parameters of the embedding network, the attention-enhanced long short-term memory network, and the lightweight trilinear pooling network; (3-3) randomly shuffle the network traffic data in the training set obtained in step (3-1), and then divide the randomly shuffled training set into multiple training subsets according to the batch size; (3-4) obtaining a training subset from the multiple training subsets obtained in step (3-3); (3-5) Extract a measurement value x from the training subset obtained in step (3-4) ijk , input the corresponding source node ID, destination node ID, and measurement time slot ID as index (i, j, k) into the embedding network to obtain a D-dimensional vector a i , a D-dimensional vector b j , τ D-dimensional vectors c k-τ ,…,c k-1 , where a i is the factor vector corresponding to source node i, b j is the factor vector corresponding to the destination node j, τ D-dimensional vector c k-τ ,…,c k-1 is the factor vector of τ historical measurement slots corresponding to measurement slot k; (3-6) Input the τ D-dimensional vectors obtained in step (3-5) into the attention-enhanced long short-term memory network to obtain a D-dimensional vector c k , which is the factor vector corresponding to the enhancement of measurement time slot k; (3-7) The factor vector a of the source node i obtained in step (3-5) i , factor vector b of destination node j j and the factor vector c enhanced by the measurement time slot k obtained in step (3-6) k Input a lightweight trilinear pooling network to obtain the measurement value x ijk Estimated value of (3-8) Calculate the measured value x obtained in step (3-7) ijk Estimated value of and the network traffic measurement value x obtained in step (3-5) ijk The square of the error between (3-9) For the training subset obtained in step (3-4), repeat the above steps (3-5) to (3-8) until all the measured values ​​in the training subset have been processed, and sum the squares of the errors between all the estimated values ​​and the measured values ​​calculated as the loss function, minimize the loss function to update the tensor filling model, and record the loss function value of the validation set obtained in step (3-1) on the updated tensor filling model; (3-10) Repeating the above steps (3-4) to (3-10) for the remaining training subsets among the multiple training subsets obtained in step (3-3), i.e., iteratively updating the tensor filling model until the tensor filling model converges, thereby obtaining a trained tensor filling model; wherein if the tensor filling model still does not converge after all the training subsets have been traversed, repeating steps (3-3) to (3-10) for the next round of training; (3-11) Use the test set obtained in step (3-1) to verify the tensor filling model trained in step (3-10) until the estimated accuracy reaches the optimal level, thereby obtaining a trained tensor filling model.

6. The method for recovering missing values ​​in network flow measurement data according to claim 5, characterized in that: The calculation formula in steps (3-6) is: e t =q·tanh(P·h t +p) c k =α1h1+…+α τ h τ Among them, the D-dimensional vectors h0 and cell0 represent the hidden state and cell state of the initialized long short-term memory network respectively, and the D-dimensional vector h t and cell t (1≤t≤τ) represent the hidden state and unit state of the long short-term memory network sequence output respectively; the real number e t and α t (1≤t≤τ) represent the calculated hidden states h t The initial attention weights and the normalized attention weights, the D×D-dimensional matrix P and the D-dimensional vector p represent the initialized fully connected weight matrix and bias vector, and the D-dimensional vector q represents the initialized attention weight vector.

7. The method for recovering missing values ​​in network flow measurement data according to claim 6, characterized in that: The calculation formula in steps (3-7) is: Among them, the D×D dimensional matrix U (1) is the linear transformation matrix of the affine transformation, and the factor vector a of the source node i is transformed by matrix multiplication i The vector space of D is transformed linearly, and the D-dimensional vector v (1) is the translation vector of the affine transformation, and a is transformed by vector addition i The vector space of the translation operation; D × D dimensional matrix U (2) is the factor vector b for the destination node j j Linear transformation matrix for affine transformation, D-dimensional vector v (2) for b j Translation vector for affine transformation; D×D dimensional matrix U (3) is the factor vector c enhanced for measurement time slot k k Linear transformation matrix for affine transformation, D-dimensional vector v (3) c k The translation vector for the affine transformation.

8. A system for recovering missing values ​​in network flow measurement data, characterized in that: include: The first module is used to obtain the source node ID, destination node ID, and measurement time slot ID of the first missing value in the network traffic measurement data from the end-to-end network, and input the source node ID, destination node ID, and measurement time slot ID as indexes into the trained tensor filling model to obtain the estimated value corresponding to the missing value; the tensor filling model includes an embedding network, an attention-enhanced long short-term memory network, and a lightweight trilinear pooling network; the embedding network includes three parallel feature mapping layers, namely, a source node feature mapping layer, a destination node feature mapping layer, and a time feature mapping layer, and its specific structure is as follows: A source node feature mapping layer, whose input is a source node ID, uses an I×D source node feature matrix A, extracts the source node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the source node ID; where the source node ID ranges from 1 to I, I is the number of source nodes in the end-to-end network, and D is the preset feature dimension; A destination node feature mapping layer, whose input is a destination node ID, uses a J×D destination node feature matrix B, extracts the destination node ID row from the source node feature matrix, and outputs a vector of length D as the factor vector of the destination node ID; The destination node ID ranges from 1 to J, where J is the number of destination nodes in the end-to-end network; A time feature mapping layer, whose input is the current measurement time slot ID, uses a K×D time feature matrix C to calculate the first τ measurement time slot IDs of the current measurement time slot ID, extracts the corresponding τ rows from the time feature matrix, and outputs τ vectors of length D as the τ historical time factor vectors of the current measurement time slot; if the current measurement time slot has less than τ historical measurement time slots, the factor vector of the earliest current measurement time slot is repeatedly extracted multiple times until τ is filled, τ represents the number of historical measurement time slots, the current measurement time slot ID ranges from 1 to K, and K is the total number of measurement time slots within the sampling time; A second module is used to repeat the above first module at a preset sampling time interval for all remaining missing values ​​in the network flow measurement data of the end-to-end network until the preset sampling time is reached, thereby obtaining estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network; The third module is used to merge all measurement values ​​in the network flow measurement data of the end-to-end network with the estimated values ​​corresponding to all missing values ​​in the network flow measurement data of the end-to-end network obtained by the first module and the second module, so as to obtain complete network flow data of the end-to-end network.

Citation Information

Patent Citations

  • Stream processing method and system for online filling of network missing data

    CN113297191A

  • Traffic flow interpolation method based on video restoration technology

    CN113971373A

  • Methods, computing devices, and storage media for predicting traffic matrix

    US20210133569A1

  • Gas sensitivity and chromatography multi-information fusion and flavor substance on-site test and analysis method for electronic nose instrument

    WO2021147275A1

  • Transitive tensor analysis for detection of network activities

    WO2022019907A1