Dataset quality assessment method, system, electronic device and storage medium

By obtaining the target data set and the target task sample set, calculating the overlap and confidence of the sample data, and evaluating the distribution distance, the problem of unstructured data set quality assessment in the existing technology is solved, and the reliability and reliability of the data set quality assessment are improved. Assess quality.

CN118094118BActive Publication Date: 2024-08-27PENG CHENG LAB

Patent Information

Application Number
CN202410522089.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-27
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively assess the quality of unstructured data sets, resulting in a decrease in the reliability of data set quality assessment and the quality of the assessment.

Method used

By obtaining the target data set and the target task sample set, determine the overlap and confidence of each sample data, calculate the distribution distance, and combine the first single sample score, the second single sample score and the data set score to evaluate the quality of the data set. .

Benefits of technology

It improves the reliability and evaluation quality of data set quality assessment, comprehensively reflects the characteristics and quality level of the data set, and enhances the consideration of data set diversity and distribution differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118094118B
    Figure CN118094118B
Patent Text Reader

Abstract

The embodiment of the present application provides a data set quality assessment method, system, electronic device and storage medium, which belongs to the field of data processing technology. The method includes: obtaining a target data set and a target task sample set; determining the overlap of each sample data, and determining the first single sample score of each sample data based on the overlap; obtaining a preset confidence threshold under each category, and determining the corresponding confidence based on the pseudo-label of the sample data, and determining the second single sample score of each sample data according to the confidence and the confidence threshold under the corresponding category; under the same category, determining the distribution distance between multiple sample data and multiple target task data, and determining the data set score between the target data set and the target task sample set according to the distribution distance under different categories; determining the quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score, and improving the assessment quality of the data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data set quality assessment method, system, electronic device and storage medium. Background Art

[0002] Data sets usually include structured data and unstructured data. Structured data is data organized according to a predefined data model, with a clearly defined format and structure, usually presented in a table, with each data field having a clear name and data type. Common structured data include numbers, text, date and time, price, etc. Unstructured data is data without a fixed format or structure, usually in the form of free-form text, multimedia content (such as images, audio and video), emails, social media posts, web pages, etc.

[0003] In the related art, since the content and features of each sample in a structured data set are similar, the entire structured data set can be evaluated by calculating general evaluation frameworks such as mean, variance, and discreteness. However, since the content and features of each sample in an unstructured data set are different, a general evaluation framework cannot be used for evaluation. The unstructured data set can only be evaluated by scoring a single sample for a specific task or specific need, which cannot fully reflect the characteristics and quality of the entire data set. This will ignore global information, thereby reducing the reliability of data set quality assessment and reducing the evaluation quality of the data set. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a data set quality assessment method, system, electronic device and storage medium, which can improve the reliability of data set quality assessment and improve the assessment quality of the data set.

[0005] To achieve the above-mentioned purpose, the first aspect of an embodiment of the present application proposes a data set quality assessment method, the method comprising: obtaining a target data set and a target task sample set, the target data set comprising sample data of multiple categories, and the target task sample set comprising target task data of multiple categories; determining the degree of overlap of each of the sample data, and determining a first single sample score of each of the sample data based on the degree of overlap; obtaining a preset confidence threshold under each category, and determining a corresponding confidence based on the pseudo-label of the sample data, and determining a second single sample score of each of the sample data according to the confidence and the confidence threshold under the corresponding category; under the same category, determining the distribution distance between multiple sample data and multiple target task data, and determining the data set score between the target data set and the target task sample set according to the distribution distance under different categories; determining the quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score.

[0006] In some embodiments, determining the degree of overlap of each of the sample data includes: obtaining a target positioning area for each of the sample data based on a target detector; sampling the sample data to obtain sampled data, calculating the precision and recall of the sampled data, and obtaining the average performance of the target detector in the sampled data based on the precision and the recall; determining an optimal confidence threshold of the target detector based on the average performance; calibrating the target positioning area of ​​the sample data based on the optimal confidence threshold; and obtaining the degree of overlap of each of the sample data based on the ratio of the amount of information in the target positioning area of ​​the sample data to the total amount of information in the sample data.

[0007] In some embodiments, determining the first single sample score of each of the sample data based on the overlap includes: obtaining an evaluation score obtained by evaluating the sample data according to a custom evaluation standard; obtaining weight values ​​corresponding to the evaluation score and the overlap respectively; and determining the first single sample score of each of the sample data based on the evaluation score, the overlap and the corresponding weight values ​​respectively.

[0008] In some embodiments, obtaining a preset confidence threshold under each category includes: obtaining a label sample set annotated with a true label, the label sample set including label data of multiple categories; based on the true label of the label data, calculating the label confidence of the label data of the corresponding category under different categories; under each category, calculating the corresponding average value of the label confidence and determining the confidence threshold under the corresponding category.

[0009] In some embodiments, the corresponding confidence is determined based on the pseudo-label of the sample data, and the second single sample score of each of the sample data is determined according to the confidence and the confidence threshold under the corresponding category, including: obtaining the pseudo-label of the sample data, and determining the corresponding confidence based on the pseudo-label; when the confidence of the sample data does not exceed the confidence threshold under the corresponding category, the sample data is eliminated and the target data set is cleaned; according to the confidence of the sample data in the target data set and the confidence threshold under the corresponding category, the second single sample score of each of the sample data is determined.

[0010] In some embodiments, under the same category, the distribution distance between multiple sample data and multiple target task data is determined, and the dataset score between the target dataset and the target task sample set is determined according to the distribution distance under different categories, including: under the same category, obtaining the sample distribution of multiple sample data of corresponding categories in the target dataset, obtaining the target task distribution of multiple target task data of corresponding categories in the target task sample set; calculating the distribution distance between the sample distribution of corresponding categories and the target task distribution under each category based on relative entropy; and determining the dataset score between the target dataset and the target task sample set according to the average value of the distribution distance under different categories.

[0011] In some embodiments, under the same category, the distribution distance between the multiple sample data and the multiple target task data is determined, and the dataset score between the target dataset and the target task sample set is determined according to the distribution distance under different categories, including: under the same category, obtaining the multiple sample data and the multiple target task data, extracting the sample features of the multiple sample data and the target task features of the multiple target task data based on the feature extractor; under each category, calculating the feature distance between the sample features and the target task features; and determining the dataset score between the target dataset and the target task sample set according to the average value of the feature distances under different categories.

