Spatial unknown target identification method based on foreground metric learning

Through the method based on foreground metric learning, a data set of multiple spatial typical targets is constructed and unsupervised adaptive training is performed, which solves the problem of failure to identify unknown targets in the existing technology and improves the accuracy and adaptability of spatial target detection.

CN118537618AActive Publication Date: 2024-08-23NORTHWESTERN POLYTECHNICAL UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410491032.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-23
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

Existing space target detection and recognition algorithms are difficult to identify unknown targets in real space scenes, and the unknown target detection results are biased and have a high miss detection rate, making it impossible to effectively achieve accurate position acquisition in on-orbit services.

Method used

A method based on foreground metric learning is used to construct a data set containing multiple spatial typical targets. Through foreground confidence constraints and unsupervised adaptive models, the domain difference between the training set and the test set is reduced, and the model's recognition of unknown categories is improved. ability.

Benefits of technology

It improves the model's generalization detection accuracy and target detection reliability in real environments, and can effectively identify unknown samples and reduce the risk of misidentification as background noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537618A
    Figure CN118537618A
Patent Text Reader

Abstract

The invention discloses a space unknown target identification method based on foreground metric learning. The method comprises the following steps: firstly, constructing a data set containing a plurality of space typical targets; dividing the data set into a training data set and a test data set; then, constructing a target detection model based on foreground metric learning, and training the target detection model by using the training data set; performing unsupervised field adaptation on the test set by using an unsupervised adaptive model to reduce the field difference between the test set and the training set; and finally, reasoning the model on a test set, labeling unknown categories in the model, comparing a result with a true value, and giving quantitative evaluation of the model. According to the method, field self-adaption is carried out by using a new class data set, and the target detection precision and reliability of the model are further improved.
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 detection, and in particular relates to a spatial unknown target recognition method based on foreground metric learning. Background Art

[0002] In recent years, the number of spacecraft launches has increased rapidly worldwide, resulting in an explosive growth in the demand for space on-orbit services. In the process of implementing on-orbit services, it is extremely urgent to accurately obtain the relative position between the service satellite and the target satellite, because this is an important guarantee for subsequent guidance and control. The current mainstream space target detection and recognition algorithm is based on a deep algorithm, which can only identify targets in the training data set, and it is difficult to identify unknown targets that actually appear in real space scenes. The existing methods for detecting and identifying unknown targets rely on limited known data labels, and there are biases in the detection results of unknown targets, and there are disadvantages such as a high missed detection rate. There is an urgent need for a learning algorithm that can realize reliable detection of unknown targets in space. Therefore, the present invention proposes a spatial unknown target recognition method based on foreground metric learning, constructs a foreground and background metric learning method, and uses foreground confidence constraints to realize the model's recognition of objects outside the field. At the same time, a transfer learning method algorithm is introduced to guide the model to achieve generalization learning under multiple data sets, and improve the detection accuracy of deep learning models in new categories. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, the present invention provides a spatial unknown target recognition method based on foreground metric learning. First, a data set containing multiple typical spatial targets is constructed; then the data set is divided into a training data set and a test data set; next, a target detection model based on foreground metric learning is constructed, and the target detection model is trained using the training data set; then, an unsupervised adaptive model is used to perform unsupervised domain adaptation on the test set to reduce the domain difference between the test set and the training set; finally, the model is inferred on the test set, and the unknown categories therein are labeled, and the results are compared with the true values ​​to give a quantitative evaluation of the model. The method of the present invention uses a new class of data sets for domain adaptation, which further improves the target detection accuracy and reliability of the model.

[0004] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0005] Step 1: Use blender software to import the CAD model and build a data set containing multiple typical spatial targets;

[0006] Step 2: Take a% of the categories in the data set as the training data set, and the other 1-a% of the categories as the test data set; the target categories in the test data set have never appeared in the training data set;

[0007] Step 3: Build a target detection model based on foreground metric learning, and use the training data set to train the target detection model. The training process uses the foreground score as a quantifier to quantify whether there is a target;

