Generalized enhancement network-based few-sample increment target identification method

Through the generalization enhancement network and multi-level generalization strategy, the problem of performance degradation of the target recognition model in the autonomous driving system under small sample conditions is solved, the generalization ability and robustness of the model are improved, and the effective adaptation to new tasks is ensured. and retention of old knowledge.

CN118710962APending Publication Date: 2024-09-27XIDIAN UNIV HANGZHOU RES INST +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410779208.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When facing non-standard traffic signs, extreme weather and road changes, existing target recognition models suffer from performance degradation due to insufficient sample diversity and poor adaptability to rapid environments, making it difficult to accurately identify targets in autonomous driving systems.

Method used

A few-class incremental target recognition method based on generalization enhancement network is adopted. The generalization enhancement network is initialized by obtaining the basic network and training, combining instance-level and prototype-level generalization, and using multi-level generalization strategies and data enhancement technology. Optimize the loss function to improve model generalization ability.

Benefits of technology

It significantly enhances the generalization ability of the target recognition model, improves the over-fitting phenomenon, ensures that the model does not lose old knowledge when learning new knowledge, and improves the robustness and adaptability in new tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710962A
    Figure CN118710962A
Patent Text Reader

Abstract

The invention discloses a few-sample increment target identification method based on a generalization enhancement network. The method comprises the following steps: acquiring a to-be-processed image; inputting the to-be-processed image into a target recognition model obtained by training in advance based on a few-sample incremental learning algorithm, and obtaining a target recognition result of the to-be-processed image; wherein the target recognition model is a neural network obtained by acquiring and training a basic network, initializing a generalization enhancement network by using parameters of the basic network obtained by training, and further performing instance-level generalization and prototype-level generalization in the process of training the generalization enhancement network. According to the method, a generalization enhancement network and a multi-stage generalization strategy are introduced in a few-sample class incremental learning process, so that the generalization ability of the target recognition model is remarkably enhanced, and the target recognition model can more effectively adapt to a new class. In addition, the robustness of the target recognition model facing a new task is improved, and the problem of disastrous forgetting is effectively relieved through instance-level generalization and prototype-level generalization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of target recognition, and in particular relates to a few-sample incremental target recognition method based on a generalized enhanced network. Background Art

[0002] The generalization and adaptability of models are key to the development of artificial intelligence technology, especially in application areas such as visual recognition, natural language processing, and recommendation systems. The dynamic changes in data distribution pose severe challenges to the performance of the model. Taking autonomous driving as an example, the data captured by the vehicle's sensors may fluctuate significantly due to weather changes, seasonal changes, or diverse road conditions.

[0003] The design of the autonomous driving system must take into account the ability to accurately identify targets such as various traffic signs during driving, especially in the face of non-standard traffic signs, driving environments under extreme weather conditions, rare vehicle types, and emergency situations such as road closures or diversions due to construction. Due to the low frequency of these situations, it is very difficult to obtain a large amount of diverse annotated sample data for training. Therefore, when dealing with these challenging scenarios, existing target recognition models often suffer from performance degradation due to insufficient sample diversity and poor rapid environmental adaptability. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a method for incremental target recognition of a small number of samples based on a generalized enhanced network. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0005] The present invention provides a method for incremental target recognition of a small number of samples based on a generalized enhanced network, comprising:

[0006] Get the image to be processed;

[0007] The image to be processed is input into a target recognition model pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result; wherein the target recognition model is: after obtaining a basic network and training it, a generalization enhancement network is initialized using the parameters of the trained basic network, and further instance-level generalization and prototype-level generalization are performed in the process of training the generalization enhancement network to obtain a neural network.

[0008] In one embodiment of the present invention, the target recognition model is trained according to the following steps:

[0009] Obtain a basic network, which is a residual neural network ResNet18, including a first feature extractor and a first classifier, wherein the first feature extractor includes a 7*7 convolution layer Conv1, a first maximum pooling layer, four first convolution modules, a first average pooling layer and a first fully connected layer connected in sequence, and each of the first convolution modules includes four 3*3 convolution layers Conv2~Conv5 connected in sequence;