[0012] In some embodiments, under the same category, the distribution distance between multiple sample data and multiple target task data is determined, and the dataset score between the target dataset and the target task sample set is determined according to the distribution distance under different categories, including: obtaining sample features of multiple sample data and target task features of multiple target task data, and performing cluster analysis around the target task features based on the sample features; obtaining the cluster centers of the target task features under different categories; under the same category, calculating the center distance between the sample features under the corresponding category and the cluster center of the corresponding category; and determining the degree of discreteness between the target dataset and the target task sample set according to the mean and variance of the center distance under different categories.

[0013] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a data set quality assessment system, including: a data set acquisition module, used to acquire a target data set and a target task sample set, the target data set includes sample data of multiple categories, and the target task sample set includes target task data of multiple categories; a first single sample scoring module, used to determine the overlap of each of the sample data, and determine the first single sample score of each of the sample data based on the overlap; a second single sample scoring module, used to acquire a preset confidence threshold under each category, and determine the corresponding confidence based on the pseudo-label of the sample data, and determine the second single sample score of each of the sample data according to the confidence and the confidence threshold under the corresponding category; a data set scoring module, used to determine the distribution distance between multiple sample data and multiple target task data under the same category, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories; a quality assessment module, used to determine the quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score.

[0014] To achieve the above-mentioned purpose, the third aspect of the embodiments of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the method described in the above-mentioned first aspect embodiment when executing the computer program.

[0015] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, the method described in the embodiment of the first aspect above is implemented.

[0016] The data set quality assessment method, system, electronic device and storage medium proposed in the present application have the following beneficial effects: obtaining a target data set and a target task sample set; determining the overlap of each sample data, and determining the first single sample score of each sample data based on the overlap; obtaining a preset confidence threshold under each category, and determining the corresponding confidence based on the pseudo label of the sample data, and determining the second single sample score of each sample data according to the confidence and the confidence threshold under the corresponding category; determining the distribution distance between multiple sample data and multiple target task data under the same category, and determining the data set score between the target data set and the target task sample set according to the distribution distance under different categories; determining the quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score. The method considers factors such as overlap and confidence, assigns a score to each sample data based on the first single sample score and the second single sample score, and comprehensively considers global information, analyzes the distribution of sample data, and considers the quality of the target data set from the perspective of the entire data set and downstream tasks, thereby obtaining the quality, diversity and distribution difference of the target data set for the target task, more comprehensively reflecting the characteristics and quality level of the entire data set, and improving the reliability of data set quality assessment and the assessment quality of the data set. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of a data set quality assessment method provided in an embodiment of the present application.

[0018] Figure 2 yes Figure 1 Flow chart of step 102 in FIG.

[0019] Figure 3 It is a schematic diagram of the mmAP provided in an embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of IoU calculation provided in an embodiment of the present application.

[0021] Figure 5 It is a schematic diagram of the overlap provided in an embodiment of the present application.

[0022] Figure 6 yes Figure 1 Another flow chart of step 102 in .

[0023] Figure 7 yes Figure 1 Flow chart of step 103 in FIG.

[0024] Figure 8 yes Figure 1 Another flow chart of step 103 in .

[0025] Fig. 9It is a schematic diagram of the confidence threshold provided in the embodiment of the present application.

[0026] Fig.10 It is a schematic diagram of the distribution distance provided in the embodiment of the present application.

[0027] Fig.11 yes Figure 1 Flow chart of step 104 in FIG.

[0028] Fig.12 yes Figure 1 Another flow chart of step 104 in .

[0029] Fig.13 yes Figure 1 Another flow chart of step 104 in .

[0030] Fig.14 It is a schematic diagram of the cluster analysis provided in the embodiment of the present application.

[0031] Fig.15 It is a schematic diagram of the functional modules of the data set quality assessment system provided in an embodiment of the present application.

[0032] Fig.16 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] First, some nouns involved in this application are analyzed:

[0037] A dataset is a collection of related data, usually including multiple sample data or data points. Datasets can be used for various purposes, such as machine learning, data analysis, statistical research, etc. Each dataset has its specific structure and properties, including data type, features or variables, number of samples, etc. A dataset can be structured, where the data is organized in a table, with each column representing a feature or variable and each row representing a sample data. The quality and suitability of a dataset are very important for data analysis and machine learning tasks. A good dataset should be representative, diverse, and accurate, and should meet the needs of a specific task or research.

[0038] An object detector is an algorithm or model that automatically identifies and locates objects or targets in images or videos. Object detectors can mark the bounding boxes of objects in images and identify objects of different categories. Object detectors usually use machine learning or deep learning methods to train models using training data sets to learn the features and contextual information of objects. Once trained, object detectors can be applied to new images or video data to automatically detect and identify objects in them.

[0039] Confidence refers to the confidence or credibility measure of the target detector for each detected object or target. In the target detection task, each detected object is usually accompanied by a confidence score, which indicates the confidence of the target detector as to whether the object is a target.

[0040] Data sets usually include structured data and unstructured data. Structured data is data organized according to a predefined data model, with a clearly defined format and structure, usually presented in a table, with each data field having a clear name and data type. Common structured data include numbers, text, date and time, price, etc. Unstructured data is data without a fixed format or structure, usually in the form of free-form text, multimedia content (such as images, audio and video), emails, social media posts, web pages, etc.

[0041] In the related art, since the content and features of each sample in a structured data set are similar, the entire structured data set can be evaluated by calculating general evaluation frameworks such as mean, variance, and discreteness. However, since the content and features of each sample in an unstructured data set are different, a general evaluation framework cannot be used for evaluation. The unstructured data set can only be evaluated by scoring a single sample for a specific task or specific need, which cannot fully reflect the characteristics and quality of the entire data set. This will ignore global information, thereby reducing the reliability of data set quality assessment and reducing the evaluation quality of the data set.

[0042] Based on this, the embodiments of the present application provide a data set quality assessment method, system, and electronic device, which can improve the reliability of data set quality assessment and improve the assessment quality of the data set.

[0043] The data set quality assessment method, system, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the data set quality assessment method in the embodiments of the present application is described. The data set quality assessment method in the embodiments of the present application can be described through the following embodiments.

[0044] Figure 1 is an optional flowchart of the data set quality assessment method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps 101 to 105. It can also be understood that this embodiment Figure 1 The order of step 101 to step 105 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0045] Step 101 , obtaining a target data set and a target task sample set, wherein the target data set includes sample data of multiple categories, and the target task sample set includes target task data of multiple categories.

