Neural network update device, neural network update program, and neural network update method

The neural network updating method improves inference accuracy by processing training data with inappropriate images, addressing inefficiencies in existing cleansing methods and enhancing annotation efficiency.

JP7559284B2Active Publication Date: 2024-10-01OLYMPUS MEDICAL SYST CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024500822
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-02-17
Publication Date
2024-10-01
Estimated Expiration
2042-02-17

AI Technical Summary

Technical Problem

Existing neural network training methods face inefficiencies in cleansing training data to remove inappropriate images, such as blurred or dark images, which degrade inference performance.

Method used

A neural network updating method that selects and processes training data based on loss values, either by changing correct answer information to 'unknown' for high loss values or by image processing inappropriate images, to improve inference accuracy without prior cleansing.

Benefits of technology

Enhances inference accuracy by utilizing training data with inappropriate images, reducing the need for manual cleansing and improving annotation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559284000001
    Figure 0007559284000001
  • Figure 0007559284000002
    Figure 0007559284000002
  • Figure 0007559284000003
    Figure 0007559284000003
Patent Text Reader

Abstract

This neural network update device includes a processor equipped with hardware, wherein the processor: calculates a loss value by comparing output data obtained by entering a plurality of sets of training data into a neural network with correct answer information assigned to the training data; processes the correct answer information or training data corresponding to output data for which the loss value meets prescribed criteria; and updates the neural network using the loss value for the output data of the neural network after the processing.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a neural network updating device, a neural network updating program, and a neural network updating method that perform learning using training data that includes images that are inappropriate for AI judgment. [Background technology]

[0002] In recent years, technology has been developed in various fields that uses AI (artificial intelligence) based on image data to assist in judgments that were previously made visually by humans.

[0003] The above AI is realized by constructing a function that, when training data is input, outputs a judgment result corresponding to the training data. A neural network is often used as the function. AI learning technology that uses a multi-layered neural network is called deep learning. In deep learning, first, a large amount of teacher data, which is a set of training data and corresponding correct answer information, is prepared. The correct answer information is created manually through annotation. A neural network is composed of many product-sum operations, and the multipliers are called weights. "Learning" is achieved by adjusting the weights so that the output when training data contained in the teacher data is input into the neural network approaches the corresponding correct answer information. An inference model, which is a trained neural network, becomes able to perform "inference" to appropriately derive a solution for unknown inputs.

[0004] Incidentally, when creating an inference model for determining lesions inside the body, endoscopic examination images can be used as images that serve as the source of training data.

[0005] However, since observations are made while operating an endoscope during an endoscopic examination, videos recording the diagnostic process contain images that are inappropriate for diagnosis, such as blurred or dark images with insufficient light. If training data containing such inappropriate images is used for training, the inference performance of the created inference model will decrease. Therefore, Patent Document 1 discloses a method for cleansing training data before training. [Prior art documents] [Patent documents]

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

[0007] However, since training data is usually prepared in large quantities, it is time-consuming to cleanse it in advance and extract inappropriate images.

[0008] An object of the present invention is to provide a neural network updating device, a neural network updating program, and a neural network updating method that can reduce the effort required for cleansing. DISCLOSURE OF THEINVENTION [Means for solving the problem]

[0009] According to one aspect of the present invention, an apparatus for updating a neural network includes a processor having hardware, the processor inputting a plurality of training data to a neural network. The result is multiple Output Data Against , a plurality of correct answer information linked to the training data andBy comparing, a loss value for each output data is calculated, relevant output data whose loss value meets a predetermined criterion and non-relevant output data whose loss value does not meet the predetermined criterion are selected from the output data, processed correct answer information is created by processing the correct answer information compared with the relevant output data, the relevant output data is compared with the processed correct answer information to output a processed loss value, and the neural network is updated using the processed loss value, or processed training data is created by processing the training data linked to the relevant output data, and the processed training data is input to the neural network to output processed output data that is the result of classifying the processed training data, a post-processed loss value is output by comparing with the correct answer information linked to the relevant output data, and the neural network is updated using the processed loss value.

[0010] According to one aspect of the present invention, a neural network updating device inputs a plurality of training data to a neural network. The result is multiple Output Data Against , a plurality of correct answer information linked to the training data and By comparing the output data, a loss value is calculated for each output data, relevant output data whose loss value meets a predetermined criterion and non-relevant output data whose loss value does not meet the predetermined criterion are selected from the output data, processed correct answer information is created by processing the correct answer information compared with the relevant output data, a processed loss value is output by comparing the relevant output data with the processed correct answer information, and the neural network is updated using the processed loss value, or processed training data is created by processing the training data linked to the relevant output data, and the processed training data is input to the neural network to output processed output data that is a result of classifying the processed training data, a post-processed loss value is output by comparing with the correct answer information linked to the relevant output data, and the neural network is updated using the processed loss value.

