Traffic Flow Parameters Collection under Variable Illumination Based on Data Fusion

Accurate traffic flow parameters are the supporting data for analyzing traffic flow characteristics. Vehicle detection using traffic surveillance pictures is a typical method for gathering traffic flow characteristics in urban traffic scenes. In complicated lighting conditions at night, however, neither classical nor deep-learning-based image processing algorithms can provide adequate detection results. This study proposes a fusion technique combining millimeter-wave radar data with image data to compensate for the lack of image-based vehicle detection under complicated lighting to complete all-day parameters collection. The proposed method is based on an object detector named CenterNet. Taking this network as the cornerstone, we fused millimeter-wave radar data into it to improve the robustness of vehicle detection and reduce the time-consuming postcalculation of traffic flow parameters collection. We collected a new dataset to train the proposed method, which consists of 1000 natural daytime images and 1000 simulated nighttime images with a total of 23094 vehicles counted, where the simulated nighttime images are generated by a style translator named CycleGAN to reduce labeling workload. Another four datasets of 2400 images containing 20161 vehicles were collected to test the proposed method. The experimental results show that the method proposed has good adaptability and robustness at natural daytime and nighttime scenes.


Introduction
Traffic flow parameters are the most fundamental and critical physical factors that characterize traffic flow characteristics. In recent years, an increasing number of traffic video surveillance systems along the metropolitan curbside have been deployed to collect traffic flow parameters. Vehicle detection based on video images can achieve satisfactory detection results under normal daylight conditions. However, the precision of this method is reduced at nighttime due to the lack of natural light. Furthermore, streetlights and other light sources such as automobile lights are interlaced and complicated, resulting in an uneven image brightness distribution, poor image visibility and contrast, and a lack of required details and context. As a result, this study offers a millimeter-wave radar and camera fusion sensing approach for achieving improved detection results throughout the day and collecting more precise traffic flow parameters.
Generally speaking, data fusion can be categorized as original-data level, feature level, and decision level, based on the multiple abstraction levels of input data. Data layer fusion offers the advantage of retaining source domain information to the highest degree possible. It does, however, have stringent data transmission requirements, limited realtime efficiency, and significant processing costs. Although decision level fusion can successfully reduce transmission capacity, it does so at the expense of some of the original information. Feature layer fusion can fuse features extracted from multiple sensors while keeping data integrity and processing complexities.
Microwave radar, LiDAR, and cameras are the most popular sensors used to detect long-term and short-term traffic. Each sensor has its benefits and drawbacks. Although a camera is one of the most commonly utilized sensors, its detection capability deteriorates at night and in inclement weather [1]. e distance is calculated by measuring the time between the laser pulse and its reflection and scattering by the target in a LiDAR system. It has a wide range and angular resolutions, but poor weather degrades its performance. e receiving antenna of a millimeter-wave radar radiates electromagnetic waves, which are collected by the receiving antenna, and the target information is acquired by processing a sequence of signals. A millimeter-wave radar has a longer wavelength than a camera or a LiDAR, allowing it to operate in adverse weather situations such as rain, snow, and fog [2]. e integration of data from multiple sensors has been demonstrated to increase a system's ability to perceive the outside world. Advanced Driving Assistance System (ADAS) [3] incorporates this technology. In numerous research articles, such as [4][5][6][7][8], millimeter-wave radar was coupled with a camera for vehicle detection. A few systems [9,10] combined LiDAR and camera. In [11], the authors combined three sensors. While the combination of camera and LiDAR can produce outstanding detection results, it adds to the computational complexity, and both sensors' detection performance will be harmed in bad weather. As a result, for fusion detection in this study, we use millimeterwave radar and a camera. Despite the fact that there has been a lot of study on sensor fusion, the most of it has been focused on vehicle onboard sensor data. e two techniques are not fully consistent in vehicle detection algorithms due to the difference in viewpoint between vehicles and roadside.
For fusion detection, this research utilizes millimeterwave radar and a camera positioned on the roadside to increase the accuracy of traffic flow information collecting throughout the day. To unify the representation of the two sensors, the first step in accomplishing fusion is to map the observed points in millimeter-wave radar to pixel coordinates. Furthermore, the radar detection point must be linked to the appropriate item. In this work, we present a data association technique based on 3D areas of interest for this purpose. e modified Deep Layer Aggregation (DLA) [12] is used as the backbone to extract the picture characteristics, with CenterNet [13] as the baseline. Using the CycleGAN to transfer style and generate synthetic nighttime pictures from daytime photos, the annotation effort is reduced during training. Finally, the image and radar characteristics are combined to produce additional object properties.
Using the millimeter-wave radar and camera positioned along the roadside for the whole day, a new dataset is collected to validate the proposed technique. We manually label each vehicle at daytime and fake nighttime images to train the proposed model. Comparative tests are conducted using two standard image processing approaches and a deep learning method. e findings demonstrate that when compared to the three approaches previously stated, the proposed method can accomplish superior detection in various scenarios.
In this paper, the system structure of our proposed CenterNet-based framework has been described, and its feasibility and effectiveness are tested and analyzed. e rest of the paper is organized as follows: a literature review is illustrated in Section 2. Data fusion alongside traffic flow parameters collection methodology is elaborated in Section 3. Section 4 presents the experimental settings and results and then is followed by a conclusion with some future work in Section 5.