[0046] The following is a detailed description of step 101.

[0047] It can be understood that the target dataset refers to a dataset containing sample data of multiple categories. Each sample data represents a specific instance and can be in the form of images, text, audio, etc. The target dataset is used to train and evaluate machine learning models, with the goal of enabling the model to learn and understand the characteristics and differences between different categories.

[0048] It is understood that the target task sample set refers to a sample set containing target task data of multiple categories. The target task data is data related to a specific task or application, such as image classification, object detection, semantic segmentation, etc. The target task sample set contains the target task data required for training and testing on a specific task.

[0049] In some embodiments, the target dataset and target task sample set can be obtained by visiting websites such as Kaggle, UCI Machine Learning Repository, etc. to browse and download these datasets, and public datasets in various fields provided by many public institutions, research institutions and data science communities can be obtained. More data resources can be obtained by cooperating with other organizations, researchers or data science communities, or by contacting professionals in related fields, participating in data science competitions, seminars or online forums, communicating and sharing datasets with others, etc.

[0050] Step 102: determine the overlap degree of each sample data, and determine a first single sample score of each sample data based on the overlap degree.

[0051] The following is a detailed description of step 102.

[0052] In some embodiments, the overlap can be understood as the ratio of the amount of information contained in the foreground or area of ​​interest in each sample data to the total amount of information in the sample data, and can be used to measure the importance or attention of a specific area in the sample data. According to the target tasks and requirements, the foreground area of ​​interest in the sample data is determined, which can be a specific area or element in image, text, audio and other data. Based on the determined foreground area, the amount of information contained in the area is calculated. The specific calculation method can use different information measurement methods according to different data types. For example, for image data, the entropy of pixel values ​​or the amount of information represented by features can be used to measure the amount of information in the foreground area.

[0053] It can be understood that the first single sample score refers to assigning a score to each sample data in a given target data set according to its overlap or based on the overlap combined with other evaluation criteria. This score can be used to sort, filter or select sample data. A higher overlap means that the amount of information contained in the foreground area of ​​interest in the sample data accounts for a higher proportion of the total amount of information in the sample data, and a higher overlap corresponds to a higher first single sample score.

[0054] Reference Figure 2 , determining the overlap of each sample data includes the following steps 201 to 205.

[0055] Step 201: Obtain a target positioning area for each sample data based on a target detector.

[0056] The following is a detailed description of step 201.

[0057] In some embodiments, a target detector is a computer vision algorithm or model for detecting the presence of an object or target in an image, video, or other data, and providing its location and bounding box information. Target detectors include deep learning-based detectors, such as Faster R-CNN, YOLO, SSD, and the like. You can choose to train a target detector model or use a pre-trained model that has already been trained. The target detector can be used to obtain the target location area of ​​interest in each sample data, and further process, analyze, or perform other operations on these target location areas in subsequent tasks. Different methods and strategies can be used for different tasks and target complexities. For tasks with simpler targets, a simpler model can be used, such as YOLOv5, which can quickly and accurately detect targets in images; for complex tasks with uncertain target types, a rough estimate can be made with a lower confidence by fine-tuning the target detector of ImageNet-1K. By fine-tuning the target detector using the ImageNet-1K dataset, the target detector can be adapted to more complex and diverse target types. Fine-tuning refers to further training using a dataset for a specific task on the basis of a pre-trained model to improve the performance of the model on the task.

[0058] It is understood that the target positioning area refers to the location and bounding box information of the target object determined by methods such as target detection in an image, video or other data. It provides the accurate location and range of the target in the data. According to the output of the target detector, the positioning area where the target object is located in each sample data is extracted, and these positioning areas can be represented by the coordinates of the bounding box. The coordinate representation of the bounding box can be expressed in different ways, such as the coordinates of the upper left corner and the coordinates of the lower right corner, or the coordinates, width and height of the center point. The specific representation method to be selected depends on the target detection algorithm or requirements used.

[0059] Step 202: Sample the sample data to obtain sampled data, calculate the precision and recall of the sampled data, and obtain the average performance of the target detector in the sampled data based on the precision and recall.

[0060] Step 202 is described in detail below.

[0061] It can be understood that the sampled data is a subset extracted from the sample data. Random sampling can be used. Random sampling is a simple sampling method in which each sample data has an equal chance of being selected. A random number generator can be used to randomly select from the sample data to form the sampled data. Equidistant sampling can be used. Equidistant sampling is to divide the sample data into intervals of equal distance and select from each interval. It can be used to ensure that the sampled data has a uniform distribution throughout the data range. The specific sampling method to be selected depends on the nature of the target data set and the requirements of the research problem. By appropriately sampling the sample data, a smaller sample data can be obtained to facilitate analysis, model training or other tasks.

[0062] In some embodiments, the precision and recall of the target detector in the sampled data are calculated by the prediction results of the target detector in the sampled data and the information of the true label. The recall is also called the recall rate. True positive (TP): the number of samples correctly predicted as positive (target exists) by the target detector. False positive (FP): the number of samples incorrectly predicted as positive by the target detector, but actually negative (target does not exist). False negative (FN): the number of samples incorrectly predicted as negative by the target detector, but actually positive. The precision rate is TP / (TP+FP), which indicates the proportion of samples correctly predicted as positive to all samples predicted as positive. It measures how many of the samples predicted as positive by the model are truly positive samples. The recall rate is TP / (TP+FN), which indicates the proportion of samples correctly predicted as positive to all samples actually positive. It measures the recognition ability of the model for positive samples. Precision and recall are a pair of indicators that measure each other. In some scenarios, precision is more important, such as in medical diagnosis, where misdiagnosis needs to be avoided as much as possible. In other scenarios, recall is more important, such as in security testing, where missed detection needs to be avoided as much as possible.