[0011] A neural network updating method according to one aspect of the present invention is a neural network updating method by a neural network updating device including a teacher data acquiring unit, a neural network application unit, and a teacher data correcting unit, wherein the teacher data acquiring unit acquires teacher data consisting of a plurality of training data and a plurality of pieces of correct answer information linked to the training data, the neural network application unit inputs the plurality of training data into a neural network to classify the training data, and outputs output data linked to each of the training data, the neural network application unit calculates a loss value for each of the output data by comparing the plurality of pieces of correct answer information linked to the training data and the output data, and the neural network application unit classifies the loss value of the output data by classifying ... The output data is selected, and the teacher data correction unit creates processed correct answer information by processing the correct answer information compared with the corresponding output data, the neural network application unit outputs a processed loss value by comparing the corresponding output data with the processed correct answer information, and the neural network application unit updates the neural network using the processed loss value, or the teacher data correction unit creates processed training data by processing the training data linked to the corresponding output data, and the neural network application unit inputs the processed training data to the neural network to output processed output data that is the result of classifying the processed training data, and outputs a processed loss value by comparing it with the correct answer information linked to the corresponding output data, and the neural network application unit updates the neural network using the processed loss value. Effect of the Invention

[0012] According to the present invention, there is an effect that inference accuracy can be improved even if training data that includes inappropriate images is used for learning without prior cleansing. [Brief description of the drawings]

[0013] [Figure 1] 1 is a block diagram showing a neural network updating device according to a first embodiment of the present invention. [Diagram 2] 11 is an explanatory diagram for explaining that inference accuracy of an inference model obtained by learning decreases when training data including inappropriate images is used in a comparative example of a neural network updating device. FIG. [Diagram 3] 4 is a flowchart for explaining the operation of the first embodiment. [Figure 4] 4 is a flowchart for explaining the operation of the first embodiment. [Diagram 5] FIG. 2 is an explanatory diagram for explaining the operation of the first embodiment. [Figure 6] FIG. 2 is an explanatory diagram for explaining the operation of the first embodiment. [Figure 7] FIG. 2 is an explanatory diagram for explaining the operation of the first embodiment. [Figure 8] FIG. 2 is an explanatory diagram for explaining the operation of the first embodiment. [Figure 9] FIG. 3 is an explanatory diagram for explaining the effect of the first embodiment for an example similar to that of FIG. 2. [Figure 10] FIG. 4 is a block diagram showing a second embodiment of the present invention. [Figure 11] 10 is a flowchart for explaining the operation of the second embodiment. [Figure 12] FIG. 11 is an explanatory diagram for explaining the operation of the second embodiment. [Figure 13] FIG. 11 is an explanatory diagram for explaining the operation of the second embodiment. [Figure 14] FIG. 11 is an explanatory diagram for explaining the operation of the second embodiment. [Figure 15] FIG. 11 is an explanatory diagram for explaining the operation of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

[0015] (First embodiment) Fig. 1 is a block diagram showing a neural network update device according to a first embodiment of the present invention. In this embodiment, when learning a neural network, a learning loss is calculated, and for training data in which the learning loss is higher than a predetermined threshold, the correct answer information is changed to inappropriate for recognition (hereinafter, referred to as "unknown"), thereby improving the inference accuracy of an inference model obtained by learning even when training data includes inappropriate images. Note that this embodiment will be described by using an endoscopic examination image as training data as an example to create an inference model for performing lesion recognition processing, but it can also be applied to creating inference models for performing various other classifications.

[0016] Fig. 2 is an explanatory diagram for explaining a comparative example of a neural network update device. First, with reference to Fig. 2, it will be described that in the comparative example, when training data including inappropriate images is used, the inference accuracy of the inference model obtained by learning decreases.

[0017] The teacher data includes training data for learning and correct answer information annotated for each training data. For example, a large number of images obtained by imaging lesions in an endoscopic examination are used as the training data. In the example of FIG. 2, each training data (images P21 to P23) is added with "pancreatic cancer" or "pancreatitis" as correct answer information according to the type of lesion in the image. Note that image portions P21a and P23a in images P21 and P23 are pancreatic cancer. Also, image portion P22c in image P22 is pancreatitis, but blurring occurs in image portion P22c. Conventionally, image P22 is an image that is removed by cleansing before learning so that it cannot be used for learning. Note that examples of inappropriate images include blurring images caused by defocus or camera shake, dark images with insufficient light, and images in which the size of the lesion in the image is relatively small.

[0018] These images P21 to P23 are input to the neural network 2 and trained. During the training process, the neural network 2 outputs a classification output in which the probability value for each classification (hereinafter referred to as the score) is output as output data. The error between this classification output and correct answer information is found as a training loss, and the parameters of the neural network 2 are updated to reduce the training loss. By inputting an unknown image into the neural network 2 (inference model) obtained by such training, a classification output is obtained as to whether the input image is "pancreatic cancer" or "pancreatitis."

[0019] Furthermore, by increasing the number of classification outputs, it is possible to make the neural network 2 output a classification output indicating "unknown," which indicates that an unknown input image does not belong to any of the classifications based on annotations made when the training data was created.

[0020] Incidentally, the training data may contain inappropriate images such as blurred images, such as image P22. Even for such inappropriate images, as described above, some correct answer information such as "pancreatic cancer" or "pancreatitis" may be added during annotation. In other words, even if an image in the training data is an inappropriate image, "unknown" may not be set as the correct answer information.

