Aerial image target detection method based on feature enhancement network

By adopting the regional Transformer-based feature extraction enhancement network and the multi-level weighted feature fusion network in the aerial image target detection technology, the problems of high computing resource consumption and poor adaptability in the existing technology are solved, and more efficient feature extraction and multi-scale are achieved. Target detection improves the accuracy and real-time performance of detection.

CN118799753APending Publication Date: 2024-10-18NORTH CHINA UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793486.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing aerial image target detection technology has shortcomings such as high computational resource consumption, sensitivity to illumination changes, high computational complexity, poor adaptability, and over-fitting risk in key steps such as candidate area generation, feature extraction, and target classification, resulting in accurate detection. The performance and real-time performance are insufficient, especially when dealing with large-scale and complex scenes.

Method used

A feature extraction enhancement network based on the regional Transformer attention mechanism is used. Part of the full convolution operation is replaced by the perceptual enhancement module of the shifted region Transformer idea, and a multi-level weighted multi-scale feature fusion network is constructed, and introduced into the bounding box regression loss function. Angle matching, combined with Siou-Soft-NMS algorithm to optimize candidate detection frame screening.

Benefits of technology

It significantly improves feature extraction capabilities and multi-scale target detection performance, enhances the ability to identify complex backgrounds and dense targets, improves detection accuracy and efficiency, and reduces computational overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799753A_ABST
    Figure CN118799753A_ABST
Patent Text Reader

Abstract

The invention discloses an aerial image target detection method based on a feature enhancement network, and the method comprises the steps: constructing a feature extraction enhancement network based on a region Transform attention mechanism, replacing the original partial full convolution operation with a perception enhancement module based on a shift region Transform thought in the feature extraction network, and carrying out the partial full convolution operation. A multi-scale feature fusion enhancement network based on multi-level weighting is constructed, a new feature fusion layer is added to a shallow layer of a feature fusion part, cross-layer connection is added between original feature input and output, and in a post-processing stage, a frame regression loss function of angle matching is introduced into a loss function of bounding box regression, so that a multi-scale feature fusion enhancement network is constructed. According to the method, the global perception capability of the model can be enhanced with relatively low calculation overhead, the detection performance of multi-scale targets is improved, and the recognition capability of the network on densely arranged and mutually shielded targets is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of aerial image target detection, and in particular to an aerial image target detection method based on a feature enhancement network. Background Art

[0002] In the current aerial image target detection technology, although the Selective Search method can use the local similarity and color information of the image to generate candidate regions of various scales and shapes, it consumes a lot of computing resources and is extremely sensitive to the choice of similarity measurement, which often leads to unstable quality of the generated region and affects the accuracy of subsequent detection. The shift region method detects targets through sliding window technology, but the fixed window size and step size are difficult to select, resulting in poor adaptability to targets, easy to miss small targets or generate redundant regions, and increase the burden of subsequent processing. The HOG feature is sensitive to illumination changes and has high computational complexity by calculating the pixel gradient direction histogram. The SIFT feature identifies key points and extracts local features. Although it has certain invariance to scale and rotation, its computational complexity is also high, and its performance is limited under extreme scale and rotation changes. The Adaboost-based classifier realizes target detection by iteratively training weak classifiers, but there is a risk of overfitting and the training time is long. As a binary classification model, SVM can find the best segmentation hyperplane in the feature space, but its training complexity is high and it is difficult to process large-scale data. The KNN method performs classification based on the categories of neighboring samples, but it is computationally intensive and sensitive to noise. Although the conditional random field, as a probabilistic graphical model, can consider the relationship between variables, its training complexity is also high and the model selection is difficult.

[0003] In summary, the existing aerial image target detection technology has many defects in the key steps of candidate region generation, feature extraction and target classification. These defects limit the practicality and efficiency of target detection technology, especially when processing large-scale and complex aerial images. Therefore, it is necessary to develop new target detection methods to overcome these defects and improve the accuracy and real-time performance of aerial image target detection.

[0004] To this end, a target detection method for aerial images based on feature enhancement network is proposed. Summary of the invention

