Remote sensing image multi-scale target detection method based on large kernel decomposition network

By using large kernel decomposition network and lightweight convolution module to extract features in remote sensing image target detection, and using LIP module to replace maximum pooling in the feature fusion stage, the problem of insufficient feature extraction and missing multi-scale feature layers in remote sensing images is solved. problem, improving detection accuracy and model stability.

CN118691797APending Publication Date: 2024-09-24XIDIAN UNIV

Patent Information

Application Number
CN202410829642.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing feature extraction networks cannot effectively extract features in remote sensing images, especially small target detection accuracy is low, and the maximum pooling operation of the feature fusion network causes the multi-scale feature layer to miss important features, resulting in missed detections and false detections.

Method used

Adopt a method based on large core decomposition network, use the PVT-v2 framework and lightweight convolution module to replace the Transformer module, extract contextual information and feature information through the LK module and FFN module, and use the LIP module to replace the maximum pooling in the feature fusion stage Operation, adaptively select important features for fusion.

Benefits of technology

It improves the accuracy of target detection in remote sensing images, enhances the feature extraction capability of the model, reduces the amount of calculation and parameters, and improves the stability and detection accuracy of the model, especially when the background is complex and the targets are dense.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691797A
    Figure CN118691797A
Patent Text Reader

Abstract

The invention relates to a remote sensing image multi-scale target detection method based on a large kernel decomposition network, which comprises the following steps of: extracting features from a remote sensing image by utilizing a feature extraction network, fusing the features by utilizing a feature fusion network, and realizing target detection according to the fused features by utilizing a classification network and a regression network, a lightweight convolution module is used for replacing an original transform module; the lightweight convolution module comprises an LK module and an FFN module, the LK module is used for extracting context information and feature information of a target in a remote sensing image, and the LK module comprises two full connection layers, an LKT module and a GELU activation function; and the LKT module is used for decomposing the large convolution kernel, reducing network parameters and calculation amount under the condition of ensuring that the large convolution kernel has the same receptive field, and detecting a target by using necessary background information. According to the method, the parameter quantity and the calculation quantity of the large convolution kernel are reduced, the interference between targets with different scales and the characteristics of the targets is relieved, and the detection precision of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer vision, and in particular relates to a multi-scale target detection method for remote sensing images based on a large kernel decomposition network, which can be used to analyze airport flights, port traffic, urban traffic and the like in remote sensing scenes, and to timely dispatch and avoid congestion. Technical Background

[0002] In recent years, deep learning methods have been mainly used in remote sensing image target detection tasks. This method has powerful feature modeling capabilities. Depending on whether the model needs to extract the region of interest (ROI), it is divided into two types: two-stage detection and one-stage detection:

[0003] Two-stage: The two-stage detection model RCNN uses selective search to select and generate candidate regions containing targets, then uses a feature extraction network to extract features in the candidate regions, and finally uses a classification network and a regression network with fully connected layers to classify and locate the targets in these candidate regions. Based on RCNN, improvements have been made to derive two-stage target detection algorithms such as Faster RCNN, Mask RCNN, and Cascade RCNN. Since the two-stage target detection algorithm can achieve high detection accuracy, it is still the main research direction of target detection research, especially for tasks with high detection accuracy requirements and complex detection scenarios.

[0004] One-stage: Some detection tasks have high requirements for real-time performance. Since the two-stage detection model needs to extract candidate regions, it is difficult to achieve a fast detection speed. Therefore, the one-stage detection model came into being. The one-stage target detection model is an end-to-end detection algorithm that directly uses a network to transform the target detection problem into a regression problem. The one-stage detection algorithm does not need to generate candidate regions, and directly uses a single network to predict the category probability and location information of the target. Compared with the two-stage model, the one-stage model has a significant speed advantage, but the detection accuracy is lower than the two-stage model, which can basically meet the requirements of the real-time system. Typical algorithms of this type include SSD, YOLO, etc. At present, YOLO is widely used in industrial target detection and is the main research direction of the one-stage target detection algorithm.

[0005] In addition, depending on whether a preset anchor box is needed, the target detection model can be divided into an anchor box-based detection model and an anchor-free detection model:

[0006] Anchor-Based: Anchor-based detection methods include two-stage target detection models based on candidate regions and one-stage target detection models based on regression. Anchor-based detection methods, whether two-stage or single-stage models, require preset anchor frames of different proportions and scales on the detection image, and use the preset anchor frame as the initial detection frame. During the network training process, the preset anchor frame is adjusted by continuously regressing the position, shape, size and other differences between the preset anchor frame and the real anchor frame, so that the target frame to be output finally overlaps with the real frame as much as possible. The detection network based on anchor frames can achieve better performance with fewer training times, and the model converges faster. It is not easy to have problems such as model training collapse, gradient disappearance or explosion.

