Anomaly detection device and anomaly detection method
The abnormality management device uses a probability model and adversarial learning to generate pseudo-abnormal data for easy detection and resolution of program operation abnormalities, addressing the complexity of conventional diagnosis methods.
Patent Information
- Application Number
- JP2025081000
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-05-14
AI Technical Summary
Conventional methods struggle to easily manage program operation abnormalities, as they require complex analysis of source code to identify error causes, making it time-consuming and difficult to diagnose issues.
An abnormality management device and method that utilizes a probability model to learn normal processing resource usage, derive abnormal data distributions, generate pseudo-abnormal data through adversarial learning, and store these for comparison with actual data to detect and manage anomalies.
Facilitates easy management of abnormal program operations by accurately identifying and resolving issues through statistical analysis of processing resource usage, reducing the complexity of diagnosing and correcting errors.
Smart Images

Figure 2026184611000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an abnormality management device and an abnormality management method.
Background Art
[0002] In recent years, in order to provide highly functional systems and services, requirements for software have become more advanced and complex. Software implemented in highly functional systems is composed of programs having enormous source code, and the execution of programs has become more complex.
[0003] When a process failure, an operation abnormality, or the like occurs in a system in operation, identifying the cause of the program failure or operation abnormality is complicated, time-consuming, and not easy. For example, Patent Document 1 discloses a method of using a core file to identify an error occurrence location and a variable value at that time after the fact.
[0004] However, with the technology disclosed in Patent Document 1, since the cause of an error or the occurrence location cannot be identified from log information, analysis of source code is required.
Prior Art Documents
Patent Documents
[0005]
Patent Document 1
Summary of the Invention
Problem to be Solved by the Invention
[0006] As described above, with conventional technology, it has not been possible to easily manage program operation abnormalities.
[0007] The present invention has been made to solve the above-described problems, and an object thereof is to easily manage program operation abnormalities.
Means for Solving the Problems
[0008] To solve the above-mentioned problems, the abnormality management device according to the present invention comprises: a first learning unit configured to learn the parameters of a probability model that outputs the posterior probability that the processing resource usage corresponding to each process ID is normal, using normal data, which is a plurality of processing resource usage data, each containing the amount of processing resources used in the execution of a process corresponding to each process ID, as training data; a derivation unit configured to derive a probability distribution of abnormal data that includes abnormal processing resource usage, based on the posterior probability estimated by the learned probability model, the probability distribution of the normal data, and the prior probability of being normal; a data processing unit configured to obtain the processing resource usage data of the abnormal data based on the derived probability distribution of the abnormal data; a second learning unit configured to learn a generator that generates pseudo-abnormal data statistically similar to the true abnormal data, using the processing resource usage data of the abnormal data obtained by the data processing unit as true abnormal data; and a storage unit configured to store the pseudo-abnormal data generated using the trained generator constructed by the second learning unit.
[0009] Furthermore, the abnormality management device according to the present invention may further include a collection unit configured to collect processing resource usage data of a managed object, and a determination unit configured to determine that an abnormality in the operation of a process in the processing resource usage data of the managed object has occurred when the collected processing resource usage data of the managed object matches the pseudo-abnormal data stored in the storage unit.
[0010] Furthermore, the abnormality management device according to the present invention may also include an instruction unit configured to send an instruction to perform a predetermined action to resolve the abnormality in the process when the determination unit determines that an abnormality in the process has occurred.
[0011] Furthermore, in the anomaly management device according to the present invention, the second learning unit may perform adversarial learning of a generative model having a generator and a discriminator that distinguishes between the pseudo-anomaly data generated by the generator and the true anomaly data.
[0012] To solve the above-mentioned problems, the abnormality management method according to the present invention comprises: a first learning step of learning the parameters of a probability model that outputs the posterior probability that the usage of the processing resources corresponding to each process ID is normal, using normal data, which is training data, as training data, from among a plurality of processing resource usage data, each containing the amount of processing resources used in the execution of a process corresponding to each process ID, where the usage of the processing resources corresponding to each process ID is normal; a derivation step of deriving a probability distribution of abnormal data that includes abnormal processing resource usage, based on the posterior probability estimated by the learned probability model, the probability distribution of the normal data, and the prior probability of being normal; a data processing step of obtaining the processing resource usage data of the abnormal data based on the derived probability distribution of the abnormal data; a second learning step of learning a generator that generates pseudo-abnormal data statistically similar to the true abnormal data, using the processing resource usage data of the abnormal data obtained in the data processing step as true abnormal data; and a storage step of storing the pseudo-abnormal data generated using the learned generator constructed in the second learning step in a storage unit.
[0013] Furthermore, the abnormality management method according to the present invention may further include a collection step of collecting data on the processing resource usage of a managed object, and a determination step of determining that an abnormality in the operation of a process in the processing resource usage data of the managed object has occurred when the collected processing resource usage data of the managed object matches the pseudo-abnormal data stored in the storage unit.
[0014] Furthermore, the abnormality management method according to the present invention may also include an instruction step that, if it is determined in the determination step that an abnormality in the operation of the process has occurred, sends an instruction to perform a predetermined action to resolve the abnormality in the operation of the process.
[0015] Furthermore, in the anomaly management method according to the present invention, the second learning step may involve adversarial learning of a generative model having a generator and a discriminator that distinguishes between the pseudo-anomaly data generated by the generator and the true anomaly data. [Effects of the Invention]
[0016] According to the present invention, among multiple processing resource usage data, each containing the amount of processing resources used in the execution of the process corresponding to each process ID, normal data representing processing resource usage where the processing resource usage corresponding to each process ID is normal is used as training data, and the parameters of a probability model that outputs the posterior probability that the processing resource usage corresponding to each process ID is normal are learned by maximum likelihood estimation. Therefore, abnormal program operation can be easily managed. [Brief explanation of the drawing]
[0017] [Figure 1] Figure 1 is a block diagram showing the configuration of an abnormality management system equipped with an abnormality management device according to an embodiment of the present invention. [Figure 2] Figure 2 is a diagram illustrating abnormal signal data managed by the abnormality management device according to this embodiment. [Figure 3] Figure 3 is a diagram illustrating the second learning unit included in the abnormality management device according to this embodiment. [Figure 4] Figure 4 is a diagram illustrating the second learning unit included in the abnormality management device according to this embodiment. [Figure 5] Figure 5 is a diagram illustrating the second learning unit included in the abnormality management device according to this embodiment. [Figure 6]Figure 6 is a block diagram showing the hardware configuration of the abnormality management device according to this embodiment. [Figure 7] Figure 7 is a flowchart showing the operation of the abnormality management device according to this embodiment. [Figure 8] Figure 8 is a flowchart showing the operation of the abnormality management device according to this embodiment. [Figure 9] Figure 9 is a flowchart showing the operation of the abnormality management device according to this embodiment. [Modes for carrying out the invention]
[0018] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to Figures 1 to 9.
[0019] [Configuration of the anomaly management system] First, with reference to Figure 1, an overview of the abnormality management system equipped with an abnormality management device 1 according to an embodiment of the present invention will be described.
[0020] The anomaly management system comprises an anomaly management device 1 and an information processing device 2. The anomaly management device 1 and the information processing device 2 are connected via a network NW. The anomaly management system according to this embodiment constructs a database of anomaly data for detecting abnormalities in process operation based on the CPU usage rate (processing resource usage data) of the process executed by the information processing device 2.
[0021] The term "network" (NW) includes, for example, wired networks such as LANs, WANs, the Internet, and ISDN, as well as wireless networks such as mobile communication networks using wireless LANs, LTE / 4G, 5G, and 6G wireless communication systems, but the scope of the present invention is not limited to these.
[0022] The information processing device 2 can be implemented as a server, gateway, desktop computer, embedded device, mobile communication terminal such as a smartphone, tablet computer, laptop computer, etc. In this embodiment, the information processing device 2 is not limited to one unit, but includes cases where there are multiple units. In the case of multiple units, each information processing device 2 executes the same process generated by the same application or the same executable file.
[0023] Furthermore, the information processing device 2 is uniquely identified by network identification information such as an IP address or MAC address, or by a device ID assigned by the anomaly management system. The information processing device 2 can be realized by a computer equipped with a processor, main memory, communication interface, auxiliary storage, and input / output I / O, and a program that controls these hardware resources.
[0024] The information processing device 2 runs one or more applications (processes) on the OS, and these processes are assigned a unique process ID (PID) by the OS. A process ID is assigned to each execution unit of a process, and even the same application may have different process IDs depending on the execution environment and timing. The information processing device 2 calculates the CPU usage rate for each process ID corresponding to the currently running process and records it in memory. If the configuration of each CPU of multiple information processing devices 2 is not the same, such as the number of CPU cores and clock speed, the CPU usage rate recorded by each information processing device 2 is normalized or corrected using each CPU benchmark or the like. The normalization or correction process may be performed by the anomaly management device 1.
[0025] In this embodiment, the CPU usage rate for each process ID is used as processing resource usage data, but the processing resource usage data may also be memory usage per process ID, I / O waiting time per process ID, etc. Figure 2(a) shows normal data a1, which is normal CPU usage, and abnormal data b1, which includes abnormal CPU usage. The horizontal axis is the process ID, and the processes are arranged in the order they are executed. The vertical axis is the CPU usage rate [%]. In the range of process IDs in area c, the CPU usage rate in abnormal data b1 is an abnormal value. The abnormal value of the CPU usage rate is due to an abnormal operation of the process executed by the information processing device 2.
[0026] An abnormal operation in a process executed by the information processing device 2 refers to a state in which the process deviates from the normal load range, such as excessive consumption of processing resources. For example, this includes cases where the CPU usage rate for each process ID exceeds a pre-set threshold, or where the CPU usage rate falls outside a defined normal CPU usage range based on the attributes of the process. Furthermore, even if the CPU usage rate does not exceed the threshold, a pre-defined pattern of CPU usage rate can be used as a pattern of load state when an abnormal operation occurs in a process.
[0027] Thus, if a process is behaving abnormally, it is assumed that abnormal processing, such as infinite loops or excessive recursive calls, is occurring in the execution of the process associated with that process ID. On the other hand, normal CPU usage refers to the case where no abnormal processing is occurring in the execution of the process associated with each process ID, and the consumption of CPU resources is within a normal range.
[0028] [Functional blocks of the anomaly management device] Next, the functional blocks of the abnormality management device 1 according to this embodiment will be described with reference to the block diagram in Figure 1. As shown in Figure 1, the abnormality management device 1 includes a collection unit 10, a first learning unit 11, an output unit 12, a data processing unit 13, a second learning unit 14, a generation unit 15, a storage unit 16, a determination unit 17, and an instruction unit 18.
[0029] The collection unit 10 collects multiple CPU usage data via the network NW, each containing the CPU usage, which is the processing resource usage of the process corresponding to each process ID recorded by the information processing device 2. The collection unit 10 can collect CPU usage data, which is processing resource usage data, from multiple information processing devices 2. The collection unit 10 collects normal data, which indicates normal CPU usage data for each process ID used for learning by the first learning unit 11. The collection unit 10 also collects CPU usage data of the managed entities that the determination unit 17 will use for abnormal determination.
[0030] The first learning unit 11 learns the parameters of a probability model that outputs the posterior probability of a normal CPU usage rate for each process ID, using normal data representing normal CPU usage data for each process ID as training data, from among multiple CPU usage data sets, each containing CPU usage, which is the amount of processing resources used in the execution of the process corresponding to each process ID. The first learning unit 11 can use multiple CPU usage data sets that contain a certain amount or more of normal data as training data.
[0031] Here, let x be the CPU usage x in the process execution corresponding to a certain observation point, which is a process ID. Also, as shown in equation (1) below, the density function of normal data is ρ d (x), the density function of the abnormal data is ρ g (x) is defined as follows:
number
[0032] In equation (1) above, y=1 represents the normal class, and y=0 represents the abnormal class. Therefore, ρ d (x) shows the tendency of CPU usage x to appear when belonging to the normal class y=1, and ρ g(x) shows the tendency of CPU usage x to appear when belonging to the abnormal class y=0. Here, in Figure 2(b), the horizontal axis is CPU usage and the vertical axis is the probability distribution, and it shows the density function (probability distribution) a2 for normal data a1 and the density function (probability distribution) b2 for abnormal data at the black circle data points of normal data a1 and abnormal data b1 in Figure 2(a). In the example in Figure 2(b), both the probability distributions of normal and abnormal data follow a normal distribution.
[0033] The density ratio γ(x) of the density function in equation (1) above is expressed by the following equation (2).
number
[0034]
number
[0035] Here, if we set π=ρ(y=1), then equation (3) above can be further expressed as equation (4).
number
[0036] Therefore, first, the posterior probability ρ(y=1|x) of a normal state (y=1), for which there are a large number of observed values x, is calculated. Assuming that the posterior probability ρ(y=1|x) of normal data follows a normal distribution, it is defined as shown in the following equation (5). [Equation] In the above equation (5), f(x n ) is an estimated value output by the probability model, σ 2 is the variance of the error, and t is the observed true signal, i.e., normal data.
[0037] Furthermore, when the output f(x n ) of the probability model is represented as a linear combination, it can be expressed as shown in the following equation (6). [Equation] In the above equation (6), w j j is a model parameter, and x j is each observed value, i.e., each explanatory variable. The maximum likelihood estimation solution of the above equation (6) is expressed by the following equation (7).
[0038] [Equation] In the above equation (7), Φ is a matrix of the feature vectors x of all observed data. t n is a vector t of the CPU usage rate of the true value (normal data) at each observation point x n =(t1,···,t N ) T . Furthermore, in the above equation (7), Φ is expressed by the following equation (8).
[0039]
number
[0040] Furthermore, the CPU usage f(x) is estimated based on the learned parameter w. n ) and the actual normal CPU usage t n The mean of the error with the (teacher signal) is the variance σ of the normal distribution shown in equation (9) below. 2 The value will be [value].
number
[0041] Thus, when a probability model expressed as a linear combination estimates the posterior probability that CPU usage is normal for an input x, each observed value t corresponds to the estimated value f(x) of the probability model. n Assume that the data follows a normal distribution with mean (x). n ,t n By performing maximum likelihood estimation on ), the parameters w of the probability model and the variance σ of the error can be obtained. 2 We estimate the normal distribution ρ from the definition of the normal distribution in equation (5) above. d (x) can be found.
[0042] Here, if we roughly estimate the posterior probability ρ(y=1|x) of normal data, then ρ(y=1|x)≈q w The relationship is (y=1|x). The estimated posterior probability q is that the input CPU usage rate x is normal. w Based on (y=1|x), the cross-entropy is defined as the loss function U in equation (10).
number
[0043] The convergence value (minimum value) of the loss function U in equation (10) above is expressed by the following equation (11).
number
[0044] The derivation section 12 transforms the above equation (11) to obtain the following equation (12), and the density function ρ of abnormal data g Derive (x).
number
[0045] In equation (12) above, the probability distribution of normal data, i.e., the density function ρ of normal data, d (x) is calculated from the normal data collected by the collection unit 10. Furthermore, since the prior probability π of normal data is much larger than the prior probability (1-π) of abnormal data, it can be set to, for example, 0.99. Additionally, for the observed value x, the log-likelihood lnq when y=1 is calculated. w As shown in equations (6) to (9) above, (y=1|x) can be obtained by maximum likelihood estimation based on a large amount of normal data (teacher signal). In this way, even when there is little abnormal data, the probability distribution of abnormal data can be determined from the normal data.
[0046] The derivation unit 12 calculates the estimated posterior probability q, which is estimated by the probability model learned by the first learning unit 11. w (y=1|x) and the density function ρ of normal data d Based on (x) and the prior probability of normality π, the density function ρ of abnormal data indicates abnormal CPU usage. g Derive (x).
[0047] The data processing unit 13 calculates CPU usage data related to the abnormal data based on the derived probability distribution of the abnormal data. The data processing unit 13 calculates the density function ρ of the abnormal data in equation (12) above. gUsing (x), for example, CPU usage values in abnormal states can be generated by random sampling, and by arranging them sequentially for each process ID, CPU usage data related to abnormal data can be obtained. In addition, the data processing unit 13 can determine the CPU usage related to abnormal data corresponding to any multiple data points within the range c of process IDs where the abnormal state in Figure 2(a) is occurring.
[0048] The second learning unit 14 uses the CPU usage data of the abnormal data obtained by the data processing unit 13 as true abnormal data and learns a generator 141 that generates pseudo-abnormal data that is statistically similar to true abnormal data. The second learning unit 14 performs adversarial learning of a generative model having, for example, the generator 141 and a discriminator 142 that distinguishes between the pseudo-abnormal data generated by the generator 141 and true abnormal data.
[0049] As shown in Figure 3, the second learning unit 14 trains a Generative Adversarial Network (GAN) having a generator 141 and a discriminator 142 in an adversarial manner.
[0050] Figures 4 and 5 schematically represent the neural network configuration of the GAN generator 141 and discriminator 142 used by the second learning unit 14. As shown in Figure 4, the generator 141 consists of a neural network having an input layer, a hidden layer, and an output layer. The generator 141 is a model that generates pseudo-anomalous data from random noise. For example, m randomly sampled Gaussian noise vectors are input to the input nodes of the generator 141 (z1~z m ).
[0051] The generator 141 outputs an output G(z) after performing a sum-of-products operation on the input and weight parameters, followed by thresholding using an activation function. The output G(z) from the generator 141 is data that resembles true anomalous data. A CNN or ResNet can be used as the neural network that constitutes the generator 141.
[0052] The classifier 142 shown in Figure 5 is composed of a neural network having an input layer, a hidden layer, and an output layer. In the example in Figure 5, the CPU usage data of abnormal data, which is obtained by the data processing unit 14 as a result of learning by the first learning unit 11, is provided as the input for training data.
[0053] The classifier 142 performs a sum-of-products operation on the input and weight parameters, and then thresholds it uses an activation function to produce a binary output of 1 or 0. When the classifier 142 correctly identifies the training data related to the input true anomaly data as true anomaly data, it outputs y=1. On the other hand, when it correctly identifies the training data related to the input pseudo-anomaly data as pseudo-anomaly data, it outputs y=0. Thus, the classifier 142 is a model that distinguishes the model distribution generated by the generator 141 from the data distribution of the training data, which is the true distribution. A CNN can be used as the neural network that constitutes the classifier 142.
[0054] Figure 3 is a block diagram illustrating the adversarial learning of the GAN by the second learning unit 14. The GAN generator 141 used by the second learning unit 14 is denoted as function G, and the discriminator 142 is denoted as function D. Furthermore, true anomaly data is denoted as x, the predicted value output by the discriminator 142 is denoted as y, and the correct label is denoted as t. The correct label t is set to 1 for true anomaly data and 0 for pseudo-anomaly data generated by the generator 141. In this case, the discriminator 142 performs a binary classification problem with the cross-entropy E given by equation (13) below. CE It can be expressed as follows.
[0055]
number
[0056] The first term inside the brace in equation (13) above represents t n lny n In this case, the predicted value y of the classifier 142 n However, the true correct label for the anomaly data is t n It is desirable to approach the value of =1. On the other hand, the second term inside the brace represents (1-t n)ln(1-y n In this case, the predicted value y of the classifier 142 n However, the value of the correct label (1-t) used to distinguish it from pseudo-anomalous data is... n It is desirable for cross-entropy E to approach 0. CE This value is maximized when the predicted value matches the correct label value.
[0057] Here, the generator 141 that constitutes the GAN has parameter w G ,θ G It has a function G(w G ,θ G ) is expressed as. Also, the classifier 142 has parameter w D ,θ D It has a function D(w D ,θ D This is expressed as ). The cross-entropy E in equation (13) above CE The objective function E of a GAN comprising a generator 141 and a discriminator 142 based on the above can be expressed by the following equation (14).
number
[0058] The first term of equation (14) above represents E D(x)=1 lnD(w D ,θ D ) is the expected value that classifier 142 identifies as true anomalous data. The second term of equation (14) above represents E D(x)=0 ln(1-D(G(w G ,θ G ),w D ,θ D )) is the expected value that the classifier 142 will identify as pseudo-anomalous data generated by the generator 141. In GAN training, the generator 141 and the classifier 142 are trained adversarially by min-max optimization of the objective function E. Therefore, the generator 141 is trained to generate pseudo-anomalous data that deceives the classifier 142, and the classifier 142 is trained to identify the pseudo-anomalous data generated by the generator 141 as pseudo-anomalous data.
[0059] During the training of classifier 142, when true anomalous data is given, classifier 142 is trained to maximize the first term of the objective function E in equation (14) above by producing an output close to y=1. On the other hand, when pseudo-anomalous data is given, classifier 142 is trained to maximize the second term of the objective function E by producing an output close to y=0.
[0060] In learning generator 141, D(G(w) in equation (14) above G ,θ G ),w D ,θ D )(D(G(z)) in Figure 3) is close to 1 G(w G ,θ G The objective function E is minimized by outputting (G(z) in Figure 3). The second learning unit 14 uses a learning procedure that alternately updates the parameters of the generator 141 and the discriminator 142. Details of the learning procedure for the generator 141 and discriminator 142 by the second learning unit 14 will be described later.
[0061] The generation unit 15 generates pseudo-anomalous data using a trained generator 141' whose GAN objective function E has been optimized by the second learning unit 14.
[0062] The memory unit 16 stores the generated pseudo-abnormal data. The memory unit 16 also stores the true abnormal data determined by the data processing unit 13.
[0063] The determination unit 17 determines that a process malfunction has occurred in the CPU usage data of the managed system if the CPU usage data of the managed system collected by the collection unit 10 matches the pseudo-abnormal data stored in the storage unit 16. More specifically, if the CPU usage data matches the pseudo-abnormal data and true abnormal data stored in the storage unit 16, the determination unit 17 identifies the process ID and corresponding process in which the abnormal CPU usage is occurring.
[0064] The instruction unit 18 sends an instruction to perform a predetermined action to resolve a process malfunction when the determination unit 17 determines that a process malfunction has occurred. For example, the instruction unit 18 can send the process ID of the process experiencing abnormal CPU usage and an instruction to terminate and restart the corresponding process to the information processing device 2 via the network NW.
[0065] [Hardware configuration of the anomaly management device] Next, an example of a hardware configuration for realizing the abnormality management device 1 having the functions described above will be explained using Figure 6.
[0066] As shown in Figure 6, the error management device 1 can be implemented, for example, by a computer equipped with a processor 102, main memory 103, communication interface 104, auxiliary storage device 105, and input / output I / O 106 connected via a bus 101, and a program that controls these hardware resources. Furthermore, the error management device 1 includes a display device 107.
[0067] Processor 102 is implemented using CPUs, GPUs, FPGAs, ASICs, etc.
[0068] The main memory 103 contains pre-stored programs for the processor 102 to perform various controls and calculations. The processor 102 and the main memory 103 work together to realize the various functions of the abnormality management device 1, including the data collection unit 10, the first learning unit 11, the derivation unit 12, the data processing unit 13, the second learning unit 14, the generation unit 15, the determination unit 17, and the instruction unit 18 shown in Figure 1.
[0069] The communication interface 104 is an interface circuit for networking the abnormality management device 1 with various external electronic devices.
[0070] The auxiliary storage device 105 consists of a read / write storage medium and a drive device for reading and writing various information such as programs and data to the storage medium. The auxiliary storage device 105 can use semiconductor memory such as a hard disk or flash memory as the storage medium.
[0071] The auxiliary storage device 105 has a program storage area for storing the error management program. The auxiliary storage device 105 also has a program storage area for storing the learning program for performing adversarial learning of the GAN executed by the error management device 1. Furthermore, the auxiliary storage device 105 has a program storage area for storing the first learning program executed by the error management device 1. The storage unit 16 described in Figure 1 is realized by the auxiliary storage device 105. In addition, it may have, for example, a backup area for backing up the aforementioned data and programs.
[0072] The I / O106 is an input / output device that accepts signals from external devices and outputs signals to external devices.
[0073] The display device 107 is composed of an organic EL display or a liquid crystal display, etc. The display device 107 can display CPU usage data collected from the information processing device 2 on its screen.
[0074] [Anomaly detection device operation] Next, the operation of the abnormality management device 1 having the above-described configuration will be explained with reference to the flowcharts in Figures 7 and 8.
[0075] As shown in Figure 7, first, the collection unit 10 collects CPU usage data that contains a certain number or more normal data (step S1). The collection unit 10 collects CPU usage data from among multiple CPU usage data, for example, data where 99% is normal. The collection unit 10 can collect CPU usage data from the information processing device 2 via the network NW.
[0076] Next, the first learning unit 11 performs the first learning process (step S2). After that, the derivation unit 12 derives the density function of abnormal data (step S3). Figure 8 is a flowchart that explains steps S2 and S3 in more detail. As shown in step S30 of Figure 8, the first learning unit 11 uses the normal data as training data to estimate the posterior probability q that the CPU usage rate x is normal, based on the CPU usage rate data collected in step S1, which contains a certain percentage of normal data. w Parameters w, σ of the probability model that outputs (y=1|x) 2 This is learned by maximum likelihood estimation (step S30).
[0077] In step S30, the first learning unit 11 performs learning by maximum likelihood estimation according to equations (6) to (9) above. Also in step S30, the first learning unit 11 processes the parameters w and σ estimated by maximum likelihood estimation. 2 From a probability model having the following characteristics, estimate the posterior probability q that CPU usage x is normal. w Find (y=1|x).
[0078] Furthermore, the first learning unit 11 calculates the density function ρ of normal data based on the normal CPU usage rate x in the process corresponding to each process ID. d (x) Estimate the normal distribution (Step S31).
[0079] Next, the derivation unit 12 adds the log-likelihood lnq of the posterior probability obtained in step S30 to equation (12) above. w (y=1|x), density function ρ of normal data obtained in step S31 d Substitute (x) and the prior probability of normal data π (e.g., 0.99) to get the density function ρ of abnormal data. g Derive (x) (step S33).
[0080] Subsequently, the process moves to step S4 in Figure 7. Next, the data processing unit 13 calculates the density function ρ of the abnormal data derived in step S3. gBased on (x), the CPU usage for each process ID of the abnormal data is sorted in order to obtain the CPU usage data (step S4). For example, in step S4, the density function ρ is a normal distribution for each process ID. g (x) Create 10,000 data points centered around the median. If there are 1,000 process IDs, create (10,000 to the power of 1,000) CPU usage data points.
[0081] Next, the second learning unit 14 learns a generator 141 that generates pseudo-anomalous data statistically similar to the true anomalous data, using the CPU usage data related to the anomalous data obtained in step S4 as the true anomalous data (step S5) (second learning process).
[0082] Specifically, the second learning unit 14 performs adversarial learning of a GAN, which includes a generator 141 that generates pseudo-anomalous data similar to true anomalous data using the CPU usage data related to the anomalous data obtained in step S4 as true anomalous data, and a discriminator 142 that distinguishes between the pseudo-anomalous data generated by the generator 141 and true anomalous data. Details of the learning process in step S5 will be described later.
[0083] Next, the generation unit 15 generates pseudo-anomalous data using the trained generator 141' (step S6). The generated pseudo-anomalous data is stored in the storage unit 16 (step S7). In step S7, the true anomalous data used as training data for the GAN is also stored in the storage unit 16.
[0084] Subsequently, the collection unit 10 collects the CPU usage data of the managed system from the information processing device 2 (step S8). Next, the determination unit 17 determines that a process malfunction has occurred if the CPU usage data collected in step S8 matches the pseudo-abnormal data or true abnormal data stored in the storage unit 16 (step S9).
[0085] In step S9, it can be determined that an operational anomaly has occurred if the managed CPU usage data perfectly matches the pseudo-anomaly data or the true anomaly data, or if it matches within a certain acceptable range. In addition, the CPU usage data is checked sequentially for each process ID, and if it matches, for example, within the range c of process IDs in the anomaly data curve b1 in Figure 2(a) or earlier process IDs, it can be determined that an operational anomaly has occurred. The determination unit 17 identifies the process associated with the process ID in which the operational anomaly occurred.
[0086] Next, if the instruction unit 18 determines that a process malfunction has occurred, it sends an instruction to perform a predetermined action to resolve the malfunction (step S10). The instruction unit 18 can send instructions to the information processing device 2 via the network NW to terminate and restart the process associated with the identified process ID in which the malfunction occurred.
[0087] Next, referring to Figure 9, the second learning process (step S5) of the anomaly management device 1 described in Figure 7 will be explained. First, the second learning unit 14 inputs true anomaly data as training data 144 to the classifier 142, and sets the parameter w of the classifier 142 so that true anomaly data is identified as true anomaly data (y=1). D ,θ D Learn and update (Step S20).
[0088] In step S20, the second learning unit 14 can train the classifier 142 to recognize true anomalous data using, for example, backpropagation. Step S20 pre-constructs a classifier 142 that can distinguish true anomalous data from true anomalous data.
[0089] Next, the second learning unit 14 generates Gaussian noise and provides a random vector of the generated Gaussian noise as input to the generator 141 (step S21). Subsequently, the generator 141 uses the input z and weight parameter w based on the given Gaussian noise. G ,θ Gperforms product-sum operation and threshold processing using an activation function to generate pseudo-anomalous data G(z) (step S22).
[0090] Next, the second learning unit 14 learns the discriminator 142. Learning of the discriminator 142 is performed by fixing parameters w D , θ D of the generator 141. First, the second learning unit 14 inputs true anomalous data as training data 144 to the discriminator 142. Then, the second learning unit 14 updates the parameters w D , θ D using an error back-propagation method or the like so that the objective function E in the above equation (14) is maximized (step S23). The label of the training data 144 is set to 1 (true anomalous data).
[0091] Next, the second learning unit 14 inputs the pseudo-anomalous data generated by the generator 141 in step S22 to the discriminator 142, and updates the parameters w D , θ D using an error back-propagation method or the like so that the objective function E in the above equation (14) is maximized (step S24). That is, in step S23 and step S24, in order to maximize the objective function E in the above equation (14), optimization is performed such that D(w D , θ D )=1 is output for the first term, and D(G(w G , θ G ), w D , θ D )=0 is output for the second term. The label of the training data 144 is set to 0 (pseudo-anomalous data).
[0092] Learning of the discriminator 142 in step S23 and step S24 corresponds to a dashed arrow in the block diagram of the second learning unit 14 shown in FIG. 3, which indicates that a discriminator error is calculated in the block 145 of the objective function E based on the output 143 from the discriminator 142, and then the error is back-propagated to the discriminator 142.
[0093] Next, the second learning unit 14 trains the generator 141. During the training of the generator 141, the parameters of the discriminator 142 are fixed. The second learning unit 14 trains the generator 141 so that when random Gaussian noise is supplied to the generator 141, pseudo-anomalous data is generated. Specifically, the second learning unit 14 uses methods such as backpropagation to minimize the objective function E in equation (14) above, thereby adjusting the parameters w G ,θ G Update (Step S25).
[0094] The learning in step S25 corresponds to the dashed arrow flow in the block diagram of the second learning unit 14 in Figure 3, which indicates that the error is backpropagated to the generator 141. In other words, step S25 corresponds to the dashed arrow flow in which the pseudo-anomalous data generated by the generator 141 in Figure 3 is input to the classifier 142, the generator error is calculated from its output 143 in block 145 of the objective function E, and then the error is backpropagated to the generator 141.
[0095] Subsequently, the learning of the classifier 142 and the generator 141 from steps S22 to S25 is repeated until the value of the objective function E reaches a Nash equilibrium and converges (step S26: NO). On the other hand, if the value of the objective function E converges (step S26: YES), the processing from steps S20 to S26 is repeated using the remaining true anomalous data in order until the learning of the generator 141 and the classifier 142 is completed (step S27: NO).
[0096] Subsequently, if the generator 141 and discriminator 142 have been trained using all the true anomaly data (step S27: YES), the second learning unit 14 stores the trained generator 141' in the storage unit 16 (step S28). The trained generator 141' is constructed through the processes from steps S20 to S28 described above. After that, the process moves to step S6 in Figure 7.
[0097] As described above, according to the abnormality management device 1 of this embodiment, the posterior probability of normal CPU usage is estimated by learning the parameters of a probability model that outputs the posterior probability of normal CPU usage using maximum likelihood estimation, with normal data as training data. Furthermore, the density function of abnormal data is derived based on the estimated posterior probability, the density function of normal data, and the prior probability of normal data. Furthermore, the CPU usage data related to the abnormal data, obtained from the derived density function of abnormal data, is used as the true abnormal data in the generation model, and pseudo-abnormal data similar to the true abnormal data is generated. The generated pseudo-abnormal data is stored in the storage unit 16 as a database along with the true abnormal data. Therefore, abnormal program operation can be easily managed.
[0098] Furthermore, according to the abnormality management device 1 of this embodiment, the CPU usage rate for each process ID shown in the pseudo-abnormality data generated by the learned generator 141' is compared with the CPU usage rate for each process ID in the actually collected CPU usage data. Therefore, if a portion of the data matches, it becomes possible to predict abnormal operation of a process. Thus, when an abnormal operation of a program occurs, the cause of the abnormal operation can be easily identified.
[0099] Furthermore, in the embodiment described, the second learning unit 14 was described in the case where it performs GAN training. However, the generator 141 can be trained using methods other than adversarial learning, such as VAE (Variational Autoencoder), diffusion models, and Energy-Based Models (EBMs).
[0100] Although embodiments of the abnormality management device and abnormality management method of the present invention have been described above, the present invention is not limited to the embodiments described above, and various modifications that a person skilled in the art can envision are possible within the scope of the invention described in the claims. [Explanation of symbols]
[0101] 1...Anomaly management device, 2...Communication terminal, 3...Base station, 4...Core network, 10...Collection unit, 11...First learning unit, 12...Derivation unit, 13...Data processing unit, 14...Second learning unit, 15...Generation unit, 16...Storage unit, 17...Determination unit, 18...Instruction unit, 101...Bus, 102...Processor, 103...Main memory, 104...Communication interface, 105...Auxiliary storage, 106...Input / output I / O, 107...Display device, 141...Generator, 142...Identifier, NW...Network.
Claims
1. A first learning unit is configured to learn the parameters of a probability model that outputs the posterior probability that the processing resource usage corresponding to each process ID is normal, using normal data representing normal processing resource usage data where the processing resource usage corresponding to each process ID is normal as training data, from among multiple processing resource usage data, each containing the amount of processing resources used in the execution of the process corresponding to each process ID. A derivation unit configured to derive a probability distribution of abnormal data, which includes abnormal processing resource usage data, based on the posterior probability estimated by the learned probability model, the probability distribution of the normal data, and the prior probability of being normal, A data processing unit configured to determine the processing resource usage data for the abnormal data based on the derived probability distribution of the abnormal data, A second learning unit is configured to learn a generator that generates pseudo-abnormal data statistically similar to the true abnormal data, using the processing resource usage data of the abnormal data obtained by the data processing unit as true abnormal data. A storage unit configured to store the pseudo-anomalous data generated using the trained generator constructed by the second learning unit, An abnormality management device equipped with the following features.
2. In the abnormality management device described in claim 1, Furthermore, a collection unit configured to collect data on the usage of managed processing resources, A determination unit is configured to determine that an abnormal operation of the process in the managed processing resource usage data has occurred when the collected managed processing resource usage data matches the pseudo-abnormal data stored in the storage unit. An abnormality management device equipped with the following features.
3. In the abnormality management device according to claim 2, Furthermore, the instruction unit is configured to send an instruction to perform a predetermined action to resolve the abnormal operation of the process when the determination unit determines that an abnormal operation of the process has occurred. An abnormality management device equipped with the following features.
4. In the abnormality management device described in claim 1, The second learning unit performs adversarial learning of a generative model having a generator and a discriminator that distinguishes between the pseudo-anomalous data generated by the generator and the true anomalous data. An abnormality management device characterized by the following features.
5. A first learning step involves learning the parameters of a probability model that outputs the posterior probability that the processing resource usage for each process ID is normal, using normal data representing normal processing resource usage data for each process ID as training data, from among multiple processing resource usage data, each containing the amount of processing resources used in the execution of the process corresponding to each process ID. A derivation step of deriving a probability distribution of abnormal data that includes abnormal processing resource usage data, based on the posterior probability estimated by the learned probability model, the probability distribution of the normal data, and the prior probability of being normal; A data processing step to obtain data on the processing resource usage of the abnormal data based on the derived probability distribution of the abnormal data, A second learning step involves learning a generator that generates pseudo-anomalous data statistically similar to the true anomalous data, using the processing resource usage data of the anomalous data obtained in the data processing step as true anomalous data. A storage step in which the pseudo-anomalous data generated using the trained generator constructed in the second learning step is stored in the storage unit. An abnormality management method comprising the following features.
6. In the abnormality management method described in claim 5, Furthermore, there is a collection step to collect data on the usage of managed processing resources, A determination step in which, if the collected processing resource usage data of the managed object matches the pseudo-abnormal data stored in the storage unit, it is determined that an abnormal operation of the process in the processing resource usage data of the managed object has occurred. An abnormality management method comprising the following:
7. In the abnormality management method described in claim 6, Furthermore, if the determination step determines that an abnormal operation of the process has occurred, an instruction step is sent to execute a predetermined action to resolve the abnormal operation of the process. An abnormality management method comprising the following:
8. In the abnormality management method described in claim 5, The second learning step involves adversarial learning of a generative model having a generator and a discriminator that distinguishes between the pseudo-anomalous data generated by the generator and the true anomalous data. An abnormality management method characterized by the following.
Citation Information
Patent Citations
Process dumping method, device and program
JP2005301570A
