Network fault prediction method and device, and electronic equipment
By comparing the dual hypergraph gated convolutional network method based on momentum-driven courses, the problem that traditional prediction methods cannot capture the impact relationship of network faults is solved, accurate prediction and analysis of network faults is achieved, and the prediction accuracy is improved.
Patent Information
- Application Number
- CN202410982971.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
It is difficult to accurately predict network faults with existing technology, especially due to complexity and randomness that traditional methods cannot capture the impact relationship between network faults, resulting in inaccurate predictions.
A momentum-driven curriculum comparison dual hypergraph gated convolutional network method is adopted to detect network faults by constructing an embedding module, a gated dual hypergraph convolutional network representation learning module, a momentum-driven optimization strategy curriculum contrast learning module, and a prediction module. The data is preprocessed and predicted, and time series data is used to capture the high-order structural relationships and mutual influences between faulty nodes.
It achieves accurate prediction of network faults, improves the accuracy of prediction, and enables accurate analysis before a fault occurs to identify the cause of the fault and its complex correlations.
Smart Images

Figure CN118740659A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a network fault prediction method, and in particular to a network fault prediction method, device and electronic equipment based on a momentum-driven course contrast dual hypergraph convolutional network. Background Art
[0002] With the widespread application of 5G technology, broadband networks are taking on more and more responsibilities. At the same time, the quality requirements for broadband networks are also increasing. Timely and accurate prediction of network fault data can alert potential abnormal events, thereby greatly reducing the risk of network failure or even unexpected downtime.
[0003] In the past, traditional methods for predicting network failures relied on the experience of experts, which made it difficult to proactively predict network failures. In addition, due to the complexity and randomness of network failures, it is difficult to effectively predict network failures using traditional methods.
[0004] With the development of graph deep learning in recent years, using graph deep learning methods to predict network faults has become a trend. However, most methods cannot fully consider the high-order structural relationships of network nodes and the network topology, which brings difficulties to network fault prediction in real scenarios, and existing technologies do not fully explore the mutual influence relationship between faults. Summary of the invention
[0005] The purpose of an embodiment of the present invention is to provide a network fault prediction method based on a momentum-driven course contrast dual hypergraph gated convolutional network, aiming to solve the problem that traditional prediction methods cannot capture the impact of different network faults on other faults due to the complexity of network faults, and thus cannot accurately predict faults. Therefore, a technical solution that can accurately predict network faults is provided.
[0006] In order to solve the above technical problem, an embodiment of the present invention provides a network fault prediction method, the method comprising:
[0007] S1. Preprocess the network fault data, convert the feedback data of the network node where the fault occurs into sequence sample data, and generate fault time series data, wherein the network fault data includes fault type, network node information and time node information, and each fault time series data represents all fault types that occur in the current node over time, and the fault types include but are not limited to port fault, network card fault, router fault, network disconnection, power failure, and network cable fault;
[0008] S2. Construct a momentum-driven dual-hypergraph gated convolutional network model for course comparison, wherein the network model includes an embedding module, a representation learning module based on a gated dual-hypergraph convolutional network, a course comparison learning module based on a momentum-driven optimization strategy, and a prediction module. The momentum-driven dual-hypergraph gated convolutional network model for course comparison uses the input time series data to predict faults in network fault data.
[0009] Preferably, the construction of a momentum-driven course comparison dual hypergraph gated convolutional network model specifically includes:
[0010] S21, build an embedding module, take the fault time series data as input, initialize the features of the fault node, and convert the time series data into an embedding vector s; then, build a hypergraph structure g based on the embedded time series U,j The characteristics of each fault data are represented as:
[0011] G U = {g U,base , g U,1 …, g U,k};
[0012] g U,j = {U, ε U,j}, ε U,j The hypergraph g U,j The hyperedge in the hypergraph g U,j All hyperedges in g share the same set of faulty network nodes U. For a faulty network node u∈U, U,j Introduce a hyperedge ε U,j Connect {u|u∈U, (u,i)∈E j}, that is, in the faulty network node set U, it represents all nodes directly connected to the faulty network node u through the interaction type Ej;
[0013] S22, constructing a representation learning module of a hypergraph convolutional network based on a gating mechanism to obtain a node representation X based on a hypergraph of faulty nodes;
[0014] S23. For the hypergraph g U,j Perform graph diffusion enhancement operation to obtain the enhanced diffusion new hypergraph g′ U,j To extract the complex high-order interaction relationship between fault nodes, the graph diffusion operation process formula is as follows:
[0015]
[0016] in is a parameter that controls the diffusion rate of network nodes, g′ U,j It is a super picture U,jNew diffusion-enhanced hypergraph after graph diffusion transformation;
[0017] After propagation in layer l, the hypergraph g is read out through the READOUT function. U,j and the enhanced diffusion hypergraph g′ U,j The node features learned in and Perform embed operation and And use multi-layer perceptron dimensionality reduction for downstream tasks to get the final output z U and z U′ , the formula is as follows:
[0018]
[0019]
[0020]
[0021]
[0022] Among them, z U Represents the hypergraph g U,j The embedding representation of the node, z U′ Denotes the diffusion hypergraph g′ U,j Embedded representation of nodes;
[0023] S24. Construct a momentum-driven course comparison learning module:
[0024] Based on the sampling strategy of curriculum learning, in g′ U,j Find the embedding z′ of negative sampling of c faulty network nodes of different difficulty in c , and define the scoring function S(·) to embed different negative samples into z′ c Mapped to a numerical score S(z′ c ) to measure the difficulty, that is, the scoring function S(·) is set to use sim(z v , z′ c ) to measure the difficulty of negative samples:
[0025] S(z′ c )=sim(z v , z′ c )=(z v -z′ c ) T Σ .-1 (z v -z′ c );
[0026] Among them, z v Indicates that it is different from z′ cThe faulty network nodes are positively sampled and embedded;
[0027] To obtain a single negatively sampled embedding z′ during the entire contrastive learning process c The score S(z′ c ), the pace function δ(t) is used to arrange the introduction of negative samples into the training process, where the pace function δ(t) specifies the sample size of negative sampling in each step t, and the sample size of the step t is composed of δ(t) negative samples with the lowest scores, and T represents the total number of training steps:
[0028] δ(t)=(t / T) φ K;
[0029] Where φ is a smoothing parameter to control the speed of the pace function in the training process. In the contrastive learning process, according to sim(z v , z′ c ) Sort negative samples from lowest score to highest score;
[0030] Maximize the hypergraph g U,j and diffusion-enhanced hypergraph g′ U,j The mutual information between them is used, and the noise estimation contrast loss is adopted. The final loss function of the contrastive learning module can be expressed as follows:
[0031]
[0032] Among them, the similarity measurement function sim(z v , z′ v ) is used to calculate each positive sample pair {z v , z′ v} and positive and negative sample pairs {z v , z′ c}, τ represents the temperature parameter, Indicates the use of scoring functions to guide the embedding of C negative samples during training;
[0033] In the contrastive learning process, the momentum update mechanism is used to update all parameters. The momentum-driven update iterative process of the model parameters is as follows:
[0034]
[0035] Where μ is an adjustable parameter controlling the momentum of the degree of information extraction in training, γ t and Represent the hypergraph g U,j and the enhanced diffusion hypergraph g′ U,j Learning the parameter set during t rounds of iterative optimization training;
[0036] S25, build a prediction module based on the initial embedding s of each sequenceg And the current fault hypergraph network node representation X U,j , use the inner product to calculate the score Ω of all nodes in the hypergraph j , and then use the softmax function to get the output of the predicted node becoming a possible fault in the next period of time:
[0037] Ω j =s g T X U,j ;
[0038]
[0039] in, Indicates the prediction of whether there will be a network failure in the next period of time;
[0040] Then, using the existing nodes in the fault hypergraph network as the edges of positive sample sampling, the prediction loss function is designed by maximizing the edge probability of positive samples and minimizing the edge probability of negative samples. The loss function is defined as:
[0041]
[0042] Where σ is the sigmoid activation function, λ is the weight parameter to balance the importance of positive and negative samples, P(u) defines the distribution of candidate fault nodes u, n is the number of negative samples, and the existing edges in the multi-bipartite graph are used as positive samples. For each positive sample edge (u, i), n negative edges with nodes u and i are randomly selected as negative sample edges;
[0043] Finally, the dual hypergraph representation learning module and the course comparison learning module based on momentum-driven optimization strategy are unified into an overall learning framework, and the final prediction learning target loss is defined as:
[0044] l=l r +ζl NCE ;
[0045] where ζ is a variable factor that controls the contrastive learning task.
[0046] Preferably, the constructing of a representation learning module of a hypergraph convolutional network based on a gating mechanism to obtain a node representation X based on a hypergraph of a faulty node specifically includes:
[0047] S221. Introduce the association matrix H in the hypergraph to describe the relationship between the nodes and hyperedges of the fault hypergraph network. Given a hypergraph g U,j = {U, ε U,j}, where j∈{base, 1, ..., k} represents different interaction types between faulty network nodes, k is the number of interaction types between faulty network nodes, and g is defined asU,j The given incidence matrix is:
[0048]
[0049] in, ε U,j Represented in the hypergraph g U,j The set of hyperedges in , where j∈{base,1,...,k}, based on the hypergraph g I,j Define the cross-correlation matrix
[0050] Let the diagonal matrix and denote the node degree matrix and the hyperedge degree matrix respectively, where B U,j (e, e) = ∑ u∈U H U,j (u, e);
[0051] S222, using the hypergraph convolution operator, using the normalized hypergraph convolution operation to learn the embedding of each hypergraph, g U,j The hypergraph convolution is expressed as:
[0052]
[0053] Among them, σ represents the nonlinear activation function - ReLU function, represents the user features of the lth layer, is an identity matrix, is the learnable transformation matrix, F l and F l+1 represents the embedding dimensions of the lth layer and the l+1th layer;
[0054] S223, for the hypergraph g U,j , through the hypergraph convolution operation, from each hypergraph g U,j The node features are learned in the process, and the node representation of the fault network is obtained according to the different types of interactions between the fault network nodes:
[0055] X={X U,base , X U,1 , ..., X U,k}.
[0056] Furthermore, the method further comprises:
[0057] Design a gated hypergraph internal information transmission mechanism based on the hypergraph g U,j The characteristic information X of the faulty node learned by the construction method U,base , passed to each hypergraph node X U,j In , the propagation process is as follows:
[0058]
[0059]
[0060] Among them, β is the gating weight, Represents the hypergraph g after information propagation and fusion U,j The fault hypergraph network node representation is realized by U,j The information transmission between different interaction types of nodes in the fault hypergraph, and b β are learnable parameters.
[0061] In a second aspect, in order to solve the technical problem of the present invention, an embodiment of the present invention further provides a network fault prediction device, the device comprising:
[0062] A data preprocessing module is used to preprocess the network fault data, convert the feedback data of the network node where the fault occurs into sequence sample data, and generate fault time series data, wherein the network fault data includes fault type, network node information and time node information, and each fault time series data represents all fault types that occur in the current node over time, and the fault types include but are not limited to port fault, network card fault, router fault, network disconnection, power failure, and network cable fault;
[0063] A prediction module is used to construct a momentum-driven dual-hypergraph gated convolutional network model for course comparison. The network model includes an embedding module, a representation learning module based on a gated dual-hypergraph convolutional network, a course comparison learning module based on a momentum-driven optimization strategy, and a prediction module. The momentum-driven dual-hypergraph gated convolutional network model for course comparison uses the input time series data to predict faults in network fault data.
[0064] On the third aspect, in order to solve the technical problem of the present invention, an embodiment of the present invention also provides an electronic device, including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method as described above.
[0065] In a fourth aspect, in order to solve the technical problem of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method as described above.
[0066] The embodiment of the present invention has the following effects by adopting the above technical scheme: preprocessing the network fault data, constructing a momentum-driven course comparison dual hypergraph gated convolutional network model to predict faults in the network fault data, and through dual hypergraph gated convolution and momentum-driven course comparison learning methods, accurate prediction can be achieved before the network fault occurs, and accurate analysis of the causes of network faults and their complex correlations can be completed, thereby achieving accurate prediction of network faults and improving the accuracy of network fault prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.
[0068] Figure 1 It is a flow chart of a network fault prediction method based on a momentum-driven course comparison dual hypergraph convolutional network according to an embodiment of the present invention;
[0069] Figure 2 It is an implementation structure diagram of network fault prediction based on momentum-driven course comparison dual hypergraph convolutional network in another embodiment of the present invention;
[0070] Figure 3 It is a structural schematic diagram of an electronic device for network fault prediction using a momentum-driven course comparison dual hypergraph convolutional network provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0072] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0073] The following mainly takes some specific embodiments as examples to describe in detail the implementation of the technical solution of the present invention.
[0074] like Figure 1As shown, a network fault prediction method based on momentum-driven course comparison dual hypergraph gated convolutional network in an embodiment of the present invention includes the following steps:
[0075] S1. Preprocess the network fault data, convert the feedback data of the network node device that caused the fault into sequence sample data, and generate fault time series data, wherein the network fault data includes fault type, network node device information and time node information, and each fault time series data represents all fault types that occur in the current device over time, and the fault types include but are not limited to port fault, network card fault, router fault, network disconnection, power failure, and network cable fault;
[0076] S2. Construct a momentum-driven dual-hypergraph gated convolutional network model for course comparison, wherein the network model includes an embedding module, a representation learning module based on a gated dual-hypergraph convolutional network, a course comparison learning module based on a momentum-driven optimization strategy, and a prediction module. The momentum-driven dual-hypergraph gated convolutional network model for course comparison utilizes the input fault time series data to predict faults in network fault data.
[0077] The embodiment of the present invention pre-processes the collected network fault data, converts the feedback data of the network node device where the fault occurs into sequence sample data, generates fault time series data, and obtains data sequences of all fault types on the time series.
[0078] Among them, the construction of the momentum-driven course comparison dual hypergraph gated convolutional network model specifically includes:
[0079] S21. Construct an embedding module, take the fault time series data as input, initialize the features of the fault node, and convert the time series data into an embedding vector s; then, construct a hypergraph structure g based on the embedded time series U , j represents each fault data as follows:
[0080] G U = {g U,base , g U,1 …, g U,k};
[0081] g U,j = {U, ε U,j}, ε U,j The hypergraph g U,j The hyperedge in the hypergraph g U,j All hyperedges in g share the same set of faulty network nodes U. For a faulty network node u∈U, U,j Introduce a hyperedge ε U,j Connect {u|u∈U, (u,i)∈E j}, that is, in the fault network node set U, it is represented by the interaction type E j All nodes directly connected to the failed network node u;
[0082] S22. Construct a representation learning module of a hypergraph convolutional network based on a gating mechanism to obtain a node representation X based on a hypergraph of faulty nodes, specifically including:
[0083] S221. Introduce the association matrix H in the hypergraph to describe the relationship between the nodes and hyperedges of the fault hypergraph network. Given a hypergraph g U,j = {U, ε U,j}, where j∈{base, 1, ..., k} represents different interaction types between faulty network nodes, k is the number of interaction types between faulty network nodes, and g is defined as U,j The given incidence matrix is:
[0084]
[0085] in, ε U,j Represented in the hypergraph g U,j The set of hyperedges in , where j∈{base,1,...,k}, based on the hypergraph g I,j Define the cross-correlation matrix Let the diagonal matrix and denote the node degree matrix and the hyperedge degree matrix respectively, where B U,j (e, e) = ∑ u∈U H U,j (u, e);
[0086] S222, using the hypergraph convolution operator, using the normalized hypergraph convolution operation to learn the embedding of each hypergraph, g U,j The hypergraph convolution is expressed as:
[0087]
[0088] Among them, σ represents the nonlinear activation function - ReLU function, represents the user features of the lth layer, is an identity matrix, is the learnable transformation matrix, F l and F l+1 represents the embedding dimensions of the lth layer and the l+1th layer;
[0089] S223, for the hypergraph g U,j , through the hypergraph convolution operation, from each hypergraph g U,j The node features are learned in the process, and the node representation of the fault network is obtained according to the different types of interactions between the fault network nodes:
[0090] X={X U,base , X U,1 , ..., X U,k};
[0091] S23. For the hypergraph g U,j Perform graph diffusion enhancement operation to obtain the enhanced diffusion new hypergraph g′ U,j To extract the complex high-order interaction relationship between fault nodes, the graph diffusion operation process formula is as follows:
[0092]
[0093] in is a parameter that controls the diffusion rate of network nodes, g′ U,j It is a super picture U,j New diffusion-enhanced hypergraph after graph diffusion transformation;
[0094] After propagation in layer l, the hypergraph g is read out through the READOUT function. U,j and the enhanced diffusion hypergraph g′ U,j The node features learned in and Perform embed operation and And use multi-layer perceptron dimensionality reduction for downstream tasks to get the final output z U and z U′ , the formula is as follows:
[0095]
[0096]
[0097]
[0098]
[0099] Among them, z U Represents the hypergraph g U,j Embedded representation of the node; z U′ Denotes the diffusion hypergraph g′ U,j Embedded representation of a node.
[0100] S24. Construct a momentum-driven course comparison learning module:
[0101] Based on the sampling strategy of curriculum learning, in g′ U,j Find the embedding z′ of negative sampling of c faulty network nodes of different difficulty in c , and define the scoring function S(·) to embed different negative samples into z′ cMapped to a numerical score S(z′ c ) to measure the difficulty, that is, the scoring function S(·) is set to use sim(z v , z′ c ) to measure the difficulty of negative samples:
[0102] S(z′ c )=sim(z v , z′ c )=(z v -z′ c ) T Σ .-1 (z v -z′ c );
[0103] Among them, z v Indicates that it is different from z′ c The faulty network nodes are positively sampled and embedded;
[0104] To obtain a single negatively sampled embedding z′ during the entire contrastive learning process c The score S(z′ c ), the pace function δ(t) is used to arrange the introduction of negative samples into the training process, where the pace function δ(t) specifies the sample size of negative sampling in each step t, and the sample size of the step t is composed of δ(t) negative samples with the lowest scores, and T represents the total number of training steps:
[0105] δ(t)=(t / T) φ K;
[0106] Where φ is a smoothing parameter to control the speed of the pace function in the training process. In the contrastive learning process, according to sim(z v , z′ c ) Sort negative samples from lowest score to highest score;
[0107] Maximize the hypergraph g U,j and diffusion-enhanced hypergraph g′ U,j The mutual information between them is used, and the noise estimation contrast loss is adopted. The final loss function of the contrastive learning module can be expressed as follows:
[0108]
[0109] Among them, the similarity measurement function sim(z v , z′ v ) is used to calculate each positive sample pair {z v , z′ v} and positive and negative sample pairs {z v , z′ c}, τ represents the temperature parameter, Indicates the use of scoring functions to guide the embedding of C negative samples during training;
[0110] In the contrastive learning process, the momentum update mechanism is used to update all parameters. The momentum-driven update iterative process of the model parameters is as follows:
[0111]
[0112] Where μ is an adjustable parameter controlling the momentum of the degree of information extraction in training, γ t and Represent the hypergraph g U,j and the enhanced diffusion hypergraph g′ U,j Learning the parameter set during t rounds of iterative optimization training;
[0113] The input of this contrastive learning module is a hypergraph g U,j The embedding representation of the node, and the other is the diffusion hypergraph g′ U,j The embedding representation of the node. U,j The node embedding representation is positively sampled to obtain z v , for the diffusion hypergraph g′ U,j The node embedding representation is positively sampled to obtain z′ v , and at the same time for the diffusion hypergraph g′ U,j The node obtains z′ based on the negative sampling strategy of the course learning based on the scoring function c Different from traditional contrastive learning, the contrastive learning loss function I proposed also introduces a negative sampling z′ based on the curriculum learning strategy c .
[0114] The embodiment of the present invention designs a momentum-driven curriculum learning contrastive learning framework. First, the curriculum learning sorts the negative samples according to the scores, and then weighs the difference in the difficulty of the negative samples according to the scoring function and the pace function, thereby introducing different negative samples into the contrastive learning training. At the same time, based on the momentum-driven optimization strategy, the difference in the training of the two views (i.e., the original hypergraph network and the diffusion-enhanced hypergraph network) of the contrastive learning framework is improved, thereby further extracting the complex and high-order nature of the hypergraph structure in the learning fault network feature representation.
[0115] First, based on the sampling strategy of curriculum learning, in the diffusion enhanced hypergraph g′ U,j The embedding z′ of negative sampling of c faulty network nodes of different difficulty can be found in c , for this purpose, we define the scoring function S(·) and embed different negative samples into z′ c Mapped to a numerical score S(z′ c ) is used to measure this difficulty, that is, the scoring function S(·) is set to sim(z v , z′c ) to measure the difficulty of negative samples. That is,
[0116] S(z′ c )=sim(z v , z′ c )=(z v -z′ c ) T Σ .-1 (z v -z′ c );
[0117] Among them, z v It also means different from z′ c Positive sampling embedding of faulty network nodes.
[0118] Next, we obtain a single negative sample embedding z′ during the entire contrastive learning process c The score S(z′ c ), a step function δ(t) is used to schedule the introduction of negative samples into the training process. The step function Sδ(t) specifies the sample size that can be negatively sampled at each step t. The step of step t consists of the δ(t) lowest-scoring negative samples. The batch of negative samples is uniformly sampled, and T represents the total number of training steps:
[0119] δ(t)=(t / T) φ K;
[0120] Where φ is a smoothing parameter used to control the speed of the pace function in the training process. v , z′ c ) Sort the negative samples from lowest score to highest score, making them easier to introduce into training.
[0121] Finally, maximize the hypergraph g U,j and diffusion-enhanced hypergraph g′ U,j The mutual information between them. The noise estimation contrast loss is used. The final loss function of the contrastive learning module can be expressed as follows:
[0122]
[0123] Among them, the similarity measurement function sim(z v , z′ v ) is used to calculate each positive sample pair {zv, z′ v} and positive and negative sample pairs {z v , z′ c}, τ represents the temperature parameter, It indicates that the scoring function is used to guide the embedding of C negative samples in the training process.
[0124] At the same time, in order to avoid the collapse of training that relies too much on negative samples, the embodiment of the present invention uses a momentum update mechanism to update all parameters in the contrastive learning process. The model parameter momentum driven update iterative process is as follows:
[0125]
[0126] Where μ is an adjustable parameter controlling the momentum of the degree of information extraction in training, γ t and Represent the original hypergraph network G U and diffusion-enhanced hypergraph G' U The set of parameters is learned during iterative optimization training for t rounds.
[0127] S25. Construct prediction module:
[0128] Construct a prediction module based on the initial embedding sg of each sequence and the current fault hypergraph network node representation X U,j , use the inner product to calculate the score Ω of all nodes in the hypergraph j , and then use the softmax function to get the output of the predicted node becoming a possible fault in the next period of time:
[0129] Ω j =s g T X U,j ;
[0130]
[0131] in, Indicates the prediction of whether there will be a network failure in the next period of time;
[0132] Then, using the existing nodes in the fault hypergraph network as the edges of positive sample sampling, the prediction loss function is designed by maximizing the edge probability of positive samples and minimizing the edge probability of negative samples. The loss function is defined as:
[0133]
[0134] Where σ is the sigmoid activation function, λ is the weight parameter to balance the importance of positive and negative samples, P(u) defines the distribution of candidate fault nodes u, n is the number of negative samples, and the existing edges in the multi-bipartite graph are used as positive samples. For each positive sample edge (u, i), n negative edges with nodes u and i are randomly selected as negative sample edges;
[0135] Finally, the dual hypergraph representation learning module and the course comparison learning module based on momentum-driven optimization strategy are unified into an overall learning framework, and the final prediction learning target loss is defined as:
[0136] l=l r +ζl NCE ;
[0137] where ζ is a variable factor that controls the contrastive learning task.
[0138] That is, using the existing nodes in the fault hypergraph network as the edges of positive sample sampling, the prediction loss function is designed by maximizing the edge probability of positive samples and minimizing the edge probability of negative samples. The loss function is defined as:
[0139]
[0140] Where σ is the sigmoid activation function, λ is a weight parameter to balance the importance of positive and negative samples, P(u) defines the distribution of candidate fault nodes u, n is the number of negative samples, and the existing edges in the multi-bipartite graph are used as positive samples. For each positive sample edge (u, i), n negative edges with nodes u and i are randomly selected as negative sample edges.
[0141] Finally, the dual hypergraph representation learning module and the curriculum contrast learning module based on momentum-driven optimization strategy are unified into an overall learning framework. Formally, the final prediction learning objective loss is defined as:
[0142] l=l r +ζl NCE ;
[0143] where ζ is a variable factor that controls the contrastive learning task.
[0144] Preferably, the network fault prediction method of the embodiment of the present invention further includes:
[0145] Design a gated hypergraph internal information transmission mechanism based on the hypergraph g U,j The characteristic information X of the faulty node learned by the construction method U,base , passed to each hypergraph node X U,j In , the propagation process is as follows:
[0146]
[0147]
[0148] Among them, β is the gating weight, Represents the hypergraph g after information propagation and fusion U,j The fault hypergraph network node representation is realized byU,j The information transmission between different interaction types of nodes in the fault hypergraph, and b β are learnable parameters.
[0149] See also Figure 3 , Figure 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 3 As shown, the electronic device 1000 includes a processor 1001 and a memory 1002, and the processor 1001 and the memory 1002 can be connected to each other via a communication bus 1003. The communication bus 1003 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1003 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The memory 1002 is used to store computer programs. The computer programs include program instructions. The processor 1001 is configured to call the program instructions. The program includes instructions for executing Figure 1 Some or all of the steps in the method included.
[0150] The processor 1001 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
[0151] The memory 1002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0152] The electronic device 1000 may further include a communication module 1004 and a display 1005. The communication module 1004 may be connected to the optical tracking device for communication. The communication module 1004 may be a wireless communication module (eg, a WiFi module, a Bluetooth module, etc.) or a wired communication module.
[0153] In addition, the electronic device 1000 may also include common components such as a communication interface (eg, a USB interface, a microphone interface, etc.), an antenna, etc., which will not be described in detail here.
[0154] An embodiment of the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any network fault prediction method recorded in the above method embodiments.
[0155] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0160] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0161] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0162] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0163] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.
Claims
1. A network fault prediction method, characterized in that: The method comprises: S1. Preprocess the network fault data, convert the feedback data of the network node where the fault occurs into sequence sample data, and generate fault time series data, wherein the network fault data includes fault type, network node information and time node information, and each fault time series data represents all fault types that occur in the current node over time, and the fault types include but are not limited to port fault, network card fault, router fault, network disconnection, power failure, and network cable fault; S2. Construct a momentum-driven dual-hypergraph gated convolutional network model for course comparison, wherein the network model includes an embedding module, a representation learning module based on a gated dual-hypergraph convolutional network, a course comparison learning module based on a momentum-driven optimization strategy, and a prediction module. The momentum-driven dual-hypergraph gated convolutional network model for course comparison uses the input time series data to predict faults in network fault data.
2. The network fault prediction method according to claim 1, characterized in that: The construction of the momentum-driven dual hypergraph gated convolutional network model for course comparison specifically includes: S21, build an embedding module, take the fault time series data as input, initialize the features of the fault node, and convert the time series data into an embedding vector s; then, build a hypergraph structure g based on the embedded time series U ,j represents each fault data as follows: G U ={g U.base ,g U.1 …,g U.k }; g U,j = {U,ε U,j }, ε U,j The hypergraph g U,j The hyperedge in the hypergraph g U,j All hyperedges in g share the same set of faulty network nodes U. For a faulty network node u∈U, U,j Introduce a hyperedge ε U,j Connect {u|u∈U,(u,i)∈E j }, that is, in the fault network node set U, it is represented by the interaction type E j All nodes directly connected to the failed network node u; S22, constructing a representation learning module of a hypergraph convolutional network based on a gating mechanism to obtain a node representation X based on a hypergraph of faulty nodes; S23. For the hypergraph g U,j Perform graph diffusion enhancement operation to obtain the enhanced diffusion new hypergraph g′ U,j To extract the complex high-order interaction relationship between fault nodes, the graph diffusion operation process formula is as follows: in is a parameter that controls the diffusion rate of network nodes, g′ U,j It is a super picture U,j New diffusion-enhanced hypergraph after graph diffusion transformation; After propagation in layer l, the hypergraph g is read out through the READOUT function. U ,j and the enhanced diffusion hypergraph g′ U,j The node features learned in and Perform embed operation and And use multi-layer perceptron dimensionality reduction for downstream tasks to get the final output z U and z U′ , the formula is as follows: Among them, z U Represents the hypergraph g U,j The embedding representation of the node, z U′ Denotes the diffusion hypergraph g′ U,j Embedded representation of nodes; S24. Construct a momentum-driven course comparison learning module: Based on the sampling strategy of curriculum learning, in g′ U,j Find the embedding z′ of negative sampling of c faulty network nodes of different difficulty in c , and define the scoring function S(·) to embed different negative samples into z′ c Mapped to a numerical score S(z′ c ) to measure the difficulty, that is, the scoring function S(·) is set to use sim(z v ,z′ c ) to measure the difficulty of negative samples: S(z′ c )=sim(z v ,With' c )=(from v -With' c ) T Σ .-1 (With v -With' c ); Among them, z v Indicates that it is different from z′ c The faulty network nodes are positively sampled and embedded; To obtain a single negatively sampled embedding z′ during the entire contrastive learning process c The score S(z′ c ), the pace function δ(t) is used to arrange the introduction of negative samples into the training process, where the pace function δ(t) specifies the sample size of negative sampling in each step t, and the sample size of the step t is composed of δ(t) negative samples with the lowest scores, and T represents the total number of training steps: δ(t)=(t / T) φ ·K; Where φ is a smoothing parameter to control the speed of the pace function in the training process. In the contrastive learning process, according to sim(z v ,z c ′) Sort negative samples from lowest score to highest score; Maximize the hypergraph g U,j and diffusion-enhanced hypergraph g′ U,j The mutual information between them is used, and the noise estimation contrast loss is adopted. The final loss function of the contrastive learning module can be expressed as follows: Among them, the similarity measurement function sim(z v ,z v ′) is used to calculate each positive sample pair {z v ,z′ v } and positive and negative sample pairs {z v ,z′ c }, τ represents the temperature parameter, Indicates the use of scoring functions to guide the embedding of C negative samples during training; In the contrastive learning process, the momentum update mechanism is used to update all parameters. The momentum-driven update iterative process of the model parameters is as follows: Where μ is an adjustable parameter controlling the momentum of the degree of information extraction in training, γ t and Represent the hypergraph g U,j and the enhanced diffusion hypergraph g′ U,j Learning the parameter set during t rounds of iterative optimization training; S25, build a prediction module based on the initial embedding s of each sequence g And the current fault hypergraph network node representation X U,j , use the inner product to calculate the score Ω of all nodes in the hypergraph j , and then use the softmax function to get the output of the predicted node becoming a possible fault in the next period of time: Oh j =s g T X U,j ; in, Indicates the prediction of whether there will be a network failure in the next period of time; Then, using the existing nodes in the fault hypergraph network as the edges of positive sample sampling, the prediction loss function is designed by maximizing the edge probability of positive samples and minimizing the edge probability of negative samples. The loss function is defined as: Where σ is the sigmoid activation function, λ is the weight parameter to balance the importance of positive and negative samples, P(u) defines the distribution of candidate fault nodes u, n is the number of negative samples, and the existing edges in the multi-bipartite graph are used as positive samples. For each positive sample edge (u, i), n negative edges with nodes u and i are randomly selected as negative sample edges; Finally, the dual hypergraph representation learning module and the course comparison learning module based on momentum-driven optimization strategy are unified into an overall learning framework, and the final prediction learning target loss is defined as: l=l r +ζl NCE ; where ζ is a variable factor that controls the contrastive learning task.
3. The network fault prediction method according to claim 2, characterized in that: The construction of a representation learning module of a hypergraph convolutional network based on a gating mechanism to obtain a node representation X based on a fault node hypergraph specifically includes: S221. Introduce the association matrix H in the hypergraph to describe the relationship between the nodes and hyperedges of the fault hypergraph network. Given a hypergraph g U,j = {U,ε U,j }, where j∈{base,1,...,k} represents different interaction types between faulty network nodes, k is the number of interaction types between faulty network nodes, and g is defined as U,j The given incidence matrix is: in, ε U,j Represented in the hypergraph g U,j The set of hyperedges in , where j∈{base,1,...,k}, based on the hypergraph g I,j Define the cross-correlation matrix Let the diagonal matrix and denote the node degree matrix and the hyperedge degree matrix respectively, where B U,j (e,e)=∑ u∈U H U,j (u,e); S222, using the hypergraph convolution operator, using the normalized hypergraph convolution operation to learn the embedding of each hypergraph, g U,j The hypergraph convolution is expressed as: Among them, σ represents the nonlinear activation function - ReLU function, represents the user features of the lth layer, is an identity matrix, is the learnable transformation matrix, F l and F l+1 represents the embedding dimensions of the lth layer and the l+1th layer; S223, for the hypergraph g U,j , through the hypergraph convolution operation, from each hypergraph g U,j The node features are learned in the process, and the node representation of the fault network is obtained according to the different types of interactions between the fault network nodes: X={X U,base ,X U,1 ,...,X U,k }。 4. The network fault prediction method according to claim 3, characterized in that: The method further comprises: Design a gated hypergraph internal information transmission mechanism based on the hypergraph g U, The construction method of j learns the characteristic information X of the faulty node U,base , passed to each hypergraph node X U,j In , the propagation process is as follows: Among them, β is the gating weight, Represents the hypergraph g after information propagation and fusion U,j The fault hypergraph network node representation is realized by U,j The information transmission between different interaction types of nodes in the fault hypergraph, and b β are learnable parameters.
5. A network fault prediction device, characterized in that: The device comprises: A data preprocessing module is used to preprocess the network fault data, convert the feedback data of the network node where the fault occurs into sequence sample data, and generate fault time series data, wherein the network fault data includes fault type, network node information and time node information, and each fault time series data represents all fault types that occur in the current node over time, and the fault types include but are not limited to port fault, network card fault, router fault, network disconnection, power failure, and network cable fault; A prediction module is used to construct a momentum-driven dual-hypergraph gated convolutional network model for course comparison. The network model includes an embedding module, a representation learning module based on a gated dual-hypergraph convolutional network, a course comparison learning module based on a momentum-driven optimization strategy, and a prediction module. The momentum-driven dual-hypergraph gated convolutional network model for course comparison uses the input time series data to predict faults in network fault data.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Network fault prediction method and device based on self-supervised unwrapping hypergraph attention
CN115174421A
Network fault prediction method and device based on self-supervised hypergraph
CN115587612A
Scene image classification method and system based on double hypergraph neural network
CN116206158A
Sequence recommendation method and device based on hypergraph and self-supervised learning and medium
CN116452281A
Contrast learning news recommendation method based on hypergraph enhancement
CN117033763A
