Output program, output method, and information processing device

The output program and information processing device address the issue of declining prediction accuracy in classification models by generating correction rules that evaluate and improve prediction outcomes, minimizing regression and enhancing model performance.

WO2024189865A1PCT designated stage expired Publication Date: 2024-09-19FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/010219
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Trained classification models may not predict classes with sufficiently high accuracy, especially when the trend of input data changes after training, leading to lower prediction accuracy and potential regression in prediction results.

Method used

An output program and information processing device generate correction rules by evaluating multiple candidates based on index values that indicate the proportion of samples whose predicted class changes from incorrect to correct or vice versa, selecting rules that improve prediction accuracy while minimizing regression.

Benefits of technology

The solution generates appropriate correction rules that enhance the prediction accuracy of classification models by identifying and addressing weaknesses in existing models, reducing regression and improving prediction outcomes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023010219_19092024_PF_FP_ABST
    Figure JP2023010219_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention generates a correction rule for correcting prediction results of a class classification model. A computer acquires a plurality of correction rule candidates that are correction rules regarding a machine learning model that predicts which of a plurality of classes that each of input data will be classified into. The computer evaluates each of the plurality of correction rule candidates, on the basis of a first index value indicating a proportion of a second sample set of which a prediction class changes from an incorrect answer class to a correct answer class by a correction method with respect to a first sample set of which the prediction class is an incorrect answer class that is different from a correct answer class, and a second index value indicating a proportion of the second sample set to a sum of the second sample set and a third sample set of which the prediction class changes from the correct answer class to the incorrect answer class by the correction method. The computer outputs one or more correction rules selected from the plurality of correction rule candidates on the basis of results of the evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Output program, output method, and information processing device

[0001] The present invention relates to an output program, an output method, and an information processing device.

[0002] One type of machine learning model is a classification model that predicts which class of multiple classes input data belongs to. The classification model may calculate predicted probabilities indicating the probability that input data belongs to at least some of the classes. For example, the input data is classified into the class with the highest predicted probability among the multiple classes.

[0003] In addition, active learning has been proposed, which selects a small number of instances from unlabeled training data, requests the user to label the selected instances, and improves the accuracy of the machine learning model based on the assigned labels.

[0004] Burr Settles, "Active Learning Literature Survey", Computer Sciences Technical Report 1648, University of Wisconsin-Madison, January 2009

[0005] A trained classification model may not predict classes with sufficient accuracy. For example, the trend of input data may change after the fact, causing the prediction accuracy of the classification model to decline compared to when it was trained. In this case, a computer may want to obtain correction rules for correcting the prediction results of a trained classification model.

[0006] The correction rule specifies, for example, how to correct the prediction results of a classification model for certain input data. Appropriate correction rules that contribute to improving prediction accuracy may be useful when retraining a classification model. Appropriate correction rules may also be used to directly correct the output of a classification model.

[0007] However, depending on the correction rule, there is a possibility that prediction accuracy will not be sufficiently improved. Furthermore, depending on the correction rule, there is a possibility that regression will occur, in which some prediction results change from correct to incorrect. Therefore, how to generate correction rules corresponding to a classification model is important. Therefore, in one aspect, an object of the present invention is to generate correction rules that correct the prediction results of a classification model.

[0008] In one aspect, an output program is provided that causes a computer to perform the following processes: acquire a plurality of correction rule candidates, each of which is a correction rule for a machine learning model that predicts into which of a plurality of classes input data will be classified; evaluate each of the plurality of correction rule candidates based on a first index value indicating the proportion of a second sample set whose predicted class changes from an incorrect class to a correct class by the correction method relative to a first sample set in which the predicted class identified from the prediction probability is an incorrect class different from the correct class when each of the plurality of correction rule candidates is applied to the prediction probability for a plurality of classes of the machine learning model for each of the plurality of samples when the plurality of samples are used as input data; and evaluate each of the plurality of correction rule candidates based on a second index value indicating the proportion of the second sample set relative to the sum of the second sample set and a third sample set whose predicted class changes from the correct class to the incorrect class by the correction method. Based on the evaluation results of the plurality of correction rule candidates, output one or more correction rules selected from the plurality of correction rule candidates.

[0009] In one aspect, a computer-implemented output method is provided.In another aspect, an information processing device is provided having a storage unit and a processing unit.

[0010] In one aspect, correction rules are generated to correct the prediction results of the classification model.The above and other objects, features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings illustrating preferred embodiments of the present invention.

[0011] FIG. 1 is a diagram for explaining an information processing apparatus according to a first embodiment; FIG. 2 is a diagram illustrating an example of hardware of an information processing apparatus according to a second embodiment; FIG. 3 is a diagram illustrating an example of a dataset table; FIG. 4 is a diagram illustrating an example of a rule search by a backtracking method; FIG. 5 is a diagram illustrating an example of a correction rule list; FIG. 6 is a diagram illustrating an example of a dataset table after correction; FIG. 7 is a diagram illustrating a first example of use of a correction rule; FIG. 8 is a diagram illustrating a second example of use of a correction rule; FIG. 9 is a block diagram illustrating an example of functions of an information processing apparatus; and FIG. 10 is a flowchart illustrating an example of a procedure for generating a correction rule.

[0012] The present embodiment will be described below with reference to the drawings. [First Embodiment] The first embodiment will be described.

[0013] FIG. 1 is a diagram illustrating an information processing device according to a first embodiment. The information processing device 10 according to the first embodiment generates and outputs correction rules for correcting prediction results of a machine learning model that performs class classification. The information processing device 10 may train the machine learning model, may use the machine learning model to predict a class to which input data belongs, or may correct the prediction results of the machine learning model using the correction rules. The information processing device 10 may be a client device or a server device. The information processing device 10 may also be called a computer, an output device, a machine learning device, or a prediction device.

[0014] The information processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 may be a volatile semiconductor memory such as a random access memory (RAM), or may be a non-volatile storage such as a hard disk drive (HDD) or a flash memory.

[0015] The processing unit 12 is, for example, a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). However, the processing unit 12 may also include an electronic circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a RAM (which may be the storage unit 11). A set of processors may be called a multiprocessor or simply a "processor."

