Radar road target detection method based on Transform model

Through the millimeter-wave radar target detection method based on the Transformer model, using range Doppler images and improved RT-DETR models, combined with EfficientFormerV2 and HiLo attention mechanisms, the problem of performance degradation of radar detection in complex scenes is solved, and a better Stable and efficient detection results.

CN118534433AActive Publication Date: 2024-08-23UNIV OF ELECTRONICS SCI & TECH OF CHINA

Patent Information

Application Number
CN202410408128.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2024-08-23
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

Existing radar target detection technology has reduced detection capabilities in complex and changeable real scenes, and deep learning methods based on optical images cannot effectively utilize radar images, limiting detection performance.

Method used

A millimeter-wave radar target detection method based on the Transformer model is adopted, through range Doppler image processing and an improved RT-DETR model, combined with EfficientFormerV2 and HiLo attention mechanisms, to enhance feature extraction and fusion, using diversified branch blocks and dynamic upsampling. , optimize detection performance.

Benefits of technology

It achieves more stable detection performance, avoids model mismatch problems, improves detection accuracy and anti-interference capabilities, and is suitable for complex road scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534433A
    Figure CN118534433A
Patent Text Reader

Abstract

The invention belongs to the technical field of radar target detection, and particularly relates to a radar road target detection method based on a Transform model, and the method comprises the steps: firstly collecting an echo signal of a road target through a millimeter wave radar, converting the echo signal into a radar RD image, and inputting the radar RD image into a detection model, so as to complete the detection of the road target; the detection model of the invention is an improved RT-DETR, and the improvement mode comprises the following steps: using HiLo attention to optimize AIFI; the method comprises the following steps: realizing dynamic up-sampling by using DySample; a Fusion module is optimized by using a DBB; and an OfficientFormer is used as a backbone network, so that the lightweight of the model is realized. According to the invention, high-performance detection of the road target can be realized through the radar RD map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of radar target detection, and in particular relates to a method for radar road target detection based on a Transformer model. Background Art

[0002] The most widely used in target detection is the optical camera, which can provide rich image information such as color and contour. However, optical cameras are easily affected by lighting conditions and environmental factors such as rain, snow, and fog, resulting in poor detection results. LiDAR uses lasers to obtain target information, has high resolution and measurement accuracy, and can perform three-dimensional imaging, but its anti-interference ability is poor, and its cost is high, making it difficult to deploy on a large scale. Ultrasonic radar has high accuracy when measuring close-range targets, but ultrasonic waves attenuate quickly during propagation and are easily absorbed by other interfering objects, so the detection distance is limited. Millimeter-wave radar has strong anti-interference ability, can operate stably under poor light and weather conditions, has the ability to work all day and all weather, and has low cost and is easy to deploy. It is an important sensor in road target detection.

[0003] Constant false alarm rate detection is a commonly used algorithm in radar target detection, but it is mainly based on physical models such as radar signals and environmental clutter. In complex and changeable real-world scenarios, model mismatch problems usually occur, resulting in a decrease in detection capabilities. Detection methods based on deep learning usually use optical images as data sources, but the processed radar images are quite different from visual images, so this method limits detection performance to a certain extent. Summary of the invention

[0004] The present invention proposes a millimeter-wave radar target detection method based on the Transformer model, and mainly targets road scenes, wherein the millimeter-wave radar data is processed and converted into a range Doppler (RD) map, and an improved RT-DETR model is used to improve the detection performance.

[0005] The technical solution of the present invention is:

[0006] A radar road target detection method based on a Transformer model comprises the following steps:

[0007] S1. Use millimeter-wave radar to collect road target echo signals, and obtain RD graphs through distance-dimensional fast Fourier transform (FFT), Doppler-dimensional FFT and non-coherent accumulation methods as the data source for deep learning models;

[0008] S2, label the radar RD image as a data set for network training and verification;

[0009] S3. Build an improved RT-DETR model. The constructed RT-DETR model is mainly composed of three parts: Backbone, Encoder and Decoder. The Backbone part uses the smallest model S0 in EfficientFormerV2 as the backbone feature extraction network, which includes Embbeding, Block×2, Subsample, Block×2, Subsample, Block×4, Attention Block×2, Attention Subsample, Block×2, Attention Block×2. Among them, Embbeding is composed of Conv, Batch Normalization (Batch Normalization, BN) and Gaussian Error Linear Unit (Gaussian Error Linear Unit, GELU) activation function. The Conv module will downsample the image by 2 times. Block is composed of PointWise Convolution (PWConv), DepthWise Convolution (DWConv) and residual connection. PWConv is used for dimensionality reduction compression, then DWConv is used to extract local information, and finally PWConv is used for dimensionality increase. Subsample consists of Conv and BN. The attention mechanism in the Transformer model can be expressed as

