Research Article Open Access

Intelligent Traffic Light System Using Convolutional Neural Network to Optimize Vehicle Flow in Indonesia

Bhustomy Hakim1, Fergie Joanda Kaunang2, Yemima Monica Geasela1 and Regina Hillary2
  • 1 Department of Information Systems, Bunda Mulia University, Jakarta, Indonesia
  • 2 Department of Informatics, Bunda Mulia University, Jakarta, Indonesia

Abstract

Traffic congestion remains a persistent challenge in major Indonesian cities due to rapidly increasing vehicle density and the continued reliance on fixed-time traffic signal scheduling. This study aims to develop an intelligent traffic light system that dynamically adjusts sequencing based on real-time road conditions. A dataset of 902 CCTV images was collected from intersections in six large cities across Indonesia, including Jakarta, Bandung, Surabaya, Medan, Bali, and Samarinda, and labeled into three density categories (low, medium, high). To classify vehicle density, two Convolutional Neural Network (CNN) architectures were designed and trained, incorporating preprocessing techniques such as image resizing, color inversion for illumination normalization, and data augmentation to enhance generalization. The performance of the CNNs was compared against a fuzzy logic model and a YOLOv8-based detection pipeline. Evaluation using stratified 10-fold cross-validation showed that the second CNN architecture achieved the best performance with an accuracy of 81%, precision of 0.87, recall of 0.83, and F1-score of 0.849, outperforming both baselines. Ablation studies further demonstrated that batch normalization, dropout, and data augmentation significantly reduced overfitting and improved robustness across varying light conditions. These findings indicate that a lightweight, global-context CNN can provide reliable density classification and serve as the decision engine for adaptive traffic light control. Future work will expand dataset diversity, test cross-city generalization, and explore real-time deployment in collaboration with transportation authorities to support smart city development in Indonesia.

Journal of Computer Science
Volume 22 No. 2, 2026, 452-460

DOI: https://doi.org/10.3844/jcssp.2026.452.460

Submitted On: 1 July 2025 Published On: 17 February 2026

How to Cite: Hakim, B., Kaunang, F. J., Geasela, Y. M. & Hillary, R. (2026). Intelligent Traffic Light System Using Convolutional Neural Network to Optimize Vehicle Flow in Indonesia. Journal of Computer Science, 22(2), 452-460. https://doi.org/10.3844/jcssp.2026.452.460

  • 38 Views
  • 8 Downloads
  • 0 Citations

Download

Keywords

  • Intelligent Traffic Light
  • Traffic Flow
  • CNN
  • Deep Learning
  • Decision Support System