A spatial potential measurement method and system for small sample learning of neural networks

By constructing a quasi-high-dimensional space electrostatic field in the neural network and using the potential superposition value for small sample measurement, the problem of ignoring the relative measurement relationship between classes and increasing learning costs in the existing technology is solved, and an efficient small sample learning effect is achieved.

CN114358068BActive Publication Date: 2024-10-18XIAMEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing small sample measurement technology emphasizes the absolute measurement relationship between classes, ignores the relative measurement relationship between classes, and uses complex network models to increase learning costs and computational complexity.

Method used

A spatial potential measurement method for small sample learning of neural networks is proposed. A quasi-high-dimensional space electrostatic field is constructed through a feature embedding extraction network and a charge parameter extraction network. The potential superposition value is used as the measurement value of unlabeled instances, and the terminal Learn network parameters in peer mode.

Benefits of technology

It achieves comprehensive consideration of the relationships within and between categories at low model cost and low computational complexity, improves the classification accuracy and generalization ability of small sample tasks, simplifies the model structure and improves portability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114358068B_ABST
    Figure CN114358068B_ABST
Patent Text Reader

Abstract

The present invention proposes a spatial potential measurement method for neural network small sample learning, comprising: firstly extracting the network f by feature embedding θ Feature extraction is performed on the support set and query set in a certain scenario to obtain the feature embedding vector set of labeled instances and unlabeled instances; secondly, the network g is extracted through the charge parameter Θ Parameters are extracted from the feature embedding vectors of the labeled instances, the charge range parameters of the labeled instances are obtained, and the same type of mean fusion is performed; then, the feature embedding vector set of the labeled instances and the charge range parameters of the labeled instances are used to construct a quasi-space electrostatic field, and the superposition potential of the unlabeled instances in the electrostatic field is used as the metric between the unlabeled instances and the labeled instances; finally, the category probability and the learning loss are obtained according to the metric, and all network parameters are updated by back propagation. The method provided by the present invention can be compatible with most small sample networks at a lower model cost, and further improve the expressiveness of small sample tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a spatial potential measurement method and system for small sample learning of neural networks. Background Art

[0002] In recent years, deep learning models have made significant breakthroughs in computer vision tasks such as image classification, semantic segmentation, and object detection. By training and iterating on a large number of data samples, the models can perform better than or even surpass human capabilities in practical applications. In most learning tasks, the prerequisite for deep learning to show superior performance is often to have a large number of labeled samples. When the learning task changes slightly, the results usually collapse. In contrast, humans can generalize important knowledge from a small number of examples and apply it to new scenarios. We call this ability the ability to learn to learn, or meta-learning.

[0003] Small sample learning is a major application in the field of meta-learning. It can effectively solve problems such as overfitting of models under small data sets. Therefore, small sample learning based on deep learning has greater potential. Fine-tuning techniques that work well with traditional deep learning models cannot represent the true data distribution with only a few labeled instances, and will cause the learned classifier to have a large variance, making it difficult to generalize to new data. In order to solve this overfitting problem, Vinyals et al. proposed a matching network (MatchNet) with a meta-learning strategy in 2016. This strategy can learn different classification tasks from a large number of scenarios. In each scenario, the algorithm learns the feature embedding of a few labeled instances (support set) and predicts the category of unlabeled instances (query set) based on the cosine distance in the embedding space. Since this situational meta-learning strategy has excellent generalization performance, it has been adopted by subsequent small-sample learning. For example, Finn et al. proposed a method for learning good initialization, namely model-agnostic meta-learning (MAML) in 2017, which can quickly adapt to the target task; Snell et al. proposed prototypical networks (ProtoNet) in 2017, which predicts the corresponding category through situational training and calculating the Euclidean distance of the class prototype.

[0004] Most of the metric-based small sample learning involves the distance measurement stage, while the traditional small sample learning methods mentioned above mostly only use cosine distance, Euclidean distance, etc. for measurement. This type of distance emphasizes absolute relationships more, but does not pay attention to changes between or within classes, which can easily reduce the prediction performance in some scenarios. In 2018, Meng Yet et al. proposed a deep triplet ranking network (DTPN). This loss was first proposed for use in the FaceNet network, which reduced the error of the unilateral distance measurement between unlabeled and labeled instances to a certain extent, and reduced the probability of misclassification in similar categories. In 2019, Yanbin Liu et al. proposed a transductive propagation network (TPN), which comprehensively measures and predicts sample categories through graph models and label propagation, thereby improving the reliability of the classifier. Both of the above methods can use information between and within classes to make more reasonable predictions, but the learning cost and overall complexity are also increased.

