The system for determining the best path is included in the concept of Smart Transportation where the city that applies the concept is called a Smart City. This study uses the You Only Look Once version 8 (YOLOv8) algorithm to calculate the number of vehicles based on CCTV footage, One Dimensional Convolutional Neural Network optimized with Bayesian Optimization (1DCNN-BO) to predict road densi…