Learning method, device and program

The proposed learning method reduces data and computational requirements by using decision trees to efficiently divide and update feature datasets, addressing inefficiencies in conventional neural network-based learning methods.

JP7559957B2Active Publication Date: 2024-10-02NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023539485
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-05
Publication Date
2024-10-02
Estimated Expiration
2041-08-05

AI Technical Summary

Technical Problem

Conventional learning methods using neural networks require a large amount of data and computational resources during training and detection, which is inefficient.

Method used

A learning method that involves feature calculation, selection, and impurity calculation to reduce the amount of learning data and computational requirements, utilizing decision trees to divide feature datasets based on impurity measures and threshold values, and updating decision trees through probabilistic sampling.

Benefits of technology

This approach generates a learning result that requires less data and computational resources during training and detection, while maintaining accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559957000001
    Figure 0007559957000001
  • Figure 0007559957000002
    Figure 0007559957000002
  • Figure 0007559957000003
    Figure 0007559957000003
Patent Text Reader

Abstract

This learning device is equipped with a feature amount calculation unit 1, a feature amount data set storage unit 2, a feature amount data set selection unit 3, an impurity degree calculation unit 4, a parameter set storage unit 5, a division unit 6, a parameter set determination unit 7, a parameter set storage unit 8, and a division stop reference determination unit 9. The nodes and leaves of a decision tree are determined by dividing the plurality of feature amount data sets using the division unit 6 on the basis of the degree of impurity calculated by the impurity degree calculation unit 4. A parameter corresponding to each node is determined by the parameter set determination unit 7. Labels are applied to leaves by the division stop reference determination unit 9.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to machine learning technology. [Background technology]

