Learning device, learning method, and program

The learning device generates probabilistic inference results and formats them to learn a modified model, addressing diverse inference errors efficiently without detailed statistical analysis, enhancing image recognition accuracy.

JP7571800B2Active Publication Date: 2024-10-23NEC CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022572833
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-10-23
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing methods for improving inference accuracy in image recognition are limited by their reliance on identifying specific causes of accuracy deterioration and require statistical analysis to correct errors, making them inefficient for various error types.

Method used

A learning device and method that generates probabilistic inference results through parameter manipulation, formats these results, and learns a modified learning model to correct inference errors without requiring detailed error trend analysis, using techniques like dropout to introduce variations and data augmentation.

Benefits of technology

Enables high-precision learning of a modified learning model that enhances inference accuracy across diverse error scenarios without needing extensive statistical analysis, allowing for improved image recognition and handling of various data formats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571800000001
    Figure 0007571800000001
  • Figure 0007571800000002
    Figure 0007571800000002
  • Figure 0007571800000003
    Figure 0007571800000003
Patent Text Reader

Abstract

This training device 1X comprises a probabilistic inference result generation means 16X, a formatting means 17X, and a training means 18X. The probabilistic inference result generation means 16X generates a probabilistic inference result which is probabilistically generated for input data. The formatting means 17X generates a formatted inference result in which the probabilistic inference result has been formatted. The training means 18X trains a correction learning model which is a learning model for correcting the formatted inference result, on the basis of the input data, right-answer data for the input data, and the formatted inference result.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the technical fields of a learning device, a learning method, and a storage medium relating to model learning. [Background technology]

[0002] One example of a method for extracting feature points from an image is disclosed in Patent Document 1. Patent Document 1 discloses an object recognition device that creates degraded data in which feature points are intentionally missing from correct answer data, and trains an interpolator to interpolate the missing feature points from the original image and the degraded data. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-123105 A Summary of the Invention [Problem to be solved by the invention]

[0004] The method of Patent Document 1 is specialized in the problem that hidden feature points are likely to be omitted, and is applied only when the cause of the current deterioration in accuracy is clear. On the other hand, there are various causes of deterioration in accuracy, and it is desirable to be able to improve the accuracy of inference without depending on the cause of the deterioration in accuracy.

[0005] In view of the above-mentioned problems, an object of the present disclosure is to provide a learning device, a learning method, and a storage medium for learning a model that can suitably achieve high accuracy of inference. [Means for solving the problem]

[0006] One aspect of the learning device is A probabilistic inference result generating means for generating a probabilistic inference result generated probabilistically for input data; a formatting means for generating a formatted inference result by formatting the probabilistic inference result; a learning means for learning a corrected learning model which is a learning model that corrects the shaped inference result based on the input data, the corrective data for the input data, and the shaped inference result; Have death, The probabilistic inference result generating means generates the probabilistic inference result based on a probabilistic inference model in which parameters are probabilistically changed for a trained model whose inference result is to be corrected by the corrected learning model. It is a learning device.

[0007] One aspect of the learning method includes: The computer Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; A corrected learning model is trained based on the input data, the corrected answer data for the input data, and the shaped inference result, the corrected learning model being a learning model that corrects the shaped inference result. stomach , generating the probabilistic inference result based on a probabilistic inference model in which parameters are probabilistically changed for a trained model whose inference result is to be corrected by the corrected learning model; It is a way of learning.

[0008] One aspect of the program is Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; A corrected learning model is trained based on the input data, the corrected answer data for the input data, and the shaped inference result, the corrected learning model being a learning model that corrects the shaped inference result. stomach , The probabilistic inference result is generated based on a probabilistic inference model in which parameters are probabilistically changed for a trained model whose inference result is to be corrected by the corrected training model. It is a program that causes a computer to execute processing. Effect of the Invention

[0009] It is possible to preferably perform learning of a modified learning model that can achieve high accuracy of inference. [Brief description of the drawings]

[0010] [Figure 1] 1 shows a schematic configuration of a learning system in a first embodiment. [Diagram 2] 2 illustrates an example of a hardware configuration of a learning device. [Diagram 3] FIG. 1 is a schematic diagram showing an overview of a learning process. [Figure 4] (A) A first specific example of applying dropout to a trained model that is a neural network. (B) A second specific example of applying dropout to a trained model that is a neural network. [Diagram 5] FIG. 2 is an example of a functional block diagram relating to a learning process in the first embodiment. [Figure 6] (A) shows the structure of a modified learning model that indicates the layers to which the input image and the shaped inference result are input when they are input to the same layer. (B) shows the structure of a modified learning model that indicates the layers to which the input image and the shaped inference result are input when they are input to different layers. [Figure 7] 13 is a flowchart illustrating an example of a learning process. [Figure 8] (A) A diagram clearly showing the labels of 13 feature points of a tennis court when they are labeled based on one viewpoint using alias definitions. (B) A diagram clearly showing the labels of 13 feature points of a tennis court when they are labeled based on another viewpoint using alias definitions. [Figure 9] This figure clearly shows the labels of 13 feature points of a tennis court when they are labeled according to the same name definition. [Figure 10] FIG. 11 is a schematic diagram of a process according to a second embodiment. [Figure 11] FIG. 13 is a block diagram of a learning device according to a third embodiment. [Figure 12] 13 is an example of a flowchart according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, embodiments of a learning device, a learning method, and a storage medium will be described with reference to the drawings.

