Small batch learning device and its working procedure, working method and image processing device
By calculating the area ratio in mini-batch data and reducing the update degree of rare categories, the problem of low discrimination accuracy caused by category bias in mini-batch learning is solved, and the overall accuracy of the semantic segmentation model is improved.
Patent Information
- Application Number
- CN201980081724.4
- 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
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.
By calculating the area ratio of each category in the small batch data, we determine the rare categories whose area ratio is lower than the set value, and reduce the update degree of rare categories when the model is updated to ensure that the model avoids errors in the presence of category bias. Excessive updates.
It effectively suppresses the decrease in category discrimination accuracy of the semantic segmentation model, avoids the problem of low discrimination accuracy of rare categories due to category deviation, and improves the overall discrimination accuracy of the model.
Smart Images

Figure CN113168713B_ABST
Abstract
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 a source of an 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 and its working procedure, working method, and an image processing device equipped with the small-batch learning device and its working procedure, which 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 category in multiple categories in the small batch data; a determination unit, which determines the rare category whose area ratio is lower than the set value; and an updating unit, which updates the machine learning model according to the training results using the small batch data, and makes the update degree of the machine learning model when the rare category is determined in the determination unit less than the update degree when the rare category is not determined in the determination unit.
[0015] Preferably, the updating unit makes the learning coefficient representing the variation range of various parameter values of the machine learning model when the determination unit determines that a rare class exists smaller than the learning coefficient when the determination unit does not determine a rare class.
[0016] Preferably, a receiving unit is provided for receiving a selection instruction for causing the updating unit to perform a process of reducing the degree of updating.
[0017] 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 for distinguishing multiple categories in an image using 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 the multiple categories in the small batch data; a determination unit, which determines the rare categories whose area ratios are lower than the set value; and an updating unit, which updates the machine learning model based on the training results using the small batch data, and makes the update degree of the machine learning model when the rare category is determined in the determination unit less than the update degree when the rare category is not determined in the determination unit.
[0018] 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 by 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 the multiple categories in the small batch data; a determination step of determining the rare categories whose area ratio is lower than the set value; and an updating step of updating the machine learning model according to the training results using the small batch data, and making the update degree of the machine learning model when the rare category is determined in the determination step less than the update degree when the rare category is not determined in the determination step.
[0019] Effects of the Invention
[0020] According to the technology of the present invention, it is possible to provide a small-batch learning device and its working procedure, working method and image processing device that can suppress the reduction in category discrimination accuracy of a machine learning model used to implement semantic segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a diagram showing an overview of a small batch learning device and its processing.
[0022] Figure 2 This is a diagram showing an overview of application devices and their processing.
[0023] Figure 3 is a graph representing an image, Figure 3 A represents the input image for learning, Figure 3 B represents the annotated image.
[0024] Figure 4 This is a diagram showing a state in which a segmentation learning input image is generated from a learning input image.
[0025] Figure 5 This is a diagram showing a state where a segmented annotation image is generated from an annotation image.
[0026] Figure 6This is a diagram showing a segmentation learning input image group composed of a part of a plurality of segmentation learning input images.
[0027] Figure 7 This is a diagram showing a segmentation annotation image group composed of a part of a plurality of segmentation annotation images.
[0028] Figure 8 This is a block diagram showing a computer constituting a small batch learning device.
[0029] Fig. 9 This is a block diagram showing a processing unit of a CPU of a small batch learning device.
[0030] Fig.10 It is a diagram showing a specific example of the processing of the calculation unit and the determination unit.
[0031] Fig.11 It is a diagram showing a specific example of the processing of the update unit.
[0032] Fig.12 This is a flowchart showing the processing procedure of the small batch learning device.
[0033] Fig.13 It is a diagram showing a modified example of the processing of the updating unit.
[0034] Fig.14 It is a diagram showing a modified example of the processing of the updating unit.
[0035] Fig.15 It is a diagram showing a second embodiment of inquiring whether to cause the updating unit to perform processing to reduce the degree of updating. DETAILED DESCRIPTION
[0036] [First embodiment]
[0037] 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.
[0038] 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 contour, 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.
[0039] 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 in which a category in the learning input image is manually specified. 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 becomes.
[0040] 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.
[0041] 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.
[0042] like Figure 2 As 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.
[0043] like Figure 3As 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.
[0044] 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.
[0045] Likewise, if Figure 5 As 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 have been prepared in the small batch learning device 2, and the input image 20S for segmented learning and the segmented annotation image 21S have been generated.
[0046] 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.
[0047] exist Figure 8In 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 .
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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 generation unit 50 , a calculation unit 51 , a determination unit 52 , a learning unit 53 , an evaluation unit 54 , and an update unit 55 .
[0053] 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 7As 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.
[0054] 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.
[0055] 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 constituting the segmented annotation image group 13 of 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.
[0056] The determination unit 52 determines the rare class whose area ratio is lower than the set value. The determination unit 52 outputs the determined rare class to the updating unit 55.
[0057] 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 .
[0058] 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 .
[0059] 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.
[0060] The updating unit 55 updates the model 10 based on the evaluation result from the evaluating unit 54. More specifically, the updating unit 55 updates the model 10 by following the learning coefficient η (reference Fig.11 ) to change the various parameter values of the model 10. 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.
[0061] The updating unit 55 makes the updating degree of the model 10 smaller when the determination unit 52 determines that there is a rare class than when the determination unit 52 does not determine the rare class. More specifically, the updating unit 55 makes the learning coefficient ηB smaller than the learning coefficient ηA (ηB<ηA) when the determination unit 52 determines that there is a rare class. For example, the learning coefficient ηA is reduced to 1 / 10 and is set as the learning coefficient ηB.
[0062] Fig.10 and Fig.11 Specific examples of the processing of the calculation unit 51, the determination unit 52, and the update unit 55 are shown. Fig.10 As shown in Table 60 , the calculation unit 51 calculates the area ratio of each category 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.
[0063] 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 less than 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.
[0064] Then, in Fig.11As shown in Table 61, the updating unit 55 sets the learning coefficient ηB1 when the first group of small batch data 11 is determined to have a rare class, which is smaller than the learning coefficient ηA1 when the rare class is not determined. In contrast, in the case of the second group, the third group, and the like of small batch data 11 for which the rare class is not determined, the learning coefficients ηA2 and ηA3 for when the rare class is not determined are maintained. By reducing the learning coefficient η in this way, the updating unit 55 makes the updating degree of the model 10 smaller when the small batch data 11 for which the rare class is determined is determined than the updating degree of the model 10 when the rare class is not determined.
[0065] Next, refer to Fig.12 The flowchart shown in FIG. 1 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 .
[0066] 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 .
[0067] 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.10 As shown, the determination unit 52 determines a rare class whose area ratio is lower than a set value (step ST120, determination step).
[0068] In the learning unit 53, the segmentation learning input image group 12 of the small batch data 11 from the generating unit 50 is given to the model 10 for training (step ST130). 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 50 are compared as described above, and the classification accuracy of the model 10 is evaluated (step ST140).
[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 ST150), 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 ST150), the process is transferred to step ST160.
[0070] 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 ST160), Fig.11As shown in Table 61, the updating unit 55 updates the model 10 with a smaller update degree than when there is no rare class (step ST170, updating 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 ST160), the update degree is not reduced, but the model 10 is updated with a normal update degree (step ST180, updating step). After steps ST170 and ST180, 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.
[0071] 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 learning frequency of the rare class is relatively low compared to other classes. After such biased training, when the model 10 is updated in the updating unit 55 without any restrictions, the result of the biased training has a great influence on the model 10. As a result, a model 10 with low discrimination accuracy for the rare class is created.
[0072] However, in the present embodiment, as described above, the degree of updating of the model 10 in the updating unit 55 when the determination unit 52 determines that there is a rare class is smaller than the degree of updating when the determination unit 52 does not determine the rare class. Thus, when there is a class deviation in the small batch data 11, the model 10 is hardly updated, and the training result using the small batch data 11 having a class deviation does not have a great influence on the model 10. Thus, it is possible to avoid creating a model 10 with low discrimination accuracy for rare classes, and to suppress a decrease in the discrimination accuracy of the class of the model 10.
[0073] In addition, the greater the number of rare categories determined, the greater the degree of reducing the updating degree of the model 10. For example, Fig.13 As shown in Table 65, the learning coefficient ηB10 for the 10th group of small batch data 11 with two rare categories is set to 1 / 100 of the learning coefficient ηA10 when the rare category is not determined (ηB10=ηA10×0.01). On the other hand, the learning coefficient ηB11 for the 11th group of small batch data 11 with only one rare category is set to 1 / 10 of the learning coefficient ηA11 when the rare category is not determined (ηB11=ηA11×0.1). It can be considered that the more rare categories are determined, the greater the category deviation of the small batch data 11, so the reduction in the classification accuracy of the category of the model 10 can be further suppressed.
[0074] Likewise, the smaller the area ratio is, the more the degree of reducing the updating degree of the model 10 can be increased. Fig.14As shown in Table 66, when the area ratio is greater than 0% and less than 2.5%, as in the 20th group of small batch data 11, the learning coefficient ηA20 is reduced to 1 / 100 and is set to the learning coefficient ηB20 (ηB20=ηA20×0.01). On the other hand, when the area ratio is greater than 2.5% and less than 5%, as in the 21st group of small batch data 11, the learning coefficient ηA21 is reduced to 1 / 10 and is set to the learning coefficient ηB21 (ηB21=ηA21×0.1). In this case, Fig.13 Similarly, it can be considered that the smaller the area ratio, the greater the category deviation of the small batch data 11, so the reduction in the category discrimination accuracy of the model 10 can be further suppressed.
[0075] [Second embodiment]
[0076] exist Fig.15 In the second embodiment shown, an inquiry is made as to whether or not to cause the updating unit 55 to perform processing to reduce the degree of updating.
[0077] exist Fig.15 In the small batch learning apparatus of the second embodiment, the CPU functions as a receiving unit 70 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 70 receives a selection instruction of whether to cause the updating unit 55 to perform a process of reducing the degree of update.
[0078] In the second embodiment, when the determination unit 52 determines that there is a rare category, the inquiry screen 71 is displayed on the display 34. The inquiry screen 71 displays a message 72 indicating that there is a rare category, a message asking whether the update degree of the model 10 can be reduced, a "yes" button 73, and a "no" button 74. The receiving unit 70 receives the selection instructions of the "yes" button 73 and the "no" button 74 as a selection instruction for whether to make the update unit 55 perform a process of reducing the update degree. When the "yes" button 73 is selected, the update unit 55 performs a process of reducing the update degree. On the other hand, when the "no" button 74 is selected, the update unit 55 does not perform a process of reducing the update degree.
[0079] 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 updating degree of the model 10 may not be reduced.
[0080] Therefore, in the second embodiment, the receiving unit 70 receives a selection instruction of whether or not the updating degree of the model 10 may be reduced. This can cope with a case where the updating degree of the model 10 may not be reduced even though the specifying unit 52 specifies that there is a rare class.
[0081] 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.
[0082] Model 10 is not limited to U-Net, but can also be other convolutional neural networks, such as SegNet.
[0083] As a method of reducing the degree of updating of the model 10, a method other than the method of reducing the learning coefficient η may be adopted.
[0084] 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.
[0085] 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.
[0086] 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 generating unit 50, the calculating unit 51, the determining unit 52, the learning unit 53, the evaluating unit 54, the updating unit 55, and the receiving unit 70. Among the various processors, as described above, in addition to the general-purpose processor, i.e., CPU, 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, i.e., programmable logic devices (PLD), ASIC (Application Specific Integrated Circuit), etc., which have a circuit structure specially designed for performing specific processing, i.e., dedicated circuits, etc.
[0087] 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.
[0088] 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.
[0089] Furthermore, as the hardware configuration of these various processors, more specifically, a circuit combining circuit elements such as semiconductor elements can be used.
[0090] Based on the above description, the invention described in the following additional claim 1 can be understood.
[0091] [Additional item 1]
[0092] 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:
[0093] A calculation processor calculates the area ratio of each of the multiple categories in the small batch data;
[0094] A determination processor determines a rare category whose area ratio is lower than a set value; and
[0095] An update processor updates the machine learning model according to the training result using the small batch data, and makes the update degree of the machine learning model when the rare category is determined in the determination processor less than the update degree when the rare category is not determined in the determination processor.
[0096] The technology of the present invention may also appropriately combine the above-mentioned various embodiments or various variations. Furthermore, it is not limited to the above-mentioned embodiments, and various structures may 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 a program, but also relates to a storage medium for non-temporary storage of a program, and an image processing device equipped with a learning device or a program.
[0097] Explanation of symbols
[0098] 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 procedure, 50-generation unit, 51-calculation unit, 52-determination unit, 53-learning unit, 54-evaluation unit, 55-update unit, 60, 61, 65, 66-table, 70-receiving unit, 71-inquiry screen, 72-message, 73-"Yes" button, 74-"No" button, DX-lateral movement amount of the frame, DY-vertical movement amount of the frame, η-learning coefficient, 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 rare category whose area ratio is lower than a set value; and An updating unit updates the machine learning model according to the training result using the small batch data, and makes the updating degree of the machine learning model when the rare category is determined in the determining unit less than the updating degree when the rare category is not determined in the determining unit.
2. The small batch learning device according to claim 1, wherein: The updating unit makes the learning coefficient representing the variation range of various parameter values of the machine learning model when the rare class is determined in the determining unit smaller than the learning coefficient when the rare class is not determined in the determining unit.
3. The small batch learning device according to claim 1 or 2, The device includes a receiving unit configured to receive a selection instruction for causing the updating unit to perform a process of reducing the updating degree.
4. 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 batches of 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 rare category whose area ratio is lower than a set value; and An updating unit updates the machine learning model according to the training result using the small batch data, and makes the updating degree of the machine learning model when the rare category is determined in the determining unit less than the updating degree when the rare category is not determined in the determining unit.
5. 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, calculating the area ratio of each category in the plurality of categories in the small batch data; A determination step of determining a rare category whose area ratio is lower than a set value; and An updating step is performed to update the machine learning model according to the training result using the small batch data, and the updating degree of the machine learning model when the rare category is determined in the determining step is smaller than the updating degree when the rare category is not determined in the determining step.
6. An image processing device, which trains a machine learning model for implementing semantic segmentation for distinguishing multiple categories in an image in pixel units by giving small batches of data, the image processing device performing the following steps: Calculating the area ratio of each of the multiple categories in the small batch data; Determining rare categories where the area ratio is below a set value; and The updating degree of the machine learning model when the rare category is determined is made smaller than the updating degree when the rare category is not determined.
