A noisy labeled image sample screening learning method and system based on oversampling strategy

By combining oversampling strategies and semi-supervised learning methods, and using the Jensen-Shannon Divergence loss function to filter samples and learn fully, the problem of insufficient utilization of feature information of unlabeled samples in existing technologies is solved, and the performance of deep neural networks in noisy environments is improved.

CN117421657BActive Publication Date: 2024-11-01JIANGSU OPEN UNIVERSITY (THE CITY VOCATIONAL COLLEGE OF JIANGSU)
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311415172.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2024-11-01
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

Existing technologies cannot fully utilize the feature information of unlabeled samples when processing noisy labeled data, which limits the performance improvement of deep neural network models.

Method used

An oversampling strategy is adopted, combining long-tail learning and semi-supervised learning methods. Labeled and unlabeled samples are filtered through the Jensen-Shannon Divergence loss function, and oversampling technology is used to enable the DNN model to learn fully from the unlabeled samples.

Benefits of technology

It improves the model's performance in high-noise environments, achieving faster convergence and better classification results, especially on real noisy datasets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117421657B_ABST
    Figure CN117421657B_ABST
Patent Text Reader

Abstract

The present invention relates to a noisy labeled image sample screening learning method and system based on an oversampling strategy, comprising the following steps: step 1, based on the original noisy labeled data set, pre-training a DNN model with basic classification performance using a joint loss function; step 2, after the pre-training, iteratively calculating the JSD loss for the samples in the original noisy data set, uniformly screening based on the JSD loss, and outputting the labeled subset and unlabeled subset of the DNN model; step 3, using a semi-supervised technology combined with a comparative learning method, based on the labeled subset and unlabeled subset output in step 2, semi-supervised robustness training is performed on the DNN model, wherein the oversampling technology is used to enable the DNN model to fully learn the samples of the unlabeled subset. The present invention can maximize the use of the feature representation information carried by the unlabeled samples, and the model of the present invention can converge faster and achieve better performance under high noise rates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of artificial intelligence and computer vision, and in particular to a noisy labeled image sample screening learning method and system based on an oversampling strategy. Background Art

[0002] Deep Neural Networks (DNN) have a great demand for high-quality labeled training data. The collection cost of such samples is expensive and inaccurate labels (noise labels) are still inevitably introduced. However, DNN models under traditional training methods are very easy to overfit noisy labels, resulting in a sharp drop in performance. In order to solve the problem of DNN robust training under noisy labels, scholars at home and abroad proposed Learning with Noisy Labels (LNL), among which the sample screening learning method has become the mainstream method in the field of LNL due to its advanced performance.