[0007] Anchor-Free: In view of the fact that the performance of the detection model based on anchor boxes is very sensitive to the size, number and aspect ratio of the anchor boxes, the large memory usage of the anchor points and the high time complexity, an anchor-free target detection method is proposed. According to the different positions of the detection points, it is mainly divided into two categories: internal point-based and key point-based. Both methods abandon the practice of presetting anchor boxes, and directly classify the objects at the pixel level during the model training process and predict the position of the regression target box. Although the anchor-free detection model avoids some problems of the anchor-based detection model, due to its late start, its current SOTA model still has a large gap in detection accuracy with the anchor-based detection model, and the training of this type of model is unstable and difficult to fit.

[0008] Object detection is an important research method in the field of computer vision. Although there are many types of object detection models, each with its own advantages, most of them are aimed at natural images, and there are few object detection models that take remote sensing images as the main research target. ORCNN is based on two-stage, anchor-frame-based object detection models such as RCNN and Faster RCNN. In view of the diversity of target directions in remote sensing images, a remote sensing image object detection model that can output a rotated detection frame is designed. This model makes up for the shortcomings of the object detection model in the field of remote sensing images and has become the basic model for many studies on remote sensing image rotation target detection algorithms. This model proposes a framework for detecting rotated targets in the field of remote sensing images. The feature extraction network in its object detection model still uses the general ResNet backbone network. The ResNet backbone network is designed based on general natural images and is currently used as a feature extraction network for most deep learning downstream tasks. However, remote sensing images have their own unique characteristics compared to other natural images:

[0009] (1) Complex background: Remote sensing images cover a wide range, and the types of targets to be measured are limited, so the background area occupies the vast majority. In addition, the clarity of remote sensing images is often worse than that of natural images, and the image is generally blurred.

[0010] (2) Small and dense targets: Compared with natural images, remote sensing images have a larger number of small targets. In some specific situations, small targets are too densely distributed, such as vehicles in parking lots and ships in ports. Small targets will disappear from deep features during multiple downsampling; even if the extracted features do not disappear in the deep layer, it is very easy to have problems such as blurred boundaries and high-density target feature aggregation, which will lead to missed detections, false detections and positioning errors.

[0011] (3) Large variations in target scale and shape: Different types of targets have different scales at the same resolution. In addition, the same type of targets have different scales at different acquisition resolutions. Since the resolution range of remote sensing images is relatively large, the scales of the same target at different resolutions also vary greatly. Compared with conventional natural images, the shapes of different types of targets in remote sensing images also vary greatly.

[0012] Due to the characteristics of remote sensing images, the general feature extraction network is slightly insufficient in the case of complex backgrounds, small and dense targets, etc. Therefore, the feature extraction network ResNet in the ORCNN model cannot extract the features of targets in remote sensing images well. In addition, due to the large scale variation of targets in remote sensing images, the maximum pooling operation in the feature fusion network may cause the multi-scale feature layer to miss important features of the target, resulting in false detection and missed detection of the target. Summary of the invention

[0013] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a multi-scale target detection method for remote sensing images based on a large kernel decomposition network, so as to solve the problems that the existing feature extraction network cannot extract remote sensing image features well, and the deep features of the feature fusion network cannot effectively retain target features in downsampling, so as to improve the network feature extraction capability and improve the overall detection accuracy of the model.

[0014] The above problem can be further described as:

[0015] (1) When the existing backbone network extracts features from remote sensing images, it is unable to accurately obtain the features of targets of different scales due to the limitation of the receptive field of the small convolution kernel. In particular, small targets will be detected incorrectly without sufficient reference to the remote background, resulting in low detection accuracy.

[0016] (2) The feature fusion network uses maximum pooling to obtain an additional feature layer when fusing features. Maximum pooling assumes that the most discriminative feature should be the maximum activation value. This assumption is not always accurate, causing the multi-scale feature layer to miss important features of the target.

[0017] To achieve the above object, the present invention adopts the following technical solutions:

[0018] A multi-scale target detection method for remote sensing images based on a large kernel decomposition network, which uses a feature extraction network to extract features from remote sensing images, uses a feature fusion network to fuse the features, and uses a classification network to achieve target detection based on the fused features, wherein:

[0019] The feature extraction network is based on the PVT-v2 framework and uses a lightweight convolutional module to replace the original transformer module;

[0020] The lightweight convolution module includes an LK module and an FFN module. The LK module is used to extract context information and feature information of targets in remote sensing images. It includes two fully connected layers, an LKT module and a GELU activation function. The LKT module is used to decompose the large convolution kernel, reduce network parameters and calculation amount while ensuring the same receptive field as the large convolution kernel, and detect targets using necessary background information.

[0021] In the embodiment, the present invention divides the feature extraction network into 4 stages, and each stage stacks a different number of Block blocks, and residual connections are used between Block blocks. Block blocks are composed of LK modules and FFN modules. The LK module is based on the LSKNet network and decomposes large convolution kernels into smaller convolution kernels. The FFN module is used for channel fusion and feature refinement.

[0022] In an embodiment, the present invention replaces the maximum pooling operation with the LIP module based on the PAFPN feature fusion network, adaptively selects important features for fusion, and increases the discriminability of the fused features for the target.

[0023] Compared with the prior art, the present invention has the following advantages:

[0024] 1) Aiming at the characteristics of remote sensing images with complex background and large changes in target shape and scale, the present invention designs a feature extraction backbone network based on LSKNet. The target detection accuracy mAP of this network on the DOTA-v1.0 dataset (VOC standard) is improved by 0.80% compared with the original LSKNet.

[0025] 2) The present invention takes into account the low complexity and low computational complexity of remote sensing image target detection tasks, and has less computational complexity and higher accuracy when the number of parameters is equivalent.

[0026] 3) When the number of GPUs for training target detection models is small and only a small batch size can be used, the present invention provides a model training method to make the model training more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is the overall structure diagram of the backbone network of the present invention.

[0028] Figure 2 This is the decomposition structure diagram of the LKT core.

[0029] Figure 3 This is the original LSKNet structure diagram.

[0030] Figure 4 This is the improved PAFPN network diagram.

[0031] Figure 5 Schematic diagram of the calculation of LIP structure.

[0032] Figure 6 : It is a comparison chart of the detection results, where (a) is the detection result of LSKNet, and (b) is the detection result of the present invention. DETAILED DESCRIPTION

[0033] The implementation and effects of the present invention are described in detail below in conjunction with the accompanying drawings.

[0034] In view of the shortcomings of the current mainstream feature extraction network when extracting features from remote sensing images, the present invention constructs a remote sensing image target detection network. The technical idea is to design a feature extraction network based on the characteristics of remote sensing images and retain important features in the feature fusion stage. Specifically, the target detection network is based on a large kernel decomposition network and can achieve multi-scale target detection in remote sensing images. It mainly includes a feature extraction network, a feature fusion network and a classification network, wherein features are extracted from remote sensing images through the feature extraction network, the features are fused through the feature fusion network, and finally, target detection is achieved through the classification network based on the fused features.

[0035] refer to Figure 1 , the target detection network of the present invention has the following composition and characteristics:

[0036] 1. Feature extraction network.

[0037] The feature extraction network of the present invention is based on the PVT-v2 framework, and uses a lightweight convolution module to replace the original transformer module to reduce the model parameters and calculation amount. Among them, the lightweight convolution module includes an LK module and an FFN module. The LK module is used to extract the context information and feature information of the target in the remote sensing image. It includes two fully connected layers, an LKT module and a GELU activation function. The LKT module is used to decompose the large convolution kernel, reduce the network parameters and calculation amount while ensuring that it has the same receptive field as the large convolution kernel, obtain a larger receptive field with less parameters and calculation amount, and detect the target using only necessary background information.

[0038] The LK module takes the input of the lightweight convolution module through the normalization layer as input, adjusts the normalized features through the first fully connected layer, then increases the expressiveness of the features through the nonlinear function through the GELU activation function, extracts the target information and target context information through the LKT module, and finally adjusts the extracted features through the second fully connected layer to obtain the output of the LK module.

[0039] Specifically, the present invention builds a backbone network for remote sensing images based on the PVT-v2 framework. The PVT-v2 network framework is an improvement on the PVT, and its Block block mainly uses the transformer module. The transformer has a large number of parameters and a large amount of calculation, so the present invention replaces this part with an LK module using convolution, and the LKT module is the core of the LK module.

[0040] The linear operation of Transformer on features is beneficial to model training, but it is easy to cause overfitting of the model and fail to obtain a network structure with richer representation. Therefore, the present invention also replaces the linear operations in the MLP module with nonlinear convolution operations. Figure 1 Patch is represented by Conv in the embedding module.

[0041] At the same time, since the existing PVT-v2 framework uses Transformer, most normalization layers use LayerNorm. The feature extraction network is first pre-trained, and the Batch-size during pre-training is generally large. The Batch-size of the feature extraction network is subsequently smaller during target detection training. A single LayerNorm cannot be applicable to all scenarios. Therefore, the present invention sets the normalization layers in the framework as parameters, which are specified by the configuration file during training.

[0042] In terms of specific implementation means, the present invention uses the @register_model annotation to add the network model to the mmdet framework and sets the parameters necessary for building the network.

[0043] A large convolution kernel generally refers to a large convolution kernel. The size of a general convolution kernel is 3×3, and the size of a large convolution kernel can reach 11×11 or even larger. For example, the large convolution kernel decomposed in this article has the same receptive field as 17×17 and 23×23. Figure 2 As shown, the method of decomposing the large convolution kernel by the LKT module of the present invention is as follows:

[0044] Step 1: Large convolution kernels have a larger receptive field, but they bring a lot of computational overhead and parameters. The present invention divides the large convolution kernel into three parts: spatial local convolution, spatial long-range convolution and channel convolution. Figure 2Deep convolution DW-Conv, deep hole convolution DW-D-Conv and 1×1 convolution Conv 1×1 Implementation, namely kernel 1, kernel 2 and kernel 3.

[0045] Step 2: Concatenate the three parts of the convolution to extract features. The formula is as follows:

[0046]