[0012] First Embodiment (1) Overall Configuration 1 shows a schematic configuration of a learning system 100 in the first embodiment. The learning system 100 performs learning for the purpose of strengthening (improving the precision) of an existing learning model. The learning system 100 includes a learning device 1 and a storage device 2.

[0013] The learning device 1 learns a model (also called a "corrected learning model") that corrects an inference result output by an inference model that has already been learned (also called a "trained model") based on information stored in the storage device 2. The trained model and the corrected learning model are, for example, models based on a deep neural network (DNN). The trained model may be a model that outputs an arbitrary inference result for an input image. For example, the trained model may be a model that outputs an inference result regarding a feature point for an input image, or a model that outputs an inference result regarding a segment of an object region for an input image. In yet another example, the trained model may be a model that outputs an inference result regarding classification of an input image or an object in an input image, or a model that outputs an inference result regarding object detection present in an input image. In this embodiment, as a representative example, learning of a corrected learning model regarding feature point extraction will be mainly described.

[0014] The storage device 2 is a memory that stores various information necessary for learning by the learning device 1. The storage device 2 may be an external storage device such as a hard disk connected to or built into the learning device 1, or may be a storage medium such as a flash memory. The storage device 2 may also be a server device that performs data communication with the learning device 1. The storage device 2 may also be composed of multiple devices. Functionally, the storage device 2 has a learning data storage unit 20, a first parameter storage unit 21, and a second parameter storage unit 22.

[0015] The learning data storage unit 20 stores learning data used for learning the corrected learning model executed by the learning device 1. The learning data includes a plurality of combinations of an image (also called an "input image") input to the corrected learning model in learning the corrected learning model, and correct answer data representing a correct answer to be inferred based on the image. For example, when the trained model and the corrected learning model are models related to feature point extraction, the correct answer data includes, for example, information on a coordinate value (correct answer coordinate value) in the image that is the correct answer, and identification information of the feature point. The "coordinate value" may be a value that specifies the position of a specific pixel in the image, or may be a value that specifies the position in the image in sub-pixel units. Note that the correct answer information may include information on a reliability map (heat map) for the feature point to be extracted, instead of the correct answer coordinate value.

[0016] The learning data stored in the learning data storage unit 20 may be data that has not been used in learning the learned model, or may be data that has been used in learning the learned model. In the latter case, the learning device 1 generates variants of the learning data by performing data augmentation that has not been performed when learning the learned model, as described below, and uses the generated variants of the learning data to learn the corrected learning model.

[0017] The first parameter storage unit 21 stores parameters necessary for configuring a trained model. The above parameters include, for example, the layer structure of a neural network adopted in the trained model, the neuron structure of each layer, the number of filters and the filter size in each layer, and the weight of each element of each filter.

[0018] The second parameter storage unit 22 stores parameters necessary for configuring the corrected learning model. The parameters stored in the second parameter storage unit 22 are updated by the learning device 1 through learning of the corrected learning model using the learning data stored in the learning data storage unit 20. The second parameter storage unit 22 stores, for example, initial values ​​of parameters to be applied to the corrected learning model, and the parameters are updated every time the learning device 1 performs learning.

[0019] (2) Hardware Configuration 2 shows an example of a hardware configuration of the learning device 1. The learning device 1 includes, as hardware, a processor 11, a memory 12, and an interface 13. The processor 11, the memory 12, and the interface 13 are connected via a data bus 10.

[0020] The processor 11 executes a predetermined process by executing a program or the like stored in the memory 12. The processor 11 is a processor such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or a TPU (Tensor Processing Unit). The processor 11 may be composed of multiple processors. The processor 11 is an example of a computer.

[0021] The memory 12 is composed of various volatile memories used as working memories, such as a RAM (Random Access Memory) and a ROM (Read Only Memory), and a non-volatile memory that stores information necessary for the processing of the learning device 1. The memory 12 may include an external storage device, such as a hard disk connected to or built into the learning device 1, or may include a removable storage medium, such as a flash memory. The memory 12 stores programs for the learning device 1 to execute each process in this embodiment. The memory 12 may function as the storage device 2 or a part of the storage device 2, and may store at least one of the learning data storage unit 20, the first parameter storage unit 21, and the second parameter storage unit 22.

[0022] The interface 13 is an interface for electrically connecting the learning device 1 to other devices. These interfaces may be wireless interfaces such as a network adapter for wirelessly transmitting and receiving data to and from other devices, or may be hardware interfaces for connecting to other devices via cables or the like.

[0023] The hardware configuration of the study device 1 is not limited to the configuration shown in Fig. 2. For example, the study device 1 may further include an input unit for accepting user input, an output unit such as a display or a speaker, and the like.

[0024] (3) Learning process Next, the learning process executed by the learning device 1 will be described in detail. (3-1) overview In general, the learning device 1 learns the modified learning model based on the inference result of the trained model that has been manipulated to generate a probabilistic inference result. As a result, the learning device 1 automatically generates data necessary for training the modified learning model, and appropriately executes training of the modified learning model.

[0025] Fig. 3 is a schematic diagram showing an overview of the learning process executed by the learning device 1. Fig. 3 shows, as a representative example, an overview of the learning process when extracting feature points (six points with identification numbers 0 to 5) of a recognition object.