[0063] In some embodiments, average performance refers to the average result obtained after comprehensive evaluation of the performance of the target detector on multiple sample data. The average performance is represented by calculating the average of multiple indicators, which can be precision, recall, accuracy, F1 score, etc. These indicators are used to evaluate the performance of the target detector and provide information about the accuracy, recall and overall performance of the model on the sampled data. Figure 3The average performance can be measured by the mmAP indicator. mmAP (mean average precision) is a performance evaluation indicator in the target detection task. It is the average of the average precision of multiple categories and is used to measure the average performance of target detectors on multiple categories. Intersection over Union (IoU) is used to measure the degree of overlap between the predicted results and the true results in tasks such as target detection, semantic segmentation, and bounding box regression. IoU measures the overlap by calculating the ratio of the intersection area to the union area between the predicted results and the true results. See Figure 4 , the specific calculation formula is as follows: IoU = (the intersection area of ​​the predicted result and the true result) / (the union area of ​​the predicted result and the true result), the value range of IoU is between 0 and 1, where 0 means no overlap and 1 means complete overlap. In the target detection task, IoU is often used to evaluate the degree of overlap between the predicted bounding box and the true bounding box. When IoU is greater than a certain threshold, it is considered to be a correct detection result. Each target category has a precision-recall curve, which calculates the accuracy under different recall rates by changing the IoU threshold of the predicted result. The area under the precision-recall curve of each target category is the average precision of the target category, which indicates the performance of the target detector on the target category. mmAP is the value obtained by averaging the average precision of all target categories. It takes into account the performance of the target detector on all categories and provides a comprehensive evaluation indicator for the overall performance of the target detector. The value range of mmAP is 0 to 1. The higher the value, the better the performance of the target detector on multiple categories.

[0064] Step 203: Determine the optimal confidence threshold of the target detector based on the average performance.

[0065] Step 204: Calibrate the target positioning area of ​​the sample data according to the optimal confidence threshold.

[0066] Steps 203 and 204 are described in detail below.

[0067] In some embodiments, determining the optimal confidence threshold of the target detector according to the average performance requires comprehensive consideration of indicators such as precision and recall, average performance, etc. The optimal confidence threshold is a balance point that can ensure a high precision while maintaining a high recall. The optimal confidence threshold can be determined based on a precision-recall curve, which shows the relationship between precision and recall under different confidence thresholds. The optimal confidence threshold can be an inflection point or a balance point on the curve, i.e., at this point, the precision and recall reach a relatively balanced state. The selection of the optimal confidence threshold can vary depending on the data set, task requirements, and performance requirements, and can be further optimized and adjusted according to the average performance through cross-validation, parameter adjustment, or based on specific needs.

[0068] In some embodiments, the target detection task of ImageNet-1K is not a common target detection task type, so some samples need to be manually sampled to confirm the accuracy of the target positioning area on ImageNet-1K based on precision, recall, and AP. Use the best confidence threshold for detection, retain the prediction results with confidence higher than the best confidence threshold, and calibrate the calculation accuracy of the target positioning area.

[0069] Step 205: Obtain the overlap degree of each sample data according to the ratio of the amount of information in the target positioning area of ​​the sample data to the total amount of information of the sample data.

[0070] Step 205 is described in detail below.

[0071] In some embodiments, the union area in the overlap can be the total amount of information in the sample data, and the intersection area can be the amount of information in the target positioning area. The overlap of each sample data is obtained based on the ratio of the amount of information in the target positioning area of ​​the sample data to the total amount of information in the sample data, and the value reflects the proportion of the amount of information in the target positioning area in the entire sample data. A higher overlap means that the target positioning area contains more information, while a lower overlap means that the target positioning area has relatively less information. The amount of information in the target positioning area can be estimated by multiplying the width of the bounding box by the height, and the total amount of information in the sample data can be the width of the image by the height. See Figure 5 In a specific embodiment, the target data set is an image data set, the sample data is a picture, the picture is used as the input of the target detector, the output is the target positioning area, the ratio of the information content in the target positioning area to the total information content of the picture is calculated, and the overlap of each picture is obtained. For example, for a 256×1024 picture, the information content of its target positioning area is assumed to be 128×386, then the overlap is (128×386) / (256×1024)≈0.19.

[0072] Through the above steps 201 to 205, the target positioning area of ​​the sample data is obtained based on the output positioning frame of the target detector, and the sample data is sampled to obtain the sampling data. The average performance is calculated to determine the optimal confidence threshold of the target detector, and the calculation accuracy of the target positioning area is calibrated. This can help evaluate the performance of the target detector and the accuracy of the target positioning area and obtain a more accurate overlap.

[0073] See also Figure 6 , determining a first single sample score for each sample data based on the overlap, including the following steps 301 to 303.

[0074] Step 301: Obtain an evaluation score obtained by evaluating sample data according to a custom evaluation standard.

[0075] Step 302: Obtain the weight values ​​corresponding to the evaluation score and the overlap degree respectively.

[0076] Step 303: Determine the first single sample score of each sample data according to the evaluation score, the overlap degree and the corresponding weight values.

[0077] Steps 301 to 303 are described in detail below.

[0078] In some embodiments, a custom evaluation criterion refers to a scoring criterion that is combined and customized by a user according to the requirements of a specific task. An evaluation score refers to a score of sample data calculated according to the custom evaluation criterion, which is used to measure the performance of the sample data on different indicators. The custom evaluation criterion can be used to evaluate the sample data, obtain a corresponding evaluation score, and combine the evaluation score with the overlap to obtain a first single sample score of the sample data.

[0079] It can be understood that the weight values ​​corresponding to the evaluation score and the overlap are obtained, and the evaluation score and the overlap correspond to different evaluation methods respectively. The weight value is used to weightedly combine the evaluation score and the overlap, and is used to adjust the impact of different evaluation methods on the final score, so as to obtain a comprehensive score of the sample data as the first single sample score. These weight values ​​can be set according to task requirements and can be determined based on experience, domain knowledge or other factors. Allowing users to assign appropriate weight values ​​to each evaluation score based on task requirements and domain knowledge is more in line with the needs of actual applications. For example, in some tasks, target positioning accuracy may be more important than target classification accuracy, and this requirement can be reflected by increasing the weight value of target positioning accuracy.

[0080] In some embodiments, the first single sample score is expressed as follows:

[0081]

[0082] in, For the Sample data, is the total number of evaluation methods, For the The first sample score of sample data, For the evaluation method, For the The sample data is based on The evaluation scores obtained by the evaluation methods are For the The weight value corresponding to the evaluation score of each evaluation method.

[0083] Through the above steps 301 to 303, the first single sample score of the sample data is obtained by weighted calculation based on the evaluation score obtained according to the overlap degree and the customized evaluation criteria, providing a flexible embedding framework for other user-defined task requirements, and being able to assign different weight values ​​to multiple different evaluation methods to obtain the first single sample score after comprehensive consideration, thereby obtaining a more comprehensive evaluation result.

