Neural network model, computer, computing method, and method of generating program

The neural network model aligns normal and quadratic function axes to accurately estimate probabilities for unexpected classes, addressing misalignment issues in existing models and improving class identification accuracy.

JP2024116007APending Publication Date: 2024-08-27NAT UNIV CORP YOKOHAMA NAT UNIV +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023021972
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing neural network models fail to accurately represent mixed residual event distributions due to misalignment of axes between normal distribution functions and quadratic functions, leading to inadequate estimation of probabilities for unexpected classes.

Method used

A neural network model is designed with specific layers and parameters to align the axes of normal distribution functions and quadratic functions, using a five-layer feedforward network to calculate likelihoods for known and unexpected classes, incorporating Gaussian Mixture Models and Complementary Gaussian Mixture Models to represent class distributions.

Benefits of technology

The model effectively estimates the probability of belonging to an unexpected class based on aligned normal and quadratic functions, improving accuracy in class identification by ensuring the axes of these distributions coincide, thereby enhancing the representation of mixed residual event distributions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024116007000001_ABST
    Figure 2024116007000001_ABST
Patent Text Reader

Abstract

To estimate a probability of belonging to an unexpected class on the basis of a mixture complementary event distribution in which axes of a normal distribution function and a quadratic function are coincident with each other.SOLUTION: A neural network includes an input layer, a first intermediate layer, a second intermediate layer, and an output layer. The input layer receives, as input, a feature vector. The first intermediate layer has a first parameter group representing coefficients of a plurality of quadratic functions related to exponent parts of a plurality of normal distribution functions representing distributions related to a plurality of classes, and calculates a first intermediate vector on the basis of the feature vector and the first parameter group. The second intermediate layer has a second parameter group representing coefficients of a plurality of normal distribution functions, and calculates a second intermediate vector on the basis of the first intermediate vector and the second parameter group. The output layer calculates a complementary event likelihood which is a likelihood of the feature vector not belonging to any of the plurality of classes, on the basis of the first intermediate vector and the second intermediate vector.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a neural network model, a computer, a calculation method, and a program generation method. [Background technology]

[0002] Patent Document 1 discloses a technique for estimating the probability that an input signal belongs to an unexpected class in a classifier that classifies the input signal into one of a number of preset classes. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2021-144659 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the method described in Patent Document 1, a mixed complementary event distribution function expressed as a product of multiple normal distribution functions and multiple quadratic functions is expressed by a neural network model. In the intermediate layer of this neural network model, the normal distribution function and the quadratic function are calculated, and the complementary event likelihood is calculated by finding the product of the calculation results.

[0005] Theoretically, a mixed event distribution is represented by a pair of a normal distribution function and a quadratic function that share the same axis. The axis is a straight line that indicates an explanatory variable that passes through an extreme point. However, in the neural network model described in Patent Document 1, the normal distribution function and the quadratic function are calculated separately, so the axes do not necessarily match. Therefore, the neural network model described in Patent Document 1 may not be able to properly represent a mixed event distribution. An object of the present invention is to provide a neural network model, a calculator, a calculation method, and a program generation method that enable estimation of the probability of belonging to an unexpected class based on a mixed event distribution in which the axes of a normal distribution function and a quadratic function are aligned. [Means for solving the problem]

[0006] According to a first aspect, a neural network model is a trained neural network model including an input layer to which a feature vector is input, a first intermediate layer having a first parameter group representing coefficients of a plurality of quadratic functions related to the exponential parts of a plurality of normal distribution functions representing distributions related to a plurality of classes, and calculating a first intermediate vector based on the feature vector and the first parameter group, a second intermediate layer having a second parameter group representing coefficients of the plurality of normal distribution functions, and calculating a second intermediate vector based on the first intermediate vector and the second parameter group, and an output layer calculating a complementary event likelihood, which is the likelihood that the feature vector does not belong to any of the plurality of classes, based on the first intermediate vector and the second intermediate vector, and the model is caused to execute the steps of inputting the feature vector to the input layer, calculating the first intermediate vector based on the feature vector and the first parameter group, calculating the second intermediate vector based on the first intermediate vector and the second parameter group, and calculating the complementary event likelihood based on the first intermediate vector and the second intermediate vector.

[0007] According to a second aspect, the neural network model according to the first aspect may include a fourth intermediate layer having a fourth parameter group representing coefficients of a mixed normal distribution function representing a distribution for each of the multiple classes, and calculating a fourth intermediate vector based on the first intermediate vector and the fourth parameter group, and the output layer may calculate the complementary event likelihood based on the first intermediate vector and the second intermediate vector, and calculate a class likelihood for each of the multiple classes, which is the likelihood that the feature vector belongs to the class, based on the fourth intermediate vector.

[0008] According to a third aspect, in the neural network model according to the first aspect, the second group of parameters may be represented by a function having a range whose lower limit is 0 and whose upper limit is 1.

[0009] According to a fourth aspect, in the neural network model according to the first aspect, the first group of parameters may be represented by a function having a range whose lower limit is −∞ and whose upper limit is 0.

[0010] According to a fifth aspect, a computer includes a memory unit that stores a neural network model according to any one of the first to fourth aspects, and a learning unit that uses a training dataset consisting of a combination of a feature vector and a class to which the feature vector belongs among a plurality of classes to train the neural network model so that the feature vector is used as an input and the neural network model outputs the complementary event likelihood.