[0021] When an inappropriate image, such as a blurred or blurred image, to which "pancreatic cancer" has been assigned as the correct answer information is input, the classification output of "pancreatic cancer" tends to have a low probability value, resulting in a large learning loss. In such a case, however, the neural network is updated to forcibly reduce the learning loss, i.e., to determine that the image is "pancreatic cancer" even though it is an inappropriate image. As a result of repeating such learning, the inference accuracy of inference using neural network 2 decreases.

[0022] Therefore, in this embodiment, during the learning process, the correct answer information of training data such as blurred images is processed to unknown, thereby achieving an effect equivalent to excluding training data such as blurred images from the teacher data.

[0023] In FIG. 1, the neural network update device is composed of a data memory 1, a neural network 2, a learning loss calculation unit 3, a correct answer information processing unit 4, a learning loss recalculation unit 5, and a neural network control circuit (hereinafter referred to as an NN control circuit) 10. All or each of the learning loss calculation unit 3, the correct answer information processing unit 4, the learning loss recalculation unit 5, and the NN control circuit 10 may be composed of one or more processors using a CPU (Central Processing Unit) or an FPGA (Field Programmable Gate Array). The one or more processors may operate according to a program stored in a memory (not shown) to control each unit, or may realize part or all of the functions with a hardware electronic circuit. The neural network 2 may be composed of hardware, and the functions of the neural network 2 may be realized by a program.

[0024] The data memory 1 is composed of a predetermined storage medium and stores a plurality of training data and teacher data including correct answer information. As described above, correct answer information indicating a classification other than unknown is assigned to all training data. The data memory 1 is controlled by the NN control circuit 10 to output the training data to the neural network 2 and output the correct answer information to the learning loss calculation unit 3 and the correct answer information processing unit 4.

[0025] The neural network 2 is composed of an input layer, an intermediate layer (hidden layer), and an output layer, each of which is made up of multiple nodes indicated by circles. Each node is connected to nodes in the previous and next layers, and each connection is given a parameter called a weighting coefficient. Learning is a process of updating parameters so as to minimize the learning loss, which will be described later. For example, a convolutional neural network (CNN) may be adopted as the neural network 2.

[0026] The NN control circuit 10 is composed of an input control unit 11, an initialization unit 12, an NN application unit 13, and an update unit 14. The input control unit 11, which serves as a teacher data acquisition unit, acquires teacher data including training data and correct answer information and stores it in the data memory 1, and also controls the output of the training data and correct answer information from the data memory 1. The initialization unit 12 initializes the parameters of the neural network 2. The NN application unit 13 applies the training data read from the data memory 1 to the neural network 2, causing the neural network 2 to output a classification output. The update unit 14 updates the parameters of the neural network 2 based on the learning loss.

[0027] The neural network 2 is controlled by the NN control circuit 10, and outputs, for each input image, a probability value (score) indicating which classification each image has a high probability of belonging to as a classification output. This classification output is provided to the learning loss calculation unit 3 and the learning loss recalculation unit 5. The learning loss calculation unit 3 is provided with correct answer information respectively assigned to each image corresponding to each classification output from the data memory 1, and calculates the error between each classification output and each correct answer information as the learning loss. In the comparative example of FIG. 2 described above, the parameters of the neural network 2 are updated based on this learning loss.

[0028] In contrast, in this embodiment, the learning loss from the learning loss calculation unit 3 is supplied to a supervised information processing unit 4 (also described as a teacher data correction unit). The supervised information processing unit 4 calculates a loss value (learning loss) for each output data by comparing the output data with a plurality of pieces of supervised information linked to the training data. Then, the supervised information processing unit 4 selects, from the output data, relevant output data whose loss value meets a predetermined criterion and non-relevant output data whose loss value does not meet the predetermined criterion. As a method of determining whether the loss value meets a predetermined standard, for example, there is a method of comparing the learning loss with a predetermined threshold. In this case, if the learning loss exceeds the predetermined threshold, the output data is considered to be relevant, and if it is equal to or less than the threshold, the output data is considered to be non-relevant. As a method of determining whether the loss value meets a predetermined standard, for example, there is a method of selecting, as the corresponding output data, a predetermined number of output data items in descending order of loss value. As a method of determining whether the loss value meets a predetermined standard, for example, there is a method of selecting, from among the output data, those within a predetermined number of data having smallest loss values ​​as non-applicable output data.

[0029] The correct answer information processing unit 4 processes the correct answer information compared with the corresponding output data whose loss value meets a predetermined standard. In the case of this embodiment, the correct answer information processing unit 4 is provided with correct answer information corresponding to each learning loss from the data memory 1, and processes the correct answer information into unknown for a learning loss that exceeds a predetermined threshold, that is, a learning loss in which the error between the classification output and the correct answer information is relatively large. The correct answer information processing unit 4 outputs the processed correct answer information (processed correct answer information) to the learning loss recalculation unit 5.

[0030] The learning loss recalculator 5 calculates the error between the classification output and the processed super-answer information for each classification output output from the neural network 2 as a learning loss (hereinafter also referred to as a post-processing loss value), and supplies the calculated learning loss for each classification output to the NN control circuit 10. Note that after creating the processed super-answer information, training data associated with the corresponding output data may be input to the neural network, whereby output data resulting from classifying the training data may be output, and the post-processing loss value may be obtained by comparing with the processed super-answer information.