[0010] Obtain a preset number of training samples, where the training samples include a plurality of sample images and a label corresponding to each sample image;

[0011] Inputting the training sample into the basic network, calculating a first loss value according to the output of the first classifier, the cross entropy loss function and the label corresponding to the sample image, and then performing back propagation based on the first loss value to adjust the parameters of the basic network;

[0012] After reaching a preset number of training times or the first loss value meets a preset accuracy, a trained basic network is obtained;

[0013] Based on the parameters of the first feature extractor and the first classifier in the trained basic network, a generalization enhancement network is initialized; the generalization enhancement network includes: a second feature extractor and a second classifier, the second feature extractor includes a 7*7 convolution layer Conv6, a second maximum pooling layer, four second convolution modules, a second average pooling layer, a second fully connected layer and a projection head connected in sequence, and each of the second convolution modules includes four 3*3 convolution layers Conv7 to Conv10 connected in sequence;

[0014] Performing data enhancement on the preset number of training samples to increase the number of the training samples from B to 2B;

[0015] Inputting the data-enhanced training sample into the initialized generalization enhancement network, and calculating a second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function, and the label;

[0016] Back propagation is performed based on the second loss value to adjust the parameters of the projection head and the second classifier in the generalization enhancement network to obtain a trained target recognition model.

[0017] In one embodiment of the present invention, the step of initializing the generalization enhancement network based on the parameters of the first feature extractor in the trained basic network includes:

[0018] The parameters in the first feature extractor are copied to the second feature extractor, the parameters in the first classifier are copied to the second classifier, and the parameters of the projection head are randomly initialized to form a generalization enhancement network.

[0019] In one embodiment of the present invention, the data-enhanced training sample is input into the initialized generalization enhancement network, and the step of calculating the second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function and the label includes:

[0020] Inputting the data-enhanced training samples into the initialized generalization enhancement network to obtain the feature vector output by the second feature extractor and the predicted category output by the second classifier;

[0021] Calculating a loss value of the instance-level contrast loss function according to the feature vector output by the second feature extractor;

[0022] Calculating the class prototype corresponding to each category included in the training sample after the data enhancement, and calculating the loss value of the prototype-level contrast loss function based on the class prototype;

[0023] Obtaining the predicted category output by the second classifier, and calculating the loss value of the cross entropy loss function according to the predicted category and the label;

[0024] A second loss value is calculated according to the loss value of the instance-level contrast loss function, the loss value of the prototype-level contrast loss function, and the loss value of the cross-entropy loss function.

[0025] In one embodiment of the present invention, the loss value of the instance-level contrast loss function is calculated according to the following formula:

[0026]

[0027] Where, temperature coefficient τ′=0.07, I k represents the feature vector set of sample images corresponding to category k, K represents the number of categories, z i 、z j I k The feature vectors corresponding to the i-th and j-th sample images in z q represents the feature vector corresponding to the qth sample image in other categories except category k, and sim represents the similarity function.

[0028] In one embodiment of the present invention, the class prototype corresponding to each category is calculated according to the following formula:

[0029]

[0030] In the formula, μ k represents the class prototype corresponding to category k, n k represents the number of training samples after data enhancement in category k, Represents the feature vector of the t-th data augmented training sample in category k.

[0031] In one embodiment of the present invention, the loss value of the prototype level contrast loss function is calculated according to the following formula:

[0032]

[0033] In the formula, μ u represents the sum of the class prototypes of other categories except category k, Aug represents data enhancement processing, φ aug (Aug(x m )) represents the mth training sample x m After data enhancement processing, the second feature extractor is used to extract features to obtain a feature vector, where β represents a scaling factor.

[0034] In a second aspect, the present invention further provides a device for incremental target recognition of a small number of samples based on a generalization enhancement network, comprising:

[0035] An acquisition module, used for acquiring an image to be processed;

