Manuscript Offprint
arXiv:2610.25340Edge Deployable Lightweight Framework for Real-Time Driver Safety System with Integrated Lane Departure and Traffic Sign Recognition
PUBLISHED IN Machine Vision and Applications, VOL. 37, ARTICLE 61 (2026)
PUBLISHER: SPRINGER NATURE | PUBLISHED: 17 APRIL 2026
DOI: 10.1007/s00138-026-01816-x
Hassaan Ali Qureshi
Department of Mechatronics Engineering
College of Electrical and Mechanical Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
Danish Hussain
Department of Robotics and Artificial Intelligence
School of Mechanical and Manufacturing Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
Ali Hassan
Department of Computer and Software Engineering
College of Electrical and Mechanical Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
Aon Safdar
School of Computer Science
University College Dublin
Dublin, Ireland
Anas Bin Aqeel
Department of Mechatronics Engineering
College of Electrical and Mechanical Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
Muhammad Rafique
School of Energy Science and Engineering
Chongqing Research Institute of Harbin Institute of Technology
Chongqing 150001, PR China
Zohaib Riaz
Department of Mechatronics Engineering
College of Electrical and Mechanical Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
Farhan Hussain
Department of Computer and Software Engineering
College of Electrical and Mechanical Engineering
National University of Sciences and Technology
Islamabad 44000, Pakistan
October 20, 2026
ABSTRACT
Lane departure and traffic-sign negligence are leading contributors to road accidents, particularly in regions with non-standardized signage and limited annotated data. Existing Advanced Driver Assistance Systems (ADAS) solutions are often developed as disjointed submodules, are rarely validated for real-time operation, and struggle to balance accuracy with low-latency inference for embedded deployment. We address these gaps with a unified, edge-deployable ADAS framework that
Corresponding author: danish.hussain@smme.nust.edu.pk
Corresponding author: alihassan@ceme.nust.edu.pk
A PREPRINT
simultaneously performs lane-departure warning (LDW) and traffic-sign detection and recognition (TSD/TSR), and validate the proposed system on automotive-class devices. Our framework combines a lightweight, lane-segmentation-driven LDW, which includes a drivable-area fallback for degraded markings, with a two-stage TSD/TSR pipeline consisting of efficient sign localization followed by fine-grained classification, designed to preserve accuracy at embedded latency. To support region-specific deployment under data scarcity, we curate a 35-class local traffic-sign dataset and introduce a generalized augmentation and balancing profile, expanding the corpus from 359 images to 8,750 samples. On an NVIDIA Jetson Orin Nano, the integrated system sustains 15 FPS end to end (32 FPS for LDW and 18 FPS for TSD/TSR). The TSD/TSR branch achieves 97.4 mAP for detection and 95.6% validation accuracy (93.1% on a local real-world set) while maintaining an approximately 13.9 M parameter footprint. Relative to recent methods that target a single task or report results only on desktop-class GPUs, our approach delivers both LDW and TSD/TSR with real-time performance on edge hardware, providing a practical pathway to low-cost, field-ready ADAS in resource-constrained settings.
Keywords Advanced Driver Assistance Systems (ADAS) · Lane Departure Warning · Traffic Sign Recognition · Edge Computing · Real-Time Implementation
Code and data availability: https://anonymous.4open.science/r/LDW-TSDR-062D/
1 Introduction
Enhancing road safety and assisting drivers in potentially hazardous situations are some of the benefits of advanced driver assistance systems. These systems are designed to reduce human error, a primary cause of road accidents, by incorporating intelligent features such as collision avoidance, lane keeping, and traffic sign recognition. The Lane Departure Warning System (LDWS) and Traffic Sign Recognition enable detection and interpretation of road signs, which is a critical component of ADAS [1].
Deep learning has been used to improve lane detection. For instance, Han et al. proposed LLDNet, a lightweight model with just 0.26 million parameters achieve 96.31% accuracy in lane detection [2]. Luo et al. introduced LATR for 3D lane detection using transformers and achieved an F1 score of 80.59% [3]. Che et al. developed TwinLiteNet and later TwinLiteNetPlus to deliver lightweight segmentation with lane IoU scores of 31.08% and 34.2%, respectively [4][5]. Similarly, models like CurveFormer++ [6], SRLane [7], and ENet-21 [8] have improved lane detection using various CNN and attention-based architectures, with F1 scores surpassing 77%.
Substantial research is reproted for traffic sign recognition. Dang et al. Used YOLOv5 for real-time TSR in adverse conditions, reaching 79.2% accuracy [9]. Dalborgo et al. adapted YOLOv5 for Brazilian vegetation-occluded signs with 95.1% precision [10], while Han et al. introduced YOLO-SG and achieved over 97% accuracy for danger signs [11]. Other notable contributions include haze-resistant TSR by Radha Rani et al. [12], YOLO-TS with improved receptive fields [13], EMDFNet with 97.0% mAP on GTSDB [14], and YOLO-PPA, optimized for cruise control applications [15].
To handle multiple ADAS tasks simultaneously, recent models have adopted multi-task learning strategies. Key manifestations are observed in YOLOP [16], HybridNets [17], and YOLOPv2 [18], these efforts integrate object detection, lane marking, and drivable area segmentation in real-time. Ye and Zhang proposed Mobip using MobileNetV2 [19], while CenterPNets [20], YOLOM [21], and YOLOP-DN [22] optimized these systems further for deployment on embedded systems. The latest advancements such as YOLOPv3, YOLOPX, and BiFPN-based models have pushed lane accuracy up to 88.6% with improved efficiency [23] [24] [25].
However, despite these global advancements, the variability in lane markings, occlusions due to traffic or debris, adverse weather conditions, and non-standardized traffic signs pose unique challenges. While lane detection models benefit from relatively standardized road structures, traffic sign recognition faces greater diversity across countries, particularly in developing regions where standardized datasets are scarce. Most existing research relies on publicly available datasets from European and developed countries, such as the German Traffic Sign Detection Benchmark (GTSDB), Belgium Traffic Sign Dataset (BTSD), LISA (USA), Italian Traffic Signs Dataset (DITS), Swedish Traffic Signs Dataset (STSD) etc [26],[27]. Although these benchmarks have driven considerable progress, their emphasis on structured and well-annotated environments limits their applicability to real-world conditions in third-world countries.
In Pakistan, very limited research has been done in domain of Traffic sign detection and recondition. The complexity of local traffic scenes and the lack of robust models tailored to such environments reflect the low recognition accuracies reported by existing studies on Pakistani traffic sign datasets, which range from approximately 41% [28], 55% [29],
A PREPRINT
to at best 83.4% [30]. This clear performance gap and scarcity of annotated regional datasets highlight the need for robust and resource-efficient TSR solutions capable of adapting to diverse, low-resource, and non-standardized traffic conditions.
The main contributions of this work are summarized as follows:
- Propose a lightweight, edge-deployable ADAS framework that integrates lane departure warning and traffic sign recognition in real time.
• Design and implementation of a custom traffic sign recognition pipeline using YOLO-based detection and a lightweight classification model optimized for local road conditions.
• Validation of the traffic sign classification model’s cross dataset generalization by fine tuning it on the Bangladesh traffic sign dataset and German Traffic Sign Recognition Benchmark using the same augmentation profile and second stage training strategy.
• Development of a lane detection and segmentation approach using TwinLiteNet, followed by a custom-designed lane departure warning algorithm based on geometric distance analysis.
• Real-time implementation and evaluation of the complete framework on edge devices, demonstrating its practicality for resource constrained environments.
The rest of this paper is organized as follows: Section II introduces the proposed framework. Section III presents traffic sign detection and recognition, including dataset collection, augmentation, and model training. Section IV discusses lane detection, lane departure warning, and the fallback mechanism. Section V describes the integration of lane departure warning with traffic sign recognition into a unified system. Section VI highlights the real-time implementation of the framework on edge devices. Section VII outlines future research directions.
The real-time perception process begins with system initialization, in which all models are loaded into the device's memory (Jetson Orin Nano). Simultaneously, the onboard camera captures a live stream from the vehicle's viewpoint. Each frame is resized to a consistent resolution of pixels and divided horizontally into two equal parts:
• The upper half is dedicated to traffic sign analysis.
• The lower half is reserved for lane analysis.
This logical division supports a pipelined processing approach where traffic sign analysis is performed firstly and that is followed by lane analysis. This approach reduces the computational cost for each model and accelerates overall inference.
In the upper half of the image, the YOLOv8s model performs object detection to locate traffic signs. The cropped regions of interest (ROIs) containing detected signs are then passed to the MobileNetV3-small classifier, which accurately identifies the category of each sign, such as speed limits, U-Turn, or No Parking.
For lightweight and efficient classification, MobileNetV3 integrates three key components: depthwise separable convolutions, squeeze-and-excitation (SE) modules, and hard-swish activation function [32]. Among these, the hard-swish non-linearity is mathematically expressed as:
This activation improves accuracy compared to ReLU and it is efficient for edge deployment. The MobileNetV3 is well suited for real-time recognition tasks on embedded platforms.
Concurrently, the lower half of the frame is processed by TwinLiteNet, which is a lightweight dual-decoder network well suited for lane detection and drivable area segmentation [4]. The encoder is based on ESPNet-C, which efficiently extracts multi-scale feature representations. To further enhance contextual learning, a Dual Attention Module is employed, which is composed of the Position Attention Module (PAM) for capturing spatial dependencies and the Channel Attention Module (CAM) for modeling inter-channel relationships. Their outputs are fused via convolution and element-wise summation to form the feature map
A PREPRINT
Input Frame (360x640) from Camera
Upper half frame (180x640)

