Computer-implemented method, device and computer program product

By determining the confidence level and feature similarity of the input samples, calculating the loss and training the feature extraction model, the impact of noise annotation on the model's accuracy is resolved, achieving more efficient and accurate feature extraction, applicable to fields such as images, text, and video.

CN115700615BActive Publication Date: 2026-11-27EMC IP HLDG CO LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110837728.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-23
Publication Date
2026-11-27
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

Existing machine learning models are affected by noisy labeled data during training, resulting in insufficient model accuracy. Existing solutions cannot effectively improve the accuracy of the models and are computationally complex and time-consuming.

Method used

By determining the confidence level of the input samples and the similarity between sample features, first and second losses are calculated, and a feature extraction model is trained based on these losses. A distance-based interpretable classifier is used to adjust the model parameters and reduce the impact of noisy annotations.

Benefits of technology

It improves the accuracy of feature extraction models, simplifies the model training process, reduces computational complexity and time, and is applicable to feature extraction in various fields such as images, text, and videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115700615B_ABST
    Figure CN115700615B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a computer-implemented method, a device and a computer program product. The method comprises determining a confidence of an input sample and a similarity degree between a set of sample features based on the set of sample features extracted from the input sample by a feature extraction model; determining a first loss related to a quality of a label information of the input sample based on the confidence, the set of sample features and the label information of the input sample; determining a second loss related to a quality of the set of sample features based on the similarity degree between the set of sample features; and training the feature extraction model based on the first loss and the second loss. Embodiments of the present disclosure determine the confidence of the input sample, and then optimize the feature extraction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this disclosure generally relate to the field of computers, and more specifically to computer-implemented methods, apparatus, and computer program products. Background Technology

[0002] In the field of artificial intelligence, technologies such as computer vision, information retrieval, and language processing have made significant strides and have wide applications. Before using machine learning models, such as neural network models, to process information, such as for image recognition, large-scale datasets are typically used to pre-train the machine learning model. Various methods have been proposed for training machine learning models using datasets; for example, datasets with labeled information can be used. However, the accuracy of the resulting machine learning models needs further improvement. Summary of the Invention

[0003] Embodiments of this disclosure provide computer-implemented methods, apparatus, and computer program products.

[0004] In a first aspect of this disclosure, a computer-implemented method is provided. The method includes determining a confidence level of an input sample and a similarity level between a set of sample features extracted from an input sample by a feature extraction model; determining a first loss based on the confidence level, the set of sample features, and annotation information of the input sample, the first loss being related to the quality of the annotation information; determining a second loss based on the similarity level between the set of sample features, the second loss being related to the quality of the set of sample features; and training a feature extraction model based on the first and second losses.

[0005] In a second aspect of this disclosure, an electronic device is provided. The electronic device includes at least one processing unit and at least one memory. The at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the electronic device to perform an action comprising: determining a confidence level of an input sample and a similarity level between a set of sample features extracted from an input sample by a feature extraction model; determining a first loss based on the confidence level, the set of sample features, and annotation information of the input sample, the first loss being related to the quality of the annotation information; determining a second loss based on the similarity level between the set of sample features, the second loss being related to the quality of the set of sample features; and training a feature extraction model based on the first loss and the second loss.

[0006] In a third aspect of this disclosure, a computer program product is provided. The computer program product is tangibly stored in a non-transitory computer storage medium and includes machine-executable instructions. When executed by a device, the machine-executable instructions cause the device to perform any step of the method described in the first aspect of this disclosure.

[0007] The summary section is provided to present the chosen concepts in a simplified form, which will be further described in the detailed description below. The summary section is not intended to identify key or essential features of this disclosure, nor is it intended to limit the scope of this disclosure. Attached Figure Description

[0008] The above and other objects, features and advantages of this disclosure will become more apparent from the accompanying drawings, in which like reference numerals generally denote like parts.

[0009] Figure 1 A schematic block diagram of an example environment that can be implemented therein according to some embodiments of the present disclosure is shown;

[0010] Figure 2 A flowchart is shown illustrating a computer-implemented example method according to some embodiments of the present disclosure;