[0084] Step 103, obtaining a preset confidence threshold for each category, and determining a corresponding confidence based on the pseudo-label of the sample data, and determining a second single sample score for each sample data according to the confidence and the confidence threshold for the corresponding category.

[0085] The following is a detailed description of step 103.

[0086] In some embodiments, confidence refers to a measure of the reliability or trust of the evaluation result. It can be expressed as a probability value, a confidence interval, or other forms. By adding confidence, a more accurate and reliable evaluation result can be provided. A higher confidence indicates that the reliability of the evaluation result is higher, and a lower confidence indicates that the reliability of the evaluation result is lower.

[0087] See also Figure 7 , obtaining a preset confidence threshold for each category, including the following steps 401 to 403.

[0088] Step 401: Obtain a label sample set annotated with real labels, where the label sample set includes label data of multiple categories.

[0089] Step 402: Based on the true labels of the label data, the label confidence of the label data of the corresponding category is calculated under different categories.

[0090] Step 403: Under each category, calculate the average value of the corresponding label confidence and determine the confidence threshold under the corresponding category.

[0091] Steps 401 to 403 are described in detail below.

[0092] It is understood that annotation refers to the process of associating manually added or specified labels or tags with sample data. Annotations can be in the form of classification labels, regression values, text annotations, bounding boxes, etc., which are used to describe certain attributes or characteristics of sample data. The true label refers to the actual or correct label of the sample data. In supervised learning tasks, the true label of the sample data is usually provided by domain experts or manual annotators as a reference standard for model training and evaluation. Obtain a labeled sample set annotated with the true label, and the labeled sample set includes labeled data of multiple categories.

[0093] In some embodiments, for the label data in the label sample set, the label confidence of each label data under each category is calculated according to the different categories of its true label. ,in is the true label, Indicates that the category of the true label is the category , is the label data in the label sample set, is the confidence model. Under each category, the average value of the corresponding label confidence is calculated, for example, to determine the category The confidence threshold under :

[0094]

[0095] in, Represents the true label category A collection of labeled data, is the label confidence of the label data, is the true label, Indicates that the category of the true label is the category , is the label data in the label sample set, is the confidence model.

[0096] Through the above steps 401 to 403, the confidence threshold of each category is calculated based on the label sample set marked with the real label, and a confidence threshold can be determined for each category to evaluate the credibility of the sample data in the category. Through the confidence thresholds of different categories, the credibility of the sample data in the corresponding category can be evaluated. Dividing the sample data into two parts, reliable and unreliable, can help identify and filter out sample data that may have mislabeled or low-quality samples, thereby improving the quality of the target data set.

[0097] See also Figure 8, determining the corresponding confidence based on the pseudo-label of the sample data, and determining the second single sample score of each sample data according to the confidence and the confidence threshold under the corresponding category, including steps 501 to 503.

[0098] Step 501: Obtain pseudo labels for sample data, and determine corresponding confidence levels based on the pseudo labels.

[0099] Step 502: When the confidence of the sample data does not exceed the confidence threshold of the corresponding category, the sample data is removed and the target data set is cleaned.

[0100] Step 503: Determine a second single sample score for each sample data according to the confidence of the sample data in the target data set and the confidence threshold of the corresponding category.

[0101] Steps 501 to 503 are described in detail below.

[0102] It can be understood that pseudo-labeling of sample data refers to assigning temporary labels to sample data using an estimation or prediction method in the absence of true labels. This label is generated by the output of a model or algorithm, rather than manually determined based on the real annotation. A common application scenario is in semi-supervised learning, where only a small part of the data is labeled and most of the data is unlabeled. By using the model to predict unlabeled data and using these prediction results as pseudo-labels, the training data set can be expanded to improve model performance. The accuracy of pseudo-labels depends on the performance of the model. If the model prediction is inaccurate, the pseudo-labels may introduce noise. Secondly, if the accuracy of the labels cannot be guaranteed, the model using pseudo-labels may not perform as well on the test set as the model using real labels. Based on the pseudo-labels, the confidence of the sample data is determined. ,in is the estimated pseudo label, Indicates that the estimated pseudo-label category is category , is the sample data in the target dataset, is the confidence model.

[0103] In some embodiments, when the confidence level of the sample data Does not exceed the confidence threshold of the corresponding category , the sample data is removed, the target data set is cleaned, and the highly credible sample data in the target data set is obtained, that is, the confidence level of the highly credible sample data . See Fig. 9 , based on the labeled sample set with true labels, the confidence threshold of each category is calculated, the sample data is screened according to the confidence threshold, the noise sample data is removed, and the target data set is cleaned to obtain highly reliable sample data.

[0104] In some embodiments, the second single sample score is a score of the sample data obtained after screening based on the confidence and confidence threshold evaluation. and the confidence threshold under the corresponding category The difference is taken as the second single sample score of each sample data, that is, the second single sample score is ,in is the estimated pseudo label, Indicates that the estimated pseudo-label category is category , is the sample data in the target dataset, is the confidence model.

[0105] Through the above steps 501 to 503, the confidence threshold of each category is calculated based on the label sample set with real labels, the sample data is screened according to the confidence threshold, the target data set is cleaned to obtain highly reliable sample data, and the confidence threshold is used to calculate the confidence threshold of each category. and the confidence threshold under the corresponding category difference As the second single sample score of sample data, it can improve the quality of the target dataset and the accuracy of pseudo-annotation.

[0106] Step 104, under the same category, determine the distribution distance between the multiple sample data and the multiple target task data, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories.

[0107] Step 104 is described in detail below.

[0108] It can be understood that distribution distance refers to the difference or distance measure between two probability distributions. Distribution distance measures can be measured by KL divergence (Kullback-Leibler Divergence), JS divergence (Jensen-Shannon Divergence) and Pearson correlation coefficient, which can be used to compare the similarity of two distributions by using these metrics.

[0109] In some embodiments, see Fig.10, both the target data set and the target task sample set contain n categories of data. For each category, the distribution distance between multiple sample data in the category and multiple target task data is calculated. For example, the distribution distance between the distribution of multiple sample data belonging to the first category in the target data set and the distribution of multiple target task data belonging to the first category in the target task sample data set is calculated. The data set score between the target data set and the target task sample set is determined according to the distribution distance under different categories. The data set score can be obtained by calculating the average or weighted average of the distribution distance of each category. The larger the distribution distance under different categories, the greater the distribution difference between the target data set and the target task sample set, that is, the lower the correlation between the target data set and the target task sample set, and the lower the data set score.