[0031] The update unit 14 of the NN control circuit 10 updates the parameters of the neural network 2 using the learning loss calculated by the learning loss recalculation unit 5. For example, the update unit 14 may update the parameters according to an existing SGD (Stochastic Gradient Descent) algorithm. The update formula in this SGD is publicly known, and each parameter of the neural network 2 is calculated by substituting the value of the learning loss into the update formula for SGD.

[0032] The neural network 2 classifies the input image using the updated parameters under the control of the NN control circuit 10. After that, the same operation is repeated to perform learning.

[0033] Next, the operation of the embodiment configured as above will be described with reference to Figures 3 to 9. Figures 3 and 4 are flow charts for explaining the operation of the first embodiment. Figures 5 to 8 are explanatory diagrams for explaining the operation of the first embodiment. Also, Figure 9 is an explanatory diagram for explaining the effect of the first embodiment for an example similar to that of Figure 2.

[0034] In S1 of FIG. 3, the initialization unit 12 of the NN control circuit 10 initializes the parameters of the neural network 2. However, the initialization unit 12 is not an essential component, and initialization of the parameters is not an essential step. In FIG. 3, the NN is initialized after the start, but the present invention is not limited to this. For example, the present invention can be applied to an NN trained by another learning method without initialization. The input control unit 11 of the NN control circuit 10 inputs images, which are training data stored in the data memory 1, to the neural network 2 (S2). The input control unit 11 also inputs correct answer information stored in the data memory 1 to the learning loss calculation unit 3 and the correct answer information processing unit 4 (S3). Note that in the neural network, a predetermined number of images (hereinafter referred to as a mini-batch) are extracted from a large number of images, and learning is performed on the images in the extracted mini-batch units. This mini-batch learning is performed for the number of data items to perform learning for one unit (hereinafter referred to as an epoch). For example, the number of epochs performed in learning may be predetermined.

[0035] The left side of Fig. 5 shows a mini-batch consisting of four images P1 to P4, which are training data. Image P1 in this mini-batch contains an image portion P1a of pancreatic cancer. Images P2 and P3 contain image portions P2b and P3b of pancreatitis, respectively. Image P4 is an inappropriate image that contains a blurred image portion P4α of pancreatic cancer or pancreatitis. When there is no need to distinguish between images P1 to P4, they may be referred to as image P.

[0036] Image P1 is provided with answer information indicating that image portion P1a is an image portion of pancreatic cancer. Similarly, image P2 is provided with answer information indicating that image portion P2b is an image portion of pancreatitis, and image P3 is provided with answer information indicating that image portion P3b is an image portion of pancreatitis. Image P4 is provided with answer information indicating that image portion P4α is an image portion of pancreatic cancer or pancreatitis.

[0037] An example of the correct answer information is shown at the bottom of Fig. 5. Fig. 5 shows correct answer information AP1 to AP4 set for images P1 to P4, respectively. When there is no need to distinguish between the correct answer information AP1 to AP4, they may be collectively referred to as correct answer information AP. The correct answer information AP divides image P into 5 x 4 regions, and indicates the probability that each region corresponds to pancreatic cancer, pancreatitis, or unknown.

[0038] For example, in the correct answer information AP1, the probability of pancreatic cancer is 1 (bold framed portion) in the region corresponding to the image portion P1a of the image P1, and 0 in the other regions. In addition, in the correct answer information AP1, both the score of pancreatitis and the probability of unknown are 0 for all regions. In addition, in the correct answer information AP2, the probability of pancreatitis is 1 (bold framed portion) in the region corresponding to the image portion P2b of the image P2, and 0 in the other regions. In addition, in the correct answer information AP2, both the probability of pancreatic cancer and the probability of unknown are 0 for all regions. In addition, in the correct answer information AP3, the probability of pancreatitis is 1 (bold framed portion) in the region corresponding to the image portion P3b of the image P3, and 0 in the other regions. In addition, in the correct answer information AP3, both the probability of pancreatic cancer and the probability of unknown are 0 for all regions. In addition, in the correct answer information AP4, the probability of pancreatic cancer is 1 (bold framed portion) in the region corresponding to the image portion P4α of the image P4, and 0 in the other regions. In addition, in the correct answer information AP4, the probability of pancreatitis and the probability of unknown are both 0 for all regions.

[0039] Thus, in the example of Figure 5, no correct answer information indicating "unknown" is included, and for image portion P4α of image P4, correct answer information indicating "unknown" is considered preferable, but for this image portion P4α, correct answer information indicating "pancreatic cancer" is also set.

[0040] The NN application unit 13 applies such a mini-batch to the neural network 2 (S4). As a result, the neural network 2 outputs the classification output shown in the upper center of Fig. 5. The example in Fig. 5 shows a score for pancreatic cancer (pancreatic cancer score), a score for pancreatitis (pancreatitis score), and a score for unknown (unknown score) for each 5 x 4 region of image P. Outputs C1 to C4 in Fig. 5 indicate the classification outputs of the neural network 2 for images P1 to P4, respectively.

