Preprint
Article

This version is not peer-reviewed.

A Task-Dependent Comparison of U-Net, DeepLabv3 and BiSeNet for Semantic Segmentation, Drivable Area Detection and Lane Detection for Autonomous Driving

Submitted:

24 November 2026

Posted:

25 November 2026

You are already at the latest version

Abstract
Camera-based perception for automated driving is usually built from several dense prediction tasks that differ strongly in the geometry of the target: large, contiguous regions such as the drivable road surface, many object classes of very different sizes, and thin, elongated structures such as lane markings. Most comparative studies of segmentation networks, however, evaluate architectures on a single task, implicitly assuming that the ranking transfers. This paper presents a controlled, task-by-task comparison of three representative convolutional architectures—the encoder–decoder U-Net, the context-oriented DeepLabv3 with Atrous Spatial Pyramid Pooling, and the real-time two-branch BiSeNet—on three perception tasks of increasing geometric difficulty built from the large and diverse BDD100K driving dataset: 19-class semantic segmentation, three-class drivable area detection (background, direct and alternative drivable area) and binary lane detection. All networks were implemented in PyTorch; U-Net and a hybrid BiSeNet (ImageNet-pretrained ResNet-18 context path with a from-scratch spatial path, attention refinement and feature fusion modules) were built from their constituent blocks. For lane detection, pixel-level ground truth was generated from the dataset’s vector (polyline) annotations, and the severe class imbalance was addressed with a Dice loss. The results show that the best architecture depends on the task: DeepLabv3 achieved the highest mIoU in 19-class segmentation (43.17%), BiSeNet the highest in drivable area detection (90.24% mIoU; 83.5% IoU on the hardest, alternative-lane class) while also being the fastest to train, and U-Net the highest Lane IoU (62.53%). We relate each outcome to the inductive bias of the corresponding architecture and discuss the implications for selecting models for multi-task, resource-constrained perception stacks.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Driver error is cited as the critical reason in the vast majority of road crashes [1], which is one of the main motivations for driver-assistance and automated driving systems. As vehicles move up the SAE levels of driving automation [2], responsibility for monitoring the driving environment shifts from the human to the machine, and the reliability of the perception subsystem becomes a primary safety concern [3,4]. Among the available sensing modalities, cameras are inexpensive and information-rich, and deep convolutional neural networks (CNNs) have made vision-based environment perception practical [4,5].
Semantic segmentation—assigning a class label to every pixel of an image—is the most fine-grained form of 2D scene understanding and underpins several driving functions [6,7]. In practice, however, a perception stack has to solve several segmentation problems whose targets have very different geometry. Full scene parsing must separate many classes of very different size and frequency; drivable area detection must delineate large, contiguous road regions and, in addition, reason about traffic rules (which part of the road the ego-vehicle may occupy now and which it may only enter after yielding); lane detection must recover thin, elongated markings that occupy only a few percent of the image and are frequently worn, shadowed or occluded [8,9].
Three architectural families embody different answers to the central tension of dense prediction—preserving spatial detail while aggregating global context. Encoder–decoder networks such as U-Net [10] recover resolution through a symmetric decoder with skip connections; the DeepLab family [11,12] preserves resolution with atrous (dilated) convolutions and aggregates multi-scale context with Atrous Spatial Pyramid Pooling (ASPP); and real-time two-branch designs such as BiSeNet [13,14] decouple a shallow, high-resolution spatial path from a fast, heavily down-sampled context path. Published comparisons of these models are, however, almost always carried out on a single benchmark, most often Cityscapes scene parsing [15]. Whether the same ranking would hold for the other perception tasks a vehicle has to solve is usually not examined.
In this paper we address this question with a task-by-task comparison of U-Net, DeepLabv3 and BiSeNet on three tasks of increasing geometric difficulty derived from BDD100K [16], a large driving dataset with wide variation in weather, time of day and road type. Our work contributes the following:
We compare three representative architectures on three different tasks (19-class semantic segmentation, three-class drivable area detection and binary lane detection) and report pixel accuracy, mIoU, per-class IoU, precision, recall and F1-score for each of them.
PyTorch implementations in which U-Net and a hybrid BiSeNet—an ImageNet-pretrained ResNet-18 context path combined with a spatial path, Attention Refinement Modules (ARMs) and a Feature Fusion Module (FFM) built from scratch—are assembled from their constituent blocks rather than used as black boxes.
A three-class formulation of drivable area detection that keeps the distinction between direct and alternative drivable areas instead of collapsing it to a binary road mask.
A lane-detection pipeline that converts the vector (polyline) lane annotations of BDD100K into pixel-wise masks and replaces cross-entropy with a Dice loss to cope with extreme class imbalance, together with a classical Canny/Hough baseline that illustrates the failure modes deep models overcome.
Evidence that the best architecture is task-dependent, with an analysis that links each outcome to the inductive bias of the corresponding architecture and to its training cost.
The remainder of the paper is organised as follows. Section 2 reviews related work. Section 3 describes the dataset, preprocessing, architectures, training protocols and metrics. Section 4 reports the results for each task, Section 5 discusses them jointly together with the limitations of the study, and Section 6 concludes.

