An optical remote sensing image target detection system and method based on frequency domain feature mining

By combining the Swin-Transformer and frequency domain feature enhancement network, an optical remote sensing image target detection system based on frequency domain feature mining solves the problem of high-frequency spatial detail loss in remote sensing images, and improves the accuracy of target detection and the detection effect of dense small targets in remote sensing images.

CN117593640BActive Publication Date: 2026-11-20BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311560406.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2026-11-20
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

Existing deep learning algorithms suffer from high-frequency spatial detail loss in remote sensing images, especially in the detection of dense small targets, resulting in low detection accuracy.

Method used

An optical remote sensing image target detection system based on frequency domain feature mining is adopted. It combines the Swin-Transformer backbone network, multi-scale feature fusion network, frequency domain feature construction module and frequency-spatial domain feature fusion module. The frequency domain feature enhancement network mines key spatial detail features and fuses them with spatial features to improve detection accuracy.

Benefits of technology

It effectively reduces the loss of high-frequency spatial details, improves the accuracy of target detection in remote sensing images, especially the detection of dense small targets, and enhances the accuracy and robustness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593640B_ABST
    Figure CN117593640B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of optical remote sensing image imaging technology, and particularly relates to an optical remote sensing image target detection system and method based on frequency domain feature mining. The system is composed of two paths, which are respectively a spatial domain branch and a frequency domain branch. The method designs a frequency domain branch applied to remote sensing image target detection, adopts DCT transformation to construct frequency domain features, and designs a unique frequency domain feature reinforcement network module mixed with convolution and Transformer. The method designs a unique frequency domain-spatial domain feature fusion module, effectively realizes the fusion of spatial domain features and frequency domain features, and achieves the effect of supplementing important spatial detail features missing in spatial domain features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of optical remote sensing image imaging technology, specifically relating to an optical remote sensing image target detection system and method based on frequency domain feature mining. Background Technology

[0002] With the continuous development and advancement of remote sensing technology, the resolution and coverage of remote sensing image data collected by satellite, aerial, and drone remote sensing platforms are constantly improving, making remote sensing image analysis an important technical means of acquiring surface information. Target detection is a crucial part of remote sensing image processing, enabling the selection of targets of interest from large amounts of remote sensing image data. This reduces the time and cost of manual processing, aids in rational planning and decision-making in areas such as urban planning and land use, and provides effective data support for environmental monitoring.

[0003] In recent years, with the rapid development of deep learning, object detection algorithms based on convolutional neural networks (CNNs) and transformers have achieved excellent results, largely overcoming the shortcomings of traditional methods in effectively matching targets with manually defined features. However, for targets in remote sensing images, the scene in which they exist contains certain prior semantic information. Because CNNs perform poorly in applying global information, they cannot effectively utilize this prior information, which limits the further application of CNN-based object detection algorithms in remote sensing image detection. While transformers can effectively utilize long-range global information, their response to local targets is weak, resulting in poor performance for targets with relatively small scales.

[0004] Frequency domain analysis of these two main types of methods reveals that the Transformer, being a low-pass filter, leads to the loss of high-frequency spatial details. Dense targets and small objects in an image, as well as areas with dramatic changes such as edges, are high-frequency information. Therefore, Transformer-based detection methods perform poorly on small targets and have low localization accuracy. While CNNs possess high-pass characteristics, as the network deepens, downsampling gradually reduces image resolution, also resulting in the loss of some high-frequency spatial details.

[0005] Based on the above introduction and analysis, traditional methods based on convolutional neural networks and Transformers can be generally described as suffering from the unavoidable loss of high-frequency spatial details. Reducing the loss of high-frequency spatial details and improving the information rate of effective information is a pressing issue that needs to be addressed in this field to improve detection performance, especially for densely packed small targets. Summary of the Invention

[0006] The technical problem solved by this invention is to overcome the shortcomings of the prior art and propose an optical remote sensing image target detection system and method based on frequency domain feature mining, so as to solve the problem of loss of key high-frequency spatial detail features in existing deep learning target detection algorithms, and improve the accuracy of optical remote sensing image target detection, especially the detection of dense small targets.

[0007] The technical solution of this invention is:

[0008] An optical remote sensing image target detection system based on frequency domain feature mining is disclosed. The detection system includes an image preprocessing module, a Swin-Transformer backbone network module, a multi-scale feature fusion network module, a frequency domain feature construction module, a frequency domain feature enhancement network module, a frequency domain-spatial domain feature fusion module, and an R-CNN detection head network module.

