A model training and spacecraft target detection method, device and electronic equipment

Through knowledge distillation technology and feature adjustment network, the problem of difficult to achieve accuracy of spacecraft target detection in the space exploration environment is solved, and efficient target detection under few sample conditions is achieved.

CN118378693BActive Publication Date: 2024-08-23ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410803846.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-23
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In the extreme space exploration environment, traditional target detection methods that rely on large amounts of sample data are difficult to achieve accurate target detection of spacecraft, especially when sample conditions are limited.

Method used

Knowledge distillation technology is used to transfer the feature extraction capabilities of the pre-trained teacher detection model to a target detection model with a smaller number of parameters. By adjusting the network and the pseudo image generation network, the features of the point cloud data are extracted and adjusted to achieve target detection. Accuracy of results.

Benefits of technology

With a small number of samples and fewer model parameters, the accuracy and recognition ability of spacecraft target detection are guaranteed, and the problem of limited feature expression ability caused by lack of samples is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378693B
    Figure CN118378693B
Patent Text Reader

Abstract

This specification discloses a model training and spacecraft target detection method, device and electronic equipment. The model training method includes: obtaining point cloud data in the aerospace scene and inputting it into a teacher detection model to obtain initial features; adjusting the initial features based on a preset adjustment network to obtain benchmark features; inputting the point cloud data into the target detection model to extract features from the point cloud data through the feature extraction network of the target detection model to obtain target features and distillation features; determining the target detection result based on the target features; determining the loss value and training the target detection model based on the deviation between the benchmark features and the distillation features, and the deviation between the target detection results and the actual labels corresponding to the point cloud data. This solution enables the target detection model to fully learn the knowledge extracted by the teacher detection model, ensures the model performance, and can realize the training of the target detection model with few samples.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and electronic equipment for model training and spacecraft target detection. Background Art

[0002] With the development of science and technology, people's research on the aerospace field has gradually deepened. Among them, space exploration missions, as an important foundation of aerospace research, mainly refer to the use of unmanned or manned spacecraft to explore space for scientific research, technology testing and resource exploration, or out of human curiosity and spirit of exploration of the universe.

[0003] However, in space exploration missions, due to the extreme nature of the environment, such as huge distances, rapid signal attenuation, and long communication delays, it is difficult to collect space samples, making traditional target detection methods that rely on large amounts of sample data for model training and optimization impractical.

[0004] Therefore, how to achieve accurate target detection of spacecraft under limited sample conditions has become a key technical problem that urgently needs to be overcome in the field of deep space exploration. Summary of the invention

[0005] This specification provides a model training and spacecraft target detection method, device and electronic equipment to partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a model training method, including:

[0008] Obtain point cloud data in aerospace scenes;

[0009] Inputting the point cloud data into a pre-trained teacher detection model to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features;

[0010] Based on a preset adjustment network, the initial features are adjusted to obtain reference features;

[0011] Inputting the point cloud data into a target detection model to be trained, so as to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and determining target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the benchmark feature is the same as the number of feature channels of the distilled feature;

[0012] Determining a target detection result for the point cloud data according to the target features through a detection network of the target detection model;

[0013] A loss value is determined based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and the target detection model is trained with minimizing the loss value as the optimization goal.

[0014] Optionally, the point cloud data is input into a pre-trained teacher detection model to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features, specifically including:

[0015] The point cloud data is discretized into a plurality of vertical columnar regions through the pseudo image generation network of the teacher detection model, a maximum pooling operation is applied to the points in each vertical columnar region, and the result is expanded into a pseudo image according to the position of each vertical columnar region as a first pseudo image;

[0016] Performing feature extraction on the first pseudo image through the feature extraction network of the teacher detection model, and using the output feature of the first convolution block in the feature extraction structure as the initial feature;

[0017] The point cloud data is input into the target detection model to be trained, so as to extract features from the point cloud data through the feature extraction network of the target detection model to obtain distilled features, which specifically includes:

[0018] The point cloud data is discretized into a plurality of vertical columnar regions by a pseudo image generation network of the target detection model, a maximum pooling operation is applied to the points in each vertical columnar region, and the result is expanded into a pseudo image according to the position of each vertical columnar region as a second pseudo image;

[0019] The feature extraction network of the target detection model is used to extract features from the second pseudo image to obtain the distilled features.