[0047] Where X is the input feature map of the LKT module, Represents the features obtained by deep convolution, deep dilated convolution and 1×1 convolution, i=2, 3, …, n+1, n is the number of decomposed large convolution kernels; the receptive field of the convolution kernel in the deep convolution is K1, the number of deep dilated convolutions is n, and the receptive field of the convolution kernel in the i-th deep dilated convolution is K i , through the depth convolution and a depth hole convolution, K1+K is achieved i A receptive field of K i =d i (k i -1), d i represents the dilation rate of the deep dilated convolution, k i Indicates the kernel size of the depthwise atrous convolution.

[0048] Step 3: Since there are a large number of small targets in remote sensing images, the features obtained by deep dilated convolution will contain too much background information for small targets, making it difficult to detect small targets. Perform channel splicing to obtain in Represents the features obtained only by depth convolution and 1×1 convolution, expressed as:

[0049]

[0050] exist Figure 3 In the LSKNet shown in FIG. 1 , a large convolution kernel with a receptive field of 23 is decomposed. Figure 3 Based on the LSKNet, in order to introduce background information of different receptive fields to different targets, the target scales are roughly divided into three types: small, medium, and large. A large convolution kernel with a receptive field of 17 is added, which shares a deep convolution with the first large convolution kernel with a receptive field of 23. Figure 2 In the figure, kernel 1 is used to represent it. The second largest convolution consists of a deep atrous convolution. Figure 2Each convolution generates a feature weight map after a 1×1 channel convolution. The receptive fields of kernel 1, kernel 2, and kernel 3 are 5, 18, and 12, respectively, which introduces background information of different receptive fields for different targets. Figure 2 The receptive field of the large convolution kernel composed of kernel 1 and kernel 2 is 23, and the receptive field of the large convolution kernel composed of kernel 1 and kernel 3 is 17.

[0051] Moreover, LSKNet is a squeezed design based on SENet, and 1×1 channel convolution will reduce the number of channels to half of the original. Avoiding dimensionality reduction helps to learn effective channel attention, so the channel convolution decomposed in the present invention does not perform dimensionality reduction, but each channel directly corresponds to its weight.

[0052] Furthermore, in the LK module of the present invention, the feature obtained after channel splicing Using spatial selection mechanism to generate spatial masks for extracting features with different convolution kernels Then use the spatial mask The features extracted by the decomposed large kernel convolution are weighted accordingly in spatial selection, and the weighted features are fused using a pixel-based sum operation. The fused features are multiplied with the initial input features as the feature attention map of the initial input features.

[0053] Specifically, the feature weight map generated by decomposing the convolution kernel is first spliced ​​at the channel level, and then the weight map of the feature extracted by different convolution kernels is generated by using the spatial selection mechanism. The implementation method can be described as follows:

[0054] Step 1: Concatenate the features obtained Perform maximum pooling and average pooling based on channels respectively to obtain SA avg and SA max , expressed as:

[0055]

[0056] Step 2: In order to allow information interaction between different spatial features, the results of maximum pooling and average pooling, namely SA avg and SA max Channel concatenation is performed to obtain spatial pooling features with a feature dimension of 2×H×W, and convolution F is used 2→N Transform the 2×H×W dimensional features after channel splicing into N spatial masks It is expressed as:

[0057]

[0058] The number of channels of the convolution output corresponds to the number of decomposed convolution kernels.

[0059] Step 3: Perform corresponding spatial selection weighting on the features extracted by the decomposed large kernel convolution, and use the pixel-based summation operation to fuse the weighted features to obtain the final feature attention map S:

[0060]

[0061] The key feature of the weight map is that it is adaptively adjusted based on the input features, and no standardization operation should be used. Therefore, the present invention abandons the standardization operation sigmoid after spatial information fusion in the original LSKNet. The weight after spatial information fusion is directly multiplied by the corresponding element of the operation feature map extracted by the decomposed convolution kernel, such as Figure 2 The LKT structure is shown in the blue box. The multiplied spatial weights are element-wise added, and the resulting feature attention map S contains the weights generated by different convolutions for different targets.

[0062] Step 4: Multiply the elements of input feature X and S to get the final output Y:

[0063] Y=X·S

[0064] The final output Y is the context information required for different targets in the input image.

[0065] Continue to refer Figure 1 The present invention comprises a feature extraction network including multiple stages, each stage including a Patch embedding module and a plurality of the lightweight convolution modules, wherein the Patch embedding module is used to downsample the features output by the previous stage or the initial input features to reduce the scale of the features, thereby reducing the amount of calculation of the subsequent network, and it comprises a convolution layer and a normalization layer, and the output obtained after convolution and normalization is used as the input of the lightweight convolution module.

[0066] exist Figure 1 In the embodiment shown, the feature extraction network is specifically divided into four stages. The scale of the image in each stage is different. Following the design principle of ResNet, in the shallow stage, i.e. Figure 1In the first stage stage 1 and the second stage stage 2, fewer Block blocks (i.e., lightweight convolution modules) are stacked, and in the embodiment, it is set to 3. The main calculation is concentrated in the middle stage, i.e., the third stage stage 3, at which 5 Block blocks (i.e., lightweight convolution modules) are stacked. The number of modules stacked in the last stage of the ResNet shallow network (ResNet-18) is 2. The model of the present invention has a similar number of parameters to ResNet-18, so 2 Block blocks (i.e., lightweight convolution modules) are stacked in the fourth stage stage 4.

