Image data set validity evaluation method, device, equipment and storage medium

The sample data in the image data set is converted into feature vectors through the auto-encoding model, and invalid sample data is screened based on the distribution state of the feature vector, which solves the problem of image data set validity evaluation and achieves accurate image data set validity evaluation.

CN114782731BActive Publication Date: 2024-08-27ZHONGKE NANJING SOFTWARE TECH RES INST
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202210543347.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-08-27
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing technologies fail to effectively screen invalid sample data in image data sets, making it difficult to evaluate the effectiveness of image data sets.

Method used

The sample data is converted into feature vectors through the auto-encoding model, invalid sample data is filtered out based on the spatial distribution state of the feature vector, and the validity measurement value of the image data set is calculated through the statistics of the number of invalid sample data.

Benefits of technology

It achieves objective and accurate evaluation of image data sets, takes into account the imbalance of the total number of categories in the data set, and improves the accuracy of invalid sample data screening and quantity statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782731B
    Figure CN114782731B
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and storage medium for evaluating the effectiveness of an image data set, and belongs to the field of artificial intelligence technology. The method includes: obtaining an image data set; using sample data in the image data set to train an autoencoder model to obtain a trained encoding model; classifying the image data set according to the label of the sample data to obtain at least one category of sample data; using the trained encoding model to process each sample data in the target class sample data to obtain a feature vector of each sample data in the target class sample data; based on the feature vectors of all sample data in the target class sample data, obtaining invalid sample data in the target class sample data; counting invalid sample data in at least one category of sample data to obtain a measure of the effectiveness of the image data set. The present invention provides a method for screening invalid sample data and a method for evaluating the effectiveness of an image data set, thereby accurately evaluating the effectiveness of an image data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to an image data set validity evaluation method, device, equipment and storage medium. Background Art

[0002] A dataset is a collection of data, which can also be called a data set, a data set, or a data set. With the development of artificial intelligence (AI), datasets are being used more and more frequently.

[0003] For the field of artificial intelligence applications, the quality of the data set is the basis for the training of various intelligent algorithms. The quality assessment of the data set is the core work of data quality assessment in the field of artificial intelligence. Since the field of artificial intelligence usually uses data sets to train models, the quality of the data set directly affects the results of model training. During the training process, the model needs to extract the attribute features of the data set and learn based on the attribute features. Therefore, sample data that contributes more to the extraction of the attribute features of the data set can provide more references for the learning of the model and effectively improve the accuracy of model training.

[0004] In the present invention, sample data that does not contribute to the attribute feature extraction of a data set is defined as invalid sample data, and vice versa, it is defined as valid sample data, and the validity of a data set is defined to be related to the proportion of valid sample data in the data set. The related art has not yet proposed how to filter invalid sample data in an image data set to achieve the evaluation of the validity of the image data set. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a method, device, equipment and storage medium for evaluating the effectiveness of an image data set.

[0006] In a first aspect, the present invention provides a method for evaluating the effectiveness of an image dataset, comprising:

[0007] Acquire an image data set, where the image data set includes a plurality of sample data and labels of the sample data;

[0008] Using sample data in the image data set to train an autoencoder model to obtain a trained encoding model; wherein the autoencoder model includes an encoding model and a decoding model;

[0009] Classifying the image data set according to the labels of the sample data to obtain at least one category of sample data;

[0010] For target class sample data in the at least one class of sample data, use the trained encoding model to process each sample data in the target class sample data to obtain a feature vector of each sample data in the target class sample data;

[0011] Based on the feature vectors of all sample data in the target class sample data, obtaining invalid sample data in the target class sample data; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category;

[0012] Invalid sample data in the at least one type of sample data is counted to obtain a validity measurement value of the image data set, where the validity measurement value is used to indicate the validity of the image data set.

[0013] Optionally, acquiring invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data includes:

[0014] Determining a feature center point of the target class sample data based on feature vectors of all sample data in the target class sample data;

[0015] Calculate the distance between the feature vector of each sample data in the target class sample data and the feature center point;

[0016] The invalid sample data is filtered out from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point.

[0017] Optionally, screening the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point includes:

[0018] Sorting the distances between the feature vectors of all sample data in the target class sample data and the feature center point to obtain all distance sortings;

[0019] Taking the feature center point as reference, sort all distances into w u The distance at the site is determined as the distance threshold h u ;

[0020] Calculate the distances of all the distances less than the distance threshold h u The maximum distance and the distance threshold h u The difference between them is used to obtain the adjacent distance difference;

[0021] The distance threshold h is increased by taking the target multiple of the adjacent distance difference as the step size. u , get the distance threshold hu+1 ;

[0022] Calculate the distance threshold h u+1 The proportion of distance within in all distances w u+1 ;

[0023] In the proportion w u+1 With w u When the difference between the two is less than or equal to the target difference, the distance threshold h is u+1 Determine as the target distance threshold; determine the sample data corresponding to the distance greater than the target distance threshold in all distance sorting as invalid sample data;

[0024] In the proportion w u+1 With w u If the difference between them is greater than the target difference, let u=u+1, and sort all the distances by the feature center point as a reference. u The distance at the site is determined as the distance threshold h u The steps are started again.

[0025] Optionally, screening the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point includes:

[0026] Obtaining the total number of sample data in the target class sample data;

[0027] When the total number of sample data in the target class sample data is greater than or equal to the sample quantity threshold, the sample data corresponding to the distance greater than the first distance threshold among all the distances are determined as the invalid sample data;

[0028] When the total number of sample data in the target class sample data is less than the sample quantity threshold, the sample data corresponding to the distance greater than the second distance threshold among all distances are determined as the invalid sample data; wherein the first distance threshold is less than the second distance threshold.

[0029] Optionally, counting invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes:

[0030] Summing up the number of invalid sample data in the at least one type of sample data to obtain a total number of invalid sample data;

[0031] The validity metric value is calculated based on the total number of invalid sample data and the total number of sample data in the image data set.

[0032] Optionally, counting invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes:

[0033] Obtaining a first invalid total number and a second invalid total number, wherein the first invalid total number refers to the total number of invalid sample data in a sample data category whose total number of sample data is greater than or equal to a sample number threshold, and the second invalid total number refers to the total number of invalid sample data in a sample data category whose total number of sample data is less than the sample number threshold;

[0034] Obtaining a first confidence level and a second confidence level, wherein the first confidence level corresponds to the first total number of invalid items, and the second confidence level corresponds to the second total number of invalid items; wherein the first confidence level is greater than the second confidence level, and the sum of the first confidence level and the second confidence level is equal to 1;

