Small batch learning device and its working procedure and working method

By calculating and adjusting the category area ratio in mini-batch data, the problem of low discrimination accuracy of rare categories caused by category deviation in mini-batch learning is solved, and higher discrimination accuracy is achieved.

CN113196335BActive Publication Date: 2024-08-30FUJIFILM CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201980082352.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-29
Publication Date
2024-08-30
Estimated Expiration
2039-10-29

AI Technical Summary

Technical Problem

In small-batch learning, due to the category deviation 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, the rare categories are determined, and data in which the area ratio of the rare categories in the small batch of data is greater than 25% of the initial ratio is generated to ensure that the model handles the rare categories in a balanced manner during training.

Benefits of technology

It effectively suppresses the decrease in category discrimination accuracy of the model, improves the discrimination accuracy of rare categories, and avoids low accuracy problems caused by category deviation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113196335B_ABST
    Figure CN113196335B_ABST
Patent Text Reader

Abstract

The present invention provides a small batch learning device and its working procedure and working method. The small batch learning device gives small batch data to a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image by pixel unit for training. The small batch learning device includes a calculation unit, a determination unit and a generation unit. The calculation unit calculates the first area ratio of each of multiple categories in the learning input image and the annotation image, which are the source of the small batch data, relative to the area of ​​the entire annotation image. The determination unit determines the rare category whose first area ratio is lower than the first set value. The generation unit generates small batch data from the learning input image and the annotation image. The generation unit generates small batch data in which the second area ratio of the rare category in the small batch data is greater than the second set value of the first area ratio calculated in the calculation unit.
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 Japanese Patent Publication No. 2017-107386, a learning input image that serves as the source of the annotation image is extracted from multiple learning input images. Summary of the invention

[0004] Technical issues to be solved by the invention

[0005] 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.

[0006] 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 an image showing a cell culture state under a phase contrast microscope, 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.

[0007] 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.

[0008] In Japanese Patent Publication No. 2017-107386, 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 rare classes is eventually created. Therefore, the method described in Japanese Patent Publication No. 2017-107386 cannot solve the problem of creating a model with low discrimination accuracy for rare classes.

[0009] 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.

[0010] Means for solving technical problems

[0011] 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 first area ratio of each of multiple categories in the learning input image and the annotation image that serve as the source of the small batch data, relative to the area of ​​the entire annotation image; a determination unit, which determines the rare category whose first area ratio is lower than the first set value; and a generation unit, which generates small batch data from the learning input image and the annotation image, and generates small batch data in which the second area ratio of the rare category in the small batch data is greater than the second set value of the first area ratio calculated in the calculation unit.

[0012] Preferably, the generating unit includes a receiving unit configured to receive a selection instruction for performing a process of generating small batch data having a second area ratio equal to or greater than a second set value.

[0013] Preferably, the generating unit generates a plurality of small batch data according to a certain rule, and selects small batch data having a second area ratio greater than or equal to a second set value from among the plurality of small batch data generated according to the certain rule for use in training.

[0014] Preferably, the generating unit detects uniform distribution areas and non-uniform distribution areas of the rare class in the annotation image, and makes the number of cuts of images from which the small batch data is derived greater for the uniform distribution areas than for the non-uniform distribution areas.

[0015] 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 using pixel units for training, and the working procedure of the small batch learning device enables the computer to perform the following functions: a calculation unit calculates the first area ratio of each of multiple categories in the learning input image and the annotation image that serve as the source of the small batch data relative to the area of ​​the entire annotation image; a determination unit determines the rare category whose first area ratio is lower than the first set value; and a generation unit generates small batch data from the learning input image and the annotation image, and generates small batch data in which the second area ratio of the rare category in the small batch data is greater than the second set value of the first area ratio calculated in the calculation unit.

[0016] 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 using pixel units for training, and the working method of the small batch learning device comprises: a calculation step of calculating the first area ratio of each of multiple categories in the learning input image and the annotation image that serve as the source of the small batch data relative to the area of ​​the entire annotation image; a determination step of determining the rare categories whose first area ratio is lower than the first set value; and a generation step of generating small batch data from the learning input image and the annotation image, and generating small batch data in which the second area ratio of the rare categories in the small batch data is greater than the second set value of the first area ratio calculated in the calculation step.