[0008] Step 4: Use the unsupervised adaptive model to perform unsupervised domain adaptation on the test set to reduce the domain difference between the test set and the training set;

[0009] Step 5: After domain adaptation is completed, the model is inferred on the test set, the unknown categories are labeled, the results are compared with the true values, and a quantitative evaluation of the model is given.

[0010] Preferably, the step 3 is specifically as follows:

[0011] Step 3-1: After the image is input, it first enters the feature extractor based on the YOLO model for feature extraction, and uses the C3 and SPP models to extract the multi-scale depth features of the model;

[0012] Step 3-2: After feature extraction, candidate boxes are generated; the candidate box generation module consists of two parts. The convolution part is composed of the FPN feature pyramid structure based on the YOLO model, which mines multiple scale spaces of deep features to obtain candidate boxes at multiple levels;

[0013] A random candidate box based on physical parameters is introduced. The random candidate box is generated by random numbers after collecting targets. The physical parameters include the pixel size of typical spatial targets in the image, which is calculated by querying the actual non-cooperative target perception distance and the actual size of the spatial target. Then, 200 candidate boxes are randomly generated and merged with the candidate boxes extracted by deep features.

[0014] Step 3-3: After the candidate box is generated, it goes through the RPN process to generate multiple detection heads. Each detection head obtains the position, type and foreground confidence module through the convolution process; the convolution process of category and position is the same as the YOLO algorithm. The foreground confidence module is used to evaluate the standardized distance from the current position to the target center responsible for the previous position, that is:

[0015]

[0016] Among them l * ,r * and t * ,b * They correspond to the coordinate values ​​of the four directions of left, right, up, and down of the current target detection box respectively; the foreground confidence ranges from 0 to 1, and the binary cross entropy BCE loss is used for training.

[0017] Step 3-4: The output of the final network is trained using a loss function to iterate the model parameters; the loss function is constructed as follows:

[0018]

[0019] in and Represent the losses of known foreground and unknown foreground targets respectively, and μ is the adjustment weight between the two losses; The calculation of is as follows:

[0020]

[0021] in is the cross entropy loss, Represent the categories output by the model and the true categories respectively; They represent the foreground confidence and the real confidence of the model output respectively; λ represents the weight error; is the position regression error; Represents the four positions of the real and estimated detection boxes respectively;

[0022] For unknown targets and background detection frames, only their categories are regressed;

[0023] Loss Function It is expressed as follows:

[0024]

[0025] Among them, UN represents unknown target, BG represents background target, P U and P B Represent different candidate boxes respectively;

[0026] Step 3-5: In the testing phase, the judgment of the unknown target is composed of the following formula:

[0027] C=C1&(C2|C3)

[0028] Among them, C1 represents the part of the candidate boxes whose confidence threshold is greater than 0.8 after all candidate boxes have been removed from known targets; C2 represents the top 3 candidate boxes after all candidate boxes have been removed from known targets; C3 represents the part of the candidate boxes whose FP score is greater than 0.9 after all candidate boxes have been removed from known targets; the candidate boxes finally screened are recorded as Unknown, which is an unknown candidate box that does not exist in the training set;

[0029] Step 3-6: Test the model results using the real bbox labels in the test dataset.

[0030] Preferably, the step 4 is specifically as follows:

[0031] Step 4-1: First, use the pre-trained model to infer the test data set. After inference, the test data set generates labels. Use the generated FP labels to construct the FP loss function to train the model again. The loss function is in the form of cross entropy loss.

[0032] Step 4-2: Use the current FP value to filter the test data set; based on the TOPK algorithm, take the candidate boxes corresponding to the first N FP scores as the target set, and delete the rest of the data;

[0033] Step 4-3: Fine-tune the model using the constructed data set; the fine-tuning refers to a fixed feature extraction model, which is only performed on the candidate box generation module and the detection head module, and the learning rate is set to 1e-5;

[0034] Step 4-4: Repeat steps 4-1 to 4-3 until the number of iterations is reached; save the model and output it.

