Noise recognition method based on clean data set and key feature detection

By utilizing clean data sets and inter-frame timing information for feature dimensionality reduction and noise detection in video classification tasks, combined with momentum updates and beta hybrid models, the problem of low detection rate of noise samples in videos is solved and high-quality noise sample screening is achieved and robust learning with noise.

CN114549910BActive Publication Date: 2024-09-27TSINGHUA SHENZHEN INTERNATIONAL GRADUATE SCHOOL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210259878.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-09-27
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively utilize the temporal relationship in the video for noise detection, resulting in a low detection rate of noise samples in video classification tasks, especially in noisy learning.

Method used

By establishing feature dimensionality reduction between clean data sets and noisy data sets, and using inter-frame timing information to calculate the cosine similarity between undetermined samples and clean samples, combined with momentum updates and beta mixture models, the detection accuracy of noisy samples is improved.

Benefits of technology

It improves the detection rate of noise samples in video scenarios, alleviates the problem of dimensionality disaster, enhances the robustness of noisy learning, and specifically solves the problem of noise sample detection in videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114549910B
    Figure CN114549910B
Patent Text Reader

Abstract

A method for identifying noise in video data includes the following steps: S1, establishing a clean data set for comparing unknown data of a noise data set, and using inter-frame information to complete dimensionality reduction on the features of the clean data set and the noise data set to obtain a feature set after dimensionality reduction; S2, calculating the cosine similarity of the pending sample of the noise data set and the center of the clean sample class of the clean data set in the feature space after dimensionality reduction; S3, comparing the cosine similarity of the pending sample and the center of the clean sample class, and calculating the probability that the pending sample is a clean sample based on the cosine similarity, and classifying the sample with a probability greater than a predetermined probability threshold as a clean sample. In the present invention, a clean data set is introduced to compare unknown data, and the features are reduced in dimensionality to obtain a feature set after dimensionality reduction. When calculating the similarity, it only needs to be completed in the feature space after dimensionality reduction, which alleviates the dimensionality disaster problem caused by excessively high dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to image recognition, and in particular to a noise recognition method based on clean data sets and key feature detection in video classification tasks. Background Art

[0002] Abbreviations and terms:

[0003] Noisy learning: This task refers to training a high-precision deep neural network on a dataset containing noisy labels. The training of deep neural networks usually relies on a large number of manually labeled samples. In practical applications, obtaining a large number of clean samples is time-consuming and labor-intensive, and it is also impractical in certain specific scenarios (such as medical scenarios). Noisy samples are always inevitably introduced into the dataset. For example, in a crowdsourcing scenario, researchers or companies usually entrust several labelers to label a specific dataset, but due to the different levels of the labelers or other reasons, the final labeled data always contains a certain amount of noise. In addition, there is a low-cost way to obtain data by directly searching for keywords using search engines, but the samples returned by the search engine contain a large number of noisy samples.

[0004] Noise detection method: Noise detection method refers to cleaning a noisy data set by using certain specific indicators or methods, and obtaining a purified data set. This data set will be used for subsequent model training tasks.

[0005] Video classification: Video classification is to classify videos according to their semantic content. As one of the basic tasks of computer vision, it is also the basis of many subsequent tasks (such as video understanding tasks). Unlike classification tasks on image datasets, the object of classification is no longer a single-frame image, but a continuous video object composed of multiple frames containing temporal causal relationships. Therefore, in order to understand the video, it is necessary to connect the semantic information of the previous and next frames.

[0006] Methods to address the challenge of learning in noisy data can be roughly divided into two categories. One is to directly train a robust model in the presence of noisy labels. This type of method usually reduces the negative impact of overfitting to noisy samples by designing a network structure that is robust to label noise or introducing a loss function that is robust to noise. The other method is to detect potential noise samples in the dataset. It first detects potential noise samples in the training set and removes them from the training set, and then uses the filtered training set for model training. In actual applications, the latter is more practical in the industry because it not only learns a robust deep learning model, but also provides a relatively clean dataset.