[0041] As shown in output C1 of FIG. 5, for image P1, the pancreatic cancer score for the region of image portion P1a is the highest at 0.9 (bold frame). Note that the scores for other regions of image P1 are relatively small, and the value of 0.9 is a relatively prominent value. Also, as shown in output C2, for image P2, the pancreatitis score for the region of image portion P2b is the highest at 0.8 (bold frame). Note that the scores for other regions of image P2 are relatively small, and the value of 0.8 is a relatively prominent value. Also, as shown in output C3, for image P3, the pancreatitis score for the region of image portion P3b is the highest at 0.8 (bold frame). Note that the scores for other regions of image P3 are relatively small, and the value of 0.8 is a relatively prominent value.

[0042] In contrast, as shown in output C4, for the region of image portion P4α of image P4, the score for pancreatic cancer is 0.1 (bold frame), the score for pancreatitis is 0.3 (bold frame), and the score for unknown is 0.3 (bold frame). In other words, since image P4 is an inappropriate image with blurring, it is difficult for neural network 2 to classify it as pancreatic cancer, as indicated in the correct answer information.

[0043] The classification output of the neural network 2 is provided to the learning loss calculation unit 3, which calculates the learning loss (S5). The right end of FIG. 5 shows the learning loss value for each image P1 to P4. As shown in FIG. 5, for images P1 to P3, the scores for pancreatic cancer or pancreatitis are relatively high, and the learning loss is relatively small at 0.1 or 0.2. In contrast, for image portion P4α of image P4, although it is a blurred image, the correct information is pancreatic cancer, so the score for pancreatic cancer is relatively low and the learning loss is relatively large (0.9). The learning loss calculation unit 3 outputs the calculated learning loss to the correct information processing unit 4.

[0044] In this embodiment, the correct answer information processing unit 4 judges whether the learning loss exceeds the threshold in S6. For example, if the threshold is 0.8, in the example of FIG. 5, the learning loss for the image P4 exceeds the threshold. When the correct answer information processing unit 4 judges that the learning loss exceeds the threshold (YES judgment in S6 of FIG. 3), it processes the correct answer information for the image P into unknown (S7). FIG. 6 shows this processing, and for the correct answer information AP4 for the image P4, the probability of the image part P4α being pancreatic cancer correct was 1 (bold framed part) before the change, whereas after the change, the correct answer for pancreatic cancer is 0 (bold framed part) and unknown is 1 (bold framed part). Note that if the learning loss calculated by the learning loss calculation unit 3 does not exceed the predetermined threshold (NO judgment in S6), the process proceeds to S9.

[0045] The correct answer information processing unit 4 outputs the processed correct answer information to the learning loss recalculation unit 5. The classification output from the neural network 2 is also provided to the learning loss recalculation unit 5, and the learning loss recalculation unit 5 recalculates the learning loss of the classification output from the neural network 2 using the processed correct answer information (S8).

[0046] Fig. 7 shows the learning loss obtained by this learning loss recalculation. In the example of Fig. 7, the learning loss of image portion P4α of image P4 changes to a relatively small value (0.7) because the correct answer information is changed to unknown. The learning loss recalculator 5 outputs the calculated learning loss to the neural network 2. As shown in Fig. 8, the updater 14 of the neural network 2 updates the parameters of the neural network 2 based on the input learning loss, for example, by the SGD method (S9).

[0047] Next, the NN application unit 13 judges whether or not the learning end condition is satisfied (S10). As described above, the process of extracting mini-batch training data and performing learning is repeated for the number of data items, and learning is performed until the specified number of epochs is reached. The NN application unit 13 judges whether or not the specified number of epochs has been reached, and if not (NO judgment in S10), the process returns to S2 and S2 to S10 are repeated. Also, if the specified number of epochs has been reached (YES judgment in S10), the NN application unit 13 ends the process.

[0048] Once the learning is completed, a test is carried out. FIG. 4 shows the flow of this test. A test image is input in S11 of FIG. 4. The test image is an unknown image. The NN application unit 13 applies the test image stored in the data memory 1 to the neural network 2 (S12). As a result, a classification output is obtained as a recognition result from the neural network 2 (S13). When the test of FIG. 4 is carried out and a valid output is obtained as the classification output, the test is successful. Conversely, when a valid output is not obtained as the classification output, the test is unsuccessful. In this case, for example, the teacher data is changed and learning is carried out again.

[0049] Fig. 9 shows an example of a classification output obtained when inference is performed using training data P21 to P23 similar to those in Fig. 2 when the test in Fig. 4 is successful. In this embodiment, as shown in Fig. 9, a classification output of unknown is obtained for P22.

[0050] In this manner, in this embodiment, when training a neural network, the learning loss is calculated, and for training data in which the learning loss is higher than a predetermined threshold, the correct answer information is changed to unknown, thereby improving the inference accuracy of the inference model even when the training data contains inappropriate images. Therefore, when creating training data, there is no need to remove inappropriate images, and it is possible to make annotation work more efficient without reducing the inference accuracy of the neural network.

