SAR (Synthetic Aperture Radar) target detection method based on fine-grained feature fusion attention mechanism

By introducing the fine-grained feature fusion attention mechanism and RDFPN network into the YOLOv8 model, the problem of low accuracy in dense target detection in SAR images is solved, more efficient feature extraction and bounding box regression are achieved, and missed detections and false detections are reduced, improving the detection accuracy.

CN118736403APending Publication Date: 2024-10-01YANTAI UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410724953.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the existing YOLOv8 model recognizes dense targets, due to the missing edges of SAR images, target blur and complex features that are difficult to distinguish, the detection accuracy is low, and there are problems of missed detection and false detection.

Method used

A fine-grained feature fusion attention mechanism is introduced into the YOLOv8 model, feature extraction and bounding box regression are improved through deformable convolutional networks and focus modulation networks, and detection performance is enhanced by combining with the RDFPN network.

Benefits of technology

It improves feature extraction efficiency and bounding box accuracy, reduces missed detections and false detections in dense target areas, and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736403A_ABST
    Figure CN118736403A_ABST
Patent Text Reader

Abstract

The invention discloses an SAR target detection method based on a fine-grained feature fusion attention mechanism, and the method carries out the target detection of an SAR image through a target detection model, the target detection model comprises a Backbone part, a Neck part and a Head part, the Backbone part employs the structure of the Backbone part in a YOLOv8 model, the Backbone part comprises nine layers which are connected in sequence, the nine layers comprise three C2fDCNv2DCA modules, and the C2fDCNv2DCA modules are connected with the Neck part. And the C2fDCNv2DCA module is obtained by replacing a Bottleneck part in the C2f module with a deformable convolutional network based on a fine-grained feature fusion attention mechanism. The method has a more efficient feature extraction method and a more accurate bounding box regression algorithm, can better capture the features of the target, reduces the conditions of leak detection and false detection of a dense target area, and improves the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a SAR target detection method. Background Art

[0002] Ship target detection is an important research direction in the field of maritime safety. The use of ship target detection technology can improve the ability of maritime safety monitoring and early warning to reduce the occurrence of accidents and conflicts. Synthetic Aperture Radar (SAR) is an all-weather, long-distance target detection technology, and has strong anti-interference ability in fog, rain or snow. Therefore, ship detection technology based on SAR images has important practical significance.

[0003] SAR target detection methods are divided into traditional methods and deep learning-based methods. Traditional methods require manual feature extraction and are difficult to capture high-level features in images. They cannot flexibly cope with the complex and diverse information in SAR images. Deep learning-based target detection methods can be further divided into two categories: The first category is a two-stage target detection algorithm, which first constructs a feature map through a series of convolution and pooling operations, and then uses a candidate box generation algorithm to generate a series of candidate regions. The generated candidate regions are classified and regressed through operations such as feature extraction and feature matching to obtain the final target detection results. Common two-stage target detection methods include R-CNN, Fast R-CNN, and Faster R-CNN. The second category is a single-stage target detection method, which does not need to generate candidate boxes and directly obtains the category and coordinates of the target from the image. Single-stage target detection methods usually regard the target detection task as a classification and regression problem at the pixel level of an image, and achieve target detection by densely predicting the image. Common single-stage target detection methods include YOLO, SSD, and RetinaNet, etc. Single-stage target detection algorithms have faster detection speeds.

[0004] As one of the most advanced detection methods, YOLOv8 has been gradually applied in practice. However, compared with visible light images, SAR images have the characteristics of missing edges, blurred targets, and difficulty in distinguishing targets from backgrounds. In addition, the aspect ratio and direction of ship targets in SAR images vary greatly. Therefore, when using the existing YOLOv8 model to identify dense targets, there will be different degrees of missed detection and false detection problems, and the detection accuracy is low. Summary of the invention

[0005] The present invention proposes a SAR target detection method based on fine-grained feature fusion attention mechanism, the purpose of which is to reduce missed detection and false detection in the process of dense target detection and improve detection accuracy.

