Computer Journal
Vol. 5 No. 1 (2027): February

Evaluation of a Deep Q-Network with a Quadratic Reward Function for Two-Phase Traffic Signal Control

Muhamad Achya Arifudin (Universitas Informatika dan Bisnis Indonesia)
Budiman Budiman (Universitas Informatika dan Bisnis Indonesia)
Titan Parama Yoga (Universitas Informatika dan Bisnis Indonesia)
Nur Alamsyah (Universitas Informatika dan Bisnis Indonesia)



Article Info

Publish Date
01 Feb 2027

Abstract

Adaptive traffic signal control can respond to changing traffic demand more effectively than fixed-time operation, but deep reinforcement learning performance depends strongly on environment design, state representation, and reward formulation. This study evaluates a tuned Deep Q-Network (DQN) with a quadratic congestion penalty for two-phase traffic signal control. A dataset-driven environment paired two street segments as conflicting approaches and applied chronological training, validation, and test splits. No external microscopic traffic simulator was used; instead, the observed demand sequences drove a custom queue-based Gymnasium environment. Hyperparameters were tuned using the validation set, while final models were evaluated across three random seeds under normal, peak, incident, and imbalanced-demand scenarios. The quadratic DQN was compared with a linear-reward DQN, a fixed 50:50 controller, and a rule-based adaptive controller. Under normal traffic, the quadratic DQN achieved a mean queue of 22.16 vehicles, a 95th-percentile queue of 35.11 vehicles, throughput of 594.24 vehicles, and a service rate of 95.42%. Compared with the linear DQN, it reduced queue imbalance by 5.15% and action changes by 12.82%, although mean queue and throughput did not improve. The rule-based controller produced the best overall performance. These findings indicate that quadratic reward shaping can improve policy balance and stability, but simpler controllers may remain competitive when training data are limited. Fair baselines and multi-seed evaluation remain essential practices.

Copyrights © 2027






Journal Info

Abbrev

cj

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Computer Journal, e-ISSN: 2964-6219 and p-ISSN: 2964-6200 is a free and open-access journal published by the Research Division, YPMMA Institute, Indonesia. Computer Journal is an international, scientific, peer-reviewed, open-access computer science journal, including computer and network ...