A Noise Identification Method for Image Data
By combining the maximum non-target probability and loss value in the image classification task, and using the Gaussian mixture distribution model to identify noise samples, the problem of low noise detection accuracy in image scenes is solved, and higher noise sample screening accuracy is achieved.
Patent Information
- Application Number
- CN202210263129.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-17
AI Technical Summary
In image classification tasks, it is difficult for existing technologies to effectively identify noisy samples, resulting in a decrease in detection accuracy, especially when there is overlap in sample loss distributions and there are difficult samples among clean samples.
The maximum non-target probability and the loss value are jointly modeled, and the Gaussian mixture distribution model is used to jointly model the loss value and the maximum non-target probability of the sample to be detected as the training dynamics, and the two-dimensional spherical Gaussian mixture distribution model is used to separate clean and Noise samples.
It improves the accuracy of noise detection, effectively screens out correctly labeled samples in image scenes, reduces misjudgments of noise samples, and improves the robustness of the model.
Smart Images

Figure CN114549911B
Abstract
Description
Technical Field
[0001] The present invention relates to image recognition, and in particular to a noise recognition method in an image classification task. Background Art
[0002] Abbreviations and terms:
[0003] Noisy learning: This task refers to how to learn a high-performance model on a dataset containing noisy labels. The training of deep neural networks usually requires a large number of clean samples, but in actual application scenarios, obtaining large-scale, high-quality clean labels faces problems such as high labeling costs, high time costs, and low labeling quality. For example, in a crowdsourcing scenario, a company usually asks several labelers to label a large number of unlabeled samples, but due to the uneven labeling capabilities of different labelers and incorrect labeling, a dataset with noisy labels is obtained at a large cost and time cost. In addition, obtaining samples by searching for keywords on the Internet is a low-cost method, but the resulting dataset also contains a large number of noisy samples. Therefore, noisy learning has become an increasingly important topic worthy of research in actual application scenarios.
[0004] Noise identification method: The noise identification method refers to using some indicators or through the information of the model and the sample itself to screen the data set with noisy samples, remove the potential noise samples from the training set to obtain a relatively clean data set, and then use the data set to train the model.
[0005] 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 practical 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. In the direction of noisy label detection, there is a class of methods based on this principle: clean and noisy samples have different training dynamics during the training process. According to the different training dynamics of different samples during the training process, the noise samples can be distinguished and filtered.
[0006] Methods for identifying noise based on loss values include [1][2][3]. [1] Use a one-dimensional Gaussian mixture distribution model to model the distribution of loss values and detect noise samples. [2] Use a one-dimensional beta (β) mixture model to model the distribution of loss values and detect noise samples. [3] Set a dynamic threshold for the loss value to separate clean and noisy samples.
[0007] [1]Li,J.;Socher,R.;and Hoi,SC2019.DivideMix:Learning with NoisyLabels as Semi-supervised Learning.In ICLR.
[0008] [2]Arazo, E.; Ortego, D.; Albert, P.; O'Connor, N.; and Mcguinness, K. 2019. Unsupervised Label Noise Modeling and Loss Correction.In ICML.
[0009] [3] Han, B.; Yao, Q.; Yu,
[0010] In image scenarios, when loss-based training dynamically detects noisy samples, the detection accuracy decreases due to the overlap of sample loss distributions and the presence of difficult samples in clean samples.
[0011] For noisy learning tasks, the core idea of previous methods to identify noise samples is to regard samples with large loss values during training as noise samples. However, due to the existence of difficult samples in clean samples, some clean samples will also have large loss values and thus be judged as noise samples. The accuracy of detecting noise samples using a simple loss value threshold is low. In other words, some clean samples are too different from the category center and are mistaken for noise samples.
[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 maximum non-target probability in image classification tasks to improve the accuracy of noise detection.
[0014] To achieve the above object, the present invention adopts the following technical solutions:
[0015] A noise recognition method for image data comprises the following steps:
[0016] S1. In the noise learning based on neural network, a Gaussian mixture distribution model is used to jointly model the loss value of the sample to be detected and the maximum non-target probability as training dynamics; wherein the maximum non-target probability refers to the maximum probability other than the target class probability among the classification identification probabilities output by the sample after passing through the neural network;
[0017] S2. Use the trained neural network model to calculate the loss value and maximum non-target probability of the sample to be detected, fit the Gaussian mixture distribution model with the calculated loss value and maximum non-target probability, and output the probability that the sample to be detected belongs to a clean sample and a noise sample; divide the sample to be detected into a clean sample or a noise sample according to the probability.
[0018] Further:
[0019] For the model f in the C classification task θ , where θ is the model f θ The parameters of the softmax probability distribution generated by this model for sample x are p(x) = softmax(f θ (x)), use p target (x) represents the softmax probability of belonging to the label category, and p k (x) to represent the number of p(x) except p target (x), where k ≥ 1, and the maximum non-target probability is p1(x).
[0020] Calculate the cross entropy loss l for sample x ce :
[0021] l ce = -log P target .
[0022] The combination of the maximum non-target probability and the loss value includes: assigning an estimated probability pair (p target (x), p1(x)), transforming the problem into an unsupervised clustering problem on the 2D feature plane.
[0023] An adaptive nonlinear discriminator is used to separate clean and noisy samples.
[0024] The loss value of the sample to be detected and the maximum non-target probability are uniformly modeled using a two-dimensional spherical Gaussian mixture distribution model.
[0025] A two-component spherical two-dimensional Gaussian mixture distribution model is used to model the probability; wherein, in the Gaussian mixture distribution model, the posterior probability that sample x belongs to component c in the mixture model composed of K components is:
[0026]
[0027] Among them, λ k is the convex combination mixing coefficient of each independent probability density function p(x|k),
[0028] Among them, the parameters of the two-dimensional Gaussian mixture distribution model are appropriately constrained so that each of its components has a uniform covariance in all dimensions;
[0029] The probability that a sample comes from a clean cluster is the clean probability w clean , clean probability w clean Indicates the confidence level that sample x is a clean sample; according to the clean probability w clean Determine whether the sample is clean or noisy.
[0030] w clean Samples with a value greater than 0.5 are considered clean, otherwise they are considered noise.
[0031] After the noise detection is finished, the labels of the clean samples are retained, the labels of the noise samples are removed, and the neural network is trained based on a semi-supervised method until the next noise detection begins.
[0032] 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.
[0033] The present invention has the following beneficial effects:
[0034] The noise identification method for image data provided by the present invention proposes a new training dynamic, namely the maximum non-target probability, which is used to assist the existing identification method based on loss value. The present invention uniformly models the loss value and the maximum non-target probability of the sample to be detected, and classifies the samples that are judged to have both high loss and high maximum non-target probability as noise samples. This method considers the distance information between the sample and the center of this class and the confusion information with the center of other classes at the same time during the comparison, effectively separates the difficult samples from the noise samples to a certain extent, and improves the accuracy of noise detection. In the noise learning, the present invention jointly models the maximum non-target probability and the loss value to determine whether the sample belongs to the noise sample. The present invention can effectively solve the problem of decreased detection accuracy due to the overlap of sample loss distribution when detecting noise samples based on loss training dynamics in image scenes, and screen out samples with correct labels in image data sets with incorrect labels, effectively improving the accuracy of noise detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 The present invention is a flowchart of a method for identifying noise in image data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] 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.
[0037] See also Figure 1 The embodiment of the present invention provides a method for noise recognition of image data, comprising the following steps:
[0038] S1. In the noise learning based on neural network, a Gaussian mixture distribution model is used to jointly model the loss value of the sample to be detected and the maximum non-target probability as the training dynamics; wherein, the maximum non-target probability refers to the maximum probability other than the target class probability among the classification identification probabilities output by the sample after passing through the neural network. This maximum non-target probability records the characteristics of the degree of confusion between the sample and the wrong category, and can therefore be used to identify the sample and detect noise samples.
[0039] S2. Use the trained neural network model to calculate the loss value and maximum non-target probability of the sample to be detected, fit the Gaussian mixture distribution model with the calculated loss value and maximum non-target probability, and output the probability of the sample to be detected belonging to a clean sample and a noise sample from the Gaussian mixture distribution model; divide the sample to be detected into a clean sample or a noise sample according to the probability. Since the Gaussian mixture distribution model will spontaneously fit samples with high loss values and high maximum non-target probability values to a higher noise probability, and classify samples with high noise probability as noise samples, the present invention essentially classifies samples with both high loss and high maximum non-target probability as noise samples.
[0040] The noise identification method for image data of the embodiment of the present invention proposes a new training dynamic, namely the maximum non-target probability, to assist the existing identification method based on loss value. The present invention uniformly models the loss value and the maximum non-target probability of the sample to be detected, and classifies samples with both high loss and high maximum non-target probability as noise samples. This method considers the distance information between the sample and the center of the class and the confusion information with the center of other classes at the same time during the comparison, effectively separates the difficult samples from the noise samples to a certain extent, and improves the accuracy of noise detection. In the noise learning, the present invention jointly models the maximum non-target probability and the loss value to determine whether the sample belongs to the noise sample. The present invention can effectively solve the problem of decreased detection accuracy due to the overlap of sample loss distribution when detecting noise samples based on loss training dynamics in image scenes, and screen out samples with correct labels in image data sets with incorrect labels, effectively improving the accuracy of noise detection.
[0041] The specific embodiments of the present invention are described in further detail below.
[0042] Assume that in a C classification task, there is a model f θ , where θ is the parameter of the model, and a sample x and its label. Use p(x) = softmax(f θ (x)) represents the softmax probability distribution generated by this model for x. For simplicity, we use p target (x) represents the softmax probability of belonging to the label category, and p k (x) to represent the number of p(x) except p target (x), where k ≥ 1, then p1(x) is the maximum non-target probability. For sample x, the cross entropy loss l ce The calculation method is l ce = -log p target Compared with noisy samples, clean samples tend to have lower maximum non-target probabilities.
[0043] Joint modeling of maximum non-target probability and loss value:
[0044] The goal of the present invention is to identify noise samples in a data set D. If an estimated probability pair (p target(x), p1(x)), we can transform the problem into an unsupervised clustering problem on the 2D feature plane. We use an adaptive nonlinear discriminant method to separate clean and noisy samples. Specifically, we find that using a two-component spherical two-dimensional Gaussian mixture distribution model to model probability is an effective compromise between complexity and performance. In the Gaussian mixture distribution model, the posterior probability that a sample x belongs to component c in the mixture model composed of K components is
[0045]
[0046] where λ k is the convex combination mixing coefficient of each independent probability density function p(x|k). The probability that a sample comes from a clean cluster is called the clean probability w clean The parameters of the two-dimensional Gaussian mixture distribution model are appropriately constrained so that each of its components has a uniform covariance in all dimensions. Therefore, the component with a greater non-target probability is always regarded as the noise part.
[0047] The neural network model will directly output the loss value and the maximum non-target probability value of the sample. We use these two values to fit the Gaussian mixture distribution model. The Gaussian mixture distribution model will output the probability that the sample belongs to a clean sample and a noise sample. Among them, the Gaussian mixture distribution model will spontaneously fit samples with high loss values and high maximum non-target probability values with higher noise probabilities.
[0048] Using clean probability to detect noisy samples and training models:
[0049] Clean probability w clean Indicates the confidence level that sample x is a clean sample. clean Samples with a value greater than 0.5 are considered clean, and the rest are considered noisy. After the noise detection is completed, the labels of the clean samples are retained, the labels of the noisy samples are removed, and the neural network is trained based on a semi-supervised approach until the next noise detection begins.
[0050] Experimental results:
[0051] We selected PreAct-ResNet18, ResNet-50, and Inception-ResNet v2 as the basic structures of the experiment. All hyperparameters are from the original article. We conducted experiments on four image classification datasets, namely CIFAR10, CIFAR100, Clothing1M, and Webvision. The noise in the first two datasets is artificially generated. We constructed two types of noise: symmetric noise and asymmetric noise. The noise in Clothing1M and Webvision datasets exists naturally during annotation.
[0052] Among them, the symmetric noise is caused by the fact that each sample in the sample data set is independently assigned to a random label instead of its true label, and the probability of the symmetric noise is uniformly distributed. In this experiment, the noise ratio is assigned to 20%, 50%, 80% and 90%.
[0053] Asymmetric noise is generated when all samples in a class can only be assigned to a specific class other than the true label. The probability of mislabeling a sample in a class is set to 40%, and consistent with previous work, we only define asymmetric noise on CIFAR10.
[0054] We constructed noise detection experiments on all datasets to verify the effectiveness of the method. We compared the method of the present invention with the well-known noise detection algorithms M-correction[1] and DivideMix[2], and also compared several classic baseline methods. The experimental results are shown in Tables 1, 2, and 3. The table records the optimal accuracy achieved by the method on the test set in all rounds during training, where A represents asymmetric noise, S represents symmetric noise, and - represents the absence of such experimental results. The method of the present invention outperforms previous noise sample detection methods in all groups.
[0055] Table 1: Test accuracy of noisy learning experiments on the CIFAR dataset (%)
[0056]
[0057]
[0058] Table 2: Test accuracy of Clothing1M dataset noisy learning experiment (%)
[0059] method Accuracy DivideMix 74.8 This method 74.7
[0060] Table 3: Test accuracy of noisy learning experiments on the Webvision dataset (%)
[0061]
[0062] References:
[0063] [1]Arazo, E.; Ortego, D.; Albert, P.; O'Connor, N.; and Mcguinness, K. 2019. Unsupervised Label Noise Modeling and Loss Correction.In ICML.
[0064] [2]Li,J.;Socher,R.;and Hoi,SC2019.DivideMix:Learning with NoisyLabels as Semi-supervised Learning.In ICLR.
[0065] 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.
[0066] 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 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 noise identification method for image data, characterized in that: The steps include: S1. In the noise learning based on neural network, a Gaussian mixture distribution model is used to jointly model the loss value of the sample to be detected and the maximum non-target probability as training dynamics; wherein the maximum non-target probability refers to the maximum probability other than the target class probability among the classification identification probabilities output by the sample after passing through the neural network; S2. Use the trained neural network model to calculate the loss value and maximum non-target probability of the sample to be detected, fit the Gaussian mixture distribution model with the calculated loss value and maximum non-target probability, and output the probability that the sample to be detected belongs to a clean sample and a noise sample; divide the sample to be detected into a clean sample or a noise sample according to the probability.
2. The noise identification method according to claim 1, characterized in that: For the model f in the C classification task θ , where θ is the model f θ The parameters of the softmax probability distribution generated by this model for sample x are p(x) = softmax(f θ (x)), use p target (x) represents the softmax probability of belonging to the label category, and p k (x) to represent the number of p(x) except p target (x), where k ≥ 1, and the maximum non-target probability is p1(x).
3. The noise identification method according to claim 2, characterized in that: Calculate the cross entropy loss l for sample x ce : l ce =-logp target 。 4. The noise identification method according to any one of claims 1 to 3, characterized in that: The combination of the maximum non-target probability and the loss value includes: assigning an estimated probability pair (p target (x), p1(x)), transforming the problem into an unsupervised clustering problem on the 2D feature plane.
5. The noise identification method according to claim 4, characterized in that: An adaptive nonlinear discriminator is used to separate clean and noisy samples.
6. The noise identification method according to claim 5, characterized in that: The loss value of the sample to be detected and the maximum non-target probability are uniformly modeled using a two-dimensional spherical Gaussian mixture distribution model.
7. The noise identification method according to claim 6, characterized in that: A two-component spherical two-dimensional Gaussian mixture distribution model is used to model the probability; wherein, in the Gaussian mixture distribution model, the posterior probability that sample x belongs to component c in the mixture model composed of K components is: Among them, λ k is the convex combination mixing coefficient of each independent probability density function p(x|k), Among them, the parameters of the two-dimensional Gaussian mixture distribution model are appropriately constrained so that each of its components has a uniform covariance in all dimensions; The probability that a sample comes from a clean cluster is the clean probability w clean , clean probability w clean Indicates the confidence level that sample x is a clean sample; according to the clean probability w clean Determine whether the sample is clean or noisy.
8. The noise identification method according to claim 7, characterized in that: w clean Samples with a value greater than 0.5 are considered clean, otherwise they are considered noise.
9. The noise identification method according to any one of claims 1 to 8, characterized in that: After the noise detection is finished, the labels of the clean samples are retained, the labels of the noise samples are removed, and the neural network is trained based on a semi-supervised method until the next noise detection begins.
10. 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 identification method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Crowdsourcing acquired label data cleaning method based on noise label learning
CN113361201A
System and Method for Learning with Noisy Labels as Semi-Supervised Learning
US20210089883A1
Method and apparatus for training neural network model, and storage medium and device
WO2022032471A1