[0036] The recognition module is used to input the image to be processed into a target recognition model pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result; wherein the target recognition model is: after obtaining a basic network and training it, the parameters of the trained basic network are used to initialize a generalized enhanced network, and further in the process of training the generalized enhanced network, instance-level generalization and prototype-level generalization are performed to obtain a neural network.

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

[0038] The present invention provides a few-sample class incremental target recognition method based on a generalization enhancement network. In the process of few-sample class incremental learning, a generalization enhancement network and a multi-level generalization strategy are introduced, which significantly enhances the generalization ability of the target recognition model and enables the target recognition model to adapt to new categories more effectively.

[0039] In addition, since the training samples are augmented with data during the training process, the overfitting phenomenon is effectively improved, and the robustness of the target recognition model when facing new tasks is improved. Instance-level generalization and prototype-level generalization effectively alleviate the catastrophic forgetting problem, ensuring that the target recognition model does not lose old knowledge while learning new knowledge.

[0040] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of a method for incremental target recognition of a few-sample class based on a generalized enhanced network provided by an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of a target recognition model training process provided by an embodiment of the present invention;

[0043] Figure 3 It is a structural diagram of a device for incremental target recognition of a small number of samples based on a generalized enhanced network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0045] Figure 1 is a flow chart of a method for incremental target recognition of a few-sample class based on a generalized enhanced network provided by an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a method for incremental target recognition of a small number of samples based on a generalized enhanced network, comprising:

[0046] S1, obtaining the image to be processed;

[0047] S2. Input the image to be processed into a target recognition model that has been pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result of the image to be processed; wherein the target recognition model is: after obtaining and training a basic network, the parameters of the trained basic network are used to initialize a generalized enhanced network, and further instance-level generalization and prototype-level generalization are performed in the process of training the generalized enhanced network to obtain a neural network.

[0048] Optionally, the target recognition model is trained according to the following steps:

[0049] Obtain a basic network, which is a residual neural network ResNet18, including a first feature extractor and a first classifier, wherein the first feature extractor includes a 7*7 convolution layer Conv1, a first maximum pooling layer, four first convolution modules, a first average pooling layer and a first fully connected layer connected in sequence, and each first convolution module includes four 3*3 convolution layers Conv2~Conv5 connected in sequence;

[0050] Obtain a preset number of training samples, where the training samples include multiple sample images and a label corresponding to each sample image;

[0051] Input the training sample into the basic network, calculate the first loss value according to the output of the first classifier, the cross entropy loss function and the label corresponding to the sample image, and then perform back propagation based on the first loss value to adjust the parameters of the basic network;

[0052] Until the preset number of training times is reached or the first loss value meets the preset accuracy, a trained basic network is obtained;

[0053] Based on the parameters of the first feature extractor and the first classifier in the trained basic network, a generalized enhanced network is initialized; the generalized enhanced network includes: a second feature extractor and a second classifier, the second feature extractor includes a 7*7 convolution layer Conv6, a second maximum pooling layer, four second convolution modules, a second average pooling layer, a second fully connected layer and a projection head connected in sequence, and each second convolution module includes four 3*3 convolution layers Conv7 to Conv10 connected in sequence;

[0054] Performing data augmentation on a preset number of training samples to increase the number of training samples from B to 2B;

[0055] Input the data-enhanced training sample into the initialized generalization enhancement network, and calculate the second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function, and the label;

[0056] Back propagation is performed based on the second loss value to adjust the parameters of the projection head and the second classifier in the generalization enhancement network to obtain a trained target recognition model.

[0057] In this embodiment, the goal of the basic network during the training process is to learn how to extract feature vectors from given training samples. Optionally, a residual neural network ResNet18 is used as a skeleton model. The network includes a first feature extractor and a first classifier. The first feature extraction is used to extract rich visual features from the image data, and the first classifier selectively uses a cosine classifier. After completing the training of the basic network and achieving satisfactory performance, in order to retain the learned knowledge and avoid parameter updates in the subsequent incremental learning stage, the parameters of the basic network can be frozen. This design allows the model to maintain the ability to recognize old categories while continuously learning new categories, thereby achieving effective knowledge accumulation and incremental learning.

