Medium-frequency radar target detection method based on attention mechanism
By introducing the self-attention mechanism and Mobilenetv3-Small network in radar target detection, combined with the Soft-NMS algorithm, the problem of reduced radar target detection performance in complex backgrounds is solved, and efficient and accurate target detection in complex environments is achieved.
Patent Information
- Application Number
- CN202110944250.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-17
AI Technical Summary
In complex backgrounds, the performance of traditional radar target detection methods decreases, the missed detection rate increases, and it is difficult to quickly process radar echo signals. The detection performance is better when the background is simple, and cannot meet the needs for efficient detection in complex environments.
A medium-repetition frequency radar target detection method based on the attention mechanism is used. The range Doppler two-dimensional image is obtained by preprocessing the radar echo signal, and the network layer of the self-attention mechanism and the Mobilenetv3-Small convolutional neural network are constructed. Combined Soft-NMS algorithm optimizes the settings and training parameters of the detection frame to achieve target detection.
It improves the performance and accuracy of radar target detection, enhances processing speed and efficiency, and enables rapid and accurate detection in complex backgrounds. It is suitable for systems that require rapid decision-making.
Smart Images

Figure CN113805151B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of radar technology, and in particular, relates to a medium-repetition-frequency radar target detection method based on an attention mechanism. Background Art
[0002] As an important target detection system, radar can effectively improve combat efficiency through accurate target detection. When the background is complex and there are interference and clutter, the performance of traditional radar target detection methods decreases and the missed detection rate increases. Only when the background is simple and the target's radar reflection cross-section is large, the detection performance is good.
[0003] Therefore, how to quickly process radar echo signals in complex backgrounds and have high detection performance has always been a hot topic in radar research. Summary of the invention
[0004] The purpose of the present invention is to provide a medium-repetition-rate radar target detection method based on an attention mechanism to improve the performance of radar target detection.
[0005] The present invention is implemented by the following technical solutions:
[0006] A medium-frequency radar target detection method based on attention mechanism is proposed, which includes the following steps:
[0007] 1) Preprocess the echo signal received by the radar to obtain a range Doppler two-dimensional image;
[0008] 2) annotating the range Doppler two-dimensional image and dividing the data set;
[0009] 3) Construct the network layer of self-attention mechanism;
[0010] 4) Construct a Mobilenetv3-Small convolutional neural network for target detection and set initial training parameters, including learning rate, number of iterations, detection box, and early stopping mechanism;
[0011] 5) training the Mobilenetv3-Small convolutional neural network, using the trained detector for target detection, and using an improved non-maximum suppression Soft-NMS algorithm to eliminate overlapping detection frames;
[0012] 6) Calculate the accuracy, missed detection rate, and false alarm rate of target detection on the validation set and the test set to see if they meet the detection requirements. If not, set new initialization parameters to retrain the Mobilenetv3-Small convolutional neural network until the detection requirements are met.
[0013] Furthermore, step 1 specifically includes:
[0014] 11) Perform Fourier transform on the echo signal received by the radar in the slow time direction and the fast time direction respectively;
[0015] 12) Perform Fourier translation transform on the signal processed in step 11 and take the absolute value;
[0016] 13) Normalizing the signal processed in 12 to obtain the range Doppler matrix.
[0017] Furthermore, in step 2, the range Doppler two-dimensional image is annotated, specifically including:
[0018] Set the label box to (x1, y1, x2, y2); x1, y1 are the horizontal and vertical coordinates of the upper left corner of the label box, and x2, y2 are the horizontal and vertical coordinates of the lower right corner of the label box;
[0019] Convert the annotation box into center point coordinates
[0020] Furthermore, the network layer of the self-attention mechanism constructed in step 3 includes two encoding layers, each encoding layer includes two sub-layers of self-attention mechanism and feedforward neural network; each self-attention mechanism layer includes a dimension of d k The three vectors: Query, Key, Values are replaced by Q, K, and V. The dot product of Q and K is calculated and divided by the scale factor Get the weight information corresponding to Q and K; use softmax to normalize the weight function and perform weighted summation on V to get the attention value; the attention algorithm uses accomplish.
[0021] Furthermore, the Mobilenetv3-Small convolutional neural network in step 4 includes 12 bottleneck layers, one standard convolutional layer, and two point-by-point convolutional layers; wherein each Bottelneck includes two point-by-point convolutional layers and one depth convolutional layer.
[0022] Furthermore, in step 4, the initial training parameters are set, specifically including:
[0023] Set 100 epochs; the initial learning rate is 0.001; set the learning rate reduction mechanism: the learning rate is reduced by 1 / 10 at the 60th epoch and the 80th epoch respectively; the detection box size is 16; the early stopping mechanism: stop updating when the generalization error increases for 5 consecutive cycles.
[0024] Furthermore, in step 5, when training the Mobilenetv3-Small convolutional neural network, the loss function of target regression is:
[0025]
[0026] Among them, A and B are the predicted box and the ground truth box respectively; the coordinates of the predicted box A are (x1, y1, x2, y2), and the coordinates of the ground truth box B are: represents the intersection over union (IoU) of the predicted box and the ground truth box, b, b gt represent the center points of the predicted box and the ground truth box respectively, ρ represents the Euclidean distance between the two center points, and c represents the diagonal distance of the smallest closed region that can contain both the predicted box and the ground truth box
[0027] Furthermore, in step 5, an improved non-maximum suppression Soft-NMS algorithm is adopted to eliminate overlapping detection boxes, and the calculation is as follows:
[0028]
[0029] Among them, D represents the set of all remaining valid boxes, b i represents the i-th predicted box to be filtered, s i represents the classification score corresponding to the i-th predicted box; a Gaussian function is used as the penalty term. When iou = 0, the classification score remains unchanged; when 0 < iou < 1, the classification score will decay
[0030] Furthermore, in step 6, the accuracy rate is defined as: Miss detection rate: False alarm rate: Among them, N TP is the number of true targets predicted as true targets, N FP is the number of false targets predicted as true targets, N FN is the number of true targets predicted as false targets, N TN is the number of false targets predicted as false targets.
[0031] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In the medium PRF radar target detection method based on the self-attention mechanism proposed by the present invention, the self-attention mechanism enhances the features of the radar echo signal in the low receptive field layer; the Mobilenet-Small network is used for radar target detection, and the lightweight network ensures the processing speed and accuracy; a detection box with a fixed size is set, which better conforms to the characteristics of the current dataset and improves the efficiency and accuracy of the detector; Soft-NMS is introduced to eliminate overlapping boxes, making the final detection result more accurate, so that the present invention has the technical advantages of simple implementation, fast detection, high accuracy, and being applicable to systems that require fast and accurate decision-making.
[0032] After reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings, other features and advantages of the present invention will become clearer. Brief Description of the Drawings
[0033] Figure 1 It is a flow chart of the medium-repetition-rate radar target detection method based on the attention mechanism proposed by the present invention;
[0034] Figure 2 A schematic diagram of a medium-repetition-rate radar target detection method based on an attention mechanism proposed in the present invention;
[0035] Figure 3 It is a two-dimensional image after preprocessing of the radar echo signal of the present invention;
[0036] Figure 4 A schematic diagram of the basic network framework proposed by the present invention;
[0037] Figure 5 Schematic diagram of the width and height distribution of the detection frame of the data set in the present invention;
[0038] Figure 6 Schematic diagram of detection results of the medium-frequency radar target detector based on the attention mechanism of the present invention. DETAILED DESCRIPTION
[0039] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0040] like Figure 1 and Figure 2 As shown, the medium-frequency radar target detection method based on the attention mechanism proposed in the present invention includes the following steps:
[0041] Step S1: pre-processing the echo signal received by the radar to obtain a range Doppler two-dimensional image.
[0042] In the embodiment of the present invention, the following steps are specifically included:
[0043] Step S11: Perform a Fourier transform on the time series signal of the received radar echo along the slow time direction and the fast time direction respectively.
[0044] Step S12: Based on the processing of step S11, perform a Fourier translation transform and take the absolute value.
[0045] Step S13: Based on the processing in step S12, the range Doppler matrix is normalized and displayed on the image to have several points, such as Figure 3 shown.
[0046] Step S2: annotate the range Doppler two-dimensional image and divide the data set.
[0047] In the embodiment of the present invention, the Doppler two-dimensional image is annotated using LabelImg open source annotation software, and the annotation box is (x1, y1, x2, y2); wherein x1, y1 are the horizontal and vertical coordinates of the upper left corner of the annotation box, and x2, y2 are the horizontal and vertical coordinates of the lower right corner of the annotation box; the annotation box is converted into the center point coordinate representation:
[0048]
[0049] When training the network offline, there are multiple segments of radar echo signals, which are divided into training set, validation set, and test set according to the ratio of 8:1:1. Each segment of data contains multiple frames of continuous data.
[0050] Step S3: Construct the network layer of the self-attention mechanism.
[0051] In an embodiment of the present invention, a network layer of a Self-Attention mechanism is constructed, and the network layer includes two encoding layers, and each encoding layer includes two sublayers: a self-attention mechanism and a feedforward neural network.
[0052] Each self-attention mechanism layer consists of a dimension d k The three vectors: Query, Key, Values are replaced by Q, K, and V; by calculating the dot product of Q and K and dividing by a scale factor The weight information corresponding to Q and K can be obtained; then the weight function is normalized using softmax and V is weighted summed, and finally the attention value can be obtained. The attention algorithm adopts accomplish.
[0053] Step S4: construct a Mobilenetv3-Small convolutional neural network for target detection and set initial training parameters, which include learning rate, number of iterations, detection box, and early stopping mechanism.
[0054] In the embodiment of the present invention, the MobilenetV3-Small network is constructed as follows Figure 4 As shown in the figure, MobilenetV3-Small has a lighter network than YOLOV5, and the deep separable convolutional network used has small and fast computational complexity, meeting the performance requirements of fast computing. The MobilenetV3-Small network has a total of 12 bottleneck layers, one standard convolutional layer, and two point-by-point convolutional layers, where each bottleneck includes two point-by-point convolutional layers and one depth convolutional layer.
[0055] Set the initial training parameters as follows:
[0056] Set 100 epochs;
[0057] The initial learning rate is 0.001;
[0058] Set the learning rate decay mechanism: the learning rate decays by 1 / 10 at the 60th Epoch and the 80th Epoch respectively; the Batchsize is 16;
[0059] Early stopping mechanism: stop updating when the generalization error increases for 5 consecutive epochs.
[0060] Count the number of pixels of the target in the range-Doppler, as Figure 5 shown, if the range-Doppler target is several pixels, count the length and width of all target pixels, and set the detection box to a size of (8,8).
[0061] Step S5: Train the Mobilenetv3-Small convolutional neural network, use the trained detector for target detection, and adopt the improved non-maximum suppression Soft-NMS algorithm to eliminate overlapping detection boxes.
[0062] The loss function for target regression used in training is:
[0063]
[0064] where A and B are the predicted box and the ground truth box respectively; the coordinates of the predicted box A are (x1, y1, x2, y2), and the coordinates of the ground truth box B are: represents the intersection over union of the predicted box and the ground truth box, b, b gt represent the centers of the predicted box and the ground truth box respectively, ρ represents the Euclidean distance between the two centers, and c represents the diagonal distance of the smallest closed region that can contain both the predicted box and the ground truth box.
[0065] Use Soft-NMS to eliminate existing overlapping candidate boxes, and the Soft-NMS calculation is as follows:
[0066]
[0067] where D represents the set of all retained valid boxes, b i represents the i-th predicted box to be filtered, s i represents the classification score corresponding to the i-th predicted box. Use the Gaussian function as the penalty term. When iou = 0, the classification score remains unchanged; when 0 < iou < 1, the classification score will decay.
[0068] Step S6: Calculate whether the accuracy, missed detection rate, and false alarm rate of target detection on the validation set and the test set meet the detection requirements. If not, set new initialization parameters and retrain the Mobilenetv3-Small convolutional neural network until the detection requirements are met.
[0069] The accuracy is defined as: Missed detection rate: False alarm rate: Among them, N TP is the number of true targets predicted as true targets, N FP is the number of false targets predicted as true targets, N FN The real target is predicted as a false target, N TN is the number of false targets predicted to be false targets.
[0070] like Figure 6 As shown in the figure, the detection results of using the Soft-NMS algorithm to eliminate the existing overlapping candidate boxes are evaluated using recognition accuracy, missed detection rate, and false alarm rate as follows: There are 3 real targets in total, and the Mobilenet-Small target detector with an attention mechanism correctly detects 3 targets with an accuracy of 100%, a missed detection rate of 0, and a false alarm rate of 0.
[0071] It should be pointed out that the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A medium-frequency radar target detection method based on attention mechanism, characterized in that: The following steps are involved: 1) Preprocess the echo signal received by the radar to obtain a range Doppler two-dimensional image; 2) annotating the range Doppler two-dimensional image and dividing the data set; 3) Construct a network layer with self-attention mechanism and use it to enhance the features of radar echo signals in low receptive fields; 4) Build a Mobilenetv3-Small convolutional neural network for target detection and set the initial training parameters, including learning rate, number of iterations, detection box, and early stopping mechanism; 5) Training the Mobilenetv3-Small convolutional neural network, using the trained detector for target detection, and using an improved non-maximum suppression Soft-NMS algorithm to eliminate overlapping detection frames; 6) Calculate the accuracy, missed detection rate, and false alarm rate of target detection on the validation set and the test set to see if they meet the detection requirements. If not, set new initialization parameters to retrain the Mobilenetv3-Small convolutional neural network until the detection requirements are met; Step 1 specifically includes: 11) Perform a Fourier transform on the echo signal received by the radar along the slow time direction and the fast time direction respectively; 12) Perform Fourier translation transform on the signal processed in step 11 and take the absolute value; 13) Normalizing the signal processed in 12 to obtain the range Doppler matrix; The network layer of the self-attention mechanism constructed in step 3 includes two encoding layers, each of which includes two sublayers: the self-attention mechanism and the feedforward neural network; each self-attention mechanism layer includes a dimension of The three vectors: Query, Key, Values are replaced by Q, K, and V. The dot product of Q and K is calculated and divided by the scale factor , get the weight information corresponding to Q and K; use softmax to normalize the weight function and perform weighted summation on V to get the attention value; among them, the attention algorithm adopts accomplish; In step 4, set the initial training parameters, including: Set 100 epochs; the initial learning rate is 0.001; set the learning rate reduction mechanism: the learning rate is reduced by 1 / 10 at the 60th epoch and the 80th epoch respectively; the detection box size is 16; the early stopping mechanism: stop updating when the generalization error increases for 5 consecutive cycles.
2. The medium-repetition-rate radar target detection method based on the attention mechanism according to claim 1 is characterized in that: In step 2, the range Doppler two-dimensional image is annotated, specifically including: Set the label box to ( , , , );in , is the horizontal and vertical coordinates of the upper left corner of the annotation box, , The horizontal and vertical coordinates of the lower right corner of the annotation box; Convert the annotation box into center point coordinates .
3. The medium-repetition-rate radar target detection method based on the attention mechanism according to claim 1 is characterized in that: The Mobilenetv3-Small convolutional neural network in step 4 includes 12 bottleneck layers, one standard convolutional layer, and two point-by-point convolutional layers; each bottleneck layer includes two point-by-point convolutional layers and one depth convolutional layer.
4. The method for medium-repetition-rate radar target detection based on attention mechanism according to claim 1, characterized in that: In step 5, when training the Mobilenetv3-Small convolutional neural network, the loss function of target regression is: , Among them, A and B are the predicted box and the real box respectively; the coordinates of the predicted box A are ( , , , ), the coordinates of the real box B are: , ), Represents the intersection-over-union ratio of the predicted box and the true box, Represent the center points of the predicted box and the real box respectively, represents the Euclidean distance between two center points, Represents the diagonal distance of the minimum closure area that can contain both the predicted box and the true box.
5. The medium-repetition-rate radar target detection method based on the attention mechanism according to claim 1, characterized in that: In step 5, the improved non-maximum suppression Soft-NMS algorithm is used to eliminate overlapping detection boxes. The calculation is as follows: , ; Among them, D represents the set of all retained valid bounding boxes, represents the i-th predicted bounding box to be filtered, represents the classification score corresponding to the i-th predicted bounding box; the Gaussian function is used as the penalty term. When iou = 0, the classification score remains unchanged; when 0 < iou < 1, the classification score will decay.
6. The medium-repetition-rate radar target detection method based on the attention mechanism according to claim 1 is characterized in that: In step 6, the accuracy is defined as: , missed detection rate: , false alarm rate: ,in, is the number of true targets predicted as true targets, is the number of false targets predicted as true targets, The real target is predicted as a false target. is the number of false targets predicted to be false targets.