[0067] In addition to the stacking of blocks, the number of channels increases as the image size decreases in each stage, so the number of channels in each stage needs to be determined. In this embodiment, the number of channels in the four stages is set to 32, 64, 160, and 256, respectively.

[0068] Each LK module in the Block of the present invention is followed by a FFN module, which consists of two fully connected layers, a deep convolutional layer and a GELU activation function. Its structure is as follows Figure 1 As shown. The FFN sub-block is used for channel mixing and feature refinement. In a lightweight convolution module, the FFN module takes the output of the LK module as input, performs dimension upgrade of the feature channel through the first fully connected layer, and then enhances and refines the dimension upgrade features through the deep convolution layer. The GELU activation function increases the feature expression ability through the nonlinear function, and finally restores the dimension upgrade features to the initial input dimension through the second fully connected layer to obtain the output of the FFN module, which is also the output of a lightweight convolution module.

[0069] In each lightweight convolution module of the present invention, a residual connection structure is used between each LK module and the FFN module. Before performing the residual connection, a learnable scalar weight α can also be introduced to make the model converge faster. The formula is as follows:

[0070] x′ l =x l +α l LK(η(x l ))

[0071] x l+1 = x′ l +a′ l FFN(η(x′ l ))

[0072] Where LK, FFN, η represent LK module, FFN module, and normalization layer respectively; α l , α′ l They represent the scalar weights of the LK module and the FFN module respectively; x represents the feature.

[0073] As mentioned earlier, the normalization layer of the entire feature extraction network is specified by the configuration file. It is set to BatchNorm during ImageNet pre-training and participates in gradient updates. It is still BatchNorm when training on the DOTA dataset, but does not participate in gradient updates.

[0074] 2. Feature fusion network.

[0075] In the feature fusion stage, the present invention uses the LIP structure to adaptively select important features. Specifically, the feature fusion network is based on the PAFPN network, and the LIP structure replaces the maximum pooling operation therein, downsamples the feature layer to extract an additional feature layer, and adaptively selects features that are discriminative of the target for fusion.

[0076] The ORCNN target detection framework uses the FPN feature fusion network by default. The FPN network only has a top-down fusion path, which is to fuse the deep features with the shallow features after upsampling. The present invention replaces the FPN network with PAFPN, which adds a bottom-up fusion path to transfer the position information in the shallow features to the deep features, thereby enhancing the positioning capability of the deep features.

[0077] PAFPN fuses the features of the four stages of the feature extraction network from top to bottom to enhance the semantic information of shallow features, and then fuses them from bottom to top to increase the positioning ability of deep features. The ORCNN framework needs to generate 5 layers of features. The additional feature layer PAFPN uses maximum pooling to generate. Maximum pooling cannot accurately select features that are discriminative of the target, while the LIP structure can adaptively discriminate the importance of features based on input features. Therefore, the LIP structure is used to generate additional feature layers, and its calculation method is as follows: Figure 4 shown.

[0078] In order to reduce the amount of calculation, the LIP structure uses channel dimensionality reduction operation when calculating the importance of features. Since the number of bottom-up fusion feature channels of the PAFPN feature fusion network is 256, and only a single feature layer needs to be generated, no dimensionality reduction calculation is performed on the input features when generating additional feature layers. The implementation method of the present invention using the LIP structure to adaptively select important features can be described as follows:

[0079] Step 1: The logit module in LIP adopts a bottleneck structure and takes the fused features of the last layer of the PAFPN network as input. The feature is first reduced in dimension using a 1×1 convolution to reduce the amount of calculation for the LIP structure. Then it is normalized. The normalization method in the logit module uses affine instance normalization. Affine instance normalization makes the activation of each channel of each feature map follow a normal distribution. Rescaling through learnable affine parameters helps the LIP structure learn the importance of features in extreme cases. Finally, the ReLU activation function is used to suppress features with negative median values;

[0080] Step 2: The features obtained in the previous step are subjected to 3×3 convolution to learn the importance of the (3×3) features within the sliding window, and then the output of the reduced-dimensional logit module is obtained through affine instance normalization and ReLU activation function;

[0081] Step 3: The output obtained in the previous step is restored to its original dimension through 1×1 convolution, and affine instance normalization is performed. Then, a sigmoid function with a fixed magnification factor is used to maintain numerical stability.

[0082] Step 4: Use the following formula to obtain the additional feature layer O after the LIP structure:

[0083]

[0084] I represents the last layer feature of the PAFPN network, (Δx, Δy) represents the relative position of the kernel sampling in the sliding window Ω, (x, y) represents the position of the sliding window in the input feature I, (x ′ ,y ′ ) is the position of the sliding window on the output additional feature layer O, exp is the exponential function with base e, Φ(I) is the logarithm of importance calculated by the logit module, I x+Δx,y+Δy and(Φ(I)) x+Δx,y+Δy Represent the logarithm of the importance of the PAFPN network features and the logit module at the position (x+Δx, y+Δy).

