Program, learning device, and method for retraining explicable machine learning engine
The program and learning device address the high annotator workload and label quality issues by using machine learning engines to estimate feature importance and validate label validity, automatically correcting and retraining labels to enhance model accuracy.
Patent Information
- Application Number
- JP2023033097
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-03-03
Smart Images

Figure 2024125035000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a machine learning engine technology that trains a group of labeled samples as training data. In particular, the present invention is suitable for reducing the burden of annotation work on annotators who create training data by adding labels to samples. [Background technology]
[0002] In supervised learning, training data is used, which is a set of samples that have been labeled in advance. Training data is generally created by annotators who recognize samples and manually assign labels that they deem appropriate.
[0003] In response to this, there is a technique called "active learning" that sequentially selects samples that will contribute to improving classification accuracy and asks the annotator for them for efficient learning. "Active learning" refers to a learning strategy in which a machine learning engine for class classification is trained using a small number of labeled samples at hand, and then the engine "actively" selects from a group of unlabeled samples those samples that will most improve the classification performance of the machine learning engine, and asks an annotator to label only those samples. Since only specific samples need to be labeled, the overall work cost of the annotator can be reduced. The machine learning engine can then be retrained using the samples that the annotator has labeled. This cycle is then repeated. The end of the cycle can be determined, for example, when the learning model of the machine learning engine achieves a predetermined accuracy, or when the resources that can be requested of the annotator (the number of allowable inquiries, monetary costs, etc.) are exhausted.
[0004] Active learning involves the technique of "uncertainty sampling" to actively select samples from a set of unlabeled samples in order to improve the classification accuracy of a machine learning engine. "Uncertainty sampling" refers to a technique that selects the data with the lowest confidence when classifying a group of unlabeled samples into each class. Specifically, the likelihood p={p1, p2, …, pc} (c is the number of classes) when classifying a group of unlabeled samples into classes is output, and the sample with the lowest probability of maximizing the likelihood is selected (Least confident sampling). In addition to least confident sampling, uncertainty sampling also includes margin sampling, a technique for selecting a sample that minimizes the difference between the highest probability and the second highest probability, and entropy sampling, a technique for selecting a sample that maximizes the entropy of the distribution of p.
[0005] Conventionally, there is a technique for avoiding sampling more data of the same class than necessary for each learning step by clustering a group of unlabeled samples in advance and then sampling a predetermined number of samples from within the cluster (see, for example, Patent Document 1). For example, in the uncertainty sampling used in the above-mentioned active learning, sampling is based only on the confidence level. Therefore, there is a possibility that samples belonging to the same class are selected biasedly for each learning step (i.e., only data from classes that are difficult to classify at that point in time are selected). According to Patent Document 1, when requesting labeling from an annotator for each learning step, it is possible to solve the inefficiency caused by requesting similar data.
[0006] There is also a technique for sampling by evaluating the degree of agreement between samples (see, for example, Patent Document 2). Specifically, this technique first creates multiple extended training samples by perturbing (small changes) the features of each piece of data in a group of unlabeled samples. Then, the degree of disagreement between classes resulting from classification of each extended training sample by a classifier is evaluated, and samples with high disagreement are selected. This is based on the hypothesis that the model decisions must be consistent between groups of samples obtained by perturbing the same sample.
[0007] FIG. 1 is an explanatory diagram showing annotations for training data in the prior art.
[0008] FIG. 1 shows the task of annotating human behavior (labels) based on the ON / OFF (state values) of each sensor (target item). According to Fig. 1, for example, a wide variety of sensors are placed in a room. The ON / OFF state values detected by each sensor are collected by the learning device 1. For example, the following types of sensors are assumed to obtain a sense of a person's spatial presence. Kitchen_sensor Refrigerator_sensor Bedroom_sensor Air-con_sensor Door_sensor
[0009] Each sensor detects ON / OFF at a predetermined cycle (e.g., every second) and transmits the data to the learning device 1. For example, the time series data of the sensors can be said to represent the behavior of people staying in the room. By analyzing the patterns of the data of the sensors, it becomes possible to recognize people's behavior.
[0010] According to FIG. 1, the annotator visually recognizes the ON / OFF status of the following multiple sensors: Kitchen_sensor ON Refrigerator_sensor ON Bedroom_sensor ON Air-con_sensor ON Door_sensor OFF In this case, the annotator needs to recognize all the data from multiple sensors. For example, the annotator may focus on the ON status of Kitchen_sensor and Refrigerator_sensor and assign the label "Cooking". The longer it takes the annotator to determine which sensor to assign the label, the higher the work cost and the greater the work burden. [Prior art documents] [Patent documents]
[0011] [Patent Document 1] Patent Publication No. 2021-047751 [Patent Document 2] Special Publication No. 2022-545476 [Non-patent literature]
[0012] [Non-Patent Document 1] Yoshitaka Kameya, "Explainable AI Technology: Its Past and Future," [online], [Retrieved February 20, 2023], Internet<URL: https: / / www.jstage.jst.go.jp / article / essfr / 16 / 2 / 16_83 / _pdf> Summary of the Invention [Problem to be solved by the invention]
[0013] However, according to the above-mentioned FIG. 1, the workload of the annotator to assign labels (behaviors) to samples (ON / OFF for each sensor) is not reduced. The greater the checking burden on the annotator, the more likely it is that an error will occur in assigning labels. Even in the case of FIG. 1, it is necessary to visually confirm the ON / OFF status of five sensors. If the annotator assigns an incorrect label, the quality of the training data will deteriorate, and the classification accuracy of the learning model trained using that training data will also deteriorate. In particular, when only a few annotators can be employed (for example, when only the annotators themselves can label data due to knowledge that only they have access to, or when the cost of employing them is higher than the budget), the workload increases and this is likely to lead to a deterioration in the quality of the training data. Furthermore, there are cases where methods such as majority voting or weighting the reliability of each annotator do not work.
[0014] Therefore, an object of the present invention is to provide a program, a learning device, and a method that can retrain a machine learning engine that has been trained using labeled samples as teacher data by assigning highly valid labels to unlabeled samples. [Means for solving the problem]
[0015] According to the present invention, a first machine learning engine is provided that is trained using teacher data in which labels are assigned to samples of one or more target items and state values, estimates feature importance that contributed to a label when predicting the label from one or more target items and state values, and outputs the target items, state values, and labels when the feature importance is equal to or greater than a first predetermined condition; a second machine learning engine that uses a pre-trained language model to estimate the validity likelihood of the label for the target item and state value input from the first machine learning engine, and if the validity likelihood is equal to or less than a second predetermined condition, resets the state value to a pseudo value, outputs the target item, the pseudo value, and the label, and causes the first machine learning engine to retrain; The present invention is characterized in that it causes a computer to function.
[0016] According to another embodiment of the program of the present invention, The first machine learning engine is XAI (Explainable AI), Each target item and state value is a feature. Labels are a judgmental factor. Feature importance is an explanatory factor It is also preferable to function the computer in such a manner.
[0017] According to another embodiment of the program of the present invention, The state value is binary, The second machine learning engine resets the state value to a pseudo value that is the inverse of the state value input from the first machine learning engine. It is also preferable to function the computer in such a manner.
[0018] According to another embodiment of the program of the present invention, The state value is a number, The second machine learning engine resets the state value to a pseudo-value that is a statistic of the state values of multiple other samples. It is also preferable to function the computer in such a manner.
[0019] According to another embodiment of the program of the present invention, The statistical value of the state value shall be the mean, median or mode. It is also preferable to function the computer in such a manner.
[0020] According to another embodiment of the program of the present invention, the first predetermined condition in the first machine learning engine is a predetermined threshold of feature importance; The second predetermined condition in the second machine learning engine is a predetermined threshold of the likelihood of validity. It is also preferable to function the computer in such a manner.
[0021] According to another embodiment of the program of the present invention, The second machine learning engine uses a language corpus and is based on a graph model in which the target item words and label words are treated as nodes, and the relationships between the nodes are linked by state values. It is also preferable to make the computer function in such a manner.
[0022] According to another embodiment of the program of the present invention, The second machine learning engine is based on a natural language model trained with natural language sentences with correct labels and natural language sentences with incorrect labels; a natural language sentence conversion means for converting the target items, state values, and labels output from the first machine learning engine into natural language sentences and inputting the natural language sentences to the second machine learning engine; It is also preferable to cause the computer to function as described above.
[0023] According to another embodiment of the program of the present invention, The natural language sentences to which correct labels have been added are sentences from a language corpus, A natural language sentence with an inappropriate label is a sentence with a correct label in which some words have been replaced with other words. It is also preferable to make the computer function in such a manner.
[0024] According to another embodiment of the program of the present invention, a confirmation flag assigning means for assigning a confirmation flag to an annotator for a labeled sample whose state value has been reset to a pseudo value and which is input from the second machine learning engine; And further enhance its functionality. The confirmation flag assigning means outputs the target item and the state value or pseudo value to which the confirmation flag has been assigned, and the label to the user interface, and prompts the annotator to answer whether the answer is correct or incorrect. It is also preferable to function the computer in such a manner.
[0025] According to another embodiment of the program of the present invention, The first machine learning engine actively selects samples for which labels should be predicted from a set of unlabeled samples using uncertainty sampling. It is also preferable to make the computer function in such a manner.
[0026] According to the present invention, a first machine learning engine is provided that is trained using teacher data in which labels are assigned to samples of one or more target items and state values, estimates feature importance that contributed to a label when predicting the label from one or more target items and state values, and outputs the target items, state values, and labels when the feature importance is equal to or greater than a first predetermined condition; a second machine learning engine that uses a pre-trained language model to estimate the validity likelihood of the label for the target item and state value input from the first machine learning engine, and if the validity likelihood is equal to or less than a second predetermined condition, resets the state value to a pseudo value, outputs the target item, the pseudo value, and the label, and causes the first machine learning engine to retrain; The present invention is characterized by having the following.
[0027] According to the present invention, a learning device comprises: a first step of training a first machine learning engine with teacher data in which labels are assigned to samples of one or more target items and state values, estimating feature importance that contributed to a label when predicting the label from one or more target items and state values, and outputting the target items, state values, and labels when the feature importance is equal to or greater than a first predetermined condition; a second step of estimating, using a second machine learning engine, a validity likelihood of the label for the target item and state value input from the first machine learning engine using a pre-trained language model, and if the validity likelihood is equal to or less than a second predetermined condition, resetting the state value to a pseudo value, outputting the target item, the pseudo value, and the label, and retraining the first machine learning engine; The method is characterized in that the above steps are repeatedly executed. Effect of the Invention
[0028] According to the program, learning device, and method of the present invention, a machine learning engine that has been trained using labeled samples as training data can be retrained by assigning highly valid labels to unlabeled samples. [Brief description of the drawings]
[0029] [Figure 1] FIG. 1 is an explanatory diagram showing annotations for training data in the prior art. [Diagram 2] FIG. 2 is a functional configuration diagram of a learning device according to the present invention. [Diagram 3] FIG. 2 is an explanatory diagram showing the interaction between machine learning engines in the present invention. [Figure 4] FIG. 1 is a first illustrative diagram showing a second machine learning engine based on a graph model. [Diagram 5] FIG. 2 is a second illustrative diagram showing a second machine learning engine based on a language corpus. [Figure 6] FIG. 2 is an explanatory diagram showing an annotation in the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0030] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Specifically, an application in which indoor sensors are used to estimate the behavior of a resident will be described as an example.
[0031] FIG. 2 is a functional configuration diagram of the learning device according to the present invention.
[0032] 2, the learning device 1 has a first machine learning engine 11, a second machine learning engine 12, a natural language text conversion unit 13, and a confirmation flag assignment unit 14. These functional components are realized by executing a program that causes a computer installed in the learning device to function. The process flow of these functional components can also be understood as a learning method of the device.
[0033] [The first machine learning engine 11] The first machine learning engine 11 is XAI (see, for example, Non-Patent Document 1). This can estimate feature importance (permutation importance) (sometimes called confidence), which is an index for evaluating "how much a feature contributes to improving the prediction accuracy of the label." Feature importance can be estimated by observing the change in class classification predictions by perturbing a portion of the samples, for example. This looks at a counterfactual situation with respect to the perturbed portion. In other words, if the perturbation significantly reduces the class confidence, then the portion can be said to be an important feature for that class. Examples of XAI include LIME (Local Interpretable Model-agnostic Explanations), SHAP (SHapley Additive Explanations), and Anchor.
[0034] According to FIG. 2, the first machine learning engine 11 is trained using teacher data in which labels (judgment factors) are assigned to one or more target items and state values (samples). <Sample> Target item, state value (corresponding to feature value) <Decision Element> Label <Explanatory element> Feature importance The target item is the sensor identifier of each sensor, and the state value is the ON / OFF detected by each sensor. The state value may be a binary value or a numeric value. Moreover, the label represents a person's behavior as a judgment factor. Furthermore, feature importance represents the degree of contribution to a label (judgment factor) when predicting the label from one or more target items and state values (samples). Specifically, the state values of some target items are perturbed, and the change in the predicted label is observed. If the label confidence drops significantly due to the perturbation of the state values of some target items, the target items can be said to have a high feature importance contributing to the label.
[0035] The first machine learning engine 11 of the present invention can assign highly valid labels to unlabeled samples via the second machine learning engine 12, allowing them to be used for retraining. Here, the first machine learning engine 11 may randomly select samples whose labels are to be predicted from a group of unlabeled samples. Alternatively, the first machine learning engine 11 may actively select samples by uncertainty sampling. This can improve the classification accuracy of the learning model in the first machine learning engine 11 itself.
[0036] [Second Machine Learning Engine 12] The second machine learning engine 12 is a general-purpose machine learning engine that uses a language model that is pre-trained with a large amount of general knowledge. It can input a pair of a target item and a state value (sample) and a label (judgment element) and estimate the validity likelihood of the pair. Specifically, the second machine learning engine 12 may be a general-purpose engine such as a random forest, a support vector machine, or a neural network. In addition, the second machine learning engine 12 may be based on a <natural language model> or a <graph model>, as described later.
[0037] FIG. 3 is an explanatory diagram showing the interaction between machine learning engines in the present invention.
[0038] The first machine learning engine 11 outputs the target item, the state value, and the label to the second machine learning engine 12 when the feature importance is equal to or greater than the “first predetermined condition”. Here, the "first predetermined condition" may be, for example, a predetermined threshold value of feature importance. When the feature importance is equal to or greater than the predetermined threshold value, it can be determined that the target item and state value contribute to the label. Of course, the first machine learning engine 11 may output multiple pairs of the target item and state value and the label, or may not output any at all.
[0039] According to FIG. 3, the first machine learning engine 11 predicts the label of an unlabeled sample and estimates the feature importance as follows. < Sample >< Judgment element >< Explanation element > Target item State value Label Feature importance Kitchen_sensor ON Cooking 0.9 Refrigerator_sensor ON Cooking 0.7 Bedroom_sensor ON Cooking 0.7 Air-con_sensor ON Cooking 0.2 Door_sensor OFF Cooking 0.1
[0040] Here, for example, the ON detection of the Kitchen_sensor and Refrigerator_sensor is likely to occur when the person's behavior is Cooking. On the other hand, for example, the ON detection of the Bedroom_sensor is likely to occur when the person's behavior is Sleeping. However, according to FIG. 3, even when the Bedroom_sensor is ON, the label Cooking is assigned to it overall. Note that the ON detection of the Air-con_sensor depends on the presence of a person, and the OFF detection of the Door_sensor depends on the movement of a person inside or outside the room. In this way, the detection of each sensor differs depending on the person's behavior in the room.
[0041] 3, the predetermined condition is a predetermined threshold of 0.7, and only pairs of target items and state values (samples) and labels (judgment factors) whose feature importance is equal to or greater than the predetermined threshold of 0.7 are output to the second machine learning engine 12. That is, only labeled samples with high feature importance are output. < Sample >< Decision Factors > Target item Status value Label Kitchen_sensor ON Cooking Refrigerator_sensor ON Cooking Bedroom_sensor ON Cooking
[0042] Next, the second machine learning engine 12 estimates the validity likelihood of the label for the target item and state value input from the first machine learning engine 11. < Sample >< Decision Factors > Target item State value Label Validity likelihood Kitchen_sensor ON Cooking 0.9 Refrigerator_sensor ON Cooking 0.8 Bedroom_sensor ON Cooking 0.2
[0043] Then, the second machine learning engine 12 determines whether the validity likelihood is equal to or less than a "second predetermined condition." Here, the "second predetermined condition" may be a predetermined threshold value of the validity likelihood. According to Fig. 3, the predetermined threshold value is set to 0.3, and only the target items and pairs of state values (samples) and labels (judgment factors) whose validity likelihood is equal to or less than the predetermined threshold value of 0.3 are selected. < Sample >< Decision Factors > Target item State value Label Validity likelihood Bedroom_sensor ON Cooking 0.2
[0044] Here, the second machine learning engine 12 determines whether the likelihood of validity based on general knowledge is high for target items, state values, and labels that are estimated by the first machine learning engine 11 to have high feature importance. Here, if the likelihood of validity is high, there is no problem. On the other hand, if the validity likelihood is low, this is problematic, since the first machine learning engine 11 has been trained with a label that is estimated to have a low validity likelihood based on general knowledge, even though the feature importance that contributed to the label when the label was predicted from the target item and state value (sample) is high.
[0045] According to the invention, in order to correct this bias, a procedure is carried out to reset the state value to a pseudo value if the plausibility likelihood is below a second predetermined condition, taking into account general knowledge.
[0046] The state value may be a binary value such as ON / OFF, or may be a numerical value within a predetermined range. <When the state value is two-valued> The second machine learning engine 12 resets the state value to a "pseudo value" that is the inverse value (or counterexample) of the state value input from the first machine learning engine. 3, the state value is expressed as two values, ON / OFF, and the validity likelihood for the state value ON of the Bedroom_sensor and the label Cooking is expressed as 0.2. Here, the state value ON is reset to the pseudo value OFF. Target item Pseudo value Label Bedroom_sensor OFF Cooking
[0047] <If the status value is a numeric value> The second machine learning engine 12 resets the state value to a "pseudo value" that is a statistical value of state values of a plurality of other samples. The statistical value of the state value may be, for example, the average value, the median value, or the mode. In particular, for categorical features, it is preferable to use the mode. It should be noted that the second machine learning engine 12 acquires the statistical values of the state values for the same target item in a plurality of other samples from the teacher data.
[0048] Then, the second machine learning engine 12 outputs the target item and the pair of the “pseudo value” and the label to the first machine learning engine 11.
[0049] 3, the first machine learning engine 11 executes retraining using the target item Bedroom_sensor, the pseudo value OFF, and the label "Cooking." This means that the first machine learning engine 11 is retrained so that the feature importance of the target item Bedroom_sensor, the state value ON, and the label "Cooking" is lowered. In other words, the XAI can be retrained based on general knowledge without the need to check feedback from the annotator, which is expected to improve generalization performance.
[0050] FIG. 4 is a first illustrative diagram of a second machine learning engine based on a graph model.
[0051] <Graph model> The second machine learning engine 12 is based on a graph model in which the words of the target items and the words of the labels are treated as nodes, and the relationships between the nodes are linked by state values, using a language corpus. The graph model may be created by linking sensors and behavioral states from a general language corpus, or may be created by linking sensors and behavioral states obtained in the past from a large number of households. The links may express weights. The weights may represent the proportion of times the behavior label is given when the sensor is detected as ON. The weights may represent the likelihood of validity between the sensor (target items and state values) and the behavior label.
[0052] FIG. 5 is a second diagram illustrating a second machine learning engine based on a language corpus.
[0053] <Natural Language Model> The second machine learning engine 12 is based on a natural language model trained with natural language sentences labeled with valid labels and natural language sentences labeled with invalid labels, i.e., natural language sentences are trained with a binary value of either valid or invalid.
[0054] Here, a natural language sentence with a valid label is a sentence from a language corpus, while a natural language sentence with an invalid label is a sentence in which some words in the natural language sentence with the valid label have been replaced with other words. For example, consider a valid natural language sentence: "He puts sugar in his coffee." In this case, for example, "sugar" can be replaced with "the building" to create an invalid natural language sentence: "He puts the building in his coffee." The second machine learning engine 12 is then trained using the natural language sentence "He puts sugar in his coffee." that has been correctly labeled and the natural language sentence "He puts the building in his coffee." that has been incorrectly labeled. Here, the second machine learning engine 12 can be created by fine-tuning a trained language model such as BERT (Bidirectional Encoder Representations from Transformers). It can also be created by training a general-purpose classification model such as a random forest, a support vector machine, or a neural network using Word2vec to obtain an average vector of words contained in a sentence as a feature.
[0055] When the second machine learning engine 12 is based on a natural language model, a natural language text conversion unit 13 is further provided between the first machine learning engine 11 and the second machine learning engine 12 .
[0056] [Natural Language Text Conversion Section 13] The natural language sentence conversion unit 13 converts the target item, state value, and label output from the first machine learning engine 11 into a natural language sentence, and inputs it to the second machine learning engine 12. For example, if the target item is Kitchen_sensor, the state value is ON, and the label is Cooking, the sentence is converted into a natural language sentence such as "I think you were cooking, because the kitchen sensor responded." For example, if the target item is Bedroom_sensor, the status value is ON, and the label is Cooking, the sentence is converted into a natural language sentence such as "I think you were cooking, because the bedroom sensor responded." The second machine learning engine 12, which receives the converted natural language sentence, can determine whether the sentence is valid or invalid. If the sentence is invalid, the second machine learning engine 12 resets the state values of the target item, state value, and label to pseudo values and returns the pseudo values to the first machine learning engine 11.
[0057] [Confirmation flag assignment section 14] The confirmation flag assigning unit 14 assigns a confirmation flag to the annotator for the labeled sample, which has been input from the second machine learning engine 12 and whose state value has been reset to a pseudo value. The confirmation flag assigning unit 14 may assign confirmation flags to all labeled samples whose state values have been reset to pseudo values, or may assign confirmation flags to only a predetermined ratio or a predetermined number of samples among a plurality of samples. Of course, confirmation flags may be assigned randomly. According to the present invention, confirmation flags are assigned only to labeled samples determined to be highly valid by the second machine learning engine 12, so that confirmation may be performed by picking depending on the workload of the annotator.
[0058] Then, the confirmation flag assigning unit 14 outputs the target item and the state value or pseudo value to which the confirmation flag has been assigned, and the label to the user interface, and causes the annotator to answer whether the answer is correct or incorrect. This causes the annotator to confirm the labeled sample that should become the teacher data for retraining. According to the present invention, a sample that is strongly biased by a user (which generally has a low likelihood of validity) is judged using general knowledge, and a confirmation flag is assigned, allowing annotators to intuitively recognize the sample.
[0059] FIG. 6 is an explanatory diagram showing annotations in the present invention.
[0060] According to FIG. 6, target items to which confirmation flags have been added and whose feature amount importance is equal to or greater than the first predetermined condition, as well as state values or pseudo values and labels, are output to the user interface. In the first representation format, the previous “state value” is displayed for the annotator to confirm. During the action Cooking, the Bedroom_sensor is recognized as ON and will not be detected, so NO is answered. On the other hand, the second representation format displays the reconfigured “pseudo value” for the annotator to confirm. During the action “Cooking,” the Bedroom_sensor is recognized as being OFF, and the answer is “YES.”
[0061] According to the above-mentioned conventional technique shown in Fig. 1, all target items and state values (feature values) are displayed, which places a high recognition burden on the annotator. In other words, frequent interaction with the annotator is required to create highly accurate training data. On the other hand, according to FIG. 6 in the present invention, the target items and state values are limited and can be intuitively recognized by the confirmation flags, so that the cognitive burden on the annotator can be reduced. The target items and state or pseudo values and labels identified by the annotator are to be retrained by the first machine learning engine 11.
[0062] According to the present invention, the annotator only needs to confirm the labeled samples that are determined to have a high likelihood of validity by the second machine learning engine 12. That is, since only labeled samples that are highly valid based on general knowledge are displayed, the annotator can basically answer as the correct answer [YES]. Also, since a confirmation flag is added to labeled samples that are low in validity based on general knowledge, the annotator can intuitively recognize them and determine whether they are correct [YES] or incorrect [NO].
[0063] As described above in detail, according to the program, learning device, and method of the present invention, a machine learning engine that has been trained using labeled samples as training data can be retrained by assigning highly valid labels to unlabeled samples.
[0064] According to the present invention, even if the first machine learning engine of the XAI is trained only on the teacher data of a small number of labeled samples, it is possible to perform retraining with highly valid labeled samples by obtaining feedback from the second machine learning engine of the general-purpose AI. In addition, when applied to active learning, only highly valid labeled samples can be presented to the annotator, thereby reducing the workload. In other words, the labeling cost of the annotator in active learning can be significantly reduced.
[0065] The present invention can be applied to, for example, human behavior estimation using smart homes and wearable devices. In such applications, a large number of labeled samples are required, and from the viewpoint of privacy and accuracy improvement, it is desirable for the user to label the samples themselves. In contrast, the present invention can significantly reduce the burden of labeling on the user side.
[0066] Furthermore, this will make it possible, for example, to "retrain machine learning engines by assigning highly relevant labels to unlabeled samples," which will contribute to Goal 9 of the United Nations Sustainable Development Goals (SDGs) to "build resilient infrastructure, promote sustainable industrialization and foster innovation."
[0067] Regarding the various embodiments of the present invention described above, various changes, modifications, and omissions within the scope of the technical idea and perspective of the present invention can be easily made by those skilled in the art. The above description is merely an example and is not intended to be restrictive in any way. The present invention is limited only by the scope of the claims and their equivalents. [Explanation of symbols]
[0068] 1 Learning device 11 The No. 1 Machine Learning Engine 12 The second machine learning engine 13 Natural Language Text Conversion Section 14 Confirmation flag setting section
Claims
1. a first machine learning engine that is trained using teacher data in which labels are assigned to samples of one or more target items and state values, estimates feature importance that contributes to a label when predicting the label from one or more target items and state values, and outputs the target item, the state value, and the label when the feature importance is equal to or greater than a first predetermined condition; a second machine learning engine that uses a pre-trained language model to estimate a validity likelihood of the label for the target item and state value input from the first machine learning engine, and if the validity likelihood is equal to or less than a second predetermined condition, resets the state value to a pseudo value, outputs the target item, the pseudo value, and the label, and causes the first machine learning engine to retrain; A program for causing a computer to function.
2. The first machine learning engine is XAI (Explainable AI), Each target item and state value is a feature. Labels are a judgmental factor. Feature importance is an explanatory factor The program according to claim 1, which causes a computer to function as follows.
3. The state value is a binary value, The second machine learning engine resets the state value to a pseudo value that is the inverse of the state value input from the first machine learning engine.
3. The program according to claim 1, further comprising: a program for causing a computer to function as described above.
4. The state value is a number, The second machine learning engine resets the state value to a pseudo value that is a statistic of the state values of multiple other samples.
3. The program according to claim 1, further comprising: a program for causing a computer to function as described above.
5. The statistical value of the state value shall be the mean, median or mode.
5. The program according to claim 4, which causes a computer to function as described above.
6. The first predetermined condition in the first machine learning engine is a predetermined threshold value of feature importance, The second predetermined condition in the second machine learning engine is a predetermined threshold of the likelihood of validity.
3. The program according to claim 1, further comprising: a program for causing a computer to function as described above.
7. The second machine learning engine uses a language corpus and is based on a graph model in which the target item words and label words are treated as nodes, and the relationships between the nodes are linked by state values.
3. The program according to claim 1, further causing a computer to function as described above.
8. The second machine learning engine is based on a natural language model trained with natural language sentences with correct labels and natural language sentences with incorrect labels; a natural language sentence conversion means for converting the target items, state values, and labels output from the first machine learning engine into natural language sentences and inputting the natural language sentences to the second machine learning engine; 3. The program according to claim 1, further causing a computer to function.
9. The natural language sentences to which correct labels have been added are sentences from a language corpus, A natural language sentence with an inappropriate label is a sentence with a correct label in which some words have been replaced with other words.
9. The program according to claim 8, further causing a computer to function as follows.
10. a confirmation flag assigning means for assigning a confirmation flag to an annotator for a labeled sample whose state value has been reset to a pseudo value and which is input from the second machine learning engine; And further enhance its functionality. The confirmation flag assigning means outputs the target item and the state value or pseudo value to which the confirmation flag has been assigned, and the label to the user interface, and prompts the annotator to answer whether the answer is correct or incorrect.
3. The program according to claim 1, further comprising: a program for causing a computer to function as described above.
11. The first machine learning engine actively selects samples for which labels should be predicted from a set of unlabeled samples by using uncertainty sampling.
3. The program according to claim 1, further causing a computer to function as described above.
12. a first machine learning engine that is trained using teacher data in which labels are assigned to samples of one or more target items and state values, estimates feature importance that contributes to a label when predicting the label from one or more target items and state values, and outputs the target item, the state value, and the label when the feature importance is equal to or greater than a first predetermined condition; a second machine learning engine that uses a pre-trained language model to estimate a validity likelihood of the label for the target item and state value input from the first machine learning engine, and if the validity likelihood is equal to or less than a second predetermined condition, resets the state value to a pseudo value, outputs the target item, the pseudo value, and the label, and causes the first machine learning engine to retrain; A learning device comprising:
13. The learning device is a first step of using a first machine learning engine to train with teacher data in which labels are assigned to samples of one or more target items and state values, estimating feature importance that contributed to the label when predicting the label from one or more target items and state values, and outputting the target items, state values, and labels when the feature importance is equal to or greater than a first predetermined condition; a second step of estimating, using a second machine learning engine, a validity likelihood of the label for the target item and state value input from the first machine learning engine using a pre-trained language model, and if the validity likelihood is equal to or less than a second predetermined condition, resetting the state value to a pseudo value, outputting the target item, the pseudo value, and the label, and retraining the first machine learning engine; A learning method comprising the steps of:
Citation Information
Patent Citations
Information determination model learning device and program thereof
JP2019215705A
Information processor, information processing method, and program
JP2022109664A
Machine Learning and Reject Inference Techniques Utilizing Attributes of Unlabeled Data Samples
US20220318654A1
Active learning device, active learning method, and program
JP2021047751A
Active learning by sample matching evaluation
JP2022545476A