[0009] The image preprocessing module is used to input the image to be detected into the Swin-Transformer backbone network module in RGB format; it is also used to input the image to be detected into the frequency domain feature construction module in YCbCr format;

[0010] The Swin-Transformer backbone network module is used to receive the RGB format image to be detected input by the image preprocessing module, extract four sets of spatial features of different scales from the received RGB format image to be detected step by step, and output the four sets of spatial features of different scales to the multi-scale feature fusion network module.

[0011] Extracting four sets of spatial features at different scales from the RGB format image to be detected step by step refers to processing the RGB format image to be detected x input to the image preprocessing module. rgb Feature extraction is performed using the Swin-Transformer backbone feature extraction network, with the side length of the first stage output of the Swin-Transformer set to x. rgb The F1 score is obtained from a quarter of the spatial feature map; the side length of the second-stage output is x. rgb One-eighth of the spatial feature map F2; the side length of the third-stage output is x. rgb One-sixteenth of the spatial feature map F3; the side length of the output of the fourth (final) stage is x. rgb The spatial feature map F4 is one-thirty-second of the original; that is, the extraction result is four sets of spatial features at different scales.

[0012] The multi-scale feature fusion network module is used to receive four sets of spatial features of different scales input from the Swin-Transformer backbone network module, fuse the four sets of spatial features of different scales step by step to obtain five sets of spatial fusion features of different scales, and output the five sets of spatial fusion features of different scales to the frequency domain-spatial feature fusion module.

[0013] The fusion of five sets of spatial features at different scales refers to the fusion of four sets of spatial features F at different scales input to the Swin-Transformer backbone network module. i Four sets of spatial fusion features X, with the same size as the input, are obtained by processing a four-input, five-output feature pyramid with additional downsampling. i For i = 1, 2, 3, 4, the downsampling branch yields a size of x. rgb One-sixty-fourth of the spatial fusion feature map X5, that is, the fusion result is five sets of spatial fusion features X at different scales. i ;

[0014] Preferably, the number of basic block layers in the four stages of the Swin-Transformer is 2, 2, 6, and 2 respectively;

[0015] The frequency domain feature construction module is used to receive the YCbCr format image to be detected input by the image preprocessing module, perform block discrete cosine transform on the received YCbCr format image to be detected channel by channel to obtain the spectrum, expand the obtained spectrum into vector form and merge to form artificial frequency domain features, and output the obtained artificial frequency domain features to the frequency domain feature enhancement network module.

[0016] The method for constructing artificial frequency domain features involves the following steps:

[0017] Step S1: Obtain the image to be detected in YCbCr format x ycbcr ;

[0018] Step S2: For x respectively ycbcr The three channels are subjected to an 8x8 discrete cosine transform to obtain the block spectrum. c represents three different channels, and H is the side length of the input image;

[0019] Step S3: Expand each 8*8 block in a zigzag pattern to obtain a 64-dimensional vector;

[0020] Step S4: Perform the same operation as step S3 to obtain three sets of side lengths. Artificial frequency domain features with a depth of 64

[0021] The frequency domain feature enhancement network module is used to receive artificial frequency domain features input from the frequency domain feature construction module, mine key spatial detail features in the received artificial frequency domain features frequency by frequency and space by space to obtain enhanced frequency domain features, and output the enhanced frequency domain features to the frequency domain-spatial domain feature fusion module.

[0022] The method for extracting enhanced frequency domain features by mining spatial detail features in the frequency domain consists of the following steps:

[0023] Step S1: Obtain artificial frequency domain features

[0024] Step S2: For Each group in the dataset is filtered using a filter to obtain... And perform downsampling to obtain a side length of k

[0025] Step S3: Take The image of the first 32 channels is unfolded into k 2 A 32-dimensional vector is used as input to the Transformer layer f as low-frequency terms. trl The processing yields 32 k elements with the same size as the input. 2 A dimensional vector; take The image of the middle and rear 32 channels is unfolded into k 2 A 32-dimensional vector is used as input to the Transformer layer f as high-frequency terms. trh The processing yields 32 k elements with the same size as the input. 2 A dimensional vector;

[0026] Step S4: Concatenate the results of step S3 to obtain 64 k. 2 A 3D vector is used as the input for the full-frequency terms to the Transformer layer f. trf The processing yields 64 k elements with the same size as the input. 2 The vector of dimension k is converted back to a tensor of length k and depth 64, which is the frequency domain feature enhanced by frequency-wise.

