A method and device for screening and learning images containing noisy label distribution

By screening and processing noisy data in image classification learning, and using the confidence and correlation of the trust set and the noise set to train the maximum entropy model, the problem of the impact of label noise is solved and the accuracy and robustness of the model are improved.

CN114067165BActive Publication Date: 2024-10-25NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111245746.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-26
Publication Date
2024-10-25
Estimated Expiration
2041-10-26

AI Technical Summary

Technical Problem

Existing label distribution learning methods are easily affected by label noise in practical applications, resulting in reduced model learning accuracy. Especially in image classification and recognition, mislabeling due to the subjectivity of the annotator and the large amount of data is difficult to avoid, affecting the model. prediction results.

Method used

An image screening and learning method containing noisy label distribution is adopted. By obtaining the image data set, extracting features, using the trust set to train the linear model, calculating the sample confidence, screening the noisy data based on the three-way decision-making method, and using the sample correlation training Maximum entropy model, reweighting samples to reduce the impact of noise.

Benefits of technology

It improves the accuracy and robustness of model prediction results, effectively reduces the impact of label distribution noise on model training, and improves the effect of image classification learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067165B_ABST
    Figure CN114067165B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for image screening and learning containing noisy labeled distribution. The method comprises: obtaining an image data set and performing image feature extraction; selecting a certain proportion of image samples according to expert annotations and putting them into a trust set, and putting the rest into a pending set; using the images in the trust set to train a linear model, and calculating the confidence of all images in the pending set; making decisions based on a three-way decision method according to sample confidence, and repeating the process to screen out all noise data; re-weighting using sample confidence, and considering the sample correlation between the noise set and the trust set to train a maximum entropy model. The present invention proposes a confidence evaluation index for a noisy labeled distribution, and uses a three-way decision method to utilize more confidence information when screening noise data. By re-weighting and utilizing sample correlation, the process of training the model is optimized, and the results can be predicted more accurately, and the model has better robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image classification and recognition, and in particular to a method and device for screening and learning images containing noise-labeled distribution data. Background Art

[0002] Label distribution learning (LDL) is different from traditional multi-label learning (MLL) which only gives whether each label is related to the example. LDL gives the specific descriptive degree of each label for the example. However, most existing LDL methods require a large amount of data with accurate label distribution to support, but in practical applications, especially in the data labeling process, label noise is difficult to avoid. Specifically: First, the label distribution data is usually annotated manually, which will consume a lot of manpower and time when there is a huge amount of data. After a long period of labeling work, the annotator will inevitably make mislabeling of the sample; secondly, the annotator's labeling of the instance will be affected by his personal subjective influence; thirdly, the annotator's professionalism will also affect the labeling quality of his annotations; in addition, for some special labels, it is difficult to give an accurate value to express the relationship with the sample instance. These situations will cause label noise problems.

[0003] For example, in image classification and recognition, we assume that landscape and people are two possible labels in the label space of a picture. When labeling this picture, influenced by subjective factors, the annotator is likely to increase the descriptiveness of the picture with the label of person, thereby generating label noise and affecting the learning accuracy of the model. This problem is widespread and difficult to avoid in label distribution learning for image classification, and therefore greatly limits the development of LDL. Therefore, we believe that if we can screen out and process noisy data during the learning process, we can expect to more effectively solve the image classification learning problem with label distribution noise. Based on this problem, we designed this invention. Summary of the invention

[0004] Purpose of the invention: In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method and device for screening and learning images with noisy label distribution, so as to reduce the impact of image label distribution noise on model training effect and improve the accuracy of model prediction results.

[0005] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution:

[0006] A method for screening and learning images containing noisy label distributions comprises the following steps:

[0007] (1) Obtain image data sets and perform image feature extraction;

[0008] (2) According to the expert's annotation, a certain proportion of trust data is selected from the image dataset and put into the trust set, and all the remaining data is put into the pending set;

[0009] (3) Use image samples in the trust set to train a linear model;

[0010] (4) Calculate the confidence of all image samples in the undetermined set through a linear model;

[0011] (5) The three-branch decision method makes a decision based on the sample confidence, placing image samples with confidence higher than the set first threshold into the trust set, placing image samples with confidence lower than the set second threshold into the noise set, and leaving the rest in the pending set, where the second threshold is less than the first threshold;

