An Improved Method for Target Detection Model in Remote Sensing Images
By replacing the self-attention module with a lightweight improved module in the remote sensing image target detection model, it solves the detection difficulty and high computational cost problems of complex remote sensing image backgrounds and large coverage areas, and achieves lower computational costs and detection efficiency.
Patent Information
- Application Number
- CN202410824576.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The complex background information and large coverage of remote sensing images increase the difficulty of target detection, and existing models have high computational costs, especially when using the Transformer architecture.
In the decoder stage of the remote sensing image target detection model, the self-attention module is replaced with a lightweight improved module, including a channel attention module, a fully connected module and a weak attention sub-module to reduce computational complexity.
Without affecting the performance of the model, the computational cost of target detection in remote sensing images is significantly reduced. It is especially suitable for large-scale remote sensing image data and improves detection efficiency.
Smart Images

Figure CN118397476B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of remote sensing image target detection, and in particular relates to a method for improving a remote sensing image target detection model. Background Art
[0002] Remote sensing images refer to images obtained by taking pictures using sensors in aerospace equipment, usually including satellite images, drone photography images, radar images, etc. Using remote sensing images for target detection tasks can usually be applied in military detection, resource exploration, urban planning, disaster relief and other aspects, and is a hot research field.
[0003] In the field of computer vision, which is a higher level in the field of remote sensing image processing, the Detection Transformer (DETR) model is a new way to use the Transformer architecture to achieve object detection tasks. However, in the field of object detection in remote sensing images, the use of DETR and its derived models has not received much attention.
[0004] However, for the target detection task on remote sensing images, remote sensing images have complex image background information and large image coverage, which increases the difficulty of target detection on remote sensing images. The current remote sensing target detection model is usually implemented using a convolutional neural network (CNN) module. However, as the Transformer architecture has achieved excellent performance on natural images, the remote sensing field has also begun to pay attention to this new architecture. The self-attention module in the Transformer has better learning ability than the convolution module, but this self-attention module also requires more computational cost than the convolution module. Summary of the invention
[0005] In response to the problem mentioned in the background technology that the background information of remote sensing images is complex and the coverage is large, which increases the difficulty of target detection in remote sensing images, the present invention proposes a method for improving a remote sensing image target detection model. For the self-attention module in the decoder stage of the remote sensing image target detection model using a Transformer architecture, an improved module is used to replace the self-attention module, which can obtain lower computational costs without affecting the performance of the model.
[0006] Technical solution: In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0007] A method for improving a remote sensing image target detection model comprises the following steps:
[0008] S1: Build a remote sensing image target detection model based on the Transformer architecture;
[0009] S2: Build lightweight improvement modules;
[0010] S3: Replace the self-attention module in the model decoder with a lightweight improvement module.
[0011] As a preferred method, in S1, the specific contents of building a remote sensing image target detection model based on the Transformer architecture include:
[0012] Input layer: perform preliminary feature extraction on the input remote sensing image and compress it to obtain the corresponding feature image;
[0013] Encoder: The encoder consists of multiple encoding layers; each encoding layer consists of a self-attention module and a fully connected module; after the input image passes through the encoder, it will change from a two-dimensional feature image to a feature sequence composed of one-dimensional feature vectors;
[0014] Decoder: The decoder consists of multiple decoding layers, each of which consists of a self-attention module, a cross-attention module, and a fully connected module. The decoder uses the feature sequence extracted by the encoding layer for feature decoding, and continuously iterates to learn the spatial position and category corresponding to the target candidate box.
[0015] Output layer: It includes two fully connected modules, one fully connected module is used to output the spatial position of the target candidate box, and the other fully connected module is used to output the category of the target contained in the candidate box.
[0016] Preferably, in S2, the specific contents of constructing the lightweight improvement module are:
[0017] ,
[0018] Among them, ECA is a channel attention module used to exchange information between different dimensions; FC1 is a fully connected module used to expand the dimension d of the input data to 2×d, and FC2 is a fully connected module used to restore the dimension of the input data from 2×d to d; GeLU is the activation function of the neural network, x is a one-dimensional vector sequence with a shape of n×d for the decoding layer input; Block is a weak attention submodule.
[0019] Preferably, the calculation formula of the weak attention submodule is as follows:
[0020] ,
[0021] Among them, Conv1 is a two-dimensional convolution module, which is used to reduce the expanded dimension 2×d to d through convolution; PwC is a point-by-point convolution module, which enables information exchange between data of different dimensions at the same position; GeLU is the activation function of the neural network; Conv2 is a two-dimensional convolution module, which is used to restore the dimension from d to 2×d; DwC is a channel-by-channel convolution module, which exchanges information between data of the same dimension and different positions.
[0022] Preferably, in S2, the specific contents of the computational complexity of the constructed lightweight improvement module include:
[0023] First, a sequence of n one-dimensional vectors with a dimension of d is input into the decoding layer. After passing through all decoding layers of the decoder, the one-dimensional vector sequence is input into the final output layer module to obtain the candidate target spatial position and category.
[0024] 1) Calculate the computational complexity of one-dimensional vector sequence data through the fully connected module FC1;
[0025] 2) Calculate the computational complexity of the one-dimensional vector sequence through the GeLU activation function;
[0026] 3) The computational complexity of calculating the one-dimensional vector sequence through the weak attention submodule;
[0027] 4) The computational complexity of calculating the one-dimensional vector sequence through the fully connected module FC2;
[0028] 5) The computational complexity of calculating the one-dimensional vector sequence through the channel attention module.
[0029] As a preference, the specific content of calculating the computational complexity of the one-dimensional vector sequence data through the fully connected module FC1 is:
[0030] The computational complexity of a single one-dimensional vector data for a fully connected module depends on the dimension d of the input data and the dimension 2×d of the output. Its computational complexity is expressed as O(2×d×d), and the computational complexity of n one-dimensional vector data is O(2×n×d×d); the computational complexity of FC1 is O(d×d×n);
[0031] The specific content of calculating the computational complexity of the one-dimensional vector sequence through the GeLU activation function is:
[0032] The computational complexity of the GeLU activation function is O(n×d);
[0033] The specific content of calculating the computational complexity of the one-dimensional vector sequence through the weak attention submodule is:
[0034] In the weak attention submodule, the computational complexity of the two 2D convolution modules Conv1 and Conv2 is O(n×d×d), the computational complexity of a GeLU activation function is O(n×d), and the computational complexity of PwC and DwC is O(n×d×d); the computational complexity of the weak attention submodule is O(n×d×d);
[0035] The specific content of calculating the computational complexity of a one-dimensional vector sequence through the fully connected module FC2 is:
[0036] The computational complexity of the fully connected module FC2 is O(d×d×n);
[0037] The specific content of calculating the computational complexity of a one-dimensional vector sequence through the channel attention module is:
[0038] The computational complexity of the channel attention module is O(n×d+d×d);
[0039] The total computational complexity of the lightweight improvement module is expressed as O(n×d×d).
[0040] Preferably, in S3, the specific contents of replacing the self-attention module in the model decoder with the lightweight improvement module include:
[0041] In the final model composition, the constructed lightweight improvement modules are used to replace the self-attention modules in the second and third decoding layers in the model decoder respectively.
[0042] An application of an improved method for a remote sensing image target detection model, applying the improved method for a remote sensing image target detection model described above to remote sensing image target detection.
[0043] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0044] (1) The present invention is an improvement on the remote sensing target detection neural network model based on the Transformer architecture. It replaces part of the self-attention module in the decoding layer of the remote sensing target detection model based on the Transformer architecture by constructing a lightweight improved module. The larger the input remote sensing image, the better the computational cost reduction effect.
[0045] (2) The data scale of remote sensing images is very large. Improving the self-attention module can reduce the computational cost of the remote sensing target detection model based on the Transformer architecture, which can provide convenience for the large-scale remote sensing image target detection tasks of relevant departments; and the lightweight improvement module of the present invention usually does not reduce the target detection performance of the model while reducing the computational cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a structural schematic diagram of a lightweight improvement module of an improved method for a remote sensing image target detection model according to a second embodiment of the present invention;
[0047] Figure 2 This is a sample diagram of the output results of the improved method for the remote sensing image target detection model according to the second embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention is further illustrated below in conjunction with specific examples. The examples are implemented based on the technical solutions of the present invention. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0049] Embodiment 1
[0050] The decoding stage of the existing Transformer-based object detection model usually uses a multi-head self-attention module (MSA), a cross-attention module (CA) and a fully connected module to form a decoding layer. The entire decoding stage is composed of six decoding layers. The theoretical formula of the self-attention module is as follows:
[0051] ,
[0052] Among them, Q, K, and V all refer to the submatrices obtained by passing the one-dimensional vector sequence input to the module through a transformation matrix, d k is a scaling factor, Softmax is a normalized exponential function; K T represents the transpose of the K matrix, and Attention represents the result of the self-attention mechanism.
[0053] In the actual decoding stage, what is usually input to the attention module is some randomly initialized one-dimensional vector sequences. The length of the sequence is usually equal to the number of candidate boxes. Each one-dimensional vector can learn certain spatial information after passing through the decoding layer. After passing through all decoding layers, the final vector sequence will pass through two fully connected layers to output the final target position and category to achieve target detection on the image.
[0054] Different objects on an image usually have different styles. A single attention mechanism cannot learn different styles like a convolutional neural network, so the general practice is to use a multi-head attention mechanism. The specific calculation formula is as follows:
[0055] ,
[0056] Among them, head represents the result of the self-attention mechanism mentioned above, and Concat means connecting different heads in series and multiplying them by the weight matrix W 0Different heads learn different styles of image targets, and finally the results of the self-attention mechanism are divided into different weights (W 0 ) combined together is the multi-head self-attention mechanism.
[0057] Assuming that we want to identify n candidate boxes on an image, we need to input n one-dimensional vectors of dimension d in the decoding layer. They first pass through a transformation matrix to obtain three sub-matrices Q, K, and V. The computational complexity is O(n×d×d). If h heads are designed, it is O(h×n×d×d). Then the computational complexity of the dot product of the Q and K matrices and the dot product of their results with the V matrix is O(h×n×n×d). Therefore, the computational complexity of a multi-head self-attention module can be regarded as O(h×n×d×d + h×n×n×d).
[0058] If the number of candidate target boxes n on the image is relatively large, the main amount of computation depends on the square of n. Obviously, in remote sensing images, it is easy to encounter dense target recognition tasks. At this time, the number of target boxes n will lead to a quadratic increase in computational cost.
[0059] Embodiment 2
[0060] This embodiment aims to improve the remote sensing target detection neural network model based on the Transformer architecture. The improved module is mainly aimed at the self-attention module in the decoder stage of the remote sensing image target detection model using the Transformer architecture. Replacing the self-attention module with the improved module can reduce computational cost without affecting the model performance.
[0061] The improved method of the remote sensing image target detection model provided in this embodiment includes the following steps:
[0062] S1: Build a remote sensing image target detection model based on the Transformer architecture, including:
[0063] Input layer: It is also commonly called the backbone. Generally, a ResNet50 neural network with pre-trained weights is selected. Its main function is to perform preliminary feature extraction on the input remote sensing image and compress it to obtain a corresponding feature image with a smaller range.
[0064] Encoder: An encoder that extracts features from an input feature image. The encoder is composed of multiple encoder layers, which are usually set to 6. Each encoder layer is usually composed of a self-attention module and a fully connected module. After the input image passes through the encoder module, it will be transformed from a two-dimensional feature image to a feature sequence composed of one-dimensional feature vectors. These sequence data will be used in the calculation of the cross-attention module in the decoder to help complete the correct detection of the target on the image.
[0065] Decoder: Use the feature data extracted from the encoding layer for feature decoding, and continuously iterate to learn the spatial position and category corresponding to the target candidate frame. The decoder is mainly composed of multiple decoding layers (Decoder Layer), and this number of layers is usually set to 6 layers. For each decoding layer, it is usually composed of a self-attention module, a cross-attention module, and a fully connected module. The input data of this stage, in addition to the feature data output by the previous encoding layer, also has a manually set number of learnable sequence data. The number of this sequence data corresponds to the number of target candidate frames that the model needs to learn. Generally, the larger the size of the input remote sensing image, the larger the number of target candidate frames required.
[0066] Output layer: This part mainly contains two fully connected modules, one for outputting the spatial position of the target candidate box and the other for outputting the category of the target contained in the candidate box.
[0067] S2: Construct lightweight improvement modules, specifically:
[0068] like Figure 1 As shown, the lightweight improvement module of the present invention is named SkipDecoder (SD). Its main purpose and application scope are to reduce the amount of calculation without reducing the model performance as much as possible. The positioning of this module is a lightweight weak attention module, and its calculation formula is:
[0069] ,
[0070] Among them, Efficient Channel Attention (ECA) is a channel attention module implemented by convolution function, which is used to exchange information between different dimensions; FC1 is a fully connected module (Fully Connected Layer), which is used to expand the dimension d of the input data to 2×d, and FC2 is a fully connected module, which is used to restore the dimension of the input data from 2×d to d; GeLU is the activation function of the neural network, x is a one-dimensional vector sequence with a shape of n×d for the decoding layer input, and Block is a weak attention submodule.
[0071] The calculation formula of Block is as follows:
[0072] ,
[0073] Among them, Conv1 is represented as a two-dimensional convolution module with an input channel number of 2×d, an output channel number of d, a convolution kernel size of 3, a padding of 1, and a grouping of d. Its main function is to help reduce the expanded dimension 2×d to d through convolution, and it can play the same role as obtaining the three sub-matrices Q, K, and V through a transformation matrix in the self-attention module.
[0074] PwC (Pointwise Convolution) is a point-by-point convolution module that enables data to exchange information between different dimensions at the same position.
[0075] Conv2 is a two-dimensional convolution module with d input channels, 2×d output channels, a convolution kernel size of 3, a padding of 1, and a grouping of d. Its main function is to restore the dimension from d to 2×d.
[0076] DwC (Depthwise Convolution) is a channel-by-channel convolution module that allows data in the same dimension but different positions to exchange information.
[0077] GeLU is the activation function of the neural network, which is used to add nonlinear properties.
[0078] Through such a Block, the effect of a lightweight self-attention mechanism can be achieved.
[0079] The specific contents of the computational complexity of the constructed lightweight improvement module include:
[0080] First, a sequence of n one-dimensional vectors with a dimension of d is input into the decoding layer. After passing through all decoding layers of the decoder, this one-dimensional vector sequence is input into the final output layer module to obtain the candidate target spatial position and category. Here, the number of one-dimensional vectors in the sequence n also represents the number of candidate boxes.
[0081] 1) Calculate the computational cost of the fully connected module FC1 of the one-dimensional vector sequence data through the lightweight improvement module;
[0082] The one-dimensional vector sequence data will first pass through the fully connected module FC1 of the lightweight improvement module. The computational complexity of a single one-dimensional vector sequence data for the fully connected module depends on the dimension d of the input data and the dimension 2×d of the specified output. Its computational complexity is expressed as O(2×d×d), and the computational complexity of n one-dimensional vector sequence data is O(2×n×d×d).
[0083] In the representation of computational complexity, constant factors are usually ignored, because more attention should be paid to how the computational complexity changes with the increase of input size n and d. Therefore, the computational complexity here and the following computational complexity will ignore constant factors, that is, the computational complexity of FC1 is O(d×d×n).
[0084] 2) The computational complexity of a one-dimensional vector sequence through the GeLU activation function is O(n×d).
[0085] 3) The computational complexity of calculating the one-dimensional vector sequence through the weak attention submodule;
[0086] In the weak attention module, the computational complexity of the two two-dimensional convolution modules Conv1 and Conv2 is O(n×d×d), the computational complexity of a GeLU activation function is O(n×d), and the computational complexity of PwC and DwC is also O(n×d×d).
[0087] That is, the computational complexity of a weak attention submodule is about O(n×d×d+n×d×d+n×d×d+n×d). Ignoring the constant factor, it can be simplified to O(n×d×d).
[0088] 4) The computational complexity of FC2 is O(d×d×n), the same as FC1.
[0089] 5) The computational complexity of ECA is O(n×d+d×d).
[0090] In general, the final total computational complexity of the lightweight improvement module is of the order of O(n×d×d).
[0091] Compared with the O(n×n×d) amount of computation of the self-attention module in Example 1, the computational complexity of the lightweight improvement module in this embodiment is O(n×d×d). The amount of computation of the lightweight improvement module depends on the dimension d of the one-dimensional vector input to the module (generally set to d = 256), and the number of candidate boxes n is usually designed according to the size of the input image. For example, for drone photography images with a size of 400×400 pixels in the public dataset NWPU VHR-10 in the remote sensing field, the number of candidate boxes n in the model is usually set to at least 300. If the input image is larger, such as the image size of 800×800 in the public dataset DIOR for remote sensing images, more candidate boxes are required to achieve better model performance.
[0092] In practical applications, the number of candidate boxes n is usually greater than d, and as the size of the input image increases, n increases. Therefore, as the size of the detected remote sensing image input to the model increases, the computational cost of the lightweight improvement module compared to the computational cost of the self-attention module is reduced more significantly.
[0093] In this embodiment, the computational complexity of the lightweight improvement module SD is expressed as a computational order of magnitude of O(n×d×d). Compared with the computational complexity of the existing self-attention module of O(n×n×d), the computational complexity of SD depends on the dimension d of the one-dimensional vector input to the module, which is usually a fixed value and is smaller than the number of candidate boxes n. The number of candidate boxes n is usually designed according to the size of the input image. If the input image is larger, more candidate boxes are required to bring better model performance.
[0094] S3: Replace the self-attention module in the model decoder with a lightweight improvement module, specifically:
[0095] There are a total of 6 decoding layers with the same composition in the model decoder. Compared with the decoding ability of the self-attention module, the SD module loses a certain amount of decoding ability while achieving lower computational costs. Therefore, the SD module can only replace the self-attention module in some decoding layers to ensure that the computational cost is reduced without affecting the performance of the model.
[0096] In the final model composition, the constructed lightweight improvement modules are used to replace the self-attention modules in the second and third decoding layers in the model decoder respectively.
[0097] like Figure 2 The figure shows a sample diagram of the model output results, including the target location identification box and the probability of the corresponding category.
[0098] As shown in Table 1 below, the remote sensing target detection model of this embodiment is compared with the model performance results of the general model on the public data NWPUVHR-10; this embodiment uses the NWPU VHR-10 remote sensing target detection public data set and includes DINO and DINO-SD models, and the DINO-SD model is the model of this embodiment after replacing the SD module on the DINO model; the detection targets include airplanes, ships, oil tanks, baseball fields, tennis courts, basketball courts, track and field stadiums, bridges, and vehicles.
[0099] Table 1 Model effect comparison table
[0100]
[0101] This embodiment improves the SD module on the Transformer-based remote sensing target detection model DINO. It can be seen that the mAP50 detection accuracy of the DINO model on the remote sensing target detection public dataset NWPU VHR-10 is not as high as the average accuracy of the DINO-SD model after using the SD module in this embodiment, and the DINO-SD model of this application improves the mAP50 detection accuracy of the DINO model on the remote sensing target detection public dataset NWPU VHR-10 from 92.1% to 92.8%, which is in line with the positioning of the SD module, that is, to reduce the computational cost without affecting the model performance.
[0102] Embodiment 3
[0103] This embodiment provides an application of an improved method for a remote sensing image target detection model, and applies the improved method for the remote sensing image target detection model of Embodiment 2 to remote sensing image target detection. Remote sensing images are used for target detection tasks, which can generally be applied to military detection, resource exploration, urban planning, and disaster relief.
[0104] The lightweight improvement module constructed in Example 2 is used to replace the self-attention module in the decoder stage of the remote sensing image target detection model using the Transformer architecture. Specifically, the self-attention modules in the second and third decoding layers in the model decoder are replaced by the constructed lightweight improvement module.
[0105] The application of the improved method of the remote sensing image target detection model of this embodiment can obtain lower computational cost without affecting the model performance by replacing the self-attention module with the improved module. The computational cost reduction effect is better as the input remote sensing image is larger, which solves the problem of difficulty and high computational cost of target detection in remote sensing images due to the complex background information and large coverage of remote sensing images.
[0106] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for improving a remote sensing image target detection model, characterized in that: The following steps are involved: S1: Build a remote sensing image target detection model based on the Transformer architecture; S2: Build lightweight improvement modules; The specific contents of building the lightweight improvement module are: SD=ECA(FC2(Block(GeLU(FC1(x))))) Among them, ECA is a channel attention module, which is used to exchange information between different dimensions; FC1 is a fully connected module, which is used to expand the dimension d of the input data to 2×d, and FC2 is also a fully connected module, which is used to restore the dimension of the input data from 2×d to d; GeLU is the activation function of the neural network, x is the one-dimensional vector sequence of the shape of n×d input to the decoding layer; Block is a weak attention submodule; The calculation formula of the weak attention submodule is as follows: Block=DwC(Conv2(GeLU(PwC(Conv1(x))))), Among them, Conv1 is a two-dimensional convolution module, which is used to reduce the expanded dimension 2×d to d through convolution; PwC is a point-by-point convolution module, which enables data to exchange information between different dimensions at the same position; GeLU is the activation function of the neural network; Conv2 is a two-dimensional convolution module, which is used to restore the dimension from d to 2×d; DwC is a channel-by-channel convolution module, which exchanges information between data of the same dimension and different positions; S3: Replace the self-attention module in the model decoder with a lightweight improvement module.
2. The improved method for remote sensing image target detection model according to claim 1, characterized in that: In S1, the specific contents of building a remote sensing image target detection model based on the Transformer architecture include: Input layer: perform preliminary feature extraction on the input remote sensing image and compress it to obtain the corresponding feature image; Encoder: The encoder consists of multiple encoding layers; each encoding layer consists of a self-attention module and a fully connected module; after the input image passes through the encoder, it will change from a two-dimensional feature image to a feature sequence composed of one-dimensional feature vectors; Decoder: The decoder consists of multiple decoding layers, each of which consists of a self-attention module, a cross-attention module, and a fully connected module. The decoder uses the feature sequence extracted by the encoding layer for feature decoding, and continuously iterates to learn the spatial position and category corresponding to the target candidate box. Output layer: It includes two fully connected modules, one fully connected module is used to output the spatial position of the target candidate box, and the other fully connected module is used to output the category of the target contained in the candidate box.
3. The improved method for remote sensing image target detection model according to claim 1, characterized in that: In S2, the specific contents of the computational complexity of the constructed lightweight improvement module include: First, a sequence of n one-dimensional vectors with a dimension of d is input into the decoding layer. After passing through all decoding layers of the decoder, the one-dimensional vector sequence is input into the final output layer module to obtain the candidate target spatial position and category. 1) Calculate the computational complexity of one-dimensional vector sequence data through the fully connected module FC1; 2) Calculate the computational complexity of the one-dimensional vector sequence through the GeLU activation function; 3) The computational complexity of calculating the one-dimensional vector sequence through the weak attention submodule; 4) Calculate the computational complexity of the one-dimensional vector sequence through the fully connected module FC2; 5) The computational complexity of calculating the one-dimensional vector sequence through the channel attention module.
4. The improved method for remote sensing image target detection model according to claim 3, characterized in that: The specific content of calculating the computational complexity of one-dimensional vector sequence data through the fully connected module FC1 is: The computational complexity of a single one-dimensional vector data for a fully connected module depends on the dimension d of the input data and the dimension 2×d of the output. Its computational complexity is expressed as O(2×d×d), and the computational complexity of n one-dimensional vector data is O(2×n×d×d); the computational complexity of FC1 is O(d×d×n); The specific content of calculating the computational complexity of the one-dimensional vector sequence through the GeLU activation function is: The computational complexity of the GeLU activation function is O(n×d); The specific content of calculating the computational complexity of the one-dimensional vector sequence through the weak attention submodule is: In the weak attention submodule, the computational complexity of the two 2D convolution modules Conv1 and Conv2 is O(n×d×d), the computational complexity of a GeLU activation function is O(n×d), and the computational complexity of PwC and DwC is O(n×d×d); the computational complexity of the weak attention submodule is O(n×d×d); The specific content of calculating the computational complexity of a one-dimensional vector sequence through the fully connected module FC2 is: The computational complexity of the fully connected module FC2 is O(d×d×n); The specific content of calculating the computational complexity of the one-dimensional vector sequence through the channel attention module ECA is: The computational complexity of the channel attention module is O(n×d+d×d); The total computational complexity of the lightweight improvement module is expressed as O(n×d×d).
5. The improved method for remote sensing image target detection model according to claim 1, characterized in that: In S3, the specific contents of replacing the self-attention module in the model decoder with a lightweight improvement module include: In the final model composition, the constructed lightweight improvement modules are used to replace the self-attention modules in the second and third decoding layers in the model decoder respectively.
6. Application of an improved method for remote sensing image target detection model, characterized in that: The improved method of the remote sensing image target detection model described in any one of claims 1 to 5 is applied to remote sensing image target detection.
Citation Information
Patent Citations
Crop pest detection method based on lightweight convolutional neural network
CN115100148A
Lightweight convolutional network and Transform combined human body key point detection method
CN115222959A
Light-weight structure sensing Transform network and VHR remote sensing image change detection method
CN116778238A
Remote sensing target detection method based on lightweight Transform
CN116894977A
Image classification method based on improved OfficientNet-B0
CN117333705A