[0035] The validity measure value is calculated based on the first invalid total number, the second invalid total number, the first confidence level, the second confidence level, and the total number of sample data in the image data set.

[0036] Optionally, counting invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes:

[0037] Acquire a sample data category that matches the application task of the image data set in the at least one category of sample data to obtain a task-matching sample data category;

[0038] Obtaining a target invalid total and a remaining invalid total, wherein the target invalid total refers to the total number of invalid sample data in the task matching sample data category, and the remaining invalid total refers to the total number of sample data in the image data set except the task matching sample data category;

[0039] The effectiveness metric value is calculated based on the target invalid total number, the remaining invalid total number and the total number of sample data in the image data set.

[0040] In a second aspect, the present invention provides an image data set validity assessment device, comprising:

[0041] A first acquisition module, used to acquire an image data set, wherein the image data set includes a plurality of sample data and labels of the sample data;

[0042] A training module, used to train the autoencoder model using the sample data in the image data set to obtain a trained encoding model; wherein the autoencoder model includes an encoding model and a decoding model;

[0043] A classification module, used to classify the image data set according to the label of the sample data to obtain at least one category of sample data;

[0044] A processing module, configured to process each sample data of the target class sample data in the at least one class of sample data by using the trained encoding model to obtain a feature vector of each sample data of the target class sample data;

[0045] A second acquisition module is used to acquire invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category;

[0046] The statistical module is used to count the invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set, and the validity measurement value is used to indicate the validity of the image data set.

[0047] In a third aspect, the present invention provides a computer device comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the method for evaluating the validity of an image dataset as described in any one of the first aspects is implemented.

[0048] In a fourth aspect, the present invention provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the method for evaluating the validity of an image dataset as described in any one of the first aspects is implemented.

[0049] The present invention provides a method for screening invalid sample data and a method for evaluating the validity of an image data set. By converting sample data into feature vectors, the feature differences between sample data are intuitively displayed; then, by the spatial distribution of feature vectors, the sample data corresponding to discretely distributed feature vectors are screened as invalid sample data, effectively screening out sample data that does not contribute to the attribute feature extraction of the image data set; finally, by counting the number of invalid sample data, the validity metric is calculated, and the validity of the image data set is objectively and accurately evaluated.

[0050] In addition, the present invention considers the imbalance between the total number of each category in the image data set during the screening and quantitative counting of invalid sample data. The screening basis of invalid sample data is the spatial distribution state of the feature vector, and the categories with a larger total number provide more references for the training of the self-encoding model. The trained encoding model can more accurately extract the latent space representation for the categories with a larger total number, so the invalid sample data screened out from the categories with a larger total number have a higher confidence, and the categories with a larger total number naturally present a relatively clustered state in the spatial distribution of the feature vector relative to the categories with a smaller total number. When screening invalid sample data and / or counting the number of invalid sample data in the image data set, the imbalance between the total numbers of different categories is taken into account, and different screening bases and / or different confidences are set for categories with different total numbers, so as to improve the accuracy of the screening and quantitative counting of invalid sample data, so as to accurately evaluate the validity of the image data set.

[0051] In addition, the present invention can also evaluate the validity of the image dataset in combination with the application task of the image dataset. When facing a specific application task, it is not necessary to use all the sample data in the image dataset. Usually, the sample data in the image dataset that does not match the application task is invalid for the application task. In the process of evaluating the validity of the image dataset, considering the application task of the image dataset helps to achieve targeted evaluation in combination with the characteristics of the application task, and effectively improves the accuracy of the evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0053] Figure 1 A flowchart of a method for evaluating the effectiveness of an image dataset provided by one embodiment of the present invention;

[0054] Figure 2 A schematic diagram of the principle of an autoencoding model provided by one embodiment of the present invention;

[0055] Figure 3 A schematic diagram of the network structure of an autoencoding model provided by one embodiment of the present invention;

[0056] Figure 4 A schematic diagram of calculating a target distance threshold provided by an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of the structure of an image data set validity assessment device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] like Figure 1 As shown, an embodiment of the present invention provides a method for evaluating the effectiveness of an image data set. The method can be executed by a computer device and includes the following steps (steps 101 to 106).

[0060] Step 101: Obtain an image dataset, where the image dataset includes a plurality of sample data and labels of the sample data.

[0061] In an image dataset, sample data is an image, and the image dataset also includes a label for each sample data. Usually, the label of the sample data matches the main content of the sample data. For example, if the main content of the sample data is the sky, then the label of the sample data is also the sky; for another example, if the main content of the sample data is a dog, then the label of the sample data can be a dog or an animal.

[0062] The present invention can evaluate the validity of an image dataset stored locally on a computer device, or can obtain image datasets stored on other devices for effectiveness evaluation. For example, a user selects any image dataset stored locally on a computer device; or a user inputs an access address of any image dataset, and the computer device obtains the image dataset from the device indicated by the access address.

[0063] Step 102: Use sample data in the image data set to train the autoencoder model to obtain a trained encoding model; wherein the autoencoder model includes an encoding model and a decoding model.

[0064] The Auto-Encoder model is a neural network that uses the back-propagation algorithm to make the output equal to or approximately equal to the input. Figure 2 As shown, in the present invention, the self-encoding model includes an encoding model (Encoded) and a decoding model (Decoded), wherein the encoding model is used to compress the input into a latent space representation, and the decoding model is used to reconstruct the input through the latent space representation to obtain the output.

[0065] In the present invention, in order to obtain the latent space representation of the sample data in the image data set obtained in step 101 and to screen out invalid sample data, the computer device uses the sample data in the image data set obtained in step 101 to train the autoencoder model, that is, the sample data in the image data set obtained in step 101 is used as the input of the autoencoder model, and the autoencoder model obtains the output through compression of the encoding model and reconstruction of the decoding model, and the output is equal to or approximately equal to the input sample data by adjusting the parameters of the autoencoder model. During the training process, the computer device also constructs the loss value of the autoencoder model based on the output and the input, and the training of the autoencoder model is completed when the loss value converges.

[0066] The trained encoding model can be obtained through the trained auto-encoding model. Optionally, the computer device separates the encoding model from the trained auto-encoding model to obtain the trained encoding model; or, the computer device obtains the parameters of the encoding model in the trained auto-encoding model, and loads the parameters of the encoding model in the trained auto-encoding model into another encoding model with the same network structure to obtain the trained encoding model.

[0067] Step 103: classify the image data set according to the labels of the sample data to obtain at least one category of sample data.