[0003] Han et al. (Co-teaching: Robust Training of Deep Neural Networks with Extremely Noisy Labels) from the University of Technology Sydney used two networks to alternately filter samples with clean labels based on the small loss criterion. However, it did not fully utilize the feature information contained in the noise label samples remaining after filtering, resulting in low performance. Zhang et al. (CJC-net: A cyclical training method with joint loss and co-teaching strategy net for deep learning under noisy labels) from the University of Shanghai for Science and Technology used regularization terms and cyclic adjustment of learning rate strategies based on the Co-teaching method proposed by Han et al. to reduce the impact of noise labels. Although the performance of this method is significantly better than that of Han et al.'s Co-teaching method, it uses a fixed ratio to filter samples and still does not use noise label samples, resulting in low performance improvement and poor performance on real noise datasets. Li Shaoyuan et al. (“Robust learning method based on closed-set noise and open-set noise labels”) proposed a two-stage sample screening learning method. First, the selection criteria of clean samples were determined based on the pre-trained model and the corrected labels of the model were recorded. Then, some noise label samples were integrated into known categories for training based on the Class expansion method. Although this method has achieved certain results, the training process is relatively complicated. Feng Yuanjing et al. (“A fiber segmentation method based on co-teaching and noise label learning”) applied co-teaching technology to the field of fiber segmentation and made certain progress, but this method belongs to the application of noisy sample screening learning method. Liu Zhenbing et al. (“A classification method for multi-sensor denoising”) used graph methods to construct feature information and trained classifiers with feature perception capabilities to screen noise label samples, but this method requires iterative training of multiple classifiers, which is time-consuming. Li et al. (“DivideMix: Learning with Noisy Labels as Semi-supervised Learning”) introduced semi-supervised learning (SSL) into the field of noisy label screening learning. They divided the training data into labeled and unlabeled sets through a mixed Gaussian model, and then used the existing SSL method to train on the two divided sets to improve the robustness and accuracy of the model. Although this method is the first time that SSL has been introduced into the LNL field, it is sensitive to hyperparameter settings and has low performance under high noise ratios, which hinders its further application.Based on the method of Li et al., Karim et al. ("UNICON: Combating label noise through uniform selection and contrastive learning") used Jensen-Shannon divergence (JSD) to divide the training data more evenly. They still used semi-supervised learning methods to train DNN, but in the training, the method applied unsupervised contrastive learning methods to the selected unlabeled set for feature learning. However, the method cannot make full use of unlabeled samples, resulting in room for performance improvement. The sample screening and learning methods proposed by Li et al. and Karim et al. are both one-step frameworks, that is, sample screening and semi-supervised learning are performed in the same iteration round (epoch), while Cordeiro et al. proposed a two-step sample screening and learning framework based on the method of Li et al. The framework decouples sample partitioning and semi-supervised learning and divides them into two steps. In the first step, only clean samples are selected, while in the second step, semi-supervised training is performed based on the selected samples to improve performance. Although this method has made some progress over the method of Li et al., it has poor labels for real noise data sets and data sets with a large number of categories. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention proposes a noisy labeled image sample screening and learning method and system based on an oversampling strategy. This method aims to address the problem that the existing single-step sample screening and learning methods cannot fully utilize the feature information carried by unlabeled samples because the number of labeled samples after division is much smaller than the number of unlabeled samples. This method introduces the oversampling technology in long-tail learning and combines it with the noisy labeled sample screening and learning method, which can maximize the utilization of the feature representation information carried by the unlabeled samples to improve the model performance.

[0005] To achieve the above purpose, the technical solution provided by the present invention is:

[0006] The present invention is achieved through the following technical solutions:

[0007] A noisy labeled image sample screening learning method based on an oversampling strategy includes the following steps:

[0008] Step 1: Based on the original noisy label data set, a deep neural network (DNN) model with basic classification performance is pre-trained using a joint loss function;

[0009] Step 2: After pre-training, iteratively calculate the JSD (Jensen–Shannon Divergence) loss for the samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model;

[0010] Step 3: Using semi-supervised learning (SSL) technology combined with contrastive learning methods, the DNN model is trained for semi-supervised robustness based on the labeled and unlabeled subsets output in step 2. Oversampling technology is used to enable the DNN model to fully learn the samples of the unlabeled subset.

[0011] In order to optimize the above technical solutions, the specific measures / limitations taken also include:

[0012] At least two DNN models with basic classification performance are pre-trained, and at least one of the DNN models is used to calculate the JSD loss of samples in the original noise data set after being trained in steps 1 to 3, so that the calculated JSD loss result is combined with the JSD loss calculation result of other DNN models in step 2 to perform uniform screening based on the JSD loss, thereby outputting labeled subsets and unlabeled subsets of other DNN models to reduce probability bias.

[0013] The number of samples in the unlabeled subset is The number of labeled subset samples is in is the unlabeled subset for model m, is the labeled subset for model m.

[0014] In step 1, at least two DNN models with the same structure are pre-trained, where the serial number of one DNN model is m=1 and the serial number of the other DNN model is m=2, to obtain at least two DNN models with basic classification performance;

[0015] In step 2, after the pre-training is completed, at the beginning of each iteration, the original noise dataset is trained based on the two DNN models trained in the previous iteration. Each sample in According to formula (1), the corresponding JSD loss d is calculated i :

[0016]

[0017] in and The DNN models with serial numbers m=1 and m=2 are respectively The predicted value of the normalized exponential function (softmax) function; based on the JSD loss of each sample, the corresponding JSD is sorted according to the category j∈{1,2,...,c} to which the original label of the sample belongs according to formula (2):

[0018]

[0019] where d (j) is a set of consistency metrics of samples of category j sorted in ascending order based on JSD, sort() is a sorting function, Is an indicator function: if and only if the current sample The one-hot form of the noise label The corresponding j-th category Equal to 1, when the current sample noise label belongs to the jth category, the function returns 1, otherwise it returns 0;