[0016] The storage unit 11 stores a dataset 13 including a plurality of samples. The dataset 13 may include training data used to train the machine learning model, or may include operational data collected after training the machine learning model. After the machine learning model begins operation, trends in the input data input to the machine learning model may change due to reasons such as aging of the sensor device or changes in the usage environment. As a result, the predictive accuracy of the machine learning model may subsequently decrease. The correction rules described below may indicate weaknesses of the existing machine learning model against new trends in the input data. The type of machine learning model is not limited, and may be a rule-based model, a neural network, a decision tree, or a support vector machine.

[0017] Each sample included in the dataset 13 associates input data with a correct class and a predicted probability. The input data may be an attribute set including attribute values ​​of at least some of a plurality of attribute types. For example, the attribute types correspond to columns in a relational database, and the attribute values ​​correspond to column values ​​in the relational database. The attribute values ​​may be measurements obtained by a sensor device, such as volume or weight. The input data may indicate attribute types whose attribute values ​​satisfy certain conditions (for example, attribute types whose numerical values ​​fall within a certain range corresponding to the attribute type).

[0018] The correct class is a label indicating the correct class to which the input data belongs among multiple classes. The multiple classes may be two classes, such as good products and bad products. The predicted probability is calculated from the input data by a trained machine learning model. The predicted probability includes a class probability indicating a prediction of the probability that the input data belongs to a specific class. The class probability is, for example, a continuous value between 0 and 1. The machine learning model classifies the input data into the class with the highest class probability, for example. The class probability is calculated for some or all classes. The predicted probability may indicate a probability distribution of all classes. Furthermore, the predicted probability may indicate only the class probability of a specific class, or if there are two classes, it may indicate either one of the class probabilities.

[0019] The processing unit 12 uses the dataset 13 to generate a plurality of correction rule candidates, including correction rule candidates 14a, 14b, and 14c. Each correction rule candidate specifies a condition for the input data and a method for correcting the predicted probability calculated by the machine learning model. The condition may indicate that an attribute value of a certain attribute type falls within a certain numerical range. Alternatively, the condition may be a logical AND of conditions for two or more attribute types.

[0020] The correction method is applied to samples having input data that satisfy the conditions. The correction method may include a class that increases the class probability and a weight for controlling the amount of change in the class probability. The correction method reduces the class probability of classes other than the specified class. The multiple correction rule candidates may include correction rule candidates with the same conditions but different correction methods. The multiple correction rule candidates may also include correction rule candidates with different conditions. The processing unit 12 may determine weight candidates from the dataset 13, or may comprehensively generate correction rule candidates by changing the combination of conditions, classes, and weights.

[0021] The processing unit 12 evaluates each of the generated correction rule candidates using index values ​​15 and 16. The index values ​​15 and 16 are calculated, for example, for each correction rule candidate. The index value 15 indicates the proportion of a sample set whose predicted class changes from an incorrect class to a correct class by the correction method, relative to a sample set whose predicted class is an incorrect class, among samples included in the dataset 13. The predicted class is a class identified by a prediction probability, for example, a class with the highest class probability. The incorrect class is a class different from the correct class. It can also be said that the index value 15 represents the correction rate of the correction method.

[0022] The index value 16 indicates the proportion of the sample set whose predicted class changes to the correct class relative to the sum of the sample set whose predicted class changes to the correct class due to the correction method and the sample set whose predicted class changes from the correct class to the incorrect class, among the samples included in the dataset 13. The denominator of the index value 16 corresponds to the sample set whose predicted class changes due to the correction method. It can also be said that the index value 16 represents the accuracy rate of the correction method.

[0023] The processing unit 12 outputs one or more correction rule candidates selected from the plurality of correction rule candidates as correction rules based on the evaluation results of the plurality of correction rule candidates. For example, the processing unit 12 selects at most one correction rule candidate from among correction rule candidates with the same conditions. The selected correction rule candidate is, for example, the correction rule candidate with the largest index value 16 among the correction rule candidates whose index value 15 is equal to or greater than a threshold value. However, the processing unit 12 may narrow down the correction rule candidates to those whose index value 16 is equal to or greater than a threshold value. The processing unit 12 may also select correction rule candidates from the index values ​​15 and 16 using another determination method.

[0024] The processing unit 12 may display the correction rule on a display device, store it in non-volatile storage, or transmit it to another information processing device. The processing unit 12 may also extract some samples from the dataset 13 using the correction rule and retrain the machine learning model using the extracted samples. The extracted samples may be samples whose input data satisfies the conditions of the correction rule. The extracted samples may also be samples whose input data satisfies the conditions and whose correct class is the same as the class specified by the correction method. The processing unit 12 may also directly correct the predicted class for new input data by correcting the output of an existing machine learning model using the correction rule.

[0025] As described above, the information processing device 10 according to the first embodiment uses a dataset 13 including a plurality of samples in which input data, correct classes, and predicted probabilities are associated to generate correction rule candidates 14a, 14b, and 14c that specify input data conditions and methods for correcting predicted probabilities. The information processing device 10 evaluates each correction rule candidate based on index values ​​15 and 16. The index value 15 indicates the proportion of a sample set whose predicted class changes to the correct class by the correction method relative to a sample set whose predicted class is an incorrect class. The index value 16 indicates the proportion of a sample set whose predicted class changes to the correct class relative to the sum of a sample set whose predicted class changes to the incorrect class and a sample set whose predicted class changes to the correct class. The information processing device 10 outputs one or more correction rules selected from the correction rule candidates 14a, 14b, and 14c based on the evaluation results.

[0026] As a result, an appropriate correction rule corresponding to the existing machine learning model is generated. The information processing device 10 may use the correction rule to extract samples for retraining the machine learning model. This improves the prediction accuracy of the machine learning model. The information processing device 10 may also use the correction rule to change the output of the existing machine learning model. This reinforces weaknesses in the existing machine learning model. Furthermore, knowledge regarding weaknesses in the existing machine learning model is acquired from the correction rule.