[0020] Optionally, the pseudo image generation network of the teacher detection model is the same as the pseudo image generation network of the target detection model, the detection network of the teacher detection model is the same as the detection network of the target detection model, and the parameter amount of the feature extraction network of the target detection model is lower than the parameter amount of the feature extraction network of the teacher detection model.

[0021] Optionally, the feature extraction network includes at least one convolution block, and each convolution block corresponds to a deconvolution block;

[0022] The feature extraction network of the target detection model is used to extract features from the point cloud data to obtain distilled features, and target features are determined based on the distilled features, specifically including:

[0023] Performing feature extraction on the point cloud data through the first convolution block in the feature extraction network to obtain the distilled feature, and inputting the extracted feature vector into the deconvolution block corresponding to the first convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the first convolution block;

[0024] For each convolution block except the first convolution block, the feature vector output by the previous convolution block is processed by the convolution block, and the processed feature vector is input into the deconvolution block corresponding to the convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the convolution block;

[0025] The convolution features output by each deconvolution block are concatenated to obtain the target feature.

[0026] Optionally, determining a target detection result for the point cloud data according to the target feature through a detection network of the target detection model specifically includes:

[0027] Inputting the point cloud data into a preset image encoder to determine the projection features corresponding to the point cloud data through the image encoder;

[0028] The projection feature is combined with the target feature to obtain a fusion feature;

[0029] The fused features are input into a detection network of the target detection model to determine a target detection result for the point cloud data through the detection network of the target detection model.

[0030] Optionally, inputting the point cloud data into a preset image encoder to determine the projection features corresponding to the point cloud data through the image encoder specifically includes:

[0031] Projecting the point cloud data at different viewing angles to obtain a projection image at each viewing angle;

[0032] The projection image at each viewing angle is input into a preset image encoder to determine the image features corresponding to the projection images at each viewing angle through the image encoder, and the image features corresponding to the projection images at each viewing angle are spliced ​​and adjusted to obtain the projection features.

[0033] This specification provides a spacecraft target detection method, including:

[0034] Obtain the collected point cloud data of the spacecraft target to be tested;

[0035] The target point cloud data of the spacecraft to be tested is input into a pre-trained target detection model to determine the target detection result corresponding to the target point cloud data of the spacecraft to be tested through the target detection model, wherein the target detection model is trained by the above-mentioned model training method.

[0036] This specification provides a model training device, including:

[0037] Acquisition module, used to acquire point cloud data in aerospace scenes;

[0038] An input module, used for inputting the point cloud data into a pre-trained teacher detection model, so as to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features;

[0039] An adjustment module, used to adjust the initial features based on a preset adjustment network to obtain a reference feature;

[0040] an extraction module, configured to input the point cloud data into a target detection model to be trained, so as to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and determine target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the benchmark feature is the same as the number of feature channels of the distilled feature;

[0041] A determination module, configured to determine a target detection result for the point cloud data according to the target feature through a detection network of the target detection model;

[0042] A training module is used to determine a loss value based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and to train the target detection model with minimizing the loss value as the optimization goal.

[0043] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned model training and spacecraft target detection method is implemented.

[0044] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned model training and spacecraft target detection methods when executing the program.

[0045] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0046] In the model training method provided in this specification, point cloud data in aerospace scenes are obtained and input into a teacher detection model to obtain initial features; based on a preset adjustment network, the initial features are adjusted to obtain benchmark features; the point cloud data are input into a target detection model to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and target features are determined based on the distilled features; the target detection results are determined through the detection network of the target detection model; based on the deviation between the benchmark features and the distilled features, and the deviation between the target detection results and the actual labels corresponding to the point cloud data, the loss value is determined and the target detection model is trained.

[0047] It can be seen from the above method that since the teacher detection model has been trained with wide-area data in advance, it has higher recognition accuracy and feature richness. The extracted features can more accurately reflect the relevant information of the target object. The loss function determined based on the deviation between the baseline features and the distilled features can transfer the feature extraction capability of the teacher detection model to the target detection model with fewer parameters, so that the target detection model (student model) can inherit the detection capability of the large-parameter model (teacher model), thereby ensuring the detection accuracy of the model and achieving accurate target detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0049] Figure 1 A flowchart of a model training method provided in this specification;

