Learning device and classification device

The learning device maximizes AUC using positive data reliability to address biases in classification models, enabling accurate learning and classification even without negative data.

JP2024139555AInactive Publication Date: 2024-10-09KYOCERA CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023050549
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-10-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing classification techniques using machine learning models are prone to inaccuracies due to biases in learning data, particularly when only positive examples are available, making it difficult to perform appropriate learning without negative data.

Method used

A learning device that generates a classification model by maximizing the Area Under the Curve (AUC) using positive data and their reliability, allowing for appropriate learning even when only positive data is available, by minimizing the sum of losses across combinations of positive data.

Benefits of technology

This approach enables effective classification by maximizing AUC, ensuring accurate learning despite biases in data reliability, even when negative data is unavailable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024139555000001_ABST
    Figure 2024139555000001_ABST
Patent Text Reader

Abstract

To enable appropriate learning even in the presence of a bias in positive confidence of learning data.SOLUTION: A learning device (10) is provided, comprising a first learning unit (11) configured to learn boundaries for classifying positive examples and negative examples so as to maximize an AUC using learning data (50) including multiple sets of positive data (51) representing positive examples and positive confidence data (52) representing positive confidence, or confidence of each set of the positive data (51), as an input.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a learning device or the like that trains a classification model for classifying data. [Background technology]

[0002] In recent years, data is often classified using a trained model trained by machine learning. In addition, various learning methods have been proposed for machine learning. For example, Patent Document 1 discloses a classification device that uses positive examples and the reliability of the positive examples and updates a correction parameter that corrects the reliability to learn a classification boundary between positive examples and negative examples. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2021-152799 Summary of the Invention [Problem to be solved by the invention]

[0004] In the technology described in Patent Document 1, positive examples and their positive confidence levels are used as training data, and training is performed to minimize classification errors. Therefore, if there is a bias in the positive confidence levels of the training data, there is a possibility that the training may not be performed properly. [Means for solving the problem]

[0005] In order to solve the above-mentioned problems, a learning device according to one embodiment of the present disclosure is a learning device that generates a trained classification model that classifies data to be classified into positive examples or negative examples, and includes a first learning unit that receives training data including a plurality of positive data indicating the positive examples and positive confidence levels that are the reliability of each of the positive data, and learns a boundary for classifying the positive examples and the negative examples so as to maximize AUC. Effect of the Invention

[0006] According to one aspect of the present disclosure, since the boundary for classifying positive examples and negative examples is learned so as to maximize the AUC, learning can be performed appropriately even if there is a bias in the positive confidence. [Brief description of the drawings]

[0007] [Figure 1] 1 is a functional block diagram showing a configuration of a main part of a learning device according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram showing an example of learning data used by the learning device for learning. [Diagram 3] 4 is a flowchart showing the flow of a learning process in the learning device. [Figure 4] FIG. 2 is a functional block diagram showing a configuration of a main part of the classification device. [Diagram 5] FIG. 1 is a diagram showing a configuration of a classification system. [Figure 6] FIG. 4 is a functional block diagram showing another embodiment of the learning device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] First, a learning device 10 according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a functional block diagram showing a configuration of a main part of the learning device 10. The learning device 10 trains a classification model 100 for performing binary classification of classification target data 60 into positive and negative. Specifically, the learning device 10 trains the classification model 100 using positive data 51 and positive reliability data 52 indicating the reliability of each of the positive data 51 as training data 50.

[0009] Other learning methods for the classification model 100 that performs binary classification include PN learning (Positive-Negative Learning) and PU learning (Positive-Unlabeled Learning). PN learning is a learning method in which the learning data includes data that includes multiple positive data that indicate positive examples and multiple negative data that are negative examples. PU learning is a learning method in which the learning data includes multiple positive data that indicate positive examples and multiple unknown data that are unknown as to whether they are positive examples or negative examples.

[0010] However, PN learning and PU learning require negative data, which is generally very costly and difficult to collect.

[0011] For example, in the real world, it is often the case that only positive data is available and negative data cannot be obtained. For example, in purchase prediction, it is easy to obtain cases where customers have purchased one's own products in the past (positive data), but it is difficult to obtain cases where customers have purchased other companies' products other than one's own products (negative data).

[0012] The learning using the positive data 51 and the positive confidence data 52 according to the present disclosure makes it possible to train the classification model 100 for performing binary classification by using the confidence of the positive data, even in a case where only such positive data is available.

[0013] 1, the learning device 10 includes a first learning unit 11. The first learning unit 11 uses learning data 50 to learn a pre-learning classification model 101.