[0027] Furthermore, the information processing device 10 evaluates each correction rule candidate using the index values ​​15 and 16. As a result, a correction rule candidate that significantly improves prediction accuracy and has little regression, in which the prediction result changes from correct to incorrect, is selected, thereby improving the usefulness of the correction rule.

[0028] The information processing device 10 may select, from two or more correction rule candidates that have the same conditions but different correction methods, the correction rule candidate with the largest index value 16 among the correction rule candidates whose index value 15 is equal to or greater than a threshold value. In this way, a useful correction rule with little regression is selected.

[0029] The correction method may also specify a class that increases the class probability and a weight that controls the amount of change in the class probability. This makes it easier to adjust the correction method to improve prediction accuracy while suppressing regression, compared to when the predicted class is directly corrected. The information processing device 10 may also calculate, for each sample, a lower bound on the weight for changing the predicted class using the correction method, and determine weight candidates to be used in the correction rule candidates based on the lower bound. This allows different weight candidates to affect the prediction results for different sample sets, making it easier to adjust the correction method.

[0030] Furthermore, the information processing device 10 may omit evaluation of some correction rule candidates when the proportion of samples whose input data satisfy the first condition among a sample set whose predicted class is an incorrect class is less than a threshold. The correction rule candidates to be omitted may be correction rule candidates that specify a second condition that indicates the logical product of the first condition and the additional condition. This omits evaluation of correction rule candidates whose index value 15 is less than the threshold, thereby shortening processing time.

[0031] Second Embodiment Next, a second embodiment will be described. In the second embodiment, an information processing device 100 generates correction rules that indicate current weaknesses of the machine learning model and correction methods using operational data collected after training of the machine learning model. The information processing device 100 may add appropriate training data by referring to the correction rules and retrain the machine learning model. Furthermore, instead of retraining the machine learning model, the information processing device 100 may correct prediction results using the correction rules. However, retraining of the machine learning model and correction of prediction results may also be performed by another information processing device.

[0032] The machine learning model of the second embodiment is a classification model that determines the class to which input data belongs. For example, the machine learning model is an image recognition model that determines the presence or absence of a disease or the type of disease from an image of a patient's affected area. Furthermore, for example, the machine learning model determines the quality of a product from various physical quantities measured by sensor devices on a production line. Changes in the trend of the input data since training can subsequently reduce the prediction accuracy of the machine learning model. Various types of machine learning models can be used, including rule-based models, neural networks, decision trees, and support vector machines.

[0033] The information processing device 100 may be a client device or a server device. The information processing device 100 may also be called a computer, an output device, a machine learning device, or a prediction device. The information processing device 100 corresponds to the information processing device 10 of the first embodiment.

[0034] 2 is a diagram illustrating an example of hardware of an information processing apparatus according to the second embodiment. The information processing apparatus 100 includes a CPU 101, a RAM 102, a HDD 103, a GPU 104, an input interface 105, a media reader 106, and a communication interface 107, all connected via a bus. The CPU 101 corresponds to the processing unit 12 in the first embodiment. The RAM 102 or the HDD 103 corresponds to the storage unit 11 in the first embodiment.

[0035] The CPU 101 is a processor that executes program instructions. The CPU 101 loads programs and data stored in the HDD 103 into the RAM 102 and executes the programs. The information processing apparatus 100 may have multiple processors.

[0036] The RAM 102 is a volatile semiconductor memory that temporarily stores programs executed by the CPU 101 and data used in calculations by the CPU 101. The information processing device 100 may also include a type of volatile memory other than RAM.

[0037] The HDD 103 is a non-volatile storage that stores software programs such as an operating system (OS), middleware, and application software, as well as data. The information processing device 100 may also include other types of non-volatile storage, such as a flash memory or an SSD (Solid State Drive).

[0038] The GPU 104 performs image processing in cooperation with the CPU 101 and outputs an image to a display device 111 connected to the information processing device 100. The display device 111 is, for example, a CRT (Cathode Ray Tube) display, a liquid crystal display, an organic EL (Electro Luminescence) display, or a projector. Other types of output devices, such as a printer, may also be connected to the information processing device 100.

[0039] The GPU 104 may also be used as a general purpose computing on graphics processing unit (GPGPU). The GPU 104 may execute a program in response to an instruction from the CPU 101. The information processing apparatus 100 may include a volatile semiconductor memory other than the RAM 102 as a GPU memory.

[0040] The input interface 105 receives an input signal from an input device 112 connected to the information processing apparatus 100. The input device 112 is, for example, a mouse, a touch panel, or a keyboard. A plurality of input devices may be connected to the information processing apparatus 100.

[0041] The medium reader 106 is a reading device that reads programs and data recorded on the recording medium 113. The recording medium 113 is, for example, a magnetic disk, an optical disk, or a semiconductor memory. Magnetic disks include flexible disks (FDs) and HDDs. Optical disks include compact discs (CDs) and digital versatile discs (DVDs). The medium reader 106 copies the programs and data read from the recording medium 113 to other recording media such as the RAM 102 or the HDD 103. The read programs may be executed by the CPU 101.

[0042] The recording medium 113 may be a portable recording medium. The recording medium 113 may be used to distribute programs and data. The recording medium 113 and the HDD 103 may also be referred to as computer-readable recording media.

[0043] The communication interface 107 communicates with other information processing devices via the network 114. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or may be a wireless communication interface connected to a wireless communication device such as a base station or an access point.

[0044] Next, generation of the correction rule will be described. The information processing device 100 collects a data set D including a plurality of samples. Sample D i On the other hand, the machine learning model uses the predicted probability P i Calculate the predicted probability P i is a vector that lists the class probabilities of c classes. The class probability of a class indicates the predicted probability that the input data belongs to that class. Class probabilities are continuous values ​​between 0 and 1. The sum of the class probabilities is 1.

[0045]

[0046] The machine learning model predicts the probability P i , the predicted class yi The predicted class is the class with the largest class probability. If the predicted class is the sample D i Correct answer class y i If it matches, it is correct and the correct class y i If it does not match, it is an incorrect answer. The occurrence of an incorrect answer is sometimes referred to as a misclassification.