[0007] Most of the previous methods are based on the task of classifying images with noise. Compared with images, the temporal relationship between different frames in a video also contains information that is beneficial to noise detection. Therefore, how to use this temporal relationship for noise detection is also a problem to be solved.

[0008] Methods for identifying noise based on feature similarity include [1][2][3]. [1] Noise samples are detected by calculating the cosine similarity between the sample to be detected and the class prototype. [2] The K-nearest neighbor method is used to construct an adjacency graph for each category, and the samples in the most important subgraph are taken as clean samples. [3] The K-nearest neighbor method is also used, and a voting mechanism is used to determine whether a sample is a clean sample. However, the previous methods are all based on image classification tasks, but the noisy learning problem is different in video scenarios.

[0009] [1]Lee,K.-H.;He,X.;Zhang,L.;and Yang,L.2018.Cleannet:Transferlearning for scalable image classifier training with label noise.In CVPR.

[0010] [2]Wu,P.;Zheng,S.;Goswami,M.;Metaxas,D.;and Chen,C.2020.A TopologicalFilter for Learning with Label Noise.NeurIPS,33.

[0011] [3]Ortego, D.; Arazo, E.; Albert, P.; O'Connor, NE; and McGuinness, K. 2021. Multi-Objective Interpolation Training for Robustness to LabelNoise. In CVPR, 6606–6615.

[0012] It should be noted that the information disclosed in the above background technology section is only used for understanding the background of the present application, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the invention

[0013] The main purpose of the present invention is to overcome the defects of the above-mentioned background technology and provide a noise recognition method based on clean data set and key feature detection in video classification tasks.

[0014] To achieve the above object, the present invention adopts the following technical solutions:

[0015] A method for identifying noise in video data comprises the following steps:

[0016] S1. Establish a clean data set to compare the unknown data of the noisy data set, and use the inter-frame information to reduce the dimension of the features of the clean data set and the noisy data set to obtain a feature set after dimension reduction;

[0017] S2. Calculate the cosine similarity of the center of the class of the pending sample of the noise data set and the clean sample of the clean data set in the feature space after dimensionality reduction;

[0018] S3. Compare the cosine similarity between the pending sample and the clean sample class center, calculate the probability that the pending sample is a clean sample based on the cosine similarity, and classify the samples whose probability is greater than a predetermined probability threshold as clean samples.

[0019] Further:

[0020] The inter-frame temporal information is exploited to detect noisy samples in a noisy dataset.

[0021] The representation set of the noisy dataset is where x i ∈R d , x i Represents the representation of a clip in the video, M represents the number of samples, and the representation set of the clean data set C is the number of clean samples of each category in the clean data set, and K is the number of categories. The goal of the classification task is to find a representation x i Which category does it belong to?

[0022] x i Tags i Represented as a one-hot encoding y i ∈{0,1} K ,y i The kth element y k is assigned a value of 1, and the rest of the elements are assigned a value of 0; a classification head g(·) with a Softmax operation is used after the feature extractor f(·) with a consensus function to predict x i The probability of belonging to the kth class: p(k│x i ) = g(x i ; k).

[0023] For a representation x i , determine this representation x i The set of salient features of i is the vector x iThe feature channel with the largest variance among the first m frames of ; Among them, for the representation set D of the clean data set L Each clean representation in class k is Calculate the corresponding set of significant features The set of salient features L of category k k For all The m feature channels that appear most frequently in .

[0024] After calculating the salient feature sets of all categories, for all samples marked as category k in the representation set D Only retain the set of significant features L in the corresponding category k The dimensions contained in And calculate the current value of the class center

[0025]

[0026] Among them, m k is the number of representations with label k in the representation set D.

[0027] Update the cumulative value c of the cluster center using the momentum update method k :

[0028]

[0029] Where m is the momentum constant, which is 0.999;

[0030] Among them, a representation to be detected with a label k in the representation set D of the noise data set The credibility of i for:

[0031]

[0032] Wherein, · represents the inner product calculation; the credibility indicator represents x i is the confidence level of the clean sample of category k.

