Data set processing method and device, computer equipment and storage medium

By screening the differential samples in the data set and constructing a high-quality data set, the problem of low quality data sets in the existing technology is solved, the performance and diversity of the deep learning model are improved, and the data storage space is reduced.

CN118626873APending Publication Date: 2024-09-10CHINA GRIDCOM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410637644.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the quality of the data sets used for deep learning model training is not high, and there are data imbalances and redundancies, resulting in reduced model performance. They also lack diversity and cannot cover data in different situations and environments.

Method used

By obtaining the source data of different categories of data sets, determine the feature vector and class center point data of each sample data, filter the difference samples based on similarity and difference threshold range, and retain the samples with the greatest difference from the category data set or the closest theoretical sampling point data to build high-quality datasets.

Benefits of technology

It improves the balance and diversity of the data set, reduces the data storage space, and improves the performance and generalization ability of the deep learning model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626873A
    Figure CN118626873A
Patent Text Reader

Abstract

The invention discloses a data set processing method and device, computer equipment and a storage medium. First, a source data set including different categories of data sets is obtained. Then, determining a feature vector corresponding to each piece of sample data in the source data set and class center point data used for representing the data distribution condition of each class data set; and then, for any category of data set, based on the category center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set, determining similar data between the sample data and any category of data set. And finally, according to the similar data, at least one difference sample in the sample data with the maximum difference with the data set of any category and the sample data closest to the theoretical sampling point of the data set of any category is reserved in the data set of any category, so that the data balance is increased under the condition of ensuring the diversity of the sample data, and the data processing efficiency is improved. The data storage space is reduced, and the quality of the data set is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data set processing method, device, computer equipment and storage medium. Background Art

[0002] As the fields of computer science and data science flourish, there is an increasing demand for large-scale, high-quality datasets that are essential for training and optimizing deep learning models.

[0003] In the related art, a data set for training a deep learning model is constructed based on a large amount of collected sample data. However, the quality of the data set in the related art needs to be improved. Summary of the invention

[0004] The embodiments of this specification are intended to solve at least one of the technical problems in the related art to a certain extent. To this end, the embodiments of this specification propose a data set processing method, device, computer equipment and storage medium.

[0005] This specification provides a method for processing a data set, the method comprising:

[0006] Get the source dataset;

[0007] Determine a feature vector corresponding to each sample data in the source data set; wherein the source data set includes different category data sets; each category data set has class center point data for characterizing the data distribution of each category data set;

[0008] For any category of data sets, based on the class center point data of the any category of data sets and the feature vector corresponding to the sample data in the any category of data sets, determine the similar data between the sample data and the any category of data sets;

[0009] Determine a difference sample that meets the difference sample screening condition in any category of data set based on the similar data, and retain the difference sample in any category of data set; wherein the difference sample includes at least one of the sample data with the largest difference from any category of data set and the sample data closest to the theoretical sampling point of any category of data set.

[0010] In one embodiment, the difference sample screening condition includes a preset first difference threshold range, and determining the difference sample satisfying the difference sample screening condition in any category data set according to the similar data includes:

[0011] In any of the data sets of the category, sample data corresponding to similar data within the first difference threshold range is used to form a basic data set;

[0012] The basic data set is screened according to similar data of the sample data in the basic data set, and the difference samples in the basic data set are retained.

[0013] In one embodiment, the difference sample screening condition further includes a preset second difference threshold range, and screening the basic data set according to similar data of sample data in the basic data set to retain the difference samples in the basic data set includes:

[0014] Determine the sample data corresponding to the current lowest similarity data in the basic data set; wherein the sample data corresponding to the current lowest similarity data is used as the current basic sample data;

[0015] The sample data corresponding to the current lowest similarity data is retained as the difference sample, and based on the current basic sample data, the sample data corresponding to the next lowest similarity data is determined in the remaining data sets of the basic data set except the basic sample data;

[0016] If the next lowest similarity data is within the second difference threshold range, the step of retaining the difference samples is repeated until the next lowest similarity data obtained exceeds the second difference threshold range.

[0017] In one embodiment, the determining of similar data between the sample data and any category of data sets based on the class center point data of any category of data sets and the feature vector corresponding to the sample data in any category of data sets includes:

[0018] Determine a maximum offset vector of any category of data set based on the class center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set;

[0019] Determine, according to the maximum offset vector, at least one theoretical sampling point corresponding to any category of data sets;

[0020] The distance between the feature vector corresponding to the sample data in any category of the data set and each theoretical sampling point is used as the similarity data.

[0021] In one embodiment, determining a difference sample satisfying a difference sample screening condition in any category of data sets according to the similar data includes:

[0022] Determine the shortest distance according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in the at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set;

[0023] If there is no sample data at the sampling point to be occupied, using the sample to be occupied as the occupied sample data at the sampling point to be occupied;

[0024] If there is sample data at the sampling point to be occupied, determine the occupied sample data at the sampling point to be occupied from the sample data at the sampling point to be occupied and the sample to be occupied according to the sample data at the sampling point to be occupied and the distances between the sample to be occupied and the sampling point to be occupied respectively.

[0025] In one embodiment, determining the placeholder sample data at each theoretical sampling point according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point includes:

[0026] Determine the shortest distance according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in the at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set;

[0027] If there is no sample data at the sampling point to be occupied, using the sample to be occupied as the occupied sample data at the sampling point to be occupied;

[0028] When the sampling point to be occupied has sample data, the placeholder sample data at the sampling point to be occupied is determined from the sample data at the sampling point to be occupied and the placeholder sample according to the similarity between the sample data at the sampling point to be occupied and the placeholder sample.

[0029] In one embodiment, the method further comprises:

[0030] Get new sample data;

[0031] If there is a target category data set with a label consistent with the new sample data in the different category data sets, and the similar data between the new sample data and each sample data in the target category data set respectively meets the difference sample screening condition, retain the new sample data;

[0032] If the label corresponding to the new sample data is inconsistent with the label of each category data set, the new sample data is updated to the source data set, and the class center point data of each category data set is re-determined based on the updated source data set.

[0033] The present specification provides a data set processing device, the device comprising:

[0034] A source data set acquisition module, used to acquire a source data set;

[0035] A feature vector determination module, used to determine the feature vector corresponding to each sample data in the source data set; wherein the source data set includes different category data sets; each category data set has class center point data for characterizing the data distribution of each category data set;

[0036] A similar data determination module is used to determine, for any category of data set, similar data between the sample data and the any category of data set based on the class center point data of the any category of data set and the feature vector corresponding to the sample data in the any category of data set;

[0037] A difference sample retention module is used to determine the difference samples that meet the difference sample screening conditions in any category of data sets based on the similar data, and retain the difference samples in any category of data sets; wherein the difference samples include at least one of the sample data with the greatest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets.

[0038] The present invention provides a computer device, which includes: a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors to enable the one or more processors to implement the steps of the method described in any one of the above-mentioned embodiments.

[0039] The present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.

[0040] The present invention provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of a computer device, the computer device is enabled to execute the steps of the method described in any one of the above embodiments.

[0041] An embodiment of the present specification provides a chip, including a storage unit and a processing unit, wherein the storage unit stores a computer program, and the processing unit implements the steps of the method described in any of the above embodiments when executing the computer program.

[0042] In the above-mentioned implementation of the specification, first, a source data set including different categories of data sets is obtained. Next, the feature vector corresponding to each sample data in the source data set and the class center point data used to characterize the data distribution of each category of data sets are determined. Then, for any category of data sets, based on the class center point data of any category of data sets and the feature vector corresponding to the sample data in any category of data sets, the similar data between the sample data and any category of data sets are determined. Finally, according to the similar data, at least one difference sample of the sample data with the largest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets is retained in any category of data sets. By retaining the difference samples in any category of data sets through similar data, while ensuring the diversity of sample data, the sample data with high similarity but low information value are moderately deduplicated, which increases the balance of the data set and reduces the space for data storage, thereby improving the quality of the data set, and then improving the performance of the deep learning model. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of data set initialization and data screening provided according to the scenario example of this specification;

[0044] Figure 2 A flowchart of a data set processing method provided in an embodiment of this specification;

[0045] Figure 3 A schematic diagram of a process for determining a difference sample that meets a difference sample screening condition in any category of data sets provided in an embodiment of this specification;

[0046] Figure 4 A schematic diagram of a process for retaining difference samples in a basic data set provided in an embodiment of this specification;

[0047] Figure 5 A schematic diagram of a process for determining similar data between sample data and any category of data sets provided in an embodiment of this specification;

[0048] Figure 6 A schematic diagram of a process for determining the occupied sample data at the sampling point to be occupied provided in an embodiment of this specification;

[0049] Figure 7 A schematic diagram of a process for determining the occupied sample data at each theoretical sampling point provided in an embodiment of this specification;

[0050] Figure 8 A flowchart of whether to retain new sample data provided in the implementation mode of this specification;

[0051] Fig. 9 A schematic diagram of a data set processing device provided in an embodiment of this specification;

[0052] Fig.10 An internal structural diagram of a computer device provided for an embodiment of this specification. DETAILED DESCRIPTION

[0053] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0054] In today's information age, data is regarded as a golden resource in the fields of deep learning and artificial intelligence. With the booming development of computer science and data science, there is a growing demand for large-scale, high-quality datasets, which are essential for training and optimizing deep learning models. Deep learning models make decisions and predictions by learning the characteristics of input data, so the performance and generalization ability of deep learning models largely depend on the quality and diversity of the datasets used. In other words, the performance of deep learning models depends on the data provided. Low-quality, unbalanced, or insufficient data may lead to inaccuracy and instability of the model. Therefore, building high-quality datasets is essential for effectively training and evaluating deep learning models.

[0055] In the related art, a data set for training a deep learning model is constructed based on a large amount of collected sample data.

[0056] However, the data sets in related technologies may be biased towards a specific group or situation, causing some groups to be underestimated or ignored, while other groups are overestimated, resulting in inconsistent data quality and making the model biased.

[0057] In the data sets of related technologies, in general, normal data is relatively easy to collect, and there is a large amount of similar data. This situation will lead to a large amount of redundant data in the training data set, which will not only waste storage space, but also cause data imbalance, thereby reducing the performance of the model.

[0058] The data sets in related technologies may lack diversity and fail to cover data in different scenarios and environments, resulting in a decrease in the generalization ability of the model.

[0059] In related technologies, the distribution and characteristics of a dataset may change over time. Therefore, the temporal evolution of the data needs to be considered to ensure the effectiveness of the model.

[0060] Based on the above analysis, the embodiment of the present specification provides a data set processing method. First, a source data set including different categories of data sets is obtained. Next, the feature vector corresponding to each sample data in the source data set and the class center point data used to characterize the data distribution of each category of data sets are determined. Then, for any category of data sets, based on the class center point data of any category of data sets and the feature vector corresponding to the sample data in any category of data sets, the similar data between the sample data and any category of data sets are determined. Finally, according to the similar data, at least one difference sample of the sample data with the largest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets is retained in any category of data sets. By retaining the difference samples in any category of data sets through similar data, while ensuring the diversity of sample data, the sample data with high similarity but low information value are moderately deduplicated, which increases the balance of the data set and reduces the space for data storage, thereby improving the quality of the data set, and then improving the performance of the deep learning model.

[0061] The data set processing method provided in the embodiments of this specification may include data set initialization and data screening process. Figure 1 , obtain the source data set Datas, wherein each sample data in the source data set Datas corresponds to its own label labels. Input each sample data in the source data set Datas into the feature extractor for feature extraction, and determine the feature vector corresponding to each sample data in the source data set Datas. Through the NCM classifier, using the label labels corresponding to each sample data in the source data set Datas and the feature vector corresponding to each sample data in the source data set Datas, determine the class center point data used to characterize the data distribution of each category data set. Then, based on the class center point data of each category data set data, determine the similar data between the sample data in the source data set Datas and any category data set. Perform data screening on the source data set Datas according to the similar data, determine the difference samples that meet the difference sample screening conditions, and use the difference samples to form a new data set.