Related Work
e research state of existing work is examined in this part for the four categories of computer vision-based vehicle identification during the day and night, millimeter-wave radar and camera fusion method, and traffic parameters collecting.

Computer Vision-Based Vehicle Detection.
Traffic videos play a crucial role in monitoring the current situation of roads and provide an efficient means of collecting traffic flow parameters on urban roads. anks to the rapid progress of deep learning in image processing, picture-based object recognition has seen encouraging outcomes in recent years. A contemporary detector typically comprises of two parts: (1) a backbone that extracts characteristics from pictures, and (2) a head that detects the object's class and bounding box. Furthermore, newly developed detectors place a layer called the neck between the backbone and the head. e neck gathers features from different scales and fuses them and fully uses all the features extracted from the backbone to achieve better detection performance.

Computer Vision-Based Vehicle Detection at Nighttime.
Most techniques, according to Chen et al. [39], cannot consistently monitor traffic conditions at night. To achieve vehicle detection, Kosaka and Ohashi [40] retrieved the brightness, geometric information, and color characteristics of the front or tail lighting and categorized them using Support Vector Machine (SVM). At night, however, complicated light reflection may impair feature extraction. Inside the cars of interest, Vancea et al. [41] initially identified and searched for suitable taillight pairings. e authors then segmented taillights using deep learning. Different end-to-end deep learning frameworks for identifying items of interest were created by Ruimin [42] and Yu et al. [43]. Deep learning-based approaches, according to these researches, can minimize false positive and false negative detection errors and are more accurate in complicated real-world situations than standard image processing methods. ese investigations, on the other hand, are reliant on image processing technology and have difficulty providing accurate monitoring in a complicated lighting environment. erefore, multisensor detection can be used to compensate for the uncertainty present in image detection.

Millimeter-Wave Radar and Camera Fusion Algorithm.
In recent years, millimeter wave and camera fusion research has made tremendous progress. To decrease the image detection area, Kadow et al. [44] employed millimeter-wave radar, followed by the AdaBoost algorithm to detect road targets. Wang et al. [45] reported an experiment and calculations for millimeter-wave radar and vision point alignment for obstacle detection that were simple to execute. For millimeter-wave radar and monocular vision fusion, the authors developed a three-level fusion method based on visual attention mechanisms and the driver's visual consciousness. To integrate image and radar data, Nobis et al. [5] proposed the CRF-net architecture. Its design can automatically figure out what amount of sensor data fusion is best for detecting outcomes. Jiang [8] first defogged the image captured by the camera in foggy weather and filtered the effective target using millimeter-wave radar. e authors then mapped the result to the camera image to get the corresponding RoI region and finally used the weighted method to combine the two findings. To convert radar measurements to camera pictures and classify radar measurements using camera image datasets, Lekic and Babic [6] utilized Generative Adversarial Networks. Following that, the authors utilized radar to improve the camera's resilience and used camera to improve the radar precision.  [42] is being applied with the rapid advancement of computer vision. However, because of the difference in light between day and night, vehicle identification accuracy would be significantly reduced if a daytime detection model was simply applied to nighttime. As a result, in a night environment, vehicle recognition and exact traffic flow data collecting are required. In this paper, the traffic flow parameters are collected by integrating millimeter-wave radar and camera data.

Methodology
In this section, we present a traffic flow parameters collection method based on millimeter-wave radar and camera fusion. We first construct a fusion detection framework and then unify the representation and alignment acquisition times of the two sensors. Afterward, a 3D region-of-interest-based target association method is proposed, and the fusion detection is completed. Finally, the traffic flow parameters collection method is presented.

Framework.
e metrics of traffic flow are gathered via sensor fusion. In sensor fusion, the primary goal should be to unify the object representations of two sensors. After temporal alignment, the millimeter-wave radar detection data should be converted to pixel coordinates. It is worth noting that the radar return points used in this experiment are the object preliminary detection results instead of the radar point cloud. By directly obtaining the radar detection results, the information bandwidth can be minimized, and the anti-interference ability is more robust. Subsequently, the 3D region of interest method is proposed to achieve oneto-one object association between the radar and the image. e pillar expansion is introduced during object association to address the inaccurate height information problem. Based on the above processing steps, the available radar features map can be generated. As for image processing, CenterNet is adopted as a baseline network that uses keypoint estimation to find the center point and then regresses to other attributes of the object. In addition, it avoids screening all possible bounding boxes of the object by modeling the target as the center point of the bounding box. e first image processing step is annotating original images under normal lighting during the daytime. Second, CycleGAN is applied to transfer the annotated images for simulating the nighttime lighting environment and reducing the annotation workload. ird, the DLA is adopted as the backbone to extract image features and concatenate the extracted image features with the generated radar features. Fourth, the head is used to regress other object attributes to complete vehicle detection. Last, the required traffic flow parameters can be collected. Figure 1 shows the pipeline of the method proposed in this paper.

Time Alignment.
In order to accomplish temporal fusion, the millimeter radar and camera acquisition timings must be synchronized. e sample frequencies of the radar and camera, on the other hand, are not usually the same, but they are about 13 and 20 frames per second, respectively. e measurement time of millimeter-wave radar is used in this study to make camera data backward compatible, and radar and camera time registration is used to choose the picture that is closest to the radar acquisition time. Because the data collecting area's traffic speed restriction is 70 km/h, this study limits the sampling time difference between the two sensors within 20 ms to avoid errors. e associated pair of data points will be discarded, if the sample time between the nearest camera and the radar exceeds 20 ms.

Millimeter Wave Radar Coordinate Projection.
Camera calibration is usually a time-consuming procedure that involves multiple variables. e final calibration result will include additional errors due to the complexity of coordinate translation using the traditional approach. erefore, we adopt a calibration method similar to [45]. e target position perceived by the millimeter-wave radar and the pixel position of the target are represented as (x r , y r ) and (u, v), respectively. e relationship between the two is as follows: where T R I is a 3 × 3 transformation matrix. e above expression can be used to directly convert radar coordinates into pixel coordinates. e transformation matrix can be calculated based on the following calculations: where n is the number of aligned points, and (x j r , y j r ) with j � 1, 2, . . . , n(n ≥ 4) represents the position of the aligned point in the radar coordinate system. e transformation matrix T R I � T 1 ′ T 2 ′ T 3 ′ ′ is obtained using the linear least squares (LS) method as follows: Using the above expression, the conversion can be completed, and the mapping point of the radar detection in the pixel coordinate can be obtained. Ten groups of data with each group containing 20 pairs of points are selected to obtain accurate T R I . ese groups are used to calculate different matrices and subsequently calculate the average value.

Center Point Detection.
For preliminary image detection, we utilize the CenterNet [12] detection network, which was suggested in 2019. is network was chosen since the radar's return result is usually a point. For anticipating the object's center point, the CenterNet employs keypoint detection. e usage of CenterNet facilitates the fusion of data from these two sensors. e step of removing multiple overlapping prediction bounding boxes using Non-Maximum Suppression (NMS) can be avoided by simplifying the object to a single point.
Let I ∈ R W×H×3 be an image input to the CenterNet, which generates a keypoint heatmap Y ∈ [0, 1] W/R×H/R×C , where W and H are the width and height of the image, respectively, R is the output stride, and C is the number of object types. e prediction from an input image is indicated by Y x,y,c , where Y x,y,c � 1 corresponds to a detected keypoint; otherwise, it corresponds to the background. For each ground truth keypoint p ∈ R 2 of class c in the input image, downsampling is used to obtain a low-resolution equivalent p � ⌊P/R⌋ . A ground truth keypoint heatmap Y ∈ [0, 1] W/R×H/R×C is generated using the Gaussian kernel  Figure 1: Pipeline of the proposed method. For image processing, the CycleGAN is used first to generate fake nighttime images based on annotated daytime images. en, the features of images are extracted by the DLA backbone. For radar processing, the 3D region of interest is utilized for associating the radar detection points with the corresponding object after pillar expansion. Last, the image features are concatenated with the radar features and regressed to other object attributes.
A fully convolutional encoder-decoder network is used to predict Y from the input image. Given the annotated objects p 0 , p 1 . . . in an image, the training objective based on the focal loss is defined as follows: e image features are extracted by a fully convolutional encoder-decoder backbone network during the process of center point extraction based on an image. We follow CenterNet and adopt the modified Deep Layer Aggregation (DLA) network as the backbone. en, the extracted image features are used to predict the center points and finally return to other object attributes, as well as the object's 2D size, i.e., width and height, and center offset.

Style
Transfer from Daytime to Nighttime. Generally speaking, for object detection and recognition, it is necessary to label datasets, and these labeling workloads are often labor intensive. In this study, our data collection equipment is fixed in one place, and the shooting angle of the image data and the resolution of the image data are all the same. e different places mainly focus on the characteristics of same objects reflected in the image data in different time period (for example, daytime and nighttime). erefore, we choose a cycleGAN of the GAN network to convert the labeled daytime dataset into a nighttime dataset to reduce the workload of manual annotation. e aim of the work presented in this subsection is to achieve image-to-image conversion between the daytime source domain S and the nighttime target domain T. In this conversion, a training set of aligned image pairs is generally used to learn the mapping between the input and the output images. However, as paired training data will not be available for many tasks, this paper introduces a method proposed by Zhu et al. [47] in 2017 that learns to translate images from source domain X to target domain Y. e goal of this method is to learn a mapping G: X ⟶ Y. It introduces the adversarial loss to differentiate the data distribution of the actual Y domain image from the data distribution of the image G(X) converted from the X domain, which provides the foundation for creating the antagonistic network. An inverse mapping F: Y ⟶ X is added, because this mapping is highly underconstrained, and cycle consistency loss is introduced to strengthen F(G(X)) ≈ X. is means that after the image of X domain is mapped to Y domain and then mapped back to X domain, it should be consistent with the original image as much as possible, and vice versa. e Y domain image mapped to the X domain should also be consistent with the original image. e total loss function in the style transfer architecture is defined as where λ, L cyc and L GAN are the balanced weight, cycle consistency loss in the cycle architecture, and the adversarial training loss, respectively. e cycle consistency loss is used to regularize the GAN training. e two losses are defined as follows: e following expression should be solved to train these generators and discriminators: To solve equation (7) during training, the network parameters of the two generators are updated alternately, and the ADAM optimization algorithm is used in two discriminators.

Fusion Methodology.
e center point detection network utilizes the object's center feature to regress to other characteristics of the object, as shown in Section 3.1. Instead of using the original radar point cloud, this article uses object detection findings, which minimizes the amount of data processing and therefore reduces information transmission bandwidth while improving anti-interference capabilities. e description of radar point cloud processing is beyond the scope of this paper, and it will not be elaborated here.
In order to make full use of radar data during the target detection process, we first need to associate the radar detection results with the objects on the image. Data association via 2D bounding boxes is not a reliable approach. When there is occlusion between items, for example, it is difficult to differentiate them using simply 2D plane information. Inspired by the frustum-based association method that is proposed by Nabati and Qi [7] and considering the difference of collection perspective, we propose the 3D region of interest (RoI) to complete the associated task. ese RoIs are generated from the 2D ground truth of Journal of Advanced Transportation the object and the estimated depth δ, as shown in Figure 2, where δ is defined as follows: where d is the distance measured by the millimeter-wave radar, h is the height of the equipment, and l is the height of ground truth. ey are all pixel values. e conversion factor c between real-word distance and pixel value is defined as follows: where l w and l are real-world and image-world lengths in millimeters and pixels, respectively. e value of c only needs to be calculated once in advance. e corresponding values of l w and l can be obtained when the size of an image remains unchanged.
To achieve more accurate and rapid data association, a processing step called pixel expansion is introduced, where each radar point is expanded to a pillar. e pillars create a better representation of the physical objects detected by the radar, as these detections are now associated with a dimension in the 3D space. Based on this new representation, the radar detection point is considered available when the whole or a portion of the pillar is within the 3D RoI.
Using these techniques, we can solve the problem of association overlap owing to occlusion between objects in an improved manner. e radar feature map is created using the available radar detection points and then combined with image features. e head is used to regress to other attributes of the objects.