Lower half frame (180x640)
TwinLiteNet-Based Lane Segmentation Network
Post-Processing
and Lane
Geometry
Refinement
Lane
Algorithm
Customization
Predicted Lane Mask
Lane Departure Estimation and Warning Generation
Overlay of Class Predictions
Combining Upper Half and Lower Half for Final Output
Figure 1: Overall Framework of the Proposed Intelligent Driving Assistance System. YOLOv8s[31] for traffic sign detection, MobileNetV3-small [32] for traffic sign recognition and TwinLiteNet [4] for lane detection
A PREPRINT

Figure 2: Traffic Sign Detection and Recognition Flow
TwinLiteNet uses a multi output architecture with two lightweight decoders, one for drivable area segmentation and the other for lane detection. The separation allows each task to be improved at a low cost. Both Tversky Loss and Focal Loss are combined into a loss function. Focal Loss is defined as
where N is the total number of pixels, C is the number of classes, is the ground-truth label for pixel i of class c, is the predicted probability, and is a focusing parameter that emphasizes hard-to-classify pixels. This loss mitigates class imbalance by down-weighting well-classified pixels. Tversky Loss is defined as
where , , and denote the true positives, false negatives, and false positives for class c, and , control the relative importance of false negatives and false positives. This loss allows the network to focus on accurate detection of sparse or difficult features such as lane markings. The total training objective combines both losses:
During inference, convolution and batch normalization layers are re-parameterized into a single equivalent convolution to reduce latency with a high accuracy. The network produces a pixel-wise lane mask with the detected lane boundaries, which is then analyzed by a custom lane departure detection algorithm to estimate the vehicle's lateral deviation relative to the lane center and issue warnings when departures are detected.
Finally, the outputs from both tasks are merged and overlaid on the original frame. The top section visualizes recognized traffic signs, while the bottom section displays lane markings and any active departure warnings. The designed framework ensures scalability and supports deployment on edge devices for autonomous vehicles.
In the following sections, we will provide details, real-time implementation, methodologies, and performance outcomes of each module, i.e. traffic sign detection and recognition, lane segmentation and departure analysis.
3 Traffic Sign Detection & Recognition
The detection and identification of traffic signs is essential for driver's assistance and facilitating the operations of semi-autonomous vehicles. Such technologies ensure adherence to traffic regulations and enhance road safety by precisely recognizing warning and regulatory signals. Detection and recognition are the two primary phases of the traffic sign processing pipeline (as illustrated in Figure 2). Roadside signs are usually visible in the upper half of each input frame (640 × 180 resolution), which is processed by the system. Traffic signs are detected and classified into four main categories in the first stage using the YOLOv8s model: Prohibitory, Mandatory, Danger, and Other.
Although YOLO's one-stage architecture [33] is highly efficient and achieves real-time performance, its shared detection–classification framework often prioritizes speed at the expense of accuracy. As a result, small or distant objects are frequently misclassified [34], [35], [36]. In contrast, two-stage detectors such as Faster R-CNN and Mask R-CNN generally provide higher accuracy by decoupling detection and classification, but this improvement comes with significantly slower inference speed [37], [34].
A PREPRINT
To overcome this challenge, we propose a two-stage pipeline with a lightweight classifier. In the first stage, YOLOv8s is used solely for localizing traffic signs and classify them under any of the four broad categories. These category assignments are not critical in themselves even if YOLO introduces some mis-classification at this stage. The essential requirement is accurate detection of the sign's location. The second stage performs the detailed recognition task using the MobileNetV3-small model, a compact CNN optimized for image classification [32]. By processing higher-resolution cropped traffic sign patches, the classifier ensures accurate categorization of the 35 distinct traffic sign classes (listed in Table S1 of Supplementary Information) [38]. The integration of YOLOv8s for detection and MobileNetV3-small for classification thus combines real-time efficiency with fine-grained recognition for reliable performance in intelligent transportation applications. It is appropriate for real-time applications in local traffic scenarios because this two-stage pipeline guarantees both effective detection and high-accuracy identification.
3.1 Traffic Sign Detection
In order to identify the most efficient model for real-time Traffic Sign Recognition in Pakistan, several deep learning architectures were evaluated. The Intel Core i5 8th Gen is the system that initial assessments were conducted on for baseline performance. FR-CNN's slow inference speed made it unsuitable for dynamic driving. While lightweight models like YOLOv8n offered high frames-per-second, they exhibited a lower Recall of 0.8111, increasing the risk of missing critical signs in the high-variability environments common in underdeveloped regions.
YOLOv8s was selected as the optimal model as demonstrated in Table 1. It achieved a superior balance of safety and performance, yielding the highest mAP50 (0.9707) and Recall (0.9092), outperforming even the larger YOLOv8m variant. YOLOv8s ensures both accuracy and efficiency by achieving a real-time capable speed of 3.63 frames per second during initial tests. A robust solution tailored to the specific linguistic and structural complexity of Pakistani road signs is provided by this model.
Table 1: Comparison of Different Models for Traffic Sign Detection (Tested on Dell Latitude, Core i5 8th Gen with 16 GB RAM and 3.6 GHz processor without GPU).
| Model | Params | Framework | Precision | Recall | mAP50 | mAP50-95 | FPS |
|---|---|---|---|---|---|---|---|
| FR-CNN | 42M | PyTorch ONNX | - | - | 0.595 | 0.324 | 0.300.59 |
| YOLOv5s | 7.2M | PyTorch | 0.8977 | 0.7970 | 0.8665 | 0.5958 | 5.40 |
| YOLOv8n | 3.2M | PyTorch | 0.9826 | 0.8111 | 0.9025 | 0.7192 | 7.50 |
| YOLOv8s | 11.2M | PyTorch | 0.9740 | 0.9092 | 0.9707 | 0.7996 | 3.63 |
| YOLOv8m | 25.9M | PyTorch | 0.9893 | 0.8935 | 0.9540 | 0.7964 | 1.32 |
3.2 Traffic Sign Recognition
In this work, we focus is on recognizing specific traffic signs in Pakistan to align the model with local road conditions and regulations. This research required a specialized dataset representing the unique traffic sign designs and symbols used in Pakistan. unlike generic datasets that contain a mix of international traffic signs. When deployed in real world scenarios, this customization was necessary to ensure the system's reliability and accuracy.
3.2.1 Dataset Collection and Augmentation
Pakistani traffic signs dataset covering 35 classes (listed in Table S1 of Supplementary Information) were obtained from Kaggle [38]. The risk of overfitting and poor generalization to real world scenarios was high due to the limited size of the dataset with only total of 359 samples as shown in Figure 3. The Roboflow platform [39] is an intuitive tool for dataset preparation and augmentation. An augmentation profile was designed to mimic real world variations, which included random blur, viewpoint shifts (tilting), adjustments in brightness and both high/low saturation levels. The dataset was expanded to 3,764 images by these augmentations.
The persistence of underrepresented classes was addressed by a second round of targeted augmentation. An augmentation profile that included rotation, blur, and adjustments to saturation and exposure was applied in this stage. To enhance the model's robustness to extreme illumination changes, a particular emphasis was placed on brightness-based transformations. A uniform distribution of 250 samples per class was ensured as a result of this strategic expansion. The geometric consistency of this augmented dataset improved the model's ability to generalize across diverse real-world environmental variations, as shown in Figure 4. The distribution of normalized bounding box parameters shows that the and coordinates are tightly concentrated around the image center. The width and
A PREPRINT