[0011] Figure 3 A schematic diagram of potential energy curves according to some embodiments of the present disclosure is shown;

[0012] Figure 4 An example training process for a feature extraction model according to some embodiments of the present disclosure is shown;

[0013] Figure 5 A schematic diagram illustrating example outputs of feature extraction models according to some embodiments of the present disclosure and outputs of conventional schemes is shown; and

[0014] Figure 6 A schematic block diagram of an example device that can be used to implement embodiments of the present disclosure is shown.

[0015] In the various figures, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation

[0016] Preferred embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and will fully convey the scope of the present disclosure to those skilled in the art.

[0017] The term "comprising" and its variations as used herein signify open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "at least partially based on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0018] In embodiments of this disclosure, the term "model" refers to a system capable of processing inputs and providing corresponding outputs. Taking a neural network model as an example, it typically includes an input layer, an output layer, and one or more hidden layers between the input and output layers. Models used in deep learning applications (also referred to as "deep learning models") often include many hidden layers, thereby extending the depth of the network. The layers of a neural network model are sequentially connected such that the output of the previous layer is used as the input of the next layer, where the input layer receives the inputs to the neural network model, and the output of the output layer serves as the final output of the neural network model. Each layer of a neural network model includes one or more nodes (also called processing nodes or neurons), each node processing the input from the layer above. In this document, the terms "neural network," "model," "network," and "neural network model" are used interchangeably.

[0019] As mentioned above, several schemes have been proposed for using datasets to train machine learning models, such as feature extraction models. In some conventional schemes, datasets with labeled information are typically used to train machine learning models. For example, Amazon's Mechanical Turk dataset stores the labeled information of the collected data, and this dataset can be used to train machine learning models. However, existing datasets often contain some mislabeled (also known as noisy) data samples. These noisy labeled data samples often have a serious impact on model training, and may even cause the trained model's output feature values ​​to mismatch the input samples.

[0020] To address the problem of noisy annotations, several solutions have been proposed to attempt to reduce their impact on model training. For example, supervised or semi-supervised learning utilizes complex algorithms such as annotation refurbishment and rapid adaptation to mitigate the effects of noisy annotations. However, these solutions have not significantly improved the accuracy of the trained model. Furthermore, these solutions involve complex algorithms, require substantial computation, and necessitate lengthy processing times.

[0021] Embodiments of this disclosure propose a computer-implemented method to address one or more of the problems described above and / or other potential problems. In this approach, based on a set of sample features extracted from an input sample by a feature extraction model, the similarity of the set of sample features and the confidence level of the input sample are determined. The approach further includes determining a first loss related to the quality of the annotation information of the input sample, at least based on the confidence level, and determining a second loss related to the quality of the set of sample features, based on the similarity between the sample features. The approach also includes training the feature extraction model based on the determined first and second losses.

[0022] This approach allows the confidence level of input samples to be considered during the training of the feature extraction model, thus avoiding the influence of unreliable samples with noisy labels on the training results. Consequently, the obtained feature extraction model provides more accurate feature information.

[0023] The basic principles and several exemplary embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0024] Figure 1 A schematic diagram of an environment 100 for training a feature extraction model according to some embodiments of the present disclosure is shown. It should be understood that... Figure 1 The number and arrangement of entities, elements and modules shown are merely examples; environment 100 may include different numbers and arrangements of entities, elements and modules.

[0025] exist Figure 1 In environment 100, computing system 120 trains feature extraction model 130 based on input sample 110. In this paper, input sample 110 can be of various types, such as images, audio, video, and text. Input sample 110 can be a sample with labeled information. Feature extraction model 130 can use untrained or trained machine learning-based models, such as untrained or trained neural network models.

[0026] It should be understood that the feature extraction model 130 can use other machine learning models. The feature extraction model 130 can be applied to various fields. For example, in the field of machine vision, the feature extraction model 130 can be used to extract feature information from images. In the field of information retrieval, the feature extraction model 130 can be used to extract feature information from text, etc.