[0005] The purpose of the present invention is to provide an aerial image target detection method based on a feature enhancement network to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for aerial image target detection based on a feature enhancement network, comprising the following steps: step one, constructing a feature extraction enhancement network based on a regional Transformer attention mechanism, and using a perception enhancement module based on the idea of ​​a shifted regional Transformer in the feature extraction network to replace part of the original full convolution operation, thereby enhancing the global perception ability of the model with lower computational overhead and improving the feature extraction ability of the network; step two, constructing a multi-scale feature fusion enhancement network based on multi-level weighting, adding a new feature fusion layer to the shallow layer of the feature fusion part, and adding a cross-layer connection between the original feature input and output to combine the additional original feature information and further complete the retention of effective information; step three, in the post-processing stage, introducing an angle matching box regression loss function in the loss function of the bounding box regression.

[0007] According to the above technical solution, the perception enhancement module based on the shifted region Transformer idea includes layer normalization, window region multi-head self-attention mechanism, shifted window region multi-head self-attention mechanism and multi-layer perceptron.

[0008] According to the above technical solution, the window area multi-head self-attention mechanism divides the feature map into several non-overlapping window areas, and independently performs self-attention operations in these local window areas. The shifted window area multi-head self-attention mechanism translates the feature map in different directions by half the window length to achieve interaction between cross-window features and enhance the ability to extract feature maps.

[0009] According to the above technical solution, step 2 also includes introducing a new supplementary connection to connect the main input and output.

[0010] According to the above technical solution, additional weights are introduced for each input feature in step 2, and weighted between each network layer.

[0011] According to the above technical solution, the Siou-Soft-NMS algorithm is introduced in step three, by dynamically adjusting the confidence of the bounding box instead of directly excluding the bounding box with a low Iou value.

[0012] According to the above technical solution, the Siou-Soft-NMS algorithm adopts the Gaussian weighting method

[0013] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention aims at the problem of highly complex backgrounds of aerial images and constructs a feature extraction enhancement network based on the regional Transformer attention mechanism. In the feature extraction network, a perception enhancement module based on the idea of ​​shifted regional Transformer is used to replace the original partial full convolution operation, thereby enhancing the global perception ability of the model with lower computational overhead, and thus more effectively extracting feature information from complex backgrounds.

[0014] Secondly, in order to solve the problem of diverse target scales in aerial images, a multi-scale feature fusion enhancement network based on multi-level weighting was constructed. The network fully captures and integrates target feature information of different scales through the network structure design of bidirectional cross-layer connection. At the same time, by introducing a multi-level weighting strategy in the feature fusion process, the key information that is crucial for target detection is further retained. Through the above methods, the feature fusion network significantly improves the representation ability of features of different scales, thereby improving the detection performance of multi-scale targets.

[0015] Thirdly, in order to address the problem of densely arranged targets in aerial images, the matching angle is introduced into the loss function of bounding box regression to improve the regression positioning accuracy of the detection frame. By further optimizing the candidate detection frame screening strategy, the network's recognition ability for densely arranged and mutually occluded targets is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0017] Figure 1 It is a schematic diagram of the overall structure of the present invention;

[0018] Figure 2 Schematic diagram of the structure of the perception enhancement module based on the shift region Transformer of the present invention;

[0019] Figure 3 is a schematic diagram of the self-attention operation of the present invention;

[0020] Figure 4 It is a structural schematic diagram of the feature fusion method of the present invention;

[0021] Figure 5 It is a schematic diagram of interlayer weighting of the present invention;

[0022] Figure 6 It is a schematic diagram of intra-layer weighting of the present invention;

[0023] Figure 7 It is a schematic diagram of a multi-level weighted pyramid of the present invention;

[0024] Figure 8 Schematic diagram of the frame regression method of the present invention introducing angle matching; DETAILED DESCRIPTION

[0025] 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.

[0026] See also Figure 1-8 , the present invention provides a technical solution: a method for aerial image target detection based on a feature enhancement network, comprising the following steps: step 1, constructing a feature extraction enhancement network based on a regional Transformer attention mechanism, using a perception enhancement module based on the idea of ​​a shifted regional Transformer in the feature extraction network to replace the original partial full convolution operation, thereby enhancing the global perception ability of the model with a lower computational overhead and improving the feature extraction ability of the network;

[0027] Since aerial images often have a wide imaging range, they often have very high image resolution. For the self-attention mechanism in the Transformer, its computational complexity is approximately proportional to the square of the input sequence length, which results in a huge computational burden for traditional Transformers when processing high-resolution large-size aerial images. To solve this problem, we introduced a Transformer module based on shifted regions in the previous CNN feature extraction network. The idea of ​​this module is not to perform self-attention operations on the entire image, but to decompose the image into several small window areas, perform self-attention calculations within these small window areas, and then perform attention operations between these window areas, thereby reducing the computational complexity.