[0026] First, the learning device 1 operates the trained model configured with reference to the first parameter storage unit 21 so as to output a probabilistic inference result. For example, the learning device 1 probabilistically changes the parameters of the trained model. As a method for changing such probabilistic parameters, for example, there is dropout, which is a process for probabilistically setting the weight parameters of a neural network to 0. In this way, it is possible to obtain variations in inference results even when the same input is made to the trained model. Hereinafter, the trained model operated to output a probabilistic inference result is also referred to as a "probabilistic inference model."

[0027] Then, the learning device 1 inputs the input image extracted from the learning data storage unit 20 to the probabilistic inference model, thereby acquiring an inference result (also referred to as a "probabilistic inference result") output by the probabilistic inference model. Note that the learning device 1 may input an image generated by performing data augmentation on the input image extracted from the learning data storage unit 20 to the probabilistic inference model.

[0028] The learning device 1 then inputs the probabilistic inference result to a formatter. In Fig. 3, the probabilistic inference result represents a heat map of each of the six feature points to be extracted. The formatter then formats the probabilistic inference result into a format suitable for input to the modified learning model, and inputs the formatted probabilistic inference result (also called the "formatted inference result") to the modified learning model.

[0029] Then, the learning device 1 learns the modified learning model based on the input image, the shaped inference result, and the supervised data. In this case, the learning device 1 learns the modified learning model based on the supervised data and an inference result (also called "modified inference result") output by the modified learning model when the input image and the shaped inference result are input to the modified learning model. In this case, the learning device 1 determines parameters of the modified learning model so that the error (loss) between the modified inference result and the supervised data is minimized. The algorithm for determining the above-mentioned parameters so as to minimize the loss may be any learning algorithm used in machine learning, such as gradient descent or backpropagation. Note that the output format of the probabilistic inference model (i.e., the trained model) and the modified learning model do not need to be the same.

[0030] Next, we will explain a specific example of applying dropout to a trained model.

[0031] FIG. 4(A) shows a first specific example in which dropout is applied to a trained model that is a neural network. FIG. 4(B) shows a second specific example in which dropout is applied to a trained model. Note that in FIG. 4(A) and FIG. 4(B), for ease of explanation, the trained model is represented by a simplified neural network. Also, nodes and edges excluded by dropout are shown by dashed lines.

[0032] In the example of FIG. 4(A), the learning device 1 probabilistically selects a node (randomly with a predetermined probability) from the nodes constituting the trained model, and removes the selected node (i.e., sets the weight parameter of the edge connecting to the node to 0). On the other hand, in the example of FIG. 4(B), an edge is probabilistically selected from the edges constituting the trained model, and removes the selected edge (i.e., sets the weight parameter of the edge to 0). In both the first and second specific examples, the learning device 1 suitably configures a probabilistic inference model in which the trained model is operated so as to output an inference result generated probabilistically.

[0033] In this way, the learning device 1 applies dropout, which is usually used in the learning stage to prevent overfitting, to the trained model at the time of inference. This makes it possible to obtain suitable inference results that include errors due to various variations in inputs that are prone to errors, without performing an analysis of error tendencies such as PoseFix, which is an inference method that uses a trained model to correct inference results. In addition, in this case, the correlation of high-order error-proneness is automatically reflected.

[0034] (3-2) Functional Blocks Fig. 5 is an example of a functional block diagram of the learning device 1 related to the learning process in the first embodiment. As shown in Fig. 5, the processor 11 of the learning device 1 functionally has an input unit 15, a probabilistic inference result generating unit 16, a shaping unit 17, and a learning unit 18. Note that in Fig. 5, blocks where data is exchanged are connected by solid lines, but the combination of blocks where data is exchanged is not limited to that shown in Fig. 5. The same applies to other functional block diagrams described later.

[0035] The input unit 15 acquires a pair of an input image and correct answer data from the learning data storage unit 20 via the interface 13. In addition, when the pair of an input image and correct answer data extracted from the learning data storage unit 20 is data used for learning a trained model, the input unit 15 performs data augmentation. In this case, the input unit 15 performs image conversion such as color adjustment, cropping, or inversion operation on the input image extracted from the learning data storage unit 20, and converts the correct answer data according to the conversion of the paired input image. In this way, the input unit 15 acquires a pair of an input image and correct answer data used for this learning. Note that the input unit 15 may also perform augmentation on a pair of an input image and correct answer data that is not used for learning a trained model, thereby increasing the amount of data of the learning data. Then, the input unit 15 supplies the input image used for learning to the probabilistic inference result generation unit 16 and the learning unit 18, and supplies the correct answer data corresponding to the input image to the learning unit 18.

[0036] The probabilistic inference result generating unit 16 generates a probabilistic inference result based on the input image supplied from the input unit 15. In this case, the probabilistic inference result generating unit 16 configures a trained model based on the parameters stored in the first parameter storage unit 21, and further configures a probabilistic inference model by performing probabilistic parameter manipulation on the trained model. Then, the probabilistic inference result generating unit 16 generates a probabilistic inference result by inputting the input image to the probabilistic inference model.

