A kind of ultra-lightweight remote sensing image on-orbit real-time target detection method and device
By using data recombination and grouped convolution, a lightweight on-orbit real-time target detection network for remote sensing images is constructed, which solves the problem of resource waste in on-orbit real-time detection and achieves efficient and low-resource-consumption target detection.
Patent Information
- Application Number
- CN202411229837.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-09-03
AI Technical Summary
Existing deep learning object detection networks face challenges in real-time on-orbit deployment, including large numbers of network parameters and computational demands, as well as wasted computational resources under parallel processing modes at the channel dimension, making it difficult to meet the needs of on-orbit hardware resources.
By employing data recombination and grouped convolution, multi-channel low-resolution feature maps are constructed by recombining high-resolution single-channel images. Multi-stage grouped convolution and downsampling are then performed in the feature extraction network to reduce the number of network parameters and computational load, thereby reducing redundant computation caused by channel expansion.
It effectively reduced the number of parameters and computational load of the detection network, improved the efficiency and resource utilization of on-orbit real-time target detection, ensured that the detection accuracy was within an acceptable range, and achieved high-performance on-orbit real-time target detection.
Smart Images

Figure CN119169269B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of target detection technology, specifically to an ultra-lightweight on-orbit real-time target detection method and apparatus for remote sensing images. Background Technology
[0002] With the successful application of deep learning technology in the field of remote sensing, target detection based on deep learning in remote sensing images has played an increasingly important role in both military and civilian fields, and has been widely used in missions such as military guidance, intelligent transportation, and maritime rescue. Deep learning methods have greatly improved the accuracy of target detection; however, due to the large number of parameters in the detection network and the extremely limited computing resources on the in-orbit platform, it is difficult to deploy existing detection networks on an in-orbit platform. Therefore, there is an urgent need for a high-performance, real-time in-orbit target detection method.
[0003] Currently, deep learning-based object detection algorithms are mainly divided into three categories. The first category is two-stage object detection algorithms, represented by Faster R-CNN, which generate candidate regions on bounding boxes containing objects before performing object detection. This category offers high detection accuracy but low efficiency. The second category is single-stage object detection algorithms, mainly represented by SSD (Single Shot MultiBoxDetector) and the YOLO (You Only Look Once) series. These algorithms do not generate candidate regions but directly perform object detection through regression, resulting in significantly improved detection efficiency compared to the first category. The third category is end-to-end object detection methods, represented by DETR (DEtection Transformer). These algorithms use a Transformer as the detection head for sparse prediction, directly obtaining detection results without post-processing methods such as NMS (Non-Maximum Suppression), thus improving inference efficiency. However, the large computational cost of the Transformer structure poses certain challenges to deployment.
[0004] Most current real-time object detection methods employ a single-stage approach. While these methods perform well and are highly efficient on various scenario datasets, their on-orbit deployment still presents several challenges. Single-stage object detection networks face two main problems in on-orbit real-time processing: first, the large number of network parameters and computational demands, coupled with limited on-orbit hardware resources, make it difficult to meet deployment requirements; second, for channel-dimensional parallel processing, the limited number of image input channels necessitates channel expansion (zero padding), wasting computational resources. Therefore, it is necessary to lightweight the network structure and eliminate the impact of input channel expansion on inference speed, while ensuring that the accuracy degradation of object detection remains within an acceptable range, in order to achieve high-performance on-orbit real-time object detection. Summary of the Invention
[0005] In view of this, the present invention provides an ultra-lightweight on-orbit real-time target detection method for remote sensing images. It addresses the problems existing in the on-orbit application of current detection networks by adopting a lightweight network structure design and data reorganization method to improve inference speed and reduce resource consumption while ensuring network performance, thereby achieving efficient on-orbit real-time target detection and solving the problem of reduced hardware inference efficiency caused by expanding image input channels in the prior art.
[0006] To solve the above-mentioned technical problems, the present invention is implemented as follows.
[0007] A lightweight on-orbit real-time target detection method for remote sensing images, wherein the deep learning network used for target detection includes a feature extraction network and a detection network; the method includes the following steps:
[0008] Step 1: Reorganize the high-resolution single-channel image according to the input channel dimension N1 of the feature extraction network to obtain low-resolution feature maps of N1 channels;
[0009] The reconstruction method is as follows: according to a set step size r, the high-resolution single-channel image is divided into segments of size r. 2 The block, r 2 =N1; r within the same block 2 Pixels are assigned to the same position in a low-resolution feature map with N1 channels;
[0010] Step 2: Input the low-resolution feature maps of the N1 channels into the feature extraction network. The feature extraction network performs multiple stages of group convolution and downsampling processing, and then performs reverse reconstruction in the opposite way to data reconstruction to obtain downsampled feature maps.
[0011] Step 3: Input the feature map obtained in Step 2 into the detection network to obtain the target detection result.
[0012] Preferably, in step 1, r within the same block 2 In a low-resolution feature map where pixels are assigned to N1 channels, the same position is:
[0013] Let the point in the high-resolution single-channel image be the initial point (h1, w1), and the position assigned to it in the low-resolution feature map be the corresponding point (c2, h2, w2). The correspondence between the initial point (h1, w1) and the corresponding point (c2, h2, w2) is calculated as follows:
[0014] The channel position c2 of the corresponding point is obtained by taking the modulo operation between the position of the initial point and the number of output feature channels N1:
[0015] c2=(w1+h1×W1)%N1
[0016] Based on the pixel rearrangement method, the position (c2, h2, w2) of the corresponding point in the c2th channel of the output feature is calculated:
[0017]
[0018] h2 = h1 / r.
[0019] Preferably, in step 2, the feature extraction network includes four downsampling stages and one reverse data reconstruction stage;
[0020] In the 4 downsampling stages:
[0021] The first stage input is a low-resolution feature map P0(W,H,16) with 16 channels, where W and H represent the two-dimensional dimensions of the feature map, and the number 16 represents 16 channels. The low-resolution feature map P0 passes through a first grouped convolutional layer, outputting 16 channels of data, and then passes through a first pooling layer, outputting a 16-channel feature map P1(W / 2,H / 2,16). The first grouped convolutional layer has a 3×3 convolutional kernel, with 2 channels grouped. The pooling window of the first pooling layer is 2×2.
[0022] The second stage input is a 16-channel feature map P1, which is passed through the second convolutional layer to output 32-channel data, and then through the second pooling layer to output a 32-channel feature map P2(W / 4,H / 4,32); the second convolutional layer has a 3×3 convolutional kernel and the channel grouping is 2; the pooling window of the second pooling layer is 2×2.
[0023] The three-stage input consists of a 32-channel feature map P2, which is passed through a third grouped convolutional layer to output 32-channel data, then through a fourth grouped convolutional layer to output 32-channel data, and finally through a third pooling layer to output a 32-channel feature map P3 (W / 8, H / 8, 32). The third grouped convolutional layer has a 3×3 convolutional kernel and 2 channels per group; the fourth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels per group; and the pooling window of the third pooling layer is 2×2.
[0024] The four-stage input consists of a 32-channel feature map P3, which is passed through a fifth grouped convolutional layer to output 32-channel data, then through a sixth grouped convolutional layer to output 32-channel data, and finally through a fourth pooling layer to output a 32-channel feature map P4 (W / 16, H / 16, 32). The fifth grouped convolutional layer has a 3×3 convolutional kernel and 2 channels per group; the sixth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels per group; and the pooling window of the fourth pooling layer is 2×2.
[0025] The reverse data reconstruction stage takes a 32-channel feature map P4 as input, passes through the first convolutional layer to output 64-channel data, and then passes through the seventh group convolutional layer to output a 512-channel feature map P5 (W / 16, H / 16, 512). Reverse data reconstruction is then performed on feature P5 to restore it to 32-channel data P6 (W / 16, H / 16, 32), which is then input into the second convolutional layer to output a 64-channel feature map P6. out (W / 16,H / 16,64); wherein, the seventh group convolutional layer has a 3×3 convolutional kernel and the channel grouping is 8; the first convolutional layer and the second convolutional layer have 3×3 convolutional kernels.
[0026] Preferably, the detection network includes a regression branch and a classification branch; both the regression branch and the classification branch are composed of 3×3 convolutions with 8 channels each, and the output channels are 64.
[0027] Preferably, in the target detection process of step 3, the boxes with a confidence score greater than 0.2 in the network output are taken as the target detection results.
[0028] Preferably, in step 2, when performing grouped convolution, the p convolution kernels in each grouped convolutional layer are divided into n groups according to the hardware processing capability, and p / n convolution kernels are processed in parallel each time.
[0029] The present invention also provides an ultra-lightweight on-orbit real-time target detection device for remote sensing images, which includes a data reconstruction module, a feature extraction network, and a detection network; the feature extraction network and the detection network constitute a deep learning network.
[0030] The data recombination module is used to recombine the high-resolution single-channel image according to the input channel dimension N1 of the feature extraction network to obtain low-resolution feature maps of N1 channels. The recombination method is as follows: according to a set step size r, the high-resolution single-channel image is divided into segments of size r. 2 The block, r 2 =N1; r within the same block 2 Pixels are assigned to the same position in a low-resolution feature map with N1 channels;
[0031] A feature extraction network is used to perform multi-stage grouped convolution and downsampling processing on the low-resolution feature maps of the N1 channels, and then perform reverse reconstruction in the opposite way to data reconstruction to obtain downsampled feature maps;
[0032] The detection network is used to perform target detection based on the downsampled feature map from the feature extraction network, and obtain the target detection result.
[0033] Preferably, the feature extraction network includes a first downsampling unit, a second downsampling unit, a third downsampling unit, a fourth downsampling unit, and a reverse data reconstruction unit;
[0034] The first downsampling unit is responsible for one stage of downsampling, including a first grouped convolutional layer and a first pooling layer. The input of the first grouped convolutional layer is a low-resolution feature map P0(W,H,16) with 16 channels, where W and H represent the two-dimensional size of the feature map, and the number 16 represents 16 channels. The low-resolution feature map P0 passes through the first grouped convolutional layer, outputting 16 channels of data, and then passes through the first pooling layer, outputting a 16-channel feature map P1(W / 2,H / 2,16). The first grouped convolutional layer has a 3×3 convolutional kernel, with 2 channels grouped. The pooling window of the first pooling layer is 2×2.
[0035] The second downsampling unit is responsible for two-stage downsampling, including a second grouped convolutional layer and a second pooling layer. The input of the second grouped convolutional layer is a 16-channel feature map P1, which outputs 32-channel data after passing through the second convolutional layer. Then, after passing through the second pooling layer, it outputs a 32-channel feature map P2(W / 4, H / 4, 32). The second convolutional layer has a 3×3 convolutional kernel and the channel grouping is 2. The pooling window of the second pooling layer is 2×2.
[0036] The third downsampling unit is responsible for three-stage downsampling, including a third grouped convolutional layer, a fourth grouped convolutional layer, and a third pooling layer. The input of the third grouped convolutional layer is a 32-channel feature map P2. After passing through the third grouped convolutional layer, it outputs 32-channel data. Then, it passes through the fourth grouped convolutional layer to output 32-channel data. Finally, it passes through the third pooling layer to output a 32-channel feature map P3 (W / 8, H / 8, 32). The third grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2. The fourth grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 4. The pooling window of the third pooling layer is 2×2.
[0037] The fourth downsampling unit is responsible for four-stage downsampling, including a fifth grouped convolutional layer, a sixth grouped convolutional layer, and a fourth pooling layer. The input of the fifth grouped convolutional layer is a 32-channel feature map P3. After passing through the fifth grouped convolutional layer, it outputs 32-channel data. Then, it passes through the sixth grouped convolutional layer to output 32-channel data. Finally, it passes through the fourth pooling layer to output a 32-channel feature map P4 (W / 16, H / 16, 32). The fifth grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2. The sixth grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 4. The pooling window of the fourth pooling layer is 2×2.
[0038] The reverse data reconstruction unit includes a first convolutional layer, a seventh grouped convolutional layer, a reverse reconstruction unit, and a second convolutional layer. The input to the first convolutional layer is a 32-channel feature map P4. After passing through the first convolutional layer, it outputs 64-channel data, which is then passed through the seventh grouped convolutional layer to output a 512-channel feature P5 (W / 16, H / 16, 512). The reverse reconstruction unit reverses the data reconstruction of feature P5 to restore it to 32-channel data P6 (W / 16, H / 16, 32), which is then input into the second convolutional layer. The second convolutional layer outputs a 64-channel feature Px. ut (W / 16,H / 16,64); wherein, the seventh group convolutional layer has a 3×3 convolutional kernel and the channel grouping is 8; the first convolutional layer and the second convolutional layer have 3×3 convolutional kernels.
[0039] Beneficial effects:
[0040] (1) In constructing multi-channel feature maps, this invention does not use the method of copying high-resolution single-channel images and performing convolution. Instead, it uses a data recombination method to directly reconstruct high-resolution single-channel images into multi-channel low-resolution feature maps adapted to the feature extraction network. Then, after downsampling processing by the feature extraction network, the images are reconstructed in reverse. In the parallel processing mode of the channel dimension on the on-orbit platform, convolution calculation uses group calculation, that is, when calculating single-channel input data, the number of channels needs to be padded to the minimum number of grouped channels, which leads to a large waste of computing resources. This invention reduces the size of the feature map without convolution processing through this pixel rearrangement method, avoiding redundancy caused by channel expansion, thereby improving the timeliness of on-orbit applications. At the same time, this method has minimal data information loss, enabling the extracted features to effectively represent targets in remote sensing images. This method effectively reduces the size of the input data, distributes the data across the channel dimension, makes full use of computing resources, and fully and effectively utilizes data information.
[0041] (2) For the purpose of real-time on-orbit target detection, this invention provides an ultra-lightweight feature extraction backbone network based on grouped convolution. The number of stages, whether grouped convolution is used in each stage, and the number of groups are all designed, which greatly reduces the number of parameters and computation of the detection network. Attached Figure Description
[0042] Figure 1 This is an example of the data reconstruction process of the present invention.
[0043] Figure 2 This is a diagram of the ultra-lightweight backbone network structure of the present invention.
[0044] Figure 3 This is a schematic diagram of the grouped convolution calculation process.
[0045] Figure 4This is a schematic diagram illustrating the parallel computation process of grouped convolution on hardware.
[0046] Figure 5 This is a schematic diagram of the composition of the ultra-lightweight remote sensing image on-orbit real-time target detection device of the present invention. Detailed Implementation
[0047] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0048] This invention provides an ultra-lightweight on-orbit real-time target detection scheme for remote sensing images. This scheme improves deep learning-based target detection schemes from two perspectives: data reconstruction and grouped convolution.
[0049] For data reconstruction: When constructing the feature map for the input feature extraction network, instead of copying the high-resolution single-channel image and performing multi-channel convolution calculations, a data reconstruction method is used. By allocating pixel positions, the high-resolution single-channel image is directly reconstructed into a multi-channel low-resolution feature map adapted to the feature extraction network. Then, after downsampling processing by the feature extraction network, the image is reconstructed in reverse. The construction of the multi-channel low-resolution feature map does not require large convolutional layers to process multiple channels of the high-resolution single-channel image; only pixel position configuration is needed to obtain the multi-channel low-resolution feature map. This avoids redundant computation caused by convolutional channel expansion, thereby improving the timeliness of on-orbit applications. This method results in minimal data loss, enabling the extracted features to effectively represent targets in remote sensing images.
[0050] For grouped convolution: In the feature extraction network, the number of stages, whether grouped convolution is used in each stage, and the number of groups are all designed to greatly reduce the number of parameters and computation of the detection network, resulting in an ultra-lightweight backbone network. While ensuring network performance, the inference speed is improved and the resource overhead is reduced, thus achieving efficient real-time on-orbit target detection.
[0051] To achieve the above objectives, the technical solution of the present invention includes the following steps:
[0052] Step 1: Reorganize the input high-resolution single-channel image according to the output channel dimension N1 to obtain low-resolution feature maps of N1 channels.
[0053] The reconstruction method of this invention is as follows: according to a set step size r, the high-resolution single-channel image is divided into segments of size r. 2 The block, r 2 =N1; r within the same block 2Each pixel is assigned to the same position in a low-resolution feature map of N1 channels. In one embodiment of the present invention, a low-resolution feature map of 16 channels is required to be input into the feature extraction network for feature extraction. Therefore, N1 = 16, and r is set to 4. Because the data of 16 channels is too dense in the attached figure, for ease of understanding, Figure 1 A schematic diagram is shown using r=2 to illustrate the reconstruction of a high-resolution single-channel image of size 1×rh×rw into a 4-channel low-resolution feature map. Four pixels within the same block are read in a fixed order, such as {1,2,7,8}, and then assigned to the same position in the low-resolution feature maps of the four channels, such as position (1,1).
[0054] The pixel allocation process described above can be expressed as follows. Let the point in the high-resolution image (size H1×W1) be (c1,h1), and the corresponding point in the low-resolution feature map be (c2,h2,w2). The correspondence between the initial point (h1,w1) and the corresponding point (c2,h2,w2) is calculated as follows:
[0055] The channel position c2 of the corresponding point is obtained by taking the modulo operation between the position of the initial point and the number of output feature channels N1:
[0056] c2=(w1+h1×W1)%N1
[0057] Based on the pixel rearrangement method, the position (c2, h2, w2) of the corresponding point in the c2th channel of the output feature is calculated:
[0058] w2 = w1 / r
[0059] h2 = h1 / r
[0060] In the on-orbit platform's channel-dimensional parallel processing mode, convolution computation employs grouped computation. This means that when processing single-channel input data, the number of channels needs to be padded to the minimum group size, leading to a significant waste of computational resources. This pixel rearrangement method reduces the size of the feature map with minimal data loss. This approach effectively reduces the size of the input data, distributing it across the channel dimension, thus fully utilizing computational resources and making full and effective use of data information.
[0061] Step 2: Input the reconstructed data features of N1 channels from Step 1 into the feature extraction network. The feature extraction network adopts a redesigned lightweight backbone network. This network performs multiple stages of group convolution and downsampling processing, and then performs reverse reconstruction in the opposite way to data reconstruction to obtain downsampled feature maps.
[0062] The core structure of a lightweight backbone network is grouped convolution, a computational model that effectively reduces computational cost. If the input feature size is (W1, H1, C1), the output feature map size is (W2, H2, C2), and the number of groups is g, then the feature size of each input group is... The convolution kernels are also divided into g groups, and the kernel size of each group is . Total There are n convolutional kernels, and the grouped convolutions output a total of g features, each feature having a size of g. From the calculation process of grouped convolution, we can see that its parameter count is: The computational cost is The parameters of a regular convolution are k×k×C1×C2, and the computational cost is k×k×C1×C2×W1×H1. The computational cost and parameter count of a grouped convolution are both less than those of a regular convolution.
[0063] The operations of each group in the above grouped convolution are executed in parallel on the hardware, such as... Figure 4 As shown, grouped convolutions include There are n convolutional kernels, each with a size of n. During computation, a k×k window slides along the width of the input feature map for row processing. The features within the window need to be matched with their corresponding... To perform operations using multiple convolutional kernels, in order to enable parallel processing, ... The convolutional kernels are grouped into n groups, with each group having n kernels participating in the computation. This operation is repeated. Next, until you get This process continues until all intermediate calculation results are obtained, thus completing one row processing iteration. The aforementioned intermediate calculation results are stored in an accumulator to be added to the result of the next row processing iteration. Therefore, the capacity of the accumulator is [value missing]. Each row of processing uses the same set of convolutional kernels, and the size of the intermediate result is [size missing]. The window will continue to be traversed. The process of processing each channel is repeated row by row; this is called channel processing. After this, the window moves row by row and repeats channel processing H1+2×pad-k+1 times, where pad is the number of zeros padded at the edges of the input image. During the entire process, the convolution kernel weights need to be read H1+2×pad-k+1 times.
[0064] This embodiment designs a lightweight backbone network suitable for 16x downsampling, obtaining 16x downsampling feature maps based on reconstructed data features. The number of stages, whether grouped convolution is used in each stage, and the number of groups were all designed, significantly reducing the number of parameters and computational cost of the detection network. Figure 2 The overall structure of the lightweight backbone network of the present invention is shown, which is divided into four downsampling stages.
[0065] The low-resolution feature map P0(W,H,16) of the 16 channels after the first-stage input data is reconstructed. In (W,H,16), W and H represent the two-dimensional dimensions of the feature map, and the number 16 represents 16 channels. Similar expressions below have the same meaning and will not be repeated. The first-stage input P0 is processed by convolutional layer 1 and pooling layer 1, outputting feature map P1(W / 2,H / 2,16). Convolutional layer 1 has a 3×3 convolutional kernel, with channels grouped in pairs; pooling layer 1 has a 2×2 pooling window.
[0066] The two-stage input feature map P1 is processed by convolutional layer 2 and pooling layer 2 to output feature map P2(W / 4, H / 4, 32). Convolutional layer 2 has a 3×3 convolutional kernel and outputs 32 channels, with channels grouped into 2 groups; pooling layer 2 has a 2×2 pooling window.
[0067] The three-stage input feature map P2 is processed by convolutional layer 3_1, convolutional layer 3_2, and pooling layer 3 to output feature map P3 (W / 8, H / 8, 32). Convolutional layer 3_1 has a 3×3 convolutional kernel and outputs 32 channels in 2-channel grouping; convolutional layer 3_2 has a 3×3 convolutional kernel and outputs 32 channels in 4-channel grouping; pooling layer 3 has a 2×2 pooling window.
[0068] The four-stage input feature map P3 is processed by convolutional layers 4_1, 4_2, and pooling layer 4 to output feature map P4 (W / 16, H / 16, 32). Convolutional layer 4_1 has a 3×3 kernel and outputs 32 channels in 2-channel groups; convolutional layer 4_2 has a 3×3 kernel and outputs 32 channels in 4-channel groups; pooling layer 4 has a 2×2 pooling window.
[0069] The output feature map P4 enters the reverse data reconstruction stage. In this stage, the feature map is processed by convolutional layers 5_1 and 5_2 to obtain feature P5(W / 16, H / 16, 512). Then, P5 undergoes reverse data reconstruction to restore it to (W / 16, H / 16, 32), which is then input into convolutional layer 5_3 to obtain the output feature P. out (W / 16, H / 16, 64). Convolutional layer 5_2 is a grouped convolution. Convolutional layers 5_1 and 5_3 are not grouped. Convolutional layer 5_1 has a 3×3 kernel and outputs 64 channels; convolutional layer 5_2 has a 3×3 kernel and outputs 512 channels, grouped into 8 channels; convolutional layer 5_3 has a 3×3 kernel and outputs 64 channels.
[0070] Step 3: Transfer feature P out Input the detection network to obtain target detection results, including target classification prediction results and location regression results.
[0071] The detection head consists of two decoupled parts: a regression branch and a classification branch. Both the regression and classification branches are composed of 3×3 convolutions with 8 channels per group, resulting in 64 output channels, which respectively yield the regression features P. reg and classification features P cls The target classification prediction result is determined by P. cls The target location prediction result is obtained by 3×3 convolution, and the output channel is the preset number of anchors × number of categories; the target location prediction result is obtained by P. reg The output channel is obtained by a 3×3 convolution with a channel group of 2, and the number of channels is the preset number of anchors × 4.
[0072] Step 4: For the obtained category and location prediction results, select positive training samples using a one-to-one matching method, calculate the total training loss, and iterate through steps 1-4 to train the network.
[0073] A minimum-cost binary matching method is used to select positive training samples. The cost of locating the branch is calculated as follows:
[0074] C loc =λ iou *C iou +λ L1 *C L1
[0075] Where C iou and C L1 The IOU loss and L1 loss for the predicted sample and the ground truth are respectively, λ iou and λ L1 For the corresponding coefficient.
[0076] The cost calculation method for classification branches is as follows:
[0077] λ cls *C cls
[0078] Where C cls To predict the loss for both the sample and the ground truth class, λ cls For the corresponding coefficient.
[0079] The total cost is
[0080] C=λ cls *C cls +C loc
[0081] The matching scheme that minimizes the total cost yields positive samples that are one-to-one matched with the ground truth. The L1 loss is calculated using the obtained positive samples and the ground truth to obtain the loss for the regression branch, while the loss for the classification branch is calculated using Focal loss.
[0082] Step 5: Use the model trained by the network for inference. No post-processing such as nonmaximum suppression is required. Boxes with a confidence score greater than 0.2 in the model output are taken as object detection results.
[0083] This invention also provides an ultra-lightweight on-orbit real-time target detection device for remote sensing images, such as... Figure 5 As shown, it includes a data reconstruction module, a feature extraction network, and a detection network; the feature extraction network and the detection network together form a deep learning network.
[0084] The data recombination module is used to recombine the high-resolution single-channel image according to the input channel dimension N1 of the feature extraction network to obtain low-resolution feature maps of N1 channels; the recombination method is as described above.
[0085] The feature extraction network performs multi-stage grouped convolution and downsampling on low-resolution feature maps with N1 channels, and then performs reverse data reconstruction in the opposite manner to obtain downsampled feature maps. This feature extraction network includes four downsampling units and one reverse data reconstruction unit. The four downsampling units correspond to the four downsampling stages mentioned above, and the reverse data reconstruction unit corresponds to the reverse data reconstruction stage mentioned above.
[0086] The detection network is used to perform target detection based on the downsampled feature map from the feature extraction network, and obtain the target detection result.
[0087] The specific embodiments described above only illustrate the design principles of the present invention. The shapes and names of the components in this description may differ and are not limited. Therefore, those skilled in the art can modify or make equivalent substitutions to the technical solutions described in the foregoing embodiments; and these modifications and substitutions do not depart from the inventive spirit and technical solutions of the present invention, and should all fall within the protection scope of the present invention.
Claims
1. A lightweight on-orbit real-time target detection method for remote sensing images, characterized in that, The deep learning network used for object detection includes a feature extraction network and a detection network; the method includes the following steps: Step 1: Reorganize the high-resolution single-channel image according to the input channel dimension N1 of the feature extraction network to obtain low-resolution feature maps of N1 channels; The reconstruction method is as follows: according to a set step size r, the high-resolution single-channel image is divided into segments of size r. 2 The block, r 2 =N1; r within the same block 2 Each pixel is assigned to the same position in the low-resolution feature map of N1 channels, and the allocation method is as follows: Let the points in the high-resolution single-channel image be the initial points. The position assigned to the low-resolution feature map is the corresponding point. initial point Corresponding point The method for calculating the correspondence is as follows: The channel position of the corresponding point is obtained by performing a modulo operation between the position of the initial point and the number of output feature channels N1. : The output feature is calculated based on the pixel rearrangement method. The position of the corresponding point in each channel : Step 2: Input the low-resolution feature maps of the N1 channels into the feature extraction network. The feature extraction network performs multiple stages of group convolution and downsampling processing, and then performs reverse reconstruction in the opposite way to data reconstruction to obtain downsampled feature maps. Step 3: Input the feature map obtained in Step 2 into the detection network to obtain the target detection result.
2. The method as described in claim 1, characterized in that, In step 2, the feature extraction network includes four downsampling stages and one reverse data reconstruction stage; In the 4 downsampling stages: The first-stage input is a low-resolution feature map with 16 channels. , H represents the two-dimensional size of the feature map, and the number 16 indicates 16 channels; low-resolution feature map After passing through the first grouped convolutional layer, 16 channels of data are output. Then, after passing through the first pooling layer, 16 channels of feature maps are output. The first grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2; the pooling window of the first pooling layer is 2×2. The second-stage input consists of feature maps from 16 channels. The second convolutional layer outputs 32 channels of data, which then passes through a second pooling layer to output 32 channels of feature maps. The second convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2; the pooling window of the second pooling layer is 2×2. The three-stage input consists of feature maps from 32 channels. The data is processed through a third grouped convolutional layer, outputting 32 channels of data. Then, it passes through a fourth grouped convolutional layer, outputting 32 channels of data. Finally, it passes through a third pooling layer, outputting feature maps for 32 channels. The third grouped convolutional layer has a 3×3 convolutional kernel and 2 channels; the fourth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels; the pooling window of the third pooling layer is 2×2. The four-stage input consists of feature maps from 32 channels. The fifth group convolutional layer outputs 32 channels of data, followed by the sixth group convolutional layer, and then the fourth pooling layer, which outputs feature maps for 32 channels. The fifth grouped convolutional layer has a 3×3 convolutional kernel and 2 channels; the sixth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels; the pooling window of the fourth pooling layer is 2×2. The input for the reverse data reconstruction stage is a feature map with 32 channels. The first convolutional layer outputs 64 channels of data, and the seventh group convolutional layer outputs 512 channels of features. , for features Perform reverse data reconstruction to restore it to 32 channels of data. Then input it into the second convolutional layer, which outputs features from 64 channels. The seventh grouped convolutional layer has a 3×3 convolutional kernel and 8 channels; the first and second convolutional layers have 3×3 convolutional kernels.
3. The method as described in claim 2, characterized in that, The detection network includes a regression branch and a classification branch; both the regression branch and the classification branch are composed of 3×3 convolutions with 8 channels each, and the output channels are 64.
4. The method as described in claim 1, characterized in that, In the target detection process in step 3, the bounding boxes with a confidence score greater than 0.2 in the network output are taken as the target detection results.
5. The method as described in claim 1, characterized in that, When performing grouped convolution in step 2, the p convolution kernels in each grouped convolutional layer are divided into n groups according to the hardware processing capability, and p / n convolution kernels are processed in parallel each time.
6. A lightweight on-orbit real-time target detection device for remote sensing images, characterized in that, The ultra-lightweight remote sensing image on-orbit real-time target detection method according to any one of claims 1-5 is described; the device includes a data reconstruction module, a feature extraction network, and a detection network; the feature extraction network and the detection network constitute a deep learning network; The data recombination module is used to recombine the high-resolution single-channel image according to the input channel dimension N1 of the feature extraction network to obtain low-resolution feature maps of N1 channels. The recombination method is as follows: according to a set step size r, the high-resolution single-channel image is divided into segments of size r. 2 The block, r 2 =N1; r within the same block 2 Pixels are assigned to the same position in a low-resolution feature map with N1 channels; A feature extraction network is used to perform multi-stage grouped convolution and downsampling processing on the low-resolution feature maps of the N1 channels, and then perform reverse reconstruction in the opposite way to data reconstruction to obtain downsampled feature maps; The detection network is used to perform target detection based on the downsampled feature map from the feature extraction network, and obtain the target detection result.
7. The apparatus as claimed in claim 6, characterized in that, The feature extraction network includes a first downsampling unit, a second downsampling unit, a third downsampling unit, a fourth downsampling unit, and a reverse data reconstruction unit; The first downsampling unit is responsible for one stage of downsampling, including the first grouped convolutional layer and the first pooling layer; the input of the first grouped convolutional layer is a low-resolution feature map of 16 channels. , H represents the two-dimensional size of the feature map, and the number 16 indicates 16 channels; low-resolution feature map After passing through the first grouped convolutional layer, 16 channels of data are output. Then, after passing through the first pooling layer, 16 channels of feature maps are output. The first grouped convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2; the pooling window of the first pooling layer is 2×2. The second downsampling unit is responsible for two-stage downsampling, including a second grouped convolutional layer and a second pooling layer; the input of the second grouped convolutional layer is a feature map of 16 channels. The second convolutional layer outputs 32 channels of data, which then passes through a second pooling layer to output 32 channels of feature maps. The second convolutional layer has a 3×3 convolutional kernel and a channel grouping of 2; the pooling window of the second pooling layer is 2×2. The third downsampling unit is responsible for three-stage downsampling, including the third group convolutional layer, the fourth group convolutional layer, and the third pooling layer; the input of the third group convolutional layer is a feature map of 32 channels. The data is processed through a third grouped convolutional layer, outputting 32 channels of data. Then, it passes through a fourth grouped convolutional layer, outputting 32 channels of data. Finally, it passes through a third pooling layer, outputting feature maps for 32 channels. The third grouped convolutional layer has a 3×3 convolutional kernel and 2 channels; the fourth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels; the pooling window of the third pooling layer is 2×2. The fourth downsampling unit is responsible for four stages of downsampling, including the fifth group convolutional layer, the sixth group convolutional layer, and the fourth pooling layer; the input of the fifth group convolutional layer is a feature map of 32 channels. The fifth group convolutional layer outputs 32 channels of data, followed by the sixth group convolutional layer, and then the fourth pooling layer, which outputs feature maps for 32 channels. The fifth grouped convolutional layer has a 3×3 convolutional kernel and 2 channels; the sixth grouped convolutional layer has a 3×3 convolutional kernel and 4 channels; the pooling window of the fourth pooling layer is 2×2. The reverse data reconstruction unit consists of a first convolutional layer, a seventh grouped convolutional layer, a reverse reconstruction unit, and a second convolutional layer; the input of the first convolutional layer is a feature map with 32 channels. The first convolutional layer outputs 64 channels of data, and the seventh group convolutional layer outputs 512 channels of features. ; Reverse recombination unit for features Perform reverse data reconstruction to restore it to 32 channels of data. Then input it into the second convolutional layer; the second convolutional layer outputs features from 64 channels. The seventh grouped convolutional layer has a 3×3 convolutional kernel and 8 channels; the first and second convolutional layers have 3×3 convolutional kernels.
Citation Information
Patent Citations
High-resolution remote sensing image target on-orbit lightweight rapid detection method
CN111797676A
Remote sensing image super-resolution reconstruction method based on lightweight generative model
CN113538234A