[0028] Step 2. Feature Pyramid Network (FPN) is a convolutional neural network architecture that is extremely effective in multi-scale object detection tasks. It aims to improve the performance of the model in processing multi-scale object detection tasks. In recent years, researchers have continued to conduct in-depth research in the field of feature fusion networks and have continuously proposed innovative methods and technologies. These studies are committed to improving the fusion method of multi-level feature maps, adopting increasingly complex cascade strategies. However, these cascade strategies often only achieve very little performance gain while bringing a large parameter cost. The reason is that the above methods do not take into account that, given the differences in resolution and feature information density of the input features, their contributions to the final output features are often unequal, which results in a considerable number of feature fusion structures failing to fully play their role.

[0029] On this basis, many improvements have been made at the structural level so that the feature fusion network part can play the role of the cascade structure more effectively. As the network depth gradually increases, the feature mapping of each network layer in the feature information extraction process gradually decreases. Shallow features usually have better resolution and richer spatial information, which is helpful for positioning tasks in target detection. Therefore, this application adds a layer specifically for small target detection on the basis of the original fusion network. The design purpose of this layer is to effectively integrate shallow features that have not been utilized. These features usually have higher resolution and rich spatial information, which are crucial for accurate target positioning. By retaining key shallow information, not only the detection ability of small targets is enhanced, but also the deep fusion of the network at different depth levels is promoted to construct a multi-scale feature fusion enhancement network based on multi-level weighting, add a new feature fusion layer to the shallow layer of the feature fusion part, and add cross-layer connections between the original feature input and output to combine the additional original feature information to further complete the retention of effective information;

[0030] Step 3. In aerial images, the occlusion and overlap between targets are particularly prominent. This feature often leads to the overlap of target candidate frames during target detection, which increases the difficulty of detection. In the study of target detection algorithms in the field of deep learning, the loss function of bounding box regression plays a vital role. Its main function is to achieve effective matching between the predicted frame and the real frame. In this method, a box regression loss function that introduces angle matching is used in the post-processing stage. The reason for the introduction of angle cost is that in target detection, the angle difference between the predicted frame and the real frame will directly affect the detection accuracy. Moreover, the loss of adding angle cost can make the predicted frame quickly return to the nearest axis, which will also greatly help the training process. Therefore, by calculating and optimizing the angle cost, the accuracy of the model for target positioning can be significantly improved.

[0031] (1) Angle cost: The bounding box regression diagram is as follows Figure 8 As shown. Among them, В and В GT are the predicted bounding box and the ground-truth box respectively. σ represents the distance from the center of В to В GT Distance. w and C h Denote the length and width respectively. α and β are the angles with the horizontal and vertical directions.

[0032] The calculation formula of angle cost is as follows:

[0033]

[0034] in:

[0035]

[0036] (2) Distance cost: After considering the above angles, the distance cost calculation formula is:

[0037]

[0038] where ρ x , ρ y Represents the normalized distance error in the horizontal and vertical directions respectively

[0039] (3) Shape cost: The calculation formula of shape cost is:

[0040]

[0041] where ω w and ω h Represent the normalization coefficients in the horizontal and vertical directions respectively. θ is used to control the degree of attention paid to shape cost. This application refers to the analysis results of our multiple experiments and sets θ to 4.

[0042] (4) Iou cost: Iou cost represents the intersection ratio of the prediction box and the ground truth box, which is defined as:

[0043]

[0044] Finally, Siou loss is defined as:

[0045]

[0046] Specifically, if Figure 2 As shown in the figure, the perceptual enhancement module based on the idea of ​​shifted region Transformer includes layer normalization (LN), window region multi-head self-attention (W-MSA) mechanism, shifted window region multi-head self-attention (SW-MSA) mechanism and multi-layer perceptron (MLP);

[0047] Specifically, two core submodules are set based on the structure of the shifted region Transformer. In its first submodule, the regional multi-head self-attention (W-MSA) mechanism divides the feature map into several non-overlapping window regions and performs self-attention operations independently in these local window regions. For a feature map X∈R of a local window region of size M*M h*W*C , the computational complexity Ω is:

[0048] Ω(MSA)=4hwC 2 +2(hw) 2 C

[0049] Ω(W-MSA)=4hwC 2 +2M 2 HkDJ