[0005] In summary, the existing small sample measurement techniques have the following disadvantages:

[0006] 1. More emphasis is placed on the absolute metric relationship between classes, while ignoring the relative metric relationship between classes;

[0007] 2. The use of additional complex network models or measurement algorithms for measurement increases the cost of small sample learning to a certain extent. Summary of the invention

[0008] The main purpose of the present invention is to overcome the above-mentioned defects in the prior art and propose a spatial potential measurement method for small sample learning of neural networks, thereby solving the technical problem that the existing small sample measurement technology cannot comprehensively consider the relationships within and between categories with low model cost and low computational complexity.

[0009] The present invention adopts the following technical solution:

[0010] A spatial potential measurement method for small sample learning of neural networks, comprising:

[0011] Input the support set and query set into the feature embedding extraction network to obtain the feature embedding vector sets of labeled and unlabeled instances respectively;

[0012] Input the feature embedding vector of the labeled instance into the charge parameter extraction network to obtain the parameter as the charge of the labeled instance;

[0013] The feature embedding vectors and charge range parameters of the same category are all mean-fused, and a quasi-high-dimensional space electrostatic field is constructed;

[0014] According to the marked examples, positive and negative point charges are set, and the charge of the point charges is combined. Under all point charge polarity combinations, the potential superposition value of the feature embedding vector of the unmarked example at the position point in the electrostatic field of the quasi-high-dimensional space is obtained, and the potential superposition value is used as the metric value of the unmarked instance.

[0015] The metric values ​​are converted into class probability scores and the metric learning loss between the class probability scores and the true labels from unlabeled instances is calculated to learn all network parameters in an end-to-end manner.

[0016] Specifically, the support set and query set are:

[0017] From the training set C train Samples of N categories are sampled from the support set and query set; the support set contains K samples for each N categories, expressed as: S = {(x1, y1), (x2, y2), (x i ,y i )...,(x N×K ,y N×K )}; The query set contains a variable number of samples for each N categories, expressed as: And S∈C train , Q∈C train , where x i is the D-dimensional input vector, y i is x i The label, i = 1, 2, 3...N × K; is the D-dimensional input vector, yes label, i = 1, 2, 3...T; N, K, T are all positive integers.

[0018] Specifically, the support set and query set are input into the feature embedding extraction network to obtain the feature embedding vector sets of labeled and unlabeled instances, respectively, as follows:

[0019] The feature embedding vector is obtained by transforming the sample x i Input to the feature embedding extraction network f θ The obtained M-dimensional vector,

[0020] For the support set S and query set Q, the same feature embedding extraction network f is used θ , the feature embedding vector of the labeled instance obtained by the support set S is expressed as: f θ (x i), the feature embedding vector of the unlabeled instance obtained by the query set Q is expressed as:

[0021] Specifically, the charge parameter extraction network is:

[0022] The charge parameter extraction network consists of a fully connected layer with only a single neuron output, denoted as: g Θ , where Θ represents the network parameters.

[0023] The feature embedding vector f of the labeled instance θ (x i ) After the charge parameter extraction network g Θ Get the charge range parameter q i =g Θ (f θ (x i )).

[0024] Specifically, the feature vectors and charge range parameters of the same category are averaged and fused as follows:

[0025] The methods for mean fusion of feature embedding vector and charge range parameter are as follows:

[0026]

[0027]

[0028] Where K S It represents the number of samples contained in each category of the support set S. Here, only the mean fusion operation is performed on the labeled samples.

[0029] Specifically, all point charge polarity combinations are traversed to obtain the potential superposition value of the spatial position point where the feature embedding vector of each unlabeled instance is located under different combinations, and the potential superposition value is used as the metric value of the unlabeled instance. The metric value is specifically:

[0030]

[0031] where d(·,·) is expressed as the Euclidean distance, represents the feature embedding of the unlabeled instance, F p , Q p The feature embedding vector and charge range parameter representing the labeled instance as a positive point charge, Feature embedding vector and charge magnitude range parameter representing the labeled instance as a negative point charge.