[0035] Preferably, the position regression error adopts an IOU loss function.

[0036] The beneficial effects of the present invention are as follows:

[0037] The method of the present invention can realize the effective recognition of unknown samples by the spatial target detection model, thereby improving the generalization detection accuracy of the model in a real environment. Finally, domain adaptation technology is adopted to perform domain adaptation using a new type of data set, which further improves the target detection accuracy and reliability of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Schematic diagram of spatial unknown object recognition based on foreground metric learning.

[0039] Figure 2 Schematic diagram of the foreground metric object detection model.

[0040] Figure 3 Schematic diagram of the unsupervised domain adaptation process.

[0041] Figure 4 Schematic diagram of targets in the spatial non-cooperative target training data.

[0042] Figure 5 Schematic diagram of targets in the test data for space non-cooperative targets. DETAILED DESCRIPTION

[0043] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0044] When facing new target detection categories during the satellite's perception of the space environment, the targets are affected by multiple factors such as different lighting conditions and space backgrounds, and present different feature distributions, which leads to large differences in target features of different categories in different tasks. The recognition performance of deep learning models for new categories in the process of non-cooperative space target detection often drops significantly, and unknown targets are mistakenly identified as background noise, greatly weakening the generalization of the target detection model. The technical solution in the present invention solves the above problems, achieves the target detection model's ability to recognize targets that do not appear in the training samples, and marks the target as an unknown category, with the advantages of high detection accuracy and strong model adaptability.

[0045] In order to effectively improve the adaptability of the target detection model to unknown spatial targets, the present invention proposes a spatial unknown target recognition method based on foreground metric learning to improve the efficiency and generalization of the model in detecting and recognizing unknown spatial targets.

[0046] The technical method solution of the present invention comprises the following steps:

[0047] Step 1: Use blender software to import the CAD model and build a data set containing multiple typical spatial targets;

[0048] Step 2: Use 80% of the categories as training data sets and the other 20% of the categories as test data sets; the target categories in the test set have never appeared in the training set.

[0049] Step 3: Build a target detection model based on foreground metric learning, and use the training data set to train the model. The training process uses the foreground score as a quantifier to quantify whether there is a target;

[0050] Step 4: Use the unsupervised adaptive model to perform unsupervised domain adaptation on the test set to reduce the domain difference between the test set and the training set;

[0051] Step 5: After domain adaptation is completed, the model is inferred on the test set, the unknown categories are labeled, the results are compared with the true values, and a quantitative evaluation of the model is given;

[0052] Example:

[0053] Figure 1The present invention relates to an overall structure of a spatial unknown target recognition method based on foreground metric learning. First, the blender software is used to import a CAD model to construct a data set containing multiple typical spatial targets; 80% of the categories are used as training data sets, and the other 20% of the category data are used as test data sets; wherein the target categories in the test set have never appeared in the training set. A target detection model based on foreground metric learning is constructed, and the model is trained using the training data set. The training process uses the foreground score as quantification to quantify whether there is a target; an unsupervised adaptive model is used to perform unsupervised domain adaptation on the test set to reduce the domain difference between the test set and the training set; after the domain adaptation is completed, the model is inferred on the test set, and the unknown categories therein are labeled, and the results are compared with the true values ​​to give a quantitative evaluation of the model.

[0054] Figure 2 Schematic diagram of the foreground metric object detection model.

[0055] The specific contents are as follows:

[0056] ①After the image is input, it first enters the feature extractor for feature extraction. Here, a feature extractor based on the YOLO model is used to extract the multi-scale depth features of the model using the C3 and SPP models.

[0057] ② After feature extraction, the candidate box generation module is performed. The candidate box generation module consists of two parts. The convolution part is composed of the FPN feature pyramid structure based on the YOLO model. It mines multiple scale spaces of deep features to obtain multiple levels of candidate boxes. In order to effectively extract candidate boxes for unknown targets, this project also introduces random candidate boxes based on physical parameters, which reduces the probability of missing candidate boxes for unknown targets during training. Random candidate boxes are generated by random numbers after collecting targets. The physical parameters include the pixel size of typical spatial targets in the image, etc., which are calculated by querying the actual non-cooperative target perception distance and the actual size of spatial targets. After that, 200 candidate boxes are randomly generated based on the empirical size and merged with the candidate boxes extracted from deep features.

