Intelligent Traffic Light System Using Convolutional Neural Network to Optimize Vehicle Flow in Indonesia
Bhustomy Hakim1, Fergie Joanda Kaunang2, Yemima Monica Geasela1 & Regina Hillary2 Show affiliations
- Department of Information Systems, Bunda Mulia University, Jakarta, Indonesia
- Department of Informatics, Bunda Mulia University, Jakarta, Indonesia
Journal of Computer Science, Volume 22, Issue 2, pp. 452–460 · doi.org/10.3844/jcssp.2026.452.460
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.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
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
- Licence
- CC BY 4.0
- Issue
- Volume 22, Issue 2
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
