Teaching data correction device
The teacher data correction device addresses the challenge of modifying hierarchically structured teacher data by using a combination of machine learning and deletion units to correct misclassifications, ensuring accurate and dynamic adaptation to changing category systems, thus enhancing classification accuracy.
Patent Information
- Application Number
- PCT/JP2024/013984
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-20
- Filing Date
- 2024-04-04
- Publication Date
- 2024-10-24
AI Technical Summary
Existing teacher data correction methods fail to effectively modify data consisting of hierarchically structured categories and documents, leading to misclassification issues when category systems change, such as adding or removing categories over time.
A teacher data correction device that includes a storage unit, machine learning unit, inference unit, misclassification rate calculation unit, and deletion unit, which acquires category information, calculates misclassification rates, and deletes documents with characteristic terms from higher categories to correct teacher data, ensuring accurate classification by updating the category structure dynamically.
The device efficiently corrects teacher data by identifying and removing misclassified documents, improving classification accuracy and adapting to changes in category hierarchies, thereby preventing misclassification and ensuring correct categorization of articles.
Smart Images

Figure JP2024013984_24102024_PF_FP_ABST
Abstract
Description
Teacher data correction device
[0001] One aspect of the present disclosure relates to a teacher data correction device that corrects teacher data.
[0002] The following Patent Document 1 discloses a correction method in which training data with inaccurate labels is subjected to a correction process.
[0003] Japanese Patent Application Laid-Open No. 2022-021858
[0004] The labels used in the correction method are composed of OK labels attached to image data of normal products and NG labels attached to image data of abnormal products. Therefore, the correction method cannot correct training data consisting of pairs of hierarchically structured categories and documents belonging to those categories.
[0005] A teacher data correction device according to one aspect of the present disclosure is a teacher data correction device that corrects teacher data consisting of a set of hierarchically structured categories and documents belonging to the categories, and includes an acquisition unit that acquires category information indicating a first category, which is one category, and a second category, which is a category that is hierarchically related to the first category, and to which a document included in the teacher data that should belong to the first category mistakenly belongs or may mistakenly belong, and a deletion unit that identifies characteristic terms in documents included in the teacher data that belong to the first category indicated by the category information acquired by the acquisition unit, and deletes from the teacher data sets of documents that contain the identified terms from among documents included in the teacher data that belong to the second category indicated by the category information.
[0006] In this aspect, the training data is made up of pairs of hierarchically structured categories and documents belonging to those categories, and pairs of documents that include terms characteristic of documents belonging to the first category among documents belonging to the second category (which is a category that has a hierarchical relationship with the first category) included in the training data are deleted from the training data. In other words, the training data made up of pairs of hierarchically structured categories and documents belonging to those categories can be corrected.
[0007] According to one aspect of the present disclosure, it is possible to correct training data consisting of pairs of hierarchically structured categories and documents belonging to the categories.
[0008] 17 is a diagram illustrating an example of the functional configuration of a teacher data correction device according to an embodiment. FIG. 17 is a diagram illustrating an example of a system of categories having a hierarchical structure. FIG. 17 is a diagram illustrating a scene where the system example of FIG. 2 has been changed. FIG. 17 is a diagram illustrating an example of misclassification of a document classification model trained based on teacher data of an incorrect system example. A flowchart illustrating an example of processing performed by a teacher data correction device according to an embodiment. FIG. 17 is a diagram illustrating an example of a table of teacher data. FIG. 17 is a diagram illustrating an example of a table of upper-lower category pair data. FIG. 17 is a diagram illustrating an example of a table of table data in which category classification results are horizontally linked to teacher data. FIG. 17 is a diagram illustrating an example of a table of upper-lower category pair data with a correction required flag attached. FIG. 17 is a diagram illustrating an example of a table of data representing feature words and feature quantities of lower categories. FIG. 17 is a diagram illustrating an example of deleting teacher data. A flowchart illustrating an example of processing performed by the machine learning unit 11 and the inference unit 12. FIG. 17 is a diagram illustrating another example of a table of teacher data. FIG. 17 is a diagram illustrating an example of a table of training data. FIG. 17 is a diagram illustrating an example of a table of evaluation data. FIG. 17 is a diagram illustrating an example of a table of category classification results. FIG. 17 is a diagram illustrating another example of a table of table data in which category classification results are horizontally linked to teacher data. A flowchart illustrating an example of processing performed by the misclassification rate calculation unit 13 and the teacher data correction determination unit 14. FIG. 17 is a diagram illustrating example records extracted from the example table of FIG. 23. is a diagram showing an example of a table in which a misclassification rate column is added to the example table of FIG. 7. is a flowchart showing an example of processing executed by the deletion data determination unit 15 and the teacher data deletion unit 16. is a diagram showing an example of a table of morphologically analyzed table data. is a diagram showing an example of splitting the example table of FIG. 22. is a diagram showing an example of a table of data in which all morphological analysis columns of tables extracted from the example table of FIG. 23 are combined. is a diagram showing an example of a table of feature amounts. is a diagram showing another example of a table of data representing feature words and feature amounts of lower categories. is a diagram showing an example of deleting a higher category table. is a flowchart showing another example of processing executed by the teacher data correction device according to the embodiment. is a diagram showing an example of the hardware configuration of a computer used in the teacher data correction device according to the embodiment.
[0009] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the description of the drawings, the same elements are designated by the same reference numerals, and duplicate explanations will be omitted. Furthermore, the embodiments of the present disclosure in the following description are specific examples of the present invention, and the present invention is not limited to these embodiments unless otherwise specified to limit the present invention.
[0010] 1 is a diagram illustrating an example of the functional configuration of a teacher data correction device 1 according to an embodiment. As shown in Fig. 1, the teacher data correction device 1 includes a storage unit 10, a machine learning unit 11 (learning unit), an inference unit 12 (learning unit), a misclassification rate calculation unit 13, a teacher data correction determination unit 14, a deletion data determination unit 15 (acquisition unit, deletion unit), and a teacher data deletion unit 16 (acquisition unit, deletion unit).
[0011] Each functional block of the teacher data correction device 1 is assumed to function within the teacher data correction device 1, but this is not limited to this. For example, some of the functional blocks of the teacher data correction device 1 may function in a computer device different from the teacher data correction device 1, and connected to the teacher data correction device 1 through a network, while appropriately sending and receiving information with the teacher data correction device 1. Furthermore, some functional blocks of the teacher data correction device 1 may be omitted, multiple functional blocks may be integrated into one functional block, or one functional block may be broken down into multiple functional blocks.
[0012] The teacher data correction device 1 corrects teacher data consisting of pairs of hierarchically structured categories and documents belonging to the categories. The hierarchical structure of the categories may be changed over time.
[0013] The following explains categories. As a background, in a hierarchical categorization, new categories may be extracted as needed and added or deleted as sub-categories. For example, in the case of a news article site targeted in the embodiment, adding a new separate category for topics that are attracting a lot of attention makes it easier for more users to find the content they need within the website.
[0014] FIG. 2 is a diagram showing an example of a hierarchical category system. In the example system shown in FIG. 2, the categories include sports, baseball, COVID-19, and vaccines. Each category has a hierarchical structure. For example, the sports category is a super-category of the baseball category, and conversely, the baseball category is a sub-category of the sports category. Similarly, the COVID-19 category is a super-category of the vaccine category, and conversely, the vaccine category is a sub-category of the COVID-19 category.
[0015] Each category is linked to (contains) documents that belong to that category. Specifically, the sports category is linked to sumo articles, golf articles, basketball articles, and soccer articles. The baseball category is linked to articles about international baseball tournaments and professional baseball articles. The new pneumonia category is linked to articles about masks and medical fields. The vaccine category is linked to articles about pharmaceutical company F and pharmaceutical company M.
[0016] FIG. 3 is a diagram showing a scene in which the example system of FIG. 2 has been changed. FIG. 3 shows a scene in which a new soccer category has been added (extracted) as the soccer World Cup is being held and soccer-related articles have become increasingly popular over time. Soccer articles that were linked to the sports category before the soccer category was added are removed from the sports category (unlinked) and moved to the added soccer category (linked). Specifically, soccer articles, such as the World Cup article, the article about World Cup host country Q, and the article about player K, are moved to the added soccer category. In this way, the soccer category is added during the World Cup and removed from the category once the popularity has died down.
[0017] We will now explain the challenges of categories such as those mentioned above. When using machine learning to automatically classify articles into categories, the presence of data with different past categorization systems increases misclassification. In machine learning, the more data there is, the more accurate a model can be created, so data other than the changed parts should be retained. Misclassification can be reduced by removing only the changed parts (for example, soccer-related articles) from the past training data.
[0018] Fig. 4 shows an example of misclassification by a document classification model trained based on training data of an incorrect system example. The training data (past training data) up to September 2022 and the training data (current training data) as of December 2022 shown in Fig. 4 are training data consisting of pairs of hierarchically structured categories and documents belonging to those categories.
[0019] In the past training data, World Cup articles are linked to the sports category. In the current training data, World Cup articles have been removed from the sports category and linked to the newly added soccer category. If a new World Cup article is inferred using a document classification model that automatically classifies articles by category and that was trained based on the past training data, it will be classified into the sports category, resulting in a misclassification. On the other hand, if a new World Cup article is inferred using a document classification model that was trained based on the current training data, it will be correctly classified into the soccer category.
[0020] The teacher data correction device 1 can efficiently and easily correct and reshape past teacher data when the category system changes.
[0021] The functions of the teacher data correction device 1 shown in Fig. 1 will be described below with reference to the flowchart shown in Fig. 5 and example tables shown in Fig. 6 to Fig. 11. Fig. 5 is a flowchart showing an example of processing executed by the teacher data correction device 1.
[0022] The storage unit 10 stores training data consisting of pairs of hierarchically structured categories and documents belonging to the categories. FIG. 6 is a diagram showing an example of a training data table. In the example table shown in FIG. 6, article text, which is a document, corresponds to the correct category (the name of the correct category) to which the article text belongs. The correct category may be a category that is manually assigned by a person who has previously viewed the content of the article text. In the example table shown in FIG. 6, the correct category for the article text about soccer, "Player M in the soccer IP league...", is "sports" (the correct category should be "soccer"). The goal (of the flowchart shown in FIG. 5) is to remove this category.
[0023] The storage unit 10 stores upper-lower category pair data, which is data of pairs of upper and lower categories. Fig. 7 is a diagram showing an example table of upper-lower category pair data. In the example table shown in Fig. 7, (the category name of) the upper category corresponds to (the category name of) the lower category.
[0024] The storage unit 10 also stores any information (including various data described in the embodiments) used in calculations in the teacher data correction device 1, and the results of calculations in the teacher data correction device 1. The information stored by the storage unit 10 may be referenced by each function of the teacher data correction device 1 as appropriate.
[0025] The machine learning unit 11 performs machine learning to create a document classification model using the training data stored by the storage unit 10 (step S1). The document classification model is a model that classifies the category to which an input document belongs.
[0026] Following S1, the inference unit 12 inputs the evaluation data (for example, the article text in the example table of training data shown in FIG. 6) into the trained document classification model, outputs the category classification results, and outputs table data in which the category classification results are horizontally linked to the training data (step S2). FIG. 8 is a diagram showing an example of table data in which the category classification results are horizontally linked to the training data. In the example table shown in FIG. 8, the article text (in the example table of training data shown in FIG. 6), the correct category (in the example table of training data shown in FIG. 6), and the above-mentioned category classification results are associated with each other.
[0027] Following S2, the misclassification rate calculation unit 13 compares the predicted category of the table data output in S2 with the correct category based on the upper-lower category pair data stored by the storage unit 10, and calculates the misclassification rate (described below) for the upper category (step S3). FIG. 9 is a diagram showing an example table of upper-lower category pair data with a correction-required flag (described below). In the example table shown in FIG. 9, the upper category (in the example table of upper-lower category pair data shown in FIG. 7), the lower category (in the example table of upper-lower category pair data shown in FIG. 7), the misclassification rate, and the correction-required flag are associated with each other.
[0028] Following S3, the teacher data correction determination unit 14 determines whether or not there is a correction-required flag in the correction-required column (of the upper-lower category pair data with the correction-required flag) (step S4). If it is determined in S4 that there is no correction-required flag (S4: NO), the process ends.
[0029] If it is determined in S4 that there is a correction-needed flag (S4: YES), the deletion data determination unit 15 determines the words to be deleted as "category name + characteristic word" (step S5). Fig. 10 is a diagram showing an example table of data representing characteristic words and characteristic amounts of lower categories. The example table shown in Fig. 10 includes characteristic words of lower categories each consisting of a name indicating a lower category, a characteristic word (described below), and the characteristic amount of the characteristic word.
[0030] Following S5, the training data deletion unit 16 deletes data from the higher-level category to the lower-level category (step S6). Fig. 11 shows an example of deleting training data. The deletion example shown in Fig. 11 shows that, from the article text in the training data table example shown in Fig. 6, article text that contains words included in the table example of data representing the feature words and feature quantities of the lower-level category shown in Fig. 10 has been deleted.
[0031] After S6, the process returns to S1 and the process is repeated.
[0032] The machine learning unit 11 and the inference unit 12 will be described in detail below with reference to the flowchart shown in Fig. 12 and the example tables shown in Fig. 13 to Fig. 17. Fig. 12 is a flowchart showing an example of processing executed by the machine learning unit 11 and the inference unit 12.
[0033] The machine learning unit 11 divides the previously acquired teacher data (stored by the storage unit 10) into K groups (K is an integer equal to or greater than 2) (step S10). FIG. 13 is a diagram showing another example of a table of teacher data. The example table shown in FIG. 13 shows that the teacher data (having a configuration similar to that of the example table of teacher data shown in FIG. 6) is divided into three (K=3) groups: group G1 (including the first and second records of the teacher data), group G2 (including the third and fourth records of the teacher data), and group G3 (including the fifth and sixth records of the teacher data).
[0034] Following S10, the machine learning unit 11 trains a document classification model using the data of group K-1 (training data) (step S11). For example, the machine learning unit 11 trains using the data of groups G1 and G2. FIG. 14 is a diagram showing an example table of training data. The example table shown in FIG. 14 shows the data of groups G1 and G2 from the example table of training data shown in FIG. 13.
[0035] The machine learning unit 11 repeatedly performs learning on S11 K times to obtain K document classification models. For example, the machine learning unit 11 obtains three document classification models: document classification model 1 trained with the data of groups G1 and G2, document classification model 2 trained with the data of groups G1 and G3, and document classification model 3 trained with the data of groups G2 and G3.
[0036] Following S11, the inference unit 12 performs inference for all document classification models using teacher data (evaluation data) that have not been used in learning (step S12). For example, the inference unit 12 performs inference for document classification model 1 using the data of group G3, for document classification model 2 using the data of group G2, and for document classification model 3 using the data of group G1. Fig. 15 is a diagram showing an example table of evaluation data. The example table shown in Fig. 15 shows the data of group G3 (evaluation data for document classification model 1) from the example table of teacher data shown in Fig. 13.
[0037] As a result of the inference in S12, the inference unit 12 outputs a category classification result. Fig. 16 is a diagram showing an example table of category classification results. In the example table shown in Fig. 16, the first and second records are the results of inference using the evaluation data of group G3, the third and fourth records are the results of inference using the evaluation data of group G2, and the fifth and sixth records are the results of inference using the evaluation data of group G1.
[0038] Next, the inference unit 12 vertically combines all of the inferred category classification results, and inputs the table data combined horizontally with the training data to the misclassification rate calculation unit (step S13). Fig. 17 is a diagram showing another example of table data combined horizontally with the category classification results and the training data. In the example table shown in Fig. 17, the example table of training data shown in Fig. 13 and the example table of category classification results shown in Fig. 16 are combined.
[0039] The processes of S11 to S12 are so-called cross-validation. For example, the training data is divided into K = 5 groups, and the data in K - 1 = 4 groups is used as learning (training) data, and the data in 1 group is used as evaluation (test) data. Learning is repeated K times so that all groups become evaluation (test) data. The reason for performing cross-validation is to eliminate the possibility that the data used to calculate the misclassification rate (evaluation data) does not contain, or contains extremely few, articles (news) in the correct categories "soccer" and "sports," for which the training data is being corrected this time. In other words, cross-validation is performed to prevent the evaluation data from not containing article text corresponding to the higher-level-lower-level category pair data. The evaluation data may be defined to always contain article text corresponding to the higher-level-lower-level category pair data.
[0040] The details of the misclassification rate calculation unit 13 and the teacher data correction determination unit 14 will be described below with reference to the flowchart shown in Fig. 18 and example tables shown in Fig. 19 and Fig. 20. Fig. 18 is a flowchart showing an example of processing executed by the misclassification rate calculation unit 13 and the teacher data correction determination unit 14.
[0041] Following S13, the misclassification rate calculation unit 13 compares the correct category and predicted category pairs in the table data (table data in which the category classification results are horizontally linked to the training data) obtained by the machine learning unit 11 and the inference unit 12, and calculates the misclassification rate (step S20). Specifically, the misclassification rate calculation unit 13 calculates the misclassification rate into a higher-level category based on the higher-level-lower-level category pair data prepared in advance (stored by the storage unit 10).
[0042] More specifically, the misclassification rate calculation unit 13 first extracts one record (hereinafter referred to as "one upper-lower pair") from the higher-level-lower category pair data. Next, the misclassification rate calculation unit 13 extracts records in which the correct category corresponds to a lower category of the higher-lower pair from the table data (table data in which the category classification results are horizontally linked to the training data) obtained from the machine learning unit 11 and the inference unit 12, calculates the proportion of the extracted records in which the predicted category / correct category pair matches the order of the higher-lower pair, and adds this to the new misclassification rate column of the higher-lower category pair data (step S20). For example, the misclassification rate calculation unit 13 calculates the misclassification rate of the correct category "soccer" to the higher-level category "sports." The misclassification rate calculation unit 13 performs the same operation on all higher-lower category pair data.
[0043] Fig. 19 is a diagram showing example records extracted from the example table of Fig. 17. The example table shown in Fig. 19 is obtained by extracting records in which the correct category in the example table of Fig. 17 corresponds to the subcategory "soccer" in the top-bottom pair.
[0044] Fig. 20 is a diagram showing an example of a table in which a misclassification rate column has been added to the example table of Fig. 7. In the example table shown in Fig. 20, the misclassification rate calculated in S20 is newly associated with the example table of Fig. 7.
[0045] Following S20, the misclassification rate calculation unit 13 sets a correction-required flag on records with a value higher than a (predetermined) threshold from the misclassification rate column of the higher-lower category pair data (see the example table shown in FIG. 20 ), and outputs the higher-lower category pair data with a correction-required flag (see the example table shown in FIG. 9 ) (step S21).
[0046] Following S21, the teacher data correction determination unit 14 determines whether the column requiring correction has a correction flag (step S22). If the column requiring correction has a correction flag (step S22: YES), the unit transitions to the deletion data determination unit 15. If the column requiring correction does not have a correction flag (step S22: NO), the unit terminates the process.
[0047] The details of the deletion data determination unit 15 and the teacher data deletion unit 16 will be described below with reference to the flowchart shown in Fig. 21 and example tables shown in Fig. 22 to Fig. 27. Fig. 21 is a flowchart showing an example of processing executed by the deletion data determination unit 15 and the teacher data deletion unit 16.
[0048] S22: Following YES, the deletion data determination unit 15 calculates words characteristic of the lower category.
[0049] Specifically, first, the deletion data determination unit 15 performs morphological analysis on the table data (table data in which the category classification results are horizontally linked to the training data) obtained from the machine learning unit 11 and the inference unit 12 (step S30). Fig. 22 is a diagram showing an example of morphologically analyzed table data. The table example shown in Fig. 22 is obtained by adding the morphological analysis results of each data in the article body column as a morphological analysis column to the table example of the table data in which the category classification results are horizontally linked to the training data shown in Fig. 17.
[0050] Next, the deletion data determination unit 15 divides the morphologically analyzed table data by correct category (step S31). The deletion data determination unit 15 may divide the data into lower categories, upper categories, and others based on the upper category-lower category pair data. Next, the deletion data determination unit 15 extracts records with a "requires correction" flag one by one (hereinafter referred to as "one upper / lower pair requiring correction") based on the upper category-lower category pair data obtained from the misclassification rate calculation unit 13. The deletion data determination unit 15 compares the extracted one upper / lower pair requiring correction with the divided table data and extracts tables other than the table corresponding to the higher category of the record (step S32). Figure 23 is a diagram showing an example of dividing the example table shown in Figure 22. The example table shown in Figure 23 shows that the example table in Figure 22 is divided into the correct categories "sports," "soccer," and "new type pneumonia" (represented as the upper category table, lower category table, and new type pneumonia table, respectively), and the lower category table and new type pneumonia table, which are tables other than the table corresponding to the upper category "sports" of the top-lower pair that needs correction, consisting of the upper category "sports" and the lower category "soccer," are extracted.
[0051] Following S32, the deletion data determination unit 15 calculates words characteristic of the lower category.
[0052] Specifically, the deletion data determination unit 15 first combines all of the morphological analysis columns of each category table extracted in S32 (step S33). Figure 24 is a diagram showing an example table of data obtained by combining all of the morphological analysis columns of the tables extracted from the example table of Figure 23. The example table shown in Figure 24 includes an example table of data obtained by combining all of the morphological analysis columns of the lower category tables from the example table of Figure 23, and an example table of data obtained by combining all of the morphological analysis columns of the novel coronavirus category table from the example table of Figure 23.
[0053] Next, the deletion data determination unit 15 calculates the importance (TFIDF value) of each word within its category based on the TFIDF calculation formula (step S34). An example of the TFIDF calculation formula is shown below (i and j are originally subscripts, but for convenience they are not superscripts): TFIDF wi,dj =TF wi,dj ×IDF wi T.F. wi,dj = frequency of occurrence of word wi in document dj IDF wi = log ((1 + total number of documents (J)) / (number of documents in which word wi appears))
[0054] In this case, document d is the combined morphological analysis result above, and j is each category. In other words, dj is the combined morphological analysis result of each category j.
[0055] The deletion data determination unit 15 performs the above calculations to obtain a feature table. Fig. 25 shows an example of the feature table. In the example table shown in Fig. 25, the importance (TFIDF value) of each word is associated with each category.
[0056] Next, the teacher data deletion unit 16 deletes articles related to the lower category from the upper category.
[0057] Specifically, the deletion data determination unit 15 first extracts, in list form, records corresponding to one pair of lower-level categories that require revision from the feature table obtained in the previous step, sorts them in descending order by TFIDF value, and extracts the top four (step S35). Next, the training data deletion unit 16 uses all five feature words, including the lower-level category names, to delete articles of the lower-level category that are mixed in the higher-level category table by keyword matching (step S36).
[0058] 26 is a diagram showing another example of a table of data representing feature words and feature quantities of lower categories. The example table shown in Fig. 26 includes the name of a lower category ("soccer"), feature words of lower categories that include the top four words ("player M," "country Q," "player K," and "World Cup") sorted in descending order by TFIDF value, and the feature quantities of each of those words.
[0059] Fig. 27 is a diagram showing an example of deletion from a higher category table. The deletion example shown in Fig. 27 shows that, for the higher category table shown in Fig. 23, records of article texts containing a word ("Player M") included in the example table of data representing characteristic words and characteristic quantities of lower categories shown in Fig. 26 have been deleted.
[0060] Next, the teacher data deletion unit 16 vertically combines the upper category table, lower category table, and other category tables corrected in the previous stage (step S37). Next, the teacher data deletion unit 16 performs these operations on all records for which the "needs correction" flag is set in the upper category-lower category pair data, and once processing for all records is complete, deletes the morphological analysis column and predicted category column, and transitions back to the machine learning unit 11 and the inference unit 12 (step S38). That is, the teacher data deletion unit 16 outputs the corrected (formatted) teacher data (or causes the storage unit 10 to store it).
[0061] Other aspects of each functional block will be described below.
[0062] The machine learning unit 11 and the inference unit 12 may learn and output a document classification model that classifies the category to which any input document belongs, based on the training data deleted by the training data deletion unit 16.
[0063] The deletion data determination unit 15 may acquire category information indicating a first category, which is one category, and a second category, which is a category that is hierarchically related to the first category and to which a document included in the training data that should belong to the first category erroneously belongs or may erroneously belong, and may identify characteristic terms in documents included in the training data that belong to the first category indicated by the acquired category information. The second category may be a higher hierarchical category than the first category.
[0064] The deletion data determination unit 15 may acquire category information indicating the first category and the second category when a misclassification rate, which is the probability that a document that should belong to the first category is erroneously classified as belonging to the second category, of a document classification model that classifies a category to which an input document belongs and that is trained based on training data satisfies a predetermined criterion. Cross-validation may be performed in the training based on training data. The misclassification rate may be the probability that a document that should belong to the first category is erroneously classified as belonging to the second category.
[0065] The teacher data deletion unit 16 may delete from the teacher data a set of documents that are included in the teacher data and belong to a second category indicated by the category information acquired by the deletion data determination unit 15, and that include a term identified by the deletion data determination unit 15. If the misclassification rate of a document classification model that classifies the category to which an arbitrary input document belongs and that has been trained based on the teacher data satisfies a predetermined criterion, the teacher data deletion unit 16 may delete the teacher data.
[0066] The teacher data deletion unit 16 may delete from the teacher data a set of documents that are included in the teacher data and belong to a second category indicated by the category information acquired by the deletion data determination unit 15, and that contain a term identified by the deletion data determination unit 15 and a name indicating the first category indicated by the category information.
[0067] Next, an example of processing executed by the teacher data correction device 1 will be described with reference to Fig. 28. Fig. 28 is a flowchart showing another example of processing executed by the teacher data correction device 1.
[0068] First, the deletion data determination unit 15 acquires category information (upper-lower category pair data with a correction-required flag) indicating a first category, which is one category, and a second category, which is a category hierarchically related to the first category, to which a document included in the training data that should belong to the first category mistakenly belongs or may mistakenly belong (step S40). Next, the deletion data determination unit 15 identifies characteristic terms in documents included in the training data that belong to the first category indicated by the category information acquired in S40, and the training data deletion unit 16 deletes from the training data pairs of documents that include the identified terms from among documents included in the training data that belong to the second category indicated by the category information (step S41).
[0069] Next, the effects of the teacher data correction device 1 according to the embodiment will be described.
[0070] The teacher data correction device 1 corrects teacher data consisting of pairs of hierarchically structured categories and documents belonging to the categories, and includes: a deletion data determination unit 15 that acquires category information indicating a first category and a second category that is hierarchically related to the first category and to which a document included in the teacher data that should belong to the first category mistakenly belongs or may mistakenly belong; a deletion data determination unit 16 that identifies characteristic terms in documents included in the teacher data that belong to the first category indicated by the acquired category information; and a teacher data deletion unit 16 that deletes from the teacher data pairs of documents that include the terms identified by the deletion data determination unit 15 among documents included in the teacher data that belong to the second category indicated by the category information acquired by the deletion data determination unit 15. With this configuration, among documents included in the teacher data consisting of pairs of hierarchically structured categories and documents belonging to the second category (a category hierarchically related to the first category), pairs of documents that include characteristic terms in documents belonging to the first category are deleted from the teacher data. In other words, teacher data consisting of pairs of hierarchically structured categories and documents belonging to the second category can be corrected.
[0071] Furthermore, the hierarchical structure of categories may be changed over time in the teacher data correction device 1. With this configuration, even over time, the teacher data can be more appropriately corrected in accordance with the changed hierarchical structure.
[0072] Furthermore, in the teacher data correction device 1, the second category may be a higher level than the first category. With this configuration, even if a document in the first category, which is a lower level, belongs to the second category, which is a higher level, in the teacher data, the document can be appropriately deleted.
[0073] Furthermore, in the teacher data correction device 1, when the misclassification rate of a document classification model that classifies the category to which an input document belongs and that is trained based on teacher data satisfies a predetermined standard, the teacher data may be deleted by (the deletion data determination unit 15) and the teacher data deletion unit 16. With this configuration, when there is a defect in the teacher data, the teacher data can be corrected more reliably.
[0074] Furthermore, cross-validation may be performed in the learning based on the teacher data in the teacher data correction device 1. This configuration eliminates the possibility that the evaluation data used to calculate the misclassification rate does not contain documents to be corrected in the teacher data, or that the number of documents is extremely small.
[0075] Furthermore, in the teacher data correction device 1, the misclassification rate may be the probability that a document that should belong to the first category is erroneously classified as belonging to the second category. This configuration makes it possible to more reliably correct teacher data in which a document that should belong to the first category is erroneously classified as belonging to the second category.
[0076] In addition, in the teacher data correction device 1, the deletion data determination unit 15 may acquire category information indicating the first category and the second category when a document classification model that classifies the category to which an input document belongs and that is trained based on teacher data has a misclassification rate, which is the probability that a document that should belong to a first category will be erroneously classified as belonging to a second category, satisfying a predetermined criterion. This configuration makes it possible to more reliably correct the teacher data when there is a defect in the teacher data.
[0077] Furthermore, in the teacher data correction device 1, the deletion data determination unit 15 may identify characteristic terms in documents included in the teacher data that belong to a first category indicated by the acquired category information, and the teacher data deletion unit 16 may delete from the teacher data a set of documents that include the term identified by the deletion data determination unit 15 and a name indicating the first category from among documents included in the teacher data that belong to a second category indicated by the category information acquired by the deletion data determination unit 15. With this configuration, document sets that include names indicating the first category are also deleted from the teacher data, making it possible to correct the teacher data with greater accuracy.
[0078] The teacher data correction device 1 may further include a machine learning unit 11 that learns and outputs a document classification model that classifies the category to which any input document belongs, based on the teacher data deleted by the teacher data deletion unit 16. This configuration can improve the accuracy of the document classification model.
[0079] The teacher data correction device 1 relates to the automation of teacher data formatting. After training using inaccurate training data that contains a mixture of old and new categories, the teacher data correction device 1 calculates the misclassification rate into higher-level categories, and based on the calculated misclassification rate, identifies higher-level and lower-level categories that require correction of the teacher data, identifies words characteristic of the lower-level categories, and deletes documents related to the lower-level categories from the past teacher data, thereby quickly correcting the teacher data at low cost and improving the accuracy of the model.
[0080] The teacher data correction device 1 has the effect from the user's perspective that articles are correctly classified into lower categories, eliminating the situation where articles are scattered across both upper and lower categories. Also, from the operator's perspective, it has the effect that data can be easily reshaped even when a new category is added.
[0081] The teacher data correction device 1 of the present disclosure may have the following configuration.
[0082] [A] A teacher data correction device that deletes teacher data of a lower category that is mixed in with teacher data of a higher category, comprising: a machine learning / inference unit that uses teacher data to learn a document classification model, inputs text data that constitutes the teacher data into the learned document classification model, and outputs a category classification result; a misclassification rate calculation unit that compares the category classification result output from the machine learning / inference unit with categories that were previously assigned to the teacher data, and calculates the rate of misclassification into a higher category based on the higher-lower category pair data; a teacher data correction determination unit that determines whether to correct the teacher data depending on whether the rate of misclassification into a higher category is higher than a threshold; and a teacher data correction unit that corrects the teacher data by deleting teacher data of a lower category that is mixed in with teacher data of a higher category using characteristic words that represent the lower category.
[0083] [B] The teacher data correction device described in [A] further comprises a deletion data determination unit for extracting characteristic words representing the lower categories, and the teacher data correction unit corrects the teacher data using the characteristic words and category names obtained using the deletion data determination unit.
[0084] The teacher data correction device 1 of the present disclosure may have the following configuration.
[0085] [1] A teacher data correction device that corrects teacher data consisting of a pair of hierarchically structured categories and documents belonging to the categories, comprising: an acquisition unit that acquires category information indicating a first category, which is one of the categories, and a second category, which is a category that is hierarchically related to the first category, and to which a document included in the teacher data that should belong to the first category mistakenly belongs or may mistakenly belong; and a deletion unit that identifies characteristic terms in documents included in the teacher data that belong to the first category indicated by the category information acquired by the acquisition unit, and deletes from the teacher data pairs of documents that include the identified terms from among documents included in the teacher data that belong to the second category indicated by the category information.
[0086] [2] The teacher data correction device according to [1], wherein the hierarchical structure of the categories is changed over time.
[0087] [3] The teacher data correction device according to [1] or [2], wherein the second category is a higher level than the first category.
[0088] [4] A teacher data correction device according to any one of [1] to [3], wherein, when the misclassification rate of a document classification model that classifies the category to which an input document belongs and that is trained based on the teacher data satisfies a predetermined standard, the deletion unit deletes the teacher data.
[0089] [5] The teacher data correction device according to [4], wherein cross-validation is performed in the learning based on the teacher data.
[0090] [6] The training data correction device according to [4] or [5], wherein the misclassification rate is the probability that a document that should belong to the first category is erroneously classified as belonging to the second category.
[0091] [7] The teacher data correction device described in any one of [1] to [6], wherein the acquisition unit acquires category information indicating the first category and the second category when a misclassification rate, which is the probability that a document that should belong to a first category is erroneously classified as belonging to a second category, of a document classification model that classifies the category to which an arbitrary input document belongs and that is trained based on the teacher data, satisfies a predetermined criterion.
[0092] [8] The teacher data correction device described in any one of [1] to [7], wherein the deletion unit identifies characteristic terms in documents included in the teacher data that belong to a first category indicated by the category information acquired by the acquisition unit, and deletes from the teacher data a set of documents that include the identified term and a name indicating the first category from among documents included in the teacher data that belong to a second category indicated by the category information.
[0093] [9] The teacher data correction device according to any one of [1] to [8], further comprising a learning unit that learns and outputs a document classification model that classifies the category to which any input document belongs, based on the teacher data deleted by the deletion unit.
[0094] The block diagrams used to explain the above embodiments show functional blocks. These functional blocks (components) are realized by any combination of hardware and / or software. Furthermore, the method for realizing each functional block is not particularly limited. That is, each functional block may be realized using a single device that is physically or logically coupled, or may be realized using two or more physically or logically separated devices that are directly or indirectly connected (e.g., wired, wireless, etc.) and these multiple devices. The functional block may also be realized by combining software with the single device or multiple devices.
[0095] Functions include, but are not limited to, judgment, determination, assessment, calculation, computation, processing, derivation, investigation, search, confirmation, reception, transmission, output, access, resolution, selection, selection, establishment, comparison, assumption, expectation, consideration, broadcasting, notifying, communicating, forwarding, configuring, reconfiguring, allocating, mapping, and assignment. For example, a functional block (component) that performs transmission is called a transmitting unit or transmitter. As mentioned above, there are no particular limitations on how these functions are implemented.
[0096] For example, the teacher data correction device 1 according to an embodiment of the present disclosure may function as a computer that performs processing of the teacher data correction method of the present disclosure. Figure 29 is a diagram showing an example of the hardware configuration of the teacher data correction device 1 according to an embodiment of the present disclosure. The teacher data correction device 1 described above may be physically configured as a computer device including a processor 1001, a memory 1002, a storage 1003, a communication device 1004, an input device 1005, an output device 1006, a bus 1007, etc.
[0097] In the following description, the term "apparatus" can be interpreted as a circuit, a device, a unit, etc. The hardware configuration of the teacher data correction apparatus 1 may be configured to include one or more of the devices shown in the figure, or may be configured to exclude some of the devices.
[0098] Each function in the teacher data correction device 1 is realized by loading specified software (programs) onto hardware such as the processor 1001 and memory 1002, causing the processor 1001 to perform calculations, control communication via the communication device 1004, and control at least one of reading and writing data in the memory 1002 and storage 1003.
[0099] The processor 1001 controls the entire computer by running, for example, an operating system. The processor 1001 may be configured as a central processing unit (CPU) including an interface with peripheral devices, a control device, an arithmetic unit, a register, etc. For example, the above-mentioned machine learning unit 11, inference unit 12, misclassification rate calculation unit 13, teacher data correction determination unit 14, deletion data determination unit 15, and teacher data deletion unit 16 may be realized by the processor 1001.
[0100] The processor 1001 also reads programs (program codes), software modules, data, etc. from at least one of the storage 1003 and the communication device 1004 into the memory 1002 and executes various processes in accordance with the programs. The programs used include programs that cause a computer to execute at least some of the operations described in the above-described embodiments. For example, the machine learning unit 11, the inference unit 12, the misclassification rate calculation unit 13, the teacher data correction determination unit 14, the deletion data determination unit 15, and the teacher data deletion unit 16 may be implemented by a control program stored in the memory 1002 and running on the processor 1001, and other functional blocks may be implemented in a similar manner. While the above-described various processes have been described as being executed by a single processor 1001, they may also be executed simultaneously or sequentially by two or more processors 1001. The processor 1001 may be implemented by one or more chips. The programs may also be transmitted from a network via a telecommunications line.
[0101] The memory 1002 is a computer-readable recording medium and may be configured by, for example, at least one of a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a random access memory (RAM), etc. The memory 1002 may also be called a register, a cache, a main memory (primary storage device), etc. The memory 1002 can store executable programs (program codes), software modules, etc. for implementing a wireless communication method according to an embodiment of the present disclosure.
[0102] Storage 1003 is a computer-readable recording medium, and may be composed of at least one of, for example, an optical disk such as a CD-ROM (Compact Disc ROM), a hard disk drive, a flexible disk, a magneto-optical disk (e.g., a compact disk, a digital versatile disk, a Blu-ray (registered trademark) disk), a smart card, a flash memory (e.g., a card, a stick, a key drive), a floppy (registered trademark) disk, a magnetic strip, etc. Storage 1003 may also be referred to as an auxiliary storage device. The above-mentioned storage medium may be, for example, a database, a server, or other appropriate medium including at least one of memory 1002 and storage 1003.
[0103] The communication device 1004 is hardware (transmission / reception device) for communicating between computers via at least one of a wired network and a wireless network, and is also referred to as, for example, a network device, a network controller, a network card, a communication module, etc. The communication device 1004 may be configured to include, for example, a high-frequency switch, a duplexer, a filter, a frequency synthesizer, etc. to realize at least one of frequency division duplex (FDD) and time division duplex (TDD). For example, the above-mentioned machine learning unit 11, inference unit 12, misclassification rate calculation unit 13, teacher data correction determination unit 14, deletion data determination unit 15, and teacher data deletion unit 16 may be realized by the communication device 1004.
[0104] The input device 1005 is an input device (e.g., a keyboard, a mouse, a microphone, a switch, a button, a sensor, etc.) that receives input from the outside. The output device 1006 is an output device (e.g., a display, a speaker, an LED lamp, etc.) that outputs to the outside. Note that the input device 1005 and the output device 1006 may be integrated into one device (e.g., a touch panel).
[0105] Furthermore, each device, such as the processor 1001 and the memory 1002, is connected by a bus 1007 for communicating information. The bus 1007 may be configured using a single bus, or may be configured using different buses between each device.
[0106] The teacher data correction device 1 may also be configured to include hardware such as a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a field programmable gate array (FPGA), and some or all of the functional blocks may be realized by the hardware. For example, the processor 1001 may be implemented using at least one of these pieces of hardware.
[0107] Notification of information is not limited to the aspects / embodiments described in this disclosure, and may be performed using other methods.
[0108] Each aspect / embodiment described in the present disclosure may be applied to at least one of systems using LTE (Long Term Evolution), LTE-Advanced (LTE-A), SUPER 3G, IMT-Advanced, 4G (4th generation mobile communication system), 5G (5th generation mobile communication system), FRA (Future Radio Access), NR (New Radio), W-CDMA (registered trademark), GSM (registered trademark), CDMA2000, UMB (Ultra Mobile Broadband), IEEE 802.11 (Wi-Fi (registered trademark)), IEEE 802.16 (WiMAX (registered trademark)), IEEE 802.20, UWB (Ultra-Wide Band), Bluetooth (registered trademark), or other suitable systems, and next-generation systems enhanced based on these. Furthermore, a combination of multiple systems (e.g., a combination of at least one of LTE and LTE-A with 5G, etc.) may also be applied.
[0109] The order of the procedures, sequences, flowcharts, etc. of each aspect / embodiment described in this disclosure may be changed unless it is consistent. For example, the methods described in this disclosure present elements of various steps using an example order, and are not limited to the particular order presented.
[0110] Input and output information may be stored in a specific location (for example, memory) or may be managed using a management table. Input and output information may be overwritten, updated, or added to. Output information may be deleted. Input information may be transmitted to another device.
[0111] The determination may be made based on a value represented by one bit (0 or 1), a Boolean value (true or false), or a numerical comparison (e.g., comparison with a predetermined value).
[0112] The aspects / embodiments described in this disclosure may be used alone, in combination, or switched depending on the implementation. Notification of predetermined information (e.g., notification that "X is true") is not limited to explicit notification, but may be implicit (e.g., not notifying the predetermined information).
[0113] Although the present disclosure has been described in detail above, it is clear to those skilled in the art that the present disclosure is not limited to the embodiments described herein. The present disclosure can be implemented in modified and altered forms without departing from the spirit and scope of the present disclosure as defined by the claims. Therefore, the description of the present disclosure is intended to be illustrative and does not have any limiting meaning on the present disclosure.
[0114] Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executable files, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
[0115] Software, instructions, information, etc. may also be transmitted or received over a transmission medium. For example, if software is transmitted from a website, server, or other remote source using wired technologies (such as coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL)), and / or wireless technologies (such as infrared, microwave), then these wired and / or wireless technologies are included within the definition of transmission media.
[0116] The information, signals, etc. described in this disclosure may be represented using any of a variety of different technologies. For example, data, instructions, commands, information, signals, bits, symbols, chips, etc. that may be referred to throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or magnetic particles, optical fields or photons, or any combination thereof.
[0117] In addition, terms explained in this disclosure and terms necessary for understanding this disclosure may be replaced with terms having the same or similar meanings.
[0118] As used in this disclosure, the terms "system" and "network" are used interchangeably.
[0119] Furthermore, the information, parameters, etc. described in this disclosure may be expressed using absolute values, may be expressed using relative values from a predetermined value, or may be expressed using other corresponding information.
[0120] The names used for the above parameters are not limiting in any way, and furthermore, the mathematical formulas etc. using these parameters may differ from those explicitly disclosed in this disclosure.
[0121] As used in this disclosure, the terms "determining" and "determining" may encompass a wide variety of actions. "Determining" and "determining" may include, for example, judging, calculating, computing, processing, deriving, investigating, looking up, searching, inquiring (e.g., searching a table, database, or other data structure), ascertaining, and the like. "Determining" and "determining" may also include receiving (e.g., receiving information), transmitting (e.g., sending information), input, output, accessing (e.g., accessing data in memory), and the like, all of which are considered to be "determining." "Determining" and "determining" may also include resolving, selecting, choosing, establishing, comparing, and the like, all of which are considered to be "determining." In other words, "judgment" and "decision" can include regarding some action as having been "judged" or "decided." Also, "judgment (decision)" can be interpreted as "assuming," "expecting," "considering," etc.
[0122] The terms "connected," "coupled," or any variation thereof, refer to any direct or indirect connection or coupling between two or more elements, and may include the presence of one or more intermediate elements between two elements that are "connected" or "coupled" to each other. The coupling or connection between elements may be physical, logical, or a combination thereof. For example, "connected" may be read as "access." As used in this disclosure, two elements may be considered to be "connected" or "coupled" to each other using one or more wires, cables, and / or printed electrical connections, as well as electromagnetic energy having wavelengths in the radio frequency range, microwave range, and optical (both visible and invisible) range, as some non-limiting and non-exhaustive examples.
[0123] As used in this disclosure, the phrase "based on" does not mean "based only on," unless expressly stated otherwise. In other words, the phrase "based on" means both "based only on" and "based at least on."
[0124] As used in this disclosure, any reference to an element using a designation such as "first," "second," etc. does not generally limit the quantity or order of those elements. These designations may be used in this disclosure as a convenient method of distinguishing between two or more elements. Thus, a reference to a first and a second element does not imply that only two elements may be employed or that the first element must in some way precede the second element.
[0125] The "means" in the configuration of each of the above devices may be replaced with "part," "circuit," "device," etc.
[0126] When the terms "include," "including," and variations thereof are used in this disclosure, these terms are intended to be inclusive, similar to the term "comprising." Furthermore, when the term "or" is used in this disclosure, it is not intended to be an exclusive or.
[0127] In this disclosure, where articles are added by translation, such as a, an, and the in English, the disclosure may include that the nouns following these articles are in the plural form.
[0128] In the present disclosure, the term "A and B are different" may mean "A and B are different from each other." The term may also mean "A and B are each different from C." Terms such as "separate" and "coupled" may also be interpreted in the same way as "different."
[0129] 1...teacher data correction device, 10...storage unit, 11...machine learning unit, 12...inference unit, 13...misclassification rate calculation unit, 14...teacher data correction judgment unit, 15...deletion data determination unit, 16...teacher data deletion unit, 1001...processor, 1002...memory, 1003...storage, 1004...communication device, 1005...input device, 1006...output device, 1007...bus.
Claims
1. A teacher data correction device that corrects teacher data consisting of a pair of categories having a hierarchical structure and documents belonging to the categories, comprising: an acquisition unit that acquires category information indicating a first category, which is one of the categories, and a second category, which is a category that has a hierarchical relationship with the first category, and to which a document included in the teacher data that should belong to the first category mistakenly belongs or may mistakenly belong; and a deletion unit that identifies characteristic terms in documents included in the teacher data that belong to the first category indicated by the category information acquired by the acquisition unit, and deletes from the teacher data a pair of documents that contain the identified term from among documents included in the teacher data that belong to the second category indicated by the category information.
2. The teacher data correction device according to claim 1, wherein the hierarchical structure of the categories is changed over time.
3. The teacher data correction device according to claim 1, wherein the second category is a higher level than the first category.
4. The teacher data correction device of claim 1, wherein when the misclassification rate of a document classification model that classifies the category to which an arbitrary input document belongs and that is trained based on the teacher data satisfies a predetermined criterion, the deletion unit deletes the teacher data.
5. The teacher data correction device according to claim 4, wherein cross-validation is performed in the learning based on the teacher data.
6. The training data correction device according to claim 4, wherein the misclassification rate is the probability that a document that should belong to the first category is erroneously classified as belonging to the second category.
7. The teacher data correction device of claim 1, wherein the acquisition unit acquires category information indicating the first category and the second category when a misclassification rate, which is the probability that a document that should belong to a first category is erroneously classified as belonging to a second category, of a document classification model that classifies the category to which an arbitrary input document belongs and that is trained based on the teacher data, satisfies a predetermined criterion.
8. The teacher data correction device of claim 1, wherein the deletion unit identifies a characteristic term in a document included in the teacher data that belongs to a first category indicated by the category information acquired by the acquisition unit, and deletes from the teacher data a set of documents that include the identified term and a name indicating the first category from among documents included in the teacher data that belong to a second category indicated by the category information.
9. The teacher data correction device as described in claim 1, further comprising a learning unit that learns and outputs a document classification model that classifies the category to which an arbitrary input document belongs based on the teacher data deleted by the deletion unit.
Citation Information
Patent Citations
Information processing device, information processing method, and program
JP2019164402A
Data processing apparatus and method
JP2022150552A
Automated data hierarchy extraction and prediction using a machine learning model
US20220366298A1