Figure 3: Dataset obtained from Kaggle [38] containing 359 samples
height distributions are skewed towards smaller, uniform values with a positive correlation between them suggesting stable aspect ratios across all categories. Ultimately, the correlogram confirms that the dataset maintains uniform annotation characteristics and consistent object alignment, providing a reliable foundation for model training.
3.2.2 Model Training on Custom Dataset
Initially, a pretrained ReXNet_150 model was tested for traffic sign classification. However, due to its large weight size of around 9.8 million parameters, the model achieved an inference speed of only 6 FPS, which is not suitable for real time applications. Furthermore, since YOLOv8s (used for detection) is itself a relatively heavy model, combining it with ReXNet_150 further reduced the speed to only 1.5 to 2 FPS on the local machine (Intel Core i5 laptop without GPU), making the pipeline impractical for real-time deployment.
Table 2: Hyperparameters for MobileNetV3-small
| Parameter | Value |
|---|---|
| Model Architecture | MobileNetV3-small |
| Parameters | 2.54 Million |
| Dataset Size | 3764 Images |
| Dataset Split | 65% Training, 15% Validation, 20% Testing |
| Learning Rate | 0.0005 |
| Batch Size | 32 |
| No. of Epochs | 50 |
| Stopping Criteria | 50 epochs or Validation Loss not decreasing for 5 epochs |
| Framework Used | PyTorch |
To address this limitation, MobileNetV3-small a lightweight model with only 2.54 million parameters was adopted due to its efficiency on edge devices. The model was trained on an NVIDIA Tesla P100 GPU (16 GB HBM2 memory, 3,584 CUDA cores), achieving an average training throughput of roughly 230 images per second (approx 7.2 iterations/s × 32 images per batch). The initial training of MobileNetV3-small on an imbalanced dataset of 3,764 images (Hyperparameters shown in Table 2 and Training graph shown in Figure 5) achieved 92.6% of test set accuracy but on real world samples (Self collected) correctly identifying only approximately 58%(Training results shown in Table 3). This result highlighted the need for a more balanced dataset to improve generalization.
A PREPRINT
Labels Correlogram (YOLO Format)

Figure 4: Labels correlogram showing spatial distributions of traffic sign annotations. The concentration of and coordinates at the center reflects the alignment achieved after targeted cropping and augmentation.
Table 3: Training Results for MobileNetV3-small
| Parameter | Value |
|---|---|
| Model Accuracy on Validation Set | 94.4% |
| Model Accuracy on Test Set | 92.6% |
| No. of Epochs in Training | 46 |
| No. of Images in Inference Set (Self Collected) | 58 |
| Correctly Classified | 34 |
| Misclassified | 24 |
| Accuracy on Inference Set | 58.5% |
Therefore, a second-stage training phase was conducted using a balanced dataset of 8,750 images. The training configuration was kept the same, except for a slight change in the split percentage as shown in Table 4. Training Graph shown in Figure 6. As a result, the MobileNetV3-small model achieved test set accuracy of (Confusion Matrix Shown in Figure 7) and a significantly improved accuracy of on real world samples (Results of Second Stage Training shown in Table 5). Moreover, inference speed tests on a standard Intel Core i5 laptop (without GPU) demonstrated that MobileNetV3-small processed each frame in approximately 12 ms (Approx 83 FPS), vastly outperforming ReXNet_150 which required around 167 ms per frame (Approx 6 FPS). This combination of accuracy
A PREPRINT

(a)
(b)
Figure 5: (a) Training and Validation Accuracy (b) Training and Validation Loss
Table 4: Hyperparameters of 2nd Stage Training for MobileNetV3-small
| Parameter | Value |
|---|---|
| Model Architecture | MobileNetV3-small |
| Parameters | 2.54 Million |
| Dataset Size | 8750 Images |
| Dataset Split | 70% Training, 20% Validation, 10% Testing |
| Learning Rate | 0.0005 |
| Batch Size | 32 |
| No. of Epochs | 50 |
| Stopping Criteria | 50 epochs or Validation Loss not decreasing for 5 epochs |
| Framework Used | PyTorch |
Table 5: 2nd Stage Training Results for MobileNetV3-small
| Parameter | Value |
|---|---|
| Model Accuracy on Validation Set | 95.6% |
| Model Accuracy on Test Set | 97.83% |
| No. of Epochs in Training | 18 |
| No. of Images in Inference Set (Self Collected) | 58 |
| Correctly Classified | 54 |
| Misclassified | 4 |
| Accuracy on Inference Set | 93.1% |
and efficiency established MobileNetV3-small as the ideal solution for real-time deployment of traffic sign recognition in Pakistani driving environments.
A PREPRINT

(a)
Training and Validation Loss Over Epochs
(b)
Figure 6: (a) 2nd Stage Training and Validation Accuracy (b) 2nd Stage Training and Validation Loss
Cross-Dataset Generalization Validation To evaluate the model's ability to generalize beyond the local dataset, the base model originally trained on the Pakistani traffic sign dataset was fine-tuned and validated across diverse geographic and structural contexts. First, the model was fine-tuned on the Bangladesh traffic sign dataset [40], [41] using the same augmentation profile (brightness, saturation, exposure, rotation, and blur) and the second stage training configuration detailed in Table 4. The model achieved a validation accuracy of 96.6% and a test accuracy of 95.7% on this dataset. In third-world environments, where traffic signs face challenges such as inconsistent maintenance, non-standard positioning, and varying environmental degradation, the system's reliability is underscored by these results.
To further assess the model scalability against large scale benchmark, The German Traffic Sign Recognition Benchmark (GTSRB) dataset [42] was also used to fine-tune the base variant of our model. The model achieved a solid test accuracy of 88.4% despite the significant increase in class complexity and environmental variance inherent in this globally recognized dataset. By maintaining high performance across both specialized regional datasets and extensive wellknown benchmarks, the proposed model demonstrates robust generalization capabilities. The architecture is not only effective for the unique challenges of developing nations, but it is also capable of competitive performance on larger, standard datasets used in global self driving research.
3.3 Integration of Traffic Sign Detection and Recognition
Real-time and accurate recognition is achieved by the traffic sign identification system. The YOLOv8s model can detect traffic signs within an input frame by localizing and drawing bounding boxes around relevant sign regions. The detected regions are passed to a MobileNetV3-small classifier, which performs detailed recognition by accurately identifying specific traffic sign types from the cropped images. Efficient processing and reliable performance in traffic environments are ensured by this division of tasks detection. Results shown in Figure 8. There is a detailed comparison between the proposed framework and existing traffic sign detection and recognition approaches shown in Table 6. Early studies relied on lightweight CNNs such as LeNet-5 and reported limited recognition performance, reflecting the complexity of local traffic scenes and lack of robust models tailored to developing-country conditions. The proposed framework achieved a significantly higher 93.1% accuracy and 97.4% mAP on the Pakistani dataset, while maintaining real-time performance of 18FPS on an NVIDIA Orin Nano, demonstrating clear improvement under practical edge-deployment constraints. Without reporting real-time performance, prior MobileNetV2 and VGG16-based approaches achieved 89.65% and
A PREPRINT
Actual Class