[0020] Then based on the sorted consistency set d (j) , j∈{1,2,…,c}, uniform screening is performed according to formula (3), and the consistency set d corresponding to any j∈{1,2,…,c} category is selected. (j) Select the first R samples from the labeled set D l :

[0021]

[0022] Where c is the number of data set categories and R is the number of filters, which is determined by formula (4):

[0023]

[0024] Where n is the total number of samples in the dataset, d avg and d min are the mean and minimum values ​​of the JSD loss of all samples, τ and d respectively. μ They are preset fixed hyperparameters respectively; then the filtered samples in the original data set are placed into the unlabeled subset

[0025] In step 3, the overall objective loss function L for semi-supervised robust training is tot for:

[0026]

[0027] Where L cl is a typical unsupervised contrast loss function; L ssl is the semi-supervised training loss, which consists of three parts, among which L ce is the cross entropy loss, L uis the absolute mean loss used to make the predicted value of the unlabeled sample consistent with its pseudo label, L reg It is a common regularization term in noisy label learning, which is used to ensure that the sample prediction values ​​of the current batch remain uniformly distributed; assuming that the current iteration number is t and the total number of training iterations is T tot , the number of unlabeled subset samples used for training model m is The number of labeled subset samples is

[0028] In step 3, the number of semi-supervised robust training samples in each batch (batch size) is b, and the total number of iterations of the data loader with the labeled set is iter cont = 0; in the current iteration, when all samples in the data loader of the labeled subset have been trained, its iteration number iter1 is accumulated to the total iteration number iter of the labeled set data cont On, that is If satisfied Then reset the data loader iteration index iter1 of the labeled subset to 0, but do not reset the loader iteration index iter2 of the unlabeled subset, unless all the samples contained in the unlabeled subset are iterated, then reset the loader iteration index iter2 of the unlabeled subset to 0; perform semi-supervised robust training according to the above process, only when When , stop the training of the DNN model.

[0029] The present invention also protects a noisy labeled image sample screening learning system based on an oversampling strategy, comprising:

[0030] The pre-training module is used to pre-train a DNN model with basic classification performance based on the original noisy label dataset using a joint loss function;

[0031] The screening module is used to iteratively calculate the JSD loss for the samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model;

[0032] The semi-supervised robustness training module is used to utilize SSL technology combined with contrastive learning methods to perform semi-supervised robustness training on the DNN model based on labeled subsets and unlabeled subsets. Oversampling technology is used to encourage the DNN model to fully learn the samples of the unlabeled subset.

[0033] The present invention also protects an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the above-mentioned noisy labeled image sample screening and learning method based on the oversampling strategy is implemented.

[0034] The present invention also protects a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the above-mentioned noisy labeled image sample screening learning method based on the oversampling strategy.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention proposes a noisy labeled image sample screening learning method and system based on an oversampling strategy. Compared with various existing single-step sample screening methods, the present invention can learn more feature representation information carried by unlabeled samples, thereby achieving better performance and maximizing the use of feature representation information carried by unlabeled samples to improve model performance.

[0037] Through the solution of the present invention, the DNN model can converge faster and achieve better performance under high noise rates. At the same time, the solution of the present invention has achieved significant advancement in the classification of real noise data, and has good application in data set collection and DNN model training in actual scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Flowchart of the noisy labeled image sample screening learning method based on oversampling strategy of the present invention.

[0039] Figure 2 The specific process of the oversampling strategy of the present invention. DETAILED DESCRIPTION

[0040] The above contents of the present invention are further described in detail below in the form of embodiments, but this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the above contents of the present invention belong to the scope of the present invention.

[0041] In one embodiment, the present invention provides a noisy labeled image sample screening learning method based on an oversampling strategy, comprising the following steps:

[0042] Step 1: Based on the original noisy label dataset, a DNN model with basic classification performance is pre-trained using a joint loss function;

[0043] Step 2: After pre-training, iteratively calculate the JSD loss for the samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model;

[0044] Step 3: Using semi-supervised learning (SSL) technology combined with contrastive learning methods, the DNN model is trained for semi-supervised robustness based on the labeled and unlabeled subsets output in step 2. Oversampling technology is used to enable the DNN model to fully learn the samples of the unlabeled subset.