[0062] This specification provides a method for processing a data set. Figure 2 , the method may include the following steps:

[0063] S210: Obtain a source data set.

[0064] S220: Determine the feature vector corresponding to each sample data in the source data set.

[0065] The source data set includes different category data sets. Each category data set has class center point data for characterizing the data distribution of each category data set. The source data set can be a collection of image data collected in different application scenarios. For example, it can be a circuit board image obtained by photographing a circuit board. Different category data sets can be obtained by dividing according to different circuit board defects.

[0066] Specifically, select appropriate data sources (such as public data sets, experimental collection, database queries, API calls, etc.) according to the needs and goals of the research or project. After determining the data source, it is necessary to obtain sample data from the selected data source to construct a source data set. Next, according to the label of the sample data, the source data set is classified and divided into different category data sets. In order to better represent and understand the sample data, feature extraction is performed on each sample data in the source data set to determine the feature vector corresponding to each sample data in the source data set. These feature vectors will provide effective input for subsequent data set processing. On the basis of obtaining the feature vector corresponding to each sample data in the source data set, calculations are performed based on the feature vectors corresponding to the sample data included in each category data set (such as average calculation, K-means clustering), and class center point data that characterizes the data distribution of each category data set is obtained. In high-dimensional space, the sample data of each category will revolve around the class center point data of the category data set. Among them, you can use a general pre-trained model (such as VIT, BERT, BLIP, CLIP, Resnet, Inception, etc.) or a specific pre-trained model that is pre-trained for specific application scenario data, extract features from each sample data in the source data set, and determine the feature vector corresponding to each sample data in the source data set.

[0067] In some embodiments, the source data set may be obtained based on an initial data set that has been manually confirmed. The initial data set needs to be manually controlled or its quality needs to be understood to a certain extent in order to determine the threshold selection required in the data set processing process.

[0068] For example, taking a data set classified as A as an example, the data set includes sample data D1, D2, D3, D4, and D5. Sample data D1 is passed through a feature extractor to obtain a feature vector V1; sample data D2 is passed through a feature extractor to obtain a feature vector V2; sample data D3 is passed through a feature extractor to obtain a feature vector V3; sample data D4 is passed through a feature extractor to obtain a feature vector V4; sample data D5 is passed through a feature extractor to obtain a feature vector V5. The data set classified as A is passed through a feature extractor and an NCM classifier to determine the class center point data A1 corresponding to the data set classified as A.

[0069] S230 . For any category of data set, based on the class center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set, determine the similar data between the sample data and any category of data set.

[0070] The similarity data may be data used to measure the degree of difference between sample data. For example, the similarity data may be the similarity between the feature vector corresponding to the sample data in any category of data set and the class center point data of any category of data set, or the distance between the feature vector corresponding to the sample data in any category of data set and the theoretical sampling point determined based on the class center point data of any category of data set.

[0071] Specifically, in any category of data sets, there may be similar or repeated sample data, which may increase the storage space of the data set and reduce the training efficiency. Therefore, for any category of data sets, the class center point of any category of data sets and the feature vector corresponding to the sample data are used to determine the similar data between the sample data and any category of data sets, so as to process the data sets later.

[0072] S240, determining difference samples that meet the difference sample screening condition in any category of data sets according to similar data, and retaining the difference samples in any category of data sets.

[0073] The difference sample includes at least one of the sample data with the largest difference from any category of data set and the sample data closest to the theoretical sampling point of any category of data set. Difference sample screening condition.

[0074] Specifically, in an actual data set, by identifying and removing sample data corresponding to similar data that meets the difference sample screening conditions, the data set can be effectively deduplicated, the balance and diversity of the data set can be improved, and the deep learning model can be helped to better generalize and learn the characteristics of the data. In some embodiments, for any category of data set, the sample data with the largest difference in any category of data set is determined as a difference sample based on similar data. In other embodiments, for any category of data set, at least one sample data closest to the theoretical sampling point is selected as a difference sample based on similar data. The selected difference samples that meet the difference sample screening conditions are retained to ensure that the selected difference samples are representative and diverse.

[0075] In the above implementation, first, a source data set including different categories of data sets is obtained. Next, the feature vector corresponding to each sample data in the source data set and the class center point data used to characterize the data distribution of each category of data sets are determined. Then, for any category of data sets, based on the class center point data of any category of data sets and the feature vector corresponding to the sample data in any category of data sets, the similar data between the sample data and any category of data sets are determined. Finally, according to the similar data, at least one difference sample of the sample data with the largest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets is retained in any category of data sets. By retaining the difference samples in any category of data sets through similar data, while ensuring the diversity of sample data, the sample data with high similarity but low information value are moderately deduplicated, which increases the balance of the data set and reduces the space for data storage, thereby improving the quality of the data set, and then improving the performance of the deep learning model.

[0076] In some embodiments, see Figure 3 The difference sample screening condition includes a preset first difference threshold range, and determining the difference samples satisfying the difference sample screening condition in any category data set according to the similar data may include the following steps:

[0077] S310: In any category of data sets, sample data corresponding to similar data within a first difference threshold range is used to form a basic data set.

[0078] The first difference threshold range may be a threshold range used to measure the lower similarity between sample data and class center point data in a certain metric or similarity calculation. For example, the first difference threshold range may be negative 0.6 to positive 0.6, or negative 0.7 to positive 0.7.

[0079] Specifically, the first difference threshold is set according to actual conditions and experience to determine the boundary of similarity. For any category data set, the similarity between the feature vector of the sample data in any category data set and the class center point data of any category data set is calculated using a similarity calculation method (such as cosine similarity, dot product, Euclidean distance, etc.), and the similarity between the feature vector of the sample data in any category data set and the class center point data of any category data set is obtained. If the similarity between the feature vector of a certain sample data in any category data set and the class center point data of any category data set is within the first difference threshold range, it is considered that the similarity between the sample data and the class center point data of the category is low, and the sample data is retained. If the similarity between the feature vector of a certain sample data in any category data set and the class center point data of any category data set is not within the first difference threshold range, it is considered that the sample data and the class center point data of the category are highly similar, and the sample data is deleted. By traversing each sample data in any category data set, the sample data corresponding to the similar data within the first difference threshold range is retained to form a basic data set.

