Pseudo-label processing method, device, equipment and computer-readable storage medium

By screening pseudo-labels using domain adaptive technology and deep reinforcement learning network models, the problem of poor accuracy and expressiveness of pseudo-labels in the existing technology is solved, and the recognition accuracy of the model is improved.

CN112287994BInactive Publication Date: 2024-09-24BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011159224.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing pseudo-label processing methods cannot take into account both accuracy and expressiveness when selecting pseudo-labels, resulting in low recognition accuracy during model training.

Method used

Domain adaptive technology and a preset deep reinforcement learning network model are used to screen the pseudo-labels to be selected, obtain the target pseudo-labels, and screen the pseudo-labels based on accuracy and expressiveness.

Benefits of technology

It improves the quality and expressiveness of pseudo-labels and enhances the recognition accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112287994B
    Figure CN112287994B
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a pseudo-label processing method, device, equipment and computer-readable storage medium. The method includes: obtaining a target domain data set, wherein the target domain data set includes multiple groups of unlabeled data without category labels; determining the candidate pseudo-labels corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model; and using the preset deep reinforcement learning network model to screen each candidate pseudo-label to obtain the target pseudo-label. In this way, the accuracy and expressiveness of the pseudo-label can be taken into account, and then when the target domain data set expanded by the pseudo-label is used to train the model, the recognition accuracy of the model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to image recognition technology, and more particularly to a pseudo-label processing method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the development of computer vision, deep convolutional neural networks have shown great superiority. However, it is very difficult to label data in many datasets. Therefore, a transfer learning-based method can be used to use datasets that are easy to label (source domain datasets) to improve the recognition effect on target domain datasets that only contain unlabeled data.

[0003] In the process of model training using the above transfer learning method, when the labeled data is limited, pseudo-labeling technology (Pseudo-Labeling, referred to as PL) can be used to expand the labels of the labeled data. Specifically, in the prior art, the model to be trained that has been trained with the source domain dataset is generally used to perform pseudo-label recognition operations on the unlabeled data in the target domain dataset, and the pseudo-label screening operation is performed by threshold comparison.

[0004] However, when the above method is used to select pseudo labels, the quality of the selected pseudo labels is generally related to the score threshold. Specifically, when the score threshold is high, pseudo labels with higher accuracy are generally selected, but the selected pseudo labels cannot express the real target domain distribution well. When the threshold is low, pseudo labels with wider distribution are selected, but the accuracy of such pseudo labels cannot be guaranteed. Summary of the invention

[0005] Embodiments of the present disclosure provide a pseudo-label processing method, apparatus, device, and computer-readable storage medium to solve the technical problems of poor accuracy and poor expression ability of pseudo-labels obtained by existing pseudo-label processing methods.

[0006] In a first aspect, an embodiment of the present disclosure provides a pseudo-label processing method, comprising:

[0007] Obtain a target domain dataset, wherein the target domain dataset includes multiple groups of unlabeled data without setting category labels;

[0008] Determine the pseudo labels to be selected corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model;

[0009] A preset deep reinforcement learning network model is used to screen the candidate pseudo labels to obtain the target pseudo labels.

[0010] In a second aspect, an embodiment of the present disclosure provides a pseudo-label processing device, comprising:

[0011] An acquisition module is used to acquire a target domain dataset, wherein the target domain dataset includes multiple groups of unlabeled data without category labels;

[0012] A determination module, used to determine a candidate pseudo label corresponding to each unlabeled data according to a domain adaptation technology and a preset first label recognition model;

[0013] The screening module is used to screen each candidate pseudo label using a preset deep reinforcement learning network model to obtain a target pseudo label.

[0014] In a third aspect, an embodiment of the present disclosure provides a pseudo-label processing device, including: a memory and a processor;

[0015] The memory is used to store program instructions;

[0016] The processor is used to call the program instructions in the memory to execute the method as described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon; when the computer program is executed, the method described in the first aspect is implemented.

[0018] The pseudo-label processing method, device, equipment and computer-readable storage medium provided by the embodiments of the present disclosure, after obtaining the target domain data set, adopts domain adaptation technology and a preset first label recognition model to determine the candidate pseudo-labels corresponding to each unlabeled data. The candidate pseudo-labels are screened by a preset deep reinforcement learning network model to obtain the target pseudo-labels, so that the accuracy and expression ability of the pseudo-labels can be taken into account, and then the recognition accuracy of the model can be improved when the target domain data set expanded by the pseudo-labels is used for model training.

[0019] Various feasible embodiments of the present disclosure and their technical advantages are described in detail below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] Figure 1 A schematic diagram of the system architecture on which the present disclosure is based;

[0022] Figure 2 A schematic diagram of a pseudo-label processing method provided in the first embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram of a pseudo-label processing method provided in the second embodiment of the present disclosure;