[0033] For each category, a two-component Beta mixture model π(·) is fitted using the confidence that all labels in the representation set D represent the category, representing x i Belong to a i The likelihood of a clean clustering of classes is defined as All The representation of is considered clean, and the rest are considered noisy. For label a i Sample credibility.

[0034] After the noise detection is finished, training is performed on clean samples until the next noise detection begins.

[0035] A computer-readable storage medium, wherein a computer program stored in the computer-readable storage medium, when executed by a processor, implements the noise identification method.

[0036] The present invention has the following beneficial effects:

[0037] The present invention provides a noise recognition method in video data. In a video scene, a small clean data set can be used to filter out samples with correct annotations in a video data set with incorrect annotations, so as to complete high-quality noise sample detection. In the present invention, a small clean data set is introduced to compare unknown data. In addition, the dimension of the feature is reduced by using inter-frame information to obtain a reduced-dimensional feature set. Therefore, when calculating the similarity, it only needs to be completed in the feature space after the dimension reduction, which alleviates the dimensional disaster problem caused by too high a dimension. When in use, it is only necessary to compare the cosine similarity of the undetermined sample with the center of the clean sample class, and the sample with a relatively large similarity is divided into a clean sample. Compared with the previous method, due to the introduction of a known clean data set, the detection rate of the noise sample is improved. Different from the traditional method, the method of the present invention can specifically solve the problem of noise sample detection in the video, and the method can be used to complete the noisy learning task in the video scene. Moreover, the method takes into account the characteristics of the video data and uses the inter-frame timing information to detect the noise sample. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 The present invention is a flowchart of a method for identifying noise in video data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following is a detailed description of the embodiments of the present invention. It should be emphasized that the following description is only exemplary and is not intended to limit the scope and application of the present invention.

[0040] See also Figure 1 The embodiment of the present invention provides a method for identifying noise in video data, comprising the following steps:

[0041] S1. Establish a clean data set to compare the unknown data of the noisy data set, and use the inter-frame information to reduce the dimension of the features of the clean data set and the noisy data set to obtain a feature set after dimension reduction;

[0042] S2. Calculate the cosine similarity of the center of the class of the pending sample of the noise data set and the clean sample of the clean data set in the feature space after dimensionality reduction;

[0043] S3. Compare the cosine similarity between the pending sample and the clean sample class center, calculate the probability that the pending sample is a clean sample based on the cosine similarity, and classify the samples whose probability is greater than a predetermined probability threshold as clean samples.

[0044] The present invention provides a method for identifying noise in video data. In a video scene, a small clean data set can be used to filter out samples with correct annotations in a video data set with incorrect annotations, so as to complete high-quality noise sample detection. In the present invention, a small clean data set is introduced to compare unknown data. In addition, the dimension of the feature is reduced by using inter-frame information to obtain a reduced-dimensional feature set. Therefore, when calculating the similarity, it only needs to be completed in the feature space after the dimension reduction, which alleviates the dimensional disaster problem caused by too high a dimension. When in use, it is only necessary to compare the cosine similarity of the undetermined sample with the center of the clean sample class, and the sample with a relatively large similarity is divided into a clean sample. Compared with the previous method, due to the introduction of a known clean data set, the detection rate of the noise sample in the present invention is improved. Different from the previous method, the method of the present invention can specifically solve the problem of noise sample detection in the video, and the present invention can be used to complete the noisy learning task in the video scene. Moreover, the method takes into account the characteristics of the video data and uses the inter-frame timing information to detect the noise sample.

[0045] The specific embodiments of the present invention are described in further detail below.

[0046] In the embodiment of the present invention, after the sample passes through a convolutional neural network, the feature vector output by the last layer of the network is the sample feature. This feature vector records the characteristic information of the sample, and can therefore be used to identify the sample and detect noise samples.