[0068] The label of the sample data usually matches the main content of the sample data. Based on this, if the main content of the sample data is the same, the latent space representation of the sample data will also be the same or similar; if the main content of the sample data is different, the latent space representation of the sample data will usually be quite different, which will interfere with the screening of invalid sample data. Therefore, in the present invention, the computer device needs to classify the image data set according to the label of the sample data to obtain at least one category of sample data.

[0069] In one example, the computer device classifies sample data with the same label into one category. For example, if the labels of the sample data in the image data set include dog, sky, cat, and person, then the sample data with the label of dog is classified into one category, the sample data with the label of sky is classified into one category, the sample data with the label of cat is classified into one category, and the sample data with the label of person is classified into one category.

[0070] In another example, the computer device classifies sample data with similar labels into one category, and similar labels include but are not limited to labels having the same attributes, and / or labels having the same superordinate attributes. For example, the labels of sample data in an image data set include man, woman, sky, and dog. Since man and woman have the same attributes, that is, both are people, the sample data labeled as man or woman are classified into one category, the sample data labeled as sky are classified into one category, and the sample data labeled as dog are classified into one category. For another example, the labels of sample data in an image data set include man, sky, dog, and cat. Since dog and cat have the same superordinate attribute, that is, both are animals, the sample data labeled as man are classified into one category, the sample data labeled as sky are classified into one category, and the sample data labeled as dog or cat are classified into one category.

[0071] It should be noted that the present invention does not limit the execution order of step 102 and step 103. Step 102 can be executed before step 103, can be executed after step 103, or can be executed simultaneously with step 103. Figure 1 It is merely for the convenience of description that step 102 is performed before step 103 . It should be understood that this does not constitute a limitation to the present invention.

[0072] Step 104: for target class sample data in at least one class of sample data, use the trained encoding model to process each sample data in the target class sample data to obtain a feature vector of each sample data in the target class sample data.

[0073] The encoding model in the autoencoder model can compress the input to obtain a latent space representation. In the present invention, the latent space representation is represented by a feature vector. For each type of sample data in at least one type of sample data obtained in step 103 (i.e., target class sample data), the computer device calls the encoding model trained in step 102, and processes each sample data in the target class sample data through the trained encoding model to obtain a feature vector for each sample data. In the present invention, the feature vector output by the encoding model is a three-dimensional vector, which can be further expanded into a one-dimensional vector. For example, Figure 3 As shown in the figure, the encoding model and decoding model of the autoencoder model are symmetrical in network structure. The input sample data is 28*28*1. Figure 3 The encoding model shown in the figure outputs a feature vector of sample data of 7*7*8, which can be further expanded into [x1, x2, …, x 392 ].

[0074] Step 105 , based on the feature vectors of all sample data in the target class sample data, invalid sample data in the target class sample data is obtained; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category.

[0075] Through the classification in step 103, a class of sample data should have the same or similar latent space representation, so that the feature vectors of a class of sample data should be relatively clustered in space. If there is a feature vector of a certain sample data in a class of sample data that is discrete from the spatial distribution of the feature vectors of other sample data, then the sample data does not contribute to the attribute feature extraction of the sample data of the corresponding category, that is, the sample data is invalid sample data in the class of sample data. Therefore, in the present invention, the computer device screens invalid sample data from the class of sample data based on the feature vectors of all sample data in the class of sample data, and counts the number of invalid sample data in each class of sample data.

[0076] In one example, step 105 includes the following sub-steps (steps 1051 to 1053 ).

[0077] Step 1051: determine the feature center point of the target class sample data based on the feature vectors of all sample data in the target class sample data.

[0078] When filtering invalid sample data in a class of sample data, the computer device first needs to determine the spatial center of the feature vector of the class of sample data, that is, the feature center point of the class of sample data. In the present invention, the feature center point of a class of sample data can be the feature vector closest to the spatial center in the feature vector of the class of sample data, that is, the approximate center point; it can also be the spatial center actually formed by the feature vector of the class of sample data, that is, the real center point.

[0079] Optionally, if the characteristic center point of a class of sample data is a real center point, the computer device calculates the mean of the characteristic vectors of all sample data in the class of sample data in each dimension, and combines the dimensions to obtain the characteristic center point of the class of sample data. Exemplarily, the characteristic center point of the target class sample data is the spatial center of the characteristic vectors of all sample data in the target class sample data, and the characteristic center point of the target class sample data can be determined according to the following formula:

[0080] .

[0081] in, is the characteristic center point of the target class sample data; m is the dimension of the feature vector, m is an integer greater than 3; The feature center point In the l The values ​​in the dimensions, l is less than or equal to m A positive integer of ; n is the number of sample data in the target class sample data, n is a positive integer;x il is the target class sample data i The feature vector of the sample data is in l The values ​​in the dimensions, i is less than or equal to n A positive integer.

[0082] Step 1052, calculating the distance between the feature vector and the feature center point of each sample data in the target class sample data.

[0083] In order to intuitively display the spatial distribution of the feature vector of the sample data of this type, after determining the feature center point of the sample data of this type, the computer device further calculates the distance between the feature vector of each sample data in the sample data of this type and the feature center point. Optionally, the distance can be any one of the Euclidean distance, Manhattan distance, Chebyshev distance, and Mahalanobis distance.

[0084] For example, if the Euclidean distance is used to calculate the distance between the feature vector and the feature center point, the distance between the feature vector and the feature center point of each sample data in the target class sample data can be calculated according to the following formula:

[0085] .

[0086] in, is the target class sample data i The feature vector of the sample data x i With feature center distance; x it is the target class sample data i The feature vector of the sample data is in t The value of the dimension; The feature center point In the t The value of the dimension; m is the dimension of the feature vector, m is an integer greater than 3.

[0087] Step 1053 , based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point, filter out invalid sample data from the target class sample data.

[0088] The feature vector of invalid sample data is discrete from the spatial distribution of the feature vectors of other sample data. The spatial distribution of the feature vector of the sample data is intuitively displayed through the distance between the feature vector of the sample data and the feature center point. Therefore, the computer device can determine the discretely distributed feature vectors based on the distance between the feature vectors of all sample data and the feature center point (hereinafter referred to as "all distances"), and the sample data corresponding to these feature vectors are invalid sample data. Optionally, the computer device can determine the clustering area of ​​the feature vector based on all distances, and the sample data corresponding to the feature vectors outside the clustering area are screened as invalid sample data; or, the computer device screens the distance greater than the distance threshold from all distances according to a pre-set distance threshold, and the sample data corresponding to these distances are invalid sample data.

[0089] In one example, the above step 1053 includes the following sub-steps (steps 10531 to 10537).