[0032] Specifically, the metric value is converted into a class probability score as follows:

[0033] The method of converting the metric value into the category probability score is implemented using the soft max function:

[0034]

[0035] in, represents the i-th unlabeled instance The predicted label of Represents the spatial potential measure of the i-th unlabeled instance with the j-th labeled instance as a positive point charge.

[0036] Specifically, the metric learning loss is:

[0037] The cross entropy loss is used to measure learning loss:

[0038]

[0039] Among them, y i represents the i-th unlabeled instance x i The true label of , I(·) is an indicator function used to reflect whether the prediction is correct, that is, when the prediction is correct, I(·) = 0, otherwise I(·) = 1.

[0040] The embodiment of the present invention provides a spatial potential measurement system for small sample learning of a neural network, comprising:

[0041] Feature embedding vector set acquisition unit: inputs the support set and the query set into the feature embedding extraction network to obtain the feature embedding vector sets of the labeled and unlabeled instances respectively;

[0042] Charge acquisition unit for labeled instances: inputs the feature embedding vector of the labeled instance into the charge parameter extraction network to obtain the parameter as the charge of the labeled instance;

[0043] High-dimensional space electrostatic field construction unit: the feature embedding vectors and charge range parameters of the same category are mean-fused, and a quasi-high-dimensional space electrostatic field is constructed;

[0044] Spatial potential measurement value acquisition unit: according to the marked instance, positive and negative point charges are set, and the charge amount of the point charges is combined. Under all point charge polarity combinations, the potential superposition value of the feature embedding vector of the unmarked instance at the position point in the quasi-high-dimensional space electrostatic field is obtained, and the potential superposition value is used as the measurement value of the unmarked instance;

[0045] Network parameter updating unit: converts the metric value into a category probability score and calculates the metric learning loss between the category probability score and the true label from the unlabeled instance to learn all network parameters in an end-to-end manner.

[0046] It can be seen from the above description of the present invention that, compared with the prior art, the present invention has the following beneficial effects:

[0047] (1) The present invention constructs a quasi-high-dimensional space electrostatic field to measure the potential of unlabeled instances and labeled instances in the embedded space, which can comprehensively consider the joint relationship between all labeled instances and unlabeled instances in the embedded space, and is conducive to sample expansion, further improving the classification accuracy and generalization ability of small sample tasks.

[0048] (2) In terms of model structure, the present invention only adds a layer of fully connected network with single neuron output. The model is simple and the additional learning cost is low.

[0049] (3) The small sample learning method based on spatial potential measurement provided by the present invention can be flexibly compatible with the small sample task composed of a feature embedding extraction module, a feature embedding measurement module and a loss generation module, and has high portability. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a schematic diagram of a spatial potential measurement method for small sample learning of neural networks;

[0051] Figure 2 This is a flow chart of a spatial potential measurement method for small sample learning of neural networks;

[0052] Figure 3 This is a structural diagram of a spatial potential measurement system for small-sample learning of neural networks.

[0053] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION

[0054] The present invention proposes a spatial potential measurement method for small sample learning of neural networks, thereby solving the technical problem in existing small sample measurement technologies that is unable to comprehensively consider the relationships within and between categories with low model cost and low computational complexity.

[0055] like Figure 1 This is a schematic diagram of a spatial potential measurement method for small sample learning of neural networks, such as Figure 2 This is a flow chart of a spatial potential measurement method for small sample learning of neural networks, including:

[0056] S101: input the support set and the query set into the feature embedding extraction network to obtain feature embedding vector sets of labeled and unlabeled instances respectively;

[0057] Specifically, the support set and query set are:

[0058] From the training set Ctrain Samples of N categories are sampled from the support set and query set; the support set contains K samples for each N categories, expressed as: S = {(x1, y1), (x2, y2), (x i ,y i )...,(x N×K ,y N×K )}; The query set contains a variable number of samples for each N categories, expressed as: And S∈C train , Q∈C train , where x i is the D-dimensional input vector, y i is x i The label, i = 1, 2, 3...N × K; is the D-dimensional input vector, yes label, i = 1, 2, 3...T; N, K, T are all positive integers.

[0059] Specifically, the support set and query set are input into the feature embedding extraction network to obtain the feature embedding vector sets of labeled and unlabeled instances, respectively, as follows:

[0060] The feature embedding vector is obtained by transforming the sample x i Input to the feature embedding extraction network f θ The obtained M-dimensional vector,