[0024] Figure 4 A schematic diagram of the architecture of a network model provided in an embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram of a pseudo-label processing method according to a third embodiment of the present disclosure;

[0026] Figure 6 An architecture diagram of another network model provided in an embodiment of the present disclosure;

[0027] Figure 7 A schematic diagram of a pseudo-label processing method according to a fourth embodiment of the present disclosure;

[0028] Figure 8 A schematic diagram of a classification decision boundary corresponding to the first loss function provided in an embodiment of the present disclosure;

[0029] Fig. 9 A schematic diagram of the classification decision boundary of the target domain large-margin loss function provided in an embodiment of the present disclosure;

[0030] Fig.10 A schematic diagram of the structure of a pseudo-label processing device provided in Embodiment 5 of the present disclosure;

[0031] Fig.11 This is a schematic diagram of the structure of a pseudo-label processing device provided in Embodiment 6 of the present disclosure.

[0032] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0034] First, the nouns involved in the embodiments of the present disclosure are explained:

[0035] Domain Adaptation (DA) is an important branch of transfer learning. It learns knowledge from labeled source domain data and transfers it to unlabeled target domain data, so that the difference in feature distribution between source domain and target domain data is as small as possible.

[0036] Unsupervised Domain Adaptation (UDA): It learns knowledge from labeled source domain data and transfers it to target domain data that has no labeled data at all, so as to minimize the difference in feature distribution between source domain and target domain data.

[0037] Semi-Supervised Domain Adaptation (SSDA) is a technology that learns knowledge from labeled source domain data and transfers it to target domain data that contains a small amount of labeled data and a large amount of unlabeled data, so that the difference in feature distribution between source domain and target domain data is as small as possible.

[0038] Deep reinforcement learning: refers to the combination of deep learning’s perception ability and reinforcement learning’s decision-making ability. It can be controlled directly based on the input image and is an artificial intelligence method that is closer to human thinking.

[0039] DQN algorithm: refers to a method that combines neural networks and Q learning, and its full name is Deep Q Network.

[0040] In response to the technical problems mentioned above that the pseudo labels obtained by the existing pseudo label processing methods have poor accuracy and expression ability, the present disclosure provides a pseudo label processing method, device, equipment and computer-readable storage medium.

[0041] It should be noted that the pseudo-label processing method, device, equipment and computer-readable storage medium disclosed in the present invention can be used in scenarios of model training using various domain adaptation technologies.

[0042] With the development of computer vision, since data labeling often requires a lot of manpower and material resources, domain adaptation technology is increasingly used in network model training scenarios. Since domain adaptation technology needs to learn knowledge from labeled source domain data and migrate it to unlabeled target domain data, when there is a lot of unlabeled data in the target domain data set, it is necessary to use pseudo-labeling technology (Pseudo-Labeling, referred to as PL) to expand the labels of the unlabeled data in the target domain data set. In the prior art, pseudo-label score thresholds are generally set and pseudo-labels are screened according to the score threshold. However, the above method often cannot guarantee the accuracy and expressiveness of pseudo-labels at the same time, and then the accuracy of expanding the unlabeled data labels using pseudo-labels screened according to the above method is not high, and the recognition accuracy of the model trained with the target domain data set cannot be guaranteed.

[0043] In the process of solving the above technical problems, the inventors discovered through research that in order to improve the quality of the screened pseudo-labels and ensure the recognition accuracy of the subsequent network model, it is necessary to consider both the accuracy and the expressiveness of the pseudo-labels and screen the pseudo-labels based on the above two characteristics.

[0044] The inventors further discovered that a preset deep reinforcement learning network can be used to screen pseudo-labels, and the feedback generated by adding different pseudo-labels to the training of the label recognition model can be used to learn a pseudo-label selection strategy that takes both accuracy and expressiveness into account, thereby solving the problem that existing pseudo-labeling technology cannot take into account both accuracy and expressiveness.

[0045] Figure 1 This is a schematic diagram of the system architecture based on which the present disclosure is based. Figure 1 As shown, the system architecture based on the present disclosure at least includes: a database 1 and a server 2, wherein the server 2 is provided with a pseudo-label processing device, which can be written in languages ​​such as C / C++, Java, Shell or Python; the database 2 can be a cloud server or a server cluster, which stores a large amount of data. The database 1 is connected to the server 2 in communication, so that the two can exchange information.

[0046] The specific application scenario of the embodiment of the present disclosure is that the pseudo-label processing device obtains a target domain data set from a database, and inputs the target domain data set into a preset first label recognition model to obtain a candidate pseudo-label corresponding to each unlabeled data in the target domain data set. The candidate pseudo-label is input into a preset deep reinforcement learning network model to implement a screening operation on the candidate pseudo-label and obtain a target pseudo-label.

