Small batch learning device and its working procedure and working method

By calculating the area ratio and loss value weight in the mini-batch data, correction processing is performed to improve the discrimination accuracy of rare categories, solving the problem of low discrimination accuracy caused by category deviation in mini-batch learning, and achieving higher semantic segmentation accuracy.

CN113168698BActive Publication Date: 2024-09-06FUJIFILM CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980081719.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-14
Filing Date
2019-10-31
Publication Date
2024-09-06
Estimated Expiration
2039-10-31

AI Technical Summary

Technical Problem

In small-batch learning, due to the category bias in the learning input images and annotation images, the discrimination accuracy of rare categories is low, and existing technology cannot effectively solve this problem.

Method used

By calculating the area ratio of each category in the mini-batch data, determine the correction object category, and use the loss function to calculate the loss value for each category, perform correction processing to improve the discrimination accuracy of rare categories, for example, by adjusting the weight of the loss value to be greater than or Weight less than other categories, or scale it up or down to balance the loss value.

Benefits of technology

It effectively suppresses the decrease in category discrimination accuracy of the semantic segmentation model, improves the discrimination accuracy of rare categories, and avoids the creation of models with low discrimination accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168698B_ABST
    Figure CN113168698B_ABST
Patent Text Reader

Abstract

The present invention provides a small batch learning device and its working procedure and working method that can suppress the reduction of the classification accuracy of the machine learning model used to implement semantic segmentation. If the working procedure is started, the CPU of the small batch learning device functions as a calculation unit, a determination unit, and an evaluation unit. The calculation unit calculates the area ratio of each category among multiple categories in the small batch data. The determination unit determines the rare category whose area ratio is lower than the set value as the correction object category. The evaluation unit uses a loss function to evaluate the classification accuracy of the machine learning model category. The evaluation unit makes the weight of the loss value for the rare category greater than the weight of the loss value for the category other than the rare category as a correction process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technology of the present invention relates to a small batch learning device and its working procedure and working method. Background Art

[0002] Semantic segmentation is known for distinguishing multiple categories in an image in pixel units. Semantic segmentation is achieved using a machine learning model (hereinafter referred to as a model) such as a U-shaped convolutional neural network (U-Net; U-Shaped Neural Network).

[0003] In order to improve the discrimination accuracy of the model, it is necessary to give the model learning data for training and thus update the model. The learning data consists of a learning input image and an annotation image of a category in the learning input image that is manually specified. In Patent Document 1, a learning input image that serves as the source of the annotation image is extracted from a plurality of learning input images.

[0004] Previous technical literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Publication No. 2017-107386 Summary of the invention

[0007] Technical issues to be solved by the invention

[0008] There is a method called mini-batch learning in learning. In mini-batch learning, mini-batch data is assigned to the model as learning data. The mini-batch data consists of a part (e.g., 100 images) of multiple segmented images (e.g., 10,000 segmented images segmented with a frame 1 / 100 of the size of the original image) that segment the input image and annotation image for learning. Multiple groups (e.g., 100 groups) of mini-batch data are generated, and each group is assigned to the model in sequence.

[0009] Here, consider a case where there is a category bias in the learning input image and the annotation image. For example, the learning input image is a phase contrast microscope image showing a cell culture state, and is an image classified as differentiated cells in category 1, undifferentiated cells in category 2, culture medium in category 3, and dead cells in category 4. Moreover, the following is the case: the area ratio of each category in the entire learning input image and the annotation image is 38% for differentiated cells, 2% for undifferentiated cells, 40% for culture medium, and 20% for dead cells, and the area ratio of undifferentiated cells is relatively low.

[0010] If there is a class deviation in the learning input image and the annotation image, the possibility of class deviation in the small batch data composed of the learning input image and the annotation image also increases. When a class deviation occurs in the small batch data, training is performed without considering the rare class with a relatively low area ratio. As a result, a model with low discrimination accuracy for the rare class is created.

[0011] In Patent Document 1, as described above, one learning input image that is the source of the annotation image is extracted from a plurality of learning input images. However, in this method, when there is a class deviation in all of the plurality of learning input images, a model with low discrimination accuracy for a rare class is eventually created. Therefore, the method described in Patent Document 1 cannot solve the problem of creating a model with low discrimination accuracy for a rare class.

[0012] The technical purpose of the present invention is to provide a small-batch learning device, a working procedure and a working method thereof that can suppress the reduction in the classification accuracy of a machine learning model used to implement semantic segmentation.

[0013] Means for solving technical problems

[0014] In order to achieve the above-mentioned purpose, the small batch learning device of the present invention assigns small batch data to a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image in pixel units for training, and the small batch learning device comprises: a calculation unit, which calculates the area ratio of each of multiple categories in the small batch data; a determination unit, which determines the correction object category according to the area ratio; and an evaluation unit, which evaluates the category discrimination accuracy of the machine learning model by calculating the loss value for each of the multiple categories using a loss function, and the evaluation unit includes a correction processing unit that performs correction processing for correcting the first loss value based on a comparison result of the first loss value of the correction object category and the second loss value of the category other than the correction object category.

[0015] Preferably, the specifying unit specifies a rare class having an area ratio lower than a preset value as a correction target class, and the correction processing unit performs a process of making a weight on the first loss value larger than a weight on the second loss value as the correction process.

[0016] Preferably, the determination unit determines a non-rare class having an area ratio higher than a preset value as a correction target class, and the correction processing unit performs processing to make the weight on the first loss value smaller than the weight on the second loss value as the correction processing.

[0017] Preferably, the determination unit determines the rare class whose area ratio is lower than the set value as the correction target class, and the correction processing unit performs an enlargement process to make the correct answer value and the predicted value when calculating the first loss value greater than the correct answer value and the predicted value when calculating the second loss value as the correction process. In this case, the correction processing unit preferably sets the enlargement rate in the enlargement process to a value such that the area ratio of the rare class in the small batch data is the same as the area ratio of the rare class in the learning input image and the annotation image that are the source of the small batch data.

[0018] Preferably, the determination unit determines a non-rare class whose area ratio is higher than a set value as a correction target class, and the correction processing unit performs a reduction process to make the correct answer value and the predicted value when calculating the first loss value smaller than the correct answer value and the predicted value when calculating the second loss value as the correction process. In this case, the correction processing unit preferably sets the reduction rate in the reduction process to a value such that the area ratio of the non-rare class in the small batch data is the same as the area ratio of the non-rare class in the learning input image and the annotation image that are the source of the small batch data.

[0019] Preferably, a receiving unit is provided for receiving a selection instruction for causing the correction processing unit to execute the correction processing.