[0085] The LIP structure learns the value of Φ(I) in the sliding window (i.e., the convolution kernel size). The step length of the sliding window is 2 during the sliding process, and the size of the additional feature layer O obtained is the size of the last layer of the input PAFPN network. The size of the additional feature layer is the same as that obtained by the maximum pooling operation. It achieves the downsampling effect while automatically identifying important features and adaptively retains important features to generate additional feature layers.

[0086] According to the above records, the improved parts of the present invention can be summarized as follows:

[0087] (1) In the PVT-v2 framework, a lightweight convolutional module is used to replace the original transformer module, reducing the number of model parameters and the amount of computation.

[0088] (2) In the backbone network module, the large convolution kernel is decomposed to greatly reduce the parameters and calculation amount of the model while ensuring the same receptive field as the large convolution kernel, and the necessary background information is used to detect the target. The different receptive field kernels adopt a branch cascade structure.

[0089] (3) A spatial mask of features extracted by different kernels is generated using a spatial selection mechanism. The spatial mask is multiplied by the features extracted by the corresponding kernels and then fused using a pixel-based addition operation. The fused feature is multiplied with the initial input feature as the weight of the initial input feature.

[0090] (4) The key feature of the weight is to adaptively adjust the output based on the input features rather than a standardized weight map, so the generation of feature weights does not use normalization functions such as sigmoid and softmax.

[0091] (5) When training the target detection model, the Batch-size is small and the BatchNorm layer does not participate in the model gradient update, so the model training is more stable.

[0092] (6) In the feature fusion stage, the LIP structure is used instead of maximum pooling to extract additional feature layers and adaptively retain features that are discriminative of the target.

[0093] The algorithm effect of the present invention can be further illustrated by the following simulation experiment:

[0094] 1. Simulation environment:

[0095] Equipment environment: The backbone network needs to be trained on the ImageNet dataset, which is large and takes a long time to train. Ordinary personal computers may need a long time to train. The ORCNN model is a two-stage anchor-based target detection model, and the GPU memory occupies a large amount of memory during model training. For the above reasons, the experimental environment is the Xidian Supercomputing Center, and this research work is supported by the Xidian University High Performance Computing School-level Public Platform.

[0096] Code environment: The deep learning framework uses Pytorch, and the target detection algorithm framework uses the mmrotate framework developed based on mmdet for rotating target detection.

[0097] 2. Simulation Experiment

[0098] Experimental Dataset: Since the backbone network requires a large amount of high-quality data training, and the current data sets for remote sensing images are at most in the tens of thousands, and the types of targets are relatively simple. Directly training the feature extraction backbone network on the remote sensing image dataset may lead to the model fitting a specific dataset. The current mainstream method for training the backbone network is to pre-train on the ImageNet dataset, and then fine-tune the pre-trained model on the remote sensing dataset. The ImageNet2012 training set contains 1.28 million images, the validation set contains 50,000 images, and the target types are as high as 1,000 categories, which is a good choice for training the backbone network. The remote sensing dataset selected is DOTA-v1.0, which contains 2,806 remote sensing images and 188,282 instances in 15 categories. It is currently one of the most important datasets in the field of remote sensing images.

[0099] Simulation experiment 1: The backbone network of the present invention is first pre-trained on the ImageNet2012 dataset. For fairness, the same parameter settings are used as LSKNet, and a single GPU is used. When the parameter quantities are basically the same, the feature extraction backbone network of the present invention improves the Top-1 accuracy by 0.92. Then, the pre-trained backbone network is used as the feature extraction network of ORCNN to be trained on the DOTA-v1.0 dataset. Finally, the backbone network of the present invention improves the target detection accuracy mAP by 0.80 compared with the original LSKNet in the DOTA-v1.0 dataset (VOC standard). The experimental results are shown in the following table:

[0100] Table 1: Comparison of target detection accuracy between LSKNet and the backbone network of the present invention

[0101] Method mAP PL BD BR GTF SV LV SH TC BC ST SBF RA HA SP HC LSKNet 80.38 89.31 84.92 57.44 82.65 79.78 85.75 88.78 90.88 87.45 87.70 68.58 65.09 78.46 78.08 80.75 LKT(Ours) 81.17 89.51 84.59 58.63 83.57 80.80 85.62 88.71 90.87 87.14 87.93 71.28 69.96 78.90 80.46 79.62

[0102] The detection accuracy of each type in DOTA-v1.0 is given in Table 1. The 15 categories are: airplane (PL), baseball field (BD), bridge (BR), ground track and field (GTF), small vehicle (SV), large vehicle (LV), ship (SH), tennis court (TC), basketball court (BC), storage tank (ST), football field (SBF), roundabout (RA), port (HA), swimming pool (SP), and helicopter (HC). It can be seen from Table 1 that the backbone network of the present invention has better detection accuracy than LSKNet.

