A remote sensing image target detection method based on multi-scale feature reuse
By introducing a multi-scale feature sampling module and loss function into the remote sensing image target detection model, the problem of insufficient feature extraction capabilities of the remote sensing image target detection model on scale-changing targets is solved, and more accurate target recognition and positioning are achieved.
Patent Information
- Application Number
- CN202410220777.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Existing remote sensing image target detection models have insufficient feature extraction capabilities when dealing with targets with drastic scale changes, resulting in poor model accuracy and difficulty in effectively identifying and locating potential targets.
A remote sensing image target detection method based on multi-scale feature reuse is adopted. Multi-scale feature sampling modules are introduced into the backbone feature extraction network, including channel segmentation, channel shuffling, feature splicing and dynamic convolution modules, to improve the model's ability to detect multi-dimensional information. perceptual capabilities, and are trained with focus loss, rotated frame intersection loss, and cross-entropy loss.
It effectively improves the multi-dimensional information perception ability of the target detection model for scale-changing targets, helps the model capture more valuable multi-scale target feature information, and achieves more accurate target detection in remote sensing images.
Smart Images

Figure CN118015261B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing image processing, and more specifically to a remote sensing image target detection method based on multi-scale feature reuse. Background Art
[0002] Remote sensing images have broad application prospects in the fields of national defense security, environmental monitoring, urban planning, etc. Remote sensing image target detection technology has always been one of the research focuses in the field of remote sensing. The current mainstream remote sensing image target detection method is mainly based on convolutional neural networks. After feature extraction, feature fusion, and feature decoupling, the prediction box and type information of the potential target area are output. Among them, the feature extraction network plays an important role and is also one of the core architectures of the entire target detection model. At present, most mainstream target detection models are based on convolutional neural networks, and their feature extraction networks are composed of stacked basic convolution modules. Due to the characteristics of drastic changes in target scale in remote sensing images, typical remote sensing targets such as aircraft, ships, and athletic fields have large scale differences and difficult feature extraction. This leads to the problem of poor accuracy of remote sensing image target ship models and the difficulty of effectively applying conventional natural image-based target detection models in remote sensing image interpretation.
[0003] Therefore, how to improve the target detection model's ability to perceive multi-dimensional information of targets with changing scales, help the model capture more valuable multi-scale target feature information about potential target areas, and then more accurately understand the image content, correctly identify and locate potential targets in remote sensing images, is a problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] In view of the above problems, the present invention provides a remote sensing image target detection method based on multi-scale feature reuse to at least solve some of the technical problems mentioned in the above background technology.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] The present invention provides a remote sensing image target detection method based on multi-scale feature reuse, comprising:
[0007] Inputting the acquired remote sensing image into a trained remote sensing image target detection model, and outputting potential targets in the remote sensing image;
[0008] The remote sensing image target detection model includes a backbone feature extraction network, a feature fusion network and a feature decoupling head.
[0009] Furthermore, the step of inputting the acquired remote sensing image into a trained remote sensing image target detection model and outputting potential targets in the remote sensing image specifically includes:
[0010] Performing feature extraction on the input remote sensing image through the backbone feature extraction network to obtain a feature map;
[0011] Performing a fusion process on the feature map through the feature fusion network to obtain a fused feature map;
[0012] The fused feature map is decoupled by the feature decoupling head to obtain the position and category of the potential target area of the feature map and output it.
[0013] Furthermore, the backbone feature extraction network is built based on a multi-scale feature sampling module.
[0014] Furthermore, the multi-scale feature sampling module includes a channel segmentation module, a channel shuffling module, a feature splicing module, a dynamic convolution module and a point convolution module; wherein:
[0015] The channel segmentation module is used to segment the channel dimension of the input feature map according to a preset ratio to obtain multiple sub-feature maps;
[0016] The channel shuffling module is used to exchange the channel order of the multiple sub-feature maps;
[0017] The feature splicing module is used to splice the multiple sub-feature maps after exchanging the channel order to obtain a multi-scale feature map with the same shape as the input feature map;
[0018] The dynamic convolution module is used to extract multi-scale features from the potential target area of the multi-scale feature map;
[0019] The point convolution module is used to adjust the channel dimension of the output feature map.
[0020] Furthermore, the backbone feature extraction network is composed of a plurality of stacked convolutional modules.
[0021] Furthermore, each of the convolution modules includes a basic convolution operator, a normalization module and an activation function; wherein:
[0022] The basic convolution operator is used to perform pixel-by-pixel calculations on the channel information of the input remote sensing image to achieve feature extraction;
[0023] The normalization module is used to normalize the calculated channel results to a standard range;
[0024] The activation function is used to activate and inhibit the feature matrix of the potential target area.
[0025] Furthermore, the feature decoupling head includes a basic convolution module and a prediction function;
[0026] The basic convolution module is used to process the shape and channel dimension of the fused feature map;
[0027] The prediction function is used to predict the position and category of the potential target area of the feature map and output the result.
[0028] Furthermore, the focal loss, rotation frame intersection-over-union loss and cross entropy loss are used to train the remote sensing image target detection model for the remote sensing image target detection task; specifically expressed as:
[0029]
[0030] Among them, y represents the target true value label; Represents the prediction result of the remote sensing image target detection model; Loss represents the total loss used in the training process; FocalLoss represents the focal loss, which is used for the classification prediction branch of the remote sensing image target detection task; RotatedIoULoss represents the rotated box intersection-over-union loss, which is used to calculate the distance between the predicted box and the target true value label corresponding to the input remote sensing image.
[0031] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a remote sensing image target detection method based on multi-scale feature reuse, which includes the following beneficial effects:
[0032] 1. The present invention can effectively improve the target detection model's ability to perceive multi-dimensional information of targets with varying scales through a remote sensing image target detection model based on multi-scale feature reuse, thereby more accurately understanding the image content and correctly identifying and locating potential targets in remote sensing images.
[0033] 2. In the feature extraction stage, the present invention can help the remote sensing image target detection model better capture the multi-scale feature information of the potential target area from a multi-dimensional perspective by designing the changes in the feature map channel dimensions under different segmentation ratios, and realize accurate remote sensing image target detection task recognition.
[0034] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention.
[0035] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A schematic diagram of the process framework of a remote sensing image target detection method based on multi-scale feature reuse provided in an embodiment of the present invention.
[0038] Figure 2 A schematic diagram of a multi-scale feature sampling module provided in an embodiment of the present invention.
[0039] Figure 3 A schematic diagram of a remote sensing image target detection module provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] See also Figure 1 As shown, the embodiment of the present invention discloses a remote sensing image target detection method based on multi-scale feature reuse, including: inputting the acquired remote sensing image into a trained remote sensing image target detection model, and outputting potential targets in the remote sensing image; the remote sensing image target detection model includes a backbone feature extraction network, a feature fusion network and a feature decoupling head; wherein:
[0042] The input remote sensing image is subjected to feature extraction through the backbone feature extraction network to obtain a feature map;
[0043] The feature map is fused through a feature fusion network to obtain a fused feature map;
[0044] The fused feature map is decoupled through the feature decoupling head to obtain the location and category of the potential target area of the feature map and output it.
[0045] The remote sensing image target detection method based on multi-scale feature reuse provided by the embodiment of the present invention provides a more reliable and efficient solution for the field of remote sensing image target detection and provides strong support for future remote sensing application fields.
[0046] In the embodiment of the present invention, a multi-scale feature sampling module is first constructed, and then a backbone feature extraction network and a remote sensing image target detection model corresponding to the backbone feature extraction network are constructed based on the multi-scale feature sampling module; specifically, the following contents are included:
[0047] 1. Build a multi-scale feature sampling module:
[0048] The multi-scale feature sampling module includes a channel segmentation module, a channel shuffling module, a feature splicing module, a dynamic convolution module, and a point convolution module; see Figure 2 As shown, where:
[0049] (1) Channel segmentation module, which is used to segment the channel dimension of the input feature map according to a preset ratio to obtain multiple sub-feature maps; it is expressed as:
[0050]
[0051] in, Represents the sub-feature map obtained after segmentation, , Indicates channel information. represents the size (i.e., shape) of the feature map, z represents the preset ratio; i represents the i-th sub-feature map; n represents a total of n sub-feature maps, ; ChannelSplit represents the channel splitting module; F input Represents the input feature map;
[0052] Based on this, the channel dimension of the input feature map is segmented according to different preset ratios (for example, [1:2, 1:4, 1:8]), and sub-feature maps under different segmentation ratios can be obtained;
[0053] (2) Channel shuffling module, used to exchange the channel order of multiple sub-feature maps; expressed as:
[0054]
[0055] in, represents the sub-feature map after channel shuffle, ,Although the order of the sub-feature maps is disrupted, the shape is not affected; ChannelReplace represents the channel shuffling module;
[0056] The channel shuffling module can help the remote sensing image target detection model better capture the multi-dimensional feature information about the potential target area;
[0057] (3) A feature concatenation module is used to concatenate multiple sub-feature maps after exchanging the channel order to obtain a multi-scale feature map with the same shape as the input feature map; it is expressed as:
[0058]
[0059] Among them, Concat represents the feature concatenation module, which shuffles the features along the channel dimension to obtain the sub-graph Concatenate to get a multi-scale feature map F CSR ;
[0060] (4) Dynamic convolution module, which is used to extract multi-scale features from the potential target area of the multi-scale feature map; it is expressed as:
[0061]
[0062] Among them, F D Represents a multi-scale feature map; DyConv represents a dynamic convolution module;
[0063] Similarly, different operation branches are designed according to different segmentation ratios [1:2, 1:4, 1:8]. After channel segmentation, channel shuffling, feature concatenation, and dynamic convolution module calculation, similar multi-scale feature maps after segmentation and shuffling in different dimensions can be obtained. ; These multi-scale feature maps in different dimensions are concatenated and expressed as:
[0064]
[0065] in, Represents a multi-scale feature map obtained after multi-dimensional segmentation and shuffling.
[0066] , whose number of channels is the input feature map 3 times; Represents the multi-scale feature map after segmentation and shuffling in the first dimension; Represents the multi-scale feature map after segmentation and shuffling in the second dimension; Represents the multi-scale feature map after segmentation and shuffling in the third dimension;
[0067] (5) Point convolution module, which is used to adjust the channel dimension of the output feature map to ensure the dimension of the output feature map, expressed as:
[0068]
[0069] in, represents the output feature map; Represents a point convolution module, which consists of The convolution kernel is composed of 1×1 size, and the multi-scale feature map is adjusted in a learnable way. The number of channels is calculated to obtain the final output .
[0070] 2. Based on the above-mentioned multi-scale feature sampling module, a backbone feature extraction network and a remote sensing image target detection model corresponding to the backbone feature extraction network are constructed.
[0071] Most traditional target detection models based on convolutional neural networks use a backbone feature extraction network-feature fusion network-feature decoupling head structure as the basic architecture of the model; the remote sensing image target detection model based on multi-scale feature reuse constructed in the embodiment of the present invention follows this paradigm, and introduces the above-mentioned multi-scale feature sampling module to optimize the feature extraction network to achieve the extraction of multi-scale feature information, thereby improving the model's ability to utilize multi-scale feature information of typical remote sensing targets, helping the model to better capture multi-scale feature information about potential target areas, and achieving accurate remote sensing image target detection task recognition; the backbone feature extraction network model structure based on the multi-scale feature sampling module in the embodiment of the present invention is as follows Figure 3 As shown:
[0072] 1. Backbone feature extraction network
[0073] In the construction process of the embodiment of the present invention, after the remote sensing image and its label information are input into the remote sensing image target detection model, the backbone feature extraction network extracts features from the remote sensing image, specifically:
[0074] (1) First, the remote sensing image and its label information are input into the model through the data loader. The calculation process of the data loader is expressed as:
[0075]
[0076] Among them, imgs represents the input remote sensing image, , Indicates the size of the remote sensing image, 3 is the number of channels; Represents the annotation information of the target in the remote sensing image, including location and category information; Represents the data loader function, which is used to load data and data augmentation;
[0077] (2) The backbone feature extraction network extracts features from remote sensing images, which can be expressed as:
[0078]
[0079] in, Represents the feature map obtained after feature extraction, , Indicates size, Indicates the number of channels; represents a backbone feature extraction network, which obtains feature information of an input remote sensing image by stacking convolution modules in layers. Typical backbone feature extraction networks include: ResNet, VGG, EfficientNet, etc. The method provided in the embodiment of the present invention takes the basic convolution module as an example, but it should be noted that the remote sensing image target detection model based on multi-scale feature reuse provided by the present invention can be adapted to a general basic backbone feature extraction network through simple model replacement;
[0080] The backbone feature extraction network is composed of stacked convolution modules. Each basic convolution module contains a basic convolution operator (Conv), a normalization module (Batch Normalization) and an activation function (Relu). The basic convolution operator calculates the channel information of the input remote sensing image at a pixel-by-pixel level to achieve the purpose of feature extraction. The normalization module normalizes the calculated channel results to the standard range to facilitate subsequent calculations while avoiding abnormal gradient optimization problems. The activation function activates and inhibits the feature matrix of the potential target area to help the model distinguish between foreground and background information. The calculation process of the operation layer of each module can be formally expressed as:
[0081]
[0082] Among them, Conv represents the basic convolution operator; BN represents the normalization module, and the number of channels of its receiving and output features remains unchanged; represents the input original remote sensing image; F i Represents the feature map obtained after the i-th layer convolution extraction; Relu represents the activation function, which is used to activate the potential target area of the output feature map;
[0083] Define CONV as a convolution module containing a basic convolution operator, a normalization module, and an activation function. Therefore, the feature extraction process of the i-th layer of the deep neural network can be formally expressed as:
[0084]
[0085] For example, the feature extraction process of the n-5th layer of a deep neural network can be formally expressed as:
[0086]
[0087] in, ; represents the convolution module of the i-th layer; imgs represents the input remote sensing image; Represents the feature map obtained after the n-5th layer of convolution extraction; based on this, n feature maps of the remote sensing image after deep feature extraction can be obtained;
[0088] Additionally, a multi-scale feature sampling module is introduced into In the feature extraction process, the backbone network’s perception of multi-scale feature information is optimized to obtain high-quality multi-scale feature maps. The calculation process can be formally expressed as:
[0089]
[0090] Among them, MFE represents the multi-scale feature sampling module;
[0091] At this point, a backbone feature extraction network optimized based on the multi-scale feature sampling module can be obtained.
[0092] 2. Feature fusion network:
[0093] The feature fusion network is responsible for receiving the feature maps output by the backbone feature extraction network and fusing them to obtain multi-scale characteristic information of potential targets; for example, the feature maps extracted by the backbone feature extraction network are Pass it to the feature fusion network for feature fusion, which is specifically expressed as:
[0094]
[0095] in, Represents the feature fusion network, which is used for feature fusion. It first receives the feature map output by the backbone feature extraction network , and then use the convolution operator to change the shape of the feature map to achieve fusion, and obtain the fused fusion feature map , specifically expressed as:
[0096]
[0097] Among them, Concat represents the feature concatenation module; CONV represents the convolution module including the basic convolution operator, normalization module and activation function; Resize represents the feature reshaping module.
[0098] 3. Feature decoupling head:
[0099] The feature decoupling head decouples the fused feature map. The feature decoupling network consists of a basic convolution module and a prediction function. The convolution module is used to process the shape and channel dimension of the fused feature map for subsequent calculations; the prediction function is used to predict the location of the potential target area of the feature map, i.e., the category information, and output the prediction result; the calculation process of the feature decoupling head is expressed as:
[0100]
[0101] in, Represents the classification information obtained by prediction; Indicates the predicted location information; Represents the fused feature map; represents the classification function; Represents the rectangular box prediction function.
[0102] 3. Training and testing the remote sensing image target detection model for remote sensing image target detection tasks:
[0103] (1) After building a remote sensing image target detection model based on multi-scale feature reuse, the network is trained for remote sensing image target detection tasks using focal loss, rotated IoU loss, and cross entropy loss, expressed as:
[0104]
[0105] Among them, y represents the target true value label; Represents the prediction result of the remote sensing image target detection model; Loss represents the total loss used in the training process; FocalLoss represents the focal loss, which is used for the classification prediction branch of the remote sensing image target detection task; RotatedIoULoss represents the rotated box intersection-over-union loss, which is used to calculate the distance between the predicted box and the target true value label corresponding to the input remote sensing image; when the network is trained until the loss no longer decreases, it means that the network training has reached stability, the training process is completed, and a trained remote sensing image target detection model based on multi-scale feature reuse is obtained.
[0106] (2) Use the trained remote sensing image target detection model based on multi-scale feature reuse to test the remote sensing image to be tested, expressed as:
[0107]
[0108] in, Indicates the trained remote sensing image target detection model based on multi-scale feature reuse; represents the input remote sensing image; Represents the output target detection result.
[0109] In summary, the present invention aims at the problem that the feature extraction network has insufficient feature extraction ability when dealing with scale-changing targets in the remote sensing image target detection task, and proposes a remote sensing image target detection method based on multi-scale feature reuse. An efficient multi-scale feature sampling module is designed to help the feature extraction network obtain multi-scale information of the target, and then an efficient multi-scale feature extraction network is constructed through a hierarchical reuse architecture strategy, thereby obtaining a remote sensing image target detection model based on multi-scale feature reuse. In the feature extraction stage, this method can effectively improve the target detection model's ability to perceive multi-dimensional information of scale-changing targets through channel segmentation and dynamic convolution, and help the model capture more valuable multi-scale target feature information about potential target areas, thereby more accurately understanding the image content, and correctly identifying and locating potential targets in remote sensing images.
[0110] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0111] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A remote sensing image target detection method based on multi-scale feature reuse, characterized in that: include: Inputting the acquired remote sensing image into a trained remote sensing image target detection model, and outputting potential targets in the remote sensing image; The remote sensing image target detection model includes a backbone feature extraction network, a feature fusion network and a feature decoupling head; The step of inputting the acquired remote sensing image into a trained remote sensing image target detection model and outputting potential targets in the remote sensing image specifically includes: Performing feature extraction on the input remote sensing image through the backbone feature extraction network to obtain a feature map; Performing a fusion process on the feature map through the feature fusion network to obtain a fused feature map; Decoupling the fused feature map through the feature decoupling head to obtain the position and category of the potential target area of the feature map and output it; The backbone feature extraction network is built based on a multi-scale feature sampling module; The multi-scale feature sampling module includes a channel segmentation module, a channel shuffling module, a feature splicing module, a dynamic convolution module and a point convolution module; wherein: The channel segmentation module is used to segment the channel dimension of the input feature map according to a preset ratio to obtain multiple sub-feature maps; the preset ratio is 1:2, 1:4 and 1:8; The channel shuffling module is used to exchange the channel order of the multiple sub-feature maps; The feature splicing module is used to splice the multiple sub-feature maps after exchanging the channel order to obtain a multi-scale feature map with the same shape as the input feature map; The dynamic convolution module is used to extract multi-scale features from the potential target area of the multi-scale feature map; The point convolution module is used to adjust the channel dimension of the output feature map.
2. The remote sensing image target detection method based on multi-scale feature reuse according to claim 1 is characterized in that: The backbone feature extraction network is composed of a plurality of stacked convolutional modules.
3. The remote sensing image target detection method based on multi-scale feature reuse according to claim 2 is characterized in that: Each of the convolution modules includes a basic convolution operator, a normalization module and an activation function; wherein: The basic convolution operator is used to perform pixel-by-pixel calculations on the channel information of the input remote sensing image to achieve feature extraction; The normalization module is used to normalize the calculated channel results to a standard range; The activation function is used to activate and inhibit the feature matrix of the potential target area.
4. The remote sensing image target detection method based on multi-scale feature reuse according to claim 1 is characterized in that: The feature decoupling head includes a basic convolution module and a prediction function; The basic convolution module is used to process the shape and channel dimension of the fused feature map; The prediction function is used to predict the position and category of the potential target area of the feature map and output the result.
5. The remote sensing image target detection method based on multi-scale feature reuse according to claim 1 is characterized in that: The focus loss, rotation frame intersection-over-union loss and cross entropy loss are used to train the remote sensing image target detection model for the remote sensing image target detection task; specifically expressed as: Among them, y represents the target true value label; Represents the prediction result of the remote sensing image target detection model; Loss represents the total loss used in the training process; FocalLoss represents the focal loss, which is used for the classification prediction branch of the remote sensing image target detection task; RotatedIoULoss represents the rotated box intersection-over-union loss, which is used to calculate the distance between the predicted box and the target true value label corresponding to the input remote sensing image.