Traffic Flow Parameter Collection.
e three most important parameters that can describe the traffic are volume, speed, and density in the traffic flow theory. eir relationship is given by the following equation: where Q denotes the volume in the same direction, V denotes the velocity, and K denotes the density, and K is defined as vehicle counts in the designated road section. As shown in Figure 3, we only collect traffic parameters in the red bounding box due to the comprehensive consideration of obstacle occlusion and limited device perception field of view. e total length of the experimental area is 130 meters. Detailed bounding boxes of vehicles in each frame can be obtained according to the object detection result based on the image. e density can be obtained by counting the vehicles in a certain segment as follows: where N and L are the number of vehicles in the road segment and length of the road segment in kilometers, respectively.
ere are two methods for obtaining speed in the suggested technique in this article, which are obtained from millimeter-wave radar and camera. We utilize the speed obtained by the millimeter-wave radar as the object speed for objects that can be detected by millimeter-wave radar, but we use the speed measured by the camera if the millimeterwave radar does not detect the object.
e radar system sends out a series of continuous frequency modulation millimeter waves and receives the reflected signal from the target. According to the modulation voltage law, the frequency of the transmitted wave varies with time. e modulation signal is usually a triangle wave signal. e reflected wave has the same form as the transmitted wave, but there is a temporal delay. e frequency of the intermediate frequency signal generated by the mixer is proportional to the frequency difference between the transmitted signal and the reflected signal at a given instant, and the target distance is proportional to the intermediate frequency output by the front end. e reflected signal contains a Doppler shift induced by the relative movement of the target when it originates from a relatively moving object. e target distance and relative speed of the target may be determined using the Doppler principle. Millimeterwave radar is one of the tools used in this article that can directly output object speed.
For camera speed measurement, we use the same target's pixel transformation between each frame for speed calculation. We assume d (i,x) ����→ and d (i,y) ����→ as the pixel changes of the i-th target in the horizontal and vertical directions. e overall motion magnitude d i of the i-th motion vector in pixels/frame can be calculated by the following equation: where d p donates the pixel transformation value of the target between two frames. It can be converted into a unit of measurement of length in the real world using equation (9). e speed refers to the space mean speed (SMS) that is the average speed of all vehicles driving within a certain length of road at a certain moment. It is used to evaluate the service level of the road and is defined as follows: where n denotes the number of times traveled over the length of the road segment, and v i is the travel speed of the i-th vehicle that is provided by the millimeter-wave radar. e volume can be calculated using equation (10) once the density and speed are available.

Experiments
In this section, the traffic dataset and experimental parameter settings are first used to test the proposed approach. Subsequently, the object detection performance is compared on two traditional algorithms and a deep learning method. Finally, we present and discuss the experimental results. 6 Journal of Advanced Transportation

Dataset.
e data is collected using self-developed equipment in this study. To accomplish dual-sensor sensing, this device combines millimeter-wave radar with a camera. e equipment is mounted on a tripod on the pedestrian bridge, which is 6.73 meters above the ground. As illustrated in Figure 4, we collect data throughout the day. We record from all angles and are committed to the restoration of the data acquisition process. e dataset of this paper is comprised of the millimeter wave-radar data at 4400 moments and the corresponding 4400 images. e image resolution is 2288 × 1712. e dataset is grouped into training and testing sets. e training set includes 2000 manually labeled traffic images in the daytime and simulated traffic images in the nighttime. ere are 31708 vehicles in total. In this experiment, the unlabeled nighttime traffic images are defined as the Target Domain T, and the labeled daytime traffic images are defined as the Source Domain S. We use the CycleGAN described earlier to transfer the labeled daytime images and simulate the nighttime images in order to minimize the labeling workload. Each image in the testing set is manually labeled for performance evaluation purposes only. e testing set has data for four scenarios including 2400 images in total. It is divided into four subsets, each subset containing 600 pictures, which are divided into daytime traffic 1 (less vehicles), daytime traffic 2 (more vehicles), nighttime traffic 1 (more vehicles), and nighttime traffic 2 (less vehicles). Table 1 gives the details of our dataset. Figures 5 shows the sample pictures from four testing sets.