Predicted Class
Figure 7: Confusion Matrix of MobileNetV3-small on Test set
90.31% accuracy for the Bangladeshi traffic sign dataset. The proposed method further improves recognition accuracy to 95.7%, showing its strong generalization across traffic environments in developing regions. Although several recent detection-oriented methods such as EMDFNet and YOLO-PPA report high mAP values on benchmark datasets, but these are not validated on edge device. The results show that the proposed two-stage YOLOv8s and MobileNetV3-small framework offers a favorable trade-off between accuracy, computational efficiency, and deployability. The proposed approach provides a practical and Scalable solution for realworld ADAS applications in developing regions by achieving superior performance on Pakistani and Bangladeshi datasets while running on resourceconstrained edge hardware.
4 Lane Detection & Departure Warning
Lane detection is a fundamental component of ADAS, which allows vehicles to recognize road boundaries and maintain proper lane discipline.. Accurate lane detection not only supports autonomous path planning and lane keeping, but also plays a critical role in identifying unintended lane departures. A major cause of collisions is when drivers are fatigued, distracted, or driving in low visibility conditions. Building on this capability, a lane departure warning system continuously monitors the vehicle's position relative to the lane boundaries and issues timely alerts whenever the vehicle begins to drift unintentionally.
4.1 Lane Detection and Segmentation
Block Diagram of Architecture of the TwinLiteNet as shown in Figure 9), was chosen as the main model for lane detection and segmentation in this work due to its lightweight design (0.44 million parameters). Figure 10(a) displays
A PREPRINT
(a)

(b)
(c)
(d)
(e)
(f)
(g)
(h)
Figure 8: Detecting and Classifying Traffic Signs. The traffic sign detected and classified in image (a) No Parking, (b) Cross Roads, (c) Give way, (d) Cross Roads, (e) Speed Breaker and Pedestrian, (f) Speed Limit (40 Kmph) and Slow, (g) U-Turn and (h) Slow
Table 6: Comparison of Different Models for Traffic Sign Detection and Recognition
| Model | Year | mAP (%) | Accuracy (%) | Params (M) | FPS | Device | Dataset |
|---|---|---|---|---|---|---|---|
| Pakistani TSR (LeNet-5) [28] | 2018 | - | 41.0 | 0.062 | - | - | Pakistani TSR |
| Pakistani TSR (LeNet-5) [30] | 2021 | - | 83.18 | 0.062 | - | - | Pakistani TSR |
| Pakistani TSR (Transfer Learning) [29] | 2022 | - | 55.0 | 0.062 | - | - | Pakistani TSR |
| Bangladesh TSR (MobileNetV2) [41] | 2023 | - | 89.65 | 3.4 | - | - | Bangladesh Dataset |
| Bangladesh TSR (VGG16) [41] | 2023 | - | 90.31 | 138 | - | - | Bangladesh Dataset |
| EMDFNet [14] | 2024 | 97 | - | 29.7 | 16.7 | RTX 3090 | GTSDB |
| YOLO-PPA [15] | 2024 | 93.2 | - | 2.7 | 145.4 | RTX 3090 | GTSDB |
| Enhanced YOLOv8 [43] | 2025 | 91.5 | - | - | 4510.4 | RTX 3080Jetson Nano | GTSRB |
| Ours proposed Framework | 2025 | 97.4 | 93.1 | 13.9 | 18 | Orin Nano | Local [38] |
| 95.7 | 89 | Tesla P100 | Bangladesh dataset [41] | ||||
| 88.4 | 110 | RTX 3090 | GTSRB [42] |
A PREPRINT

Figure 9: Block Diagram of Architecture of TwinLiteNet

Figure 10: (a) Shows the original result of TwinLiteNet Model (b) shows the Lane Line Segmentation from TwinLiteNet Model
the TwinLiteNet results, with the drivable region segmented in blue and the lanes segmented in green. In this system, lane line segmentation is the main emphasis for lane departure analysis. The drivable area decoder was eliminated from the design with the remaining lane line segmentation head in order to optimize the model. This modification reduced the model size by approximately 3,000 parameters. The result of modified model is shown in Figure 10(b). However, in real-world scenarios where lane markings are missing, obstructed, or faded, the system incorporates a fallback approach. In such cases, the segmented drivable area is used to approximate lane boundaries, which suggest that lane awareness can be maintained even when clear lane markings are not visible.
Algorithm 1: Custom Designed Lane Departure Warning (LDW) Algorithm
Input: Input frame I Output: Lane-departure warning signal and visualized output 1: 2: 3: ; // Binary lane mask 4: ; // Canny edges 5: ; // Hough transform lines 6: Classify into based on slope 7: Define bounding box at bottom-center of 8: 9: if or Trigger warning 10: else No warning 11: Overlay on with lane centers (left, right, )
A PREPRINT

Figure 11: Lane Departure Warning Algorithm
Table 7: Detailed Performance Metrics for Warning Detection Across Different Environmental Conditions
| Scenario | Class | Precision | Recall | F-1 | Pred. Frames | GT | Accuracy (%) |
|---|---|---|---|---|---|---|---|
| Day Time | No Warning | 0.83 | 1.00 | 0.91 | 194 | 161 | 91.56 |
| Right Warning | 0.85 | 0.24 | 0.37 | 13 | 46 | ||
| Left Warning | 0.96 | 0.96 | 0.96 | 386 | 386 | ||
| Scenario Totals: | Total Frames: 593 | Correct: 543 | |||||
| Night Time | No Warning | 0.76 | 0.97 | 0.85 | 1850 | 1441 | 85.86 |
| Right Warning | 0.97 | 0.82 | 0.89 | 1189 | 1414 | ||
| Left Warning | 0.98 | 0.69 | 0.81 | 442 | 626 | ||
| Scenario Totals: | Total Frames: 3481 | Correct: 2989 | |||||
| Rain | No Warning | 1.00 | 0.99 | 0.99 | 1194 | 1209 | 97.09 |
| Right Warning | 0.44 | 0.93 | 0.60 | 63 | 30 | ||
| Left Warning | 1.00 | 0.49 | 0.65 | 17 | 35 | ||
| Scenario Totals: | Total Frames: 1274 | Correct: 1237 | |||||
4.2 Lane Departure Warning
The lane departure warning (LDW) system is based on the algorithm shown in Figure 11. The output of the modified TwinLiteNet model is used as the foundation for this system. The proposed method segments the lanes on the lower half of each input frame. As outlined in the stepwise algorithmic workflow (Algorithm 1), the segmented lane mask undergoes a sequence of computer vision operations (discussed in the section followed by) for reliable lane departure detection.
Firstly, the original frame is captured and resized to pixels, as shown in Figure 12(a). Next, the lower half of this frame is cropped and further reduced to pixels (Figure 12(b)). This cropped region is then processed by the updated TwinLiteNet model, which generates a binary lane mask in real time highlighting the lane markings clearly, as shown in Figure 12(c). This binary mask serves as the input to the lane departure detection algorithm. Sharp lane edges are first extracted using Canny edge detection (Figure 12(d)), and straight lines are then detected using the Hough
A PREPRINT

Figure 12: (a) Resizing Frame to 640x360 (b) Cropping Frame for getting ROI i.e. 640x180. (c) Lane Mask from Model. (d) Canny Edge Detection Output. (e) HoughLine Transform Output (f) Placing Mask on ROI
A PREPRINT
Warning: Too Close to Left Lane!

Figure 13: Lane Departure Warning. Red and Blue points indicating center of Right and Left lane respectively while yellow point indicating Vehicle position which is the bottom middle edge of frame. Left lane center comes in threshold window so the Warning Generated for Left lane.

