Noise partial mark learning model for open set scene and image processing device
By introducing a picture encoder, a classifier, a partial label classification loss module and a sample reconstruction module into the noise partial label learning model, the open set noise samples are identified and processed, which solves the problem that the existing technology cannot effectively handle the open set noise. , achieving higher classification accuracy and noise identification capabilities.
Patent Information
- Application Number
- CN202410890430.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
Existing noisy partial label learning methods cannot effectively handle the open set noise samples contained in training data and test data, and cannot be applied to real application scenarios.
A noise partial label learning model for open set scenarios is proposed, including a picture encoder, a classifier, a partial label classification loss module, a noise partial label sample identification module and a sample reconstruction module, which are identified through KL divergence and cross entropy loss functions It also processes closed set noise and open set noise to enhance the model's classification accuracy and noise identification capabilities.
This model can identify and process open set samples in the test set while ensuring classification accuracy within the category space, improves the applicability and accuracy of partial label learning, and alleviates the negative impact of noisy data on model training.
Smart Images

Figure CN118864950A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to weakly supervised learning technology in the field of artificial intelligence, and specifically relates to a noise partial labeling learning model and an image processing device for open set scenes. Background Art
[0002] In recent years, artificial intelligence technology has developed rapidly and has been widely used in various scenarios in the real world, such as national defense construction, medical health, e-commerce, etc. Deep learning is an important supporting technology for artificial intelligence, which relies on a large number of accurately labeled samples to complete parameter training. However, in the real world, due to factors such as security, privacy, and sample ambiguity, the cost of obtaining accurate standard samples is high. Therefore, weakly supervised learning methods that rely on incomplete, imprecise, and inaccurately labeled data have received widespread attention in recent years.
[0003] Partial labeling learning is a typical weakly supervised learning problem. Unlike labeling each sample with a unique and accurate label, partial labeling learning assumes that each sample is labeled with a set of candidate labels, of which only one label is the true label. It is much easier to label a sample with a candidate label set than to label it accurately and uniquely, especially when the semantic ambiguity of the sample's feature level is relatively high. For example, the Siberian Husky and the wolf have similar appearance features. For a picture of a Siberian Husky or a wolf, it is difficult for the annotator to accurately identify its unique true label, which will incur high manpower and time costs. It is much easier to label it with a candidate label set that includes both Siberian Husky and wolf.
[0004] The main challenge of partial label learning is how to disambiguate the candidate label set and effectively learn model parameters from weak supervision signals. Existing methods can be divided into non-disambiguation methods, average disambiguation methods, and identification-based disambiguation methods according to different treatment methods of candidate label sets. However, in complex real-world scenarios, the assumption that the true label is in the candidate label set is difficult to guarantee, that is, the true label may appear outside the labeled candidate label set. This type of problem is called noisy partial label learning.
[0005] Some existing noisy partial label learning methods usually assume that the true categories of all samples are in the true label space, ignoring the fact that there may be open set samples in real situations, that is, the true labels of training samples and test samples are not in the model label space.
[0006] So far, although some partial label learning methods have been studied, no model has fully considered the open set noise samples contained in the training data and test data to make it more suitable for real application scenarios. Summary of the invention
[0007] In view of this, the primary purpose of the present invention is to provide a noisy partially labeled learning model for open set scenarios, which effectively trains model parameters from noisy partially labeled data with open sets to obtain a classifier for open set test environments. The model can be effectively trained on partially labeled data with open set noise, while ensuring the classification accuracy in the category space, and can also detect open set samples in the test set.
[0008] To achieve the above purpose, the specific technical solutions adopted by the present invention are as follows:
[0009] A noisy partial label learning model for open set scenarios, the key of which is to include an image encoder, a classifier, a partial label classification loss module, a noisy partial label sample recognition module and a sample reconstruction module, wherein:
[0010] The picture encoder is used to obtain a normally distributed latent space representation according to the input image samples;
[0011] The classifier takes the normally distributed latent space representation generated by the image encoder as input and outputs the classification probability of the sample to each category;
[0012] The partial label classification loss module inputs the sample classification probability generated by the classifier and the prior distribution of the candidate labels, and the output is the loss value;
[0013] The noise partial label sample recognition module divides the training samples into three categories: normal samples, closed set noise, and open set noise according to the sample classification probability and the candidate label set, and updates the candidate label set; for the samples classified as closed set noise, the candidate label set is reversed to convert them into normal samples, and the updated candidate label set is obtained; for the samples classified as open set noise, a random candidate label set is assigned to them, and then they participate in the training;
[0014] The sample reconstruction module decodes the sample into a feature space according to the latent space representation of the sample and the label information of the sample to obtain a reconstructed sample;
[0015] When training the model, the loss function is set to L(x,Y)=L KL (x,Y)+αL rec ; where L rec is the reconstruction loss, L KL(x,Y) is the classifier loss for normal samples and closed-set noise partially labeled data after inverting candidate labels, and α is the weight coefficient; during the training process, the original training data is first used to train the model for a preset number of rounds, and then the noise recognition module is introduced to divide the training set into three categories: normal samples, closed-set noise and open-set noise. Then, the two types of noise are processed separately, that is, the candidate labels of the closed-set noise are inverted, and random candidate labels are assigned to the open-set noise. Finally, the model is trained again using the updated training data.
[0016] Optionally, the image encoder includes a feature extractor and a capsule network module, wherein the feature extractor adopts a convolutional neural network, and the convolutional neural network inputs an image sample x∈R c×h×w , where c is the number of channels, h is the image height, and w is the image width. The feature extractor generates the feature representation of the image sample, and then the capsule network module calculates K mean capsules z with a dimension of d. μ ∈R K×d and K variance capsules of dimension d Among them, K is the total number of categories in the output space, and Respectively represent z μ and The i-th row of . The feature distribution of sample x after encoding is expressed as
[0017] Optionally, the classifier expresses the prior distribution of samples of category k as:
[0018]
[0019] Then, the distance between the posterior probability distribution of the sample and the prior distribution of each category is calculated by KL (Kullback-Leibler) divergence; finally, according to KL divergence, the following is used:
[0020]
[0021] Calculate the classification probability, where: γ is a hyperparameter that controls the difficulty of probability assignment and γ>0, represents the probability that the sample data x output by the classifier belongs to category k, d(C,T k ) is the KL divergence between sample data x and category k, Represents Gaussian distribution The mean matrix of Represents Gaussian distribution The covariance matrix of is a diagonal matrix.
[0022] Optionally, the KL divergence between image sample x and class k is calculated as:
[0023]
[0024] Calculate, where Represents the feature distribution of image sample x after encoding The i-th row C (i) The distribution T corresponding to category k k The i-th row The KL divergence between .
[0025] Optionally, the partial label classification loss module constructs a partial label classification loss based on KL divergence for an image sample x whose candidate label set is Y: Among them, w k Represents the weight of the classification loss on category k, and uses the classification probability of each category of samples generated by the previous round classifier according to Calculate the classification loss and calculate the weight w k .
[0026] Optionally, the following loss is calculated based on the classification probability and the candidate label set for identification of noisy data:
[0027]
[0028] in, It represents the cross entropy loss calculated for sample x with the i-th label in the candidate label set Y as the correct label. The specific calculation method is: p(z=Y i |x) represents the posterior distribution of sample x divided into the i-th category in the candidate label set, Used to indicate whether the candidate label set of image sample x contains candidate label Y i , if included, then otherwise Similarly, represents the cross entropy loss calculated for sample x with the i-th label in the complement of the candidate label set Y as the correct label. According to the above formula and definition, l w (x) represents the minimum cross entropy obtained by sample x on the candidate label, Represents the minimum cross entropy obtained by sample x on non-candidate labels.
[0029] Define the operation argtop x∈D (m|D|,f(x)) means: calculate f(x) corresponding to each image sample x in set D in turn, then sort them from large to small, and return the m|D| samples with the largest f(x). |D| represents the number of samples in set D. Use the following sample selection strategy to divide the clean samples Open set noise samples and closed noise samples
[0030]
[0031] Among them, m1, m2, and m3 correspond to the selection ratios of normal samples, open-set noise samples, and closed-set noise samples, respectively, and are all hyperparameters, and m1+m2+m3=1.
[0032] Optionally, the sample reconstruction module includes a decoder, which uses a convolutional neural network with a symmetrical structure to the feature extractor, and the input of the decoder includes The latent vector sampled in As well as the label information of the image samples, the Gumbel softmax technique is used to replace the argmax operation. Gumbel softmax allows the process of sampling from discrete category distributions in the model to become differentiable, thereby allowing the gradient to be used to update the model parameters during back propagation. The learnable embedding of Then combine the condition with the feature to get z y ∈R Kd ,in, Will Input to the decoder of the conditional variational autoencoder to obtain the reconstructed sample
[0033] The decoder constructs a reconstruction loss based on squared error to train the sample reconstruction module, as follows:
[0034]
[0035] Based on the above model, the present invention also provides an image processing device, which is trained using the noise partial labeling learning model for open set scenes as described above, and uses the trained learning model to reconstruct the image.
[0036] The beneficial effects of the present invention are:
[0037] (1) The present invention simultaneously considers the situation where the training set and the test set in the partial label learning scenario contain open data sets. Compared with the existing partial label learning method, it is closer to the actual application scenario.
[0038] (2) The invention proposes a partial labeling learning method based on variational autoencoder, which adopts an encoder-decoder network structure and reconstructs samples based on categories, thereby enhancing the semantics of sample latent space representation and category distribution.
[0039] (3) Aiming at the problem that open set noise may exist in the training data of partial labeled learning, the present invention proposes a training method suitable for noisy partial labeled data. The method can identify two types of noisy partial labeled data, closed set and open set, and perform corresponding processing according to different situations. The method organically combines the partial labeled learning loss and the KL divergence term of the variational autoencoder, alleviating the negative impact of the semantic ambiguity of partial labeled samples on model training.
[0040] (4) In view of the problem that open set data may exist in the test data during the model inference process, the present invention proposes an open set data identification method by setting classification probability. Thanks to the sample semantics captured by the variational autoencoder, the present invention can simply and accurately identify the open set samples in the test phase. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0042] Figure 1 This is an architecture diagram of a noise partial labeling learning model for open set scenarios provided by the present invention. DETAILED DESCRIPTION
[0043] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the preferred embodiments are only for illustrating the present invention, rather than for limiting the protection scope of the present invention.
[0044] like Figure 1 As shown, the present invention provides a noise partial label learning model for open set scenarios, including an image encoder, a classifier, a partial label classification loss module, a noise partial label sample recognition module and a sample reconstruction module, wherein:
[0045] The picture encoder is used to obtain a normally distributed latent space representation according to the input image samples;
[0046] The classifier takes the normally distributed latent space representation generated by the image encoder as input and outputs the classification probability of the sample to each category;
[0047] The partial label classification loss module inputs the sample classification probability generated by the classifier and the prior distribution of the candidate labels, and the output is the loss value;
[0048] The noise partial label sample recognition module divides the training samples into three categories: normal samples, closed set noise, and open set noise according to the sample classification probability and the candidate label set, and updates the candidate label set; for the samples classified as closed set noise, the candidate label set is reversed to convert them into normal samples, and the updated candidate label set is obtained; for the samples classified as open set noise, a random candidate label set is assigned to them, and then they participate in the training;
[0049] The sample reconstruction module decodes the sample into a feature space according to the latent space representation of the sample and the label information of the sample to obtain a reconstructed sample;
[0050] When training the model, the loss function is set to L(x,Y)=L KL (x,Y)+αL rec ; where L rec is the reconstruction loss, L KL (x,Y) is the classifier loss for normal samples and closed-set noise partially labeled data after inverting candidate labels, and α is the weight coefficient; during the training process, the original training data is first used to train the model for a preset number of rounds, and then the noise recognition module is introduced to divide the training set into three categories: normal samples, closed-set noise and open-set noise. Then, the two types of noise are processed separately, that is, the candidate labels of the closed-set noise are inverted, and random candidate labels are assigned to the open-set noise. Finally, the model is trained again using the updated training data.
[0051] In the specific implementation, the model architecture is built by using Python programming language so that it can run on the mainstream computer system platform. The operating system used in this example is Ubuntu 21.10, requiring the CPU to be Intel (R) Core (TM) i9-10900X CPU @ 3.70GHz, the memory requirement is 8G and above, the hard disk space requirement is 16G and above, the GPU is NVIDIA GeForce 3090, and the video memory is 24G. In this example, the content of the present invention is implemented based on the PyTorch 1.12.1 framework, and all the parameters to be learned in the neural network model are solved.
[0052] The implementation process of the above model mainly includes the following steps:
[0053] 1. Dataset construction
[0054] Taking the Cifar-10 dataset as an example, a partially labeled training set and test set containing an open set are constructed. The Cifar-10 dataset includes 10 categories of images, each category has 6,000 images, and there are 50,000 training images and 10,000 test images in the dataset. The size of each image is 32 pixels × 32 pixels. The training data contains three types of samples, including normal samples, closed set noise, and open set noise. First, the coefficients of the number of samples of the three categories are specified in the initialization stage. Taking 0.8, 0.2 and 0.1 as examples, the original dataset is divided into normal samples and closed set noise samples at a ratio of 0.8, 0.2, and then open set noise samples with a number of 10% of the total samples are added. Finally, the number of normal samples is 40,000, the number of closed set noise samples is 10,000, and the number of open set noise samples is 5,000. Then, the following data generation process is used to generate three types of data: for a sample, a normal biased labeled sample is generated by adding each non-real label to the candidate label set with probability q, where q is regarded as the ambiguity of the biased labeled data set; removing the real label from the normal biased labeled sample will constitute a closed set of noisy biased labeled samples; extracting several images from other data sets, such as Cifar-100, and randomly generating a candidate label set for them in the label space of Cifar-10, can generate an open set of noisy biased labeled samples.
[0055] 2. Training process
[0056] During the training process, the model is first trained for 30 rounds using the original training data. At this point, the model can capture some meaningful features and achieve a certain classification accuracy. Then, the noise recognition module is introduced to divide the training set into three categories: normal samples, closed-set noise, and open-set noise. Next, the two types of noise are processed separately, that is, the candidate labels of the closed-set noise are reversed, and the open-set noise is randomly assigned a label. Finally, the model is trained again using the updated training data.
[0057] The implementation steps of formal training are as follows:
[0058] S1: Input the image into the image encoder and output a distribution This distribution can be viewed as a latent space representation of the image sample x.
[0059] S2: The distribution generated by the encoder in S1 Input to the classifier and output the classification probability of the sample to each category and the KL divergence between the image sample x and each category [d(C,T1),d(C,T2),…,d(C,T K ).
[0060] S3: Classification probability of each category of samples generated by the classifier in step S2 Prior distribution of candidate labels The KL divergence between the image sample x and each class [d(C,T1),d(C,T2),…,d(C,T K ) is input to the partial label classification loss module and the output is the loss value.
[0061] S4: The classification probabilities of the samples generated by the classifier in step S2 are Input to the noise partial label sample recognition module to re-divide the clean samples Open set noise samples and closed noise samples
[0062] S5: Distribution generated by the encoder The sample is input into the sample reconstruction module with the candidate label information of the sample, decoded into the feature space, and the reconstructed sample is obtained. The difference between the sample and the reconstructed sample is calculated as the reconstruction loss.
[0063] In step S1, the picture encoder encodes the picture as follows:
[0064] S11: The image is input to Resnet as a feature extractor to generate feature representation.
[0065] S12: Feature representation is passed through a probabilistic capsule network with d outputs to calculate the encoded feature distribution And calculate the mean z μ ∈R K×d and variance For an image sample x, the encoded distribution is:
[0066]
[0067] In step S2, the calculation process of classification probability is as follows:
[0068] S21: Assume that the prior distribution p(z|y=k) of samples of category k follows a Gaussian distribution The mean is The covariance matrix is a diagonal matrix In order to simplify the representation, the shape of the mean matrix is changed to be expressed as And will The Kd diagonal elements of are transformed into That is, the prior distribution of category k samples can be expressed as:
[0069] S22: The distance between the posterior probability distribution of the sample and the prior distribution of each category is calculated by KL (Kullback-Leibler) divergence. For example, the KL divergence between the image sample x and the category k is calculated as follows:
[0070]
[0071] in, Represents the characteristic distribution of sample x after encoding The i-th row C (i) The distribution T corresponding to category k k The i-th row The KL divergence between .
[0072] S23: The smaller the KL divergence between the posterior probability distribution of the sample and the prior distribution of category k, the greater the probability of belonging to category k. Therefore, the classification probability is calculated according to the following formula:
[0073]
[0074] Among them, γ is a hyperparameter that controls the difficulty of probability allocation, requiring γ>0. Output represents the probability that the sample data x output by the classifier belongs to category k, d(C,T k ) is the KL divergence between sample data x and category k, Represents Gaussian distribution The mean matrix of Represents Gaussian distribution The covariance matrix of is a diagonal matrix.
[0075] In step S3, the partial label classification loss calculation process is as follows:
[0076] S31: First, calculate the weight w of the classification loss on any category k based on the classification probability of the previous round k :
[0077]
[0078] S32: The KL divergence between sample x in S22 and each class [d(C,T1),d(C,T2),…,d(C,T K ) and w calculated in step S31 k , for sample x with candidate label set Y, construct the following partial label classification loss based on KL divergence:
[0079]
[0080] In step S4, the noise partial label sample identification module divides the samples into normal samples, closed set samples and open set samples in the following process:
[0081] S41: Calculate the following loss based on the input classification probability and candidate label set for identification of noisy data:
[0082]
[0083] in, It represents the cross entropy loss calculated for sample x with the i-th label in the candidate label set Y as the correct label. The specific calculation method is: p(z=Y i |x) represents the posterior distribution of sample x divided into the i-th category in the candidate label set, Used to indicate whether the candidate label set of image sample x contains candidate label Y i , if included, then otherwise Similarly, represents the cross entropy loss calculated for sample x with the i-th label in the complement of the candidate label set Y as the correct label. According to the above formula and definition, l w (x) represents the minimum cross entropy obtained by sample x on the candidate label, Represents the minimum cross entropy obtained by sample x on non-candidate labels.
[0084] S42: define operation argtop x∈D (m|D|,f(x)) means: calculate f(x) corresponding to each image sample x in set D in turn, then sort them from large to small, and return the m|D| samples with the largest f(x). |D| represents the number of samples in set D. Use the following sample selection strategy to divide the clean samples Open set noise samples and closed noise samples
[0085]
[0086] Among them, m1, m2, and m3 correspond to the selection ratios of normal samples, open-set noise samples, and closed-set noise samples, respectively, and are all hyperparameters, and m1+m2+m3=1.
[0087] For samples classified as closed-set noise, their true labels exist in the complement of the candidate label set. Therefore, reversing their candidate label sets can convert them into normal samples and obtain the updated candidate label set Y′. For samples classified as open-set noise, candidate label sets are randomly generated for them and continue to be used for model training.
[0088] In step S5, the calculation process of the image reconstruction module is as follows:
[0089] S51: From the posterior probability distribution The latent vector z∈R is sampled in K×d As one of the inputs of the decoder. Use the label with the highest classification probability in the candidate label set Y of x Approximate the true label and obtain the label Representation.
[0090] S52: Combine conditions and features to get z y ∈R Kd ,in, Will Input into the decoder of the conditional variational autoencoder to obtain the reconstructed sample
[0091] S53: Construct a reconstruction module based on square error reconstruction loss training, as follows:
[0092]
[0093] 3. Inference process
[0094] For the test sample x, it first obtains the posterior distribution through the encoder, and then calculates its classification probability by calculating the KL divergence between the posterior distribution and the label part. An open set data recognition threshold is set, which is a hyperparameter. If the maximum value in the classification probability vector of the sample is less than the threshold, it is judged as an open set sample. For non-open set samples, the label with the largest classification probability is as the final predicted label.
[0095] The model configuration parameters used in the example are shown in Table 1.
[0096] Table 1 Model configuration parameter settings
[0097]
[0098] In order to evaluate the performance of the model, the present invention constructs the following training set, test set without open set, and open set test set, and conducts relevant experiments. The open set test set contains 40% of open set samples.
[0099] The sample division accuracy of the method and device on the training data set and the classification accuracy on the test set are shown in Table 2. It can be seen that the recognition accuracy of the model for normal samples and open-set noise samples exceeds 95%, and the recognition accuracy of the model for closed-set noise samples also reaches more than 87%, indicating that the method of the present invention can effectively distinguish normal samples from noise samples during the training process, and can effectively divide closed-set noise samples and open-set noise samples.
[0100] Table 2: The accuracy of the model in classifying the three types of training samples at the end of training
[0101]
[0102] In addition, the classification accuracy of the present invention is compared with the most advanced partial label learning algorithm DPLL [Dong-Dong Wu, Deng-Bao Wang, and Min-Ling Zhang. 2022. Revisiting consistency regularization for deep partial label learning. In Proceedings of the International Conference on Machine Learning. PMLR, 24212–24225] on test data without open set data, and the results are shown in Table 3. It can be seen that the accuracy of DPLL is significantly improved compared with the comparison method. This shows that the method of the present invention can effectively alleviate the impact of noise data on model training by identifying and processing noise samples.
[0103] Table 3 Classification accuracy of samples on the test set
[0104]
[0105] In addition, in order to verify the ability of the method of the present invention to identify open set test data, 40% of the open set data was introduced in the test phase, and the open set test sample recognition was performed according to the set classification probability threshold. The recall rate and precision rate when the threshold was set to 0.6, 0.7, 0.8 and 0.9 are shown in Table 4.
[0106] Table 4. Recognition performance of open set test samples
[0107]
[0108] As can be seen from Table 4, by setting a reasonable classification probability threshold, we can achieve an open set sample recognition accuracy of about 85% and an open set sample recall rate of about 90%. In particular, when the number of open set noise samples in the training data is 60% of the sum of the number of normal samples and closed set noise samples, the recognition recall rate of the open set test data can reach more than 97%.
[0109] Through the above embodiments, it can be seen that the noisy partial-label learning model for open set scenarios proposed in the present invention can effectively identify two types of noisy partial-label data, closed set and open set, alleviate the negative impact of the semantic ambiguity of partial-label samples on model training, and can effectively realize the image reconstruction function in the image processing device.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A noisy partial labeling learning model for open set scenarios, characterized by: It includes an image encoder, a classifier, a partial label classification loss module, a noise partial label sample recognition module and a sample reconstruction module, among which: The picture encoder is used to obtain a normally distributed latent space representation according to the input image samples; The classifier takes the normally distributed latent space representation generated by the image encoder as input and outputs the classification probability of the sample to each category; The partial label classification loss module inputs the sample classification probability generated by the classifier and the prior distribution of the candidate labels, and the output is the loss value; The noise partial label sample recognition module divides the training samples into three categories: normal samples, closed set noise, and open set noise according to the sample classification probability and the candidate label set, and updates the candidate label set; for the samples classified as closed set noise, the candidate label set is reversed to convert them into normal samples, and the updated candidate label set is obtained; for the samples classified as open set noise, a random candidate label set is assigned to them, and then they participate in the training; The sample reconstruction module decodes the sample into a feature space according to the latent space representation of the sample and the label information of the sample to obtain a reconstructed sample; When training the model, the loss function is set to L(x,Y)=L KL (x,Y)+αL rec ; where L rec is the reconstruction loss, L KL (x,Y) is the classifier loss for normal samples and closed-set noise partially labeled data after inverting candidate labels, and α is the weight coefficient; during the training process, the original training data is first used to train the model for a preset number of rounds, and then the noise recognition module is introduced to divide the training set into three categories: normal samples, closed-set noise and open-set noise. Then, the two types of noise are processed separately, that is, the candidate labels of the closed-set noise are inverted, and random candidate labels are assigned to the open-set noise. Finally, the model is trained again using the updated training data.
2. The noisy partial labeling learning model for open set scenarios according to claim 1, characterized in that: The image encoder includes a feature extractor and a capsule network module, wherein the feature extractor uses a convolutional neural network, which inputs an image sample x∈R c×h×w , where c is the number of channels, h is the image height, and w is the image width. The feature extractor generates the feature representation of the image sample, and then the capsule network module calculates K mean capsules z with a dimension of d. μ ∈R K×d and K variance capsules of dimension d Among them, K is the total number of categories in the output space, and Respectively represent z μ and The i-th row of the image sample x is expressed as 3. The noisy partial labeling learning model for open set scenarios according to claim 2 is characterized in that: The classifier expresses the prior distribution of class k samples as: Then, the distance between the posterior probability distribution of the sample and the prior distribution of each category is calculated by KL (Kullback-Leibler) divergence; finally, according to KL divergence, the following is used: Calculate the classification probability, where: γ is a hyperparameter that controls the difficulty of probability assignment and γ>0, represents the probability that the image sample x output by the classifier belongs to category k, d(C,T k ) is the KL divergence between image sample x and category k, Represents Gaussian distribution The mean matrix of Represents Gaussian distribution The covariance matrix of is a diagonal matrix.
4. The noise partial labeling learning model for open set scenarios according to claim 3 is characterized in that: The KL divergence between image sample x and category k is as follows: Calculate, where Represents the feature distribution of image sample x after encoding The i-th row C (i) The prior distribution T corresponding to category k k The i-th row The KL divergence between .
5. The noise partial labeling learning model for open set scenarios according to claim 3 is characterized in that: The partial label classification loss module constructs a partial label classification loss based on KL divergence for the image sample x with the candidate label set Y: Among them, w k Represents the weight of the classification loss on category k, and uses the classification probability of each category of samples generated by the previous round classifier according to Calculate the classification loss and calculate the weight w k .
6. The noisy partial labeling learning model for open set scenarios according to any one of claims 1 to 5, characterized in that: The following loss is calculated based on the classification probability and the candidate label set for the recognition of noisy data: in, It represents the cross entropy loss calculated by taking the i-th label in the candidate label set Y as the correct label for the image sample x. The specific calculation method is: p(z=Y i |x) represents the posterior distribution of image sample x divided into the i-th category in the candidate label set, Used to indicate whether the candidate label set of image sample x contains candidate label Y i , if included, then otherwise Similarly, represents the cross entropy loss calculated for the image sample x with the i-th label in the complement of the candidate label set Y as the correct label, l w (x) represents the minimum cross entropy obtained by image sample x on the candidate label, Represents the minimum cross entropy obtained by image sample x on non-candidate labels; Define the operation argtop x∈D (m|D|,f(x)) means: calculate f(x) corresponding to each image sample x in set D in turn, then sort them from large to small, and return the m|D| samples with the largest f(x). |D| represents the number of samples in set D. Use the following sample selection strategy to divide the clean samples Open set noise samples and closed noise samples Among them, m1, m2, and m3 correspond to the selection ratios of normal samples, open-set noise samples, and closed-set noise samples, respectively, and are all hyperparameters, and m1+m2+m3=1.
7. The noisy partial labeling learning model for open set scenarios according to claim 6, characterized in that: The sample reconstruction module includes a decoder, which uses a convolutional neural network with a symmetric structure with the feature extractor. The input of the decoder includes a posterior probability distribution The latent vector sampled in And the label information of the image sample, the label information uses the label corresponding to the maximum classification probability of the sample, expressed as Label The learnable embedding of Then combine the condition with the feature to get z y ∈R Kd ,in, Will Input to the decoder of the conditional variational autoencoder to obtain the reconstructed sample The decoder constructs a reconstruction loss based on squared error to train the sample reconstruction module, as follows:
8. An image processing device, characterized in that: The noise partial labeling learning model for open set scenes described in any one of claims 1 to 7 is used for training, and the trained learning model is used for image reconstruction.
Citation Information
Patent Citations
Self-supervised distributed internal and external noise identification algorithm
CN115618236A
Weak supervision multi-label distribution external sample classification detection method
CN116452876A
Robust learning method based on label with closed set noise and open set noise
CN116757261A
Image processing method and device, computer equipment and storage medium
CN116955686A
Noise-containing label image identification method and system fusing partial label and negative learning
CN117557886A
Cited By
Unbalance mark distribution learning method based on decoupling operation
CN119962705A
Unbalanced Label Distribution Learning Method Based on Decoupled Operations
CN119962705B
Clothing inspection method and apparatus, electronic device, and storage medium
WO2026108050A1