[0047] The number of clean samples in each category is set, and K represents the number of categories. The goal of the classification task is to find a representation x i Which class should it belong to? i is a representation of a segment in a video. i Tags i can be represented as a one-hot encoding y i ∈{0,1} K .y i The kth element y k will be assigned 1, and the rest will be assigned 0. In the noisy learning setting, label a may be incorrectly assigned to a sample that does not belong to class a. A classification head g(·) with a Softmax operation is defined after the feature extractor f(·) with a consensus function to predict x i The probability of belonging to the kth class, that is, p(k│x i ) = g(x i ; k).

[0048] Selection of salient features:

[0049] For a representation x i , we define this representation x i The set of salient features of i is the vector x i The feature channel with the largest variance among the first m frames. For the representation set D of the known clean sample set L Each clean representation in class k is The corresponding set of significant features can be calculated Here, the temporal relationship information between frames is used, and we define the salient feature set L of category k as k For all The m feature channels that appear most frequently in .

[0050] Estimate the credibility of representation using salient features:

[0051] After calculating the salient feature sets of all categories, for all samples marked as category k in the representation set D We only retain the set of significant features L in the corresponding category k The dimensions contained in , and the representation after dimensionality reduction using inter-frame information is recorded as And calculate the current value of the class center

[0052]

[0053] Where m k is the number of representations with label k in the representation set D.

[0054] We use the momentum update method to update the accumulated value of the class center:

[0055]

[0056] Where m is the momentum constant, which is 0.999.

[0057] We define a to-be-detected representation with label k in the representation set D of the noise dataset The credibility of i for:

[0058]

[0059] Where · represents the inner product calculation. The cosine similarity can be obtained by the above calculation.

[0060] Use confidence to detect noisy samples:

[0061] Credibility indicates that the representation xi is the confidence level of the clean sample of category k. To detect clean and noisy representations, for each category, we fit a two-component Beta mixture model π(·) using the confidence level of all labels in D for the representation of that category. Fitting this Beta mixture model enables similarity comparison. Representation x i Belong to a i The likelihood of a clean clustering of classes is defined as For label a i Sample The samples with greater similarity will produce a greater probability The samples with high probability are considered as clean samples, thus, the samples with relatively large similarity can be classified as clean samples. The representations of are considered clean, and the rest are considered noisy. After the noise detection is completed, the model will be trained on clean samples until the next noise detection begins.

[0062] Experimental Results

[0063] We choose TSM-ResNet50[1] as the base structure for all experiments and all hyperparameters. We conduct experiments on two large video classification datasets, Kinetics (K400) and Something-Something-V1 (SthV1). We construct two types of noise in this experiment: symmetric noise and equivalent noise.

[0064] The symmetric noise is caused by the fact that each sample in the sample data set is independently assigned to a random label rather than its true label, and the probability of the symmetric noise is uniformly distributed. In this embodiment, the noise ratio is distributed as 40%, 60% and 80%.

[0065] The equivalent noise is generated because all samples in a class can only be assigned to a specific class other than the true label. The probability of mislabeling samples in the sample class is set to 10%, 20%, and 40%.

[0066] The method of the present invention is compared with several popular methods for label noise detection: Co-teaching[2] has two networks that select samples with smaller loss as clean samples for each other, and the noise ratio is assumed to be known in advance in Co-teaching; TopoFileter[3] detects noisy samples by clustering based on L2 norm, and M-correction[4] uses Gaussian mixture model to model sample loss and selects samples with smaller loss as clean samples. At the same time, we construct a lower bound baseline method and an upper bound baseline method for comparison in the experiment. In the lower bound method, all training data are added to the training process; while in the upper bound method, the model is only trained on correctly labeled samples.

[0067] The experimental results on K400 and SthV1 are shown in Tables 1 and 2. The tables record the best accuracy achieved by the method on the test set in all rounds during the training period. The method of the present invention is far superior to the previous noise sample detection method in all groups.

[0068] Table 1: Test accuracy of Kinetics dataset (%)

[0069]

[0070] Table 2: Test accuracy of Something-V1 dataset (%)

[0071]

[0072]

[0073] References:

[0074] [1]Lin, J.; Gan, C.; and Han, S. 2019. Tsm: Temporal shift module for efficient video understanding. In ICCV, 7083–7093.