[0012] (6) Repeat steps (3) to (5) until there are no image samples in the pending set, and all samples are screened and placed in the trust set and noise set;

[0013] (7) All image samples are re-weighted using sample confidence, and the sample correlation between the noise set and the trust set is considered to train the maximum entropy model. Furthermore, the linear model in step (3) can be expressed as:

[0014]

[0015] wxya T ×1 c =1 t , WX T ≥0 t×c

[0016] Where W = [w 1 , w 2 , ..., w c ] is the parameter matrix of the linear model, X T =[x T1 , x T2 ,...x Ti ,...x Tt ] represents the image feature matrix of the trust set, D T =[d T1 , d T2 ,...d Ti ,...d Tt ] represents the label distribution matrix of the trust set, c is the dimension of the label, t is the number of image samples in the trust set, ||·|| F represents the F-norm, λ1 is used to control The importance of the item, 1 c with 1 t are all-one vectors of length c and t, respectively, 0 t×c is a t×c zero matrix.

[0017] Specifically, in step (4), the confidence of the image sample is calculated according to the following formula:

[0018]

[0019]

[0020] Among them, x Ki represents the feature of the i-th image sample in the undetermined set K, d Ki represents the label distribution of the i-th image sample in the pending set K, and g is the number of image samples in the pending set.

[0021] Furthermore, in step (7), re-weighting is performed according to the following formula:

[0022]

[0023]

[0024]

[0025] Where n is the number of all image samples in the image dataset, η i is the confidence of the i-th image sample. The confidence of the image sample in the initial trust set is 1, and the confidence of other image samples is the confidence value calculated when they are divided into the trust set or the noise set. Represents the predicted label distribution of the maximum entropy model output measured by KL divergence With the true label distribution d i The distance between them, c represents the label dimension, are the descriptive degrees of the jth tag in the true tag distribution and the predicted tag distribution, respectively, pq It is an element in the maximum entropy model parameter matrix θ. The matrix θ is c×mm, and m represents the image feature dimension.

[0026] Furthermore, the correlation between the noise sample and the trust sample in step (7) is expressed by the following formula:

[0027]

[0028]

[0029] Among them, l represents the number of image samples in the filtered noise set, t represents the number of image samples in the filtered trust set, and δ ij represents the similarity between the i-th image sample in the noise set and the j-th image sample in the trust set, and σ is the variance of the Gaussian kernel, which is usually estimated based on the average distance between sample points. i∈N k (x j ) represents x i is x j One of the k closest samples, x j ∈N k (x i ) represents x j is x i One of the k closest samples.

[0030] The final optimization objective for training the maximum entropy model is expressed as:

[0031]

[0032] Where λ2 is a balancing parameter that balances the importance of the two terms. This optimization problem is a smooth convex optimization problem, which is solved using the adaptive moment estimation algorithm.

[0033] Furthermore, an image classification method using the image screening and learning method containing noisy label distribution includes: extracting features of the image to be tested, and inputting them into a trained maximum entropy model to obtain a predicted label distribution.

[0034] Based on the same inventive concept, the present invention provides an image screening and learning device containing noise label distribution, comprising:

[0035] A preprocessing unit, used to obtain an image data set and perform image feature extraction;

[0036] A noise screening unit is used to select a certain proportion of trust data from the image data set according to the expert's annotation and put it into the trust set, and put all the remaining data into the pending set; use the image samples in the trust set to train the linear model; calculate the confidence of all image samples in the pending set through the linear model; make a decision based on the sample confidence based on the three-way decision method, put the image samples with confidence higher than the set first threshold into the trust set, put the image samples with confidence lower than the set second threshold into the noise set, and keep the rest in the pending set, where the second threshold is less than the first threshold; repeat the linear model training and perform sample division until there are no image samples in the pending set, and all samples are screened and put into the trust set and the noise set;

[0037] and a maximum entropy model training unit for re-weighting all image samples using sample confidences and considering sample correlations between a noise set and a trust set to train a maximum entropy model.

[0038] Based on the same inventive concept, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for screening and learning images containing noisy label distribution or each step of the image classification method is implemented.