[0090] Step 10531, sort the distances between the feature vectors and the feature center points of all sample data in the target class sample data (ie, "all distances") to obtain a sorting of all distances.

[0091] The computer device may sort all distances in order from largest to smallest or from smallest to largest, and obtain distances arranged in order from smallest to largest (ie, "sorting all distances").

[0092] Step 10532, taking the feature center point as reference, sort all distances into w u The distance at the site is determined as the distance threshold h u .

[0093] like Figure 4 As shown, taking the feature center point as a reference, w u The site distance is determined as the distance threshold h u , w u is a positive number less than 1. That is, less than or equal to the distance threshold h u (Distance threshold h u The proportion of the distance within the distance is w u In the present invention, in order to improve the accuracy of invalid sample data screening, a smaller w can be set for sample data categories with relatively discrete spatial distribution of feature vectors. u , such as 50%, 60%, etc.; for sample data categories with relatively concentrated spatial distribution of feature vectors, a larger w can be set. u , such as 70%, 80%, etc.

[0094] Step 10533: calculate all the distances less than the distance threshold h in the sorted order u The maximum distance and distance threshold hu The difference between them is used to get the adjacent distance difference.

[0095] All distances sorted by distance less than the distance threshold h u The maximum distance is the distance threshold h in the distance sorted from small to large u The previous distance.

[0096] Step 10534, increase the distance threshold h by the target multiple of the adjacent distance difference as the step length u , get the distance threshold h u+1 .

[0097] like Figure 4 As shown, the computer device increases the distance threshold h by the target multiple of the adjacent distance difference as the step size. u Get the distance threshold h u+1 , that is, the distance threshold h u+1 is the distance threshold h u In the present invention, considering the fine granularity and speed of invalid sample data screening, a smaller target multiple, such as 0.5, 1, 1.5, etc., can be set for screening requirements with high fineness (usually slow speed); a larger target multiple, such as 2, 2.5, 3, etc., can be set for screening requirements with low fineness (usually fast speed).

[0098] Step 10535, calculate the distance threshold h u+1 The proportion of distance within in all distances w u+1 .

[0099] like Figure 4 As shown, the computer device statistics are less than or equal to the distance threshold h u+1 (Distance threshold h u+1 The distance number within (within) is calculated, and the ratio of the distance number to the total number of all distances is calculated to obtain the distance threshold h u+1 The proportion of distance within in all distances w u+1 .

[0100] Step 10536, in proportion w u+1 With w u When the difference between the two is less than or equal to the target difference, the distance threshold h is u+1 The target distance threshold is determined; and the sample data corresponding to the distances greater than the target distance threshold among all distances are determined as invalid sample data.

[0101] Proportion w u+1 Greater than or equal to the proportion w u . In the proportion of w u+1 and proportion w u When the difference is less than or equal to the target difference, the distance threshold hu+1 The proportion of feature center point distance within all distances tends to be stable, that is, the distance threshold h u+1 If the feature vector corresponding to the feature center point outside is discrete in the clustered area of ​​the feature vector distribution of this type of sample data, then the distance threshold h u+1 Determined as the target distance threshold.

[0102] Feature vectors greater than the target distance threshold are spatially discrete from the clustered area where feature vectors of this type of sample data are distributed. Therefore, sample data corresponding to distances greater than the target distance threshold are determined as invalid sample data, and the computer device can count the number of invalid sample data in the target class sample data.

[0103] Step 10537, in proportion w u+1 With w u If the difference between them is greater than the target difference, let u=u+1, and sort all the distances by the feature center point as a reference. u The distance at the site is determined as the distance threshold h u The steps are started again.

[0104] In the proportion of w u+1 and proportion w u When the difference is greater than the target difference, the distance threshold h u+1 There are still corresponding feature vectors distributed in the clustered area of ​​the feature vector distribution of this type of sample data in the distance outside, and it is necessary to further increase the distance threshold h u+1 , so that the distances corresponding to all feature vectors in the clustering area are included in the distance threshold.

[0105] In the present invention, factors such as the fine granularity of screening of invalid sample data and the total number of such sample data are taken into consideration. For screening requirements with a large total number and high fineness, a smaller target difference, such as 0.01%, 0.05%, etc., can be set; for screening requirements with a small total number and low fineness, a larger target difference, such as 0.5%, 1%, etc., can be set.

[0106] In another example, the above step 1053 includes the following sub-steps (steps 1053A to 1053C).

[0107] Step 1053A, obtaining the total number of sample data in the target class sample data.

[0108] When training the autoencoder model in step 102, the categories with a large number of sample data provide more references for the training of the autoencoder model. The autoencoder model can extract more attribute features from these categories with a large number of sample data. The encoding model trained thereby can compress the sample data in the categories with a large number of sample data more accurately, that is, the feature vectors of the sample data in the categories with a large number of sample data are more clustered in space. Taking this factor into consideration, when filtering invalid sample data in a category of sample data, the computer device obtains the total number of sample data in this category, so as to filter the invalid sample data in a targeted manner in combination with the spatial distribution of the feature vectors.

[0109] Step 1053B: when the total number of sample data in the target class sample data is greater than or equal to the sample quantity threshold, the sample data corresponding to the distance greater than the first distance threshold among all distances are determined as invalid sample data;

[0110] Step 1053C, when the total number of sample data in the target class sample data is less than the sample quantity threshold, the sample data corresponding to the distance greater than the second distance threshold among all distances are determined as invalid sample data; wherein the first distance threshold is less than the second distance threshold.

[0111] The sample quantity threshold is the total number threshold of the sample data category. The sample data category with a total number greater than the sample quantity threshold is regarded as a category with a larger total number, and the sample data category with a total number less than the sample quantity threshold is regarded as a category with a smaller total number. Optionally, the sample quantity threshold may be a preset threshold, for example, the sample quantity threshold is preset to 5000, 10000, etc.; or, the sample quantity threshold is determined by the computer device in combination with the total number of each type of sample data in at least one type of sample data. For example, when the computer device classifies the image data set in step 103, it simultaneously counts the total number of each type of sample data, and determines the total number of target sites (such as 50% sites, 75% sites, 80% sites, 85% sites, etc.) as the sample quantity threshold.

[0112] From the above introduction, it can be seen that the feature vectors of sample data in categories with a larger total number are more clustered in space, and the feature vectors of sample data in categories with a smaller total number are more discrete in space. This clustered or discrete state is not only caused by invalid sample data, but may also be affected by the number of total numbers. Categories with a smaller total number provide fewer references when training the autoencoder model, so the trained encoding model has relatively low accuracy when extracting the latent space representation of such sample data. Therefore, even if there are fewer invalid sample data in such sample data, the feature vectors of the sample data will present a discrete distribution in space. Therefore, in the present invention, a smaller distance threshold, i.e., the first distance threshold, is set for categories with a larger total number; a larger distance threshold, i.e., the second distance threshold, is set for categories with a smaller total number, so as to alleviate the phenomenon of discrete spatial distribution of feature vectors caused by the imbalance between the total numbers of each category.

[0113] Based on this, for any one of at least one type of sample data, when the total number of sample data of this type is greater than or equal to the sample quantity threshold, the sample data whose distance between the feature vector and the feature center point is greater than the first distance threshold is invalid sample data; when the total number of sample data of this type is less than the sample quantity threshold, the sample data whose distance between the feature vector and the feature center point is greater than the second distance threshold is invalid sample data. The computer device can count the number of invalid sample data in this type of sample data. The first distance threshold is less than the second distance threshold, and optionally, the first distance threshold is the first site distance among all distances, and the second distance threshold is the second site distance among all distances, and the first site is less than the second site, for example, the first site is the 90% site, and the second site is the 95% site.

[0114] In practical applications, considering factors such as the fine granularity of invalid sample data screening, multi-stage total number thresholds and corresponding distance thresholds can be set for higher-precision screening requirements. Exemplarily, the total number thresholds of the two stages can be set, namely, threshold th1 and threshold th2, where threshold th1 is greater than threshold th2, such as threshold th1 is 8000 and threshold th2 is 5000; for any one type of sample data in at least one type of sample data, when the total number of sample data in this type is greater than or equal to threshold th1, sample data corresponding to distances greater than distance threshold sth1 among all distances are determined as invalid sample data; when the total number of sample data in this type is less than threshold th1 and greater than or equal to threshold th2, sample data corresponding to distances greater than distance threshold sth2 among all distances are determined as invalid sample data; when the total number of sample data in this type is less than threshold th2, sample data corresponding to distances greater than distance threshold sth3 among all distances are determined as invalid sample data; wherein, distance threshold sth1 is less than distance threshold sth2, and distance threshold sth2 is less than distance threshold sth3, for example, distance threshold sth1 is 85% site distance among all distances, distance threshold sth2 is 90% site distance among all distances, and distance threshold sth3 is 95% site distance among all distances.

[0115] In addition, in the present invention, after calculating all the distances, the computer device can also normalize all the distances to narrow the range of distance values ​​to between 0 and 1, and then filter invalid sample data according to the method of steps 10531 to 10537 or steps 1053A to 1053C. By normalizing all the distances, it can be ensured that the distance between the feature vector of the sample data and the feature center point is controllable, and the magnitude of the distance is reduced to avoid increasing the amount of calculation due to the distance value being too dispersed or too large. For example, for the method for filtering invalid sample data shown in steps 10531 to 10537, if all the distances are normalized, the distance threshold h can be directly determined. u , such as directly setting the distance threshold h u 0.5, 0.6, 0.7, 0.8, etc., without having to look for w in order u The value of the site distance effectively reduces the processing overhead of the computer equipment; and in the subsequent calculation of the distance threshold h u+1When , only mathematical operations within 1 need to be performed, which helps to reduce the amount of calculation. For another example, for the method of screening invalid sample data shown in steps 1053A to 1053C, if all distances are normalized, the values ​​of the first distance threshold and the second distance threshold can be directly determined, such as directly setting the first distance threshold to 0.9 and the second distance threshold to 0.95, without sorting all distances and searching for the values ​​of the corresponding site distances in order, which also simplifies the processing flow of the computer equipment and effectively reduces the processing overhead.

[0116] Step 106 , counting invalid sample data in at least one type of sample data to obtain a validity measurement value of the image data set, where the validity measurement value is used to indicate the validity of the image data set.

[0117] The valid sample data is the sample data in the image data set except the invalid sample data. In the present invention, the proportion of the valid sample data in the image data set is defined as the validity metric value, and the validity of the image data set can be evaluated by the validity metric value. Optionally, the validity of the image data set can be qualified or unqualified, or can be any of the three levels of excellent, good, and poor, or other evaluation methods can be used, which is not limited by the present invention.

[0118] For example, taking the image dataset effectiveness as any of the three levels of excellent, good, and poor as an example, if the image dataset effectiveness is excellent, it means that most of the sample data in the image dataset contributes greatly to the attribute feature extraction of the category to which it belongs, and there is almost no invalid sample data; if the image dataset effectiveness is good, it means that most of the sample data in the image dataset contributes greatly to the attribute feature extraction of the category to which it belongs, but there are also some invalid sample data; if the image dataset effectiveness is poor, it means that the invalid sample data in the image dataset has formed a certain scale, which has a negative impact on the attribute feature extraction of the image dataset. For example, the evaluation method of the image dataset effectiveness is as follows: If p 1≥ A , then the image dataset is of poor validity; if p 2≥ A > p 1, the image dataset is effective; if A > p 2, the image dataset is effective; among them, A It is a measure of effectiveness, and its value range is any ratio between 0 and 100%; p 1 is less than p 2. Usually p 1 and p The value of 2 is between 50% and 100%, for example, p 1 is 80%, p 2 is 90%.

[0119] The present invention does not limit the calculation method of the validity metric. Optionally, the computer device can count the number of invalid sample data and calculate the proportion of invalid sample data in the image data set, thereby further calculating the proportion of valid sample data in the image data set, that is, the validity metric; or the computer device can count the number of invalid sample data and calculate the total number of valid sample data through the total number of sample data and the total number of invalid sample data in the image data set, thereby calculating the validity metric. In one example, the above step 106 includes the following sub-steps (steps 10611 to 10612).

[0120] Step 10611, summing up the number of invalid sample data in at least one type of sample data to obtain the total number of invalid sample data.

[0121] When screening invalid sample data in each category, the computer device counts the number of invalid sample data in each category, and after traversing all categories (i.e., at least one category obtained in step 103), adds up the number of invalid sample data in all categories to obtain the total number of invalid sample data in the image data set.

[0122] Step 10612, calculate the validity metric value based on the total number of invalid sample data and the total number of sample data in the image data set.

[0123] Based on the total number of invalid sample data and the total number of sample data in the image data set, the computer device can first calculate the proportion of invalid sample data in the image data set, and then subtract the proportion from 100% to obtain the effectiveness measurement value; or, the computer device can first calculate the total number of valid sample data, and then calculate the effectiveness measurement value based on the total number of valid sample data and the total number of sample data in the image data set.

[0124] For example, the effectiveness metric may be calculated according to the following formula:

[0125] .

[0126] in, A is the effectiveness measure; c is the total number of sample data categories in the image dataset, c is a positive integer; e z For the z The number of invalid sample data in the sample data category, z is less than or equal to c The natural number of is the total number of invalid sample data in all class sample data; e is the total number of sample data in the image dataset,e Is a positive integer.

[0127] From the above introduction, it can be seen that the references provided by categories with different total numbers in the training process of the autoencoder model are different. The spatial aggregation or discrete distribution state of the feature vector of the sample data obtained by the trained encoding model may be affected by the total number of categories, and the screening of invalid sample data depends on the spatial distribution of the feature vector of the sample data. Therefore, in the calculation process of the validity metric, the confidence of the invalid sample data screened out from categories with different total numbers can also be considered. Based on this, in an example, the above step 106 includes the following sub-steps (steps 10621 to 10623).

[0128] Step 10621, obtain the first invalid total number and the second invalid total number.

[0129] The first invalid total number refers to the total number of invalid sample data in the sample data category whose total number of sample data is greater than or equal to the sample number threshold (hereinafter referred to as the “category with a larger total number”), and the second invalid total number refers to the total number of invalid sample data in the sample data category whose total number of sample data is less than the sample number threshold (hereinafter referred to as the “category with a smaller total number”). For an introduction to the sample number threshold, please refer to the above step 105, which will not be elaborated here.

[0130] Step 10622, obtaining a first confidence level and a second confidence level.

[0131] Among them, the first confidence corresponds to the first invalid total number, which refers to the confidence of the invalid sample data screened out from the category with a larger total number; the second confidence corresponds to the second invalid total number, which refers to the confidence of the invalid sample data screened out from the category with a smaller total number. Among them, the sum of the first confidence and the second confidence is equal to 1. From the above introduction, it can be seen that the categories with a larger total number provide more references in the training process of the self-encoding model, so that the trained encoding model can more accurately extract the latent space representation of the sample data in the category with a larger total number, and then the invalid sample data screened out based on the latent space representation has a higher confidence, therefore, the first confidence is greater than the second confidence. Optionally, the ratio between the first confidence and the second confidence is equal to the ratio between the total number of sample data in the category with a larger total number and the total number of sample data in the category with a smaller total number.

[0132] Exemplarily, the image data set is divided into 5 sample data categories, and the number of sample data in these 5 sample data categories is 10000, 16000, 8000, 7000 and 9000 respectively. Assuming that the sample number threshold is 9000, then the total number of sample data in the category with a larger total number is 10000+16000+9000=35000, and the total number of sample data in the category with a smaller total number is 8000+7000=15000, then the ratio between the first confidence and the second confidence is 35000 / 15000=7 / 3. Since the sum of the first confidence and the second confidence is equal to 1, the first confidence is 0.7 and the second confidence is 0.3.

[0133] Step 10623, calculate the validity measure value based on the first invalid total, the second invalid total, the first confidence level, the second confidence level, and the total number of sample data in the image data set.

[0134] The computer device performs weighted summation of the first invalid total and the second invalid total by using the first confidence level and the second confidence level to obtain the credible total of invalid sample data in the image data set. Afterwards, based on the credible total of invalid sample data and the total number of sample data in the image data set, the computer device may first calculate the proportion of invalid sample data in the image data set, and then subtract the proportion from 100% to obtain the validity measurement value; or the computer device may first calculate the credible total of valid sample data, and then calculate the validity measurement value based on the credible total of valid sample data and the total number of sample data in the image data set.

[0135] For example, the effectiveness metric may be calculated according to the following formula:

[0136] .

[0137] in, A is the effectiveness measure; c is the total number of sample data categories in the image dataset, c is a positive integer; k is the number of categories with a larger total number, k is less than or equal to c A positive integer of ; is the second invalid total; y 1 is the second confidence level; e f For the category with a smaller total number f The number of invalid sample data in each category; is the first invalid total; y 2 is the first confidence level; e q For the category with a larger total number qThe number of invalid sample data in each category; e is the total number of sample data in the image dataset, e Is a positive integer.

[0138] It should be understood that when a multi-stage total threshold is set in step 105, the sample data category can also be divided into at least three situations through the multi-stage total threshold in step 106, each situation includes at least one sample data category, and the computer device counts the total number of invalid sample data for each situation and sets the confidence level corresponding to each situation.

[0139] In the present invention, when evaluating the validity of an image dataset, if the image dataset has an application task, the validity can be evaluated in combination with the application task. Based on this, in one example, the above step 106 includes the following sub-steps (steps 10631 to 10633).

[0140] Step 10631, obtaining a sample data category that matches the application task of the image data set in at least one type of sample data, and obtaining a task-matching sample data category.

[0141] Exemplarily, step 103 divides the image data set into four categories, and the labels of these four categories of sample data are man, woman, sky, and dog, respectively. If the application task of the image data set is human body recognition, the filtered task matching sample data categories include: sample data categories labeled as man and sample data categories labeled as woman.

[0142] Step 10632, obtain the target invalid total and the remaining invalid total.

[0143] Among them, the target invalid total refers to the total number of invalid sample data in the task matching sample data category. The computer device can sum or weighted sum the number of invalid sample data in each category in the task matching sample data category to calculate the target invalid total; the remaining invalid total refers to the total number of sample data in the image data set except the task matching sample data category.

[0144] Step 10633, calculate the validity measure value based on the target invalid total, the remaining invalid total and the total number of sample data in the image data set.

[0145] Since the sample data categories other than the task matching sample data categories do not match the application task of the image dataset, they are also considered invalid sample data. Based on this, the computer device can sum the target invalid total number and the remaining data total number, or perform weighted summation, and then calculate the validity measure value in combination with the total number of sample data in the image dataset.

[0146] For example, the effectiveness metric may be calculated according to the following formula:

[0147] .

[0148] in, A is the effectiveness measure; b The number of sample data categories for matching tasks, b is a positive integer; e r Match the sample data category for the task r The total number of invalid sample data in categories; num r Match the sample data category for the task r The total number of sample data of categories; is the remaining invalid total; e is the total number of sample data in the image dataset, e Is a positive integer.

[0149] In summary, the present invention provides a method for screening invalid sample data and a method for evaluating the validity of an image data set. By converting sample data into feature vectors, the feature differences between sample data are intuitively displayed; then, through the spatial distribution of feature vectors, the sample data corresponding to discretely distributed feature vectors are screened as invalid sample data, effectively screening out sample data that does not contribute to the attribute feature extraction of the image data set; finally, through the number of invalid sample data statistics, the validity metric is calculated to achieve an objective and accurate evaluation of the validity of the image data set.

[0150] In addition, the present invention considers the imbalance between the total number of each category in the image data set during the screening and quantitative counting of invalid sample data. The screening basis of invalid sample data is the spatial distribution state of the feature vector, and the categories with a larger total number provide more references for the training of the self-encoding model. The trained encoding model can more accurately extract the latent space representation for the categories with a larger total number, so the invalid sample data screened out from the categories with a larger total number have a higher confidence, and the categories with a larger total number naturally present a relatively clustered state in the spatial distribution of the feature vector relative to the categories with a smaller total number. When screening invalid sample data and / or counting the number of invalid sample data in the image data set, the imbalance between the total numbers of different categories is taken into account, and different screening bases and / or different confidences are set for categories with different total numbers, so as to improve the accuracy of the screening and quantitative counting of invalid sample data, so as to accurately evaluate the validity of the image data set.

[0151] In addition, the present invention can also evaluate the validity of the image dataset in combination with the application task of the image dataset. When facing a specific application task, it is not necessary to use all the sample data in the image dataset. Usually, the sample data in the image dataset that does not match the application task is invalid for the application task. In the process of evaluating the validity of the image dataset, considering the application task of the image dataset helps to achieve targeted evaluation in combination with the characteristics of the application task, and effectively improves the accuracy of the evaluation.

[0152] Based on the same inventive concept, an embodiment of the present invention further provides an image data set validity assessment device. Since the principle of solving the problem by the device is similar to that of the aforementioned image data set validity assessment method, the implementation of the device can refer to the implementation of the image data set validity assessment method, and the repeated parts will not be repeated.

[0153] An embodiment of the present invention provides an image data set validity evaluation device, such as Figure 5 As shown, it includes: a first acquisition module 10, a training module 20, a classification module 30, a processing module 40, a second acquisition module 50 and a statistical module 60.

[0154] The first acquisition module 10 is used to acquire an image data set, where the image data set includes a plurality of sample data and labels of the sample data.

[0155] The training module 20 is used to train the autoencoding model using sample data in the image data set to obtain a trained encoding model; wherein the autoencoding model includes an encoding model and a decoding model.

[0156] The classification module 30 is used to classify the image data set according to the labels of the sample data to obtain at least one category of sample data.

[0157] The processing module 40 is used to process each sample data in the target class sample data in at least one class of sample data using the trained encoding model to obtain a feature vector of each sample data in the target class sample data.

[0158] The second acquisition module 50 is used to acquire invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category.

[0159] The statistical module 60 is used to count invalid sample data in at least one type of sample data to obtain a validity measurement value of the image data set, and the validity measurement value is used to indicate the validity of the image data set.

[0160] Optionally, the second acquisition module 50 includes: a determination unit, used to determine the feature center point of the target class sample data based on the feature vectors of all sample data in the target class sample data; a calculation unit, used to calculate the distance between the feature vector and the feature center point of each sample data in the target class sample data; and a screening unit, used to screen invalid sample data from the target class sample data based on the distance between the feature vector and the feature center point of all sample data in the target class sample data.

[0161] Optionally, the screening unit is used to: sort the distances between the feature vectors of all sample data in the target class sample data and the feature center point to obtain all distance sorts; and sort all distance sorts with the feature center point as a reference. u The distance at the site is determined as the distance threshold h u ; Calculate the distances less than the distance threshold h in all distance sortings u The maximum distance and the distance threshold h u The difference between the adjacent distances is obtained; the distance threshold h is increased by taking the target multiple of the adjacent distance difference as the step size. u , get the distance threshold h u+1 ; Calculate the distance threshold h u+1 The proportion of distance within in all distances w u+1 ; In the proportion w u+1 With w u When the difference between the two is less than or equal to the target difference, the distance threshold h is u+1 Determine as the target distance threshold; determine the sample data corresponding to the distance greater than the target distance threshold in all distance sorting as invalid sample data; in the proportion w u+1 With w u If the difference between them is greater than the target difference, let u=u+1, and sort all the distances by the feature center point as a reference. u The distance at the site is determined as the distance threshold h u The steps are started again.

[0162] Optionally, the above-mentioned screening unit is used to: obtain the total number of sample data in the target class sample data; when the total number of sample data in the target class sample data is greater than or equal to the sample number threshold, determine the sample data corresponding to the distance greater than the first distance threshold among all distances as the invalid sample data; when the total number of sample data in the target class sample data is less than the sample number threshold, determine the sample data corresponding to the distance greater than the second distance threshold among all distances as the invalid sample data; wherein the first distance threshold is less than the second distance threshold.

[0163] Optionally, the statistical module 60 is used to: sum the number of invalid sample data in the at least one category of sample data to obtain the total number of invalid sample data; and calculate the validity measure based on the total number of invalid sample data and the total number of sample data in the image data set.

[0164] Optionally, the above-mentioned statistical module 60 is used to: obtain a first invalid total and a second invalid total, the first invalid total refers to the total number of invalid sample data in the sample data category whose total number of sample data is greater than or equal to the sample number threshold, and the second invalid total refers to the total number of invalid sample data in the sample data category whose total number of sample data is less than the sample number threshold; obtain a first confidence level and a second confidence level, the first confidence level corresponds to the first invalid total number, and the second confidence level corresponds to the second invalid total number; wherein the first confidence level is greater than the second confidence level, and the sum of the first confidence level and the second confidence level is equal to 1; calculate the validity measure based on the first invalid total number, the second invalid total number, the first confidence level, the second confidence level and the total number of sample data in the image data set.

[0165] Optionally, the above-mentioned statistical module 60 is used to: obtain the sample data category that matches the application task of the image data set in the at least one category of sample data, and obtain the task matching sample data category; obtain the target invalid total number and the remaining invalid total number, the target invalid total number refers to the total number of invalid sample data in the task matching sample data category, and the remaining invalid total number refers to the total number of sample data in the image data set except the task matching sample data category; calculate the effectiveness measure based on the target invalid total number, the remaining invalid total number and the total number of sample data in the image data set.

[0166] For more specific working processes of the above modules, please refer to the corresponding contents disclosed in the above embodiments, which will not be repeated here.

[0167] Correspondingly, an embodiment of the present invention further provides a computer device, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the image data set validity evaluation method disclosed in the above embodiment is implemented.

[0168] For more specific processes of the above method, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0169] Furthermore, an embodiment of the present invention also provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the aforementioned disclosed method for evaluating the validity of an image dataset is implemented.

[0170] For more specific processes of the above method, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0171] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment, and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0172] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0173] The present invention has been described in detail above in conjunction with specific implementations and exemplary examples, but these descriptions cannot be understood as limiting the present invention. Those skilled in the art understand that, without departing from the spirit and scope of the present invention, a variety of equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its implementation methods, all of which fall within the scope of the present invention. The scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A method for evaluating the effectiveness of an image dataset, characterized in that: include: Acquire an image data set, where the image data set includes a plurality of sample data and labels of the sample data; Using sample data in the image data set to train an autoencoder model to obtain a trained encoding model; wherein the autoencoder model includes an encoding model and a decoding model; Classifying the image data set according to the labels of the sample data to obtain at least one category of sample data; For target class sample data in the at least one class of sample data, use the trained encoding model to process each sample data in the target class sample data to obtain a feature vector of each sample data in the target class sample data; Based on the feature vectors of all sample data in the target class sample data, obtaining invalid sample data in the target class sample data; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category; Counting invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set, wherein the validity measurement value is used to indicate the validity of the image data set; The acquiring invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data comprises: Determining a feature center point of the target class sample data based on feature vectors of all sample data in the target class sample data; Calculate the distance between the feature vector of each sample data in the target class sample data and the feature center point; Filtering the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point; The filtering of the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point comprises: Sorting the distances between the feature vectors of all sample data in the target class sample data and the feature center point to obtain all distance sortings; Taking the feature center point as reference, sort all distances into w u The distance at the site is determined as the distance threshold h u ; Calculate the distances of all the distances less than the distance threshold h u The maximum distance and the distance threshold h u The difference between them is used to obtain the adjacent distance difference; The distance threshold h is increased by taking the target multiple of the adjacent distance difference as the step size. u , get the distance threshold h u+1 ; Calculate the distance threshold h u+1 The proportion of distance within in all distances w u+1 ; In the proportion w u+1 With w u When the difference between the two is less than or equal to the target difference, the distance threshold h is u+1 Determine as the target distance threshold; determine the sample data corresponding to the distance greater than the target distance threshold in all distance sorting as invalid sample data; In the proportion w u+1 With w u If the difference between them is greater than the target difference, let u = u + 1, and sort all the distances by taking the feature center point as the reference. u The distance at the site is determined as the distance threshold h u The steps are started again.

