A method for water target detection based on multi-source fusion of dual attention mechanism
By using a multi-source fusion method with a dual attention mechanism in a water autonomous driving environment, and combining information from radar and visual sensors, the problem of unclear targets and low accuracy of small target detection in water target detection is solved, improving detection performance and Accuracy.
Patent Information
- Application Number
- CN202211132614.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-17
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-09-17
AI Technical Summary
In the water autonomous driving environment, the visual sensor makes the target unclear under strong light conditions. Lidar and millimeter-wave radar have incompatible algorithms, and the accuracy of small target detection is low, making it difficult to achieve effective water target detection.
Using a multi-source fusion method based on a dual attention mechanism, by constructing a radar image generation model and a visual image feature extraction model, a 2D attention matrix is generated and the weighted fusion feature map is input to the target detection network FasterRCNN, and the information from the radar and visual sensors is combined. Introducing spatial and channel domain attention mechanisms to improve detection performance.
It improves the accuracy of water target detection and network precision, effectively solves the problems of reduced weight of targets in images and low detection performance of small targets, and makes full use of the complementary information of radar and visual sensors.
Smart Images

Figure CN115457360B
Abstract
Description
Technical Field
[0001] The present invention relates to a target detection method for multi-source sensor information fusion, and in particular to a water target detection method based on multi-source fusion of a dual attention mechanism. Background Art
[0002] For autonomous driving, reliable perception of the surrounding environment is very important. At present, the field of autonomous driving generally uses sensors such as lidar, millimeter-wave radar and vision to achieve perception of the environment. These sensors have their own advantages and disadvantages. There are great limitations when used alone, and they may not be able to provide accurate information about obstacles in complex interference environments. If two or more of the information is fused, it can not only improve the reliability of perception, but also make up for the shortcomings of different sensors. Radar sensors can provide accurate information such as speed and position; visual sensors can make up for the low lateral resolution of radar sensors while retaining the appearance information of the target. Visual sensors and lidar will greatly reduce their environmental perception capabilities and reduce the performance of the detection algorithm under complex water conditions and weather conditions. However, millimeter-wave radar has higher adaptability to complex water environments and weather conditions;
[0003] In the field of autonomous driving on water, it is common to use deep neural networks to extract radar image and visual image features for target detection on the water surface, but it is difficult to achieve in practical applications. The main problems are as follows: 1) Targets on the water surface may cause overexposure of the image under strong light reflection, making the target unclear in the visual image and reducing the weight; 2) There are differences between laser radar and millimeter wave radar, and the existing laser radar algorithm cannot be directly applied to millimeter wave radar; 3) The accuracy of small target detection is low. Summary of the invention
[0004] In view of this, the purpose of the present invention is to propose a water target detection method based on multi-source fusion of dual attention mechanism to solve all or one of the above problems.
[0005] Based on the above purpose, the present invention provides a method for detecting water targets based on multi-source fusion of dual attention mechanism, comprising the following steps:
[0006] Build radar image generation model and feature extraction model, and generate 2D attention matrix;
[0007] Construct a visual image feature extraction model to obtain a visual feature map;
[0008] Re-weighting the 2D attention matrix along all channels of the visual feature map to generate a fused feature map;
[0009] The fused feature map is input into the target detection network FasterRCNN.
[0010] Optionally, the step of constructing the radar image generation model is as follows:
[0011] Obtain radar and visual sensor training data, and then map the radar point cloud to the front camera coordinate system;
[0012] Convert the depth, longitudinal velocity and lateral velocity of the radar point cloud into real pixel values of different R, G and B channels;
[0013] With the radar point cloud converted to the front camera coordinate point as the center, a solid circle is rendered according to certain rendering rules to obtain the radar training image;
[0014] By constructing a radar image feature extraction model, features of the radar training images are extracted and corresponding feature maps are generated.
[0015] Optionally, the radius of the solid circle obtained by rendering is 7, and the rendering rule is: if there is an overlapping area between two radar points, the one with a smaller depth should occupy more area.
[0016] Optionally, the construction of the radar image feature extraction model is specifically as follows:
[0017] The first two convolutional blocks of ResNet-50, BasicStem and Block1, are introduced. The former is used to process the input radar image; the latter is used to output the feature radar image.
[0018] Optionally, Block1 introduces only one residual block to improve the stochastic gradient descent update speed of the detection model.
[0019] Optionally, the specific steps of generating a 2D attention matrix are:
[0020] Four groups of convolutional layers with different receptive fields are used to extract the spatial attention matrix, and the feature map of the radar image is encoded into a spatial domain attention weight matrix; and the number of channels in the radar feature map is reduced to 1.
[0021] Optionally, the step of constructing a visual image feature extraction model to obtain a visual feature map specifically includes the following steps:
[0022] Step 1: resize the original visual image and input the resized image into the VGG16 feature extraction network;
[0023] Step 2, use the convolution module 1 of VGG16 to extract image features;
[0024] Step 3, introduce the SENet structure after each convolution module of the feature extraction network VGG16;
[0025] Step 4: Repeat steps 2 and 3 five times to finally obtain the visual feature map output by the 5th layer SENet structure.
[0026] Optionally, the 2D attention matrix is re-weighted along all channels of the visual feature map to generate a fused feature map, including:
[0027] The spatial attention matrix is weighted to the new feature map obtained by the SENet-based VGG16 feature extraction network using a weighted method of Kronecker product matrix operation.
[0028] Optionally, inputting the fused feature map into a target detection network FasterRCNN comprises the following steps:
[0029] Step 1: Input the fused feature map into the ROI pooling layer;
[0030] Step 2: Input the feature map obtained in step 1 into two fully connected layers continuously;
[0031] Step 3: Pass the result after the fully connected layer to the softmax classifier and the boundary regression layer to obtain the classification result and the regressed bounding box.
[0032] Beneficial effects of the present invention: The present invention introduces a spatial domain attention mechanism on the radar feature extraction branch to encode the radar feature map into a 2D attention matrix; introduces a channel domain attention mechanism on the visual image feature extraction branch to improve the performance of the visual image feature extraction network through the SENet structure and obtain a new feature map; the features extracted by the visual image feature extraction network are weighted by the above-mentioned 2D attention matrix, and the weighted fused features are passed to the target detection network FasterRCNN for regression and classification. The present invention can make full use of the complementary information of radar and visual sensors to improve the accuracy of the network and target detection; and effectively solve the problem of reduced weight of water targets in images and low performance of small target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 This is the overall fusion detection framework diagram of the present invention. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0036] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0037] like Figure 1 As shown, a method for detecting water targets based on multi-source fusion of dual attention mechanism includes:
[0038] Build radar image generation model and feature extraction model, and generate 2D attention matrix;
[0039] Construct a visual image feature extraction model to obtain a visual feature map;
[0040] Re-weighting the 2D attention matrix along all channels of the visual feature map to generate a fused feature map;
[0041] The fused feature map is input into the target detection network FasterRCNN.
[0042] The radar point cloud reflects the physical state of the environment around the radar, but the original radar point cloud data cannot be input into the convolutional neural network for feature extraction. Therefore, it is necessary to build a radar generation model to convert the original physical state of the environment into a radar image.
[0043] The specific steps to build a radar image generation model are:
[0044] Obtain radar and visual sensor training data, and then map the radar point cloud to the front camera coordinate system;
[0045] Convert the depth, longitudinal velocity and lateral velocity of the radar point cloud into real pixel values of different R, G and B channels;
[0046] With the radar point cloud converted to the front camera coordinate point as the center, a solid circle with a radius of 7 is rendered according to certain rendering rules to obtain the radar training image. If there is an overlapping area between two radar points, the one with a smaller depth should occupy more area.
[0047] By constructing a radar image feature extraction model, features of the radar training images are extracted and corresponding feature maps are generated.
[0048] The specific steps of constructing radar image feature extraction model are as follows:
[0049] The first two convolution blocks BasicStem and Block1 of ResNet-50 are introduced. The former is used to process the input radar image; the latter is used to output the feature radar image. Among them, the convolution block Block1 only introduces one residual block to improve the stochastic gradient descent update speed of the detection model.
[0050] Since the millimeter-wave radar point cloud is very sparse, unlike ResNet-50 which is suitable for image feature extraction, too many residual blocks will affect the update of the entire detection model.
[0051] Generally speaking, if there is a corresponding radar point cloud in the visual sensor image area, the target is also likely to appear. Encoding the radar feature map into a 2D attention matrix and weighting it to the visual image features can effectively improve the visual sensor's feature information expression capability and effectively enhance the information flow of small targets in water scenes and images with exposure phenomena.
[0052] The specific steps to generate a 2D attention matrix are:
[0053] Four groups of convolutional layers are used to extract the spatial attention matrix. The four groups of convolutional layers are Conv1×1, Conv3×3, Conv5×5, and Conv7×7. The kernel sizes are 1×1×256×1, 3×3×256×1, 5×5×256×1, and 7×7×256×1, respectively. The step sizes are all set to (1,1) and filled with [0,0], [1,1], [2,2], and [3,3] respectively. In this way, the feature map of the radar image is encoded into a spatial domain attention weight matrix, which is used to enhance the information flow of the visual sensor; and the number of channels in the radar feature map is reduced to 1.
[0054] For the visual feature extraction network, in order to obtain the global receptive field and enhance the feature expression ability, the SENet structure is introduced into the visual feature extraction network VGG16, so that the feature extraction network is not limited by the local receptive field, which effectively improves the recognition performance of the network.
[0055] Construct a visual image feature extraction model to obtain a visual feature map, which specifically includes the following steps:
[0056] Step 1: resize the original visual image, limit the image length to no more than 1000 on the long side and no more than 600 on the short side, and input the resized image into the VGG16 feature extraction network;
[0057] Step 2, use the convolution module 1 of VGG16 to extract image features;
[0058] Step 3: After each convolutional module of the feature extraction network VGG16, the SENet structure is introduced, that is, feature compression is performed in the channel domain to obtain a feature map with stronger target expression capability, and the feature extraction network is also more lightweight;
[0059] Step 4: Repeat steps 2 and 3 five times to finally obtain the visual feature map output by the 5th layer SENet structure.
[0060] To integrate radar data and visual sensor data, the spatial attention matrix obtained by the above radar feature extraction branch is re-weighted and fused along all channels of the feature map extracted by visual features.
[0061] The weighted method adopted is the Kronecker product matrix operation. The spatial attention matrix is weighted to the new feature map obtained by the SENet-based VGG16 feature extraction network, which can enhance the expression ability of targets affected by exposure and small targets and improve the performance of the water target detection network.
[0062] The fused feature map is input into the target detection network FasterRCNN, and the specific steps include:
[0063] Step 1: Input the fused feature map into the ROI pooling layer;
[0064] Step 2: Input the feature map obtained in step 1 into two fully connected layers continuously;
[0065] Step 3: Pass the result after the fully connected layer to the softmax classifier and the bounding box regression layer to obtain the classification result and the regressed bounding box. The loss used for target classification is the cross entropy loss, and the smooth L1 loss is used for bounding box regression.
[0066] The present invention introduces a spatial domain attention mechanism in the radar feature extraction branch, and encodes the radar feature map into a 2D attention matrix; introduces a channel domain attention mechanism in the visual image feature extraction branch, improves the performance of the visual image feature extraction network through the SENet structure, and obtains a new feature map; the features extracted by the visual image feature extraction network are weighted by the above 2D attention matrix, and the weighted fused features are passed to the target detection network FasterRCNN for regression and classification. The present invention can make full use of the complementary information of radar and visual sensors, improve the accuracy of the network and the accuracy of target detection; and effectively solve the problem of reduced weight of water targets in images and low performance of small target detection.
[0067] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention (including the claims) is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0068] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for detecting water targets based on multi-source fusion of dual attention mechanism, characterized in that: The steps include: Build radar image generation model and feature extraction model, and generate 2D attention matrix; Construct a visual image feature extraction model to obtain a visual feature map; Re-weighting the 2D attention matrix along all channels of the visual feature map to generate a fused feature map; Input the fused feature map into the target detection network FasterRCNN; The radar image generation model is specifically constructed as follows: Obtain radar and visual sensor training data, and then map the radar point cloud to the front camera coordinate system; Convert the depth, longitudinal velocity and lateral velocity of the radar point cloud into real pixel values of different R, G and B channels; With the radar point cloud converted to the front camera coordinate point as the center, a solid circle is rendered according to certain rendering rules to obtain the radar training image; By constructing a radar image feature extraction model, feature extraction is performed on the radar training image and a corresponding feature map is generated; The construction of the radar image feature extraction model is specifically as follows: The first two convolutional blocks of ResNet-50, BasicStem and Block1, are introduced. The former is used to process the input radar image; the latter is used to output the feature radar image. The specific steps of generating the 2D attention matrix are: Use 4 groups of convolutional layers with different receptive fields to extract the spatial attention matrix, encode the feature map of the radar image into a spatial domain attention weight matrix; and reduce the number of channels in the radar feature map to 1; The four groups of convolutional layers are Conv1×1, Conv3×3, Conv5×5, and Conv7×7, with kernel sizes of 1×1×256×1, 3×3×256×1, 5×5×256×1, and 7×7×256×1, respectively. The step sizes are all set to (1,1) and filled with [0,0], [1,1], [2,2], and [3,3] respectively; Block1 only introduces one residual block to improve the stochastic gradient descent update speed of the detection model.
2. The method for detecting water targets based on multi-source fusion of dual attention mechanism according to claim 1 is characterized in that: The radius of the solid circle obtained by rendering is 7, and the rendering rule is: if there is an overlapping area between two radar points, the one with a smaller depth should occupy more area.
3. The method for detecting water targets based on multi-source fusion of dual attention mechanism according to claim 1 is characterized in that: The construction of the visual image feature extraction model to obtain the visual feature map specifically includes the following steps: Step 1: resize the original visual image and input the resized image into the VGG16 feature extraction network; Step 2, use the convolution module 1 of VGG16 to extract image features; Step 3, introduce the SENet structure after each convolution module of the feature extraction network VGG16; Step 4: Repeat steps 2 and 3 five times to finally obtain the visual feature map output by the 5th layer SENet structure.
4. The method for detecting water targets based on multi-source fusion of dual attention mechanism according to claim 1 is characterized in that: The 2D attention matrix is re-weighted along all channels of the visual feature map to generate a fused feature map, including: The spatial attention matrix is weighted to the new feature map obtained by the SENet-based VGG16 feature extraction network using a weighted method of Kronecker product matrix operation.
5. The method for detecting water targets based on multi-source fusion of dual attention mechanism according to claim 1 is characterized in that: The step of inputting the fused feature map into the target detection network FasterRCNN comprises the following steps: Step 1: Input the fused feature map into the ROI pooling layer; Step 2: Input the feature map obtained in step 1 into two fully connected layers continuously; Step 3: Pass the result after the fully connected layer to the softmax classifier and the boundary regression layer to obtain the classification result and the regressed bounding box.
Citation Information
Patent Citations
Target detection method and target detection system of visual radar spatial and temporal information fusion
CN107576960A
An image quality evaluation method based on importance between deep network features
CN109671063A
Face recognition detection method based on hybrid attention mechanism
CN112200161A
Occlusion target detection and recognition method based on multi-source cognitive fusion
CN112434745A
Tree nematode disease wood identification method and system based on deep learning
CN113033520A
