Data labeling method and device, equipment, medium and program product
By using the difference in recognition results of two target detection models for manual correction in data annotation, the problems of low data annotation efficiency and low accuracy in the existing technology are solved, and efficient and accurate data annotation is achieved.
Patent Information
- Application Number
- CN202410717147.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, data annotation relies on manual labor, which is inefficient and not high in accuracy. Annotation by machine learning models alone has problems such as low annotation accuracy and missing or wrong annotations.
Two different target detection models are used to perform object recognition on data samples, manual corrections are made to address differences in recognition results, and data annotation methods are provided to improve annotation efficiency and accuracy.
By combining the target detection model with manual annotation, the efficiency and accuracy of data annotation are improved, the quality and completeness of the annotation results are ensured, and high-quality learning samples are provided for the machine learning model.
Smart Images

Figure CN118690194A
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of artificial intelligence technology, and in particular, to a data annotation method, apparatus, computing device, computer-readable storage medium, and computer program. Background Art
[0002] Data labeling is a crucial process in the field of machine learning and artificial intelligence. Data labeling involves combining raw data with precise information labels to provide "learning samples" for training machine learning models. These labels are then used by machine learning algorithms as a basis for learning so that the model can recognize similar patterns or features in unlabeled data. The accuracy of data labeling directly affects the performance of the final machine learning model. Therefore, high-quality data labeling is crucial for developing effective artificial intelligence applications.
[0003] Traditionally, data labeling relies on manual work, but manual labeling has the problem of low efficiency. In some solutions, machine learning technology can be used for data labeling, but the current solutions that rely on machine learning models for labeling have problems such as low labeling accuracy, missing labels, and wrong labels.
[0004] Therefore, it is necessary to provide an efficient and accurate data annotation method. Summary of the invention
[0005] In view of this, an embodiment of this specification provides a data labeling method. One or more embodiments of this specification also involve a data labeling device, a computing device, a computer-readable storage medium, and a computer program to solve the technical defects existing in the prior art.
[0006] According to a first aspect of an embodiment of this specification, a data labeling method is provided, including:
[0007] Acquire a data sample to be labeled and first labeling information of the data sample; the first labeling information is obtained by identifying the data sample based on a first target detection model; the first labeling information is used to indicate a recognition result of an object to be identified contained in the data sample;
[0008] Inputting the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample;
[0009] Determining inconsistent information between the first annotation information and the second annotation information as first abnormal information;
[0010] Providing the data sample and the first abnormal information to a first data labeler;
[0011] Obtain third annotation information provided by the first data annotation personnel after checking and correcting the second annotation information according to the first abnormal information.
[0012] According to a second aspect of an embodiment of this specification, a data labeling device is provided, including:
[0013] A data acquisition module, used to acquire a data sample to be labeled and first labeling information of the data sample; the first labeling information is obtained by identifying the data sample based on a first target detection model; the first labeling information is used to indicate a recognition result of an object to be identified contained in the data sample;
[0014] A model detection module, used for inputting the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample;
[0015] an abnormality identification module, used for determining inconsistent information between the first annotation information and the second annotation information as first abnormality information;
[0016] A first interaction module, configured to provide the data sample and the first abnormal information to a first data labeler;
[0017] The second interaction module is used to obtain third annotation information provided by the first data annotation personnel, which is obtained by checking and modifying the second annotation information according to the first abnormal information.
[0018] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0019] Memory and processor;
[0020] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned data labeling method are implemented.
[0021] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned data labeling method are implemented.
[0022] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned data labeling method.
[0023] An embodiment of the present specification can achieve at least the following beneficial effects: by using two different target detection models to identify objects in data samples, and manually checking and correcting the labeling information of objects with different recognition results from the two models, an efficient and highly accurate data labeling method is provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A flow chart of a data labeling method provided according to an embodiment of this specification is shown;
[0025] Figure 2 A schematic diagram of a process for data labeling in an actual application scenario provided in an embodiment of this specification is shown;
[0026] Figure 3 A schematic diagram of the structure of a data labeling device provided according to an embodiment of this specification is shown;
[0027] Figure 4 A structural block diagram of a computing device provided according to an embodiment of the present specification is shown. DETAILED DESCRIPTION
[0028] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0029] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0030] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0031] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] First, the terms involved in one or more embodiments of this specification are explained.
[0033] Data labeling: Data labeling is a crucial process in the field of machine learning and artificial intelligence. Data labeling involves combining raw data (such as pictures, text, audio, video, etc.) with precise information labels to provide "learning samples" for training machine learning models. During the data labeling process, workers (labeling experts or ordinary users obtained through crowdsourcing) assign labels or classifications to specific elements, features, or categories in the data. These labels will then be used by machine learning algorithms as a basis for learning so that the model can recognize similar patterns or features in unlabeled data. The accuracy of data labeling directly affects the performance of the final machine learning model. Therefore, high-quality data labeling is crucial to the development of effective artificial intelligence applications.
[0034] Supervised learning: Supervised learning is a core learning method in machine learning. Its goal is to enable the model to learn a mapping function from input to output so that when new input data is given, the corresponding output can be predicted. This learning method is called "supervised" because the model training process uses data that has been labeled with the correct answer, that is, the training data contains both input and expected output, and the model builds a prediction model by learning these data correspondences.
[0035] Object detection: Object detection is an important research direction in the field of computer vision. It refers to enabling computers to automatically identify the category and location of target objects from images or videos. Compared with image classification, which only needs to identify the main object category in the image, and object tracking, which needs to track the movement of objects in the video, object detection is more complex because it needs to identify and locate one or more objects at the same time.
[0036] UI component: In the design field, UI component (User Interface Component) is an independent, reusable interface element or control that constitutes the user interface. UI components can include all the visual elements required for users to interact with applications, such as buttons, input boxes, drop-down menus, sliders, dialog boxes, charts, etc. The purpose of UI component design is to improve the consistency and development efficiency of interface design, making the interface more intuitive and easy to use.
[0037] Traditionally, data labeling relies on manual labeling, but manual labeling is inefficient and easily affected by subjective factors. In addition, machine learning technology can also be used for data labeling, but currently relying solely on machine learning models for labeling has problems such as low labeling accuracy, missing labels, and wrong labels.
[0038] In the embodiments of the present specification, a labeling method combining a target detection model and manual labeling is provided, which greatly improves the labeling efficiency of labelers through the target detection model, and ensures the quality of the labeled data through multi-model detection.
[0039] In this specification, a data labeling method is provided. This specification also relates to a data labeling device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0040] See also Figure 1 , Figure 1 A flow chart of a data labeling method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.
[0041] Step 102: Obtain a data sample to be labeled and first labeling information of the data sample; the first labeling information may be obtained by identifying the data sample based on a first target detection model; the first labeling information may be used to represent a recognition result of an object to be identified contained in the data sample.
[0042] Furthermore, the data samples may include image samples.
[0043] Furthermore, the types of image samples may be various. Optionally, according to different image formats, the image samples may include screenshots, photos, etc. Optionally, according to different business fields, the image samples may include different types of objects to be identified. For example, if the image samples include map images, the objects to be identified may include map points of interest, etc., and if the image samples include user interface images, the objects to be identified may include user interface components, etc.
[0044] Furthermore, the image samples can be obtained in various ways. For example, if the image samples include user interface images, the user interface image can be obtained by taking a screenshot of the user interface during browsing the application; or, the user interface design data can be obtained first, and then the design data can be exported as the user interface image; or, the application code data can be obtained first, and then the application code data can be rendered to obtain the user interface image.
[0045] Furthermore, a data sample may include one or more objects to be identified. Generally, a data sample may include multiple objects to be identified. For example, a map image may include multiple map points of interest. For another example, a user interface image may include multiple user interface components.
[0046] Furthermore, the target detection model can identify the type information and location information of one or more objects to be identified from the data sample. Therefore, the annotation information can include the type information and location information of the objects to be identified, and it can be understood that the annotation information can also include the quantity information of the objects to be identified. That is, the recognition result of the objects to be identified can include the quantity information, type information and location information of the objects to be identified.
[0047] Furthermore, the type information of the object to be identified can be used to reflect the type of the object to be identified. Taking the case where the data sample includes a user interface image, the type information can reflect the type of the user interface component. For example, the type information of the user component can include buttons, input boxes, drop-down menus, sliders, dialog boxes, charts, etc. In actual applications, the representation of the type information can include text, numbers, color marks, etc. Specifically, different types can be represented by different text, numbers, and color marks. For example, for a user component of the button type, it can be represented by the text "button", or by the number "1", or by "red".
[0048] Furthermore, the position information of the object to be identified can be used to reflect the position of the object to be identified in the data sample. Still taking the data sample including the user interface image as an example, the position information can reflect the position of the user interface component in the user interface image. Furthermore, the position information can include two-dimensional coordinate information, and the coordinate value of the two-dimensional coordinate information can be relative to the target point in the user interface image (for example, the upper left corner of the user interface image). In actual application, the specific form of the position information can include the coordinate value, and can also include an image mark presented at the corresponding position, and the image mark can include a box mark, a highlight mark, a shadow mark, etc.
[0049] In actual application, the annotation information including type information and location information can be provided to data annotators in a preset representation form.
[0050] Step 104: Input the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample.
[0051] In the embodiments of this specification, since the number of objects to be identified in the data sample may include multiple objects, in actual application, the first annotation information may include the identification results of multiple objects to be identified, that is, the number information, type information and location information of multiple objects to be identified; the second annotation information may include the identification results of multiple objects to be identified, that is, the number information, type information and location information of multiple objects to be identified.
[0052] Furthermore, the target detection model in the embodiments of the present specification may be a model based on deep learning, wherein the target detection model includes the first target detection model, the second target detection model, or the third target detection model described below, etc.
[0053] Furthermore, the target detection model can use convolutional neural network (CNN) as the main architecture. If the target detection method based on deep learning uses convolutional neural network (CNN) as the main architecture, it can automatically learn features from a large amount of labeled data, thereby significantly improving the accuracy and efficiency of target detection. Target detection methods can be roughly divided into two types: two-stage detectors, such as the R-CNN series (R-CNN, Fast R-CNN, Faster R-CNN, etc.), which first generate a series of candidate regions (Region Proposal), and then classify and correct each candidate region by bounding box regression; single-stage detectors, such as YOLO (You Only Look Once) and SSD (Single Shot MultiBox Detector), which directly predict the object category and position in the image in one step, are faster and suitable for real-time application scenarios.
[0054] Or further, the target detection model can be based on Transformer as the main architecture. The feature learning methods based on Transformer mainly include two categories: directly encoding the serialized image blocks and further encoding the features of CNN output. The Transformer target detection algorithm is based on the attention mechanism and uses the target query vector to aggregate image features to form a representation of the object. The Transformer target detection algorithm generally adopts a set prediction method to design a label matching method that does not rely on prior knowledge.
[0055] In an embodiment of the present specification, the target detection model specifically includes a supervised learning model. Specifically, the first target detection model and the second target detection model can be obtained by training based on labeled data samples. Among them, the labeled data samples can be samples of the same type as the data samples to be labeled and carry labeling information. In an embodiment of the present specification, it can be considered that the labeling information carried by the labeled data samples used to train the target detection model is the actual labeling information of these data samples, or in other words, it is the labeling information that can reflect the actual situation of the data objects in the labeled data samples.
[0056] In an embodiment of the present specification, the difference between the second target detection model and the first target detection model may include at least one of different model architectures or different training samples. Thus, the second target detection model is different from the first target detection model, thereby improving the accuracy of the data obtained after being labeled by multiple target detection models.
[0057] Optionally, the first target detection model may be a model based on a CNN architecture or a model based on a Transformer structure, and independently of the first target detection model, the second target detection model may be a model based on a CNN architecture or a model based on a Transformer structure. Furthermore, even if the second target detection model and the first target detection model are both models of a CNN architecture, their convolutional layers, activation functions, pooling layers, fully connected layers, output layers, etc. may be different from each other. Furthermore, even if the second target detection model and the first target detection model are both models based on a Transformer structure, there may be differences in their encoder-decoder frameworks, attention head settings, etc.
[0058] Optionally, the first target detection model and the second target detection model can be trained based on different data sample sets. Specifically, the first target detection model can be trained based on a first training sample set, and the second target detection model can be trained based on a second training sample set. Among them, the first training sample set may include at least or part of the labeled data samples, the second training sample set may include at least or part of the labeled data samples, and the labeled data samples contained in the first training sample set and the second training sample set are not completely the same. As a result, the first target detection model and the second target detection model can be trained based on different training sample sets, so as to learn different data rules, and there are differences between the two models, which is more conducive to discovering the situation of missed recognition or recognition errors.
[0059] Further, in the embodiments of the present specification, considering that the first target detection model is used to first annotate the data samples to be annotated, in order to reduce the workload of subsequent manual checking and correction, when training the first target detection model, the aforementioned full amount of annotated data samples can be used for training. Correspondingly, when training the second target detection model or the third target detection model mentioned below, the labeled data samples sampled from the full amount of annotated data samples can be used for training while ensuring that the training sample sets are not completely the same.
[0060] Step 106: Determine inconsistent information between the first labeling information and the second labeling information as first abnormal information.
[0061] In an embodiment of the present specification, the first abnormal information can be used to reflect the information that is inconsistent between the first annotation information and the second annotation information. That is, the first abnormal information can be used to reflect the inconsistency between the recognition results of the first target detection model and the second target detection model.
[0062] Furthermore, the first exception information can be used to reflect at least one of the following situations: the number of objects to be identified in the first annotation information and the second annotation information is different, the type information is different, or the position information is different. Specifically, the first exception information may include object number exception information, object type exception information, object position exception information, and the like. Among them, the object number exception information can reflect that, for the same data sample (for example, an image sample), different target detection models detect different numbers of objects to be identified; the object type exception information can be used to reflect that, for the same object to be identified, different target detection models detect different object type information; the object position exception information can be used to reflect that, for the same data sample (for example, an image sample), different target detection models detect different positions of objects to be identified.
[0063] Furthermore, the first abnormal information may reflect the abnormal object to be identified, but does not reflect the specific type information of the object to be identified marked as abnormal. Thus, it is possible to avoid the erroneous results output by the model from misleading the data annotator, thereby improving the accuracy of the data annotation results.
[0064] Step 108: Provide the data sample and the first abnormality information to a first data labeler.
[0065] In actual application, the identified first abnormal information and the corresponding data sample can be provided to the user through a human-computer interaction interface. Furthermore, the first abnormal information and the data sample can be shown in a display interface of a terminal device used by the first data annotator.
[0066] Taking the case where the data sample includes a user interface image, the user interface image can be displayed on the display interface of the terminal device used by the first data annotator, and the position of the object to be identified as abnormal reflected by the first abnormal information can be marked. Thus, the first data annotator can manually re-mark the position of the marked abnormal object to be identified.
[0067] Step 110: Obtain third annotation information provided by the first data annotation personnel, which is obtained by checking and correcting the second annotation information based on the first abnormal information.
[0068] In at least some embodiments of the present specification, if the recognition of the second target detection model is the last model recognition operation for data labeling of the current batch of data samples, the third labeling information may be determined as the final labeling information of the data samples.
[0069] Furthermore, in practical applications, the data samples carrying the third annotation information can be used as new labeled training samples to further train at least one of the first target detection model and the second target detection model. In this way, the accuracy of the corresponding target detection model can be further improved, thereby improving the accuracy of data annotation, and thus further reducing the workload of manual checking and correction, thereby improving data annotation efficiency.
[0070] In the embodiments of the present specification, data samples can be identified based on two different target detection models, and then only the data samples where the recognition results of the two models are different are manually checked and corrected, while taking into account both the labeling efficiency and the accuracy of the labeling results. On the one hand, compared with direct manual labeling, the data labeling efficiency can be greatly improved; on the other hand, even for model-labeled data that has not been manually checked and corrected, the accuracy of the labeling results is greatly improved because the same data labeling results are obtained by comprehensively using two different target detection models.
[0071] It should be understood that in the methods described in one or more embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0072] Figure 1 The method in the paper provides an efficient and accurate data labeling method by using two different target detection models to identify objects in data samples and manually checking and correcting the labeling information of objects with different recognition results from the two models.
[0073] based on Figure 1 The method, the embodiments of this specification also provide some specific implementation methods of the method, which are described below.
[0074] In one or more embodiments of the present specification, a specific scheme for obtaining first labeling information by identifying a data sample based on a first target detection model is provided.
[0075] Specifically, before obtaining the data sample and the first labeling information of the data sample (step 102), the process may further include: inputting the data sample to be labeled into a first target detection model to obtain the first labeling information of the data sample.
[0076] In one or more embodiments of the present specification, based on the recognition result of the to-be-recognized object in the data sample output by the first target detection model, manual labeling of the data sample may be performed to obtain first labeling information.
[0077] Optionally, the process of obtaining the first annotation information can be mainly based on the recognition result of the first target detection model, supplemented by manual checking and correction. That is, the annotation result can be manually checked and corrected based on the annotation result output by the first target detection model. As a result, the data annotation efficiency of the process of obtaining the first annotation information is high, and the problem of a large number of missed annotations can be avoided by manual checking and correction.
[0078] Specifically, before obtaining the first annotation information of the data sample, it may also include: inputting the data sample to be labeled into the first target detection model to obtain fourth annotation information of the data sample; providing the data sample and the fourth annotation information to the first data annotation personnel; and obtaining the first annotation information provided by the first data annotation personnel after checking and modifying the fourth annotation information.
[0079] Optionally, the process of obtaining the first annotation information can be mainly based on the manual annotation results, with the model recognition results as a reference. That is, in the process of manually annotating the data sample, the pre-annotation results of the data sample by the first target detection model can be referred to. As a result, the first annotation information obtained based on manual annotation can be more accurate and comprehensive, and the annotation efficiency is higher because the first target detection model is used for pre-annotation.
[0080] Specifically, before obtaining the first annotation information of the data sample, it may also include: inputting the data sample to be labeled into the first target detection model to obtain fourth annotation information of the data sample; providing the data sample and the fourth annotation information to the first data labeler; and obtaining the first annotation information obtained by the first data labeler by manually labeling the data sample with reference to the fourth annotation information.
[0081] According to at least some embodiments of the present specification, data samples are pre-labeled based on a first target detection model, and labeling verification is performed based on a second target detection model that is different from the first target detection model, thereby greatly improving the labeling efficiency of manual labeling; and, through manual correction and model verification, the accuracy and completeness of the labeling results are ensured, and the quality of the data labeling results is improved. Therefore, it is possible to provide high-quality learning samples for the training of artificial intelligence models that apply the data labeling results.
[0082] In the above embodiments of the present specification, after the data samples are labeled by the first target detection model and the second target detection model, the objects with labeling differences are manually checked and modified, and the data labeling capabilities and manual checking and modification capabilities of the two different target detection models are comprehensively utilized. This not only improves the efficiency of data labeling, but also ensures the accuracy of the data labeling results.
[0083] In actual applications, in the data samples, there may be objects that are not recognized by both the first target detection model and the second target detection model, or there may be objects that are recognized as the same error by both the first target detection model and the second target detection model. Therefore, in order to further improve the accuracy of the data labeling results, a third target detection model that is different from the first target detection model and the second target detection model can be further used to re-identify the data samples.
[0084] In one or more embodiments of the present specification, after obtaining the third annotation information provided by the first data annotation personnel after checking and correcting the second annotation information according to the first abnormal information (step 110), it may also include: inputting the data sample into a third target detection model different from the first target detection model and the second target detection model to obtain fifth annotation information of the data sample; determining inconsistent information in the fourth annotation information and the fifth annotation information as second abnormal information; providing the data sample and the second abnormal information to the second data annotation personnel; and obtaining sixth annotation information provided by the second data annotation personnel after checking and correcting the fifth annotation information according to the second abnormal information.
[0085] The difference between the third target detection model and the first target detection model and the second target detection model may include at least one of the model architecture or the model training data. For the specific difference method, reference can be made to the above description of the difference between the first target detection model and the second target detection model. As a result, the third target detection model is different from the first target detection model and the second target detection model, thereby improving the accuracy of the data obtained after being labeled by multiple target detection models.
[0086] Among them, for the same data sample, the second data labeling personnel and the first data labeling personnel can be the same data labeling personnel or different data labeling personnel.
[0087] According to at least some embodiments of the present specification, if the recognition of the third target detection model is the last model recognition operation for data labeling of this batch of data samples, the sixth labeling information can be determined as the final labeling information of the data sample. Furthermore, the data sample carrying the sixth labeling information can be used as a new labeled training sample to further train at least one of the first target detection model, the second target detection model and the third target detection model. In this way, the accuracy of the corresponding target detection model can be further improved, thereby improving the accuracy of data labeling, and therefore, the workload of manual checking and correction can be further reduced, thereby improving the efficiency of data labeling.
[0088] In one or more embodiments of the present specification, in order to further improve the accuracy of data labeling, after manually checking and correcting the model recognition results, the model's labeling accuracy for the data samples can be calculated based on the labeling results after manual correction and the labeling results output by the model, and the data samples with lower labeling accuracy can be re-labeled.
[0089] Optionally, based on the output results of the third target detection model and subsequent manual correction results, target data samples with poor recognition effects can be determined and optimized.
[0090] Specifically, after obtaining the sixth annotation information provided by the second data annotation personnel after checking and modifying the fifth annotation information according to the second abnormal information, it may also include: based on the sixth annotation information and the fifth annotation information, determining from the data sample a target data sample whose recognition effect meets a first preset condition; the first preset condition includes that the recognition effect of the third target detection model on the object to be identified in the target data sample is worse than the average recognition effect of the data sample; providing the target data sample and the sixth annotation information to the third data annotation personnel; obtaining the seventh annotation information provided by the third data annotation personnel after checking and modifying the annotation information of the target data sample on the basis of the sixth annotation information.
[0091] In actual application, if the recognition effect of the target data sample is inferior to the average recognition effect, on the one hand, it may be due to the reasons of the target data sample itself, for example, the quality of the data sample is poor; on the other hand, it may also be due to the mistakes of the data labeler. Therefore, in order to further improve the accuracy of the seventh labeled data, the third labeler can be set to be different from the first labeler and the second labeler, so as to avoid the situation of poor data labeling quality caused by subjective factors of the labelers.
[0092] In actual application, if the recognition of the third target detection model is the last model recognition operation for data labeling of this batch of data samples, the seventh labeling information obtained after manual review and modification based on the sixth labeling information can be determined as the final labeling information of the data samples.
[0093] Further, the determining, from the data samples, a target data sample whose recognition effect satisfies a first preset condition based on the sixth annotation information and the fifth annotation information may specifically include: calculating, based on the sixth annotation information and the fifth annotation information, an index value of a preset index of multiple data sample sets; the preset index is used to reflect the recognition effect of the third target detection model on the objects to be identified in the data samples contained in the data sample sets; calculating, according to the index value of each set in the multiple data sample sets, an average index value of the multiple data sample sets; determining, according to the average index value and the index value of each set in the multiple data sample sets, data samples in the data sample sets whose index values in the multiple data sample sets meet a second preset condition as target data samples to be checked and modified; the second preset condition includes that the degree to which the index value is lower than the average index value is greater than a preset threshold.
[0094] Among them, the preset indicators may include accuracy, recall rate, etc.
[0095] Assume that for a first data sample set, if the fifth recognition result obtained by the third target detection model contains the labeling information of m1 objects to be identified (m1 is a positive integer), and the third data labeler corrects the labeling information of n1 objects to be identified among the m1 objects to be identified (n1 is a positive integer and less than or equal to m1), then the recognition accuracy of the third target detection model for the first data sample set can be calculated as P1 = (m1-n1) / m1. Similarly, assuming that the data samples in the same batch contain k data sample sets (k is a positive integer), the recognition accuracy P corresponding to each data sample set can also be calculated. i , i is a positive integer from 1 to k. Thus, the index values of multiple data sample sets are obtained.
[0096] Furthermore, based on the recognition accuracy P corresponding to each of the above data sample sets, i , calculate the average index value of multiple data sample sets Thus, the average index value of multiple data sample sets is obtained.
[0097] Furthermore, for each data sample set, we can compare P i Lower than Is the degree greater than the preset threshold? Assuming the preset threshold is Q, then for any P i ,like It is believed that P i If the degree of being lower than the average index value is greater than a preset threshold, P i The data samples in the corresponding data sample set are determined as target data samples to be checked and modified.
[0098] In addition, taking the case where the data samples include user interface images, in actual application, a data sample set may correspond to an application, and more specifically, the data samples in a data sample set may include user interface images corresponding to the same application. Therefore, the target data samples determined based on the foregoing embodiments of this specification may correspond to the same application.
[0099] Alternatively, target data samples with poor recognition effects may be determined and optimized based on the output results of the second target detection model and subsequent manual correction results.
[0100] Specifically, after obtaining the third annotation information provided by the first data annotation personnel after checking and correcting the second annotation information according to the first abnormal information, it may also include: based on the third annotation information and the second annotation information, determining from the data sample a target data sample whose recognition effect meets a first preset condition; the first preset condition includes that the recognition effect of the second target detection model on the to-be-identified object in the target data sample is worse than the average recognition effect of the data sample; providing the target data sample and the third annotation information to a third data annotation personnel; obtaining the eighth annotation information provided by the third data annotation personnel after checking and correcting the annotation information of the target data sample on the basis of the third annotation information.
[0101] Further, the determining, from the data samples, target data samples whose recognition effect meets the first preset condition based on the third annotation information and the second annotation information specifically includes: calculating the index value of the preset index of multiple data sample sets based on the third annotation information and the second annotation information; the preset index is used to reflect the recognition effect of the second target detection model on the objects to be identified in the data samples contained in the data sample sets; calculating the average index value of the multiple data sample sets according to the index value of each set in the multiple data sample sets; determining the data samples in the data sample sets whose index values in the multiple data sample sets meet the second preset condition as the target data samples to be checked and modified according to the average index value and the index value of each set in the multiple data sample sets; the second preset condition includes that the degree to which the index value is lower than the average index value is greater than a preset threshold.
[0102] In actual application, if the recognition of the second target detection model is the last model recognition operation for data labeling of this batch of data samples, the eighth labeling information obtained after manual review and correction based on the third labeling information can be determined as the final labeling information of the data samples. If the recognition of the second target detection model is not the last model recognition operation for data labeling of this batch of data samples, the eighth labeling information obtained after manual review and correction based on the third labeling information can be used as reference information for whether to continue model recognition and manual review operations.
[0103] In one or more embodiments of the present specification, after obtaining the seventh annotation information obtained by checking and correcting the annotation information of the target data sample based on the sixth annotation information provided by the third data annotator, it can also include: using the data sample carrying the seventh annotation information as a training sample to train at least one of the first target detection model, the second target detection model and the third target detection model. In this way, the accuracy of the corresponding target detection model can be further improved, thereby improving the accuracy of data annotation, and therefore, the workload of manual checking and correction can be further reduced, thereby improving the efficiency of data annotation.
[0104] The various technical features in the above embodiments can be combined arbitrarily as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.
[0105] According to the above description, an embodiment of this specification provides a data labeling method in an actual application scenario.
[0106] Traditionally, data labeling tasks rely on manual labor, that is, data labelers. Usually, data labelers label data samples by learning labeling categories and standards, for example, labeling UI components for UI design drafts; in order to improve the accuracy and consistency of labeling, methods such as multi-person cross-labeling and multi-round labeling may be adopted. However, since the quality requirements for data labeling are usually high and the amount of data to be labeled is usually large, relying entirely on manual labeling is often inefficient and costly.
[0107] At present, there are schemes in the industry that use computer technology and machine learning technology for annotation. Take UI component annotation as an example. For example, the annotation method used in the paper "Rico: A Mobile App Dataset for Building Data-Driven Design Applications" is: code analysis of Android applications, extraction of possible UI components, and then classification of components using clustering algorithms. However, annotation schemes that rely entirely on computer technology and machine learning technology often have low annotation accuracy and a large number of missed annotations.
[0108] In the embodiments of the present specification, a labeling method combining a target detection model and manual labeling is designed for the UI component labeling task. The target detection model greatly improves the labeling efficiency of labelers, and the quality of the labeled data is guaranteed through multiple rounds of iterations and multi-model detection.
[0109] like Figure 2 , which shows a flow chart of a method for data labeling in an actual application scenario provided by an embodiment of this specification.
[0110] Combination Figure 2 As shown, the method for data labeling of user interface components may include the following process.
[0111] (1) Obtain the data samples to be labeled.
[0112] In the embodiments of the present specification, the data sample may specifically include an image sample, and more specifically, the data sample may include a user interface image.
[0113] For example, the user interface image may include user interface screenshot data of the application, user interface image data derived based on user interface design draft data, user interface image data rendered based on code data of the application, etc.
[0114] In actual application, taking into account the problems that user interface design draft data and application code data are difficult to collect, errors are prone to occur in the process of generating user interface image data based on user interface design draft data and application code data, and the quality of generated user interface data is relatively poor, the user interface screenshot data of the application can be used preferentially. This is conducive to obtaining a large amount of high-quality sample data to be annotated, which can improve the data annotation quality to a certain extent, and can also improve the data annotation quality by reducing the user's modification workload.
[0115] (2) Initial data labeling.
[0116] A small amount of data samples to be labeled are obtained from the data samples to be labeled for manual labeling to serve as training samples for pre-training the target detection model.
[0117] In the embodiments of this specification, a target detection model is used for pre-labeling and labeling verification, and the target detection model is a supervised learning model, so it relies on labeled data samples. For the first training of the target detection model, a small amount of data can be sampled from the sample data to be labeled, and the initial data that can be used to train the model can be obtained through manual labeling.
[0118] (3) Initial model training.
[0119] In the embodiments of this specification, the target detection model may be used to perform one pre-labeling task and one labeling verification task, in which case the target detection model needs to be used twice; or the target detection model may be used to perform one pre-labeling task and two labeling verification tasks, in which case the target detection model needs to be used three times. Figure 2 The case of using a cubic object detection model is shown in FIG.
[0120] Furthermore, in order to increase the diversity of the models in the three tasks, three different target detection models can be trained during the first model training. On the one hand, during training, different target detection models can be trained using different training data. For example, the first target detection model used for pre-labeling can be trained using the full amount of training data, and the second target detection model and the third target detection model used for labeling verification can be trained using part of the sampled training data. On the other hand, the first target detection model, the second target detection model, and the third target detection model can use target detection models with different architectures to make full use of the differences in feature learning of different architecture models. This difference can better help detect and verify data.
[0121] In addition, since the amount of labeled data obtained by the initial data labeling in process (2) is small, the accuracy of the target detection model trained by process (3) may not be very high. Therefore, in the embodiments of the present specification, the labeled data (such as the data obtained in the subsequent process (7)) can be used to further train the target detection model to improve the accuracy of each target detection model.
[0122] (4) Model pre-annotation and manual annotation.
[0123] Each time data annotation is performed, part of the data samples may be selected from the data samples to be annotated, that is, the data samples to be annotated in this batch.
[0124] First, the first target detection model is used for inference prediction. Specifically, taking the case where the data sample may include a user interface image, the user interface image data may be input into the first target detection model, and the first target detection model may be used to infer possible UI component coordinates and classifications, and then provide the prediction results to the data annotator. For example, the prediction results may be visualized on a picture to form a pre-annotation result.
[0125] Then, the data labeling personnel check the pre-labeling results, and modify or delete the erroneous labels in the pre-labeling results, and supplement the missing component labels, thereby obtaining the labeled data one.
[0126] (5) Model verification and manual inspection and repair.
[0127] Taking the data sample including the user interface image as an example, in actual application, since there may be a large number of UI components in the user interface image of the application, it is difficult to detect all errors and fully mark the UI component elements in the user interface image in one manual annotation review. Therefore, in the embodiments of this specification, the object detection model with different architectures and / or different data training is used to verify the manually annotated data.
[0128] Specifically, first, the data samples to be labeled in this batch can be input into the second target detection model for reasoning to obtain predicted component coordinates and classifications; then, the labeled data one can be compared with the reasoning results of the second target detection model to obtain inconsistent recognition results (i.e., the first abnormal situation). In fact, this part of the inconsistent recognition results may include two parts: errors in the labeled data one and errors in the reasoning results of the second target detection model; afterward, the inconsistent recognition results can be manually reviewed again to correct the results.
[0129] Furthermore, considering that different objects to be identified may have similarities (for example, there are similarities between different UI components), in some cases, data labelers may be misled by the model verification results. Therefore, in order to avoid the model verification results from misleading the data labelers, in an embodiment of this specification, when inconsistent recognition results are provided to data labelers, only the location of the wrong UI component is displayed, and the classification result of the model's prediction for the wrong UI component is not displayed, so that the data labeler can modify the component annotation information according to the preset annotation standard. After this process, the corrected annotation data 2 is obtained.
[0130] (6) Model verification and manual inspection and repair again.
[0131] In the embodiments of this specification, considering that one model may not be able to identify all manual labeling errors, for example, only using the second object detection model for verification cannot identify all the mislabeling and missing labels in the labeled data one, therefore, the labeling result can be improved by using the model verification and manual inspection and repair process multiple times. Thus, the labeled data three can be obtained.
[0132] In actual application, the execution process of process (6) can be the same as the execution process of process (5), which will not be repeated here.
[0133] Considering that different object detection models are used in multiple model verifications, it is empirically possible that two model verifications and manual inspection and repair can produce relatively high-quality annotation results. Therefore, considering the accuracy and efficiency of data annotation, it is recommended to use two model verifications in practical applications.
[0134] (7) File verification indicators and manual inspection and repair.
[0135] After process 5 and process 6, relatively high-quality annotation results can be obtained.
[0136] In the embodiments of this specification, further, considering the influence of factors such as the acquisition channel of data samples, it may also lead to the situation that the data labeling results of the data sample sets corresponding to certain applications are significantly worse than the data labeling results of other data samples. Considering that the review quality of different data labelers varies, it may be the case that the review and repair results of some data labelers are significantly worse than those of other data labelers.
[0137] In view of this, in the embodiments of this specification, all user interface data corresponding to an application, or all data samples annotated by a data annotator, are regarded as a file. Thus, by treating the annotated data as real labels, based on the prediction results of the third target detection model, the overall average index and sub-file index of the third target detection model for the annotated data can be calculated, and then the deviation of each file index relative to the average index can be obtained.
[0138] Furthermore, when the index of a certain file deviates from the average index by a large value, the result can be fed back to another data annotator to manually check and repair the file. After this step, the obtained annotated data can be used as the result annotated data.
[0139] (8) Training data supplement and model iteration.
[0140] After processes (5) to (7), a batch of high-quality annotated data can be obtained, for example, UI component annotated data.
[0141] Furthermore, in the embodiments of the present specification, the obtained labeled data can be cyclically supplemented to the previous training data. Thus, the updated training data can be used to retrain the first target detection model, the second target detection model, and the third target detection model to improve the accuracy of each target detection model. Furthermore, the iterative model can provide more accurate and complete pre-labeling and verification of data samples, and further reduce the manual modification workload and improve the labeling efficiency.
[0142] Based on the solution provided in the embodiments of this specification, a data labeling method based on target detection is provided, which involves pre-labeling of data objects based on target detection and verification of the labeling results of data objects; and a method for improving data object detection accuracy and data labeling efficiency through iteration is also provided.
[0143] Furthermore, taking the example that the data sample includes user interface images and the objects to be identified include UI components, a UI component labeling method based on target detection is provided, which involves pre-labeling of UI components based on target detection and verification of the labeling results of UI components; and a method for improving UI component detection accuracy and labeling efficiency through iteration is also provided.
[0144] Based on one or more embodiments of the present specification, data labeling is achieved by combining machine learning models with manual work, which greatly improves the labeling efficiency while ensuring the reliability and completeness of the labeling results.
[0145] Based on one or more embodiments of the present specification, a mechanism of multiple model verification and manual review of differentiated models is adopted to greatly reduce missed labels and wrong labels, while avoiding deviations caused by differences between labelers as much as possible.
[0146] Based on one or more embodiments of the present specification, the execution results of the data labeling task are fed back to further train the target detection model. The labeling task and the optimization process of the model performance promote and improve each other. The performance-optimized model can bring a more efficient labeling process, and faster and higher-quality labeling results can further improve the model's effect, thus achieving a virtuous cycle of data labeling and model training optimization.
[0147] Corresponding to the above method embodiment, this specification also provides an embodiment of a data labeling device, Figure 3 A schematic diagram of the structure of a data labeling device provided by an embodiment of this specification is shown.
[0148] like Figure 3 As shown, the device comprises:
[0149] The data acquisition module 302 is used to acquire a data sample to be labeled and first labeling information of the data sample; the first labeling information is obtained by identifying the data sample based on a first target detection model; the first labeling information is used to indicate the recognition result of the object to be identified contained in the data sample;
[0150] A model detection module 304, configured to input the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample;
[0151] An abnormality identification module 306, configured to determine inconsistent information between the first annotation information and the second annotation information as first abnormality information;
[0152] A first interaction module 308, configured to provide the data sample and the first abnormal information to a first data labeler;
[0153] The second interaction module 310 is used to obtain third annotation information provided by the first data annotation personnel, which is obtained by checking and modifying the second annotation information according to the first abnormal information.
[0154] based on Figure 3 The present specification also provides some specific implementation schemes of the method, which are described below.
[0155] Optionally, the data labeling device may also be used to, before obtaining the first labeling information of the data sample: input the data sample to be labeled into a first target detection model to obtain the first labeling information of the data sample.
[0156] Optionally, the data labeling device can also be used to, before obtaining the first labeling information of the data sample: input the data sample to be labeled into a first target detection model to obtain fourth labeling information of the data sample; provide the data sample and the fourth labeling information to a first data labeler; and obtain the first labeling information obtained by the first data labeler by manually labeling the data sample with reference to the fourth labeling information.
[0157] Optionally, the data labeling device can also be used to, after obtaining the third labeling information provided by the first data labeling personnel after checking and correcting the second labeling information according to the first abnormal information: input the data sample into a third target detection model different from the first target detection model and the second target detection model to obtain fifth labeling information of the data sample; determine inconsistent information in the fourth labeling information and the fifth labeling information as second abnormal information; provide the data sample and the second abnormal information to the second data labeling personnel; and obtain the sixth labeling information provided by the second data labeling personnel after checking and correcting the fifth labeling information according to the second abnormal information.
[0158] Optionally, the data labeling device can also be used for: after obtaining the sixth labeling information provided by the second data labeling personnel after checking and modifying the fifth labeling information according to the second abnormal information: based on the sixth labeling information and the fifth labeling information, determining from the data sample a target data sample whose recognition effect meets a first preset condition; the first preset condition includes that the recognition effect of the third target detection model on the object to be identified in the target data sample is worse than the average recognition effect of the data sample; providing the target data sample and the sixth labeling information to the third data labeling personnel; obtaining the seventh labeling information provided by the third data labeling personnel after checking and modifying the labeling information of the target data sample on the basis of the sixth labeling information.
[0159] Optionally, determining, from the data samples, a target data sample whose recognition effect satisfies a first preset condition based on the sixth annotation information and the fifth annotation information may specifically include: calculating, based on the sixth annotation information and the fifth annotation information, an index value of a preset index of multiple data sample sets; the preset index is used to reflect the recognition effect of the third target detection model on the objects to be identified in the data samples contained in the data sample sets; calculating, according to the index value of each set in the multiple data sample sets, an average index value of the multiple data sample sets; determining, according to the average index value and the index value of each set in the multiple data sample sets, data samples in the data sample sets whose index values in the multiple data sample sets meet a second preset condition as target data samples to be checked and modified; the second preset condition includes that the degree to which the index value is lower than the average index value is greater than a preset threshold.
[0160] Optionally, the data labeling device can also be used to, after obtaining the seventh labeling information provided by the third data labeling personnel after checking and modifying the labeling information of the target data sample on the basis of the sixth labeling information: use the data samples carrying the seventh labeling information as training samples to train at least one of the first target detection model, the second target detection model and the third target detection model.
[0161] Optionally, the data samples include image samples.
[0162] Optionally, the image sample includes a user interface image; and the object to be identified includes a user interface component.
[0163] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0164] The above is a schematic scheme of a data labeling device of this embodiment. It should be noted that the technical scheme of the data labeling device and the technical scheme of the above data labeling method belong to the same concept, and the details not described in detail in the technical scheme of the data labeling device can be referred to the description of the technical scheme of the above data labeling method.
[0165] Figure 4 The block diagram of a computing device 400 according to one embodiment of the present specification is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.
[0166] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0167] In one embodiment of the present specification, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0168] The computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 400 may also be a mobile or stationary server.
[0169] The processor 420 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned data labeling method.
[0170] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data labeling method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data labeling method.
[0171] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned data labeling method.
[0172] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned data labeling method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned data labeling method.
[0173] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned data labeling method.
[0174] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the above data labeling method belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the above data labeling method.
[0175] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device, computing device, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device, computing device, and computer-readable storage medium provided in the embodiments of this specification correspond to the method, so the device, computing device, and computer-readable storage medium also have beneficial technical effects similar to the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding device, computing device, and computer-readable storage medium will not be repeated here.
[0176] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0177] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0178] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0179] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0180] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A data labeling method, characterized in that: include: Acquire a data sample to be labeled and first labeling information of the data sample; The first labeling information is obtained by identifying the data sample based on a first target detection model; The first annotation information is used to indicate the recognition result of the object to be recognized contained in the data sample; Inputting the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample; Determining inconsistent information between the first annotation information and the second annotation information as first abnormal information; Providing the data sample and the first abnormal information to a first data labeler; Obtain third annotation information provided by the first data annotation personnel after checking and correcting the second annotation information according to the first abnormal information.
2. The method according to claim 1, characterized in that Before obtaining the first labeling information of the data sample, the method further includes: The data sample to be labeled is input into the first target detection model to obtain first labeling information of the data sample.
3. The method according to claim 1, characterized in that Before obtaining the first labeling information of the data sample, the method further includes: Inputting the data sample to be labeled into the first object detection model to obtain fourth labeling information of the data sample; Providing the data sample and the fourth annotation information to the first data annotator; Obtain first labeling information obtained by the first data labeler manually labeling the data sample with reference to the fourth labeling information.
4. The method according to claim 1, characterized in that After obtaining the third annotation information provided by the first data annotator and obtained by checking and modifying the second annotation information according to the first abnormal information, the method further includes: Inputting the data sample into a third target detection model different from the first target detection model and the second target detection model to obtain fifth labeling information of the data sample; determining inconsistent information between the fourth annotation information and the fifth annotation information as second abnormal information; Providing the data sample and the second abnormal information to a second data labeler; Acquire sixth annotation information provided by the second data annotation personnel, which is obtained by checking and correcting the fifth annotation information according to the second abnormal information.
5. The method according to claim 4, characterized in that After obtaining the sixth annotation information provided by the second data annotator and obtained by checking and modifying the fifth annotation information according to the second abnormal information, the method further includes: Based on the sixth annotation information and the fifth annotation information, determining a target data sample whose recognition effect satisfies a first preset condition from the data sample; the first preset condition includes that the recognition effect of the third target detection model on the to-be-recognized object in the target data sample is inferior to the average recognition effect of the data sample; Providing the target data sample and the sixth annotation information to a third data annotator; The seventh annotation information provided by the third data annotation personnel is obtained by checking and modifying the annotation information of the target data sample based on the sixth annotation information.
6. The method according to claim 5, characterized in that The determining, based on the sixth labeling information and the fifth labeling information, from the data samples, a target data sample whose recognition effect satisfies a first preset condition specifically includes: Based on the sixth annotation information and the fifth annotation information, calculating the index value of the preset index of the plurality of data sample sets; the preset index is used to reflect the recognition effect of the third object detection model on the to-be-recognized object in the data sample contained in the data sample set; Calculating an average index value of the plurality of data sample sets according to the index value of each set in the plurality of data sample sets; According to the average index value and the index values of each set in the multiple data sample sets, data samples in the data sample sets whose index values in the multiple data sample sets meet a second preset condition are determined as target data samples to be checked and modified; the second preset condition includes that the degree to which the index value is lower than the average index value is greater than a preset threshold.
7. The method according to claim 5, characterized in that After obtaining the seventh annotation information provided by the third data annotator and obtained by checking and modifying the annotation information of the target data sample based on the sixth annotation information, the method further includes: The data samples carrying the seventh annotation information are used as training samples to train at least one of the first target detection model, the second target detection model, and the third target detection model.
8. The method according to claim 1, characterized in that The data samples include image samples.
9. The method according to claim 8, characterized in that The image sample includes a user interface image; the object to be identified includes a user interface component.
10. A data labeling device, characterized in that: include: A data acquisition module, used to acquire a data sample to be labeled and first labeling information of the data sample; The first labeling information is obtained by identifying the data sample based on a first target detection model; The first annotation information is used to indicate the recognition result of the object to be recognized contained in the data sample; A model detection module, used for inputting the data sample into a second target detection model different from the first target detection model to obtain second labeling information of the data sample; an abnormality identification module, used for determining inconsistent information between the first annotation information and the second annotation information as first abnormality information; A first interaction module, configured to provide the data sample and the first abnormal information to a first data labeler; The second interaction module is used to obtain third annotation information provided by the first data annotation personnel, which is obtained by checking and modifying the second annotation information according to the first abnormal information.
11. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data labeling method described in any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, implement the steps of the data labeling method described in any one of claims 1 to 9.
13. A computer program, characterized in that When the computer program is executed in a computer, the computer is caused to execute the steps of the data labeling method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Data labeling method and device
CN111368902A
Label processing method and device, equipment and storage medium
CN115329843A
Verification method of point cloud annotation data, terminal equipment and storage medium
CN117689981A
Target detection model training method, target detection method and related equipment
CN117765487A
Crowdsourced on-demand AI data annotation, collection and processing
US11037024B1
Cited By
Efficient data labeling method and system, electronic equipment and storage medium
CN119559407A
