Multi-scale target detection method and system based on roadside camera and millimeter wave radar

By employing techniques such as spatiotemporal correlation and extended Kalman filtering, multi-scale feature maps are generated and attention fusion is performed, which solves the problem of insufficient accuracy and robustness of target detection by cameras and millimeter-wave radar in complex environments, and achieves efficient target detection results.

CN118411508BActive Publication Date: 2026-11-27QINGDAO INST OF COMPUTING TECH XIDIAN UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410468688.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2026-11-27
Estimated Expiration
2044-04-18

AI Technical Summary

Technical Problem

In long-distance and large-scale monitoring scenarios, cameras struggle to capture details of small targets, multi-scale changes in targets hinder identification, and foreground and background are difficult to distinguish in complex environments. Traditional fusion methods fail to fully explore the interaction between radar and camera data features, resulting in insufficient detection accuracy and robustness.

Method used

The spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system is determined by spatiotemporal correlation. The radar point cloud data is processed by denoising using the extended Kalman method to generate radar images and perform bilateral filtering expansion. Multi-scale features are extracted by combining an improved fusion network. Features are enhanced by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. Finally, the target detection results are output by inputting the detection subnetwork and the regression subnetwork.

Benefits of technology

It improves the accuracy and robustness of target detection, especially under adverse weather or low light conditions, significantly enhancing the security and reliability of intelligent security monitoring and solving the problem of poor data fusion in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411508B_ABST
    Figure CN118411508B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of target detection and intelligent security, and discloses a multi-scale target detection method and system based on a roadside camera and a millimeter wave radar; the application introduces a hollow multi-scale attention mechanism, reduces the interference of a complex background on detection performance, captures more spatial context information in a cross-space learning process, and increases the perception ability of a network to a detected target; an extended Kalman filter is used to reduce radar data noise and introduce a bilateral filter to extend radar point cloud projection, enhance radar feature information representation, and improve radar image feature richness; a two-stage fusion detection network is designed using spatial attention, dynamic optimization of feature weights of two sensors is achieved, interaction between radar and camera heterogeneous features is effectively learned, the guiding role of radar image information in key feature extraction is more fully played, the overall fusion effect of radar and camera data is optimized, and the target detection accuracy and robustness in a complex environment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of target detection and intelligent security technology, and in particular relates to a multi-scale target detection method and system based on roadside cameras and millimeter-wave radar. Background Technology

[0002] In today's intelligent security scenarios, multi-sensor information fusion technology is becoming increasingly common. Cameras are inexpensive and can provide rich visual information and detail, but their functionality is limited in complex scenarios such as rain and fog. Millimeter-wave radar can provide reliable distance and velocity information, especially in harsh environments where visual sensors are limited, but it cannot accurately identify target categories based on texture information. Given the complementary characteristics between millimeter-wave radar and camera sensors, their fusion has become an important area of ​​research in multi-sensor fusion technology.

[0003] Despite significant progress in target detection based on millimeter-wave radar and cameras, several key challenges remain. In long-distance and large-scale surveillance scenarios, image resolution limitations make it difficult for cameras to capture details of small targets, hindering the detection of intrusive small targets. The near-total-to-far distance characteristic of surveillance perspectives, resulting in multi-scale changes in targets, also impedes feature extraction and recognition. In complex environments, foreground targets are difficult to distinguish from the background, leading to poor algorithm performance. Millimeter-wave radar also experiences missed and false detections during target detection. Noise in point cloud data prevents radar point clouds from accurately falling within the target's geometric contours when mapped to the image plane, resulting in pixel-level correlation errors that may negatively impact fusion detection. Furthermore, the sparsity of radar point cloud data weakens the guiding ability of radar image features during fusion detection. In addition, traditional fusion methods such as feature addition fusion and feature cascade fusion cannot effectively utilize information from both sensors. Therefore, efficiently combining information from millimeter-wave radar and camera sensors remains a crucial research challenge. Therefore, fully combining the advantages of these two sensors to invent a new multi-scale target detection method based on the fusion of roadside cameras and millimeter-wave radar has great theoretical significance and application value.

[0004] Based on the above analysis, the problems and shortcomings of the existing technology are as follows:

[0005] In long-distance and large-scale monitoring scenarios, the limitation of image resolution makes it difficult for cameras to capture details of small targets, resulting in difficulties in detecting intrusive small targets. The multi-scale changes of targets caused by the near-to-far perspective of the monitoring view are also not conducive to the extraction and recognition of target features. Under the influence of complex recognition environments, it is difficult to distinguish foreground targets from the background, and the algorithm's recognition ability in complex backgrounds is poor. Furthermore, traditional fusion methods have failed to fully explore the interaction relationship between radar and camera data features, and the fusion effect needs to be improved. Summary of the Invention

[0006] To address the problems existing in the prior art, this invention provides a multi-scale target detection method and system based on roadside cameras and millimeter-wave radar.

[0007] This invention is implemented as follows: a multi-scale target detection method based on roadside cameras and millimeter-wave radar includes:

[0008] Step 1: Perform spatiotemporal correlation on the two sensors, roadside camera and millimeter-wave radar, determine the spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system, and acquire camera image data and millimeter-wave radar point cloud data at the same sampling frequency.

[0009] Step 2: The extended Kalman method is used to denoise the millimeter-wave radar point cloud data. The denoised point cloud data is then projected using a spatial transformation relationship to generate a radar image. The projection is then extended using a bilateral filtering method to enhance the representation of the radar image data.

[0010] Step 3: Use a pre-established fusion network to extract radar image features and camera image features. Perform multi-scale feature fusion by improving downsampling and the neck network of the bidirectional pyramid to extract multi-level spatial information and obtain the fused multi-scale feature map.

[0011] Step four: The fusion features of the two sensors are further enhanced by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. Finally, the input is fed into the detection sub-network and the regression sub-network to output the target detection results.

[0012] Furthermore, the transformation relationship between the radar coordinate system and the pixel coordinate system is as follows:

[0013]

[0014] Among them, f x f y u0 and v0 are internal camera parameters, which can be obtained through camera calibration; h is the height difference between the millimeter-wave radar and the camera. The pitch angle is between the camera and the radar along the X-axis.

[0015] Furthermore, the measurement vector of the extended Kalman filter represents the position and velocity state of the radar-detected target. The state vector of the j-th detected target ωj at time t can be expressed as:

[0016]

[0017] Where x represents the longitudinal distance of the radar to the target, y represents the lateral distance of the radar to the target, v represents the target's moving speed, and θ represents the target's azimuth angle relative to the radar; in the prediction of the motion state, the process model N is represented as:

[0018]

[0019] For each radar projection point, the weight assigned to each pixel within its influence range on the image is expressed as follows:

[0020]

[0021] Where (x,y) are the coordinates of the radar point, (m,n) are the coordinates of a point within the influence range of the radar point on the image, σd and σr are parameters used to adjust the influence of spatial distance and grayscale difference on the weight value of each pixel, respectively, and I(x,y) represents the grayscale value of the pixel at coordinates (x,y).

[0022] The influence range of a radar point is defined as a rectangular area with a side length of WR centered on the radar point. For pixels within the influence range whose weight exceeds the threshold value Wth, their pixel values ​​are set to the same value as the radar point. The relationship between the threshold value Wth and the side length WR of the radar point influence matrix is ​​shown in the following formula:

[0023]

[0024] Furthermore, the fusion network uses the SPD-Conv module to replace the strided convolutions with a stride of 2 in the five CBS units of the YOLOv5 backbone network, thus obtaining the corresponding SPD-CBS module.

[0025] Furthermore, the fusion feature can be expressed as:

[0026]

[0027] Where O represents the output feature map after feature fusion, Pi represents the i-th input feature map, wi represents the learnable weights assigned to each input feature map Pi, and ε = 0.0001 is a small value.

[0028] Furthermore, the dilated multi-scale attention module is composed of an EMA module and a cascaded dilated convolution module. The cascaded dilated convolution module combines residual connections with hybrid dilated convolution and superimposes three convolution kernels with dilation rates of 1, 2, and 4 and a size of 3×3.

[0029] The spatial attention fusion method employs a spatial attention module, which consists of three sets of convolutional layers for extracting the spatial attention matrix;

[0030] The stride of a 1×1 convolution is 1 and there is no padding; the stride of a 3×3 convolution is 1 and the padding is 1; the stride of a 5×5 convolution is 1 and the padding is 2.

[0031] Two-stage fusion approach:

[0032] First, feature maps from the last three scales of the deeper layers in the backbone network are selected for fusion, and the fusion weights are adaptively learned.

[0033] Secondly, before being input into the detection head network, the radar image features are fused again with the camera image features after multi-scale fusion and attention enhancement to further strengthen the information representation of the feature map;

[0034] Finally, the fused features are input into the detection subnetwork and the regression subnetwork to output the target detection results.

[0035] Another object of the present invention is to provide a multi-scale target detection system based on roadside cameras and millimeter-wave radar, comprising:

[0036] The data acquisition module is responsible for collecting raw data from various sensor devices such as millimeter-wave radar and cameras. It uses the sampling period of the millimeter-wave radar with a lower sampling frequency as the time reference for the overall sampling process. It utilizes multi-threading technology to synchronously trigger the camera to acquire data by using the radar's sampling period as the trigger mechanism.

[0037] The logic processing module is responsible for video stream processing and radar camera fusion detection functions; it receives video data from bullet cameras and dome cameras, can also view pre-recorded videos stored on the server, and achieves key target monitoring by combining millimeter-wave radar and camera data for fusion detection.

[0038] The application service module is responsible for three functions: data storage, alarm management, and task visualization. Data storage includes raw information collected by millimeter-wave radar and cameras, alarm data, and identified target information, providing fast data retrieval and backup functions. When alarm management detects potential security threats such as illegal intrusion or traffic violations, it calls the sound and light alarm devices to issue an alarm and reminds monitoring personnel to take appropriate measures through the system interface. The task visualization module displays information such as real-time monitoring video streams, sensor device status, and target historical trajectories.

