An Integrated YOLOv8 and Bayesian-Optimized 1D CNN Framework for Traffic-Aware Route Planning in Smart Cities
Traffic congestion in urban areas poses significant challenges to mobility, productivity, and environmental sustainability. The best-route determination system is a fundamental pillar of Smart Transportation and an essential component of the Smart City framework. To address the limitations of static routing, this study aims to develop an integrated framework for dynamic, traffic-aware route planning. The proposed methodology comprises three stages: (1) real-time vehicle detection and counting from Closed-Circuit Television (CCTV) footage using You Only Look Once version 8 (YOLOv8); (2) road-density prediction using a One-Dimensional Convolutional Neural Network optimized via Bayesian Optimization (1D CNN-BO); and (3) best-route selection using the A-Star algorithm, which employs a cost function that jointly incorporates distance and predicted density. Our dataset includes 4,224 vehicle images and a 320-row reference table of traffic conditions. YOLOv8 achieved a mean Average Precision ([email protected]) of 85.4% for detection. Separately, direct vehicle-counting accuracy was 78.61% (motorcycle: 69.52%; car: 87.71%). These two metrics measure different aspects of performance, detection quality and counting reliability. The 1D CNN model attained 93.75% accuracy, while the Bayesian-optimized configuration achieved 96.88%, representing an observed improvement of 3.13 percentage points under the current experimental protocol. On the synthetic test set derived from the same reference table, the 1D CNN-BO reproduced the deterministic reference labels for all six-time conditions (08:00, 09:00, 13:00, 14:00, 16:00, 17:00), corresponding to 100% reference-label agreement. This is a rule-consistency check within the synthetic reference-table domain, not an estimate of real-world predictive accuracy; therefore, no claim of 100% generalization is made. Using the BPR (Bureau of Public Roads) volume-delay function to estimate travel time, the A-Star algorithm consistently selected Route 4 (Bundaran, Charitas, Sekip, Polda, TAA, Bandara) as the optimal route, achieving the lowest estimated travel time of 18.09 minutes. These results demonstrate the feasibility of integrating vehicle detection, traffic-condition prediction, and route optimization within a proof-of-concept framework, while highlighting the need for future validation using independent empirical traffic telemetry data.
Authors
- Ahmad Fali Oklilas (ORCID: https://orcid.org/0009-0008-7809-5712)
Institutions
- Sriwijaya University (ID)
Publication Details
- Journal
- Journal of Applied Data Sciences
- Published
- 2026-12-01
- DOI
- https://doi.org/10.47738/jads.v7i4.1538
- Primary Topic
- Traffic Prediction and Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00