[0061] For the support set S and query set Q, the same feature embedding extraction network f is used θ , the feature embedding vector of the labeled instance obtained by the support set S is expressed as: f θ (x i ), the feature embedding vector of the unlabeled instance obtained by the query set Q is expressed as:

[0062] For the support set S and the query set Q, they can use the same feature embedding extraction network or different feature embedding extraction networks. In the following description, the present invention uses the same feature embedding extraction network f by default. θ .

[0063] S102: inputting the labeled feature vector into a charge parameter extraction network to obtain a parameter as the charge of the labeled example;

[0064] Specifically, the charge parameter extraction network is:

[0065] The charge parameter extraction network consists of a fully connected layer with only a single neuron output, denoted as: gΘ , where Θ represents the network parameters.

[0066] The feature embedding vector f of the labeled instance θ (x i ) After the charge parameter extraction network g Θ Get the charge range parameter q i =g Θ (f θ (x i )).

[0067] S103: performing mean fusion on the feature vectors and charge range parameters of the same category to construct a quasi-high-dimensional space electrostatic field;

[0068] Specifically, the feature vectors and charge range parameters of the same category are averaged and fused as follows:

[0069] The methods for mean fusion of feature embedding vector and charge range parameter are as follows:

[0070]

[0071]

[0072] Where K S It represents the number of samples contained in each category of the support set S. Here, only the mean fusion operation is performed on the labeled samples.

[0073] S104: according to the marked examples, positive and negative point charges are set, and the charge amount of the point charges is combined, and the potential superposition value of the feature embedding vector of the unmarked example at the position point in the electrostatic field of the quasi-high-dimensional space is obtained by traversing all point charge polarity combinations, and the potential superposition value is used as the measurement value of the unmarked example;

[0074] Any one class of labeled examples is regarded as positive point charge and the other classes of labeled examples are regarded as negative point charge. Combined with the charge range parameter, the "potential superposition value" of the unlabeled eigenvector at the position point in the "electrostatic field" in the quasi-high-dimensional space is obtained.

[0075] Specifically, all point charge polarity combinations are traversed to obtain the potential superposition values ​​of the positions of different unlabeled eigenvectors under different combinations, and the potential superposition values ​​are used as the metric values ​​of the unlabeled instances. The metric values ​​are specifically:

[0076]

[0077] where d(·,·) is expressed as the Euclidean distance, represents the feature embedding of the unlabeled instance, F p , Q pThe feature embedding vector and charge range parameter representing the labeled instance as a positive point charge, Feature embedding vector and charge magnitude range parameter representing the labeled instance as a negative point charge.

[0078] S106: Convert the metric value into a category probability score, and calculate the metric learning loss between the category probability score and the true label from the unlabeled example, and learn all network parameters in an end-to-end manner.

[0079] Specifically, the metric value is converted into a class probability score as follows:

[0080] The method of converting the metric value into the category probability score is implemented using the softmax function:

[0081]

[0082] in, represents the i-th unlabeled instance The predicted label of Represents the spatial potential measure of the i-th unlabeled instance with the j-th labeled instance as a positive point charge.

[0083] Specifically, the metric learning loss is:

[0084] The cross entropy loss is used to measure learning loss:

[0085]

[0086] Among them, y i represents the i-th unlabeled instance x i The true label of , I(·) is an indicator function used to reflect whether the prediction is correct, that is, when the prediction is correct, I(·) = 0, otherwise I(·) = 1.

[0087] like Figure 3 The embodiment of the present invention provides a spatial potential measurement system for small sample learning of neural networks, including:

[0088] Feature embedding vector set acquisition unit 301: inputs the support set and the query set into the feature embedding extraction network to obtain feature embedding vector sets of labeled and unlabeled instances respectively;

[0089] The charge amount acquisition unit 302 of the marked instance: inputs the feature embedding vector of the marked instance into the charge amount parameter extraction network to obtain the parameter as the charge amount of the marked instance;

[0090] High-dimensional space electrostatic field construction unit 303: perform mean fusion on feature embedding vectors and charge range parameters of the same category, and construct a quasi-high-dimensional space electrostatic field;