[0039] Beneficial effects: Since most existing labeled distribution learning methods are based on fully or partially accurate supervision information, they ignore the fact that labeled distribution data may also contain noise, thus affecting the learning effect of the model. The present invention proposes a confidence evaluation index for labeled distribution data with noisy labels; using a three-way decision method, more confidence information is used when screening noisy data; by re-weighting and using sample correlation, the process of training the model is optimized. When applied to image classification problems with labeled distribution noise, the results can be predicted more accurately and with better robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention.

[0041] Figure 2 for Figure 1 Flowchart of the method for noise screening model. DETAILED DESCRIPTION

[0042] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0043] like Figure 1 As shown, an image screening and learning method containing noisy label distribution disclosed in an embodiment of the present invention first uses a self-training linear model noise screening method based on three-branch decision to screen noisy data, and then uses an improved maximum entropy model training method based on sample correlation to learn the screened data, which can reduce the impact of label distribution noise and improve the accuracy of model prediction results. It mainly includes the following steps:

[0044] (1) Obtain an image data set and perform image feature extraction. In this embodiment, the HOG feature of the image is used.

[0045] (2) Figure 2 As shown in the figure, a small proportion of trust data is selected from the image dataset through expert annotation and put into the trust set T, and all the remaining data is put into the pending set K;

[0046] (3) Use the image samples in the trust set to train the linear model; specifically, the training is performed according to the following linear model:

[0047]

[0048] wxya T ×1 c =1 t , WX T ≥0 t×c

[0049] Our goal is to train a linear model with the data in the trust set so that the linear model can better fit the mapping relationship between the trust data features and the label distribution. 1 , w 2 , ..., w c ] is the parameter matrix of the linear model, X T =[x T1 , x T2 ,...x Ti ,...x Tt ] represents the image feature matrix of the trust set, D T =[d T1 , d T2 ,...d Ti ,...d Tt ] represents the label distribution matrix of the trust set, c is the dimension of the label, t is the number of image samples in the trust set, ||·|| F represents the F-norm, λ1 is used to control The importance of the item, 1 c with 1 t are all-one vectors of length c and t, respectively, 0 t×c is a t×c zero matrix.

[0050] (4) Input the data in the pending set into the linear model to obtain the predicted label distribution and calculate the confidence of all the data in the pending set; specifically, the confidence of the pending data is calculated according to the following formula:

[0051]

[0052]

[0053] The confidence is mainly defined based on the F-norm loss of the predicted label distribution of the pending data and its true label distribution. Since the linear model obtained in step (2) mainly fits the mapping relationship between the trust data features and the label distribution. Therefore, when the noise sample passes through the linear model, its predicted label distribution will be significantly different from its noise label distribution. Then, the confidence is obtained by normalizing the loss of all pending data. Among them, x Ki represents the feature of the i-th image sample in the undetermined set K, d Ki represents the label distribution of the i-th image sample in the pending set K, and g is the number of image samples in the pending set.

[0054] (5) Use the three-branch decision method to put the image samples into the trust set, noise set and pending set according to their confidence. Then repeat (3) to (5) until there are no image samples in the pending set K.

[0055] In order to divide the image samples more accurately, we use a three-way decision method to divide the samples according to the confidence of each image sample. Unlike the ordinary two-way decision method that determines the division of all samples at one time, the three-way decision method will make delayed judgments on those samples where the current information is insufficient to make accurate judgments, in order to make more accurate judgments after obtaining more useful information. Specifically, the confidence of each sample is judged, and the confidence higher than the threshold α is placed in the prediction trust set T, and the confidence lower than the threshold β (β<α) is placed in the prediction noise set N, and the remaining samples are left in the pending set K. Repeat steps 3 to 5 until there are no samples in the pending set K, then all samples have been screened and placed in the trust set T and the noise set N respectively.

[0056] (6) Use confidence to re-weight all data to reduce the impact of noise data on the model learning effect. Specifically, re-weight according to the following formula:

[0057]

[0058]

[0059]