[0103] Figure 6 The detection result diagram of LSKNet and the backbone network of the present invention as ORCNN feature extraction networks is given. Figure 6 (a) is the detection result of LKSNet, (b) is the detection result of the backbone network of the present invention. Figure 6The two figures above show the detection results of the two networks for the aircraft. In the figure, there are two aircraft that are very close to each other and their scales are inconsistent. The appearance colors are also quite different. LSKNet does not detect the smaller white aircraft, while the backbone network of the present invention successfully detects the white aircraft by using features extracted by more kernels. Figure 6 The two figures below show the detection results of the two networks for the port and the ship. The port in the lower left corner of the image is not completely present in the image due to image segmentation, but the network of the present invention can detect the target based on partial features. In contrast, the LSKNet network did not successfully detect the incomplete target. Figure 6 It can be concluded that the backbone network of the present invention can better extract the features of the target when the image background is complex, the targets are densely distributed, and the target scales are inconsistent.

[0104] Simulation Experiment 2: As mentioned above, the entire experiment is based on the ORCNN two-stage anchor-based target detection network framework. The target detection network framework uses FPN as the feature fusion network by default. This experiment uses the PAFPN (Path Aggregation Network for Instance Segmentation) network to replace the FPN network, increase the bottom-up fusion path of the feature pyramid, and increase the positioning capability of deep features. Using the PAFPN network to replace the FPN network in the feature fusion stage has very limited improvement on the overall performance of the detection model. LIP can be used to make the extra layers of the feature pyramid retain more discriminative features. To be fair, the same parameter settings as LSKNet-FPN are used. In a single GPU environment, LSKNet is used as the feature extraction network. The feature fusion network proposed in the present invention improves the final detection accuracy of the model by 0.13. The detection results of the three feature fusion networks are shown in Table 2 under the premise that LSKNet is used as the backbone network:

[0105] Table 2 Comparison of detection accuracy of feature fusion network

[0106]

[0107]

[0108] Since the top-level features of the feature pyramid are generally used to detect larger targets, after using LIP to generate the top-level features, we can see that the detection accuracy of targets with larger sizes in remote sensing images, such as bridges, ground athletic fields, and football fields, has been significantly improved. The detection accuracy mAP of all categories of targets has been greatly improved compared to simply replacing it with PAFPN, proving that replacing the maximum pooling operation with the LIP structure can retain more important features and is conducive to target detection.

[0109] In summary, the present invention reduces the number of parameters and calculations of large convolution kernels, alleviates the interference between targets of different scales and their features, improves the detection accuracy of the model, and can analyze airport flight conditions, port ship conditions, and urban traffic congestion in complex remote sensing scenarios.

Claims

1. A multi-scale target detection method for remote sensing images based on a large kernel decomposition network, characterized in that: The feature extraction network is used to extract features from the remote sensing image, the feature fusion network is used to fuse the features, and the classification network and the regression network are used to realize target detection based on the fused features, wherein: The feature extraction network is based on the PVT-v2 framework and uses a lightweight convolutional module to replace the original transformer module; The lightweight convolution module includes an LK module and an FFN module. The LK module is used to extract context information and feature information of targets in remote sensing images. It includes two fully connected layers, an LKT module and a GELU activation function. The LKT module is used to decompose the large convolution kernel, reduce network parameters and calculation amount while ensuring the same receptive field as the large convolution kernel, and detect targets using necessary background information.

2. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1 is characterized in that: The method of decomposing the large convolution kernel by the LKT module is as follows: Step 1: Divide the large convolution kernel into three parts: spatial local convolution, spatial long-range convolution and channel convolution, respectively through deep convolution DW-Conv, deep hole convolution DW-D-Conv and 1×1 convolution Conv 1×1 accomplish; Step 2: Concatenate the three parts of the convolution to extract features. The formula is as follows: Where X is the input feature map of the LKT module, Represents the features obtained by deep convolution, deep dilated convolution and 1×1 convolution, i=2, 3, …, n+1, n is the number of decomposed large convolution kernels; the receptive field of the convolution kernel in the deep convolution is K1, the number of deep dilated convolutions is n, and the receptive field of the convolution kernel in the i-th deep dilated convolution is K i , through the depth convolution and a depth hole convolution, K1+K is achieved i A receptive field of K i =d i (k i -1), d i represents the dilation rate of the deep dilated convolution, k i Indicates the convolution kernel size of the deep dilated convolution; Step 3: Perform channel splicing to obtain in Represents the features obtained only by depth convolution and 1×1 convolution, expressed as:

3. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 2 is characterized in that: In the LK module, the features obtained after channel splicing are used to generate spatial masks with different convolution kernels to extract features. Using spatial masking The features extracted by the decomposed large kernel convolution are weighted accordingly in spatial selection, and the weighted features are fused using a pixel-based sum operation. The fused features are multiplied with the initial input features as the feature attention map of the initial input features.

4. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 3 is characterized in that: The method of using the spatial selection mechanism to generate a weight map of features extracted by different convolution kernels is as follows: Step 1: Concatenate the features obtained Perform maximum pooling and average pooling based on channels respectively to obtain SA avg and SA max , expressed as: Step 2: SA avg and SA max Channel concatenation is performed to obtain spatial pooling features with a feature dimension of 2×H×W, and convolution F is used 2→N , transforming the 2×H×W dimensional features into N spatial masks: Step 3: Perform corresponding spatial selection weighting on the features extracted by the decomposed large kernel convolution, and use the pixel-based summation operation to fuse the weighted features to obtain the final feature attention map S: Step 4: Multiply the elements of input feature X and S to get the final output Y: Y=X·S.

5. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1 is characterized in that: The feature extraction network includes multiple stages, each stage includes a Patch embedding module and several lightweight convolution modules. The Patch embedding module is used to downsample the features output by the previous stage or the initial input features, reduce the scale of the features, and reduce the amount of calculation of the subsequent network. It includes a convolution layer and a normalization layer. The output obtained after convolution and normalization is used as the input of the lightweight convolution module.

6. According to claim 1, the multi-scale target detection method for remote sensing images based on large kernel decomposition network is characterized in that: The LK module takes the input of the lightweight convolution module through the normalization layer as input, adjusts the normalized features through the first fully connected layer, then increases the expressiveness of the features through a nonlinear function through the GELU activation function, and then extracts the target information and target context information through the LKT module, and finally adjusts the extracted features through the second fully connected layer to obtain the output of the LK module.

7. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1, characterized in that: The FFN module is used for channel mixing and feature refinement, and includes two fully connected layers, a deep convolution layer and a GELU activation function. In one of the lightweight convolution modules, the FFN module takes the output of the LK module as input, performs dimension upgrade of the feature channel through the first fully connected layer, and then enhances and refines the dimension upgrade features through the deep convolution layer, and then increases the feature expression ability through the nonlinear function through the GELU activation function, and finally restores the dimension upgrade features to the initial input dimension through the second fully connected layer to obtain the output of the FFN module, that is, the output of one of the lightweight convolution modules.

8. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1, characterized in that: In a lightweight convolution module, a residual connection structure is adopted between the LK module and the FFN module.

9. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1, characterized in that: The feature fusion network is based on the PAFPN network, and the maximum pooling operation is replaced by the LIP structure. The feature layer is downsampled to extract an additional feature layer, and the features that are discriminative of the target are adaptively selected for fusion. The implementation method is as follows: Step 1: The logit module in LIP adopts a bottleneck structure and takes the fused features of the last layer of the PAFPN network as input. The features are first reduced in dimension using a 1×1 convolution and then normalized. The normalization method in the logit module uses affine instance normalization, and finally the ReLU activation function is used to suppress features with negative median values. Step 2: The features obtained in the previous step are subjected to 3×3 convolution to learn the importance of features within the sliding window, and then the output of the reduced-dimensional logit module is obtained through affine instance normalization and ReLU activation function; Step 3: The output obtained in the previous step is restored to its original dimension through 1×1 convolution, and affine instance normalization is performed. Then, a sigmoid function with a fixed magnification factor is used to maintain numerical stability. Step 4: Use the following formula to obtain the additional feature layer O after the LIP structure: I represents the last layer feature of the PAFPN network, (Δx, Δy) represents the relative position of the kernel sampling in the sliding window Ω, (x, y) represents the position of the sliding window in the input feature I, (x ′ ,y ′ ) is the position of the sliding window on the output additional feature layer O, exp is the exponential function with base e, Φ(I) is the logarithm of importance calculated by the logit module, I x+Δx,y+Δy and(Φ(I)) x+Δx,y+Δy Represent the logarithm of the importance of the PAFPN network features and logit module at the position (x+Δx, y+Δy). The LIP structure learns the value of Φ(I) in the sliding window (i.e., the convolution kernel size). The step length of the sliding window is 2 during the sliding process, and the size of the additional feature layer O obtained is the size of the last layer of the input PAFPN network. The size of the additional feature layer is the same as that obtained by the maximum pooling operation. It achieves the downsampling effect while automatically identifying important features and adaptively retains important features to generate additional feature layers.

10. The multi-scale target detection method for remote sensing images based on large kernel decomposition network according to claim 1, characterized in that: The normalization layer of the feature extraction network is specified by the configuration file. It is set to BatchNorm and participates in gradient update during ImageNet pre-training, and is set to BatchNorm and does not participate in gradient update during training on the DOTA dataset.

Citation Information

Patent Citations

  • Lightweight remote sensing image target detection method fused with large kernel attention convolution

    CN117788996A

Cited By

  • Lightweight remote sensing image small target detection method

    CN119229315A

  • Remote sensing system with pyramid structure and multi-stage feature fusion

    CN119762979A

  • Remote sensing target detection method and device, equipment and storage medium

    CN119785220A

  • Attention method and device for adaptively fusing multi-scale large kernel features

    CN120431428A

  • An attention method and device for adaptively fusing multi-scale large nucleus features

    CN120431428B