[0017] Effects of the Invention

[0018] 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

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

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

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

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

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

[0024] 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.

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

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

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

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

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

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

[0031] Fig.13 This is a diagram showing a second embodiment of inquiring whether to cause a generating unit to perform processing for generating small batch data having a second area ratio equal to or greater than a second set value.

[0032] Fig.14 This is a diagram showing a third implementation method of selecting small-batch data having a second area ratio greater than or equal to a second set value from a plurality of small-batch data generated according to a certain rule for use in training.

[0033] Fig.15 This is a diagram showing a fourth embodiment in which the number of cutouts of images serving as small batch data sources for evenly distributed regions of rare classes in an annotation image is made larger than the number of cutouts of images for non-evenly distributed regions. DETAILED DESCRIPTION

[0034] [First embodiment]

[0035] 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.

[0036] 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.

[0037] The classification accuracy of the model 10 is improved by training the model 10 by giving learning data to the model 10, thereby 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 checking 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 becomes.

[0038] 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.

[0039] 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. In this way, 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 these segmentation learning input image groups 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.

[0040] like Figure 2As shown, the model 10 that improves the classification accuracy of the category 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.

[0041] like Figure 3 As shown in A, the learning input image 20 in this example is an image showing the cell culture state under a phase contrast microscope. 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, the differentiated cells of category 1, the undifferentiated cells of category 2, the culture medium of category 3, and the 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 an image showing the cell culture state under a phase contrast microscope.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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 .

[0046] 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 through 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. In addition, a solid-state drive can be used instead of a hard disk drive.

[0047] 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.

[0048] 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.

[0049] exist Fig. 9 In the embodiment, the storage device 30 stores the input image 20 for learning, the annotation image 21, the input image 20S for segmentation learning, the segmentation annotation image 21S, and the model 10. In addition, the storage device 30 stores the working program 40 as an application program. The working program 40 is an application program for causing the computer to function as the small batch learning device 2. That is, the working program 40 is an example of the “working program of the small batch learning device” involved in the technology of the present invention.

[0050] When the operation program 40 is started, the CPU 32 and the memory 31 etc. of the computer constituting the small batch learning device 2 cooperate to function as a calculation unit 50 , a determination unit 51 , a generation unit 52 , a learning unit 53 , an evaluation unit 54 , and an update unit 55 .

[0051] The calculation unit 50 calculates the first area ratio of each of the multiple categories relative to the area of ​​the entire annotation image 21. More specifically, the calculation unit 50 reads the annotation image 21 from the storage device 30. Then, the number of pixels of the area manually specified in the annotation image 21 is added for each category. Next, the added number of pixels is divided by the total number of pixels of the annotation image 21, thereby calculating the first area ratio. For example, when the added number of pixels of the area designated as the differentiated cells of category 1 is 10,000 and the total number of pixels is 50,000, the first area ratio of the differentiated cells of category 1 is (10,000 / 50,000)×100=20%. The calculation unit 50 outputs the calculated first area ratio to the determination unit 51.

[0052] The identification unit 51 identifies a rare class whose first area ratio is lower than a first set value. The identification unit 51 outputs the identified rare class to the generation unit 52.

[0053] The generating unit 52 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 7The generator 52 generates a plurality of (e.g., 100) sets of small batch data 11 by selecting a portion thereof as shown. When the determination unit 51 determines that there is a rare class, the generator 52 designs a method for selecting the input image 20S for segmentation learning and the segmentation annotation image 21S, thereby generating a small batch data 11 in which the second area ratio is greater than the second set value greater than the first area ratio. On the other hand, when the determination unit 51 does not determine that there is a rare class, the generator 52 generates the small batch data 11 without being restricted as described above. The generator 52 outputs the generated small batch data 11 to the learning unit 53 and the evaluation unit 54.

[0054] Here, the second area ratio is the area ratio of the rare category in a set of small batch data 11. In addition, the design of the selection method of the segmentation learning input image 20S and the segmentation annotation image 21S when the determination unit 51 determines that there is a rare category is, for example, to give priority to the segmentation learning input image 20S and the segmentation annotation image 21S in which the object of the rare category appears larger. A method of adding an option for setting the second area ratio of the rare category of the small batch data 11 to the segmentation learning input image 20S and the segmentation annotation image 21S that is greater than the second set value can also be performed. Specifically, the segmentation learning input image 20S and the segmentation annotation image 21S in which the object of the rare category appears larger are subjected to image processing such as trimming, left-right flipping, and rotation to create another image, thereby setting it as a new option for the small batch data 11. This method is called data enhancement.