[0014] The pre-learned classification model 101 is the classification model 100 before or during learning. The classification model 100 assigns a score (output value) to input data and outputs the data. The first learning unit 11 trains the pre-learned classification model 101 with a classification boundary between positive and negative examples, and generates a trained classification model 102 that classifies, for example, data with a score greater than an input threshold input by a user into a positive example and data with a score less than the input threshold into a negative example. In the following, the trained classification model 100 is also referred to as a trained classification model 102. When there is no restriction as to whether it is pre-learned or trained, it is simply referred to as the classification model 100.

[0015] The learning data 50 includes a plurality of positive data 51 indicating positive examples, and positive reliability data 52 which is the reliability of each of the positive data 51. FIG. 2 shows an example of the learning data 50. Here, an example of data detected by a sensor is shown. FIG. 2 shows data showing the progress of the sensor value for a predetermined period of time. Here, the positive data 51 which is normal and has a label indicating that the sensor value data is normal, and the positive reliability data 52 which indicates the reliability of the positive data 51 are shown.

[0016] The positive reliability data 52 is data that indicates the reliability (positive reliability) of each data point of the positive data 51. The reliability may be indicated by a numerical value from 0 to 1. The reliability may be given by a person, and for example, the reliability may be given to data acquired during operation of the device as (1) a value subjectively given by an expert familiar with the device, (2) a value that evaluates the quality of a product produced by the device on a 5-point scale, or (3) a value subjectively evaluated by an expert based on the sound and minute movements of the device during operation.

[0017] The first learning unit 11 trains the pre-learning classification model 101 so as to maximize an AUC (Area Under Curve) based on a classification result obtained by inputting training data 50 into the pre-learning classification model 101, and generates a trained classification model 102. More specifically, the first learning unit 11 trains the pre-learning classification model 101 so as to maximize an AUC based on an output score for a positive example associated with a positive confidence level, obtained by inputting training data 50 into the pre-learning classification model 101.

[0018] Specifically, the first learning unit 11 trains the pre-trained classification model 101 based on the AUC loss formula shown in the following formula (1). That is, the pre-trained classification model 101 is trained so as to minimize the value calculated by formula (1).

[0019]

number

[0020] Here, x is positive data, n is the number of positive data, g is the classification model, r is the reliability, and l is the loss function. That is, in formula (1), two pieces of positive data are treated as one set, and the loss of all combinations of the positive data is calculated. In other words, formula (1) calculates the sum of the loss of a combination of any two pieces of positive data among the multiple pieces of positive data. By learning so that the sum of the loss of a combination of any two pieces of positive data among the multiple pieces of positive data is minimized, learning equivalent to maximizing the AUC can be performed. And, by calculating the loss of all combinations of the positive data as described above, even if there is a bias in the reliability, it is possible to equally consider the weight for all positive data, and to appropriately learn.

[0021] The above formula (1) will now be described.

[0022] First, AUC is one of the model evaluation indices, and represents the area under the ROC curve. The ROC curve is a plot of the relationship between recall and false positive rate when the base threshold for dividing positive and negative examples is changed, with recall on the vertical axis and false positive rate on the horizontal axis. Recall is the proportion of all positive examples that were correctly classified as positive examples. False positive rate is the proportion of all negative examples that were incorrectly classified as positive examples.

[0023] First, in general, the expected loss for negative data is expressed by the following formula (2) using the expected loss for positive data and the reliability.

[0024]

number

[0025] where x is the data and π N is the negative class prior probability in the data (proportion of negative data in the data), π P is the positive class prior probability in the data (the proportion of positive data in the data), E N is the expectation for the negative data probability distribution, E P is the expected value for the positive data probability distribution, and r is the confidence level.

[0026] Both sides of equation (2) are N Dividing by this gives us the following equation (3).

[0027]

number

[0028] On the other hand, the expected loss that maximizes the AUC in PN learning is expressed by the following equation (4).

[0029]

number

[0030] where x P is positive data, x Nis the negative data, g is the classification model, and l is the loss function.

[0031] From equations (3) and (4), the equation for calculating the expected loss that maximizes the AUC from the positive data and confidence can be written as the following equation (5).

[0032]

number

[0033] Here, π P / π N Since is a constant, it is removed from equation (5).

[0034] Rewriting equation (5) into an empirical loss equation gives the above equation (1). Therefore, equation (1) can be said to be a loss equation that performs learning to maximize AUC using positive data and confidence.

[0035] [Learning process flow in the learning device 10] Next, the flow of the learning process in the learning device 10 will be described with reference to Fig. 3. Fig. 3 is a flowchart showing the flow of the learning process.