[0020] In the working procedure of the small batch learning device of the present invention, the small batch learning device assigns small batch data to a machine learning model for implementing semantic segmentation that distinguishes multiple categories in an image in pixel units for training. The working procedure of the small batch learning device enables the computer to perform the following functions: a calculation unit, which calculates the area ratio of each of multiple categories in the small batch data; a determination unit, which determines the correction object category based on the area ratio; and an evaluation unit, which evaluates the category discrimination accuracy of the machine learning model by calculating the loss value for each of the multiple categories using a loss function, the evaluation unit including a correction processing unit that performs correction processing to correct the first loss value based on a comparison result of the first loss value of the correction object category and the second loss value of a category other than the correction object category.

[0021] In the working method of the small batch learning device of the present invention, the small batch learning device assigns small batch data to a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image in pixel units for training. The working method of the small batch learning device comprises: a calculation step of calculating the area ratio of each of multiple categories in the small batch data; a determination step of determining the correction object category according to the area ratio; and an evaluation step of evaluating the category discrimination accuracy of the machine learning model by calculating a loss value for each of the multiple categories using a loss function, the evaluation step including a correction processing step of performing a correction processing of correcting the first loss value based on a comparison result of the first loss value of the correction object category and the second loss value of a category other than the correction object category.

[0022] Effects of the Invention

[0023] According to the technology of the present invention, it is possible to provide a small-batch learning device and its working procedure and working method that can suppress the reduction in the classification accuracy of the category of a machine learning model used to implement semantic segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a diagram showing an overview of a small batch learning device and its processing.

[0025] Figure 2 This is a diagram showing an overview of application devices and their processing.

[0026] Figure 3 is a graph representing an image, Figure 3 A represents the input image for learning, Figure 3 B represents the annotated image.

[0027] Figure 4 This is a diagram showing a state in which a segmentation learning input image is generated from a learning input image.

[0028] Figure 5 This is a diagram showing a state where a segmented annotation image is generated from an annotation image.

[0029] Figure 6 This is a diagram showing a segmentation learning input image group composed of a part of a plurality of segmentation learning input images.

[0030] Figure 7 This is a diagram showing a segmentation annotation image group composed of a part of a plurality of segmentation annotation images.

[0031] Figure 8 This is a block diagram showing a computer constituting a small batch learning device.

[0032] Fig. 9 This is a block diagram showing a processing unit of a CPU of a small batch learning device.

[0033] Fig.10 It is a diagram showing a specific example of the processing of the calculation unit and the determination unit.

[0034] Fig.11 It is a diagram showing a specific example of the processing of the evaluation unit.

[0035] Fig.12 is a diagram showing a table of loss values ​​for each category and the calculated values ​​of the loss function, Fig.12 A means that the weights of the loss values ​​of each category are set to be the same. Fig.12 B represents the case where the weight of the loss value of the rare class is increased.

[0036] Fig.13 This is a flowchart showing the processing procedure of the small batch learning device.

[0037] Fig.14 It is a diagram showing a modified example of the processing of the evaluation unit.

[0038] Fig.15 It is a diagram showing a specific example of the processing of the calculation unit and the determination unit in the second embodiment.

[0039] Fig.16 This is a diagram showing a specific example of the processing of the evaluation unit in the second embodiment.

[0040] Fig.17 is a diagram showing a table of loss values ​​for each category and calculated values ​​of loss functions in the second embodiment, Fig.17 A means that the weights of the loss values ​​of each category are set to be the same. Fig.17 B represents the case where the weight of the loss value for non-rare classes is reduced.

[0041] Fig.18 This is a diagram showing a specific example of the processing of the evaluation unit in the third embodiment.

[0042] Fig.19 This is a diagram conceptually showing the processing of the evaluation unit in the third embodiment.

[0043] Fig. 20 This is a diagram conceptually showing the processing of the evaluation unit in the third embodiment.

[0044] Fig.21 This is a diagram showing a method of determining an enlargement ratio in an enlargement process.

[0045] Fig. 22 This is a diagram showing a specific example of the processing of the evaluation unit in the fourth embodiment.

[0046] Fig.23 This is a diagram conceptually showing the processing of the evaluation unit in the fourth embodiment.

[0047] Fig.24 This is a diagram conceptually showing the processing of the evaluation unit in the fourth embodiment.

[0048] Fig.25 It is a diagram showing a method of determining a reduction ratio in a reduction process.

[0049] Fig.26 It is a diagram showing a fifth embodiment of inquiring whether to cause the correction processing unit to execute the correction processing. DETAILED DESCRIPTION

[0050] [First embodiment]

[0051] exist Figure 1 In order to improve the discrimination accuracy of the model 10 for implementing semantic segmentation of multiple categories in the input image in pixel units, the small batch learning device 2 causes the model 10 to perform small batch learning using small batch data 11. The small batch learning device 2 is, for example, a desktop personal computer. And, the model 10 is, for example, U-Net.

[0052] The category can also be said to be the type of object that appears in the input image. In short, semantic segmentation determines the category of the object that appears in the input image and its outline, and the model 10 outputs the determination result as an output image. For example, when three objects, a cup, a book, and a mobile phone, appear in the input image, it is ideal that the cup, the book, and the mobile phone are determined as respective categories, and contour lines that faithfully follow the contours of these objects are drawn on each object as an output image.

[0053] The classification accuracy of the model 10 is improved by providing learning data to the model 10 for training and updating the model 10. The learning data is composed of a set of a learning input image input to the model 10 and an annotation image manually specifying the category in the learning input image. The annotation image is an image used for so-called verification of answers with a learning output image output from the model 10 based on the learning input image, and is compared with the learning output image. The higher the classification accuracy of the model 10, the smaller the difference between the annotation image and the learning output image.

[0054] As described above, the small batch data 11 is used as learning data in the small batch learning device 2. The small batch data 11 is composed of a segmentation learning input image group 12 and a segmentation annotation image group 13.

[0055] In mini-batch learning, the segmentation learning input image group 12 is given to the model 10. Thus, the model 10 generates a segmentation learning input image 20S (see Figure 4 ) outputs the learning output image. The set of learning output images output from the model 10, i.e., the learning output image group 14, is compared with the segmentation annotation image group 13, and the classification accuracy of the model 10 is evaluated. Then, the model 10 is updated according to the evaluation result of the classification accuracy of the category. The mini-batch learning device 2 inputs the segmentation learning input image group 12 to the model 10 and outputs the learning output image group 14 from the model 10, evaluates the classification accuracy of the model 10, and updates the model 10 while replacing the mini-batch data 11, and repeats until the classification accuracy of the model 10 reaches the desired level.