[0055] The learning unit 53 provides the segmentation learning input image group 12 of the mini-batch data 11 from the generating unit 52 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 .

[0056] The evaluation unit 54 compares the segmented annotation image group 13 of the mini-batch data 11 from the generation unit 52 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 .

[0057] The evaluation unit 54 uses a loss function to evaluate the classification accuracy of the model 10. The loss function is a function that indicates the degree of difference between the segmented annotation image group 13 and the learning output image group 14. The closer the calculated value of the loss function is to 0, the higher the classification accuracy of the model 10 is.

[0058] 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.

[0059] Fig.10 and Fig.11 Specific examples of the processing of the calculation unit 50, the determination unit 51, and the generation unit 52 are shown. Fig.10 As shown in Table 60, the calculation unit 50 calculates the first area ratio of each category. Fig.10 The examples shown are as follows: the first area ratio of differentiated cells in category 1 is 38%, the first area ratio of undifferentiated cells in category 2 is 2%, the first area ratio of culture medium in category 3 is 40%, and the first area ratio of dead cells in category 4 is 20%.

[0060] The identification unit 51 identifies a rare class whose first area ratio is lower than a first set value. Fig.10 The following example is shown: since the first set value is less than 5%, the undifferentiated cells of category 2 whose first area ratio is 2% and lower than the first 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 whose first area ratios are lower than the first set value, of course, multiple categories are determined as rare categories.

[0061] Then, in Fig.11 As shown in Table 61, the generator 52 generates the small batch data 11 in which the second area ratio of the rare category in the small batch data 11 is greater than or equal to the second set value of the first area ratio calculated by the calculator 50. Fig.11 In the example, since the second setting value is greater than 25%, the second area ratio of the undifferentiated cells of category 2, which is a rare category, is set to 25% in each small batch data 11. In addition, the second area ratios of the categories other than the undifferentiated cells of category 2, which is a rare category, are also set to 25%. In addition, Fig.10 The first setting value and Fig.11 The second setting value shown is only an example. The second setting value only needs to be greater than the first area ratio of the rare category, and in the above example, greater than 2%. In addition, there is no particular restriction on the second area ratio of categories other than the rare category, so it is not necessary to set the value to 25% as described above.

[0062] Next, refer to Fig.12The flowchart shown in the figure illustrates the effect 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 55 .

[0063] like Fig.10 As shown in Table 60, the calculation unit 50 calculates the first area ratio of each category (step ST100, calculation step). Fig.10 As shown, the identification unit 51 identifies a rare class whose first area ratio is lower than a first set value (step ST110 , identification step).

[0064] When it is determined in the determination unit 51 that there is a rare class ("Yes" in step ST120), Fig.11 As shown in Table 61 , the generating unit 52 generates small batch data 11 in which the second area ratio of the rare class is equal to or greater than the second set value (step ST130 , generating step).

[0065] When the determination unit 51 determines that there is a rare class, there is a class deviation in the learning input image 20 and the annotation image 21. If there is a class deviation in the learning input image 20 and the annotation image 21, when the small batch data 11 is generated without any restrictions, there is a high possibility that a class deviation will also occur in the small batch data 11. Therefore, as a result, the model 10 with low discrimination accuracy for rare classes is created.

[0066] However, in the present embodiment, as described above, when the determination unit 51 determines that there is a rare class, the generation unit 52 generates the small batch data 11 in which the second area ratio of the rare class is greater than or equal to the second set value. Thus, even when there is a class deviation in the learning input image 20 and the annotation image 21, there is no class deviation in the small batch data 11. Thus, it is possible to avoid creating a model 10 with low discrimination accuracy for a rare class, and to suppress a decrease in the discrimination accuracy of the class of the model 10.

[0067] On the other hand, when the identification unit 51 does not identify a rare class, the generation unit 52 generates the small batch data 11 without any particular restriction (step ST140 , generation step).