[0010]

[0011] Where Q, K, and V represent the Query, Key, and Value matrices respectively, which are the inputs of the attention mechanism module. kis the number of columns of the Q matrix. The Attention mechanism in EfficientFormer is based on the above formula, but the following optimizations are made: adding bias parameters; using Talking Head to enhance information interaction between different heads; using Locality to add local information. Attention Subsample uses the attention mechanism to complete downsampling. First, average pooling is used as static local downsampling, and DWConv is used as a learnable dynamic downsampling. The results of the two are added and mapped to the Q matrix. Finally, the attention downsampling result is residually connected with the convolution downsampling result. Compared with Attention_2, Attention_1 adds downsampling and upsampling at the beginning and end to reduce the amount of calculation. Attention Block uses a residual connection with Attention and is connected to Block. Encoder consists of Attention-based Intra-scale Feature Interaction (AIFI) and CNN-based Cross-scale Feature-fusion Module (CCFM). Among them, AIFI uses HiLo attention to replace the multi-head attention mechanism. HiLo uses self-attention in local areas to obtain high-frequency information in the image, and uses global attention to extract low-frequency information in the image after average pooling to reduce the number of parameters, thereby realizing the fusion of high- and low-frequency information. CCFM is the feature fusion part. It will scale feature maps of different sizes through upsampling and downsampling convolution operations and then use the Fusion module for fusion. Fusion will splice the two parts of the input feature map and divide it into two branches for processing. One branch will pass through PBS, and the other branch will pass through PBS and Diverse Branch Block (DBB). The sum of the results of the two branches is the output of Fusion.CCFM contains top-down and bottom-up feature fusion paths. The top-down path includes PBS, DySample, Fusion, PBS, DySample, Fusion. After the modules are sorted in top-down order, the input of the first PBS is the output of AIFI, and the input of the first Fusion is the first Attention in Backbone. The output of Block×2, the input of the second Fusion is the output of the second Block×2 in Backbone; wherein, PBS is composed of PWConv, BN and SiLU activation functions connected in sequence; the bottom-up path includes CBS, Fusion, CBS, Fusion in sequence, and after each module is numbered in order from bottom to top, the input of the first CBS is the output of the second Fusion in the top-down path, the input of the first Fusion is the output of the second PBS in the top-down path, and the input of the second Fusion is the output of the first PBS in the top-down path, wherein CBS is composed of Conv, BN, and SiLU activation functions connected in sequence; the output signals of the two Fusions in the bottom-up path and the output of the second Fusion in the top-down path are spliced ​​to obtain the output information of CCFM; the upsampling part uses DySample to implement dynamic upsampling, mainly by calculating the sampling point offset information through the image to be sampled, and then sampling is performed on the original image according to the offset information to obtain the sampling result. The Fusion module uses DBB to improve RepBlock. DBB uses a variety of branches, including ordinary convolution, point convolution, multi-scale convolution and average pooling. These branches have different complexities and structures, which can enrich the feature space, enhance the network detection performance, and can be equivalently converted into a single convolution during inference to reduce the cost of inference. A certain number of features will be selected from the output information of CCFM as the initial input of the Decoder, and then the final prediction information will be output after iterative optimization of the Decoder to complete the detection task of the target;.

[0012] S4. Use the dataset to train the improved RT-DETR network, where the loss includes category loss, L1 loss and GIoU loss, and the total loss is

[0013] L=l1L class +l2L L1 +l3L GIoU

[0014] Among them, λ1, λ2 and λ3 are the weight coefficients of category loss, L1 loss and GIoU loss respectively;

[0015] S5. Convert the measured radar data into RD graph and feed it into the trained improved RT-DETR model to obtain the target detection result.

[0016] The beneficial effects of the present invention are as follows: (1) A data-driven deep learning method is used, which has more stable detection performance than the traditional model-driven constant false alarm detection method and does not have the problem of model mismatch. (2) In view of the sparsity of the radar RD map, a lightweight backbone network EfficientFormer is used to improve the detection accuracy while reducing the number of parameters. (3) The overall detection performance of the RT-DETR model is improved by using HiLo attention in AIFI, using DySample dynamic upsampling, and using DBB to optimize the Fusion module. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flowchart of a radar road target detection method based on the Transformer model.

[0018] Figure 2 This is the structural diagram of EfficientFormerV2_S0, the backbone network of the RT-DETR model.