[0039] Another object of the present invention is to provide a computer device including a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the steps of the multi-scale target detection method based on roadside cameras and millimeter-wave radar.

[0040] Another object of the present invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the multi-scale target detection method based on a roadside camera and millimeter-wave radar.

[0041] Another objective of the present invention is to provide an information data processing terminal for implementing the multi-scale target detection system based on roadside cameras and millimeter-wave radar.

[0042] Based on the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solution to be protected by this invention are as follows:

[0043] First, this invention introduces the SPD-Conv optimized feature extraction network to retain more image details and avoid the loss of fine-grained information, improves the neck network structure of YOLOv5, and adopts a combination of convolution and pooling to achieve effective information fusion between feature layers, thereby enhancing the ability to capture features of small objects. By introducing a dilated multi-scale attention mechanism, the interference of complex backgrounds on detection performance is reduced, and more spatial context information is captured during cross-spatial learning, increasing the network's perception ability of the detected target. Extended Kalman filtering is used to reduce radar data noise, and bilateral filtering is introduced to extend the radar point cloud projection, enhancing the representation of radar feature information and improving the feature richness of radar images. A two-stage fusion detection network is designed using spatial attention to dynamically optimize the feature weights of the two sensors, effectively learn the interaction relationship between the heterogeneous features of radar and camera, more fully leverage the guiding role of radar image information in key feature extraction, optimize the overall fusion effect of radar and camera data, and improve the accuracy and robustness of target detection in complex environments.

[0044] Secondly, this invention overcomes the shortcomings of existing target detection technologies, significantly improving the accuracy and robustness of target detection in complex environments, especially under adverse weather or low-light conditions, effectively enhancing the security and reliability of intelligent security monitoring applications. The technical solution of this invention demonstrates outstanding technical advantages and application potential in the field of multi-sensor fusion, providing strong support for the advancement and practical application of target detection technology.

[0045] Third, the expected benefits and commercial value of the technical solution of the present invention after transformation are as follows: By optimizing the accuracy and robustness of target detection, the technical solution of the present invention improves the detection performance of intelligent security monitoring systems, which can not only reduce potential security risks, but also enhance user experience, and is expected to promote technological progress and market expansion in related industries.

[0046] The technical solution of this invention fills a technical gap in the industry both at home and abroad: In the field of multi-scale target detection technology that integrates millimeter-wave radar and camera, this invention solves the problems of insufficient detail capture, weak small object detection capability, and insufficient fusion of radar and camera data in the existing technology, and provides a new direction for subsequent research.

[0047] The technical solution of this invention solves a long-standing but unresolved technical problem: traditional target detection technologies, whether relying on single-sensor systems like radar or cameras, have significant limitations under certain conditions. Millimeter-wave radar can operate effectively in environments with obstructed line of sight or poor lighting conditions, providing stable information about target distance and velocity. Cameras, when lighting conditions permit, can provide high-resolution visual information, capturing detailed target features, and have complementary characteristics to radar. However, current fusion methods fail to fully exploit the interaction between radar and camera data features. The fusion technology proposed in this invention combines the robustness of radar with the high-resolution characteristics of cameras, enabling accurate target detection even in low-light or inclement weather conditions. This effectively solves the problem of low accuracy and robustness in target detection under complex environments, especially in adverse weather and low-light conditions.

[0048] Fourth, the multi-scale target detection method based on roadside cameras and millimeter-wave radar provided by this invention has significant technological advancements and solves several key problems compared to existing technologies.

[0049] First, by spatiotemporally correlating the data from two sensors, the spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system was determined. This allows data from two different sources to be processed and compared within the same coordinate system, significantly enhancing data usability and accuracy. Simultaneously, acquiring data at the same sampling frequency ensures data synchronization, laying the foundation for subsequent fusion processing.

[0050] Secondly, the extended Kalman scattering method is used to denoise the millimeter-wave radar point cloud data, effectively reducing sensor measurement noise and errors and improving data accuracy. Subsequently, the denoised point cloud data is projected using spatial transformation relationships to generate a radar image; this step further enriches the data's dimensions and representation. The application of bilateral filtering not only enhances the representation of the radar image data but also preserves edge information while smoothing the image, which is crucial for subsequent feature extraction and target detection.

[0051] Furthermore, a pre-established fusion network is used to extract features from radar and camera images, and multi-scale feature fusion is performed through improved downsampling and a neck network of a bidirectional pyramid. This multi-scale feature fusion method can extract multi-level spatial information, making target detection more accurate and comprehensive.

[0052] Finally, the fusion features of the two sensors were further enhanced by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. This attention mechanism allows the model to focus more on important feature information when processing data, improving the efficiency and accuracy of object detection. Ultimately, the fused features are input into the detection and regression subnetworks to output object detection results, achieving the goal of multi-scale object detection.

[0053] The multi-scale target detection method based on roadside cameras and millimeter-wave radar provided in this invention solves several problems in existing technologies and achieves significant technological progress through precise data processing, effective feature extraction and fusion, and the application of advanced attention mechanisms. This method has broad prospects and potential in practical applications and is of great significance for improving the performance of road safety, intelligent driving, and other fields. Attached Figure Description

