A pseudo-label generation method suitable for traffic gaze target detection
By combining traffic target detection and visual saliency datasets to generate initial pseudo-labels, and using a pseudo-label optimization submodule for iterative optimization, the problem of poor pseudo-label quality is solved, and the performance of traffic gaze target detection is improved.
Patent Information
- Application Number
- CN202410853547.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-28
Smart Images

Figure CN118781599B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer vision technology, and specifically relates to a pseudo-label generation technique in traffic gaze target detection. Background Technology
[0002] Traffic scene perception has a significant impact on driving safety. Simulating the perception of experienced drivers in traffic scenes, traffic gaze target detection has been proposed and rapidly developed. However, previous methods for traffic gaze target detection required manually labeling large amounts of datasets, which not only consumed significant resources but also hindered the widespread adoption of gaze target detection.
[0003] Unlike fully supervised learning methods that rely on a large number of manually labeled, high-precision tags to train models, weakly supervised learning methods only require a small amount of weakly labeled data to train models, thus greatly reducing the enormous resources consumed in labeling training samples. However, existing weakly supervised object detection methods mainly target full-object detection within a scene and fail to effectively utilize the driver's visual information. Therefore, how to incorporate driving experience into weakly supervised learning to generate pseudo-labels suitable for traffic gaze object detection remains an unsolved problem. Furthermore, for weakly supervised object detection, propagating the given image-level supervision signal to instance-level (bounding box level) training data to facilitate the model's learning process is crucial for improving weakly supervised detection performance. However, since each training image can be labeled with multiple bounding boxes of varying precision, pseudo-labels are inevitably subject to significant noise interference during optimization, making weakly supervised learning extremely challenging. Therefore, effectively improving the quality of pseudo-labels for traffic gaze object detection is an urgent problem to be solved. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention proposes a pseudo-label generation method suitable for traffic gaze target detection. This method combines target category and location information from a manually annotated traffic target detection dataset with eye movement information from multiple experienced drivers captured using a traffic visual saliency dataset to generate pseudo-labels suitable for traffic gaze target detection. Furthermore, a pseudo-label optimization submodule is established to further improve pseudo-label quality, providing a novel approach for weakly supervised traffic gaze target detection.
[0005] The technical solution adopted in this invention is: a pseudo-label generation method suitable for traffic gaze target detection, comprising:
[0006] S1. The YOLOv5x6 detector is trained using the traffic target detection dataset;
[0007] S2. Using the detector YOLOv5x6 trained in step S1, target detection is performed on each frame of the traffic visual saliency training set.
[0008] S3. Based on the target detection results obtained in step S2 and the driver's gaze points recorded in the traffic visual saliency training set, generate initial pseudo-labels suitable for traffic gaze target detection.
[0009] S4. The pseudo-label optimization submodule iteratively optimizes the initial pseudo-labels generated in step S3 to obtain the final pseudo-labels suitable for traffic gaze target detection.
[0010] The beneficial effects of this invention are as follows: In order to generate high-quality pseudo-labels suitable for traffic gaze target detection, this invention proposes to combine publicly available traffic target detection datasets and traffic visual saliency datasets to generate initial pseudo-labels for traffic gaze target detection; by establishing a pseudo-label optimization submodule, the quality of pseudo-labels is further improved, providing a new method for carrying out weakly supervised traffic gaze target detection in a low-cost manner, and providing a new strategy for promoting traffic scene perception from the driver's perspective. Attached Figure Description
[0011] Figure 1 This is a diagram of the pseudo-tag generation structure provided in the embodiments of the present invention;
[0012] Figure 2 This is a flowchart of the pseudo-label optimization submodule established in this embodiment of the invention;
[0013] Figure 3 This is a diagram showing the effect of pseudo-label generation in an embodiment of the present invention;
[0014] In this table, (a) represents manually labeled tags, (b) represents initial pseudo-tags, and (c) represents optimized pseudo-tags. Detailed Implementation
[0015] To facilitate understanding of the technical content of this invention by those skilled in the art, the following description, in conjunction with the accompanying drawings, further illustrates the invention.
[0016] A pseudo-label generation method for traffic gaze target detection includes the following implementation process: To conduct research on pseudo-label generation methods for traffic gaze target detection, the publicly available ET-VFOD training set (dataset publicly available at https: / / github.com / YiShi701 / VFOD_Net), the BDD100K training set (Yu F, Chen H, Wang X, et al. BDD100K: a diverse driving dataset for heterogeneous multitask learning[C]. Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition, 2020, 2636-2645.), and data from Deng (T. Deng, H. Yan, L. Qin, T. Ngo, and B. Manjunath, “How do drivers allocate their potential attention? driving fixation prediction via convolutional neural networks,” IEEE Transactions on Intelligent Transportation) are used. The traffic visual saliency training set constructed by Tian (H. Tian, T. Deng, and H. Yan, “Driving as well as on a sunny day? predicting driver's fixation in rainy weather conditions via a dual-branch visual model,” IEEE / CAA Journal of Automatica Sinica, vol. 9, no. 7, pp. 1335–1338, 2022) was used. ET-VFOD is a dataset for traffic gaze target detection, containing 5 target categories: traffic-sign, person, car, motorcycle, and traffic-light. BDD100K is a dataset for traffic target detection, containing 10 target categories: car, bus, pedestrian, bicycle, truck, motorcycle, train, rider, traffic sign, and traffic light.
[0017] The implementation process of one embodiment of the present invention includes the following steps:
[0018] S1. To conduct research on pseudo-label generation methods applicable to traffic gaze target detection, state-of-the-art target detectors are pre-trained based on publicly available large-scale traffic target detection datasets, specifically as follows:
[0019] a. This invention utilizes two target detection datasets: the ET-VFOD dataset and the BDD100K dataset. ET-VFOD is a traffic gaze target detection dataset, suitable for detecting targets that attract driver attention in traffic scenes; BDD100K is a traffic target detection dataset, suitable for detecting all targets in traffic scenes. These two datasets are fundamentally different. In this embodiment, the BDD100K dataset is used for pre-training the YOLOv5x6 detector, while the ET-VFOD dataset is used for subsequent verification of the quality of the pseudo-labels generated by the proposed method. However, the target categories in these two datasets are inconsistent. To facilitate subsequent verification of pseudo-label quality, it is first necessary to align the target categories in the ET-VFOD and BDD100K datasets. Firstly, based on the similarity between target categories, the 10 categories in the BDD100K dataset are merged into 5 target categories consistent with the ET-VFOD dataset.
[0020] b. Considering the class imbalance issue, the five classes in the merged BDD100K dataset were divided into two groups (one group includes traffic-sign and car; the other group includes person, motorcycle, and traffic-light). These two datasets were used to pre-train the advanced detector YOLOv5x6, resulting in two different sets of model parameters. At the start of model training, the detector first loaded the pre-trained parameters provided with YOLOv5x6, maintaining the training strategy and hyperparameters consistent with the default values of YOLOv5x6. The input image resolution was adjusted to 1344×1344 pixels, and the batch size was set to 6. After 50 epochs of training, the YOLOv5x6 model parameters were saved.
[0021] S2, the YOLOv5x6 detector trained in S1 is used to detect each frame of the traffic visual saliency training set, as shown in the following equation (1):
[0022] obj i =Det i (I), i∈{1,2} (1)
[0023] In the formula, Det i(·) represents the YOLOv5x6 detector pre-trained in S1 using two datasets corresponding to different categories. I represents each frame in the saliency training set. i represents the two sets of data corresponding to different categories. obj represents the detection result of the trained YOLOv5x6 detector for each frame in the traffic visual saliency training set. During detection, the resolution of each frame input to YOLOv5x6 is adjusted to 1344×1344 pixels. The batch size is set to 1, and no data augmentation methods are used.
[0024] S3 uses the driver's gaze points recorded in the traffic visual saliency training set in S2 to identify targets that attract the driver's attention, specifically:
[0025] a. The driver's gaze points in five consecutive frames recorded in the visual saliency training set are merged into one frame, as shown in equation (2) below:
[0026]
[0027] In the formula, ∪ represents the union operation. t (x,y) represents the driver's gaze map recorded in frame t. t (x,y) represents a gaze map formed by merging five consecutive gaze points into one frame. x and y represent the horizontal and vertical coordinates of the gaze point, respectively.
[0028] b. Based on the merged driver gaze map, a saliency heatmap is generated, as shown in equation (3) below:
[0029]
[0030] In the formula, * denotes the convolution operation. κ(x,y) represents the convolution kernel, which is represented by a two-dimensional Gaussian function in this case. σ is set to 10, and grayscale mapping is performed using the Jet pseudo-color method to obtain the saliency heatmap.
[0031] c. Based on the generated saliency heatmap and the detection results obtained in S2, pseudo-labels suitable for traffic gaze target detection are generated, as shown in equation (4) below:
[0032]
[0033] In the formula, ∩ represents the intersection operation. This represents two different sets of initial pseudo-labels generated, which contain information about the category and location of the object being gazed upon. 'i' represents the two sets of data corresponding to different categories.
[0034] S4. By setting a confidence threshold and introducing a self-training strategy, a pseudo-label optimization submodule is designed. The process of this module is as follows: Figure 2 As shown, specifically:
[0035] a) Set a high confidence threshold to exclude initial false labels. The sample contains a large number of false positives with low confidence levels.
[0036] b. A self-training strategy is introduced to recall incorrectly deleted true positives. Specifically, the pseudo-labels obtained after thresholding and their corresponding images are used to retrain the YOLOv5x6 detector. During detector training, the detector first loads the pre-trained parameters provided by YOLOv5x6, and the training strategy and hyperparameters are kept consistent with the default values of YOLOv5x6. The input image resolution is adjusted to 1344×1344 pixels, and the batch size is set to 6. After 10 epochs of training, the YOLOv5x6 model parameters are saved. In this embodiment, the pseudo-label optimization submodule loads the pre-trained parameters once after each complete process and during retraining.
[0037] Subsequently, the retrained detector was used in step S2 to detect each frame of the traffic visual saliency training set, and the calculation process is shown in Equation (1). During the detection process, the resolution of each frame of the input YOLOv5x6 image was adjusted to 1344×1344 pixels. The batch size was set to 1, and no data augmentation methods were used. This step not only recalled the false positives with low confidence that were mistakenly deleted, but also further refined the bounding boxes and category information of the gaze targets in the pseudo-labels;
[0038] c, the significant heatmap generated in S3 The detection results from the previous step are used to select salient targets that attract the driver's attention. The calculation process is shown in Equation (4), thereby generating high-quality pseudo-labels suitable for traffic gaze target detection.
[0039] S5 utilizes the pseudo-label optimization submodule built in S4 and dynamically adjusts the confidence threshold to perform multiple rounds of iterative optimization on the initial pseudo-labels generated in S3, thereby effectively improving the quality of the pseudo-labels. Specifically:
[0040] a. The confidence threshold is dynamically adjusted based on the number of self-training rounds of the pseudo-label optimization sub-module, as shown in equation (5) below:
[0041]
[0042] b) Perform multiple iterations on the pseudo-label optimization submodule. Training ends when the number of self-training rounds reaches a set value (4 in this embodiment), thereby obtaining high-quality pseudo-labels.
[0043] c. Combine the two sets of pseudo-tags containing different categories obtained in the previous step to generate high-quality pseudo-tags containing 5 categories, as shown in the following formula (6):
[0044]
[0045] In the formula, This indicates a pseudo-label that includes both the traffic-sign and car categories. This represents a pseudo-label containing the three categories: person, motorcycle, and traffic-light. ∪ represents the union operation.
[0046] The quality of pseudo-labels obtained with different confidence thresholds is shown in Table 1. Compared to setting a fixed confidence threshold throughout the pseudo-label optimization process, the dynamic confidence threshold strategy proposed in this invention can eliminate a large number of false positives in the early stages of pseudo-label optimization by setting a high confidence threshold. As pseudo-label optimization progresses, the confidence threshold decreases, which is beneficial for recalling true positives with low confidence that have been mistakenly deleted. The proposed dynamic confidence threshold strategy can achieve higher average recall and average precision, as shown in the first row and second row of the first column of Table 1, respectively. Compared to the initial pseudo-labels which have a large number of false positives and false negatives, such as... Figure 3 As shown in the second column, the proposed pseudo-label optimization submodule utilizes a self-training strategy, a dynamic confidence threshold strategy, and undergoes multiple iterations, which can significantly improve the quality of pseudo-labels. The visualization results are as follows: Figure 3 As shown in the last column.
[0047] Table 1. Pseudo-label quality obtained with different confidence thresholds.
[0048]
[0049] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Various modifications and variations can be made to the invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the scope of the claims of the invention.
Claims
1. A method for generating pseudo-labels suitable for traffic gaze target detection, characterized in that, include: S1. The YOLOv5x6 detector is trained using the traffic target detection dataset; S2. Using the detector YOLOv5x6 trained in step S1, target detection is performed on each frame of the traffic visual saliency training set. S3. Based on the target detection results obtained in step S2 and the driver's gaze points recorded in the traffic visual saliency training set, generate initial pseudo-labels suitable for traffic gaze target detection; step S3 specifically includes the following sub-steps: S31. Merge the driver's gaze points from multiple consecutive frames recorded in the traffic visual saliency training set into one frame, as shown in the following formula: ; In the formula, This represents the union operation. This represents the driver's gaze map recorded in frame t. This represents a driver's gaze map where multiple gaze points are merged into a single frame. These represent the horizontal and vertical coordinates of the fixation point, respectively. S32. Based on the merged driver gaze map, generate a saliency map, as shown in the following formula: ; In the formula, This represents the convolution operation. Represents the convolution kernel; The expression is: ; in, Indicates the radius of the Gaussian kernel; S33. Based on the generated saliency map and the detection results obtained in step S2, generate initial pseudo-labels suitable for traffic gaze target detection, as shown in the following formula: ; In the formula, This represents the intersection operation. Indicates the first Initial pseudo-tags for the group The upper limit of the value is determined based on the number of target category groups in the traffic target detection dataset. This indicates the detection result obtained in step S2; S4. The pseudo-label optimization submodule iteratively optimizes the initial pseudo-labels generated in step S3 to obtain the final pseudo-labels suitable for traffic gaze target detection.
2. The pseudo-label generation method for traffic gaze target detection according to claim 1, characterized in that, The traffic target detection dataset uses the BDD100K dataset.
3. The pseudo-label generation method for traffic gaze target detection according to claim 2, characterized in that, Step S4 specifically includes the following sub-steps: S41. Set a dynamic threshold to filter out initial pseudo-labels with a confidence level lower than the current threshold; S42. Use the pseudo-labels and their corresponding images obtained after processing in step S41 to retrain the detector YOLOv5x6. S43. If the iteration stopping condition is not met, apply the detector YOLOv5x6 trained in the current iteration to step S2 and update the initial pseudo-labels. S44. When the number of iterations is reached, output the final pseudo-label suitable for traffic gaze target detection.
4. A pseudo-label generation method for traffic gaze target detection according to claim 3, characterized in that, The dynamic threshold is expressed as: ; in, Indicates dynamic threshold. This indicates the current iteration number.
Citation Information
Patent Citations
Semi-supervised time sequence action positioning method, system, equipment and medium
CN116363755A
Traffic gazing target detection method based on saliency prior
CN116453078A