Figure 14: Evaluation of Lane Departure Algorithm in Different Scenarios i.e. (a) Day (b) Night and (c) Rain
Transform (Figure 12(e)). Based on their slope, the detected lines are classified as either left or right lane boundaries. A pixel box is defined at the bottom center of the frame to approximate the vehicle's position. The algorithm flags a potential lane departure whenever any of the classified left or right lane lines intersect this box.
The visual warning is superimposed on the output frame as shown in Figure 13. The center of the left and right lanes are indicated by the red and blue points, while the yellow point shows the vehicle's position. In this example (Figure 13), left-lane departure warning is triggered when the center of the left lane falls within the threshold window. The proposed hybrid approach combines deep learning and classical computer vision techniques for edge and line analysis to achieve a processing speed of 32 frames per second on the Jetson Orin Nano. The system is practical for embedded edge deployment in resource-constrained environments.
The reliability of the system was evaluated against a manually curated ground truth dataset, where each frame was annotated as having no warning, a left warning, or a right warning. Consistent performance across a variety of environmental conditions can be seen by comparing the system's predictions to this ground truth, as detailed in Table 7. During daytime driving (Figure 14(a)), the system achieves an accuracy of 91.56% under normal illumination, while maintaining 85.86% accuracy in nighttime scenarios (Figure 14(b)) despite the presence of headlight glare and reduced visibility. Notably, the system reached its highest accuracy of 97.09% during rainy conditions (Figure 14(c)), where it successfully suppressed false alerts during stable straight-line driving. These findings highlight the system's robustness and its ability to provide dependable lane perception even under adverse weather conditions.
4.3 Fallback Mechanism for Lane Departure Warning
Lane line segmentation occasionally fails in real-world driving circumstances because of occlusions, dim illumination, damaged roads, or faded markers. TwinLiteNet's secondary output, which offers drivable region segmentation, is suggested as a fallback strategy to handle such situations.
As seen in Figure 15(a), this drivable area segmentation spans the whole road surface and is nonetheless quite reliable even in the absence of lane markers. Figure 15(b) and Figure 16(a) illustrate how the outside limits of the driveable area are retrieved in the fallback mode. As seen in Figure 15(c), these boundaries are then categorized as left and right road edges according to their respective positions inside the frame. After classification, midpoints are determined across the
A PREPRINT

Figure 15: (a) Drivable Area Segmentation (b) Edges of Drivable Area Segmentation (c) Classify Left and Right Edge of Drivable Area

Figure 16: (a) shows the Edges of Drivable Area Segmentation (b) and (c) shows the Lane Approximation using midpoint of Left and Right Edge of Drivable Area
frame’s vertical axis between the appropriate left and right border points. As seen in Figure 16(b) and Figure 16(c), connecting these midpoints creates an estimated centerline of the drivable route that may be used to estimate the location of the vehicle and identify possible lane departure.
Initial tests using the pre-trained model show that this method provides a reasonable approximation in many scenarios. However, the quality of the estimated centerline is directly dependent on the accuracy of the drivable area segmentation. In cases where the segmentation is inaccurate, especially around curves or road edges, the resulting midpoints and lane estimations tend to be unstable as shown in Figure 17. Despite this, the approach demonstrates a viable proof of concept. With proper model fine-tuning and domain-specific training, this fallback strategy has the potential to serve as a reliable alternative in lane-degraded environments.
In many situations, this approach yields a fair approximation according to preliminary tests conducted with the pre-trained model. However, the precision of the drivable area segmentation directly affects the quality of the calculated centerline. As shown in Figure 17, the resultant midpoints and lane estimates are frequently unstable when the segmentation is incorrect usually near bends or road borders. In lane-degraded contexts, this fallback technique may be a dependable substitute with the right model fine-tuning and domain-specific training.

(a)
(b)
(d)
(e)
(f)
Figure 17: Noise in Drivable Area Segmentation due to which lane approximation becomes unstable
A PREPRINT

Figure 18: Lane departure warning with traffic sign detection and recognition. (a) normal driving with a "No Parking" sign detected and no lane departure. (b) detection of a "No Parking" sign and warning for being too close to the right lane. (c) a "U-Turn" sign and warning for closeness to the left lane. (d) detection of a "Cross Roads" sign and also indicates a lane departure warning for drifting too close to the right lane