[0058] ③ The candidate box passes through the RPN process to generate multiple detection heads. Each detection head obtains the position, type and foreground confidence module through the convolution process. The convolution process of category and position here is similar to the YOLO algorithm. The foreground confidence module is used to evaluate the standardized distance from the current position to the target center responsible for the previous position, that is,

[0059]

[0060] Among them l * ,r * and t * ,b* They correspond to the coordinate values ​​of the four directions of the current target detection box, left, right, up, and down. The foreground confidence ranges from 0 to 1, so the binary cross entropy (BCE) loss is used for training.

[0061] ④ The output of the final network enters the loss function for training, thereby iterating the model parameters, such as Figure 4 and Figure 5 As shown. The loss function is constructed as follows:

[0062]

[0063] in and Represent the losses of known foreground and unknown foreground targets respectively. μ is the adjustment weight between the two losses. The calculation of is as follows:

[0064]

[0065] in is the cross entropy loss, They represent the categories of model output and the actual categories respectively. They represent the foreground confidence and the true confidence of the model output respectively. λ represents the weight error. is the position regression error, and the classic IOU loss function is used here. Represents the four positions of the real and estimated detection boxes respectively.

[0066] For unknown targets and background detection boxes, since there is no real value alignment for position regression, we only regress their categories. Loss function It is expressed as follows:

[0067]

[0068] Among them, UN represents unknown target and BG represents background target. U and P B They represent candidate boxes respectively.

[0069] ⑤ In the testing phase, considering that there are generally fewer targets in space, the judgment of unknown targets is composed of the following formula.

[0070] C=C1&(C2|C3)

[0071] Among them, C1 represents the part of candidate boxes whose confidence threshold is greater than 0.8 after all candidate boxes have been removed from known targets. C2 represents the top 3 candidate boxes after all candidate boxes have been removed from known targets. C3 represents the part of candidate boxes whose FP score is greater than 0.9 after all candidate boxes have been removed from known targets. The final selected candidate boxes are recorded as Unknown, as unknown candidate boxes that do not exist in the training set.

[0072] ⑥ Test the model in the test data set and use the real bbox labels to test the model results.

[0073] like Figure 3 As shown in the figure, the pre-trained model is first used to infer the test data set. After inference, the test data set generates labels. Here, the category labels are not considered, only the FP labels are considered. Using the generated FP labels, the FP loss function is constructed to train the model again. The loss function is in the form of cross entropy loss.

[0074] The test data set is screened using the current FP value. Based on the TOPK algorithm, the candidate boxes corresponding to the first N FP scores are used as the target set, and the rest of the data is deleted.

[0075] Use the constructed dataset to fine-tune the model. Here, fine-tune the fixed feature extraction model, only the candidate box generation module and the detection head module, and set the learning rate to 1e-5; repeat the above process until the number of iterations is reached; save the model and output it.

Claims

1. A spatial unknown target recognition method based on foreground metric learning, characterized in that: The steps include: Step 1: Use blender software to import the CAD model and build a data set containing multiple typical spatial targets; Step 2: Take a% of the categories in the data set as the training data set, and the other 1-a% of the categories as the test data set; The target categories in the test data set have never appeared in the training data set; Step 3: Build a target detection model based on foreground metric learning, and use the training data set to train the target detection model. The training process uses the foreground score as a quantifier to quantify whether there is a target; Step 4: Use the unsupervised adaptive model to perform unsupervised domain adaptation on the test set to reduce the domain difference between the test set and the training set; Step 5: After domain adaptation is completed, the model is inferred on the test set, the unknown categories are labeled, the results are compared with the true values, and a quantitative evaluation of the model is given.