[0110] See also Fig.11 , under the same category, determine the distribution distance between multiple sample data and multiple target task data, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories, including steps 601 to 603.

[0111] Step 601: Under the same category, obtain the sample distribution of multiple sample data of the corresponding category in the target data set, and obtain the target task distribution of multiple target task data of the corresponding category in the target task sample set.

[0112] Step 602: Calculate the distribution distance between the sample distribution of the corresponding category and the target task distribution under each category based on the relative entropy.

[0113] Step 603: Determine the dataset score between the target dataset and the target task sample set according to the average value of the distribution distances under different categories.

[0114] Steps 601 to 603 are described in detail below.

[0115] In some embodiments, KL divergence (Kullback-Leibler divergence), also known as relative entropy or information gain, is a metric used to measure the difference between two probability distributions. For example, given two probability distributions P and Q, KL divergence is represented by D(P||Q) and is calculated as follows:

[0116] D(P||Q)=ΣP(z)×log(P(z) / Q(z))

[0117] Where z represents an event in the probability distribution, P(z) and Q(z) represent the probabilities of event z in P and Q respectively. KL divergence measures the average amount of additional information required to approximate probability distribution P from probability distribution Q. It measures the degree of similarity or difference between P and Q.

[0118] In some embodiments, the target data set D and the target task sample set S contain N types of data. The average values ​​of the distribution distances under different categories are as follows:

[0119]

[0120] in, is the average value of the distribution distance under different categories, The target data set i Multiple sample data of the class, The target task sample set i Multiple target task data of the class, is the first i The KL distribution distance between the sample distribution under the category and the target task distribution is measured.

[0121] It can be understood that the dataset score between the target dataset and the target task sample set is determined according to the average value of the distribution distances under different categories. The larger the average value of the distribution distances under different categories, the greater the difference between the target dataset and the target task sample set, and the lower the dataset score.

[0122] Through steps 601 to 603, the distance and similarities and differences of data distribution are considered relatively evenly from the perspective of each category according to the KL divergence. If the sample distribution of a certain category is unbalanced compared with the target task distribution of the corresponding category, the KL divergence can highlight this imbalance and score the target data set more accurately.

[0123] See also Fig.12 , under the same category, determine the distribution distance between multiple sample data and multiple target task data, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories, including steps 701 to 703.

[0124] Step 701: Under the same category, obtain multiple sample data and multiple target task data, and extract sample features of the multiple sample data and target task features of the multiple target task data based on a feature extractor.

[0125] Step 702: Under each category, calculate the feature distance between the sample feature and the target task feature.

[0126] Step 703: Determine the dataset score between the target dataset and the target task sample set according to the average value of the feature distances under different categories.

[0127] Steps 701 to 703 are described in detail below.

[0128] In some embodiments, a feature extractor refers to an algorithm or model for extracting useful features from raw data. It can convert raw data into more representative feature representations for subsequent tasks such as classification, clustering, regression, etc. The feature extractor can be a feature extraction algorithm based on statistical methods, or a model based on machine learning or deep learning. For image data, a convolutional neural network can be used as a feature extractor. For example, the convolution layer and pooling layer of a CNN can extract local features of an image and capture higher-level features of the image through multiple levels of abstraction. The feature extractor can extract representative and discriminative features from raw data to facilitate subsequent task processing.

[0129] It can be understood that sample features refer to feature vectors or feature descriptions extracted from sample data that represent the sample data. Sample features can capture important information of sample data, such as structure, shape, color, texture, etc. Target task features are feature representations related to target task data extracted from target task data. Target task features can be features or attributes of interest to the corresponding target task, such as category features in target classification tasks, location features in target detection tasks, etc.

[0130] In some embodiments, various distance measurement methods, such as Euclidean distance and cosine similarity, can be used to calculate the feature distance between the sample feature and the target task feature. Euclidean distance measures the straight-line distance between the sample feature and the target task feature. To calculate the Euclidean distance, it is necessary to perform difference calculations on the corresponding elements of the sample feature and the target task feature, and to find the square root of the sum of their squares. Cosine similarity is used to measure the directional similarity of two feature vectors, regardless of their size. It calculates the cosine value of the angle between the two feature vectors. The value range of cosine similarity is between [-1, 1]. The closer the value is to 1, the more similar the two feature vectors are. The closer the value is to -1, the less similar the two feature vectors are. The value close to 0 indicates that there is no obvious correlation between the two feature vectors. In addition to Euclidean distance and cosine similarity, there are other distance measurement methods, such as Manhattan distance, Chebyshev distance, etc., which can be selected according to specific task requirements. The appropriate distance measurement method can represent the similarity or difference between the sample feature and the target task feature.

[0131] In some embodiments, the target data set D and the target task sample set S contain N types of data, and the average value of the feature distances under different categories is As shown below:

[0132]

[0133] in, The target data set i Multiple sample data of the class, for A sample data in The target task sample set i Multiple target task data of the class, for A target task data in . For sample data The sample characteristics of Target task data The target task characteristics, is the sample feature Target task characteristics The characteristic distance between is a standard feature extractor related to the target task.

[0134] It can be understood that by determining the dataset score between the target dataset and the target task sample set according to the average value of the feature distances under different categories, a more global dataset distribution distance evaluation result can be obtained. According to the feature distance, the correlation between the target dataset and the corresponding target task is obtained. The larger the average value of the feature distances under different categories, the lower the correlation between the target dataset and the corresponding target task, and the lower the dataset score.

[0135] Through steps 701 to 703, the feature distance between the sample feature and the target task feature is calculated, and the dataset score is determined according to the average value of the feature distance under different categories, so that a more global distribution distance evaluation result can be obtained.

[0136] See also Fig.13 , under the same category, determine the distribution distance between multiple sample data and multiple target task data, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories, including steps 801 to 804.

[0137] Step 801: Obtain sample features of a plurality of sample data and target task features of a plurality of target task data, and perform cluster analysis around the target task features based on the sample features.

[0138] Step 802: Obtain cluster centers of target task features under different categories.

[0139] Step 803: Under the same category, calculate the center distance between the sample features under the corresponding category and the cluster center of the corresponding category.

[0140] Step 804: Determine the degree of dispersion between the target data set and the target task sample set according to the mean values ​​and variances of the center distances under different categories.

[0141] Steps 801 to 804 are described in detail below.