[0060] Where n is the number of all image samples in the image dataset, η i It is the confidence of the i-th sample calculated in the noise screening algorithm of the self-training linear model based on three-way decision. Samples with higher confidence have a greater probability of being noise-free samples, while samples with lower confidence have a lower probability of not containing noise. Therefore, weighting each sample with confidence can effectively increase the influence of trust data on the model learning results, thereby improving the performance of the algorithm. Indicates that KL divergence is used to measure the distance between the predicted label distribution and the true label distribution, and represents the predicted label distribution output by the maximum entropy model. di represents the true label distribution, are the descriptive degrees of the jth tag in the true tag distribution and the predicted tag distribution, respectively, pq It is an element in the maximum entropy model parameter matrix θ. The matrix θ is c×mm, and m represents the image feature dimension.

[0061] (7) By utilizing the correlation between noise samples and trust samples, the predicted label distribution of noise samples is made as close as possible to the trust samples with which they are correlated. Specifically, for the learning of noise data, it is assumed that there is a correlation between samples. If the characteristics of the noise samples are similar to those of the trust samples, then the label distributions of the two will also be similar. Based on this assumption, we add a term to the loss function to measure the correlation between samples. Suppose that the filtered noise set has a total of l image samples, and the filtered trust set has a total of t image samples. An l×t matrix Δ is set to represent the similarity between the noise set samples and the trust samples. In the matrix Δ, δ ij Represents the similarity between the i-th image sample in the noise set and the j-th image sample in the trust set:

[0062]

[0063] The correlation between the noise sample and the trust sample is expressed by the following formula:

[0064]

[0065] Where σ is the variance of the Gaussian kernel, which is usually estimated based on the average distance between sample points. i ∈N k (x j ) represents x i is x j One of the k closest samples, the recommended value of k is 5.

[0066] The final optimization objective is expressed as:

[0067]

[0068] Where λ2 is a balancing parameter that balances the importance of the two terms. This optimization problem is a smooth convex optimization problem, which is solved using the adaptive moment estimation algorithm.

[0069] After the model is trained, the image features of the image to be tested are extracted and input into the trained maximum entropy model to obtain the predicted label distribution.

[0070] Based on the same inventive concept, an embodiment of the present invention provides an image screening and learning device with a noise labeled distribution, comprising: a preprocessing unit, used to obtain an image data set and perform image feature extraction; a noise screening unit, used to select a certain proportion of trust data from the image data set according to expert annotations and put it into a trust set, and put all the remaining data into a pending set; use the image samples in the trust set to train a linear model; calculate the confidence of all image samples in the pending set through the linear model; make a decision based on the sample confidence based on the three-way decision method, put the image samples with confidence higher than a set first threshold into the trust set, put the image samples with confidence lower than a set second threshold into the noise set, and keep the rest in the pending set, wherein the second threshold is less than the first threshold; repeat the linear model training and perform sample division until there are no image samples in the pending set, and all samples are screened and put into the trust set and the noise set; and a maximum entropy model training unit, used to re-weight all image samples using sample confidence, and consider the sample correlation between the noise set and the trust set to train the maximum entropy model.

[0071] Based on the same inventive concept, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements each step of the above method when loaded into the processor.

Claims

1. A method for screening and learning images containing noisy label distributions, characterized in that: The steps include: (1) Obtain image data sets and perform image feature extraction; (2) According to the expert's annotation, a certain proportion of trust data is selected from the image dataset and put into the trust set, and all the remaining data is put into the pending set; (3) Use image samples in the trust set to train a linear model; (4) Calculate the confidence of all image samples in the undetermined set through a linear model; (5) The three-branch decision method makes a decision based on the sample confidence, placing image samples with confidence higher than the set first threshold into the trust set, placing image samples with confidence lower than the set second threshold into the noise set, and leaving the rest in the pending set, where the second threshold is less than the first threshold; (6) Repeat steps (3) to (5) until there are no image samples in the pending set, and all samples are screened and placed in the trust set and noise set; (7) All image samples are re-weighted using sample confidence, and the sample correlation between the noise set and the trust set is considered to train the maximum entropy model; In step (7), re-weighting is performed according to the following formula: Where n is the number of all image samples in the image dataset, η i is the confidence of the i-th image sample. The confidence of the image sample in the initial trust set is 1, and the confidence of other image samples is the confidence value calculated when they are divided into the trust set or the noise set; Represents the predicted label distribution of the maximum entropy model output measured by KL divergence With the true label distribution d i The distance between them, c represents the label dimension, are the descriptive degrees of the jth tag in the true tag distribution and the predicted tag distribution, respectively, pq It is an element in the maximum entropy model parameter matrix θ, the matrix θ is c×m, and m represents the image feature dimension; The correlation between the noise sample and the trust sample is expressed by the following formula: Among them, l represents the number of image samples in the filtered noise set, t represents the number of image samples in the filtered trust set, and δ ij represents the similarity between the i-th image sample in the noise set and the j-th image sample in the trust set, σ is the variance of the Gaussian kernel, and x i ∈N k (x j ) represents x i is x j One of the k closest samples, x j ∈N k (x i ) represents x j is x i One of the k closest samples; The final optimization objective for training the maximum entropy model is expressed as: Where λ2 is a balancing parameter that balances the importance of the two terms.

