An Integrated YOLOv8 and Bayesian-Optimized 1D CNN Framework for Traffic-Aware Route Planning in Smart Cities
Abstract
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 (mAP@0.5) 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.
Keywords
Full Text:
PDFReferences
R. C. Shit, “Crowd intelligence for sustainable futuristic intelligent transportation system: A review,” IET Intell. Transp. Syst., vol. 14, no. 6, pp. 480–494, 2020, doi: 10.1049/iet-its.2019.0321.
J. N. Njoku, C. I. Nwakanma, G. C. Amaizu, and D. S. Kim, “Prospects and challenges of Metaverse application in data-driven intelligent transportation systems,” IET Intell. Transp. Syst., vol. 17, no. 1, pp. 1–21, 2023, doi: 10.1049/itr2.12252.
A. Gohar and G. Nencioni, “The role of 5g technologies in a smart city: The case for intelligent transportation system,” Sustain., vol. 13, no. 9, pp. 1–24, 2021, doi: 10.3390/su13095188.
J. Chen, L. Ramanathan, and M. Alazab, “Holistic big data integrated artificial intelligent modeling to improve privacy and security in data management of smart cities,” Microprocess. Microsyst., vol. 81, no. November 2020, p. 103722, 2021, doi: 10.1016/j.micpro.2020.103722.
A. Wang, A. Zhang, E. H. W. Chan, W. Shi, X. Zhou, and Z. Liu, “A review of human mobility research based on big data and its implication for smart city development,” ISPRS Int. J. Geo-Information, vol. 10, no. 1, 2021, doi: 10.3390/ijgi10010013.
D. D. Nguyen and A. Boros, “applied sciences for Future Smart Cities,” Appl. Sci. Artic., vol. 10, p. 8933, 2020.
Hasmawaty, Y. T. Utami, and D. Antoni, “Building Green Smart City Capabilities in South Sumatra, Indonesia,” Sustain., vol. 14, no. 13, pp. 1–16, 2022, doi: 10.3390/su14137695.
S. Saha, “Automated Traffic Law Enforcement System: A Feasibility Study for the Congested Cities of Developing Countries Artificial Intelligence in Traffic Management View project Automated Traffic Law Enforcement System: A Feasibility Study for the Congested Citie,” Int. J. Innov. Technol. Interdiscip. Sci. www .IJITIS.org, vol. 3, no. 1, pp. 1–18, 2020.
F. Hamami, I. A. Dahlan, S. W. Prakosa, and K. F. Somantri, “Big Data Analytics for Processing Real-time Unstructured Data from CCTV in Traffic Management,” 2020 Int. Conf. Data Sci. Its Appl. ICoDSA 2020, pp. 6–10, 2020, doi: 10.1109/ICoDSA50139.2020.9212858.
M. Carranza-García, J. Torres-Mateo, P. Lara-Benítez, and J. García-Gutiérrez, “On the performance of one-stage and two-stage object detectors in autonomous vehicles using camera data,” Remote Sens., vol. 13, no. 1, pp. 1–23, 2021, doi: 10.3390/rs13010089.
D. Reis, J. Kupec, J. Hong, and A. Daoudi, “Real-Time Flying Object Detection with YOLOv8,” 2023.
H. Lou et al., “DC-YOLOv8: Small-Size Object Detection Algorithm Based on Camera Sensor,” Electron., vol. 12, no. 10, pp. 1–14, 2023, doi: 10.3390/electronics12102323.
H. Ngo, “Vehicle-detection-based traffic density estimation at road intersections,” vol. 11, no. 7, pp. 39–46, 2023.
Y. Qiao, Y. Wang, C. Ma, and J. Yang, “Short-term traffic flow prediction based on 1DCNN-LSTM neural network structure,” Mod. Phys. Lett. B, vol. 35, no. 2, pp. 1–17, 2021, doi: 10.1142/S0217984921500421.
H. S. Nogay and H. Adeli, “Detection of Epileptic Seizure Using Pretrained Deep Convolutional Neural Network and Transfer Learning,” Eur. Neurol., vol. 83, no. 6, pp. 602–614, 2021, doi: 10.1159/000512985.
S. Kiranyaz, O. Avci, O. Abdeljaber, T. Ince, M. Gabbouj, and D. J. Inman, “1D convolutional neural networks and applications: A survey,” Mech. Syst. Signal Process., vol. 151, no. May, 2021, doi: 10.1016/j.ymssp.2020.107398.
S. Narmadha and V. Vijayakumar, “Spatio-Temporal vehicle traffic flow prediction using multivariate CNN and LSTM model,” Mater. Today Proc., no. xxxx, 2022, doi: 10.1016/j.matpr.2021.04.249.
D. O. Oyewola, E. G. Dada, T. O. Omotehinwa, O. Emebo, and O. O. Oluwagbemi, “Application of Deep Learning Techniques and Bayesian Optimization with Tree Parzen Estimator in the Classification of Supply Chain Pricing Datasets of Health Medications,” Appl. Sci., vol. 12, no. 19, 2022, doi: 10.3390/app121910166.
A. M. Elshewey, M. Y. Shams, N. El-Rashidy, A. M. Elhady, S. M. Shohieb, and Z. Tarek, “Bayesian Optimization with Support Vector Machine Model for Parkinson Disease Classification,” Sensors, vol. 23, no. 4, pp. 1–21, 2023, doi: 10.3390/s23042085.
D. Foead, A. Ghifari, M. B. Kusuma, N. Hanafiah, and E. Gunawan, “A Systematic Literature Review of A*Pathfinding,” Procedia Comput. Sci., vol. 179, no. 2020, pp. 507–514, 2021, doi: 10.1016/j.procs.2021.01.034.
X. Li, X. Hu, Z. Wang, and Z. Du, “Path planning based on combinaion of improved A-STAR Algorithm and DWA algorithm,” Proc. - 2020 2nd Int. Conf. Artif. Intell. Adv. Manuf. AIAM 2020, no. 1, pp. 99–103, 2020, doi: 10.1109/AIAM50918.2020.00025.
Y. Li, D. Dong, and X. Guo, “Mobile robot path planning based on improved genetic algorithm with A-star heuristic method,” vol. 2020, pp. 1306–1311, 2020, doi: 10.1109/ITAIC49862.2020.9338968.
G. Tang, C. Tang, C. Claramunt, X. Hu, and P. Zhou, “Geometric A-Star Algorithm: An Improved A-Star Algorithm for AGV Path Planning in a Port Environment,” IEEE Access, vol. 9, pp. 59196–59210, 2021, doi: 10.1109/ACCESS.2021.3070054.
D. Shi, Y. Ye, M. Gillwald, and M. Hecht, “Designing a lightweight 1D convolutional neural network with Bayesian optimization for wheel flat detection using carbody accelerations,” Int. J. Rail Transp., vol. 9, no. 4, pp. 311–341, 2021, doi: 10.1080/23248378.2020.1795942.
S. Singh et al., “A novel framework to avoid traffic congestion and air pollution for sustainable development of smart cities,” Sustain. Energy Technol. Assessments, vol. 56, no. March, p. 103125, 2023, doi: 10.1016/j.seta.2023.103125.
K. B. V, H. S, K. P. Madhavi, M. B. S, and J. Shylla, “Detection and Classification of Vehicles and its Applications,” in 2025 Control Instrumentation System Conference (CISCON), IEEE, Aug. 2025, pp. 1–6. doi: 10.1109/CISCON66933.2025.11337630.
S. R. S, S. N. N, and C. Pandeeswaran, “Comprehensive Vehicle Monitoring System Featuring Speed Estimation and Type Classification with ROC Curve Evaluation,” in 2025 4th International Conference on Applied Artificial Intelligence and Computing (ICAAIC), IEEE, Dec. 2025, pp. 2026–2032. doi: 10.1109/ICAAIC64647.2025.11331088.
M. Worachairungreung et al., “Ai-assisted vehicle detection and traffic flow analysis from CCTV imagery using YOLO in the Bangkok metropolitan area,” Transp. Res. Interdiscip. Perspect., vol. 38, p. 102104, Jul. 2026, doi: 10.1016/j.trip.2026.102104.
M. T. Obaidat and L. D. Alomari, “Real-time multi-source AI, computer vision, and GIS fusion for data-driven urban traffic management,” Transp. Res. Interdiscip. Perspect., vol. 36, p. 101895, Mar. 2026, doi: 10.1016/j.trip.2026.101895.
M. A. Bin Zuraimi and F. H. Kamaru Zaman, “Vehicle Detection and Tracking using YOLO and DeepSORT,” in 2021 IEEE 11th IEEE Symposium on Computer Applications & Industrial Electronics (ISCAIE), IEEE, Apr. 2021, pp. 23–29. doi: 10.1109/ISCAIE51753.2021.9431784.
K. Wang, C. Ma, Y. Qiao, X. Lu, W. Hao, and S. Dong, “A hybrid deep learning model with 1DCNN-LSTM-Attention networks for short-term traffic flow prediction,” Phys. A Stat. Mech. its Appl., vol. 583, p. 126293, Dec. 2021, doi: 10.1016/j.physa.2021.126293.
L. Lin, X. Chen, Y. Shen, and L. Zhang, “Towards Automatic Depression Detection: A BiLSTM/1D CNN-Based Model,” Appl. Sci., vol. 10, no. 23, p. 8701, Dec. 2020, doi: 10.3390/app10238701.
H. M. Khan, A. Khan, M. I. Majid, S. U. Haq, and M. H. Zafar, “A Bayesian-Optimized Long Short-Term Memory Deep Learning Model for Traffic Prediction in Intelligent Transportation,” Arab. J. Sci. Eng., Jun. 2026, doi: 10.1007/s13369-026-11437-1.
M. I. Sameen, B. Pradhan, and S. Lee, “Application of convolutional neural networks featuring Bayesian optimization for landslide susceptibility assessment,” CATENA, vol. 186, p. 104249, Mar. 2020, doi: 10.1016/j.catena.2019.104249.
J. Wu, X.-Y. Chen, H. Zhang, L.-D. Xiong, H. Lei, and S.-H. Deng, “Hyperparameter Optimization for Machine Learning Models Based on Bayesian Optimizationb,” J. Electron. Sci. Technol., vol. 17, no. 1, pp. 26–40, 2019, doi: https://doi.org/10.11989/JEST.1674-862X.80904120.
A. Candra, M. A. Budiman, and K. Hartanto, “Dijkstra’s and A-Star in Finding the Shortest Path: A Tutorial,” 2020 Int. Conf. Data Sci. Artif. Intell. Bus. Anal. DATABIA 2020 - Proc., pp. 28–32, 2020, doi: 10.1109/DATABIA50434.2020.9190342.
M. Isradi and E. A. Pratama, “Performance analysis of Unsignal Intersection and Road section with MKJI Method 1997,” IJTI (International J. Transp. Infrastructure), vol. 4, no. 1, pp. 1–11, 2020, doi: 10.29138/ijti.v4i1.1160.
J. Liu and G. Guo, “Vehicle Localization during GPS Outages with Extended Kalman Filter and Deep Learning,” IEEE Trans. Instrum. Meas., vol. 70, 2021, doi: 10.1109/TIM.2021.3097401.
L. Pasandi, M. Hooshmand, and M. Rahbar, “Modified A* Algorithm integrated with ant colony optimization for multi-objective route-finding; case study: Yazd,” Appl. Soft Comput., vol. 113, p. 107877, 2021, doi: 10.1016/j.asoc.2021.107877.
S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: https://doi.org/10.1016/j.patter.2023.100804.
R. T. and J. F. T. Hastie, “The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd.” doi: https://doi.org/10.1007/978-0-387-84858-7.
DOI: https://doi.org/10.47738/jads.v7i4.1538
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)