[0068] In the learning unit 53, the segmentation learning input image group 12 of the small batch data 11 from the generating unit 52 is given to the model 10 for training (step ST150). Then, in the evaluation unit 54, the learning output image group 14 output from the model 10 and the segmentation annotation image group 13 of the small batch data 11 from the generating unit 52 are compared as described above, and the class discrimination accuracy of the model 10 is evaluated (step ST160).

[0069] If it is determined that the classification accuracy of the model 10 has reached the desired level based on the evaluation result of the evaluation unit 54 ("Yes" in step ST170), the small batch learning is terminated. On the other hand, if it is determined that the classification accuracy of the model 10 has not reached the desired level ("No" in step ST170), the updating unit 55 updates the model 10 (step ST180). Then, the process returns to step ST150, another set of small batch data 11 is assigned to the model 10, and the subsequent steps are repeated.

[0070] [Second embodiment]

[0071] exist Fig.13 In the second embodiment shown, an inquiry is made as to whether or not to cause the generating unit 52 to perform processing for generating the small batch data 11 having the second area ratio equal to or greater than the second set value.

[0072] exist Fig.13 In the small batch learning device of the second embodiment, the CPU functions as a receiving unit 65 in addition to the processing units 50 to 55 of the first embodiment. When the determining unit 52 determines that there is a rare class, the receiving unit 65 receives a selection instruction of whether to cause the generating unit 52 to generate small batch data 11 having a second area ratio greater than or equal to a second set value.

[0073] In the second embodiment, when the determination unit 52 determines that there is a rare category, an inquiry screen 66 is displayed on the display 34. On the inquiry screen 66, a message 67 indicating that there is a rare category and inquiring whether or not to generate the small batch data 11 whose second area ratio is greater than the second set value, a "yes" button 68, and a "no" button 69 are displayed. The receiving unit 65 receives the selection instructions of the "yes" button 68 and the "no" button 69 as selection instructions for whether to perform the process of generating the small batch data 11 whose second area ratio is greater than the second set value. When the "yes" button 68 is selected, the process of generating the small batch data 11 whose second area ratio is greater than the second set value is performed in the generating unit 52. On the other hand, when the "no" button 69 is selected, the process of generating the small batch data 11 whose second area ratio is greater than the second set value is not performed in the generating unit 52.

[0074] 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, although the determination unit 52 determines that there is a rare category, there may be a case where the small batch data 11 having the second area ratio greater than the second set value may not be generated.

[0075] Therefore, in the second embodiment, the receiving unit 65 receives a selection instruction of whether to cause the generating unit 52 to generate the small batch data 11 having the second area ratio being equal to or greater than the second set value. Thus, it is possible to cope with a situation where the determining unit 52 determines a rare class but does not generate the small batch data 11 having the second area ratio being equal to or greater than the second set value.

[0076] [Third Embodiment]

[0077] exist Fig.14 In the third embodiment shown, a plurality of small batch data 11 are generated according to a certain rule. Then, among the plurality of small batch data 11 generated according to the certain rule, small batch data 11 having a second area ratio greater than or equal to a second set value are selected for training.

[0078] exist Fig.14 In Figure 4 and Figure 5 As shown, the generation unit 75 of the third embodiment moves the frame 25 according to a certain rule (moves DX in sequence in the horizontal direction and DY in sequence in the vertical direction) to generate the input image 20S for segmentation learning and the segmentation annotation image 21S. In addition, the generation unit 75 generates the input image group 12 for segmentation learning and the segmentation annotation image group 13 from the input image 20S for segmentation learning and the segmentation annotation image 21S according to a certain rule. In the first embodiment, the small batch data 11 having the second area ratio greater than the second set value is generated by designing a selection method for the input image 20S for segmentation learning and the segmentation annotation image 21S, but in the third embodiment, such a selection method is not designed and the small batch data 11 is generated according to a certain rule.

[0079] The generating unit 75 selects the small batch data 11 having the second area ratio equal to or greater than the second set value from among the plurality of small batch data 11 generated in accordance with the predetermined rule, and uses the small batch data 11 for training.

