Estimation apparatus, estimation method, program, and neural network model
A neural network model using mixed normal and residual event distributions enhances the estimation of class probabilities for time-series signals, addressing the limitations of existing methods by accurately identifying both known and unexpected classes.
Patent Information
- Application Number
- JP2023021974
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
AI Technical Summary
Existing methods for classifying time-series signals into classes, such as hidden Markov models, struggle to accurately estimate the probability of a signal belonging to an unexpected class due to the lack of consideration for time-series information.
A neural network model is employed to estimate the posterior probability of a signal belonging to one of multiple classes or an unexpected class by using a mixed normal distribution represented by the sum of normal distributions and a mixed residual event distribution, calculated through a seven-layer network structure that includes feedback loops and intermediate layers to process time-varying signals.
The model effectively estimates the likelihood of a signal belonging to a known class or an unexpected class, improving classification accuracy by considering time-series information and accounting for signals that do not fit any predefined class.
Smart Images

Figure 2024116008000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an estimation device, an estimation method, a program, and a neural network model. [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] The technique described in Patent Document 1 is a technique for classifying a signal at a certain point. On the other hand, when classifying a time series signal, a technique is generally used that determines a probability distribution of classes according to past signals. One example of such a technique is the hidden Markov model. An object of the present invention is to provide an estimation device, an estimation method, a program, and a neural network model that enable estimation of the posterior probability of belonging to an unexpected class by taking into account time-series information. [Means for solving the problem]
[0005] According to a first aspect, an estimation device is an estimation device that estimates, for a time-varying signal, which of a plurality of classes the signal belongs to or none of, and executes a determination step of determining a mixed normal distribution for each class that represents a probability density by the sum of a plurality of normal distributions based on a previous signal, and an estimation step of estimating, for each normal distribution that constitutes all mixed normal distributions that can be taken in response to a change in the signal, which of the plurality of classes the signal belongs to or none of, based on a mixed normal distribution represented by the sum of complementary event distributions represented by the product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, and the mixed normal distribution for each class.
[0006] According to a second aspect, in the estimation device according to the first aspect, the mixed normal distribution and the mixed complementary event distribution are represented by a neural network model, and the neural network has an input layer to which a feature vector representing the signal is input, and a first parameter group representing each coefficient of the normal distributions constituting all of the mixed normal distributions, and includes a first hidden layer that calculates a first intermediate vector based on the feature vector and the first parameter group, and a second hidden layer that calculates a second intermediate vector based on a feedback vector that is a vector generated by a layer subsequent to the second hidden layer based on a previous signal, and the first intermediate vector, The neural network may include a first output layer that calculates, for each of the multiple classes, a likelihood that the signal belongs to the class based on a second intermediate vector; a third intermediate layer that has a second parameter group representing coefficients of the quadratic function related to each of the normal distributions that constitute all of the mixed normal distributions, and calculates a third intermediate vector based on the first intermediate vector and the second parameter group; and a second output layer that calculates, based on the third intermediate vector, a likelihood that the signal does not belong to any of the multiple classes, wherein the determination step performs calculations for the second intermediate layer of the neural network, and the estimation step performs calculations for the first output layer and the second output layer.
[0007] According to a third aspect, an estimation method is an estimation method for estimating whether a time-varying signal belongs to any of a plurality of classes or to none of the classes, comprising: a determination step in which a computer determines a mixed normal distribution for each class that represents a probability density by the sum of a plurality of normal distributions based on a previous signal; and an estimation step in which the computer estimates whether the signal belongs to any of the plurality of classes or to none of the classes based on a mixed normal distribution represented by the sum of complementary event distributions represented by the product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, for each of all normal distributions that constitute all mixed normal distributions that can be taken in response to changes in the signal, and the mixed normal distribution for each class.
[0008] According to a fourth aspect, a program is a program for causing a computer to estimate, for a time-varying signal, which of a plurality of classes the signal belongs to or does not belong to, and causes the computer to execute a determination step of determining a mixed normal distribution for each class, which represents a probability density by the sum of a plurality of normal distributions, based on a previous signal, and an estimation step of estimating, for each of all mixed normal distributions that can be taken in response to a change in the signal, which is represented by a mixed complementary event distribution represented by the sum of complementary event distributions represented by the product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, and the mixed normal distribution for each class, whether the signal belongs to any of the plurality of classes or does not belong to any of the classes.
[0009] According to a fifth aspect, a neural network model includes an input layer to which a feature vector is input, and a first parameter group representing the coefficients of all normal distributions constituting a mixed normal distribution for each class, the mixed normal distribution representing a probability density by a sum of a plurality of normal distributions, the first intermediate layer calculating a first intermediate vector based on the feature vector and the first parameter group, a second intermediate layer calculating a second intermediate vector, the second intermediate layer calculating the second intermediate vector based on a feedback vector that is a vector generated by a layer subsequent to the second intermediate layer based on a previous signal, and the first intermediate vector, a first output layer calculating a likelihood that the signal belongs to each of the plurality of classes based on the second intermediate vector, and a second parameter group representing the coefficients of the quadratic function related to each normal distribution constituting all of the mixed normal distributions, and a third intermediate vector calculating a fourth intermediate vector based on the first intermediate vector and the second parameter group. a third intermediate layer that calculates a feature vector; and a second output layer that calculates a likelihood that the signal does not belong to any of the multiple classes based on the third intermediate vector, wherein the computer is caused to execute the steps of: inputting the feature vector to the input layer; calculating the feedback vector based on a previous feature vector; calculating the first intermediate vector based on the feature vector and the first group of parameters; calculating the second intermediate vector based on the feedback vector and the first intermediate vector; calculating the likelihood of each of the multiple classes based on the second intermediate vector; calculating a third intermediate vector based on the first intermediate vector and the second group of parameters; and calculating the likelihood that the signal does not belong to any of the multiple classes based on the third intermediate vector. Effect of the Invention
[0010] According to the above aspect, in a classifier that classifies an input signal as to which of a plurality of preset classes it belongs to, it is possible to estimate the probability that the input signal belongs to an unexpected class. [Brief description of the drawings]
[0011] [Figure 1] 1 is a schematic block diagram showing a configuration of a class classification system according to a first embodiment. [Diagram 2] FIG. 1 is a schematic diagram showing a hidden Markov model. [Diagram 3] 4 is a graph showing an example of a complementary event distribution function according to the first embodiment. [Figure 4] FIG. 2 is a diagram showing a structure of a mathematical model according to the first embodiment. [Diagram 5] 1 is a schematic block diagram showing a configuration of a learning device according to a first embodiment. [Figure 6] 4 is a flowchart showing the operation of the learning device according to the first embodiment. [Figure 7] 1 is a schematic block diagram showing a configuration of a discrimination device according to a first embodiment. [Figure 8] 5 is a flowchart showing the operation of the identification device according to the first 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
[0012] 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.
[0013] 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.
[0014] About the mathematical model The mathematical model according to the first embodiment will be described. The class classification system 1 according to the first embodiment estimates a state using a Hidden Markov Model, and represents the distribution of known classes using a Gaussian Mixture Model (GMM) according to the state. In addition, the class classification system 1 represents the distribution of complementary classes using the Complementary Gaussian Mixture Model (CGMM) shown below.
[0015] Known-class HMM-GMM 2 is a schematic diagram showing a hidden Markov model. The class identification system 1 of the first embodiment is based on the hypothesis that the probability distribution of a known class is determined according to a hidden Markov model in which the probability distribution that an input signal belongs to a known class c changes according to the state k of a signal source. In the hidden Markov model, the state k of the signal source is determined by the previous state k'. The number of known classes is C, and the number of states is K. c In this case, the posterior probability p(c|x(t)) of a known class c when a signal x(t) is given is expressed by the following equation (1).
[0016]
number
number
number
[0017] Here, ξ c t (k) is a function that represents the component related to state k of the occurrence probability of known class c at time t. c k indicates the probability that the initial state (state at t = 0) is state k (initial state probability). A c k´,k b indicates the probability of transitioning from the previous state k' to state k (transition probability). c k is the occurrence probability of known class c in state k. In other words, the posterior probability p(c|x(t)) of a known class c is expressed as the sum of the occurrence probability of the known class c in each state weighted by the probability that the state at time t is state k. The probability that the state at time t is state k is determined by the probability that the previous state is k'.
[0018] Probability of occurrence of known class c in state k is b c k is expressed by the following equation (4) using GMM.
[0019]
number
number
number
number
[0020] Here, M c,k indicates the number of normal distribution components in state k, which represents a known class c in GMM. c,k,m denotes the mixture degree of the m-th normal distribution component in state k of known class c. g(x(t):μ (c,k,m) ,Σ (c,k,m) ) denotes the normal distribution component expressed by equation (2). μ (c,k,m) denotes the mean vector of the m-th normal distribution component in state k of known class c, and Σ (c,k,m) denotes the covariance matrix of the m-th normal distribution component in state k of known class c. Furthermore, q(x(t)) in equation (2) represents a quadratic function whose variable is the deviation of the signal x(t) in the m-th normal distribution component in state k of known class c.
[0021] <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 (8). That is, in the first embodiment, the probability b 0 k (x(t)) is expressed by the following equation (8). Hereinafter, the complementary event class will be represented as the class of c=0.
[0022]
number
number
[0023] Function h(x(t):μ (c,k,m) ,Σ (c,k,m) ) represents the complementary distribution expressed by equation (9). That is, the complementary distribution function h(x(t):μ (c,k,m) ,Σ (c,k,m) ) indicates the probability that the signal x(t) does not follow the m-th normal distribution component in state k of known class c. Note that D is the number of dimensions of the signal x(t). Here, as shown in formula (5), since the normal distribution function is expressed by the function g(x(t)) and the quadratic function is expressed by the function q(x(t)), the complementary event distribution function h(x(t)) is expressed by the product of a normal distribution function with variance Σ and a quadratic function with the same axis as the normal distribution function. Fig. 3 is a graph showing an example of a complementary event distribution function according to the first embodiment. The horizontal axis of Fig. 3 indicates the value of a signal x(t), and the vertical axis indicates the occurrence probability. As shown in Fig. 2, by multiplying the normal distribution function g(x(t)) by a quadratic function q(x(t)), it is possible to express a donut-shaped distribution in which signals are distributed around the m-th normal distribution component in state k of a known class c. Hereinafter, a donut-shaped distribution expressed by the product of a normal distribution function and a quadratic function q(x(t)) on the same axis is referred to as a complementary event distribution component. β k,m denotes the mixture degree of the complementary event distribution corresponding to the m-th normal distribution component of the known class c.
[0024] Known class and complementary class models By combining these, we can obtain the probability p of occurrence of the signal x(t) in K known classes and one complementary event class. F (x(t)) is expressed by the following formula (10). At this time, the posterior probability p'(c|x(t)) of the known class and the complementary event class is expressed by the following formula (11).
[0025]
number
number
[0026] Note that p(c=0) is the prior probability of the complementary event class. Therefore, the probability (1-p(c=0)), i.e., the complement of the prior probability of the complementary event class, represents the prior probability of belonging to one of the known classes. As a result, by calculating the parameter θ shown in the following formula (12), 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(c=0) of the complementary event class, the initial state probability π c k , transition probability A c k´,k , mixing degree α, mixing degree β, mean value μ, covariance matrix Σ, and weighting coefficient ε.
[0027]
number
[0028] Log-linearization Here, in order to relax the constraints on the parameter θ, the above GMM and CGMM are log-linearized. Here, q(x(t)) shown in equation (6) appears in common in GMM and CGMM, and q(x(t)) contains the mean value μ. Therefore, by matching the values of q(x(t)) included in GMM and CGMM, the axes of GMM and CGMM can be matched. When q(x(t)) is expanded, it is expressed as the following equation (13).
[0029]
number
number
number
[0030] The signal X(t) is 1, each element of the vector x(t), and x(t)x(t) T x(t) is a vector consisting of the elements of the upper triangle of x(t)x(t). T is a symmetric matrix, so the signal X(t) is x(t)x(t) T By having the elements of the upper triangle of x(t)x(t) T Here, δ i,j is the Kronecker delta (δ when i=j) i,j = 1, when i ≠ j, δ i,j = 0). The signal X(t) and the vector w (c,k,m) The number of dimensions is (1+D(D+3) / 2). The components are expressed as the signal X(t) and the coefficient vector w (c,k,m) The parameter constraints can be reduced by expressing the coefficient vector w(c,k,m) The constraint is x(t)x(t) T The only difference is that the values of the elements corresponding to the diagonal components of x(t)x(t) are less than 0. T The elements corresponding to the diagonal components of the coefficient vector w (c,k,m) It is the element represented by (d / 2(2D+3-d)|d=1, ..., D).
[0031] Here, according to equation (4), the logarithm of multiple normal distribution components constituting the GMM of a known class is expressed as the following equation (16): w N (c,k,k´,m) is the constant term of the logarithmic normal distribution component.
[0032]
number
[0033] According to equation (8), 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 the following equation (17). w ε (c,k,m) is the coefficient of the linear function term of the logarithmic complementary event distribution component. w C (c,k,m) is the constant term of the logarithmic complementary distribution component.
[0034]
number
[0035] In this way, according to formula (17), 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 (17), 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.
[0036] In other words, according to equations (16) and (17), class identification including the complementary event class that does not belong to the known class can be performed by calculating the parameter θ' shown in equation (18). The parameter θ' is the prior probability p (c = 0) of the complementary event class, the weighting coefficient w (c、k、m) , weighting factor w ε (c、k、m) , constant w N (c、k、k´,m) , constant w C (c、k,m) Includes.
[0037]
number
[0038] "Network structure of mathematical models" The configuration of the mathematical model expressing the posterior probability shown in equations (16) and (17) will be described below. FIG. 4 is a diagram showing the structure of the mathematical model according to the first embodiment. As shown in FIG. 4, the mathematical model 90 is a seven-layer network. That is, the mathematical model 90 includes a first layer 91, a second layer 92, a third layer 93, a fourth layer 94, a fifth layer 95, a sixth layer 96, and a seventh layer 97. The mathematical model 90 has a feedback loop between the fourth layer 94 and the fifth layer 95.
[0039] The first layer 91 of the mathematical model 90 receives an input of a vector X(t) obtained by a nonlinear transformation according to equation (14). The vector X(t) 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(t) (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 at time t is (1) I h (t) is the activation function of the h-th node in the first layer 91 at time t, as shown in the following equation (19). (1) O h (t) is as shown in the following equation (20).
[0040]
number
number
[0041] The second layer 92 of the mathematical model 90 has C×K×M nodes. In the mathematical model 90 according to the first embodiment, the number of states related to the HMM for each class is equal. That is, K1=K2=...K C In the mathematical model 90 according to the first embodiment, the number of normal distributions related to the GMM for each class is equal. 1,1 =M 1,2 =……M c,k =M. 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 (c, k, m)-th node of the second layer 92 represents the output vector of the first layer 91. (1) The (c, k, m)th node receives the output vector of the first layer 91 input by full connection. (1) Each element of O and the weighting coefficient w (c、k、m) The sum of the products of the above is calculated and the calculated value is output. That is, the linear transformation function of the (c, k, m)-th node of the second layer 92 at time t is calculated. (2) I c,k,m (t) is the activation function of the (c, k, m)-th node in the second layer 92 at time t, as shown in the following equation (21). (2) O c、k,m (t) is as shown in the following formula (22). Hereinafter, the (c, k, m)th refers to the ((c-1)×K×M+(k-1)×M+m)th.
[0042]
number
number
[0043] The third layer 93 of the mathematical model 90 has (2+K)×C×K×M nodes. 2 The system comprises a first normal distribution calculation unit 93A having C×K×M nodes, a second normal distribution calculation unit 93B having C×K×M nodes, and a quadratic function calculation unit 93C having C×K×M nodes.
[0044] Each node of the first normal distribution calculation unit 93A represents a logarithmic normal distribution component. In the first normal distribution calculation unit 93A, a node ((c, k, k', m)-th node) representing the m-th normal distribution component in the c-th class when the previous state is k' and the current state is k is a corresponding output vector in the second layer 92. (2) O c,k,m The (c, k, k', m)-th node of the first normal distribution calculation unit 93A receives the elements of (t) as input values. (2) O c,k,m Elements of (t) and the constant term w N (c,k,k´,m) The first normal distribution calculation unit 93A calculates the sum of the (c, k, k', m)-th node and outputs the calculated value. (3A) I c,k,k´,m (t) is as shown in the following formula (23), and is the activation function of the (c, k, k', m)-th node of the first normal distribution calculation unit 93A. (3A) O c,k,k´,m (t) is as shown in the following equation (24).
[0045]
number
number
[0046] Each node of the second normal distribution calculation unit 93B represents a normal distribution term of a logarithmic complementary event distribution component. The node ((c, k, m)-th node) representing the normal distribution term of the m-th complementary event distribution component in the state k of the c-th class in the second normal distribution calculation unit 93B represents the normal distribution term of the corresponding output vector in the second layer 92. (2) O c,k,m The (c, k, m)-th node of the second normal distribution calculation unit 93B receives the elements of (t) as input values. (2) O c,k,m (t) elements and coefficients w ε (c,k,m) and the constant term w C (c,k、m) The second normal distribution calculation unit 93B calculates the sum of the (c, k, m)-th node and outputs the calculated value. (3B) I c,k,m (t) is as shown in the following formula (25), and is the activation function of the (c, k, m)-th node of the second normal distribution calculation unit 93B. (3B) O c,k,m (t) is as shown in the following equation (26).
[0047]
number
number
[0048] Each node of the quadratic function calculation unit 93C represents a quadratic function term of a logarithmic complementary event distribution component. A node ((c, k, m)-th node) representing a quadratic function term of the m-th complementary event distribution component in the state k of the c-th class in the quadratic function calculation unit 93C represents a quadratic function term of the corresponding output vector in the second layer 92. (2) O c,k,m The (c, k, m)-th node of the quadratic function calculation unit 93C receives the elements of (t) as input values. (2) O c,k,m The element of (t) is multiplied by -1, and the logarithm of the calculation result is output. That is, the linear transformation function of the (c, k, m)-th node of the quadratic function calculation unit 93C is(3C) I c,k,m (t) is as shown in the following formula (27), and is the activation function of the (c, k, m)-th node of the quadratic function calculation unit 93C. (3B) O c,k,m (t) is as shown in the following equation (28).
[0049]
number
number
[0050] The fourth layer 94 of the mathematical model 90 has C×K×(K+M) nodes. 2 The GMM calculation unit 94A has C×K×M nodes, and the complementary event distribution component calculation unit 94B has C×K×M nodes.
[0051] The (c,k,k')th node of the GMM calculation unit 94A represents a GMM showing the probability distribution of class c when the previous state is k' and the current state is k. The (c,k,k')th node of the GMM calculation unit 94A receives as input the output values of the (c,k,k',1)th to (c,k,k',M)th nodes of the first normal distribution calculation unit 93A and the previous (time t-1) calculation result of the (c,k)th node of the state probability calculation unit 95A of the fifth layer 95, and outputs the product thereof. In other words, the linear transformation function of the (c,k,k')th node of the GMM calculation unit 94A is (4A) I c,k,k´ (t) is as shown in the following equation (29), and is the activation function of the (c, k, k')th node of the GMM calculation unit 94A. (4A) O c,k,k´ (t) is as shown in the following equation (30): That is, the GMM calculation unit 94A determines the GMM for each class based on the previous signal x(t-1).
[0052]
number
number
[0053] Each node of the complementary event distribution component calculation unit 94B represents a complementary event distribution component. The (c, k, m)th node of the complementary event distribution component calculation unit 94B receives the output value of the (c, k, m)th node of the second normal distribution calculation unit 93B and the output value of the (c, k, m)th node of the quadratic function calculation unit 93C, and outputs a value that takes the input value as the exponent of Napier's constant e. In other words, the linear transformation function of the (c, k, m)th node of the complementary event distribution component calculation unit 94B is (4B) I c,k,m (t) is as shown in the following formula (31), and is the activation function of the (c, k, m)-th node of the complementary event distribution component calculation unit 94B. (4B) O c,k,m (t) is as shown in the following equation (32).
[0054]
number
number
[0055] The fifth layer 95 of the mathematical model 90 has 2×C×K nodes. The fifth layer 95 is composed of a state probability calculation unit 95A having C×K nodes and a CGMM calculation unit 95B having C×K nodes.
[0056] The (c, k)th node of the state probability calculation unit 95A receives the output values of the (c, k, 1)th to (c, k, K)th nodes of the GMM calculation unit 94A and outputs the sum of the input values. That is, the linear transformation function of the (c, k)th node of the state probability calculation unit 95A is (5A) I c,k (t) is as shown in the following formula (33), and is the activation function of the (c, k)-th node of the state probability calculation unit 95A. (5A) O c,k (t) is as shown in the following equation (34).
[0057]
number
number
[0058] The (c, k)th node of the CGMM calculation unit 95B receives the output values of the (c, k, 1)th to (c, k, M)th nodes of the complementary event distribution component calculation unit 94B and outputs the sum of the input values. In other words, the linear transformation function of the (c, k)th node of the CGMM calculation unit 95B is (5B) I c,k (t) is the activation function of the node of the CGMM calculation unit 95B as shown in the following formula (35). (5B) O c,k (t) is as shown in the following equation (36).
[0059]
number
number
[0060] The sixth layer 96 of the mathematical model 90 has 2×C×K nodes. The sixth layer 96 is composed of a first posterior probability calculation unit 96A having C×K nodes and a second posterior probability calculation unit 96B having C×K nodes.
[0061] The (c, k)th node of the first posterior probability calculation unit 96A receives the output value of the (c, k)th node of the state probability calculation unit 95A, and calculates the posterior probability that the signal x(t) belongs to the class c in the state k. (6A) I c,k (t) is as shown in the following formula (37), and is the activation function of the (c, k)-th node of the state probability calculation unit 95A. (6A) O c,k (t) is as shown in the following equation (38).
[0062]
number
number
[0063] The (c, k)th node of the second posterior probability calculation unit 96B receives the output value of the (c, k)th node of the CGMM calculation unit 95B, and calculates the posterior probability that the signal x(t) does not belong to the class c in the state k. (6B) I c,k (t) is as shown in the following formula (39), and is the activation function of the (c, k)-th node of the state probability calculation unit 95A. (6B) O c,k (t) is as shown in the following equation (40).
[0064]
number
number
[0065] The seventh layer 97 of the mathematical model 90 has C+1 nodes. The seventh layer 97 is composed of a known class likelihood calculation unit 97A having C nodes and a complementary event likelihood calculation unit 97B having one node.
[0066] The c-th node of the known class likelihood calculation unit 97A receives the output values of the (c,1)-th to (c,K)-th nodes of the first posterior probability calculation unit 96A and outputs the sum of the input values. That is, the linear transformation function of the c-th node of the known class likelihood calculation unit 97A is (7A) I c (t) is as shown in the following formula (41), and is the activation function of the c-th node of the known class likelihood calculation unit 97A. (7A) O c (t) is as shown in the following equation (42).
[0067]
number
number
[0068] The node of the complementary event likelihood calculation unit 97B receives the output value of each node of the second posterior probability calculation unit 96B and outputs the sum of the input values. That is, the linear transformation function of the node of the complementary event likelihood calculation unit 97B (7B) I(t) is as shown in the following equation (43), and is the activation function of the node of the known class likelihood calculation unit 97A. (7B) O(t) is as shown in the following formula (44). In other words, the complementary event likelihood calculation unit 97B calculates the probability that the signal x(t) does not belong to any of the multiple classes, based on a CGMM consisting of CGMM components corresponding to all normal distributions that constitute all possible GMMs according to the change in the signal x(t).
[0069]
number
number
[0070] Thus, the mathematical model 90 described above can represent the calculation of the likelihood of the signal x(t) for each of the C known classes and one complementary event class.
[0071] 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. 5 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.
[0072] 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(c=0) of the complementary event class, the weighting coefficient w (c,k、m) , weighting factor w ε (c,k、k´,m) , constant w N (c,k,m) , constant w C (c,k,m) Includes. The dataset receiving unit 22 receives input of a plurality of datasets used for training the mathematical model 90. The dataset has a time-series signal x as an input sample and a time series of labels of a class to which the time-series signal x belongs as an output sample.
[0073] 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.
[0074] The transform unit 24 performs a nonlinear transform on the input sample x(t) in accordance with equation (14) to obtain a signal X(t).
[0075] The first learning unit 25 uses the time-series signal x related to the learning data set to calculate the weighting coefficient w of the mathematical model 90 by the backpropagation method. (c,k,m) , weighting factor w ε (c、k、k´、m) , constant w N (c、k,m) , constant w C (c、k,m) Specifically, the first learning unit 25 calculates the classification error for a certain sample based on the output value calculated by inputting the input sample x(t) to the mathematical model 90 in time sequence 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 (45). The first learning unit 25 updates the weighting coefficient w (c,k,m) , weighting factor w ε (c、k、k´、m) , constant wN (c、k,m) , constant w C (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(c=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(c=0) in the learning stage of other weighting coefficients.
[0076]
number
[0077] 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. That is, 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 (first normal distribution calculation unit 93A, second normal distribution calculation unit 93B, quadratic function calculation unit 93C), a fourth layer 94 (GMM calculation unit 94A, complementary event distribution component calculation unit 94B), a fifth layer 95 (state probability calculation unit 95A, CGMM calculation unit 95B), a sixth layer 96 (first posterior probability calculation unit 96A, second posterior probability calculation unit 96B), and a seventh layer 97 (known class likelihood calculation unit 97A, complementary event likelihood calculation unit 97B). Specifically, the evaluation unit 26 calculates an evaluation value P Recall Calculate.
[0078]
number
[0079] Here, Φ c denotes the number of input samples of class c that are correctly identified. c denotes the number of incorrectly identified input samples of class c.
[0080] The second learning unit 27 calculates the evaluation value P RecallWhether 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(c=0) of the complementary event class. Specifically, the second learning unit 27 updates the prior probability p(c=0) of the complementary event class by adding a predetermined update amount p0 to the current prior probability p(c=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.
[0081] The output unit 28 outputs the learned model of the mathematical model 90 that has completed the learning process to the classification device 10.
[0082] Operation of the learning device 20 FIG. 6 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).
[0083] 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 (c、k、m) , weighting factor w ε (c、k、k´、m) , constant w N (c,k,m) , constant w C (c,k,m) ) (step S4). The first learning unit 25 determines whether the classification error J obtained by equation (45) 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.
[0084] 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 Recall It is determined whether or not the discrimination rate is equal to or lower than a predetermined allowable threshold value (step S7).
[0085] Evaluation value P Recall If is greater than the tolerance threshold (step S7: NO), the evaluation unit 26 updates the prior probability p(c=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).
[0086] 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. 7 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.
[0087] 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 performs nonlinear conversion on the input data x(t) in accordance with equation (14) to obtain a signal X(t). The identification unit 15 inputs the signal X(t) converted by the conversion unit 14 into the trained model stored in the model storage unit 12, thereby calculating the likelihood of multiple classes of the signal X(t), and evaluating 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, a quadratic function calculation unit 93C), a fourth layer 94 (a GMM calculation unit 94A, an auxiliary event distribution component calculation unit 94B), a fifth layer 95 (a state probability calculation unit 95A, a CGMM calculation unit 95B), a sixth layer 96 (a first posterior probability calculation unit 96A, a second posterior probability calculation unit 96B), and a seventh layer 97 (a known class likelihood calculation unit 97A, an auxiliary event likelihood calculation unit 97B). The output unit 16 outputs the evaluation result by the identification unit 15 .
[0088] Operation of the Identification Device 10 8 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.
[0089] The data input unit 13 of the identification device 10 accepts input of 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 identification unit 15 inputs the signal X(t) converted in step S12 into a trained model stored in the model storage unit 12, thereby calculating the likelihood of a plurality of classes of the signal X(t) (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). The data input unit 13 determines whether or not there is next input data (step S16). If there is next input data (step S16: YES), the data input unit 13 returns the process to step S11 and continues the evaluation on the input data at the next time. If there is no next input data (step S16: NO), the identification device 10 ends the process.
[0090] Actions and Effects As described above, the mathematical model 90 according to the first embodiment includes a GMM calculation unit 94A, a known class likelihood calculation unit 97A, and a complementary event likelihood calculation unit 97B. The GMM calculation unit 94A determines a GMM for each class based on the previous signal. The known class likelihood calculation unit 97A estimates which of a plurality of classes the signal belongs to based on the GMM for each class represented by the GMM calculation unit 94A. The complementary event likelihood calculation unit 97B estimates whether the signal does not belong to any class based on a mixed complementary event distribution represented by the sum of complementary event distribution components for each normal distribution constituting all GMMs that can be taken according to the change in the signal. In this way, according to the first embodiment, it is possible to calculate the probability of belonging to a class and the probability of belonging to no class while changing the GMM distribution based on the previous signal.
[0091] It should be noted that the HMM having the GMM can perform class classification taking into account the time series. On the other hand, since signals that do not belong to any class are not included in the learning data set in the first place, it is difficult to create an HMM that represents the state transition of outputting a signal that does not belong to any class. In contrast, in the mathematical model 90 according to the first embodiment, the CGMM is designed assuming that the probability distribution in which a signal does not belong to any class does not change state (the number of states is 1) and is distributed around the probability distribution in all states represented by the HMM. This makes it possible to obtain the probability that a signal does not belong to any class while taking into account the state transition based on the HMM for known classes.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] In the mathematical model 90 according to the embodiment described above, the part common to the quadratic function and the normal distribution function constituting the CGMM is first calculated in the second layer 92, and then the quadratic function and the normal distribution function are obtained separately to calculate the CGMM, but this is not limited to the above. For example, the mathematical model 90 according to another embodiment may calculate the CGMM using a method such as that described in Patent Document 1. In another embodiment, the class identification system 1 may use a probability model of GMM and CGMM that is not a neural network. In this case, the probability of a known class is calculated based on an HMM, and the probability of an unknown class is calculated by a CGMM based on a GMM for all states of the HMM.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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]
[0100] 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...Splitting unit 24...Conversion unit 25...First learning unit 26...Evaluation unit 27...Second learning unit 28...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...GMM calculation unit 94B...Extra event distribution component calculation unit 95...Fifth layer 95A...State probability calculation unit 95B...CGMM calculation unit 96...Sixth layer 96A...First posterior probability calculation unit 96B: Second posterior probability calculation unit 97: Seventh layer 97A: Known class likelihood calculation unit 97B: Complementary event likelihood calculation unit
Claims
1. 1. An estimation device for estimating whether a time-varying signal belongs to one of a number of classes or to none of the classes, the device comprising: A determination step of determining a mixed normal distribution for each class that represents a probability density by the sum of multiple normal distributions based on the previous signal; an estimation step of estimating whether the signal belongs to any of the plurality of classes or to none of the classes, based on a mixed normal distribution represented by a sum of complementary event distributions represented by a product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, for each normal distribution constituting all mixed normal distributions that can be taken according to a change in the signal, and a mixed normal distribution for each class; An estimation device that performs the above.
2. The mixed normal distribution and the mixed complementary event distribution are represented by a neural network model; The neural network model is an input layer to which a feature vector representing the signal is input; a first intermediate layer having a first parameter group representing coefficients of each normal distribution constituting all of the mixed normal distributions, and calculating a first intermediate vector based on the feature vector and the first parameter group; a second hidden layer that calculates a second intermediate vector based on a feedback vector, the feedback vector being a vector generated by a layer subsequent to the second hidden layer based on a previous signal, and the first intermediate vector; a first output layer that calculates, for each of the plurality of classes, a likelihood that the signal belongs to the class based on the second intermediate vector; a third intermediate layer having a second parameter group representing coefficients of the quadratic functions related to each of the normal distributions constituting all of the mixed normal distributions, and calculating a third intermediate vector based on the first intermediate vector and the second parameter group; a second output layer that calculates a likelihood that the signal does not belong to any of the plurality of classes based on the third intermediate vector; Equipped with In the determining step, a calculation of the second hidden layer of the neural network model is performed; In the estimation step, calculations are performed on the first output layer and the second output layer. The estimation device according to claim 1 .
3. 1. A method for estimating whether a time-varying signal belongs to one or none of a number of classes, the method comprising the steps of: A determination step in which the computer determines a mixed normal distribution for each class that represents a probability density by the sum of a plurality of normal distributions based on the previous signal; an estimation step in which the computer estimates whether the signal belongs to any of the plurality of classes or to none of the classes, based on a mixed normal distribution represented by a sum of complementary event distributions represented by a product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, for each of all mixed normal distributions that can be taken according to a change in the signal, and a mixed normal distribution for each class; The estimation method comprises:
4. A program for causing a computer to estimate whether a time-varying signal belongs to one of a plurality of classes or does not belong to any of the classes, the program comprising: The computer includes: A determination step of determining a mixed normal distribution for each class that represents a probability density by the sum of multiple normal distributions based on the previous signal; an estimation step of estimating whether the signal belongs to any of the plurality of classes or to none of the classes, based on a mixed normal distribution represented by a sum of mixed normal distributions represented by a product of the normal distribution and a quadratic function based on a coefficient related to the normal distribution, for each of all mixed normal distributions that can be taken according to a change in the signal, and a mixed normal distribution for each class; A program for executing the above.
5. an input layer to which a feature vector is input; a first intermediate layer having a first parameter group representing coefficients of all normal distributions constituting a mixed normal distribution for each class that represents a probability density by the sum of a plurality of normal distributions, and calculating a first intermediate vector based on the feature vector and the first parameter group; a second hidden layer that calculates a second intermediate vector based on a feedback vector, the feedback vector being a vector generated by a layer subsequent to the second hidden layer based on a previous signal, and the first intermediate vector; a first output layer that calculates, for each of a plurality of classes, a likelihood that the signal belongs to the class based on the second intermediate vector; a third intermediate layer having a second parameter group representing coefficients of the quadratic functions related to each of the normal distributions constituting all of the mixed normal distributions, and calculating a third intermediate vector based on the first intermediate vector and the second parameter group; a second output layer that calculates a likelihood that the signal does not belong to any of the plurality of classes based on the third intermediate vector; A trained neural network model comprising: On the computer, inputting the feature vector into the input layer; calculating the feedback vector based on a previous feature vector; calculating the first intermediate vector based on the feature vector and the first set of parameters; calculating the second intermediate vector based on the feedback vector and the first intermediate vector; calculating a likelihood of each of the plurality of classes based on the second intermediate vector; calculating a third intermediate vector based on the first intermediate vector and the second set of parameters; calculating a likelihood that the signal does not belong to any of the classes based on the third intermediate vector; A neural network model that executes the above.
Citation Information
Patent Citations
Detect unknown classes and initialize classifier for unknown classes
JP2018528525A
Calculator, method for calculation, and program
JP2021144659A
Detection of unknown classes and initialization of classifiers for unknown classes
US20170039469A1
Cited By
Phased circular array of planar omnidirectional radiating elements
US12327925B2