[0050] Figure 2 A schematic diagram of the structure of a feature extraction network provided in this specification;

[0051] Figure 3 A schematic diagram of a projection feature extraction process provided in this specification;

[0052] Figure 4 A schematic diagram of the overall architecture of a model training provided in this specification;

[0053] Figure 5 A schematic diagram of a flow chart of a spacecraft target detection method provided in this specification;

[0054] Figure 6 A schematic diagram of a model training device provided in this specification;

[0055] Figure 7A schematic diagram of a spacecraft target detection device provided in this specification;

[0056] Figure 8 A method corresponding to the Figure 1 or Figure 5 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0058] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0059] Figure 1 A flow chart of a model training method provided in this specification includes the following steps:

[0060] S101: Acquire point cloud data in aerospace scenes.

[0061] In the field of 3D object detection, point cloud data has become an important way to obtain three-dimensional information due to its unique advantages. Point cloud data not only contains rich spatial information and geometric structure, but also can accurately reflect the shape and position of objects. With the continuous advancement of deep learning technology, more and more algorithms based on convolutional neural networks (CNN) are applied to point cloud data processing to achieve efficient and accurate 3D object detection.

[0062] Among them, the Point Pillars algorithm cleverly utilizes the spatial distribution characteristics of point cloud data. It discretizes the three-dimensional space into a series of vertical columnar areas (pillars) and encodes each point in each pillar. Then, the maximum pooling operation is applied to the points in each pillar, and the pooled feature map is expanded into a two-dimensional feature map according to the position of the pillar, providing strong data support for subsequent target detection. The core advantage of the Point Pillars algorithm lies in its efficiency and accuracy. Compared with other 3D detectors, Point Pillars performs well in speed and can meet the needs of real-time applications.

[0063] Based on this, this manual provides a model training method, which uses knowledge distillation to enable the target detection model applied to aerospace scenarios to inherit the detection capabilities of large-parameter models, thereby ensuring the detection accuracy of the target detection model under the premise of a small number of aerospace scene samples and fewer model parameters.

[0064] In this specification, the execution entity used to implement a model training method can be a designated device such as a server. For the sake of ease of description, the following will only take the server as the execution entity as an example to illustrate a model training method provided in this specification.

[0065] Among them, the server can obtain point cloud data of different targets in the aerospace scene. The point cloud data contains the position information and physical properties (such as different materials and texture features) of multiple targets (such as spacecraft / payloads, etc.), and provides semantic labels corresponding to the point cloud data (such as target category, boundaries, etc.).

[0066] In practical applications, the above point cloud data may be simulation data constructed based on actual target objects in a simulation environment, and of course, may also be actual point cloud data of spacecraft targets collected by sensors in history.

[0067] S102: Input the point cloud data into a pre-trained teacher detection model to perform feature extraction on the point cloud data through a feature extraction network of the teacher detection model to obtain initial features.

[0068] After acquiring the point cloud data, the server can input the point cloud data into a pre-trained teacher detection model, thereby performing feature extraction on the point cloud data through the feature extraction network of the teacher detection model to obtain initial features.

[0069] In this specification, the above-mentioned teacher detection model can be Point Pillars, which can be trained through the open source dataset KITTI, where KITTI is a computer vision algorithm evaluation dataset for large-scale autonomous driving scenarios. This dataset provides point cloud data for 3D target detection tasks, of which 7481 groups are used for training and 7518 groups are used for testing.

[0070] Specifically, the teacher detection model can be provided with a pseudo image generation network, a feature extraction network and a detection network (detection head). The feature extraction network contains several convolution blocks (convolution Block), each convolution block corresponds to a deconvolution block, and each convolution block has a step size of S, including L 3×3 2D convolution layers, and the number of output channels of each convolution block is C.

[0071] After the point cloud data is input into the teacher detection model, the point cloud data can be discretized into several vertical columnar areas through the pseudo image generation network of the teacher detection model, the maximum pooling operation is applied to the points in each vertical column area, and the result is expanded into a pseudo image according to the position of each vertical column area as the first pseudo image.

[0072] Afterwards, the feature extraction network of the teacher detection model can be used to extract features from the first pseudo image to obtain initial features.

[0073] S103: Based on a preset adjustment network, the initial features are adjusted to obtain reference features.