[0080] Exemplarily, the first difference threshold range can be set to [-threshold1, threshold1]. Calculate the cosine similarity between the feature vector V1 and the class center point data A1 to obtain similar data S1; calculate the cosine similarity between the feature vector V2 and the class center point data A1 to obtain similar data S2; calculate the cosine similarity between the feature vector V3 and the class center point data A1 to obtain similar data S3; calculate the cosine similarity between the feature vector V4 and the class center point data A1 to obtain similar data S4; calculate the cosine similarity between the feature vector V5 and the class center point data A1 to obtain similar data S5. If similar data S1∈[-threshold1, threshold1], similar data S2∈[-threshold1, threshold1], similar data S3∈[-threshold1, threshold1], similar data Similar data S5∈[-threshold1, threshold1], then delete sample data D4, and get a basic data set including sample data D1, D2, D3, and D5. It should be noted that if the feature vector is n-dimensional, it can be expressed as A=[a1, a2, ..., an]; the class center point data is n-dimensional, it can be expressed as B=[b1, b2, ..., bn]. The cosine similarity calculation formula between the feature vector and the class center point data is as follows:

[0081]

[0082] Among them, sim_cos(A,B) represents the similarity data between the feature vector A and the class center point data B.

[0083] S320: Screen the basic data set according to similar data of the sample data in the basic data set, and retain the difference samples in the basic data set.

[0084] Specifically, in the basic data set, some sample data have similar features, which may lead to excessive bias towards certain types of samples during model training or data analysis. In order to determine the diversity and representativeness of the retained difference samples in the future, the sample data in the basic data set is screened again according to actual needs using the sample data in the basic data set to determine the sample data that needs to be retained in the basic data set and use the retained sample data as difference samples. The quality of the data set is improved by retaining difference samples.

[0085] In the above implementation, in any category of data sets, sample data corresponding to similar data within the first difference threshold range is used to form a basic data set, and the basic data set is screened according to similar data of the sample data in the basic data set, and the difference samples in the basic data set are retained, thereby improving the difference and diversity between the sample data in the data set and improving the quality of the data set.

[0086] In some embodiments, see Figure 4 The difference sample screening condition also includes a preset second difference threshold range. The basic data set is screened according to similar data of the sample data in the basic data set, and the difference samples in the basic data set are retained, which may include the following steps:

[0087] S410: Determine sample data corresponding to the current lowest similarity data in the basic data set.

[0088] Among them, the sample data corresponding to the current lowest similarity data is used as the current basic sample data.

[0089] Specifically, in the basic data set, some sample data have similar features, which may lead to excessive bias towards certain types of samples during model training or data analysis. In order to determine the diversity and representativeness of the retained difference samples later, the sample data with the lowest similarity to the class center point data is selected from the basic data set as the current basic sample data. This ensures that the selected sample data has higher differences and diversity, which helps to improve the representativeness of the basic data set.

[0090] Exemplarily, the basic data set includes sample data D1, D2, D3, D5. Compare the similar data between the sample data D1, D2, D3, D5 and the class center point data A1. If S2 < S1 < S5 < S3, use the sample data D2 corresponding to the current lowest similar data S2 as the current basic sample data.

[0091] S420. Retain the sample data corresponding to the current lowest similar data as a differential sample, and determine the sample data corresponding to the next lowest similar data in the remaining data set of the basic data set excluding the basic sample data based on the current basic sample data.

[0092] Specifically, because it is necessary to screen the basic data set, after determining the sample data corresponding to the current lowest similar data, retain the sample data corresponding to the current lowest similar data and use it as a differential sample. Then, calculate the similar data between the current basic sample data and the sample data in the remaining data set of the basic data set excluding the basic sample data, and then select the sample data corresponding to the lowest similar data within the second difference threshold range of the similar data between the current basic sample data and the remaining data set as the sample data corresponding to the next lowest similar data.

[0093] Exemplarily, the second difference threshold range can be set to [-threshold2, threshold2]. Retain the sample data D2 corresponding to the current lowest similar data and use it as a differential sample. Calculate the cosine similarity between the sample data D1, D3, D5 in the remaining data set of the basic data set excluding the basic sample data and the sample data D2, and obtain the similar data S6 between the feature vector V1 and the feature vector V2; the similar data S7 between the feature vector V3 and the feature vector V2; the similar data S8 between the feature vector V5 and the feature vector V2. If the similar data S6 ∈ [-threshold2, threshold2], the similar data The similar data S8 ∈ [-threshold2, threshold2] and S8 < S6, use the similar data S8 as the next lowest similar data, and the sample data D5 corresponding to the similar data S8 is the sample data corresponding to the next lowest similar data. Since the similar data S7 is not within the second difference threshold range [-threshold2, threshold2], delete the sample data D3 corresponding to the similar data S7.

[0094] S430. If the next lowest similar data is within the second difference threshold range, repeat the above steps of retaining the differential sample until the next lowest similar data obtained exceeds the second difference threshold range.

[0095] The second difference threshold range can be adjusted according to demand to ensure that the similarity between the newly selected sample and the current basic sample data is not too high, thereby ensuring the diversity of the difference samples.

[0096] Specifically, if the next lowest similarity data is within the second difference threshold range, indicating that there is sample data with a greater similarity to the current basic sample data, the next lowest similarity data is used as the current lowest similarity data, and the sample data corresponding to the next lowest similarity data is used as the current basic sample data. The sample data corresponding to the current lowest similarity data is retained as a difference sample, and then the similarity data between the current basic sample data and the sample data in the remaining data sets of the basic data set excluding the basic sample data is calculated, and then the sample data corresponding to the lowest similarity data within the second difference threshold range with the similar data of the current basic sample data is selected from the remaining data sets as the sample data corresponding to the next lowest similarity data. Repeat the above process until the next lowest similarity data exceeds the second difference threshold range.