[0054] Figure 1 This is a flowchart of a multi-scale target detection method based on roadside cameras and millimeter-wave radar provided in an embodiment of the present invention.

[0055] Figure 2 This is a schematic diagram of the coordinate transformation between millimeter-wave radar and camera provided in an embodiment of the present invention.

[0056] Figure 3 This is a block diagram of the fusion network structure provided in an embodiment of the present invention.

[0057] Figure 4 This is a structural block diagram of the improved downsampling module provided in an embodiment of the present invention.

[0058] Figure 5 This is a block diagram of the hollow multi-scale attention module structure provided in an embodiment of the present invention.

[0059] Figure 6 This is a block diagram of the spatial attention module structure provided in an embodiment of the present invention.

[0060] Figure 7 This is a block diagram of a multi-scale target detection system based on roadside cameras and millimeter-wave radar provided in an embodiment of the present invention.

[0061] Figure 8 In the images, (a) the detection results of improved YOLOv5; (b) the detection results of CRF-Net; and (c) the detection results of RCF-YOLO. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0063] This invention provides a multi-scale target detection method that combines roadside cameras and millimeter-wave radar. Its detailed steps and technological innovations point to applications in traffic monitoring, autonomous driving assistance systems, and other fields.

[0064] Example 1:

[0065] 1. Setting up the scenario: Install a roadside camera and a millimeter-wave radar at a busy traffic intersection. The two devices operate synchronously to capture real-time data.

[0066] 2. Data Processing: First, the correspondence between the two types of sensor data is established through spatiotemporal correlation analysis. Then, extended Kalman filtering is used to reduce noise in the radar point cloud data, and the processed point cloud data is projected onto the image plane through a specific spatial transformation relationship to form a radar image.

[0067] 3. Feature Fusion: By combining features from radar and camera images through a fusion network, these features are deeply fused using improved downsampling and a bidirectional pyramid structure.

[0068] 4. Target Detection: The feature representation is enhanced by a multi-scale attention mechanism, and accurate target detection is achieved through detection and regression sub-networks, effectively identifying and locating various targets such as vehicles and pedestrians at intersections.

[0069] Example 2:

[0070] 1. Setting up the scenario: Install the system on a section of highway to monitor and analyze vehicles traveling at high speeds.

[0071] 2. Data Acquisition and Processing: In high-speed environments, the system also performs spatiotemporal correlation to capture synchronized image and radar data. The extended Kalman filter needs to be optimized for high-speed moving objects in this environment.

[0072] 3. Feature extraction and fusion: In this scenario, the fusion network needs to place greater emphasis on the ability to capture features of high-speed moving objects and to effectively fuse these features at different scales.

[0073] 4. Detection and Analysis: The enhanced feature fusion network can effectively distinguish and locate various high-speed moving targets, providing support for traffic management and safety monitoring on highways.

[0074] The two examples demonstrate the application potential and adaptability of the technology in different traffic environments, illustrating its practical utility and technological advancement under real-world conditions.

[0075] like Figure 1 As shown, the multi-scale target detection method and system based on roadside cameras and millimeter-wave radar provided by this embodiment of the invention includes the following steps:

[0076] S101 performs spatiotemporal correlation on two sensors, roadside camera and millimeter-wave radar, determines the spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system, and acquires camera image data and millimeter-wave radar point cloud data at the same sampling frequency.

[0077] S102 uses the extended Kalman method to denoise millimeter-wave radar point cloud data, projects the denoised point cloud data through spatial transformation relationship to generate radar image, and expands the projection through bilateral filtering method to enhance the representation of radar image data.

[0078] S103 uses a pre-established fusion network to extract radar image features and camera image features. Multi-scale feature fusion is performed by improving downsampling and the neck network of the bidirectional pyramid to extract multi-level spatial information and obtain the fused multi-scale feature map.

[0079] S104 further enhances the fusion features of the two sensors by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. Finally, the input is fed into the detection subnetwork and the regression subnetwork to output the target detection result.

[0080] The transformation relationship between the radar coordinate system and the pixel coordinate system provided in this embodiment of the invention is as follows:

[0081]

[0082] Among them, Z c Let f be the Z-axis of the camera coordinate system, (u,v) be the pixel coordinates of the target point on the image plane, and f be the pixel coordinates of the target point on the image plane.x f y u0 and v0 are internal camera parameters, which can be obtained through camera calibration. X r Y r Z r Z represents the three-dimensional coordinates in the radar coordinate system. Since millimeter-wave radar does not contain the target's height information, Z... r Take the value as zero, where h is the height difference between the millimeter-wave radar and the camera. The pitch angle is between the camera and the radar along the X-axis.

[0083] The measurement vector of the extended Kalman filter provided in this embodiment of the invention is the position and velocity state of the radar-detected target. The state vector of the j-th detected target ωj at time y can be expressed as:

[0084]

[0085] Where x represents the longitudinal distance of the radar to the target, y represents the lateral distance of the radar to the target, v represents the target's moving speed, and θ represents the target's azimuth angle relative to the radar; in the prediction of the motion state, the process model N is represented as:

[0086]

[0087] For each radar projection point, the weight assigned to each pixel within its influence range on the image is expressed as follows:

[0088]

[0089] Where (x,y) are the coordinates of the radar point, (m,n) are the coordinates of a point within the influence range of the radar point on the image, σd and σr are parameters used to adjust the influence of spatial distance and grayscale difference on the weight value of each pixel, respectively, and I(x,y) represents the grayscale value of the pixel at coordinates (x,y).

[0090] The influence range of a radar point is defined as a rectangular area with a side length of WR centered on the radar point. For pixels within the influence range whose weight exceeds the threshold value Wth, their pixel values ​​are set to the same value as the radar point. The relationship between the threshold value Wth and the side length WR of the radar point influence matrix is ​​shown in the following formula:

[0091]

[0092] The fusion network provided in this embodiment of the invention uses the SPD-Conv module to replace the strided convolution with a stride of 2 in the five CBS units of the YOLOv5 backbone network, thus obtaining the corresponding SPD-CBS module.

[0093] The fusion feature provided in this embodiment of the invention can be represented as follows:

[0094]

[0095] Where O represents the output feature map after feature fusion, Pi represents the i-th input feature map, wi represents the learnable weights assigned to each input feature map Pi, and ε = 0.0001 is a small value.

[0096] The dilated multi-scale attention module provided in this embodiment of the invention is composed of an EMA module and a cascaded dilated convolution module. The cascaded dilated convolution module combines residual connections with hybrid dilated convolution and superimposes three convolution kernels with dilation rates of 1, 2, and 4 and a size of 3×3.

[0097] The spatial attention fusion method employs a spatial attention module, which consists of three sets of convolutional layers for extracting the spatial attention matrix;

[0098] The stride of a 1×1 convolution is 1 and there is no padding; the stride of a 3×3 convolution is 1 and the padding is 1; the stride of a 5×5 convolution is 1 and the padding is 2.

[0099] Two-stage fusion approach:

[0100] First, feature maps from the last three scales of the deeper layers in the backbone network are selected for fusion, and the fusion weights are adaptively learned.

[0101] Secondly, before being input into the detection head network, the radar image features are fused again with the camera image features after multi-scale fusion and attention enhancement to further strengthen the information representation of the feature map;

[0102] Finally, the fused features are input into the detection subnetwork and the regression subnetwork to output the target detection results.

[0103] like Figure 7 As shown, an embodiment of the present invention provides a multi-scale target detection system based on a roadside camera and millimeter-wave radar, comprising:

[0104] The data acquisition module is responsible for collecting raw data from various sensor devices such as millimeter-wave radar and cameras. It uses the sampling period of the millimeter-wave radar with a lower sampling frequency as the time reference for the overall sampling process. It utilizes multi-threading technology to synchronously trigger the camera to acquire data by using the radar's sampling period as the trigger mechanism.

[0105] The logic processing module is responsible for video stream processing and radar camera fusion detection functions; it receives video data from bullet cameras and dome cameras, can also view pre-recorded videos stored on the server, and achieves key target monitoring by combining millimeter-wave radar and camera data for fusion detection.

[0106] The application service module is responsible for three functions: data storage, alarm management, and task visualization. Data storage includes raw information collected by millimeter-wave radar and cameras, alarm data, and identified target information, providing fast data retrieval and backup functions. When alarm management detects potential security threats such as illegal intrusion or traffic violations, it calls the sound and light alarm devices to issue an alarm and reminds monitoring personnel to take appropriate measures through the system interface. The task visualization module displays information such as real-time monitoring video streams, sensor device status, and target historical trajectories.

[0107] Another object of the present invention is to provide a computer device including a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the steps of the multi-scale target detection method based on roadside cameras and millimeter-wave radar.

[0108] Another object of the present invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the multi-scale target detection method based on a roadside camera and millimeter-wave radar.

[0109] Another objective of the present invention is to provide an information data processing terminal for implementing the multi-scale target detection system based on roadside cameras and millimeter-wave radar.

[0110] A multi-scale target detection method based on the fusion of roadside cameras and millimeter-wave radar includes the following steps:

[0111] Step 1: Spatiotemporal correlation is performed on the two sensors, roadside camera and millimeter-wave radar, to determine the spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system, and the camera image data and millimeter-wave radar point cloud data are acquired at the same sampling frequency.

[0112] Step 2: The extended Kalman method is used to denoise the millimeter-wave radar point cloud data. The denoised point cloud data is then projected using spatial transformation to generate a radar image. The projection is then extended using a bilateral filtering method to enhance the representation of the radar image data.

[0113] Step 3: Use a pre-established fusion network to extract radar image features and camera image features. Perform multi-scale feature fusion by improving downsampling and the neck network of the bidirectional pyramid to extract multi-level spatial information and obtain the fused multi-scale feature map.

[0114] Step four: The fusion features of the two sensors are further enhanced by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. Finally, the input is fed into the detection sub-network and the regression sub-network to output the target detection results.

