# US 2023/0267730 A1 · Image abnormality detection model training

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

- Number: US 2023/0267730 A1
- Document ID: US20230267730A1
- Status: Published application
- Kind: A1
- Application number: 18/141,011
- Filed: 2023-04-28
- Published: 2023-08-24
- Earliest claimed: 2021-09-15
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Boshen ZHANG
- Web page: https://patentgrep.com/patent/US20230267730A1

## CPC

- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/993: {Evaluation of the quality of the acquired pattern}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/08: Learning methods
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An image abnormality detection model training method includes acquiring a noise-containing training label as a current mapping label of a training image input into an initial image abnormality detection model to obtain a prediction label. The method further includes generating model feedback data based on the current mapping label and the prediction label, generating a label loss based on a data change of the model feedback data, and adjusting the current mapping label based on the label loss. The method also includes adjusting model parameters of the initial image abnormality detection model based on the model feedback data, and iteratively performing the inputting the training image, the generating the model feedback data, the generating the label loss, and the adjusting the model parameters until a training end condition is satisfied to obtain a trained image abnormality detection model.

## Claims

### Claim 1

An image abnormality detection model training method, comprising:
acquiring a noise-containing training label as a current mapping label of a training image in a current training image set;
inputting the training image into an initial image abnormality detection model to obtain a prediction label corresponding to the training image;
generating model feedback data based on the current mapping label corresponding to the training label and the prediction label of the training image;
generating a label loss based on a data change of the model feedback data toward the current mapping label, adjusting the current mapping label based on the label loss to obtain an updated mapping label, and taking the updated mapping label as the current mapping label;
adjusting model parameters of the initial image abnormality detection model based on the model feedback data to obtain an updated image abnormality detection model, taking the updated image abnormality detection model as the initial image abnormality detection model, acquiring a next training image set as the current training image set; and
iteratively performing the inputting the training image, the generating the model feedback data, the generating the label loss, and the adjusting the model parameters until a training end condition is satisfied to obtain a trained image abnormality detection model.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the acquiring comprises:
performing label encoding on the noise-containing training label to generate binary data.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising, before the inputting the training image:
inputting a candidate training image into a candidate image abnormality detection model to obtain an initial prediction label corresponding to the candidate training image; and
adjusting model parameters of the candidate image abnormality detection model based on a label difference between a training label and the initial prediction label corresponding to the candidate training image until a first convergence condition is satisfied to obtain the initial image abnormality detection model.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the generating the model feedback data comprises:
performing divergence calculation on the current mapping label and the prediction label to obtain a first loss;
acquiring a label distribution ratio corresponding to the training label, and obtaining a second loss based on the label distribution ratio and the prediction label, the label distribution ratio being determined based on a quantity of training images, respectively corresponding to each label class, in the current training image set of the training image; and
obtaining the model feedback data based on the first loss and the second loss.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the performing the divergence calculation comprises:
performing logarithmic transformation on a ratio of the current mapping label to the prediction label to obtain a label transformation ratio; and
fusing the label transformation ratio and the prediction label to obtain the first loss.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the performing the divergence calculation comprises:
combining the current mapping label and the prediction label to obtain label counting information;
performing logarithmic transformation on a ratio of the label counting information to the prediction label to obtain a first transformation ratio, and performing logarithmic transformation on a ratio of the label counting information to the current mapping label to obtain a second transformation ratio;
fusing the first transformation ratio and the prediction label to obtain a first sub-loss, and fusing the second transformation ratio and the current mapping label to obtain a second sub-loss; and
obtaining the first loss based on the first sub-loss and the second sub-loss.

### Claim 7 (depends on 4)

The method according to claim 4, wherein the acquiring the label distribution ratio comprises:
performing vectorization on the label distribution ratio to obtain a label distribution vector; and
performing cross entropy calculation on the label distribution vector and the prediction label to obtain the second loss.

### Claim 8 (depends on 4)

The method according to claim 4, wherein the obtaining the model feedback data based on the first loss and the second loss comprises:
performing information entropy calculation on the prediction label to obtain a third loss; and
obtaining the model feedback data based on the first loss, the second loss, and the third loss.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the obtaining the model feedback data based on the first loss, the second loss, and the third loss comprises:
acquiring loss weights respectively corresponding to the first loss, the second loss, and the third loss, the loss weight corresponding to the second loss decreasing as a ratio of noise images to total images in the current training image set increases; and
fusing the first loss, the second loss, and the third loss based on the loss weights to obtain the model feedback data.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the generating the label loss comprises:
performing gradient calculation on the current mapping label based on the model feedback data to obtain the data change of the model feedback data;
acquiring a model learning rate, and adjusting the data change based on the model learning rate to obtain the label loss; and
obtaining the updated mapping label by modifying the current mapping label by the label loss.