[0047]

[0048] The data set D includes n samples as shown in Equation (3). Each sample includes attribute values ​​for one or more attributes. A sample corresponds to a tuple or record in a relational database, an attribute corresponds to a column in the relational database, and an attribute value corresponds to a column value in the relational database. Examples of attributes include weight, volume, and color. Examples of attribute values ​​include a weight measurement, a volume measurement, and a color measurement.

[0049]

[0050] For an attribute set x, a sample set D(x) is identified as shown in Equation (4). The attribute set x is a logical formula in which one or more attribute conditions are combined with a logical product. The one or more attributes included in the attribute set x are some or all of the multiple attributes that appear in the data set D. The condition for a certain attribute may specify a single attribute value or a range of attribute values.

[0051]

[0052] For simplicity of explanation, in the second embodiment, it is assumed that the inclusion of a certain attribute in attribute set x means that the attribute value of that attribute exceeds a threshold. The threshold may differ depending on the attribute. Thus, attribute set x is defined as a set that lists attributes. Sample set D(x) is a set of samples that satisfy the condition defined by attribute set x.

[0053] The multiple samples included in the dataset D are classified into a misclassified set D shown in Equation (5) based on the correct class and the predicted class. k - and the correct answer set D shown in Equation (6) k +Misclassification set D k - is a set of samples for which the prediction of the machine learning model is incorrect among the samples whose correct class is class k. k + is a set of samples for which the prediction of the machine learning model was correct among samples whose correct class is class k.

[0054]

[0055]

[0056] Here, the information processing device 100 may generate a relatively simple correction rule as follows. This correction rule is x → z. In this correction rule, x is an attribute set that satisfies the condition shown in Equation (7). The first term of Equation (7) corresponds to the attribute set x, the correct class is class k, and the number of samples whose prediction is incorrect is less than or equal to the threshold T 1 This indicates that the attribute set x that frequently causes misclassification in class k is specified.

[0057]

[0058] The second term of Equation (7) is the number of samples that correspond to the attribute set x, whose correct class is not class k, and whose prediction is correct, that is, ... 2 This indicates that the attribute set x has little influence on the correct answers of classes other than class k. Equation (7) requires that the attribute set x satisfies both the first and second terms. z represents a correction method. Here, the correction method z is to change the predicted class to class k.

[0059] However, in the above correction rule, when the difference between the number of samples in the misclassified set and the number of samples in the correct answer set is large, the threshold T 1 , T 2 It may be difficult to appropriately set x, and it may be difficult to find an attribute set x that satisfies Equation (7). Furthermore, the above correction method z is an extreme correction method and is likely to cause new misclassifications. Therefore, the information processing device 100 of the second embodiment generates a correction rule as described below.

[0060] The information processing device 100 defines the correction rule as shown in Equation (8). In Equation (8), x is a set of attributes that satisfy the conditions described below. The correction method is expressed as a pair of class k and weight δ. This correction method corrects the predicted probability before determining the predicted class, instead of changing the predicted class itself. The correction method increases the class probability of class k by an amount corresponding to the weight δ, and decreases the class probabilities of other classes.

[0061]

[0062] The correction method (k, δ) is i,j is expressed as the class probability P i,j ^. Sample D corresponding to attribute set x i For class k, the class probability P i,k is 1-P i,k The class probabilities of the other classes are increased by the product of x and the weight δ, and the class probabilities of the other classes are decreased by the weight δ. For samples that do not fall into the attribute set x, the class probabilities do not change. This correction method maintains the sum of the c class probabilities to 1.

[0063]

[0064] In order to search for an appropriate combination of attribute set x, class k, and weight δ, the information processing device 100 calculates an improvement set C + and the regressive set C shown in Equation (11) - The improvement set C is defined as follows. + is a set of samples from the misclassified set of class k whose predicted class becomes correct by the correction method (k, δ). - is a set of samples whose predicted class is incorrect due to the correction method (k, δ) among the correct answer sets of other classes.

[0065]

[0066]

[0067] The information processing device 100 uses the above-mentioned improvement set C + and regressive set C -Using the above formula, the correction rate supp (Support) shown in formula (12) and the correct answer rate conf (Confidence) shown in formula (13) are defined as evaluation values ​​of the correction method (k, δ).

[0068]

[0069]

[0070] The correction rate sup is the misclassified set D k - Improved set C for the number of samples + The correction rate sup represents the ability of the correction method (k, δ) to change the predicted class from incorrect to correct. The accuracy rate conf represents the percentage of the number of samples in the improvement set C + The number of samples and the regression set C - The improvement set C for the sum of the number of samples + The accuracy rate conf represents the degree to which regression does not occur, where the predicted class changes from correct to incorrect.

[0071] The information processing device 100 generates a correction rule x→(k, δ) in the following procedure, for example. First, the information processing device 100 generates a correction rule x→(k, δ) in the following procedure. i For each of the n × c pairs of class k, the predicted class y i Calculate the lower bound of the weight δ for changing ^ to class k. This lower bound is the predicted class y i The weight δ is used to make the class probability of class k the same as the class probability of class ^, and is calculated as shown in Equation (14). i If ^=k, the lower bound is 0.

[0072]

[0073] The information processing device 100 selects a certain attribute set x. The information processing device 100 sorts the lower bounds calculated for samples corresponding to the selected attribute set x in ascending order and adds 0.5 to the end of the sorted numerical sequence. 0.5 is the theoretical maximum value for the weight δ. For each pair of adjacent numerical values, the information processing device 100 calculates the median between the two numerical values ​​and determines the calculated median value as a candidate for the weight δ. Using a certain candidate as the weight δ affects the predicted class of samples with a lower bound smaller than that candidate.

[0074] The information processing device 100 calculates the correction rate sup and the accuracy rate conf for each correction method (k, δ) that combines the class k and the candidate weight δ determined above, using the data set D. 3 or more, and the correct answer rate conf is the threshold T 4 It is determined whether or not there exists a correction method (k, δ) that satisfies the above.