[0115] In step one, as shown in the attached document Figure 2 As shown, the radar coordinate system coincides with the world coordinate system. The millimeter-wave radar can be aligned with the origin of the camera coordinate system through rotation and translation operations. The transformation relationship between the radar coordinate system and the camera coordinate system is as follows:

[0116]

[0117] Where h is the height difference between the millimeter-wave radar and the camera. Zr represents the elevation angle between the camera and the radar's X-axis. Since millimeter-wave radar does not include target altitude information in its detection results, its altitude coordinate Zr is 0.

[0118] Combining the projection principle of the camera and its accessories Figure 2 The geometric relationship between the image coordinate system and the pixel coordinate system, and the transformation relationship between the radar coordinate system and the pixel coordinate system are as follows:

[0119]

[0120] Among them, f x f y u0 and v0 are internal camera parameters, which can be obtained through camera calibration. After spatial correlation, multi-threading technology is used to select the least common multiple of the sampling periods of the millimeter-wave radar and the camera for data acquisition, and then the data from both are time-aligned.

[0121] In step two, the measurement vector of the extended Kalman filter represents the position and velocity state of the radar-detected target. The state vector of the j-th detected target ωj at time t can be expressed as:

[0122]

[0123] Where x represents the longitudinal distance of the radar to the target, y represents the lateral distance of the radar to the target, v represents the target's moving speed, and θ represents the target's azimuth angle relative to the radar. In the prediction of the motion state, the process model N is represented as:

[0124]

[0125] In the denoised point cloud data, three key physical parameters—vertical distance, horizontal distance, and movement speed—are selected and converted into pixel values ​​corresponding to the RGB channels of the projected image. These values ​​are then projected using spatial transformation relationships to generate a radar image. During radar image generation, a circle with a radius of 1 pixel and the radar point's coordinates in the pixel coordinate system as the center is filled with converted RGB values, while pixel values ​​in areas not covered by the radar point are set to zero. Bilateral filtering is used to evaluate the similarity between the radar point's projected location and a point on the image. For each radar projection point, the weight assigned to each pixel within its influence range on the image is expressed as:

[0126]

[0127] Where (x,y) are the coordinates of the radar point, (m,n) are the coordinates of a point within the influence range of the radar point on the image, σd and σr are parameters used to adjust the influence of spatial distance and grayscale difference on the weight value of each pixel, respectively, and I(x,y) represents the grayscale value of the pixel at coordinates (x,y).

[0128] The influence range of a radar point is defined as a rectangular area with side length WR centered on the radar point. For pixels within the radar point's influence range whose weight exceeds the threshold value Wth, their pixel values ​​are set to the same value as the radar point. The relationship between the threshold value Wth and the side length WR of the radar point's influence matrix is ​​shown in the following formula:

[0129]

[0130] In step three, as shown in the attached document Figure 3 As shown, the fusion network is an improvement on the YOLOv5 base network. It replaces the strided convolutions with a stride of 2 in the five CBS units of the YOLOv5 backbone network with SPD-Conv modules, resulting in the corresponding SPD-CBS modules. In the neck network, a method combining max pooling downsampling and convolutional downsampling is designed to perform the downsampling operation. The improved downsampling structure is shown in the attached figure. Figure 4 As shown, pixel-wise addition is performed using a convolutional layer with a kernel size of 3×3 and a stride of 2, and a max pooling layer with a size of 2×2 and a stride of 2. Finally, a standard convolution with a stride of 1 and a kernel size of 3×3 is used to further extract features from the fused result.

[0131] Furthermore, a bidirectional pyramid fusion method was incorporated, along with a fast normalized weighted feature fusion mechanism. The fused features can be represented as follows:

[0132]

[0133] Where O represents the output feature map after feature fusion, Pi represents the i-th input feature map, wi represents the learnable weights assigned to each input feature map Pi, and ε = 0.0001 is a small value to prevent instability in numerical computation.

[0134] In step four, the dilated multi-scale attention module is composed of an EMA module and a cascaded dilated convolution module, and its structure is shown in the attached figure. Figure 5 As shown, the cascaded dilated convolution module combines residual connections with hybrid dilated convolution, superimposing three convolutional kernels with dilation rates of 1, 2, and 4 and a size of 3×3. The spatial attention fusion method mainly uses a spatial attention module, the structure of which is shown in the attached figure. Figure 6 As shown, this module consists of three sets of convolutional layers for extracting the spatial attention matrix. Specifically, the 1×1 convolution has a stride of 1 and no padding, the 3×3 convolution has a stride of 1 and padding of 1, and the 5×5 convolution has a stride of 1 and padding of 2. All three convolutions use a single kernel, ensuring the radar image feature map size remains unchanged while reducing the number of channels to 1. By combining three different types of convolutional layers, attention matrices with different receptive fields are constructed to learn the representation of radar information and its interaction with the surrounding environment, thereby modulating or enhancing the information in the camera image during the fusion process. In the two-stage fusion process, firstly, the deeper feature maps at the last three scales are selected in the backbone network for fusion, and the fusion weights are adaptively learned. Secondly, before being input into the detection head network, the radar image features are fused again with the camera image features after multi-scale fusion and attention enhancement, further strengthening the information representation of the feature maps. Finally, the fused features are input into the detection sub-network and the regression sub-network, outputting the target detection result.