[0006] The technical solution of the present invention is as follows:

[0007] A SAR target detection method based on a fine-grained feature fusion attention mechanism, the method performs target detection on a SAR image through a target detection model, the target detection model includes a Backbone part, a Neck part and a Head part, the Backbone part is used to extract a feature map from an input image, the Neck part is used to fuse the feature map extracted by the Backbone part to obtain a fused feature map, and the Head part is used to obtain a detection result according to the fused feature map;

[0008] The Backbone part of the target detection model adopts the structure of the Backbone part in the YOLOv8 model, including nine layers connected in sequence. Three of the first eight layers of the nine layers are C2f_DCNv2_DCA modules, which are obtained by replacing the Bottleneck part in the C2f module with a deformable convolutional network based on a fine-grained feature fusion attention mechanism.

[0009] As a further improvement of the SAR target detection method based on the fine-grained feature fusion attention mechanism: the working process of the deformable convolutional network based on the fine-grained feature fusion attention mechanism is:

[0010] Step A1: Let the input image of the deformable convolutional network be x∈R C×H×W , C is the number of image channels, H is the image height, W is the image width, and the input image is convolved to obtain the feature map F of the input image;

[0011] Step A2: Perform vertical average pooling on the feature map F of the input image to obtain the feature map z h , perform horizontal average pooling on the feature map F of the input image to obtain the feature map z w , perform global average pooling on the feature map F of the input image to obtain the feature map z hw ;

[0012] Step A3: transform the feature map z h and feature map z w Concatenate to get the feature map z contact , and then use 1×1 convolution kernel to correct the feature map z contact Convolution is performed to obtain the feature map f, and then the feature map f is mapped using BN batch normalization and nonlinear operations. The mapped feature map is then decomposed into two independent feature maps along the spatial dimension through the split operation: a feature map f of size C*1*W h And the feature map f of size C*H*1 w ;

[0013] Step A4: Generate feature map j by performing convolution operation and Sigmoid activation function on feature map f, and then perform split operation on feature map j to obtain vertical attention weight j. h and the horizontal attention weight j w ; The feature map f h The features and attention weights j related to the vertical direction h Weighted to get the vertical weighted feature map F h , and at the same time the feature map f w The features and attention weights j related to the horizontal direction w Weighted to obtain the horizontal weighted feature map F w , to enhance the feature information related to the corresponding direction in the input image feature map F;

[0014] Step A5: Perform average pooling operation on feature map j to obtain feature map j Mean , and at the same time for the feature map z hw Perform convolution operation to obtain feature map z with the same size as feature map j hw_conv , then the feature map j Mean and feature map z hw_conv Weighted to get the global weighted feature map F hw ; Then the vertical weighted feature map F h , horizontal weighted feature map F w , global weighted feature map F hw The output feature map p of the deformable convolutional network is obtained by weighting the feature map F of the input image;

[0015] Step A6: Perform a deformable convolution operation on the feature map p to obtain a learnable feature map p1; the feature map p1 is the output of the deformable convolution network.

[0016] As a further improvement of the SAR target detection method based on the fine-grained feature fusion attention mechanism: the ninth layer of the Backbone part of the target detection model is a focus modulation network.

[0017] As a further improvement of the SAR target detection method based on the fine-grained feature fusion attention mechanism: among the nine layers connected in sequence, the first layer, the second layer, the fourth layer, the sixth layer and the eighth layer are all convolutional layers, the third layer is a C2f module, and the fifth layer, the seventh layer and the ninth layer are all C2f_DCNv2_DCA modules.

[0018] As a further improvement of the SAR target detection method based on the fine-grained feature fusion attention mechanism: the Neck part of the target detection model is the RDFPN network.

[0019] As a further improvement of the SAR target detection method based on the fine-grained feature fusion attention mechanism: the Head part of the target detection model includes three detection heads;