[0075] If there is a correction method (k, δ) whose correction rate (supp) and accuracy rate (conf) satisfy the above conditions, the information processing device 100 selects the correction method (k, δ) with the largest accuracy rate (conf) among the correction methods (k, δ) that satisfy the above conditions, and generates a correction rule x → (k, δ). On the other hand, if there is no correction method (k, δ) that satisfies the above conditions, the information processing device 100 does not generate a correction rule for the attribute set x. Therefore, the information processing device 100 generates at most one correction rule for a certain attribute set x.

[0076] The information processing device 100 generates one or more correction rules by performing the above process while changing the attribute set x. The information processing device 100 sorts and saves the generated correction rules. If a sample corresponds to the attribute set x of two or more correction rules, only the correction rule with the highest priority is used for that sample. The information processing device 100 sorts the multiple correction rules in descending order of the accuracy rate conf, for example.

[0077] Here, the information processing device 100 searches the attribute set x using a backtracking method. The information processing device 100 can also perform the above process on all candidates in the attribute set x. However, pruning is possible by utilizing the properties of the correction rate supp. By pruning, the information processing device 100 can omit searching for correction methods for some of the attribute sets x.

[0078] The upper limit of the correction rate sup p is the ratio of samples that belong to the attribute set x among the misclassified sets of class k, as defined in Equation (12). 3 If the correction rate sup p is less than the threshold T , no correction rule is generated from the attribute set x. Furthermore, the correction rate sup p monotonically decreases with the addition of attributes to the attribute set x. Therefore, if the upper limit of the correction rate sup p for a certain attribute set x is less than the threshold T 3 If x′ is less than x, no correction rule is generated from the attribute set x′ that includes the attribute set x.

[0079] Therefore, before considering the correction method (k, δ) for attribute set x, the information processing device 100 determines whether mathematical formula (15) holds for all classes k. If mathematical formula (15) holds, the information processing device 100 determines that no correction rule can be generated from attribute set x, and omits searching for a correction rule for attribute set x. The information processing device 100 also omits searching for a correction rule for attribute set x' that includes attribute set x.

[0080]

[0081] The determination of Equation (15) is performed by using the Dancing Links structure to determine the misclassified set D k - For example, the information processing device 100 manages the misclassified set D k - Sample D included in i to the rows, and the misclassification set D k - The information processing device 100 assigns an attribute value that appears in the sample D i If included in sample D iA node is set at the intersection of a row corresponding to the attribute value and a column corresponding to the attribute value. The information processing device 100 connects nodes arranged in the same row with a bidirectional link, and connects nodes arranged in the same column with a bidirectional link. With this data structure, the sample set D k - The search for (x) is sped up.

[0082] Next, the generation of the correction rule will be described using a specific example. Fig. 3 is a diagram showing an example of a dataset table. The dataset table 131 is stored in the information processing device 100. The dataset table 131 includes a plurality of samples, each of which is associated with a sample ID, an attribute set, a predicted probability, a correct class, and a predicted class. The sample ID identifies the sample.

[0083] An attribute set includes one or more attributes. However, there may be a sample with an empty attribute set that does not include any attributes. The inclusion of a particular attribute in the attribute set indicates that the attribute value of that attribute exceeds a threshold. Examples of attributes include weight, volume, and color. The inclusion of weight in the attribute set indicates that the measured weight exceeds a threshold. The inclusion of volume in the attribute set indicates that the measured volume exceeds a threshold. The inclusion of color in the attribute set indicates that the measured color exceeds a threshold.

[0084] The predicted probability is calculated using an existing machine learning model. The information processing device 100 may calculate the predicted probability using the machine learning model, or another information processing device may calculate the predicted probability using the machine learning model. As an example, there are two classes: a defective class and a good class, and the predicted probability includes the class probability of the defective class and the class probability of the good class. The sum of the class probability of the defective class and the class probability of the good class is 1.

[0085] The correct class is a label that indicates the class into which the sample should be classified. The correct class is assigned manually, for example. The predicted class is the class determined by the machine learning model. The predicted class is the class with the highest class probability among the predicted probabilities. Depending on the sample, the correct class and the predicted class may or may not match.

[0086] As an example, sample D 1 For sample D, the attribute set is {weight, volume, color}, the correct class is bad, and the predicted class is good. 2 For sample D, the attribute set is {volume, color}, the correct class is good, and the predicted class is good. 3 For sample D, the attribute set is {weight, color}, the correct class is bad, and the predicted class is good. 4 For the attribute set {volume}, the correct class is good and the predicted class is bad.

[0087] Sample D 5 For sample D, the attribute set is {weight, volume}, the correct class is good, and the predicted class is good. 6 For sample D, the attribute set is {weight, volume}, the correct class is bad, and the predicted class is bad. 7 For sample D, the attribute set is {volume, color}, the correct class is good, and the predicted class is good. 8 For , the attribute set is {volume, color}, the correct class is bad, and the predicted class is good.

[0088] 4 is a diagram showing an example of rule search using the backtracking method. The information processing device 100 exhaustively searches the attribute set x using the backtracking method. In the backtracking method, attributes are added to the attribute set x one by one, and when there are no more attributes to add, attributes are deleted from the attribute set x, giving priority to the newest attributes, and another combination is searched for. The search of the attribute set x using the backtracking method can be represented by a tree structure.

[0089] The tree structure shown in FIG. 4 is generated from the dataset table 131 described above. Node 141 represents an empty set. Node 142 represents an attribute set obtained by adding weight to node 141. Node 143 represents an attribute set obtained by adding volume to node 142. Node 144 represents an attribute set obtained by adding color to node 143. Node 145 represents an attribute set obtained by adding color to node 142. Node 146 represents an attribute set obtained by adding volume to node 141. Node 147 represents an attribute set obtained by adding color to node 146. Node 148 represents a node set obtained by adding color to node 141.

[0090] The information processing device 100 first determines whether or not the formula (15) is satisfied for each node. k - = {D 1 , D 3 , D 8}, D k + = {D 6}, and for k=good, D k - = {D 4}, D k + = {D 2 , D 5 , D 7}. Also, T 3 = 0.5, T 4 For the attribute set x={weight, volume} indicated by node 143, the upper limit of the correction rate sup for the bad class is 0.33, and the upper limit of the correction rate sup for the good class is 0.