[0056] like Figure 2As shown, the model 10 that improves the classification accuracy to the desired level as described above is incorporated into the application device 15 as a trained machine learning model (hereinafter, the trained model) 10T. An input image 16 in which the category and the outline of the object displayed have not yet been determined is assigned to the trained model 10T. The trained model 10T determines the category and the outline of the object displayed in the input image 16, and outputs an output image 17 as its determination result. Similar to the small batch learning device 2, the application device 15 is, for example, a desktop personal computer, and displays the input image 16 and the output image 17 side by side on the display. In addition, the application device 15 can be a device different from the small batch learning device 2, or it can be a device that is the same as the small batch learning device 2. Moreover, after the trained model 10T is incorporated into the application device 15, the trained model 10T can also be assigned the small batch data 11 for training.

[0057] like Figure 3 As shown in A, the learning input image 20 in this example is a phase contrast microscope image showing the state of cell culture. In the learning input image 20, differentiated cells, undifferentiated cells, culture medium, and dead cells appear as objects. In this case, in the annotation image 21, Figure 3 As shown in B, differentiated cells of category 1, undifferentiated cells of category 2, culture medium of category 3, and dead cells of category 4 are manually designated. In addition, like the learning input image 20, the input image 16 given to the trained model 10T is also a phase contrast microscope image showing the cell culture state.

[0058] like Figure 4 As shown, the segmentation learning input image 20S is an image in which the area surrounded by the rectangular frame 25 is cut out each time, and the rectangular frame 25 is sequentially moved by DX in the horizontal direction and DY in the vertical direction within the learning input image 20. The horizontal movement amount DX of the frame 25 is, for example, 1 / 2 of the horizontal size of the frame 25. Similarly, the vertical movement amount DY of the frame 25 is, for example, 1 / 2 of the vertical size of the frame 25. The frame 25 is, for example, 1 / 50 of the size of the learning input image 20. In this case, the segmentation learning input images 20S are 20S_1 to 20S_10000, totaling 10,000 images.

[0059] Likewise, if Figure 5As shown, the segmented annotation image 21S is an image obtained by cutting out the area surrounded by the rectangular frame 25, and the rectangular frame 25 is sequentially moved by DX in the horizontal direction and DY in the vertical direction in the annotation image 21. The segmented annotation images 21S are 21S_1 to 21S_10000, totaling 10,000. In addition, the following description assumes that the input image 20 for learning and the annotation image 21 are prepared in the small batch learning device 2, and the input image 20S for segmented learning and the segmented annotation image 21S are generated.

[0060] like Figure 6 As shown, the input image group 12 for segmentation learning is composed of Figure 4 The image segmentation learning input image 20S generated as shown is composed of a part of the plurality of segmentation learning input images 20S (for example, 100 of 10,000 segmentation learning input images 20S). Figure 7 As shown, the segmented annotation image group 13 is composed of Figure 5 The segmentation annotation images 21S generated are composed of a part (e.g., 100 of 10,000 segmentation annotation images 21S). In the segmentation learning input image 20S constituting the segmentation learning input image group 12 and the segmentation annotation image 21S constituting the segmentation annotation image group 13, the region cut out by the frame 25 is the same.

[0061] exist Figure 8 In FIG. 1 , the computer constituting the small batch learning device 2 includes a storage device 30 , a memory 31 , a CPU (Central Processing Unit) 32 , a communication unit 33 , a display 34 , and an input device 35 . These are connected to each other via a data bus 36 .

[0062] The storage device 30 is a hard disk drive built into the computer constituting the small batch learning device 2, or connected to the computer via a cable or a network. Alternatively, the storage device 30 is a disk array in which a plurality of hard disk drives are connected. The storage device 30 stores control programs such as an operating system, various application programs, and various data accompanying these programs.

[0063] The memory 31 is a working memory for the CPU 32 to execute processing. The CPU 32 loads the program stored in the storage device 30 into the memory 31 and executes processing according to the program, thereby centrally controlling each part of the computer.

[0064] The communication unit 33 is a network interface that controls the transmission of various information via a network such as a WAN (Wide Area Network) such as the Internet or a public communication network. The display 34 displays various screens. The various screens have an operation function based on a GUI (Graphical User Interface). The computer constituting the small batch learning device 2 receives input of operation instructions from the input device 35 through various screens. The input device 35 is a keyboard, a mouse, a touch panel, etc.

[0065] exist Fig. 9 In the example, the storage device 30 stores the learning input image 20, the annotation image 21, the segmentation learning input image 20S, the segmentation annotation image 21S, and the model 10. In addition, the storage device 30 stores the operation program 40 as an application program. The operation program 40 is an application program for causing the computer to function as the small batch learning device 2.

[0066] When the operation program 40 is started, the CPU 32 and the memory 31 of the computer constituting the small batch learning device 2 cooperate to function as a generating unit 50, a calculating unit 51, a determining unit 52, a learning unit 53, an evaluating unit 54, and an updating unit 55. The evaluating unit 54 is provided with a correction processing unit 56.

[0067] The generating unit 50 is as follows Figure 4 and Figure 5 As shown in FIG. 1 , the segmentation learning input image 20S and the segmentation annotation image 21S are generated from the learning input image 20 and the annotation image 21. Figure 6 and Figure 7 As shown, a part of the data is selected to generate the small batch data 11. The generating unit 50 generates a plurality of sets (for example, 100 sets) of small batch data 11. The generating unit 50 outputs the generated small batch data 11 to the calculating unit 51, the learning unit 53, and the evaluating unit 54.

[0068] In addition, the generating unit 50 may perform a method of increasing the options of the segmentation learning input image 20S and the segmentation annotation image 21S as the small batch data 11. Specifically, the segmentation learning input image 20S and the segmentation annotation image 21S are subjected to image processing such as trimming, left-right flipping, and rotation to create another image, which is then set as a new option for the small batch data 11. This method is called data augmentation.

[0069] The calculation unit 51 calculates the area ratio of each of the multiple categories in the small batch data 11. More specifically, the calculation unit 51 adds the number of pixels of the area manually specified in the segmented annotation image 21S of the segmented annotation image group 13 constituting the small batch data 11 from the generation unit 50 for each category. Then, the area ratio is calculated by dividing the added number of pixels by the total number of pixels of the segmented annotation image 21S. For example, when the added number of pixels of the area specified as the differentiated cell of category 1 is 10,000 and the total number of pixels is 50,000, the area ratio of the differentiated cell of category 1 is (10,000 / 50,000)×100=20%. The calculation unit 51 outputs the calculated area ratio to the determination unit 52.

[0070] The determination unit 52 determines the calibration target class based on the area ratio. In the present embodiment, the determination unit 52 determines a rare class whose area ratio is lower than a preset value as the calibration target class. The determination unit 52 outputs the determined rare class to the evaluation unit 54.

[0071] The learning unit 53 provides the segmentation learning input image group 12 of the mini-batch data 11 from the generating unit 50 to the model 10 for training. Thus, the learning unit 53 outputs the learning output image group 14 output from the model 10 to the evaluating unit 54 .