[0037] The shaping unit 17 performs a predetermined shaping process on the probabilistic inference result generated by the probabilistic inference result generating unit 16, thereby generating a shaped inference result that is compatible with the input format to the modified learning model. In this case, the probabilistic inference result may be a heat map, a segmentation result for the input image, a classification result for the input image, or a detection result of a predetermined object. For example, when the probabilistic inference result indicates a classification result for the input image, the shaping unit 17 generates a shaped inference result that represents only a top predetermined number (e.g., top three) of classification results with the highest likelihood. In addition, when the probabilistic inference result is an inference result of a feature point, the shaping unit 17 can change (aggregate) a feature point label that is unique to each feature point. A specific example of aggregation of feature point labels will be described in detail in the second embodiment.

[0038] The learning unit 18 learns a modified learning model based on the shaped inference result generated by the shaping unit 17 and the input image and correct answer data supplied from the input unit 15, and stores the parameters of the modified learning model obtained by learning in the second parameter memory unit 22.

[0039] Here, each of the components of the input unit 15, the probabilistic inference result generating unit 16, the shaping unit 17, and the learning unit 18 can be realized, for example, by the processor 11 executing a program. Also, each component may be realized by recording a necessary program in an arbitrary non-volatile storage medium and installing it as necessary. At least a part of these components may be realized by any combination of hardware, firmware, and software, without being limited to being realized by software by a program. Also, at least a part of these components may be realized by using an integrated circuit that is programmable by a user, such as an FPGA (Field-Programmable Gate Array) or a microcontroller. In this case, the integrated circuit may be used to realize a program composed of each of the above components. Also, at least a part of each component may be configured by an ASSP (Application Specific Standard Produce), an ASIC (Application Specific Integrated Circuit), or a quantum processor (quantum computer control chip). In this way, each component may be realized by various hardware. The above is the same in other embodiments described later. Furthermore, each of these components may be realized by cooperation of multiple computers, for example, using cloud computing technology.

[0040] (3-3) Input format for the modified learning model The shaped inference result provided by the shaping unit 17 may be input to the input layer of the modified learning model together with the input image provided by the input unit 15, or may be input to an intermediate layer of the modified learning model.

[0041] 6(A) and 6(B) show the structure of the modified learning model, clearly indicating the layers to which the input image provided by the input unit 15 and the shaped inference result provided by the shaping unit 17 are input. In Fig. 6(A) and 6(B), the modified learning model is a neural network with the number of layers being "n2" (n2 is an integer equal to or greater than 3), and includes one or more intermediate layers including the "n1" layer (n1 is an integer less than n2). Here, the input layer is the first layer, and the output layer is the n2 layer.

[0042] In FIG. 6(A), the input image and the shaped inference result are each input to the first layer, which is the input layer. On the other hand, in FIG. 6(B), the input image is input to the first layer, which is the input layer, and the shaped inference result is input to the n1th layer, which is the middle layer. In the example of FIG. 3, the shaped inference result is a heat map for each feature point to be extracted, and is input to the middle layer according to FIG. 6(B). In this way, the shaped inference result may be input to the input layer of the modified learning model together with the input image supplied by the input unit 15, as shown in FIG. 6(A), or may be input to the middle layer of the modified learning model, as shown in FIG. 6(B).

[0043] Next, the data format for inputting the input image and the shaped inference result will be described in more detail. In general, when two different pieces of information are input together, they need to be expressed in tensor format. Therefore, the following will specifically explain the tensor data format used as the input format for the modified learning model.

[0044] First, in the example of FIG. 6(A), consider the case where an input image, which is an RGB color image, and a shaped inference result, which is a confidence map (heat map) for each feature point, are input. If the vertical and horizontal sizes of the input image are "W" and "H", respectively, each pixel of the input image has RGB information, so the input image will be in a three-dimensional tensor data format with a size of (3, W, H). On the other hand, the shaped inference result will be a confidence map of the existence of each feature point, so if the number of feature points is "N", it will be in a tensor data format of (N, W, H). Therefore, in the case of FIG. 6(A), data in the tensor data format of (3+N, W, H), which is a combination of both the input image and the shaped inference result, is input to the input layer, which is the first layer.

[0045] Next, consider the example of FIG. 6(B). In this case, the input image input to the input layer is converted by the network up to the (n1-1)th layer into data whose vertical and horizontal sizes are "Wx" and "Hx", respectively, and whose channel size corresponding to the RGB direction is "C". In this case, the tensor data format input to the n1th layer, which is the intermediate layer, is (C, Wx, Hx). Strictly speaking, it is not necessary to convert it into a three-dimensional tensor, and any dimension is acceptable as long as it is a tensor. In addition, the shaped inference result is shaped by the shaping unit 17 so that it becomes a heat map whose vertical and horizontal sizes are "Wx" and "Hx", respectively. Therefore, the n1th layer, which is the intermediate layer, receives as input the three-dimensional tensor data (C+N, Wx, Hx) obtained by adding these two tensors.

[0046] In the example where the trained model is a network that outputs the above-mentioned heat map, since the format of the input image and the probabilistic inference result are similar, it is relatively easy to generate input data for the modified training model and train the modified training model. This tendency is similar when dealing with image segmentation or object detection problems, although it depends on the training method of the modified training model.

[0047] On the other hand, when dealing with an image classification problem, the input (input image) to the trained model and the output (likelihood of each classification class) have different formats. Therefore, in this case, the shaping unit 17 needs to generate a shaped inference result by converting the probabilistic inference result into the same format as the input image in the case of Fig. 6(A), and into the same format as the output of the (n1-1)th layer of the corrected trained model in the case of Fig. 6(B).