[0020] The output vectors of the three C2f_DCNv2_DCA modules in the fifth, seventh, and ninth layers of the Backbone part are recorded as output vector e1, output vector e2, and output vector e3 respectively;

[0021] The working process of the RDFPN network is:

[0022] Step B1, inputting the output vector e3 into the focus modulation network to perform focus modulation operation to obtain the weight vector yi;

[0023] Step B2, reduce the dimension of the weight vector yi through a 1×1 convolution kernel, and then concatenate it with the e2 rows after the convolution operation to obtain the feature map D1. The feature map D1 is fused by the CSPStage module to obtain the feature map C1, and then the feature map C1 is upsampled by the DySample module to obtain the high-resolution feature map T1;

[0024] Step B3, concatenate the high-resolution feature map T1 with the output vector e2 and the output vector e1 after the convolution operation to obtain the feature map D2, the feature map D2 is fused by the CSPStage module to obtain the feature map C2, and then the feature map C2 is passed through the upsampling module DySample to obtain the high-resolution feature map T2;

[0025] Step B4, concatenate the output vector e1 with the high-resolution feature map T2 to obtain the feature map D3, and the feature map D3 is fused by the CSPStage module to output the feature map C3, which is used to input into the first detection head of the Head part to obtain the position coordinates of the large target bounding box;

[0026] Step B5, the feature map C3 and the feature map C2 are spliced ​​to obtain the feature map D4, and the feature map D4 is fused by the CSPStage module to obtain the feature map C4, and the feature map C4 is used to input into the second detection head of the Head part to obtain the position coordinates of the target bounding box;

[0027] Step B6, concatenate feature map C1, feature map C4 and convolved feature map C2 to obtain feature map D5, and obtain feature map C5 by CSPStage fusion module. The feature map C5 is used to input into the third detection head of the Head part to obtain the position coordinates of the small target bounding box.

[0028] Compared with the prior art, the present invention has the following positive effects:

[0029] The present invention adds a fine-grained feature fusion attention mechanism to the YOLOv8 model. The improved YOLOv8 model has a more efficient feature extraction method and a more accurate bounding box regression algorithm, which can better capture the features of the target, reduce missed detections and false detections in dense target areas, and improve detection accuracy.

[0030] Specifically, the fine-grained feature fusion attention mechanism can improve the efficiency of feature extraction by adaptively adjusting the weights of channel features, making the network pay more attention to important feature channels. Through the learned attention weights, the network can better distinguish and utilize the feature information of different channels, improve the accuracy of bounding boxes, and improve the efficiency of feature extraction, so that the network can better capture the characteristics of the target, thereby reducing missed detections and false detections. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a schematic diagram of the network structure of the improved YOLOv8 model of the present invention;

[0032] Figure 2 Schematic diagram of the structure of the fine-grained feature fusion attention mechanism. DETAILED DESCRIPTION

[0033] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.

[0034] A SAR target detection method based on fine-grained feature fusion attention mechanism is proposed. This method uses an improved YOLOv8 model to detect targets in SAR images.

[0035] The YOLOv8 model includes a Backbone part, a Neck part and a Head part. The Backbone part is used to extract a feature map from an input image, the Neck part is used to fuse the feature map extracted by the Backbone part to obtain a fused feature map, and the Head part is used to obtain a detection result based on the fused feature map.

[0036] The improvements of this embodiment to the YOLOv8 model include:

[0037] 1. If Figure 1 , use the deformable convolutional network based on fine-grained feature fusion attention mechanism to replace the Bottleneck part of the three C2f modules in the fifth, seventh, and ninth layers of the Backbone part of the original YOLOv8 model. The three C2f modules after replacement are Figure 1 The three C2f_DCNv2_DCA modules in.

[0038] like Figure 2, the working process of the deformable convolutional network is as follows:

[0039] Step A1: Let the input image be x∈R C×H×W , C is the number of image channels, H is the image height, W is the image width, and the convolution operation is performed on the input image to obtain the feature map F of the input image.