[0051] Second embodiment Fig. 10 is a block diagram showing a second embodiment of the present invention. In Fig. 10, the same components as those in Fig. 1 are given the same reference numerals and the description thereof will be omitted.

[0052] In the first embodiment, the accuracy of inference of the neural network is improved by processing correct answer information corresponding to an image whose learning loss meets a predetermined criterion and performing learning so that an inappropriate image is classified as unknown. In contrast, in the present embodiment, for an image whose learning loss meets a predetermined criterion, the image is processed so that the image is reliably classified as an inappropriate image, thereby improving the accuracy of inference of the neural network. Below, an example will be given in which a threshold value is used as the predetermined criterion, but the present embodiment is not limited to this.

[0053] The second embodiment differs from the neural network updating device of FIG. 1 in that the learning loss recalculation unit 5 is omitted and an image processing unit 9 is adopted instead of the correct answer information processing unit 4. The image processing unit 9 as a teacher data correction unit compares the learning loss (loss value) from the learning loss calculation unit 3 with a predetermined threshold to determine whether the learning loss exceeds a predetermined threshold. That is, the image processing unit 9 selects output data whose loss value meets a predetermined criterion, i.e., whose learning loss exceeds a predetermined threshold, and non-applicable output data whose loss value does not meet the predetermined criterion (learning loss is equal to or less than the predetermined threshold). The image processing unit 9 may select a predetermined number of output data in descending order of loss value as the relevant output data.

[0054] The correct information processing unit 4 processes the training data compared with the learning loss exceeding a predetermined threshold, i.e., the corresponding output data whose loss value meets a predetermined standard. Specifically, the image processing unit 9 is provided with images corresponding to each learning loss from the data memory 1, and processes the image corresponding to the learning loss exceeding a predetermined threshold, i.e., the learning loss in which the error between the classification output and the correct information is relatively large, into an image that is likely to be classified as unknown. For example, the image processing unit 9 may perform blurring processing on the image corresponding to the learning loss exceeding a predetermined threshold. Also, for example, the image processing unit 9 may perform image processing to reduce the brightness of the image, image processing to reduce the resolution of the image, image processing to reduce the size of the lesion in the image, and the like. The processed image information (processed training data) obtained by the image processing of the image processing unit 9 is provided to the data memory 1 and stored in place of the original image.

[0055] Next, the operation of the embodiment configured as above will be described with reference to Figures 11 to 15. Figure 11 is a flow chart for explaining the operation of the second embodiment. In Figure 11, the same steps as in Figure 3 are given the same reference numerals and the explanation will be omitted. Figures 12 to 15 are explanatory diagrams for explaining the operation of the second embodiment.

[0056] The processes of S1 to S5 in FIG. 11 are the same as those in FIG. 5. FIG. 12 shows the learning process using the same notation as FIG. 5, and the left end of FIG. 12 shows a mini-batch consisting of four images P1, P2, P3, and P4a, which are training data. The images P1 to P3 are the same as the images P1 to P3 in FIG. 5. The image P4a is an inappropriate image including a blurred image portion P4β of pancreatitis. When it is not necessary to distinguish between the images P1 to P4a, the images may be referred to as image P. The lower part of FIG. 12 shows an example of the correct answer information AP1 to AP4 of the images P1, P2, P3, and P4a using the same notation as FIG. 5. The correct answer information AP1 to AP3 for the images P1 to P3 are the same as those in FIG. 5. In this embodiment, the correct answer information AP4 corresponding to the image P4a is set in advance to unknown in the region corresponding to the blurred image portion P4β, as shown in the thick frame, since the image P4a is an inappropriate image.

[0057] The NN application unit 13 applies such mini-batches to the neural network 2 (S4). As a result, the neural network 2 outputs the classification output shown in the upper center of Fig. 12. Outputs C1 to C4 in Fig. 12 indicate the classification outputs of the neural network 2 for images P1, P2, P3, and P4a, respectively. The outputs C1 to C3 in Fig. 12 are the same scores as in Fig. 5.

[0058] In the output C4 corresponding to image P4a, for the region of image portion P4β of image P4a, the score for pancreatic cancer is 0.2 (bold frame), the score for pancreatitis is 0.6 (bold frame), and the score for unknown is 0.2 (bold frame). In other words, this indicates that although image P4a is an inappropriate image with blurring, the probability of classification as pancreatitis in neural network 2 is relatively high.

[0059] The classification output of the neural network 2 is provided to the learning loss calculation unit 3, which calculates the learning loss (S5). The right side of Fig. 12 shows the learning loss values ​​for each of the images P1, P2, P3, and P4a. As shown in Fig. 12, the probability of pancreatic cancer or pancreatitis is relatively high for the images P1 to P3, and the learning loss is relatively small at 0.1 or 0.2. In contrast, the learning loss for the image P4a is relatively large (0.8).

[0060] 12, the example includes correct answer information that is set as unknown in advance at the annotation stage. However, the blurred image portion P4a is originally a blurred image of pancreatitis, so the score of pancreatitis is relatively large and the error (learning loss) with the correct answer information, unknown, is relatively large. Therefore, if the parameters of the neural network 2 are updated based on such learning loss and learning is performed, the inference accuracy of the neural network 2 is likely to decrease.

