Open Access
ARTICLE
Intelligent Urban Transportation over Complex Vehicle Networks with YOLOv8 for Traffic Flow Monitoring
1 Department of Information Systems, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Al-Kharj, Saudi Arabia
2 Department of Computer Science, University of Poonch, Rawalakot, AJK, Pakistan
3 Department of Information Technology, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia
4 Department of Information Technology, College of Computing and Informatics, Saudi Electronic University, Riyadh, Saudi Arabia
5 Department of Computer Science, Air University, Islamabad, Pakistan
6 Department of Computer Science and Engineering, College of Informatics, Korea University, Seoul, Republic of Korea
7 Department of Computer Engineering, Tech University of Korea, 237 Sangidaehak-ro, Siheung-si, Gyeonggi-do, Republic of Korea
* Corresponding Author: Jeongmin Park. Email:
(This article belongs to the Special Issue: Complex Network Approaches for Resilient and Efficient Urban Transportation Systems)
Computers, Materials & Continua 2026, 89(2), 38 https://doi.org/10.32604/cmc.2026.086550
Received 05 June 2026; Accepted 14 July 2026; Issue published 15 September 2026
Abstract
Accurate vehicle detection, tracking, and counting are fundamental components of Intelligent Transportation Systems (ITS) and urban traffic surveillance. However, real-world deployment remains challenging due to domain shifts, illumination variations, occlusions, dense traffic conditions, and heterogeneous data distributions. Existing studies often address detection, tracking, and counting as independent tasks, resulting in limited cross-domain generalization and inconsistent performance in complex traffic environments. To overcome these limitations, this paper proposes a unified cross-domain framework that jointly integrates vehicle detection, tracking, and lane-aware counting within a single intelligent traffic analytics pipeline. The proposed framework begins with image enhancement using Contrast Limited Adaptive Histogram Equalization (CLAHE) and Gamma Correction to improve visual quality under varying illumination conditions. A Domain-Adversarial Neural Network (DANN) equipped with a Gradient Reversal Layer is employed to learn domain-invariant feature representations across heterogeneous datasets. Vehicle localization is performed using a dual-stage detection strategy in which YOLOv8 generates high-recall object proposals and RetinaNet refines candidate detections to reduce false positives and improve localization accuracy. For multi-object tracking, ByteTrack is enhanced with appearance-based Re-Identification embeddings and Kalman filtering to improve identity preservation and trajectory consistency under occlusions and crowded traffic conditions. Furthermore, a lane-aware multi-zone counting mechanism is introduced to replace conventional line-crossing approaches by enforcing trajectory-consistent spatial transitions across lane-aligned regions. Experimental evaluation on the Cityscapes and KITTI datasets demonstrates significant improvements in detection accuracy, tracking robustness, identity preservation, cross-domain generalization, and vehicle counting performance. Ablation studies further validate the contribution of each module to the overall framework. The proposed system provides an effective solution for real-time urban traffic monitoring and intelligent transportation analytics across heterogeneous environments.Keywords
Intelligent Transportation Systems (ITS) and unmanned vehicle perception have become essential for modern smart cities, enabling real-time traffic monitoring, congestion analysis, and safety management. Accurate vehicle detection, multi-object tracking, and counting are critical for reliable decision-making in dynamic urban environments. However, performance is often degraded due to domain shift, occlusion, illumination variation, and dataset imbalance. In addition, urban transportation can be represented as complex networks, where intersections act as nodes and road segments as edges, and traffic flow dynamics directly affect congestion propagation and system resilience.
Recent deep learning-based methods have significantly improved vehicle perception. One-stage detectors such as YOLO-based models achieve high-speed inference, while loss-optimized architectures improve robustness in dense scenes. Similarly, multi-object tracking has evolved from motion-only approaches to hybrid methods combining motion and appearance features. Despite these advances, most existing approaches treat detection, tracking, and counting as separate tasks, limiting their generalization across domains and real-world deployment scenarios.
To address these limitations, this work proposes a unified cross-domain vehicle perception framework integrating detection, tracking, and counting. The proposed pipeline begins with image enhancement using CLAHE and gamma correction to reduce illumination effects. A Domain-Adversarial Neural Network (DANN) with Gradient Reversal Layer [1] is employed to learn domain-invariant features across Cityscapes and KITTI. For detection, a YOLOv8-based high-recall model is refined using RetinaNet to improve precision [2,3]. For tracking, ByteTrack is enhanced with Re-ID embeddings and Kalman filtering to reduce identity switches and ensure temporal consistency [4]. Finally, a lane-aware multi-zone counting strategy is introduced, modeling traffic flow as structured transitions within spatial zones aligned with urban network topology. Experimental evaluation on Cityscapes [5] and KITTI [6] demonstrates improved detection accuracy, tracking stability, and counting performance, with ablation studies validating the contribution of each module.
Research Gap and Novelty
Although significant progress has been achieved in vehicle detection, tracking, and traffic monitoring, most existing studies focus on these tasks independently. Detection-oriented methods primarily emphasize localization accuracy, while tracking frameworks focus on identity preservation without explicitly considering cross-domain robustness and counting consistency. Furthermore, many traffic counting approaches rely on simple line-crossing mechanisms that are highly sensitive to occlusion, identity switches, and trajectory fragmentation.
Unlike existing approaches, the proposed framework integrates cross-domain adaptation, dual-stage vehicle detection, identity-aware tracking, trajectory refinement, and lane-aware counting within a unified architecture. The novelty of this work lies not in introducing a new detector or tracker, but in establishing a coherent cross-domain traffic analytics framework that improves consistency across all stages of vehicle perception and traffic analysis. The main contributions of this work are:
• A unified cross-domain vehicle analytics framework is proposed that jointly performs detection, tracking, and lane-aware counting within a single intelligent transportation pipeline.
• A feature-level domain adaptation mechanism based on Domain-Adversarial Neural Networks (DANN) is integrated to improve cross-dataset generalization between heterogeneous traffic environments.
• A dual-stage vehicle detection strategy combining YOLOv8 and RetinaNet is introduced to balance detection recall and localization precision under dense traffic conditions.
• An enhanced ByteTrack framework incorporating Re-Identification embeddings and Kalman filtering is developed to improve identity consistency and reduce tracking fragmentation.
• A novel lane-aware multi-zone counting strategy is proposed that leverages trajectory-consistent spatial transitions for robust vehicle counting in multi-lane urban traffic scenarios.
• Extensive experiments, cross-domain evaluations, and ablation studies demonstrate the effectiveness of the proposed framework for intelligent urban traffic surveillance applications.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 describes the proposed methodology. Section 4 presents the experimental setup. Section 5 discusses the results, and Section 6 concludes the paper.
Vehicle detection, tracking, and counting are core components of Intelligent Transportation Systems (ITS) and have been extensively studied for applications in traffic monitoring and autonomous driving. Despite significant progress, existing methods still face challenges in handling occlusion, scale variation, and cross-domain generalization in complex urban environments.
Deep learning-based object detectors have significantly improved vehicle detection performance in recent years. Two-stage detectors such as Faster R-CNN [7] achieve strong localization accuracy but incur high inference cost, whereas one-stage detectors such as SSD [8] and YOLOv8 [9] enable real-time inference by directly predicting bounding boxes and class probabilities in a single forward pass, making them suitable for traffic surveillance applications. More recent variants, including YOLOv9 [10] and YOLOv10 [11], further improve the accuracy-latency trade-off, while transformer-based real-time detectors such as RT-DETR [12] eliminate the need for non-maximum suppression. However, their performance degrades in dense scenes due to occlusion and class imbalance. Focal-loss-based methods such as RetinaNet address this issue by prioritizing hard examples, improving robustness in challenging conditions [3]. Nevertheless, most existing detection approaches still struggle to maintain a balance between accuracy and real-time performance in highly congested traffic scenarios. In addition, evaluations are often limited to single datasets such as Cityscapes [5] and KITTI [6], while larger and more diverse benchmarks such as Mapillary Vistas [13] and nuScenes [14] remain comparatively underexplored in integrated detection-tracking pipelines.
2.2 Multi-Object Tracking Methods
Multi-object tracking (MOT) focuses on maintaining consistent object identities across video frames. Classical methods such as SORT [15] utilize Kalman filtering and Hungarian assignment, offering computational efficiency but suffering from poor performance under occlusion. To improve robustness, DeepSORT [16] incorporates Re-Identification (Re-ID) features, enhancing identity preservation in crowded scenes. More recent methods such as ByteTrack [4] improve tracking performance by leveraging both high- and low-confidence detections without requiring complex appearance modeling, while observation-centric and appearance-augmented variants such as OC-SORT [17], BoT-SORT [18], and StrongSORT [19] further improve robustness under occlusion. Despite these advancements, identity switches and fragmented trajectories remain significant challenges in dense traffic environments, particularly under occlusion and domain shift conditions.
2.3 Domain Adaptation in Visual Detection
Domain adaptation techniques aim to reduce performance degradation when models are transferred across different environments. The Domain-Adversarial Neural Network (DANN) proposed by Ganin et al. [1] introduces a Gradient Reversal Layer (GRL) to learn domain-invariant representations. Related approaches instead align feature distributions using maximum mean discrepancy [20], adversarial discriminative training [21], or cycle-consistent image translation [22]. While effective, most existing approaches focus on generic object detection tasks and do not fully address traffic-specific cross-dataset challenges. Generalization between Cityscapes and KITTI remains insufficiently explored in integrated detection–tracking pipelines. Moreover, only limited work integrates domain adaptation directly into end-to-end traffic analysis systems.
2.4 Trajectory Modeling and Motion Estimation
Trajectory modeling is essential for maintaining temporal consistency in multi-object tracking systems. The Kalman filter is widely used for motion prediction due to its efficiency and ability to handle uncertainty in object movement [23]. However, many modern tracking pipelines focus primarily on detection and association, often neglecting trajectory smoothing. This results in unstable bounding boxes and jitter, which negatively impacts downstream tasks such as vehicle counting and traffic flow estimation. Therefore, incorporating motion modeling remains critical for reliable real-world deployment.
Vehicle counting approaches are generally categorized into line-based, region-based, and trajectory-based methods. Line-crossing techniques detect vehicles when they cross predefined virtual lines but are highly sensitive to occlusion and tracking errors [24]. Region-based methods improve robustness by dividing the scene into spatial zones; however, they often ignore lane-level structure, leading to ambiguity in multi-lane traffic [25]. Trajectory-based methods improve counting accuracy but still depend heavily on stable tracking performance [26]. Overall, existing approaches rarely address detection uncertainty, tracking instability, and domain shift simultaneously, limiting their effectiveness in real-world traffic systems.
2.6 Complex Network Models in Transportation
Complex network theory provides a mathematical framework for analyzing urban transportation systems, where intersections are modeled as nodes and roads as edges [27]. Metrics such as centrality and clustering coefficients help identify critical nodes and congestion points. Although these models are useful for macroscopic traffic analysis, most existing studies rely on static or coarse-grained data. In contrast, this work integrates real-time detection, tracking, and lane-aware counting to enable fine-grained traffic flow analysis, bridging the gap between theoretical network models and practical ITS applications.
This study proposes a unified domain-adaptive framework for robust vehicle detection, tracking, and counting in complex traffic environments. The system integrates multiple stages including preprocessing, domain adaptation, multi-scale object detection, identity-aware tracking, trajectory refinement, and lane-based counting to handle challenges such as illumination variation, domain shift, occlusion, and dynamic traffic flow. Fig. 1 shows the architecture workflow of the proposed system.

