A method and system for detecting small targets in deep space based on multi-scale feature pyramid

Through the small target detection method in far-reaching space based on the multi-scale feature pyramid, the multi-scale feature fusion pyramid network and the improved SE attention mechanism are used to solve the problem of small target detection in far-reaching space, improve the detection accuracy and efficiency, and use real background data The algorithm performance was verified.

CN118212505BActive Publication Date: 2024-08-27NAT SPACE SCI CENT CAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410636120.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

It is difficult for existing technology to effectively detect small targets in far-reaching space, especially under poor lighting conditions and star map backgrounds. Traditional methods lack generalization capabilities and are difficult to distinguish between targets and backgrounds.

Method used

A far-reaching space small target detection method based on multi-scale feature pyramid is adopted. By constructing multi-scale feature fusion pyramid network (MFFPN) and improved SE attention mechanism, combined with residual network and spatial pyramid pooling, the feature extraction capability is enhanced and detection is improved. Precision and efficiency.

Benefits of technology

Significantly improves the detection performance of small targets in space, enhances detection capabilities under weak lighting and star map backgrounds, improves detection accuracy and efficiency, and verifies data sets closer to the actual environment through real background data and 3D rendering simulation improve algorithm performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118212505B
    Figure CN118212505B
Patent Text Reader

Abstract

The present invention belongs to the field of aerospace technology, and specifically relates to a method and system for detecting small targets in deep space based on a multi-scale feature pyramid. The method comprises: inputting the collected deep space images into a pre-established and trained small target detection model to realize the detection of small targets; the small target detection model comprises a backbone network, a neck network and a detection head network, the neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability, the feature fusion network adopts an improved SE attention mechanism, obtains more important information through channel attention weighting, and adopts the constructed multi-scale feature fusion pyramid MFPPN to improve the feature extraction capability of the target area. The present invention solves the problem that the features of small targets in space are difficult to extract, and improves the detection performance of the target detection model for small targets in space under the interference of weak illumination and star map background.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of aerospace technology, and in particular relates to a method and system for detecting small targets in deep space based on a multi-scale feature pyramid. Background Art

[0002] With the continuous development of aerospace technology, human demand for space exploration is increasing, and deep space exploration has gradually become a research hotspot in the aerospace field. Among them, space target detection is the primary link in deep space exploration. By detecting and identifying space targets, the type and orbital position of space targets can be obtained, providing rich information for subsequent orbit determination and mission planning. In the space target detection mission, targets with large size and signal-to-noise ratio are easy to detect. However, for small space targets, due to the presence of star map background in deep space and poor lighting conditions, the imaging area in the image is small and the energy is weak, which brings difficulties to target detection.

[0003] In recent years, the detection of small space targets has received extensive attention, and there have been a large number of related research results. In a single-frame image, small space targets are mostly manifested as light spots with low intensity and a small imaging area with only a small number of pixels. Traditional target detection methods are generally based on manual feature selection, but manual feature selection relies on expert prior knowledge and has poor generalization ability. Moreover, under poor lighting conditions and interference from star backgrounds, existing methods are difficult to meet the requirements of the task.

[0004] With the rise of artificial intelligence, deep learning has achieved success in many fields, among which computer vision has become a key research area. Now more and more research is focusing on the detection of small space targets. Compared with traditional non-cooperative target detection methods, deep learning target detection methods do not require manual design of features, and improve the generalization performance of the algorithm through autonomous learning of features by neural networks. However, existing methods do not consider the impact of different lighting conditions on the detection of small space targets. At the same time, since the intensity of small space targets is similar to the energy of background stars, no effective solution has been proposed for this problem. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and propose a method and system for detecting small targets in deep space based on a multi-scale feature pyramid.

[0006] In order to achieve the above object, the present invention proposes a method for detecting small targets in deep space based on a multi-scale feature pyramid, comprising:

[0007] Input the collected deep space images into the pre-established and trained small target detection model to detect small targets;

[0008] The small target detection model includes a backbone network, a neck network and a detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts a constructed multi-scale feature fusion pyramid MFFPN to improve the feature extraction capability of the target area.

[0009] Preferably, the backbone network uses CSPNet as the algorithm backbone, including a residual module, a pooling layer, an activation layer and a normalization layer, and the output of the backbone network is a feature map.

[0010] Preferably, the neck network includes a group convolution GConv and an improved SE module; the processing of the neck network includes:

[0011] Grouped convolution GConv on the feature map of the input Perform feature extraction, compress the extracted features through adaptive average pooling, and obtain the channel weight value through two 1×1 Conv ,The improved SE module weights the channel attention to obtain more important information.

[0012] Preferably, the activation function of the improved SE module includes two layers, namely ReLU and H-Sigmoid.

[0013] Preferably, spatial pyramid pooling is introduced into the multi-scale feature fusion pyramid MFPPN, and the 3×3 convolution kernel in the original structure is cropped, Relu is selected as the activation function, and the size of the pooling kernel is changed from (5, 5, 5) to (3, 3, 3).

[0014] Preferably, the loss function of the small target detection model is composed of the confidence loss function , Bounding Box Loss Function And the classification loss function The weighted sum is obtained.

[0015] Preferably, the training step of the small target detection model includes:

[0016] Constructing a small space target image database, wherein the small space targets include small celestial bodies, stars and satellites;

[0017] Use LabelImg as a labeling tool to mark the location and type of non-cooperative targets in the database image and generate a labeling file in XML format; divide the training set according to the set ratio;

[0018] The image brightness, saturation and noise enhancement methods, as well as the geometric change methods of random scaling, cropping, translation, shearing and rotation are used in turn on the data of the training set to enhance the single image data;

[0019] The mosaic data enhancement method is used to splice multiple enhanced image data and change the corresponding bounding boxes to obtain new images and bounding boxes; the Copy-Pasting method is used to increase the number of objects in the image to obtain an expanded training set;

[0020] The expanded training set is input into the model in sequence, and the model parameters are adjusted until the training requirements are met to obtain a trained small target detection model.

[0021] Preferably, the construction of a spatial small object image database comprises:

[0022] Collect a set number of 3D models of small celestial bodies, stars and satellites, and construct a star map background of a set size based on real space background data;

[0023] Use the collected data through 3D rendering software to build scenes of various small space targets, and design different light source positions and intensities to simulate the real space environment;

[0024] Set the motion rules of the virtual camera, select multiple shooting angles and build a spatial small target image database through automatic shooting.

[0025] On the other hand, the present invention proposes a deep space small target detection system based on a multi-scale feature pyramid, comprising:

[0026] The detection module is used to input the collected deep space images into the pre-established and trained small target detection model to realize the detection of small targets;

[0027] The small target detection model includes a backbone network, a neck network and a detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts a constructed multi-scale feature fusion pyramid MFFPN to improve the feature extraction capability of the target area.

[0028] Compared with the prior art, the advantages of the present invention are:

[0029] 1. The present invention provides a method for detecting small targets in deep space based on a multi-scale feature pyramid. A multi-scale feature pyramid network MFPPN is constructed. The method of increasing the receptive field through spatial pyramid pooling solves the problem that the features of small targets in space are difficult to extract, and improves the detection performance of the target detection model for small targets in space under the interference of weak illumination and star map background.

[0030] 2. The deep space small target detection method based on multi-scale feature pyramid of the present invention improves the ability of multi-scale feature fusion network to extract features of spatial non-cooperative targets, enhances the representation ability of spatial non-cooperative target detection model, and improves the detection accuracy and efficiency of spatial non-cooperative targets by combining the channel attention mechanism of residual network;

[0031] 3. The deep space small target detection method based on the multi-scale feature pyramid of the present invention collects a large number of high-precision three-dimensional models of small space bodies, stars and satellites, and constructs a star map background according to the real space background data; then, the collected data is used by 3D rendering software to construct scenes of various small space targets, and different light source positions and intensities are designed to simulate the real space environment of space; finally, the corresponding motion law of the virtual camera is set, multiple shooting angles are selected and the database is constructed through automatic shooting, so that the constructed data set is closer to the real situation and can better verify the performance of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of a method for detecting small targets in deep space based on a multi-scale feature pyramid of the present invention;

[0033] Figure 2 It is a schematic diagram of the structure of the small target detection model of the present invention;

[0034] Figure 3 This is the structural intention of the improved SE attention mechanism module in the present invention;

[0035] Figure 4 Schematic diagram of the spatial pyramid pooling structure in the present invention;

[0036] Figure 5 This is a detection result diagram of the deep space small target detection method based on the multi-scale feature pyramid of the present invention. DETAILED DESCRIPTION

[0037] The present invention discloses a method for detecting small targets in deep space based on a multi-scale feature pyramid, which is used for high-precision detection of small targets in space, and comprises the following steps:

[0038] Step 1: First, collect a large number of high-precision three-dimensional models of small space objects, stars and satellites, and build a star map background based on real space background data; then, use the collected data through 3D rendering software to build scenes of various small space targets, and design different light source positions and intensities to simulate the real space environment; finally, set the corresponding virtual camera's motion rules, select multiple shooting angles and realize the construction of the database through automatic shooting.

[0039] The orbital motion of a small space target is considered to be a two-body motion, that is, in inertial space, the position vector Satisfies the following relationship:

[0040]

[0041] in, is the gravitational constant.

[0042] Step 2: Use software to annotate the constructed dataset and divide the annotated images into training set, validation set and test set.

[0043] Step 3: Use the spatial small target detection model, use a variety of data enhancement methods to train on the constructed dataset, and save the training results. The spatial small target detection model uses CSPNet as the algorithm backbone, and the feature fusion network uses the constructed multi-scale feature fusion pyramid MFPPN, introduces the attention mechanism and spatial pyramid pooling, improves the ability to extract the target area, and enhances the detection ability of small targets. CIOU is used as the loss function to construct the optimal spatial small target detection model MSOD-Net.

[0044] like Figure 2 The figure shows the structure of the small target detection model of the present invention. The model consists of three parts: the backbone network, the neck network and the detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts the constructed multi-scale feature fusion pyramid MFPPN to improve the feature extraction capability of the target area. As shown in the following table Figure 2 , Figure 3 and Figure 4 Abbreviations and English-Chinese translations involved.

[0045] Table 1 Abbreviations and English-Chinese translation

[0046] Abbreviations English full name Chinese version MSOD-Net Multi-scale Small Object Detection Network Multi-scale small object detection network MFFPN Multi-scale Feature Fusion Pyramid Network Multi-scale feature fusion pyramid network CSPNet Cross Stage Partial Network Cross-level local network CNN Convolutional Neural Network Convolutional Neural Networks Conv Convolution convolution GConv Group Convolution Grouped Convolution SE Squeeze-and-Excitation Squeeze-Activate Networks IoU Intersection over Union Intersection and Union CIo Complete Intersection over Union Complete Intersection BN Batch Normalization Batch Normalization ReLU Rectified Linear Unit Rectified Linear Unit CBR Conv+BN+ReLU Convolutional Normalized Activation Module H-Sigmoid Hardware Sigmoid Hardware logic functions Maxpool2d 2D Max Pooling Concat Concatenate connect C2-C5 Backbone extraction feature F2-F5 Feature fusion after attention mechanism P2-P5 Fusion of features after spatial pooling Head Detection head Classification Classification Regression Bounding-Box regression Border regression SPPFCSPC Spatial Pyramid Pooling Fast Cross Stage Partial Concat Spatial pyramid pooling for fast cross-stage partial connections AA.Pool Adaptive Average Pooling Adaptive Average Pooling

[0047] The loss function of the model includes the confidence loss function , Bounding Box Loss Function And the classification loss function There are three types of losses, and the loss function is the weighted sum of the three losses, as shown in the formula As shown:

[0048]

[0049] The confidence loss function The binary cross entropy is calculated for the target confidence score in the prediction box and the IOU value between the prediction box and the target box. The classification loss function is similar to the confidence loss. The category loss is calculated by the category score of the prediction box and the one-hot performance of the target box. The bounding box loss function CIoU is used to take into account the distance, overlap rate, scale, and aspect ratio between the target and the anchor, making the target regression box more stable, further converging quickly and improving performance.

[0050] The mathematical expression of CIoU function is as follows shown.

[0051]

[0052] The variables are as follows:

[0053]

[0054]

[0055]

[0056] in, and Represent the predicted anchor box and the true anchor box respectively. Represents the diagonal length of the outer rectangle. Represents the distance between the center point of the predicted anchor box and the real anchor box, and Represent the center points of the predicted anchor box and the real anchor box respectively, and Represent the height and width of the predicted anchor box respectively, and Represent the height and width of the real anchor box respectively.

[0057] Step 4: Input the image to be detected into the detection model, use the optimal target detection model MSOD-Net to detect it, and use the optimal MSOD-Net model to achieve small spatial target detection with high accuracy and strong anti-interference ability.

[0058] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0059] Example 1

[0060] Reference Figure 1 This embodiment discloses a method for detecting small targets in deep space based on a multi-scale feature pyramid, and the specific implementation steps are as follows:

[0061] Step 1: Build a database of 8,000 small space target images, including small celestial bodies, stars, and satellites. First, collect high-precision 3D models of 300 small celestial bodies, 5 stars, and 5 satellites, and build a 8,000-image database based on real space background data. 2000 star map background; then, use the collected data through 3D rendering software to build scenes of various small space targets, design different light source positions and intensities to simulate the real space environment; finally, set the corresponding movement rules of the virtual camera, select multiple shooting angles and realize the construction of the database through automatic shooting.

[0062] The orbital motion of a small space target is considered to be a two-body motion, that is, in inertial space, the position vector satisfies the following relationship:

[0063]

[0064] in, is the gravitational constant.

[0065] Step 2: Use LabelImg as a labeling tool. After importing the image into LabelImg, mark the location of the non-cooperative target in the image with a box and indicate the type name. This method completes the labeling of all images, generates a labeling file in XML format, and outputs it to the specified folder to generate a non-cooperative target dataset. The labeled images are divided into training set, validation set, and test set in a ratio of 7:2:1.

[0066] Step 3: Use the spatial small target detection model and a variety of data enhancement methods to enhance the detection accuracy of the model under external interference. In addition to the commonly used image brightness, saturation and noise enhancement methods, we also used geometric change methods such as random scaling, cropping, translation, shearing and rotation. In addition to the single image data enhancement method, we also used the mosaic data enhancement method to enhance the data of multiple images and splice them, and make corresponding changes to the corresponding bounding boxes to obtain new images and bounding boxes. Considering that the starry sky background has a strong similarity, we use Copy-Pasting to enhance the data, increase the number of targets in the image, and enhance the detection performance of the model. Data enhancement can effectively expand the data set, enable the model to have stronger detection performance for targets in different scenes, and increase the generalization of the model for image detection in different scenes.

[0067] The training is performed on the constructed dataset and the training results are saved. The spatial small target detection model uses CSPNet as the algorithm backbone. The backbone network consists of residual modules, pooling layers, activation layers, normalization layers and other modules. CSPNet has strong feature extraction capabilities and can provide rich information for the detection of spatial small targets.

[0068] The feature fusion network uses the constructed multi-scale feature fusion pyramid MFPPN to improve the ability to extract the target area and enhance the detection ability of small targets. By improving the SE attention mechanism module such as Figure 3 As shown in the figure, the lightweight group convolution GConv is first used to extract the features of the input image, and then the improved SE module is used to obtain more important information through channel attention weighting, where the two-layer activation functions of the SE module are selected as ReLU and H-Sigmoid respectively. The proposed CSE module can be expressed as:

[0069]

[0070] The learning weights The calculation formula is:

[0071]

[0072] in represents the H-Sigmoid activation function, ReLU activation function. First, use group convolution GConv to input feature map Then, the features are compressed by adaptive average pooling, and the channel weight values ​​are obtained through two 1×1 Conv , effectively improving the expressive power of the network.

[0073] At the same time, spatial pyramid pooling is introduced to increase the receptive field and improve the performance of target detection. Figure 4 In order to make the image contain more information about small targets, we cropped the 3×3 convolution kernel in the original structure, and then selected ReLU as the activation function to increase the running speed. Finally, the size of the pooling kernel was changed from (5, 5, 5) to (3, 3, 3). The receptive field of the small-sized pooling kernel is more suitable for the scale of small targets, which is conducive to the extraction of small target features and further improves the detection capability of small targets.

[0074] The loss function of the model includes the confidence loss function , Bounding Box Loss Function And the classification loss function There are three types of losses, and the loss function is the weighted sum of the three losses, as shown in the following formula:

[0075]

[0076] The confidence loss function The binary cross entropy is calculated for the target confidence score in the prediction box and the IOU value between the prediction box and the target box. The classification loss function is similar to the confidence loss. The category loss is calculated by the category score of the prediction box and the one-hot performance of the target box. The bounding box loss function CIoU is used to take into account the distance, overlap rate, scale, and aspect ratio between the target and the anchor, making the target regression box more stable, further converging quickly and improving performance.

[0077] The mathematical expression of the CIoU function is as follows:

[0078]

[0079] The variables are as follows:

[0080]

[0081]

[0082]