[0027] Step S5: ... Expanded into a 64-dimensional vector based on pixel position, with a total of k... 2 One, as a spatial term, is input into the Transformer layer f. trs Spatial enhancement processing is performed to obtain k with the same size as the input. 2 This involves converting a 64-dimensional vector back into a tensor of length k and depth 64, representing a spatially enhanced frequency domain feature.

[0028] Step S6: [The sentence is incomplete and requires more context to be translated accurately.] Upsampling and restoring back to the side length is A tensor of depth 64, and its corresponding The enhanced frequency domain features of each channel are obtained by element-wise summation of the tensors.

[0029] Step S7: Enhance the frequency domain characteristics of each channel By splicing along the depth, we get a side length of A tensor of depth 192, which is the final enhanced frequency domain feature X. F ;

[0030] Preferably, the filter obtained in step S2 is derived from the basis filter f. base and learnable channel filter f i The structure consists of a base filter matrix, through which all three channels are first processed; the learnable channel filters are vectors, with each of the three channels corresponding to its own channel filter; the filtering formula is expressed as:

[0031]

[0032]

[0033] Preferably, the frequency-enhanced frequency domain features obtained in step S4 are... The formula is as follows:

[0034]

[0035] Wherein, low(·) means taking the first 32 layers to obtain low-frequency terms; high(·) means obtaining high-frequency terms; Concat(·) means concatenating;

[0036] Preferably, the spatially enhanced frequency domain features are obtained in step S5. The formula is as follows:

[0037]

[0038] Among them, spatial(·) indicates expansion into spatial terms;

[0039] Preferably, in step S6, the enhanced frequency domain features of each channel are obtained. The formula is as follows:

[0040]

[0041] Preferably, the enhanced frequency domain feature X obtained in step S7 is... F The formula is as follows:

[0042]

[0043] The frequency-spatial feature fusion module is used to receive five sets of spatial fusion features of different scales input from the multi-scale feature fusion network module and enhanced frequency features input from the frequency-domain feature enhancement network module. The enhanced frequency features are fused with the spatial fusion features of different scales to obtain five sets of dual-domain fusion features of different scales, and the five sets of dual-domain fusion features of different scales are output to the R-CNN detection head network module.

[0044] The frequency-spatial feature fusion module fuses each set of spatial fused features and enhanced frequency domain features using the following steps:

[0045] Step S1: Obtain spatial fusion features and enhanced frequency domain features X F And expand the two into (H) 2 (C) and (k) 2 The form of C) is still written as and X F ;

[0046] Step S2: Calculate the spatial attention process quantity

[0047] Step S3: Calculate the channel attention process quantity

[0048] Step S4: Calculate the mutual attention results of spatial features

[0049] Step S5: Calculate the mutual attention results of frequency domain features

[0050] Step S6: Use and Computational fusion results That is, the dual-domain fusion feature;

[0051] Preferably, in step S2 The calculation formula is:

[0052]

[0053] Where each W is a learnable matrix, × represents matrix multiplication, LN represents layer normalization, and sigmoid represents the Sigmund function;

[0054] Preferably, in step S3 The calculation formula is:

[0055]

[0056] Where ↓ indicates that the preceding quantity is downsampled first;

[0057] Preferably, in step S4 The calculation formula is:

[0058]

[0059] Preferably, in step S5 The calculation formula is:

[0060]

[0061] Preferably, in step S6 The calculation formula is:

[0062]

[0063]

[0064] Among them, f conv T represents a convolutional layer. rgb T f These represent the two adjustment matrices obtained by convolution, where ↑ indicates that the preceding values ​​are upsampled first.

[0065] The R-CNN detection head network module is used to receive five sets of dual-domain fusion features of different scales input from the frequency-spatial feature fusion module, process the five sets of dual-domain fusion features of different scales to obtain detection results containing categories and prediction boxes, and output detection results containing categories and prediction boxes.

[0066] The R-CNN detection head network module calculates the final detection result from the input results. It contains only the remaining structure of the original Faster R-CNN, including the Region Proposal Network (RPN), RoI Pooling operation, and the detection network composed of fully connected networks.

[0067] A target detection method for optical remote sensing images based on frequency domain feature mining, the method comprising the following steps:

[0068] Step S1: The image preprocessing module performs basic preprocessing operations on the image to be detected and converts the processed image into RGB format for the Swin-Transformer backbone network module; at the same time, it converts the processed image into YCbCr format for the frequency domain feature construction module.