Figure 1: Architecture of the proposed intelligent traffic surveillance system.
The preprocessing stage aims to improve input frame quality and reduce the effects of illumination variations, shadows, and noise commonly observed in real-world traffic scenes. To achieve this, a two-step enhancement process is applied, consisting of contrast enhancement and intensity normalization, ensuring more stable and discriminative visual features for subsequent detection and tracking modules. Initially, each input frame
where
where
This enhanced output preserves essential visual structures while reducing environmental distortions. Consequently, downstream modules such as domain adaptation, detection (YOLOv8/RetinaNet), and tracking receive more consistent and robust feature representations, leading to improved overall system stability and accuracy under diverse traffic conditions. The output of the CLAHE can be depicted in Fig. 2.

Figure 2: Enhanced preprocessing results using CLAHE and gamma correction on Cityscapes and KITTI.
3.2 Feature-Level Domain Adaptation
In cross-dataset traffic analysis, models often suffer from performance degradation due to domain shift caused by variations in imaging conditions, viewpoints, and scene dynamics. To address this issue, a Domain-Adversarial Neural Network (DANN) is incorporated to learn domain-invariant feature representations at the feature level, improving generalization between datasets such as Cityscapes and KITTI. The overall architecture of the proposed domain adaptation module is illustrated in Fig. 3.