Figure 19: Overview of proposed experimental setup and data flow. A camera mounted on the vehical dashboard capture real time road scenes. the captured frames are processed on jetson orin nano to perform traffic sign recognition and lane departure warning. the processed result are transmitted via remote connection for visualization, while warning information delivered back to the driver. The Jetson Orin Nano is powered using external battery.
A PREPRINT
Table 8: Comparison of different models for lane and traffic sign analysis. Here, √ indicates that the model provides the corresponding functionality, whereas X indicates that the functionality is not supported.
| Model | Year | TSD | TSR | Object Det | LD | DAS | LDW | Edge Device | Real-Time (FPS) |
|---|---|---|---|---|---|---|---|---|---|
| Multi-task Object Detection & Lane-Aware Models | |||||||||
| YOLOP [16] | 2021 | × | × | ✓ | ✓ | ✓ | × | Jetson TX2 | 23 |
| HybridNet [17] | 2022 | × | × | ✓ | ✓ | ✓ | × | × | × |
| YOLOPv2 [18] | 2022 | × | × | ✓ | ✓ | ✓ | × | × | × |
| CENTERNETS [20] | 2023 | × | × | ✓ | ✓ | ✓ | × | × | × |
| YOLOPv3 [23] | 2024 | × | × | ✓ | ✓ | ✓ | × | × | × |
| YOLOPX [24] | 2024 | × | × | ✓ | ✓ | ✓ | × | × | × |
| YOLOP-DN [22] | 2024 | × | × | ✓ | ✓ | ✓ | × | × | × |
| YOLOM [21] | 2024 | × | × | ✓ | ✓ | ✓ | × | × | × |
| Lane Focused Models | |||||||||
| LLDNET [2] | 2022 | × | × | × | ✓ | × | × | × | × |
| LATR [3] | 2023 | × | × | × | ✓ | × | × | × | × |
| TwinLiteNet [4] | 2023 | × | × | × | ✓ | ✓ | × | Jetson Xavier NX | 60 |
| SRLANE [7] | 2024 | × | × | × | ✓ | × | × | × | × |
| CURVEFORMER++ [6] | 2025 | × | × | × | ✓ | × | × | × | × |
| Traffic-Sign Detection & Recognition Models | |||||||||
| YOLOv5 [9] | 2023 | ✓ | ✓ | × | × | × | × | × | × |
| EMDFNet [14] | 2024 | ✓ | ✓ | × | × | × | × | × | × |
| YOLO-PPA [15] | 2024 | ✓ | ✓ | × | × | × | × | × | × |
| YOLO-TS [13] | 2024 | ✓ | ✓ | × | × | × | × | Jetson Orin AGX | 38.8 |
| Enhanced YOLOv8 [43] | 2025 | ✓ | ✓ | × | × | × | × | Jetson Nano | 10.4 |
| MH-YOLO [44] | 2025 | ✓ | ✓ | × | × | × | × | × | × |
| YOLO-BS [45] | 2025 | ✓ | ✓ | × | × | × | × | × | × |
| Integrated Lane & Traffic-Sign Models | |||||||||
| Improved YOLOv8 [46] | 2023 | ✓ | ✓ | × | ✓ | × | × | × | × |
| Lane and Traffic Sign Detection (YOLOv8) [47] | 2025 | ✓ | ✓ | × | ✓ | × | × | × | × |
| Advancing Autonomous Vehicle Intelligence [48] | 2025 | ✓ | ✓ | × | ✓ | × | × | × | × |
| Proposed Multi-Task Model (This Work) | |||||||||
| Ours (TSD&R + Custom Designed LDW Algo) | 2025 | ✓ | ✓ | × | ✓ | × | ✓ | Jetson Orin Nano | 15 |
5 Integration of Lane Departure Warning and Traffic Sign Detection & Recognition
The proposed system integrates lane departure warning (LDW) and traffic sign detection and recognition (TSD/TSR) into a single real-time Advanced Driver Assistance System (ADAS). The live camera frames are divided into upper and lower halves. The upper half is processed using YOLOv8 for traffic sign detection and MobileNetV3-small for accurate recognition, while the lower half is processed by the modified version of TwinLiteNet model for lane segmentation. A custom lane departure algorithm calculates the vehicle's position relative to lane boundaries using the bottom-center pixel as a reference. When the vehicle drifts too close to lane edges, clear visual warnings are issued to alert the driver immediately. Figure 18 shows representative outputs for different driving scenarios.
To evaluate the novelty and effectiveness of the proposed system, Table 8 compares existing models for lane detection, traffic sign detection, and their combination. Most prior works specialize in a single task or lack support for real-time processing and edge deployment. For example, YOLOv5, EMDFNet, and YOLO-PPA achieve high performance for traffic sign recognition but do not provide lane departure warnings. On the other hand, lane detection models such as LLDNet, SRLANE, and TwinLiteNet focus on lane segmentation but do not detect traffic signs, thus they have limited situational awareness. From Table 8, it is evident that our system is one of the few solutions that simultaneously perform both lane departure warning and traffic sign recognition while being deployable on edge devices. Moreover, our framework achieves 15 FPS on the Jetson Orin Nano, aligning with prior studies that consider similar frame rates sufficient for real-time embedded TSR applications [49], [50],[51], [52]. The combination of accuracy, edge compatibility, and dual task integration makes our approach more practical and robust than existing models.
A PREPRINT
6 Real Time Implementation of Framework on Edge Devices
To validate the real-time performance of the ADAS framework on the edge device, a testing setup was established. Schematic diagram of our experimental setup shown in Figure. 19. Photos of the Setup are shown in Figure S1 of Supplementary Information. It consists of three major components: the edge computing device (NVIDIA Jetson Orin Nano), an external camera for real-time visual input, and monitor for the processed output (a local web server was defined to see the visual output). The entire setup was powered through a custom built portable battery pack (Voltage rating: 12 V, Current Rating: 2.5 A). Photos of real-time driving experiments, illustrating traffic sign detection and lane detection, are presented in Figures S2 and S3 of the Supplementary Information.
An Intel RealSense D435 RGB-D camera was used for video capture, with the factory-calibrated intrinsic and extrinsic parameters provided by the manufacturer. The major deployment target was Jetson Orin Nano which is a very efficient and powerful compact edge AI device. It delivered high performance as compared to the other tested platforms (Results shown in Table S2 of Supplementary Information). It achieved an interference speed of 18 FPS for the traffic sign recognition module and 32 FPS for the lane departure module with ONNX optimization. The system achieved a stable 15 FPS end-to-end processing rate under different lighting conditions.
Overall, Real-time performance is enabled by the fusion of lightweight deep learning models, efficient data flow, and hardware acceleration through ONNX and TensorRT. This real-time implementation establishes a foundation for future enhancements toward fully autonomous driving systems, improving situational awareness, safety, and real-world deployability.
The proposed framework showed reliable real-time performance, however, there are can be improvements such as extending the ADAS functionality to include speed-limit compliance, driver state monitoring, and fallback mechanisms for lane-center estimation in complex road geometries. Dataset expansion and domain adaptation techniques can reduce retraining requirements across diverse environments.
7 Conclusion
This work demonstrated a unified, edge-deployable ADAS that performs lane-departure warning and traffic-sign detection/recognition in real time on automotive-class hardware. By integrating both functions within a lightweight framework and validating end-to-end on a Jetson Orin Nano, we showed that practical throughput can be achieved without sacrificing accuracy, including high mAP for detection and strong recognition accuracy on a region-specific datasets augmented from scarce originals. The resulting system addresses a common gap in the literature, where ADAS capabilities are developed as isolated modules or evaluated only on desktop-class GPUs, and provides a credible path toward low-cost deployment in settings with limited compute and non-standardized signage.
Acknowledgments
The authors acknowledge support from the National University of Sciences and Technology (NUST) for conducting this research.
References
[1] Tomasz Neumann. Analysis of advanced driver-assistance systems for safe and comfortable driving of motor vehicles. Sensors, 24(19):6223, 2024.
[2] Md Al-Masrur Khan, Md Foysal Haque, Kazi Rakib Hasan, Samah H Alajmani, Mohammed Baz, Mehedi Masud, and Abdullah-Al Nahid. Lldnet: a lightweight lane detection approach for autonomous cars using deep learning. Sensors, 22(15):5595, 2022.
[3] Yueru Luo, Chaoda Zheng, Xu Yan, Tang Kun, Chao Zheng, Shuguang Cui, and Zhen Li. Latr: 3d lane detection from monocular images with transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7941–7952, 2023.
[4] Quang-Huy Che, Dinh-Phuc Nguyen, Minh-Quan Pham, and Duc-Khai Lam. Twinlitenet: An efficient and lightweight model for driveable area and lane segmentation in self-driving cars. In 2023 International Conference on Multimedia Analysis and Pattern Recognition (MAPR), pages 1–6. IEEE, 2023.
[5] Quang-Huy Che, Duc-Tri Le, Minh-Quan Pham, Vinh-Tiep Nguyen, and Duc-Khai Lam. Twinlitenetplus: A real-time multi-task segmentation model for autonomous driving. arXiv preprint arXiv:2403.16958, 2024.
A PREPRINT
[6] Yifeng Bai, Zhirong Chen, Pengpeng Liang, Bo Song, and Erkang Cheng. Curveformer++: 3d lane detection by curve propagation with temporal curve queries and attention. IEEE Transactions on Intelligent Transportation Systems, 2025.
[7] Chao Chen, Jie Liu, Chang Zhou, Jie Tang, and Gangshan Wu. Sketch and refine: Towards fast and accurate lane detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 1001–1009, 2024.
[8] Seyed Rasoul Hosseini, Hamid Taheri, and Mohammad Teshnehlab. Enet-21: An optimized light cnn structure for lane detection. arXiv preprint arXiv:2403.19782, 2024.
[9] Thi Phuc Dang, Ngoc Trinh Tran, Van Hau To, and Minh Khoa Tran Thi. Improved yolov5 for real-time traffic signs recognition in bad weather conditions. The Journal of supercomputing, 79(10):10706–10724, 2023.
[10] Vanessa Dalborgo, Thiago B Murari, Vinicius S Madureira, João Gabriel L Moraes, Vitor Magno OS Bezerra, Filipe Q Santos, Alexandre Silva, and Roberto LS Monteiro. Traffic sign recognition with deep learning: vegetation occlusion detection in Brazilian environments. Sensors, 23(13):5919, 2023.
[11] Yanjiang Han, Fengping Wang, Wei Wang, Xiangyu Li, and Jianyang Zhang. Yolo-sg: Small traffic signs detection method in complex scene. The Journal of Supercomputing, 80(2):2025–2046, 2024.
[12] A Radha Rani, Y Anusha, SK Cherishama, and S Vijaya Laxmi. Traffic sign detection and recognition using deep learning-based approach with haze removal for autonomous vehicle navigation. e-Prime-Advances in Electrical Engineering, Electronics and Energy, 7:100442, 2024.
[13] Junzhou Chen, Heqiang Huang, Ronghui Zhang, Nengchao Lyu, Yanyong Guo, Hong-Ning Dai, and Hong Yan. Yolo-ts: Real-time traffic sign detection with enhanced accuracy using optimized receptive fields and anchor-free fusion. arXiv preprint arXiv:2410.17144, 2024.
[14] Pengyu Li, Chenhe Liu, Tengfei Li, Xinyu Wang, Shihui Zhang, and Dongyang Yu. Emdfnet: Efficient multi-scale and diverse feature network for traffic sign detection. In International Conference on Artificial Neural Networks, pages 120–136. Springer, 2024.
[15] Jingyu Zhang, Wenqing Zhang, Chaoyi Tan, Xiangtian Li, and Qianyi Sun. Yolo-ppa based efficient traffic sign detection for cruise control in autonomous driving. In Proceedings of the 2024 International Conference on Industrial Automation and Robotics, pages 8–13, 2024.
[16] Dong Wu, Man-Wen Liao, Wei-Tian Zhang, Xing-Gang Wang, Xiang Bai, Wen-Qing Cheng, and Wen-Yu Liu. Yolop: You only look once for panoptic driving perception. Machine Intelligence Research, 19(6):550–562, 2022.
[17] Dat Vu, Bao Ngo, and Hung Phan. Hybridnets: End-to-end perception network. arXiv preprint arXiv:2203.09035, 2022.
[18] Cheng Han, Qichao Zhao, Shuyi Zhang, Yinzi Chen, Zhenlin Zhang, and Jinwei Yuan. Yolopv2: Better, faster, stronger for panoptic driving perception. arXiv preprint arXiv:2208.11434, 2022.
[19] Minghui Ye and Jinhua Zhang. Mobip: a lightweight model for driving perception using mobilenet. Frontiers in neurorobotics, 17:1291875, 2023.
[20] Guangqiu Chen, Tao Wu, Jin Duan, Qi Hu, Dandan Huang, and Hao Li. Centerpnets: a multi-task shared network for traffic perception. Sensors, 23(5):2467, 2023.
[21] Jiayuan Wang, QM Jonathan Wu, and Ning Zhang. You only look at once for real-time and generic multi-task. IEEE Transactions on Vehicular Technology, 73(9):12625–12637, 2024.
[22] Guopeng Tan, Chao Wang, Zhihua Li, Yuanbiao Zhang, and Ruikai Li. A multi-task network based on dual-neck structure for autonomous driving perception. Sensors, 24(5):1547, 2024.
[23] Jiao Zhan, Jingnan Liu, Yejun Wu, and Chi Guo. Multi-task visual perception for object detection and semantic segmentation in intelligent driving. Remote Sensing, 16(10):1774, 2024.
[24] Vitor Alcantara Batista and Alexandre Gonçalves Evsukoff. Application of transformers based methods in electronic medical records: A systematic literature review. arXiv preprint arXiv:2304.02768, 2023.
[25] Chenyu Zhang, Hidenori Itaya, Tsubasa Hirakawa, Takayoshi Yamashita, and Hironobu Fujiyoshi. High-precision for multi-task learning from in-vehicle camera using bifpn. In 2024 IEEE Intelligent Vehicles Symposium (IV), pages 1302–1307. IEEE, 2024.
[26] Nesrine Triki, Mohamed Karray, and Mohamed Ksantini. A comprehensive survey and analysis of traffic sign recognition systems with hardware implementation. IEEE Access, 2024.
[27] Marco Flores-Calero, César A Astudillo, Diego Guevara, Jessica Maza, Bryan S Lita, Bryan Defaz, Juan S Ante, David Zabala-Blanco, and Jose Maria Armingol Moreno. Traffic sign detection and recognition using yolo object detection algorithm: A systematic review. Mathematics, 12(2):297, 2024.
A PREPRINT
[28] Zain Nadeem, Abdul Samad, Zulkafil Abbas, and Janzaib Massod. A transfer learning based approach for pakistani traffic-sign recognition; using convnets. In 2018 International Conference on Computing, Electronic and Electrical Engineering (ICE Cube), pages 1–6. IEEE, 2018.
[29] Zain Nadeem, Zainullah Khan, Usama Mir, Umer Iftikhar Mir, Shahnawaz Khan, Hamza Nadeem, and Junaid Sultan. Pakistani traffic-sign recognition using transfer learning. Multimedia Tools and Applications, 81(6): 8429–8449, 2022.
[30] Abdul Azeem Sikander and Hamza Ali. Image classification using cnn for traffic signs in pakistan. arXiv preprint arXiv:2102.10130, 2021.
[31] Muhammad Yaseen. What is yolov9: An in-depth exploration of the internal features of the next-generation object detector. arXiv preprint arXiv:2409.07813, 2024.
[32] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In Proceedings of the IEEE/CVF international conference on computer vision, pages 1314–1324, 2019.
[33] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779–788, 2016.
[34] O Olorunshola, P Jemitola, and A Ademuwagun. Comparative study of some deep learning object detection algorithms: R-cnn, fast r-cnn, faster r-cnn, ssd, and yolo. Nile J. Eng. Appl. Sci, 1(1):70–80, 2023.
[35] Njayou Youssouf. Traffic sign classification using cnn and detection using faster-rcnn and yolov4. Heliyon, 8(12), 2022.
[36] Aon Safdar, Usman Akram, Waseem Anwar, Basit Malik, and Mian Ibad Ali. Yoloatr: Deep learning based automatic target detection and localization in thermal infrared imagery. arXiv preprint arXiv:2507.11267, 2025.
[37] Shilong Zhou, Haijin Zhou, and Lei Qian. A multi-scale small object detection algorithm sma-yolo for uav remote sensing images. Scientific Reports, 15(1):9255, 2025.
[38] Mexwell. Pakistani traffic-sign recognition dataset. https://www.kaggle.com/datasets/mexwell/pakistani-traffic-sign-recognition-dataset, n.d. [Data set].
[39] B. Dwyer, J. Nelson, T. Hansen, et al. Roboflow (version 1.0). https://roboflow.com, 2025. [Software].
[40] Md Mahbubur Rahman Tusher, Hasan Muhammad Kafi, Susmita Roy Rinky, Muhiminul Islam, and Md Musfiqur Rahman. A comparative analysis of various deep learning models for traffic signs recognition from the perspective of bangladesh. In International Conference on Big Data, IoT and Machine Learning, pages 547–557. Springer, 2023.
[41] Tusher7575. Traffic sign in bangladesh dataset. https://www.kaggle.com/datasets/tusher7575/traffic-sign-in-bangladesh/data, 2020?2021? Accessed: <date>.
[42] Sebastian Houben, Johannes Stallkamp, Jan Salmen, Marc Schlipsing, and Christian Igel. Detection of traffic signs in real-world images: The German Traffic Sign Detection Benchmark. In International Joint Conference on Neural Networks, number 1288, 2013.
[43] Baba Ibrahim and Zhou Kui. Enhancing traffic sign recognition on the performance based on yolov8. arXiv preprint arXiv:2504.02884, 2025.
[44] Yifeng Zhang, Haifei Ma, Canlong Zhang, Zhiwen Wang, and Zhixin Li. Mh-yolo: A lightweight traffic sign detection method based on yolov10n with hybrid attention transformer and multi-scale dilated attention. 2025.
[45] Hong Zhang, Mingyin Liang, and Yufeng Wang. Yolo-bs: a traffic sign detection algorithm based on yolov8. Scientific Reports, 15(1):7558, 2025.
[46] Divya Elankumaran. An improved traffic sign recognition and road lane detection for self-driving cars using yolo-v8. International Journal for Multidisciplinary Research, 5(6), 2023. doi:10.36948/ijfmr.2023.v05i06.9675. URL https://www.ijfmr.com/research-paper.php?id=9675.
[47] HS Gowri Yaamini, KJ Swathi, N Manohar, and Ajay Kumar. Lane and traffic sign detection for autonomous vehicles: Addressing challenges on indian road conditions. MethodsX, 14:103178, 2025.
[48] Chandan Kumar Sah, Ankit Kumar Shaw, Xiaoli Lian, Arsalan Shahid Baig, Tuopu Wen, Kun Jiang, Mengmeng Yang, and Diange Yang. Advancing autonomous vehicle intelligence: Deep learning and multimodal llm for traffic sign recognition and robust lane detection. arXiv preprint arXiv:2503.06313, 2025.
[49] Imane Elmanaa, My Abdelouahed Sabri, Yassine Abouch, and Abdellah Aarab. Efficient roundabout supervision: real-time vehicle detection and tracking on nvidia jetson nano. Applied sciences, 13(13):7416, 2023.
A PREPRINT
[50] Adonis Santos, Patricia Angela R. Abu, Carlos Oppus, and Rosula S. J. Reyes. Real-time traffic sign detection and recognition system for assistive driving. Advances in Science, Technology and Engineering Systems Journal, 5(4):600–611, 2020. doi:10.25046/aj050471.
[51] Zhilu Chen and Xinming Huang. Real-time traffic sign detection and recognition using gpu. In IEEE High Performance Extreme Computing Conference (HPEC), 2014.
[52] Dan McCarthy. Vision navigates obstacles on the road to autonomous vehicles. https://www.automate.org/vision/industry-insights/vision-navigates-obstacles-on-the-road-to-autonomous-vehicles, Oct 2019. Industry Insights, Automate.
A PREPRINT
Supplementary Information to:
Edge Deployable Lightweight Framework for Real-Time Driver Safety System with Integrated Lane Departure and Traffic Sign Recognition
Introduction
This supplementary document accompanies the article “Edge Deployable Lightweight Framework for Real-Time Driver Safety System with Integrated Lane Departure and Traffic Sign Recognition,” in which we presented a unified, edge-deployable ADAS framework that simultaneously performs lane-departure warning (LDW) and traffic-sign detection and recognition (TSD/TSR), and validated the proposed system on automotive-class devices. While the original article provides an overview of the methodology and key results, several additional details are necessary for a complete understanding and replication of the experiments.
Specifically, this document provides extended descriptions of the experimental setup, parameter configurations, additional ablation studies, and supporting results that could not be included in the main manuscript due to space limitations. These materials aim to enhance transparency, reproducibility, and provide a deeper insight into the experimental procedures and results reported in the main paper.
S1 Dataset Classes
Pakistani traffic signs dataset covering 35 classes listed in Table S1, were obtained from Kaggle [38].
Table S1: List of 35 Traffic Sign Classes in the Pakistani Traffic Sign Dataset [38] (Kaggle)
| Class | Traffic Sign | Class | Traffic Sign |
|---|---|---|---|
| 0 | Bridge Ahead | 18 | Slow |
| 1 | Cross Roads | 19 | Speed Breaker Ahead |
| 2 | Give Way | 20 | Speed Limit (20 km/h) |
| 3 | Left Bend | 21 | Speed Limit (25 km/h) |
| 4 | No Horns | 22 | Speed Limit (30 km/h) |
| 5 | No Mobile Allowed | 23 | Speed Limit (40 km/h) |
| 6 | No Overtaking | 24 | Speed Limit (45 km/h) |
| 7 | No Parking | 25 | Speed Limit (50 km/h) |
| 8 | No U-Turn | 26 | Speed Limit (60 km/h) |
| 9 | No Left Turn | 27 | Speed Limit (65 km/h) |
| 10 | No Right Turn | 28 | Speed Limit (70 km/h) |
| 11 | Parking | 29 | Speed Limit (80 km/h) |
| 12 | Pedestrians | 30 | Steep Descent |
| 13 | Railway Crossing | 31 | Stop 1 |
| 14 | Right Bend | 32 | Stop 2 |
| 15 | Road Divides | 33 | U-Turn |
| 16 | Roundabout Ahead | 34 | Zigzag Road Ahead |
| 17 | Sharp Right Turn |
S2 Testing and Experimental Setup
To validate the real-time performance of the deployed ADAS framework on the Jetson Orin Nano, a comprehensive testing setup was established. The testing setup consisted of three major components: the edge computing device (Jetson Orin Nano), an external camera for real-time visual input, and a local web server for live monitoring of the processed output. The entire setup was powered through a portable battery pack to ensure mobility and field testing feasibility.
As illustrated in Figure S1, the Jetson Orin Nano was powered by a battery backup and connected via USB to an external camera mounted on a tripod stand for stable video acquisition. An Intel RealSense D435 RGB-D camera was used for video capture, employing the factory-calibrated intrinsic and extrinsic parameters provided by the manufacturer. The Orin Nano hosted the ADAS framework, performing both lane departure warning and traffic sign recognition tasks.
A PREPRINT
simultaneously. To visualize the processed results in real-time, a lightweight local web server was deployed on the device. The server streamed the inference output over the local network, enabling visualization on any connected device such as a laptop or mobile phone.
(a)
(b)