[0074] Since the teacher detection model is trained based on training samples from other fields (for example, the Point Pillars model is trained based on data from autonomous driving scenarios), the features extracted by the teacher detection model are not fully applicable to aerospace scenarios.

[0075] Therefore, the server can further input the initial features output by the teacher detection model into a preset adjustment network, through which the initial features are adjusted to match the information in the aerospace scenario, thereby reducing the domain differences between the training data in the aerospace scenario and the training data of the teacher detection model.

[0076] At the same time, the adjustment network can adjust the feature channels of the initial features so that the number of feature channels corresponding to the adjusted baseline features remains the same as the number of feature channels of the distilled features in the feature extraction network of the target detection model (see below for a detailed description of the distilled feature extraction process).

[0077] In this specification, the above adjustment network can be CONV-Adapter, the initial feature output of the feature extraction network of the teacher detection model , with dimensions of (B, C1, H, W), use CONV-Adapter to process the above features and generate benchmark features , with dimensions of (B, C1 / 2, H, W), the datum feature can be expressed as:

[0078]

[0079] in, and Represents the convolutional layer in the adjusted network.

[0080] It should be added that in order to enable the adjustment network to have the ability of domain transfer, the server can train it based on pre-labeled training samples.

[0081] Specifically, the server can obtain point cloud data in aerospace scenarios, and use the data features of the point cloud data in aerospace scenarios as label features. At the same time, the server can perform feature extraction on the point cloud data based on a feature extraction model in any field to obtain features to be adjusted.

[0082] Afterwards, the server can input the features to be adjusted into the above adjustment network to obtain the adjusted features. Then, the adjustment network is trained with the optimization goal of minimizing the deviation between the adjusted features and the label features to ensure that it can migrate data features in other scenarios to the aerospace scenario.

[0083] S104: Input the point cloud data into the target detection model to be trained, so as to extract features from the point cloud data through the feature extraction network of the target detection model to obtain distilled features, and determine the target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the baseline features is the same as the number of feature channels of the distilled features.

[0084] The server can input the point cloud data into the target detection model to be trained, so as to extract features from the point cloud data through the feature extraction network of the target detection model, obtain distilled features, and then perform several convolution and deconvolution processes on the basis of the distilled features to determine the target features.

[0085] In this specification, the target detection model may be a simplified teacher detection model whose parameter amount is lower than that of the teacher detection model.

[0086] Specifically, the model structure of the target detection model is the same as that of the teacher detection model. Both are equipped with a pseudo image generation network, a feature extraction network and a detection network. The pseudo image generation network of the teacher detection model is the same as the pseudo image generation network of the target detection model, the detection network of the teacher detection model is the same as the detection network of the target detection model, and the parameter amount of the feature extraction network of the target detection model is lower than the parameter amount of the feature extraction network of the teacher detection model.

[0087] During the feature extraction process, the point cloud data can be discretized into several vertical columnar areas through the pseudo image generation network of the target detection model, and the maximum pooling operation is applied to the points in each vertical column area. The result is expanded into a pseudo image according to the position of each vertical column area as the second pseudo image. Thereafter, the feature extraction network of the target detection model is used to extract features from the second pseudo image to obtain target features and distilled features.

[0088] Furthermore, the feature extraction network of the target detection model includes at least one convolution block, each convolution block corresponds to a deconvolution block, and the server can perform feature extraction on the point cloud data through the first convolution block in the feature extraction network to obtain distilled features, and input the extracted feature vector into the deconvolution block corresponding to the first convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the first convolution block.

[0089] For each convolution block except the first convolution block, the feature vector output by the previous convolution block is processed through the convolution block, and the processed feature vector is input into the deconvolution block corresponding to the convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the convolution block. After that, the feature extraction network can splice the convolution features output by each deconvolution block to obtain the target feature.

[0090] It should be pointed out that the initial features extracted by the feature extraction network of the above-mentioned teacher detection model may refer to the convolution features obtained after the first convolution block in the feature extraction network of the teacher detection model performs feature extraction on the point cloud data. Correspondingly, the baseline features may refer to the features obtained after adjusting the convolution features obtained after the first convolution block performs feature extraction on the point cloud data based on the adjustment network.

[0091] For ease of understanding, this specification provides a structural diagram of a feature extraction network, such as Figure 2 shown.

[0092] Figure 2 A schematic diagram of the structure of a feature extraction network provided in this specification.