[0058] In order to improve the generalization ability of the basic network, the Mixup data enhancement strategy can be used to perform data enhancement on the training samples, that is, to increase sample diversity by randomly combining pairs of training samples in the same batch.

[0059] In the incremental learning process, in addition to retaining old knowledge, the model also needs to quickly adapt to new tasks. Therefore, this embodiment further introduces a generalization enhancement network. The introduction of the generalization enhancement network is intended to provide additional generalization feature representations at the network level, which helps the model to generalize better when facing new tasks. In this embodiment, the generalization enhancement network includes a second feature extractor and a second classifier, wherein the second feature extractor includes a 7*7 convolution layer Conv6, a second maximum pooling layer, four second convolution modules, a second average pooling layer, a second fully connected layer and a projection head connected in sequence, and each second convolution module includes four 3*3 convolution layers Conv7~Conv10 connected in sequence, that is, after extracting the feature vector through the 7*7 convolution layer Conv6, the second maximum pooling layer, the four second convolution modules, the second average pooling layer and the second fully connected layer connected in sequence, the feature vector will be sent to the projection head. The function of the projection head is to map the feature vector to a low-dimensional space for subsequent processing. Exemplarily, the projection head can be one or more fully connected layers, which is conducive to extracting more compact and more discriminative feature representations.

[0060] In the process of forming a generalized enhanced network based on the parameter initialization of the first feature extractor in the trained basic network, the parameters in the first feature extractor are copied to the second feature extractor, the parameters in the first classifier are copied to the second classifier, and the parameters of the projection head are randomly initialized. In this way, the knowledge learned by the basic network in the training stage can be retained while the generalized enhanced network is formed.

[0061] It should be understood that the purpose of training the generalization-enhanced network is to further improve the network's feature generalization ability so that it can better adapt to new tasks. Therefore, multiple loss functions will be optimized simultaneously during the training process of the generalization-enhanced network, such as: prototype-level contrast loss function, instance-level contrast loss function and cross-entropy loss function, so as to enhance its generalization ability at different levels.

[0062] During the training process of the generalization enhancement network, data enhancement is first performed on a preset number of training samples to increase the number of training samples from B to 2B, and then the data-enhanced training samples are input into the initialized generalization enhancement network, and the second loss value is calculated according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function and the label.

[0063] Specifically, the data-enhanced training sample is input into the initialized generalization enhancement network, and the step of calculating the second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function and the label includes:

[0064] Input the data-enhanced training samples into the initialized generalization enhancement network to obtain the feature vector output by the second feature extractor and the predicted category output by the second classifier;

[0065] Calculate the loss value of the instance-level contrast loss function according to the feature vector output by the second feature extractor;

[0066] Calculate the class prototype corresponding to each category contained in the training sample after data enhancement, and calculate the loss value of the prototype-level contrast loss function based on the class prototype;

[0067] Get the predicted category output by the second classifier, and calculate the loss value of the cross entropy loss function based on the predicted category and label;

[0068] A second loss value is calculated according to the loss value of the instance-level contrast loss function, the loss value of the prototype-level contrast loss function, and the loss value of the cross-entropy loss function.

[0069] In this embodiment, the second loss value may be a weighted sum of the loss value of the prototype-level contrast loss function, the loss value of the cross entropy loss function, and the loss value of the instance-level contrast loss function. Optionally, the loss value of the instance-level contrast loss function is calculated according to the following formula:

[0070]

[0071] Where, temperature coefficient τ′=0.07, I k represents the feature vector set of sample images corresponding to category k, K represents the number of categories, z i 、z j I k The feature vectors corresponding to the i-th and j-th sample images in z q represents the feature vector corresponding to the qth sample image in other categories except category k, and sim represents the similarity function.