Experimental Settings.
is experiment consists of two parts: vehicle detection and traffic flow parameters collection, which are both used to validate the accuracy of the proposed method. Two different methods are considered separately in the vehicle detection experiment: (1) Method I: e images and manually labeled ground truth are used to train a CenterNet model on the training dataset. e learned model is then tested on Scenario I (less vehicles at daytime) and Scenario IV (less vehicles at nighttime). (2) Method II: e proposed method fuses the data from camera and millimeter-wave radar. e images, points detected by millimeter-wave radar, and manually labeled ground truth are used to train the proposed model on the training dataset.
e learned model is then tested on Scenario I (less vehicles at daytime) and Scenario IV (less vehicles at nighttime). e information detected by the millimeter-wave radar is used as a supplement to the image information, which can compensate for the performance loss based on image detection at nighttime. Besides, the trained CenterNet mentioned in method I is taken as the comparison methods.
In addition, two classical image processing algorithms for vehicle recognition based on background removal are used as comparative approaches. Multi-Layer background subtraction method (MultiLayer) [48] and Mixture of Gaussians algorithm based on Adaptive Gaussian Mixture Model (MOG) [49] are the two algorithms in question. In the tests, CenterNet [12] is used as a comparison technique. To reflect the sensor fusion effectiveness, all the images are used directly after labeling, without any selfdefined preprocessing. e experiments are conducted where TP, FP, and FN refer to true positive, false positive, and false negative, respectively. e F-measure is an overall metric combining precision and recall; therefore, we use it to report the overall performance. e mAP (%) metric is the precision value averaged across all recall values between 0 and 1 for the vehicles, which is considered a comprehensive metric to effectively demonstrate the detection performance. For all the methods, the performance evaluation uses a uniform threshold of 0.5 for the Intersection over Union (IoU) between the predicted bounding box and the ground truth.
In the experiment on traffic flow parameters collection, the vehicle speed is provided by the millimeter-wave radar, and vehicle count is evaluated. Accuracy is used as a metric to evaluate the vehicle count. e mean absolute error (MAE) is taken as the metric to evaluate the count of vehicle. It is the average value of the absolute error, which can well reflect the actual situation of the predicted value error and can be calculated using the following equation: where f i is the estimation value and y i denotes the ground truth value. Smaller value of MAE indicates better performance.