[0093] The feature extraction network of the target detection model has three convolution blocks (S, L, C / 2), and each convolution block corresponds to a deconvolution block. The stride of each block is S, including L 3×3 2D convolution layers. The channel width of the output of each convolution block is C / 2, which is half of that in the teacher detection model. The output features corresponding to the three convolution blocks are (B, C1 / 2, H, W), (B, C2 / 2, H / 2, W / 2) and (B, / 2, H / 4, W / 4), where the convolutional block output of the student model is This is the distilled feature. After being processed by the corresponding three deconvolution modules, the corresponding output feature sizes are (B, C2 / 2, H, W). Each output feature can then be concatenated to generate a target feature with a size of (B, 3*C2 / 2, H, W). .

[0094] In practical applications, the C values ​​of the three convolutional blocks in the teacher detection model can be 64, 128, and 256 respectively. The output features corresponding to the three convolutional blocks in the target detection model are (B, 32, H, W), (B, 64, H / 2, W / 2) and (B, 128, H / 4, W / 4). After the corresponding three deconvolution blocks are processed, the corresponding output feature sizes are (B, 64, H, W). The final target feature is (B, 192, H, W).

[0095] S105: Determine a target detection result for the point cloud data according to the target features through the detection network of the target detection model.

[0096] The server can project the point cloud data at different viewing angles to obtain a projection image at each viewing angle, and then input the projection image at each viewing angle into a preset image encoder to determine the image features corresponding to the projection images at each viewing angle through the image encoder, and splice and adjust the image features corresponding to the projection images at each viewing angle to obtain the projection features.

[0097] For ease of understanding, this specification provides a schematic diagram of the projection feature extraction process, such as Figure 3 shown.

[0098] Figure 3 A schematic diagram of a projection feature extraction process provided in this specification.

[0099] The image encoder can be an image encoder of the CLIP model, which performs projection processing on the point cloud data from six perspectives, namely Front, Right, Back, Left, Top and Down, to obtain six corresponding 2D projection images, and transmits each 2D projection image to the image encoder of the CLIP model to extract features. The feature representation is: , the six features have the same size, (B, N), where N can be 128.

[0100] The image encoder can splice the features of the above six perspectives to obtain the spliced ​​features The size is (B, 6N), that is

[0101]

[0102] Furthermore, the server can use FC-Adapter to handle the above splicing features. , generate features ,Right now

[0103]

[0104] in, , and Indicates the two-layer weights in the FC-Adapter.

[0105] The server then performs the feature Expand and generate projection features of size (B, 6N, H, W) ,Right now

[0106]

[0107] The server can then project the features With target features Fusion is performed to obtain fusion features ,Right now

[0108]

[0109] When the target feature When the size of is (B, 192, H, W), the fusion feature The dimensions are (B, 960, H, W).

[0110] After obtaining the fused features, the server may input the fused features into the detection network of the target detection model to determine the target detection result for the point cloud data through the detection network of the target detection model.

[0111] Among them, the target detection result may include category information, boundary information and posture information of the target object corresponding to the point cloud data. The boundary information is used to characterize the position and size of the boundary box of the target object corresponding to the point cloud data, and the posture information is used to characterize the angle and direction of the target object.

[0112] Of course, the server may not determine the projection features through the image encoder, but directly input the target features into the detection network of the target detection model to obtain the target detection results.

[0113] S106: Determine a loss value based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and train the target detection model with minimizing the loss value as an optimization goal.

[0114] In this specification, the server can determine the benchmark features based on the teacher detection model , constraining the distilled features extracted by the target detection model so that the student model inherits the feature extraction capability of the teacher detection model and minimizes the deviation between the baseline features and the distilled features.

[0115] Specifically, the server can determine the feature loss by taking the output of the first block of the teacher detection model, adjusting and reshaping the baseline features, and the output of the first convolutional block in the target detection model feature extraction network and reshaping the distilled features. , the feature loss can be expressed as:

[0116]

[0117]

[0118]

[0119] in, Denotes the Frobenius norm. It represents the features after adjusting and reshaping the output features of the first convolutional block of the teacher detection model, and its size is (B, ). It represents the features after reshaping the output features of the first convolutional block of the target detection model feature extraction network, and its size is (B, ). Indicates that Perform L2 normalization. Indicates that Perform L2 normalization.