[0080] Table 76 shows the second area ratio of each category of the plurality of small batch data 11 generated by the generating unit 75 according to a certain rule. Fig.10 Similarly, the case where the undifferentiated cells of category 2 are determined as rare categories is exemplified. Also, the case where the second setting value is 25% or more as in the first embodiment is exemplified. In this case, the small batch data 11 of No. 2 has the second area ratio of the undifferentiated cells of category 2, which is a rare category, being greater than the second setting value. Therefore, as shown in Table 77, the generator 75 selects the small batch data 11 of No. 2 as the small batch data 11 to be given to the learner 53.

[0081] Thus, in the third embodiment, the generating unit 75 generates a plurality of small batches of data 11 according to a certain rule, and selects the small batches of data 11 whose second area ratio is greater than or equal to the second set value from among the plurality of small batches of data 11 generated according to the certain rule for training. Thus, by designing a method for selecting the segmentation learning input image 20S and the segmentation annotation image 21S, the trouble of generating the small batches of data 11 whose second area ratio is greater than or equal to the second set value can be omitted.

[0082] [Fourth embodiment]

[0083] exist Fig.15 In the fourth embodiment shown, evenly distributed areas and non-evenly distributed areas of rare categories are detected in the annotation image 21. Then, the number of cuts of the image that becomes the source of the small batch data 11 in the evenly distributed area is made larger than the number of cuts of the non-evenly distributed area. Here, the image that becomes the source of the small batch data 11 is the segmented annotation image 21S.

[0084] exist Fig.15 In the fourth embodiment, the generating unit detects the uniform distribution area 80 and the non-uniform distribution area 81 of the rare category in the annotation image 21. As a detection method of the uniform distribution area 80, first, the annotation image 21 is divided into a plurality of areas, and the area ratio of the rare category in each area is calculated. Next, the average AVE and the standard deviation σ of the area ratio of each area calculated are obtained. Then, the area where the area ratio of the rare category exceeds AVE+3σ, for example, is detected as the uniform distribution area 80.

[0085] The generation unit makes the number of cuts of the segmented annotation image 21S greater for the uniform distribution region 80 detected as described above than the number of cuts for the non-uniform distribution region 81. Fig.15 About Figure 4 and Figure 5 The movement amount of the frame 25 shown is such that the movement amounts DX_A and DY_A of the uniform distribution region 80 are smaller than the movement amounts DX_B and DY_B of the non-uniform distribution region 81 , so that the number of cutouts of the segmented annotation images 21S of the uniform distribution region 80 is greater than that of the non-uniform distribution region 81 .

[0086] Thus, in the fourth embodiment, the generating unit detects the uniform distribution region 80 and the non-uniform distribution region 81 of the rare category in the annotation image 21, and makes the number of cuts of the image that is the source of the small batch data 11 of the uniform distribution region 80 greater than the number of cuts of the non-uniform distribution region 81. Thus, the small batch data 11 whose second area ratio is equal to or greater than the second set value can be easily generated.

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

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

[0089] 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 and reliability, the small batch learning device 2 can be constituted by a plurality of separate computers as hardware. Specifically, three computers are made to disperse the functions of the calculation unit 50 and the determination unit 51, the functions of the generation unit 52 and the learning unit 53, and the functions of the evaluation unit 54 and the update unit 55. In this case, the small batch learning device 2 is constituted by three computers.

[0090] 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 and reliability, application programs such as the work program 40 can of course be duplicated or stored in multiple storage devices.