3. Methodology

3.1. Dataset

All experiments use BDD100K [16], recorded with dashboard cameras in several US regions and covering urban, suburban and highway scenes, multiple weather conditions (clear, overcast, rain, snow) and different times of day (daytime, dusk, night). The images have a resolution of 1280 × 720 pixels. We used three of the label sets of the dataset:
  • Semantic segmentation: 19 classes defined as in Cityscapes [15], among them road, sidewalk, building, vegetation, sky, person, car, traffic sign and traffic light. Pixels that are unlabelled or lie on ambiguous boundaries carry the value 255 and are ignored.
  • Drivable area: background, direct drivable area and alternative drivable area.
  • Lane markings: poly2d polylines stored in JSON files, which we converted to binary masks (Section 3.3).
In all three tasks we kept the official splits of the BDD100K 10K subset:
  • Training set: 7,000 images
  • Validation set: 1,000 images
  • Test set: 2,000 images
All metrics in this paper (mIoU, Lane IoU, pixel accuracy and the others) were computed on the validation split, i.e., on 1,000 images that the models never saw during training.

3.2. Preprocessing and Augmentation

Before resizing, we removed the top 35% of each frame in all three tasks, which is dominated by sky and distant background that carries little information for road-level perception, so cropping concentrates the model capacity and the limited GPU memory on the road and on the dynamic objects that interact with it. Images and masks were then resized to the task- and model-specific resolutions listed in Table 1 and Table 2; masks were resized with nearest-neighbour interpolation so that label values are preserved. For drivable area and lane detection tasks a wide aspect ratio (640 × 360) was kept, rather than a square input, to preserve the horizontal resolution needed to delineate adjacent lanes near the image borders.
Images were standardised channel-wise using the ImageNet statistics (mean = [0.485, 0.456, 0.406], std = [0.229, 0.224, 0.225]) [31], i.e.,
x ′ = x − μ σ
so that inputs follow the distribution on which the pretrained backbones were trained. Training-time augmentation consisted of random horizontal flipping (p = 0.5), implemented with Albumentations [32], and, for semantic segmentation, random colour jitter (brightness, contrast, saturation).

3.3. Lane Ground-Truth Generation

Unlike the other two tasks, BDD100K does not provide pixel-wise lane masks. A conversion script based on OpenCV was therefore written. For every image, the corresponding JSON annotation is parsed and all objects whose category starts with the prefix “lane” are selected; the vertices of each poly2d polyline give its (x, y) coordinates at the original 1280 × 720 resolution. An all-zero canvas of the same size is created and each polyline is rasterised with cv2.polylines using a line thickness of 8 pixels, a value chosen so that each marking contains enough positive pixels for training. The resulting masks are stored as single-channel PNG images with value 255 for lane and 0 for background (Figure 1). In a typical frame, lane pixels account for less than 2–3% of the image area.

3.4. Architectures

3.4.1. U-Net

U-Net [10] was implemented from scratch for the semantic segmentation task. The contracting path consists of four DoubleConv blocks (two 3 × 3 convolutions, each followed by batch normalisation [33] and ReLU) with 64, 128, 256 and 512 channels, each followed by 2 × 2 max pooling, and a bottleneck DoubleConv with 1024 channels. The expanding path uses learnable 2 × 2 transposed convolutions—instead of fixed bilinear interpolation—to double the spatial resolution while halving the channels; the result is concatenated with the encoder feature map at the same scale (skip connection) and refined by a DoubleConv block. A final 1 × 1 convolution maps the 64 output channels to the class scores. The skip connections combine the “what” (semantic information from deep layers) with the “where” (spatial detail from shallow layers), which is the property most relevant to the results below. For drivable area and lane detection, the U-Net architecture utilized a ResNet-34 [18] encoder, initialized with ImageNet pre-trained weights. Unlike the 19-class semantic segmentation task (which was implemented from scratch), this specific architecture was implemented using the segmentation_models_pytorch library. We used the library implementation here simply because it provides a ready ImageNet-pretrained ResNet-34 encoder, which we wanted for these two tasks.

3.4.2. DeepLabv3

In DeepLabv3 [11], the last stages of the backbone do not reduce the resolution with strided convolutions; atrous convolutions are used there instead, so the feature maps remain large. For a one-dimensional signal x and a filter w of length K, the atrous convolution with rate r is
y i = ∑ k = 1 K x i + r · k   w k
so that r = 1 recovers standard convolution and larger rates enlarge the receptive field without adding parameters or reducing resolution. The ASPP module applies, in parallel on the backbone output, a 1 × 1 convolution, three 3 × 3 atrous convolutions (r = 6, 12, 18) and an image-level global-average-pooling branch; their outputs are concatenated, fused by a 1 × 1 convolution and up-sampled bilinearly to the input size. We used the torchvision [34] implementation with an ImageNet-pretrained ResNet-50 backbone for semantic segmentation and fine-tuned it by replacing the last 1 × 1 convolution of the classification head with a new, randomly initialised layer producing 19 output channels. For lane detection, a ResNet-34 backbone was used (Table 2).