4.3.
Results. e improved vehicle detection performance can provide more accurate traffic flow parameters in practical applications. is study offers a technique based on the combination of millimeter-wave radar and camera to address the performance loss of vehicle detection at night using just traffic surveillance. e performance loss of image-based vehicle detection may be mitigated in the complicated illumination environment at night using millimeter-wave radar's all-weather operating features. We employ millimeter-wave radar to get object representations before performing the fusion in our detection solution. A uniform threshold of 0.5 is determined for the IoU between the predicted bounding boxes and ground truth, and the experimental results in this paper will be displayed in this section. e experimental results of vehicle detection of four  Journal of Advanced Transportation methods mentioned above will be compared in the performance evaluation in this paper. e CycleGAN is used to achieve image-to-image conversion between the daytime source domain S and the nighttime target domain T. e result of a thousand rounds of transfer processing is stored, and the best result is displayed in Figure 6. e findings of the complete detection performance evaluation are provided in Table 2. is table shows that, in terms of these six criteria, deep learning techniques to vehicle recognition outperform standard image processing methods. e detection performance of two classic image processing approaches, MOG and MultiLayer, is much worse when compared to deep-learning-based methods. Traditional image processing algorithms also perform worse at night than during the day in terms of detection. e possible explanation may be that, at night, the light spot formed by the lights of the vehicle on the ground will be recognized as a foreground object. Despite the fact that conventional approaches have a significantly lower recall than deep learning techniques, MultiLayer has outperformed another old method. On the average of four testing sets, MultiLayer receives 78.40% of accuracy and 71.29% of F-measure.
Deep learning performs better than the traditional method due to the strong discriminative feature extraction capabilities of the Convolutional Neural Network (CNN) framework. Out of all detection methods, our proposed method performs the best with the values of Precision and Fmeasure achieving 88.03% and 91.10%, respectively. followed by CenterNet, which achieves 86.17% and 89.97% on these two evaluation indicators. e proposed method and CenterNet are comparable and similar. Nevertheless, the proposed method has slightly better efficiency on our testing dataset.
Only the results based on MultiLayer, CenterNet, and the proposed approach for scenarios I and IV are given in Figure 7, which illustrates the visual results for vehicle recognition on actual daylight and nighttime pictures. During the night, the MultiLayer method displays several missed detections. CenterNet does a better job, but it still has a lot of false positives and false negatives. e proposed method gets the least false positive and false negative errors, which demonstrates improved vehicle detection in the nighttime.
is improvement is achieved thanks to the proposed method's compensation of the image-based target detection by the millimeter-wave radar.
As CenterNet is the baseline model chosen for the experiments, we only compare it with the proposed method during traffic flow parameters collection. e performance of the two methods is similar during the daytime. e recall values of CenterNet at the daytime are 92.75% and 91.65%, respectively, while those of the proposed algorithm are 93.26% and 94.34%, respectively. Both methods have similar performance in the daytime. However, the proposed method improves the performance of collecting the number of vehicles at nighttime. Table 3 shows that, in the presence of vehicles at nighttime, the accuracy provided by proposed method increases by almost 8% and 5% in the two nighttime scenarios, respectively, compared with CenterNet.
As mentioned above, the testing set is divided into daytime traffic 1 (less vehicles), daytime traffic 2 (more vehicles), nighttime traffic 1 (more vehicles), and nighttime traffic 2 (less vehicles). It can be seen from Table 3 that, compared with CenterNet, the estimation accuracy of the proposed method of the counts of vehicles in the four scenarios is increased by 0.51%, 2.69%, 7.96%, and 3.98%, respectively. From this set of data, we can see that, in terms of the estimation accuracy of the counts of vehicles, the increase in the daytime is lower than that in the nighttime, and the increase in the sparse vehicle scene is lower than that in the dense vehicle scene. e possible reason is that the lighting environment at night is complicated, and other light sources such as street lights and car lights are interlaced and complicated, resulting in irregular image brightness distribution, poor image visibility and contrast, and lack of required details and context, resulting in a decrease in the accuracy of target detection based on image. e accuracy of vehicle counts estimation will also decrease. For the difference between the sparse vehicle scene and the dense vehicle scene, in the data collection method of this article, one possible explanation is that when the density of vehicles is high, the vehicles will overlap to a greater extent, which is not conducive to image-based target detection. For radar, radar relies on echoes for target judgment. When targets overlap, the loss of detection performance is smaller than that of the image. e proposed method achieved a satisfactory performance in the vehicle count collection in daytime and nighttime as shown in Table 3. In this study, the deep learning model we trained did not use any nighttime manual labels as supervisions, and the great accuracy improvement during nighttime is quite promising. Figure 8 shows the visual results of the estimated and ground-truth counts for the whole day traffic conditions. e position and internal parameters of our device are fixed during the data collection. It can be intuitively observed that the proposed method improves the vehicle counting accuracy.
e experimental results show that the significant accuracy increases by the proposed method compared to CenterNet especially at nighttime. Table 4 displays the vehicle speed estimation findings for the four scenarios in the collected dataset. We compared CenterNet and the proposed method with ground truth. During the daytime, the average MAE of the CenterNet is 1.63, and the average MAE during nighttime is 4.04. e proposed method has a MAE of 0.995 during the daytime and 1.295 during nighttime. Compared with CenterNet, the proposed method improves by 0.64 and 2.745 during the daytime and nighttime, respectively.
In addition, we were able to deduce the density and volume estimated by the proposed method in the selected road section in the collected dataset, which is shown in Table 5. It can be seen from Table 5 that when the number and density of vehicles are small, the vehicle speed is higher. e traffic flow is quite different during the day and night, Figure 6: Image-to-image conversion between the daytime and nighttime by CycleGAN.     showing a low-density high-speed overall at nighttime, and a high-density and vulgar flow during the daytime.

Conclusion
In this paper, a method for combining millimeter-wave radar and picture data is provided. e CenterNet serves as the baseline for our proposed approach, which is then augmented with millimeter-wave radar data. A set of data was obtained to train the suggested technique, and four more sets of data were collected to verify and analyze the method. e experimental results show that the proposed method improves the accuracy of vehicle detection and traffic flow parameters collection during the whole day.
In the future, we will concentrate on the following topics. First, various weather characteristics, such as rain, snow, and fog, will be considered during the traffic flow parameters collection. Second, based on the detection results, the next step of vehicle tracking and trajectory extraction will provide more data for road management and control. Last, using actual traffic flow parameters to maximize traffic efficiency in the face of mixed traffic flow will be considered in the coming era of autonomous vehicles.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper. Journal of Advanced Transportation 13