[0091] Therefore, the information processing device 100 determines that formula (15) holds for node 143 and omits generating a correction rule for node 143. The information processing device 100 also omits searching for node 144, which is ahead of node 143. Note that formula (15) does not hold for nodes 142, 145, 146, 147, and 148.

[0092] The information processing device 100 comprehensively considers correction methods (k, δ) for each node for which formula (15) does not hold, and selects at most one correction method (k, δ) based on the correction rate sup and the accuracy rate conf. This allows a correction rule x → (k, δ) to be generated.

[0093] In the case of the attribute set x={weight, color} indicated by the node 145, D k - (x) = {D 1 , D 3}, D k + (x) = φ and k = D for good k - (x) = D k +(x)=φ. Then, a correction method (bad, 0.49) is found in which the correction rate sup is 0.66 and the accuracy rate conf is 1.0. Therefore, the information processing apparatus 100 generates a correction rule of {weight, color}→(bad, 0.49).

[0094] For the attribute set x={volume} indicated by node 146, D k - (x) = {D 1 , D 8}, D k + (x) = {D 6}, and for k=good, D k - (x) = {D 4}, D k + (x) = {D 2 , D 5 , D 7}. Then, a correction method (good, 0.35) with a correction rate sup p of 1.0 and a correct answer rate conf of 1.0 is found. Therefore, the information processing device 100 generates a correction rule of {volume} → (good, 0.35) from node 146. Note that from nodes 142, 147, and 148, no correction method (k, δ) with a correction rate sup p of 0.5 or more and a correct answer rate conf of 1.0 or more is found.

[0095] FIG. 5 is a diagram showing an example of a correction rule list. The correction rule list 132 is stored in the information processing device 100. The correction rule list 132 includes one or more records, each of which associates a correction rule ID, a correction rule, a correction rate, and a correct answer rate. The correction rule ID identifies the correction rule. The correction rule includes an attribute set x, a class k, and a weight δ, and takes the form x → (k, δ). The correction rate and correct answer rate are calculated when searching for a correction rule. Two or more correction rules are sorted according to a certain criterion. For example, the two or more correction rules are sorted in descending order of correct answer rate.

[0096] 6 is a diagram showing an example of a dataset table after correction. The dataset table 133 is stored in the information processing device 100. The dataset table 133 is generated by correcting the dataset table 131 in FIG. 3 using the correction rule list 132 in FIG. 5. By using the correction rule list 132, the sample D 1 , D 2 , D 3 , D 4 , D 5 , D 6 , D 7 , D 8 The predicted probability of

[0097] As a result, sample D 1 The predicted class of sample D changes from a good class to a bad class, and matches the correct class. 3 The predicted class of sample D changes from a good class to a bad class, and matches the correct class. 4 The predicted class of sample D changes from a bad class to a good class, and matches the correct class. 2 , D 5 , D 6 , D 7 For sample D, no regression occurs that changes the predicted class. 1 , D 2 , D 3 , D 4 , D 5 , D 6 , D 7 , D 8 The accuracy of classification is improved.

[0098] Next, an example of how to use the generated correction rule will be described. FIG. 7 is a diagram showing a first example of how to use the correction rule. The information processing device 100 stores past data 151 and new data 152. The past data 151 is training data used to train an existing machine learning model, and includes a plurality of samples to which correct classes have been assigned. The new data 152 is operational data generated after training the machine learning model, and includes a plurality of samples to which correct classes have been assigned.

[0099] The information processing device 100 extracts samples that conform to any of the correction rules included in the correction rule list 153 from the new data 152. A sample that conforms to a correction rule is a sample that corresponds to an attribute set x specified by the correction rule. However, a sample that conforms to a correction rule may also be a sample that corresponds to the attribute set x and has class k specified by the correction rule as the correct class. The information processing device 100 generates a set of the extracted samples as supplementary data 154.

[0100] The information processing device 100 performs machine learning to retrain the machine learning model 155 using the past data 151 and the reinforcement data 154 as training data. The reinforcement data 154 includes samples that are expected to contribute to improving the prediction accuracy of the machine learning model 155, and excludes samples that may reduce the prediction accuracy. Therefore, it is expected that the prediction accuracy of the machine learning model 155 will be improved compared to before.

[0101] 8 is a diagram illustrating a second example of use of the correction rule. The information processing device 100 inputs a sample 161 into a machine learning model 162 and calculates a predicted probability 163. The sample 161 may not be assigned a correct class. The machine learning model 162 may be a previous machine learning model that has not been retrained. The predicted probability 163 includes class probabilities for multiple classes.

[0102] The information processing device 100 scans the correction rules from the beginning to the end of the correction rule list 164 to search for a correction rule having an attribute set x that corresponds to the sample 161. When one corresponding correction rule is found, the information processing device 100 does not need to scan the subsequent correction rules. The information processing device 100 applies the correction method defined in the found correction rule to the predicted probability 163 to calculate the corrected predicted probability 165.

[0103] The information processing device 100 determines the class with the maximum class probability among the corrected predicted probabilities 165 as the predicted class 166. However, if no correction rule applicable to the sample 161 is found in the correction rule list 164, the information processing device 100 determines the class with the maximum class probability among the predicted probabilities 163 as the predicted class 166.

[0104] Next, the functions and processing procedures of the information processing device 100 will be described. Fig. 9 is a block diagram showing an example of functions of the information processing device. The information processing device 100 has a dataset storage unit 121, a rule storage unit 122, a model storage unit 123, a rule generation unit 124, a machine learning unit 125, and a class prediction unit 126. The dataset storage unit 121, the rule storage unit 122, and the model storage unit 123 are implemented using, for example, the RAM 102 or the HDD 103. The rule generation unit 124, the machine learning unit 125, and the class prediction unit 126 are implemented using, for example, the CPU 101 or the GPU 104 and a program.