[0061] Therefore, in this embodiment, the input image is processed so that the inappropriate image is reliably classified as unknown. The image processing unit 9 is provided with the learning loss from the learning loss calculation unit 3 and the image from the data memory 1. The learning loss calculation unit 3 determines whether the learning loss exceeds a threshold in S6. For example, if the threshold is 0.7, the learning loss for the image P4a exceeds the threshold in the example of FIG. 12. When the image processing unit 9 determines that the learning loss exceeds the threshold (YES determination in S6 of FIG. 11), the image processing unit 9 performs image processing on the image P4a so that the image is reliably determined as unknown (S27). The image processing unit 9 can perform image processing that is determined as unknown by various known image processing methods. For example, the image processing unit 9 may generate a more reliable blurred image using an averaging filter that averages each area of ​​the image. Alternatively, the image processing unit 9 may perform processing to reduce the resolution or brightness of the image P4a. The image processing unit 9 stores information about the processed image after image processing in the data memory 1 in place of the original image (S28).

[0062] FIG. 13 shows the mini-batch obtained by this image processing. In FIG. 13, hatching indicates that the image P4a has been changed to a blurred image P4ab, and the area of ​​pancreatitis has become a more blurred image portion P4βb. Note that, although FIG. 13 shows an example in which image processing has been performed on the entire image P4a, image processing may be performed on only the image portion P4β. The update unit 14 of the neural network 2 updates the parameters of the neural network 2 based on the input learning loss, for example, by the SGD method (S9). If the termination condition is not satisfied (NO judgment in S10), the neural network 2 is applied using the updated parameters and the changed mini-batch.

[0063] Fig. 14 shows the classification output (processed output data) obtained in this case using the same notation method as in Fig. 12. As shown in the upper center of Fig. 14, output C4 shown in a thick frame has changed from the previous classification output, and the unknown score for image P4ab has the largest value (0.8). As a result, the learning loss (post-processing loss value) of the classification output for image P4ab becomes a sufficiently small value (0.2). As shown in Fig. 15, the update unit 14 updates the parameters of the neural network 2 based on the sufficiently small learning loss obtained in this manner, and the neural network 2 finally obtained as a result of learning has high inference accuracy.

[0064] (Variation 1) Although the above-mentioned embodiments are exemplified by cases in which the type of the lesion is identified, the present invention is not limited thereto. The present invention may be for making the neural network 2 identify the type of organ to be observed, the degree of progression of the lesion, the degree of infiltration of the lesion, the presence or absence of past treatment, the blood vessel region, or the size of the lesion. An example of the above-mentioned past treatment is the removal of Helicobacter pylori.

[0065] (Variation 2) In each of the above-described embodiments, the image information identified as pancreatic cancer and the image information identified as pancreatitis are all combined to determine whether the loss value meets a specified criterion, but the present invention is not limited to this.

[0066] For example, when selecting a predetermined number of output data in order of the largest loss value as the relevant output data, a determination may be made as to whether the loss values ​​of image information identified as pancreatic cancer and image information identified as pancreatitis meet a predetermined criterion.

[0067] In addition, when selecting a predetermined number of output data in order of smallest loss value as non-relevant output data, a determination may be made as to whether the loss value meets a predetermined criterion for each of the image information identified as pancreatic cancer and the image information identified as pancreatitis.

[0068] Furthermore, the identification target of the second modification may be combined with that of the first modification. For example, for each of the image information identified as the pharynx, the image information identified as the esophagus, and the image information identified as the stomach, five pieces of image information in ascending order of loss value may be selected as non-relevant output data, and the remaining pieces of image information may be selected as relevant output data. In this manner, the amount of image information in each category, such as the pharynx, the esophagus, and the stomach, can be made uniform, which has the advantage of suppressing a decrease in classification performance.

[0069] In this manner, in this embodiment, when training a neural network, the learning loss is calculated, and for training data in which the learning loss is higher than a predetermined threshold, the image corresponding to the learning loss is processed, thereby improving the inference accuracy of the inference model even when the training data includes inappropriate images. Therefore, when creating training data, there is no need to remove inappropriate images, and it is possible to make annotation work more efficient without reducing the inference accuracy of the neural network.

[0070] The present invention is not limited to the above-described embodiments, and can be embodied by modifying the components without departing from the spirit of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining the multiple components disclosed in the above-described embodiments. For example, some of the components shown in the embodiments may be deleted. Furthermore, components from different embodiments may be appropriately combined.

[0071] Furthermore, among the techniques described herein, many of the controls and functions described mainly in the flowcharts can be set by a program, and the above-mentioned controls and functions can be realized by having a computer read and execute the program. The program can be recorded or stored in whole or in part as a computer program product on a portable medium such as a flexible disk, a CD-ROM, or a nonvolatile memory, or on a storage medium such as a hard disk or a volatile memory, and can be distributed or provided at the time of product shipment or via a portable medium or a communication line. A user can easily realize the neural network updating device of this embodiment by downloading the program via a communication network and installing it on a computer, or by installing it on a computer from a recording medium.

Claims