[0083] in, and Represent the predicted anchor box and the true anchor box respectively. Represents the diagonal length of the outer rectangle. Represents the distance between the center point of the predicted anchor box and the real anchor box, and Represent the center points of the predicted anchor box and the real anchor box respectively, and Represent the height and width of the predicted anchor box respectively, and Represent the height and width of the real anchor box respectively.

[0084] Step 4: Input the image to be detected into the detection model, and use the optimal target detection model MSOD-Net to detect it. The optimal MSOD-Net model is used to achieve high accuracy and strong anti-interference ability in the detection of small space targets. The detection results of MSOT-Net in the deep space small target dataset are as follows: Figure 5 As shown, the red and orange boxes are detection labels.

[0085] Example 2

[0086] Embodiment 2 of the present invention provides a deep space small target detection system based on a multi-scale feature pyramid, which is implemented based on the method of embodiment 1. The system includes:

[0087] The detection module is used to input the collected deep space images into the pre-established and trained small target detection model to realize the detection of small targets;

[0088] The small target detection model includes a backbone network, a neck network and a detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts a constructed multi-scale feature fusion pyramid MFFPN to improve the feature extraction capability of the target area.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.

Claims

1. A method for detecting small targets in deep space based on a multi-scale feature pyramid, comprising: Input the collected deep space images into the pre-established and trained small target detection model to detect small targets; The small target detection model includes a backbone network, a neck network and a detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts a constructed multi-scale feature fusion pyramid MFFPN to improve the feature extraction capability of the target area. The neck network includes a group convolution GConv and an improved SE module; The processing of the neck network includes: Grouped convolution GConv on the feature map of the input Perform feature extraction, compress the extracted features through adaptive average pooling, and obtain the channel weight value through two 1×1 Conv ,The improved SE module weights the channel attention to obtain more important information; The activation function of the improved SE module includes two layers, namely ReLU and H-Sigmoid; The multi-scale feature fusion pyramid MFPPN introduces spatial pyramid pooling, and the 3×3 convolution kernel in the original structure is cropped, the activation function is selected as Relu, and the size of the pooling kernel is changed from (5, 5, 5) to (3, 3, 3); The training steps of the small target detection model include: constructing a space small target image database, wherein the space small targets include small celestial bodies, stars and satellites; The construction of a spatial small target image database comprises: Collect a set number of 3D models of small celestial bodies, stars and satellites, and construct a star map background of a set size based on real space background data; Use the collected data through 3D rendering software to build scenes of various small space targets, and design different light source positions and intensities to simulate the real space environment; Set the motion rules of the virtual camera, select multiple shooting angles and build a spatial small target image database through automatic shooting.

2. The method for detecting small targets in deep space based on multi-scale feature pyramid according to claim 1, characterized in that: The backbone network uses CSPNet as the algorithm backbone, including a residual module, a pooling layer, an activation layer and a normalization layer, and the output of the backbone network is a feature map.

3. The method for detecting small targets in deep space based on multi-scale feature pyramid according to claim 1, characterized in that: The loss function of the small target detection model is composed of the confidence loss function , Bounding Box Loss Function And the classification loss function The weighted sum is obtained.

4. The method for detecting small targets in deep space based on multi-scale feature pyramid according to claim 1, characterized in that: The training step of the small target detection model also includes: Use LabelImg as a labeling tool to mark the location and type of non-cooperative targets in the database image and generate a labeling file in XML format; divide the training set according to the set ratio; The image brightness, saturation and noise enhancement methods, as well as the geometric change methods of random scaling, cropping, translation, shearing and rotation are used in turn on the data of the training set to enhance the single image data; The mosaic data enhancement method is used to splice multiple enhanced image data and change the corresponding bounding boxes to obtain new images and bounding boxes; the Copy-Pasting method is used to increase the number of objects in the image to obtain an expanded training set; The expanded training set is input into the model in sequence, and the model parameters are adjusted until the training requirements are met to obtain a trained small target detection model.

5. A system based on the deep space small target detection method based on multi-scale feature pyramid according to claim 1, characterized in that: include: The detection module is used to input the collected deep space images into the pre-established and trained small target detection model to realize the detection of small targets; The small target detection model includes a backbone network, a neck network and a detection head network. The neck network is a feature fusion network, which is used to fuse multiple levels of features on the backbone network to increase the network expression capability. The feature fusion network adopts an improved SE attention mechanism to obtain more important information through channel attention weighting, and adopts a constructed multi-scale feature fusion pyramid MFFPN to improve the feature extraction capability of the target area.