[0027] like Figure 1As shown, in some embodiments, the feature extraction model 130 outputs a set of sample features 140 based on the input sample 110. For example, if the input sample 110 is an image, the set of sample features 140 may be the feature information of that image. The set of sample features 140 may be represented in the form of a vector or in other forms of data. It should be understood that in some embodiments, the feature extraction model 130 may also output more than one set of sample features 140 for the input sample 110, each set of sample features 140 having certain similar features. For example, the output sets of sample features 140 may each have different color features.

[0028] A set of sample features 140 can be provided to classifier 150. Additionally, the annotation information of the input sample 110 can also be provided to the classifier (not shown in the figure). Classifier 150 can determine the confidence level of input sample 110 and the similarity of the set of sample features 140. Classifier 150 can also determine a loss 160 based on the confidence level of input sample 110 and the similarity of the set of sample features 140, according to a loss function. By returning the loss 160 to feature extraction model 130, the parameters of feature extraction model 130 can be adjusted, thereby training feature extraction model 130.

[0029] The above combination Figure 1 An example environment 100 according to some embodiments of the present disclosure is described below. Reference will be made to... Figure 2 This is a flowchart describing a method 200 for training a feature extraction model 130 according to some embodiments of the present disclosure. Method 200 can be... Figure 1 The computing system 120 is used for implementation. It should be understood that method 200 can also be performed by other suitable devices or apparatuses. Method 200 may include additional actions not shown and / or the actions shown may be omitted; the scope of this disclosure is not limited in this respect. For ease of explanation, reference will be made to... Figure 1 Let's describe method 200.

[0030] like Figure 2 As shown, at 210, the computation system 120 determines the confidence level of the input sample 110 and the similarity between the set of sample features 140 based on a set of sample features 140 extracted from the input sample 110 by the feature extraction model 130. For example, the computation system 120 can determine the similarity of the set of sample features 140 by calculating the sum of the Euclidean distances between the individual sample features in the set of sample features 140. For example, when the sum of the Euclidean distances exceeds a certain threshold distance, it indicates a low degree of similarity. Conversely, when the sum of the Euclidean distances does not exceed a certain threshold distance, it indicates a high degree of similarity.

[0031] In some embodiments, the calculation system 120 can determine the confidence level of the input sample 110 based on the similarity level. For example, if the determined similarity level is high, the confidence level of the input sample 110 is high, and vice versa.

[0032] Additionally or alternatively, in some embodiments, an aggregation point of a set of sample features 140 can be determined in the feature space based on the overall similarity between points in the feature space and the set of sample features 140. After determining the aggregation point, the aggregation similarity between the set of sample features 140 and the aggregation point can then be determined.

[0033] For example, the aggregation point of a set of sample features 140 can be determined by using the potential energy minimization (PEM) algorithm. Figure 3 A schematic diagram of potential energy curves according to some embodiments of the present disclosure is shown. Figure 3 As shown, on curve 310, the potential energy has a minimum value at 320. When the potential energy has a minimum value, the corresponding distance r0 is the most stable distance. Figure 3 The example curve can be used to calculate the potential energy E (or Ei) using equation (1). p ).

[0034]

[0035] In equation (1), E represents potential energy and r represents the distance between two molecules.

[0036] Combining Equation (1), the potential energy is applied to a set of sample features 140, and Equation (2) can be used to calculate the similarity of a set of sample features 140.

[0037]

[0038] In equation (2), d ij This represents two feature values ​​in a set of sample features 140, for example, x. i With x j The distance between them, such as the Euclidean distance. For two feature values ​​in the same set of sample features 140, λ in equation (2) can be set to a larger value, such as 1. For the case of multiple sets of sample features, λ can be set to a smaller value, such as 0, when calculating the potential energy between two feature values ​​belonging to different sets of sample features. It should be understood that the example values ​​0 and 1 described above are merely exemplary and do not limit this disclosure in any way. L in equation (2) PTM The second loss function will be discussed in conjunction with the following text. Figure 2 A more detailed description of the second loss function.

[0039] By using the potential energy calculation formula shown in equation (2), the aggregation point c of a set of sample features 140 can be determined in the feature space using PEM. This aggregation point c minimizes the total potential energy between the set of sample features 140.

[0040] After determining the aggregation point c, the aggregation similarity (also known as the distance) between a set of sample features 140 and the aggregation point c can be determined. In some embodiments, there may be multiple sets of sample features and multiple aggregation points. The aggregation similarity between one or more sets of sample features 140 and one or more aggregation points c can be determined by equations (3) and (4).

[0041] d n,i =exp(-||(x) n -c i )||2) (3) In equation (3), x n c represents the features of the input sample n. i Let represent the i-th aggregation point. exp(·) denotes the exponential function, and d n,i This represents the input sample n and the aggregation point c. i The distance between them (or the degree of aggregation similarity).

[0042]

[0043] The distance d in equation (3) can be... n,i Transformed into the distance d in equation (4) n,i In equation (4), C N Let N(...) represent the set of all aggregation points. N(...) represents a Gaussian distribution.

[0044] In some embodiments, confidence can be determined based on aggregate similarity and a similarity threshold. For example, when aggregate similarity (or distance) exceeds a similarity threshold, the confidence is determined to be low. Conversely, when aggregate similarity (or distance) does not exceed a similarity threshold, the confidence is determined to be high. For example, a low confidence level can be set to 0, and a high confidence level can be set to 1. It should be understood that confidence can also be set to other appropriate values.

[0045] Alternatively, confidence levels can be calculated based on aggregate similarity using, for example, linear equations. For instance, the confidence level for a distance (also known as aggregate similarity) of 0 can be set to 1, while the confidence level for a distance (also known as aggregate similarity) that is a similarity threshold can be set to 0. By setting the confidence levels for these two points, the confidence levels corresponding to other distances (or aggregate similarities) can be calculated using linear equations.

[0046] Additionally or alternatively, in some embodiments, classifier 150 may be a distance-based classifier. For example, classifier 150 may output a distance d as determined by equation (3) or equation (4). n,i Classifier 150 can also output confidence scores as described above. By using the distance-based classifier described above, the classifier is interpretable, structurally simple, and easier to implement.

[0047] Return to Figure 2 At point 220, the computation system 120 determines a first loss based on the confidence level, a set of sample features 140, and the annotation information of the input sample 110. The first loss is related to the quality of the annotation information. It should be understood that the annotation information associated with the input sample 110 can be a single annotation or a set of annotations. The annotation information can be in the form of a vector or other similar data representation. For example, a cross-entropy function can be used to determine the first loss, where the confidence level can be used as a weight in the cross-entropy function.

[0048] At 230, the calculation system 120 determines a second loss based on the similarity between a set of sample features 140. The second loss is related to the quality of the set of sample features 140. For example, when a set of sample features 140 is more concentrated, i.e., the similarity is high, it indicates that the quality of the set of sample features 140 is higher. A set of sample features 140 with higher quality has a lower second loss. For example, the second loss can be determined by calculating the total distance between a set of sample features 140. Alternatively, the second loss can be determined using equation (2) described above.

[0049] At position 240, the computation system 120 trains the feature extraction model 130 based on the first loss and the second loss. For example, the total loss of the first loss and the second loss (i.e., loss 160) can be calculated by the following equation (5), and loss 160 is returned to the feature extraction model 130.

[0050]

[0051] In equation (5), t represents the number of iterations performed by the feature extraction model 130, and L (t) This represents the total loss in the t-th iteration, which is a loss of 160. Let represent the weight of the input sample n in the t-th iteration, which can be determined by the confidence level. Let xn represent the extracted feature vector of the input sample n, and y... n This represents the annotation information for the input sample n. L clf Let represent the first loss function, which can be a function such as mean squared error. Let B represent the total number of samples used in a batch during the t-th iteration; for example, 32 input samples can be selected as a batch for processing. The weighted value obtained from the first function. This is the first loss. L in equation (5) PTM (C) is the second loss function described in detail in equation (2).

[0052] In some embodiments, the weights of the input sample n at the t-th iteration shown in equation (5) The confidence level can be determined from the previous iteration, specifically the (t-1)th iteration. For example, if the previous iteration determined that the confidence level of the input sample n is low, then the weight of the input sample n at the t-th iteration can be determined. Set it to a lower value, for example, 0.2. In contrast, if the confidence level of input sample n is determined to be high in the current iteration, then the weight of input sample n in the t-th iteration can be... The values ​​were not set to high values, such as 0.8. It should be understood that the weight values ​​listed above are merely illustrative, and the weights can be set to any appropriate value.