[0048] For example, in the classification problem of "dog, cat, bird," consider the case where the shaped inference result is input to the n1th layer, which is the hidden layer of the modified learning model, according to FIG. 6(B). Here, for example, when a probabilistic inference result is obtained in which the likelihood of each classification is "0.6" (dog), "0.3" (cat), and "0.1" (bird), the shaping unit 17 creates a tensor with the same value (Wx, Hx) for each classification (dog, cat, bird). Then, the shaping unit 17 inputs the data (C+3, Wx, Hx) that combines the data (3, Wx, Hx) with the channel direction values ​​of "0.6," "0.3," and "0.1," respectively, and the data (C, Wx, Hx) obtained by converting the input image, to the n1th layer, which is the hidden layer. In addition, since the dimensions of tensors can be changed by the network up to the (n1-1)th layer, the shaping unit 17 does not necessarily need to generate a shaped inference result of (C, Wx, Hx).

[0049] In this way, the shaping unit 17 can convert the probabilistic inference result into a required data format, thereby learning a modified learning model that can handle any inference problem, even if the probabilistic inference result has various data formats according to the inference content. Note that the process to be executed by the shaping unit 17 is determined in advance according to, for example, the data format of the probabilistic inference result, and information required to execute the process is stored in advance in the memory 12 or the storage device 2.

[0050] (4) Processing Flow FIG. 7 is an example of a flowchart showing the procedure of the learning process executed by the learning device 1.

[0051] First, the input unit 15 of the learning device 1 acquires an input image and correct answer data to be used for learning (step S11). Here, when the pair of the input image and correct answer data stored in the learning data storage unit 20 is data used for learning the learned model, the input unit 15 performs augmentation that has not been performed in the learning of the learned model. In this case, the input unit 15 performs a predetermined image conversion on the input image, and also converts the correct answer data according to the conversion of the input image. Note that the input unit 15 may also perform augmentation in the same manner to increase the amount of learning data when the acquired pair of the input image and correct answer data is data that has not been used for learning the learned model.

[0052] Next, the probabilistic inference result generating unit 16 of the learning device 1 generates a probabilistic inference result for the input image acquired in step S11 (step S12). In this case, the probabilistic inference result generating unit 16 configures a probabilistic inference model by applying dropout to the learned model configured with reference to the first parameter storage unit 21, and acquires a probabilistic inference result by inputting an input image to the probabilistic inference model. Then, the shaping unit 17 of the learning device 1 shapes the probabilistic inference result so that it has a format suitable for input to the corrected learning model (step S13). As a result, the shaping unit 17 generates a shaped inference result.

[0053] Then, the learning unit 18 of the learning device 1 learns the modified learning model based on the shaped inference result generated in step S13 and the input image and the supervised data acquired in step S11 (step S14). In this case, the learning unit 18 determines parameters of the modified learning model so as to minimize the loss between the modified inference result obtained by inputting the shaped inference result and the input image to the modified learning model and the supervised data, and stores the determined latest parameters of the modified learning model in the second parameter storage unit 22.

[0054] Next, the learning device 1 determines whether or not a learning end condition is satisfied (step S15). The learning device 1 may determine the end of learning in step S15, for example, by determining whether a predetermined number of loops has been reached, or by determining whether learning has been performed for a predetermined number of learning data. In another example, the learning device 1 may determine the end of learning in step S15 by determining whether or not a loss has fallen below a predetermined threshold, or by determining whether or not a change in loss has fallen below a predetermined threshold. Note that the determination of the end of learning in step S15 may be a combination of the above-mentioned examples, or may be any other determination method.

[0055] If the learning end condition is satisfied (step S15; Yes), the learning device 1 ends the processing of the flowchart. On the other hand, if the learning end condition is not satisfied (step S15; No), the learning device 1 returns the processing to step S11. In this case, the learning device 1 acquires unused input images and supervised data in step S11.

[0056] According to the processing of the flowchart in Figure 7, it is possible to preferably train a corrected learning model that corrects the inference results of a learned model with high accuracy.

[0057] Here, a supplementary explanation will be given on inference using the corrected learning model. In the inference stage, an image to be inferred is input to the learned model, and the inference result output by the learned model is shaped by the same process as the shaping unit 17 and converted into a shaped inference result. Then, the image to be inferred and the shaped inference result are input to the corrected learning model, whereby a corrected inference result in which the inference result of the learned model is suitably corrected is obtained. Note that the processing of the inference stage may be executed by any device other than the learning device 1. In this case, the device executes the above-mentioned processing by referring to the learned parameters of the learned model and the corrected learning model.

[0058] A supplementary explanation will be given of the difference from the above-mentioned PoseFix, which learns a model that corrects the inference result. PoseFix is ​​applied only when the reason for the current accuracy deterioration is clear, such as specializing in concealment problems, under the assumption that the error tendency is simple. In addition, PoseFix requires appropriate analysis to grasp the statistical error tendency. For example, when the blurring of feature points is not isotropic (up and down, left and right, etc.), or when a correlation of second order or higher (when there is no a, the accuracy of b is poor, etc.) is significantly manifested, advanced analysis is required to reflect them. In contrast, in this embodiment, data required for learning the corrected learning model can be suitably generated and the corrected learning model can be learned without the need for statistical analysis of the error tendency. In addition, in this embodiment, it is also possible to reinforce data by performing a certain augmentation during learning of the corrected learning model, rather than performing the augmentation during learning of the learned model.