[0075] [2] Han, B.; Yao, Q.; Yu,

[0076] [3]Wu,P.;Zheng,S.;Goswami,M.;Metaxas,D.;and Chen,C.2020.A TopologicalFilter for Learning with Label Noise.NeurIPS,33.

[0077] [4]Arazo, E.; Ortego, D.; Albert, P.; O'Connor, N.; and Mcguinness, K. 2019. Unsupervised Label Noise Modeling and Loss Correction.In ICML.

[0078] The background section of the present invention may contain background information about the problem or environment of the present invention, but does not necessarily describe the prior art. Therefore, the content included in the background section is not an admission by the applicant that the prior art is available.

[0079] The above content is a further detailed description of the present invention in combination with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be regarded as belonging to the protection scope of the present invention. In the description of this specification, the description of the reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In the absence of mutual contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope of protection of the patent application.

Claims

1. A method for identifying noise in video data, characterized in that: The steps include: S1. Establish a clean data set to compare the unknown data of the noisy data set, and use the inter-frame information to reduce the dimension of the sample features of the clean data set and the noisy data set to obtain the feature set after dimension reduction; S2. Calculate the cosine similarity of the center of the class of the pending sample of the noise data set and the clean sample of the clean data set in the feature space after dimensionality reduction; S3, comparing the cosine similarity of the pending sample and the center of the clean sample class, and calculating the probability that the pending sample is a clean sample based on the cosine similarity, and classifying the sample whose probability is greater than a predetermined probability threshold as a clean sample; For each category in the noise dataset, a two-component beta mixture model π(·) is fitted using the credibility of all labels in the representation set D of the noise dataset to represent the category, representing x i Belong to a i The likelihood of a clean clustering of classes is defined as All The representation of is considered clean, and the rest are considered noisy. For label a i Sample credibility.

2. The noise identification method according to claim 1, characterized in that: The inter-frame temporal information is exploited to detect noisy samples in a noisy dataset.

3. The noise identification method according to claim 1 or 2, characterized in that: The representation set of the noisy dataset is where x i ∈R d , x i Represents the representation of a clip in the video, M represents the number of samples, and the representation set of the clean data set C is the number of clean samples of each category in the clean data set, and K is the number of categories. The goal of the classification task is to find a representation x i Which category does it belong to? 4. The noise identification method according to claim 3, characterized in that: x i Tags i Represented as a one-hot encoding y i ∈{0,1} K ,y i The kth element y k is assigned a value of 1, and the rest of the elements are assigned a value of 0; a classification head g(·) with a Softmax operation is used after the feature extractor f(·) with a consensus function to predict x i The probability of belonging to the kth class: p(k│x i ) = g(x i ; k).

5. The noise identification method according to any one of claims 1 to 2, characterized in that: For a representation x i , determine this representation x i The set of salient features of i is the vector x i The feature channel with the largest variance among the first m frames of ; Among them, for the representation set D of the clean data set L Each clean representation in class k is Calculate the corresponding set of significant features The set of salient features L of category k k For all The m feature channels that appear most frequently in .

6. The noise identification method according to claim 5, characterized in that: After calculating the salient feature sets of all categories, for all samples marked as category k in the representation set D Only retain the set of significant features L in the corresponding category k The dimensions contained in And calculate the current value of the class center Among them, m k is the number of representations with label k in the representation set D.

7. The noise identification method according to claim 6, characterized in that: Update the cumulative value c of the cluster center using the momentum update method k : Where m is the momentum constant, which is 0.999; Among them, a representation to be detected with a label k in the representation set D of the noise data set The credibility of i for: Wherein, · represents the inner product calculation; the credibility indicator represents x i is the confidence level of the clean sample of category k.

8. The noise identification method according to any one of claims 1 to 2, characterized in that: After the noise detection is finished, training is performed on clean samples until the next noise detection begins.

9. A computer-readable storage medium, characterized in that: When the computer program stored in the computer-readable storage medium is executed by a processor, the noise recognition method according to any one of claims 1 to 8 is implemented.