[0120] Furthermore, the server can determine the detection loss based on the deviation between the target detection result and the actual label corresponding to the point cloud data. , the detection loss can be expressed as:

[0121]

[0122] in, It represents the number of positive prior boxes. , and is a hyperparameter, which can be set to , , .

[0123] It is the boundary loss, which can be determined based on the deviation between the boundary information in the target detection result and the boundary information in the actual label; It is the classification loss, which can be determined based on the deviation between the classification information in the target detection result and the classification information in the actual label; It is the posture loss, which can be determined based on the deviation between the posture information in the target detection result and the posture information in the actual label.

[0124] The server can determine the comprehensive loss value based on the feature loss and detection loss , the comprehensive loss value can be expressed as:

[0125] The server can then train the target detection model with minimizing the comprehensive loss value as the optimization goal until the training goal is met (such as converging to a preset range or reaching a preset number of training times), and deploy the target detection model on the target spacecraft. For ease of understanding, this manual provides a schematic diagram of the overall architecture of model training, such as Figure 4 shown.

[0126] Figure 4 A schematic diagram of the overall architecture of a model training provided in this specification.

[0127] Among them, the feature representation of the point cloud data can be extracted by the feature extraction network of the teacher detection model and the feature extraction network of the target detection model respectively, and the features extracted by the teacher detection model are adjusted by CONV-Adapter, and the feature loss is determined based on the adjusted baseline features and the distilled features extracted by the feature extraction network of the student detection model. In addition, the projection features corresponding to the point cloud data are determined by the image encoder, and the projection features are spliced ​​with the target features to obtain fused features, and then the fused features are input into the detection network of the target detection model to obtain the target detection result, and the detection loss is determined based on the deviation between the target detection result and the actual label.

[0128] After that, the target detection model can be used to perform target detection. For ease of understanding, this specification provides a flow chart of a spacecraft target detection method applied to the above target detection model, as shown in FIG. Figure 5 shown.

[0129] Figure 5 A schematic diagram of a flow chart of a spacecraft target detection method provided in this specification includes the following steps:

[0130] S501: Acquire the collected point cloud data of the spacecraft target to be measured;

[0131] S502: Input the target point cloud data of the spacecraft to be tested into a pre-trained target detection model to determine the target detection result corresponding to the target point cloud data of the spacecraft to be tested through the target detection model, wherein the target detection model is trained by the above-mentioned model training method.

[0132] In practical applications, the data acquisition device can collect point cloud data in the aerospace scene through its own sensors as the target point cloud data of the spacecraft to be tested, and then input the target point cloud data of the spacecraft to be tested into the above-mentioned target detection model to determine the target features corresponding to the target point cloud data of the spacecraft to be tested through the feature extraction network of the target detection model, and then input the target features into the detection network of the target detection model to obtain the target detection results corresponding to the target point cloud data of the spacecraft to be tested, and perform the aerospace mission based on the target detection results.

[0133] From the above method, it can be seen that this scheme uses the Point pillars pre-trained on the open source dataset as the teacher network and the Point pillars with fewer parameters as the student network. It extracts low-level common features from the pre-trained teacher network by knowledge distillation, and uses the CONV-Adapter structure to fine-tune the output features of the teacher network to alleviate the domain differences between the open source data and the spacecraft simulation data. This scheme also uses the multimodal pre-training model CLIP, passes the projected spacecraft simulation data into CLIP, and uses the FC-Adapter structure to fine-tune the CLIP output features to alleviate the domain differences between the spacecraft data and the CLIP training data. The above two methods introduce richer features, which effectively alleviates the problem of limited feature expression capabilities in the few-sample spacecraft 3D detection due to data scarcity.

[0134] The above are one or more methods for implementing model training and spacecraft target detection in this specification. Based on the same idea, this specification also provides corresponding model training and spacecraft target detection devices, respectively. Figure 6 , Figure 7 shown.

[0135] Figure 6 A schematic diagram of a model training device provided in this specification, comprising:

[0136] An acquisition module 601 is used to acquire point cloud data in aerospace scenes;

[0137] An input module 602 is used to input the point cloud data into a pre-trained teacher detection model, so as to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features;

[0138] An adjustment module 603 is used to adjust the initial feature based on a preset adjustment network to obtain a reference feature;