[0059] (5) Variations Instead of an input image, data in a format other than an image, such as video or audio data, may be input to the trained model and the revised trained model.

[0060] In general, deep neural networks used in trained models and modified trained models are applied to image recognition, video recognition (scene classification and identification of important scenes), speech recognition, and natural language processing. The difference between the data handled in these cases and the processing when handling images (although there are cases where they are exactly the same) is the input tensor dimension. For example, in the case of images, RGB and a three-dimensional tensor of length and width ("(3-3) Input format for the modified learning model" section), and in the case of video, it becomes a four-dimensional tensor obtained by adding time to the above three-dimensional tensor. In the case of these data, as shown in Figures 6(A) and 6(B), the shaping unit 17 shapes the results of the probabilistic output extraction unit so that they can be effectively combined with the output format of the input layer or the intermediate layer, which is the (n1-1)th layer, of the corrected learning model. For example, in the case of video recognition, the shaping unit 17 shapes the probabilistic inference results regarding scene classification and important scenes into a form that can be input to the input layer or the intermediate layer, which is the n1th layer, of the corrected learning model. In this way, the learning device 1 can also suitably learn a corrected learning model that corrects the inference results of a trained model to which a data format other than an image is input.

[0061] <Second embodiment> The second embodiment is an application example of the first embodiment related to feature point extraction for an object (structure) having point symmetry such as a sports venue. Such objects (structures) include, for example, sports fields for tennis, swimming, soccer, table tennis, basketball, rugby, etc., fields for games such as shogi and go, theater stages, sports fields, etc. In the second embodiment, the definition of the labels of the feature points handled by the trained model is made different from the definition of the labels of the feature points handled by the corrected trained model, and an image obtained by inverting the input image is used, thereby suitably realizing the enhancement of training data.

[0062] Here, an alias definition in which the labels of symmetrically related feature points are defined by aliases, and a same name definition in which the labels of symmetrically related feature points are defined by the same name will be described. Fig. 8(A) and Fig. 8(B) are diagrams clearly showing the labels (0 to 13) of 13 feature points of a tennis court when they are labeled by the alias definition. Fig. 9 is a diagram clearly showing the labels (0 to 6) of 13 feature points of a tennis court when they are labeled by the same name definition. Here, Fig. 8(A) shows the labels of each feature point when observed from viewpoint position "P1" and viewpoint position "P2", and Fig. 8(B) shows the labels of each feature point when observed from viewpoint position "P3" and viewpoint position "P4".

[0063] As shown in Figures 8(A) and 8(B), in the case of alias definition, the label definition depends on the viewing direction. Therefore, the definition is ambiguous at the boundary viewpoint positions "P5" and "P6". In this way, in the extraction of feature points whose labels are defined by alias definition, there are some angles of view that are difficult to obtain feature points, but at other angles of view, feature points can be extracted with high accuracy. In addition, when the image is inverted, it is difficult to redefine the label due to the ambiguity of the boundary, and it is also difficult to grasp the tendency of errors. Therefore, in the case of alias definition, in order to use an inverted image as input, a separate rule is required to generate the corresponding correct answer data.

[0064] On the other hand, as shown in Fig. 9, in the case of the same name definition, the label of each feature point is determined at all viewpoint positions P1 to P6 regardless of the viewing position, but two feature points that look different must be inferred as being the same. Therefore, in general, there is a tendency for the overall accuracy to decrease compared to the extraction of feature points whose labels are determined by the alias definition. Note that in the case of the same name definition, the label definition is determined regardless of the angle of view even if the image is inverted.

[0065] In consideration of the above, in the second embodiment, the learning device 1 uses the alias definition in the trained model and the same name definition in the corrected trained model. As a result, in this embodiment, it is possible to eliminate the disadvantages of the alias definition while enjoying the advantages of the alias definition.

[0066] Specifically, as a first advantage, the learning device 1 determines the labels of feature points in the case of the same name definition even if the image is inverted (i.e., correct answer data can be automatically generated), so it is possible to train the corrected learning model by preferably using the inverted image of the input image used in training the trained model. In other words, augmentation that is difficult to apply when training the trained model can be applied when training the corrected learning model to preferably increase the training data.

[0067] A second advantage is that the learning device 1 can learn a corrected learning model that appropriately corrects errors in inference results at difficult angles of view that occur when alias definitions are used. A third advantage is that the learning device 1 can learn a corrected learning model specialized for difficult angles of view because it also uses as input the results of angles of view at which high accuracy can be obtained with alias definitions. Note that the statistical analysis used in PoseFix also makes it difficult to perform trend analysis on the same name definition when an inversion operation is performed (i.e., information other than feature point position information is also required), but when dropout is used as in this embodiment, the trend is automatically reflected.

[0068] Fig. 10 is a schematic diagram of the process of the second embodiment. Fig. 10 shows an overview of a process in which a learned model is learned based on an input image stored in the learning data storage unit 20, and then a corrected learned model is learned based on an image obtained by inverting the input image stored in the learning data storage unit 20. Hereinafter, the input image stored in the learning data storage unit 20 is simply called the "original image", and the image obtained by inverting the original image is simply called the "inverted image".