[0019] Figure 3 This is the structural diagram of HiLo attention.

[0020] Figure 4 This is the structural diagram of the DBB module.

[0021] Figure 5 To improve the RT-DETR model structure diagram.

[0022] Figure 6 This is the detection result diagram of the radar RD diagram. DETAILED DESCRIPTION

[0023] The specific technical solutions of the present invention will be described below in conjunction with the accompanying drawings.

[0024] The present invention is a radar road target detection method based on the Transformer model. The overall process is as follows: Figure 1 As shown, the specific steps include the following steps.

[0025] S1. Use millimeter wave radar to collect road target echo signals, and obtain RD graph through range dimension FFT, Doppler dimension FFT and non-coherent accumulation method;

[0026] S2, label the radar RD image as a data set for network training and verification;

[0027] S3. Build an improved RT-DETR model. The constructed RT-DETR model is mainly composed of three parts: Backbone, Encoder and Decoder. The size of the radar RD image input to the model is 640×640. The Backbone part uses the smallest model S0 in EfficientFormerV2 as the backbone feature extraction network, which is mainly composed of Embbeding, Block, Subsample, Attention Block and Attention Subsample. Among them, Embeding is composed of Conv, BN and GELU activation functions, and the Conv module will downsample the image by 2 times. Block is composed of PWConv, DWConv and residual connection. PWConv is first used for dimensionality reduction compression, then DWConv is used to extract local information, and finally PWConv is used for dimensionality increase. The attention mechanism in the Transformer model can be expressed as

[0028]

[0029] Where Q, K, and V represent the Query, Key, and Value matrices respectively, which are the inputs of the attention mechanism module. k is the number of columns of the Q matrix. The Attention mechanism in EfficientFormer is based on the above formula, but the following optimizations are made: adding bias parameters; using Talking Head to enhance information interaction between different heads; using Locality to add local information. Attention Subsample uses the attention mechanism to complete downsampling. First, average pooling is used as static local downsampling, and DWConv is used as a learnable dynamic downsampling. The results of the two are added and mapped to the Q matrix. Finally, the attention downsampling result is residually connected with the convolution downsampling result. The structure diagram of EfficientFormerV2_S0 is shown in Figure 2 As shown in the figure, the encoder consists of AIFI and CCFM. Among them, AIFI uses HiLo attention to replace the multi-head attention mechanism. HiLo uses self-attention in local areas to obtain high-frequency information in the image, and uses global attention to extract low-frequency information in the image after average pooling to reduce the number of parameters, thereby achieving the fusion of high- and low-frequency information. The structure of HiLo is shown in the figure Figure 3As shown. CCFM is the feature fusion part, which will scale the feature maps of different sizes through upsampling and downsampling convolution operations and then use the Fusion module for fusion, and includes top-down and bottom-up feature fusion paths. The upsampling part uses DySample to implement dynamic upsampling, which mainly calculates the sampling point offset information through the image to be sampled, and then samples the original image according to the offset information to obtain the sampling result. The Fusion module uses DBB to improve RepBlock. DBB uses a variety of branches, including ordinary convolution, point convolution, multi-scale convolution and average pooling. These branches have different complexities and structures, which can enrich the feature space and enhance the network detection performance. And during inference, they can be equivalently converted into a single convolution to reduce the cost during inference. The structure diagram of DBB is shown in Figure 4 As shown. Finally, the three-way fused feature information is spliced ​​to obtain the output information of CCFM. A certain number of features will be selected from the output information of CCFM as the initial input of the Decoder, and then the final prediction information will be output after iterative optimization of the Decoder to complete the detection of the target. The network structure of the improved RT-DETR model is shown as follows: Figure 5 As shown;

[0030] S4. Use the dataset to train the improved RT-DETR model. The training parameters are as follows: a batch size of 16, 100 epochs, AdamW optimizer, initial learning rate of 0.0001, momentum parameter of 0.9. The loss part includes category loss, L1 loss and GIoU loss, and the total loss is

[0031] L=1·L class +5·L L1 +2·L GIoU

[0032] S5. Convert the measured radar data into RD graph and feed it into the trained improved RT-DETR model to obtain the target detection result, such as Figure 6 It can be seen that the solution proposed by the present invention can achieve high-performance detection of road targets and can be applied to the field of radar target detection technology.

Claims