2. The image dataset validity evaluation method according to claim 1, characterized in that: The counting of invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes: Summing up the number of invalid sample data in the at least one type of sample data to obtain a total number of invalid sample data; The validity metric value is calculated based on the total number of invalid sample data and the total number of sample data in the image data set.

3. The method for evaluating the validity of an image dataset according to claim 1, characterized in that: The counting of invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes: Obtaining a first invalid total number and a second invalid total number, wherein the first invalid total number refers to the total number of invalid sample data in a sample data category whose total number of sample data is greater than or equal to a sample number threshold, and the second invalid total number refers to the total number of invalid sample data in a sample data category whose total number of sample data is less than the sample number threshold; Obtaining a first confidence level and a second confidence level, wherein the first confidence level corresponds to the first total number of invalid items, and the second confidence level corresponds to the second total number of invalid items; wherein the first confidence level is greater than the second confidence level, and the sum of the first confidence level and the second confidence level is equal to 1; The validity measure value is calculated based on the first invalid total number, the second invalid total number, the first confidence level, the second confidence level, and the total number of sample data in the image data set.

4. The method for evaluating the validity of an image dataset according to claim 1, characterized in that: The counting of invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set includes: Acquire a sample data category that matches the application task of the image data set in the at least one category of sample data to obtain a task-matching sample data category; Obtaining a target invalid total and a remaining invalid total, wherein the target invalid total refers to the total number of invalid sample data in the task matching sample data category, and the remaining invalid total refers to the total number of sample data in the image data set except the task matching sample data category; The effectiveness metric value is calculated based on the target invalid total number, the remaining invalid total number and the total number of sample data in the image data set.