[0105] The dataset storage unit 121 stores a dataset including a plurality of samples. The dataset may include training data used to train an existing machine learning model. The dataset may also include operational data collected after training the machine learning model. The dataset may also include samples to be predicted that do not have a correct class.

[0106] The rule storage unit 122 stores a correction rule list generated by the information processing device 100. Each correction rule takes the form x → (k, δ) using an attribute set x, a class k, and a weight δ. The model storage unit 123 stores trained machine learning models. The trained machine learning models may include existing machine learning models before retraining, or may include machine learning models retrained with reference to the correction rules.

[0107] The rule generation unit 124 generates one or more correction rules using the dataset stored in the dataset storage unit 121 and stores the correction rule list in the rule storage unit 122. The dataset used to generate the correction rules is, for example, operational data collected after training of the machine learning model. When a predicted probability and a predicted class are not assigned to each sample, the rule generation unit 124 may calculate the predicted probability of each sample using the class prediction unit 126, or may determine the predicted class of each sample using the class prediction unit 126.

[0108] The machine learning unit 125 retrains the machine learning model by referring to the correction rule list stored in the rule storage unit 122, and stores the retrained machine learning model in the model storage unit 123. At this time, the machine learning unit 125 extracts samples that correspond to any of the correction rules from the datasets stored in the dataset storage unit 121, and uses the samples as additional training data. The dataset from which the samples are extracted is, for example, operational data.

[0109] The class prediction unit 126 predicts a class to which a sample stored in the dataset storage unit 121 belongs, using a machine learning model stored in the model storage unit 123. At this time, the class prediction unit 126 inputs the sample into the machine learning model to calculate a predicted probability, and corrects the predicted probability using a correction rule list stored in the rule storage unit 122. The class prediction unit 126 determines a predicted class based on the corrected predicted probability.

[0110] 10 is a flowchart showing an example of a procedure for generating a correction rule. (S10) The rule generating unit 124 generates a rule for the correct class y i Sample D 1 , D 2 , ..., D n A data set D is obtained that includes:

[0111] (S11) The class prediction unit 126 predicts each sample D i is input into the machine learning model to obtain the predicted probability P i , and the predicted class y with the highest class probability is calculated. i(S12) The rule generating unit 124 determines whether each sample D i Correct answer class y i and predicted class y i Based on , the misclassification set D for each class k is k - and correct answer set D k + Identify.

[0112] (S13) The rule generation unit 124 i and the set of class k (D i , k) for each predicted class y i A lower bound of the weight δ for changing ^ to class k is calculated. (S14) The rule generation unit 124 selects one untried attribute set x. The attribute set x is searched in a tree structure according to the backtracking method.

[0113] (S15) The rule generation unit 124 generates a misclassified set D k - The proportion of samples that correspond to attribute set x is the threshold T 3 If this condition is met, the process proceeds to step S16, otherwise the process proceeds to step S17.

[0114] (S16) The rule generation unit 124 excludes the attribute set x from the search targets, and also excludes other attribute sets that include the attribute set x from the search targets. Then, the process proceeds to step S21. (S17) The rule generation unit 124 finds the sample D that corresponds to the attribute set x among the lower bounds calculated in step S13. i The rule generating unit 124 sorts the extracted lower bounds in ascending order and determines candidates for the weight δ based on this numerical sequence.

[0115] (S18) The rule generation unit 124 generates an improvement set C that indicates samples whose predicted class has changed from an incorrect answer to a correct answer for each pair (k, δ) of class k and weight δ candidates. + and a regression set C, which indicates samples whose predicted class has changed from correct to incorrect. - The rule generation unit 124 identifies an improvement set C +and the regressive set C - The correction rate supp and the correct answer rate conf are calculated using the above formula.

[0116] (S19) The rule generation unit 124 determines whether the correction rate sup p is greater than or equal to the threshold T 3 and the correct answer rate conf is equal to or greater than the threshold T 4 If this condition is met, the process proceeds to step S20, otherwise the process proceeds to step S21.

[0117] (S20) The rule generation unit 124 calculates the correction rate sup p by 3 Among the pairs (k, δ) that satisfy the above criteria, the pair (k, δ) with the highest accuracy rate conf is selected. The rule generation unit 124 generates a corrected rule x→(k, δ) using the pair (k, δ).

[0118] (S21) The rule generation unit 124 determines whether the search for the attribute set x has finished. If the search for the attribute set x has finished, the rule generation unit 124 generates and outputs a correction rule list that describes the generated correction rules. The rule generation unit 124 may display the correction rule list on the display device 111, may store it in non-volatile storage, or may transmit it to another information processing device. If there is an untried attribute set x, the process returns to step S14.

[0119] As described above, the information processing apparatus 100 according to the second embodiment generates a correction rule including an attribute set x, a class k for increasing the class probability, and a weight δ for adjusting the amount of increase. The generated correction rule indicates weaknesses and correction methods for existing machine learning models that perform class classification. This provides useful information for improving the prediction accuracy of the machine learning model.

[0120] For example, the information processing device 100 extracts samples from the dataset D based on the correction rule and uses the samples as training data, thereby improving the prediction accuracy of the machine learning model after retraining. Also, for example, the information processing device 100 can directly correct the prediction results of the machine learning model based on the correction rule so as to improve the prediction accuracy.

[0121] Furthermore, the information processing apparatus 100 evaluates candidates for correction rules using the correction rate supp and the accuracy rate conf, thereby generating correction rules that significantly improve prediction accuracy and have little regression.

[0122] Furthermore, the information processing apparatus 100 determines whether the correction rate sup p is greater than or equal to a threshold T 3 and the correct answer rate conf is equal to or greater than the threshold T 4 Among the above correction methods (k, δ), the correction method (k, δ) with the highest accuracy rate conf is selected. This generates a useful correction rule with little regression. Furthermore, the information processing device 100 calculates the lower bound of the weight δ for changing the predicted class for each sample, and determines the weight δ to be used for the candidate correction method (k, δ) based on this lower bound. This makes it easy to adjust the correction method (k, δ).