3.4.3. Hybrid BiSeNet

BiSeNet [13] was implemented following a hybrid strategy that combines transfer learning with modules written from scratch (Figure 2). The context path uses the stem and the four residual stages of an ImageNet-pretrained ResNet-18 [18], reaching 1/32 of the input resolution and a large receptive field at low cost. The spatial path consists of three ConvBNReLU blocks with stride 2 (7 × 7/64, 3 × 3/64 and 3 × 3/128 channels) and outputs a 128-channel map at 1/8 resolution that preserves object boundaries.
Attention Refinement Modules are applied to the outputs of stages 3 (1/16) and 4 (1/32). Each ARM applies a 3 × 3 ConvBNReLU, computes a channel-attention vector with adaptive average pooling, a 1 × 1 convolution and a sigmoid, and rescales the features with it. A global-context vector (global average pooling of stage 4 followed by a 1 × 1 convolution and ReLU) is added to the ARM-32 output, which is then up-sampled by a factor of 2 and added to the ARM-16 output; the sum is up-sampled to 1/8 resolution and projected to 128 channels by two ConvBNReLU blocks. The Feature Fusion Module concatenates the spatial and context features, applies a 1 × 1 ConvBNReLU (256 channels) to obtain X and computes the channel weights
w = σ ( W 2   δ ( W 1   GAP ( X ) ) )
where GAP denotes global average pooling, W1 and W2 are 1 × 1 convolutions with a channel reduction ratio of 4, δ is ReLU and σ the sigmoid function, in the spirit of squeeze-and-excitation [22]. The fused output is X + w ⊗ X, i.e., attention is applied as a residual re-weighting. A 1 × 1 classifier and bilinear up-sampling (×8, followed by an exact resize to the input size) produce the final prediction.

3.5. Training Protocols

All models were implemented in PyTorch [35] and trained on a single NVIDIA GeForce RTX 3080 GPU (Ampere architecture, 8704 CUDA cores, 272 third-generation Tensor Cores). In every epoch the model was trained on the training set by back-propagation and then evaluated on a held-out validation set; for semantic segmentation the weights were checkpointed whenever a new best validation mIoU was obtained, so that the reported model is the one with the best generalisation.
Semantic segmentation. All three models were trained with categorical cross-entropy ignoring label 255. The configurations, which differ between models because of GPU-memory constraints and the needs of each architecture, are summarised in Table 1. U-Net, trained from scratch, used Adam [36]; DeepLabv3 and BiSeNet, which start from pretrained backbones, used SGD [37] with momentum 0.9 and weight decay (L2 regularisation) of 10−4. A ReduceLROnPlateau scheduler monitored the validation loss and reduced the learning rate after 3 epochs without improvement (factor 0.5 for U-Net, 0.1 for DeepLabv3 and BiSeNet).
Drivable area detection. The three models were trained end-to-end with an identical configuration (Table 2): input 640 × 360, batch size 8, cross-entropy loss, Adam with learning rate 10−4 and 10 epochs, with encoders initialised from ImageNet weights. We deliberately trained a single network on the whole dataset rather than adopting multi-stage designs that first classify the scene condition (e.g., “night, city”) and then route the image to a specialised sub-network, since such cascades multiply the number of parameters and training runs and add latency at inference time.
Lane detection. Because a model predicting background everywhere would already reach about 97% pixel accuracy, cross-entropy was replaced by the Dice loss [29], which directly optimises the overlap between prediction P and ground truth G for the lane class:
L Dice   =   1   −   2   | P   ∩   G | | P |   +   | G |
All three models were trained for 25 epochs with otherwise unchanged settings (Table 2); the backbones were ResNet-34 for U-Net and DeepLabv3 and ResNet-18 for BiSeNet.

3.6. Classical Lane-Detection Baseline

To illustrate the limitations of hand-crafted pipelines, a classical detector was also implemented: conversion to grayscale, Gaussian smoothing, Canny edge detection [25], a fixed trapezoidal region of interest covering the lower central part of the image, and the probabilistic Hough transform [26] (HoughLinesP) to extract line segments. It was used for qualitative comparison only.

3.7. Evaluation Metrics

Metrics are computed from the pixel-level confusion matrix with true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN). Pixel accuracy, precision, recall and F1-score are
Acc = TP + TN TP + TN + FP + FN ,   P = TP TP + FP ,   R = TP TP + FN ,   F 1 = 2 PR P + R
and the Intersection over Union for class c and its mean over C classes are
IoU c = TP c TP c + FP c + FN c ,   mIoU = 1 C ∑ c = 1 C IoU c
Pixel accuracy is reported for completeness but is dominated by large classes (road, sky, background) and is misleading under class imbalance; mIoU, which penalises both false positives and false negatives, is used as the primary metric. For multi-class tasks, precision, recall and F1 are macro-averaged over classes. The metrics are first computed independently for each valid class, and their unweighted mean is then reported, ensuring that smaller classes contribute equally to the final score. For lane detection, the IoU of the lane class (Lane IoU) is reported.

