Data processing method and device, electronic equipment and readable storage medium
By splitting quality inspection tasks into subtasks and matching task execution components, the problem of low quality inspection efficiency for subjective and complex decision-making tasks is solved, and an efficient and accurate quality inspection process is achieved.
Patent Information
- Application Number
- CN202410773522.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, subjective and complex decision-making tasks can only be inspected one by one by quality inspectors, resulting in long quality inspection cycles, high costs, and low efficiency for data annotation results.
Split the quality inspection task into multiple subtasks, and match task execution components according to the input and output data types of each subtask. Quality inspection results are obtained through the sequential execution of components, reducing quality inspection complexity and human errors.
It improves the accuracy and credibility of quality inspection, reduces human errors, reduces quality inspection costs, shortens the quality inspection cycle, and improves quality inspection efficiency.
Smart Images

Figure CN118656186A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to a method, device, electronic device and readable storage medium for data processing. Background Art
[0002] Artificial intelligence (AI) aims to study and develop computer systems that can perform tasks that usually require human intelligence. These tasks include understanding language, recognizing images, making decisions, solving problems, etc. Among them, machine learning is a method to achieve artificial intelligence. Through algorithms, computers can extract features and patterns from data to complete specific tasks, such as predicting, classifying, identifying or other forms of analysis of newly input data.
[0003] As a carrier of machine learning, the model is a mathematical framework or algorithm structure that expresses the mapping relationship between input data and expected output. Among them, the model can be a simple linear model, such as linear regression, or a complex nonlinear model, such as a deep neural network. The model uses machine learning algorithms such as decision trees, support vector machines, neural networks (such as supervised learning, unsupervised learning, semi-supervised learning, and reinforcement learning) to adjust the parameters within the model using training data sets, that is, the initialization parameters of the model are continuously iterated so that these parameters are adjusted to reduce the prediction error of the model and better fit the data distribution, that is, model training. The goal is to optimize the performance of the model on unknown data as much as possible, that is, to have good generalization ability. After the model is trained, it can accept new input data and generate output based on the knowledge it has learned, such as predicting a value, assigning a category label, or generating new data samples.
[0004] During the model training process, the training data needs to be annotated, that is, descriptive labels or bounding boxes are added to the training data (such as images, text, audio) manually or automatically. The model adjusts internal parameters by analyzing the annotated training data to minimize the prediction error (loss function). If the data annotation is wrong or inconsistent, the model may learn the wrong rules, causing the prediction results to deviate from reality, affecting the accuracy, reliability and generalization ability of the model. Therefore, the output of the completed data annotation task needs to be checked and evaluated to ensure the accuracy and consistency of all annotated data.
[0005] At present, when quality checking the labeled data, the accuracy and consistency of each labeled data can be checked manually one by one, but it is time-consuming and labor-intensive. In order to efficiently process large-scale data, AI quality inspection algorithms (such as confidence interval estimation, majority voting, Bayesian interval estimation, etc.) have been proposed. However, these AI quality inspection algorithms are mainly aimed at cognitive tasks and cannot be applied to subjective and complex decision-making tasks. For subjective and complex decision-making tasks, only quality inspectors can check their accuracy and consistency one by one, which makes the quality inspection of data annotation results have problems such as long cycle, high cost and low efficiency. Summary of the invention
[0006] This application provides a data processing method, device, electronic device and readable storage medium to solve the problem that subjective and complex decision-making tasks can only be checked by quality inspectors one by one for accuracy and consistency, which makes the quality inspection of data annotation results have problems such as long cycle, high cost and low efficiency. The specific method is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for data processing, the method comprising:
[0008] Obtain the labeling requirements for the completed labeling data;
[0009] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose;
[0010] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0011] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0012] In a second aspect, an embodiment of the present application further provides a data processing device, the device comprising:
[0013] A first acquisition module is used to acquire the labeling requirements of the completed labeling data;
[0014] A splitting module, used to split the quality inspection task into at least two subtasks based on the marking requirements, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose;
[0015] A matching module is used to define the input data type and output data type of each subtask, and match a task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0016] The second acquisition module is used to use the quality inspection result received by the previous task execution component as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0017] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0018] Processor; and
[0019] The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the following steps are performed:
[0020] Obtain the labeling requirements for the completed labeling data;
[0021] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose;
[0022] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0023] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0024] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a data processing program, which is executed by a processor to perform the following steps:
[0025] Obtain the labeling requirements for the completed labeling data;
[0026] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose;
[0027] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0028] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0029] Compared with the prior art, this application has the following advantages:
[0030] A data processing method provided by an embodiment of the present application obtains the labeling requirements of the completed labeled data; based on the labeling requirements, splits the quality inspection task into at least two subtasks, and all the subtasks are arranged in a preset order, and the quality inspection purpose of each subtask is different; defines the input data type and output data type of each subtask, and matches a task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to an execution object so that the execution object can quality inspect the subtask, and receive the quality inspection result fed back by the subtask execution object for output; uses the quality inspection result received by the previous task execution component as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the result of the completed data processing.
[0031] It can be seen that the quality inspection task is split into at least two subtasks arranged in a preset order through the above-mentioned annotation requirements, and the complex quality inspection task is disassembled into multiple data processing subtasks, which reduces the complexity and difficulty of the quality inspection task. Then, the corresponding task execution component is matched for each subtask according to the defined input data type and output data type of the subtask, so that each task execution component sends the corresponding subtask to the execution object of the task, thereby improving the accuracy and credibility of the quality inspection. And the quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtask in turn to obtain the result of the completed data processing. This method reduces human errors, reduces quality inspection costs, shortens the quality inspection cycle, and has high quality inspection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0033] Figure 2 is a schematic diagram of completed labeled data provided in an embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of a subtask 1 sent by a task execution component to an execution object provided in an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of a subtask 2 sent by a task execution component to an execution object provided in an embodiment of the present application;
[0036] Figure 5 It is a schematic diagram of a subtask 3 sent by a task execution component to an execution object provided in an embodiment of the present application;
[0037] Figure 6 A structural block diagram of a data processing device provided in an embodiment of the present application;
[0038] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0040] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] Artificial intelligence (AI) aims to study and develop computer systems that can perform tasks that usually require human intelligence. These tasks include understanding language, recognizing images, making decisions, solving problems, etc. Among them, machine learning is a method to achieve artificial intelligence. Through algorithms, computers can extract features and patterns from data to complete specific tasks, such as predicting, classifying, identifying or other forms of analysis of newly input data.
[0042] As a carrier of machine learning, the model is a mathematical framework or algorithm structure that expresses the mapping relationship between input data and expected output. Among them, the model can be a simple linear model, such as linear regression, or a complex nonlinear model, such as a deep neural network. The model uses machine learning algorithms such as decision trees, support vector machines, neural networks (such as supervised learning, unsupervised learning, semi-supervised learning, and reinforcement learning) to adjust the parameters within the model using training data sets, that is, the initialization parameters of the model are continuously iterated so that these parameters are adjusted to reduce the prediction error of the model and better fit the data distribution, that is, model training. The goal is to optimize the performance of the model on unknown data as much as possible, that is, to have good generalization ability. After the model is trained, it can accept new input data and generate output based on the knowledge it has learned, such as predicting a value, assigning a category label, or generating new data samples.
[0043] Models can be widely deployed in different industries and areas of life to solve practical problems, optimize processes, provide predictions or assist in decision-making, such as (1) prediction or classification, using models to predict or classify unknown data, such as predicting stock price trends, user purchase behavior, whether an email is spam, etc. (2) computer vision, using models to identify objects, scenes, and actions in images and videos, and applied to autonomous driving, security monitoring, medical imaging diagnosis and other fields. (3) natural language processing, enabling computers to understand, generate and process natural language, covering speech recognition, semantic understanding, dialogue systems, machine translation and other aspects, is the key to building applications such as chatbots and intelligent customer service. (4) decision-making and planning, using models to make complex decisions and plan routes, such as optimizing decision-making processes in logistics distribution, resource allocation, game strategy and other fields. (5) knowledge representation and reasoning, building knowledge graphs, storing, retrieving and logically reasoning knowledge, enabling the system to understand the relationship between entities and solve problems that require chain thinking. (6) In the field of reinforcement learning and adaptive systems, the optimal behavior strategy is learned through interaction with the environment, achieving the ability to self-improve and adapt to different environments. It is applicable to scenarios such as robot control, game AI, and automated trading. (7) In the field of anomaly detection and pattern recognition, abnormal patterns or trends are identified from data, which is used in the fields of financial risk control, network security, and health monitoring. (8) In the field of content creation, creative models can generate multimedia content such as text, images, and audio to enrich the cultural and entertainment industries, such as AI painting and automatic generation of news reports.
[0044] During the model training process, the training data needs to be annotated, that is, descriptive labels or bounding boxes are added to the training data (such as images, text, audio) manually or automatically. The model adjusts internal parameters by analyzing the annotated training data to minimize the prediction error (loss function). If the data annotation is wrong or inconsistent, the model may learn the wrong rules, causing the prediction results to deviate from reality, affecting the accuracy, reliability and generalization ability of the model. Therefore, it is necessary to check and evaluate the output of the completed data annotation task to ensure the accuracy and consistency of all annotated data. During the inspection process, it is necessary to check whether the annotation is strictly carried out in accordance with the established rules and guidelines to ensure that each label is correct; confirm that all parts of the data set that need to be annotated have been correctly annotated without omissions; ensure that the annotations of the same or similar situations between different annotators are consistent to reduce subjective differences; ensure that the annotation format, naming conventions, etc. follow the project-specific standards and requirements.
[0045] At present, the quality inspection of labeled data is to manually check the accuracy and consistency of each labeled data one by one, but it is time-consuming and labor-intensive. In order to efficiently process large-scale data, AI quality inspection algorithms (such as confidence interval estimation, majority voting, Bayesian interval estimation, etc.) have been proposed. However, these AI quality inspection algorithms are mainly targeted at cognitive tasks and cannot be applied to subjective and complex decision-making tasks. For subjective and complex decision-making tasks, quality inspectors can only check their accuracy and consistency one by one, which makes the quality inspection of data annotation results have problems such as long cycle, high cost and low efficiency. Among them, cognitive tasks refer to the perception, understanding and processing capabilities of machine learning systems or artificial intelligence agents for information, including data analysis, pattern recognition and knowledge acquisition capabilities (such as three-choice picture selection). Decision-making tasks refer to the choices or actions made by AI systems or agents based on their cognitive abilities under given information and conditions to achieve specific goals or solve problems (such as story continuation, NPC dialogue annotation, etc.), usually based on a series of predefined rules, models or optimization methods.
[0046] In order to solve the above problems in the related art, the embodiment of the present application provides a method for data processing. The execution subject of the solution provided by the present application can be an electronic device, which can be a desktop computer, a laptop computer, a mobile device, a smart watch, a smart TV, a tablet computer, a server, etc., or other devices with data processing and display functions.
[0047] The data processing method provided in the present application can be used to perform quality inspection on the labeled data, and those skilled in the art can set specific representations for quality inspection according to actual needs.
[0048] like Figure 1FIG. 1 is a flow chart of a data processing method provided in an embodiment of the present application, wherein the quality inspection method comprises:
[0049] Step S101, obtaining the labeling requirements of the completed labeling data;
[0050] In the embodiments of the present application, the data may be in different forms, including discrete digital data such as numbers, letters, symbols, and continuous analog data such as text, graphics, images, sounds, and videos. Labeled data refers to adding corresponding labels to data in machine learning algorithms; completed labeled data refers to data to which corresponding labels have been added. By labeling data, the model can learn specific patterns during the training process and help the model understand the specific meaning of the data (e.g., in image recognition, by labeling the object categories in the image, the model can learn the characteristics of different objects; in natural language processing, by text labeling, the model can learn grammatical structures, emotional tendencies, etc.), so that the model can effectively classify, identify, or predict new data. That is, through data labeling, computers can automatically process tasks that originally required human intelligence to complete, such as self-driving cars identifying road signs and intelligent customer service understanding user intentions. At the same time, the diversity of labeled data can help the model better generalize to new scenarios, reduce overfitting, and ensure the performance of the model on new data.
[0051] The annotation requirements are specific requirements for processing and converting data into a form that machines can understand and learn; annotation requirements may include: (1) Data type: Indicate whether the data to be annotated is an image, video, audio, text, or 3D point cloud, etc. (2) Annotation type: Determine the required annotation type based on project requirements, such as object recognition, bounding box annotation, semantic segmentation, and key point annotation in images; sentiment analysis, named entity recognition, and relationship extraction in text; speech transcription and sentiment annotation in audio, etc. (3) Annotation standards: Annotation rules and guidelines to ensure the consistency and accuracy of annotation. Including defining category labels, the degree of annotation refinement, ignore standards, etc. (4) Quality requirements: Set quality indicators such as accuracy and recall rate of data annotation, as well as quality control processes, such as multiple rounds of verification and expert review.
[0052] When obtaining the annotation requirements of the completed annotated data, the accuracy, type and format of the annotation can be obtained according to the specific requirements, scope and intended use of the annotated data (such as machine learning model training, data analysis, map making or architectural design, etc.); and then the specific requirements for processing and converting the data into a form that the machine can understand and learn can be obtained.
[0053] For example, Figure 2 As shown, it is a schematic diagram of a completed labeled data provided in an embodiment of the present application, and the data to be labeled is Figure 2The dialogue on the left needs to be rewritten. Figure 2 The text on the right is the data that has been marked (after rewriting).
[0054] It should be noted that the dialogue can be rewritten by a dedicated rewriter to obtain the text; it can also be done by training the AI, and the trained AI generates text based on the dialogue.
[0055] Step S102, based on the labeling requirement, split the quality inspection task into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose;
[0056] In an embodiment of the present application, the quality inspection task is the process of checking and evaluating the completed data annotation results to ensure the accuracy and consistency of the data annotation. The subtask is to divide the quality inspection task into more specific and detailed work units according to different data types, annotation requirements or specific characteristics of the annotation object. That is, the quality inspection task is divided into multiple subtasks according to different quality inspection purposes, and the quality inspection purpose of each subtask is different. Exemplarily, after obtaining the annotation requirements of the completed annotated data, the quality inspection task can be split into subtasks corresponding to each step according to the implementation steps of the specific requirements of processing and converting the annotation requirements into a form that the machine can understand and learn.
[0057] Preferably, before splitting the quality inspection task into at least two subtasks based on the labeling requirement, the method further includes:
[0058] Based on the inseparable operation unit of the quality inspection task corresponding to each marking requirement, a preset subtask type corresponding to each marking requirement is set.
[0059] In the embodiments of the present application, different data types (such as images, text, voice, video, etc.) and annotation purposes (such as classification, recognition, relationship annotation, etc.) have different requirements for accuracy, consistency and completeness. Therefore, quality inspection tasks corresponding to each annotation requirement are set for different annotation requirements; for example, for object recognition, the quality inspection needs to check whether the bounding box accurately surrounds the object and whether the category label is correct; in scene understanding annotation, the quality inspection needs to verify whether the image classification conforms to the actual scene; for the quality inspection of key point annotation, it is necessary to ensure that the positions of all key points are accurate and conform to the structure of the human body or object; for the quality inspection of sentiment analysis, it is necessary to confirm whether the text sentiment classification is consistent with the content; for the quality inspection of speech transcription, it is necessary to check the consistency of the transcribed text with the original speech content; for the quality inspection of knowledge graph construction, it is necessary to check the accuracy and completeness of entity relationships, etc.
[0060] It should be noted that different label types (such as classification, regression, sequence labeling, etc.) require different quality inspection strategies; for example, classification tasks may focus on checking the accuracy of classification, while sequence labeling needs to focus on the continuity and completeness of the labeling. Complex data (such as high-resolution images, long texts, or noisy speech) are often more prone to labeling errors, so the sampling ratio will be increased during quality inspection, or more sophisticated quality inspection tools and algorithms will be used to assist in the inspection; multiple dimensions of data (such as multiple objects in an image, multiple layers of meaning in a text) require more detailed quality inspection, and each dimension can set independent inspection standards, or adopt a multi-level quality inspection process to cover the accuracy of all dimensions. Therefore, when setting quality inspection tasks with different labeling requirements, it is necessary to comprehensively consider the label, complexity, and dimension of the labeled data to optimize the labeling process, thereby improving the reliability of the data set and the model training effect.
[0061] It should be noted that the quality inspection task not only includes the inspection of the final labeling results, but also includes the monitoring of the labeling process, such as checking whether the labelers have followed the established labeling guidelines and rules, and whether the labeling efficiency meets the project progress requirements; therefore, the subtasks after the quality inspection task is split include subtasks for checking the final labeling results and subtasks for monitoring the labeling process.
[0062] After obtaining the quality inspection tasks corresponding to each annotation requirement, split them according to the operation units of the quality inspection tasks, and split each inseparable operation unit in the quality inspection process as a subtask to ensure that all operations included in the quality inspection form a logical whole. If any part of the quality inspection fails to complete successfully for any reason (such as errors, exceptions or external intervention), all executed operations will be rolled back. And all subtasks obtained after splitting are arranged in a preset order, which can be arranged according to the order of the implementation steps in the above annotation requirements.
[0063] Preferably, the subtasks are arranged in a preset order, including: all subtasks are arranged in a preset logical relationship.
[0064] In the embodiment of the present application, the preset logical relationship means that all subtasks are arranged in the order of execution, so that the output of the previous subtask can be used as the input of the next subtask, and all subtasks form a dependency chain. During execution, the start of the next subtask depends on the completion of the previous subtask, that is, task B can only start after task A is completed.
[0065] It should be noted that the quality inspection task can be divided into multiple serial subtasks (subtask serialization or subtask serialization). The subtasks are executed one by one in a preset order. The start of each subtask depends on the end of the previous subtask, and the output (result or data) of the previous subtask will be directly passed to the next subtask as input.
[0066] Optionally, the last subtask after the quality inspection task is split is to obtain a confidence interval of the quality inspection result of the previous subtask.
[0067] In the embodiments of the present application, the confidence interval is used to estimate the possible range of a population parameter. It is an interval constructed from sample statistics (such as sample mean, proportion, etc.). The interval is intended to contain the true value of the unknown population parameter (such as population mean, proportion), and this true value has a certain probability of falling within this interval. This probability is called the confidence level, which is usually expressed as a percentage, such as 95%, 99%, etc. For example, if a study calculates a 95% confidence interval of a population mean based on sample data as [10,15], it means that there is a 95% confidence that the population mean is between 10 and 15. The remaining 5% probability is allocated to the situation where the population mean falls outside this interval.
[0068] Each annotation requirement and the obtained subtask corresponding to each annotation requirement are matched one by one, and each annotation requirement and the subtask corresponding to each annotation requirement are stored.
[0069] Preferably, based on the labeling requirement, the quality inspection task is divided into at least two subtasks, including:
[0070] Obtaining a preset subtask type corresponding to the annotation requirement;
[0071] The quality inspection task is split into corresponding subtasks according to the preset subtask type.
[0072] In an embodiment of the present application, after obtaining the labeling requirements for each type of completed labeling data, the quality inspection task is split according to the preset sub-task type corresponding to the labeling requirement, and the quality inspection task is split into corresponding sub-tasks. When splitting, the quality inspection purpose of each sub-task and the logical relationship between the sub-tasks are clarified, and then one quality inspection task is split into multiple sub-tasks.
[0073] It should be noted that the subtasks after splitting can be preprocessed, such as removing invalid data, processing missing values, unifying data formats, standardizing data, etc., to prepare a clean data set for subsequent quality inspection.
[0074] For example, obtaining Figure 2The annotation requirement shown is that after the dialogue is rewritten, the subtask types corresponding to the dialogue rewrite are obtained, which are the rewriting content quality inspection subtask, the rewriting content scoring subtask, and the rewriting whether it is passed subtask. According to the obtained subtask types, the quality inspection task is divided into three serial tasks, specifically:
[0075] Subtask 1: Text rewriting decision task, used to provide completed annotations (after rewriting) Figure 2 The text on the right, and get Figure 2 Whether the text on the right needs to be rewritten and the specific content after rewriting;
[0076] Subtask 2: Scoring decision-making task, scoring the quality inspection results of subtask 1;
[0077] Subtask 3: Binary classification cognitive task, which performs binary classification on the annotation results of the above subtask 2, and determines whether the current task rewrite passes based on the scoring effect, that is, determines whether the annotation results meet expectations.
[0078] Arrange the obtained subtask 1, subtask 2 and subtask 3 according to the preset logical relationship.
[0079] In this embodiment, by splitting the complex quality inspection task into multiple subtasks with clear purposes and logical relationships between all subtasks, the original complex quality inspection task can be modularized, and each subtask can be independently designed, optimized, tested or modified to facilitate division of labor and cooperation and problem location; the performance and efficiency of each part can be analyzed in more detail, and targeted optimization and adjustment can be made, thereby improving overall work efficiency.
[0080] Step S103, defining the input data type and output data type of each subtask, and matching a task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0081] In the embodiments of the present application, the input data type is the form or category of data that the system, application or function expects to receive during the data processing process. When a user or another system provides data to the system, application or function, the data must conform to a specific type that the program can recognize and process. The output data type refers to the result form or category of data provided by the program, function or system to the user, other programs or external devices after processing the data. It defines the structure and representation of the output data to ensure that the recipient can correctly understand and use the data. Among them, common output data types are similar to input data types and may include but are not limited to the following: (1) Integer: such as 123, -456, representing a value without a decimal part; (2) Floating point number (Float / Double): such as 3.14, -0.001, representing a value with a decimal part; (3) String: such as "Hello, world!", is a collection of a series of characters that can contain letters, numbers, symbols, etc.; (4) Boolean value: There are only two possible values, usually true or false, used for logical judgment; (5) Character : A single character, such as 'a', 'B', usually represented by the char type; (6) Date and time (Date / Time): such as 2024-06-11, 15:30:00, representing a specific time point or time period; (7) Array (Array): A set of ordered data sets, all elements usually belong to the same type; (8) List (List): An array of dynamic size, commonly used in high-level programming languages, such as Python's list; (9) Object (Object): A complex data structure, containing attributes and methods, the basic unit in object-oriented programming; (10) File (File): Use a file as input, process the data in the file, etc.
[0082] When defining the input data type and output data type of each subtask, you can directly specify the data type of each subtask input parameter and the return data type; you can also specify the expected input type and expected output type through type annotations when defining the system, application, or function; you can also specify the expected input type and data output as a specific type through a formatted string.
[0083] Optionally, the definition of the data input type and the data output type of each subtask includes:
[0084] The data input type and data output type of each subtask are defined using object interface definition language.
[0085] In the embodiment of the present application, the interface definition language (Interface Definition Language, IDL) is a definition language used to describe the interface of distributed objects. After the interface is defined using IDL, the interface between the client and the server is determined, and IDL is used to standardize and formalize the process of how different software components or services communicate with each other. That is, IDL defines the basic rules for communication between components, including how data is transmitted in the network (such as synchronous or asynchronous), error handling mechanism, session management, etc., to ensure that different systems or modules follow the same communication rules when exchanging information; in order to enable different components to understand and process the data sent by each other, IDL details the format and structure of the data, including data types (such as integers, strings, custom structures, etc.), arrays, sequences, etc., to ensure that the data remains consistent and readable before and after transmission; IDL also describes the methods or services that can be called between components, that is, the functional interface, including the name of the method, input parameters, return type, and possible exceptions, so that one component can request another component to perform a specific operation and expect a clear response.
[0086] Exemplarily, after the quality inspection task with the annotation requirement of dialogue rewriting is rewritten into the above-mentioned subtask 1, subtask 2 and subtask 3, the input data type and output data type of subtask 1, subtask 2 and subtask 3 are defined, such as the input data type of subtask 1 is a dialogue array, and the output data type is a string; the input data type of subtask 2 is text, and the output data type is an array; the input data type of subtask 3 is an enumeration of text numbers, and the output data type is an array.
[0087] In an embodiment of the present application, the task execution component is a software module or service responsible for managing and executing background tasks, and is used for task creation, scheduling, execution, and monitoring, etc.; more specifically, the task execution component is used for (1) task scheduling: arranging task execution according to time triggers or according to predetermined strategies. (2) Resource management: effectively managing thread resources to avoid resource exhaustion problems caused by too many threads. (3) Concurrency control: ensuring correct synchronization and coordination between tasks to prevent race conditions. (4) Load balancing: reasonably allocating tasks on multi-core processors to optimize system performance. (5) Fault recovery: when task execution fails, retry or record error information according to the strategy. (6) Monitoring and logging: providing tracking records of execution status, performance indicators, and exception information.
[0088] In the Java ecosystem, task execution components are often implemented based on interfaces and classes in the java.util.concurrent package, such as Executor, ExecutorService, and ScheduledExecutorService. These interfaces provide flexible thread management and task scheduling mechanisms. For example, Executor allows Runnable or Callable tasks to be submitted to a thread pool for asynchronous execution, while ScheduledExecutorService additionally supports scheduled or periodic task execution.
[0089] The implementation process of matching the task execution component for each subtask based on the input data type and output data type of each subtask includes: first, understanding the functional requirements of each subtask, including the data type, data structure and expected output results that need to be processed. Next, draw or update the data flow diagram to depict how data flows from one component to another and the data transformation at each node. Check the existing software component library or service to see if there are ready-made components that can directly meet the specific data type processing requirements; if the existing components cannot meet the requirements, design new components or services to ensure that they can process the specified input data type and produce the expected output data type. Integrate the components together according to the data flow diagram and configure the necessary communication and data exchange settings.
[0090] Optionally, before matching a task execution component for each subtask based on the data input type and the data output type of each subtask, the method further includes:
[0091] Build a task execution component library.
[0092] Optionally, the building of the task execution component library includes:
[0093] Build each task execution component based on the input data type, output data type, and the problem that the task execution component needs to solve;
[0094] All task execution components are stored according to a preset structure to obtain a task execution component library.
[0095] In the embodiment of the present application, the task interface or abstract class is first defined, which usually inherits from Runnable or implements Callable interface to facilitate execution and obtain results; then the core class of the task executor is implemented, which is mainly responsible for the scheduling and execution of tasks; finally, based on the task interface or abstract class, the tasks scheduled and executed by the task executor, the client code is written to use this task executor to obtain the task execution component. Logging and monitoring can also be added to the task execution component, and the execution log can be recorded through the integrated logging framework to achieve performance monitoring and exception capture; priority queue support can also be added to the task queue to determine the execution order according to the task priority; retry logic can also be added to failed tasks to support custom retry strategies; the thread pool size can also be dynamically adjusted according to the system load to improve resource utilization; a timeout mechanism can also be added to the task to avoid the entire system from being stuck due to long-term blocking of individual tasks.
[0096] After obtaining the task execution components, for each specific task execution component, ensure that its code structure is clear and follows certain naming conventions for easy management and search. For example, the component class can be named in the format of <category>.<specific function>. Next, use automated build tools (such as Maven or Gradle) to compile, test, and package the component library. Ensure that each component and its dependencies are packaged correctly so that users can directly reference or deploy them. Finally, publish the component library to a private or public repository (such as Nexus, Artifactory, Maven Central, or GitHub Packages) so that users can easily obtain and integrate it through dependency management tools to obtain the task execution component library.
[0097] Preferably, matching a task execution component for each subtask based on the data input type and data output type of each subtask includes:
[0098] Compare the data input type and data output type of each subtask with the data input type and data output type of each task execution component in the task execution component library in turn;
[0099] A task execution component whose data input type and output type are the same as those of the subtask is matched as the task execution component of the subtask.
[0100] In an embodiment of the present application, after the input data type and output data type of each subtask are defined, the input data type and output data type of each subtask are compared with each task execution component in a pre-built task execution component library, mainly comparing the input data type and output data type of each subtask with the input data type and output data type of each task execution component. If the input data type and output data type of a subtask are the same as the input data type and output data type of a task execution component, then the task execution component is matched as the task execution component of the subtask.
[0101] Exemplarily, the task execution components included in the task execution component library include a dialogue rewriting business component, a scoring component, and a single-choice group or a multiple-choice group, wherein the input data type of the dialogue rewriting business component is a dialogue array, and the output data type is a string; the input data type of the scoring component is text, and the output data type is an array; the input data type of the single-choice group or the multiple-choice group is an enumeration of text numbers, and the output data type is an array. Subtask 1, subtask 2, and subtask 3 are matched with the dialogue rewriting business component, the scoring component, and the single-choice group or the multiple-choice group. The task execution component matched by subtask 1 is the dialogue rewriting business component; the task execution component matched by subtask 2 is the scoring component; and the task execution component matched by subtask 3 is the single-choice group or the multiple-choice group. That is, by defining the input data type and output data type of each subtask, each subtask is associated with the task execution component in the constructed task execution component library, eliminating the process of manually matching and building task execution components, saving labor costs, and reducing error rates.
[0102] After matching a corresponding task execution component for each subtask, the task execution component sends the subtask to an execution object, so that the execution object performs quality inspection on the subtask and receives the quality inspection result fed back by the subtask execution object.
[0103] Preferably, the algorithm of the task execution component corresponding to the last subtask is a confidence interval estimation algorithm;
[0104] The task execution component corresponding to the last subtask is used to obtain the confidence interval of the quality inspection result received by the task execution component corresponding to the previous subtask of the last subtask.
[0105] In an embodiment of the present application, after each subtask is matched to a corresponding task execution component, the task execution component sends the corresponding subtask to the execution object of the subtask. The execution object of the subtask performs quality inspection on the subtask and feeds back the quality inspection result to the task execution component, so that the task execution component outputs the quality inspection result of the subtask.
[0106] It should be noted that the task execution component corresponding to the last subtask uses the confidence interval estimation algorithm to obtain the confidence interval of the quality inspection results received by the task execution component corresponding to the previous subtask of the last subtask. If the confidence interval contains an acceptable performance standard, it can be considered that the completed data labeling meets the quality requirements. Among them, the confidence interval estimation algorithm refers to a method used in statistics to estimate population parameters. It constructs an interval based on sample data drawn from the population. The interval is considered to have a certain probability (called the confidence level) to contain the true population parameter value. This method provides an uncertainty range about the location of the true value of the parameter, rather than just a point estimate.
[0107] Specifically, the steps of the confidence interval estimation algorithm usually include the following:
[0108] (1) Determine the confidence level: First, select a confidence level. Common confidence levels include 90%, 95%, 99%, etc. The confidence level determines the width of the interval. The higher the confidence level, the wider the interval.
[0109] (2) Calculate sample statistics: Based on the research purpose, select an appropriate sample statistic as the estimate of the population parameter. The most common ones are the sample mean to estimate the population mean, or the sample proportion to estimate the population proportion.
[0110] (3) Calculate the standard error: The standard error is the standard deviation of the sample statistic, which reflects the expected difference between the sample statistic and the population parameter. It is usually the standard deviation of the sample statistic divided by the square root of the sample size.
[0111] (4) Determine the critical value: Based on the confidence level and sample size, find the critical value (also called Z value or T value, depending on whether the population variance and sample size are known) from the corresponding distribution table. This value is multiplied by the standard error to determine how far the boundaries of the confidence interval are from the sample statistic.
[0112] (5) Calculate the confidence interval: Add or subtract the product of the critical value and the standard error from the sample statistic to obtain the upper and lower limits of the confidence interval.
[0113] For example, Figure 3 As shown, it is a schematic diagram of a subtask 1 sent by a task execution component to an execution object provided in an embodiment of the present application, such as Figure 4 As shown, it is a schematic diagram of a subtask 2 sent by a task execution component to an execution object provided in an embodiment of the present application, such as Figure 5 FIG. 1 is a schematic diagram of a subtask 3 sent by a task execution component to an execution object provided in an embodiment of the present application, wherein: Figure 3 The subtask 1 shown can be the first quality inspection object Figure 2Check whether the pre-generated text shown needs to be rewritten. If not, click OK at subtask 1 to obtain the quality inspection result of subtask 1. If it needs to be rewritten, enter the rewritten content in the box below subtask 1 and click OK to obtain the quality inspection result of subtask 1. Figure 4 Subtask 2 shown can be a second quality inspection object Figure 3 Confirm whether the rewritten text is passed or not by clicking the corresponding button in the box corresponding to subtask 2 to obtain the quality inspection result of subtask 2. Figure 5 Subtask 3 shown may be to obtain Figure 4 The confidence interval of the quality inspection result of subtask 2 is shown. Figure 3-Figure 5 The subtasks shown realize the division of quality inspection tasks.
[0114] Step S104: The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0115] In an embodiment of the present application, after matching the corresponding task execution component for each subtask, the quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component, and the execution component executes the corresponding subtasks in sequence according to the arrangement order of the subtasks to obtain the result of the completed data processing.
[0116] Exemplarily, during the execution process, after the task execution component corresponding to subtask 1 sends subtask 1 to the corresponding execution object, the execution object feeds back the quality inspection result of subtask 1 to the task execution component corresponding to subtask 1, the task execution component corresponding to subtask 1 outputs the quality inspection result of subtask 1 and uses it as the input of the task execution component corresponding to subtask 2, after the task execution component corresponding to subtask 2 sends subtask 2 to the corresponding execution object, the execution object feeds back the quality inspection result of subtask 2 to the task execution component corresponding to subtask 2, the task execution component corresponding to subtask 2 outputs the quality inspection result of subtask 2 and uses it as the input of the task execution component corresponding to subtask 3, and the cycle is repeated in sequence to execute all subtasks and obtain the result of completed data processing.
[0117] For example, Figure 2 The quality inspection task in Figure 6 The definition method shown defines the data input type and data output type of the corresponding subtask type, which can be implemented by the following code:
[0118] class Rewrite_Agent(Agent):
[0119] '"nlp'"
[0120] @policy(
[0121] desc="Please rewrite the dialogue summary text based on the dialogue background information and dialogue context.",
[0122] category="Human"
[0123] persistent=True )
[0125] def rewrite(self,input:SummaryInput)->str:
[0126] '"Dialogue summary rewriting task'"
[0127] …
[0128] class Quality_Control_Agent(Agent):
[0129] '"nlp'"
[0130] @cognition(
[0131] desc="Judge whether the rewrite has passed the acceptance."
[0132] category="Human"
[0133] persistent=True )
[0135] def quality(self,input1:summary_input,input2:str)->literal[0,1]:
[0136] '"Quality inspection and acceptance capability"
[0137] …
[0138] in, Figure 2 The consistency result can be obtained through Figure 3-5 The results of the binary text classification task are obtained. Since the binary classification task can easily use the interval estimation algorithm with the help of AI capabilities to determine whether it has achieved consistency, the consistency result is used to determine whether the results of the previous cascade task meet the requirements, that is, acceptance is passed. When the consistent judgment here is "passed", it means that the annotated data of the previous task is credible and meets the requirements, and all the annotated data is returned to the business party; when the consistent judgment is "failed", it means that the previous annotation results are unreliable, and the business party decides whether to adopt the data or re-annotate.
[0139] A data processing method provided by an embodiment of the present application obtains the labeling requirements of the completed labeled data; based on the labeling requirements, splits the quality inspection task into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose; defines the input data type and output data type of each subtask, and matches a task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to an execution object so that the execution object can quality inspect the subtask, and receive the quality inspection result fed back by the subtask execution object for output; uses the quality inspection result received by the previous task execution component as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the result of the completed data processing.
[0140] It can be seen that the quality inspection task is split into at least two subtasks arranged in a preset order through the above-mentioned annotation requirements, and the complex quality inspection task is disassembled into multiple data processing subtasks, which reduces the complexity and difficulty of the quality inspection task. Then, the corresponding task execution component is matched for each subtask according to the defined input data type and output data type of the subtask, so that each task execution component sends the corresponding subtask to the execution object of the task, thereby improving the accuracy and credibility of the quality inspection. And the quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtask in turn to obtain the result of the completed data processing. This method reduces human errors, reduces quality inspection costs, shortens the quality inspection cycle, and has high quality inspection efficiency.
[0141] Corresponding to the data processing method provided in the embodiment of the present application, the embodiment of the present application also provides a data processing device, such as Figure 6 As shown, the device 700 includes:
[0142] The first acquisition module 701 is used to acquire the labeling requirements of the labeled data, where the labeling requirements are specific requirements for processing and converting the data into a form that can be understood and learned by the machine;
[0143] A splitting module 702 is used to split the quality inspection task into at least two subtasks based on the marking requirement, and all subtasks are arranged in a preset order;
[0144] The matching module 703 is used to define the input data type and output data type of each subtask, and match the task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0145] The second acquisition module 704 is used to use the quality inspection result received by the previous task execution component as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0146] Optionally, the last subtask after the quality inspection task is split is to obtain a confidence interval of the quality inspection result of the previous subtask.
[0147] Optionally, the algorithm of the task execution component corresponding to the last subtask is a confidence interval estimation algorithm;
[0148] The task execution component corresponding to the last subtask is used to obtain the confidence interval of the quality inspection result received by the task execution component corresponding to the previous subtask of the last subtask.
[0149] Optionally, the splitting module is further used for:
[0150] Obtaining a preset subtask type corresponding to the annotation requirement;
[0151] The quality inspection task is split into corresponding subtasks according to the preset subtask type.
[0152] Optionally, the device further comprises:
[0153] The setting module is used to set the preset subtask type corresponding to each annotation requirement based on the inseparable operation unit of the quality inspection task corresponding to each annotation requirement.
[0154] Optionally, the splitting module is further used for:
[0155] All subtasks are arranged according to preset logical relationships.
[0156] Optionally, the matching module is further used for:
[0157] The data input type and data output type of each subtask are defined using object interface definition language.
[0158] Optionally, the matching module is further used for:
[0159] Compare the data input type and data output type of each subtask with the data input type and data output type of each task execution component in the task execution component library in turn;
[0160] A task execution component whose data input type and output type are the same as those of the subtask is matched as the task execution component of the subtask.
[0161] Optionally, the device further comprises:
[0162] Building modules, used to build task execution component libraries.
[0163] Optionally, the building block is further used to:
[0164] Build each task execution component based on the input data type, output data type, and the problem that the task execution component needs to solve;
[0165] All task execution components are stored according to a preset structure to obtain a task execution component library.
[0166] Corresponding to the data processing method provided in the embodiment of the present application, the embodiment of the present application also provides an electronic device. Figure 7 As shown, the electronic device includes: a processor 801; and a memory 802, which is used to store a program of a data processing method. After the electronic device is powered on and runs the program of the data processing method through the processor, the following steps are performed:
[0167] Obtaining the labeling requirements of the labeled data, where the labeling requirements are specific requirements for processing and converting the data into a form that can be understood and learned by the machine;
[0168] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, and all subtasks are arranged in a preset order;
[0169] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0170] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0171] Corresponding to the data processing method provided in the embodiment of the present application, the embodiment of the present application further provides a computer-readable storage medium storing a program of the data processing method, the program is executed by a processor to perform the following steps:
[0172] Obtaining the labeling requirements of the labeled data, where the labeling requirements are specific requirements for processing and converting the data into a form that can be understood and learned by the machine;
[0173] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, and all subtasks are arranged in a preset order;
[0174] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0175] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0176] Corresponding to the data processing method provided in the embodiment of the present application, the embodiment of the present application further provides a computer program product, the program product comprising: a computer program, the computer program is stored in a readable storage medium, at least one processor of the electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device performs the following steps:
[0177] Obtaining the labeling requirements of the labeled data, where the labeling requirements are specific requirements for processing and converting the data into a form that can be understood and learned by the machine;
[0178] Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, and all subtasks are arranged in a preset order;
[0179] The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output;
[0180] The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
[0181] It should be noted that for the detailed description of the apparatus, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present application, reference can be made to the relevant description of the data processing method of the present application, which will not be repeated here.
[0182] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0183] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0184] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.
[0185] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0186] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0187] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0188] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0189] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for data processing, characterized in that: The method comprises: Obtain the labeling requirements for the completed labeling data; Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose; The input data type and output data type of each subtask are defined, and a task execution component is matched for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output; The quality inspection result received by the previous task execution component is used as the input of the next adjacent task execution component. The task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
2. The data processing method according to claim 1, characterized in that: The last subtask after the quality inspection task is split is to obtain the confidence interval of the quality inspection result of the previous subtask.
3. The data processing method according to claim 2, characterized in that: The algorithm of the task execution component corresponding to the last subtask is a confidence interval estimation algorithm; The task execution component corresponding to the last subtask is used to obtain the confidence interval of the quality inspection result received by the task execution component corresponding to the previous subtask of the last subtask.
4. The data processing method according to claim 1, characterized in that: Based on the labeling requirements, the quality inspection task is divided into at least two subtasks, including: Obtaining a preset subtask type corresponding to the annotation requirement; The quality inspection task is split into corresponding subtasks according to the preset subtask type.
5. The data processing method according to claim 4, characterized in that: Based on the labeling requirement, before splitting the quality inspection task into at least two subtasks, the method further includes: Based on the inseparable operation unit of the quality inspection task corresponding to each marking requirement, a preset subtask type corresponding to each marking requirement is set.
6. The data processing method according to claim 1, characterized in that: The subtasks are arranged in a preset order, including: all subtasks are arranged in a preset logical relationship.
7. The data processing method according to claim 1, characterized in that: The definition of the data input type and data output type of each subtask includes: The data input type and data output type of each subtask are defined using object interface definition language.
8. The data processing method according to claim 1, characterized in that: The matching of a task execution component for each subtask based on the data input type and the data output type of each subtask includes: Compare the data input type and data output type of each subtask with the data input type and data output type of each task execution component in the task execution component library in turn; A task execution component whose data input type and output type are the same as those of the subtask is matched as the task execution component of the subtask.
9. The data processing method according to claim 8, characterized in that: Before matching a task execution component for each subtask based on the data input type and the data output type of each subtask, the method further includes: Build a task execution component library.
10. The data processing method according to claim 9, characterized in that: The building task execution component library includes: Build each task execution component based on the input data type, output data type, and the problem that the task execution component needs to solve; All task execution components are stored according to a preset structure to obtain a task execution component library.
11. A data processing device, characterized in that: The device comprises: A first acquisition module is used to acquire the labeling requirements of the completed labeling data; A splitting module, used to split the quality inspection task into at least two subtasks based on the marking requirements, all subtasks are arranged in a preset order, and each subtask has a different quality inspection purpose; A matching module is used to define the input data type and output data type of each subtask, and match a task execution component for each subtask based on the input data type and output data type of each subtask; the task execution component is used to send the subtask to the execution object so that the execution object can quality check the subtask, and receive the quality inspection result fed back by the subtask execution object for output; The second acquisition module is used to use the quality inspection result received by the previous task execution component as the input of the next adjacent task execution component, and the task execution component executes the corresponding subtasks in sequence to obtain the quality inspection result of the completed labeled data.
12. An electronic device, characterized in that: include: processor; as well as The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method according to any one of claims 1 to 10 is executed.
13. A computer-readable storage medium, characterized in that: A data processing program is stored, and the program is run by a processor to execute the method according to any one of claims 1 to 10.
Citation Information
Cited By
Quality checking and correction method and apparatus for static data of autonomous driving
WO2026076993A1
