IP Library › Granted Patent US 12,749,325
Granted Patent B2
US 12,749,325 · App. 17/989,068 · Granted Sep 29, 2026

Data annotation method and apparatus, and fine-grained recognition method and apparatus

Inventors: Zichen Wang (Shanghai, CN); Xiaopeng Zhang (Shanghai, CN); Qi Tian (Shenzhen, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
G06V20/70G06V10/764G06V10/774G06V10/82
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,749,325
App. No.
17/989,068
Granted
Sep 29, 2026
Kind
B2
Abstract

This application relates to the field of image annotation and recognition in the field of artificial intelligence technologies, and in particular, to a data annotation method. The method includes: using at least two different classification models; pretraining one of the classification models as an initial classification model, and annotating a label for data in a to-be-annotated source dataset as initial data by using the pretrained classification model; and controlling the classification models to perform alternating training and data annotation a quantity of times. Operations of current training and current data annotation include: obtaining data that is re-annotated with a label by a previously trained classification model, selecting a first part of the data to train a current classification model, and re-annotating, by the trained current classification model, a label for a second part of data that is not selected.

Claims (61)

1 . A data annotation method, comprising:

using at least two classification models with different structures, the at least two classification models comprising a first classification model and a second classification model;

pretraining the first classification model using a target dataset with a target annotation type label, wherein the target annotation type label includes a label from the first classification model and a label from the second classification model;

annotating a label for data in a to-be-annotated source dataset using the first classification model to produce initial data annotated with the label from the first classification model;

performing alternating training and data annotation a quantity of times, comprising using the initial data annotated with the label from the first classification model to train the second classification model, and comprising using a data annotated with the label from the second classification model to train the first classification model; and

in the alternating training and data annotation, current training and current data annotation performed by a currently trained classification model, comprising at least one of the first classification model or the second classification model, comprise:

obtaining data that is re-annotated with a label by a previously trained classification model, comprising at least one of the first classification model or the second classification model, that is different than the currently trained classification model;

selecting a first part of the data to train the currently trained classification model, wherein the selecting the first part of the data is performed based on stability of an annotation of each piece of data, and wherein the stability is measured by using information entropy of soft label probabilities output by the previously trained classification model, and the selecting the first part of the data comprises:

calculating an information entropy value for each piece of the data based on the soft label probabilities for that label;

ordering the information entropy values in ascending order such that lower entropy indicates higher annotation stability; and

selecting the first part of the data from a front of the ascending order; and

re-annotating, by the currently trained classification model, respective labels for remaining data that is not included in the first part of the data.

2 . The method according to claim 1 , wherein the source dataset and target dataset have labels of a same basic classification; and

the target annotation type label is a label of a further fine-grained classification in the basic classification.

3 . A data annotation method, comprising:

using at least two classification models with different structures, the at least two classification models comprising a first classification model and a second classification model;

performing alternating training and data annotation a quantity of times, wherein, in the alternating training and data annotation, a part of data used for training the first classification model has a target annotation type label, wherein the target annotation type label includes a label from the first classification model and a label from the second classification model, and a data annotated with the label from the second classification model is used to train the first classification model; and

in the alternating training and data annotation, current training and current data annotation performed by a currently trained classification model, comprising at least one of the first classification model or the second classification model, comprise:

obtaining data that is re-annotated with a label by a previously trained classification model, comprising at least one of the first classification model or the second classification model, that is different than the currently trained classification model;

selecting a first part of the data to train the currently trained classification model, wherein the selecting the first part of the data is performed based on stability of an annotation of each piece of data, and wherein the stability is measured by using information entropy of soft label probabilities output by the previously trained classification model, and the selecting the first part of the data comprises:

calculating the information entropy value for each piece of the data based on the soft label probabilities for that label;

ordering the information entropy values in ascending order such that lower entropy indicates higher annotation stability; and

selecting the first part of the data from a front of the ascending order; and

re-annotating, by the currently trained classification model, respective labels for remaining data that is not included in the first part of the data.

4 . The method according to claim 3 , wherein before the alternating training and data annotation are performed, the method further comprises: pretraining the first classification model by using a target dataset with the target annotation type label.

5 . The method according to claim 3 , wherein the data used to train the currently trained classification model has labels of a same basic classification; and

the target annotation type label is a label of a further fine-grained classification in the basic classification.

6 . A computer device, comprising:

a bus;

a communications interface, wherein the communications interface is connected to the bus;

at least one processor, wherein the at least one processor is connected to the bus; and at least one memory, wherein the at least one memory is connected to the bus and stores program instructions, and the at least one processor executes the program instructions to:

use at least two classification models with different structures, the at least two classification models comprising a first classification model and a second classification model;

pretrain the first classification model using a target dataset with a target annotation type label, wherein the target annotation type label includes a label from the first classification model and a label from the second classification model;

annotate a label for data in a to-be-annotated source dataset using the first classification model to produce initial data annotated with the label from the first classification model;

perform alternating training and data annotation a quantity of times, comprising using the initial data annotated with the label from the first classification model to train the second classification model, and comprising using a data annotated with the label from the second classification model to train the first classification model; and

in the alternating training and data annotation process, current training and current data annotation performed by a currently trained classification model, comprising at least one of the first classification model or the second classification model, comprise:

obtain data that is re-annotated with a label by a previously trained classification model, comprising at least one of the first classification model or the second classification model, that is different than the currently trained classification model;

select a first part of the data to train the currently trained classification model, wherein the selecting the first part of the data is performed based on stability of an annotation of each piece of data, and wherein the stability is measured by using information entropy of soft label probabilities output by the previously trained classification model, and the selecting the first part of the data comprises:

calculate an information entropy value for each piece of the data based on the soft label probabilities for that label;

order the information entropy values in ascending order such that lower entropy indicates higher annotation stability; and

select the first part of the data from a front of the ascending order; and

re-annotate, by the currently trained classification model, respective labels for remaining data that is not included in the first part of the data.

7 . The computer device according to claim 6 , wherein the source dataset and target dataset have labels of a same basic classification; and

the target annotation type label is a label of a further fine-grained classification in the basic classification.

8 . A computer device, comprising:

a bus;

a communications interface, wherein the communications interface is connected to the bus;

at least one processor, wherein the at least one processor is connected to the bus; and

at least one memory, wherein the at least one memory is connected to the bus and stores program instructions, and the at least one processor executes the program instructions to:

use at least two classification models with different structures, the at least two classification models comprising a first classification model and a second classification model;

perform alternating training and data annotation a quantity of times, wherein in the alternating training and data annotation, a part of data used for training the first classification model has a target annotation type label, wherein the target annotation type label includes a label from the first classification model and a label from the second classification model, and a data annotated with the label from the second classification model is used to train the first classification model; and

in the alternating training and data annotation, current training and current data annotation performed by a currently trained classification model, comprising at least one of the first classification model or the second classification model, comprise:

obtain data that is re-annotated with a label by a previously trained classification model, comprising at least one of the first classification model or the second classification model, that is different than the currently trained classification model;

select a first part of the data to train the currently trained classification model, wherein the selecting the first part of the data is performed based on stability of an annotation of each piece of data, and wherein the stability is measured by using information entropy of soft label probabilities output by the previously trained classification model, and the selecting the first part of the data comprises:

calculate an information entropy value for each piece of the data based on the soft label probabilities for that label;

order the information entropy values in ascending order such that lower entropy indicates higher annotation stability; and

select the first part of the data from a front of the ascending order; and

re-annotate, by the currently trained classification model, respective labels for remaining data that is not included in the first part of the data.

9 . The computer device according to claim 8 , wherein before the alternating training and data annotation are performed, the at least one processor executes the program instructions to pretrain the first classification model by using a target dataset with the target annotation type label.

10 . The computer device according to claim 8 , wherein the data used to train the currently trained classification model has labels of a same basic classification; and

the target annotation type label is a label of a further fine-grained classification in the basic classification.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2026
From: WANG, ZICHEN; ZHANG, XIAOPENG; TIAN, QI
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 075105/0808 →
Priority Claims (1)
CN 202010418518.2 · May 18, 2020 · national
Continuity (2)
Continuation PCTCN2021088405 · Apr 20, 2021
Related Publication 20230087292A1 · Mar 23, 2023
References Cited (19)
US 20200202210A1 · Kushnir · 2020 [cited by examiner]
US 20210327126A1 · Hu · 2021 [cited by examiner]
CN 107451602A · 2017 [cited by applicant]
CN 108898087A · 2018 [cited by applicant]
CN 109902716A · 2019 [cited by applicant]
CN 110059734A · 2019 [cited by applicant]
CN 110188767A · 2019 [cited by applicant]
CN 110490884A · 2019 [cited by applicant]
CN 110599445A · 2019 [cited by applicant]
CN 111079602A · 2020 [cited by applicant]
CN 111126459A · 2020 [cited by applicant]
EP 3543917A1 · 2019 [cited by applicant]
Feng, HuaMin, and Tat-Seng Chua. “A bootstrapping approach to annotating large image collection.” Proceedings of the 5th ACM SIGMM international workshop on Multimedia information retrieval. 2003. (Year: 2003). [cited by examiner]
Zhang, Ning, et al. “Part-based R-CNNs for fine-grained category detection.” Computer VisionâECCV 2014: 13th European Conference, Zurich, Switzerland, Sep. 6-12, 2014, Proceedings, Part I 13. Springer International Publ… [cited by examiner]
Shin, Hoo-Chang, et al. “Learning to read chest x-rays: Recurrent neural cascade model for automated image annotation.” Proceedings of the IEEE conference on computer vision and pattern recognition. 2016. (Year: 2016). [cited by examiner]
Yin Cui et al., Large Scale Fine-Grained Categorization and Domain-Specific Transfer Learning, arXiv:1806.06193v1 [cs.CV] Jun. 16, 2018, 10 pages. [cited by applicant]
Jiangfan Han et al., Deep Self-Learning From Noisy Labels, arXiv:1908.02160v2 [cs.CV] Aug. 20, 2019, 10 pages. [cited by applicant]
Leonid Karlinsky et al., RepMet: Representative-based metric learning for classification and few-shotobject detection, arXiv:1806.04728v3 [cs.CV] Nov. 18, 2018, 10 pages. [cited by applicant]
Michael A Hedderich et al: “Training a Neural Network in a Low-Resource Setting on Automatically Annotated Noisy Data”, arxiv.org, Cornell University Library, 201 Olin Library Cornell University Ithaca, NY 14853, Jul. 2… [cited by applicant]