[0069] In this case, the input unit 15 first generates an inverted image by inverting the original image, and also inverts the ground truth data of the original image and converts (renaming) the labels based on a predetermined rule. The renaming rule is determined in advance according to the arrangement of feature points and the definition of the labels of the feature points, and is as follows in the example of FIG. 10. Swap label 0 and label 2 Change label 3 to label 0 Change label 4 to label 1 Change label 5 to label 2

[0070] Thereafter, the probabilistic inference result generating unit 16 generates a probabilistic inference result by inputting the inverted image to a probabilistic inference model generated by applying dropout to the learned model, and the shaping unit 17 shapes the probabilistic inference result using a shaper. Furthermore, the shaping unit 17 renames the labels of each feature point included in the probabilistic inference result to the same name definition. Specifically, the shaping unit 17 generates a shaped inference result by performing the following label conversion so that feature points at symmetrical positions have the same label based on the correspondence relationship between the same name definition and the alias definition. Change label 3 to label 2 Change label 4 to label 1 Change label 5 to label 0

[0071] Next, the learning unit 18 learns the modified learning model based on the inverted image, the correct data of the inverted image, and the shaped inference result. In this case, the learning unit 18 updates the parameters of the modified learning model so as to minimize the loss between the correct data of the inverted image and the modified inference result obtained by inputting the inverted image and the shaped inference result to the modified learning model.

[0072] 10, the process of the input unit 15 corresponds to the process of step S11 in Fig. 7, the process of the probabilistic inference result generation unit 16 corresponds to the process of step S12, the process of the shaping unit 17 corresponds to the process of step S13, and the process of the learning unit 18 corresponds to the process of step S14. Thus, in the second embodiment as well, within the scope of the process framework represented by the flowchart in Fig. 7, the learning device 1 can suitably execute learning of a modified learning model based on an inverted image.

[0073] <Third embodiment> Fig. 11 is a block diagram of a learning device 1X in the third embodiment. As shown in Fig. 11, the learning device 1X has a probabilistic inference result generating means 16X, a shaping means 17X, and a learning means 18X.

[0074] The probabilistic inference result generating means 16X generates a probabilistic inference result generated probabilistically for the input data. Examples of the input data are images, moving images, audio data, or text data, and the inference result represents any inference result related to these data. Furthermore, the input data is not limited to data prepared as learning data, and may be data generated by applying augmentation to the input data. The probabilistic inference result generating means 16X may be, for example, the probabilistic inference result generating unit 16 in the first embodiment (including modified examples, the same applies below) or the second embodiment.

[0075] The shaping means 17X generates a shaped inference result by shaping the probabilistic inference result. The shaping means 17X can be, for example, the shaping unit 17 in the first or second embodiment.

[0076] The learning means 18X learns a corrected learning model, which is a learning model that corrects the shaped inference result, based on the input data, the corrective data for the input data, and the shaped inference result. The learning means 18X can be, for example, the learning unit 18 in the first or second embodiment.

[0077] 12 is an example of a flowchart executed by the learning device 1X in the third embodiment. First, the probabilistic inference result generating means 16X generates a probabilistic inference result that is generated probabilistically for the input data (step S21). Next, the shaping means 17X generates a shaped inference result by shaping the probabilistic inference result (step S22). The learning means 18X learns a corrected learning model, which is a learning model that corrects the shaped inference result, based on the input data, the corrective data for the input data, and the shaped inference result (step S23).

[0078] According to the third embodiment, the learning device 1X can suitably execute learning of a modified learning model that modifies an inference result for input data.

[0079] In addition, some or all of the above embodiments may be described as, but are not limited to, the following supplementary notes.

[0080] [Appendix 1] A probabilistic inference result generating means for generating a probabilistic inference result generated probabilistically for input data; a formatting means for generating a formatted inference result by formatting the probabilistic inference result; a learning means for learning a corrected learning model which is a learning model that corrects the shaped inference result based on the input data, the corrective data for the input data, and the shaped inference result; A learning device having the above configuration. [Appendix 2] The learning device described in Appendix 1, wherein the probabilistic inference result generation means generates the probabilistic inference result based on a probabilistic inference model in which parameters have been probabilistically changed for a trained model whose inference result is to be corrected by the modified learning model. [Appendix 3] The trained model is a model based on a neural network, The learning device described in Appendix 2, wherein the probabilistic inference result generation means generates the probabilistic inference result based on the probabilistic inference model in which a weight parameter for the trained model is probabilistically set to 0. [Appendix 4] the modified learning model is a neural network-based model; A learning device described in any one of Appendix 1 to 3, wherein the shaped inference result is input together with the input data to an input layer to which the input data is input, or is input to an intermediate layer different from the input layer. [Appendix 5] The learning device according to claim 4, wherein the formatting means formats the probabilistic inference results into a data format required for input to the input layer or the intermediate layer. [Appendix 6] The learning device according to any one of appendices 1 to 5, further comprising an input means for generating the input data and correct answer data for the input data by applying augmentation not performed in the learning to data used in learning of a trained model whose inference result is to be corrected by the corrected learning model. [Appendix 7] The trained model, the inference result of which is to be corrected by the corrected training model, is trained using labels based on an alias definition in which feature points in a symmetrical relationship are alias labels, The modified learning model is learned using labels based on a homonymic definition in which feature points in a symmetrical relationship are labeled with the same name, The learning device according to any one of appendices 1 to 6, wherein the formatting means generates the formatted inference result by converting a label based on the alias definition represented by the probabilistic inference result into a label based on the homonym definition. [Appendix 8] The input means includes an input unit that generates an inverted image as the input data by inverting an image used in training of the trained model that is trained to extract feature points of an object having symmetry included in an image, and generates correct answer data for the inverted image from the correct answer data for the input data, The learning device described in Appendix 7, wherein the learning means learns the modified learning model based on the shaped inference result, the inverted image, and correct answer data for the inverted image. [Appendix 9] The computer Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; learning a corrected learning model, which is a learning model that corrects the shaped inference result, based on the input data, corrective data for the input data, and the shaped inference result; How to learn. [Appendix 10] Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; A storage medium that stores a program that causes a computer to execute a process of learning a modified learning model, which is a learning model that corrects the shaped inference result based on the input data, correct answer data for the input data, and the shaped inference result.