4. Results

4.1. 19-Class Semantic Segmentation

Table 3 summarises the quantitative results. All models obtain a pixel accuracy of 88–90%, but, as expected for a 19-class problem dominated by road, building, vegetation and sky, this metric hides large differences on the less frequent classes and is therefore not used for ranking.
DeepLabv3 obtained the highest mIoU (43.17%) and, by a clear margin, the highest precision (67.12%), i.e., when it assigns a pixel to a class it is most often correct and produces the fewest false positives. We attribute this to ASPP, which analyses each region at several scales while keeping the resolution of the feature maps. U-Net achieved the highest recall (56.01%) and F1-score (50.36%), with an mIoU only 0.28 percentage points lower than DeepLabv3: its skip connections transfer high-resolution encoder features to the decoder, which helps recover thin and small structures but also produces more false alarms, hence its lower precision. BiSeNet trailed by 3.4–3.7 points in mIoU (39.47%) and obtained an F1 of 46.36%, a gap consistent with its design goal of trading a small amount of spatial accuracy for speed.
Looking at the predictions in Figure 3, all three models get the overall layout of the scene right, and the large classes (road, vehicles, buildings, sky) are segmented well. U-Net preserves the edges of small objects such as traffic lights and signs better but shows more holes inside large objects and is more sensitive to noise; in a night-time example it produces discontinuities in the road segment, whereas DeepLabv3 and BiSeNet remain consistent. DeepLabv3 is robust to noise, although its masks are slightly rounded at object boundaries. BiSeNet produces smooth and compact masks for large objects but misses thin details such as poles and traffic lights.

4.2. Drivable Area Detection

Table 4 reports the results after 10 epochs and Figure 4 presents the evolution of loss, mIoU and the IoU of the alternative class. All three networks converge quickly and smoothly: the loss of U-Net halves between the first and second epoch (0.369 to 0.162), while DeepLabv3 and BiSeNet start from a markedly lower loss (0.254 and 0.233) and higher mIoU (63.8% and 62.3% versus 59.0%), which we attribute to the large receptive field provided by atrous convolution and by the context path, respectively, allowing large road surfaces to be recognised early in training.
Contrary to the scene-parsing task, BiSeNet outperformed both alternatives on every metric, reaching 90.24% mIoU (+1.78 points over DeepLabv3 and +2.32 over U-Net). The largest margin is observed on the alternative drivable area (83.5% vs. 79.6% and 78.9%), the most difficult class: it is less frequent, visually similar to the direct area, strongly distorted by perspective and often occluded by vehicles. For all models, the IoU of the alternative class remains lower than that of the direct class, which consistently exceeds 87%. DeepLabv3 is better than U-Net by 0.54 mIoU points but needed more time per training epoch. In the examples of Figure 5 its masks are a little too large and spill past the true boundary of the region. The BiSeNet masks were the cleanest of the three, with smooth outlines that stay close to the ground truth.

4.3. Lane Detection

On straight, well-painted markings in good weather the Canny/Hough pipeline gives reasonable results (Figure 6), but it breaks down easily. Its fixed region of interest assumes that the camera always sees the road from the same angle, which is no longer true on slopes or during a lane change. The Hough transform finds only straight segments, so sharp curves are missed. Shadows, reflections of the sun and street lighting at night also produce edges that the detector takes for lane markings.
The deep models were trained as binary segmenters with the Dice loss. Table 5 and Figure 7 show that all three improve steadily over 25 epochs. U-Net achieved the best Lane IoU (62.53%) and the lowest Dice loss (0.1187), its Lane IoU growing from 24.13% in the first epoch. DeepLabv3 reached 60.76% and BiSeNet 58.19%. In terms of training cost, BiSeNet was the fastest (≈35 s per epoch), U-Net intermediate (≈42 s) and DeepLabv3 the slowest (≈69 s, i.e., about 64% more than U-Net); Figure 8 visualises this accuracy–cost trade-off.
Absolute Lane IoU values around 60% should be interpreted in light of the geometry of the target. With a mask thickness of 8 pixels, a lateral offset of only 1–2 pixels—irrelevant for vehicle guidance—already removes a substantial fraction of the intersection, so IoU is far stricter for thin structures than for large regions, where values of 90% and above are common. Visually (Figure 9), U-Net delineates thin markings with high spatial precision and suppresses the background; DeepLabv3 also produces masks close to the ground truth and handles shadows well; BiSeNet reliably localises the lanes, including at night, but with less pixel-level precision along the markings.

5. Discussion

5.1. Task Geometry Determines the Ranking