[0097] Exemplarily, if the next lowest similarity data S8 is within the second difference threshold range, the sample data D5 corresponding to the next lowest similarity data is retained as a difference sample and used as the current basic sample data. The cosine similarity between the sample data D1 and the sample data D5 in the remaining data sets except the basic sample data of the basic data set is calculated to obtain the similarity data S9 between the feature vector V1 and the feature vector V5. Sample data D1 is removed. Therefore, the difference samples retained in the data set classified as A include sample data D2 and D5.

[0098] In the above implementation, sample data corresponding to the current lowest similarity data is determined in the basic data set, the sample data corresponding to the current lowest similarity data is retained as a difference sample, and sample data corresponding to the next lowest similarity data is determined in the remaining data sets of the basic data set excluding the basic sample data based on the current basic sample data; if the next lowest similarity data is within the second difference threshold range, the above steps of retaining the difference sample are repeated until the next lowest similarity data obtained exceeds the second difference threshold range; by screening within the second difference threshold range, the difference and diversity between the sample data in the data set are improved, thereby improving the quality of the data set.

[0099] In some embodiments, see Figure 5 , based on the class center point data of any category data set and the feature vector corresponding to the sample data in any category data set, determining the similar data between the sample data and any category data set may include the following steps:

[0100] S510: Determine the maximum offset vector of any category of data set based on the class center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set.

[0101] The maximum offset vector may be a vector consisting of the maximum deviation values ​​found in the deviation vectors in each dimension.

[0102] Specifically, the deviation vector between the feature vector corresponding to each sample data in any category of data set and the class center point data of any category of data set is calculated, and then the deviation value corresponding to the deviation vector between the feature vector corresponding to each sample data in any category of data set and the class center point data of any category of data set in each dimension is compared to determine the maximum deviation value corresponding to each dimension. The maximum deviation value corresponding to each dimension constitutes the maximum deviation vector of any category of data set.

[0103] For example, take a three-dimensional data set classified as A as an example, the data set classified as A includes sample data D1 and D2. Assume that the class center point data A1 corresponding to the data set classified as A is [0, 0, 0], the feature vector V1 corresponding to the sample data D1 is [1, 1, 3], and the feature vector V2 corresponding to the sample data D2 is [3, -2, 1]. Calculate the deviation vector [1, 1, 3] between the feature vector V1 and the class center point data A1, and the deviation vector [3, 2, 1] between the vector feature V2 and the class center point data A1. Compare and calculate the deviation vector [1, 1, 3] between the feature vector V1 and the class center point data A1 and the deviation vector [3, 2, 1] between the vector feature V2 and the class center point data A1, and determine that the corresponding maximum deviation values ​​in each dimension are 3, 2, 3 respectively, and the maximum deviation vector constituting the data set classified as A is [3, 2, 3].

[0104] S520: Determine at least one theoretical sampling point corresponding to any category of data sets according to the maximum offset vector.

[0105] The theoretical sampling points may refer to idealized sampling points determined in a specific data space according to a predetermined sampling strategy, usually to evenly cover the characteristic distribution of data in the multidimensional data space.

[0106] Specifically, by defining the number of sampling points required for each dimension in advance (for example, assuming that the number of sampling points in each dimension is consistent), the sampling points on each dimension are determined according to the maximum deviation value corresponding to the dimension in the maximum offset vector of any category of data sets and the number of sampling points required in advance for the dimension. Based on the above method, the sampling points on each dimension are determined, and then the sampling points on each dimension are combined to obtain at least one intersection point of the multidimensional grid as the theoretical sampling point corresponding to any category of data sets.

[0107] For example, since the number of sampling points required for each dimension is defined in advance as 3. Then in the X dimension: the maximum deviation value 3 corresponding to the X dimension is divided by the difference between the number of sampling points 3 and 1, that is, 3 / (3-1) to obtain a step length of 1.5, and then uniform sampling is performed from 0 to 3, and the three sampling points in the X dimension are 0, 1.5, and 3 respectively. Then in the Y dimension: the maximum deviation value 2 corresponding to the Y dimension is divided by the difference between the number of sampling points 3 and 1, that is, 2 / (3-1) to obtain a step length of 2, and then uniform sampling is performed from -2 to 0, and the three sampling points in the Y dimension are -2, -1, and 0 respectively. Then in the Z dimension: the maximum deviation value 3 corresponding to the Z dimension is divided by the difference between the number of sampling points 3 and 1, that is, 3 / (3-1) to obtain a step length of 1.5, and then uniform sampling is performed from 0 to 3, and the three sampling points in the Z dimension are 0, 1.5, and 3 respectively. All sampling points are combined together to obtain 27 theoretical sampling points, where the 27 theoretical sampling points may include [0, -2, 0], [0, -1, 1.5], and so on.

[0108] In some implementations, each dimension may be uniformly sampled to reduce the dimension of the feature space, reduce computational complexity, and retain the overall characteristics of the data to some extent.

[0109] In other embodiments, the sampling density can be adjusted according to the density distribution in the feature space, so that the sampling points are denser in areas with higher density and relatively sparse in areas with lower density. In order to more effectively cover the entire feature space and better capture the changes and distribution of data. For example, in a multidimensional data space, in order to avoid the situation where the distances of the sampling points in the outer layer differ too much, a method based on equal spatial coverage can be used for uneven sampling. Under this method, the closer the distribution of the sampling points is to the center point, the larger the distance intervals between the sampling points; and the farther the sampling points are from the center point, the closer the distance intervals between the sampling points are.

[0110] S530: Take the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point as similarity data.

[0111] Specifically, the distance between the feature vector corresponding to each sample data in any category of data set and each theoretical sampling point is calculated using a distance measurement method (such as Manhattan distance and Euclidean distance) to measure the proximity of each sample data to the theoretical sampling point in the feature space. Taking the distance between each sample data and each theoretical sampling point as similar data helps to better understand the relationship between each sample data and the theoretical sampling point, thereby processing the data more accurately.

[0112] In the above implementation, based on the class center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set, the maximum offset vector of any category of data set is determined, and based on the maximum offset vector, at least one theoretical sampling point corresponding to any category of data set is determined, and based on the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point, the placeholder sample data on each theoretical sampling point is determined as a difference sample to improve the quality of the data set.