[0011] According to a sixth aspect, a computer includes a memory unit that stores a neural network model according to any one of the first to fourth aspects, a covariance identification unit that extracts parameters related to coefficients of quadratic terms of the multiple quadratic functions from the first parameter group of the neural network model and identifies a variance-covariance matrix of the multiple normal distribution functions, an average identification unit that identifies an average value of the multiple normal distribution functions from the first parameter group, and a function generation unit that generates a complementary event distribution function that represents the probability of belonging to none of the multiple classes, represented by the product of the multiple normal distribution functions and the multiple quadratic functions, based on the variance-covariance matrix and the average value.

[0012] According to a seventh aspect, a calculation method is a calculation method using a neural network model according to any one of the first to fourth aspects, in which a computer executes the steps of inputting the feature vector to the input layer of the neural network model, calculating the first intermediate vector based on the feature vector and the first group of parameters of the neural network model, calculating the second intermediate vector based on the first intermediate vector and the second group of parameters of the neural network model, and calculating the residual event likelihood based on the first intermediate vector and the second intermediate vector of the neural network model.

[0013] According to an eighth aspect, a method for generating a program includes the steps of: extracting parameters related to coefficients of quadratic terms of the multiple quadratic functions from the first parameter group of the neural network model related to any one of the first to fourth aspects using a learning dataset consisting of a combination of a feature vector and a class to which the feature vector belongs among a plurality of classes, and specifying a variance-covariance matrix of the multiple normal distribution functions; specifying an average value of the multiple normal distribution functions from the first parameter group; and generating a program that causes a computer to calculate a complementary event distribution function that represents the probability of belonging to none of the multiple classes, which is represented by the product of the multiple normal distribution functions and the multiple quadratic functions, based on the variance-covariance matrix and the average value. Effect of the Invention

[0014] According to the above aspect, it is possible to estimate the probability of belonging to an unexpected class based on a mixed complementary event distribution in which the axes of a normal distribution function and a quadratic function are aligned. [Brief description of the drawings]

[0015] [Figure 1] 1 is a schematic block diagram showing a configuration of a class classification system according to a first embodiment. [Diagram 2]4 is a graph showing an example of a complementary event distribution function according to the first embodiment. [Diagram 3] FIG. 2 is a diagram showing a structure of a mathematical model according to the first embodiment. [Figure 4] 1 is a schematic block diagram showing a configuration of a learning device according to a first embodiment. [Diagram 5] 4 is a flowchart showing the operation of the learning device according to the first embodiment. [Figure 6] 1 is a schematic block diagram showing a configuration of a discrimination device according to a first embodiment. [Figure 7] 4 is a flowchart showing the operation of the identification device according to the first embodiment. [Figure 8] FIG. 13 is a block diagram showing a configuration of an analysis device according to a third embodiment. [Figure 9] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] First Embodiment Class Identification System 1 Hereinafter, the embodiments will be described in detail with reference to the drawings. 1 is a schematic block diagram showing the configuration of a class classification system 1 according to a first embodiment. The class classification system 1 is a system for identifying a class to which an input signal belongs from among a plurality of classes. The class classification system 1 calculates the likelihood of an input signal for a plurality of known classes set in a learning stage and a complementary event class indicating that the input signal does not belong to any of the plurality of known classes.

[0017] The class classification system 1 includes a classification device 10 and a learning device 20. The classification device 10 classifies a class to which an input signal belongs, using a trained model trained by the learning device 20. The learning device 20 trains a mathematical model using a training dataset. The classification device 10 and the learning device 20 are examples of computers. The trained model is a combination of a mathematical model and parameters determined by training.

[0018] About the mathematical model The mathematical model according to the first embodiment will be described. The class identification system 1 according to the first embodiment represents the distribution of known classes by a Gaussian Mixture Model (GMM), and represents the distribution of complementary classes by a Complementary Gaussian Mixture Model (CGMM) shown below.

[0019] Known-class GMM When the number of known classes is K, each known class is represented by the following equation (1) using GMM. That is, in the first embodiment, n The occurrence probability f(x n ) is expressed by the following equation (1).

[0020]

number

number

number

number

[0021] Here, M k denotes the number of normal distribution components representing known class k in GMM. Also, α k、mdenotes the mixture degree of the m-th normal distribution component of known class k. g(x n :μ (k,m) ,Σ (k,m) ) denotes the normal distribution component expressed by equation (2). μ (k,m) denotes the mean vector of the m-th normal distribution component of known class k, and Σ (k,m) denotes the covariance matrix of the m-th normal distribution component of known class k. In addition, q(x n ) is the signal x in the m-th normally distributed component of known class k n This shows a quadratic function with the deviation as a variable.

[0022] In this case, the posterior probability of the known class k is p(k|x n ) is expressed by the following equation (5).

[0023]

number

[0024] <CGMM for complementary events class> The inventors have defined the complementary event class when the number of known classes is K as the following formula (6). That is, in the first embodiment, when a signal x n The probability that f does not belong to any of the known classes k c (x n ) is expressed by the following equation (6).

[0025]

number

number

[0026] The function h(x n :μ (k,m) ,Σ (k,m) ) represents the complementary distribution expressed by equation (7). That is, the complementary distribution function h(x n :μ(k,m) ,Σ (k,m) ) is the signal x n D denotes the probability that the signal x does not follow the m-th normal distribution component of the known class k. n Here, as expressed by equation (3), the normal distribution function is the function g(x n ), and the quadratic function is the function q(x n ), the complementary event distribution function h(x n ) is expressed as the product of a normal distribution function with variance Σ and a quadratic function that has the same axis as the normal distribution function. FIG. 2 is a graph showing an example of a complementary event distribution function according to the first embodiment. The horizontal axis of FIG. n is the value of, and the vertical axis indicates the occurrence probability. As shown in Figure 2, by multiplying the normal distribution function g(x) by the quadratic function q(x), it is possible to express a donut-shaped distribution in which signals are distributed around the m-th normal distribution component of known class k. Hereinafter, the donut-shaped distribution expressed by the product of the normal distribution function and the quadratic function q(x) on the same axis is referred to as the complementary event distribution component.