Table 6 presents the main metric of each task. The best model is different in every task, and in each case it is the one whose design suits the shape of the objects to be segmented.
Scene parsing involves many classes at very different scales, and here multi-scale context pays off: with ASPP, DeepLabv3 can look at small objects and at large “stuff” classes at the same time, which gives it the best mIoU and precision. The drivable area, on the other hand, is a large connected region whose meaning depends on traffic rules. To label it correctly a model has to see a wide part of the scene and still keep enough resolution to place the boundaries. BiSeNet’s context path sees the whole road layout, which is needed to decide which part of the road is the ego lane and which is an alternative lane, while its spatial path supplies the boundary detail; the attention-based fusion appears to combine the two effectively, and the global context also makes the prediction robust to shadows and pavement defects. Thin, elongated structures (lane markings) are dominated by pixel-level localisation. Here the dense, multi-level skip connections of U-Net, which inject low-level edge information at every decoder stage, are more effective than ASPP, whose emphasis on wide context adds computation without a corresponding benefit for few-pixel-wide targets, and more effective than BiSeNet, which fuses spatial detail only once, at 1/8 resolution.

5.2. Accuracy versus Efficiency

BiSeNet was the cheapest model to train in every task. Its context path uses the light ResNet-18 and its spatial path is only three layers deep; as Table 7 shows, it needs about 24 GFLOPs per frame and is also the fastest at inference (136 FPS). This efficiency costs only a few IoU points in two tasks, and in drivable area detection BiSeNet is at the same time the most accurate model. DeepLabv3 took the longest to train because of its heavier backbone and the ASPP module, and U-Net needed a similar amount of GPU memory, since it keeps many high-resolution feature maps for its skip connections. Interestingly, the inference measure ments reveal that DeepLabv3 achieves higher frame rates than U-Net (99.46 vs. 91.31 FPS) despite requiring more than three times the GFLOPs (188.16 vs. 55.14). This is explained by the memory-bound nature of U-Net: the continuous transfer of high-resolution feature maps across its dense skip connections creates a memory bandwidth bottleneck. In contrast, DeepLabv3 is primarily compute-bound; it effectively leverages the GPU’s processing cores without being starved for data transfers, allowing for faster execution despite the heavier mathematical operations of the ASPP module. For deployment, these results suggest that a single architecture does not have to serve every head of a perception stack: a BiSeNet-style network is a good choice for the drivable area and as a general real-time default, while lane detection gains from a decoder with dense skip connections. This is consistent with the design of multi-task networks that combine a shared encoder with task-specific decoders [23,24].
The inference speed and GFLOPs presented in Table 7, were measured at an input resolution of 352×640 with a batch size of 1. All benchmarking tests were conducted using single-precision floating-point format (FP32) on an NVIDIA GeForce RTX 3080 GPU.

5.3. Limitations

Several limitations should be acknowledged. First, in the semantic segmentation task the three models were trained with different input resolutions, batch sizes, optimisers and initialisations, dictated by GPU memory and by the needs of each architecture; differences of a few tenths of a point (e.g., between U-Net and DeepLabv3) are therefore within the range that such factors, or random variation, could explain. Second, each configuration was trained once; repeated runs with different seeds would allow confidence intervals to be reported. Third, the drivable area models were trained for only 10 epochs and their curves had not fully saturated, so the absolute values—though not necessarily the ranking—may change with longer training. Fourth, inference speed was measured only on a desktop RTX 3080 and not on embedded automotive hardware. Finally, all experiments use a single dataset and a single, monocular camera.

6. Conclusions

We compared U-Net, DeepLabv3 and a hybrid BiSeNet on three camera-based perception tasks of increasing geometric difficulty using BDD100K. No architecture was best across the board. DeepLabv3 achieved the highest mIoU (43.17%) and precision in 19-class semantic segmentation; BiSeNet achieved the highest accuracy in three-class drivable area detection (90.24% mIoU, 83.5% IoU on the alternative drivable area) while being the fastest to train; and U-Net achieved the best Lane IoU (62.53%) on thin lane markings, for which replacing cross-entropy with a Dice loss was essential to cope with class imbalance. All deep models clearly overcome the brittleness of a classical Canny/Hough lane detector under curvature, shadows and night-time conditions. The results indicate that model, loss function and optimisation strategy should be matched to the geometry of each perception task rather than chosen once for the whole system.
Several research directions remain open: The use of an embedded hardware device, such as NVIDIA Jetson to test the models in a vehicle. Fusing the segmentation output with depth from LiDAR or radar would extend the system to 3D perception. Instance segmentation, for example with Mask R-CNN [38], would allow individual objects to be tracked and their trajectories predicted. Finally, unsupervised domain adaptation could make the models more robust in conditions such as dense fog or heavy snow without new manual labels.

Author Contributions

Conceptualization, F.B.V. and I.S.; methodology, F.B.V. and I.S; software, F.B.V.; validation, F.B.V., formal analysis, F.B.V.; investigation, F.B.V.; resources, I.S.; data curation, F.B.V.; writing—original draft preparation, F.B.V.; writing—review and editing, I.S.; visualization, F.B.V.; supervision, I.S.; project administration, I.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The BDD100K dataset is publicly available from its authors [16]. Code and trained models are available from the corresponding author upon reasonable request.