[0036] As shown in FIG. 3, the first learning unit 11 of the learning device 10 first extracts one set of learning data 50 (positive data 51 and positive confidence data 52) (S101). Next, the extracted learning data 50 and formula (1) are used to calculate a loss (S102). The first learning unit 11 then updates the parameters of the pre-learning classification model 101 based on the calculated loss (S103). Then, if a predetermined learning accuracy has been achieved (YES in S104), the learning process ends, and if the predetermined learning accuracy has not been achieved (NO in S104), the process returns to step S101 and continues learning.

[0037] [Classification device] Next, the classification device 20 will be described with reference to Fig. 4. Fig. 4 is a functional block diagram showing a configuration of a main part of the classification device 20. The classification device 20 classifies data to be classified 60 using a trained classification model 102, which is a classification model 100 trained by the learning device 10, and outputs the result.

[0038] The classification device 20 may perform any type of classification as long as it performs binary classification of data using the classification model 100 trained using training data 50 including positive data 51 and positive confidence data 52. For example, it may classify whether image data is a specific animal (e.g., a cat), whether an email is a phishing email, whether detected data is normal, etc.

[0039] [Classification System] Next, the classification system 1 will be described with reference to Fig. 5. Fig. 5 is a diagram showing the configuration of the classification system 1. The classification system 1 includes the learning device 10 shown in Fig. 1 and the classification device 20 shown in Fig. 4, and further includes an evaluation device 30 that evaluates the classification result by the classification device 20 and feeds back the evaluation result to the classification device 20.

[0040] As described above, the learning device 10 trains the classification model 100 using the training data 50 including the correct data 51 and the correct confidence data 52. The classification device 20 classifies the classification target data 60 using the classification model 100 trained by the learning device 10. The classification result is output to the evaluation device 30.

[0041] The evaluation device 30 presents the classification results to the evaluator. Then, based on the evaluation results by the evaluator, the evaluation device 30 adjusts the hyperparameters used in the classification model 100. The adjustment of the hyperparameters may itself be performed by the evaluator. The hyperparameters are parameters that set the behavior of the machine learning algorithm.

[0042] [Another embodiment] Next, a learning device 10A which is another embodiment of the learning device 10 will be described with reference to Fig. 6. Fig. 6 is a functional block diagram showing the learning device 10 according to another embodiment.

[0043] The learning device 10A according to this embodiment includes a second learning unit 12 and a switching unit 13 in addition to the first learning unit 11 described above.

[0044] The second learning unit 12 receives learning data as input, classifies the learning data into positive examples and negative examples, and causes the pre-learning classification model 101 to learn a base threshold for dividing the learning data into positive examples and negative examples so as to minimize errors based on the classification results.

[0045] The switching unit 13 switches between the first learning unit 11 and the second learning unit 12 to learn the pre-learning classification model 101, depending on the learning data.

[0046] The switching unit 13 switches between the first learning unit 11 and the second learning unit 12 based on an evaluation index calculated using accuracy verification data 70 including multiple positive data 71 indicating positive examples and multiple negative data 72 indicating negative examples, and the pre-learning classification model 101.

[0047] [Software implementation example] The functions of the learning device 10, 10A, and the classification device 20 can be realized by a program for causing a computer to function as the device, and a program for causing a computer to function as the control block (first learning unit 11, second learning unit 12, switching unit 13) of the device.

[0048] In this case, the device includes a computer having at least one control device (e.g., a processor) and at least one storage device (e.g., a memory) as hardware for executing the program. The control device and storage device execute the program to realize each function described in each of the above embodiments.

[0049] The program may be non-transitory and may be recorded in one or more computer-readable recording media. The recording media may or may not be included in the device. In the latter case, the program may be provided to the device via any wired or wireless transmission medium.

[0050] In addition, some or all of the functions of each of the control blocks can be realized by a logic circuit. For example, an integrated circuit in which a logic circuit that functions as each of the control blocks is formed is also included in the scope of the present disclosure. In addition, the functions of each of the control blocks can be realized by, for example, a quantum computer.

[0051] Furthermore, each process described in the above embodiment may be executed by AI (Artificial Intelligence). In this case, the AI ​​may be operated by the control device or another device (for example, an edge computer or a cloud server).

[0052] 〔summary〕 A learning device according to a first aspect of the present disclosure is a learning device that generates a trained classification model that classifies data to be classified into positive examples or negative examples, and includes a first learning unit that receives training data including a plurality of positive data indicating the positive examples and positive confidence levels that are the reliability of each of the positive data, and learns a boundary for classifying the positive examples and the negative examples so as to maximize AUC.