[0002] As a conventional learning device 100, a method of automatically learning from a large amount of data using a neural network is known (see, for example, Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Raghavendra Chalapathy and Sanjay Chawla., "Deep Learning for Anomaly Detection: A Survey", arXiv:1901.03407 [cs, stat], January 2019. arXiv: 1901.03407. Summary of the Invention [Problem to be solved by the invention]

[0004] However, the technology of Non-Patent Document 1 has problems in that a large amount of learning data is required during learning, and the amount of calculation required during detection is large.

[0005] An object of the present invention is to provide a learning method, device, and program that generate learning results that require a smaller amount of learning data during learning and a smaller amount of calculation during detection than conventional methods. [Means for solving the problem]

[0006] A learning method according to one aspect of the present invention includes a feature calculation step in which a feature calculation unit calculates a feature for each frame of a predetermined time length from input time series data, a feature dataset selection step in which a feature dataset is a set of features of a plurality of frames and labels corresponding to the features of the plurality of frames, and a feature dataset selection unit selects a set of feature datasets to be divided from a feature dataset storage unit in which a plurality of feature datasets are stored, an impurity calculation step in which an impurity calculation unit calculates, from the plurality of feature datasets included in the selected set, an impurity having a larger value the more types of labels included in the feature dataset and / or the more sets for each label are equal, and a division step in which a parameter set is a set of a feature type, a threshold value, and a frequency threshold value, and a division unit divides each of the plurality of feature datasets included in the selected set into feature datasets corresponding to the type of feature, based on a set of a feature type, a threshold value, and a frequency threshold value corresponding to a parameter set read from a parameter set storage unit in which a plurality of mutually different parameter sets are stored. a division step of dividing the feature dataset into a feature dataset in which a frequency at which a feature amount in the feature dataset exceeds a threshold is equal to or greater than a frequency threshold, and a feature dataset in which a frequency at which a feature amount in the feature dataset exceeds a threshold is not equal to or greater than a frequency threshold, the feature dataset corresponding to a type of feature amount, the frequency at which a feature amount in the feature dataset exceeds a threshold is equal to or greater than a frequency threshold; the first feature dataset identification information is identification information for identifying a set of feature datasets in which a feature amount in the feature dataset exceeds a threshold is equal to or greater than a frequency threshold, the second feature dataset identification information is identification information for identifying a set of feature datasets in which a feature amount in the feature dataset exceeds a threshold is equal to or greater than a frequency threshold, the impurity calculation unit calculates a first impurity, which is a first impurity, from the feature dataset included in the set identified by the first feature dataset identification information, and a second impurity, which is a second impurity, from the feature dataset included in the set identified by the second feature dataset identification information; and in the division step and the impurity calculation step, the processes of the division step and the impurity calculation step are performed for each of the plurality of parameter sets,a parameter set determination step in which a first impurity and a second impurity are calculated for each of a plurality of parameter sets, and a parameter set determination unit determines a parameter set which produces the largest output value when the impurity, the first impurity, and the second impurity are input to a predetermined function which is monotonically non-decreasing for the impurity and monotonically non-increasing for the first impurity and the second impurity, and outputs feature dataset identification information which is identification information for identifying a set of a plurality of feature datasets which have been subjected to division, the determined parameter set, and the first feature dataset identification information and the second feature dataset identification information corresponding to the determined parameter set; and a parameter set storage unit stores the feature dataset identification information which is identification information for identifying a set of a plurality of feature datasets which have been subjected to division output by the parameter set determination unit, the determined parameter set, and the first feature dataset identification information and the second feature dataset identification information corresponding to the determined parameter set, and a division stop criterion determination unit determines whether the feature dataset identification information is a predetermined and (1) if it is determined that the division stop criterion is satisfied, further storing in the parameter set storage unit a label that is the most numerous among the labels included in the feature dataset identified by the feature dataset identification information as a label corresponding to the feature dataset identification information, and deleting the feature dataset identified by the feature dataset identification information from the feature dataset storage unit; and (2) if it is determined that the division stop criterion is not satisfied, storing the first feature dataset identification information and the second feature dataset identification information in the feature dataset storage unit. The method further includes a division stop criterion determination step, in which the feature dataset selection step, the impurity calculation step, the division step, the parameter set determination step and the division stop criterion determination step are repeated until there are no feature datasets stored in the feature dataset storage unit. The feature calculation step is a step of calculating a plurality of types of features for each frame of a predetermined time length from the input time series data, and the feature group selection unit selects from the plurality of types of features:The method further includes a feature group selection step of selecting a feature group composed of at least one type of feature, the learning data being feature data set identification information, parameter set, first feature data set identification information, second feature data set identification information and labels stored in the parameter set storage unit, the feature data set selection step, impurity calculation step, division step, parameter set determination step and division stop criterion determination step are repeated for the selected feature group to generate learning data corresponding to the selected feature group, and the learning score calculation unit calculates labels corresponding to the features of a plurality of frames corresponding to the selected feature group using the learning data corresponding to the selected feature group. the method further includes a learning score calculation step of estimating a label corresponding to a selected feature group from among the labels of the feature groups, and calculating a learning score having a larger value as the estimated label matches a ground truth label, which is a label included in a feature dataset corresponding to the selected feature group; the method further includes a determination step of repeatedly performing the processes of the feature group selection step, the feature dataset selection step, the impurity calculation step, the partitioning step, the parameter set determination step, the partitioning stop criterion determination step, and the learning score calculation step, calculating a learning score for each of a plurality of different feature groups, determining a feature group corresponding to the highest learning score among the calculated learning scores, and outputting the learning data corresponding to the determined feature group as final learning data.

[0007] A learning method according to one aspect of the present invention includes a feature calculation step in which a feature calculation unit calculates multiple types of feature amounts for each frame of a predetermined time length from input time series data, a feature data set is a set of features of multiple frames and labels corresponding to the features of the multiple frames, a feature data set storage unit stores multiple feature data sets, a parameter set is a set of feature types, thresholds, and frequency thresholds, a parameter set is associated with a node other than the leaf of the decision tree, and a label is associated with a node that is a leaf of the decision tree, and a feature selection probability determination step in which a feature selection probability is determined for each type of feature amount such that a feature amount type that has a higher frequency has a higher feature selection probability, and an update unit (1) selects one node that is a leaf of the decision tree and determines whether to delete or grow the selected node, and (1-1) if a node is to be deleted, updates the parameter set corresponding to a parent node of the node. (1-2) when a node is to be grown, a parameter set and a decision tree are provisionally updated by selecting a type of feature in accordance with a feature selection probability, selecting a threshold and a frequency threshold corresponding to the selected type of feature, and setting the selected type of feature, threshold, and frequency threshold as a parameter set of the node; (2) using the provisionally updated parameter set and decision tree, estimate labels corresponding to a plurality of feature datasets read from the feature dataset storage unit, and calculate an evaluation value based on a degree of agreement between the estimated labels and correct labels, which are labels included in the read feature dataset, and on the complexity of the provisionally updated decision tree; and (3) if the evaluation value calculated this time is improved compared to the evaluation value calculated last time, set the provisionally updated parameter set as an updated parameter set and set the provisionally updated decision tree as an updated decision tree.The processing of the feature selection probability determination unit and the update unit is repeated for the updated parameter set and the updated decision tree. Effect of the Invention

[0008] A learning result can be generated that requires a smaller amount of learning data during learning and reduces the amount of calculation required during detection. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of a functional configuration of a learning device. [Diagram 2] FIG. 2 is a diagram showing an example of a processing procedure of the learning method. [Diagram 3] FIG. 3 is a diagram illustrating an example of a functional configuration of the detection device. [Figure 4] FIG. 4 is a diagram showing an example of a processing procedure of the detection method. [Diagram 5] FIG. 5 is a diagram for explaining an example of the processing of the learning device and method. [Figure 6] FIG. 6 is a diagram for explaining an example of a decision tree. [Figure 7] FIG. 7 is a diagram illustrating an example of a functional configuration of a computer. [Figure 8] FIG. 8 is a diagram illustrating an example of a functional configuration of a learning device according to the second embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of a functional configuration of the learning score calculation unit. [Figure 10] FIG. 10 is a diagram illustrating an example of a processing procedure of the learning method according to the second embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a functional configuration of a learning device according to the third embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of a functional configuration of the update unit. [Figure 13] FIG. 13 is a diagram illustrating an example of a processing procedure of the learning method according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described in detail. In the drawings, components having the same functions are designated by the same reference numerals, and duplicated explanations will be omitted.

[0011] (First embodiment) [Learning device and method] As shown in FIG. 1 , the learning device includes, for example, a feature calculation unit 1, a feature dataset storage unit 2, a feature dataset selection unit 3, an impurity calculation unit 4, a parameter set storage unit 5, a division unit 6, a parameter set determination unit 7, a parameter set accumulation unit 8, and a division stop criterion judgment unit 9.

[0012] The learning method is realized, for example, by each component of the learning device performing the processes from step S1 to step S9 described below and shown in FIG.

[0013] Each component of the learning device will now be described.

[0014] <Feature Calculation Unit 1> The feature amount calculation unit 1 receives time-series data.

[0015] The feature amount calculation unit 1 calculates a feature amount for each frame of a predetermined time length from input time series data (step S1).

[0016] The calculated feature amount for each frame is output to the feature amount data set storage unit 2.

[0017] The time series data is, for example, a sound signal such as a voice signal, an acoustic signal, etc. The time series data may be a signal such as a video signal, an image signal, etc.

[0018] The feature amount is, for example, at least one of the height of the autocorrelation peak of the input time series data, its position, low-frequency power, mid-frequency power, and wide-frequency power. Other existing feature amounts may also be used as the feature amount.

[0019] It is assumed that a predetermined label is associated with the time-series data. For example, it is assumed that labels such as "baby crying" and "not baby crying" are associated with the time-series data that is an audio signal.

[0020] <Feature data set storage unit 2> A plurality of feature amount data sets are stored in the feature amount data set storage unit 2 (step S2). For example, m feature amount data sets are stored in the feature amount data set storage unit 2. m is a positive integer equal to or greater than 2, for example, m=1000.

[0021] Here, the feature data set is a set of features of a plurality of frames and labels corresponding to the features of the plurality of frames.

[0022] In other words, the feature dataset is a set of features of k frames and labels corresponding to the k frames, where k is a positive integer equal to or greater than 2, for example, k=100.

[0023] For example, when the feature calculation unit 1 calculates features of multiple frames based on time series data to which the label "baby crying" is associated, the label "baby crying" will also be associated with the features of the multiple frames.

[0024] Note that identification information for identifying a set to which the feature dataset belongs is further stored in the feature dataset storage unit 2. For example, identification information called identification information D0 is given to the entire set of feature datasets stored in the feature dataset storage unit 2. The identification information is, for example, a numerical value different from each other.

[0025] The division stop criterion determination unit 9, which will be described later, adds the first feature amount data set identification information and the second feature amount data set identification information.

[0026] <Feature Data Set Selection Part 3> The feature amount data set selection unit 3 selects a set of feature amount data sets to be subjected to division from the feature amount data sets stored in the feature amount data set storage unit 2 (step S3).

[0027] The feature dataset included in the selected set is output to the impurity calculation unit 4 or the division unit 6. Information on the feature dataset included in the selected set, in other words, “feature dataset identification information” to be described later, is output to the parameter set determination unit 7 and the division stop criterion determination unit 9.

[0028] The feature data set selection unit 3 performs processing multiple times as described below, and in the first processing, the feature data set selection unit 3 selects a set identified by identification information D0. In the second and subsequent processing, the feature data set selection unit 3 selects a set of feature data sets identified by identification information that has not been selected before.

[0029] <Impurity calculation section 4> The impurity calculation unit 4 receives as input a plurality of feature data sets included in the set selected by the feature data set selection unit 3 or a feature data set divided by the division unit 6 .

[0030] The impurity calculation unit 4 performs the process of step S41 or step S42 described below according to the input feature amount data set.

[0031] <<Description of the Processing of Step S41 by the Impurity Calculation Unit 4>> When multiple feature datasets included in the set selected by the feature dataset selection unit 3 are input, the impurity calculation unit 4 calculates an impurity from the multiple input feature datasets, the impurity having a larger value the more types of labels included in the feature dataset and / or the more equal the number of sets for each label (step S41).

[0032] The calculated impurity is output to the parameter set determination unit 7.

[0033] As the impurity, for example, the so-called Gini impurity, entropy can be used.

[0034] Let N be the number of feature datasets, L be the number of label types included in the feature dataset, and l = 1, ..., L. N l Let be the number of feature datasets whose corresponding label is the l-th label, and p l =N l / N. In this case, the impurity can be calculated, for example, as follows:

[0035] (Gini Impurity) 1-Σ l=1 L p l 2 (Entropy)Σ l=1 L -p l logp l <<Description of the Processing of Step S42 by the Impurity Calculation Unit 4>> When a feature dataset divided by the division unit 6 is input, the impurity calculation unit 4 calculates a first impurity, which is a first impurity, from the feature dataset included in the set identified by the first feature dataset identification information, and a second impurity, which is a second impurity, from the feature dataset included in the set identified by the second feature dataset identification information (step S42).

[0036] The definition and examples of impurity are the same as those explained in <<Explanation of the Processing of Step S41 by Impurity Calculation Unit 4>>.

[0037] The calculated first impurity and second impurity are output to the parameter set determination unit 7.

[0038] <Parameter set storage unit 5> The parameter set storage unit 5 stores a plurality of parameter sets that are different from each other.

[0039] A parameter set is a combination of multiple parameters, for example, a combination of a feature type, a threshold, and a frequency threshold.

[0040] <Divided part 6> The dividing unit 6 receives an input of a set of feature data sets to be divided, selected by the feature data set selecting unit 3. In addition, the dividing unit 6 receives an input of a parameter set read from the parameter set storage unit 5.

[0041] Based on the set of feature type, threshold, and frequency threshold corresponding to the parameter set read from the parameter set storage unit 5, the division unit 6 divides each of the multiple feature data sets included in the set selected by the feature data set selection unit 3 into a feature data set corresponding to the feature type, in which the frequency at which the feature in the feature data set exceeds the threshold is equal to or greater than the frequency threshold, and a feature data set corresponding to the feature type, in which the frequency at which the feature in the feature data set exceeds the threshold is equal to or greater than the frequency threshold (step S6).

[0042] The divided feature data set is output to the impurity calculation unit 4.

[0043] Here, when we simply write “type of feature,” “threshold,” and “frequency threshold,” we mean the “type of feature,” “threshold,” and “frequency threshold” that correspond to the parameter set read from the parameter set memory unit 5.

[0044] Here, the first feature data set identification information is identification information that identifies a set of feature data sets in which the frequency with which a feature in the feature data set exceeds a threshold, corresponding to a type of feature, is equal to or greater than a frequency threshold.

[0045] In addition, the second feature data set identification information is identification information that identifies a set of feature data sets corresponding to a type of feature and in which the frequency with which a feature in the feature data set exceeds a threshold does not exceed a frequency threshold.

[0046] It can be said that the division unit 6 divides each of the multiple feature datasets included in the set selected by the feature dataset selection unit 3 so that it is included in either a set identified by first feature dataset identification information or a set identified by second feature dataset identification information, based on a set of feature type, threshold, and frequency threshold corresponding to the parameter set read from the parameter set storage unit 5. The first feature dataset identification information and the second feature dataset identification information are output to the impurity calculation unit 4 and the parameter set determination unit 7.

[0047] In order to determine whether the frequency at which a feature in the feature data set corresponding to the type of feature exceeds the threshold is equal to or greater than the frequency threshold C, the division unit 6 may determine whether the frequency at which a feature in the feature data set corresponding to the type of feature does not exceed the threshold is less than a predetermined frequency threshold C'. Here, if the number of features in the feature data set corresponding to the type of feature is M, then there is a relationship of C=M-C'.

[0048] After the process of step S6 by the dividing unit 6, the process of step S42 by the impurity calculation unit 4 described above is carried out.

[0049] Here, the division unit 6 and the impurity calculation unit 4 calculate the first impurity and the second impurity for each of the multiple parameter sets by performing processing of the division unit 6 and the impurity calculation unit 4 (specifically, steps S6 and S42) for each of the multiple parameter sets.

[0050] In other words, the dividing unit 6 and the impurity calculation unit 4 calculate the first impurity and the second impurity corresponding to each of the multiple parameter sets for a certain set selected by the feature data set selection unit 3.

[0051] <Parameter set determination unit 7> The parameter set determination unit 7 receives as input the feature dataset identification information selected by the feature dataset selection unit 3, the first feature dataset identification information and the second feature dataset identification information obtained by the division unit 6, and the impurity, the first impurity, and the second impurity calculated by the impurity calculation unit 4.

[0052] The parameter set determination unit 7 determines a parameter set that produces the largest output value when the impurity, the first impurity, and the second impurity are input to a predetermined function that is monotonically non-decreasing for the impurity and monotonically non-increasing for the first impurity and the second impurity, and outputs feature dataset identification information, which is identification information for identifying a set of multiple feature datasets that are the subject of division, the determined parameter set, and the first feature dataset identification information and the second feature dataset identification information corresponding to the determined parameter set (step S7).

[0053] The feature amount data set identification information, the determined parameter set, and the first feature amount data set identification information and the second feature amount data set identification information corresponding to the determined parameter set are output to the parameter set storage unit 8.

[0054] The first feature amount data set identification information and the second feature amount data set identification information corresponding to the determined parameter set are output to the division stop criterion determination unit 9 .

[0055] Let G' be the impurity, Ga be the first impurity, Gb be the second impurity, N' be the number of feature datasets included in the set identified by the feature dataset identification information, Na be the number of feature datasets included in the set identified by the first feature dataset identification information, and Nb be the number of feature datasets included in the set identified by the second feature dataset identification information. The predetermined function f is, for example, f(G', Ga, Gb, N', Na, Nb) = N' x G' ​​- (Na x Ga + Nb x Gb).

[0056] <Parameter set storage unit 8> The parameter set storage unit 8 stores the feature dataset identification information, which is identification information for identifying a set of multiple feature datasets that have been subject to division and is output by the parameter set determination unit 7, the determined parameter set, and the first feature dataset identification information and second feature dataset identification information corresponding to the determined parameter set (step S8).

[0057] <Division stop criteria judgment section 9> The division stop criterion determination unit 9 receives as input the feature vector dataset identification information output by the feature vector dataset selection unit 3, and the first feature vector dataset identification information and second feature vector dataset identification information determined by the parameter set determination unit 7.

[0058] The division stop criterion determination unit 9 determines whether the feature dataset identification information satisfies a predetermined division stop criterion, and (1) if it is determined that the division stop criterion is satisfied, further accumulates in the parameter set accumulation unit 8 the most numerous label among the labels included in the feature dataset identified by the feature dataset identification information as the label corresponding to the feature dataset identification information, and deletes the feature dataset identified by the feature dataset identification information from the feature dataset storage unit 2; and (2) if it is determined that the division stop criterion is not satisfied, stores the first feature dataset identification information and the second feature dataset identification information in the feature dataset storage unit 2 (step S9).

[0059] The predetermined division stopping criterion is, for example, that the reduction amount of impurity falls below a predetermined specified value. The reduction amount of impurity is, for example, the value of the output value of a predetermined function f.

[0060] The predetermined division criterion may be that the number of data included in the divided data is less than a certain value, where the divided data is at least one of the number of feature data sets included in the set identified by the first feature data set identification information and the number of feature data sets included in the set identified by the second feature data set identification information.

[0061] The feature dataset selection unit 3, the impurity calculation unit 4, the division unit 6, the parameter set determination unit 7, and the division stop criterion determination unit 9 repeatedly perform the processing of the feature dataset selection unit 3, the impurity calculation unit 4, the division unit 6, the parameter set determination unit 7, and the division stop criterion determination unit 9 until all feature datasets stored in the feature dataset storage unit 2 are exhausted.

[0062] As a result, a label is associated with every piece of feature amount data set identification information, and information on the labels corresponding to every piece of feature amount data set identification information is stored in the parameter set storage unit 8.

[0063] Here, the feature data set identification information corresponds to a node or a leaf of the decision tree. By using the above method, the nodes and leaves of the decision tree can be determined, and a label can be associated with each leaf (more precisely, the feature data set identification information corresponding to each leaf).

[0064] A specific example will be described below with reference to FIGS.

[0065] Suppose we have a feature dataset of 1000 items.

[0066] It is assumed that the feature data set selection unit 3 selects the entire set of 1000 feature data sets (in other words, the set identified by the identification information D0) in the first processing. Then, the division unit 6 processes the 1000 feature data sets included in the set identified by the identification information D0, and divides them into the first feature data set identification information D a 500 feature datasets included in the set identified by and the second feature dataset identification information D b Assume that the feature vector data set is divided into 500 feature vector data sets included in the set identified by D. Assume that the division stopping criterion determination unit 9 determines that the division stopping criterion is not satisfied in the first processing. In this case, the identification information D a ,D bis added to the feature data set storage unit 2.

[0067] The feature data set selection unit 3 selects the discrimination information D a Then, the division unit 6 processes the set of identification information D a The 500 feature datasets included in the set identified by aa The 400 feature datasets included in the set identified by and the second feature dataset identification information D ab Assume that the feature vector data set is divided into 100 feature vector data sets included in the set identified by D. Assume that the division stopping criterion determination unit 9 determines that the division stopping criterion is not satisfied in the second processing. In this case, the identification information D aa ,D ab is added to the feature data set storage unit 2.

[0068] The feature data set selection unit 3 selects the identification information D aa Assume that the division stop criterion determination unit 9 determines that the division stop criterion is satisfied in the third process. In this case, the identification information D aa is given a corresponding label.

[0069] The feature data set selection unit 3 selects the identification information D ab Assume that the division stop criterion determination unit 9 determines that the division stop criterion is satisfied in the fourth process. In this case, the identification information D ab is given a corresponding label.

[0070] The feature data set selection unit 3 selects the discrimination information D b Assume that the division stop criterion determination unit 9 determines that the division stop criterion is satisfied in the fifth process. In this case, the identification information D b is given a corresponding label.

[0071] In this case, the identification information D0,Da ,D b ,D aa ,D ab corresponds to a node or a leaf of the decision tree, as shown in Fig. 6. In Fig. 6, nodes are indicated by black circles and leaves are indicated by black squares.

[0072] As in this example, the above process makes it possible to determine the nodes and leaves of a decision tree, and also to associate a label with each leaf.

[0073] In a typical classification problem, the amount of calculations required for detection increases depending on the type of features, but in a decision tree-based method, the amount of calculations depends on the depth of the tree, so the amount of calculations is significantly reduced, especially when there are many types of features.In addition, it is a non-parametric method and does not assume a specific distribution for the training data.

[0074] In this way, by using a method based on a decision tree, it is possible to generate learning results that require a smaller amount of training data during training and a smaller amount of calculation during detection.

[0075] [Detection device and method] As shown in FIG. 3, the detection device includes, for example, a section division unit 11, a feature amount calculation unit 12, a parameter set selection unit 13, a parameter set storage unit 8, and a data determination unit .

[0076] The detection method is realized, for example, by each component of the detection device performing the processes from step S11 to step S14 described below and shown in FIG.

[0077] <Section division section 11> The section division unit 11 receives time series data that is to be the subject of event detection.

[0078] The section division unit 11 divides the input time series data into time series data for each frame of a predetermined time length (step S11).

[0079] The divided time series data is output to the feature amount calculation unit 12.

[0080] <Feature Calculation Unit 12> The divided time series data is input to the feature amount calculation unit 12 .

[0081] The feature amount calculation unit 12 calculates the feature amount for each frame of a predetermined time length from the input time series data (step S12).

[0082] The number of features included in the feature dataset used in the learning device and method is k, and the feature calculation unit 12 sets the features of the k frames as a feature dataset. The feature calculation unit 12 outputs the features obtained by calculation as the feature dataset to the data determination unit 14. The feature dataset in the detection device and method differs from the feature dataset in the learning device and method in that it does not include labels.

[0083] The feature amounts are the same as those described in the learning device and method.

[0084] <Parameter set storage unit 8> The parameter set storage unit 8 is the same as the parameter set storage unit 8 of the learning device. Learning data obtained by processing of the learning device is stored therein.

[0085] Here, the training data refers to feature dataset identification information, which is identification information for identifying a set of multiple feature datasets that have been subject to division, the determined parameter set, first feature dataset identification information and second feature dataset identification information corresponding to the determined parameter set, and a label corresponding to the feature dataset identification information (corresponding to the leaves of the decision tree).

[0086] <Parameter set selection section 13> The parameter set selection unit 13 receives the determination result output from the data determination unit 14 .

[0087] The parameter set selection unit 13 selects a parameter set corresponding to the current node from the parameter set storage unit 8 (step S13).

[0088] In the first processing, the parameter set selection unit 13 selects the parameter set corresponding to the identification information D0, which is the root node, since the current node is the root node.

[0089] The parameter set selection unit 13, where K is a positive integer greater than or equal to 2, selects a parameter set from the Kth processing onwards based on the judgment result obtained by processing by the data judgment unit 14 which is based on the parameter set selected in the (K-1)th processing.

[0090] Specifically, when the determination result is "equal to or greater than the frequency threshold", the parameter set selection unit 13 selects a parameter set of first feature amount dataset identification information corresponding to the parameter set selected in the (K-1)th processing. Here, the parameter set of the first feature amount dataset identification information refers to the parameters determined by the parameter set determination unit 7 when the first feature amount dataset identification information is selected as the feature amount dataset identification information in the learning device and method.

[0091] Furthermore, if the determination result is not "greater than or equal to the frequency threshold", the parameter set selection unit 13 selects a parameter set of second feature amount dataset identification information corresponding to the parameter set selected in the (K-1)th processing. Here, the parameter set of the second feature amount dataset identification information refers to the parameters determined by the parameter set determination unit 7 when the second feature amount dataset identification information is selected as the feature amount dataset identification information in the learning device and method.

[0092] The parameter set selection unit 13 can obtain, from the parameter set storage unit 8, the parameter sets of the first feature amount data set identification information and the second feature amount data set identification information corresponding to the parameter set selected in the (K−1)th processing.

[0093] Note that, if label information corresponding to feature data set identification information (including first feature data set identification information and second feature data set identification information) corresponding to the parameter data set to be selected is stored in the parameter set storage unit 8, the parameter set selection unit 13 outputs that label as a label corresponding to the feature data set currently being processed.

[0094] The selected parameter set is output to the data determination unit 14 .

[0095] <Data judgment unit 14> The data determination unit 14 receives the feature data set calculated by the feature calculation unit 12 and the parameter set selected by the parameter set selection unit 13 .

[0096] The data judgment unit 14 judges whether the frequency at which a feature in the feature data set corresponding to the type of feature included in the input parameter set exceeds a threshold included in the input parameter set is equal to or greater than the frequency threshold included in the input parameter set (step S14).

[0097] The data determination unit 14 outputs the determination result to the parameter set selection unit 13 .

[0098] The processes from step S13 to step S14 are repeated until the parameter set selection unit 13 outputs a label corresponding to the feature data set currently being processed.

[0099] When a label corresponding to a certain feature data set is output from the parameter set selection unit 13, the process proceeds to steps S13 and S14, with the next feature data set being the processing target.

[0100] In this way, a label corresponding to each feature data set is output.

[0101] For example, it is assumed that the learning data corresponding to FIG.

[0102] In the first processing, the parameter set selection unit 13 selects a parameter set corresponding to the identification information D0 that is the root node. Then, it is assumed that the data determination unit 14 obtains a determination result of "equal to or greater than the frequency threshold value."

[0103] In this case, in the second processing, the parameter set selection unit 13 selects the first feature data set identification information D a Then, it is assumed that the data determination unit 14 obtains a determination result that the frequency is not "equal to or greater than the frequency threshold."

[0104] In this case, in the third processing, the parameter set selection unit 13 selects the identification information D a The second feature dataset identification information D corresponding to the parameter set ab However, the identification information D ab is identification information corresponding to the leaf, and the corresponding label is stored in the parameter set storage unit 8. Therefore, the parameter set selection unit 13 uses the identification information D ab Output the label corresponding to

[0105] Second Embodiment [Learning device and method] In event detection, the type of input feature quantity affects the detection accuracy. For this reason, the learning device and method according to the second embodiment further learns the type of feature quantity.

[0106] The learning device of the second embodiment includes, for example, a feature calculation unit 1, a feature dataset storage unit 2, a feature group selection unit 101, a learning unit 100, a learning score calculation unit 102, and a determination unit 103, as shown in FIG.

[0107] As shown by dashed lines in FIG. 1, the learning unit 100 includes a feature data set selection unit 3, an impurity calculation unit 4, a parameter set storage unit 5, a division unit 6, a parameter set determination unit 7, a parameter set accumulation unit 8, and a division stop criterion judgment unit 9.

[0108] The learning method of the second embodiment is realized, for example, by each component of the learning device performing the processes from step S1 to step S103 described below or shown in FIG.

[0109] The following description will focus on the differences from the first embodiment, and will omit a description of the same parts as in the first embodiment.

[0110] The feature calculation unit 1 of the second embodiment calculates multiple types of feature amounts for each frame of a predetermined time length from input time series data (step S1). The multiple types of feature amounts calculated for each frame of the predetermined time length are output to a feature data set storage unit 2.

[0111] For example, when the types of feature quantities are power ratio, power, autocorrelation peak, autocorrelation position, and cepstrum coefficients up to the tenth order, each of these five types of feature quantities is calculated.

[0112] The feature amount data set storage unit 2 stores a plurality of feature amount data sets corresponding to the plurality of types of feature amounts calculated by the feature amount calculation unit 1 (step S2).

[0113] For example, when there are K types of feature amounts, a plurality of feature amount data sets corresponding to the K types of feature amounts are stored in the feature amount data set storage unit 2. K is a predetermined integer of 2 or more.

[0114] The feature group selection unit 101 selects a feature group consisting of at least one type of feature from multiple types of feature (step S101). Multiple feature data sets corresponding to the features included in the selected feature group are output to the learning unit 100 and the learning score calculation unit 102.

[0115] The type of feature included in the feature group may be one type.

[0116] The learning unit 100 performs repeated processing (repeated processing from step S3 to step S9) on the selected feature group by the feature dataset selection unit 3, impurity calculation unit 4, division unit 6, parameter set determination unit 7, and division stop criterion judgment unit 9, as described in the first embodiment, and finally generates learning data corresponding to the selected feature group (step S100).

[0117] Through the processing by the learning unit 100, learning data corresponding to the selected feature amount group is stored in the parameter set storage unit 8.

[0118] The learning score calculation unit 102 estimates labels corresponding to the features of the multiple frames corresponding to the selected feature group using the learning data corresponding to the selected feature group, and calculates a learning score having a larger value as the estimated label matches a correct answer label, which is a label included in the feature data set corresponding to the selected feature group (step S102). In this way, the learning score corresponding to the selected feature group is calculated.

[0119] The calculated learning score corresponding to the selected feature group is output to the determination unit 103 .

[0120] As shown in FIG. 9, the learning score calculation unit 102 includes a parameter set selection unit 13, a data judgment unit 14, and a score calculation unit 1021, for example.

[0121] The parameter set selection unit 13 is similar to the parameter set selection unit 13 of the detection device of the first embodiment, except that the parameter set selection unit 13 selects a parameter set from the parameter set storage unit 8 included in the learning unit 100.

[0122] The data judgment unit 14 is similar to the parameter set selection unit 13 of the detection device of the first embodiment, except that it uses a feature data set corresponding to the features included in the selected feature group, instead of the feature data set calculated by the feature calculation unit 12.

[0123] Labels corresponding to the features of a plurality of frames corresponding to the selected feature group are estimated by the processing of the parameter set selection unit 13 and the data determination unit 14. The estimated labels are output to the score calculation unit 1021.

[0124] The score calculation unit 1021 calculates a learning score whose value is larger the closer the label estimated by the parameter set selection unit 13 and the data judgment unit 14 matches with the correct label, which is the label included in the feature data set corresponding to the selected feature group.

[0125] The feature group selection unit 101, the learning unit 100 and the learning score calculation unit 102 repeatedly perform the processes (steps S101, S100 and S102), thereby calculating a learning score for each of the different feature groups.

[0126] The determination unit 103 determines a feature group corresponding to the highest learning score among the calculated learning scores, and outputs the learning data corresponding to the determined feature group as final learning data (step S103).

[0127] An example of the processing performed by the feature group selection unit 101, the learning unit 100, the learning score calculation unit 102, and the determination unit 103 will be described below.

[0128] In the following example, the number of types of features is K.

[0129] First, the first to Kth processing (first round processing) will be described.

[0130] In the first to Kth processing, the feature amount group selection unit 101 selects, as a feature amount group, one of the K types of feature amounts that has not yet been selected in the first week of processing. This selected feature amount group is called F k In this case, the learning unit 100 and the learning score calculation unit 102 use the feature group F k Processing is performed on feature group F k Calculate the learning score corresponding to

[0131] In this way, the first round of processing creates feature groups F1,...,F K A learning score corresponding to each of the

[0132] The determination unit 103 determines the feature groups F1,...,F K The highest learning score among the learning scores corresponding to each of the above is determined, and the determined learning score is set as the learning score for the first round. In addition, the feature included in the feature group corresponding to the determined learning score is set as F#1.

[0133] Next, the (K+1)th to (2K-1)th processing (second round of processing) will be described.

[0134] In the (K+1)th to (2K-1)th processing, the feature group selection unit 101 selects, as a feature group, one of the K-1 types of feature excluding the feature included in the feature group F#1 that has not yet been selected in the second week processing, and the feature included in the feature group F#1. This selected feature group is referred to as F k In this case, the learning unit 100 and the learning score calculation unit 102 use the feature group F k Processing is performed on feature group F k Calculate the learning score corresponding to

[0135] After the second round of processing, feature group F K+1 ,...,F 2K-1 A learning score corresponding to each of the

[0136] The determination unit 103 determines the feature group F K+1 ,...,F 2K-1 The highest learning score among the learning scores corresponding to each of the above is determined, and the determined learning score is set as the learning score for the second round. In addition, the feature group corresponding to the determined learning score is set as F#2.

[0137] The determination unit 103 compares the learning score of the second round with the learning score of the first round, and if the learning score of the first round is higher, outputs the learning data corresponding to the feature group F#1 as the final learning data. If the learning score of the second round is higher, the determination unit 103 outputs an instruction to the feature group selection unit 101 to perform processing of the third round.

[0138] For m=3, . . . , K, the process in the mth round and the process by the determination unit 103 in the mth round are similar to the process in the second round and the process by the determination unit 103 in the second round.

[0139] Including the second round of processing, the mth round of processing can be written as follows, where m = 2, ..., K.

[0140] The mth round process is n=1 m-1 (K-(n-1))+1th time to Σ n=1 m In the (K-(n-1))th process, the feature group selection unit 101 selects, as a feature group, one of the K-(m-1) types of feature excluding the feature included in the feature group F#m-1 that has not yet been selected in the mth process and the feature included in the feature group F#m-1. This selected feature group is called F k In this case, the learning unit 100 and the learning score calculation unit 102 use the feature group Fk Processing is performed on feature group F k Calculate the learning score corresponding to

[0141] After the mth round of processing, the feature group F_(Σ n=1 m-1 (K-(n-1))+1),...,F_(Σ n=1 m A learning score corresponding to each of (K-(n-1))) is calculated.

[0142] The determination unit 103 determines the feature group F_(Σ n=1 m-1 (K-(n-1))+1),...,F_(Σ n=1 m The highest learning score among the learning scores corresponding to each of (K-(n-1))) is determined, and the determined learning score is set as the m-th learning score. In addition, the feature group corresponding to the determined learning score is set as F#m.

[0143] The determination unit 103 compares the learning score in the mth round with the learning score in the (m-1)th round, and if the learning score in the (m-1)th round is higher, outputs the learning data corresponding to the feature group F#m-1 as the final learning data. If the learning score in the mth round is higher, the determination unit 103 outputs an instruction to the feature group selection unit 101 to perform processing in the (m+1)th round.

[0144] When m=K, the determining unit 103 outputs the learning data corresponding to the feature group F#m (that is, the feature group F#K) as the final learning data.

[0145] For example, in this manner, the judgment unit 103 determines the feature group corresponding to the highest learning score among the calculated learning scores, and outputs the learning data corresponding to the determined feature group as the final learning data.

[0146] [Detection device and method] The detection device and method of the second embodiment are similar to those of the first embodiment, except that the parameter set storage unit 8 stores the learning data finally obtained by processing by the learning device.

[0147] Third embodiment [Learning device and method] The learning device of the third embodiment includes, for example, a feature amount calculation unit 1, a feature amount data set storage unit 2, and a search unit 200, as shown in FIG.

[0148] The search unit 200 includes a feature selection probability determination unit 2001, an update unit 2002, and a storage unit 2003, for example.

[0149] The learning method of the third embodiment is realized, for example, by each component of the learning device performing the processes from step S1 to step S2003 described below or shown in FIG.

[0150] The following description will focus on the differences from the first embodiment, and will omit a description of the same parts as in the first embodiment.

[0151] <Feature Calculation Unit 1> The feature calculation unit 1 of the third embodiment calculates multiple types of feature amounts for each frame of a predetermined time length from input time series data (step S1). The multiple types of feature amounts calculated for each frame of the predetermined time length are output to a feature data set storage unit 2.

[0152] For example, when the types of feature quantities are power ratio, power, autocorrelation peak, autocorrelation position, and cepstrum coefficients up to the tenth order, each of these five types of feature quantities is calculated.

[0153] <Feature data set storage unit 2> The feature amount data set storage unit 2 stores a plurality of feature amount data sets corresponding to the plurality of types of feature amounts calculated by the feature amount calculation unit 1 (step S2).

[0154] For example, when there are K types of feature amounts, a plurality of feature amount data sets corresponding to the K types of feature amounts are stored in the feature amount data set storage unit 2. K is a predetermined integer of 2 or more.

[0155] <Search section 200> The search unit 200 updates the decision tree and the parameter set by probabilistic sampling.

[0156] The search unit 200 repeats the processes (steps S2001 and S2002) of the feature selection probability determination unit 2001 and the update unit 2002 until a predetermined end condition is satisfied. Examples of the predetermined end condition include the number of times that these processes are repeated being equal to or greater than a predetermined number of times, or the calculation time for these repeated processes being equal to or greater than a predetermined time.

[0157] The parameter set and decision tree that are the targets of the first processing of the feature selection probability determination unit 2001 and the update unit 2002 are the parameter set and decision tree that are set in advance as initial values.

[0158] The decision tree that is the target of the Nth processing by the feature selection probability determination unit 2001 and the update unit 2002, where N is a positive integer of 2 or more, is the updated parameter set and updated decision tree most recently updated by the processing by the feature selection probability determination unit 2001 and the update unit 2002 (for example, the updated parameter set and updated decision tree updated in the N-1th processing by the feature selection probability determination unit 2001 and the update unit 2002).

[0159] As described in the first embodiment, a parameter set is a combination of a feature type, a threshold, and a frequency threshold. A parameter set is associated with a node other than a leaf of the decision tree, and a label is associated with a leaf node of the decision tree. Feature dataset identification information, which is information for identifying a set of feature datasets, is associated with the nodes and leaves of the decision tree.

[0160] First, the process of the feature selection probability determination unit 2001 will be described.

[0161] <Feature Selection Probability Decision Unit 2001> The feature selection probability determination unit 2001 measures the frequency of features included in the parameter set associated with each node other than the leaves of the decision tree for each type of feature, and associates a feature selection probability with each type of feature so that a more frequent feature type has a higher feature selection probability (step S2001). The feature selection probability corresponding to the type of feature is output to the update unit 2002.

[0162] For example, suppose there are four parameter sets associated with each node other than the leaves of the decision tree, and the feature type included in the first parameter set is power ratio, the feature type included in the second parameter set is power ratio, the feature type included in the third parameter set is power, and the feature type included in the fourth parameter set is power. In this case, the frequency of the feature type called power ratio is 2, and the frequency of the feature type called power is 2. In this case, the feature selection probability determination unit 2001 associates, for example, the feature type called power ratio with a feature selection probability of 1 / 2, and the feature type called power with a feature selection probability of 1 / 2.

[0163] The feature selection probability determination unit 2001 may determine the feature selection probability based on a value obtained by adding a predetermined real number equal to or greater than 0 to the frequency of each type of feature. For example, if Q is a positive integer and the types of features are f1,...,f Q and the feature value f q A given real number greater than or equal to 0 corresponds to r q Then, the feature selection probability determination unit 2001 determines the feature type f q ,(f q +r q ) / (Σ q=1 Q (f q +r qIn this manner, the feature selection probability determination unit 2001 determines the feature selection probabilities such that the sum of the feature selection probabilities associated with each type of feature is 1.

[0164] Next, the process of the update unit 2002 will be described.

[0165] First, the update unit 2002 selects one node that is a leaf of the decision tree, and determines whether to delete or grow the selected node.

[0166] For example, the update unit 2002 randomly selects a node that is a leaf of the decision tree.

[0167] The update unit 2002 may determine whether to delete or grow the selected node based on a predetermined probability, or may determine whether to delete or grow the selected node in such a way that the shallower the selected node is, the more it is grown (in other words, the deeper the selected node is, the more it is deleted).

[0168] When deleting a node, the update unit 2002 deletes the parameter set corresponding to the parent node of the node and the parameter sets corresponding to each of all child nodes of the parent node, and associates the labels associated with each of the leaf child nodes of the parent node with the parent node, thereby provisionally updating the parameter sets and decision tree.

[0169] When growing a node, the update unit 2002 selects a feature type according to the feature selection probability, selects a threshold and a frequency threshold corresponding to the selected feature type, and sets the selected feature type, threshold, and frequency threshold as a parameter set of the node, thereby provisionally updating the parameter set and the decision tree. The provisionally updated parameter set and the provisionally updated decision tree are stored in the storage unit 2003.

[0170] For example, the update unit 2002 selects a feature type with a higher feature selection probability with a higher probability.

[0171] Furthermore, the update unit 2002 randomly selects, for example, a threshold value and a frequency threshold value corresponding to the type of the selected feature amount from within a predetermined range.

[0172] The updating unit 2002 performs processing similar to that of the dividing unit 6 of the first embodiment based on the selected type of feature, threshold, and frequency threshold, and divides a set of feature datasets corresponding to a node to be grown into a set of feature datasets identified by first feature dataset identification information and a set of feature datasets identified by second feature dataset identification information. Then, the updating unit 2002 determines the most numerous label among the labels included in the feature datasets identified by the first feature dataset identification information as a label corresponding to a node that is a leaf corresponding to the first feature dataset identification information. Also, the updating unit 2002 determines the most numerous label among the labels included in the feature datasets identified by the second feature dataset identification information as a label corresponding to a node that is a leaf corresponding to the second feature dataset identification information.

[0173] Next, the update unit 2002 uses the provisionally updated parameter set and decision tree to estimate labels corresponding to the multiple feature datasets read from the feature dataset storage unit 2, and calculates an evaluation value based on the degree of agreement between the estimated labels and ground truth labels, which are labels included in the read feature datasets, and on the complexity of the provisionally updated decision tree.

[0174] As shown in FIG. 12, the update unit 2002 includes, for example, a parameter set selection unit 13, a data determination unit 14, and an evaluation value calculation unit 20021.

[0175] The parameter set selection unit 13 is similar to the parameter set selection unit 13 of the detection device of the first embodiment, except that it performs processing based on a provisionally updated parameter set and a decision tree instead of the information stored in the parameter set storage unit 8.

[0176] The data determination unit 14 is similar to the parameter set selection unit 13 of the detection device of the first embodiment.

[0177] The evaluation value calculation unit 20021 receives as input the label output by the parameter set selection unit 13, the feature dataset read from the feature dataset storage unit 2, and the provisionally updated parameter set and decision tree, which are learning data.

[0178] The evaluation value calculation unit 20021 calculates an evaluation value based on the degree of agreement between the estimated label, which is the label output by the parameter set selection unit 13, and the correct label, which is the label included in the feature dataset read from the feature dataset storage unit 2, and the complexity of the provisionally updated decision tree.

[0179] For example, the evaluation value calculation unit 20021 calculates the value of a predetermined evaluation function when the degree of agreement and the complexity of the provisionally updated decision tree are input to the evaluation function, and sets the calculated evaluation function value as the evaluation value. For example, if the evaluation value is smaller as the evaluation is higher, the evaluation function is a non-increasing function of the degree of agreement and a non-decreasing function of the complexity of the provisionally updated decision tree.

[0180] Finally, if the currently calculated evaluation value is improved compared to the previously calculated evaluation value, the update unit 2002 designates the provisionally updated parameter set as the updated parameter set and the provisionally updated decision tree as the updated decision tree.

[0181] If this is the Nth processing iteration, where N is a positive integer of 2 or greater, the previously calculated evaluation value is, for example, the evaluation value calculated in the (N-1)th processing iteration.

[0182] In principle, if the currently calculated evaluation value has not improved compared to the previously calculated evaluation value, the parameter set and evaluation value are not updated. However, even in this case, the update unit 2002 may update the parameter set and the decision tree with a predetermined probability. In the case where the evaluation value is set so that a smaller evaluation value indicates a higher evaluation, the predetermined probability is, for example, a probability that decreases as the value obtained by subtracting the previously calculated evaluation value from the currently calculated evaluation value increases. Specifically, the predetermined probability is e^(previously calculated evaluation value - currently calculated evaluation value).

[0183] In this manner, the update unit 2002 (1) selects one node that is a leaf of the decision tree, and determines whether to delete or grow the selected node; (1-1) if deleting a node, it deletes the parameter set corresponding to the parent node of the node and the parameter sets corresponding to each of all child nodes of the parent node, and associates the labels associated with each of the leaf child nodes of the parent node with the parent node, thereby provisionally updating the parameter set and the decision tree; (1-2) if growing a node, it selects a type of feature in accordance with the feature selection probability, selects a threshold and a frequency threshold corresponding to the selected type of feature, and updates the selected type of feature, the threshold, (2) using the provisionally updated parameter set and decision tree, labels corresponding to the multiple feature datasets read from the feature dataset storage unit are estimated, and an evaluation value is calculated based on the degree of match between the estimated labels and ground truth labels, which are labels included in the read feature dataset, and on the complexity of the provisionally updated decision tree; (3) if the evaluation value calculated this time has improved compared to the evaluation value calculated previously, the provisionally updated parameter set is used as an updated parameter set, and the provisionally updated decision tree is used as an updated decision tree (step S2002).

[0184] As described above, the processes of the feature selection probability determination unit and the update unit for the updated parameter set and the updated decision tree (the processes of steps S2001 and S2002) are repeated until a predetermined termination condition is satisfied.

[0185] If a predetermined termination condition is satisfied, the search unit 200 outputs the parameter set and the decision tree from the storage unit 2003 as learning data (step S2003).

[0186] The search unit 200 outputs, for example, the parameter set and decision tree corresponding to the highest evaluation value as one piece of learning data.

[0187] Furthermore, the search unit 200 may output U pieces of learning data, which are U parameter sets and U decision trees corresponding to the U highest evaluation values, respectively.

[0188] Furthermore, the search unit 200 may randomly select U parameter sets and decision trees from the storage unit 2003 and output them as U pieces of training data.

[0189] [Detection device and method] The detection device and method of the third embodiment are similar to those of the first embodiment, except that learning data is stored in the parameter set storage unit 8 through processing by a learning device.

[0190] When U pieces of learning data have been obtained by processing of the learning device, the detection device and method perform detection by the method described in the first embodiment based on each of the U pieces of learning data to obtain U detection results. Then, the detection device and method outputs the average of the U detection results as the final detection result.

[0191] [Variations] Although the embodiments of the present invention have been described above, the specific configurations are not limited to these embodiments, and it goes without saying that the present invention includes appropriate design changes and the like as long as they do not deviate from the spirit of the present invention.

[0192] The various processes described in the embodiments may not only be executed in chronological order according to the order described, but may also be executed in parallel or individually depending on the processing capabilities of the devices executing the processes or as necessary.

[0193] For example, data may be exchanged directly between components of the learning device or through a storage unit (not shown).Similarly, data may be exchanged directly between components of the detection device or through a storage unit (not shown).

[0194] [Programs, recording media] The processing of each unit of each of the above-mentioned devices may be realized by a computer, in which case the processing contents of the functions that each device should have are described by a program. Then, by loading this program into the storage unit 1020 of the computer shown in Fig. 7 and operating the arithmetic processing unit 1010, input unit 1030, output unit 1040, etc., various processing functions of each of the above-mentioned devices are realized on the computer.

[0195] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a non-transitory recording medium, specifically, a magnetic recording device, an optical disk, etc.

[0196] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.

[0197] A computer that executes such a program, for example, first stores a program recorded on a portable recording medium or a program transferred from a server computer in the auxiliary recording unit 1050, which is a non-transient storage device of the computer. Then, when executing a process, the computer reads the program stored in the auxiliary recording unit 1050, which is a non-transient storage device of the computer, into the storage unit 1020, and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium into the storage unit 1020 and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. Alternatively, the server computer may not transfer the program to the computer, but may execute the above-mentioned process by a so-called ASP (Application Service Provider) type service that realizes a processing function only by issuing an execution instruction and obtaining a result. Note that the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (data that is not a direct instruction to a computer but has a nature that specifies the processing of the computer, etc.).

[0198] In addition, in this embodiment, the present device is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.

[0199] Needless to say, other modifications can be made without departing from the spirit of the present invention.

Claims

1. a feature amount calculation step in which a feature amount calculation unit calculates a feature amount for each frame of a predetermined time length from the input time series data; a feature dataset selection step in which a feature dataset selection unit selects a set of feature datasets to be divided from a feature dataset storage unit in which a feature dataset is a set of features of a plurality of frames and labels corresponding to the features of the plurality of frames, the feature dataset being stored; an impurity calculation step in which an impurity calculation unit calculates an impurity having a larger value as the number of types of labels included in the feature data sets is larger and / or the number of sets for each label is equal, from the plurality of feature data sets included in the selected set; a dividing step in which the dividing unit divides each of the plurality of feature data sets included in the selected set into a feature data set corresponding to the type of feature, a threshold value, and a frequency threshold value, the feature data set being a combination of a type of feature, a threshold value, and a frequency threshold value corresponding to a parameter set read from a parameter set storage unit in which a plurality of mutually different parameter sets are stored, the feature data set being divided into a feature data set in which the frequency at which the feature value in the feature data set exceeds the threshold value is equal to or greater than the frequency threshold value, and a feature data set in which the frequency at which the feature value in the feature data set exceeds the threshold value is equal to or greater than the frequency threshold value, the first feature amount data set identification information is identification information for identifying a set of feature amount data sets in which a frequency at which a feature amount in the feature amount data set corresponding to a type of the feature amount exceeds the threshold is equal to or greater than the frequency threshold; the second feature amount data set identification information is identification information for identifying a set of feature amount data sets in which a frequency at which a feature amount in the feature amount data set corresponding to a type of the feature amount exceeds the threshold value is not equal to or greater than the frequency threshold value; the impurity calculation unit calculates a first impurity, which is a first impurity, from a feature dataset included in a set identified by the first feature dataset identification information, and a second impurity, which is a second impurity, from a feature dataset included in a set identified by the second feature dataset identification information; In the division step and the impurity calculation step, the division step and the impurity calculation step are performed for each of the plurality of parameter sets, thereby calculating the first impurity and the second impurity for each of the plurality of parameter sets, a parameter set determination step in which a parameter set determination unit determines a parameter set which maximizes an output value when the impurity, the first impurity, and the second impurity are input to a predetermined function which is monotonically non-decreasing with respect to the impurity and monotonically non-increasing with respect to the first impurity and the second impurity, and outputs feature data set identification information which is identification information for identifying a set of a plurality of feature data sets which are targets of the division, the determined parameter set, and first feature data set identification information and second feature data set identification information which correspond to the determined parameter set; a parameter set storage unit stores feature amount data set identification information, which is identification information for identifying a set of the plurality of feature amount data sets that are the subject of the division and is output by the parameter set determination unit, the determined parameter set, and first feature amount data set identification information and second feature amount data set identification information corresponding to the determined parameter set; a division stop criterion determination step of: a division stop criterion determination unit determines whether the feature data set identification information satisfies a predetermined division stop criterion; (1) if it is determined that the division stop criterion is satisfied, further storing in the parameter set storage unit a label that is the largest in number among labels included in the feature data set identified by the feature data set identification information as a label corresponding to the feature data set identification information, and deleting the feature data set identified by the feature data set identification information from the feature data set storage unit; and (2) if it is determined that the division stop criterion is not satisfied, storing the first feature data set identification information and the second feature data set identification information in the feature data set storage unit, the feature dataset selection step, the impurity calculation step, the division step, the parameter set determination step, and the division stop criterion determination step are repeated until all feature datasets stored in the feature dataset storage unit are exhausted. A learning method comprising: the feature amount calculation step is a step of calculating a plurality of types of feature amounts for each frame of a predetermined time length from input time series data; the method further includes a feature amount group selection step of selecting a feature amount group including at least one type of feature amount from the plurality of types of feature amounts, the learning data includes feature amount data set identification information, a parameter set, a first feature amount data set identification information, a second feature amount data set identification information, and a label, which are stored in the parameter set storage unit; the feature data set selection step, the impurity calculation step, the division step, the parameter set determination step, and the division stop criterion determination step are repeated for the selected feature group, and learning data corresponding to the selected feature group is generated; the learning score calculation unit further includes a learning score calculation step of estimating labels corresponding to features of a plurality of frames corresponding to the selected feature group by using learning data corresponding to the selected feature group, and calculating a learning score having a larger value as the estimated labels match with a correct label which is a label included in a feature data set corresponding to the selected feature group, the feature group selection step, the feature dataset selection step, the impurity calculation step, the division step, the parameter set determination step, the division stop criterion determination step, and the learning score calculation step are repeatedly performed, and a learning score is calculated for each of a plurality of different feature groups; The method further includes a determination step in which the determination unit determines a feature group corresponding to the highest learning score among the calculated learning scores, and outputs learning data corresponding to the determined feature group as final learning data. How to learn.

2. a feature amount calculation step in which a feature amount calculation unit calculates a plurality of types of feature amounts for each frame of a predetermined time length from the input time series data; The feature data set is a set of features of a plurality of frames and labels corresponding to the features of the plurality of frames, and the feature data set storage unit stores a plurality of feature data sets; The parameter set is a combination of a feature type, a threshold, and a frequency threshold. Each non-leaf node of the decision tree is associated with a parameter set, and each leaf node of the decision tree is associated with a label. a feature selection probability determination step in which a feature selection probability determination unit measures the frequency of features included in a parameter set associated with each node other than the leaves of the decision tree for each type of feature, and associates a feature selection probability with each type of feature such that a feature type with a higher frequency has a higher feature selection probability; an update unit (1) selects one node that is a leaf of the decision tree, and determines whether to delete or grow the selected node; (1-1) if deleting the node, deletes a parameter set corresponding to a parent node of the node and parameter sets corresponding to each of all child nodes of the parent node, and associates labels associated with each of the leaf child nodes of the parent node with the parent node, thereby provisionally updating the parameter set and the decision tree; (1-2) if growing the node, selects a type of feature in accordance with the feature selection probability, selects a threshold and a frequency threshold corresponding to the selected type of feature, and updates the selected type of feature, threshold and frequency threshold; (2) using the provisionally updated parameter set and decision tree to estimate labels corresponding to a plurality of feature datasets read from the feature dataset storage unit, and to calculate an evaluation value based on a degree of agreement between the estimated labels and ground truth labels, which are labels included in the read feature dataset, and on the complexity of the provisionally updated decision tree; and (3) if the evaluation value calculated this time is improved compared to the evaluation value calculated previously, the provisionally updated parameter set is used as an updated parameter set and the provisionally updated decision tree is used as an updated decision tree. the process of the feature selection probability determination step and the update step are repeated for the updated parameter set and the updated decision tree; How to learn.

3. a feature amount calculation unit that calculates a feature amount for each frame of a predetermined time length from input time series data; a feature data set storage unit in which the feature data set is a set of feature data of a plurality of frames and labels corresponding to the feature data of the plurality of frames, and the feature data set storage unit stores the plurality of feature data sets; a feature data set selection unit that selects a set of feature data sets to be divided from the feature data set storage unit; an impurity calculation unit that calculates an impurity having a larger value as the number of types of labels included in the feature data sets is larger and / or the number of sets for each label is equal, from the plurality of feature data sets included in the selected set; a parameter set storage unit in which a plurality of mutually different parameter sets are stored, the parameter set being a combination of a type of feature amount, a threshold value, and a frequency threshold value; a division unit that divides each of the multiple feature data sets included in the selected set based on a set of a feature type, a threshold, and a frequency threshold corresponding to the parameter set read from the parameter set storage unit, into a feature data set in which the frequency at which the feature value in the feature data set corresponding to the feature type exceeds the threshold is equal to or greater than the frequency threshold, and a feature data set in which the frequency at which the feature value in the feature data set corresponding to the feature type exceeds the threshold is equal to or greater than the frequency threshold, the first feature amount data set identification information is identification information for identifying a set of feature amount data sets in which a frequency at which a feature amount in the feature amount data set corresponding to a type of the feature amount exceeds the threshold is equal to or greater than the frequency threshold; the second feature amount data set identification information is identification information for identifying a set of feature amount data sets in which a frequency at which a feature amount in the feature amount data set corresponding to the type of the feature amount exceeds the threshold value is not equal to or greater than the frequency threshold value; the impurity calculation unit calculates a first impurity, which is a first impurity, from a feature dataset included in a set identified by the first feature dataset identification information, and a second impurity, which is a second impurity, from a feature dataset included in a set identified by the second feature dataset identification information; The division unit and the impurity calculation unit calculate the first impurity and the second impurity for each of the plurality of parameter sets by performing processing of the division unit and the impurity calculation unit for each of the plurality of parameter sets, a parameter set determination unit that determines a parameter set which maximizes an output value when the impurity, the first impurity, and the second impurity are input to a predetermined function which is monotonically non-decreasing with respect to the impurity and monotonically non-increasing with respect to the first impurity and the second impurity, and outputs feature dataset identification information which is identification information for identifying a set of multiple feature datasets which are targets of the division, the determined parameter set, and first feature dataset identification information and second feature dataset identification information which correspond to the determined parameter set; a parameter set storage unit that stores feature data set identification information, which is identification information for identifying a set of the multiple feature data sets that have been subjected to the division and is output by the parameter set determination unit, the determined parameter sets, and first feature data set identification information and second feature data set identification information corresponding to the determined parameter sets; a division stop criterion determination unit that determines whether the feature dataset identification information satisfies a predetermined division stop criterion, (1) when it is determined that the feature dataset identification information satisfies the division stop criterion, further accumulates in the parameter set accumulation unit a label that is the largest number of labels included in the feature dataset identified by the feature dataset identification information as a label corresponding to the feature dataset identification information, and deletes the feature dataset identified by the feature dataset identification information from the feature dataset storage unit, and (2) when it is determined that the division stop criterion is not satisfied, stores the first feature dataset identification information and the second feature dataset identification information in the feature dataset storage unit, the feature dataset selection unit, the impurity calculation unit, the division unit, the parameter set determination unit, and the division stop criterion determination unit repeatedly perform the processes of the feature dataset selection unit, the impurity calculation unit, the division unit, the parameter set determination unit, and the division stop criterion determination unit until all feature datasets stored in the feature dataset storage unit are exhausted. A learning device, comprising: the feature amount calculation unit calculates a plurality of types of feature amounts for each frame of a predetermined time length from the input time series data; a feature group selection unit that selects a feature group including at least one type of feature from the plurality of types of feature, the learning data includes feature amount data set identification information, a parameter set, a first feature amount data set identification information, a second feature amount data set identification information, and a label, which are stored in the parameter set storage unit; the feature data set selection unit, the impurity calculation unit, the division unit, the parameter set determination unit, and the division stop criterion determination unit perform repeated processes on the selected feature group, thereby generating learning data corresponding to the selected feature group; a learning score calculation unit that estimates labels corresponding to features of a plurality of frames corresponding to the selected feature group by using learning data corresponding to the selected feature group, and calculates a learning score having a larger value as the estimated labels match a correct label which is a label included in a feature data set corresponding to the selected feature group, the processes of the feature group selection unit, the feature dataset selection unit, the impurity calculation unit, the division unit, the parameter set determination unit, the division stop criterion determination unit, and the learning score calculation unit are repeatedly performed, and a learning score is calculated for each of a plurality of different feature groups; a determination unit that determines a feature group corresponding to the highest learning score among the calculated learning scores, and outputs learning data corresponding to the determined feature group as final learning data. Learning device.

4. a feature amount calculation unit that calculates a plurality of types of feature amounts for each frame of a predetermined time length from input time series data; A feature data set storage unit in which a feature data set is a set of feature data of a plurality of frames and labels corresponding to the feature data of the plurality of frames, and a plurality of feature data sets are stored; The parameter set is a combination of a feature type, a threshold, and a frequency threshold. Each non-leaf node of the decision tree is associated with a parameter set, and each leaf node of the decision tree is associated with a label. a feature selection probability determination unit that measures the frequency of features included in a parameter set associated with each node other than the leaves of the decision tree for each type of feature, and associates a feature selection probability with each type of feature such that a feature type with a higher frequency has a higher feature selection probability; (1) selecting one node which is a leaf of the decision tree, and determining whether to delete or grow the selected node; (1-1) if deleting the node, deleting a parameter set corresponding to a parent node of the node and parameter sets corresponding to each of all child nodes of the parent node, and associating labels corresponding to each of all leaf child nodes of the parent node with the parent node, thereby provisionally updating the parameter set and the decision tree; (1-2) if growing the node, selecting a type of feature according to the feature selection probability, selecting a threshold and a frequency threshold corresponding to the selected type of feature, and updating the selected type of feature, threshold and frequency threshold. (2) using the provisionally updated parameter set and decision tree, estimate labels corresponding to a plurality of feature datasets read from the feature dataset storage unit, and calculate an evaluation value based on a degree of agreement between the estimated labels and ground truth labels, which are labels included in the read feature dataset, and on the complexity of the provisionally updated decision tree; and (3) if the evaluation value calculated this time is improved compared to the evaluation value calculated previously, an update unit sets the provisionally updated parameter set as an updated parameter set and sets the provisionally updated decision tree as an updated decision tree. the processing of the feature selection probability determination unit and the updating unit is repeated for the updated parameter set and the updated decision tree; Learning device.

5. 3. A program for causing a computer to execute the processing of each step of the learning method according to claim 1 or 2.

Citation Information

Patent Citations

  • Data classification device and program

    JP2011028519A

  • Inspection device, inspection system and user interface

    JP2020166499A

  • Region dividing device, dividing method, and dividing program

    JP2021068141A

  • Information processing apparatus, control method, and program

    JP2021071956A

  • Learning device, learning method, and computer-readable recording medium

    WO2019189249A1