2. The image screening and learning method containing noisy label distribution according to claim 1, characterized in that: The linear model in step (3) is expressed as: s.t.WX T ×1 c =1 t ,WX T ≥0 t×c Where W = [w 1 ,w 2 ,…,w c ] is the parameter matrix of the linear model, X T =[x T1 ,x T2 ,...x Ti ,...x Tt ] represents the image feature matrix of the trust set, D T =[d T1 ,d T2 ,...d Ti ,...d Tt ] represents the label distribution matrix of the trust set, c is the dimension of the label, t is the number of image samples in the trust set, ||·|| F represents the F-norm, λ1 is used to control The importance of the item, 1 c with 1 t are all-one vectors of length c and t, respectively, 0 t×c is a t×c zero matrix.

3. The image screening and learning method containing noisy label distribution according to claim 2, characterized in that: In step (4), the confidence of the image sample is calculated according to the following formula: Among them, x Ki represents the feature of the i-th image sample in the undetermined set K, d Ki represents the label distribution of the i-th image sample in the pending set K, and g is the number of image samples in the pending set.

4. An image classification method using the image screening and learning method containing noisy label distribution according to any one of claims 1 to 3, characterized in that: The features of the image to be tested are extracted and input into the trained maximum entropy model to obtain the predicted label distribution.

5. An image screening and learning device containing noisy label distribution, characterized in that: include: A preprocessing unit, used to obtain an image data set and perform image feature extraction; A noise screening unit is used to select a certain proportion of trust data from the image data set according to the expert's annotation and put it into the trust set, and put all the remaining data into the pending set; use the image samples in the trust set to train the linear model; calculate the confidence of all image samples in the pending set through the linear model; make a decision based on the sample confidence based on the three-way decision method, put the image samples with confidence higher than the set first threshold into the trust set, put the image samples with confidence lower than the set second threshold into the noise set, and keep the rest in the pending set, where the second threshold is less than the first threshold; repeat the linear model training and perform sample division until there are no image samples in the pending set, and all samples are screened and put into the trust set and the noise set; and a maximum entropy model training unit, for re-weighting all image samples using sample confidence, and considering the sample correlation between the noise set and the trust set to train the maximum entropy model; wherein: The re-weighting is performed according to the following formula: Where n is the number of all image samples in the image dataset, η i is the confidence of the i-th image sample. The confidence of the image sample in the initial trust set is 1, and the confidence of other image samples is the confidence value calculated when they are divided into the trust set or the noise set; Represents the predicted label distribution of the maximum entropy model output measured by KL divergence With the true label distribution d i The distance between them, c represents the label dimension, are the descriptive degrees of the jth tag in the true tag distribution and the predicted tag distribution, respectively, pq It is an element in the maximum entropy model parameter matrix θ, the matrix θ is c×m, and m represents the image feature dimension; The correlation between the noise sample and the trust sample is expressed by the following formula: Among them, l represents the number of image samples in the filtered noise set, t represents the number of image samples in the filtered trust set, and δ ij represents the similarity between the i-th image sample in the noise set and the j-th image sample in the trust set, σ is the variance of the Gaussian kernel, and x i ∈N k (x j ) represents x i is x j One of the k closest samples, x j ∈N k (x i ) represents x j is x i One of the k closest samples; The final optimization objective for training the maximum entropy model is expressed as: Among them, λ2 is a balance parameter that balances the importance of the two items.

6. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program implements each step of the method according to any one of claims 1 to 4 when loaded into the processor.