[0027] Known class and complementary class models Putting these together, the signal x n The probability of occurrence F(x n ) is expressed by the following equation (8). Hereinafter, the complementary event class will be represented as the class with k=0.

[0028]

number

[0029] Here, β k,m denotes the mixture degree of the complementary event distribution corresponding to the m-th normal distribution component of the known class k. Also, p(k=0) denotes the prior probability of the complementary event class.

[0030] In this case, the posterior probability p´(k|x n ) is expressed by the following equation (9).

[0031]

number

[0032] As a result, by calculating the parameter θ shown in the following formula (10), it is possible to perform class identification including the complementary event class indicating that the event does not belong to any of the known classes. The parameter θ includes the prior probability p(k=0) of the complementary event class, the mixture degree α, the mixture degree β, the mean value μ, the covariance matrix Σ, and the weighting coefficient ε. Note that the probability (1-p(k=0)), i.e., the complement of the prior probability of the complementary event class, represents the prior probability of belonging to any of the known classes.

[0033]

number

[0034] Log-linearization Here, in order to relax the constraints on the parameter θ, the above GMM and CGMM are log-linearized. Here, q(x) shown in equation (3) appears in both GMM and CGMM, and q(x) contains the mean value μ. Therefore, by matching the values ​​of q(x) included in GMM and CGMM, the axes of GMM and CGMM can be matched. When q(x) is expanded, it is expressed as the following equation (11).

[0035]

number

number

number

[0036] The signal X is 1, each element of the vector x, and xx T It is a vector consisting of the elements of the upper triangle of xx Tis a symmetric matrix, so that the signal X is xx T By having the elements of the upper triangle of xx T Here, δ i,j is the Kronecker delta (δ when i=j) i,j = 1, when i ≠ j, δ i,j = 0) for the signal X and the vector w (k,m) The number of dimensions is (1+D(D+3) / 2). The components are expressed as the signal X and the coefficient vector w (k,m) The parameter constraints can be reduced by expressing the coefficient vector w (k,m) The constraints are xx T The only difference is that the values ​​of the elements corresponding to the diagonal components of xx are less than 0. T The elements corresponding to the diagonal components of the coefficient vector w (k,m) It is the element represented by (d / 2(1D+3-d)|d=1, ..., D).

[0037] Here, according to equations (2) and (11), the logarithms of multiple normal distribution components that make up the GMM for a known class are expressed as in the following equation (14): w N (k,m) is the constant term of the logarithmic normal distribution component.

[0038]

number

[0039] According to equations (7) and (11), the logarithm of the multiple complementary distribution components (the sum of a normal distribution function and a quadratic function) that make up the CGMM is expressed as in equation (15) below. ε (k,m) is the coefficient of the linear function term of the logarithmic complementary event distribution component. w C (k,m) is the constant term of the logarithmic complementary distribution component.

[0040]

number

[0041] In this way, according to formula (15), it is possible to exclude the mean value μ from the coefficient and constant term of the CGMM function. Therefore, by creating a neural network model that realizes the function shown in formula (15), it is possible to ensure that the axis of the normal distribution function and the quadratic function in the complementary event distribution component coincide with each other.

[0042] From equations (9), (14), and (15), the posterior probability as a function of X can be expressed by the following equation (16).

[0043]

number

number

[0044] In other words, according to formula (16), by calculating the parameter θ' shown in formula (18), it is possible to perform class identification including the complementary event class that does not belong to the known class. The parameter θ' is the prior probability p(k=0) of the complementary event class, the weighting coefficient w (k、m) , weighting factor w ε (k、m) , constant w N (k,m) , constant w C (k,m) Includes.

[0045]

number

[0046] "Network structure of mathematical models" The configuration of the mathematical model expressing the posterior probability shown in formula (16) will be described below. Fig. 3 is a diagram showing the structure of the mathematical model according to the first embodiment. As shown in Fig. 3, the mathematical model 90 is a five-layer feedforward network. That is, the mathematical model 90 includes a first layer 91, a second layer 92, a third layer 93, a fourth layer 94, and a fifth layer 95.

[0047] The first layer 91 of the mathematical model 90 receives an input of a vector X obtained by the nonlinear transformation according to equation (11). The vector X is an example of a feature vector. In other words, the number of nodes in the first layer 91 is equal to the number of dimensions of the signal X (1+D(D+3) / 2). Each node in the first layer 91 outputs the input value as is. In other words, the linear transformation function of the h-th node in the first layer 91 is (1) I h is as shown in the following equation (19), and is the activation function of the h-th node in the first layer 91. (1) O h is as shown in the following equation (20).

[0048]

number

number

[0049] The second layer 92 of the mathematical model 90 has K×M nodes. Each node of the second layer 92 represents a quadratic function common to the exponential part of the normal distribution term of the logarithmic normal distribution component, the exponential part of the normal distribution term of the logarithmic complementary event distribution component, and the quadratic function term of the logarithmic complementary event distribution component. The k×m-th node of the second layer 92 represents the output vector of the first layer 91. (1) The k×mth node receives the output vector of the first layer 91 input by a fully connected (1) Each element of O and the weighting coefficient w (k、m) The sum of the products of the k×m-th nodes in the second layer 92 is calculated and the calculated value is output.(2) I k,m is as shown in the following equation (21), and is the activation function of the k×m-th node of the second layer 92 (2) O k,m is as shown in the following equation (22).