5. A device for evaluating the effectiveness of an image dataset, characterized in that: include: A first acquisition module, used to acquire an image data set, wherein the image data set includes a plurality of sample data and labels of the sample data; A training module, used to train the autoencoder model using the sample data in the image data set to obtain a trained encoding model; wherein the autoencoder model includes an encoding model and a decoding model; A classification module, used to classify the image data set according to the label of the sample data to obtain at least one category of sample data; A processing module, configured to process each sample data of the target class sample data in the at least one class of sample data by using the trained encoding model to obtain a feature vector of each sample data of the target class sample data; A second acquisition module is used to acquire invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data; wherein the invalid sample data refers to sample data that does not contribute to the attribute feature extraction of the sample data of the corresponding category; A statistical module, used for counting invalid sample data in the at least one type of sample data to obtain a validity measurement value of the image data set, wherein the validity measurement value is used to indicate the validity of the image data set; The acquiring invalid sample data in the target class sample data based on the feature vectors of all sample data in the target class sample data comprises: Determining a feature center point of the target class sample data based on feature vectors of all sample data in the target class sample data; Calculate the distance between the feature vector of each sample data in the target class sample data and the feature center point; Filtering the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point; The filtering of the invalid sample data from the target class sample data based on the distance between the feature vectors of all sample data in the target class sample data and the feature center point comprises: Sorting the distances between the feature vectors of all sample data in the target class sample data and the feature center point to obtain all distance sortings; Taking the feature center point as reference, sort all distances into w u The distance at the site is determined as the distance threshold h u ; Calculate the distances of all the distances less than the distance threshold h u The maximum distance and the distance threshold h u The difference between them is used to obtain the adjacent distance difference; The distance threshold h is increased by taking the target multiple of the adjacent distance difference as the step size. u , get the distance threshold h u+1 ; Calculate the distance threshold h u+1 The proportion of distance within in all distances w u+1 ; In the proportion w u+1 With w u When the difference between the two is less than or equal to the target difference, the distance threshold h is u+1 Determine as the target distance threshold; determine the sample data corresponding to the distance greater than the target distance threshold in all distance sorting as invalid sample data; In the proportion w u+1 With w u If the difference between them is greater than the target difference, let u = u + 1, and sort all the distances by taking the feature center point as the reference. u The distance at the site is determined as the distance threshold h u The steps are started again.

6. A computer device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the method for evaluating the validity of an image data set as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the method for evaluating the validity of an image dataset as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Data quality evaluation method and system

    CN111612783A

  • Crystal bar quality evaluation method for tumbling mill orientation device

    CN111985823A

  • Image quality evaluation method and device and computer readable storage medium

    CN112614109A

  • Method and device for evaluating image quality and terminal equipment

    CN112614110A

  • VAE-based sample set directivity extension method for evaluating building group structure safety

    CN113642822A