[0069] In step S2, the Swin-Transformer backbone network module extracts four sets of spatial features at different scales from the received RGB format image to be detected, and then outputs the four sets of spatial features at different scales to the multi-scale feature fusion network module.

[0070] Step S3: The multi-scale feature fusion network module receives four sets of spatial features at different scales, fuses them step by step according to the scale to obtain five sets of spatial fusion features at different scales, and then outputs the five sets of spatial fusion features at different scales to the frequency domain spatial feature fusion module.

[0071] Step S4: The frequency domain feature construction module receives the YCbCr format image to be detected, performs block discrete cosine transform on the received YCbCr format image to be detected channel by channel to obtain the spectrum, expands the spectrum into vector form and merges them to form artificial frequency domain features, and outputs the obtained artificial frequency domain features to the frequency domain feature enhancement network module.

[0072] Step S5: The frequency domain feature enhancement network module receives artificial frequency domain features, mines key spatial detail features in the received artificial frequency domain features frequency by frequency and space by space to obtain enhanced frequency domain features, and outputs the enhanced frequency domain features to the frequency domain-spatial domain feature fusion module.

[0073] Step S6: The frequency domain-spatial domain feature fusion module receives five sets of spatial domain fusion features and enhanced frequency domain features at different scales. It then fuses the enhanced frequency domain features with the spatial domain fusion features at different scales to obtain five sets of dual-domain fusion features at different scales, and outputs the five sets of dual-domain fusion features at different scales to the R-CNN detection head network module.

[0074] In step S7, the R-CNN detection head network module receives five sets of dual-domain fusion features at different scales, processes the five sets of dual-domain fusion features at different scales to obtain detection results containing categories and prediction boxes, and outputs the final detection results containing categories and prediction boxes.

[0075] The visible light remote sensing image target detection method based on frequency domain mining provided by this invention has the following significant advantages compared with existing technologies:

[0076] (1) The spatial branch adopts a hybrid structure of Swin-Transformer and FPN, which has both the local feature representation ability of CNN and the global information capture ability of Transformer, and can obtain a good spatial feature.

[0077] (2) Frequency domain features are constructed using images in YCbCr format. High and low frequency information in the Y channel of the YCbCr image can be significantly distinguished. The spectrum obtained by DCT transformation is entirely in the real number domain and has a clear physical meaning. Low frequency components are concentrated in the upper left corner of the spectrum, and high frequency information is concentrated in the lower right corner. A frequency band vector with gradually increasing frequency with position can be obtained by zigzag expansion, which has significant semantics. Using 8*8 block DCT transformation can effectively save computing resources.

[0078] (3) In the frequency domain feature enhancement network module, filtering can eliminate some useless information first, which is conducive to emphasizing key details. Since the frequency terms and spatial terms obtained through the spectrum are abstract, multi-level Transformer processing can effectively capture the abstract semantic information in the spectrum and achieve better capture of spatial details.

[0079] (4) The frequency domain-spatial domain feature fusion module is built based on the mutual attention mechanism, which can make the features of the two domains first align with the similar features of the two domains and notice the different features of the two domains. After fusion, the similarity and difference can be compensated. Compared with the conventional fusion method, it also reduces the problem of losing key features in the fusion.

[0080] (5) Based on the basic structure of Faster R-CNN, this method proposes a detection structure that combines convolutional networks and Transformers, consisting of two paths: a spatial branch and a frequency branch. This method designs a frequency branch for target detection in remote sensing images, using DCT transform to construct frequency domain features, and designs a unique frequency domain feature enhancement network module that combines convolutional and Transformer technologies. This method also designs a unique frequency-spatial feature fusion module, effectively fusing spatial and frequency features to supplement important spatial detail features missing in the spatial domain. This method designs a hybrid network of convolutional and Transformers with two paths. Compared with existing target detection algorithms based on convolutional and Transformers, this network combines the ability of CNNs to detect small targets with the ability of Transformers to capture global contextual information. This method transforms the extraction process of key detail features from the spatial domain to the frequency domain, allowing easily lost spatial detail features to be clearly extracted in the frequency domain. This method designs a frequency-spatial feature fusion module, effectively reducing the problem of feature degradation during feature fusion. Attached Figure Description

[0081] Figure 1 This is a schematic diagram of the system composition of the present invention;

[0082] Figure 2 This is a schematic diagram of the spatial domain feature branch structure;