2. According to the method of claim 1, the spatial unknown target recognition method based on foreground metric learning is characterized in that: The step 3 is as follows: Step 3-1: After the image is input, it first enters the feature extractor based on the YOLO model for feature extraction, and uses the C3 and SPP models to extract the multi-scale depth features of the model; Step 3-2: After feature extraction, candidate boxes are generated; the candidate box generation module consists of two parts. The convolution part is composed of the FPN feature pyramid structure based on the YOLO model, which mines multiple scale spaces of deep features to obtain candidate boxes at multiple levels; A random candidate box based on physical parameters is introduced. The random candidate box is generated by random numbers after collecting targets. The physical parameters include the pixel size of typical spatial targets in the image, which is calculated by querying the actual non-cooperative target perception distance and the actual size of the spatial target. Then, 200 candidate boxes are randomly generated and merged with the candidate boxes extracted by deep features. Step 3-3: After the candidate box is generated, it goes through the RPN process to generate multiple detection heads. Each detection head obtains the position, type and foreground confidence module through the convolution process; the convolution process of category and position is the same as the YOLO algorithm. The foreground confidence module is used to evaluate the standardized distance from the current position to the target center responsible for the previous position, that is: Among them l * ,r * and t * ,b * They correspond to the coordinate values ​​of the four directions of the current target detection frame, left, right, up, and down. The foreground confidence ranges from 0 to 1, and the binary cross entropy BCE loss is used for training. Step 3-4: The output of the final network is trained using a loss function to iterate the model parameters; the loss function is constructed as follows: in and Represent the losses of known foreground and unknown foreground targets respectively, and μ is the adjustment weight between the two losses; The calculation of is as follows: in is the cross entropy loss, Represent the categories output by the model and the true categories respectively; They represent the foreground confidence and the real confidence of the model output respectively; λ represents the weight error; is the position regression error; Represents the four positions of the real and estimated detection boxes respectively; For unknown targets and background detection frames, only their categories are regressed; Loss Function It is expressed as follows: Among them, UN represents unknown target, BG represents background target, P U and P B Represent different candidate boxes respectively; Step 3-5: In the testing phase, the judgment of the unknown target is composed of the following formula: C=C1&(C2|C3) Among them, C1 represents the part of the candidate boxes whose confidence threshold is greater than 0.8 after all candidate boxes have been removed from known targets; C2 represents the top 3 candidate boxes after all candidate boxes have been removed from known targets; C3 represents the part of the candidate boxes whose FP score is greater than 0.9 after all candidate boxes have been removed from known targets; the candidate boxes finally screened are recorded as Unknown, which is an unknown candidate box that does not exist in the training set; Step 3-6: Test the model results using the real bbox labels in the test dataset.

3. The spatial unknown target recognition method based on foreground metric learning according to claim 2 is characterized in that: The step 4 is specifically as follows: Step 4-1: First, use the pre-trained model to infer the test data set. After inference, the test data set generates labels. Use the generated FP labels to construct the FP loss function to train the model again. The loss function is in the form of cross entropy loss. Step 4-2: Use the current FP value to filter the test data set; based on the TOPK algorithm, take the candidate boxes corresponding to the first N FP scores as the target set, and delete the rest of the data; Step 4-3: Fine-tune the model using the constructed data set; the fine-tuning refers to a fixed feature extraction model, which is only performed on the candidate box generation module and the detection head module, and the learning rate is set to 1e-5; Step 4-4: Repeat steps 4-1 to 4-3 until the number of iterations is reached; save the model and output it.

4. The spatial unknown target recognition method based on foreground metric learning according to claim 3 is characterized in that: The position regression error adopts the IOU loss function.

Citation Information

Patent Citations

  • Blade damage identification method suitable for small sample condition

    CN115457551A

  • AI algorithm service platform construction method suitable for intelligent breeding

    CN115631402A

  • Target detection method based on small samples

    CN116071660A

  • Method and system for adaptation of a trained object detection model to account for domain shift

    US20230281974A1