[0050] like Figure 3 As shown in the figure, the perceptual enhancement module based on the shifted region Transformer does not directly perform self-attention calculations on large-resolution aerial images, but decomposes them into M*M smaller regions, and then performs independent self-attention calculations in each region, greatly reducing the computational complexity. Global self-attention calculations are usually unbearable for larger image sizes, while window-based self-attention is more scalable. Compared with the image size, since the decomposed region size is much smaller, the M*M calculation amount greatly reduces the calculation amount of the original size product, and the computational complexity is significantly reduced.

[0051] After completing the design of self-attention within the window, the next step is to create connections between windows. The difference of the second submodule is that (SW-MSA) translates the feature map in different directions by half the window length to achieve interaction between cross-window features and enhance the extraction ability of feature maps. Its calculation process is a repetition of the previous process.

[0052] Finally, by replacing the pure convolutional module at the end of the original extraction network with a perceptual enhancement module based on the shifted region transformer, we obtained a feature extraction enhancement network for aerial image tasks. It combines the advantages of the visual transformer and CNN, giving full play to the expertise of CNN in extracting local features of images and the advantages of the visual transformer in capturing global feature information. This design significantly enhances the feature extraction capability of the model, so that key feature information can be extracted more effectively from complex backgrounds.

[0053] Specifically, the step 2 also includes introducing a new supplementary connection to connect the main input and output to further enhance the expressiveness of the network. This idea comes from the concept of cross-layer connection commonly used in convolutional neural networks, which aims to integrate the additional information of the original feature extraction part into the fusion network. In this way, the network can not only utilize deep features, but also obtain rich information at the original input level, thereby enhancing the diversity and expressiveness of feature fusion and further enriching the expression of fusion features.

[0054] Finally, based on the bidirectional recursive cascade method, a layer dedicated to small target detection is added and supplementary links are introduced. Due to these improvements, the proposed feature fusion network can better adapt to the large changes in target scale in aerial images. The specific final structure design is as follows Figure 4 As shown. The multi-scale feature aggregation process of BCW-FPN can be expressed mathematically as:

[0055]

[0056] Resize represents upsampling or downsampling operation, P td Represents the feature map of the intermediate layer;

[0057] Specifically, in the feature fusion network, integrating features of different resolutions is a core task. Before fusing these features, their sizes must be adjusted to ensure compatibility. However, given that input features of different resolutions have different importance, their contributions to the output features are often unbalanced and unequal.

[0058] Therefore, in order to meet this challenge, in addition to making improvements in structural design, we also introduced the idea of ​​multi-level weighting, that is, in step 2, additional weights are introduced for each input feature, and weighted between each network layer, which enables the network to capture the importance information of each input feature, thereby performing feature fusion more accurately. By introducing these supplementary weights, our network can more effectively establish connections between features of different resolutions, thereby improving overall performance and effects. The specific inter-layer weighted structure is shown below: Figure 5 The polymerization process can be expressed as:

[0059]

[0060] Resize represents upsampling or downsampling operation, P td Represents the feature map of the intermediate layer;

[0061] Furthermore, this study not only enhances the fusion effect between different feature layers by introducing a learnable weight mechanism at the macro level, but also adopts a sparse weight penalty strategy within each network layer. Figure 6 As shown in the figure, the introduction of this strategy aims to further improve the screening efficiency in the feature fusion process, ensuring that when integrating features, those features that are more critical to improving model performance can be effectively identified and emphasized.

[0062] Through the design of a bidirectional cross-layer connection network structure and the introduction of a multi-level weighted fusion process improvement, our method not only enhances the adaptability and flexibility of the model for feature fusion, but also significantly improves the accuracy and efficiency of feature selection while improving the overall performance of the model. Finally, the specific structure of our multi-level weighted feature pyramid is as follows: Figure 7 As shown;

[0063] Specifically, inspired by the concept of the traditional NMS algorithm, we proposed an innovative method: Siou-soft-NMS. This method aims to overcome the limitations of the traditional NMS method when dealing with aerial image target detection. Unlike the standard NMS method, Siou-Soft-NMS not only considers the spatial overlap between bounding boxes, but also adds a detailed evaluation of the shape and relative position of the bounding boxes. This method dynamically adjusts the confidence of the bounding box instead of directly excluding bounding boxes with low Iou values, thereby reducing overlapping boxes while retaining more potential valid targets. In particular, in the analysis of remote sensing aerial images, due to the high density of targets and frequent partial occlusion, Siou-Soft-NMS significantly enhances the model's adaptability and detection performance for complex scenes through its improved flexibility and precision. The calculation formula of Soft-Siou-NMS is:

[0064]

[0065] Specifically, linear weighting functions often produce discontinuous values ​​in applications, a feature that may lead to unstable performance or inaccurate results when processing complex data. To overcome this problem, we chose to further optimize and adopt the Gaussian weighting method. Gaussian weighting can effectively reduce the discontinuity in the weighting process by introducing a smoothing factor, thereby improving the robustness of the algorithm and the continuity of the output results while maintaining the original structural characteristics of the data. Therefore, the optimized algorithm not only considers the relative position and overlap between bounding boxes, but also dynamically adjusts the scores of bounding boxes through Gaussian functions instead of simply deleting low-scoring bounding boxes. The key advantage of this method is that it can dynamically adjust the confidence score of each bounding box based on the intersection over union (IoU) between bounding boxes and the predetermined Gaussian function parameters without causing discontinuities or mutations in the detection results.

[0066] Specifically, the final formula after optimization is:

[0067]

[0068] In view of the problem of highly complex backgrounds in aerial images, the present invention constructs a feature extraction enhancement network based on the regional Transformer attention mechanism. In the feature extraction network, a perception enhancement module based on the idea of ​​shifted regional Transformer is used to replace the original partial full convolution operation, so as to enhance the global perception ability of the model with lower computational overhead, thereby more effectively extracting feature information from complex backgrounds; and a feature enhancement fusion method is proposed. In view of the problem of diverse target scales in aerial images, the present application constructs a multi-scale feature fusion enhancement network based on multi-level weighting. The network fully captures and integrates target feature information of different scales through a network structure design with bidirectional cross-layer connections. At the same time, in the process of feature fusion, by introducing a multi-level weighting strategy, key information that is crucial to target detection is further retained. Through the above method, the feature fusion network significantly improves the ability to characterize features of different scales, thereby improving the detection performance of multi-scale targets; and a candidate detection box screening strategy is proposed. To address the problem of densely arranged targets in aerial images, this application introduces the consideration of matching angles in the loss function of bounding box regression, thereby improving the regression positioning accuracy of the detection frame, and by further optimizing the candidate detection frame screening strategy, enhances the network's recognition ability for densely arranged and mutually occluded targets.

[0069] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0070] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for aerial image target detection based on feature enhancement network, characterized in that: The method includes the following steps: Step 1: construct a feature extraction enhancement network based on the regional Transformer attention mechanism, and use a perception enhancement module based on the shifted regional Transformer idea to replace part of the original full convolution operation in the feature extraction network, so as to enhance the global perception ability of the model with lower computational overhead and improve the feature extraction ability of the network; Step 2: construct a multi-scale feature fusion enhancement network based on multi-level weighting, add a new feature fusion layer on the shallow layer of the feature fusion part, and add cross-layer connections between the original feature input and output to combine the additional original feature information and further retain the effective information; Step 3: In the post-processing stage, the angle matching box regression loss function is introduced into the bounding box regression loss function.

2. The method for aerial image target detection based on feature enhancement network according to claim 1, characterized in that: The perception enhancement module based on the idea of ​​shifted region Transformer includes layer normalization, window region multi-head self-attention mechanism, shifted window region multi-head self-attention mechanism and multi-layer perceptron.

3. The method for aerial image target detection based on feature enhancement network according to claim 2, characterized in that: The window area multi-head self-attention mechanism divides the feature map into several non-overlapping window areas and independently performs self-attention operations in these local window areas. The shifted window area multi-head self-attention mechanism translates the feature map in different directions by half the window length to achieve interaction between cross-window features and enhance the ability to extract feature maps.

4. The method for aerial image target detection based on feature enhancement network according to claim 3, characterized in that: The step 2 also includes introducing a new supplementary connection to connect the main input and output.

5. The method for aerial image target detection based on feature enhancement network according to claim 4, characterized in that: In step 2, additional weights are introduced for each input feature, which are weighted between each network layer.

6. The method for aerial image target detection based on feature enhancement network according to claim 5, characterized in that: The Siou-Soft-NMS algorithm is introduced in step 3 to dynamically adjust the confidence of the bounding box instead of directly excluding the bounding box with a low Iou value.

7. The method for aerial image target detection based on feature enhancement network according to claim 6, characterized in that: The Siou-Soft-NMS algorithm uses a Gaussian weighting method.