[0135] It should be noted that embodiments of the present invention can be implemented in hardware, software, or a combination of both. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by a suitable instruction execution system, such as a microprocessor or dedicated-design hardware. Those skilled in the art will understand that the above-described devices and methods can be implemented using computer-executable instructions and / or included in processor control code, for example, such code provided on a carrier medium such as a disk, CD, or DVD-ROM, a programmable memory such as read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The devices and modules of the present invention can be implemented by hardware circuitry such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field-programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of the above-described hardware circuitry and software, such as firmware.

[0136] The technical solution of this invention is applied to an intelligent traffic monitoring system to demonstrate its ability to detect small targets, such as pedestrians and non-motorized vehicles, in high-traffic environments, and to evaluate the system's application effects in traffic statistics, accident prevention, and other aspects.

[0137] The technical solution of this invention is integrated into commercial security monitoring products for monitoring people and vehicles in key areas such as airports and shopping malls. Its advantages in target identification and tracking are analyzed through actual cases.

[0138] The technical solution of this invention is denoted as RCF-YOLO. The detection results of the RCF-YOLO fusion network are evaluated on the nuScenes dataset and compared with the mainstream feature-level fusion algorithm CRF-Net and other fusion algorithms. The detection accuracy indicators are shown in the table below.

[0139]

[0140] As can be seen, the RCF-YOLO solution of this invention achieved an AP of 64.4%, achieving the best detection result, while the mainstream feature-level fusion algorithm CRF-Net achieved the second-best average accuracy. RCF-YOLO outperformed the purely vision-based improved YOLOv5 method by 3.9%, and also showed a 1.7% improvement compared to CRF-Net, demonstrating a significant advantage over AssociationNet and FPPNet algorithms. RCF-YOLO also showed varying degrees of improvement in other evaluation metrics. Compared to the CRF-Net fusion algorithm, RCF-YOLO improved the AP50 accuracy by 1.4%, and the accuracy for small targets by 2.4%. For medium and large targets, RCF-YOLO also achieved gains of 0.9% and 1.7%, respectively. FPPNet's AP50 and APS metrics were higher than CRF-Net, but still lagged behind RCF-YOLO by 1.2% and 1.9%, respectively. These results verify that RCF-YOLO can more effectively combine radar and camera feature information, achieving better fusion performance.

[0141] Furthermore, the improved YOLOv5 method outperformed other fusion algorithms across various detection metrics. This is because the nuScenes dataset contains image data from special conditions such as nighttime and rainy days, significantly impacting the image quality captured by the camera sensor and leading to a decrease in the recognition accuracy of purely visual detection algorithms. This also demonstrates that by introducing millimeter-wave radar data and effectively fusing radar and camera visual information, the system's adaptability and robustness in target detection under diverse environments can be enhanced.

[0142] Figure 8The results show the detection performance of the improved YOLOv5 detection method, the CRF-Net algorithm with suboptimal average detection accuracy, and the RCF-YOLO method under good lighting conditions during the day, poor environmental conditions at night, and rainy weather. Figure 8 In the images, (a) the detection results of improved YOLOv5; (b) the detection results of CRF-Net; and (c) the detection results of RCF-YOLO.

[0143] In the daytime scene corresponding to the first row of the image, the purely visual improved YOLOv5 method can identify the vast majority of targets, only ignoring vehicles on the left side that are in shadow and have very indistinct image features. In nighttime and rainy scenes, the difference in detection performance between the purely visual algorithm and the radar-camera fusion detection algorithm is clearly visible. Furthermore, compared to the mainstream CRF-Net fusion algorithm, the RCF-YOLO method detects more vehicle targets under these complex conditions, demonstrating the high efficiency of RCF-YOLO in fusing radar and image information, and exhibiting higher detection accuracy and robustness compared to other detection algorithms.

[0144] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions, and improvements made by those skilled in the art within the scope of the technology disclosed in the present invention, and within the spirit and principles of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A multi-scale target detection method based on roadside cameras and millimeter-wave radar, characterized in that, Includes the following steps: Step 1: Perform spatiotemporal correlation on the two sensors, roadside camera and millimeter-wave radar, determine the spatial transformation relationship between the millimeter-wave radar coordinate system and the pixel coordinate system, and acquire camera image data and millimeter-wave radar point cloud data at the same sampling frequency. Step 2: The extended Kalman method is used to denoise the millimeter-wave radar point cloud data. The denoised point cloud data is then projected using a spatial transformation relationship to generate a radar image. The projection is then extended using a bilateral filtering method to enhance the representation of the radar image data. Step 3: Use a pre-established fusion network to extract radar image features and camera image features. Perform multi-scale feature fusion by improving downsampling and the neck network of the bidirectional pyramid to extract multi-level spatial information and obtain the fused multi-scale feature map. Step four: The fusion features of the two sensors are further enhanced by using a hollow multi-scale attention module and a two-stage spatial attention fusion method. Finally, the results are input into the detection subnetwork and the regression subnetwork to output the target detection results. The dilated multi-scale attention module is composed of an EMA module and a cascaded dilated convolution module. The cascaded dilated convolution module combines residual connections with hybrid dilated convolution and superimposes three convolution kernels with dilation rates of 1, 2, and 4 and a size of 3 × 3. The spatial attention fusion method employs a spatial attention module, which consists of three sets of convolutional layers for extracting the spatial attention matrix; The stride of a 1 × 1 convolution is 1 and there is no padding; the stride of a 3 × 3 convolution is 1 and the padding is 1; the stride of a 5 × 5 convolution is 1 and the padding is 2. Two-stage fusion approach: First, feature maps from the last three scales of the deeper layers in the backbone network are selected for fusion, and the fusion weights are adaptively learned. Secondly, before being input into the detection head network, the radar image features are fused again with the camera image features after multi-scale fusion and attention enhancement to further strengthen the information representation of the feature map; Finally, the fused features are input into the detection subnetwork and the regression subnetwork to output the target detection results.

