A labeling model training method and labeling method based on self-learning labeling
Through a method based on self-learning annotation, the combination of a small amount of manually annotated data and an automatic annotation model is used to gradually improve the accuracy of the annotation model, solve the problem of large amounts of manually annotated data in the existing technology, and achieve high efficiency and high efficiency of model training. accuracy.
Patent Information
- Application Number
- CN202210451731.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-27
AI Technical Summary
In the existing technology, when training a new annotation model or updating an old model, a large amount of data needs to be manually annotated, resulting in high labor costs.
Using a method based on self-learning annotation, a small amount of data is extracted from the original data set for manual annotation, and the initial training model is used to automatically annotate unlabeled data. Through confidence ranking and manual review, the accuracy of the annotation model is gradually improved and manual annotation is reduced. The amount of data is combined with self-learning to verify the model until it reaches the standard.
It effectively reduces the amount of manual annotation data, saves labor costs, and improves the accuracy of the annotation model through multiple verifications and trainings, achieving high efficiency in model training.
Smart Images

Figure CN114818929B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of annotation technology, specifically relating to a method for training and annotating an annotation model based on self-learning annotation. Background Technology
[0002] Image recognition models and other models that require training need a large amount of labeled data for training. There are generally two ways to obtain labeled data: one is to use manual annotation, which requires a lot of manpower; the other is to use a pre-trained annotation model for automatic annotation, which can complete the data annotation efficiently.
[0003] However, when training a new annotation model or updating an old annotation model, there is no mature annotation model to use for annotation. A large amount of training data needs to be manually annotated. In order to achieve a good annotation model, some training data often requires millions or even tens of millions of data points. Manually annotating a large amount of data wastes a lot of human resources. Summary of the Invention
[0004] This invention provides a training method and annotation method for annotated models based on self-learning annotation, aiming to solve the problem that in the prior art, when training a new annotation model or updating some old annotation models, a large amount of training data needs to be manually annotated, resulting in high labor costs.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0006] In a first aspect, the present invention provides a method for training a labeling model based on self-learning labeling, comprising the following steps:
[0007] S100. Extract m1 data points from m data points in the original dataset and manually label them to obtain the initial training dataset. Use the initial training dataset to train the labeled model and obtain the trained labeled model.
[0008] S200. Label the remaining data that has not been manually labeled using the trained labeling model, and output the recognition results and confidence scores.
[0009] S300. Sort the recognition results according to confidence level, divide the remaining data into low confidence dataset and other datasets according to confidence level, and manually review the low confidence dataset.
[0010] S400: Determine whether the manual review result meets the preset conditions; if the manual review result does not meet the preset conditions, proceed to step S500; if the manual review result meets the preset conditions, proceed to step S600.
[0011] S500: Manually re-label the data in the low-confidence dataset, and use the manually labeled data to retrain the trained labeled model to obtain the retrained labeled model.
[0012] The re-trained annotation model is used to re-annotate data in other datasets, and the recognition results and confidence scores are output.
[0013] The identification results are sorted according to confidence level; the data in other datasets are further divided into low-confidence datasets and other datasets according to confidence level; the low-confidence datasets are manually reviewed, and step S400 is executed again according to the results of the manual review.
[0014] S600 indicates that the annotation model meets the standard, and a qualified annotation model is obtained.
[0015] Further improvements: A training method for annotation models based on self-learning annotations, which also includes the following steps:
[0016] S700: Automatically label the data in the test dataset using the compliance labeling model obtained in step S600, and obtain the identification results and confidence levels;
[0017] S800: Filter out low-confidence data according to confidence level, and determine whether the automatic labeling of low-confidence data is qualified by manual review;
[0018] S801. If qualified, the qualified annotation model shall be used as the final annotation model.
[0019] S802. If it fails, the test dataset will replace the original dataset, and the qualified labeled model will be retrained using steps S100 to S600 until the final labeled model is obtained.
[0020] Based on the above scheme, a verification dataset is introduced. On the one hand, the qualified annotation model is automatically annotated, and the recognition results and confidence scores are obtained. Low confidence data is filtered out according to the confidence scores. By reviewing the low confidence data, it is possible to verify whether the qualified annotation model can be finally labeled. On the other hand, when the qualified annotation model is not qualified, the verification dataset can be used for self-learning annotation to improve the accuracy of the labeled model until a qualified final labeled model is obtained.
[0021] A further improvement: In step S800, the criterion for determining whether the automatic labeling of low-confidence data reviewed by humans is qualified is the accuracy of the labeling.
[0022] A further improved scheme: where m1: m < 10%.
[0023] Based on the above scheme, the smaller the value of m1:m, the less data is manually labeled, and the more labor costs can be saved.
[0024] Further improvement: In step S300, when dividing the remaining data into low-confidence datasets and other datasets according to confidence level, a set ratio or a set confidence threshold is used for the division.
[0025] In step S500, the data in other datasets are further divided into low-confidence datasets and other datasets according to the confidence level, using a set ratio or a set confidence threshold for the division.
[0026] Further improvement: In step S400, it is determined whether the manual review results meet the preset conditions, namely whether the success rate of annotation reaches the set threshold.
[0027] Secondly, the present invention provides an annotation method, which uses a qualified annotation model obtained by training an annotation model based on self-learning annotation as described in any of the above schemes to annotate the data to be annotated.
[0028] The beneficial effects of this invention are as follows:
[0029] This invention first extracts a small amount of data from the original dataset for manual annotation to obtain initial training data, and uses this small amount of manually annotated data to initially train the annotation model. The pre-trained annotation model then automatically annotates the unannotated data in the original dataset, and extracts automatically annotated data with low confidence to verify if the annotation model meets the standards. If it does not meet the standards, the extracted automatically annotated data with low confidence is manually annotated, and the annotation model is trained again. The trained annotation model is then verified again using the above method. This process is repeated, with each failed verification involving the extraction of a portion of automatically annotated data with low confidence for manual annotation and training of the annotation model, until a satisfactory annotation model is obtained. This annotation model training method requires only a small amount of manually annotated data to complete model training, reducing labor intensity. Furthermore, this invention combines a small amount of manual annotation with automatic annotation by the annotation model itself, repeatedly verifying the annotation model and achieving effective model training through self-learning.
[0030] This invention uses confidence scores to sort the automatically labeled data of the labeling model and obtain a low-confidence dataset. On the one hand, by verifying the low-confidence data, the verification of the labeling model is more accurate. On the other hand, the selected low-confidence dataset is re-labeled manually and used to train the labeling model, which can achieve better training results.
[0031] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0032] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a flowchart illustrating the annotation model training method based on self-learning annotation in this invention.
[0034] Figure 2 This is a logic block diagram of the annotation model training method based on self-learning annotation in this invention.
[0035] Figure 3 This is a flowchart illustrating the process of verifying the compliance of the labeled model using a test dataset in this invention.
[0036] Figure 4 This is a flowchart illustrating the annotation model training method that includes a process for verifying the compliance of the annotation model in this invention. Detailed Implementation
[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the protection scope of the present invention.
[0038] Example 1:
[0039] See Figure 1 and Figure 2 This embodiment provides a method for training a labeled model based on self-learning annotation, including the following steps:
[0040] S100. Extract m1 data points from m data points in the original dataset and manually label them to obtain the initial training dataset. Use the initial training dataset to train the labeled model and obtain the trained labeled model.
[0041] S200. Label the remaining data that has not been manually labeled using the trained labeling model, and output the recognition results and confidence scores.
[0042] S300. Sort the recognition results according to confidence level, divide the remaining data into low confidence dataset and other datasets according to confidence level, and manually review the low confidence dataset.
[0043] S400: Determine whether the manual review result meets the preset conditions; if the manual review result does not meet the preset conditions, proceed to step S500; if the manual review result meets the preset conditions, proceed to step S600.
[0044] S500: Manually re-label the data in the low-confidence dataset, and use the manually labeled data to retrain the trained labeled model to obtain the retrained labeled model.
[0045] The re-trained annotation model is used to re-annotate data in other datasets, and the recognition results and confidence scores are output.
[0046] Sort the recognition results according to confidence level; further divide the data in other datasets into low-confidence datasets and other datasets according to confidence level; manually review the further divided low-confidence datasets, and execute step S400 again according to the results of the manual review;
[0047] S600 indicates that the annotation model meets the standard, and a qualified annotation model is obtained.
[0048] In step S500, after each execution of step S400, it is necessary to determine whether the labeled model meets the standard. If it does not meet the standard, step S500 needs to be executed again to split the other datasets into low-confidence datasets and other datasets (the other datasets before and after the split are part of the other datasets before the split); and manually label the split low-confidence datasets, and use the manually labeled low-confidence datasets to train the labeled model. Until step S600 is reached from step S400, a labeled model that meets the standard can be obtained.
[0049] In this invention, steps S400 and S500 are generally executed 3-5 times to proceed to step S600 and obtain the compliant annotation model.
[0050] The method of this invention is a general method, not limited to a certain annotation model, and is applicable to training newly built annotation models; or to updating and training old annotation models.
[0051] See Figure 3 and Figure 4 Based on the above scheme, the annotation model training method based on self-learning annotation also includes the following steps:
[0052] S700: Automatically label the data in the test dataset using the compliance labeling model obtained in step S600, and obtain the identification results and confidence levels;
[0053] S800: Filter out low-confidence data according to confidence level, and determine whether the automatic labeling of low-confidence data is qualified by manual review;
[0054] S801. If qualified, the qualified annotation model shall be used as the final annotation model.
[0055] S802. If it fails, the test dataset will replace the original dataset, and the qualified labeled model will be retrained using steps S100 to S600 until the final labeled model is obtained.
[0056] Based on the above scheme, a verification dataset is introduced. On the one hand, the qualified annotation model is automatically annotated, and the recognition results and confidence scores are obtained. Low confidence data is filtered out according to the confidence scores. By reviewing the low confidence data, it is possible to verify whether the qualified annotation model can be finally labeled. On the other hand, when the qualified annotation model is not qualified, the verification dataset can be used for self-learning annotation to improve the accuracy of the labeled model until a qualified final labeled model is obtained.
[0057] Based on any of the above schemes, in step S800, the criterion for determining whether the automatic labeling of low-confidence data reviewed by humans is qualified is the accuracy rate of the labeling; the accuracy rate can be set to a value such as 99.5%.
[0058] Based on any of the above schemes, where m1: m < 10%; the smaller the value of m1: m, the less data is manually labeled, and the more labor costs are saved; for example, if the value of m is 1 million, m1 can be 5000.
[0059] In step S300, when dividing the remaining data into low-confidence datasets and other datasets according to confidence level, a set ratio or a set confidence threshold is used for the division.
[0060] In step S500, the data in other datasets are further divided into low-confidence datasets and other datasets according to the confidence level, using a set ratio or a set confidence threshold for the division.
[0061] Based on any of the above schemes, in step S400, it is determined whether the manual review results meet the preset conditions, namely whether the success rate of annotation reaches the set threshold.
[0062] Example 2:
[0063] This embodiment provides an annotation method, which uses a qualified annotation model obtained by the self-learning annotation model training method described in any of the schemes in Embodiment 1 to annotate the data to be annotated.
[0064] This invention is not limited to the above-described optional embodiments. Anyone can derive other various forms of products under the guidance of this invention. However, regardless of any changes made in their shape or structure, any technical solution that falls within the scope of the claims of this invention shall be protected by this invention.
Claims
1. A labeling model training method based on self-learning labeling, It is characterized in that The following steps are involved: S100, extract m data from the original data set 1 The data are manually labeled to obtain an initial training data set, and the initial training data set is used to train the labeling model to obtain a trained labeling model; S200, annotating the remaining data that has not been manually annotated using the trained annotation model, and outputting the recognition result and confidence level; S300, sorting the recognition results according to the confidence level, dividing the remaining data into a low-confidence data set and other data sets according to the confidence level, and manually reviewing the low-confidence data set; S400, determining whether the manual review result meets the preset conditions; If the manual review result does not meet the preset conditions, step S500 is executed; if the manual review result meets the preset conditions, step S600 is executed; S500, manually re-labeling the data in the low confidence data set, and re-training the trained labeling model using the manually labeled data to obtain a re-trained labeling model; Use the retrained annotation model to re-annotate the data in other datasets and output the recognition results and confidence levels; sorting the recognition results according to the confidence level; further dividing the data in the other data sets into low-confidence data sets and other data sets according to the confidence level, manually reviewing the further divided low-confidence data sets, and executing step S400 again according to the manual review result; S600: the annotation model meets the standard, and a qualified annotation model is obtained.
2. According to the method for training a labeling model based on self-learning labeling according to claim 1, Features: Also includes the steps: S700, automatically annotating the data in the test data set using the qualified annotation model obtained in step S600, and obtaining the recognition result and confidence level; S800, screening out low-confidence data according to the confidence level, and determining whether the automatic labeling of the low-confidence data by manual review is qualified; S801, if qualified, the qualified annotation model is used as the final annotation model; S802: If unqualified, the test data set replaces the original data set, and the qualified annotation model is trained again using steps S100 to S600 until the final annotation model is obtained.
3. According to the method for training a labeling model based on self-learning labeling according to claim 2, Features: In step S800, whether the automatic labeling of the manually reviewed low-confidence data is qualified is determined based on the accuracy of the labeling.
4. According to the method for training a labeling model based on self-learning labeling according to claim 1, Features: in, m 1 :m<10%。 5. The method for training a labeling model based on self-learning labeling according to claim 1, Features: In step S300, when the remaining data is divided into low confidence data sets and other data sets according to the confidence, a set ratio division or a set confidence threshold is adopted for division; In step S500, data in other data sets are further divided into low-confidence data sets and other data sets according to confidence, and the division is performed by setting a ratio or a confidence threshold.
6. The method for training a labeling model based on self-learning labeling according to claim 1, Features: In step S400, it is determined whether the manual review result meets a preset condition, that is, whether the success rate of the annotation reaches a set threshold.
7. A marking method, Features: The data to be labeled is labeled using a qualified labeling model obtained by using a labeling model training method based on self-learning labeling as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Model iterative training method and system based on automatic labeling
CN112001407A
Method and device for generating dialogue role labeling model and electronic equipment
CN112395873A
Apparatus and method for labeling data
US20220114480A1
Method and apparatus for recognizing named entity, computer device, and storage medium
WO2021043085A1
Cited By
Method and system for realizing low-cost entity labeling based on user behavior analysis
CN116776878A
A low-cost entity annotation method and system based on user behavior analysis
CN116776878B