[0040] Step A2: Perform vertical average pooling on the feature map F of the input image to obtain the feature map z h , perform horizontal average pooling on the feature map F of the input image to obtain the feature map z w , perform global average pooling on the feature map F of the input image to obtain the feature map z hw .

[0041] Step A3: transform the feature map z h and feature map z w Concatenate to get the feature map z contact , and then use 1×1 convolution kernel to correct the feature map z contact Convolution is performed to obtain the feature map f, and then the feature map f is mapped using BN batch normalization and nonlinear operations. The mapped feature map is then decomposed into two independent feature maps along the spatial dimension through the split operation: a feature map f of size C*1*W h And the feature map f of size C*H*1 w .

[0042] Step A4: Generate feature map j by performing convolution operation and Sigmoid activation function on feature map f, and then perform split operation on feature map j to obtain vertical attention weight j. h and the horizontal attention weight j w . The feature map f h The features and attention weights j related to the vertical direction h Weighted to get the vertical weighted feature map F h , and at the same time the feature map f w The features and attention weights j related to the horizontal direction w Weighted to obtain the horizontal weighted feature map F w , to enhance the feature information related to the corresponding direction in the input image feature map F.

[0043] Step A5: Perform average pooling operation on feature map j to obtain feature map j Mean , and at the same time for the feature map z hw Perform convolution operation to obtain feature map z with the same size as feature map j hw_conv , then the feature map j Mean and feature map z hw_conv Weighted to get the global weighted feature map F hw. Then the vertical weighted feature map F h , horizontal weighted feature map F w , global weighted feature map F hw The output feature map p of the deformable convolutional network is obtained by weighting it with the feature map F of the input image.

[0044] Step A6: Perform a deformable convolution operation on the feature map p to obtain a learnable feature map p1.

[0045] 2. If Figure 1 , use the focal modulation network (FocalModulation) to replace the SPPF module in the Backbone part of the original YOLOv8 model.

[0046] 3. Use the RDFPN network to replace the Neck part of the original model, and record the output vectors of the three C2f_DCNv2_DCA modules in the fifth, seventh, and ninth layers of the Backbone part as output vector e1, output vector e2, and output vector e3, respectively.

[0047] 4. The working process of RDFPN network is as follows:

[0048] Step B1, input the output vector e3 into the focus modulation network to perform focus modulation operation to obtain the weight vector yi.

[0049] Step B2, reduce the dimension of the weight vector yi through a 1×1 convolution kernel, and then concatenate it with the e2 rows that have undergone the convolution operation to obtain the feature map D1. The feature map D1 is fused through the CSPStage module to obtain the feature map C1, and then the feature map C1 is up-sampled through the upsampling module DySample to obtain the high-resolution feature map T1.

[0050] Step B3, concatenate the high-resolution feature map T1 with the output vector e2 and the output vector e1 after the convolution operation to obtain the feature map D2, the feature map D2 is fused by the CSPStage module to obtain the feature map C2, and then the feature map C2 is passed through the upsampling module DySample to obtain the high-resolution feature map T2.

[0051] Step B4, concatenate the output vector e1 with the high-resolution feature map T2 to obtain the feature map D3, and the feature map D3 is fused through the CSPStage module to output the feature map C3, which is used to input into the first detection head of the Head part to obtain the position coordinates of the large target bounding box.

[0052] Step B5, concatenate feature map C3 and feature map C2 to obtain feature map D4, and obtain feature map C4 through the CSPStage fusion module. The feature map C4 is used to input into the second detection head of the Head part to obtain the position coordinates of the target bounding box.

[0053] Step B6, concatenate feature map C1, feature map C4 and convolved feature map C2 to obtain feature map D5, and obtain feature map C5 by CSPStage fusion module. The feature map C5 is used to input into the third detection head of the Head part to obtain the position coordinates of the small target bounding box.