[0142] It is understandable that cluster analysis is an unsupervised learning method that mainly relies on the similarity between sample features. Cluster analysis methods include K-means clustering, hierarchical clustering, DBSCAN, etc. Each method has its advantages and limitations. The most suitable method can be selected according to the characteristics of the sample data. The sample features and target task features are used as input, and cluster analysis is performed using the selected clustering method. The clustering algorithm will group similar sample features and target task features into the same cluster.

[0143] In some embodiments, the cluster center refers to a representative point or vector inside each cluster in cluster analysis, which can be regarded as the average value or center point of the samples in the cluster. The goal of clustering is to group similar samples or data points into the same cluster, and the cluster center is the focus or center of the cluster. For clustering algorithms such as K-means clustering, each cluster has a corresponding cluster center, and the cluster center can be calculated by calculating the average value of the samples in the cluster, that is, the mean of the features in each dimension. The cluster center plays an important role in cluster analysis, which represents a central tendency of the samples in the cluster. The cluster center can be used to represent the characteristics of each cluster. For the clustering results of each category, the cluster center of the target task features under the category is calculated, which can be obtained by calculating the mean or centroid of the target task features in each cluster in the clustering results.

[0144] In some embodiments, the center distance between the sample features of the corresponding category and the cluster center of the corresponding category is calculated, and the sample data Represents sample data The cluster analysis results are sample data Belongs to category C, and corresponds to the center point of the target task feature under category C Center distance ,in is the sample feature, is the cluster center feature of category C, For sample characteristics and classification The center point The center distance.

[0145] In some embodiments, the average of the center distances under different categories can be expressed as an average metric as follows:

[0146] Average metric =

[0147] Among them, C is the category, is the sample data belonging to category C obtained according to the cluster analysis results. Indicates that the cluster analysis result of the sample data belongs to category C. is the center distance between the sample feature of the corresponding category and the cluster center of the corresponding category.

[0148] In some embodiments, the variance of the center distances under different categories can be expressed as a divergence measure as follows:

[0149] Divergence measure =

[0150] Among them, C is the category, is the sample data belonging to category C obtained according to the cluster analysis results. The cluster analysis result of the sample data belongs to category C. is the center distance between the sample feature of the corresponding category and the cluster center of the corresponding category, It is the variance of the center distance between the sample features under category C and the cluster center of the corresponding category.

[0151] In some embodiments, the sample data is expanded in a targeted manner according to the distribution distance between the target data set and the target task sample set. Specifically, the means of targeted expansion can directly use the evaluation results of the previous distribution distance to collect a certain type of data with a longer distribution distance, or further collect sample data areas with low cluster coverage density according to the clustering results. At the same time, combined with the evaluation of feature distribution, a variety of sample data can be added to the target data set to eliminate some sample data that do not meet the corresponding target tasks.

[0152] Through step 801 to step 804, refer to Fig.14 , extract sample features from the sample data in the target data set and map them into the feature space for cluster analysis. By comparing the target task sample set, the degree of discreteness between the target data set and the target task sample set is determined according to the mean and variance of the center distance under different categories, and the average metric and divergence metric are obtained. The characteristic distribution information of the target data set is obtained, and the discreteness of the sample data is measured.

[0153] Step 105 : determining a quality assessment result of the target data set based on the first single sample score, the second single sample score, and the data set score.

[0154] The following is a detailed description of step 105.

[0155] In some embodiments, the first single sample score, the second single sample score and the data set score are comprehensively considered, and a weighted average or other method can be used to calculate the quality assessment result of the final target data set. Different scores can be given different weights according to specific needs. According to the specific quality assessment results, the target data set can be divided into high quality, medium quality or low quality levels, or the quality of the target data set can be described in other ways.

[0156] Through steps 101 to 105, the target data set and the target task sample set are obtained; the overlap of each sample data is determined, and the first single sample score of each sample data is determined based on the overlap; the preset confidence threshold under each category is obtained, and the corresponding confidence is determined based on the pseudo label of the sample data, and the second single sample score of each sample data is determined according to the confidence and the confidence threshold under the corresponding category; under the same category, the distribution distance between multiple sample data and multiple target task data is determined, and the dataset score between the target data set and the target task sample set is determined according to the distribution distance under different categories; the quality assessment result of the target data set is determined based on the first single sample score, the second single sample score and the dataset score. The method considers factors such as overlap and confidence, assigns a score to each sample data based on the first single sample score and the second single sample score, and comprehensively considers global information, analyzes the distribution of sample data, and considers the quality of the target data set from the perspective of the entire data set and downstream tasks, thereby obtaining the quality, diversity and distribution difference of the target data set for the target task sample set, more comprehensively reflecting the characteristics and quality level of the entire data set, and improving the reliability of data set quality assessment and the assessment quality of the data set.

[0157] See also Fig.15 , the embodiment of the present application also provides a data set quality assessment system, which can implement the above-mentioned data set quality assessment method, and the data set quality assessment system includes: a data set acquisition module, which is used to acquire a target data set and a target task sample set, the target data set includes sample data of multiple categories, and the target task sample set includes target task data of multiple categories; a first single sample scoring module, which is used to determine the overlap of each sample data, and determine the first single sample score of each sample data based on the overlap; a second single sample scoring module, which is used to obtain a preset confidence threshold under each category, and determine the corresponding confidence based on the pseudo-label of the sample data, and determine the second single sample score of each sample data according to the confidence and the confidence threshold under the corresponding category; a data set scoring module, which is used to determine the distribution distance between multiple sample data and multiple target task data under the same category, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories; a quality assessment module, which is used to determine the quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score.

[0158] The specific implementation of the data set quality assessment system is basically the same as the specific implementation of the data set quality assessment method described above, and will not be repeated here. On the premise of meeting the requirements of the embodiment of the present application, the data set quality assessment system can also be provided with other functional modules to implement the data set quality assessment method in the above embodiment.

[0159] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned data set quality assessment method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0160] See also Fig.16 , Fig.16 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0161] The processor 1601 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0162] The memory 1602 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1602 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1602, and the processor 1601 calls and executes the data set quality assessment method of the embodiment of this application;

[0163] Input / output interface 1603, used to implement information input and output;

[0164] Communication interface 1604, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0165] A bus 1605 that transmits information between the various components of the device (e.g., the processor 1601, the memory 1602, the input / output interface 1603, and the communication interface 1604);

[0166] The processor 1601 , the memory 1602 , the input / output interface 1603 and the communication interface 1604 are connected to each other in communication within the device via the bus 1605 .