[0123] Furthermore, the generated correction rule corrects the prediction probability using a correction method (k, δ). That is, the generated correction rule corrects the prediction result of the machine learning model by correcting the prediction probability for at least one of multiple classes before determining the predicted class. In the case of the correction rule that directly corrects the predicted class described above, the predicted class is changed so that all samples corresponding to the rule are predicted to be the same class. In this case, not only is the predicted class changed to the correct answer, but so-called regression may occur, in which a correct prediction is changed to an incorrect answer. As a result, a correction rule that directly corrects the predicted class is likely to reduce the accuracy rate confidence, and the evaluation method described in this embodiment may not find a useful rule. On the other hand, a correction rule that corrects the predicted probability is generated so that the accuracy rate confidence is improved by correcting the predicted probability, thereby reducing the risk of overlooking a useful correction rule for the attribute set. As a result, by adopting a correction rule that corrects the predicted probability in this embodiment, it becomes easier to adjust the correction method to improve prediction accuracy while suppressing regression.

[0124] Furthermore, the information processing device 100 searches for candidates for the attribute set x by a backtracking method. At this time, the information processing device 100 calculates the upper limit of the correction rate sup p and determines whether the upper limit of the correction rate sup p is equal to or greater than a threshold T 3 If the difference is less than x, the attribute set x is excluded from the search targets. The information processing device 100 also excludes other attribute sets that include the attribute set x from the search targets. This reduces the amount of calculation required to generate correction rules and shortens the execution time.

[0125] The foregoing merely illustrates the principles of the present invention. Further, since numerous modifications and changes will be apparent to those skilled in the art, the present invention is not limited to the exact construction and application shown and described above, and all corresponding modifications and equivalents are deemed to be within the scope of the present invention as defined by the appended claims and their equivalents.

[0126] REFERENCE SIGNS LIST 10 Information processing device 11 Storage unit 12 Processing unit 13 Data set 14a, 14b, 14c Correction rule candidates 15, 16 Index values

Claims

1. An output program that causes a computer to execute a process of obtaining a plurality of correction rule candidates, each of which is a correction rule for a machine learning model that predicts into which of a plurality of classes input data will be classified; evaluating each of the plurality of correction rule candidates based on a first index value indicating a proportion of a second sample set whose predicted class changes from the incorrect class to the correct class by a correction method for a first sample set in which a predicted class identified from the predicted probability is an incorrect class different from a correct class when each of the plurality of correction rule candidates is applied to a predicted probability for the plurality of classes of the machine learning model for each of the plurality of samples when the plurality of samples are used as the input data; and a second index value indicating a proportion of the second sample set to a sum of the second sample set and a third sample set whose predicted class changes from the correct class to the incorrect class by the correction method; and outputting one or more correction rules selected from the plurality of correction rule candidates based on an evaluation result of the plurality of correction rule candidates.

2. The output program according to claim 1, wherein each of the plurality of correction rule candidates is information specifying the conditions and the correction method of the input data, and the output includes a process of selecting, from two or more correction rule candidates having the same conditions but different correction methods, a correction rule candidate having the largest second index value among the correction rule candidates having the first index value equal to or greater than a threshold value.

3. The output program according to claim 1, wherein the correction method defines a class among the plurality of classes for which the prediction probability is to be increased, and a weight for controlling an amount of change in the prediction probability.

4. The output program according to claim 3, wherein the obtaining step includes a step of calculating a lower bound of the weight for changing the predicted class by the correction method for each of the plurality of samples, and determining a plurality of weight candidates to be used for the plurality of correction rule candidates based on the lower bound.

5. The output program of claim 1, wherein each of the plurality of correction rule candidates is information specifying a condition of the input data, and the evaluation includes a process of omitting evaluation of a correction rule candidate specifying a second condition indicating a logical product of the first condition and an additional condition when a third index value indicating a proportion of samples in the first sample set whose input data satisfies a first condition is less than a threshold value.

6. The output program according to claim 1, wherein each of the plurality of correction rule candidates is information that defines a condition of the input data and a method of correcting the predicted probability.

7. An output method in which a computer executes a process of obtaining a plurality of correction rule candidates, each of which is a correction rule for a machine learning model that predicts into which of a plurality of classes input data will be classified; evaluating each of the plurality of correction rule candidates based on a first index value indicating a proportion of a second sample set whose predicted class changes from the incorrect class to the correct class by a correction method for a first sample set in which a predicted class identified from the predicted probability is an incorrect class different from a correct class when each of the plurality of correction rule candidates is applied to a predicted probability for the plurality of classes of the machine learning model for each of the plurality of samples when the plurality of samples are used as the input data; and a second index value indicating a proportion of the second sample set to a sum of the second sample set and a third sample set whose predicted class changes from the correct class to the incorrect class by the correction method; and outputting one or more correction rules selected from the plurality of correction rule candidates based on a result of evaluation of the plurality of correction rule candidates.

8. An information processing device having: a memory unit that stores a plurality of correction rule candidates, each of which is a correction rule for a machine learning model that predicts into which of a plurality of classes input data will be classified; and a processing unit that evaluates each of the plurality of correction rule candidates based on a first index value indicating a proportion of a second sample set whose predicted class changes from the incorrect class to the correct class by a correction method for a first sample set in which a predicted class identified from the prediction probability is an incorrect class different from a correct class when each of the plurality of correction rule candidates is applied to a prediction probability for the plurality of classes of the machine learning model for each of the plurality of samples when the plurality of samples are used as the input data, and a second index value indicating a proportion of the second sample set to a sum of the second sample set and a third sample set whose predicted class changes from the correct class to the incorrect class by the correction method, and outputs one or more correction rules selected from the plurality of correction rule candidates based on an evaluation result of the plurality of correction rule candidates.

Citation Information

Patent Citations

  • Defect classification correction method and application of defect classification correction method in workpiece appearance detection

    CN115311247A

  • Text sort program for sorting text containing unknown word, method and text analysis server

    JP2011150449A

  • Machine learning method and framework for optimizing setups for accurate, speedy and robust TCAD simulations

    US11348017B1

  • Automated context-specific speech-to-text transcriptions

    US20230005472A1