[0045] The present invention pre-trains at least two DNN models with basic classification performance, and uses at least one of the DNN models for calculating the JSD loss of samples in the original noise data set after training in steps 1 to 3, so that the calculated JSD loss result is combined with the JSD loss calculation result of other DNN models in step 2 to perform uniform screening based on the JSD loss, thereby outputting labeled subsets and unlabeled subsets of other DNN models to reduce probability deviation.

[0046] The present invention is further described in detail below in conjunction with specific embodiments:

[0047] A noisy labeled image sample screening learning method based on an oversampling strategy includes the following steps:

[0048] Step 1: Based on the original noisy label data set, two DNN models with the same structure are pre-trained using the joint loss function, with the serial numbers m=1 and m=2 respectively, to obtain two DNN models with basic classification performance;

[0049] Specifically: Assume that the original noise label dataset is Where n is the total number of samples in the dataset, y i ∈{0,1} c Input image data x i The real label, is a one-hot matrix, is the noise label of the training sample, c is the number of data set categories, and based on the original noise label data set using the existing joint loss function Pre-train two DNN models; (m = {1, 2}), the total number of pre-training iterations is T w .

[0050] Step 2: After the pre-training is completed, at the beginning of each iteration (epoch), the two DNN models trained in the previous epoch are used to train the original noise dataset. Calculate the JSD loss for each sample in ; Based on the JSD loss of each sample, uniform screening is performed according to the category to which the original label of the sample belongs, and finally a labeled subset used by the DNN model with sequence number m=1 in the current epoch is divided. and an unlabeled subset

[0051] Specifically, after the pre-training is completed, at the beginning of each iteration (epoch), the two DNN models trained in the previous iteration are trained on the original noise dataset. Each sample in According to formula (1), the corresponding JSD loss d is calculated i :

[0052]

[0053] in and The DNN with serial numbers m=1 and m=2 for samples The predicted value after the softmax function; Based on the JSD loss of each sample, the corresponding JSD is sorted according to the category j∈{1,2,…,c} to which the original label of the sample belongs according to formula (2):

[0054]

[0055] where d (j) is a set of consistency metrics of samples of category j sorted in ascending order based on JSD, sort() is a sorting function, Is an indicator function: if and only if the current sample The one-hot form of the noise label The corresponding j-th category is equal to 1, that is, when the current sample noise label belongs to the jth category, the function returns 1, otherwise it returns 0; and sort() is a sorting algorithm in ascending order. Then based on the sorted consistency set d (j) , j∈{1,2,…,c}, the present invention performs uniform screening according to formula (3), that is, from the consistency set d corresponding to any j∈{1,2,…,c} category (j) Select the first R samples from the labeled set D l :

[0056]

[0057] Where R is the number of screenings, determined by formula (4):

[0058]

[0059] where d avg and d min are the mean and minimum values ​​of the JSD loss of all samples, τ and d respectively. μ They are preset fixed hyperparameters respectively; then the filtered samples in the original data set are placed into the unlabeled subset

[0060] Step 3: Use the existing SSL technology combined with the contrastive learning method to perform semi-supervised robust training on the DNN with sequence number m=1 based on the two subsets divided in step 2. Assume that the number of unlabeled subset samples is The number of labeled subset samples is The number of samples in each batch is b, and the total number of iterations of the data loader with the labeled set is iter cont =0; because usually Therefore, in the training, the present invention uses oversampling technology to prompt the model to fully learn the samples of the unlabeled subset. i) In the current epoch, when all the samples in the data loader of the labeled subset have been trained, the number of iterations is increased. r 1 is added to the total number of iterations of the marked set data iter cont Up, that is, iter cont +=iter1, if it satisfies The present invention resets the data loader iter1=0 for the labeled subset, but does not reset the loader iteration index iter2 for the unlabeled subset, unless it resets iter2=0 after all iterations of the samples it contains are completed; ii) then continues to perform semi-supervised robust training according to the process of i), only when When , stop the training of DNN with m=1;

[0061] Specifically, the existing SSL technology is combined with the framework of contrastive learning methods, such as the UNICON method, and the DNN with sequence number m=1 is semi-supervised robust training based on the two subsets divided in step 2. The overall objective loss function L of the semi-supervised robust training is tot for:

[0062]

[0063] Where L cl is a typical unsupervised contrast loss function, L ce is the cross entropy loss, L u is the absolute mean loss used to make the predicted value of the unlabeled sample consistent with its pseudo label, L reg It is a common regularization term in noisy label learning, which is used to ensure that the sample prediction values ​​of the current batch remain uniformly distributed. Assume that the current epoch = t, and the total number of training epochs is T tot , the number of samples in the unlabeled subset is The number of labeled subset samples is The number of semi-supervised robust training samples in each batch (batch size) is b, and the total number of iterations of the data loader with the labeled set is iter cont = 0, the current iteration number of the data loader with the marked setite r 1=0; In the training, the present invention uses oversampling technology to force the model to fully learn the samples of the unlabeled subset: i) In the current epoch, when all the samples in the data loader of the labeled subset have been trained, the number of iterations is ite r1 is added to the total number of iterations of the marked set data iter cont On, that is If satisfied The present invention resets the data loader iter1=0 for the labeled subset, but does not reset the loader iteration index iter2 for the unlabeled subset, unless it resets iter2=0 after all iterations of the samples it contains are completed; ii) then continues to perform semi-supervised robust training according to the process of i), only when When , stop the training of DNN with m=1; see the attached Figure 1 .

[0064] Step 4: Based on the DNN model with the sequence number m=2 after the previous epoch training and the DNN model with the sequence number m=1 updated in step 3, the present invention performs the same original noise data set. Calculate the JSD loss for each sample in ; Based on the JSD loss of each sample, uniform screening is performed according to the category to which the original label of the sample belongs, and finally a labeled subset used by the DNN with sequence number m=2 in the current epoch is divided. and an unlabeled subset

[0065] Specifically, the present invention is based on the DNN model with sequence number m=2 after the previous epoch training and the DNN model with sequence number m=1 updated in step 3, for the same original noise data set. For each sample in , the JSD loss d is calculated according to formula (1). i ; Based on the JSD loss of each sample, the corresponding JSD is sorted according to the category j∈{1,2,…,c} to which the original label of the sample belongs according to formula (2); then based on the sorted consistency set d (j) , j∈{1,2,…,c}, the present invention performs uniform screening according to formula (3), that is, from the inconsistency set d corresponding to any j∈{1,2,…,c} category (j) Select the first R samples from the labeled set D l , and finally put the filtered samples in the original data set into the unlabeled subset, that is

[0066] Step 5: Use the existing SSL technology combined with the contrastive learning method to perform semi-supervised robust training on the DNN with sequence number m=1 based on the two subsets divided in step 2. Assume that the number of unlabeled subset samples is The number of labeled subset samples is The training size of each batch is still b, and the total number of iterations of the data loader with the labeled set is iter cont=0; Similarly, in the training, the present invention uses oversampling technology to force the model m=2 to fully learn the samples of the unlabeled subset. In the current epoch, when all the samples in the data loader of the labeled subset have been trained, the number of iterations iter1 is accumulated to the total number of iterations iter of the labeled set data. cont Up, that is, iter cont +=iter1, if it satisfies The present invention resets the data loader iter1=0 for the labeled subset, but does not reset the loader iteration index iter2 for the unlabeled subset, unless it contains all samples and all iterations are completed, then iter2r=0 is reset; ii) then continue to perform semi-supervised robust training according to the process of i), only when When , stop the training of DNN with m=2;

[0067] Specifically, the existing SSL technology is combined with the contrastive learning method, namely the UNICON method, to perform semi-supervised robust training on the DNN with sequence number m=2 based on the two subsets divided in step 2. The overall objective loss function L tot As described in formula (5); similarly, if the current epoch = t, the total number of training epochs is T tot , the number of unlabeled subset samples of DNN with m=2 is The number of labeled subset samples is The training size of each batch is b, and the total number of iterations of the data loader with the labeled set is iter cont = 0, the current iteration number of the data loader of the labeled set iter1 = 0; in the training, the present invention uses oversampling technology to prompt the model to fully learn the samples of the unlabeled subset. i) In the training of the current model, when all the samples in the data loader of the labeled subset have been trained, its iteration number iter1 is accumulated to the total iteration number iter of the labeled set data. cont Up, that is, iter cont +=iter1, if it satisfies The present invention resets the data loader iter1=0 for the labeled subset, but does not reset the loader iteration index iter2 for the unlabeled subset, unless it resets iter2=0 after all iterations of the samples it contains are completed; ii) then continues to perform semi-supervised robust training according to the process of i), only when When , stop the training of DNN with m = 2; see the attached for the specific process Figure 1 .

[0068] Step 6: When both DNNs complete the semi-supervised robustness training, end the training of the current epoch. If the current epoch round t<T tot , then go to step 2 to train the next epoch, where Ttot is the total number of training epochs.

[0069] Specifically: Determine if the current epoch calculator t does not satisfy t<T tot , the training ends; otherwise, go to step 2 to continue the training of the next epoch, and t+=1.

[0070] In another embodiment, the present invention proposes a noisy labeled image sample screening learning system based on an oversampling strategy, characterized in that it includes:

[0071] The pre-training module is used to pre-train a DNN model with basic classification performance based on the original noisy label dataset using a joint loss function;

[0072] The screening module is used to iteratively calculate the JSD loss for the samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model;

[0073] The semi-supervised robustness training module is used to utilize SSL technology combined with contrastive learning methods to perform semi-supervised robustness training on the DNN model based on labeled subsets and unlabeled subsets. Oversampling technology is used to encourage the DNN model to fully learn the samples of the unlabeled subset.

[0074] In another embodiment, the present invention proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the noisy labeled image sample screening and learning method based on the oversampling strategy as described above is implemented.

[0075] In another embodiment, the present invention proposes a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the noisy labeled image sample screening learning method based on the oversampling strategy as described above.

[0076] In the embodiments disclosed in the present application, the computer storage medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. The computer storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of computer storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0077] In summary, the present invention first pre-trains two DNN models with the same structure based on the joint loss function. After the pre-training, for the DNN model with m=1, the present invention first calculates the original noise data set using formula (1) Each sample The JSD loss d i , and according to formula (3), the noise label samples are uniformly screened based on the JSD loss value of each sample, thereby dividing the original data set into a labeled subset and an unlabeled subset Then, based on the loss function of formula (5), the oversampling strategy and SSL method are used to encourage the model to learn more feature information carried by unlabeled samples; after the training of the DNN model with m=1 in the current epoch is completed, for the DNN model with m=2, the present invention first uses formula (1) to calculate the original noise data set Each sample The JSD loss d i , and according to formula (3), the noise label samples are uniformly screened based on the JSD loss value of each sample, thereby dividing the original data set into a labeled subset and an unlabeled subset Then, based on the loss function of formula (5), the oversampling strategy and SSL method are used to encourage the model to learn more feature information carried by unlabeled samples. After all the training is completed, two DNN models with strong classification performance and strong robustness to noisy labels are obtained. Computer simulation results show that this method can quickly converge and achieve better classification performance than similar methods by deeply mining the feature information carried by unlabeled samples.

[0078] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any technician familiar with the profession, without departing from the scope of the technical solution of the present invention, according to the technical essence of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.

Claims