[0167] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned data set quality assessment method is implemented.

[0168] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0169] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0170] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0171] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0173] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising 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.

[0174] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0175] 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 above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0176] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0179] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A data set quality assessment method, characterized in that: include: Acquire a target data set and a target task sample set, wherein the target data set includes sample data of multiple categories, and the target task sample set includes target task data of multiple categories; Determine the overlap degree of each of the sample data, and determine a first single sample score of each of the sample data based on the overlap degree, wherein the overlap degree is used to characterize the proportion of the information content of the foreground area in each of the sample data to the total information content of the sample data; Obtain a label sample set annotated with a true label, the label sample set including label data of multiple categories, calculate the label confidence of the label data of the corresponding category under different categories based on the true label of the label data, calculate the average value of the corresponding label confidence under each category, determine the confidence threshold under each category, and determine the corresponding confidence based on the pseudo label of the sample data, and determine the second single sample score of each sample data according to the confidence and the confidence threshold under the corresponding category; Under the same category, determining the distribution distance between the plurality of sample data and the plurality of target task data, and determining the data set score between the target data set and the target task sample set according to the distribution distance under different categories; A quality assessment result of the target data set is determined based on the first single sample score, the second single sample score, and the data set score.

2. The data set quality assessment method according to claim 1, characterized in that: The determining the overlap degree of each sample data comprises: Acquire a target positioning area for each sample data based on a target detector; Sampling the sample data to obtain sampled data, calculating the precision and recall of the sampled data, and obtaining the average performance of the target detector in the sampled data according to the precision and the recall; Determining an optimal confidence threshold of the object detector based on the average performance; Calibrate the target positioning area of ​​the sample data according to the optimal confidence threshold; The overlap degree of each of the sample data is obtained according to the ratio of the amount of information in the target positioning area of ​​the sample data to the total amount of information of the sample data.

3. The data set quality assessment method according to claim 1, characterized in that: The determining a first single sample score for each sample data based on the overlap degree comprises: Obtaining an evaluation score obtained by evaluating the sample data according to a custom evaluation standard; Obtaining weight values ​​corresponding to the evaluation score and the overlap degree respectively; A first single sample score for each sample data is determined according to the evaluation score, the overlap degree and the corresponding weight values.

4. The data set quality assessment method according to claim 1, characterized in that: The step of determining a corresponding confidence level based on the pseudo-label of the sample data, and determining a second single sample score for each sample data according to the confidence level and the confidence threshold under the corresponding category, comprises: Acquire a pseudo label of the sample data, and determine a corresponding confidence level based on the pseudo label; When the confidence of the sample data does not exceed the confidence threshold of the corresponding category, the sample data is removed and the target data set is cleaned; A second single sample score for each sample data is determined according to the confidence of the sample data in the target data set and the confidence threshold under the corresponding category.

5. The data set quality assessment method according to claim 1, characterized in that: The step of determining the distribution distances between the plurality of sample data and the plurality of target task data under the same category, and determining the dataset score between the target dataset and the target task sample dataset according to the distribution distances under different categories includes: Under the same category, obtain the sample distribution of a plurality of the sample data of the corresponding category in the target data set, and obtain the target task distribution of a plurality of the target task data of the corresponding category in the target task sample set; Calculate the distribution distance between the sample distribution of the corresponding category and the target task distribution under each category based on relative entropy; A dataset score between the target dataset and the target task sample set is determined according to an average value of the distribution distances under different categories.

6. The data set quality assessment method according to claim 1, characterized in that: The step of determining the distribution distances between the plurality of sample data and the plurality of target task data under the same category, and determining the dataset score between the target dataset and the target task sample dataset according to the distribution distances under different categories includes: Under the same category, a plurality of the sample data and a plurality of the target task data are acquired, and sample features of the plurality of the sample data and target task features of the plurality of the target task data are extracted based on a feature extractor; Under each category, calculating the feature distance between the sample feature and the target task feature; A dataset score between the target dataset and the target task sample set is determined according to an average value of the feature distances under different categories.

7. The data set quality assessment method according to claim 1, characterized in that: The step of determining the distribution distances between the plurality of sample data and the plurality of target task data under the same category, and determining the dataset score between the target dataset and the target task sample dataset according to the distribution distances under different categories includes: Acquire sample features of a plurality of the sample data and target task features of a plurality of the target task data, and perform cluster analysis around the target task features based on the sample features; Obtaining cluster centers of the target task features under different categories; Under the same category, calculating the center distance between the sample feature under the corresponding category and the cluster center of the corresponding category; The degree of discreteness between the target data set and the target task sample set is determined according to the mean values ​​and variances of the center distances under different categories.

8. A data set quality assessment system, characterized in that: include: A data set acquisition module, used to acquire a target data set and a target task sample set, wherein the target data set includes sample data of multiple categories, and the target task sample set includes target task data of multiple categories; a first single sample scoring module, used to determine the overlap degree of each of the sample data, and determine a first single sample score of each of the sample data based on the overlap degree, wherein the overlap degree is used to characterize the proportion of the information content of the foreground area in each of the sample data to the total information content of the sample data; A second single sample scoring module is used to obtain a label sample set annotated with a true label, wherein the label sample set includes label data of multiple categories, and based on the true label of the label data, calculate the label confidence of the label data of the corresponding category under different categories, and under each category, calculate the average value of the corresponding label confidence, determine the confidence threshold under each category, and determine the corresponding confidence based on the pseudo label of the sample data, and determine the second single sample score of each of the sample data according to the confidence and the confidence threshold under the corresponding category; A data set scoring module, used to determine the distribution distance between a plurality of the sample data and a plurality of the target task data under the same category, and determine the data set score between the target data set and the target task sample set according to the distribution distance under different categories; A quality assessment module is used to determine a quality assessment result of the target data set based on the first single sample score, the second single sample score and the data set score.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the data set quality assessment method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for assessing data set quality according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data quality assessment method and device and storage medium

    CN110098961A

  • Voice data set quality evaluation method and device

    CN112562736A

  • Data evaluation method and device, computer equipment and storage medium

    CN113704389A

  • Data source quality evaluation method, device and equipment

    CN114862257A

  • Target classification method and device, electronic equipment and storage medium

    CN115797701A

Cited By

  • Method for evaluating data set quality by using task effect and psychological screening system

    CN119272057A

  • Method for evaluating data set quality using task effects, mental health screening system

    CN119272057B