Figure 3: Feature-level domain adaption framework (DANN).
Given an input image I, a deep feature extractor Gf, implemented using a CSPDarknet and ResNet backbone, maps it to a latent representation:
where F encodes high-level spatial and semantic information and is shared across detection and domain classification tasks. The structure of the feature extraction process is shown in Fig. 4. To enforce domain invariance, a domain classifier

Figure 4: Feature extractor architecture (backbone network).
The corresponding domain classification loss is defined as
where
This mechanism forces the feature extractor to generate representations that are both discriminative for detection and invariant across domains [30]. The overall training objective is defined as:
where
3.3 Multi-Object Detection Using YOLOv8
Following domain adaptation, the proposed framework performs multi-object detection using domain-invariant feature representations F, enabling robust localization across heterogeneous datasets. By directly utilizing features learned through adversarial training, the detection module mitigates performance degradation caused by domain shift and environmental variability [31]. To achieve efficient and real-time detection, YOLOv8 is employed as a one-stage detector due to its capability to jointly perform localization and classification in a single forward pass [9]. Given the adapted feature maps F, the detector
Each detection
where (
This strategy enables accurate detection of small distant vehicles as well as large nearby objects. The detection network is optimized using a composite loss function:
where

Figure 5: Multi-object detection using the YOLOv8 algorithm.
Furthermore, the proposed detection module provides high-recall object localization, which serves as a foundation for subsequent stages including vehicle refinement (RetinaNet), identity-aware tracking, and trajectory estimation. Compared to conventional YOLO-based frameworks, the use of domain-adaptive features significantly enhances detection stability under varying environmental and dataset conditions. The output of the multi-objects can be seen in Fig. 6.

Figure 6: Multi-object detection using the YOLOv8.
3.4 Vehicle-Specific Detection Refinement Using RetinaNet
To improve vehicle localization accuracy in complex traffic environments, a RetinaNet-based refinement module is introduced after the multi-object detection stage. Although YOLOv8 provides high-recall detection by capturing all object instances, its predictions for vehicles may exhibit localization inaccuracies and false positives under occlusion, scale variation, and dense traffic conditions. To mitigate these limitations, a vehicle-specific second-stage detector is employed to refine candidate regions, thereby improving precision while preserving recall. The refined vehicle detections are formulated as:
where
This multi-scale aggregation is particularly important in traffic scenes, where vehicles appear at significantly different scales due to perspective variations. To further address the severe foreground–background imbalance inherent in dense detection tasks, RetinaNet utilizes Focal Loss:
where α = 0.25 and γ = 2. This formulation suppresses easy negative samples and emphasizes hard examples, leading to improved discrimination of challenging vehicle instances and a reduction in false detections. The background for the RetinaNet can be seen in Fig. 7.

Figure 7: Refined vehicle detection using RetinaNet.
Unlike conventional two-stage detectors (e.g., Faster R-CNN) that rely on region proposal networks, the proposed framework integrates a high-recall one-stage detector (YOLOv8) with a precision-oriented dense detector (RetinaNet). This design introduces a cross-detector refinement strategy, where candidate regions generated by YOLOv8 are selectively re-evaluated by RetinaNet. Compared to single-detector pipelines, this approach reduces error propagation and improves localization stability, particularly in cluttered and high-density traffic scenes. Moreover, restricting refinement to ROIs significantly lowers computational overhead compared to full-frame re-detection, making the framework suitable for real-time intelligent transportation applications.
Overall, this hierarchical detection paradigm effectively balances recall and precision, resulting in more accurate and reliable vehicle localization, which directly benefits downstream tasks such as multi-object tracking and vehicle counting. The result for the vehicle detection can be seen in Fig. 8.

Figure 8: Vehicle detection via RetinaNet.
3.5 Feature Embedding and Multi-Object Tracking
To address the limitations of conventional tracking-by-detection approaches in complex urban environments, a hybrid multi-object tracking framework is proposed that integrates domain-adaptive appearance embedding, feature-aware association, and motion-guided prediction. By jointly exploiting semantic feature consistency and temporal dynamics, the framework achieves robust identity preservation under occlusion, illumination variation, and dense traffic conditions. Each detected vehicle Vi is encoded into a discriminative embedding vector, as expressed in Eq. (16).
where
This enables reliable matching under occlusion and motion ambiguity, complementing geometric overlap [35]. The ByteTrack framework is extended by incorporating feature-aware association. Unlike the original formulation, which relies primarily on detection confidence, the proposed method integrates appearance similarity into both high- and low-confidence matching stages, reducing identity switches and improving trajectory continuity. For each pair of detection i and existing track j, the association cost
where
This enables stable tracking during short-term detection failures and occlusions. A lightweight track management strategy is further applied to control initialization and termination, preventing noisy trajectories while preserving identity consistency [36]. The proposed framework extends ByteTrack with domain-adaptive embeddings and unified appearance–motion association, enabling robust cross-domain tracking and improved identity stability. The effectiveness of each component is validated through ablation studies in Section 4. After association, Kalman filtering, and track management, the tracker outputs a set of n confirmed vehicle trajectories across the video sequence:
where each trajectory

Figure 9: Re-ID embeddings and similarity computations.
3.6 Lane-Aware Multi-Zone Vehicle Counting
Following tracking, a lane-aware multi-zone vehicle counting strategy is introduced that reformulates counting as a trajectory-based zone transition problem rather than a traditional line-crossing event. The scene is partitioned into structured spatial zones aligned with traffic lanes, enabling direction-aware and occlusion-robust counting in dense urban traffic. The scene is defined as:
A vehicle is counted only when its trajectory exhibits a valid transition between adjacent zones.
In Eq. (22), the indicator function I(·) returns 1 if and only if trajectory
where
This filtering mechanism removes short-lived or fragmented trajectories, thereby minimizing counting errors caused by identity switches or detection noise. The total lane-wise count is computed as:
This formulation enables fine-grained lane-level traffic analysis within a unified framework. The proposed method reformulates vehicle counting as a trajectory-consistent, direction-constrained zone transition problem. Unlike conventional line-crossing methods, it leverages lane-aware spatial decomposition and motion-guided validation, ensuring robustness against occlusion, identity switches, and detection noise. The integration of tracking, ReID embeddings, and Kalman filtering enables reliable spatiotemporal consistency, while supporting scalable multi-lane traffic analytics in a unified formulation. The final output is shown in Eq. (26) where each element corresponds to a specific lane or zone. The result for the Lane aware can be determined in Fig. 10.

Figure 10: Lane-aware zone counting.
The proposed method was implemented and validated in the Python 3.8 environment, utilizing widely adopted deep learning and computer vision libraries. The framework integrates preprocessing, domain adaptation, detection, tracking, and counting modules into a unified pipeline. Key dependencies include:
• PyTorch 1.10 (for YOLOv8, RetinaNet, and DANN-based training)
• OpenCV 4.5 (for image preprocessing and visualization)
• NumPy (for matrix operations)
• scikit-learn 0.24 (for evaluation metrics)
Experiments were performed on an Intel Core i5-12500H 2.50 GHz processor with 24 GB RAM and an NVIDIA RTX-3050 GPU with 4 GB memory. The model demonstrated superior performance across both Cityscapes and KITTI datasets, validating its robustness in diverse traffic environments.
The Cityscapes Dataset comprises high-resolution urban street images captured under varying environmental conditions. It contains 5000 finely annotated images with pixel-level labels. The dataset includes vehicle categories such as cars, trucks, and buses, with dense traffic scenes and complex occlusions. Its high resolution (2048 × 1024 pixels) and diverse lighting conditions make it suitable for evaluating detection, tracking, and counting performance in real-world urban scenarios.
The KITTI Dataset is widely used for autonomous driving research and provides challenging real-world driving sequences. It contains RGB images with a resolution of approximately 1242 × 375 pixels and includes multiple traffic scenarios such as urban roads and highways. The dataset introduces challenges such as motion blur, scale variation, and camera movement, making it ideal for evaluating cross-domain generalization.
4.2 Model Evaluation and Experimental Results
Detection performance is evaluated using Precision, Recall, F1-score, and mean Average Precision (mAP) at IoU thresholds of 0.5 and 0.5:0.95, following the standard evaluation protocols of the Cityscapes [5] and KITTI [6] benchmarks. Tracking performance is assessed using Multiple Object Tracking Accuracy (MOTA), Identity F1-score (IDF1), and Higher Order Tracking Accuracy (HOTA), which collectively measure detection quality, identity consistency, and overall tracking performance [35,37]. Vehicle counting is evaluated using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and counting accuracy. Vehicle counting results (Table 1) are averaged over three independent runs and reported as mean ± standard deviation. Detection, tracking, cross-domain, efficiency, and ablation results (Tables 2–6) are obtained from a single representative run under a fixed random seed and are therefore reported as point estimates. The results confirm that the integration of multi-scale detection and feature refinement improves overall accuracy. Table 2 shows the comparison across detection model with SOTA techniques.






The proposed method consistently outperforms baseline detectors across both datasets. The improvement is primarily attributed to enhanced feature representation and vehicle-specific refinement, which improves localization accuracy and reduces false positives.
Fig. 11 presents the confusion matrix of the proposed model. The strong diagonal dominance indicates high classification accuracy across vehicle categories, while minimal off-diagonal values demonstrate reduced misclassification.

Figure 11: Confusion matrix for vehicle detection (binary classification).
Table 3 shows the proposed method achieves superior tracking performance, significantly reducing identity switches while maintaining high accuracy. The use of Re-ID embeddings improves identity preservation, while Kalman filtering stabilizes trajectories. Table 1 shows the vehicle counting accuracy.
The proposed lane-aware multi-zone counting method significantly reduces counting errors by incorporating spatial lane constraints and trajectory consistency, thereby avoiding double counting and improving robustness under occlusion.
Domain adaptation significantly improves generalization across datasets by aligning feature distributions between source and target domains, reducing domain discrepancy. Table 4 shows the Cross domain generalization.
Table 5 compares the computational efficiency of the proposed framework with state-of-the-art detection and tracking methods in terms of parameters, FLOPs, FPS, and latency. The results show that lightweight models such as YOLOv8 and ByteTrack achieve higher speed but with limited representational capacity, while transformer-based RT-DETR incurs higher computational cost with reduced real-time performance. In contrast, the proposed method maintains a balanced trade-off, achieving competitive real-time speed (27 FPS) despite higher complexity, while delivering improved overall detection and tracking accuracy, making it suitable for practical intelligent transportation system deployment.
Table 6 demonstrates that each component contributes incrementally to overall performance. Domain adaptation provides the most significant improvement due to reduced domain shift, while RetinaNet enhances detection precision. Fig. 12 shows the precision comparison.

Figure 12: Precision-recall curve comparison.
5.1 Overall Performance Analysis
The proposed framework demonstrates strong performance for vehicle detection, tracking, and counting in complex urban environments by integrating CLAHE-based enhancement, domain adaptation (DANN), dual-stage detection (YOLOv8 with RetinaNet refinement), Re-Identification embeddings, ByteTrack association, and Kalman filtering. Experimental evaluation on Cityscapes Dataset and KITTI Vision Benchmark Suite confirms consistent improvements in detection accuracy, tracking stability, and counting reliability compared to baseline approaches.
5.2 Generalization and Dataset Limitations
The evaluation is limited to two benchmark datasets, which restricts exposure to broader environmental variability such as night-time scenes, adverse weather, and geographically diverse traffic patterns; extending the evaluation to larger benchmarks such as BDD100K [38] and the Waymo Open Dataset [39] remains an important direction for future work. Although domain adaptation partially reduces dataset bias, residual domain shift still affects cross-scene generalization. Additionally, class imbalance in aerial-style distributions leads to biased learning behavior, where dominant classes (e.g., cars and buses) achieve higher recall compared to underrepresented categories such as trucks and bicycles.
5.3 Robustness under Challenging Conditions
Performance degradation is observed under low-contrast, motion-blurred, and heavily occluded conditions. While deep detection backbones mitigate a significant portion of these issues, residual errors persist in densely populated traffic scenes. Moreover, any significant variation in UAV altitude, viewing angle, or sensor configuration introduces distribution shifts that are not fully compensated by the current adaptation mechanism.
5.4 Computational and Deployment Constraints
The multi-stage architecture improves accuracy but introduces additional computational overhead due to sequential processing across enhancement, adaptation, detection, feature extraction, and tracking stages. This increases inference latency and limits direct deployment on low-power edge devices.
It should be noted that model compression techniques such as pruning and INT8 quantization were not applied in the current experimental setup; they are proposed here as directions for future work to reduce the computational cost of YOLOv8 with minimal accuracy loss. Similarly, replacing heavy feature extraction modules with lightweight architecture and applying dimensionality reduction techniques are additional future directions that can further improve efficiency. For current deployment scenarios requiring real-time processing on resource-constrained devices, a hybrid UAV–edge or ground-station architecture is recommended.
5.5 Accuracy-Latency Trade-Off Analysis
The integration of RetinaNet refinement and appearance-based Re-Identification embeddings introduces additional computational overhead compared with the original ByteTrack framework. Experimental results indicate that the proposed framework achieves superior detection accuracy and tracking stability while maintaining near real-time performance. Specifically, the FPS decreases from 30 FPS (ByteTrack) to 27 FPS in the proposed framework. However, this moderate reduction in processing speed is accompanied by substantial improvements in MOTA, IDF1, HOTA, and identity-switch reduction. As confirmed by the empirical data in Table 5, the proposed framework operates at 27 FPS with a latency of 37 ms compared to 30 FPS (28 ms) for ByteTrack alone while achieving higher MOTA (0.90 vs. 0.87), IDF1 (0.88 vs. 0.85), HOTA (0.85 vs. 0.81), and a reduction in identity switches from 70 to 45 (Table 3). Therefore, the proposed framework achieves a favorable balance between computational efficiency and analytical accuracy, making it suitable for intelligent transportation applications where reliability is prioritized over marginal speed improvements.
In summary, while the proposed framework significantly improves multi-stage vehicle detection, tracking, and counting performance, its limitations stem from dataset diversity, computational complexity, and sensitivity to extreme environmental conditions. Future work will focus on large-scale cross-domain training, fully lightweight end-to-end architectures, and improved robustness under dynamic UAV configurations and real-world deployment constraints.
The proposed framework provides a unified approach for vehicle detection, tracking, and lane-aware counting in complex urban traffic scenes by integrating image enhancement, domain adaptation, dual-stage detection, Re-ID embeddings, ByteTrack association, and Kalman filtering. Within urban transportation networks, it models traffic zones as network components and vehicle trajectories as flow measurements for fine-grained congestion and traffic analysis. Experimental results on the Cityscapes and KITTI datasets show improved detection, tracking, and counting performance under occlusion and cross-domain variations, while also identifying bottleneck zones effectively.
Limitations and Future Research Directions
Despite the promising performance achieved by the proposed framework, several limitations remain. First, the detection accuracy may decrease when vehicles occupy only a small number of pixels in distant traffic scenes, making small-object localization challenging. Second, although the integration of Re-Identification embeddings improves tracking consistency, severe occlusions and dense traffic conditions can still introduce identity switches and fragmented trajectories. Third, the framework has been evaluated primarily on standard urban driving datasets and may experience performance degradation under adverse environmental conditions such as heavy rain, fog, low illumination, or extreme weather scenarios. Fourth, while Domain-Adversarial Neural Networks improve cross-domain generalization, residual domain discrepancies may still exist when transferring to unseen traffic environments with significantly different visual characteristics. Finally, the combination of image enhancement, dual-stage detection, domain adaptation, and tracking modules introduces additional computational overhead, which may limit deployment on resource-constrained edge devices. Future work will focus on lightweight model optimization, weather-robust perception, advanced occlusion handling, and graph-based traffic network analysis for large-scale intelligent transportation systems.
Acknowledgement: Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2026R97), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.
Funding Statement: This work was supported by the IITP (Institute of Information & Communications Technology Planning & Evaluation)-ICAN (ICT Challenge and Advanced Network of HRD) (IITP-2026-RS-2022-00156326,33) grant funded by the Korea government (Ministry of Science and ICT). This research is supported and funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2026R97), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. This study is supported via funding from Prince sattam bin Abdulaziz University project number (PSAU/2026/R/1447).
Author Contributions: Study conception and design: Muhammad Adeel Ahmed Tahir, Adnan Ahmed Rafique and Maha Abdelhaq; data collection: Muhammad Adeel Ahmed Tahir, Raed Alsaqour and Mohammed Alonazi; analysis and interpretation of results: Maha Abdelhaq, Raed Alsaqour and Ahmad Jalal; draft manuscript preparation: Mohammed Alonazi, Maha Abdelhaq, Jeongmin Park and Ahmad Jalal. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: All publicly available datasets are used in the study.
Ethics Approval: Not applicable.
Conflicts of Interest: The authors declare no conflicts of interest.
References
1. Ganin Y, Ustinova E, Ajakan H, Germain P, Larochelle H, Laviolette F, et al. Domain-adversarial training of neural networks. J Mach Learn Res. 2016;17(59):1–35. [Google Scholar]
2. Redmon J, Divvala S, Girshick R, Farhadi A. You only look once: unified, real-time object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2016 Jun 27–30; Las Vegas, NV, USA. p. 779–88. doi:10.1109/CVPR.2016.91. [Google Scholar] [CrossRef]
3. Lin TY, Goyal P, Girshick R, He K, Dollár P. Focal loss for dense object detection. IEEE Trans Pattern Anal Mach Intell. 2020;42(2):318–27. doi:10.1109/TPAMI.2018.2858826. [Google Scholar] [CrossRef]
4. Zhang Y, Sun P, Jiang Y, Yu D, Weng F, Yuan Z, et al. ByteTrack: multi-object tracking by associating every detection box. In: Proceedings of the European Conference on Computer Vision (ECCV); 2022 Oct 23–27; Tel Aviv, Israel. p. 1–21. doi:10.1007/978-3-031-20047-2_1. [Google Scholar] [CrossRef]
5. Cordts M, Omran M, Ramos S, Rehfeld T, Enzweiler M, Benenson R, et al. The cityscapes dataset for semantic urban scene understanding. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2016 Jun 27–30; Las Vegas, NV, USA. p. 3213–23. doi:10.1109/CVPR.2016.350. [Google Scholar] [CrossRef]
6. Geiger A, Lenz P, Urtasun R. Are we ready for autonomous driving? The KITTI vision benchmark suite. In: Proceedings of the 2012 IEEE Conference on Computer Vision and Pattern Recognition; 2012 Jun 16–21; Providence, RI, USA. p. 3354–61. doi:10.1109/CVPR.2012.6248074. [Google Scholar] [CrossRef]
7. Ren S, He K, Girshick R, Sun J. Faster R-CNN: towards real-time object detection with region proposal networks. IEEE Trans Pattern Anal Mach Intell. 2017;39(6):1137–49. doi:10.1109/TPAMI.2016.2577031. [Google Scholar] [CrossRef]
8. Liu W, Anguelov D, Erhan D, Szegedy C, Reed S, Fu CY, et al. SSD: single shot MultiBox detector. In: Proceedings of the European Conference on Computer Vision (ECCV); 2016 Oct 11–14; Amsterdam, The Netherlands. p. 21–37. doi:10.1007/978-3-319-46448-0_2. [Google Scholar] [CrossRef]
9. Jocher G, Chaurasia A, Qiu J. Ultralytics YOLOv8. Computer software. 2023 [cited 2026 Jul 14]. Available from: https://github.com/ultralytics/ultralytics. [Google Scholar]
10. Wang CY, Yeh IH, Mark Liao HY. YOLOv9: learning what you want to learn using programmable gradient information. In: Proceedings of the European Conference on Computer Vision (ECCV); 2024 Sep 29–Oct 4; Milan, Italy. p. 1–21. doi:10.1007/978-3-031-72751-1_1. [Google Scholar] [CrossRef]
11. Wang A, Chen H, Liu L, Chen K, Lin Z, Han J, et al. YOLOv10: real-time end-to-end object detection. Adv Neural Inf Process Syst. 2024;37:107984–8011. doi:10.52202/079017-3429. [Google Scholar] [CrossRef]
12. Zhao Y, Lv W, Xu S, Wei J, Wang G, Dang Q, et al. DETRs beat YOLOs on real-time object detection. In: Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2024 Jun 16–22; Seattle, WA, USA. p. 16965–74. doi:10.1109/CVPR52733.2024.01605. [Google Scholar] [CrossRef]
13. Neuhold G, Ollmann T, Bulò SR, Kontschieder P. The Mapillary Vistas dataset for semantic understanding of street scenes. In: Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV); 2017 Oct 22–29; Venice, Italy. p. 5000–9. doi:10.1109/ICCV.2017.534. [Google Scholar] [CrossRef]
14. Caesar H, Bankiti V, Lang AH, Vora S, Liong VE, Xu Q, et al. nuScenes: a multimodal dataset for autonomous driving. In: Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2020 Jun 13–19; Seattle, WA, USA. p. 11618–28. doi:10.1109/cvpr42600.2020.01164. [Google Scholar] [CrossRef]
15. Bewley A, Ge Z, Ott L, Ramos F, Upcroft B. Simple online and realtime tracking. In: Proceedings of the 2016 IEEE International Conference on Image Processing (ICIP); 2016 Sep 25–28; Phoenix, AZ, USA. p. 3464–8. doi:10.1109/ICIP.2016.7533003. [Google Scholar] [CrossRef]
16. Wojke N, Bewley A, Paulus D. Simple online and realtime tracking with a deep association metric. In: Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP); 2017 Sep 17–20; Beijing, China. p. 3645–9. doi:10.1109/ICIP.2017.8296962. [Google Scholar] [CrossRef]
17. Cao J, Pang J, Weng X, Khirodkar R, Kitani K. Observation-centric SORT: rethinking SORT for robust multi-object tracking. In: Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2023 Jun 17–24; Vancouver, BC, Canada. p. 9686–96. doi:10.1109/CVPR52729.2023.00934. [Google Scholar] [CrossRef]
18. Aharon N, Orfaig R, Bobrovsky BZ. BoT-SORT: robust associations multi-pedestrian tracking. arXiv:2206.14651. 2022. doi:10.48550/arXiv.2206.14651. [Google Scholar] [CrossRef]
19. Du Y, Zhao Z, Song Y, Zhao Y, Su F, Gong T, et al. StrongSORT: make DeepSORT great again. IEEE Trans Multimed. 2023;25:8725–37. doi:10.1109/TMM.2023.3240881. [Google Scholar] [CrossRef]
20. Long M, Cao Y, Wang J, Jordan MI. Learning transferable features with deep adaptation networks. In: Proceedings of the 32nd International Conference on Machine Learning (ICML); 2015 Jul 6–11; Lille, France. p. 97–105. [Google Scholar]
21. Tzeng E, Hoffman J, Saenko K, Darrell T. Adversarial discriminative domain adaptation. In: Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2017 Jul 21–26; Honolulu, HI, USA. p. 2962–71. doi:10.1109/CVPR.2017.316. [Google Scholar] [CrossRef]
22. Hoffman J, Tzeng E, Park T, Zhu JY, Isola P, Saenko K, et al. CyCADA: cycle-consistent adversarial domain adaptation. In: Proceedings of the 35th International Conference on Machine Learning (ICML); 2018 Jul 10–15; Stockholm, Sweden. p. 1989–98. [Google Scholar]
23. Kalman RE. A new approach to linear filtering and prediction problems. J Basic Eng. 1960;82(1):35–45. doi:10.1115/1.3662552. [Google Scholar] [CrossRef]
24. Barcellos P, Bouvié C, Escouto FL, Scharcanski J. A novel video based system for detecting and counting vehicles at user-defined virtual loops. Expert Syst Appl. 2015;42(4):1845–56. doi:10.1016/j.eswa.2014.09.045. [Google Scholar] [CrossRef]
25. Bui KHN, Yi H, Cho J. A multi-class multi-movement vehicle counting framework for traffic analysis in complex areas using CCTV systems. Energies. 2020;13(8):2036. doi:10.3390/en13082036. [Google Scholar] [CrossRef]
26. Song H, Liang H, Li H, Dai Z, Yun X. Vision-based vehicle detection and counting system using deep learning in highway scenes. Eur Transp Res Rev. 2019;11(1):51. doi:10.1186/s12544-019-0390-4. [Google Scholar] [CrossRef]
27. Du J, Cui J, Ren G, Thompson RG. Recognizing the traffic state of urban road networks: a resilience-based data-driven approach. Transp Res Rec. 2025;2679(6):183–202. doi:10.1177/03611981241312914. [Google Scholar] [CrossRef]
28. Pizer SM, Amburn EP, Austin JD, Cromartie R, Geselowitz A, Greer T, et al. Adaptive histogram equalization and its variations. Comput Vis Graph Image Process. 1987;39(3):355–68. doi:10.1016/S0734-189X(87)80186-X. [Google Scholar] [CrossRef]
29. Gonzalez RC, Woods RE. Digital image processing. 4th ed. London, UK: Pearson; 2017. [Google Scholar]
30. Ganin Y, Lempitsky V. Unsupervised domain adaptation by backpropagation. In: Proceedings of the 32nd International Conference on Machine Learning; 2015 Jul 6–11; Lille, France. p. 1180–9. doi:10.5555/3045118.3045244. [Google Scholar] [CrossRef]
31. Wang CY, Bochkovskiy A, Liao HM. YOLOv7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In: Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2023 Jun 17–24; Vancouver, BC, Canada. p. 7464–75. doi:10.1109/CVPR52729.2023.00721. [Google Scholar] [CrossRef]
32. Lin TY, Dollár P, Girshick R, He K, Hariharan B, Belongie S. Feature pyramid networks for object detection. In: Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2017 Jul 21–26; Honolulu, HI, USA. p. 936–44. doi:10.1109/CVPR.2017.106. [Google Scholar] [CrossRef]
33. Liu S, Qi L, Qin H, Shi J, Jia J. Path aggregation network for instance segmentation. In: Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2018 Jun 18–23; Salt Lake City, UT, USA. p. 8759–68. doi:10.1109/CVPR.2018.00913. [Google Scholar] [CrossRef]
34. Zheng L, Yang Y, Hauptmann AG. Person re-identification: past, present and future. arXiv:1610.02984. 2016. [Google Scholar]
35. Ristani E, Solera F, Zou R, Cucchiara R, Tomasi C. Performance measures and a data set for multi-target, multi-camera tracking. In: Proceedings of the European Conference on Computer Vision; 2016 Oct 8–16; Amsterdam, The Netherlands. p. 17–35. doi:10.1007/978-3-319-48881-3_2. [Google Scholar] [CrossRef]
36. Bergmann P, Meinhardt T, Leal-Taixe L. Tracking without bells and whistles. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV); 2019 Oct 27–Nov 2; Seoul, Republic of Korea. p. 941–51. doi:10.1109/iccv.2019.00103. [Google Scholar] [CrossRef]
37. Zhang Y, Wang C, Wang X, Zeng W, Liu W. FairMOT: on the fairness of detection and re-identification in multiple object tracking. Int J Comput Vis. 2021;129(11):3069–87. doi:10.1007/s11263-021-01513-4. [Google Scholar] [CrossRef]
38. Yu F, Chen H, Wang X, Xian W, Chen Y, Liu F, et al. BDD100K: a diverse driving dataset for heterogeneous multitask learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2020 Jun 14–19; Seattle, WA, USA. p. 2636–45. doi:10.1109/CVPR42600.2020.00271. [Google Scholar] [CrossRef]
39. Sun P, Kretzschmar H, Dotiwalla X, Chouard A, Patnaik V, Tsui P, et al. Scalability in perception for autonomous driving: Waymo open dataset. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2020 Jun 14–19; Seattle, WA, USA. p. 2446–54. doi:10.1109/CVPR42600.2020.00252. [Google Scholar] [CrossRef]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools