Learning data generation method, learning data generation device, and recording medium

By calculating the distance between categories output by the recognition model, the second category is selected to mix images and labels with the first category to generate new learning data, which solves the problem of low recognition performance of low-frequency categories, reduces data collection costs, and improves efficiency. Identify the learning efficiency of the model.

CN118786444APending Publication Date: 2024-10-15PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202380024288.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-02
Filing Date
2023-02-27
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When the existing technology generates learning data for recognition model learning, the recognition performance of low-frequency categories is low, and the cost of data collection through data enhancement technology is high, making it difficult to efficiently improve the recognition accuracy.

Method used

By calculating the distances between multiple categories output by the recognition model, the second category is selected to mix the image data and labels with the first category to generate new learning data to improve the recognition performance of the recognition model.

Benefits of technology

It effectively improves the recognition accuracy of the recognition model for low-frequency categories, reduces the cost of data collection, and improves the overall learning efficiency of the recognition model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118786444A_ABST
    Figure CN118786444A_ABST
Patent Text Reader

Abstract

A learning data generation method is a method for generating learning data for learning a recognition model that outputs any one of a plurality of categories as a category of an object included in image data when the image data is input, the learning data being a method for generating learning data for learning a recognition model that outputs any one of the plurality of categories as the category of the object included in the image data. A first category is selected from the plurality of categories on the basis of the recognition accuracy of the recognition model (S10), an inter-category distance is calculated (S20), which is the distance between the first category and each of two or more other categories among the plurality of categories, and a second category for generating learning data is selected from the two or more other categories on the basis of the inter-category distance (S30). Learning data is generated by mixing the respective image data of the selected first and second categories and mixing the respective tags of the selected first and second categories (S60).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a learning data generating method, a learning data generating device, and a recording medium. Background Art

[0002] There is known a recognition technology that uses a recognition model learned using machine learning to recognize objects contained in image data (images). In supervised machine learning in machine learning methods, such a recognition model uses learning data that includes image data and labels (correct answer labels) of objects contained in the image data for learning. The recognition model has a tendency to have higher recognition accuracy as the amount of learning data increases, so a technology for generating learning data called data augmentation and expanding it has been studied. Non-patent document 1 discloses a technology for mixing two image data and labels to generate synthetic image data as learning data.

[0003] (Prior art literature)

[0004] (Non-patent literature)

[0005] Non-patent literature 1: Mixup: Beyond Empirical Risk Minimization: ICLR2018 Summary of the invention

[0006] Problems to be solved by the invention

[0007] However, since the synthetic image data is generated by mixing random image data in Non-Patent Document 1, it is not limited to being able to generate image data of a small number of categories. Therefore, it is difficult to efficiently learn the recognition model in order to improve the performance of the low-precision category.

[0008] Therefore, the present disclosure provides a learning data generation method, a learning data generation device, and a recording medium for generating learning data that enables efficient learning of a recognition model.

[0009] Means for solving problems

[0010] A learning data generation method involved in one embodiment of the present disclosure is a method for generating learning data for learning a recognition model, wherein the recognition model is a recognition model that outputs any one of a plurality of categories as the category of an object contained in image data when image data is input. In the learning data generation method, based on the recognition accuracy of the recognition model, a first category is selected from the plurality of categories, an inter-category distance is calculated, the inter-category distance being the distance between the first category and each of two or more other categories in the plurality of categories, and based on the inter-category distance, a second category for generating the learning data is selected from the two or more other categories, and the learning data is generated by mixing the image data of the selected first category and the selected second category respectively and mixing the labels of the selected first category and the selected second category respectively.

[0011] A learning data generating device involved in one embodiment of the present disclosure is a device for generating learning data for learning a recognition model, wherein the recognition model is a recognition model that outputs any one of a plurality of categories as the category of an object contained in the image data when image data is input, and the learning data generating device comprises: a first selection unit that selects a first category from the plurality of categories based on the recognition accuracy of the recognition model; a calculation unit that calculates an inter-category distance, which is a distance between the first category and each of two or more other categories in the plurality of categories; a second selection unit that selects a second category from the two or more other categories for generating the learning data based on the inter-category distance; and a generation unit that generates the learning data by mixing the image data of each of the selected first category and the second category and mixing the labels of each of the selected first category and the second category.

[0012] A recording medium according to one aspect of the present disclosure is a non-transitory computer-readable recording medium having recorded thereon a program for causing a computer to execute the above-described learning data generating method.

[0013] Effects of the Invention

[0014] According to one aspect of the present disclosure, it is possible to realize a learning data generation method and the like that generate learning data that enables efficient learning of a recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a block diagram showing the functional configuration of a learning data generating device according to an embodiment.

[0016] Figure 2 This is a block diagram showing the functional structure of a low-frequency category selection unit according to the embodiment.

[0017] Figure 3 This is a flowchart showing the operation of the learning data generating device according to the embodiment.

[0018] Figure 4 It is shown Figure 3 The flowchart shows the details of the operation of step S10.

[0019] Figure 5A This is a diagram showing a first example of a method for selecting a low-frequency category according to the embodiment.

[0020] Figure 5B It is a diagram showing a second example of the method of selecting a low-frequency category according to the embodiment.

[0021] Figure 6 It is shown Figure 3 The flowchart shows the details of the operation of step S20.

[0022] Figure 7 It is shown Figure 3 The flowchart shows the details of the operation of step S30.

[0023] Fig. 8A This is a diagram showing a first example of a method for selecting a category mixed with a low-frequency category according to the embodiment.

[0024] Figure 8B This is a diagram showing a second example of the method of selecting a category mixed with a low-frequency category according to the embodiment. DETAILED DESCRIPTION

[0025] (The process of obtaining this disclosure)

[0026] Although learning data is collected when learning the recognition model, it is difficult to collect data of all categories equally. Therefore, the recognition rate of the recognition model learned using such learning data will be different for each category. For example, there is a case where the recognition performance for low-frequency categories is reduced, and the low-frequency category refers to a category with a small amount of data contained in the learning data. It is also possible to consider additional collection of data for low-frequency categories, but there will be a problem of increased collection costs. In addition, learning data is a group of data (dataset) consisting of image data and labels representing the category of the object contained in the image data.

[0027] Therefore, the inventors of the present invention have conducted intensive research on a learning data generation method and the like that can generate learning data that can suppress an increase in collection cost and improve recognition performance of low-frequency categories, and proposed the learning data generation method and the like shown below.

[0028] The first embodiment of the present invention involves a learning data generation method, which is a method for generating learning data for learning a recognition model. The recognition model is a recognition model that outputs any one of a plurality of categories as the category of an object contained in the image data when image data is input. In the learning data generation method, based on the recognition accuracy of the recognition model, a first category is selected from the plurality of categories, and an inter-category distance is calculated. The inter-category distance is the distance between the first category and each of two or more other categories in the plurality of categories. Based on the inter-category distance, a second category for generating the learning data is selected from the two or more other categories. The learning data is generated by mixing the image data of the selected first category and the second category and mixing the labels of the selected first category and the second category.

[0029] Accordingly, it is possible to generate learning data including image data having the features of each object contained in the image data of the first category and the second category, so that the recognition performance of the recognition model can be improved by learning using such image data. For example, in the case where the recognition accuracy of the first category is low, it is possible to generate learning data that can efficiently improve the recognition accuracy of the category with low recognition accuracy. Therefore, by the learning data generation method, it is possible to generate learning data that can enable the recognition model to learn efficiently.

[0030] In addition, the learning data generation method involved in the second embodiment of the present invention, according to the learning data generation method involved in the first embodiment, may be, for example, that among the multiple categories, at least one of the categories with the recognition accuracy below a first threshold and the categories with the recognition accuracy above a second threshold is extracted as a candidate category, the second threshold is higher than the first threshold, and the first category is selected from the candidate categories.

[0031] According to this, it is possible to generate learning data that can efficiently improve the recognition accuracy of a class whose recognition accuracy is less than the first threshold or greater than the second threshold.

[0032] Furthermore, a learning data generating method according to a third aspect of the present disclosure may be based on the learning data generating method according to the second aspect, and, for example, the first category may be randomly selected from the candidate categories.

[0033] This makes it possible to generate learning data that can efficiently improve the recognition accuracy of the randomly selected first category.

[0034] In addition, the learning data generation method involved in the fourth embodiment of the present invention may be, based on the learning data generation method involved in the first to third embodiments, such that the inter-category distance is calculated based on the likelihood of each of the multiple categories output by the recognition model.

[0035] Accordingly, the recognition result of the recognition model, i.e., the likelihood of each of the multiple categories, can be used in the selection of the second category. The learning data generated by mixing the second category selected in this way and the first category can become learning data that can more accurately learn the boundary of the likelihood of the first category and the second category.

[0036] In addition, the learning data generation method involved in the fifth embodiment of the present invention may be, for example, based on the learning data generation method involved in the fourth embodiment, obtaining the likelihood of each of one or more first evaluation data corresponding to the first category in the evaluation data used when calculating the recognition accuracy, judging whether the variance of the likelihood of each of the one or more first evaluation data is greater than a third threshold value, and determining the likelihood of the first category used when calculating the distance between the categories based on the judgment result of the variance.

[0037] According to this, different likelihoods are obtained according to the difference in the variance determination result, so that learning data that enables efficient learning of the recognition model can be generated compared to the case where the likelihood is not obtained according to the variance determination result.

[0038] In addition, the learning data generation method involved in the sixth embodiment of the present invention, based on the learning data generation method involved in the fifth embodiment, may be, for example, that when the variance is larger than the third threshold, the inter-category distance is calculated using the likelihood of the evaluation data whose recognition result is the correct answer in the one or more first evaluation data, and when the variance is below the third threshold, the inter-category distance is calculated using the likelihood of the evaluation data whose recognition result is the incorrect answer in the one or more first evaluation data.

[0039] According to this, when the deviation of the likelihood of the first category is large, the likelihood of the evaluation data as the correct answer is used, so that the influence of the outlier can be suppressed. And when the deviation of the likelihood of the first category is small, the likelihood of the evaluation data as the incorrect answer is used, so that the erroneous recognition of data similar to other categories can be suppressed.

[0040] In addition, the learning data generation method involved in the seventh mode of the present disclosure, based on the learning data generation method involved in the fourth to sixth modes, may be, for example, that the distance between categories is Mahalanobis distance, or Euclidean distance, or Manhattan distance, or cosine similarity.

[0041] According to this, any one of the Mahalanobis distance, the Euclidean distance, the Manhattan distance, and the cosine similarity can be adopted as the inter-class distance.

[0042] In addition, the learning data generation method involved in the eighth embodiment of the present invention may be, according to the learning data generation method involved in the first to seventh embodiments, for example, calculating the accuracy of the recognition result of the recognition model for the first category, and selecting the second category from the two or more other categories based on the calculated accuracy and the distance between the categories.

[0043] According to this, the second category is selected based on the accuracy of the first category, so that, for example, the second category that can improve the accuracy of the first category can be selected.

[0044] In addition, the learning data generation method involved in the ninth embodiment of the present invention, based on the learning data generation method involved in the eighth embodiment, may be, for example, that when the accuracy of the first category is greater than a fourth threshold, the category among the two or more other categories whose distances between the categories are close is selected as the second category, and when the accuracy of the first category is below the fourth threshold, the category among the two or more other categories whose distances between the categories are far is selected as the second category.

[0045] According to this, different categories are selected as the second category according to the accuracy rate, so the recognition model can be learned more efficiently compared to the case where the second category is not selected according to the accuracy rate.

[0046] In addition, the learning data generation method involved in the tenth embodiment of the present invention, based on the learning data generation method involved in the first to ninth embodiments, may be, for example, further obtaining one or more first evaluation data corresponding to the first category and one or more second evaluation data corresponding to the second category from the evaluation data containing the image data and labels used when calculating the recognition accuracy, obtaining a mixing ratio for mixing the one or more first evaluation data and the one or more second evaluation data that have been obtained, and mixing the one or more first evaluation data and the one or more second evaluation data according to the obtained mixing ratio to generate the learning data.

[0047] Based on this, it is possible to generate learning data corresponding to the obtained mixing ratio.

[0048] In addition, the learning data generating device involved in the eleventh aspect of the present disclosure is a device for generating learning data for learning a recognition model, the recognition model being a recognition model that outputs any one of a plurality of categories as the category of an object included in the image data when image data is input, and the learning data generating device comprises: a first selection unit that selects a first category from the plurality of categories based on the recognition accuracy of the recognition model; a calculation unit that calculates an inter-category distance, which is a distance between the first category and each of two or more other categories among the plurality of categories; a second selection unit that selects a second category for generating the learning data from the two or more other categories based on the inter-category distance; and a generation unit that generates the learning data by mixing the image data of each of the selected first category and the second category and mixing the labels of each of the selected first category and the second category. In addition, the recording medium involved in the twelfth aspect of the present disclosure is a non-transitory computer-readable recording medium having a program recorded thereon, the program being used to cause a computer to execute the learning data generating method described in any one of the first aspect to the tenth aspect.

[0049] This can produce the same effects as the above-mentioned learning data generating method.

[0050] In addition, these general or specific methods may be implemented by a system, method, integrated circuit, computer program, or non-transitory recording medium such as a computer-readable CD-ROM, or by any combination of systems, methods, integrated circuits, computer programs, or recording media. The program may be pre-stored in a recording medium or provided to the recording medium via a wide area network including the Internet.

[0051] The embodiments will be described in detail below with reference to the drawings.

[0052] In addition, the embodiments to be described below are all general or specific examples. The numerical values, constituent elements, configuration positions of constituent elements, connection methods, steps, and order of steps shown in the following embodiments are all examples, and their purpose is not to limit the present disclosure. Moreover, the constituent elements of the following embodiments that are not recorded in the independent technical solutions will be described as arbitrary constituent elements.

[0053] In addition, each figure is a schematic diagram and is not a strict illustration. Therefore, for example, the scale in each figure is not consistent. In addition, in each figure, the same symbols are given to substantially the same structure, and repeated descriptions may be omitted or simplified.

[0054] In the present specification, numerical values ​​and numerical ranges are not merely expressions of strict meanings but also include expressions indicating substantially equivalent ranges, for example, expressions with a difference of approximately several percent (or approximately 10%) may be included.

[0055] In addition, in this specification, ordinal numbers such as "first" and "second" do not indicate the number or order of components unless otherwise specified, but are used to distinguish components in order to avoid confusion between the same type of components.

[0056] (Implementation Method)

[0057] Regarding the learning data generation method and the like involved in this embodiment, refer to Figures 1 to 8B To explain.

[0058] [1. Configuration of Learning Data Generating Device]

[0059] First, regarding the configuration of the learning data generating device according to the present embodiment, refer to Figure 1 as well as Figure 2 To explain. Figure 1 1 is a block diagram showing the functional structure of the learning data generating device 1 involved in the present embodiment. The learning data generating device 1 is an information processing device that generates learning data for learning (e.g., relearning) a recognition model. Specifically, the learning data generating device 1 is an information processing device that generates learning data for improving the recognition performance of a category with low recognition performance of the recognition model based on existing learning data, and the low recognition performance is caused by a small amount of data in the learning data, etc.

[0060] like Figure 1 As shown, the learning data generating device 1 includes: a low-frequency category selection unit 10, an inter-category distance calculation unit 20, a mixed category selection unit 30, a data acquisition unit 40, a storage unit 50, a mixing ratio calculation unit 60, a data mixing unit 70, a label mixing unit 80, and a learning data output unit 90. The processing performed by each of the functional blocks of the learning data generating device 1 is usually realized by a program execution unit such as a processor reading and executing software (program) recorded in a recording medium such as a ROM.

[0061] The low-frequency category selection unit 10 selects a low-frequency category from a plurality of categories based on the recognition accuracy (e.g., recognition rate) of the recognition model. The low-frequency category selection unit 10 selects a low-frequency category based on the recognition accuracy of each of the plurality of categories, for example, by performing reasoning using a recognition model that has been learned in advance. The low-frequency category is a category that has not been well learned among the plurality of categories and is a category that cannot be recognized with high accuracy. In the recognition model, an object of a low-frequency category is mistakenly recognized as belonging to another category, or an object of another category is mistakenly recognized as belonging to a low-frequency category.

[0062] The low-frequency category selection unit 10 is an example of a first selection unit, and the low-frequency category is an example of a first category. In addition, the learning data used in the previous learning is, for example, learning data with different sample numbers for each category. The learning data generation device 1 generates learning data when relearning the recognition model, which is a model learned in machine learning using learning data with different sample numbers for each category.

[0063] Here, regarding the configuration of the low-frequency category selection unit 10, refer to Figure 2 Provide explanation. Figure 2 1 is a block diagram showing the functional configuration of the low-frequency category selection unit 10 according to the present embodiment.

[0064] like Figure 2 As shown, the low-frequency category selection unit 10 includes a learning parameter reading unit 11, a learning model parameter database 12, an evaluation data reading unit 13, an evaluation database 14, an inference unit 15, a category accuracy analysis unit 16, and a category selection unit 17. Figure 4 etc. will be described later.

[0065] The learning parameter reading unit 11 reads (reads out) the parameters of the recognition model from the learning model parameter database 12 .

[0066] The recognition model is a model for image recognition, also known as a mathematical model of a learning model. The recognition model is constructed to be able to recognize which category of multiple categories the object contained in the image data is included in. The classification model can be a recognition model with pre-assigned parameters (initial values), or a recognition model (learned recognition model) with new parameters that update the above-mentioned pre-assigned parameters by machine learning using pre-prepared learning data. In addition, the recognition model is a model that outputs which category of multiple categories the object contained in the image data is included in when the image data is input. In addition, the recognition model can output the likelihood of each of the multiple categories in the object as an element in the form of a matrix of 1 row and M columns (M is the number of multiple categories) (in the form of a vector). The matrix (vector) of 1 row and M columns output from the recognition model is called a class probability or likelihood vector. The likelihood for each of the multiple categories included as an element of the class probability is a value indicating the certainty that the object is of the class. In the recognition model, among the likelihoods of each of a plurality of classes output for the input image data, the class with the maximum likelihood is recognized as the class of the object included in the image data. The recognition model is, for example, a neural network model, but is not limited thereto.

[0067] In addition, the recognition model may also be an image segmentation model that classifies the category for each pixel.

[0068] In addition, the recognition model described below is an example of an object recognition model that recognizes an object based on image data, but it can also be, for example, a text recognition model that recognizes text based on image data. In the case of an object recognition model mounted on a vehicle, the category is, for example, a vehicle, a person, a road, a sidewalk, a building, a traffic light, etc., and in the case of a text recognition model, the category is, for example, the text itself. The learning data and evaluation data shown below each include image data containing at least one of the objects corresponding to the category and a label (correct answer label) of the object.

[0069] The learning model parameter database 12 is a storage device for storing parameters of one or more recognition models. The parameters are, for example, various parameters of a neural network as a recognition model. The learning model parameter database 12 is implemented by, for example, a semiconductor memory, but is not limited thereto.

[0070] The evaluation data reading unit 13 reads evaluation data (evaluation data) for performing inference for selecting a low-frequency class from the evaluation database 14 for the recognition model read by the learning parameter reading unit 11. In this embodiment, image data is used as an example of evaluation data.

[0071] The evaluation database 14 is a storage device for storing a plurality of evaluation data. The plurality of evaluation data includes a plurality of categories classified by the recognition model. The evaluation database 14 is implemented by, for example, a semiconductor memory, but is not limited thereto.

[0072] The inference unit 15 performs inference processing on the evaluation data read by the evaluation data reading unit 13 using the parameters of the recognition model read by the learning parameter reading unit 11. The inference unit 15 obtains the category of the object contained in the evaluation data obtained by inputting the evaluation data into the classification model as the result of the inference processing. In addition, the inference unit 15 can obtain the result output in the form of a matrix with the likelihood output from the classification model as an element when the evaluation data is input into the classification model as the result of the inference processing, and the likelihood represents the certainty that the object contained in the evaluation data is judged to be each of the multiple categories.

[0073] The category accuracy analysis unit 16 determines whether the output of the recognition model is the correct answer based on the inference result of the inference unit 15 and the correct answer label, and calculates the recognition rate (also called accuracy) of the category in the recognition model according to the judgment result of the same category.

[0074] The category selection unit 17 selects a low-frequency category from among a plurality of categories based on the recognition rates of each category calculated by the category accuracy analysis unit 16 .

[0075] Refer again Figure 1 , the inter-category distance calculation unit 20 calculates the inter-category distance between the low-frequency category and two or more other categories in the multiple categories. Regarding the inter-category distance, for example, the distance calculated based on the likelihood of multiple categories output from the classification model when the evaluation data is input into the classification model is described as an example, but it is not limited to this. For example, in the case where the classification model is a neural network, the distance calculated based on the output (feature quantity) from the intermediate layer of the neural network can also be used as the inter-category distance. In the present embodiment, the inter-category distance is more specifically a distance (for example, relative distance) calculated based on the likelihood output by the recognition model for the image data of the low-frequency category, and the likelihood output by the recognition model for the image data of two or more other categories and the covariance matrix. The details of the covariance matrix and the calculation of the inter-category distance will be described later.

[0076] The mixed category selection unit 30 selects a category to be mixed with the low-frequency category based on the inter-category distance between the low-frequency category and each of two or more other categories. The mixed category selection unit 30 is an example of a second selection unit. The selection of the category to be mixed with the low-frequency category will be described later. In addition, the category selected by the mixed category selection unit 30 is an example of the second category. And, hereinafter, the category selected by the mixed category selection unit 30 is also recorded as a mixed object category.

[0077] The data acquisition unit 40 reads the image data and labels of the low-frequency class and the mixed object class from the storage unit 50 .

[0078] The storage unit 50 is a storage device for storing data (image data and labels) used to generate learning data for improving the recognition performance of low-frequency categories. The storage unit 50 can be implemented by the evaluation database 14. The storage unit 50 can also store evaluation data. The storage unit 50 is implemented by, for example, a semiconductor memory, but is not limited thereto.

[0079] The mixing ratio calculation unit 60 calculates the mixing ratio (weight) when the first image data of the low frequency category and the correct answer label of the first image data (first correct answer label) are mixed with the second image data of the mixed object category and the correct answer label of the second image data (second correct answer label). The mixing ratio when the first image data and the second image data are mixed is the same as the mixing ratio when the first correct answer label and the second correct answer label are mixed. The mixing ratio calculation unit 60 can randomly calculate the mixing ratio. The mixing ratio is a value of 0 to 1. The mixing ratio calculation unit 60 can set the first mixing ratio of the low frequency category to a value lower than the second mixing ratio of the mixed object category, or set the first mixing ratio and the second mixing ratio to the same value (=0.5), or set the first mixing ratio to a value higher than the second mixing ratio. The sum of the first mixing ratio and the second mixing ratio becomes 1.

[0080] In addition, the first correct answer label and the second correct answer label may be labels indicating one correct answer category, or labels indicating multiple likelihoods for multiple categories. For example, the first correct answer label may have a likelihood of 100% (in other words, 1) for the correct category of the object included in the first image data, and a likelihood of 0% (in other words, 0) for each of the other categories. And the second correct answer label may have a likelihood of 100% (in other words, 1) for the correct category of the object included in the second image data, and a likelihood of 0% (in other words, 0) for each of the other categories.

[0081] The data mixing unit 70 mixes the first image data and the second image data at the mixing ratio calculated by the mixing ratio calculation unit 60, thereby generating additional image data (synthesized image data) for learning. It can also be said that the data mixing unit 70 synthesizes the first image data and the second image data to generate a synthetic image data (simulated data). For example, the data mixing unit 70 weights and adds each of the pixel values ​​of the same pixel of the first image data and the second image data, thereby generating the synthetic image data. For example, the synthetic image data includes two or more objects of different categories.

[0082] The label mixing unit 80 mixes the first correct answer label and the second correct answer label at the mixing ratio calculated by the mixing ratio calculation unit 60 (the same mixing ratio as the image data mixed in the data mixing unit 70), thereby generating an additional correct answer label (synthesized correct answer label) corresponding to the synthetic image data generated by the data mixing unit 70. It can also be said that the label mixing unit 80 synthesizes the first correct answer label and the second correct answer label to generate a synthesized correct answer label. The label mixing unit 80 weights and adds the likelihoods of the same category of the first correct answer label and the second correct answer label to generate a synthesized correct answer label. For example, the synthesized correct answer label includes a likelihood for each of a plurality of categories, and the plurality of categories include the category of the object included in the synthetic image data.

[0083] Here, an example of synthesized image data and synthesized correct answer labels is described. A dog is shown in the first image data, and the first correct answer label has a likelihood of 100% (in other words, 1) for the dog, and a cat is shown in the second image data, and the second correct answer label has a likelihood of 100% (in other words, 1) for the cat. The following describes a case where these are mixed at a mixing rate of 0.5. In addition, cats and dogs are examples of categories.

[0084] The composite image data is image data generated by weighting and adding the first image data and the second image data at a mixing ratio determined by the mixing ratio calculation unit 60, for example, image data including both a dog and a cat (for example, image data in which at least a portion of the dog and the cat overlap).

[0085] The composite correct answer label is a label obtained by weighting and adding the first correct answer label and the second correct answer label at the same mixing ratio as the mixing ratio used for the synthesis of the first image data and the second image data. When the composite correct answer label is represented by (likelihood of dog, likelihood of cat), in the above example, the composite correct answer label becomes (0.5, 0.5).

[0086] The learning data output unit 90 outputs the learning data including the synthetic image data mixed by the data mixing unit 70 and the synthetic correct answer label corresponding to the synthetic image data mixed by the label mixing unit 80 to an information processing device such as a learning device for learning a recognition model. The learning data output unit 90 is configured to include a communication circuit (communication module).

[0087] By using the learning data generated in this way to learn the recognition model (for example, relearn), it is possible to efficiently improve the accuracy of low-frequency classes while suppressing the cost of recollecting data.

[0088] [2. Operation of the learning data generating device]

[0089] Next, the operation of the learning data generating device 1 configured as above will be described with reference to Figures 3 to 8B to explain. Figure 3 This is a flowchart showing the operation (learning data generating method) of the learning data generating device 1 according to the present embodiment. Figure 4 It is shown Figure 3 Flowchart showing details of the operation of step S10 (learning data generating method).

[0090] like Figure 3 As shown, the low-frequency category selection unit 10 selects a low-frequency category (first category) from a plurality of categories according to the recognition accuracy of the recognition model (S10). Specifically, the low-frequency category selection unit 10 selects a low-frequency category based on the recognition accuracy of the recognition result, which is the output of the recognition model obtained by inputting the evaluation data into the recognition model.

[0091] like Figure 4 As shown, step S10 includes the processing of steps S11 to S19.

[0092] First, the learning parameter reading unit 11 reads the parameters of the recognition model to be inferred from the learning model parameter database 12 ( S11 ). The learning parameter reading unit 11 outputs the read parameters of the recognition model to the inference unit 15 .

[0093] Next, the evaluation data reading unit 13 reads the Nth (N is a natural number greater than or equal to 1) evaluation data from the evaluation database 14 ( S12 ). The evaluation data reading unit 13 outputs the read evaluation data to the inference unit 15 .

[0094] Next, the inference unit 15 performs inference processing and stores the inference result in a storage unit (not shown) (S13). The inference unit 15 inputs the evaluation image data to the recognition model and obtains the type of the object included in the evaluation image data, which is the output of the recognition model, as the inference result.

[0095] Next, the evaluation data reading unit 13 determines whether all the data of the evaluation data have been processed (S14). The evaluation data reading unit 13 can also make a judgment in step S14 by whether all the data of the evaluation data have been read from the evaluation database 14. In addition, step S14 can also be judged by whether a specified number of data has been processed. In other words, it is not limited to processing all the data of the evaluation data. The processing mentioned here means the processing of step S13 using the evaluation data.

[0096] When the evaluation data reading unit 13 determines that all the evaluation data have not been processed ("No" in S14), it sets N=N+1 (S15) and executes the processing after step S12 for the next evaluation data. When it determines that all the evaluation data have been processed ("Yes" in S14), it proceeds to step S16.

[0097] Next, the classification accuracy analysis unit 16 calculates the recognition rate (an example of recognition accuracy) for each class (S16). The classification accuracy analysis unit 16 determines whether the inference result is correct or not according to whether it is consistent with the correct answer label for each evaluation data, and calculates the recognition rate (correct rate) for each class of the object.

[0098] In order to simplify the description, the case where there are three categories of objects that should be recognized (or classified) by the recognition model is used as an example. In this case, the categories of objects that should be recognized are the following three categories: the category of the first object (referred to as the first category), the category of the second object (referred to as the second category), and the category of the third object (referred to as the third category). In this case, when the image data as evaluation data is input to the recognition model, the recognition model calculates the value indicating the certainty that the object contained in the image data is judged to be the first category (referred to as the likelihood of the first category), the value indicating the certainty that the object is judged to be the second category (referred to as the likelihood of the second category), and the value indicating the certainty that the object is judged to be the third category (referred to as the likelihood of the third category), and outputs them in the form of a matrix of 1 row and 3 columns. In other words, the matrix of 1 row and 3 columns output from the recognition model as the inference result includes the likelihood of the first category, the likelihood of the second category, and the likelihood of the third category as elements.

[0099] The inference unit 15 identifies the class of the object included in the image data as the class having the largest likelihood among the likelihood of the first class, the likelihood of the second class, and the likelihood of the third class included in the inference result.

[0100] On the other hand, when there are three categories of objects, the correct answer label corresponding to the evaluation data is, for example, a matrix of 1 row and 3 columns in which the likelihood of the category corresponding to the object actually included in the image data as the evaluation data is 1, and the likelihood of the category of the other categories (objects not included in the image data) is 0. The category accuracy analysis unit 16 determines whether the category of the object identified based on the inference result and the category with the likelihood of 1 among the correct answer labels corresponding to the image data are consistent for each image data as the evaluation data, thereby determining whether the category corresponding to the object identified based on the inference result is consistent with the correct answer label.

[0101] For example, when one of the three object categories is "vehicle" and the recognition rate of the "vehicle" category is calculated, the category accuracy analysis unit 16 extracts the inference result of the recognition model for the following evaluation data, which is evaluation data corresponding to the correct answer label in which the likelihood of the "vehicle" category is 1 and the likelihood of the other two object categories is 0, and takes the category of the object identified based on the inference result as vehicle as the correct answer, and takes the category of the object identified based on the inference result as other than vehicle as the incorrect answer. For example, when there are 10 evaluation data in which the object included in the evaluation data input by the recognition model is identified as a category corresponding to "vehicle", 9 of which are correct answers and the remaining 1 is an incorrect answer, the category accuracy analysis unit 16 calculates the recognition rate for the category "vehicle" to be 90%.

[0102] Next, the class accuracy analysis unit 16 performs a class ascending order sorting process, that is, rearranges the classes in order of low to high recognition rates ( S17 ).

[0103] Figure 5A This is a diagram showing a first example of a method for selecting a low-frequency category according to the present embodiment.

[0104] like Figure 5A As shown in FIG. 1 , the category accuracy analysis unit 16 rearranges the categories in order of recognition rate, from the low-accuracy category with a low recognition rate to the high-accuracy category with a high recognition rate. Figure 5A The figure shows that the recognition rate of category A is the highest, and the recognition rate decreases in the order of category D and category F.

[0105] In addition, the category accuracy analysis unit 16 may also perform a category descending sorting process, that is, rearrange the categories in descending order of recognition rate.

[0106] Refer again Figure 4 Then, the category accuracy analysis unit 16 selects one or more categories whose recognition rate accuracy difference with the beginning category is within the threshold th1 as the candidate category set C1, and selects one or more categories whose recognition rate accuracy difference with the last category is within the threshold th2 as the candidate category set C2 (S18).

[0107] Since there are cases where the accuracy of low-frequency categories is too low compared to other categories (for example, see Fig. 8A category p) and the case where the accuracy of low-frequency categories is too high compared to other categories (for example, refer to the Figure 8B Therefore, in step S18, both candidate category sets C1 and C2 are generated as candidates for low-frequency categories.

[0108] In Figure 5A To illustrate by way of example, the category accuracy analysis unit 16 first uses the recognition rate of category A with the highest accuracy as a reference to determine the category whose accuracy difference with the recognition rate is within the threshold value th1. The category accuracy analysis unit 16 determines whether the accuracy difference between the recognition rate of category A and the recognition rate of the category is within the threshold value th1 in the order of category D, category F, ... For example, when the accuracy difference between the recognition rate of category A and the recognition rate of category F is greater than the threshold value th1, only category A and category D are selected to the candidate category set C1. The category accuracy analysis unit 16 also uses the threshold value th2 to select the category included in the candidate category set C2 for the last category (the low-accuracy category).

[0109] Figure 5B This is a diagram showing a second example of the method of selecting a low-frequency category according to the present embodiment.

[0110] exist Figure 5A An example is shown in which L (L is a natural number greater than 1) categories including category A, category D, and category F are selected as the candidate category set C1. Figure 5B 2 shows an example in which M (M is a natural number greater than or equal to 1) categories are selected as the candidate category set C2.

[0111] In addition, L and M may be the same number or different numbers. In addition, in the above, the candidate category sets C1 and C2 are generated using thresholds, but the categories included in the candidate category sets C1 and C2 may be selected by extracting a predetermined number of categories. The category accuracy analysis unit 16 may, for example, select the upper specified number of categories of the recognition rate as the candidate category set C1, or may select the lower specified number of categories of the recognition rate as the candidate category set C2.

[0112] Refer again Figure 4 The category selection unit 17 randomly selects a low-frequency category from the candidate category sets C1 and C2 and outputs it (S19). The category selection unit 17 randomly selects a category from the candidate category sets C1 and C2 and outputs the selected category as a low-frequency category to the inter-category distance calculation unit 20. There is no particular limitation on the random selection method.

[0113] Refer again Figure 3 Then, the inter-class distance calculation unit 20 calculates the inter-class distance between the low-frequency class selected by the class selection unit 17 and two or more other classes (S20). The inter-class distance calculation unit 20 may calculate the inter-class distance between each of all other classes except the low-frequency class among the multiple classes and the low-frequency class, or may calculate the inter-class distance between each of a predetermined number of two or more other classes among the multiple classes and the low-frequency class.

[0114] For the calculation of distance between categories, refer to Figure 6 Provide explanation. Figure 6 It is shown Figure 3 Flowchart showing details of the operation of step S20 (learning data generating method).

[0115] like Figure 6 As shown, the inter-category distance calculation unit 20 calculates the category probability variance of the low-frequency category based on the likelihoods of each of the multiple categories included in the output of the recognition model for each of the evaluation data of the low-frequency category (S21). The category probability variance represents the deviation of the likelihoods of each of the multiple categories. For example, when there are three categories of objects that the recognition model should recognize, the recognition model outputs 1 row and 3 columns, and the 1 row and 3 columns contain the likelihoods of each of the three categories as elements. When there are three categories of objects that the recognition model should recognize, the output of the recognition model contains the likelihoods of the three categories, one of the likelihoods of the three categories is the likelihood of the low-frequency category, and the remaining two categories are categories that are different from the likelihoods of the low-frequency category, and these two are called other categories. One of the two other categories is called the first other category, and the other is called the second other category.

[0116] For example, when the category of an object identified by the recognition model from image data serving as evaluation data is a low-frequency category, the image data is referred to as image data (evaluation data) included in the low-frequency category or image data (evaluation data) of the low-frequency category.

[0117] In addition, for image data included in the low-frequency category, the 1-row 3-column matrix output by the recognition model is called the category probability of the image data included in the low-frequency category. The category probability of the image data included in the low-frequency category is sometimes also called the first category probability.

[0118] Similarly, in a case where the category of an object identified based on image data serving as evaluation data is a first other category (or a second other category), the image data is referred to as image data (evaluation data) contained in the first other category (or the second other category) or image data (evaluation data) of the first other category (or the second other category).

[0119] In addition, for the image data (evaluation data) included in the first other category (or the second other category), the 1-row 3-column matrix output by the recognition model is called the category probability of the image data included in the first other category (or the second other category). The category probability of the image data included in the first other category (or the second other category) is sometimes also called the second category probability (or the third category probability).

[0120] The inter-class distance calculation unit 20 calculates the class probability variance based on the first class probability of each of the plurality of evaluation data of the low-frequency class. The class probability variance is the variance of the first class probability calculated based on the plurality of first class probabilities. Since the variance is well known in statistics, etc., its detailed description is omitted here.

[0121] Next, the inter-class distance calculation unit 20 determines whether the class probability variance calculated in step S21 is larger than the threshold value (S22). When the inter-class distance calculation unit 20 determines that the class probability variance is larger than the threshold value ("Yes" in S22), the set of image data (correct answer data) whose inference results are correct answers in the image data included in the low-frequency class is read (S23). It can also be said that the inter-class distance calculation unit 20 extracts the correct answer data from the image data included in the low-frequency class when "Yes" in step S22.

[0122] Furthermore, when the inter-class distance calculation unit 20 determines that the class probability variance is below the threshold value (“No” in S22), the set of image data (incorrect answer data) whose inference results are incorrect answers in the image data included in the low-frequency class is read (S24). It can be said that the inter-class distance calculation unit 20 extracts the incorrect answer data from the image data included in the low-frequency class when “No” in step S22.

[0123] Next, based on the result of the judgment in step S22, the inter-category distance calculation unit 20 uses (i) the image data (correct answer data) contained in the low-frequency category read in step S23, or (ii) the image data (incorrect data) contained in the low-frequency category read in step S24 as the evaluation data of the low-frequency category, and calculates the covariance matrix (S25) based on the respective inference results of the evaluation data for the low-frequency category (category probability of the low-frequency category) and the respective inference results of the evaluation data in each of two or more other categories (category probabilities of each other category).

[0124] When there are three categories of objects to be recognized by the recognition model, the inter-category distance calculation unit 20 calculates a 3×3 covariance matrix based on the output of the recognition model for each image data of the low-frequency category (the plurality of image data read in step S23 or step S24), namely, the variance of the plurality of first category probabilities, the output of the recognition model for each of the plurality of image data of the first other category, namely, the variance of the plurality of second category probabilities, the output of the recognition model for each of the plurality of image data of the second other category, namely, the variance of the plurality of third category probabilities, the covariance of the first category probability and the second category probability, the covariance of the first category probability and the third category probability, and the covariance of the second category probability and the third category probability. In addition, since covariance is well known in statistics, etc., its detailed description is omitted here.

[0125] Next, the inter-class distance calculation unit 20 normalizes the class probabilities of each class (three classes in the above example) using the covariance matrix calculated in step S25, and calculates the Mahalanobis distance based on the normalized class probabilities (S26). The inter-class distance calculation unit 20 calculates the distance between the centers of the two classes based on the normalized class probabilities as the Mahalanobis distance. In the above example, the inter-class distance calculation unit 20 calculates the Mahalanobis distance between the low-frequency class and the first other class, and the Mahalanobis distance between the low-frequency class and the second other class.

[0126] The Mahalanobis distance between the low-frequency class and the first other class (first Mahalanobis distance) is calculated by the following (Formula 1), and the Mahalanobis distance between the low-frequency class and the second other class (second Mahalanobis distance) is calculated by the following (Formula 2).

[0127] First Mahalanobis distance = {(average of the second category probabilities - average of the first category probabilities) × inverse matrix of covariance matrix × (average of the second category probabilities - average of the first category probabilities) t} 1 / 2 (Formula 1)

[0128] Second Mahalanobis distance = {(average of the third category probability - average of the first category probability) × inverse matrix of covariance matrix × (average of the third category probability - average of the first category probability) t} 1 / 2 (Formula 2)

[0129] When there are three categories of objects that should be recognized by the recognition model, the first category probability, the second category probability, and the third category probability are matrices with 1 row and 3 columns as described above, so (average value of the second category probability - average value of the first category probability) and (average value of the third category probability - average value of the first category probability) are matrices with 1 row and 3 columns respectively.

[0130] In addition, (the average of the second category probabilities - the average of the first category probabilities) t It is the transposed matrix (a matrix with 3 rows and 1 column) of (the average value of the probability of the second category - the average value of the probability of the first category), (the average value of the probability of the third category - the average value of the probability of the first category) t It is the transposed matrix (a matrix with 3 rows and 1 column) of (the average of the third category probabilities - the average of the first category probabilities).

[0131] In addition, as described above, the first category probability is the first category probability for each of the multiple image data (correct answer data or incorrect answer data) of the low-frequency category read based on the judgment of step S22, so the average value of the first category probability is the average value of the first category probability for multiple correct answer data or multiple incorrect answer data.

[0132] In the Mahalanobis distance, the distribution is normalized, so the influence of deviations such as outliers in class probabilities on the distance can be suppressed. The Mahalanobis distance is an example of the distance between classes.

[0133] Next, the inter-class distance calculation unit 20 stores the calculated Mahalanobis distance (distance information) in a storage unit (not shown) ( S27 ).

[0134] In the above description, the inter-class distance calculation unit 20 calculates the Mahalanobis distance as the distance scale, but is not limited thereto, and may also calculate the Euclidean distance, Manhattan distance, cosine similarity, etc. For example, when the deviation of the data is below a prescribed value, it is not necessary to consider the variance of the data, and thus the Euclidean distance or the like that directly utilizes the class probability may be calculated.

[0135] In addition, in the above example, the calculation of the distance between categories when there are three categories of objects to be recognized by the recognition model is described, but it is not limited to this. For example, when there are N categories of objects to be recognized by the recognition model (N: an integer greater than or equal to 4), the category probability output from the recognition model is expressed using a 1-row, N-column matrix that includes the likelihood of the low-frequency category and the likelihood of the remaining (N-1) other categories as elements. In other words, the N elements included in the category probability of the 1-row, N-column matrix output from the recognition model are the likelihoods of each of the N categories in the object. And, in this case, the covariance matrix is ​​expressed using a matrix of N rows and N columns. By applying the likelihood and covariance matrix of each of the N categories to the above (Formula 1) and (Formula 2), it is possible to calculate the distance between categories when there are N categories of objects to be recognized by the recognition model (N: an integer greater than or equal to 4).

[0136] Refer again Figure 3 The mixed class selection unit 30 selects another class (second class) to be mixed with the low-frequency class (S30).

[0137] For the selection of the second category, refer to Figure 7 Provide explanation. Figure 7 It is shown Figure 3 Flowchart showing details of the operation of step S30 (learning data generating method).

[0138] like Figure 7 As shown, the mixed class selection unit 30 determines whether the accuracy rate (recognition rate) of the low-frequency class is large (S31). Specifically, the mixed class selection unit 30 determines whether the accuracy rate of the low-frequency class is larger than a threshold value.

[0139] Next, when it is determined that the accuracy of the low-frequency class is high ("Yes" in S31), in other words, when the accuracy of the low-frequency class is greater than the threshold, the mixed class selection unit 30 selects a class with a short Mahalanobis distance to the low-frequency class among the multiple classes as a class to be mixed with the low-frequency class (S32). When it is determined that the accuracy of the low-frequency class is low ("No" in S31), in other words, when the accuracy of the low-frequency class is less than the threshold, the class with a long Mahalanobis distance to the low-frequency class among the multiple classes is selected as a class to be mixed with the low-frequency class (S33). The class with a short Mahalanobis distance may be a class with the shortest Mahalanobis distance or a class randomly selected from classes with Mahalanobis distances less than a specified value. Furthermore, the category with a long Mahalanobis distance may be a category with a relatively long Mahalanobis distance compared to the category selected when the determination result is “YES” in step S31 , or may be a category with the longest Mahalanobis distance.

[0140] In addition, regarding the case where the accuracy rate of low-frequency categories is high, for example, it can be imagined that the variance of the category probability is small (for example, below the threshold), and regarding the case where the accuracy rate of low-frequency categories is low, for example, it can be imagined that the variance of the category probability is large (for example, larger than the threshold).

[0141] For the selection of categories to be mixed with low-frequency categories, refer to 8A and Figure 8B Provide explanation. Fig. 8A as well as Figure 8B These are diagrams showing examples of a method of selecting a class (second class) mixed with a low-frequency class according to the present embodiment.

[0142] exist Fig. 8A as well as Figure 8B There are three categories p, q and k in the figure, and the respective category probabilities are schematically shown as triangles (△), quadrilaterals (□) and circles (○). The category probabilities of the multiple categories output by the recognition model are represented as points on the X-dimensional coordinate when the number of the multiple categories is set to X (X: an integer greater than 3). Fig. 8A as well as Figure 8B In the example of , since there are three categories, a triangle (△), a quadrilateral (□), and a circle (○) are schematically shown as points on three-dimensional coordinates. In addition, the inter-category distance described above is based on the straight-line distance between two points on such X-dimensional coordinates, for example, the Euclidean distance is the straight-line distance itself.

[0143] In addition, the low-frequency class is set as class p (first class). In addition, the first classification surface and the second classification surface are boundaries for distinguishing each class. The first classification surface and the second classification surface are boundaries set as a result of learning.

[0144] exist Fig. 8A In , the variance of the class probability of class p, in other words, the variance of the class probability corresponding to the triangle (△) is large, the class probability p1 is located on the class q side compared to the first classification surface, and the class probability p2 is located on the class k side compared to the second classification surface. In other words, the object corresponding to the class probability p1 is an object that should be identified as class p, but the recognition model mistakenly identifies it as class q, and the object corresponding to the class probability p2 is an object that should be identified as class p, but the recognition model mistakenly identifies it as class k. In addition, the class probabilities of class q, in other words, the class probabilities corresponding to the circle (○), are all located on the class q side compared to the first classification surface, and the recognition model recognizes all the objects corresponding to the class probabilities of class q as class q, and the class probabilities of class k, in other words, the class probabilities corresponding to the quadrilateral (□), are all located on the class k side compared to the second classification surface, and the recognition model recognizes all the objects corresponding to the class probability of class k as class k. In this way, when the variance of the category probability of category p is large, the recognition accuracy of the object that should be identified as category p (low-frequency category) is too low compared to other categories, and the recognition model is likely to mistakenly identify the object that should be identified as category p as other categories.

[0145] This is presumably because the learning data used in the previous learning had little image data between the low-frequency category and the category with a large Mahalanobis distance from the low-frequency category, so the first classification surface and the second classification surface (in Fig. 8A In this case, the mixed category selection unit 30 selects a category having a large Mahalanobis distance from the low-frequency category as a category (second category) to be mixed with the low-frequency category.

[0146] In addition, Figure 8BThe variance of the class probability of class p is small, the class probabilities q1 and q2 are located on the class p side compared to the first classification surface, and the class probabilities k1 and k2 are located on the class p side compared to the second classification surface. In other words, the objects corresponding to the class probabilities q1 and q2 are objects that should be identified as class q, but the recognition model mistakenly identifies them as class p, and the objects corresponding to the class probabilities k1 and k2 are objects that should be identified as class k, but the recognition model mistakenly identifies them as class p. In addition, all the class probabilities of class p are located between the first classification surface and the second classification surface, and all the objects corresponding to the class probabilities of class p are identified as class p. In this way, when the variance of the class probability of the object that should be identified as class p is small, the recognition accuracy of the object that should be identified as class p (low-frequency class) is too high compared to other classes, but there will be a situation where the recognition model easily mistakenly identifies objects that should be identified as other classes as low-frequency classes.

[0147] It is conceivable that this is because the first classification surface and the second classification surface are not correctly learned by the recognition model because the image data of the low-frequency class is similar to the image data in the learning data used in the previous learning. In this case, the mixed class selection unit 30 selects a class that is close to the Mahalanobis distance of the low-frequency class as a class (second class) to be mixed with the low-frequency class.

[0148] Refer again Figure 7 The mixed class selection unit 30 outputs the selected class to the data acquisition unit 40 ( S34 ). Specifically, the mixed class selection unit 30 outputs the low-frequency class and the second class selected by the mixed class selection unit 30 (the class mixed with the low-frequency class) to the data acquisition unit 40 .

[0149] Refer again Figure 3 The data acquisition unit 40 extracts data from the low-frequency category (first category) and one other category (second category) respectively (S40). The data acquisition unit 40 reads evaluation data of the low-frequency category and one other category from the storage unit 50, for example. The number of data of the low-frequency category and one other category is the same, but may be different.

[0150] Next, the mixing ratio calculation unit 60 determines the mixing ratio for mixing the data of the low-frequency category and one of the other categories (S50). The mixing ratio calculation unit 60 may, for example, determine a mixing ratio that is set in advance, or may determine the mixing ratio by randomly calculating the mixing ratio. Furthermore, when there are multiple evaluation data of one other category, the mixing ratio calculation unit 60 may determine a mixing ratio that is common to each of the multiple evaluation data of the one other category, or may determine different mixing ratios. In addition, the mixing ratio may be set in advance, and the mixing ratio calculation unit 60 may obtain the mixing ratio by reading the mixing ratio.

[0151] Next, the data mixing unit 70 and the label mixing unit 80 generate learning data by mixing data (image data) and mixed labels (S60). The data mixing unit 70 weights and adds the image data of the low-frequency category and one other category at the mixing ratio determined by the mixing ratio calculation unit 60 to generate the synthesized image data. And, the label mixing unit 80 weights and adds the two labels (correct answer labels) at the same mixing ratio as that used when synthesizing the two image data to generate the synthesized correct answer label.

[0152] The data mixing unit 70 mixes each of the image data of the other class with the image data of the low-frequency class, and the label mixing unit 80 mixes each of the labels of the other class with the label of the low-frequency class, thereby generating additional learning data.

[0153] The generated learning data is output by the learning data output unit 90 to an information processing device such as a learning device that learns the recognition model.

[0154] An information processing device such as a learning device uses the learning data generated as described above to relearn the recognition model, so that the parameters of the recognition model are updated to new parameters, thereby updating the recognition model. In this way, for example, when the variance of the low-frequency category is above the threshold, the data that was lacking in the previous learning can be supplemented, so that the classification surface of the low-frequency category and the category with a long Mahalanobis distance from the low-frequency category can be set again at a more correct position. Fig. 8A In the case of , since category q (second category) is selected as the category with a long Mahalanobis distance, the first classification surface can be set again at a more correct position by learning again using the synthetic image data obtained by mixing the image data of categories p and q.

[0155] In the above example, it is described that the generated learning data is output to an information processing device such as a learning device, but the present invention is not limited to this. For example, when the learning data generating device has a functional block for learning the recognition model, the functional block of the learning data generating device can use the generated learning data to learn the recognition model again.

[0156] Furthermore, for example, when the variance of the low-frequency class is smaller than the threshold, it is possible to re-set a classification surface with high separation performance by re-learning. Figure 8B In the case of , category k (second category) is selected as the category with a short Mahalanobis distance. Therefore, by re-learning the synthetic image data obtained by mixing the image data of categories p and k, the second classification surface can be set again at a position with higher separation performance.

[0157] (Other Embodiments)

[0158] The above is an explanation of the learning data generation method involved in one or more methods, etc., according to the implementation methods, but the present disclosure is not limited to these implementation methods. Within the scope of the subject matter of the present disclosure, the methods obtained by performing various modifications that can be thought of by those skilled in the art on each implementation method and the methods constructed by combining the constituent elements in different implementation methods can all be included in the present disclosure.

[0159] For example, in the above embodiment, the learning data generating device performs Figure 4 The processing of steps S11 to S15 is shown as an example, but is not limited to this. The processing of steps S11 to S15 can be performed by an external device, and the learning data generating device can obtain the inference result and the evaluation data used at that time from the external device.

[0160] In addition, in the above embodiment, an example is described in which the category of the object mixed with the low-frequency category is one, but it is not limited to this. For example, two or more categories can be selected as the category of the object mixed with the low-frequency category based on the distance between categories. In other words, the synthesized image data can be image data obtained by mixing two or more image data with respect to the image data of the low-frequency category. The same is true for synthesizing the correct answer label.

[0161] Furthermore, in the above-mentioned embodiment, Fig. 8A In the case of the distribution shown in FIG. 1 , an example is described in which the mixed category selection unit selects a category with a long Mahalanobis distance from a low-frequency category as a category to be mixed with the low-frequency category. However, the present invention is not limited to this, and a category with a short Mahalanobis distance from a low-frequency category may be selected as a category to be mixed with the low-frequency category. Furthermore, in the above-mentioned embodiment, Figure 8B In the case of the distribution shown, an example is described in which the mixed category selection unit selects a category that is close to the Mahalanobis distance of the low-frequency category as a category to be mixed with the low-frequency category, but this is not limited to this, and a category that is far from the Mahalanobis distance of the low-frequency category may also be selected as a category to be mixed with the low-frequency category.

[0162] Furthermore, in the above-described embodiment, an example in which both the candidate category sets C1 and C2 are generated is described, but the present invention is not limited thereto, and at least one of the candidate category sets C1 and C2 may be generated.

[0163] In addition, various threshold values ​​in the above-described embodiment are preset and stored in a storage unit (not shown) of the learning data generating device.

[0164] In addition, in the above-mentioned embodiments, each component can be formed by dedicated hardware, or can be implemented by executing a software program suitable for each component. Each component can be implemented by a program execution unit such as a CPU or a processor, reading and executing a software program recorded in a recording medium such as a hard disk or a semiconductor memory.

[0165] In addition, the order in which the steps in the flowchart are executed is an example shown for the purpose of specifically explaining the present disclosure, and may be an order other than the above. Furthermore, part of the above steps may be executed simultaneously (in parallel) with other steps, or part of the above steps may not be executed.

[0166] In addition, the division of the functional blocks in the block diagram is an example, and multiple functional blocks can be implemented as one functional block, and one functional block can also be divided into multiple blocks, and some of the functions can be transferred to other functional blocks. In addition, the functions of multiple functional blocks with similar functions can be processed in parallel or in a time-sharing manner by a single hardware or software.

[0167] In addition, the learning data generating device involved in the above-mentioned embodiment can be implemented as a single device or by multiple devices. In the case where the learning data generating device is implemented by multiple devices, the various components of the learning data generating device can be distributed to multiple devices in any manner. In the case where the learning data generating device is implemented by multiple devices, there is no special limitation on the communication method between the multiple devices, which can be wireless communication or wired communication. In addition, wireless communication and wired communication can also be combined between devices.

[0168] In addition, each component element described in the above embodiment can be implemented as software, typically as an integrated circuit, i.e., LSI. These can be made into a chip separately, or part or all of them can be included in one chip. Moreover, although it is called LSI here, it is sometimes also called IC, system LSI, super LSI, and extra-large LSI depending on the degree of integration. Moreover, the method of integrated circuitization is not limited to LSI, and can also be implemented by a dedicated circuit (a general circuit that executes a dedicated program) or a general-purpose processor. It is also possible to use a programmable FPGA (Field Programmable Gate Array) after LSI manufacturing, or a reconfigurable processor that can rebuild the connection or setting of the circuit unit inside the LSI. Furthermore, with the advancement of semiconductor technology or other derived technologies, when an integrated circuit technology that can replace LSI appears, of course, this technology can be used to integrate the components.

[0169] System LSI is a multifunctional LSI manufactured by integrating multiple processing units on a single chip. Specifically, it is a computer system composed of a microprocessor, ROM (Read Only Memory), RAM (Random Access Memory), etc. Computer programs are stored in ROM. The microprocessor works according to the computer program, so that the system LSI realizes its functions.

[0170] In addition, one embodiment of the present disclosure may also be to enable a computer to execute Figure 3 , Figure 4 , Figure 6 as well as Figure 7 A computer program including the characteristic steps of any one of the learning data generating methods shown in the claims.

[0171] In addition, for example, the program may be a program for causing a computer to execute. In addition, one embodiment of the present disclosure may also be a computer-readable non-transitory recording medium having such a program recorded thereon. For example, the recording medium having such a program recorded thereon may be distributed or circulated. For example, the distributed program may be installed in a device having another processor, and the processor may execute the program, thereby enabling the device to perform the above-mentioned processing.

[0172] Industrial Applicability

[0173] The present disclosure provides a device and the like for generating learning data used in learning a recognition model.

[0174] Description of Reference Numerals

[0175] 1 Learning data generation device

[0176] 10 Low frequency category selection part (first selection part)

[0177] 11 Learning parameter reading section

[0178] 12 Learning Model Parameter Database

[0179] 13 Evaluation data reading unit

[0180] 14 Evaluation Database

[0181] 15 Reasoning Department

[0182] 16 Category Accuracy Analysis Department

[0183] 17 Category Selection Section

[0184] 20. Inter-class distance calculation unit

[0185] 30 Mixed category selection section (second selection section)

[0186] 40 Data Acquisition Department

[0187] 50 Storage

[0188] 60 Mixing ratio calculation unit

[0189] 70 Data Mixing Department

[0190] 80 Label Mixing Unit

[0191] 90 Learning data output unit

Claims

1. A method for generating learning data, the method comprising generating learning data for learning a recognition model, the recognition model being a recognition model that outputs any one of a plurality of categories as the category of an object included in image data when image data is input, In the learning data generating method, Based on the recognition accuracy of the recognition model, a first category is selected from the plurality of categories, calculating an inter-class distance, the inter-class distance being a distance between the first class and each of two or more other classes among the plurality of classes, Based on the inter-class distance, a second class for generating the learning data is selected from the two or more other classes, The learning data is generated by mixing the image data of each of the selected first category and the second category and mixing the labels of each of the selected first category and the second category.

2. The learning data generation method according to claim 1, Among the plurality of categories, at least one of a category having the recognition accuracy below a first threshold and a category having the recognition accuracy above a second threshold is extracted as a candidate category, the second threshold being higher than the first threshold, The first category is selected from the candidate categories.

3. The learning data generation method according to claim 2, The first category is randomly selected from the candidate categories.

4. The learning data generation method according to any one of claims 1 to 3, The inter-class distance is calculated based on the likelihood of each of the plurality of classes output by the recognition model.

5. The learning data generation method according to claim 4, obtaining the likelihood of each of one or more first evaluation data corresponding to the first category among the evaluation data used when calculating the recognition accuracy, It is determined whether the variance of the likelihood of each of the more than one first evaluation data is greater than a third threshold value, The likelihood of the first class used when calculating the inter-class distance is determined based on the determination result of the variance.

6. The learning data generation method according to claim 5, When the variance is greater than the third threshold, the inter-class distance is calculated using the likelihood of the evaluation data whose recognition result is the correct answer among the one or more first evaluation data, When the variance is less than or equal to the third threshold, the inter-class distance is calculated using the likelihood of the evaluation data whose recognition result is an incorrect answer among the one or more first evaluation data.

7. The learning data generation method according to claim 4, The inter-class distance is Mahalanobis distance, Euclidean distance, Manhattan distance, or cosine similarity.

8. The learning data generating method according to any one of claims 1 to 3, Calculating the accuracy of the recognition result of the recognition model for the first category, Based on the calculated accuracy and the inter-class distance, the second class is selected from the two or more other classes.

9. The learning data generation method according to claim 8, When the accuracy of the first category is greater than a fourth threshold, a category with a short distance between the categories among the two or more other categories is selected as the second category, When the accuracy of the first category is lower than the fourth threshold, a category with a long inter-category distance among the two or more other categories is selected as the second category.

10. The learning data generating method according to any one of claims 1 to 3, In the learning data generation method, further, obtaining one or more first evaluation data corresponding to the first category and one or more second evaluation data corresponding to the second category from evaluation data including image data and labels used in calculating the recognition accuracy, obtaining a mixing ratio for mixing the obtained one or more first evaluation data and the obtained one or more second evaluation data, The one or more first evaluation data and the one or more second evaluation data are mixed according to the obtained mixing ratio, thereby generating the learning data.

11. A learning data generating device for generating learning data for learning a recognition model, the recognition model being a recognition model that outputs any one of a plurality of categories as the category of an object included in image data when image data is input, The learning data generating device comprises: A first selecting unit, which selects a first category from the plurality of categories based on the recognition accuracy of the recognition model; a calculation unit that calculates an inter-class distance, the inter-class distance being a distance between the first class and each of two or more other classes among the plurality of classes; a second selecting unit, selecting a second category for generating the learning data from the two or more other categories based on the inter-category distance; as well as The generation unit generates the learning data by mixing the image data of the first category and the second category selected respectively and mixing the labels of the first category and the second category selected respectively. 12 . A computer-readable recording medium having a program recorded thereon, the program being configured to cause a computer to execute the learning data generating method according to claim 1 .

Citation Information

Cited By

  • Neurogenetic disease recognition model construction method and system

    CN122117342A

  • A method and system for constructing a neural genetic disease recognition model

    CN122117342B