[0053] It should be understood that when the labeled information is incorrect or noisy, the value calculated by the first loss function in equation (5) may be large. By applying a lower weight to it as described above, the value of the weighted first loss can be lowered. In this way, the impact of the loss value of incorrect or noisy labeled information on the training of the feature extraction model 130 can be reduced.

[0054] In some embodiments, after the loss 160 is provided to the feature extraction model 130, the parameters of the feature extraction model 130 can be adjusted to train the feature extraction model 130. For example, the parameters of the feature extraction model 130 can be adjusted using a backpropagation method. Additionally or alternatively, the loss 160 can also be used to adjust the parameters of the classifier 150 to train the classifier 150.

[0055] In this way, the confidence level of the input sample can be considered in the loss 160, and the weight of the first loss corresponding to untrusted input samples can be reduced. This reduces the impact of the first loss value of mislabeled or noisy labeling information on the training of the feature extraction model 130. In this manner, the feature extraction model 130 can be trained more effectively. The resulting feature extraction model can derive more accurate feature values.

[0056] Furthermore, embodiments of this disclosure utilize a distance-based, interpretable classifier. The model structure is simple, easy to use, and easy to optimize. Moreover, the classifier's runtime is extremely short, negligible compared to the feature extraction time of the feature extraction model 130. The training scheme for the feature extraction model of this disclosure is simple in structure and easy to control, thus it can be applied to various tasks. For example, it can be applied to image feature extraction, text feature extraction, language feature extraction, video feature extraction, and so on.

[0057] Figure 4 Example processes 400 according to some embodiments of this disclosure are shown. For example... Figure 4 Therefore, the computational system 120 uses a noisy sample set {z, y}, where z represents the input sample and y represents the annotation information. Feature extraction model f θ (i.e., feature extraction model 130) has initialized model parameters θ. The loss function has initialized weights w. (1) The feature-privileged model 130 is trained by performing T iterations. T can be set to any appropriate integer value. In each iteration, a batch (of size B, which can be set to any appropriate integer value) of input samples is selected for processing.

[0058] For each batch, features x are extracted by feature extraction model 130. Distance d is calculated by classifier 150 (or other devices or components of computing system 120) according to equation (3). Weights w are updated based on the results of the previous iteration. (t) Based on w (t) Calculate the weighted cross-entropy loss as the first loss. Calculate the second loss according to equation (2). Calculate the sum of the second and second losses according to equation (5) as loss 160. Based on loss 160, use backpropagation to update the parameters θ of the feature extraction model 130.

[0059] pass Figure 4 The example process shown considers the confidence level of the input samples in the loss 160 and reduces the weight of the first loss corresponding to untrusted input samples. In this way, the impact of the first loss value of mislabeled or noisy labeling information on the training of the feature extraction model 130 can be reduced. This allows for better training of the feature extraction model 130. The resulting feature extraction model can derive more accurate feature values.

[0060] Figure 5 A schematic diagram showing example outputs of feature extraction models according to some embodiments of the present disclosure and outputs of conventional schemes is illustrated. Figure 5Result 510 shows the feature extraction result obtained using a noisy labeled dataset with a conventional approach, while result 520 shows the feature extraction result obtained using the proposed method with a noisy labeled dataset. Comparing results 510 and 520 shows that the feature extraction result obtained using the proposed method can better distinguish different features, and the obtained results are more focused.

[0061] Figure 5 Result 530 shows the feature extraction result obtained using a noise-free labeled dataset with a conventional approach, while result 540 shows the feature extraction result obtained using the present disclosure's approach with a noise-free labeled dataset. Comparing results 530 and 540 shows that the feature extraction result obtained using the present disclosure's approach can better distinguish different features, and the obtained results are more focused.