[0072] The evaluation unit 54 compares the segmented annotation image group 13 of the mini-batch data 11 from the generation unit 50 and the learning output image group 14 from the learning unit 53 , and evaluates the class discrimination accuracy of the model 10 . The evaluation unit 54 outputs the evaluation result to the update unit 55 .

[0073] The evaluation unit 54 evaluates the classification accuracy of the model 10 using the loss function L (TN, PN) shown below. The loss function L (TN, PN) is a function that indicates the degree of difference between the segmented annotation image group 13 and the learning output image group 14. TN of the loss function L (TN, PN) indicates the classification status of the category in the segmented annotation image group 13, which is equivalent to the correct answer value. PN indicates the classification status of the category in the learning output image group 14, which is equivalent to the predicted value. The closer the calculated value of the loss function L (TN, PN) is to 0, the higher the classification accuracy of the model 10 is.

[0074] [Formula 1]

[0075]

[0076] N is the number of categories, and in this example, N=4. WK is a weighting coefficient. F(TK, PK) is, for example, a classification cross entropy function. F(TK, PK) is equivalent to the loss value of each category. That is, the loss function L(TN, PN) is the sum of the products of the loss value F(TK, PK) of each category and the weighting coefficient WK. The evaluation unit 54 outputs the calculated value of the loss function L(TN, PN) to the update unit 55 as an evaluation result.

[0077] The correction processing unit 56 performs correction processing for correcting the first loss value based on a comparison result of the loss value of the correction object category, i.e., the first loss value, and the loss value of the category other than the correction object category, i.e., the second loss value. In addition, the correction processing includes processing for making the number of digits of the first loss value and the second loss value consistent. The processing for making the number of digits consistent refers, for example, to the processing of setting the number of digits of the first loss value to 2 when the number of digits of the first loss value is 1 and the number of digits of the second loss value is 2. Furthermore, the correction processing also includes processing for setting the first loss value and the second loss value to the same value. The processing of setting to the same value includes not only processing for setting the first loss value and the second loss value to exactly the same value, but also processing for making the first loss value converge to a specified error range relative to the second loss value, for example, within the range of ±50% (when the second loss value is 50, the first loss value is set to 25 to 75).

[0078] In more detail, the correction processing unit 56 performs a process of making the weight of the first loss value greater than the weight of the second loss value as a correction process. Here, "weight" refers to a weighting coefficient WK. And, in the present embodiment, as described above, the correction object category is a rare category whose area ratio is lower than a set value. Therefore, in the present embodiment, the first loss value is the loss value F(TK, PK) of the rare category, and the second loss value is the loss value F(TK, PK) of a category other than the rare category. If the above expression is changed according to the above two contents, the correction processing unit 56 performs a process of making the weighting coefficient WK of the loss value F(TK, PK) of the rare category greater than the weighting coefficient WK of the loss value F(TK, PK) of the category other than the rare category as a correction process. For example, the correction processing unit 56 sets the weighting coefficient WK of the loss value F(TK, PK) of the rare category to 10, and sets the weighting coefficient WK of the loss value F(TK, PK) of the category other than the rare category to 1 (reference Fig.11 and Fig.12 ).

[0079] The updating unit 55 updates the model 10 based on the evaluation result from the evaluating unit 54. More specifically, the updating unit 55 changes the various parameter values ​​of the model 10 by using a stochastic gradient descent method or the like with a learning coefficient. The learning coefficient represents the variation range of the various parameter values ​​of the model 10. That is, the larger the learning coefficient is, the larger the variation range of the various parameter values ​​is, and the greater the degree of updating of the model 10 is.

[0080] Fig.10 and Fig.11 Specific examples of the processing performed by the calculation unit 51, the determination unit 52, and the evaluation unit 54 (correction processing unit 56) are shown. Fig.10 In the calculation unit 51 , as shown in Table 60 , the area ratio of each category is calculated for each group 1 , 2 , 3 , . . . of the small batch data 11 . Fig.10 The following calculated situation is illustrated in the example: the area ratio of differentiated cells in category 1 of the first group of small batch data 11 is 38%, the area ratio of undifferentiated cells in category 2 is 2%, the area ratio of culture medium in category 3 is 40%, the area ratio of dead cells in category 4 is 20%, etc.

[0081] The specifying unit 52 specifies a rare class whose area ratio is lower than a set value. Fig.10 The following example is shown: since the set value is 5%, the undifferentiated cells of category 2 of the first group of small batch data 11, whose area ratio is 2% and is lower than the set value, are determined as rare categories. In addition, the example shows a case where only one rare category is determined, but if there are multiple categories with area ratios lower than the set value, of course, multiple categories are determined as rare categories.

[0082] Then, in Fig.11 As shown in Table 61, the correction processing unit 56 of the evaluation unit 54 sets the weighting coefficient WK of the loss value F(TK, PK) of the categories 1, 3, and 4 of the first group of small batch data 11, all categories of the second and third groups of small batch data 11, and categories other than rare categories to 1. In contrast, the correction processing unit 56 sets the weighting coefficient WK of the loss value F(TK, PK) of the rare category such as category 2 of the first group of small batch data 11 to 10.

[0083] Fig.12 A table showing the loss value F (TK, PK) and the calculated value of the loss function L (TN, PN) for each category. Fig.12 Table 65A of A shows a case where the weighting coefficient WK for each category of loss value F (TK, PK) is set to the same 1. On the other hand, Fig.12Table 65B of B shows a case where the weighting coefficient WK for the loss value F(TK, PK) of the rare class is increased. In addition, an example is shown where the loss value F(T2, P2) is 2 for undifferentiated cells of class 2, and the loss values ​​F(T1, P1), F(T3, P3), and F(T4, P4) of the other classes 1, 3, and 4 are 25, 20, and 15, respectively.

[0084] Thus, the loss value F(TK, PK) of the rare class is smaller than the loss value F(TK, PK) of the class other than the rare class. The reason for this difference is that the learning opportunity of the model 10 is limited for the rare class compared to other classes, so that the degree of improvement or deterioration of the discrimination accuracy of the model 10 is small in the training (called period) given a set of small batch data 11.

[0085] In the case where there is a large difference between the loss values ​​F(TK, PK) of the rare class and other classes, such as Fig.12 As shown in A, when the weighting coefficients WK are all set to the same, the loss value F(TK, PK) of the rare class has a relatively small impact on the calculated value (=62) of the loss function L(TN, PN). Fig.12 As shown in B, when the weighting coefficient WK of the loss value F(TK, PK) of the rare class is increased, Fig.12 Compared with the case A, the loss value F(TK, PK) of the rare class has a greater influence on the calculated value (=80) of the loss function L(TN, PN). In this way, by increasing the weighting coefficient WK for the loss value F(TK, PK) of the rare class, the evaluation unit 54 increases the loss value F(TK, PK) of the rare class to a value equivalent to the loss value F(TK, PK) of the class other than the rare class, and then calculates the loss function L(TN, PN), and evaluates the discrimination accuracy of the model 10.