[0113] In some embodiments, see Figure 6 , determining the difference samples that meet the difference sample screening conditions in any category data set based on similar data may include the following steps:

[0114] S610. Determine the shortest distance based on the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set.

[0115] The sampling point to be occupied may be a virtual point used as a reference point to determine the position of the sample data in the feature space when calculating the distance. The sample to be occupied may be the actual sample data point closest to the determined sampling point to be occupied in the feature space.

[0116] Specifically, a distance measurement method (such as Manhattan distance and Euclidean distance) is used to calculate the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point. For each sample data, the distance between it and each theoretical sampling point is compared, and then the shortest distance is determined and the theoretical sampling point corresponding to the shortest distance is used as the sampling point to be occupied and the sample data is marked as the sample to be occupied. Since the theoretical sampling points evenly cover the characteristic distribution of the data in the multidimensional data space, the samples to be occupied reflect the sample distribution in the data set. Therefore, these samples to be occupied are used as representatives of difference samples to help reveal the characteristic difference in the data set.

[0117] Exemplarily, the distance between the feature vector V1 and each theoretical sampling point is calculated, and the size of each distance is compared to determine that the theoretical sampling point with the shortest distance to the feature vector V1 is [0, -1, 1.5], and it is used as the sampling point to be occupied. The sample data D1 corresponding to the feature vector V1 is used as the sample to be occupied.

[0118] S620: If there is no sample data at the sampling point to be occupied, use the sample to be occupied as the placeholder sample data at the sampling point to be occupied.

[0119] S630. If there is sample data at the sampling point to be occupied, determine the occupied sample data at the sampling point to be occupied from the sample data at the sampling point to be occupied and the sample to be occupied according to the distances between the sample data at the sampling point to be occupied and the sample to be occupied and the sampling point to be occupied respectively.

[0120] Specifically, if there is no sample data at the sampling point to be occupied, directly use the sample to be occupied as the occupied sample data at the sampling point to be occupied. If there is sample data at the sampling point to be occupied, use a distance metric method (such as Manhattan distance, Euclidean distance) to calculate the first distance between the sample data at the sampling point to be occupied and the sampling point to be occupied, and the second distance between the sample to be occupied and the sampling point to be occupied. Compare the magnitudes of the first distance and the second distance. If the first distance is greater than the second distance, replace the sample data at the sampling point to be occupied with the sample to be occupied as the occupied sample data at the sampling point to be occupied. If the first distance is less than the second distance, the sample data at the sampling point to be occupied continues to be used as the occupied sample data at the sampling point to be occupied.

[0121] Exemplarily, if there is no sample data at the sampling point to be occupied [0, -1, 1.5], the sample to be occupied D1 is used as the occupied sample data at the sampling point to be occupied [0, -1, 1.5].

[0122] If there is sample data at the sampling point to be occupied [0, -1, 1.5], compare the distance d1 between the sample data at the sampling point to be occupied and the sampling point to be occupied [0, -1, 1.5] and the distance d2 between the sample to be occupied D1 and the sampling point to be occupied [0, -1, 1.5]. If d1 < d2, the sample data at the sampling point to be occupied continues to be used as the occupied sample data at the sampling point to be occupied [0, -1, 1.5]; if d1 > d2, replace the sample data at the sampling point to be occupied with the sample to be occupied D1 as the occupied sample data at the sampling point to be occupied [0, -1, 1.5].

[0123] In the above embodiments, according to the distances between the feature vectors corresponding to the sample data in any category dataset and each theoretical sampling point, determine the shortest distance; the shortest distance corresponds to the sampling point to be occupied among at least one theoretical sampling point and corresponds to the sample to be occupied in any category dataset. If there is no sample data at the sampling point to be occupied, use the sample to be occupied as the occupied sample data at the sampling point to be occupied. If there is sample data at the sampling point to be occupied, determine the occupied sample data at the sampling point to be occupied from the sample data at the sampling point to be occupied and the sample to be occupied according to the distances between the sample data at the sampling point to be occupied and the sample to be occupied and the sampling point to be occupied respectively, so as to determine the differential samples and improve the quality of the dataset.

[0124] In some embodiments, please refer to Figure 7, according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point, determining the occupied sample data at each theoretical sampling point may include the following steps:

[0125] S710. Determine the shortest distance based on the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set.

[0126] Specifically, a distance measurement method (such as Manhattan distance and Euclidean distance) is used to calculate the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point. For each sample data, the distance between it and each theoretical sampling point is compared, and then the shortest distance is determined and whether the shortest distance is within the threshold. If the shortest distance is not within the threshold, there are no sampling points to be occupied and samples to be occupied. If the shortest distance is within the threshold, the theoretical sampling point corresponding to the shortest distance is used as the sampling point to be occupied and the sample data is marked as a sample to be occupied. Among them, the threshold is determined according to the actual situation and needs, so as to determine a diverse data set.

[0127] Exemplarily, the distance between the feature vector V1 and each theoretical sampling point is calculated, and the size of each distance is compared. The theoretical sampling point with the shortest distance to the feature vector V1 is determined to be [0, -1, 1.5]. The shortest distance is within the threshold, and the theoretical sampling point [0, -1, 1.5] is used as the sampling point to be occupied. The sample data D1 corresponding to the feature vector V1 is used as the sample to be occupied.

[0128] S720: If there is no sample data at the sampling point to be occupied, use the sample to be occupied as the placeholder sample data at the sampling point to be occupied.

[0129] S730: When there is sample data at the sampling point to be occupied, determine the placeholder sample data at the sampling point to be occupied from the sample data at the sampling point to be occupied and the placeholder samples to be occupied according to the similarity between the sample data at the sampling point to be occupied and the placeholder samples to be occupied.