[0050]

number

number

[0051] The third layer 93 of the mathematical model 90 has 3×K×M nodes. The third layer 93 is composed of a first normal distribution calculation unit 93A having K×M nodes, a second normal distribution calculation unit 93B having K×M nodes, and a quadratic function calculation unit 93C having K×M nodes.

[0052] Each node of the first normal distribution calculation unit 93A represents a logarithmic normal distribution component. The node (k×m-th node) representing the m-th normal distribution component of the k-th class in the first normal distribution calculation unit 93A is a corresponding output vector in the second layer 92. (2) O k,m The k×m-th node of the first normal distribution calculation unit 93A receives the elements of the output vector (2) O k,m and the constant term w N (k、m) The first normal distribution calculation unit 93A calculates the sum of the k×m-th node linear transformation function (3A) I k,m is as shown in the following formula (23), and the activation function of the k×m-th node of the first normal distribution calculation unit 93A is (3A) O k,m is as shown in the following equation (24).

[0053]

number

number

[0054] Each node of the second normal distribution calculation unit 93B represents a normal distribution term of a logarithmic complementary event distribution component. The node (k×m-th node) representing the normal distribution term of the m-th complementary event distribution component of the k-th class in the second normal distribution calculation unit 93B is a corresponding output vector in the second layer 92. (2) O k,m The k×m-th node of the second normal distribution calculation unit 93B receives the elements of the output vector (2) O k,m Elements and coefficients of w ε (k,m) and the constant term w C (k、m) The second normal distribution calculation unit 93B calculates the sum of the k×m-th node and outputs the calculated value. (3B) I k,m is as shown in the following formula (25), and the activation function of the k×m-th node of the second normal distribution calculation unit 93B is (3B) O k,m is as shown in the following equation (26).

[0055]

number

number

[0056] Each node of the quadratic function calculation unit 93C represents a quadratic function term of a logarithmic complementary event distribution component. A node (k×m-th node) representing a quadratic function term of an m-th complementary event distribution component of a k-th class in the quadratic function calculation unit 93C is a corresponding output vector in the second layer 92. (2) O k,m The k×m-th node of the quadratic function calculation unit 93C receives the elements of the output vector (2) O k,mThe linear transformation function of the k×m-th node of the quadratic function calculation unit 93C is multiplied by -1 and the logarithm of the calculation result is output. (3C) I k,m is as shown in the following formula (27), and the activation function of the k×m-th node of the quadratic function calculation unit 93C is (3B) O k,m is as shown in the following equation (28).

[0057]

number

number

[0058] The fourth layer 94 of the mathematical model 90 has 2×K×M nodes. The fourth layer 94 is composed of a normal distribution component calculation unit 94A having K×M nodes and an auxiliary event distribution component calculation unit 94B having K×M nodes.

[0059] Each node of the normal distribution component calculation unit 94A represents a normal distribution component. The k×m-th node of the normal distribution component calculation unit 94A receives the output value of the k×m-th node of the first normal distribution calculation unit 93A, and outputs a value that takes the input value as the exponent of the Napier's constant e. In other words, the linear transformation function of the k×m-th node of the normal distribution component calculation unit 94A is (4A) I k,m is as shown in the following formula (29), and is the activation function of the k×m-th node of the normal distribution component calculation unit 94A. (4A) O k,m is as shown in the following equation (30).

[0060]

number

number

[0061] Each node of the complementary event distribution component calculation unit 94B represents a complementary event distribution component. The k×m-th node of the complementary event distribution component calculation unit 94B receives the output value of the k×m-th node of the second normal distribution calculation unit 93B and the output value of the k×m-th node of the quadratic function calculation unit 93C, and outputs a value that takes the input value as the exponent of the Napier's constant e. In other words, the linear transformation function of the k×m-th node of the complementary event distribution component calculation unit 94B is (4B) I k,m is as shown in the following formula (31), and the activation function of the k×m-th node of the complementary event distribution component calculation unit 94B is (4B) O k,m is as shown in the following equation (32).

[0062]

number

number

[0063] The fifth layer 95 of the mathematical model 90 has K+1 nodes. The fifth layer 95 is composed of a known class likelihood calculation unit 95A having K nodes and a complementary event likelihood calculation unit 95B having one node.

[0064] The k-th node of the known class likelihood calculation unit 95A receives the output values ​​of each node corresponding to the k-th component of the normal distribution component calculation unit 94A and outputs the sum of the input values. That is, the linear transformation function of the k-th node of the known class likelihood calculation unit 95A is (5A) I k is as shown in the following equation (33), and the activation function of the k-th node of the known class likelihood calculation unit 95A is (5A) O k is as shown in the following equation (34).

[0065]

number

number

[0066] The node of the complementary event likelihood calculation unit 95B receives the output value of each node of the complementary event distribution component calculation unit 94B and outputs the sum of the input values. That is, the linear transformation function of the node of the complementary event likelihood calculation unit 95B (5B) I is as shown in the following formula (35), and is the activation function of the node of the known class likelihood calculation unit 95A. (5B) O is as shown in the following equation (36).

[0067]

number

number

[0068] In this manner, the above-described mathematical model 90 generates signals x for each of the K known classes and one complementary event class. n The calculation of the likelihood of can be expressed as:

[0069] Configuration of learning device 20 Here, there will be described a configuration of the learning device 20 included in the class classification system 1 shown in Fig. 1. The learning device 20 trains the mathematical model 90 and determines the parameter values ​​of each node. 4 is a schematic block diagram showing the configuration of a learning device 20 according to the first embodiment. The learning device 20 includes a model storage unit 21, a dataset receiving unit 22, a division unit 23, a conversion unit 24, a first learning unit 25, an evaluation unit 26, a second learning unit 27, and an output unit 28.

