Lane line detection method based on global feature optimization and shape feature perception aggregation
Through the combination of global feature optimizer and adaptive lane geometry aggregator, the problem of low accuracy of lane line detection in complex environments is solved, and lane line detection with high robustness and accuracy is achieved, especially in complex scenes. Significantly improved detection performance.
Patent Information
- Application Number
- CN202410851356.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing lane line detection methods have low detection accuracy in complex road environments and are difficult to distinguish between important lane line information and redundant background information, resulting in a waste of computing resources and low detection efficiency. They are also difficult to integrate the global and local features of lane lines and cannot be used in Accurately identify lane lines in changing environments.
A lane line detection method based on global feature optimization and shape feature-aware aggregation is proposed. Through two core components, the global feature optimizer GFO and the adaptive lane geometry aggregator ALGA, the model can fully detect local and global features in the image. Fusion, and using the shape prior information of lane lines to enhance anchor point correlation to achieve lane line detection.
Improved the robustness and accuracy of lane line detection, especially in complex scenes, such as curves, occlusions and lighting changes, the model shows higher performance stability and detection performance, improving the F1 score by nearly Three percentage points.
Smart Images

Figure CN118865296A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of autonomous driving, and specifically relates to a lane line detection method based on global feature optimization and shape feature perception aggregation. Background Art
[0002] Currently, autonomous driving[1] technology has attracted great attention in both academia and industry. Lane detection, as a core component of intelligent vehicle systems, plays a vital role. Its main task is to accurately identify and locate lane lines in various road environments, which is crucial to ensure vehicle driving safety and route planning.
[0003] Existing lane detection methods can be divided into two categories: traditional image processing-based methods and deep learning-based methods. Image processing-based methods mainly rely on traditional image processing techniques such as edge detection [2] and Hough transform [3]. These methods identify lane lines by detecting edge features in images, but because they rely on artificially designed features, they are easily affected by external factors such as lighting changes, shadows, and road wear, and have low detection accuracy and stability. For example, the common Canny edge detection algorithm and Hough transform method can provide certain detection effects under ideal conditions, but perform poorly in actual complex environments.
[0004] With the development of deep learning technology, lane detection methods based on convolutional neural networks (CNNs) have become a research hotspot. Deep learning-based methods can be divided into four categories: segmentation-based methods, curve-based methods, keypoint-based methods, and anchor-based methods. Segmentation-based methods regard lane detection as a pixel-by-pixel segmentation problem, representing each pixel as a lane region or a background region. For example, the SCNN[4] (Spatial CNN) method achieves a high detection accuracy by transferring information in image rows and columns through a slicing network structure. However, such methods usually require a long processing time and large computational complexity, making them unsuitable for real-time applications. Curve-based methods[5] model lane curves and then regress these parameters to detect lanes. For example, the PolyLaneNet[6] method uses polynomial coefficients to represent curves, achieving high efficiency. BezierLaneNet[7] proposes the use of parameterized Bezier curves to achieve end-to-end lane detection. However, since the polynomial coefficients of the curve abstraction are not easy to learn, the detection performance of such methods is low. Keypoint-based methods detect lane points as keypoints[8] and then group them into lane instances. For example, the PINet[9] method predicts key point locations and feature embeddings through a stacked hourglass network, and then clusters the key points into lane instances. Such methods require complex post-processing and have high computational costs. Anchor-based methods use predefined line anchors as references to regress precise lanes. For example, Line-CNN
[11] uses straight lines with specific directions emitted from the image boundary as anchors, and the CLRNet
[10] (Cross Layer Refinement Network) method uses a cross-layer refinement network to detect the approximate location of the lane using high-level semantic features, and then refines layer by layer based on low-level features, while always maintaining the high-level semantic information of the lane line image throughout the process. This method achieves a good balance between detection accuracy and speed, but its performance in complex scenes still needs to be improved.
[0005] Existing lane detection methods can often achieve high recognition accuracy when dealing with conventional scenes. However, when encountering complex road scenes (such as curves, lane line occlusion and missing, strong light, etc.), the detection accuracy drops significantly. This is because these existing methods cannot effectively distinguish between important lane line information and redundant background information during feature extraction, resulting in a waste of computing resources and low detection efficiency; at the same time, when dealing with the global and local features of lane lines, the model is difficult to achieve effective fusion, and cannot fully utilize the shape prior of lane lines and the global information in the image, resulting in poor performance of the model in detecting lane lines in complex situations, and is easily disturbed by environmental changes, making it difficult to accurately identify lane lines in a changing environment.
[0006] References:
[0007] [1]Ekim Yurtsever,Jacob Lambert,Alexander Carballo,and KazuyaTakeda.A survey of autonomous driving:Common practices and emergingtechnologies.IEEE access,8:58443–58469,2020.
[0008] [2]Shou-Ming Hou,Chao-Lan Jia,Ya-Bing Wanga,and Mackenzie Brown.Areview ofthe edge detection technology.Sparklinglight Transactions onArtificial Intelligence and Quantum Computing(STAIQC),1(2):26–37,2021.
[0009] [3]Kai Zhao,Qi Han,Chang-Bin Zhang,Jun Xu,and Ming-Ming Cheng.Deephough transform for semantic line detection.IEEE Transactions on PatternAnalysis and Machine Intelligence,44(9):4793–4806,2021.
[0010] [4]Xingang Pan,Jianping Shi,Ping Luo,Xiaogang Wang,and XiaoouTang.Spatial as deep:Spatial cnn for traffic scene understanding.InProceedings of the AAAI Conference on Artificial Intelligence,volume 32,2018.
[0011] [5]Wouter Van Gansbeke,Bert De Brabandere,Davy Neven,Marc Proesmans,and Luc Van Gool.End-to-end lane detection through differentiable leastsquares fitting.In Proceedings ofthe IEEE / CVF International Conference onComputer Vision Workshops,pages 0–0,2019.
[0012] [6]Lucas Tabelini,Rodrigo Berriel,Thiago M Paixao,Claudine Badue,Alberto F De Souza,and Thiago Oliveira-Santos.Polylanenet:Lane estimation viadeep polynomial regression.In 202025th International Conference on PatternRecognition(ICPR),pages 6150–6156.IEEE,2021.
[0013] [7]Zhengyang Feng,Shaohua Guo,Xin Tan,Ke Xu,Min Wang,and LizhuangMa.Rethinking efficient lane detection via curve modeling.In Proceedingsofthe IEEE / CVF Conference on Computer Vision and Pattern Recognition,pages17062–17070,2022.
[0014] [8]Ce Zheng, Wenhan Wu, Chen Chen, Taojiannan Yang, Sijie Zhu, Ju Shen, Nasser Kehtarnavaz, and Mubarak Shah. Deep learning-based human pose estimation: A survey. ACM Computing Surveys, 56(1): 1–37, 2023.
[0015] [9]Yeongmin Ko, Younkwan Lee, Shoaib Azam, Farzeen Munir, Moongu Jeon, and Witold Pedrycz. Key points estimation and point instance segmentation approach for lane detection. IEEE Transactions on Intelligent Transportation Systems, 23(7): 8949–8958, 2021.
[0016]
[10] Tu Zheng, Yifei Huang, Yang Liu, Wenjian Tang, Zheng Yang, Deng Cai, and Xiaofei He. Clrnet: Cross layer refinement network for lane detection. In Proceedings of the IEEE / CVF conference on computer vision and pattern recognition, pages 898–907, 2022.
[0017]
[11] Xiang Li, Jun Li, Xiaolin Hu, and Jian Yang. Line-cnn: End-to-end traffic line detection with line proposal unit. IEEE Transactions on Intelligent Transportation Systems, 21(1): 248–258, 2019. Summary of the Invention
[0018] The purpose of the present invention is to address the problems existing in the background technology and provide a lane line detection method based on global feature optimization and shape feature perception aggregation, which is used to achieve high robustness and high accuracy lane line detection in complex road environments.
[0019] To achieve the above-mentioned purpose, the technical solution of the present invention is: a lane line detection method based on global feature optimization and shape feature perception aggregation, a lane line detection model integrating two core components, a global feature optimizer GFO and an adaptive lane geometry aggregator ALGA, is proposed, and the global feature optimizer GFO enables the model to fully integrate the local and global features in the image, while the adaptive lane geometry aggregator ALGA is used to effectively utilize the shape prior information of the lane line, thereby realizing lane line detection.
[0020] In one embodiment of the present invention, the method comprises the following steps:
[0021] Preprocess the input lane line image;
[0022] Extract features at different levels through the backbone network;
[0023] The extracted features are processed under the operation of the global feature optimizer GFO;
[0024] The adaptive lane geometry aggregator ALGA uses the special shape prior information of lane lines to enhance the relevance of lane anchor points in the image;
[0025] The extracted features are refined layer by layer from coarse to fine through the neck network to optimize the extracted features and always maintain high-level semantic information throughout the process;
[0026] The optimized features are subjected to operations including pooling, convolution, and fully connected layers, and finally sent to the regression branch and classification branch for feature aggregation and visualization to obtain the final lane line prediction image.
[0027] In an embodiment of the present invention, the method of preprocessing the input lane line image is: cropping the lane line image to a size of 320×800.
[0028] In one embodiment of the present invention, the backbone network is ResNet-18.
[0029] In one embodiment of the present invention, the neck network is a feature pyramid.
[0030] In one embodiment of the present invention, the global feature optimizer GFO, by combining the efficient channel attention of ECA and the spatial attention of CBAM, can more finely adjust the network's attention to different channels and spatial regions, so that the model can better handle complex and changeable road environments. At the same time, since the one-dimensional convolution of ECA is lighter than the fully connected layer of CBAM, it can effectively improve the speed of the model. For lane detection systems that require real-time processing, the global feature optimizer can provide fast and accurate performance.
[0031] In one embodiment of the present invention, the global feature optimizer GFO is specifically implemented as follows:
[0032] For an input feature map with a dimension size of H×W×C (where H represents the height of the input feature map, W represents the width of the input feature map, and C represents the number of channels of the input feature map), it first enters the efficient channel attention processing of ECA, which first performs a global feature pooling operation on the input feature map to obtain a 1×1×C output. Next, a one-dimensional convolution operation is performed on this output to capture the dependency information between channels. The size of the convolution kernel is adaptively adjusted according to the number of channels of the input feature map, as shown in the following formula:
[0033]
[0034] where |t| odd represents the nearest odd integer to t, setting γ and b to constants;
[0035] The output is passed through the Sigmoid activation function to obtain the final channel attention feature, and then multiplied element by element with the original feature map. This process is expressed by the following formula:
[0036] F eca =F×σ(Conv 1D (AvgPool(F)))
[0037] AvgPool is the global average pooling, which compresses the spatial dimension of the feature map F and only retains the channel information; Conv 1D is a one-dimensional convolution, used to capture the dependencies between channels; σ is the Sigmoid activation function, used to generate channel attention weights;
[0038] Next, the feature map with a dimension of H×W×C output by ECA continues to be used as the input of CBAM's spatial attention. It first performs maximum pooling and average pooling operations on the feature map in the channel dimension to obtain two H×W×1 feature maps, and then performs a Concat operation on the two feature maps in the channel dimension. Next, a convolution operation with a convolution kernel size of 7×7 is performed to reduce the channel dimension and learn the importance of different spatial positions. After that, the Sigmoid function is used to generate spatial attention features, and this feature is then multiplied element by element with the feature map output by ECA to obtain the final feature map that combines channel and spatial attention. This process is expressed by the following formula:
[0039] F spatial =σ(Conv 2D (Concat(AvgPool(F eca ),MaxPool(F eca ))))×F eca
[0040] Among them, AvgPool(F eca ) and MaxPool(F eca ) represent the feature map F after ECA adjustment eca Perform average pooling and maximum pooling; Concat means concatenating the two pooling results along the channel dimension; Conv 2D is a two-dimensional convolution operation used to learn the importance of different spatial positions; σ is a Sigmoid activation function used to generate spatial attention weights.
[0041] In one embodiment of the present invention, γ and b are set to 2 and 1 respectively.
[0042] In one embodiment of the present invention, the adaptive lane geometry aggregator ALGA is used to perceive the shape characteristics of the lane line, predict the offset between the anchor point and its surrounding anchor points and the tempering factor of each offset, and use deformable convolution to combine these offsets and tempering factors for feature integration to aggregate the context information of the anchor point.
[0043] In one embodiment of the present invention, the adaptive lane geometry aggregator ALGA is specifically implemented as follows:
[0044] For a lane anchor point, a convolutional layer is first used to predict the offset between it and the K anchor points on the same lane around it and the corresponding conditioning factor of each offset. This conditioning factor enables the model to adaptively adjust the contribution of each anchor point, as shown in the following formula:
[0045]
[0046] Among them, pi represents the coordinates of the i-th anchor point, represents the feature representation of the i-th anchor point, φ represents the offset convolution layer, which is used to learn and extract the predicted offset from the feature map, ψ represents the tempering factor convolution layer, which is used to learn and extract the tempering factor of each offset from the feature map, represents the predicted offset set, Indicates the offset of the mth offset, represents the set of tempering factors for the predicted offset, represents the tempering factor of the mth offset;
[0047] Next, the features adjacent to the anchor points are integrated by using deformable convolution to combine the predicted offsets and the tempering factor corresponding to each offset to aggregate the contextual information of the i-th anchor point, as shown below:
[0048]
[0049] Among them, w m ,m=1,…,M is the weight of convolution;
[0050] After feature aggregation by deformable convolution, spatial attention is continued to be applied to the feature map to effectively handle the situation where lane lines are missing or occluded, and the final lane line prediction image is obtained.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] The innovation of the present invention lies in (1) proposing a multi-scale attention mechanism that can simulate the focusing ability of human vision, called the global feature optimizer, which can effectively filter out unimportant information and focus on processing the image area most relevant to the task, alleviating the problem of insufficient lane image feature differentiation caused by redundant background information, while reducing the computational cost without sacrificing performance, and improving processing efficiency and accuracy; (2) designing a shape feature perception module, called the adaptive lane geometry aggregator, which can utilize the special shape prior of the lane line to enhance the relevance of the anchor points in the image, thereby improving the model's ability to process details of slender and curved lane lines in complex road environments, especially in the presence of occlusion, lighting changes or poor weather conditions; (3) by integrating the global feature optimizer and the adaptive lane geometry aggregator into the existing model, the model can show higher performance stability in complex road scenes, and a large number of experiments and visualization of the experimental results are carried out to effectively verify that the algorithm model of the present invention can better perform lane line detection and has better lane line detection performance than the baseline model in complex scenes, especially in curved scenes, and can improve the F1 score by nearly three percentage points compared with the baseline model. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is the network model architecture of the method of the present invention.
[0054] Figure 2 It is a framework diagram of the global feature optimizer (GFO) of the present invention.
[0055] Figure 3 This is a module diagram of the adaptive lane geometry aggregator (ALGA) of the present invention.
[0056] Figure 4 Visualize the detection results of the model in different scenarios of the CULane dataset. DETAILED DESCRIPTION
[0057] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0058] The present invention proposes a lane line detection method based on global feature optimization and shape feature perception aggregation, and proposes a lane line detection model that integrates two core components: a global feature optimizer GFO and an adaptive lane geometry aggregator ALGA. The global feature optimizer GFO enables the model to fully integrate local and global features in the image, and the adaptive lane geometry aggregator ALGA is used to effectively utilize the shape prior information of the lane line, thereby realizing lane line detection.
[0059] The following is the specific implementation process of the present invention.
[0060] like Figure 1 As shown in the figure, the network model architecture of the method of the present invention is shown. The method of the present invention first pre-processes the input lane line image, crops the image to a size of 320×800, and then extracts features of different levels through a backbone network (such as ResNet-18); then, the extracted features are processed under the operation of the global feature optimizer (GFO), and the unimportant information in the image is effectively filtered out by simulating the visual focusing ability of humans, so that the model can process the lane line area most relevant to the task; then, the adaptive lane geometry aggregator (ALGA) reasonably utilizes the special shape prior information of the lane line to enhance the relevance of the lane anchor points in the image; then, the extracted features are refined layer by layer from coarse to fine through a neck network (such as a feature pyramid) to optimize the extracted features and always maintain high-level semantic information throughout the process; finally, the optimized features are subjected to operations such as pooling, convolution and fully connected layers, and finally sent to the regression branch and the classification branch for feature aggregation and visualization to obtain the final lane line prediction image. The specific implementation steps of the global feature optimizer (GFO) and the adaptive lane geometry aggregator (ALGA) are as follows:
[0061] (1) Global Feature Optimizer (GFO)
[0062] In order to better utilize the important feature information in the lane line image and alleviate the problems of background information redundancy and insufficient lane line area feature differentiation in previous work, the present invention constructs a global feature optimizer that simulates human visual focusing ability to perform lane line detection, which can more finely adjust the model's focus on different channels and spatial regions and improve the model's feature representation ability. The global feature optimizer proposed in the present invention is as follows: Figure 2 As shown in the figure, by combining the efficient channel attention of ECA and the spatial attention of CBAM, the network's attention to different channels and spatial regions can be adjusted more finely, so that the model can better handle complex and changing road environments, such as different lighting, complex road conditions, etc. At the same time, because the one-dimensional convolution of ECA is lighter than the fully connected layer of CBAM, it can effectively improve the speed of the model. For lane detection systems that require real-time processing, the global feature optimizer can provide fast and accurate performance. For an input feature map with a dimension size of H×W×C (where H represents the height of the input feature map, W represents the width of the input feature map, and C represents the number of channels of the input feature map), it first enters the efficient channel attention processing of ECA, which first performs a global feature pooling operation on the input feature map to obtain a 1×1×C output. Next, a one-dimensional convolution operation is performed on this output to capture the dependency information between channels. The size of the convolution kernel can be adaptively adjusted according to the number of channels of the input feature map, as shown in the following formula,
[0063]
[0064] where |t| odd represents the nearest odd number to t. In this paper, γ and b are set to 2 and 1 respectively.
[0065] The output is then passed through the Sigmoid activation function to obtain the final channel attention feature, and then multiplied element by element with the original feature map. This process can be expressed by the following formula:
[0066] F eca =F×σ(Conv 1D (AvgPool(F)))
[0067] AvgPool is the global average pooling, which compresses the spatial dimension of the feature map F and only retains the channel information; Conv 1D is a one-dimensional convolution, which is used to capture the dependencies between channels; σ is the Sigmoid activation function, which is used to generate channel attention weights.
[0068] Next, the feature map with a dimension of H×W×C output by the efficient channel attention module continues to serve as the input of the spatial attention of CBAM. It first performs maximum pooling and average pooling operations on the feature map in the channel dimension to obtain two H×W×1 feature maps, and then performs a Concat operation on these two feature maps in the channel dimension. Next, a convolution operation with a convolution kernel size of 7×7 is performed to reduce the channel dimension and learn the importance of different spatial positions. After that, the Sigmoid function is used to generate spatial attention features, and this feature is then multiplied element by element with the feature map output by ECA to obtain the final feature map that combines channel and spatial attention. This process can be expressed by the following formula:
[0069] F spatial =σ(Conv 2D (Concat(AvgPool(F eca ),MaxPool(F eca ))))×F eca
[0070] Among them, AvgPool(F eca ) and MaxPool(F eca ) represent the feature map F after ECA adjustment eca Perform average pooling and maximum pooling; Concat means concatenating the two pooling results along the channel dimension; Conv 2D is a two-dimensional convolution operation used to learn the importance of different spatial positions; σ is a Sigmoid activation function used to generate spatial attention weights.
[0071] (2) Adaptive Lane Geometry Aggregator (ALGA)
[0072] In order to reasonably utilize the special shape prior of lane lines, avoid the traditional convolution kernel from sampling features in a fixed area, and cannot effectively handle situations such as slender lane lines, while enhancing the correlation of lane anchor points in the image, an adaptive lane geometry aggregator is proposed to perceive the shape characteristics of lane lines. The offset between an anchor point and its surrounding anchor points and the tempering factor of each offset are predicted, and deformable convolution is used to combine these offsets and tempering factors for feature integration to aggregate the context information of the anchor points.
[0073] The adaptive lane geometry aggregator proposed in this invention is as follows: Figure 3 As shown in the figure, taking a specific lane anchor point as an example, we first use the convolutional layer to predict the offset between it and the K anchor points on the same lane around it and the corresponding conditioning factor of each offset. This conditioning factor enables the model to adaptively adjust the contribution of each anchor point, as shown in the following formula:
[0074]
[0075] Among them, p i represents the coordinates of the i-th anchor point, represents the feature representation of the i-th anchor point, φ represents the offset convolution layer, which is used to learn and extract the predicted offset from the feature map, ψ represents the tempering factor convolution layer, which is used to learn and extract the tempering factor of each offset from the feature map, represents the predicted offset set, Indicates the offset of the mth offset, represents the set of tempering factors for the predicted offset, represents the tempering factor of the mth offset;
[0076] Next, the features adjacent to the anchor points are integrated by using deformable convolution to combine the predicted offsets and the tempering factor corresponding to each offset to aggregate the contextual information of the i-th anchor point, as shown below:
[0077]
[0078] Among them, w m ,m=1,…,M is the weight of convolution;
[0079] After the feature aggregation of the deformable convolution, the model can obtain enough local information in the image and can use the special shape prior of the lane line to model the lane line shape well. Then continue to apply spatial attention to the feature map (the spatial attention used here is the same as that used in the global feature aggregator), further integrate and simplify the obtained local features, so that the model can use the global information of the image position and fully integrate the local and global information in the image, so as to effectively handle the situation where the lane line is missing or blocked.
[0080] Implementation Examples
[0081] In order to evaluate the performance of the lane detection model in complex scenes, the present invention is verified on the CULane dataset and the TuSimple dataset. CULane is a challenging large-scale dataset for lane detection. The dataset contains 133,235 images, divided into three subsets: training set, validation set and test set. All images are formatted with a pixel size of 1640×590. The test set is divided into nine groups, eight of which are considered to be challenging situations, such as night, strong light, curves, etc. Tusimple is a widely used lane detection benchmark. It only contains highway scenes, and most of the images are in clear weather conditions, of which 3626 are used for training, 358 are used for validation, and 2782 are used for testing. All are 1280×720 pixel size.
[0082] Our new invention is compared with several recently published algorithms, and the effects of various modules are explored on the CULane dataset, among which CLRNet is the algorithm that currently achieves the most advanced performance.
[0083] Regarding the evaluation metrics, for the CULane dataset, we use F1-Score as the evaluation metric. We use a segmentation mask with a width of 30 pixels to calculate the intersection over union (IoU) matrix for each prediction-true value (GT) pair. First, we filter out the predictions whose confidence exceeds a predefined threshold, and then segment the predictions whose IoU values are greater than the threshold t. IoU The prediction-ground truth (GT) pairs of t are called true positives (TP), while the unmatched predictions and GTs are called false positives (FP) and false negatives (FN), respectively. For IoU calculation, we consider t IoU The value is 0.5. The F1 score is calculated as follows:
[0084]
[0085] For the Tusimple dataset, the official evaluation indicators include accuracy, false positive rate (FPR), and false negative rate (FNR). The calculation formula for accuracy is:
[0086]
[0087] Among them, C clip , S clip are the pixels predicted correctly and the pixels of GroundTruth respectively. If more than 85% of the predicted lane points are within 20 pixels of the ground truth points, the predicted lane is the correct predicted lane. The Tusimple dataset also reports the false positive rate (FPR) and false negative rate (FNR), where
[0088] 1. Experimental details
[0089] The experimental environment of this invention is the Ubuntu 20.04.3LTS operating system, and the NVIDIA GEFORCE RTX3090 graphics card is used for calculation. The video memory is 24GB, the RAM is 128GB, and the CPU processor is Intel(R)Xeon(R)Silver4210CPU@2.20GHz. All models in this article are based on the python 3.8 operating environment, the Pytorch 1.8.0 deep learning framework, and CUDA 11.1.
[0090] 2. Qualitative comparison
[0091] In order to qualitatively compare the difference between the model of the present invention and the benchmark model, the lane line prediction results of the model of the present invention and the benchmark model are visualized in the same scene. Figure 4 As shown in the figure, the first row represents the Ground Truth, the second row represents the visualization of the CLRNet detection results, and the third row represents the visualization of the detection results of the model of the present invention. Each column represents complex scenes such as night, no lane lines, strong light, lane line occlusion and missing, and curves.
[0092] from Figure 4 It can be intuitively felt that compared with the baseline model, the model of the present invention has stronger performance stability for complex scenes such as curves, strong light, lane line occlusion and missing. In such scenes, the model of the present invention can detect complete lane lines, while the baseline model can only detect half of the lane line data or even no lane lines at all.
[0093] 3. Quantitative comparison
[0094] Tables 1 and 2 show the evaluation results of the models on the TuSimple dataset and CULane dataset, respectively. TuSimple is a small dataset with clear weather and highway scenes and relatively easy evaluation metrics, and most methods perform well on this dataset. Therefore, we mainly focus on CULane, a large dataset, where there are still quite obvious differences between various methods.
[0095] Table 1 Quantitative comparison of models on the TuSimple dataset
[0096]
[0097] Note: The bold font is the best result, and the underlined font is the second best result.
[0098] Table 2 Quantitative comparison of models on the CULane dataset
[0099]
[0100]
[0101] Note: The bold font is the best result, and the underlined font is the second best result.
[0102] As shown in Table 2, the ResNet18 version of the model of the present invention achieved an F1@50 index of 79.87%, which is even higher than the baseline model (ResNet34). Among them, our model has an F1 score of more than 2% and more than 1% higher than the baseline model in the case of strong light (HLight) and shadow (Shadow), respectively. For the case without lane lines, we have improved the F1 score by nearly 1% compared with the baseline model, and the F1 score in the curved scene has been improved by nearly 3%, which shows that our model can better adapt to complex road scenes, especially curved scenes. Compared with the previous advanced lane line detection model, our model has an advantage in performance stability in complex scenes.
[0103] At the same time, in order to verify the effectiveness of the module proposed in this invention, we conducted an ablation experiment on the CULane dataset, and the results are shown in Table 3. The first row shows the experimental results of the baseline model. The second row shows the results of adding the global feature optimizer (GFO) to the baseline model. The last row shows the results of adding the global feature optimizer (GFO) and the adaptive lane geometry aggregator (ALGA).
[0104] Table 3 Model ablation experimental results on the CULane dataset
[0105] Baseline GFO ALGA F1 √ 79.58 √ √ 79.62 √ √ √ 79.87
[0106] From Table 3, we can see that after adding the global feature optimizer (GFO), the model can more easily pay attention to the lane line area in the image, thereby improving the final detection results. When the global feature optimizer (GFO) and the adaptive lane geometry aggregator (ALGA) are added at the same time, the model can not only pay attention to the key areas of the image, but also use the special shape prior of the lane line to fully integrate local and global information, and finally improve the detection performance of the model.
[0107] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.
Claims
1. A lane detection method based on global feature optimization and shape feature perception aggregation, characterized in that: A lane detection model is proposed that integrates two core components: the global feature optimizer GFO and the adaptive lane geometry aggregator ALGA. The global feature optimizer GFO enables the model to fully integrate the local and global features in the image. At the same time, the adaptive lane geometry aggregator ALGA is used to effectively utilize the shape prior information of the lane line, thereby realizing lane detection.
2. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 1, characterized in that: The steps include: Preprocess the input lane line image; Extract features at different levels through the backbone network; The extracted features are processed under the operation of the global feature optimizer GFO; The adaptive lane geometry aggregator ALGA uses the special shape prior information of lane lines to enhance the relevance of lane anchor points in the image; The extracted features are refined layer by layer from coarse to fine through the neck network to optimize the extracted features and always maintain high-level semantic information throughout the process; The optimized features are subjected to operations including pooling, convolution, and fully connected layers, and finally sent to the regression branch and classification branch for feature aggregation and visualization to obtain the final lane line prediction image.
3. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2, characterized in that: The method of preprocessing the input lane line image is: cropping the lane line image to a size of 320×800.
4. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2, characterized in that: The backbone network is ResNet-18.
5. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2, characterized in that: The neck network is a feature pyramid.
6. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2, characterized in that: The global feature optimizer GFO, by combining the efficient channel attention of ECA and the spatial attention of CBAM, can more finely adjust the network's attention to different channels and spatial areas, so that the model can better handle complex and changing road environments. At the same time, since the one-dimensional convolution of ECA is lighter than the fully connected layer of CBAM, it can effectively improve the speed of the model. For lane detection systems that require real-time processing, the global feature optimizer can provide fast and accurate performance.
7. A lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2 or 6, characterized in that: The global feature optimizer GFO is specifically implemented as follows: For an input feature map with a dimension size of H×W×C, where H represents the height of the input feature map, W represents the width of the input feature map, and C represents the number of channels of the input feature map, the first step is to enter the efficient channel attention processing of ECA, which first performs a global feature pooling operation on the input feature map to obtain a 1×1×C output. Next, a one-dimensional convolution operation is performed on this output to capture the dependency information between channels. The size of the convolution kernel is adaptively adjusted according to the number of channels of the input feature map, as shown in the following formula: where |t| odd represents the nearest odd integer to t, setting γ and b to constants; The output is passed through the Sigmoid activation function to obtain the final channel attention feature, and then multiplied element by element with the original feature map. This process is expressed by the following formula: F eca =F×σ(Conv 1D (AvgPool(F))) AvgPool is the global average pooling, which compresses the spatial dimension of the feature map F and only retains the channel information; Conv 1D is a one-dimensional convolution, used to capture the dependencies between channels; σ is the Sigmoid activation function, used to generate channel attention weights; Next, the feature map with a dimension of H×W×C output by ECA continues to be used as the input of CBAM's spatial attention. It first performs maximum pooling and average pooling operations on the feature map in the channel dimension to obtain two H×W×1 feature maps, and then performs a Concat operation on the two feature maps in the channel dimension. Next, a convolution operation with a convolution kernel size of 7×7 is performed to reduce the channel dimension and learn the importance of different spatial positions. After that, the Sigmoid function is used to generate spatial attention features, and this feature is then multiplied element by element with the feature map output by ECA to obtain the final feature map that combines channel and spatial attention. This process is expressed by the following formula: F spatial =σ(Conv 2D (Concat(AvgPool(F eca ),MaxPool(F eca ))))×F eca Among them, AvgPool(F eca ) and MaxPool(F eca ) represent the feature map F after ECA adjustment eca Perform average pooling and maximum pooling; Concat means concatenating the two pooling results along the channel dimension; Conv 2D is a two-dimensional convolution operation used to learn the importance of different spatial positions; σ is a Sigmoid activation function used to generate spatial attention weights.
8. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 7, characterized in that: γ and b are set to 2 and 1 respectively.
9. The lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2, characterized in that: The adaptive lane geometry aggregator ALGA is used to perceive the shape characteristics of the lane line, predict the offset between the anchor point and its surrounding anchor points and the tempering factor of each offset, and use deformable convolution to combine these offsets and tempering factors for feature integration to aggregate the contextual information of the anchor point.
10. A lane line detection method based on global feature optimization and shape feature perception aggregation according to claim 2 or 9, characterized in that: The adaptive lane geometry aggregator ALGA is specifically implemented as follows: For a lane anchor point, a convolutional layer is first used to predict the offset between it and the K anchor points on the same lane around it and the corresponding conditioning factor of each offset. This conditioning factor enables the model to adaptively adjust the contribution of each anchor point, as shown in the following formula: Among them, p i represents the coordinates of the i-th anchor point, represents the feature representation of the i-th anchor point, φ represents the offset convolution layer, which is used to learn and extract the predicted offset from the feature map, ψ represents the tempering factor convolution layer, which is used to learn and extract the tempering factor of each offset from the feature map, represents the predicted offset set, Indicates the offset of the mth offset, represents the set of tempering factors for the predicted offset, represents the tempering factor of the mth offset; Next, the features adjacent to the anchor points are integrated by using deformable convolution to combine the predicted offsets and the tempering factor corresponding to each offset to aggregate the contextual information of the i-th anchor point, as shown below: Among them, w m ,m=1,…,M is the weight of convolution; After feature aggregation by deformable convolution, spatial attention is continued to be applied to the feature map to effectively handle the situation where lane lines are missing or occluded, and the final lane line prediction image is obtained.
Citation Information
Patent Citations
Lane line detection method based on Transform encoder and cavity convolution
CN115546750A
Accurate lane line detection method for enhancing curve perception
CN116129390A
Traffic marking detection method and device, electronic equipment and storage medium
CN116434176A
Camera initialization for lane detection and distance estimation using single-view geometry
US20230106961A1
Lane line detection method combined with image enhancement and deep convolutional neural network
WO2023273375A1