[0062] Table 1 shows a comparison of the accuracy of the conventional approach and the proposed approach after 20 and 200 generations of training, respectively, for datasets with different noise ratios. As can be seen from Table 1, the feature extraction model trained using the proposed approach yields more accurate feature extraction results. In particular, after more generations of training, such as 200 generations, the accuracy of the feature extraction results obtained by the proposed approach is significantly improved.

[0063] Table 1 Accuracy Comparison

[0064] 20s training 200 generation training Standard solution, noise 5% 89.52% 90.35% This solution has a noise level of 5%. 85.01% 89.31% Conventional solution, noise level 25% 84.00% 78.14% This solution reduces noise by 25%. 79.68% 86.18% Conventional solution, noise level 50% 75.36% 52.18% This solution reduces noise by 50%. 65.08% 77.11%

[0065] Figure 6 A schematic block diagram of an example device 600 that can be used to implement embodiments of the present disclosure is shown. For example, such as Figure 1 The computing system 120 shown can be implemented by device 600. For example... Figure 6 As shown, device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 602 or loaded from storage unit 608 into random access memory (RAM) 603. RAM 603 may also store various programs and data required for the operation of device 600. CPU 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0066] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as a keyboard, mouse, etc.; output unit 607, such as various types of displays, speakers, etc.; storage unit 608, such as a disk, optical disk, etc.; and communication unit 609, such as a network card, modem, wireless transceiver, etc. In some embodiments, input samples can be input to device 600 via input unit 606. Communication unit 609 allows device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0067] The various processes and procedures described above, such as method 200 and / or process 400, may be executed by processing unit 601. For example, in some embodiments, method 200 and / or process 400 may be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by CPU 601, one or more actions of method 200 and / or process 400 described above may be performed.

[0068] This disclosure can be a method, apparatus, system, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of this disclosure.

[0069] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0070] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0071] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0072] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0073] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0074] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0075] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0076] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A computer-implemented method, comprising: Based on a set of sample features extracted from an input sample by a feature extraction model, the confidence level of the input sample and the similarity between the set of sample features are determined, wherein the input sample includes one of an image, audio, or video, and wherein determining the confidence level includes: Based on the total similarity between points in the feature space and the set of sample features, an aggregation point for the set of sample features is determined in the feature space. Determine the aggregation similarity between the set of sample features and the aggregation points, and The confidence level is determined based on the aggregation similarity and the similarity threshold. Based on the confidence level, the set of sample features, and the annotation information of the input sample, a first loss is determined, wherein the first loss is related to the quality of the annotation information; Based on the similarity among the features of the set of samples, a second loss is determined, the second loss being related to the quality of the features of the set of samples; and The feature extraction model is trained based on the first loss and the second loss.

2. The method according to claim 1, wherein the confidence level and the similarity level are determined by a classifier.

3. The method according to claim 2, further comprising: The classifier is trained based on the first loss and the second loss.

4. An electronic device, comprising: At least one processor; as well as At least one memory storing computer program instructions, the at least one memory and the computer program instructions being configured, together with the at least one processor, to cause the electronic device to perform actions, the actions including: Based on a set of sample features extracted from an input sample by a feature extraction model, the confidence level of the input sample and the similarity between the set of sample features are determined, wherein the input sample includes one of an image, audio, or video, and wherein determining the confidence level includes: Based on the total similarity between points in the feature space and the set of sample features, an aggregation point for the set of sample features is determined in the feature space. Determine the aggregation similarity between the set of sample features and the aggregation points, and The confidence level is determined based on the aggregation similarity and the similarity threshold. Based on the confidence level, the set of sample features, and the annotation information of the input sample, a first loss is determined, wherein the first loss is related to the quality of the annotation information; Based on the similarity among the features of the set of samples, a second loss is determined, the second loss being related to the quality of the features of the set of samples; and The feature extraction model is trained based on the first loss and the second loss.

5. The electronic device of claim 4, wherein the confidence level and the similarity level are determined by a classifier.

6. The electronic device according to claim 5, wherein the action further includes: The classifier is trained based on the first loss and the second loss.

7. A computer program product tangibly stored on a non-volatile computer-readable medium and comprising machine-executable instructions that, when executed, cause a device to perform the method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Neural network training method, object identification method and device, and medium

    CN111191781A