[0070] The model storage unit 21 stores the mathematical model 90 and the parameter θ′ of the model. The parameter θ′ of the mathematical model 90 is expressed as the prior probability p(k=0) of the complementary event class, the weighting coefficient w (k、m) , weighting factor w ε (k、m) , constant w N (k,m) , constant wC (k,m) Includes. The data set receiving unit 22 receives input of a plurality of data sets used for training the mathematical model 90. The data sets include a signal x n is the input sample, and the signal x n The label of the class to which the sample belongs is taken as the output sample.

[0071] The division unit 23 divides the multiple datasets accepted by the dataset acceptance unit 22 into a training dataset and a validation dataset. For example, the division unit 23 divides the datasets based on a predetermined division ratio.

[0072] The converter 24 converts the input sample x n is nonlinearly transformed to obtain the signal X n get.

[0073] The first learning unit 25 uses N learning data sets to calculate the weight coefficient w of the mathematical model 90 by the backpropagation method. (k、m) , weighting factor w ε (k、m) , constant w N (k,m) , constant w C (k,m) Specifically, the first learning unit 25 calculates the classification error for a sample based on the output value calculated by inputting the input sample into the mathematical model 90 and the value of the output sample. For example, the first learning unit 25 obtains the Kullback-Leibler divergence J for evaluating the classification error by the following equation (37). The first learning unit 25 updates the weighting coefficient w (k、m) , weighting factor w ε (k、m) , constant w N (k,m) , constant w C (k,m)The first learning unit 25 ends the parameter update when the Kullback-Library divergence J becomes equal to or less than a predetermined target value or the number of learning times exceeds a predetermined maximum number. Note that, since the prior probability p(k=0) is updated by the second learning unit 27 described later, a temporary value (e.g., 0.01) is substituted for the prior probability p(k=0) in the learning stage of other weighting coefficients.

[0074]

number

[0075] After the first learning unit 25 trains the mathematical model 90, the evaluation unit 26 evaluates the mathematical model 90 using a validation data set. In other words, the evaluation unit 26 performs calculations according to the mathematical model 90, thereby functioning as a first layer 91, a second layer 92, a third layer 93 (a first normal distribution calculation unit 93A, a second normal distribution calculation unit 93B, a quadratic function calculation unit 93C), a fourth layer 94 (a normal distribution component calculation unit 94A, a complementary event distribution component calculation unit 94B), and a fifth layer 95 (a known class likelihood calculation unit 95A, a complementary event likelihood calculation unit 95B). Specifically, the evaluation unit 26 calculates an evaluation value P Recall Calculate.

[0076]

number

[0077] Here, Φ k denotes the number of input samples of class k that were correctly identified. k denotes the number of incorrectly identified input samples of class k.

[0078] The second learning unit 27 calculates the evaluation value P Recall Whether or not to end the learning process is determined based on the result, and if the learning is not to be ended, the second learning unit 27 updates the prior probability p(k=0) of the complementary event class. Specifically, the second learning unit 27 updates the prior probability p(k=0) of the complementary event class by adding a predetermined update amount p0 to the current prior probability p(k=0) of the complementary event class. The second learning unit 27 calculates the evaluation value P Recall and the evaluation value when the new prior probability is applied, the learning process is determined to be terminated when the difference between the evaluation value and the new prior probability is equal to or smaller than a predetermined termination determination threshold.

[0079] The output unit 28 outputs the learned model of the mathematical model 90 that has completed the learning process to the classification device 10.

[0080] Operation of the learning device 20 FIG. 5 is a flowchart showing the operation of the learning device 20 according to the first embodiment. When the dataset receiving unit 22 of the learning device 20 receives input of a plurality of datasets (step S1), the dividing unit 23 divides the plurality of datasets into a learning dataset and a validation dataset (step S2).

[0081] The conversion unit 24 performs nonlinear conversion on the multiple input samples to obtain an input signal (step S3). Next, the first learning unit 25 uses the input signal converted from the learning data set to calculate the parameters (weighting coefficient w (k、m) , weighting factor w ε (k、m) , constant w N (k,m) , constant w C (k,m) ) (step S4). The first learning unit 25 determines whether the classification error J obtained by equation (37) is equal to or smaller than the target value and whether the number of learning times has exceeded the maximum number (step S5). If the classification error J is greater than the target value and the number of learning times is less than the maximum number (step S5: NO), the learning device 20 returns to the process of step S3.

[0082] On the other hand, if the classification error J is equal to or smaller than the target value, or if the number of learning times exceeds the maximum number (step S5: YES), the first learning unit 25 ends the update of the weighting coefficient. Next, the evaluation unit 26 calculates the evaluation value P Recall (Step S6). The second learning unit 27 calculates the evaluation value P RecallIt is determined whether or not the discrimination rate is equal to or lower than a predetermined allowable threshold value (step S7).

[0083] Evaluation value P Recall If k is greater than the tolerance threshold (step S7: NO), the evaluation unit 26 updates the prior probability p(k=0) of the complementary event class, and returns the process to step S6 (step S8). On the other hand, the evaluation value P Recall becomes equal to or smaller than the allowable threshold (step S7: YES), the output unit 28 outputs the trained model of the mathematical model 90 that has completed the training process to the classification device 10 (step S9).

[0084] Configuration of Identification Device 10 Here, a description will be given of the configuration of the classification device 10 included in the class classification system 1 shown in Fig. 1. The classification device 10 uses a learned mathematical model 90 trained by a learning device 20 to classify the class of input data. 6 is a schematic block diagram showing the configuration of a classification device 10 according to the first embodiment. The classification device 10 includes a model acquisition unit 11, a model storage unit 12, a data input unit 13, a conversion unit 14, a classification unit 15, and an output unit 16.

