Ultra Fast Deep Lane Detection with Hybrid Anchor Driven Ordinal Classification

Zequn Qin, Pengyi Zhang, Xi Li · DOI

Abstract

Modern methods mainly regard lane detection as a problem of pixel-wise segmentation, which is struggling to address the problems of efficiency and challenging scenarios like severe occlusions and extreme lighting conditions. Inspired by human perception, the recognition of lanes under severe occlusions and extreme lighting conditions is mainly based on contextual and global information. Motivated by this observation, we propose a novel, simple, yet effective formulation aiming at ultra fast speed and the problem of challenging scenarios. Specifically, we treat the process of lane detection as an anchor-driven ordinal classification problem using global features. First, we represent lanes with sparse coordinates on a series of hybrid (row and column) anchors. With the help of the anchor-driven representation, we then reformulate the lane detection task as an ordinal classification problem to get the coordinates of lanes. Our method could significantly reduce the computational cost with the anchor-driven representation. Using the large receptive field property of the ordinal classification formulation, we could also handle challenging scenarios. Extensive experiments on four lane detection datasets show that our method could achieve state-of-the-art performance in terms of both speed and accuracy. A lightweight version could even achieve 300+ frames per second(FPS).

The Challenge of Real-Time Lane Detection

Most modern lane detection systems treat the task as a pixel-wise segmentation problem. While effective, this approach has two major flaws. First, classifying every single pixel is computationally expensive, making it difficult to run on the constrained hardware found in most vehicles. Second, segmentation relies heavily on local visual features. When lanes are occluded by cars or obscured by extreme glare or darkness, local methods fail. Humans, however, can "infer" where a lane should be by looking at global context—like the curve of the road or the flow of traffic.

Lane detection performance in challenging scenarios including night and heavy occlusion.

Hybrid Anchor-Driven Ordinal Classification

To address these issues, the authors propose a "top-down" formulation consisting of three key innovations. The most significant is the Hybrid Anchor System. Previous attempts at anchor-based detection used fixed horizontal rows. However, if a lane is nearly parallel to an anchor (like a horizontal side lane crossing a row anchor), a tiny prediction error results in a massive spatial error. To fix this, the authors use row anchors for vertical-ish (ego) lanes and column anchors for horizontal-ish (side) lanes.

Lane definitions and accuracy comparisons between row and column anchors for different lane types.

Instead of using regression or standard classification, the model treats lane positions as ordered classes. Because the classes are spatially ordered, they can use a "mathematical expectation" (mean voting) to get continuous, sub-pixel coordinates rather than a simple argmax. This acts as a form of internal ensemble, making the localization much smoother and more robust than standard regression.

Global Context and Efficiency

Unlike segmentation models that use local pooling, this model flattens the entire global feature map from the backbone (like ResNet) and feeds it into a Multi-Layer Perceptron (MLP). This ensures the "receptive field" is the entire image, allowing the network to use distant clues to predict occluded lanes. The authors found that using Global Average Pooling (GAP)—a standard technique in image classification—actually hurt performance because it destroyed the spatial relationships needed for lane detection.

Key Results

The resulting system is exceptionally efficient. The lightweight version (ResNet-18) achieves 300+ FPS on a modern GPU, making it one of the fastest high-performance lane detectors available. Compared to the classic SCNN (Spatial CNN) segmentation model, this method is roughly 41.7x faster while maintaining superior accuracy in challenging scenarios. On the CULane dataset, the method (UFLDv2) outperformed the original version by 6.3 points in F1-measure at the same speed.

Conclusion

By moving beyond pixel-wise segmentation to a hybrid anchor-driven ordinal classification framework, this method achieves a state-of-the-art balance of speed and robustness. While the current handcrafted anchors are highly effective, future research into automatic or dynamic anchor placement could further enhance performance on even more diverse road geometries.

Summary updated

BibTeX
@article{qin2022ultra,
  author = {Zequn Qin and Pengyi Zhang and Xi Li},
  title = {{Ultra Fast Deep Lane Detection with Hybrid Anchor Driven Ordinal Classification}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2022.3182097},
}
Figure