[0054] By inputting the SAR image to be detected into the improved model, the position coordinates of the target bounding boxes of different levels can be obtained.

[0055] The method of the present invention is compared with the traditional method through five groups of experiments AE. Among them, experiment A uses the original YOLOv8 model, experiment B introduces the C2f_DCNv2_MDCA module based on the original YOLOv8 model, experiment C introduces the RDFPN network based on the original YOLOv8 model, experiment D introduces focus modulation based on the original YOLOv8 model, and experiment E uses the improved model of the present invention. The comparison results are shown in Table 1:

[0056] Table 1 - Comparison of the effects of different detection methods

[0057]

[0058] According to Table 1, after adding the C2f_DCNv2_MDCA module to Experiment B, the precision P and evaluation precision mAP increased by 2.1% and 1.3% respectively, and the recall rate R remained unchanged, indicating that the fine-grained feature fusion attention mechanism and the modulation mechanism in DCNv2 have more advantages in feature extraction, which can enhance the model's ability to perceive and utilize spatial location features. From the comparison between Experiment A and Experiment C, it can be seen that after introducing the RDFPN network structure, more screening mechanisms are obtained, and the precision P and evaluation precision mAP are increased by 1.8% and 1.3% respectively. Due to the increase in missed targets, the recall rate R is reduced by 1.5%. From the comparison between Experiment A and Experiment D, it can be seen that after adding the focus modulation module, the precision P and evaluation precision mAP are increased by 1% and 0.8% respectively, which optimizes the model's ability to extract context. Experiment E is the final improved network structure, in which P, R, and mAP are the highest among the five groups of experiments. Compared with Experiment A, the number of parameters has increased and the speed has also increased by 0.1. This shows that the detection accuracy of the improved network model has been improved, which can improve the situation of false detection and missed detection.

[0059] It should be noted that it is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. The scope of the present invention is defined by the claims rather than the above description.

Claims

1. A SAR target detection method based on fine-grained feature fusion attention mechanism, the method performs target detection on SAR images through a target detection model, the target detection model includes a Backbone part, a Neck part and a Head part, the Backbone part is used to extract a feature map from an input image, the Neck part is used to fuse the feature map extracted by the Backbone part to obtain a fused feature map, and the Head part is used to obtain a detection result according to the fused feature map, characterized in that: The Backbone part of the target detection model adopts the structure of the Backbone part in the YOLOv8 model, including nine layers connected in sequence. Three of the first eight layers of the nine layers are C2f_DCNv2_DCA modules, which are obtained by replacing the Bottleneck part in the C2f module with a deformable convolutional network based on a fine-grained feature fusion attention mechanism.

2. The SAR target detection method based on fine-grained feature fusion attention mechanism as claimed in claim 1, characterized in that: The working process of the deformable convolutional network based on fine-grained feature fusion attention mechanism is as follows: Step A1: Let the input image of the deformable convolutional network be x∈R C×H×W , C is the number of image channels, H is the image height, W is the image width, and the input image is convolved to obtain the feature map F of the input image; Step A2: Perform vertical average pooling on the feature map F of the input image to obtain the feature map z h , perform horizontal average pooling on the feature map F of the input image to obtain the feature map z w , perform global average pooling on the feature map F of the input image to obtain the feature map z hw ; Step A3: transform the feature map z h and feature map z w Concatenate to get the feature map z contact , and then use 1×1 convolution kernel to correct the feature map z contact Convolution is performed to obtain the feature map f, and then the feature map f is mapped using BN batch normalization and nonlinear operations. The mapped feature map is then decomposed into two independent feature maps along the spatial dimension through the split operation: a feature map f of size C*1*W h And the feature map f of size C*H*1 w ; Step A4: Generate feature map j by performing convolution operation and Sigmoid activation function on feature map f, and then perform split operation on feature map j to obtain vertical attention weight j. h and the horizontal attention weight j w ; The feature map f h The features and attention weights j related to the vertical direction h Weighted to get the vertical weighted feature map F h , and the feature map f w The features and attention weights j related to the horizontal direction w Weighted to obtain the horizontal weighted feature map F w , to enhance the feature information related to the corresponding direction in the input image feature map F; Step A5: Perform average pooling operation on feature map j to obtain feature map j Mean , and at the same time for the feature map z hw Perform convolution operation to obtain feature map z with the same size as feature map j hw_conv , then the feature map j Mean and feature map z hw_conv Weighted to get the global weighted feature map F hw ; Then the vertical weighted feature map F h , horizontal weighted feature map F w , global weighted feature map F hw The output feature map p of the deformable convolutional network is obtained by weighting the feature map F of the input image; Step A6: Perform a deformable convolution operation on the feature map p to obtain a learnable feature map p1; the feature map p1 is the output of the deformable convolution network.