[0091] The space potential metric value acquisition unit 304: sets positive point charges and negative point charges according to the marked examples, combines the charge amounts of the point charges, and obtains the potential superposition value of the feature embedding vector of the unmarked example at the position point in the quasi-high-dimensional space electrostatic field under traversing all point charge polarity combinations, and uses the potential superposition value as the metric value of the unmarked example;

[0092] The network parameter updating unit 305 converts the metric value into a category probability score, and calculates the category probability score and the metric learning loss from the true label of the unlabeled instance, and learns all network parameters in an end-to-end manner.

[0093] The present invention measures the unlabeled instances and labeled instances in the embedding space by constructing a quasi-high-dimensional space potential, which can comprehensively consider the joint relationship between all labeled instances and unlabeled instances in the embedding space, and is conducive to sample expansion, further improving the classification accuracy and generalization ability of small sample tasks. In addition, in terms of model structure, the present invention only adds a layer of fully connected network output by a single neuron, the model is simple, and the additional learning cost is low; and the small sample learning method based on spatial potential measurement provided by the present invention can be flexibly compatible with the small sample task composed of a feature embedding extraction module, a feature embedding measurement module, and a loss generation module, and has high portability.

[0094] The above is only a specific implementation of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantial changes to the present invention using this concept shall be deemed as an infringement of the protection scope of the present invention.

Claims

1. A spatial potential measurement method for small sample learning of neural networks, characterized in that: include: Input the support set and query set into the feature embedding extraction network to obtain the feature embedding vector sets of labeled and unlabeled instances respectively; Input the feature embedding vector of the labeled instance into the charge parameter extraction network to obtain the parameter as the charge of the labeled instance; The feature embedding vectors and charge range parameters of the same category are all mean-fused, and a quasi-high-dimensional space electrostatic field is constructed; According to the marked examples, positive and negative point charges are set, and the charge of the point charges is combined. Under all point charge polarity combinations, the potential superposition value of the feature embedding vector of the unmarked example at the position point in the electrostatic field of the quasi-high-dimensional space is obtained, and the potential superposition value is used as the metric value of the unmarked example. Convert the metric values ​​to class probability scores and calculate the metric learning loss between the class probability scores and the true labels of unlabeled instances to learn all network parameters in an end-to-end manner; The support set and query set are specifically: From the training set C train Samples of N categories are sampled from the support set and query set; the support set contains K samples for each N categories, expressed as: S = {(x1, y1), (x2, y2), (x i ,y i )...,(x N×K ,y N×K )}; The query set contains a variable number of samples for each N categories, expressed as: And S∈C train , Q∈C train , where x i is the D-dimensional input vector, y i is x i The label, i = 1, 2, 3...N × K; is the D-dimensional input vector, yes Label, i = 1, 2, 3...T; N, K, T are all positive integers; The support set and the query set are input into the feature embedding extraction network to obtain the feature embedding vector sets of the labeled and unlabeled instances respectively, specifically: The feature embedding vector is obtained by transforming the sample x i Input to the feature embedding extraction network f θ The obtained M-dimensional vector, For the support set S and query set Q, the same feature embedding extraction network f is used θ , the feature embedding vector of the labeled instance obtained by the support set S is expressed as: f θ (x i ), the feature embedding vector of the unlabeled instance obtained by the query set Q is expressed as: The charge quantity parameter extraction network is specifically: The charge parameter extraction network consists of a fully connected layer with only a single neuron output, denoted as: g Θ , where Θ represents the network parameters; The feature embedding vector f of the labeled instance θ (x i ) After the charge parameter extraction network g Θ Get the charge range parameter q i =g Θ (f θ (x i )); The feature vectors and charge range parameters of the same category are averaged and fused as follows: The methods for mean fusion of feature embedding vector and charge range parameter are as follows: Where K S Represents the number of samples contained in each category of the support set S. Here, only the mean fusion operation is performed on the labeled samples; The measurement values ​​are specifically: where d(·,·) is expressed as the Euclidean distance, represents the feature embedding of the unlabeled instance, F p , Q p The feature embedding vector representing the labeled instance as a positive point charge and the charge magnitude range parameter, F i n , A feature embedding vector and a charge magnitude range parameter representing the labeled instance as a negative point charge; The conversion of the metric value into a category probability score is specifically as follows: The method of converting the metric value into the category probability score is implemented using the soft max function: in, represents the i-th unlabeled instance The predicted label of represents the spatial potential measurement of the i-th unlabeled instance with the j-th labeled instance as a positive point charge; The metric learning loss is specifically: The cross entropy loss is used to measure learning loss: in, represents the i-th unlabeled instance The true label of , I(·) is an indicator function used to reflect whether the prediction is correct, that is, when the prediction is correct, I(·) = 0, otherwise I(·) = 1.