Acknowledgments

During the preparation of this work the authors used Claude (Anthropic) to assist in translating and preparing the English manuscript from the original Greek thesis. All experiments, data, results and their interpretation are entirely the work of the authors. After using the AI tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Singh, S. Critical Reasons for Crashes Investigated in the National Motor Vehicle Crash Causation Survey; Traffic Safety Facts Crash•Stats, Report No. DOT HS 812 115; National Highway Traffic Safety Administration: Washington, DC, USA, 2015.
  2. SAE International. Standard J3016_202104; Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-Road Motor Vehicles. SAE International: Warrendale, PA, USA, 2021.
  3. Koopman, P.; Wagner, M. Autonomous vehicle safety: An interdisciplinary challenge. IEEE Intell. Transp. Syst. Mag. 2017, 9, 90–96. [Google Scholar] [CrossRef]
  4. Grigorescu, S.; Trasnea, B.; Cocias, T.; Macesanu, G. A survey of deep learning techniques for autonomous driving. J. Field Robot. 2020, 37, 362–386. [Google Scholar] [CrossRef]
  5. Van Brummelen, J.; O’Brien, M.; Gruyer, D.; Najjaran, H. Autonomous vehicle perception: The technology of today and tomorrow. Transp. Res. Part C Emerg. Technol. 2018, 89, 384–406. [Google Scholar] [CrossRef]
  6. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 2015; pp. 3431–3440. [Google Scholar]
  7. Minaee, S.; Boykov, Y.; Porikli, F.; Plaza, A.; Kehtarnavaz, N.; Terzopoulos, D. Image segmentation using deep learning: A survey. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 3523–3542. [Google Scholar] [CrossRef] [PubMed]
  8. Pan, X.; Shi, J.; Luo, P.; Wang, X.; Tang, X. Spatial as deep: Spatial CNN for traffic scene understanding. In Proceedings of the AAAI Conference on Artificial Intelligence, New Orleans, LA, USA, 2018; pp. 7276–7283. [Google Scholar]
  9. Neven, D.; De Brabandere, B.; Georgoulis, S.; Proesmans, M.; Van Gool, L. Towards end-to-end lane detection: An instance segmentation approach. In Proceedings of the IEEE Intelligent Vehicles Symposium (IV), Changshu, China, 2018; pp. 286–291. [Google Scholar]
  10. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI 2015); LNCS 9351; Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar]
  11. Chen, L.-C.; Papandreou, G.; Schroff, F.; Adam, H. Rethinking atrous convolution for semantic image segmentation. arXiv 2017, arXiv:1706.05587. [Google Scholar]
  12. Chen, L.-C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder–decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 2018; pp. 801–818. [Google Scholar]
  13. Yu, C.; Wang, J.; Peng, C.; Gao, C.; Yu, G.; Sang, N. BiSeNet: Bilateral segmentation network for real-time semantic segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 2018; pp. 325–341. [Google Scholar]
  14. Yu, C.; Gao, C.; Wang, J.; Yu, G.; Shen, C.; Sang, N. BiSeNet V2: Bilateral network with guided aggregation for real-time semantic segmentation. Int. J. Comput. Vis. 2021, 129, 3051–3068. [Google Scholar] [CrossRef]
  15. Cordts, M.; Omran, M.; Ramos, S.; Rehfeld, T.; Enzweiler, M.; Benenson, R.; Franke, U.; Roth, S.; Schiele, B. The Cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016; pp. 3213–3223. [Google Scholar]
  16. Yu, F.; Chen, H.; Wang, X.; Xian, W.; Chen, Y.; Liu, F.; Madhavan, V.; Darrell, T. BDD100K: A diverse driving dataset for heterogeneous multitask learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020; pp. 2636–2645. [Google Scholar]
  17. Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid scene parsing network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 2017; pp. 2881–2890. [Google Scholar]
  18. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016; pp. 770–778. [Google Scholar]
  19. Paszke, A.; Chaurasia, A.; Kim, S.; Culurciello, E. ENet: A deep neural network architecture for real-time semantic segmentation. arXiv 2016, arXiv:1606.02147. [Google Scholar]
  20. Romera, E.; Álvarez, J.M.; Bergasa, L.M.; Arroyo, R. ERFNet: Efficient residual factorized ConvNet for real-time semantic segmentation. IEEE Trans. Intell. Transp. Syst. 2018, 19, 263–272. [Google Scholar] [CrossRef]
  21. Fan, M.; Lai, S.; Huang, J.; Wei, X.; Chai, Z.; Luo, J.; Wei, X. Rethinking BiSeNet for real-time semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021; pp. 9716–9725. [Google Scholar]
  22. Hu, J.; Shen, L.; Sun, G. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 2018; pp. 7132–7141. [Google Scholar]
  23. Wu, D.; Liao, M.-W.; Zhang, W.-T.; Wang, X.-G.; Bai, X.; Cheng, W.-Q.; Liu, W.-Y. YOLOP: You only look once for panoptic driving perception. Mach. Intell. Res. 2022, 19, 550–562. [Google Scholar] [CrossRef]
  24. Vu, D.; Ngo, B.; Phan, H. HybridNets: End-to-end perception network. arXiv 2022, arXiv:2203.09035. [Google Scholar]
  25. Canny, J. A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, PAMI-8, 679–698. [Google Scholar] [CrossRef]
  26. Duda, R.O.; Hart, P.E. Use of the Hough transformation to detect lines and curves in pictures. Commun. ACM 1972, 15, 11–15. [Google Scholar] [CrossRef]
  27. Hou, Y.; Ma, Z.; Liu, C.; Loy, C.C. Learning lightweight lane detection CNNs by self attention distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Korea, 2019; pp. 1013–1021. [Google Scholar]
  28. Qin, Z.; Wang, H.; Li, X. Ultra fast structure-aware deep lane detection. In Proceedings of the European Conference on Computer Vision (ECCV), 2020; pp. 276–291. [Google Scholar]
  29. Milletari, F.; Navab, N.; Ahmadi, S.-A. V-Net: Fully convolutional neural networks for volumetric medical image segmentation. In Proceedings of the Fourth International Conference on 3D Vision (3DV), Stanford, CA, USA, 2016; pp. 565–571. [Google Scholar]
  30. Sudre, C.H.; Li, W.; Vercauteren, T.; Ourselin, S.; Cardoso, M.J. Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentations. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support; LNCS 10553; Springer: Cham, Switzerland, 2017; pp. 240–248. [Google Scholar]
  31. Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA, 2009; pp. 248–255. [Google Scholar]
  32. Buslaev, A.; Iglovikov, V.I.; Khvedchenya, E.; Parinov, A.; Druzhinin, M.; Kalinin, A.A. Albumentations: Fast and flexible image augmentations. Information 2020, 11, 125. [Google Scholar] [CrossRef]
  33. Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML), Lille, France, 2015; pp. 448–456. [Google Scholar]
  34. TorchVision Maintainers and Contributors. Models and Pre-Trained Weights—Torchvision Documentation. Available online: https://pytorch.org/vision/stable/models.html (accessed on November 2026).
  35. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; et al. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019); 2019; pp. 8024–8035. [Google Scholar]
  36. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2015, arXiv:1412.6980. [Google Scholar] [CrossRef]
  37. Bottou, L. Stochastic gradient descent tricks. In Neural Networks: Tricks of the Trade, 2nd ed.; LNCS 7700; Springer: Berlin/Heidelberg, Germany, 2012; pp. 421–436. [Google Scholar]
  38. He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 2017; pp. 2961–2969. [Google Scholar]