3. The SAR target detection method based on fine-grained feature fusion attention mechanism as claimed in claim 1, characterized in that: The ninth layer of the Backbone part of the target detection model is the focus modulation network.

4. The SAR target detection method based on fine-grained feature fusion attention mechanism as claimed in claim 3, characterized in that: Among the nine layers connected in sequence, the first layer, the second layer, the fourth layer, the sixth layer and the eighth layer are all convolutional layers, the third layer is a v2f module, and the fifth layer, the seventh layer and the ninth layer are all C2f_DCNv2_DCA modules.

5. The SAR target detection method based on fine-grained feature fusion attention mechanism as claimed in claim 4, characterized in that: The Neck part of the target detection model is the RDFPN network.

6. The SAR target detection method based on fine-grained feature fusion attention mechanism as claimed in claim 5, characterized in that: The Head part of the target detection model includes three detection heads; the output vectors of the three C2f_DCNv2_DCA modules in the fifth, seventh, and ninth layers of the Backbone part are recorded as output vector e1, output vector e2, and output vector e3 respectively; The working process of the RDFPN network is: Step B1, inputting the output vector e3 into the focus modulation network to perform focus modulation operation to obtain the weight vector yi; Step B2, reduce the dimension of the weight vector yi through a 1×1 convolution kernel, and then concatenate it with the e2 rows after the convolution operation to obtain the feature map D1. The feature map D1 is fused by the CSPStage module to obtain the feature map C1, and then the feature map C1 is upsampled by the DySample module to obtain the high-resolution feature map T1; Step B3, concatenate the high-resolution feature map T1 with the output vector e2 and the output vector e1 after the convolution operation to obtain the feature map D2, the feature map D2 is fused by the CSPStage module to obtain the feature map C2, and then the feature map C2 is passed through the upsampling module DySample to obtain the high-resolution feature map T2; Step B4, concatenate the output vector e1 with the high-resolution feature map T2 to obtain the feature map D3, and the feature map D3 is fused by the CSPStage module to output the feature map C3, which is used to input into the first detection head of the Head part to obtain the position coordinates of the large target bounding box; Step B5, the feature map C3 is spliced ​​with the feature map v2 to obtain the feature map D4, and the feature map D4 is fused by the CSPStage module to obtain the feature map v4, and the feature map C4 is used to input into the second detection head of the Head part to obtain the position coordinates of the target bounding box; Step B6, concatenate feature map C1, feature map C4 and convolved feature map C2 to obtain feature map D5, and obtain feature map C5 by CSPStage fusion module. The feature map C5 is used to input into the third detection head of the Head part to obtain the position coordinates of the small target bounding box.

Citation Information

Cited By

  • SAR and visible light remote sensing image fusion method based on deep learning

    CN119540698A

  • Sar and visible light remote sensing image fusion method based on deep learning

    CN119540698B

  • Road surface disaster detection method and system, electronic equipment and storage medium

    CN119580138A

  • Complex scene multi-scale ship detection method and system

    CN119832377A

  • Two-stage insect fine granularity identification method based on key part cooperative localization

    CN119888311A