[0130] Specifically, if there is no sample data at the sampling point to be occupied, the sample to be occupied is directly used as the placeholder sample data at the sampling point to be occupied. If there is sample data at the sampling point to be occupied, the similarity between the sample data at the sampling point to be occupied and the sample to be occupied is calculated using a similarity calculation method (such as cosine similarity, dot product, Euclidean distance, etc.). If the similarity between the sample data at the sampling point to be occupied and the sample to be occupied is within the threshold range, it means that the sample data at the sampling point to be occupied and the sample to be occupied are similar, and the sample data at the sampling point to be occupied continues to be the placeholder sample data at the sampling point to be occupied. If the similarity between the sample data at the sampling point to be occupied and the sample to be occupied is not within the threshold range, it means that the sample data at the sampling point to be occupied and the sample to be occupied are not similar, and the sample data at the sampling point to be occupied and the sample to be occupied are used together as the placeholder sample data at the sampling point to be occupied.

[0131] Exemplarily, if there is no sample data at the sampling point [0, -1, 1.5] to be occupied, the sample D1 to be occupied is used as the placeholder sample data at the sampling point [0, -1, 1.5] to be occupied.

[0132] If there is sample data at the sampling point to be occupied [0, -1, 1.5], the similarity S0 between the sample data at the sampling point to be occupied and the sample D1 to be occupied is calculated. If the similarity S0 is within the threshold range, it means that the sample data at the sampling point to be occupied is similar to the sample D1 to be occupied, and the sample data at the sampling point to be occupied continues to be the occupied sample data at the sampling point to be occupied. If the similarity S0 is not within the threshold range, it means that the sample data at the sampling point to be occupied is not similar to the sample D1 to be occupied, and the sample data at the sampling point to be occupied and the sample D1 to be occupied are used together as the occupied sample data at the sampling point to be occupied.

[0133] In the above implementation, the shortest distance is determined based on the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to the sampling point to be occupied in at least one theoretical sampling point, and corresponds to the sample to be occupied in any category of data set. If there is no sample data at the sampling point to be occupied, the sample to be occupied is used as the placeholder sample data at the sampling point to be occupied. When there is sample data at the sampling point to be occupied, the placeholder sample data at the sampling point to be occupied is determined from the sample data at the sampling point to be occupied and the samples to be occupied based on the similarity between the sample data at the sampling point to be occupied and the sample to be occupied, so as to determine the difference sample and improve the quality of the data set.

[0134] In some embodiments, see Figure 8 , the method may further include the following steps:

[0135] S810: Obtain new sample data.

[0136] S820: If there is a target category data set with a label consistent with the new sample data in the different category data sets, and the similar data between the new sample data and each sample data in the target category data set respectively meets the difference sample screening conditions, the new sample data is retained.

[0137] The difference sample screening condition may be a set of standards or rules set when comparing the similarity between the new sample data and each sample data in the target category data set. For example, the difference sample screening condition may be a similarity threshold, a distance threshold, and the like.

[0138] Specifically, since the distribution and characteristics of the data set may change over time, it is necessary to consider the time evolution of the data to update or expand the data set. Therefore, in order to enrich the data set, it is first necessary to obtain new sample data, which is annotated with corresponding labels. Next, the labels corresponding to the new sample data are matched. If there is a category data set with the same label as the new sample data in the different category data sets, it is used as the target category data set. For the target category data set, the similarity calculation method (such as cosine similarity, dot product, Euclidean distance, etc.) is used to calculate the similarity between the new sample data and each sample data in the target category data set. Then, the similarity between the new sample data and each sample data in the target category data set is checked. If the similarity between the new sample data and each sample data in the target category data set meets the difference sample screening condition, it is ensured that the new sample data has sufficient difference to effectively enrich and update the data set, rather than simply repeating or overfitting the existing data. Therefore, the new sample data is retained.

[0139] Exemplarily, the difference sample screening condition may be within the first difference threshold range. New sample data D8 classified as A is obtained. There is a target category data set in the different category data sets that is consistent with the label classification A of the new sample data, and the similarity data between the new sample data D8 and each sample data in the target category data set is calculated. If the similarity data between the new sample data D8 and each sample data in the target category data set is respectively within the first difference threshold range, the difference sample screening condition is satisfied, and the new sample data D8 is retained.

[0140] In some embodiments, after retaining the new sample data, the class center point data of the target category data set corresponding to the new sample data is updated through the NCM classifier based on the new sample data. During the updating process, a weight update strategy can be adopted, that is, the weight of the original class center point data of the target category data set is set to the number of feature vectors used to calculate the center point data, and the newly added new sample data is given the number of feature vectors used to calculate the new center point data as the weight.

[0141] S830: If the label corresponding to the new sample data is inconsistent with the label of each category data set, update the new sample data to the source data set, and re-determine the class center point data of each category data set based on the updated source data set.

[0142] Specifically, the labels corresponding to the new sample data are matched. If there is no category dataset with the same label as the new sample data in different category datasets, it is considered that the label of the new sample data belongs to a new category. Therefore, the new sample data needs to be retained to enrich the dataset and capture the characteristics of the new category. Subsequently, based on the updated source dataset, the class center point data of each category dataset is re-determined. In this way, it is ensured that the class center point data of each category dataset in the source dataset can more accurately reflect the distribution of the re-sample data of each category dataset.

[0143] In the above implementation, new sample data is obtained. If there is a target category data set with the same label as the new sample data in different category data sets, and the similar data between the new sample data and each sample data in the target category data set respectively meets the difference sample screening conditions, the new sample data is retained. If the label corresponding to the new sample data is inconsistent with the label of each category data set, the new sample data is updated to the source data set, and the class center point data of each category data set is re-determined based on the updated source data set, and the quality of the data set is improved by whether to retain the new sample data. By updating the source data set with new sample data that is inconsistent with the label of each category data set, the data set is enriched and the diversity of the data set is improved.

[0144] This specification embodiment provides a data set processing device 900, see Fig. 9 The data set processing device 900 includes: a source data set acquisition module 910, a feature vector determination module 920, a similar data determination module 930, and a difference sample retention module 940.

[0145] A source data set acquisition module 910 is used to acquire a source data set;

[0146] The feature vector determination module 920 is used to determine the feature vector corresponding to each sample data in the source data set; wherein the source data set includes different category data sets; each category data set has class center point data for characterizing the data distribution of each category data set;