Figure 1. Lane ground-truth generation. (Left) BDD100K frame; (right) binary mask obtained by rasterising the vector (poly2d) lane annotations with a thickness of 8 pixels.
Figure 1. Lane ground-truth generation. (Left) BDD100K frame; (right) binary mask obtained by rasterising the vector (poly2d) lane annotations with a thickness of 8 pixels.
Preprints 246091 g001
Figure 2. Hybrid BiSeNet implementation used in this work. The spatial path (bottom) is trained from scratch; the context path (top) reuses an ImageNet-pretrained ResNet-18 and is refined by Attention Refinement Modules (ARM) and a global-context branch. Both streams meet at 1/8 resolution in the Feature Fusion Module (FFM).
Figure 2. Hybrid BiSeNet implementation used in this work. The spatial path (bottom) is trained from scratch; the context path (top) reuses an ImageNet-pretrained ResNet-18 and is refined by Attention Refinement Modules (ARM) and a global-context branch. Both streams meet at 1/8 resolution in the Feature Fusion Module (FFM).
Preprints 246091 g002
Figure 3. Qualitative comparison for 19-class semantic segmentation on BDD100K. Columns: input image, ground truth, U-Net, DeepLabv3 and BiSeNet predictions. The bottom row shows a night-time scene in which U-Net produces discontinuities in the road class.
Figure 3. Qualitative comparison for 19-class semantic segmentation on BDD100K. Columns: input image, ground truth, U-Net, DeepLabv3 and BiSeNet predictions. The bottom row shows a night-time scene in which U-Net produces discontinuities in the road class.
Preprints 246091 g003
Figure 4. Drivable area detection: evolution of (a) the training cross-entropy loss, (b) mIoU and (c) the IoU of the alternative drivable area class over 10 epochs.
Figure 4. Drivable area detection: evolution of (a) the training cross-entropy loss, (b) mIoU and (c) the IoU of the alternative drivable area class over 10 epochs.
Preprints 246091 g004
Figure 5. Example of drivable area predictions. Each row shows the input frame, the ground truth and the prediction; from top to bottom: U-Net, DeepLabv3 and BiSeNet. The direct drivable area is shown in green and the alternative area in yellow.
Figure 5. Example of drivable area predictions. Each row shows the input frame, the ground truth and the prediction; from top to bottom: U-Net, DeepLabv3 and BiSeNet. The direct drivable area is shown in green and the alternative area in yellow.
Preprints 246091 g005
Figure 6. Classical baseline. From left to right: input frame, Canny edges within the fixed region of interest, and the line segments returned by the probabilistic Hough transform.
Figure 6. Classical baseline. From left to right: input frame, Canny edges within the fixed region of interest, and the line segments returned by the probabilistic Hough transform.
Preprints 246091 g006
Figure 7. Lane detection: evolution of (a) the Dice loss and (b) the Lane IoU over 25 epochs.
Figure 7. Lane detection: evolution of (a) the Dice loss and (b) the Lane IoU over 25 epochs.
Preprints 246091 g007
Figure 8. Lane IoU of each model plotted against its mean training time per epoch.
Figure 8. Lane IoU of each model plotted against its mean training time per epoch.
Preprints 246091 g008
Figure 9. Lane detection examples (input, ground truth, prediction). From top to bottom: U-Net, DeepLabv3, BiSeNet in daylight, and BiSeNet at night.
Figure 9. Lane detection examples (input, ground truth, prediction). From top to bottom: U-Net, DeepLabv3, BiSeNet in daylight, and BiSeNet at night.
Preprints 246091 g009
Table 1. Training configuration for 19-class semantic segmentation.
Table 1. Training configuration for 19-class semantic segmentation.
Setting U-Net DeepLabv3 BiSeNet
Backbone / initialisation None (from scratch) ResNet-50, pretrained ResNet-18, ImageNet
Input size (pixels) 512 × 256 640 × 320 640 × 320
Batch size 4 2 4
Loss Cross-entropy (ignore 255) Cross-entropy (ignore 255) Cross-entropy (ignore 255)
Optimiser Adam SGD, momentum 0.9, wd 1e-4 SGD, momentum 0.9, wd 1e-4
Initial learning rate 1e-4 1e-3 1e-3
LR schedule Plateau, factor 0.5, patience 3 Plateau, factor 0.1, patience 3 Plateau, factor 0.1, patience 3
Epochs 20 20 25
Table 2. Training configuration for drivable area and lane detection (shared by all three models).
Table 2. Training configuration for drivable area and lane detection (shared by all three models).
Setting Drivable area Lane detection
Classes 3 (background, direct, alternative) 2 (background, lane)
Input size (pixels) 640 × 360 640 × 360
Batch size 8 8
Loss Cross-entropy Dice loss
Optimiser / learning rate Adam / 1e-4 Adam / 1e-4
Epochs 10 25
Backbones ResNet-34 (U-Net, DeepLabv3), ResNet-18 (BiSeNet) ResNet-34 (U-Net, DeepLabv3), ResNet-18 (BiSeNet)
Table 3. Quantitative results for 19-class semantic segmentation on BDD100K (best value in bold).
Table 3. Quantitative results for 19-class semantic segmentation on BDD100K (best value in bold).
Model Pixel acc. (%) mIoU (%) Precision (%) Recall (%) F1 (%)
U-Net 89.70 42.89 61.24 56.01 50.36
DeepLabv3 89.44 43.17 67.12 52.73 50.00
BiSeNet 87.75 39.47 61.11 49.98 46.36
Table 4. Drivable area detection results after 10 epochs (best value in bold).
Table 4. Drivable area detection results after 10 epochs (best value in bold).
Model Pixel acc. (%) mIoU (%) IoU background (%) IoU direct (%) IoU alternative (%)
U-Net 97.63 87.92 97.6 87.3 78.9
DeepLabv3 97.71 88.46 97.6 88.1 79.6
BiSeNet 98.01 90.24 97.8 89.4 83.5
Table 5. Lane detection results after 25 epochs (best value in bold). Epoch times were measured on the same RTX 3080 GPU.
Table 5. Lane detection results after 25 epochs (best value in bold). Epoch times were measured on the same RTX 3080 GPU.
Model (backbone) Mean epoch time (s) Final Dice loss Lane IoU (%)
U-Net (ResNet-34) ≈42 0.1187 62.53
DeepLabv3 (ResNet-34) ≈69 0.1271 60.76
BiSeNet (ResNet-18) ≈35 0.1369 58.19
Table 6. Main metric per task: mIoU for semantic segmentation and drivable area, Lane IoU for lane detection. The best model in each task is shown in bold.
Table 6. Main metric per task: mIoU for semantic segmentation and drivable area, Lane IoU for lane detection. The best model in each task is shown in bold.
Model Semantic seg. (19 cl.) Drivable area (3 cl.) Lane detection (2 cl.)
U-Net 42.89 87.92 62.53
DeepLabv3 43.17 88.46 60.76
BiSeNet 39.47 90.24 58.19
Table 7. Computational Complexity and Inference Speed Comparison.
Table 7. Computational Complexity and Inference Speed Comparison.
Model Backbone Parameters (M) GFLOPs Inference Speed (FPS)
U-Net ResNet-34 24.44 55.14 91.31
DeepLabv3 ResNet-34 26.01 188.16 99.46
BiSeNet ResNet-18 13.88 24.34 136.08
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.