[0047] The following is a detailed description of the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0048] Figure 2 A schematic diagram of a pseudo-label processing method provided in the first embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the method includes:

[0049] Step 101: Obtain a target domain dataset, wherein the target domain dataset includes multiple groups of unlabeled data without category labels.

[0050] The execution subject of this embodiment is a pseudo-label processing device, and the pseudo-label processing device can be coupled to a server.

[0051] In this embodiment, in order to implement the label expansion operation of each unlabeled data in the target domain data set, the target domain data set can be first obtained, wherein the target domain data set can include multiple groups of unlabeled data without category labels. The unlabeled data can be image data. In addition, the target domain data set can also include a small amount of data with category labels set. The target domain data set can be specifically used to train the label recognition model, so that the trained label recognition model can perform category recognition operations on the input data.

[0052] Optionally, the server may be connected to a database for communication, so as to be able to exchange information with the database. Based on the system architecture, the target domain data set may be obtained from the database by the pseudo-label processing device disposed in the server.

[0053] Step 102: Determine the pseudo labels to be selected corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model.

[0054] In this embodiment, after the target domain data set is obtained, the pseudo labels of the unlabeled data in the target domain data set can be identified. Specifically, the pseudo labels to be selected corresponding to each unlabeled data can be determined by adaptive technology and a preset first label identification model.

[0055] Among them, the domain adaptation technology can learn knowledge from the labeled source domain data and transfer it to the unlabeled target domain data, so that the difference in feature distribution between the source domain and the target domain data is as small as possible. That is, the first label recognition model can be a label recognition model obtained by pre-training with a source domain data set including a large amount of labeled data. The unlabeled data in the target domain data set can be input into the first label recognition model to obtain the pseudo-labels to be selected corresponding to each unlabeled data output by the first label recognition model.

[0056] Step 103: Use a preset deep reinforcement learning network model to screen the candidate pseudo labels to obtain the target pseudo labels.

[0057] In this embodiment, in order to improve the quality of the selected pseudo-labels and ensure the recognition accuracy of the subsequent network model, it is necessary to consider the accuracy and expression ability of the pseudo-labels at the same time. Therefore, the pseudo-labels to be selected can be screened by a preset deep reinforcement learning network model to obtain the target pseudo-labels. The target pseudo-labels can be added to the target domain data set later to achieve the label expansion operation of the unlabeled data in the target domain data set.

[0058] Further, based on the first embodiment, step 102 specifically includes:

[0059] Classify each unlabeled data according to the category of the pseudo label to be selected to obtain the feature data of each category of unlabeled data after classification;

[0060] Associating the pseudo-label to be selected with the feature data of the unlabeled data of the corresponding category to obtain associated feature data;

[0061] Inputting each of the associated feature data into the preset deep reinforcement learning network model;

[0062] The preset deep reinforcement learning network model determines a target pseudo label from candidate pseudo labels of the associated feature data, and outputs the target pseudo label.

[0063] In this embodiment, in order to implement the screening operation of the target pseudo-label, each unlabeled data can be first classified according to the category of the pseudo-label to be selected to obtain the feature data of each category of the classified unlabeled data. The pseudo-label to be selected is associated with the feature data of the unlabeled data of the corresponding category to obtain associated feature data. Each associated feature data is input into a preset deep reinforcement learning network model. The target pseudo-label is determined from the pseudo-label to be selected of the associated feature data through the preset deep reinforcement learning network model, and the target pseudo-label is output.

[0064] The pseudo-label processing method provided in this embodiment determines the candidate pseudo-labels corresponding to each unlabeled data by using domain adaptation technology and a preset first label recognition model after acquiring the target domain data set. The candidate pseudo-labels are screened by a preset deep reinforcement learning network model to obtain the target pseudo-labels, thereby taking into account the accuracy and expression ability of the pseudo-labels, and then the recognition accuracy of the model can be improved when the target domain data set expanded by the pseudo-labels is used for model training.

[0065] Figure 3 This is a flow chart of a pseudo-label processing method provided in the second embodiment of the present disclosure. Based on the first embodiment, the domain adaptation technology is a semi-supervised domain adaptation technology; the target domain data set also includes multiple groups of labeled data with set category labels; Figure 3 As shown, step 102 specifically includes:

[0066] Step 201: Acquire a source domain dataset, wherein the source domain dataset includes multiple groups of labeled data with set category labels.

[0067] Step 202: Train the preset first label recognition model according to the source domain dataset and the target domain dataset to obtain a first trained label recognition model.

[0068] Step 203: input the unlabeled data into the first trained label recognition model to determine the candidate pseudo labels corresponding to each unlabeled data through the first trained label recognition model.

[0069] In this embodiment, the domain adaptation technology may be a semi-supervised domain adaptation technology. Accordingly, the target domain dataset may include a small amount of labeled data.