[0086] Next, refer to Fig.13 The flowchart shown in FIG. 1 illustrates the function of the above structure. First, the operation program 40 is started. Fig. 9 As shown, the CPU 32 of the computer constituting the small-batch learning device 2 functions as the processing units 50 to 56 .

[0087] The small batch data 11 is generated in the generating unit 50 (step ST100 ). The small batch data 11 is output from the generating unit 50 to the calculating unit 51 , the learning unit 53 , and the evaluating unit 54 .

[0088] like Fig.10 As shown in Table 60, the calculation unit 51 calculates the area ratio of each category for each group of the small batch data 11 (step ST110, calculation step). Fig.10As shown, in the determination section 52 , a rare class whose area ratio is lower than a set value is determined as a correction target class (step ST120 , determination step).

[0089] In the learning unit 53 , the segmentation learning input image group 12 of the mini-batch data 11 from the generating unit 50 is given to the model 10 for training (step ST130 ).

[0090] In the case where there are rare classes in the small batch data 11 assigned to the model 10 in step ST130 (“Yes” in step ST140), Fig.11 Table 61 and Fig.12 As shown in Table 65B of FIG. 65B, the correction processing unit 56 makes the weighting coefficient WK for the loss value F(TK, PK) of the rare class larger than the weighting coefficient WK for the loss value F(TK, PK) of the class other than the rare class (step ST150, correction processing step). In contrast, when there is no rare class in the small batch data 11 assigned to the model 10 in step ST130 ("No" in step ST140), the weighting coefficient WK for the loss value F(TK, PK) of the rare class is not increased, but is set to the normal weighting coefficient WK.

[0091] In the evaluation unit 54, the learning output image group 14 output from the model 10 and the segmented annotation image group 13 of the small batch data 11 from the generation unit 50 are compared, and the classification accuracy of the model 10 is evaluated (step ST160, evaluation step). More specifically, the loss value F (TK, PK) is calculated for each of the multiple categories. In addition, the weighting coefficient WK set in step ST150 or the usual weighting coefficient WK is accumulated on the loss value F (TK, PK), and the sum is calculated as the calculated value of the loss function L (TN, PN).

[0092] When it is determined that the classification accuracy of the model 10 has reached the desired level based on the calculated value of the loss function L (TN, PN) of the evaluation unit 54 ("Yes" in step ST170), the small batch learning is terminated. On the other hand, when it is determined that the classification accuracy of the model 10 has not reached the desired level ("No" in step ST170), the model 10 is updated by the updating unit 55 (step ST180). Then, the process returns to step ST130, another set of small batch data 11 is assigned to the model 10, and the subsequent steps are repeated.

[0093] When the determination unit 52 determines that there is a rare class, that is, when there is a class bias in the small batch data 11. In the small batch data 11 with such a class bias, training is performed without considering the rare class. More specifically, the training frequency of the rare class is relatively lower than that of other classes. After such biased training is performed, when the discrimination accuracy of the model 10 is evaluated without any restriction in the evaluation unit 54, as shown in FIG. Fig.12 As shown in A, an evaluation result that hardly considers rare classes is output. As a result, rare classes are not considered in subsequent updates of the model 10. As a result, a model 10 with low discrimination accuracy for rare classes is created.

[0094] However, in the present embodiment, as described above, in the correction processing unit 56, correction processing is performed based on the comparison result of the loss value F(TK, PK) of the rare category and the loss value F(TK, PK) of the category other than the rare category. In more detail, in the correction processing unit 56, the weighting coefficient WK for the loss value F(TK, PK) of the rare category is made greater than the weighting coefficient WK for the loss value F(TK, PK) of the category other than the rare category. Thus, it is possible to output an evaluation result that fully considers the rare category, and the discrimination accuracy of the rare category also tends to be improved in the subsequent update of the model 10. Thus, it is possible to avoid creating a model 10 with low discrimination accuracy for rare categories, and it is possible to suppress the reduction in the discrimination accuracy of the category of the model 10.

[0095] In addition, the smaller the area ratio is, the greater the weighting coefficient WK for the loss value F(TK, PK) of the rare category can be. Fig.14 As shown in Table 70, when the area ratio is greater than 0% and less than 2.5%, as in the 20th group of small batch data 11, the weighting coefficient W2 of the rare category, i.e., category 2, is set to 100. In contrast, when the area ratio is greater than 2.5% and less than 5%, as in the 21st group of small batch data 11, the weighting coefficient W4 of the rare category, i.e., category 4, is set to 10. It can be considered that the smaller the area ratio, the smaller the loss value F(TK, PK) becomes. Therefore, if the weighting coefficient WK is changed according to the area ratio in this way, it is possible to output an evaluation result that further takes into account the rare category, and as a result, the reduction in the discrimination accuracy of the category of the model 10 can be further suppressed.

[0096] [Second embodiment]

[0097] exist Figure 15 to Figure 17 In the second embodiment shown, contrary to the above-mentioned first embodiment, a non-rare category having an area ratio higher than a predetermined set value is determined as a correction object category, and a process of making the weight of the first loss value smaller than the weight of the second loss value is performed as a correction process.

[0098] exist Fig.15 In the embodiment, the determination unit 80 determines the non-rare class whose area ratio is higher than the set value as the correction target class. Fig.15 The following example is shown: since the set value is 50%, the undifferentiated cells of category 2 of the 30th group of small batch data 11, whose area ratio is 56% and higher than the set value, are determined as non-rare categories as shown in Table 75, etc. In addition, similar to the rare category in the first embodiment, multiple categories may also be determined as non-rare categories.

[0099] exist Fig.16 In the embodiment, the correction processing unit 82 of the evaluation unit 81 performs a process of making the weighting coefficient WK of the loss value F(TK, PK) of the non-rare category smaller than the weighting coefficient WK of the loss value F(TK, PK) of the category other than the non-rare category as the correction processing. Specifically, as shown in Table 83, the weighting coefficient WK of the loss value F(TK, PK) of the category 1, 3, 4 of the 30th group of small batch data 11, all categories of the 31st group and the 32nd group of small batch data 11, and the category other than the non-rare category is set to 1. In contrast, the correction processing unit 82 sets the weighting coefficient WK of the loss value F(TK, PK) of the non-rare category such as category 2 of the 30th group of small batch data 11 to 0.5.