(c)
Figure S1: Experimental setup for real-time testing of the ADAS framework on Jetson Orin Nano. (a) Jetson Orin Nano powered through a portable battery. (b) Camera mounted on a tripod connected to the Orin Nano. (c) Local web server visualization of the real-time stream.
During testing, the framework successfully processed live road video streams, generating lane departure and traffic sign recognition results in real time. The integrated system achieved a stable 15 FPS end-to-end processing rate, maintaining low latency and reliable detection even under varying lighting conditions. The qualitative results of real-time testing are shown in Figure S2 and Figure S3, where detected lanes with warning and recognized traffic signs are superimposed on the live video feed.
(a)
(b)

Figure S2: Qualitative real-time visualization of the proposed ADAS system. (a) displays the live camera feed from the test environment, and (b) illustrates the processed frame showing accurate lane detection and identification of the “Speed Breaker Ahead” traffic sign.
Other than the Jetson Orin Nano, the lane departure module was also tested on other edge devices such as the Jetson Xavier, Jetson Nano, and Raspberry Pi. As per Table S2, the Jetson Orin Nano delivered higher performance compared to the other tested platforms. It achieved an inference speed of 18 FPS for the traffic sign recognition module and 32 FPS for the lane departure module with ONNX optimization. The system maintained a real-time processing speed of 15 FPS when both modules were integrated into a single pipeline. This outcome confirms that the Jetson Orin Nano is well matched for embedded applications where low latency and real-time responsiveness are critical.
For comparison, the proposed system was also tested on other computing resources. First, it was tested on a general-purpose laptop (Dell Latitude, Core i5 8th Gen with 16 GB RAM and a 3.6 GHz processor, without GPU). It supported quantized models for running both modules, but its performance was comparatively lower than the other systems: the lane departure module ran at 9.5 FPS, the traffic sign recognition module ran at 7 FPS, and the combined pipeline operated at 5.5 FPS. Additionally, the lane module was tested on other NVIDIA Jetson platforms, namely the Jetson Nano and Jetson Xavier. On the Jetson Xavier, the lane departure module was tested with a PyTorch model, achieving
A PREPRINT
(a)