[0070] Specifically, a source domain dataset may be first obtained, wherein the source domain dataset includes a plurality of groups of labeled data with set category labels, and a preset first label recognition model is trained using the source domain dataset and the target domain dataset to obtain a first trained label recognition model.

[0071] After obtaining the first trained label recognition model, the unlabeled data may be input into the first trained label recognition model to determine the candidate pseudo labels corresponding to each unlabeled data through the first trained label recognition model.

[0072] Further, based on the above embodiment 1, after step 103, the following steps are further included:

[0073] An updated target domain dataset is constructed according to the association relationship between the target pseudo-label and the corresponding unlabeled data.

[0074] The first trained label recognition model is further trained using the source domain dataset and the updated target domain dataset to obtain a second trained label recognition model.

[0075] Detect whether the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold.

[0076] If yes, the second trained label recognition model is used as the final label recognition model.

[0077] If not, return to the step of inputting the unlabeled data into the first trained label recognition model to determine the candidate pseudo-labels corresponding to each unlabeled data through the first trained label recognition model until the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold.

[0078] In this embodiment, after obtaining the target pseudo label, the unlabeled data in the target domain dataset can be expanded according to the target pseudo label. Specifically, an updated target domain dataset can be constructed according to the association relationship between the target pseudo label and the corresponding unlabeled data.

[0079] In order to improve the recognition accuracy of the label recognition model, after obtaining the updated target domain data set, the source domain data set and the updated target domain data set can be used to continue training the first trained label recognition model to obtain the second trained label recognition model. Detect whether the recognition accuracy of the second trained label recognition model reaches the preset accuracy threshold. If so, it indicates that the second trained label recognition model has been trained, and the second trained label recognition model is used as the final label recognition model. On the contrary, it indicates that the second trained label recognition model has not been trained, and it is necessary to continue to perform label expansion operations on the unlabeled data in the target domain data set, and continue to train the first trained label recognition model using the source domain data set and the updated target domain data set. Therefore, it is possible to return to the step of inputting the unlabeled data into the first trained label recognition model to determine the pseudo-labels to be selected corresponding to each unlabeled data through the first trained label recognition model until the recognition accuracy of the second trained label recognition model reaches the preset accuracy threshold.

[0080] Figure 4 The schematic diagram of the network model provided by the embodiment of the present disclosure is as follows: Figure 4 As shown, the label recognition model specifically includes a feature extraction layer F and a classification layer C. The data in the source domain dataset and the target domain dataset can be input into the label recognition model, and the label model is trained to obtain the final loss value.

[0081] The pseudo-label processing method provided in this embodiment trains a preset first label recognition model through a source domain data set and a target domain data set to obtain a first trained label recognition model, and uses the first trained label recognition model to perform a target pseudo-label recognition operation, thereby enabling the generation of target pseudo-labels and the expansion of labels for unlabeled data to be achieved even when the amount of labeled data is small.

[0082] Figure 5 The flowchart of the pseudo-label processing method provided in the third embodiment of the present disclosure is based on any of the above embodiments. Figure 5 As shown, when the source domain dataset and the updated target domain dataset are used to train the first trained label recognition model, the method further includes:

[0083] Step 301: Obtain intermediate feature data extracted during the feature extraction process when training the first trained label recognition model, classified intermediate data obtained after classification, and a first pseudo label to be selected output by the first trained label recognition model.

[0084] Step 302: Calculate reward information based on the intermediate feature data and the classified intermediate data.

[0085] Step 303: Perform a training operation on the deep reinforcement learning network model according to each candidate pseudo label, each unlabeled data, the target pseudo label, reward information and the first candidate pseudo label.

[0086] In this embodiment, the deep reinforcement learning network model may be a DQN network. The DQN network may take a state as input and an action as output. The state may be each pseudo-label to be selected and each unlabeled data, and the action may be selecting a target pseudo-label from the pseudo-labels to be selected.

[0087] Specifically, the label recognition model includes a feature extraction layer F and a classification layer C. The intermediate feature data output by the feature extraction layer F can determine the expressiveness of the selected target pseudo-label, and the classified intermediate data output by the classification layer C can determine the accuracy of the selected target pseudo-label. Therefore, the reward information can be calculated based on the intermediate feature data extracted during the feature extraction process and the classified intermediate data obtained after classification. The reward information can motivate the deep reinforcement learning network model to improve the expressiveness and accuracy of the output target pseudo-label.

[0088] Therefore, the deep reinforcement learning network model can be subsequently trained according to each candidate pseudo label, each unlabeled data, the target pseudo label, reward information and the first candidate pseudo label.