[0100] and Fig.12 same, Fig.17 A table showing the loss value F (TK, PK) and the calculated value of the loss function L (TN, PN) for each category. Fig.17 Table 85A of A shows a case where the weighting coefficient WK for each category of loss value F (TK, PK) is set to the same 1. On the other hand, Fig.17 Table 85B of B shows a case where the weighting coefficient WK for the loss value F(TK, PK) of the non-rare category is reduced. In addition, the following example is shown: the non-rare category is the undifferentiated cells of category 2, the loss value F(T2, P2) is 42, and the loss values ​​F(T1, P1), F(T3, P3), and F(T4, P4) of the other categories 1, 3, and 4 are 19, 22, and 18, respectively.

[0101] Contrary to the first embodiment, the loss value F(TK, PK) of the non-rare category is larger than the loss value F(TK, PK) of the category other than the non-rare category. Therefore, the evaluation unit 81 reduces the weighting coefficient WK for the loss value F(TK, PK) of the non-rare category. Fig.17 As shown in B, the loss value F(TK, PK) of the non-rare category is reduced to a value equivalent to the loss value F(TK, PK) of the category other than the non-rare category, which is the same as setting the weighting coefficient WK to the same value. Fig.17Compared with case A, the impact of the loss value F(TK, PK) of the non-rare category on the calculated value of the loss function L(TN, PN) is reduced.

[0102] Thus, in the second embodiment, a non-rare category whose area ratio is higher than a set value is determined as a correction target category, and a process of making the weight for the first loss value smaller than the weight for the second loss value is performed as a correction process. Thus, as in the above-mentioned first embodiment, the reduction in the accuracy of class discrimination of the model 10 can be suppressed.

[0103] In this case, as in the first embodiment, the larger the area ratio is, the more the weighting coefficient WK for the loss value F (TK, PK) of the non-rare class can be reduced.

[0104] [Third embodiment]

[0105] exist Figure 18 to Figure 21 In the third embodiment shown, a rare category whose area ratio is lower than a preset setting value is determined as a correction object category, and an amplification process is performed as a correction process to make the correct answer value and the predicted value when calculating the first loss value larger than the correct answer value and the predicted value when calculating the second loss value.

[0106] like Fig.10 As shown, Fig.18 The case where the undifferentiated cells of category 2 of the first group of small batch data 11 are determined as rare categories is exemplified. In this case, as shown in Table 92, the correction processing unit 91 of the evaluation unit 90 of this embodiment keeps the correct answer values ​​and predicted values ​​of categories other than rare categories, such as categories 1, 3, and 4 of the first group of small batch data 11, and all categories of the second and third groups of small batch data 11, unchanged. In contrast, the correction processing unit 91 performs a magnification process of setting the correct answer values ​​and predicted values ​​of rare categories such as category 2 of the first group of small batch data 11 to 10 times.

[0107] Fig.19 and Fig. 20 This is a conceptual illustration of Fig.18 The correct answer value and predicted value of category 2 of the first group of small batch data 11 are set to be 10 times the enlarged processing. Fig.19 As shown in FIG. 1 , the size of the correct answer value T2 is set to 10 times the value before the enlargement process by the enlargement process. Fig. 20 As shown in FIG. 1 , the size of the predicted value P2 is set to 10 times the size before the enlargement process by the enlargement process. In this way, the enlargement process is a process for increasing the number of target pixels of the correct answer value of the rare class and the number of target pixels of the predicted value of the rare class.

[0108] like Fig.21As shown in Table 95, the correction processing unit 91 sets the enlargement rate in the enlargement process to a value that makes the area ratio of the rare class in the small batch data 11 the same as the area ratio of the rare class in the learning input image 20 and the annotation image 21 that are the source of the small batch data 11. Fig.21 The following example is shown: the undifferentiated cells of category 2 of the first group of small batch data 11 are determined as rare categories, the area ratio of the rare category in the small batch data 11 is 2%, and the area ratio of the rare category in the learning input image 20 and the annotation image 21 is 20%. In this case, the correction processing unit 91 sets the magnification in the magnification processing to 20 / 2=10 times. In addition, becoming the same value includes not only making the area ratio of the rare category in the small batch data 11 and the area ratio of the rare category in the learning input image 20 and the annotation image 21 completely the same value, but also including making the area ratio of the rare category in the small batch data 11 and the area ratio of the rare category in the learning input image 20 and the annotation image 21 converge within a predetermined error range, for example, a value within the range of ±10%.

[0109] Thus, in the third embodiment, a rare category whose area ratio is lower than a preset setting value is determined as a correction target category, and an amplification process is performed as a correction process to make the correct solution value and the predicted value when calculating the first loss value greater than the correct solution value and the predicted value when calculating the second loss value. Through this correction process, the imbalance of the loss value F (TK, PK) between the rare category and the non-rare category can also be corrected. Thus, the reduction in the discrimination accuracy of the category of the model 10 can be suppressed. In addition, this correction process is effective when the loss value F (TK, PK) is not a linear function.

[0110] Furthermore, in the third embodiment, the magnification ratio in the magnification process is set to a value that makes the area ratio of the rare class in the small batch data 11 the same as the area ratio of the rare class in the learning input image 20 and the annotation image 21. Thus, the magnification ratio can be set to an appropriate value. In addition, it is preferable to adopt such a method of determining the magnification ratio when there is no deviation in the area ratio of each class in the learning input image 20 and the annotation image 21.

[0111] The case where there is no deviation in the area ratio of each category in the learning input image 20 and the annotation image 21 is, for example, the case where the difference between the maximum value and the minimum value of the area ratio of each category is within 10%.

[0112] [Fourth embodiment]

[0113] exist Figure 22 to Figure 25In the fourth embodiment shown, contrary to the third embodiment described above, a non-rare category having an area ratio higher than a preset set value is determined as a correction object category, and a reduction process is performed as a correction process to make the correct answer value and the predicted value when calculating the first loss value smaller than the correct answer value and the predicted value when calculating the second loss value.

[0114] like Fig.15 As shown, Fig. 22 The case where the undifferentiated cells of category 2 of the 30th group of small batch data 11 are determined as non-rare categories is exemplified. In this case, as shown in Table 102, the correction processing unit 101 of the evaluation unit 100 of this embodiment keeps the correct answer values ​​and predicted values ​​of categories other than non-rare categories, such as categories 1, 3, and 4 of the 30th group of small batch data 11, and all categories of the 31st and 32nd groups of small batch data 11, unchanged. In contrast, the correction processing unit 101 performs a reduction process of setting the correct answer values ​​and predicted values ​​of non-rare categories such as category 2 of the 30th group of small batch data 11 to 0.5 times.