2. A spatial potential measurement system for small sample learning of neural networks, characterized in that: include: Feature embedding vector set acquisition unit: inputs the support set and the query set into the feature embedding extraction network to obtain the feature embedding vector sets of the labeled and unlabeled instances respectively; Charge acquisition unit for labeled instances: inputs the feature embedding vector of the labeled instance into the charge parameter extraction network to obtain the parameter as the charge of the labeled instance; High-dimensional space electrostatic field construction unit: the feature embedding vectors and charge range parameters of the same category are mean-fused, and a quasi-high-dimensional space electrostatic field is constructed; Spatial potential superposition value acquisition unit: according to the marked instance, positive and negative point charges are set, and the charge amount of the point charges is combined. Under all point charge polarity combinations, the potential superposition value of the feature embedding vector of the unmarked instance at the position point in the quasi-high-dimensional space electrostatic field is obtained, and the potential superposition value is used as the measurement value of the unmarked instance; Network parameter updating unit: converts the metric value into a category probability score, and calculates the metric learning loss between the category probability score and the true label from the unlabeled instance, and learns all network parameters in an end-to-end manner; The support set and query set are specifically: From the training set C train Samples of N categories are sampled from the support set and query set; the support set contains K samples for each N categories, expressed as: S = {(x1, y1), (x2, y2), (x i ,y i )...,(x N×K ,y N×K )}; The query set contains a variable number of samples for each N categories, expressed as: And S∈C train , Q∈C train , where x i is the D-dimensional input vector, y i is x i The label, i = 1, 2, 3...N × K; is the D-dimensional input vector, yes Label, i = 1, 2, 3...T; N, K, T are all positive integers; The support set and the query set are input into the feature embedding extraction network to obtain the feature embedding vector sets of the labeled and unlabeled instances respectively, specifically: The feature embedding vector is obtained by transforming the sample x i Input to the feature embedding extraction network f θ The obtained M-dimensional vector, For the support set S and query set Q, the same feature embedding extraction network f is used θ , the feature embedding vector of the labeled instance obtained by the support set S is expressed as: f θ (x i ), the feature embedding vector of the unlabeled instance obtained by the query set Q is expressed as: The charge quantity parameter extraction network is specifically: The charge parameter extraction network consists of a fully connected layer with only a single neuron output, denoted as: g Θ , where Θ represents the network parameters; The feature embedding vector f of the labeled instance θ (x i ) After the charge parameter extraction network g Θ Get the charge range parameter q i =g Θ (f θ (x i )); The feature vectors and charge range parameters of the same category are averaged and fused as follows: The methods for mean fusion of feature embedding vector and charge range parameter are as follows: Where K S Represents the number of samples contained in each category of the support set S. Here, only the mean fusion operation is performed on the labeled samples; The method traverses all point charge polarity combinations to obtain the potential superposition value of the spatial position point where the feature embedding vector of each unlabeled instance is located under different combinations, and uses the potential superposition value as the metric value of the unlabeled instance. The metric value is specifically: where d(·,·) is expressed as the Euclidean distance, represents the feature embedding of the unlabeled instance, F p , Q p The feature embedding vector and charge range parameter representing the labeled instance as a positive point charge, A feature embedding vector and a charge magnitude range parameter representing the labeled instance as a negative point charge; The conversion of the metric value into a category probability score is specifically as follows: The method of converting the metric value into the category probability score is implemented using the softmax function: in, represents the i-th unlabeled instance The predicted label of represents the spatial potential measurement of the i-th unlabeled instance with the j-th labeled instance as a positive point charge; The metric learning loss is specifically: The cross entropy loss is used to measure learning loss: in, represents the i-th unlabeled instance The true label of , I(·) is an indicator function used to reflect whether the prediction is correct, that is, when the prediction is correct, I(·) = 0, otherwise I(·) = 1.

Citation Information

Patent Citations

  • Migration neural network power prediction method suitable for grid-connected photovoltaic power generation

    CN110070227A

  • Neuromorphic visual target classification method based on improved spiking neural network

    CN112699956A