[0089] Figure 6 The architecture diagram of another network model provided by the embodiment of the present disclosure is as follows: Figure 6 As shown, the reward information can be determined according to the intermediate feature data output by the feature extraction layer F, the classified intermediate data output by the classification layer C, and the first pseudo-label to be selected output by the first trained label recognition model, and the reward information can be determined according to the state S t :All pseudo labels to be selected, all unlabeled data, action a t : Target pseudo label, reward information and next state s t ': The first pseudo label to be selected performs a training operation on the deep reinforcement learning network model.

[0090] Optionally, after obtaining the pseudo-labels to be selected, the unlabeled data, the target pseudo-labels, the reward information and the first pseudo-labels to be selected, their storage values ​​can be pre-set in an experience pool, and sampling training can be performed from the experience pool later to implement the training operation of the deep reinforcement learning network model.

[0091] Further, based on any of the above embodiments, step 302 specifically includes:

[0092] The quality value corresponding to the target pseudo label is calculated according to the intermediate feature data, the classified intermediate data and a preset metric function.

[0093] The reward information is calculated according to the quality value and a preset quality threshold.

[0094] In this embodiment, since the reward information needs to reflect whether the currently selected target pseudo-label is appropriate, that is, samples with higher accuracy and expressiveness should have larger reward values. Therefore, the accuracy and expressiveness of the target pseudo-label can be reflected by a preset metric function, where the metric function is shown in Formula 1:

[0095]

[0096] Among them, the combination of the intermediate feature data extracted in the feature extraction process and the classified intermediate data obtained after classification is used as a sample. Represents the classification probability output of the sample relative to its pseudo label, p f It represents the probability of the sample relative to the centers of various features in the target domain, as shown in Formula 2:

[0097]

[0098] where z j is the feature center of the jth class in the labeled data of the target domain. The first two items can reflect the accuracy of pseudo-label samples from two aspects, and the third item Δ e It indicates the reduction in entropy of the target domain unlabeled data after training with pseudo-label samples. The greater the reduction in entropy, the stronger the pseudo-label sample's ability to express the target domain distribution.

[0099] Furthermore, a reward function can be determined based on the metric function. The reward function is shown in Formula 3:

[0100]

[0101] Where τ is the quality threshold.

[0102] Based on the above formula, the quality value corresponding to the target pseudo label can be calculated according to the intermediate feature data and the classified intermediate data through the metric function, and the quality value is compared with the preset quality threshold τ, and the reward information is determined according to the comparison result.

[0103] The pseudo-label processing method provided in this embodiment performs a training operation on the deep reinforcement learning network model according to each candidate pseudo-label, each unlabeled data, the target pseudo-label, reward information and the first candidate pseudo-label, thereby continuously driving the deep reinforcement learning network to output a more accurate target pseudo-label according to the reward information.

[0104] Figure 7The flowchart of the pseudo-label processing method provided in the fourth embodiment of the present disclosure is based on any of the above embodiments. Figure 7 As shown, step 202 specifically includes:

[0105] Step 401: Train the to-be-trained model using a preset first loss function and labeled data in a source domain dataset to obtain a first loss value.

[0106] Step 402: Train the to-be-trained model using a preset target domain large-margin loss function and labeled data in the target domain data set to obtain a second loss value.

[0107] Step 403: Train the model to be trained using a preset entropy loss function and unlabeled data in the target domain data set to obtain a third loss value.

[0108] Step 404: reversely train the first label recognition model according to the first loss value, the second loss value, and the third loss value to obtain a first trained label recognition model.

[0109] In this embodiment, for the source domain data set, a first loss function may be selected for training to obtain a first loss value. The first loss function may be a Softmax loss function, which may be specifically shown in Formula 4:

[0110]

[0111] in W j is the weight of the last fully connected layer of the network relative to the jth category.

[0112] Accordingly, since the target domain dataset has only a small amount of labeled data, the target domain large-spacing loss function can be used to train the labeled data in the target domain dataset to obtain a second loss value. Compared with the preset first loss function, the spacing parameter m is added to the labeled data in the target domain, so that the classification decision boundary can give the target domain more space, so that the unlabeled data in the target domain can be correctly classified. The target domain large-spacing loss function is shown in Formula 5:

[0113]

[0114] in W j is the weight of the last fully connected layer of the network relative to the jth category, and m is the preset spacing parameter.

[0115] Figure 8 A schematic diagram of a classification decision boundary corresponding to the first loss function provided in an embodiment of the present disclosure, Fig. 9A schematic diagram of the classification decision boundary of the target domain large-margin loss function provided by the embodiment of the present disclosure, such as Figure 8-Figure 9 As shown in the figure, the use of a large-margin loss function in the target domain can enable the classification decision boundary to give the target domain data more space, so that the unlabeled data in the target domain can be correctly classified.

[0116] Furthermore, for the unlabeled data in the target domain, in order to group samples with similar features together, the entropy loss function and the unlabeled data in the target domain dataset can be used to train the model to be trained to obtain a third loss value. The entropy loss function can be shown as Formula 6:

[0117]

[0118] in, Represents the probability prediction output of the classifier for the jth class.

[0119] After obtaining the first loss value, the second loss value and the third loss value, the model to be trained can be reversely trained according to the first loss value, the second loss value and the third loss value, and the parameters of the model to be trained can be adjusted according to the first loss value, the second loss value and the third loss value until the model to be trained converges to obtain the first trained label recognition model.

[0120] Further, based on any of the above embodiments, step 404 specifically includes:

[0121] The target loss function is determined according to the first loss function, the target domain large-margin loss function and the entropy loss function.

[0122] The first loss value, the second loss value, and the third loss value are calculated according to the target loss function to determine the target loss value.

[0123] The model to be trained is reversely trained according to the target loss value to obtain a label recognition model after the first training.

[0124] In this embodiment, the target loss function can be determined according to three different loss functions and a preset balance parameter α, and the target loss function is shown in Formula 7:

[0125] L=L1+L2+αL ent (7)

[0126] Then, the first loss value, the second loss value, and the third loss value can be calculated according to the target loss function to determine the target loss value. According to the target loss function, the model to be trained is reversely trained, and the parameters of the model to be trained are adjusted until the model to be trained converges to obtain the label recognition model after the first training.

[0127] The pseudo-label processing method provided in this embodiment trains the to-be-trained model by using the target domain large-spacing loss function with a spacing parameter m for the labeled data in the target domain data set, thereby enabling the classification decision boundary to give the target domain a larger space, allowing the target domain unlabeled data to be correctly classified, and improving the recognition accuracy of the label recognition model after the first training.

[0128] Fig.10 This is a schematic diagram of the structure of a pseudo-label processing device provided in Embodiment 5 of the present disclosure. Fig.10 As shown, the device includes: an acquisition module 51, a determination module 52 and a screening module 53. The acquisition module 51 is used to acquire a target domain data set, wherein the target domain data set includes multiple groups of unlabeled data without category labels. The determination module 52 is used to determine the candidate pseudo-labels corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model. The screening module 53 is used to screen each candidate pseudo-label using a preset deep reinforcement learning network model to obtain a target pseudo-label.

[0129] Further, on the basis of Example 5, the screening module is used to: classify each unlabeled data according to the category of the pseudo-label to be selected to obtain feature data of each category of unlabeled data after classification. Associate the pseudo-label to be selected with the feature data of the unlabeled data of the corresponding category to obtain associated feature data. Input each associated feature data into the preset deep reinforcement learning network model. Determine the target pseudo-label from the pseudo-label to be selected of the associated feature data through the preset deep reinforcement learning network model, and output the target pseudo-label.

[0130] Further, on the basis of Example 5, the domain adaptation technology is a semi-supervised domain adaptation technology; the target domain data set also includes multiple groups of labeled data with set category labels; the determination module is used to: obtain a source domain data set, the source domain data set includes multiple groups of labeled data with set category labels. The preset first label recognition model is trained according to the source domain data set and the target domain data set to obtain a first trained label recognition model. The unlabeled data is input into the first trained label recognition model to determine the candidate pseudo labels corresponding to each unlabeled data through the first trained label recognition model.

[0131] Further, on the basis of any of the above embodiments, the device also includes: an updating module, a first training module, a detection module and a processing module. Among them, the updating module is used to construct an updated target domain data set according to the association relationship between the target pseudo-label and the corresponding unlabeled data. The first training module is used to continue training the first trained label recognition model using the source domain data set and the updated target domain data set to obtain a second trained label recognition model. The detection module is used to detect whether the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold. The processing module is used to use the second trained label recognition model as the final label recognition model if yes. The processing module is also used to return to the step of inputting the unlabeled data into the first trained label recognition model to determine the pseudo-labels to be selected corresponding to each unlabeled data through the first trained label recognition model, until the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold.

[0132] Furthermore, based on any of the above embodiments, the device also includes: an extraction module, a calculation module and a second training module. Among them, the extraction module is used to obtain the intermediate feature data extracted by the feature extraction process when training the first trained label recognition model, the classified intermediate data obtained after classification, and the first pseudo-label to be selected output by the first trained label recognition model. The calculation module is used to calculate the reward information based on the intermediate feature data and the classified intermediate data. The second training module is used to perform training operations on the deep reinforcement learning network model according to each pseudo-label to be selected, each unlabeled data, the target pseudo-label, the reward information and the first pseudo-label to be selected.

[0133] Further, based on any of the above embodiments, the calculation module is used to: calculate the quality value corresponding to the target pseudo-label according to the intermediate feature data, the classification intermediate data and a preset metric function, and calculate the reward information according to the quality value and a preset quality threshold.

[0134] Further, based on any of the above embodiments, the determination module is used to: train the model to be trained by using a preset first loss function and labeled data in the source domain data set to obtain a first loss value. Train the model to be trained by using a preset target domain large-spacing loss function and labeled data in the target domain data set to obtain a second loss value. Train the model to be trained by using a preset entropy loss function and unlabeled data in the target domain data set to obtain a third loss value. Reversely train the first label recognition model according to the first loss value, the second loss value, and the third loss value to obtain a first trained label recognition model.

[0135] Further, based on any of the above embodiments, the determination module is used to: determine the target loss function according to the first loss function, the target domain large-spacing loss function and the entropy loss function. Calculate the first loss value, the second loss value and the third loss value according to the target loss function to determine the target loss value. Reverse train the model to be trained according to the target loss value to obtain the label recognition model after the first training.

[0136] Fig.11 This is a schematic diagram of the structure of a pseudo-label processing device provided in Embodiment 6 of the present disclosure, such as Fig.11 As shown, the device may be a mobile phone, a computer, a tablet device, etc.

[0137] Device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an input / output (I / O) interface 610 , and a communication component 612 .

[0138] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0139] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0140] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.

[0141] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0142] I / O interface 610 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0143] The communication component 612 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 612 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 612 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0144] In an exemplary embodiment, the device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 820 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0146] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute the pseudo-label processing method of the terminal device.

[0147] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The embodiments of the present disclosure are intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0148] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A pseudo-label processing method, characterized in that: include: Acquire a target domain data set, wherein the target domain data set includes a plurality of groups of unlabeled data without category labels, and the unlabeled data is image data; Determine the pseudo labels to be selected corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model; The preset deep reinforcement learning network model is used to screen the candidate pseudo labels to obtain the target pseudo labels, including: Classify each unlabeled data according to the category of the pseudo label to be selected to obtain the feature data of each category of unlabeled data after classification; Associating the pseudo-label to be selected with the feature data of the unlabeled data of the corresponding category to obtain associated feature data; Inputting each of the associated feature data into the preset deep reinforcement learning network model; Determining a target pseudo label from candidate pseudo labels of associated feature data through the preset deep reinforcement learning network model, and outputting the target pseudo label; The target pseudo-label is added to the target domain dataset, and the label recognition model is trained using the target domain dataset, so that the trained label recognition model can perform category recognition operations on the image data.

2. The method according to claim 1, characterized in that The domain adaptation technology is a semi-supervised domain adaptation technology; the target domain data set also includes multiple groups of labeled data with set category labels; The method of determining the pseudo labels to be selected corresponding to each unlabeled data according to the domain adaptation technology and the preset first label recognition model includes: Acquire a source domain dataset, wherein the source domain dataset includes multiple groups of labeled data with set category labels; Training the preset first label recognition model according to the source domain dataset and the target domain dataset to obtain a first trained label recognition model; The unlabeled data are input into a first trained label recognition model to determine a candidate pseudo label corresponding to each unlabeled data through the first trained label recognition model.

3. The method according to claim 2, characterized in that After the preset deep reinforcement learning network model is used to screen the candidate pseudo labels to obtain the target pseudo labels, the method further includes: Constructing an updated target domain dataset according to the association relationship between the target pseudo-label and the corresponding unlabeled data; Using the source domain dataset and the updated target domain dataset to continue training the first trained label recognition model to obtain a second trained label recognition model; Detecting whether the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold; If yes, the second trained label recognition model is used as the final label recognition model; If not, return to the step of inputting the unlabeled data into the first trained label recognition model to determine the candidate pseudo-labels corresponding to each unlabeled data through the first trained label recognition model until the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold.

4. The method according to claim 3, characterized in that When the source domain dataset and the updated target domain dataset are used to train the first trained label recognition model, the method further includes: Acquire intermediate feature data extracted during a feature extraction process when training the first trained label recognition model, classified intermediate data obtained after classification, and a first pseudo label to be selected output by the first trained label recognition model; Calculating reward information based on the intermediate feature data and the classified intermediate data; The deep reinforcement learning network model is trained according to each candidate pseudo label, each unlabeled data, the target pseudo label, reward information and the first candidate pseudo label.

5. The method according to claim 4, characterized in that The calculating reward information according to the intermediate feature data and the classified intermediate data includes: Calculating a quality value corresponding to the target pseudo-label according to the intermediate feature data, the classified intermediate data and a preset metric function; The reward information is calculated according to the quality value and a preset quality threshold.

6. The method according to any one of claims 2 to 5, characterized in that: The step of training the preset first label recognition model according to the source domain dataset and the target domain dataset to obtain a first trained label recognition model includes: The to-be-trained model is trained using a preset first loss function and labeled data in a source domain dataset to obtain a first loss value; The to-be-trained model is trained by using a preset target domain large-spacing loss function and labeled data in the target domain data set to obtain a second loss value; The model to be trained is trained using a preset entropy loss function and unlabeled data in a target domain data set to obtain a third loss value; The first label recognition model is reversely trained according to the first loss value, the second loss value and the third loss value to obtain a first trained label recognition model.