[0115] Fig.23 and Fig.24 This is a conceptual illustration of Fig. 22 The correct answer value and predicted value of category 2 of the 30th group of small batch data 11 are set to 0.5 times the reduction processing. Fig.23 As shown in , the size of the correct answer value T2 is set to 0.5 times the value before the reduction process by the reduction process. Fig.24 As shown, the size of the predicted value P2 is reduced to 0.5 times the size before the reduction process. Thus, in contrast to the enlargement process of the third embodiment, the reduction process is a process that reduces the number of target pixels of the correct solution value of the non-rare class and the number of target pixels of the predicted value of the non-rare class.

[0116] like Fig.25 As shown in Table 105 of FIG. 105 , the correction processing unit 101 sets the reduction rate in the reduction processing to a value such that the area ratio of the non-rare category in the small batch data 11 is the same as the area ratio of the non-rare category in the learning input image 20 and the annotation image 21 which are the source of the small batch data 11. Fig.25The following example is shown: the undifferentiated cells of category 2 of the 30th group of small batch data 11 are determined as non-rare categories, the area ratio of the non-rare categories in the small batch data 11 is 56%, and the area ratio of the non-rare categories in the learning input image 20 and the annotation image 21 is 28%. In this case, the correction processing unit 101 sets the reduction ratio in the reduction process to 28 / 56=0.5 times. In addition, in this case, as in the above-mentioned third embodiment, becoming the same value includes not only making the area ratio of the rare category in the small batch data 11 and the area ratio of the rare category in the learning input image 20 and the annotation image 21 completely the same value, but also making the area ratio of the rare category in the small batch data 11 and the area ratio of the rare category in the learning input image 20 and the annotation image 21 converge within a predetermined error range, for example, a value within the range of ±10%.

[0117] Thus, in the fourth embodiment, a non-rare category whose area ratio is higher than a preset value is determined as a correction target category, and a reduction process is performed as a correction process to make the correct solution value and the predicted value when calculating the first loss value smaller than the correct solution value and the predicted value when calculating the second loss value. Thus, as in the above-mentioned third embodiment, the reduction in the accuracy of class discrimination of the model 10 can be suppressed. In addition, as in the above-mentioned third embodiment, it is effective when the loss value F (TK, PK) is not a linear function.

[0118] Furthermore, in the fourth embodiment, the reduction ratio in the reduction process is set to a value that makes the area ratio of the non-rare category in the small batch data 11 the same as the area ratio of the non-rare category in the learning input image 20 and the annotation image 21. Thus, the reduction ratio can be set to an appropriate value. In addition, as in the third embodiment described above, this method of determining the reduction ratio is preferably adopted when there is no deviation in the area ratio of each category in the learning input image 20 and the annotation image 21.

[0119] [Fifth embodiment]

[0120] exist Fig.26 In the fifth embodiment shown, an inquiry is made as to whether or not to cause the correction processing unit to execute the correction processing.

[0121] exist Fig.26 In the fifth embodiment, the CPU of the small batch learning device functions as the receiving unit 110 in addition to the processing units of the above-mentioned embodiments. When the determining unit 52 determines that there is a correction target category, the receiving unit 110 receives a selection instruction whether to cause the correction processing unit to execute correction processing.

[0122] In the fifth embodiment, when the determination unit 52 determines that there is a correction target category, an inquiry screen 111 is displayed on the display 34. The inquiry screen 111 displays a message 112 indicating that there is a correction target category, a message 112 inquiring whether or not a correction process for correcting the loss value of the correction target category can be executed, a "yes" button 113, and a "no" button 114. The receiving unit 110 receives the selection instructions of the "yes" button 113 and the "no" button 114 as a selection instruction of whether to execute the correction process. When the "yes" button 113 is selected, the correction process is executed in the correction processing unit. On the other hand, when the "no" button 114 is selected, the correction process is not executed in the correction processing unit.

[0123] When generating an annotation image, since the category is manually specified, the category may be incorrectly specified. In addition, there may be a case where a category is specified at the early stage of development of the model 10, but is considered to be less important as the development progresses. In this case, there may be a case where the correction process may not be performed even though it is determined as a correction target category in the determination unit 52.

[0124] Therefore, in the fifth embodiment, the selection instruction of whether to cause the correction processing unit to execute the correction process is received by the receiving unit 110. This can cope with the case where the correction process does not need to be executed even though the correction target type is determined by the determining unit 52.

[0125] The first embodiment and the second embodiment may be implemented in combination. That is, the weighting coefficient for the loss value of a rare category may be made smaller than the weighting coefficient for the loss value of categories other than the rare category, and the weighting coefficient for the loss value of a non-rare category may be made larger than the weighting coefficient for the loss value of categories other than the non-rare category. Similarly, the third embodiment and the fourth embodiment may be implemented in combination. That is, the correct solution value and the predicted value when calculating the loss value of a rare category may be made larger than the correct solution value and the predicted value when calculating the loss value of categories other than the rare category, and the correct solution value and the predicted value when calculating the loss value of a non-rare category may be made smaller than the correct solution value and the predicted value when calculating the loss value of categories other than the non-rare category.

[0126] In the above-mentioned embodiments, phase contrast microscope images showing the cell culture state are exemplified as the input image 16 and the learning input image 20, and differentiated cells or culture medium are exemplified as the categories, but the present invention is not limited to this. For example, MRI (Magnetic Resonance Imaging) images can be used as the input image 16 and the learning input image 20, and organs such as liver and kidney can be used as categories.

[0127] Model 10 is not limited to U-Net, but can also be other convolutional neural networks, such as SegNet.

[0128] The hardware structure of the computer constituting the small batch learning device 2 can be modified in various ways. For example, in order to improve processing power or reliability, the small batch learning device 2 can be constituted by a plurality of separate computers as hardware. Specifically, two computers are made to disperse the functions of the generation unit 50, the calculation unit 51, and the determination unit 52, and the functions of the learning unit 53, the evaluation unit 54, and the update unit 55. In this case, the small batch learning device 2 is constituted by two computers.

[0129] In this way, the hardware structure of the computer can be appropriately changed according to the required performance such as processing power, safety, reliability, etc. In addition, it is not limited to hardware. For the purpose of ensuring safety or reliability, application programs such as the work program 40 can of course be duplicated or stored in multiple storage devices.

[0130] In each of the above-mentioned embodiments, various processors shown below can be used as the hardware structure of the processing unit (Processing Unit) that performs various processes, such as the generation unit 50, the calculation unit 51, the determination unit 52, 80, the learning unit 53, the evaluation unit 54, 81, 90, 100, the update unit 55, the correction processing unit 56, 82, 91, 101, and the receiving unit 110. Among the various processors, as described above, in addition to a general-purpose processor that executes software (the work program 40) and functions as various processing units, there are also processors such as FPGA (Field Programmable Gate Array) whose circuit structure can be changed after manufacturing, such as programmable logic devices (PLD), ASIC (Application Specific Integrated Circuit) and other processors having a circuit structure specially designed to perform specific processing, such as dedicated circuits.