[0083] Figure 3 A schematic diagram of frequency domain features constructed for frequency domain branching;

[0084] Figure 4 A schematic diagram illustrating the enhancement of frequency domain features through frequency domain branching;

[0085] Figure 5 This is a schematic diagram of the frequency domain-spatial domain feature fusion module. Detailed Implementation

[0086] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0087] Example

[0088] A system and method for target detection in optical remote sensing images based on frequency domain feature mining, comprising the following steps:

[0089] The first step is to input the image to be detected into the Swin-Transformer backbone network in RGB format, extract four sets of spatial features at different scales from the image to be detected in RGB format, and then input the four sets of spatial features at different scales into the FPN network. The four sets of spatial features at different scales are fused together to obtain five sets of spatial features at different scales.

[0090] The improvement of this method mainly lies in the feature acquisition method. Formally, it adopts a dual-path structure for feature extraction, such as... Figure 1 As shown, the input image to be detected, in RGB format, is fed into a hybrid network of the Swin-Transformer backbone and FPN to extract multi-scale RGB spatial features. Another branch converts the image into YCbCr format using an 8x8 block DCT transform to obtain frequency domain features. These features are then enhanced using a frequency domain feature enhancement module that combines Transformer and convolution to extract spatial details that can be clearly extracted in the frequency domain. Finally, a frequency-space feature fusion module efficiently fuses the enhanced frequency domain features and RGB spatial features to obtain the final extracted features. This feature module then manages the Faster R-CNN's RPN and detection head network to complete the entire detection process.

[0091] In this method, the spatial branching structure consisting of Swin-Transformer and FPN is shown in the appendix. Figure 2 As shown, the number of basic block layers in the four stages of the Swin-Transformer are 2, 2, 6, and 2 respectively; the FPN is a 4-input, 5-output structure with downsampling, inputting the four sets of feature maps extracted by the four stages of the Swin-Transformer, whose sizes are respectively the original image's... Five sets of RGB spatial feature maps at different scales were obtained after processing.

[0092] This method involves two steps to mine frequency domain features: first, constructing the frequency domain features, and second, enhancing the frequency domain features. The flowchart for constructing the frequency domain features is attached. Figure 3As shown, firstly, the image of size (H, W) is encoded using the YCbCr encoding format. The image is then divided into 8*8 blocks, and each block of each channel undergoes a Discrete Cosine Transform (DCT). The transformed spectral blocks are then unfolded into 64-dimensional vectors in a zigzag pattern. Finally, the vectors converted from all blocks of each channel are concatenated to form the frequency domain feature. That is, the size is There are 3 tensors in total. The reason for using a zigzag shape to expand the spectrum is that in the spectrum obtained after the image undergoes discrete cosine transform, low-frequency information is concentrated in the upper left corner and high-frequency information is concentrated in the lower right corner. The zigzag expansion makes the frequency band of each element in the resulting vector closest to the frequency band of its adjacent elements. That is, the frequency of the corresponding frequency band of the element in the vector changes monotonically, which is helpful for distinguishing between high and low frequencies.

[0093] After completing the above steps of manually constructing frequency domain features, a frequency domain feature enhancement module will be used to mine important detailed features. The module structure is shown in the attached figure. Figure 4 As shown. The frequency domain feature maps of the three channels are processed separately in this process. First, to better focus on the detailed features in the spectrum, a filter is used to filter the frequency domain features, the purpose of which is to filter out useless information. This filter is learnable and uses a fixed matrix as the basis filter f. base and a learnable vector filter f i Concatenated. Since it is in the frequency domain, spatial domain convolution filtering can be processed using frequency domain multiplication, expressed as:

[0094]

[0095]

[0096] Here, ⊙ represents element-wise multiplication, and i corresponds to the three channels Y, Cb, and Cr. For matrices, element-wise multiplication means multiplying each channel by the matrix, while for vectors, it means multiplying each channel by the element at the corresponding vector position. The parameters of the learnable filter are obtained by convolution and adaptive average pooling of the input feature map. The size of the frequency domain feature map does not need to be too large; the filtered feature map can be reduced to a size of (k, k), where k can be of equal side length (16 or 32). The vector is divided according to the form of each previous spectral vector, with the first 32 elements forming a low-frequency term vector (denoted as low(·)) and the last 32 elements forming a high-frequency term vector (denoted as high(·)). A Transformer layer f is then applied to the high and low frequencies respectively. trl and f trh This processing ensures that information from different frequency bands is enhanced on an equal footing. The results are then concatenated back into the original 64-dimensional full-spectrum vector, and finally processed using a Transformer layer f. trfThe process yields enhanced frequency domain features that strengthen the correlation between high and low frequencies. Thus, the enhancement of frequency domain features is completed frequency-by-frequency, resulting in... Since each patch is interconnected, the frequency domain features are expanded into k-values ​​for each channel. 2 A dimensional vector, consisting of elements at the same position in each patch, is obtained by reusing the Transformer layer f. trs Processing enhances the frequency domain features at the spectral space level, resulting in... As shown in the figure:

[0097]

[0098]

[0099] The enhanced features are then upsampled to their original size and added to the original frequency domain features. Finally, the results from the three channels are concatenated to obtain the enhanced frequency domain feature X, which has extracted important detail features. F , is represented as:

[0100]

[0101]

[0102] After obtaining the RGB spatial domain features and enhanced frequency domain features, they need to be fused to supplement the lost important spatial detail features in the RGB spatial domain features. Since these two feature types differ significantly in form and origin, and fusion methods such as addition or convolution can easily lead to further loss of detail features, this method designs a frequency domain spatial feature fusion module, the structure of which is shown in the attached figure. Figure 5 As shown. Before processing with the module, the frequency domain features are first interpolated to the same size as the RGB spatial domain features. Since the features in the spatial and frequency domains are very likely to overlap, the process of supplementing detailed features can be described as finding commonalities and reserving differences. Therefore, what we need to do is align the same features and supplement the different features. Thus, the first stage in the module is to use a mutual attention mechanism to match the two feature maps. Since the channels of the frequency domain features correspond to different frequency bands, in order to focus on the spatial detailed features of different frequencies, the parameters (matrix, vector) for channel mutual attention are provided by the frequency domain features. The spatial domain features themselves represent the mapping relationship between the features and the target in space. Therefore, the parameters for the spatial mutual attention mechanism are provided by the spatial domain features. After obtaining the matched spatial and frequency domain features through the mutual attention mechanism, the final feature map is obtained by calculating the fusion matrix according to the calculation process shown in the figure. Since there are five sets of RGB spatial features, this method uses five frequency domain spatial feature fusion modules. During the process, all matrices W and vectors v are learnable and are calculated from the corresponding feature maps through convolution operations. Afterwards, the subsequent steps of Faster R-CNN are completed to finish the detection.

[0103] Some spatial details that are easily lost in the spatial domain can be explicitly captured in the frequency domain. This method considers mining effective frequency domain features to supplement spatial detail features that are beneficial for detection but are easily lost in the spatial domain.

[0104] This invention provides a remote sensing image target detection method based on Swing-Transformer and frequency domain feature mining. The method adopts the basic Faster R-CNN detection architecture. In order to simultaneously possess the local response capability of convolution and the ability of Transformer to capture global contextual information, a hybrid network structure of Transformer and convolutional neural network is used to extract features for detection.

[0105] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A target detection system for optical remote sensing images based on frequency domain feature mining, characterized in that: The detection system includes an image preprocessing module, a Swin-Transformer backbone network module, a multi-scale feature fusion network module, a frequency domain feature construction module, a frequency domain feature enhancement network module, a frequency domain-spatial domain feature fusion module, and an R-CNN detection head network module. The image preprocessing module is used to input the image to be detected into the Swin-Transformer backbone network module in RGB format; it is also used to input the image to be detected into the frequency domain feature construction module in YCbCr format; The Swin-Transformer backbone network module is used to receive the RGB format image to be detected input by the image preprocessing module, extract four sets of spatial features of different scales from the received RGB format image to be detected step by step, and output the four sets of spatial features of different scales to the multi-scale feature fusion network module. The multi-scale feature fusion network module is used to receive four sets of spatial features of different scales input from the Swin-Transformer backbone network module, fuse the four sets of spatial features of different scales step by step to obtain five sets of spatial fusion features of different scales, and output the five sets of spatial fusion features of different scales to the frequency domain-spatial feature fusion module. The frequency domain feature construction module is used to receive the YCbCr format image to be detected input by the image preprocessing module, perform block discrete cosine transform on the received YCbCr format image to be detected channel by channel to obtain the spectrum, expand the obtained spectrum into vector form and merge to form artificial frequency domain features, and output the obtained artificial frequency domain features to the frequency domain feature enhancement network module. The frequency domain feature enhancement network module is used to receive artificial frequency domain features input from the frequency domain feature construction module, mine key spatial detail features in the received artificial frequency domain features frequency by frequency and space by space to obtain enhanced frequency domain features, and output the enhanced frequency domain features to the frequency domain-spatial domain feature fusion module. The frequency-spatial feature fusion module is used to receive five sets of spatial fusion features of different scales input from the multi-scale feature fusion network module and enhanced frequency features input from the frequency-domain feature enhancement network module. The enhanced frequency features are fused with the spatial fusion features of different scales to obtain five sets of dual-domain fusion features of different scales, and the five sets of dual-domain fusion features of different scales are output to the R-CNN detection head network module. The R-CNN detection head network module is used to receive five sets of dual-domain fusion features of different scales input from the frequency-spatial feature fusion module, process the five sets of dual-domain fusion features of different scales to obtain detection results containing categories and prediction boxes, and output detection results containing categories and prediction boxes.

2. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 1, characterized in that: In the Swin-Transformer backbone network module, the step-by-step extraction of four sets of spatial features at different scales from the RGB format image to be detected refers to processing the RGB format image to be detected x input from the image preprocessing module. rgb Feature extraction is performed using the Swin-Transformer backbone feature extraction network, with the side length of the first stage output of the Swin-Transformer set to x. rgb The F1 score is obtained from a quarter of the spatial feature map; the side length of the second-stage output is x. rgb One-eighth of the spatial feature map F2; the side length of the third-stage output is x. rgb One-sixteenth of the spatial feature map F3; the side length of the fourth stage output is x. rgb The spatial feature map F4 is one-thirty-second of the original; that is, the extraction result is four sets of spatial features at different scales.

3. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 1 or 2, characterized in that: In the multi-scale feature fusion network module, the fusion of five sets of spatial fusion features at different scales refers to fusing the four sets of spatial features F at different scales input from the Swin-Transformer backbone network module. i Four sets of spatial fusion features X, with the same size as the input, are obtained by processing a four-input, five-output feature pyramid with additional downsampling. i For i = 1, 2, 3, 4, the downsampling branch yields a size of x. rgb One-sixty-fourth of the spatial fusion feature map X5, that is, the fusion result is five sets of spatial fusion features X at different scales. i .

4. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 3, characterized in that: The method for constructing artificial frequency domain features in the frequency domain feature construction module includes the following steps: Step S11: Obtain the image to be detected in YCbCr format x ycbcr ; Step S12: For x respectively ycbcr The three channels are subjected to an 8x8 discrete cosine transform to obtain the block spectrum. c represents three different channels, and H is the side length of the input image; Step S13: Expand each 8*8 block in a zigzag pattern to obtain a 64-dimensional vector; Step S14: Perform the operation on the three channel spectra in step S3 to obtain three sets of side lengths as follows. Artificial frequency domain features with a depth of 64 5. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 1, characterized in that: The method for extracting enhanced frequency domain features by mining spatial detail features in the frequency domain in the frequency domain feature enhancement network module comprises the following steps: Step S21: Obtain artificial frequency domain features Step S22: For Each group in the dataset is filtered using a filter to obtain... And perform downsampling to obtain a side length of k Step S23: Take The image of the first 32 channels is unfolded into k 2 A 32-dimensional vector is used as input to the Transformer layer f as low-frequency terms. trl The processing yields 32 k elements with the same size as the input. 2 A dimensional vector; take The image of the middle and rear 32 channels is unfolded into k 2 A 32-dimensional vector is used as input to the Transformer layer f as high-frequency terms. trh The processing yields 32 k elements with the same size as the input. 2 A dimensional vector; Step S24: Concatenate the results of step S23 to obtain 64 k. 2 A 3D vector is used as the input for the full-frequency terms to the Transformer layer f. trf The processing yields 64 k elements with the same size as the input. 2 A vector of dimension k, and restored back to a tensor form with side length k and depth 64, i.e., frequency domain features enhanced per frequency. Step S25: ... Expanded into a 64-dimensional vector based on pixel position, with a total of k... 2 One, as a spatial term, is input into the Transformer layer f. trs Perform space-wise enhancement to obtain k with the same size as the input. 2 This involves converting a 64-dimensional vector back into a tensor of length k and depth 64, representing a spatially enhanced frequency domain feature. Step S26: ... Upsampling and restoring back to the side length is A tensor of depth 64, and its corresponding The enhanced frequency domain features of each channel are obtained by element-wise summation of the tensors. Step S27: Enhance the frequency domain characteristics of each channel By splicing along the depth, we get a side length of A tensor of depth 192, which is the final enhanced frequency domain feature X. F .

6. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 5, characterized in that: In step S22, the filter is composed of the base filter f base and learnable channel filter f i The structure consists of a base filter matrix, through which all three channels are first processed; the learnable channel filters are vectors, with each of the three channels corresponding to its own channel filter; the filtering formula is expressed as: In step S24, the frequency domain features are enhanced frequency-by-frequency. The formula is as follows: Wherein, low(·) means taking the first 32 layers to obtain low-frequency terms; high(·) means obtaining high-frequency terms; Concat(·) means concatenating; In step S25, spatially enhanced frequency domain features are obtained. The formula is as follows: Among them, spatial(·) indicates expansion into spatial terms; In step S26, the enhanced frequency domain features of each channel The formula is as follows: In step S27, the frequency domain feature X is enhanced. F The formula is as follows:

7. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 6, characterized in that: In the frequency-spatial feature fusion module, the method for fusing each group of spatial fused features and enhanced frequency domain features is as follows: Step S31: Obtain spatial fusion features and enhanced frequency domain features X F And expand the two into (H) 2 ,C) and (k 2 In the form of C), denoted as and X F ; Step S32: Calculate the spatial attention process quantity Step S33: Calculate the channel attention process quantity Step S34: Calculate the mutual attention results of spatial features Step S35: Calculate the mutual attention results of frequency domain features Step S36: Use and Computational fusion results That is, the dual-domain fusion feature.

8. The optical remote sensing image target detection system based on frequency domain feature mining according to claim 7, characterized in that: In step S32 The calculation formula is: Where each W is a learnable matrix, × represents matrix multiplication, LN represents layer normalization, and sigmoid represents the Sigmund function; In step S33 The calculation formula is: Where ↓ indicates that the preceding quantity is downsampled first; In step S34 The calculation formula is: In step S35 The calculation formula is: In step S36 The calculation formula is: Among them, f conv T represents a convolutional layer. rgb ,T f This represents the two adjustment matrices obtained from the convolution, where ↑ indicates that the preceding values ​​are upsampled first.

9. A target detection method for optical remote sensing images based on frequency domain feature mining, characterized in that... The steps of this method include: Step S1: The image preprocessing module performs basic preprocessing operations on the image to be detected and converts the processed image into RGB format for the Swin-Transformer backbone network module; at the same time, it converts the processed image into YCbCr format for the frequency domain feature construction module. In step S2, the Swin-Transformer backbone network module extracts four sets of spatial features at different scales from the received RGB format image to be detected, and then outputs the four sets of spatial features at different scales to the multi-scale feature fusion network module. Step S3: The multi-scale feature fusion network module receives four sets of spatial features at different scales, fuses them step by step according to the scale to obtain five sets of spatial fusion features at different scales, and then outputs the five sets of spatial fusion features at different scales to the frequency domain spatial feature fusion module. Step S4: The frequency domain feature construction module receives the YCbCr format image to be detected, performs block discrete cosine transform on the received YCbCr format image to be detected channel by channel to obtain the spectrum, expands the spectrum into vector form and merges them to form artificial frequency domain features, and outputs the obtained artificial frequency domain features to the frequency domain feature enhancement network module. Step S5: The frequency domain feature enhancement network module receives artificial frequency domain features, mines key spatial detail features in the received artificial frequency domain features frequency by frequency and space by space to obtain enhanced frequency domain features, and outputs the enhanced frequency domain features to the frequency domain-spatial domain feature fusion module. Step S6: The frequency domain-spatial domain feature fusion module receives five sets of spatial domain fusion features and enhanced frequency domain features at different scales. It then fuses the enhanced frequency domain features with the spatial domain fusion features at different scales to obtain five sets of dual-domain fusion features at different scales, and outputs the five sets of dual-domain fusion features at different scales to the R-CNN detection head network module. In step S7, the R-CNN detection head network module receives five sets of dual-domain fusion features at different scales, processes the five sets of dual-domain fusion features at different scales to obtain detection results containing categories and prediction boxes, and outputs the final detection results containing categories and prediction boxes.

Citation Information

Patent Citations

  • SAR image recognition method based on fusion frequency domain and spatial domain network model

    CN112926457A

  • Remote sensing image semantic segmentation method based on double-branch feature fusion

    CN115797931A