[0085] The model acquisition unit 11 acquires the trained mathematical model 90 from the learning device 20. The model acquisition unit 11 records the acquired trained mathematical model 90 in the model storage unit 12. The model storage unit 12 stores the trained mathematical model 90 acquired by the model acquisition unit 11. The data input unit 13 receives input data to be subjected to class identification. The conversion unit 14 converts the input data x n is nonlinearly transformed to obtain the signal X n get. The discrimination unit 15 detects the signal X n is input to the trained model stored in the model storage unit 12, the signal X nand evaluates the class to which the input data belongs based on the likelihood. That is, the identification unit 15 performs calculations according to the mathematical model 90, thereby functioning as a first layer 91, a second layer 92, a third layer 93 (a first normal distribution calculation unit 93A, a second normal distribution calculation unit 93B, and a quadratic function calculation unit 93C), a fourth layer 94 (a normal distribution component calculation unit 94A, and a complementary event distribution component calculation unit 94B), and a fifth layer 95 (a known class likelihood calculation unit 95A, and a complementary event likelihood calculation unit 95B). The output unit 16 outputs the evaluation result by the identification unit 15 .

[0086] Operation of the Identification Device 10 7 is a flowchart showing the operation of the classification device 10 according to the first embodiment. In the following description, it is assumed that the mathematical model 90 that has been learned by the learning device 20 has already been stored in the model storage unit 12.

[0087] The data input unit 13 of the classification device 10 receives input data to be classified into classes (step S11). Next, the conversion unit 14 performs nonlinear conversion on the input data according to equation (11) to obtain a signal (step S12). The classification unit 15 converts the signal X n is input to the trained model stored in the model storage unit 12, the signal X n The likelihood of the plurality of classes is calculated (step S13). The identification unit 15 evaluates the class to which the input data belongs based on the calculated likelihood (step S14). The output unit 16 outputs the evaluation result by the identification unit 15 (step S15).

[0088] Actions and Effects As described above, the mathematical model 90 according to the first embodiment is a neural network model including a first layer 91, a second layer 92, a third layer 93 including a second normal distribution calculation unit 93B, and a fifth layer 95 including a complementary event likelihood calculation unit 95B. n The second layer 92 receives the weighting variables w (k,m)and a feature vector X n and the weight variable w (k,m) Based on the vector (2) O k,m The second normal distribution calculation unit 93B calculates a weight variable w ε (k,m) and the vector (2) O k,m and the weight variable w ε (k,m) Based on the vector (3B) O k,m The residual event likelihood calculation unit 95B calculates the vector (2) O k,m and vector (3B) O k,m Based on the above, a complementary event likelihood, which is the likelihood that the feature vector does not belong to any of the multiple classes, is calculated. The mathematical model 90 provides the discrimination device 10 with a feature vector X n to the first layer 91; and n and the weight variable w (k,m) Based on the vector (2) O k,m and calculating the vector (2) O k,m and the weight variable w ε (k,m) Based on the vector (3B) O k,m and calculating the vector (2) O k,m and vector (3B) O k,m and calculating a residual event likelihood based on the

[0089] In this way, the mathematical model 90 is configured to calculate the quadratic function part common to the complementary event distribution components in the second layer 92, and to calculate the normal distribution part and the quadratic function term part of the complementary event distribution component using the calculation result. Since the axes of the normal distribution part and the quadratic function term part, i.e., the average value μ, are included only in the common quadratic function part, the complementary event distribution component calculated using the mathematical model 90 always has the same axes of the normal distribution part and the quadratic function term part regardless of the parameter θ'. Therefore, the mathematical model 90 according to the first embodiment can estimate the probability of belonging to an unexpected class based on a mixed complementary event distribution in which the axes of the normal distribution function and the quadratic function are aligned.

[0090] Second embodiment Weighting coefficient w of parameter θ′ according to the first embodiment (k,m) and the weighting factor w ε (k,m) Each has a domain restriction. Specifically, the weight coefficient w (k,m) has the constraints shown in equation (39), and the weight coefficient w ε (k,m) has the constraints shown in equation (40). That is, the weighting coefficient w (k,m) Of xx T The diagonal elements of must be less than 0, and the weighting coefficients w ε (k,m) must be greater than 0 and less than 1.

[0091]

number

number

[0092] In the class classification system 1 according to the first embodiment, it is possible to avoid calculation errors by checking whether the parameter θ' does not deviate from the constraint during learning and correcting it appropriately if the constraint is deviated. In contrast, the class classification system 1 according to the second embodiment performs learning so that the parameter θ' does not deviate from the constraint.

[0093] Specifically, in the mathematical model 90 of the second embodiment, the weighting coefficient w h (k,m) For the node corresponding to w h (k,m) is replaced by the exponential function shown in equation (41), and the weighting coefficient w ε (k,m) For the node corresponding to w ε (k,m) is replaced by the sigmoid function shown in equation (42). Then, the alternative parameters r h (k,m) and r ε (k,m) Learn:

[0094]

number

number

[0095] In another embodiment, w h (k,m) The formula expressing w is not limited to formula (41), but may be any function with no lower limit and an upper limit of 0. ε (k,m) The formula expressing this is not limited to formula (42), but may be any function whose range has a lower limit of 0 and an upper limit of 1.

[0096] Thus, according to the second embodiment, the class identification system 1 can perform learning without violating the constraints of the parameter θ′ by replacing some elements of the parameter θ′ with a function having a range that coincides with the domain of the element.