[0131] One processing unit may be composed of one of these various processors, or a combination of two or more processors of the same or different types (eg, a combination of multiple FPGAs or a combination of a CPU and an FPGA). Furthermore, multiple processing units may be composed of one processor.

[0132] As an example of a processor constituting multiple processing units, first, as represented by computers such as clients and servers, a processor is composed of a combination of one or more CPUs and software, and the processor functions as multiple processing units. Second, as represented by a system on chip (SoC), a processor that uses an IC (Integrated Circuit) chip to implement the functions of the entire system including multiple processing units. In this way, as a hardware structure, various processing units are composed of more than one of the above-mentioned various processors.

[0133] Furthermore, as the hardware configuration of these various processors, more specifically, a circuit combining circuit elements such as semiconductor elements can be used.

[0134] Based on the above description, the invention described in the following additional claim 1 can be understood.

[0135] [Additional item 1]

[0136] A small batch learning device is provided for training a machine learning model for implementing semantic segmentation for distinguishing a plurality of categories in an image in pixel units by giving small batch data, the small batch learning device comprising:

[0137] A calculation processor calculates the area ratio of each of the multiple categories in the small batch data;

[0138] a determination processor that determines a calibration object category according to the area ratio; and

[0139] An evaluation processor that evaluates the classification accuracy of the machine learning model by calculating a loss value for each of the multiple categories using a loss function, the evaluation processor comprising a correction processing processor that performs correction processing for correcting the first loss value based on a comparison result of a first loss value of the correction object category and a second loss value of a category other than the correction object category.

[0140] The technology of the present invention can also appropriately combine the above-mentioned various embodiments or various variations. Moreover, it is not limited to the above-mentioned embodiments, and various structures can be adopted as long as they do not deviate from the main purpose. In addition, the technology of the present invention not only relates to programs, but also relates to storage media that store programs non-temporarily.

[0141] Explanation of symbols

[0142] 2- small batch learning device, 10- machine learning model (model), 10T- trained machine learning model (trained model), 11- small batch data, 12- segmented learning input image group, 13- segmented annotation image group, 14- learning output image group, 15- application device, 16- input image, 17- output image, 20- learning input image, 20S- segmented learning input image, 21- annotation image, 21S- segmented annotation image, 25- frame, 30- storage device, 31- memory, 32- CPU, 33- communication unit, 34- display, 35- input device, 36- data bus, 40- working program, 50- generation unit, 51- calculation unit, 52, 80 -Determination unit, 53-Learning unit, 54, 81, 90, 100-Evaluation unit, 55-Update unit, 56, 82, 91, 101-Correction processing unit, 60, 61, 65A, 65B, 70, 75, 83, 85A, 85B, 92, 95, 102, 105-Table, 110-Receiving unit, 111-Inquiry screen, 112-Message, 113-"Yes" button, 114-"No" button, DX-Horizontal movement amount of the frame, DY-Vertical movement amount of the frame, L(TN, PN)-Loss function, WK-Weighting coefficient of each category, F(TK, PK)-Loss value of each category, TK-Correct answer value of each category, PK-Prediction value of each category, ST100~ST180-Steps.

Claims

1. A small batch learning device, which provides small batch data to a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image in pixel units for training, the small batch learning device comprising: a calculation unit, which calculates the area ratio of each of the multiple categories in the small batch data; a determination unit, which determines a calibration object category according to the area ratio; and An evaluation unit evaluates the classification accuracy of the machine learning model by calculating a loss value for each of the multiple categories using a loss function, and the evaluation unit includes a correction processing unit that performs correction processing for correcting the first loss value based on a comparison result of a first loss value of the correction object category and a second loss value of a category other than the correction object category.

2. The small batch learning device according to claim 1, wherein: The determination unit determines the rare class whose area ratio is lower than a preset value as the correction target class, The correction processing unit performs, as the correction processing, processing of making a weight on the first loss value larger than a weight on the second loss value.

3. The small batch learning device according to claim 1 or 2, wherein: The determination unit determines the non-rare category whose area ratio is higher than a preset value as the correction target category, The correction processing unit performs, as the correction processing, processing of making a weight on the first loss value smaller than a weight on the second loss value.

4. The small batch learning device according to claim 1, wherein: The determination unit determines the rare class whose area ratio is lower than a set value as the correction target class, The correction processing unit performs, as the correction processing, an amplification process to make a correct answer value and a predicted value when calculating the first loss value larger than a correct answer value and a predicted value when calculating the second loss value.

5. The small batch learning device according to claim 4, wherein: The correction processing unit sets an enlargement rate in the enlargement processing so that the area ratio of the rare class in the small batch data is the same as the area ratio of the rare class in the learning input image and the annotation image which are the sources of the small batch data.

6. The small batch learning device according to claim 1 or 4, wherein: The determination unit determines the non-rare class having the area ratio higher than a set value as the correction target class, The correction processing unit performs, as the correction processing, a reduction processing to make a correct answer value and a predicted value when calculating the first loss value smaller than a correct answer value and a predicted value when calculating the second loss value.

7. The small batch learning device according to claim 6, wherein: The correction processing unit sets the reduction rate in the reduction processing to a value such that the area ratio of the non-rare class in the small batch data is the same as the area ratio of the non-rare class in the learning input image and the annotation image which are the sources of the small batch data.

8. The small batch learning device according to claim 1, comprising: A receiving unit receives a selection instruction for causing the correction processing unit to execute the correction processing.

9. A computer-readable storage medium storing a working program of a small batch learning device, wherein the small batch learning device is configured to train a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image by pixel unit by assigning small batch data, wherein the working program of the small batch learning device causes a computer to perform the following functions: a calculation unit, which calculates the area ratio of each of the multiple categories in the small batch data; a determination unit, which determines a calibration object category according to the area ratio; and An evaluation unit, which evaluates the classification accuracy of the machine learning model by calculating a loss value for each of the multiple categories using a loss function, and the evaluation unit includes a correction processing unit that performs correction processing for correcting the first loss value based on a comparison result of a first loss value of the correction object category and a second loss value of a category other than the correction object category.

10. A method for operating a small batch learning device, wherein the small batch learning device provides small batch data to a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image in pixel units for training, the method comprising: A calculation step, calculating the area ratio of each of the multiple categories in the small batch data; a determination step, determining a calibration object category according to the area ratio; and An evaluation step, which evaluates the classification accuracy of the machine learning model by calculating a loss value for each of the multiple categories using a loss function, and the evaluation step includes a correction processing step of performing a correction processing of correcting the first loss value based on a comparison result of a first loss value of the correction object category and a second loss value of a category other than the correction object category.