[0091] In each of the above-mentioned embodiments, various processors (Processors) shown below can be used as the hardware structure of the processing unit (Processing Unit) that performs various processes, such as the calculation unit 50, the determination unit 51, the generation unit 52, 75, the learning unit 53, the evaluation unit 54, the update unit 55, and the receiving unit 65. Among the various processors, as described above, in addition to the general-purpose processor CPU32 that executes the software (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 with circuit structures specially designed for performing specific processes, such as dedicated circuits.

[0092] A processing unit may be composed of one of these various processors, or a combination of two or more processors of the same type or different types (for example, a combination of multiple FPGAs and / or a combination of a CPU and an FPGA). Furthermore, multiple processing units may be composed of one processor.

[0093] 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 constituted using one or more of the above-mentioned various processors.

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

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

[0096] [Additional item 1]

[0097] 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:

[0098] a calculation processor that calculates a first area ratio of each of the plurality of categories relative to an area of ​​the entire annotation image in a learning input image and an annotation image that are sources of the mini-batch data;

[0099] A determination processor determines a rare category in which the first area ratio is lower than a first set value; and

[0100] A generation processor generates the small batch data from the learning input image and the annotation image, and generates the small batch data in which the second area ratio of the rare category in the small batch data is greater than the second set value of the first area ratio calculated in the calculation processor.

[0101] The technology of the present invention can also appropriately combine the above-mentioned various embodiments and 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.

[0102] The recorded contents and illustrated contents shown above are detailed descriptions of the parts involved in the technology of the present invention, and are only an example of the technology of the present invention. For example, the descriptions related to the above-mentioned structure, function, action and effect are descriptions related to an example of the structure, function, action and effect of the parts involved in the technology of the present invention. Therefore, without departing from the scope of the main purpose of the technology of the present invention, it is of course possible to delete unnecessary parts of the recorded contents and illustrated contents shown above, or to add new elements, or to replace them. In addition, in order to avoid complication and to make it easy to understand the parts involved in the technology of the present invention, in the recorded contents and illustrated contents shown above, descriptions related to technical common sense, etc. that do not need to be specially explained in terms of the implementation of the technology of the present invention are omitted.

[0103] In this specification, "A and / or B" has the same meaning as "at least one of A and B". That is, "A and / or B" means that there may be only A, only B, or a combination of A and B. Furthermore, in this specification, when "and / or" is used to express three or more items in combination, the same concept as "A and / or B" may also be applied.

[0104] All documents, patent applications, and technical standards described in this specification are incorporated herein by reference to the same extent as if each individual document, patent application, or technical standard was specifically and individually indicated to be incorporated by reference.

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 that calculates a first area ratio of each of the plurality of categories relative to an area of ​​the entire annotation image in a learning input image and an annotation image that are sources of the small batch data; a determination unit that determines a rare category whose first area ratio is lower than a first set value; and A generating unit generates the small batch data from the learning input image and the annotation image, and generates the small batch data in which the second area ratio of the rare category in the small batch data is greater than a second set value of the first area ratio calculated in the calculating unit.

2. The small batch learning device according to claim 1, wherein: The generating unit includes a receiving unit configured to receive a selection instruction for performing a process of generating the small batch data having the second area ratio being equal to or greater than the second set value.

3. The small batch learning device according to claim 1, wherein: The generating unit generates the plurality of small batch data according to a certain rule, and selects the small batch data whose second area ratio is greater than or equal to the second set value from among the plurality of small batch data generated according to the certain rule for use in the training.

4. The small batch learning device according to any one of claims 1 to 3, wherein: The generating unit detects a uniform distribution region and a non-uniform distribution region of the rare class in the annotation image, and makes the number of cuts of the image to be the source of the small batch data in the uniform distribution region greater than the number of cuts in the non-uniform distribution region.

5. A computer-readable storage medium storing a working program of a small batch learning device, wherein the small batch learning device is used to train a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image by pixel unit by giving small batch data, wherein the working program of the small batch learning device enables a computer to perform the following functions: a calculation unit that calculates a first area ratio of each of the plurality of categories relative to an area of ​​the entire annotation image in a learning input image and an annotation image that are sources of the small batch data; a determination unit that determines a rare category whose first area ratio is lower than a first set value; and A generating unit generates the small batch data from the learning input image and the annotation image, and generates the small batch data in which the second area ratio of the rare category in the small batch data is greater than a second set value of the first area ratio calculated in the calculating unit.

6. A method for operating a small batch learning device, wherein the small batch learning device provides small batches of 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 of calculating a first area ratio of each of the plurality of categories relative to the area of ​​the entire annotation image in the learning input image and the annotation image that are sources of the small batch data; A determination step of determining a rare category whose first area ratio is lower than a first set value; and A generation step is to generate the small batch data from the learning input image and the annotation image, and generate the small batch data in which the second area ratio of the rare category in the small batch data is greater than the second set value of the first area ratio calculated in the calculation step.

Citation Information

Patent Citations

  • Instance selection device, classification device, method, and program

    JP2017107386A

  • Image filtering method and device

    CN102521610A

  • 3D Saliency map

    EP3073443A1