[0097] Third embodiment According to the first and second embodiments, the class can be identified using the mathematical model 90, which is a neural network. On the other hand, each parameter θ′ of the mathematical model 90 is a parameter of the log-linearized GMM and CGMM, and μ (k,m) and Σ (k,m) Therefore, it is difficult to recognize the shapes of the individual GMM and CGMM components. In the third embodiment, the mathematical model 90 is analyzed to extract the probability models of the GMM and CGMM.

[0098] FIG. 8 is a block diagram showing the configuration of an analysis device 30 according to the third embodiment. The analysis device 30 includes a model acquisition unit 31, a model storage unit 32, a covariance determination unit 33, a mean determination unit , a function generation unit 35, and an output unit .

[0099] The model acquisition unit 31 acquires the trained mathematical model 90 from the learning device 20. The model acquisition unit 31 records the acquired trained mathematical model 90 in the model storage unit 32. The model storage unit 32 stores the trained mathematical model 90 acquired by the model acquisition unit 31.

[0100] The covariance specification unit 33 specifies xx of the parameters θ′ of the mathematical model 90 stored in the model storage unit 32. T Using the parameters corresponding to the variance-covariance matrix Σ (k,m) Specifically, the covariance specification unit 33 specifies xx of the parameter θ′. T For each parameter corresponding to (-2 / (2-δ i,j )) to obtain the variance-covariance matrix Σ (k,m) Each element of can be obtained. The mean determination unit 34 determines the mean vector μ by a gradient method based on the output of the second layer 92 of the mathematical model 90. (k,m) Identify.

[0101] The function generator 35 calculates the variance ε k,m , mixing degree αk,m , β k,m and generate the GMM function shown in equation (1) and the CGMM function shown in equation (6). ε (k,m) Based on the definition of variance ε k,m The function generating unit 35 calculates w N (k,m) Based on the definition of the degree of mixing, α k,m The function generating unit 35 calculates w C (k,m) Based on the definition of the degree of mixing β k,m Calculate.

[0102]

number

number

number

[0103] The function generating unit 35 may generate a program for identifying the class of the input data x from the GMM function shown in equation (1) and the CGMM function shown in equation (6) using the specified parameter θ. The program causes a computer to execute the steps of accepting input of the input data x, calculating the probability that the input data x belongs to a known class based on the specified parameter θ and the GMM function shown in equation (1), calculating the probability that the input data x does not belong to a known class based on the specified parameter θ and the CGMM function shown in equation (6), and outputting the calculated probability.

[0104] In this way, the analysis device 30 according to the third embodiment can extract a probabilistic model representing GMM and CGMM from the trained mathematical model 90. This allows the analysis device 30 to improve the readability of the training results. Furthermore, the analysis device 30 can generate a program for identifying the class of input data from the GMM function and the CGMM function based on the analysis results. This program is expressed in GMM function and CGMM function that are easy for people to understand, so that manual adjustment of parameters is easy.

[0105] Other Embodiments Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes are possible. That is, in other embodiments, the order of the above-mentioned processes may be changed as appropriate. Also, some of the processes may be executed in parallel.

[0106] In the above-described embodiment, class identification is performed using the mathematical model 90, but in other embodiments, this is not limited to the above. For example, in other embodiments, the generation device may generate data belonging to a complementary event class using the mathematical model 90. In the above-described embodiment, the class classification system 1 performs class classification using machine learning, but this is not limited to this. For example, in other embodiments, calculations may be performed using a mathematical model 90 instead of machine learning.

[0107] Moreover, the above-described class classification system 1 includes the classification device 10 and the learning device 20, but is not limited to this. For example, a class classification system 1 according to another embodiment may perform the learning process and the classification process in the same device. In addition, in the above-described class identification system 1, in step S2 of the learning stage, the data set is divided into a learning data set and a validation data set, and the evaluation value is calculated using the validation data set, but this is not limited to this. For example, in other embodiments, all data sets may be used for learning, and the evaluation value may be calculated using the same data set.

[0108] Computer Configuration FIG. 9 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. The computer 100 includes a processor 110, a main memory 130, a storage 150, and an interface 170. The above-mentioned classification device 10 and learning device 20 are implemented in a computer 100. The operations of the above-mentioned processing units are stored in the storage 150 in the form of a program. The processor 110 reads the program from the storage 150, loads it in the main memory 130, and executes the above-mentioned processing in accordance with the program. The processor 110 also secures storage areas in the main memory 130 corresponding to the above-mentioned storage units in accordance with the program. Examples of the processor 110 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), and a microprocessor.

[0109] The program may be for realizing a part of the functions to be performed by the computer 100. For example, the program may be for realizing the functions by combining with other programs already stored in the storage or by combining with other programs implemented in other devices. In another embodiment, the computer 100 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to the above configuration or instead of the above configuration. Examples of the PLD include a PAL (Programmable Array Logic), a GAL (Generic Array Logic), a CPLD (Complex Programmable Logic Device), and an FPGA (Field Programmable Gate Array). In this case, a part or all of the functions realized by the processor 110 may be realized by the integrated circuit. Such an integrated circuit is also included in an example of a processor. When the processor 110 is an FPGA, the FPGA is configured to function as the identification device 10 by executing a configuration program for causing a computer to execute a configuration process for configuring the above-mentioned learned mathematical model 90 as hardware. In other embodiments, computer 100 may be virtualized on one or more computers.