[0081] Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. In other words, the present invention naturally includes various modifications and corrections that a person skilled in the art could make in accordance with the entire disclosure, including the claims, and the technical ideas. In addition, the disclosures of the above cited patent documents and the like are incorporated herein by reference. [Explanation of symbols]

[0082] 1. 1X learning device 2 Storage device 11 Processors 12. Memory 13. Interface 20 Learning data storage unit 21 First parameter storage unit 22 Second parameter storage unit 100 Learning System

Claims

1. A probabilistic inference result generating means for generating a probabilistic inference result generated probabilistically for input data; a formatting means for generating a formatted inference result by formatting the probabilistic inference result; a learning means for learning a corrected learning model which is a learning model that corrects the shaped inference result based on the input data, the corrective data for the input data, and the shaped inference result; having The probabilistic inference result generation means of the learning device generates the probabilistic inference result based on a probabilistic inference model in which parameters have been probabilistically changed for a learned model whose inference result is to be corrected by the modified learning model.

2. The trained model is a model based on a neural network, The learning device according to claim 1 , wherein the probabilistic inference result generating means generates the probabilistic inference result based on the probabilistic inference model in which a weight parameter for the trained model is probabilistically set to 0.

3. A probabilistic inference result generating means for generating a probabilistic inference result generated probabilistically for input data; a formatting means for generating a formatted inference result by formatting the probabilistic inference result; a learning means for learning a corrected learning model which is a learning model for correcting the shaped inference result based on the input data, answer data for the input data, and the shaped inference result; the modified learning model is a neural network-based model; A learning device in which the shaped inference result is input together with the input data to an input layer to which the input data is input, or is input to an intermediate layer different from the input layer.

4. The learning device according to claim 3 , wherein the shaping means shapes the probabilistic inference result into a data format required for input to the input layer or the intermediate layer.

5. The learning device according to any one of claims 1 to 4, further comprising an input means for generating the input data and corrective data for the input data by applying augmentation not performed in the learning to data used in learning of a trained model whose inference result is to be corrected by the corrected learning model.

6. A probabilistic inference result generating means for generating a probabilistic inference result generated probabilistically for input data; a formatting means for generating a formatted inference result by formatting the probabilistic inference result; a learning means for learning a corrected learning model which is a learning model for correcting the shaped inference result based on the input data, answer data for the input data, and the shaped inference result; The trained model, the inference result of which is to be corrected by the corrected training model, is trained using labels based on an alias definition in which feature points in a symmetrical relationship are alias labels, The modified learning model is learned using labels based on a homonymic definition in which feature points in a symmetrical relationship are labeled with the same name, The shaping means generates the shaped inference result by converting a label based on the alias definition represented by the probabilistic inference result into a label based on the homonym definition.

7. The input means includes an input unit that generates an inverted image as the input data by inverting an image used in training of the trained model that is trained to extract feature points of an object having symmetry included in an image, and generates correct answer data for the inverted image from the correct answer data for the input data, The learning device according to claim 6 , wherein the learning means learns the corrected learning model based on the shaped inference result, the inverted image, and answer data for the inverted image.

8. The computer Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; learning a corrected learning model, which is a learning model that corrects the shaped inference result, based on the input data, the corrective data for the input data, and the shaped inference result; A learning method that generates the probabilistic inference result based on a probabilistic inference model in which parameters are probabilistically changed for a trained model whose inference result is to be corrected by the modified learning model.

9. Probabilistically generated probabilistic inference results are generated for the input data; generating a formatted inference result by formatting the probabilistic inference result; learning a corrected learning model, which is a learning model that corrects the shaped inference result, based on the input data, the corrective data for the input data, and the shaped inference result; A program that causes a computer to execute a process of generating the probabilistic inference result based on a probabilistic inference model in which parameters have been probabilistically changed for a learned model whose inference result is to be corrected by the modified learning model.

Citation Information

Patent Citations

  • Training method and device of anti-money laundering model

    CN111145026A

  • Neural network arithmetic unit

    JP1993290013A

  • Neural network type additional learning device

    JP1994187315A

  • Data augmentation techniques using style transformation with neural network

    JP2019032821A

  • Information estimation apparatus and information estimation method

    JP2019070950A