[0147] A similar data determination module 930 is used to determine, for any category of data set, similar data between the sample data and the any category of data set based on the class center point data of the any category of data set and the feature vector corresponding to the sample data in the any category of data set;

[0148] The difference sample retention module 940 is used to determine the difference samples that meet the difference sample screening conditions in any category of data sets based on the similar data, and retain the difference samples in any category of data sets; wherein the difference samples include at least one of the sample data with the greatest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets.

[0149] For a detailed description of the data set processing device, please refer to the description of the data set processing method above, which will not be repeated here.

[0150] An embodiment of the present specification provides a chip including a storage unit and a processing unit. The storage unit stores a computer program. When the processing unit executes the computer program, the steps of the method of any of the above embodiments are implemented.

[0151] In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data set processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0152] Those skilled in the art will understand that Fig.10 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution disclosed in this specification, and does not constitute a limitation on the computer device to which the solution disclosed in this specification is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0153] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps in the above embodiment are implemented.

[0154] An embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0155] The embodiments of this specification provide a computer program product, which includes instructions. When the instructions are executed by a processor of a computer device, the computer device can perform the steps of any method of the above embodiments.

[0156] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

Claims

1. A data set processing method, characterized in that: The method comprises: Get the source dataset; Determine a feature vector corresponding to each sample data in the source data set; wherein the source data set includes different category data sets; each category data set has class center point data for characterizing the data distribution of each category data set; For any category of data sets, based on the class center point data of the any category of data sets and the feature vector corresponding to the sample data in the any category of data sets, determine the similar data between the sample data and the any category of data sets; Determine a difference sample that meets the difference sample screening condition in any category of data set based on the similar data, and retain the difference sample in any category of data set; wherein the difference sample includes at least one of the sample data with the largest difference from any category of data set and the sample data closest to the theoretical sampling point of any category of data set.

2. The method according to claim 1, characterized in that The difference sample screening condition includes a preset first difference threshold range, and determining the difference sample satisfying the difference sample screening condition in any category data set according to the similar data includes: In any of the data sets of the category, sample data corresponding to similar data within the first difference threshold range is used to form a basic data set; The basic data set is screened according to similar data of the sample data in the basic data set, and the difference samples in the basic data set are retained.

3. The method according to claim 2, characterized in that The difference sample screening condition further includes a preset second difference threshold range, and screening the basic data set according to similar data of the sample data in the basic data set to retain the difference samples in the basic data set includes: Determine the sample data corresponding to the current lowest similarity data in the basic data set; wherein the sample data corresponding to the current lowest similarity data is used as the current basic sample data; The sample data corresponding to the current lowest similarity data is retained as the difference sample, and based on the current basic sample data, the sample data corresponding to the next lowest similarity data is determined in the remaining data sets of the basic data set except the basic sample data; If the next lowest similarity data is within the second difference threshold range, the step of retaining the difference samples is repeated until the next lowest similarity data obtained exceeds the second difference threshold range.

4. The method according to claim 1, characterized in that The determining of similar data between the sample data and the any category data set based on the class center point data of the any category data set and the feature vector corresponding to the sample data in the any category data set includes: Determine a maximum offset vector of any category of data set based on the class center point data of any category of data set and the feature vector corresponding to the sample data in any category of data set; Determine, according to the maximum offset vector, at least one theoretical sampling point corresponding to any category of data sets; The distance between the feature vector corresponding to the sample data in any category of the data set and each theoretical sampling point is used as the similarity data.

5. The method according to claim 4, characterized in that Determining the difference samples that meet the difference sample screening condition in any category of data sets according to the similar data includes: Determine the shortest distance according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in the at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set; If there is no sample data at the sampling point to be occupied, using the sample to be occupied as the occupied sample data at the sampling point to be occupied; If there is sample data at the sampling point to be occupied, determine the occupied sample data at the sampling point to be occupied from the sample data at the sampling point to be occupied and the sample to be occupied according to the sample data at the sampling point to be occupied and the distances between the sample to be occupied and the sampling point to be occupied respectively.

6. The method according to claim 5, characterized in that The determining, according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point, the placeholder sample data at each theoretical sampling point comprises: Determine the shortest distance according to the distance between the feature vector corresponding to the sample data in any category of data set and each theoretical sampling point; the shortest distance corresponds to a sampling point to be occupied in the at least one theoretical sampling point and corresponds to a sample to be occupied in any category of data set; If there is no sample data at the sampling point to be occupied, using the sample to be occupied as the occupied sample data at the sampling point to be occupied; When the sampling point to be occupied has sample data, the placeholder sample data at the sampling point to be occupied is determined from the sample data at the sampling point to be occupied and the placeholder sample according to the similarity between the sample data at the sampling point to be occupied and the placeholder sample.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Get new sample data; If there is a target category data set with a label consistent with the new sample data in the different category data sets, and the similar data between the new sample data and each sample data in the target category data set respectively meets the difference sample screening condition, retain the new sample data; If the label corresponding to the new sample data is inconsistent with the label of each category data set, the new sample data is updated to the source data set, and the class center point data of each category data set is re-determined based on the updated source data set.

8. A data set processing device, characterized in that: The device comprises: A source data set acquisition module, used to acquire a source data set; A feature vector determination module, used to determine the feature vector corresponding to each sample data in the source data set; wherein the source data set includes different category data sets; each category data set has class center point data for characterizing the data distribution of each category data set; A similar data determination module is used to determine, for any category of data set, similar data between the sample data and the any category of data set based on the class center point data of the any category of data set and the feature vector corresponding to the sample data in the any category of data set; A difference sample retention module is used to determine the difference samples that meet the difference sample screening conditions in any category of data sets based on the similar data, and retain the difference samples in any category of data sets; wherein the difference samples include at least one of the sample data with the greatest difference from any category of data sets and the sample data closest to the theoretical sampling point of any category of data sets.

9. A computer device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to execute a computer program in the memory, and the computer program can execute any one of the methods described in claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which can execute the method according to any one of claims 1 to 7.

11. A chip comprising a storage unit and a processing unit, wherein the storage unit stores a computer program, characterized in that: When the processing unit executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.