1. A noisy labeled image sample screening learning method based on oversampling strategy, characterized in that: The following steps are involved: Step 1: Based on the original noisy label dataset, a DNN model with basic classification performance is pre-trained using a joint loss function; Step 2: After pre-training, iteratively calculate the JSD loss for the image samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model; Step 3: Using semi-supervised technology combined with contrastive learning methods, the DNN model is trained for semi-supervised robustness based on the labeled subset and unlabeled subset output in step 2, wherein oversampling technology is used to enable the DNN model to fully learn the image samples of the unlabeled subset; Pre-train at least two DNN models with basic classification performance, use at least one of the DNN models trained in steps 1 to 3 to calculate the JSD loss of image samples in the original noise data set, combine the calculated JSD loss result with the JSD loss calculation result of other DNN models in step 2 to perform uniform screening based on the JSD loss, and output the labeled subsets and unlabeled subsets of other DNN models; The number of unlabeled subset image samples is The number of labeled subset image samples is in is the unlabeled subset for the DNN model m, is a labeled subset of the DNN model m; In step 1, at least two DNN models with the same structure are pre-trained, where the serial number of one DNN model is m=1 and the serial number of the other DNN model is m=2, to obtain at least two DNN models with basic classification performance; In step 2, after the pre-training is completed, at the beginning of each iteration, the original noise dataset is trained based on the two DNN models trained in the previous iteration. Each image sample in According to formula (1), the corresponding JSD loss d is calculated i : in and The DNN models with serial numbers m=1 and m=2 are respectively for image samples The predicted value after the softmax function; Based on the JSD loss of each image sample, the corresponding JSD is sorted according to the category j∈{1,2,…,c} to which the original label of the image sample belongs according to formula (2): where d (j) is a set of consistency metrics of image samples of category j sorted in ascending order based on JSD, sort() is a sorting function, Is an indicator function: if and only if the current image sample The one-hot form of the noise label The corresponding j-th category Equal to 1, when the current image sample noise label belongs to the jth category, the function returns 1, otherwise it returns 0; Then based on the sorted consistency set d (j) ,j∈{1,2,…,c}, uniform screening is performed according to formula (3), and the consistency set d corresponding to any j∈{1,2,…,c} category is selected. (j) Select the first R image samples from the labeled set D l : Where c is the number of data set categories and R is the number of filters, which is determined by formula (4): Where n is the total number of image samples in the dataset, d avg and d min are the mean and minimum values ​​of the JSD loss of all image samples, τ and d μ They are preset fixed hyperparameters respectively; then the filtered image samples in the original dataset are placed into the unlabeled subset 2. The noisy labeled image sample screening learning method based on oversampling strategy according to claim 1 is characterized in that: In step 3, the overall objective loss function L for semi-supervised robust training is tot for: Where L cl is a typical unsupervised contrast loss function; L ssl is the semi-supervised training loss, which consists of three parts, among which L ce is the cross entropy loss, L u is the absolute mean loss used to make the predicted value of the unlabeled image sample consistent with its pseudo label, L reg It is a common regularization term in noisy label learning, which is used to ensure that the predicted values ​​of the image samples in the current batch remain uniformly distributed; assuming that the current iteration number is t and the total number of training iterations is T tot , the number of unlabeled subset image samples used for training model m is The number of labeled subset image samples is 3. The noisy labeled image sample screening learning method based on oversampling strategy according to claim 2 is characterized in that: In step 3, the number of semi-supervised robust training image samples in each batch (batch size) is b, and the total number of iterations of the data loader with the labeled set is iter cont = 0; in the current iteration, when all the image samples in the data loader of the labeled subset have been trained, its iteration number iter1 is accumulated to the total iteration number iter of the labeled set data cont On, that is iterc ont+=iter1, if it satisfies resets the dataloader iteration index for the labeled subset iter1 = 0, but does not reset the loader iteration index for the unlabeled subset iter2 Unless all the image samples contained in the unlabeled subset are iterated over, the loader iteration index of the unlabeled subset is reset iter2 = 0; Perform semi-supervised robust training according to the above process, only when When , stop the training of the DNN model.

4. The system of the noisy labeled image sample screening learning method based on oversampling strategy according to any one of claims 1 to 3, characterized in that: include: The pre-training module is used to pre-train a DNN model with basic classification performance based on the original noisy label dataset using a joint loss function; The screening module is used to iteratively calculate the JSD loss for the image samples in the original noise dataset, perform uniform screening based on the JSD loss, and output the labeled subset and unlabeled subset of the DNN model; The semi-supervised robustness training module is used to use SSL technology combined with contrastive learning methods to perform semi-supervised robustness training on the DNN model based on labeled subsets and unlabeled subsets. Oversampling technology is used to encourage the DNN model to fully learn the image samples of the unlabeled subset.

5. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the noisy labeled image sample screening learning method based on the oversampling strategy as described in any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the noisy labeled image sample screening learning method based on an oversampling strategy as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Iterative label noise recognition algorithm based on supervised learning and semi-supervised learning dual information

    CN107292330A

  • Medical big data classification method and system based on a generative adversarial network and semi-supervised learning

    CN109522973A

  • Neural network training using robust timing combination

    CN114330637A

  • Semantic segmentation model training method and device and image semantic segmentation method

    CN114565812A

  • Drought disaster weather prediction method based on semi-supervised ensemble learning

    CN114841064A