# US 2021/0287052 A1 · Mini-batch learning apparatus, operation program of mini-batch learning apparatus, and operation method of mini-batch learning apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287052 A1
- Document ID: US20210287052A1
- Status: Published application
- Kind: A1
- Application number: 17/336,846
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2018-12-14
- Assignees: FUJIFILM Corporation
- Applicants: FUJIFILM Corporation
- Inventors: Takashi WAKUI
- Web page: https://patentgrep.com/patent/US20210287052A1

## CPC

- G06T 7/11: Region-based segmentation
- G06F 18/2155: {characterised by the incorporation of unlabelled data, e.g. multiple instance learning [MIL], semi-supervised techniques using expectation-maximisation [EM] or naïve labelling}
- G06F 18/2193: {based on specific statistical tests}
- G06F 18/241: relating to the classification model, e.g. parametric or non-parametric approaches
- G06F 18/2431: Multiple classes
- G06N 20/00: Machine learning
- G06T 7/62: of area, perimeter, diameter or volume
- G06V 10/772: Determining representative reference patterns, e.g. averaging or distorting patterns; Generating dictionaries
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/7747: {Organisation of the process, e.g. bagging or boosting}
- G06V 10/776: Validation; Performance evaluation
- G06V 20/69: Microscopic objects, e.g. biological cells or cellular parts
- G06V 20/695: {Preprocessing, e.g. image segmentation}
- G06V 20/698: {Matching; Classification}
- G06T 2207/10056: Microscopic image
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30024: Cell structures in vitro; Tissue sections in vitro
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

In a case where the operation program is started, a CPU of the mini-batch learning apparatus functions as a calculation unit, a specifying unit, and an evaluation unit. The calculation unit calculates an area ratio of each of a plurality of classes in mini-batch data. The specifying unit specifies, as a correction target class, a rare class of which the area ratio is lower than a setting value. The evaluation unit evaluates the class determination accuracy of the machine learning model by using a loss function. As correction processing, the evaluation unit sets a weight for a loss value of the rare class to be larger than a weight for a loss value of a class other than the rare class.

## Claims

### Claim 1

A mini-hatch learning apparatus that learns a machine learning model for performing semantic segmentation, which determines a plurality of classes in an image in units of pixels, by inputting mini-batch data to the machine learning model, the apparatus comprising:
a calculation unit that calculates an area ratio of each of the plurality of classes in the mini-batch data;
a specifying unit that specifies a correction target class based on the area ratio; and
an evaluation unit that evaluates a determination accuracy of the class of the machine learning model by calculating a loss value for each of the plurality of classes using a loss function and includes a correction processing unit which executes correction processing of correcting a first loss value of the correction target class based on a comparison result of the first loss value and a second loss value of a class other than the correction target class.

### Claim 2 (depends on 1)

The mini-batch learning apparatus according to claim 1, wherein
the specifying unit specifies, as the correction target class, a rare class of which the area ratio is lower than a setting value which is set in advance, and
the correction processing unit executes, as the correction processing, processing of setting a weight for the first loss value to be larger than a weight for the second loss value.

### Claim 3 (depends on 1)

The mini-batch learning apparatus according to claim 1, wherein
the specifying unit specifies, as the correction target class, a non-rare class of which the area ratio is higher than a setting value which is set in advance, and
the correction processing unit executes, as the correction processing, processing of setting a weight for the first loss value to be smaller than a weight for the second loss value.

### Claim 4 (depends on 2)

The mini-batch learning apparatus according to claim 2, wherein
the specifying unit specifies, as the correction target class, a non-rare class of which the area ratio is higher than a setting value which is set in advance, and
the correction processing unit executes, as the correction processing, processing of setting a weight for the first loss value to be smaller than a weight for the second loss value.

### Claim 5 (depends on 1)

The mini-batch learning apparatus according to claim 1, wherein
the specifying unit specifies, as the correction target class, a rare class of which the area ratio is lower than a setting value, and.
the correction processing unit executes, as the correction processing, enlargement processing of setting a correct answer value and a predicted value in calculation of the first loss value to be larger than a correct answer value and a predicted value in calculation of the second loss value,