[0072] Furthermore, the class prototype corresponding to each category is calculated according to the following formula:

[0073]

[0074] In the formula, μ k represents the class prototype corresponding to category k, n k represents the number of training samples after data enhancement in category k, Represents the feature vector of the t-th data augmented training sample in category k.

[0075] Then the loss value of the prototype-level contrast loss function can be calculated according to the following formula:

[0076]

[0077] In the formula, μ u represents the sum of the class prototypes of other categories except category k, Aug represents data enhancement processing, φ aug (Aug(x m )) represents the mth training sample x m After data enhancement processing, the second feature extractor is used to extract features to obtain a feature vector, where β represents a scaling factor.

[0078] In each iteration, back propagation is performed based on the second loss value to adjust the parameters of the projection head and the second classifier in the generalization enhancement network. Among the three loss functions mentioned above, minimizing the loss value of the cross entropy loss function is conducive to the generalization enhancement network learning how to reduce classification errors during training, minimizing the loss value of the instance-level contrast loss function is conducive to the generalization enhancement network learning how to make training samples of the same category close to each other in the feature space, and minimizing the loss value of the prototype-level contrast loss function is conducive to the generalization enhancement network learning how to construct and optimize the class prototype to represent the characteristics of each training sample under the category. After multiple second-generation trainings, the resulting target recognition model has stronger generalization ability.

[0079] Figure 3 is a schematic diagram of the structure of a device for incremental target recognition based on a generalized enhancement network for a small number of samples provided by an embodiment of the present invention. Figure 3 The embodiment of the present invention further provides a device for incremental target recognition of a small number of samples based on a generalized enhanced network, comprising:

[0080] An acquisition module 310 is used to acquire an image to be processed;

[0081] The recognition module 320 is used to input the image to be processed into a target recognition model pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result; wherein the target recognition model is: after obtaining a basic network and training it, the parameters of the trained basic network are used to initialize a generalized enhanced network, and further instance-level generalization and prototype-level generalization are performed in the process of training the generalized enhanced network to obtain a neural network.

[0082] It can be seen from the above embodiments that the beneficial effects of the present invention are:

[0083] The present invention provides a few-sample class incremental target recognition method based on a generalization enhancement network. In the process of few-sample class incremental learning, a generalization enhancement network and a multi-level generalization strategy are introduced, which significantly enhances the generalization ability of the target recognition model and enables the target recognition model to adapt to new categories more effectively.

[0084] In addition, since the training samples are augmented with data during the training process, the overfitting phenomenon is effectively improved, and the robustness of the target recognition model when facing new tasks is improved. Instance-level generalization and prototype-level generalization effectively alleviate the catastrophic forgetting problem, ensuring that the target recognition model does not lose old knowledge while learning new knowledge.

[0085] In the description of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification.

[0086] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.

Claims

1. A few-sample incremental target recognition method based on generalization enhancement network, characterized in that: include: Get the image to be processed; The image to be processed is input into a target recognition model pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result; wherein the target recognition model is: after obtaining a basic network and training it, a generalization enhancement network is initialized using the parameters of the trained basic network, and further instance-level generalization and prototype-level generalization are performed in the process of training the generalization enhancement network to obtain a neural network.

2. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 1, characterized in that: The target recognition model is trained according to the following steps: Obtain a basic network, which is a residual neural network ResNet18, including a first feature extractor and a first classifier, wherein the first feature extractor includes a 7*7 convolution layer Conv1, a first maximum pooling layer, four first convolution modules, a first average pooling layer and a first fully connected layer connected in sequence, and each of the first convolution modules includes four 3*3 convolution layers Conv2~Conv5 connected in sequence; Obtain a preset number of training samples, where the training samples include a plurality of sample images and a label corresponding to each sample image; Inputting the training sample into the basic network, calculating a first loss value according to the output of the first classifier, the cross entropy loss function and the label corresponding to the sample image, and then performing back propagation based on the first loss value to adjust the parameters of the basic network; After reaching a preset number of training times or the first loss value meets a preset accuracy, a trained basic network is obtained; Based on the parameters of the first feature extractor and the first classifier in the trained basic network, a generalization enhancement network is initialized; the generalization enhancement network includes: a second feature extractor and a second classifier, the second feature extractor includes a 7*7 convolution layer Conv6, a second maximum pooling layer, four second convolution modules, a second average pooling layer, a second fully connected layer and a projection head connected in sequence, and each of the second convolution modules includes four 3*3 convolution layers Conv7 to Conv10 connected in sequence; Performing data enhancement on the preset number of training samples to increase the number of the training samples from B to 2B; Inputting the data-enhanced training sample into the initialized generalization enhancement network, and calculating a second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function, and the label; Back propagation is performed based on the second loss value to adjust the parameters of the projection head and the second classifier in the generalization enhancement network to obtain a trained target recognition model.

3. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 2, characterized in that: The step of initializing a generalized enhancement network based on the parameters of the first feature extractor in the trained basic network comprises: The parameters in the first feature extractor are copied to the second feature extractor, the parameters in the first classifier are copied to the second classifier, and the parameters of the projection head are randomly initialized to form a generalization enhancement network.

4. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 2, characterized in that: The step of inputting the data-enhanced training sample into the initialized generalization enhancement network, and calculating the second loss value according to the output of the second feature extractor, the output of the second classifier, the prototype-level contrast loss function, the cross entropy loss function, the instance-level contrast loss function and the label, comprises: Inputting the data-enhanced training samples into the initialized generalization enhancement network to obtain the feature vector output by the second feature extractor and the predicted category output by the second classifier; Calculating a loss value of the instance-level contrast loss function according to the feature vector output by the second feature extractor; Calculating the class prototype corresponding to each category included in the training sample after the data enhancement, and calculating the loss value of the prototype-level contrast loss function based on the class prototype; Obtaining the predicted category output by the second classifier, and calculating the loss value of the cross entropy loss function according to the predicted category and the label; A second loss value is calculated according to the loss value of the instance-level contrast loss function, the loss value of the prototype-level contrast loss function, and the loss value of the cross-entropy loss function.

5. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 4, characterized in that: The loss value of the instance-level contrast loss function is calculated according to the following formula: Where, temperature coefficient τ′=0.07, I k represents the feature vector set of sample images corresponding to category k, K represents the number of categories, z i 、z j I k The feature vectors corresponding to the i-th and j-th sample images in z q represents the feature vector corresponding to the qth sample image in other categories except category k, and sim represents the similarity function.

6. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 5, characterized in that: Calculate the class prototype corresponding to each category according to the following formula: In the formula, μ k represents the class prototype corresponding to category k, n k represents the number of training samples after data enhancement in category k, Represents the feature vector of the t-th data augmented training sample in category k.

7. The method for incremental target recognition based on a generalized enhanced network for a small number of samples according to claim 6, characterized in that: The loss value of the prototype-level contrast loss function is calculated according to the following formula: In the formula, μ u represents the sum of the class prototypes of other categories except category k, Aug represents data enhancement processing, φ aug (Aug(x m )) represents the mth training sample x m After data enhancement processing, the second feature extractor is used to extract features to obtain a feature vector, where β represents a scaling factor.

8. A device for incremental target recognition based on a generalized enhanced network for a small number of samples, characterized in that: include: An acquisition module, used for acquiring an image to be processed; The recognition module is used to input the image to be processed into a target recognition model pre-trained based on a few-sample incremental learning algorithm to obtain a target recognition result; wherein the target recognition model is: after obtaining a basic network and training it, the parameters of the trained basic network are used to initialize a generalized enhanced network, and further in the process of training the generalized enhanced network, instance-level generalization and prototype-level generalization are performed to obtain a neural network.

Citation Information

Cited By

  • Image classification model training method, image processing method and related device

    CN119888330A

  • Image classification model training method, image processing method, and related apparatuses

    CN119888330B