2. The multi-scale target detection method based on roadside cameras and millimeter-wave radar according to claim 1, characterized in that, The transformation relationship between the radar coordinate system and the pixel coordinate system is as follows: ; in, and These are internal camera parameters, which can be obtained through camera calibration. The height difference between the millimeter-wave radar and the camera, The pitch angle is between the camera and the radar along the X-axis.

3. The multi-scale target detection method based on roadside cameras and millimeter-wave radar according to claim 1, characterized in that, The measurement vector of the extended Kalman filter represents the position and velocity state of the radar-detected target, where the j-th target is the target. In time The state vector can be represented as: ; Where x represents the longitudinal distance of the radar to the target, y represents the lateral distance of the radar to the target, and v represents the target's moving speed. This represents the target's azimuth angle relative to the radar; during the prediction of its motion state, the process model N is represented as: ; For each radar projection point, the weight assigned to each pixel within its influence range on the image is expressed as follows: ; in, The coordinates of the radar point, The coordinates of a point within the radar's influence range on the image. and These represent parameters used to adjust the influence of spatial distance and grayscale difference on the weight value of each pixel, respectively. Indicates coordinates The grayscale value of the pixel at that location; The influence range of a radar point is defined as a rectangular area with a side length of WR centered on the radar point. For pixels within the influence range whose weight exceeds the threshold value Wth, their pixel values ​​are set to the same value as the radar point. The relationship between the threshold value Wth and the side length WR of the radar point influence matrix is ​​shown in the following formula. 。 4. The multi-scale target detection method based on roadside cameras and millimeter-wave radar according to claim 1, characterized in that, The fusion network uses the SPD-Conv module to replace the strided convolutions with a stride of 2 in the five CBS units of the YOLOv5 backbone network, thus obtaining the corresponding SPD-CBS module.

5. The multi-scale target detection method based on roadside cameras and millimeter-wave radar according to claim 1, characterized in that, The fusion feature can be represented as: ; Where O represents the output feature map after feature fusion. This represents the i-th input feature map. This indicates that each input feature map is assigned to a specific feature map. Learnable weights It is a small value.

6. A multi-scale target detection system based on a roadside camera and millimeter-wave radar, implementing the multi-scale target detection method based on a roadside camera and millimeter-wave radar as described in any one of claims 1-5, characterized in that, The multi-scale target detection system based on roadside cameras and millimeter-wave radar includes: The data acquisition module is responsible for collecting raw data from various sensor devices such as millimeter-wave radar and cameras. It uses the sampling period of the millimeter-wave radar with a lower sampling frequency as the time reference for the overall sampling process. It utilizes multi-threading technology to synchronously trigger the camera to acquire data by using the radar's sampling period as the trigger mechanism. The logic processing module is responsible for video stream processing and radar camera fusion detection functions; it receives video data from bullet cameras and dome cameras, can also view pre-recorded videos stored on the server, and achieves key target monitoring by combining millimeter-wave radar and camera data for fusion detection. The application service module is responsible for three functions: data storage, alarm management, and task visualization. Data storage includes raw information collected by millimeter-wave radar and cameras, alarm data, and identified target information, providing fast data retrieval and backup functions. When alarm management detects potential security threats such as illegal intrusion or traffic violations, it calls the sound and light alarm devices to issue an alarm and reminds monitoring personnel to take appropriate measures through the system interface. The task visualization module displays information such as real-time monitoring video streams, sensor device status, and target historical trajectories.

7. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the multi-scale target detection method based on a roadside camera and millimeter-wave radar as described in any one of claims 1-5.

8. A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the multi-scale target detection method based on a roadside camera and millimeter-wave radar as described in any one of claims 1-5.

9. An information data processing terminal, characterized in that, The information data processing terminal is used to implement the multi-scale target detection system based on roadside cameras and millimeter-wave radar as described in claim 6.

Citation Information

Patent Citations

  • Camera and millimeter wave radar front fusion road surface target detection method

    CN116259024A

  • Dual-modal target detection method and system based on cross-modal attention mechanism fusion

    CN117422971A