[0053] According to the above configuration, even when the training data includes positive data indicating positive examples and positive confidences that are the confidences of the positive data, the boundary for classifying positive examples and negative examples is learned so as to maximize the AUC. Therefore, even when the positive confidences are biased, the training can be performed appropriately.

[0054] In the learning device according to aspect 2 of the present disclosure, in the above aspect 1, the first learning unit maximizes the AUC by learning to minimize the sum of losses for a combination of any two positive data among a plurality of positive data included in the learning data.

[0055] According to the above configuration, learning is performed so that the sum of losses between any two combinations of positive data is minimized. This makes it possible to perform learning equivalent to maximizing the AUC.

[0056] In the learning device according to aspect 3 of the present disclosure, in the aspect 1 or 2, the first learning unit is configured to calculate the following formula (1) when x is positive data included in the learning data, n is the number of positive data in the learning data, r is the positive confidence corresponding to the positive data, g is a classification model, and l is a loss function.

[0057]

number

[0058] Learning is performed to minimize the value calculated by

[0059] By learning to minimize the value calculated by the above formula (1), the AUC can be maximized.

[0060] A learning device according to aspect 4 of the present disclosure, in any of aspects 1 to 3, includes a second learning unit that learns the boundary so as to minimize an error based on the classification result when the learning data is input, and a switching unit that switches between the first learning unit and the second learning unit.

[0061] According to the above configuration, learning can be performed by switching between learning for maximizing the AUC and learning for minimizing the error.

[0062] A learning device according to aspect 5 of the present disclosure is any one of aspects 1 to 4, wherein the switching unit performs the switching based on an evaluation index, and the evaluation index is accuracy verification data for determining whether to use the first learning unit or the second learning unit, and is calculated using the accuracy verification data including a plurality of positive data indicating positive examples and a plurality of negative data indicating negative examples, and the trained classification model.

[0063] According to the above configuration, when learning is performed using learning data, it is possible to automatically switch between learning to maximize the AUC by the first learning unit and learning to minimize the error by the second learning unit.

[0064] The classification device according to a sixth aspect of the present disclosure classifies the classification target data using a trained classification model trained by the learning device.

[0065] According to the above configuration, a classification device can be realized that uses a trained model trained by the above-mentioned learning device.

[0066] The invention according to the present disclosure has been described above based on the drawings and examples. However, the invention according to the present disclosure is not limited to the above-mentioned embodiments. In other words, the invention according to the present disclosure can be modified in various ways within the scope of the present disclosure, and the embodiments obtained by appropriately combining the technical means disclosed in the different embodiments are also included in the technical scope of the invention according to the present disclosure. In other words, it should be noted that a person skilled in the art can easily make various modifications or corrections based on the present disclosure. It should also be noted that these modifications or corrections are included in the scope of the present disclosure. [Explanation of symbols]

[0067] 1 Classification System 10 Learning Device 11 First Study Section 12 Second Learning Section 13 Switching section 20 Classifier 50 Training data 51 Positive Data 52 Positive Reliability Data 60 Classification Data 70 Accuracy verification data 71 Positive Data 72 negative data 100 Classification Models 101 Pre-training classification model 102 Trained Classification Models

Claims

1. A learning device that generates a trained classification model that classifies data to be classified into positive examples or negative examples, a first learning unit that receives learning data including a plurality of positive data indicating the positive examples and a positive confidence level that is a confidence level of each of the positive data, and learns a boundary for classifying the positive examples and the negative examples so as to maximize AUC.

2. The learning device according to claim 1 , wherein the first learning unit maximizes the AUC by learning so as to minimize a sum of losses for a combination of any two pieces of positive data among a plurality of positive data included in the learning data.

3. The first learning unit calculates the following formula (1) when x is positive data included in the learning data, n is the number of positive data in the learning data, r is the positive confidence corresponding to the positive data, g is a classification model, and l is a loss function. [0010] The learning device according to claim 2 , wherein learning is performed so as to minimize a value calculated by:

4. a second learning unit that learns the boundary so as to minimize an error based on a classification result when the learning data is input; The learning device according to claim 1 , further comprising: a switching unit that switches between the first learning unit and the second learning unit.

5. The switching unit performs the switching based on an evaluation index, 5. The learning device according to claim 4, wherein the evaluation index is accuracy verification data for determining whether to use the first learning unit or the second learning unit, and is calculated using the accuracy verification data including a plurality of positive data indicating positive examples and a plurality of negative data indicating negative examples, and the trained classification model.

6. A classification device that classifies data to be classified using a trained classification model trained by the learning device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Classification device and classification method

    JP2021152799A