[0139] An extraction module 604 is used to input the point cloud data into the target detection model to be trained, so as to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and determine target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the benchmark feature is the same as the number of feature channels of the distilled feature;

[0140] A determination module 605 is used to determine a target detection result for the point cloud data according to the target feature through a detection network of the target detection model;

[0141] The training module 606 is used to determine the loss value based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and train the target detection model with minimizing the loss value as the optimization goal.

[0142] Optionally, the input module 602 is specifically used to discretize the point cloud data into a plurality of vertical columnar regions through the pseudo image generation network of the teacher detection model, apply a maximum pooling operation to the points in each vertical column region, and expand the result into a pseudo image according to the position of each vertical column region as a first pseudo image; extract features from the first pseudo image through the feature extraction network of the teacher detection model to obtain the initial features;

[0143] The extraction module 604 is specifically used to discretize the point cloud data into a number of vertical columnar areas through the pseudo image generation network of the target detection model, apply the maximum pooling operation to the points in each vertical column area, and expand the result into a pseudo image according to the position of each vertical column area as a second pseudo image; perform feature extraction on the second pseudo image through the feature extraction network of the target detection model to obtain the distilled feature, and determine the target feature based on the distilled feature.

[0144] Optionally, the pseudo image generation network of the teacher detection model is the same as the pseudo image generation network of the target detection model, the detection network of the teacher detection model is the same as the detection network of the target detection model, and the parameter amount of the feature extraction network of the target detection model is lower than the parameter amount of the feature extraction network of the teacher detection model.

[0145] Optionally, the feature extraction network includes at least one convolution block, and each convolution block corresponds to a deconvolution block;

[0146] The extraction module 604 is specifically used to perform feature extraction on the point cloud data through the first convolution block in the feature extraction network to obtain the distilled feature, and input the extracted feature vector into the deconvolution block corresponding to the first convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the first convolution block; for each convolution block except the first convolution block, process the feature vector output by the previous convolution block through the convolution block, and input the processed feature vector into the deconvolution block corresponding to the convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the convolution block; splice the convolution features output by each deconvolution block to obtain the target feature.

[0147] Optionally, the determination module 605 is specifically used to input the point cloud data into a preset image encoder to determine the projection features corresponding to the point cloud data through the image encoder; splicing the projection features with the target features to obtain fusion features; input the fusion features into the detection network of the target detection model to determine the target detection results for the point cloud data through the detection network of the target detection model.

[0148] Optionally, the determination module 605 is specifically used to project the point cloud data at different viewing angles to obtain a projection image at each viewing angle; input the projection image at each viewing angle into a preset image encoder to determine the image features corresponding to the projection images at each viewing angle through the image encoder, and splice and adjust the image features corresponding to the projection images at each viewing angle to obtain the projection features.

[0149] Figure 7 A schematic diagram of a spacecraft target detection device provided in this specification includes:

[0150] The acquisition module 701 is used to acquire the collected point cloud data of the spacecraft target to be measured;

[0151] The detection module 702 is used to input the target point cloud data of the spacecraft to be tested into a pre-trained target detection model to determine the target detection result corresponding to the target point cloud data of the spacecraft to be tested through the target detection model.

[0152] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 or Figure 5 A model training or spacecraft target detection method is provided.

[0153] This manual also provides Figure 8 The one shown corresponds to Figure 1 or Figure 5 A schematic diagram of the electronic device. Figure 8 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The model training method or Figure 5 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0154] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0155] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0156] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0157] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0158] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0159] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0160] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0162] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0163] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0164] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0165] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0166] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0167] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0168] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A model training method, It is characterized in that include: Obtain point cloud data in aerospace scenes; Inputting the point cloud data into a pre-trained teacher detection model to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features; Based on a preset adjustment network, the initial features are adjusted to obtain reference features; Inputting the point cloud data into a target detection model to be trained, so as to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and determining target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the benchmark feature is the same as the number of feature channels of the distilled feature; Determining a target detection result for the point cloud data according to the target features through a detection network of the target detection model; A loss value is determined based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and the target detection model is trained with minimizing the loss value as the optimization goal.