(b)
(c)
Figure S3: Qualitative real-time results of the proposed ADAS framework. (a) shows detection of a “Speed Limit 40” sign with no lane marking warning, indicating that the vehicle is at a safe distance. (b) illustrates the same detected sign when the vehicle moves closer to the lane boundary, triggering a lane departure warning on the frame. (c) presents detection of a “Stop” sign with no warning generated, as the vehicle remains within the safe zone.
16 FPS. On the Jetson Nano (optimized with TensorRT), the same module achieved 11.1 FPS. These results highlight the importance of choosing appropriate hardware and leveraging model optimization techniques such as ONNX conversion, quantization, and TensorRT acceleration. The Jetson Orin Nano demonstrated the most balanced performance among all evaluated devices, confirming its suitability for deployment of the proposed real-time ADAS framework in edge environments.
Table S2: Performance of Lane Departure Warning, Traffic Sign Recognition, and Combined Task on different hardware platforms. The module marked with * in the “Framework” column for the Jetson Orin Nano denotes that the model was run on CPU.
| Hardware | Task | Framework | Processing Unit | Real-Time FPS |
|---|---|---|---|---|
| Jetson Orin Nano | Lane | PyTorch | GPU | 25.50 |
| ONNX | 32.00 | |||
| TensorRT | 32.50 | |||
| Quantized* | 22.0 | |||
| Sign | ONNX | 18.00 | ||
| Lane+Sign | ONNX | 15.00 | ||
| Jetson Xavier | Lane | PyTorch | GPU | 16.0 |
| Jetson Nano | Lane | PyTorch | GPU | 11.10 |
| ONNX | 8.20 | |||
| TensorRT | 11.40 | |||
| Raspberry Pi 4B | Lane | PyTorch | CPU | 0.22 |
| ONNX | 1.80 | |||
| Dell Laptop core i5 8th Gen, 16 GB RAM, 3.6 GHz processor without GPU | Lane | PyTorch | CPU | 0.37 |
| ONNX | 4.20 | |||
| Quantized | 9.50 | |||
| Sign | ONNX | 7.00 | ||
| Lane+Sign | ONNX | 5.50 |