### Claim 6 (depends on 5)

The mini-batch learning apparatus according to claim 5.
wherein the correction processing unit sets an enlargement ratio in the enlargement processing such that the area ratio of the rare class in the mini-batch data is the same value as the area ratio of the rare class in a learning input image and an annotation image which are sources of the mini-batch data.

### Claim 7 (depends on 1)

The mini-batch learning apparatus according to of claim 1, wherein
the specifying unit specifies, as the correction target class, a non-rare class of which the area ratio is higher than a setting value, and
the correction processing unit executes, as the correction processing, reduction processing of setting a correct answer value and a predicted value in calculation of the first loss value to be smaller than a correct answer value and a predicted value in calculation of the second loss value,

### Claim 8 (depends on 5)

The mini-batch learning apparatus according to of claim 5, wherein
the specifying unit specifies, as the correction target class, a non-rare class of which the area ratio is higher than a setting value, and
the correction processing unit executes, as the correction processing, reduction processing of setting a correct answer value and a predicted value in calculation of the first loss value to be smaller than a correct answer value and a predicted value in calculation of the second loss value.

### Claim 9 (depends on 6)

The mini-batch learning apparatus according to claim 6, wherein
the specifying unit specifies, as the correction target class, a non-rare class of which the area ratio is higher than a setting value, and
the correction processing unit executes, as the correction processing, reduction processing of setting a correct answer value and a predicted value in calculation of the first loss value to be smaller than a correct answer value and a predicted value in calculation of the second loss value.

### Claim 10 (depends on 7)

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

### Claim 11 (depends on 8)

The mini-batch learning apparatus according to claim 8,
wherein the correction processing unit sets a reduction ratio in the reduction processing such that the area ratio of the non-rare class in the mini-batch data is the same value as the area ratio of the non-rare class in a learning input image and an annotation image which are sources of the mini-batch data.

### Claim 12 (depends on 9)

The mini-hatch learning apparatus according to claim 9,
wherein the correction processing unit sets a reduction ratio in the reduction processing such that the area ratio of the non-rare class in the mini-batch data is the same value as the area ratio of the non-rare class in a learning input image and an annotation image which are sources of the mini-batch data.

### Claim 13 (depends on 1)

The mini-batch learning apparatus according to claim 1, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 14 (depends on 2)

The mini-batch learning apparatus according to claim 2, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 15 (depends on 3)

The mini-hatch learning apparatus according to claim 3, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 16 (depends on 5)

The mini-batch learning apparatus according to claim 5, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 17 (depends on 6)

The mini-batch learning apparatus according to claim 6, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 18 (depends on 7)

The mini-hatch learning apparatus according to claim 7, further comprising:
a reception unit that receives a selection instruction as to whether or not to cause the correction processing unit to execute the correction processing.

### Claim 19

A non-transitory computer readable recording medium storing an operation program of a mini-batch learning apparatus that learns a machine learning model for performing semantic segmentation, which determines a plurality of classes in an image in units of pixels, by inputting mini-batch data to the machine learning model, the program causing a computer to function as:
a calculation unit that calculates an area ratio of each of the plurality of classes in the mini-batch data;
a specifying unit that specifies a correction target class based on the area ratio; and
an evaluation unit that evaluates a determination accuracy of the class of the machine learning model by calculating a loss value for each of the plurality of classes using a loss function and includes a correction processing unit which executes correction processing of correcting a first loss value of the correction target class based on a comparison result of the first loss value and a second loss value of a class other than the correction target class.

### Claim 20

An operation method of a mini-batch learning apparatus that learns a machine learning model for performing semantic segmentation, which determines a plurality of classes in an image in units of pixels, by inputting mini-batch data to the machine learning model, the method comprising:
calculating an area ratio of each of the plurality of classes in the mini-batch data;
specifying a correction target class based on the area ratio; and
evaluating a determination accuracy of the class of the machine learning model by calculating a loss value for each of the plurality of classes using a loss function and including executing correction processing of correcting a first loss value of the correction target class based on a comparison result of the first loss value and a second loss value of a class other than the correction target class.