[0110] Examples of storage 150 include an optical disk, a magnetic disk, a magneto-optical disk, a semiconductor memory, etc. Storage 150 may be an internal medium directly connected to the bus of computer 100, or an external medium connected to computer 100 via interface 170 or a communication line. In addition, when this program is distributed to computer 100 via a communication line, computer 100 that receives the program may load the program in main memory 130 and execute the above-mentioned processing. In at least one embodiment, storage 150 is a non-transitory tangible storage medium.

[0111] The program may be for implementing part of the above-mentioned functions. Furthermore, the program may be a so-called differential file (differential program) that implements the above-mentioned functions in combination with other programs already stored in the storage 150. [Explanation of symbols]

[0112] 1...Class classification system 10...Classification device 11...Model acquisition unit 12...Model storage unit 13...Data input unit 14...Conversion unit 15...Classification unit 16...Output unit 20...Learning device 21...Model storage unit 22...Data set reception unit 23...Division unit 24...Conversion unit 25...First learning unit 26...Evaluation unit 27...Second learning unit 28...Output unit 30...Analysis device 31...Model acquisition unit 32...Model storage unit 33...Covariance determination unit 34...Average determination unit 35...Function generation unit 36...Output unit 90...Mathematical model 91...First layer 92...Second layer 93...Third layer 93A...First normal distribution calculation unit 93B...Second normal distribution calculation unit 93C...Quadratic function calculation unit 94...Fourth layer 94A...Normal distribution component calculation unit 94B...Complementary event distribution component calculation unit 95... 5th layer 95A... known class likelihood calculation section 95B... residual event likelihood calculation section

Claims

1. an input layer to which a feature vector is input; a first intermediate layer having a first parameter group representing coefficients of a plurality of quadratic functions related to exponential parts of a plurality of normal distribution functions representing distributions related to a plurality of classes, the first intermediate layer calculating a first intermediate vector based on the feature vector and the first parameter group; a second intermediate layer having a second set of parameters representing coefficients of the plurality of normal distribution functions and configured to calculate a second intermediate vector based on the first intermediate vector and the second set of parameters; an output layer that calculates a complementary event likelihood, which is a likelihood that the feature vector does not belong to any of the plurality of classes, based on the first intermediate vector and the second intermediate vector; A trained neural network model comprising: On the computer, inputting the feature vector into the input layer; calculating the first intermediate vector based on the feature vector and the first set of parameters; calculating the second intermediate vector based on the first intermediate vector and the second set of parameters; calculating the residual event likelihood based on the first intermediate vector and the second intermediate vector; A neural network model that executes the above.

2. a fourth intermediate layer having a fourth parameter group representing coefficients of a mixed normal distribution function representing a distribution related to each of the plurality of classes, and calculating a fourth intermediate vector based on the first intermediate vector and the fourth parameter group; The output layer calculates the complementary event likelihood based on the first intermediate vector and the second intermediate vector, and calculates a class likelihood, which is the likelihood that the feature vector belongs to the class, for each of the plurality of classes based on the fourth intermediate vector. The neural network model of claim 1 .

3. The second set of parameters is represented by a function having a range whose lower limit is 0 and whose upper limit is 1. The neural network model of claim 1 .

4. Among the first parameter group, elements corresponding to diagonal elements of a product of a feature vector and a transposed matrix of the feature vector are represented by a function having a range whose lower limit is −∞ and whose upper limit is 0. The neural network model of claim 1 .

5. A storage unit that stores the neural network model according to any one of claims 1 to 4; a learning unit that uses a learning data set consisting of a combination of a feature vector and a class to which the feature vector belongs among a plurality of classes to train the neural network model so that the feature vector is input and the complementary event likelihood is output; A computer comprising:

6. A storage unit that stores the neural network model according to any one of claims 1 to 4; a covariance specification unit that extracts parameters related to coefficients of quadratic terms of the plurality of quadratic functions from the first parameter group of the neural network model, and specifies a variance-covariance matrix of the plurality of normal distribution functions; an average determination unit that determines an average value of the plurality of normal distribution functions from the first parameter group; a function generating unit that generates a complementary event distribution function that represents a probability of not belonging to any of the plurality of classes and is represented by a product of the plurality of normal distribution functions and the plurality of quadratic functions, based on the variance-covariance matrix and the mean value; A computer comprising:

7. A calculation method using the neural network model according to any one of claims 1 to 4, comprising: The computer, inputting the feature vector into the input layer of the neural network model; calculating the first intermediate vector based on the feature vector and the first set of parameters of the neural network model; calculating the second intermediate vector based on the first intermediate vector and the second set of parameters of the neural network model; calculating the residual event likelihood based on the first intermediate vector and the second intermediate vector of the neural network model; A calculation method to perform.

8. A step of training the neural network model according to any one of claims 1 to 4 by a computer using a training data set consisting of a combination of a feature vector and a class to which the feature vector belongs among a plurality of classes, so that the neural network model according to any one of claims 1 to 4 receives the feature vector as an input and outputs the complementary event likelihood; extracting parameters related to coefficients of quadratic terms of the plurality of quadratic functions from the first parameter group of the neural network model according to any one of claims 1 to 4, and specifying variance-covariance matrices of the plurality of normal distribution functions; determining average values ​​of the plurality of normal distribution functions from the first set of parameters; generating a program for causing a computer to calculate a complementary event distribution function, which represents a probability of not belonging to any of the plurality of classes and is represented by a product of the plurality of normal distribution functions and the plurality of quadratic functions, based on the variance-covariance matrix and the mean value; A method for generating a program comprising:

Citation Information

Patent Citations

  • Data classification device, data classification method, and data classification program

    EP4131074A1

  • Calculator, method for calculation, and program

    JP2021144659A

  • Data classification device, data classification method, and data classification program

    WO2021199706A1