1. A radar road target detection method based on Transformer model, characterized in that: The following steps are involved: S1. Use millimeter-wave radar to collect road target echo signals, and obtain RD graphs through range-dimensional FFT, Doppler-dimensional FFT and non-coherent accumulation methods as the data source for deep learning models; S2, labeling the radar RD image as a data set for network training; S3. Build an improved RT-DETR model, which consists of three parts: Backbone, Encoder and Decoder. Backbone uses the smallest model S0 in EfficientFormerV2 as the backbone feature extraction network, which includes Embbeding, Block×2, Subsample, Block×2, Subsample, Block×4, Attention Block×2, Attention Subsample, Block×2, Attention Block×2, where Embbeding is composed of Conv, BN and GELU activation functions. Block is composed of PWConv, DWConv and residual connection. PWConv is used for dimensionality reduction compression, DWConv is used to extract local information, and PWConv is used for dimensionality increase. Subsample is composed of Conv and BN. AttentionBlock adds bias parameters on the basis of the original Attention, including using Talking Head to enhance the information interaction between different heads and using Locality to add local information. Attention Subsample uses the attention mechanism to complete downsampling. First, average pooling is used as a static local downsampling, and DWConv is used as a learnable dynamic downsampling. The results of the two are added and mapped to the Q matrix. Finally, the attention downsampling result is residually connected with the convolution downsampling result; Attention Block uses a residual connection with Attention and is connected to Block; The Encoder part is composed of AIFI and CCFM, where AIFI uses HiLo attention instead of the multi-head attention mechanism. HiLo obtains high-frequency information in the image by using self-attention in the local area, and uses global attention to extract low-frequency information in the image after average pooling reduces the number of parameters, thereby realizing the fusion of high- and low-frequency information; CCFM is the feature fusion part. The feature maps of different sizes are scaled by upsampling and downsampling convolution operations and then fused using the Fusion module. Fusion will splice the two parts of the input feature map and divide it into two branches for processing. One branch will pass through PBS, and the other branch will pass through PBS and DBB. The sum of the results of the two branches is the output of Fusion;CCFM includes top-down and bottom-up feature fusion paths. The top-down path includes PBS, DySample, Fusion, PBS, DySample, and Fusion in sequence. After the modules are sorted in top-down order, the input of the first PBS is the output of AIFI, the input of the first Fusion is the output of the first Attention Block×2 in Backbone, and the input of the second Fusion is the output of the second Block×2 in Backbone. Among them, DySample is used to realize dynamic upsampling. The sampling point offset information is calculated by the image to be sampled, and then the original image is sampled according to the offset information to obtain the sampling result. The Fusion module uses DBB to improve RepBlock. DBB uses a variety of branches, including ordinary convolution, point convolution, multi-scale convolution, and average pooling. PBS is composed of PWConv, BN, and SiLU activation functions connected in sequence. The bottom-up path includes CBS, Fusion, CBS, and Fusion in sequence. After the modules are numbered in bottom-up order, the input of the first CBS is The output of the second Fusion in the top-down path, the input of the first Fusion is the output of the second PBS in the top-down path, and the input of the second Fusion is the output of the first PBS in the top-down path, where CBS is composed of Conv, BN, and SiLU activation functions connected in sequence; the output of the two Fusions in the bottom-up path and the output of the second Fusion in the top-down path are spliced ​​to obtain the output information of CCFM; the required feature signals are selected from the output information of CCFM as the initial input of the Decoder through the query selection module, and then the final prediction information is output after iterative optimization of the Decoder to complete the detection task of the target; S4. Use the dataset to train the improved RT-DETR network, where the loss includes category loss, L1 loss and GIoU loss, and the total loss is L=l1L class +l2L L1 +l3L GIoU Among them, λ1, λ2 and λ3 are the weight coefficients of category loss, L1 loss and GIoU loss respectively; S5. Convert the measured radar data into RD graph and feed it into the trained improved RT-DETR model to obtain the target detection result.

Citation Information

Patent Citations

  • Multi-target garbage detection method based on improved YOLOv5 model

    CN116452950A

  • Small target detection method and device for unmanned aerial vehicle based on improved DETR

    CN116958687A

  • Pedestrian target detection method based on millimeter wave radar detection

    CN117331079A

  • Vehicle-mounted millimeter wave image target detection and classification method and related device

    CN117392377A

  • Synthetic aperture radar (SAR) image target detection method

    US20230169623A1

Cited By

  • Highway pavement crack detection method based on improved RT-DETR

    CN119251225A

  • Pulse Doppler radar target detection method and system based on background contrast attention mechanism

    CN120178232A

  • Pulse doppler radar target detection method and system based on background contrast attention mechanism

    CN120178232B

  • Night infrared image pedestrian detection method and system based on wavelet feature modulation and HiLo attention mechanism

    CN122200751A