1. a processor having hardware, the processor comprising: For multiple output data that are the result of inputting multiple training data into a neural network, Calculating a loss value for each of the output data by comparing it with a plurality of pieces of correct answer information associated with the training data; Selecting, from the output data, corresponding output data whose loss value meets a predetermined criterion and non-corresponding output data whose loss value does not meet the predetermined criterion; Creating processed correct answer information by processing the correct answer information compared with the corresponding output data; outputting a post-processing loss value by comparing the corresponding output data with the processed correct answer information, and updating the neural network using the post-processing loss value; or Creating processed training data by processing the training data associated with the corresponding output data; A neural network updating device that inputs the processed training data into the neural network, outputs processed output data that is the result of classifying the processed training data, outputs a post-processing loss value by comparing it with the correct answer information linked to the corresponding output data, and updates the neural network using the post-processing loss value.

2. 2. The neural network updating device according to claim 1, wherein the neural network is updated by changing weight coefficients of the neural network.

3. The neural network updating device according to claim 1 , further comprising: updating the neural network using a loss value associated with the non-relevant output data in addition to the processed loss value.

4. 2. The neural network updating device according to claim 1, wherein the processed correct answer information is generated by assigning a category of inappropriate recognition to the correct answer information compared with the corresponding output data.

5. The neural network updating device according to claim 1 , wherein the processed training data is created by performing image processing on the training data linked to the corresponding output data.

6. 6. The neural network updating device according to claim 5, wherein the image processing is a process for reducing the resolution of the image.

7. 2. The neural network updating device according to claim 1, wherein the predetermined criterion is to select as the corresponding output data those within a predetermined number of the largest loss values.

8. 2. The neural network updating device according to claim 1, wherein the predetermined criterion is to determine as the non-applicable output data those within a predetermined number of data in ascending order of loss value.

9. 2. The neural network updating device according to claim 1, wherein the predetermined criterion is that the output data has a loss value equal to or greater than a predetermined number.

10. A neural network updating device as described in claim 1, wherein the multiple training data are images captured by an endoscope.

11. Neural network update device, For multiple output data that are the result of inputting multiple training data into a neural network, Calculating a loss value for each of the output data by comparing it with a plurality of pieces of correct answer information associated with the training data; selecting, from the output data, corresponding output data whose loss value meets a predetermined criterion and non-corresponding output data whose loss value does not meet the predetermined criterion; Creating processed correct answer information by processing the correct answer information compared with the corresponding output data, outputting a processed loss value by comparing the corresponding output data with the processed correct answer information, and updating the neural network using the processed loss value; or A neural network updating program that processes the training data linked to the corresponding output data to create processed training data, inputs the processed training data into the neural network to output processed output data that is a result of classifying the processed training data, outputs a processed loss value by comparing it with the correct answer information linked to the corresponding output data, and updates the neural network using the processed loss value.

12. The neural network update program of claim 11, which updates the neural network by changing weight coefficients of the neural network.

13. The neural network updating program of claim 11, further comprising: updating the neural network using a loss value associated with the non-relevant output data in addition to the processed loss value.

14. The neural network update program as described in claim 11, which creates the processed correct answer information by assigning a category of inappropriate recognition to the correct answer information compared with the corresponding output data.

15. The neural network update program of claim 11, wherein the multiple training data are images captured by an endoscope.

16. A neural network updating method using a neural network updating device including a teacher data acquisition unit, a neural network application unit, and a teacher data correction unit, The teacher data acquisition unit acquires teacher data consisting of a plurality of training data and a plurality of pieces of correct answer information linked to the training data, the neural network application unit inputs a plurality of training data into a neural network, and outputs output data associated with each of the training data, the output data being a result of classifying the training data; the neural network application unit calculates a loss value for each of the output data by comparing a plurality of pieces of correct answer information associated with the training data with the output data; The neural network application unit selects, from the output data, corresponding output data whose loss value meets a predetermined criterion and non-corresponding output data whose loss value does not meet the predetermined criterion; The teacher data correction unit processes the corrective information compared with the corresponding output data to create processed corrective information, the neural network application unit compares the corresponding output data with the processed corrective information to output a processed loss value, and the neural network application unit updates the neural network using the processed loss value, or A neural network updating method in which the teacher data correction unit creates processed training data by processing the training data linked to the corresponding output data, the neural network application unit inputs the processed training data to the neural network to output processed output data that is a result of classifying the processed training data, and outputs a post-processing loss value by comparing it with the correct answer information linked to the corresponding output data, and the neural network application unit updates the neural network using the post-processing loss value.

17. The method of claim 16, further comprising updating the neural network by modifying weight coefficients of the neural network.

18. The neural network updating method of claim 16, further comprising updating the neural network using a loss value associated with the non-relevant output data in addition to the processed loss value.

19. The neural network updating method of claim 16, wherein the processed correct answer information is created by assigning a recognition inappropriate category to the correct answer information compared with the corresponding output data.

20. The neural network updating method described in claim 16, wherein the multiple training data are images captured by an endoscope.

Citation Information

Patent Citations

  • Learning data generating device, learning data generating method, and program

    JP2020038514A

  • Sorter building method, image classification method, sorter building device, and image classification device

    JP2020052475A