### Claim 11 (depends on 1)

The method according to claim 1, wherein
the iteratively performing comprises:
iteratively performing the inputting the training image, the generating the model feedback data, the generating the label loss, and the adjusting the model parameters until a second convergence condition is satisfied to obtain an intermediate image abnormality detection model and a fixed mapping label; and
iteratively performing
inputting a training image in a target training image set into the intermediate image abnormality detection model to obtain an updated prediction label corresponding to the training image,
generating an updated loss based on the updated prediction label corresponding to the training image in the target training image set and the fixed mapping label, and
adjusting model parameters of the intermediate image abnormality detection model based on the updated loss until a third convergence condition is satisfied to obtain the trained image abnormality detection model.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the generating the updated loss comprises:
performing divergence calculation on the updated prediction label and the fixed mapping label to obtain a fourth loss;
performing information entropy calculation on the updated prediction label to obtain a fifth loss;
performing cross entropy calculation based on a training label corresponding to the target training image set and the updated prediction label to obtain a sixth loss; and
obtaining the updated loss based on the fourth loss, the fifth loss, and the sixth loss.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the trained image abnormality detection model is any one of an image blooming detection model, an image blurring detection model, or an image mosaic detection model.

### Claim 14 (depends on 1)

An image abnormality detection method, comprising:
acquiring an image to be detected;
inputting the image to be detected into the trained image abnormality detection model to obtain a model prediction label corresponding to the image to be detected; and
determining an image abnormality detection result corresponding to the image to be detected based on the model prediction label,
wherein the trained image abnormality detection model is trained according to the image abnormality detection model training method of claim 1.

### Claim 15

An image abnormality detection model training apparatus, comprising:
processing circuitry configured to
acquire a noise-containing training label as a current mapping label of a training image in a current training image set;
input the training image into an initial image abnormality detection model to obtain a prediction label corresponding to the training image;
generate model feedback data based on the current mapping label corresponding to the training label and the prediction label of the training image;
generate a label loss based on a data change of the model feedback data toward the current mapping label, adjust the current mapping label based on the label loss to obtain an updated mapping label, and take the updated mapping label as the current mapping label;
adjust model parameters of the initial image abnormality detection model based on the model feedback data to obtain an updated image abnormality detection model, take the updated image abnormality detection model as the initial image abnormality detection model, acquire a next training image set as the current training image set; and
iteratively input the training image in the current training image set, generate the model feedback data, generate the label loss, and adjust the model parameters until a training end condition is satisfied to obtain a trained image abnormality detection model.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the processing circuitry is further configured to:
perform label encoding on the noise-containing training label to generate binary data.

### Claim 17 (depends on 15)

The apparatus according to claim 15, wherein the processing circuitry is further configured to, before the inputting the training image:
input a candidate training image into a candidate image abnormality detection model to obtain an initial prediction label corresponding to the candidate training image; and
adjust model parameters of the candidate image abnormality detection model based on a label difference between a training label and the initial prediction label corresponding to the candidate training image until a first convergence condition is satisfied to obtain the initial image abnormality detection model.

### Claim 18 (depends on 15)

The apparatus according to claim 15, wherein the processing circuitry is further configured to:
perform divergence calculation on the current mapping label and the prediction label to obtain a first loss;
acquire a label distribution ratio corresponding to the training label, and obtain a second loss based on the label distribution ratio and the prediction label, the label distribution ratio being determined based on a quantity of training images, respectively corresponding to each label class, in the current training image set of the training image; and
obtain the model feedback data based on the first loss and the second loss.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein the processing circuitry is further configured to:
perform logarithmic transformation on a ratio of the current mapping label to the prediction label to obtain a label transformation ratio; and
fuse the label transformation ratio and the prediction label to obtain the first loss.

### Claim 20

A non-transitory computer-readable storage medium storing computer-readable instructions thereon, which, when executed by processing circuitry, cause the processing circuitry to perform an image abnormality detection model training method comprising:
acquiring a noise-containing training label as a current mapping label of a training image in a current training image set;
inputting the training image into an initial image abnormality detection model to obtain a prediction label corresponding to the training image;
generating model feedback data based on the current mapping label corresponding to the training label and the prediction label of the training image;
generating a label loss based on a data change of the model feedback data toward the current mapping label, adjusting the current mapping label based on the label loss to obtain an updated mapping label, and taking the updated mapping label as the current mapping label;
adjusting model parameters of the initial image abnormality detection model based on the model feedback data to obtain an updated image abnormality detection model, taking the updated image abnormality detection model as the initial image abnormality detection model, acquiring a next training image set as the current training image set; and
iteratively performing the inputting the training image, the generating the model feedback data, the generating the label loss, and the adjusting the model parameters until a training end condition is satisfied to obtain a trained image abnormality detection model.