2. The method according to claim 1, It is characterized in that Inputting the point cloud data into a pre-trained teacher detection model to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features, specifically including: The point cloud data is discretized into a plurality of vertical columnar regions through the pseudo image generation network of the teacher detection model, a maximum pooling operation is applied to the points in each vertical columnar region, and the result is expanded into a pseudo image according to the position of each vertical columnar region as a first pseudo image; Performing feature extraction on the first pseudo image through the feature extraction network of the teacher detection model, and using the output feature of the first convolution block in the feature extraction structure as the initial feature; The point cloud data is input into the target detection model to be trained, so as to extract features from the point cloud data through the feature extraction network of the target detection model to obtain distilled features, which specifically includes: The point cloud data is discretized into a plurality of vertical columnar regions by a pseudo image generation network of the target detection model, a maximum pooling operation is applied to the points in each vertical columnar region, and the result is expanded into a pseudo image according to the position of each vertical columnar region as a second pseudo image; The feature extraction network of the target detection model is used to extract features from the second pseudo image to obtain the distilled features.

3. The method according to claim 2, It is characterized in that The pseudo image generation network of the teacher detection model is the same as the pseudo image generation network of the target detection model, the detection network of the teacher detection model is the same as the detection network of the target detection model, and the parameter amount of the feature extraction network of the target detection model is lower than the parameter amount of the feature extraction network of the teacher detection model.

4. The method according to claim 1, It is characterized in that The feature extraction network includes at least one convolution block, and each convolution block corresponds to a deconvolution block; The feature extraction network of the target detection model is used to extract features from the point cloud data to obtain distilled features, and target features are determined based on the distilled features, specifically including: Performing feature extraction on the point cloud data through the first convolution block in the feature extraction network to obtain the distilled feature, and inputting the extracted feature vector into the deconvolution block corresponding to the first convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the first convolution block; For each convolution block except the first convolution block, the feature vector output by the previous convolution block is processed by the convolution block, and the processed feature vector is input into the deconvolution block corresponding to the convolution block for deconvolution processing to obtain the convolution feature output by the deconvolution block corresponding to the convolution block; The convolution features output by each deconvolution block are concatenated to obtain the target feature.

5. The method according to claim 1, It is characterized in that Determining the target detection result for the point cloud data through the detection network of the target detection model according to the target feature, specifically including: Inputting the point cloud data into a preset image encoder to determine the projection features corresponding to the point cloud data through the image encoder; The projection feature is combined with the target feature to obtain a fusion feature; The fused features are input into a detection network of the target detection model to determine a target detection result for the point cloud data through the detection network of the target detection model.

6. The method according to claim 5, It is characterized in that Inputting the point cloud data into a preset image encoder to determine the projection features corresponding to the point cloud data through the image encoder, specifically including: Projecting the point cloud data at different viewing angles to obtain a projection image at each viewing angle; The projection image at each viewing angle is input into a preset image encoder to determine the image features corresponding to the projection images at each viewing angle through the image encoder, and the image features corresponding to the projection images at each viewing angle are spliced ​​and adjusted to obtain the projection features.

7. A spacecraft target detection method, It is characterized in that include: Obtain the collected point cloud data of the spacecraft target to be tested; The target point cloud data of the spacecraft to be tested is input into a pre-trained target detection model to determine the target detection result corresponding to the target point cloud data of the spacecraft to be tested through the target detection model, wherein the target detection model is trained by the method described in any one of claims 1 to 6 above.

8. A model training device, It is characterized in that include: Acquisition module, used to acquire point cloud data in aerospace scenes; An input module, used for inputting the point cloud data into a pre-trained teacher detection model, so as to extract features from the point cloud data through a feature extraction network of the teacher detection model to obtain initial features; An adjustment module, used to adjust the initial features based on a preset adjustment network to obtain a reference feature; an extraction module, configured to input the point cloud data into a target detection model to be trained, so as to extract features from the point cloud data through a feature extraction network of the target detection model to obtain distilled features, and determine target features based on the distilled features, wherein the parameter amount of the target detection model is lower than the parameter amount of the teacher detection model, and the number of feature channels corresponding to the benchmark feature is the same as the number of feature channels of the distilled feature; A determination module, configured to determine a target detection result for the point cloud data according to the target feature through a detection network of the target detection model; A training module is used to determine a loss value based on the deviation between the baseline feature and the distilled feature, and the deviation between the target detection result and the actual label corresponding to the point cloud data, and to train the target detection model with minimizing the loss value as the optimization goal.

9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.