Internet data center hidden danger intelligent early warning operation and maintenance method
By using GPU parallel computing and deep learning technology in the data center operation and maintenance system, combined with GRU, VRNN and GAN, the problem of low efficiency in the data center operation and maintenance system is solved, intelligent early warning and deep data mining are realized, and operation and maintenance is improved. System stability and efficiency.
Patent Information
- Application Number
- CN202410575161.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-08-30
AI Technical Summary
The existing data center operation and maintenance system is inefficient in monitoring and early warning. It cannot provide early warning of potential hazards, and it cannot effectively use historical big data to reveal the underlying characteristics and patterns of equipment operating status, resulting in blocked signal monitoring and insufficient fault prediction.
Using GPU parallel computing combined with Gated Recurrent Unit (GRU), Variational Autoencoding Recurrent Network (VRNN) and Generative Adversarial Network (GAN), real-time dynamic ring data is packaged into tensors for time series analysis and latent variable generation, through distribution The comparison score (DRscore) measures abnormal hidden dangers and realizes intelligent early warning.
It improves the early warning capability of potential hidden dangers, avoids signal monitoring blockage, can deeply mine the equipment operating status characteristics in historical big data, realizes intelligent decision support, and improves the stability and efficiency of the operation and maintenance system.
Smart Images

Figure CN118567944A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data center operation and maintenance, and in particular relates to an intelligent early warning operation and maintenance method for hidden dangers in an Internet data center. Background Art
[0002] In the wave of the digital age, intelligent operation and maintenance of data centers have emerged and become a key link in supporting the digital transformation and intelligent upgrading of the economy and society. According to data released by the Ministry of Industry and Information Technology, by the end of June 2022, the total scale of data center racks in my country exceeded 5.9 million standard racks, and the scale of servers was nearly 20 million. These data centers play an important role in meeting the growing demand for digitalization. As of now, there are more than 1.513 million data center-related companies in my country.
[0003] The new data center features high technology, high computing power, high energy efficiency, and high security. It uses 5G, industrial Internet, cloud computing, and artificial intelligence as engines, and is committed to providing green and low-carbon services to meet the needs of multiple data resources, becoming an emerging infrastructure that enables applications in thousands of industries. The Ministry of Industry and Information Technology and other departments have promoted the development of green data centers, clearly coordinated green intelligent computing power infrastructure, emphasized the computing power empowerment effect, and prompted data centers to move towards a more intelligent and efficient operation and maintenance model.
[0004] The Internet data center is a complex facility that includes servers and network equipment, dynamic environment systems, UPS equipment monitoring systems, fire protection systems, security systems, etc. Affected by factors such as time and environment, the operating status of specific equipment has a certain intrinsic connection with it, which provides the possibility of prediction. In order to provide early warning for intelligent monitoring of key equipment (such as power supplies, switches, routers, servers, etc.), it is necessary to start from revealing the development trend and characteristics of the equipment operating status degradation, forecast the equipment operating status, and predict how long it will take for the equipment operating status to reach an unacceptable level in the future. Early fault warnings should be carried out according to the degree of deterioration, and feasible safety measures and equipment maintenance plans should be formulated to achieve key equipment monitoring, deployment, early warning and self-healing. However, the existing data center operation and maintenance has the following problems:
[0005] (1) During the operation and maintenance process, an empirical threshold alarm system is usually used to monitor the operating status of the IDC in real time, but it is unable to provide early warning of potential hidden dangers.
[0006] (2) An IDC usually has a huge number of connected devices. A super-large IDC can accommodate more than 10,000 devices, and each device has dozens of monitoring signals. Faced with such a huge amount of data, traditional methods are inefficient and may even cause signal monitoring blockage in serious cases.
[0007] (3) The current operation and maintenance system mainly serves the purpose of archiving and auditing historical data. It cannot effectively use historical big data to reveal the underlying characteristics and laws of the development trend of equipment operating status degradation. Summary of the invention
[0008] Purpose of the invention: To address the following problems in the operation and maintenance of existing data centers: An empirical threshold alarm system is usually used to monitor the operating status of the IDC in real time, but it is unable to provide early warnings for potential hidden dangers; IDCs usually have a huge number of connected devices, and a super-large IDC accommodates tens of thousands of devices, each of which has dozens of monitoring signals. Faced with such a large amount of data, traditional methods are inefficient and can cause signal monitoring blockage in severe cases; the current operation and maintenance system mainly archives and audits historical data. It is impossible to effectively use historical big data to reveal the underlying characteristics and laws of the development trend of equipment operating status degradation.
[0009] The present invention specifically proposes an Internet data center hidden danger intelligent early warning operation and maintenance method, comprising the following steps:
[0010] Step 1: Collect real-time dynamic data from the data center operation and maintenance system, package the real-time dynamic data into tensor x, and use the characteristics of GPU parallel computing to ensure the real-time prediction of large data volumes;
[0011] Step 2: Input the real-time dynamic loop data packaged into tensor x into the gated recurrent unit GRU (GRU) for time series analysis, and predict the predicted sequence data y; this step involves the calculation of update gate, reset gate and hidden state. The update gate is used to control the extent to which the state information of the previous moment is brought into the current state. The larger the value of the update gate, the more state information of the previous moment is brought in; the reset gate controls how much information of the previous moment state is written into the current candidate set. The smaller the reset gate is, the less information of the previous state is written.
[0012] Step 3: Input the real-time dynamic loop data packaged into tensor x into the variational autoencoder recurrent network VRNN to generate latent variables z and form a random latent space; VRNN is a model that combines variational autoencoder (VAE) and recurrent neural network (RNN) for time series generation. The model captures the potential structure of the data by introducing random latent variables and can effectively generate time series data with a certain degree of randomness.
[0013] Step 4: Input the latent variable z into the generator G of the Generative Adversarial Nets (GAN) and output the generated sample G(z);
[0014] Step 5: Abnormal hidden danger warning: Input the generated sample G(z) and the predicted sequence data y into the discriminator D of the generative adversarial network GAN, and use the distribution comparison score DR score Measuring the distance between the predicted sequence data y and the generated sample G(z), when the distribution contrast score DR score When the set threshold is exceeded, an abnormal hidden danger warning is generated.
[0015] Step 1 includes: the real-time dynamic ring data is a multivariate signal time series, and the multivariate signal time series [x 11 ,x 12 ,x 13 ,...,x 1n ],[x 21 ,x 22 ,x 23 ,...,x 2n ],[x 31 ,x 32 , x 33 ,...,x 3n ] are aligned in time and then packed into a tensor with a shape of (B, S), where B represents the batch size of the packed tensor and S represents the length of the sequence. The packed tensor x is as follows:
[0016] [[x 11 ,x 12 ,x 13 ,...,x 1n ],
[0017] [x 21 ,x 22 ,x 23 ,...,x 2n ], ...
[0019] [x 31 ,x 32 , x 33 ,...,x 3n ]],
[0020] Among them, x 1n represents the nth signal, the signal value at the first moment; x 2n represents the nth signal, the signal value at the second moment; x 3n Represents the nth signal, the signal value at the third moment.
[0021] Step 2 includes:
[0022] Step 2-1, initialize the hidden state: The gated recurrent unit GRU first obtains an initialized hidden state;
[0023] Step 2-2, process the sequence step by step;
[0024] Step 2-3, output layer calculation.
[0025] Step 2-2 includes: For each time step, GRU performs the following calculations:
[0026] Step 2-2-1, calculate the reset gate r t :
[0027] r t =σ(W r ·[h t-1 ,x t ]+b r ) (1)
[0028] Among them, σ represents the sigmoid activation function, W r represents the weight matrix of the reset gate, b r represents the bias vector, h t-1 represents the hidden state of the previous time step, x t is the input of the current time step t;
[0029] Step 2-2-2, calculate the update gate u t :
[0030] u t =σ(W u ·[h t-1 ,x t ]+b u (2)
[0031] Among them, W u represents the weight matrix of the update gate, b u represents the bias vector;
[0032] Step 2-2-3, calculate candidate hidden states
[0033]
[0034] Among them, tanh represents the hyperbolic tangent activation function, W h represents the weight matrix used to calculate the candidate hidden state, b h represents the bias vector, ⊙ represents element-by-element multiplication;
[0035] Step 2-2-4, update the hidden status:
[0036]
[0037] Among them, h t Indicates the hidden state.
[0038] The final hidden state is obtained by controlling whether the hidden state of the previous time step is retained and whether the information of the candidate hidden state is fused through the update gate.
[0039] Step 2-3 includes: calculating the signal prediction value y t :
[0040] y t =W yh h t +b y (5)
[0041] Among them, W yh represents the weight matrix used to calculate the signal prediction value, b y Represents the bias vector. Through the hidden state h t The output layer is calculated and passed to the fully connected layer for prediction. Finally, the hidden state of each sequence at each time step and the possible output results are obtained.
[0042] Step 3 includes:
[0043] Step 3-1, generate observation data x at time step t t ;
[0044] Step 3-2, variational lower bound;
[0045] Step 3-3, conduct training process.
[0046] Step 3-1 includes: In VRNN, the generation process involves the generation of random latent variables and observation data. For time step t, the observation data x t Generated by a conditional Gaussian distribution, the input x at the current time step t t The generation process of is expressed by the following formula:
[0047]
[0048] Among them, p(x t |z t ,x <t ) means that given the latent variable z t and the observation data x at the previous time step <t In the case of , generate the input x of the current time step t t The conditional probability distribution of is Gaussian distribution, represents Gaussian distribution, μ t and are the mean and variance of the output of the recurrent neural network RNN. By introducing random latent variables, VRNN injects a certain amount of randomness into the generation process.
[0049] Step 3-2 includes: When training the VRNN model, we hope to maximize the log-likelihood function, but due to the existence of latent variables, variational inference is used to approximate the posterior distribution. When training the variational autoencoder recurrent network VRNN model, the variational lower bound is an objective function used in variational inference. It is expressed as:
[0050]
[0051] Among them, θ and φ are the parameters of the variational autoencoder recurrent network VRNN model and the parameters of the variational distribution, respectively, which fit the observed data and approximate the posterior distribution to the greatest extent; 1:t means from time step 1 to time step t;
[0052] p θ (x 1:t , z 1:t ) represents the observed data x 1:t and the latent variable z 1:t The joint distribution of is parameterized by the parameter θ;
[0053] q φ (z 1:t |x 1:t ) represents the variational distribution, parameterized by the parameter φ, which approximates the true posterior distribution p(z 1:t |x 1:t );
[0054] Represents the variational distribution q φ (z 1:t |x 1:t ) to expect;
[0055] log p θ (x 1:t , z 1:t ) represents the model p θ The observed data x 1:t and the latent variable z 1:t The log-likelihood of ;
[0056] log q φ (z 1:t |x 1:t ) represents the variational distribution q φ (z 1:t |x 1:t )’s logarithmic probability density;
[0057] The goal of variational inference is to maximize this lower bound on parameters θ and φ and minimize the KL (Kullback-Leibler, KL) divergence between the variational distribution and the true posterior distribution.
[0058] Step 3-3 includes: during the training process, using the stochastic gradient descent optimization method to update the model parameters θ and the variational distribution parameters φ to maximize the variational lower bound: first, extract samples from the multivariate signal time series training data from the dynamic ring equipment (i.e., the multivariate signal time series in step 1), and then calculate the variational lower bound through forward propagation, and calculate the gradient through back propagation, and use the gradient to update the model parameters and the parameters of the variational distribution to increase the variational lower bound, thereby improving the generation effect of the generative adversarial network GAN model.
[0059] Step 5 includes: in the generative adversarial network GAN, calculating the generator loss G (Generator Loss, G):
[0060] G=-log(D(G(z)) (8)
[0061] Where z represents random noise, D(G(z)) represents the output of the data generated by the generator G in the discriminator D, and log represents the natural logarithm. The purpose of the generator loss is to make the data generated by the generator G closer to the real data, making it difficult for the discriminator D to identify.
[0062] Calculate the discriminator loss DL (Discriminator Loss). The goal of the discriminator loss is to enable the discriminator D to correctly identify the data generated by the generator G and the real data:
[0063] DL real = -log(1-D(y)) (9)
[0064] DL fake = -log(1-D(G(z))) (10)
[0065] DL=DL real +DL fake (11)
[0066] Among them, DL real represents the loss of the true prediction sample; y represents the true prediction data; D(y) represents the output of the discriminator for the true prediction sample, which is used to measure the probability that the true prediction sample is correctly classified; DL fakerepresents the loss of generated samples, where G(z) represents the samples generated by the generator, D(G(z)) is the output of the discriminator for the generated samples, which is used to measure the probability that the generated samples are misclassified as true prediction samples; DL represents the total loss of the discriminator, that is, the sum of the losses of the true prediction samples and the generated samples, which is used to optimize the parameters of the discriminator;
[0067] In order to improve the accuracy of detection, the discriminator loss is minimized through the stochastic gradient descent optimization method so that the discriminator D can correctly identify the data generated by the generator G and the real data. It should be noted that the loss function of GAN is the minimization loss function between the generator and the discriminator. By training the generator and the discriminator, the goal of making the data generated by the generator G difficult to identify can be achieved, thereby realizing the function of time series anomaly detection.
[0068] Calculate the distribution contrast score DR score (Distributional Robustness Score), DR score It is an indicator used to evaluate the difference between the samples generated by GAN and the real data distribution. Its principle is to measure the performance of the generator by comparing the distance between the real data distribution and the generated data distribution. Specifically include:
[0069] Calculate the distance metric KL divergence:
[0070]
[0071] DR score It provides a comprehensive evaluation index that can help evaluate the similarity between the samples generated by the generator and the real data, as well as the performance of the generator. The distribution comparison score DR is calculated using the following formula: score :
[0072]
[0073] Among them, D KL (P r ||P g ) represents the true prediction sample distribution P r Relative to the generated sample distribution P g KL divergence, D KL represents the distance metric, P r (y) represents the distribution of real data, P g (G(z)) represents the distribution of data generated by the generator.
[0074] The present invention proposes: with the help of the peripheral operation and maintenance system, real-time dynamic ring data in the data center operation and maintenance system is collected. The real-time dynamic ring data is packaged into a tensor x, and with the help of the characteristics of GPU parallel computing, the real-time prediction of large amounts of data is ensured; the real-time dynamic ring data packaged into tensor x is input into the gated recurrent unit (GRU) for time series analysis to predict the predicted sequence data y for a period of time in the future; the real-time dynamic ring data packaged into tensor x is input into the variational autoencoder recurrent network VRNN to generate latent variables z and form random latent spaces. These random spaces store the characteristics of normal signals. The latent variable z is input into the generator G of the generative adversarial network GAN (Generative Adversarial Nets, GAN), and the generated sample G(z) is output; the generated sample G(z) and the predicted sequence data y are input into the discriminator D of the generative adversarial network GAN, through DR score Measures the distance between the predicted sequence data y and the generated sample G(z). When DR score When the set threshold is exceeded, an abnormal hidden danger warning is generated.
[0075] Affected by factors such as time and environment, the operating status of specific equipment has a certain intrinsic connection with it, which provides the possibility of prediction. In order to provide early warning for intelligent monitoring of key equipment (such as power supplies, switches, routers, servers, etc.), we can start from revealing the development trend and characteristics of the equipment operating status degradation, predict the equipment operating status, and predict how long the equipment operating status will reach an unacceptable level in the future. According to the degree of deterioration, early fault warning is carried out, and feasible safety measures and equipment maintenance plans are formulated to achieve key equipment monitoring, deployment, early warning and self-healing.
[0076] The present invention has the following beneficial effects:
[0077] 1. Early warning of hidden dangers: By analyzing historical data through the gated loop unit, the system can more accurately predict data trends over a period of time in the future, thereby providing early warning of potential hidden dangers. This helps avoid sudden failures and improve overall system stability.
[0078] 2. Efficient monitoring of large-scale equipment: GPU parallel computing is used to efficiently process the real-time monitoring signals of large-scale equipment. This helps prevent monitoring signal blockage and reduce the workload of operation and maintenance personnel when facing large amounts of data, improving the real-time performance and efficiency of the monitoring system.
[0079] 3. Unsupervised detection method: A combination of gated recurrent unit (GRU) and generative adversarial network (GAN) is used to deeply mine the underlying characteristics and rules of the equipment operation status in historical big data. Unsupervised detection predicts signals and identifies abnormal signals. This method can fully understand the evolution trend of equipment status without human intervention, providing stronger support for operation and maintenance decisions.
[0080] 4. Intelligent decision support: By comparing historical abnormal features with similarity, the system can generate intelligent hidden danger warnings. This helps operation and maintenance personnel make decisions more timely, reduce the probability of accidents, and improve the overall operation and maintenance effect.
[0081] Overall, the implementation of the above solutions is expected to bring more intelligent, efficient and reliable monitoring and early warning systems to data center operations and maintenance, and improve the overall operation and maintenance management level. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.
[0083] Figure 1 It is the technical solution roadmap of the present invention.
[0084] Figure 2 It is a diagram of the scheme architecture of the present invention.
[0085] Figure 3 It is a diagram of the gated recurrent unit GRU structure.
[0086] Figure 4 It is the GRU abnormal signal prediction graph.
[0087] Figure 5 is the DR of the prediction signal score Schematic diagram of the curve. DETAILED DESCRIPTION
[0088] The present invention specifically proposes an intelligent early warning operation and maintenance method for hidden dangers in an Internet data center, such as Figure 1 , Figure 2 As shown, the following steps are included:
[0089] Step 1: Collect real-time dynamic data from the data center operation and maintenance system, package the real-time dynamic data into tensor x, and use the characteristics of GPU parallel computing to ensure the real-time prediction of large data volumes;
[0090] Step 2: Input the real-time dynamic loop data packaged into tensor x into the gated recurrent unit GRU (GRU) for time series analysis, and predict the predicted sequence data y; Figure 3As shown in Figure 2, this step involves the calculation of the update gate, reset gate, and hidden state. The update gate is used to control the extent to which the state information of the previous moment is brought into the current state. The larger the value of the update gate, the more state information of the previous moment is brought in. The reset gate controls how much information of the previous moment state is written into the current candidate set h. t The smaller the reset gate is, the less information of the previous state is written.
[0091] Step 3: Input the real-time dynamic loop data packaged into tensor x into the variational autoencoder recurrent network VRNN to generate latent variables z and form a random latent space; VRNN is a model that combines variational autoencoder (VAE) and recurrent neural network (RNN) for time series generation. The model captures the potential structure of the data by introducing random latent variables and can effectively generate time series data with a certain degree of randomness.
[0092] Step 4: Input the latent variable z into the generator G of the Generative Adversarial Nets (GAN) and output the generated sample G(z);
[0093] Step 5: Abnormal hidden danger warning: Input the generated sample G(z) and the predicted sequence data y into the discriminator D of the generative adversarial network GAN, and use the distribution comparison score DR score Measuring the distance between the predicted sequence data y and the generated sample G(z), when the distribution contrast score DR score When the set threshold is exceeded, an abnormal hidden danger warning is generated.
[0094] Step 1 includes: the real-time dynamic ring data is a multivariate signal time series, and the multivariate signal time series [x 11 , x 12 , x 13 , ..., x 1n ],[x 21 , x 22 , x 23 , ..., x 2n ],[x 31 , x 32 , x 33 , ..., x 3n ] are aligned by time and then packed into a tensor with a shape of (B, S), where B represents the batch size of the packed tensor and S represents the length of the sequence. The packed tensor x is as follows:
[0095] [[x 11 , x 12 , x 13 , ..., x 1n ],
[0096] [x 21 , x 22 , x 23 , ..., x 2n ],
[0097] …
[0098] [x 31 , x 32 , x 33 , ..., x 3n ]],
[0099] Among them, x 1n represents the nth signal, the signal value at the first moment; x 2n represents the nth signal, the signal value at the second moment; x 3n Represents the nth signal, the signal value at the third moment.
[0100] Step 2 includes:
[0101] Step 2-1, initialize the hidden state: The gated recurrent unit GRU first obtains an initialized hidden state;
[0102] Step 2-2, process the sequence step by step;
[0103] Step 2-3, output layer calculation.
[0104] Step 2-2 includes: For each time step, GRU performs the following calculations:
[0105] Step 2-2-1, calculate the reset gate r t :
[0106] r t =σ(W r ·[h t-1 , x t ]+b r ) (1)
[0107] Among them, σ represents the sigmoid activation function, W r represents the weight matrix of the reset gate, b r represents the bias vector, h t-1 represents the hidden state of the previous time step, x t is the input of the current time step t;
[0108] Step 2-2-2, calculate the update gate u t :
[0109] u t =σ(W u ·[h t-1 , x t ]+b u (2)
[0110] Among them, W u represents the weight matrix of the update gate, b u represents the bias vector;
[0111] Step 2-2-3, calculate candidate hidden states
[0112]
[0113] Among them, tanh represents the hyperbolic tangent activation function, W h represents the weight matrix used to calculate the candidate hidden state, b h represents the bias vector, ⊙ represents element-by-element multiplication;
[0114] Step 2-2-4, update the hidden status:
[0115]
[0116] Among them, h t Indicates the hidden state.
[0117] The final hidden state is obtained by controlling whether the hidden state of the previous time step is retained and whether the information of the candidate hidden state is fused through the update gate.
[0118] Step 2-3 includes: calculating the signal prediction value y t :
[0119] y t =W yh h t +b y (5)
[0120] Among them, W yh represents the weight matrix used to calculate the signal prediction value, b y Represents the bias vector. Through the hidden state h t The output layer is calculated and passed to the fully connected layer for prediction. Finally, the hidden state of each sequence at each time step and the possible output results are obtained.
[0121] Step 3 includes:
[0122] Step 3-1, generate observation data x at time step t t ;
[0123] Step 3-2, variational lower bound;
[0124] Step 3-3, conduct training process.
[0125] Step 3-1 includes: In VRNN, the generation process involves the generation of random latent variables and observation data. For time step t, the observation data x t Generated by a conditional Gaussian distribution, the input x at the current time step t t The generation process of is expressed by the following formula:
[0126]
[0127] Among them, p(x t |z t , x <t ) means that given the latent variable z t and the observation data x at the previous time step <t In the case of , generate the input x of the current time step t t The conditional probability distribution of is Gaussian distribution, represents Gaussian distribution, μ t and are the mean and variance of the output of the recurrent neural network RNN. By introducing random latent variables, VRNN injects a certain amount of randomness into the generation process.
[0128] Step 3-2 includes: When training the VRNN model, we hope to maximize the log-likelihood function, but due to the existence of latent variables, variational inference is used to approximate the posterior distribution. When training the variational autoencoder recurrent network VRNN model, the variational lower bound is an objective function used in variational inference. It is expressed as:
[0129]
[0130] Among them, θ and φ are the parameters of the variational autoencoder recurrent network VRNN model and the parameters of the variational distribution, respectively, which fit the observed data and approximate the posterior distribution to the greatest extent; 1:t represents from time step 1 to time step t;
[0131] p θ (x 1:t , z 1:t ) represents the observed data x 1:t and the latent variable z 1:t The joint distribution of is parameterized by the parameter θ;
[0132] q φ (z 1:t |x 1:t) represents the variational distribution, parameterized by the parameter φ, which approximates the true posterior distribution p(z 1:t |x 1:t );
[0133] Represents the variational distribution q φ (z 1:t |x 1:t ) to expect;
[0134] log p θ (x 1:t , z 1:t ) represents the model p θ The observed data x 1:t and the latent variable z 1:t The log-likelihood of ;
[0135] log q φ (z 1:t |x 1:t ) represents the variational distribution q φ (z 1:t |x 1:t )’s logarithmic probability density;
[0136] The goal of variational inference is to maximize this lower bound on parameters θ and φ and minimize the KL (Kullback-Leibler, KL) divergence between the variational distribution and the true posterior distribution.
[0137] Step 3-3 includes: during the training process, using the stochastic gradient descent optimization method to update the model parameters θ and the variational distribution parameters φ to maximize the variational lower bound: first, extract samples from the multivariate signal time series training data from the dynamic ring equipment (i.e., the multivariate signal time series in step 1), and then calculate the variational lower bound through forward propagation, and calculate the gradient through back propagation, and use the gradient to update the model parameters and the parameters of the variational distribution to increase the variational lower bound, thereby improving the generation effect of the generative adversarial network GAN model.
[0138] Step 5 includes: in the generative adversarial network GAN, calculating the generator loss G (Generator Loss, G):
[0139] G=-log(D(G(z)) (8)
[0140] Where z represents random noise, D(G(z)) represents the output of the data generated by the generator G in the discriminator D, and log represents the natural logarithm. The purpose of the generator loss is to make the data generated by the generator G closer to the real data, making it difficult for the discriminator D to identify.
[0141] Calculate the discriminator loss DL (Discriminator Loss). The goal of the discriminator loss is to enable the discriminator D to correctly identify the data generated by the generator G and the real data:
[0142] DL real = -log(1-D(y)) (9)
[0143] DL fake = -log(1-D(G(z))) (10)
[0144] DL=DL real +DL fake (11)
[0145] Among them, DL real represents the loss of the true prediction sample; y represents the true prediction data; D(y) represents the output of the discriminator for the true prediction sample, which is used to measure the probability that the true prediction sample is correctly classified; DL fake represents the loss of generated samples, where G(z) represents the samples generated by the generator, D(G(z)) is the output of the discriminator for the generated samples, which is used to measure the probability that the generated samples are misclassified as true prediction samples; DL represents the total loss of the discriminator, that is, the sum of the losses of the true prediction samples and the generated samples, which is used to optimize the parameters of the discriminator;
[0146] In order to improve the accuracy of detection, the discriminator loss is minimized through the stochastic gradient descent optimization method so that the discriminator D can correctly identify the data generated by the generator G and the real data. It should be noted that the loss function of GAN is the minimization loss function between the generator and the discriminator. By training the generator and the discriminator, the goal of making the data generated by the generator G difficult to identify can be achieved, thereby realizing the function of time series anomaly detection.
[0147] Calculate the distribution contrast score DR score (Distributional Robustness Score), DR score It is an indicator used to evaluate the difference between the samples generated by GAN and the real data distribution. Its principle is to measure the performance of the generator by comparing the distance between the real data distribution and the generated data distribution. Specifically include:
[0148] Calculate the distance metric KL divergence:
[0149]
[0150] DR scoreIt provides a comprehensive evaluation index that can help evaluate the similarity between the samples generated by the generator and the real data, as well as the performance of the generator. The distribution comparison score DR is calculated using the following formula: score :
[0151]
[0152] Among them, D KL (P r ||P g ) represents the true prediction sample distribution P r Relative to the generated sample distribution P g KL divergence, D KL represents the distance metric, P r (y) represents the distribution of real data, P g (G(z)) represents the distribution of data generated by the generator.
[0153] In a specific embodiment of the present invention, the software part adopts the Pytorch deep learning framework, and the hardware device part adopts NVIDIA's GeForce RTX 3090 graphics card. The above-mentioned data center operation and maintenance intelligent hidden danger warning method is used to solve the problem of using empirical threshold real-time monitoring and unable to issue early warning; the number of devices usually connected to IDC is huge, resulting in hidden danger warning blockage; the problem of being unable to effectively use historical big data to reveal the underlying characteristics and laws of the development trend of equipment operation status degradation, and realize key equipment monitoring, deployment, early warning and self-healing.
[0154] like Figure 1 As shown in the figure, according to the technical solution roadmap, data preprocessing, signal prediction, random latent space generation, GAN sample generation, and finally abnormal hidden danger prediction are performed.
[0155] like Figure 2 As shown, the scheme architecture diagram shows the architecture adopted by this implementation. With the help of the surrounding operation and maintenance and alarm systems, collect real-time dynamic ring data in the data center operation and maintenance system; package the real-time dynamic ring data into tensor x, and use the characteristics of GPU parallel computing to ensure the real-time prediction of large amounts of data; input the real-time dynamic ring data packaged into tensor x into GRU for time series analysis, and predict the predicted sequence data y for a period of time in the future; input the real-time dynamic ring data packaged into tensor x into the variational autoencoder recurrent network VRNN to generate latent variables z and form a random latent space; input the latent variable z into the generator G of the generative adversarial network GAN, and output the generated sample G(z); input the generated sample G(z) and the predicted sequence data y into the discriminator D of the generative adversarial network GAN, through DR score Measures the distance between the predicted sequence data y and the generated sample G(z). When DR scoreWhen the set threshold is exceeded, an abnormal hidden danger warning is generated.
[0156] like Figure 3 As shown, the GRU structure diagram shows the signal prediction scheme, h t-1 represents the hidden state of the previous time step, and t is the input of the current time step t. σ represents the sigmoid activation function, W r Represents the weight matrix of the reset gate, W u represents the weight matrix of the update gate, W h represents the weight matrix used to calculate the candidate hidden state. t represents the update gate, r t Represents the reset gate, represents the candidate hidden state, h t Indicates hidden state.
[0157] like Figure 4 As shown, the red signal represents the actual abnormal data, the blue signal represents the actual normal data, and the green signal represents the data predicted by GRU, which contains normal data and abnormal data.
[0158] like Figure 5 As shown, the blue curve represents the DR of the green signal part score Fluctuations, the red straight line indicates the set threshold.
[0159] Table 1 is the correlation analysis between tensor scale and prediction speed:
[0160] Table 1
[0161]
[0162] Table 2 is the analysis of precision and recall:
[0163] Table 2
[0164]
[0165] Table 2 uses precision and recall to measure the performance of this method.
[0166] Precision and recall are two important indicators for evaluating the performance of classification models:
[0167] 1. Precision:
[0168] Precision measures how many of the samples predicted by the classifier as positive are actually positive samples. Precision can be expressed as follows:
[0169]
[0170] Among them, TP (True Positive) is the number of samples in the true category that are correctly predicted as positive categories, and FP (False Positive) is the number of samples in the negative category that are incorrectly predicted as positive categories. The value range of precision is between 0 and 1. The higher the value, the more accurate the positive category predicted by the classifier.
[0171] 2. Recall:
[0172] The recall rate measures how many of the true positive class samples are correctly predicted as positive by the classifier. The recall rate can be expressed by the following formula:
[0173]
[0174] Among them, TP (True Positive) is the number of samples in the true category that are correctly predicted as positive categories, and FN (False Negative) is the number of samples in the true category that are incorrectly predicted as negative categories. The recall rate is also between 0 and 1. The higher the value, the stronger the classifier's ability to identify the positive category.
[0175] Table 2 shows that the larger the DR-Score threshold is set, the higher the accuracy is and the lower the false alarm rate of abnormal signals is. The smaller the DR-Score threshold is set, the higher the recall rate is and the more sensitive the detection of abnormal signals is.
[0176] The present invention provides an intelligent early warning operation and maintenance method for hidden dangers in an Internet data center. There are many methods and ways to implement the technical solution. The above is only a preferred implementation 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 principles of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention. All components not specified in this embodiment can be implemented using existing technologies.
Claims
1. An intelligent early warning operation and maintenance method for hidden dangers in an Internet data center, characterized in that: The following steps are involved: Step 1: Collect real-time dynamic ring data in the data center operation and maintenance system, and package the real-time dynamic ring data into a tensor x; Step 2: Input the real-time dynamic loop data packaged into tensor x into the gated recurrent unit GRU for time series analysis, and predict the predicted sequence data y; Step 3: Input the real-time dynamic loop data packaged into tensor x into the variational autoencoder recurrent network VRNN to generate latent variables z to form a random latent space; Step 4: Input the latent variable z into the generator G of the generative adversarial network GAN, and output the generated sample G(z); Step 5: Abnormal hidden danger warning: Input the generated sample G(z) and the predicted sequence data y into the discriminator D of the generative adversarial network GAN, and use the distribution comparison score DR score Measuring the distance between the predicted sequence data y and the generated sample G(z), when the distribution contrast score DR score When the set threshold is exceeded, an abnormal hidden danger warning is generated.
2. The method according to claim 1, characterized in that Step 1 includes: the real-time dynamic ring data is a multivariate signal time series, and the multivariate signal time series [x 11 ,x 12 ,x 13 ,...,x 1n ],[x 21 ,x 22 ,x 23 ,...,x 2n ],[x 31 ,x 32 , x 33 ,...,x 3n ] are aligned in time and then packed into a tensor with a shape of (B, S), where B represents the batch size of the packed tensor and S represents the length of the sequence. The packed tensor x is as follows: [[x 11 ,x 12 ,x 13 ,...,x 1n ], [x 21 ,x 22 ,x 23 ,...,x 2n ], ... [x 31 ,x 32 ,x 33 ,...,x 3n ]], Among them, x 1n represents the nth signal, the signal value at the first moment; x 2n represents the nth signal, the signal value at the second moment; x 3n Represents the nth signal, the signal value at the third moment.
3. The method according to claim 2, characterized in that Step 2 includes: Step 2-1, initialize the hidden state: The gated recurrent unit GRU first obtains an initialized hidden state; Step 2-2, process the sequence step by step; Step 2-3, output layer calculation.
4. The method according to claim 3, characterized in that Step 2-2 includes: For each time step, GRU performs the following calculations: Step 2-2-1, calculate the reset gate r t : r t =σ(W r ·[h t-1 ,x t ]+b r ) (1) Among them, σ represents the sigmoid activation function, W r represents the weight matrix of the reset gate, b r represents the bias vector, h t-1 represents the hidden state of the previous time step, x t is the input of the current time step t; Step 2-2-2, calculate the update gate u t : you t =σ(W u ·[h t-1 ,x t ]+b u (2) Among them, W u represents the weight matrix of the update gate, b u represents the bias vector; Step 2-2-3, calculate candidate hidden states Among them, tanh represents the hyperbolic tangent activation function, W h represents the weight matrix used to calculate the candidate hidden state, b h represents the bias vector, ⊙ represents element-by-element multiplication; Step 2-2-4, update the hidden status: Among them, h t Indicates the hidden state.
5. The method according to claim 4, characterized in that Step 2-3 includes: calculating the signal prediction value y t : y t =W yh h t +b y (5) Among them, W yh represents the weight matrix used to calculate the signal prediction value, b y Represents the bias vector.
6. The method according to claim 5, characterized in that Step 3 includes: Step 3-1, generate observation data x at time step t t ; Step 3-2, variational lower bound; Step 3-3, perform training process.
7. The method according to claim 6, characterized in that Step 3-1 includes: the input x at the current time step t t The generation process of is expressed by the following formula: Among them, p(x t |z t ,x <t ) means that given the latent variable z t and the observation data x at the previous time step <t In the case of , generate the input x of the current time step t t The conditional probability distribution of is Gaussian distribution, represents Gaussian distribution, μ t and are the mean and variance output by the recurrent neural network RNN.
8. The method according to claim 7, characterized in that Step 3-2 includes: When training the variational autoencoder recurrent network VRNN model, the variational lower bound is an objective function used in variational inference It is expressed as: Among them, θ and φ are the parameters of the variational autoencoder recurrent network VRNN model and the parameters of the variational distribution, respectively, which fit the observed data and approximate the posterior distribution to the greatest extent; 1:t means from time step 1 to time step t; p θ (x 1:t ,z 1:t ) represents the observed data x 1:t and the latent variable z 1:t The joint distribution of is parameterized by the parameter θ; q φ (z 1:t |x 1:t ) represents the variational distribution, parameterized by the parameter φ, which approximates the true posterior distribution p(z 1:t |x 1:t ); Represents the variational distribution q φ (z 1:t |x 1:t ) to expect; logp θ (x 1:t ,z 1:t ) represents the model p θ The observed data x 1:t and the latent variable z 1:t The log-likelihood of ; logq φ (z 1:t |x 1:t ) represents the variational distribution q φ (z 1: |x 1:t ) is the logarithmic probability density of .
9. The method according to claim 8, characterized in that Step 3-3 includes: during the training process, using the stochastic gradient descent optimization method to update the model parameters θ and the variational distribution parameters φ to maximize the variational lower bound: first, extracting samples from the multivariate signal time series training data from the dynamic environment equipment, and then calculating the variational lower bound through forward propagation, and calculating the gradient through back propagation, and using the gradient to update the model parameters and the parameters of the variational distribution to increase the variational lower bound, thereby improving the generation effect of the generative adversarial network GAN model.
10. The method according to claim 9, characterized in that Step 5 includes: In the generative adversarial network GAN, calculating the generator loss G: G = -log(D(G(z)) (8) Where z represents random noise, D(G(z)) represents the output of the data generated by the generator G in the discriminator D, and log represents the natural logarithm; Calculate the discriminator loss DL: DL real =-log(1-D(y)) (9) DL fake =-log(1-D(G(z))) (10) DL=DL real +DL fake (11) Among them, DL real represents the loss of the true prediction sample; y represents the true prediction data; D(y) represents the output of the discriminator for the true prediction sample, which is used to measure the probability that the true prediction sample is correctly classified; DL fake represents the loss of generated samples, where G(z) represents the samples generated by the generator, D(G(z)) is the output of the discriminator for the generated samples, which is used to measure the probability that the generated samples are misclassified as true predicted samples; DL represents the total loss of the discriminator, which is used to optimize the parameters of the discriminator; Minimize the discriminator loss through stochastic gradient descent optimization method; Calculate the distribution contrast score DR score , specifically including: Calculate the distance metric KL divergence: The distribution contrast score DR is calculated using the following formula: score : Among them, D KL (P r ||P g ) represents the true prediction sample distribution P r Relative to the generated sample distribution P g The KL divergence, D KL represents the distance metric, P r (y) represents the distribution of real data, P g (G(z)) represents the distribution of data generated by the generator.