7. The method according to claim 6, characterized in that The reverse training of the first label recognition model according to the first loss value, the second loss value, and the third loss value to obtain the first trained label recognition model includes: Determine a target loss function according to the first loss function, the target domain large-distance loss function, and the entropy loss function; Calculate the first loss value, the second loss value, and the third loss value according to the target loss function to determine the target loss value; The model to be trained is reversely trained according to the target loss value to obtain a label recognition model after the first training.

8. A pseudo-label processing device, characterized in that: include: An acquisition module is used to acquire a target domain data set, wherein the target domain data set includes a plurality of groups of unlabeled data without category labels, and the unlabeled data is image data; A determination module, used to determine a candidate pseudo label corresponding to each unlabeled data according to a domain adaptation technology and a preset first label recognition model; The screening module is used to screen the candidate pseudo labels using a preset deep reinforcement learning network model to obtain the target pseudo labels, including: Classify each unlabeled data according to the category of the pseudo label to be selected to obtain the feature data of each category of unlabeled data after classification; Associating the pseudo-label to be selected with the feature data of the unlabeled data of the corresponding category to obtain associated feature data; Inputting each of the associated feature data into the preset deep reinforcement learning network model; Determining a target pseudo label from candidate pseudo labels of associated feature data through the preset deep reinforcement learning network model, and outputting the target pseudo label; The target pseudo-label is added to the target domain dataset, and the label recognition model is trained using the target domain dataset, so that the trained label recognition model can perform category recognition operations on the image data.

9. The device according to claim 8, characterized in that The domain adaptation technology is a semi-supervised domain adaptation technology; the target domain data set also includes multiple groups of labeled data with set category labels; The determination module is used for: Acquire a source domain dataset, wherein the source domain dataset includes multiple groups of labeled data with set category labels; Training the preset first label recognition model according to the source domain dataset and the target domain dataset to obtain a first trained label recognition model; The unlabeled data are input into a first trained label recognition model to determine a candidate pseudo label corresponding to each unlabeled data through the first trained label recognition model.

10. The device according to claim 9, characterized in that The device also includes: An updating module, configured to construct an updated target domain dataset according to the association relationship between the target pseudo-label and the corresponding unlabeled data; A first training module, configured to continue training the first trained label recognition model using a source domain dataset and the updated target domain dataset to obtain a second trained label recognition model; A detection module, used to detect whether the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold; a processing module, configured to use the second trained label recognition model as a final label recognition model if yes; The processing module is also used to, if not, return to the step of inputting the unlabeled data into the first trained label recognition model to determine the candidate pseudo-labels corresponding to each unlabeled data through the first trained label recognition model, until the recognition accuracy of the second trained label recognition model reaches a preset accuracy threshold.

11. The device according to claim 10, characterized in that The device also includes: An extraction module, used to obtain intermediate feature data extracted during the feature extraction process when training the first trained label recognition model, classified intermediate data obtained after classification, and a first pseudo label to be selected output by the first trained label recognition model; A calculation module, used for calculating reward information according to the intermediate feature data and the classified intermediate data; The second training module is used to perform a training operation on the deep reinforcement learning network model according to each candidate pseudo label, each unlabeled data, the target pseudo label, reward information and the first candidate pseudo label.

12. The device according to claim 11, characterized in that The calculation module is used for: Calculating a quality value corresponding to the target pseudo-label according to the intermediate feature data, the classified intermediate data and a preset metric function; The reward information is calculated according to the quality value and a preset quality threshold.

13. The device according to any one of claims 9 to 12, characterized in that: The determination module is used for: The to-be-trained model is trained using a preset first loss function and labeled data in a source domain dataset to obtain a first loss value; The to-be-trained model is trained by using a preset target domain large-spacing loss function and labeled data in the target domain data set to obtain a second loss value; The model to be trained is trained using a preset entropy loss function and unlabeled data in a target domain data set to obtain a third loss value; The first label recognition model is reversely trained according to the first loss value, the second loss value and the third loss value to obtain a first trained label recognition model.

14. The device according to claim 13, characterized in that The determination module is used for: Determine a target loss function according to the first loss function, the target domain large-distance loss function, and the entropy loss function; Calculate the first loss value, the second loss value, and the third loss value according to the target loss function to determine the target loss value; The model to be trained is reversely trained according to the target loss value to obtain a label recognition model after the first training.

15. A pseudo-label processing device, characterized in that: include: Memory and processor; The memory is used to store program instructions; The processor is used to call the program instructions in the memory to execute the method according to any one of claims 1-7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.