Next Article in Journal
Development of a Non-Linear Bi-Directional Vortex-Induced Piezoelectric Energy Harvester with Magnetic Interaction
Previous Article in Journal
Blood Pressure Monitoring System Using a Two-Channel Ballistocardiogram and Convolutional Neural Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Communication

Traffic Signal Control Using Hybrid Action Space Deep Reinforcement Learning

1
Department of Computer Science and Software Engineering, University of United Arab Emirates, Al Ain 15551, Abu Dhabi, United Arab Emirates
2
Department of Electrical Engineering, University of Boumerdes, Boumerdès 35000, Algeria
3
École de Technologie Supérieure, University of Quebec, Montreal, QC H3C 1K3, Canada
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(7), 2302; https://doi.org/10.3390/s21072302
Submission received: 26 February 2021 / Revised: 21 March 2021 / Accepted: 23 March 2021 / Published: 25 March 2021
(This article belongs to the Section Intelligent Sensors)

Abstract

:
Recent research works on intelligent traffic signal control (TSC) have been mainly focused on leveraging deep reinforcement learning (DRL) due to its proven capability and performance. DRL-based traffic signal control frameworks belong to either discrete or continuous controls. In discrete control, the DRL agent selects the appropriate traffic light phase from a finite set of phases. Whereas in continuous control approach, the agent decides the appropriate duration for each signal phase within a predetermined sequence of phases. Among the existing works, there are no prior approaches that propose a flexible framework combining both discrete and continuous DRL approaches in controlling traffic signal. Thus, our ultimate objective in this paper is to propose an approach capable of deciding simultaneously the proper phase and its associated duration. Our contribution resides in adapting a hybrid Deep Reinforcement Learning that considers at the same time discrete and continuous decisions. Precisely, we customize a Parameterized Deep Q-Networks (P-DQN) architecture that permits a hierarchical decision-making process that primarily decides the traffic light next phases and secondly specifies its the associated timing. The evaluation results of our approach using Simulation of Urban MObility (SUMO) shows its out-performance over the benchmarks. The proposed framework is able to reduce the average queue length of vehicles and the average travel time by 22.20% and 5.78%, respectively, over the alternative DRL-based TSC systems.

Graphical Abstract

1. Introduction

Traffic congestion is one of the biggest issues in most of today’s cities causing significant delays and subsequent economic losses [1]. To tackle this issue, several research efforts in the transportation field attempted to develop intelligent transportation systems (ITS) aiming to overcome traffic congestion and improve traffic flow. Traffic signal control systems (TSCs) are one of the key research areas of intelligent transportation systems (ITS) made to control the traffic flow at intersections aiming to reduce traffic congestion [2].
Recently, various research works have leveraged reinforcement learning (RL) to replace the traditional traffic signal control systems [3,4,5]. In contrast with the standard traffic control approaches, RL and Deep RL (DRL) techniques can adapt to diverse traffic situations and conditions. In its recent application to TSC, DRL showed a higher performance over traditional traffic light management techniques [6,7]. In DRL-based traffic light controllers, the objective of the DRL agent is to decide the optimal action which yields improving the TSCs performance. Commonly, the action selection process is based on two strategies. In the first strategy, the DRL agent selects any phase from a finite set of phases without being limited to a predefined sequence of phases [8]. This strategy makes use of the discrete DRL architectures such as Deep Q-Nnetworks (DQN) [9], Double-DQN [10] and Dueling-DQN [11]. However, this strategy lacks the ability to predict the duration of the selected signal phase restricting it from choosing more optimal behavior. Whereas, in the second strategy, the agent’s actions are continuous instead, where the agent decides the duration of the next phase within a predefined cycle of traffic light phases [6]. The latter strategy belongs to the continuous type of DRL algorithms like Deep Deterministic Policy Gradient DDPG [12] and Normalized Advantage Function (NAF) [13]. Unfortunately, these two paths for controlling traffic signals lack flexibility and have not yet used jointly discrete and continuous DRL. Therefore, our ultimate objective, in this paper, is to bridge this gap and propose an approach that takes the potential advantage of combining the two strategies of applying DRL. Our approach is aimed to optimize traffic signal control by deciding simultaneously the proper phase and its associated duration. Hence, we propose a DRL based not only on employing discrete or continuous action spaces exclusively but combines them at the same time. Precisely, being inspired by DRL with parameterized actions [14], our contribution resides in tailoring a Parameterized Deep Q-Networks (P-DQN) architecture [15] that permits a hierarchical decision-making process that primarily decides the traffic light next phases and secondly specifies its associated timing.
This design variant of DRL makes use of a hybrid architecture that combines discrete actions with continuous parameters. Subsequently, the learning agent within the DRL structure chooses at each decision step both the appropriate action and the parameter value associated with that action.
The proposed framework is evaluated by establishing an experimental study that is conducted on the commonly used traffic Simulation of Urban MObility (SUMO) environment. The performance of the proposal as well as the benchmarks are assessed according to the common metrics used for TSC approaches evaluation such as the average travel time, the queue length and the average waiting time of vehicles [8,16]. Remarkably, the evaluation results of our proposed approach show considerable improvements of the TSC performance when compared to the benchmarks.
The rest of this paper is organized as follows. in Section 2, we review the works proposing DRL based solutions for TSC. Section 3 provides preliminaries and theoretical backgrounds needed by hybrid DRL-based TSC solutions. Our approach, as well as the proposed methodology behind it, are described in Section 4. In Section 5, we detail the experimental evaluation of our proposal and discuss the obtained results. Finally, in Section 6, we draw the conclusion and present the potential future works.

2. Literature Review

Reinforcement Learning (RL) decision making approach has been widely used in many fields and applications (e.g., transportation, health and energy management) [17,18,19]. In the literature of DRL-based traffic signal control research, transportation engineers and researchers take advantage of deep reinforcement learning to provide optimal TSC systems. Essentially, DRL-based contributions to TSCs focus on improving some of the four main elements of the DRL framework, namely, the state definition, the reward design, the action space and the architecture of the agent. In the following, we narrow the scope of the literature review with a focus on works contributing to improve the action space definition and the architecture of the agent. These works are the closest to our proposal.

2.1. Action Space Definitions

The action space embraces the set of possible decisions the agent can take during interaction with the surrounding environment. In DRL-based TSCs, the action space is generally defined according to the preferred way of controlling the traffic lights. First, the action space can be in a binary form where the agent chooses either to maintain the ongoing phase or to skip into the following phase in a predefined sequence of phases [7,16]. The second action space is composed of all possible traffic light phases from which the agent is permissible to select the most appropriate phase at each decision time step [8,20,21]. A third type of action space is rather in the form of a continuous bounded time range, allowing the agent to control the time length of subsequent phases of traffic lights [6,22]. A novel type of action space in DRL-based TSCs encompasses both the discrete and continuous action spaces. This hybrid action space comes in the form of hierarchical discrete-continuous spaces allowing the agent to decides the next phase of the traffic lights and its associated phase timing simultaneously. In this work, beyond the action spaces found in the literature, we will exploit the hybrid action space structure for controlling both the phase selection and timing.

2.2. Agent Architecture Specifications

In deep reinforcement learning, the deep neural network is the core element of the agent. The main function of the agent’s network is to learn the optimal policy, mapping input states into optimal output actions. The selection of agent’s network structure depends on the preferred type of action space. When the action space is discrete (e.g., phase selection action type), Deep Q-network (DQN) [9,23] and its extensions (Double-DQN [10], Dueling-DQN [11]) are the popular choices for the agent’s network. The objective of the DQN network is to learn Q-values of actions and decide the optimal action based on the predicted Q-values. On the other side, when the action space is continuous (e.g., phase timing prediction), Policy gradient methods such as Deep Deterministic Policy Gradients (DDPG) [12], Advantage Actor-Critic (A2C) [24] and Soft Actor-Critic (SAC) [25] are most commonly used. However, a more complex action space such as the hybrid action space requires more sophisticated agent’s network structure. Specifically, various architectures have been proposed for the hybrid action structure such as deep reinforcement learning with parameterized action space which is defined as a finite set of discrete actions where each action has an associated continuous parameter value. In the parameterized action space literature, Hausknecht and Stone [26] were first to successfully use deep neural networks in structured (parameterized) action space based on DDPG architecture. Furthermore, Xiong et al. [15] proposed a novel Hybrid framework, known as Parameterized deep Q-network (P-DQN) which comes as a modified version of DDPG architecture showing an improved performance over the previous Hausknecht and Stone framework. On the same trend, Bester et al. [27] fixed some issues found in the P-DQN and proposed a more refined version called as Multi-Pass DQN (MP-DQN). Both P-DQN and MP-DQN structures will be explained and discussed in Section 3 on Backgrounds.

3. Background and Preliminaries

In reinforcement learning literature, the problem being tackled is usually formulated as a Markovian Decision Process (MDP) [28], which is characterized by the tuple < S , P , A , R , γ > . The state space is denoted by S , P is the Markov probability of transition, A is the action space, R is the reward and γ is the discount factor. At the time-step t, the agent observes the environment state s t S and selects an action a t A according to its policy π . The agent then receives an immediate reward R t from the environment and observes the next state s t + 1 P ( s t + 1 | s t , a t ) . The agent’s policy π can be either stochastic or deterministic. When the policy π is deterministic, π ( a | s ) maps each state s t to a specific action a t . Whereas in the stochastic policy, π ( a | s ) maps each state to a probability distribution over the action space A . The agent’s goal is to derive a policy π which maximizes the cumulative discounted reward G t = k = 0 n γ k R t + k starting from the time-step t [28].

RL for Hybrid Action Space

A common type of action space in real-life applications consists of both discrete and continuous action spaces (hybrid action space in short). A related work in hybrid action space literature includes the parameterized action space, which is defined as a finite set of actions, where each action is parameterized by a continuous value [15]. We consider formulating our decision problem as a Markovian Decision Process with a parameterized hybrid action space A as in the proposed P-DQN architecture by Xiang et al. [15]. The action space is defined as:
A = { ( k , x k ) | x k X k for all k [ K ] } ,
where ( k , x k ) is a joint action in the action space A that follows a hierarchical structure when choosing an action. Hence, we have a primary action k chosen from a discrete set K ( k K = { 1 , . . . , K } ), and a subaction consists in determining a continuous parameter x k X k from a continuous action space. The action space X k defines the domain of the parameters associated with primary actions k. Given the new action space, the Q-value function is denoted Q ( s , k , x k ) instead of Q ( s , a ) , where s S , a A , k [ K ] and x k X k . Therefore, at the time-step t, The Bellman equation of Q-function is given as:
Q s t , k t , x k t   = E s t + 1 [ R t + γ max k [ K ] sup x k X k Q ( s t + 1 , k , x k ) | s , k , x k ] .
Like in the DDPG [12], the x k = argsup Q x k X k ( s t + 1 , k , x k ) can be viewed as a function x k Q : S X k , mapping the state space to the continuous domain of action parameters. Consequently, two mappings are needed to select the action and its parameter; the Q-function becomes:
Q s t , k t , x k t   = E s t + 1 [ R t + γ max k [ K ] Q ( s t + 1 , k , x k Q ( s t + 1 ) ) | s t = s ] .
Similarly to DQN and DDPG, both discrete and continuous mappings take advantage of deep neural networks to approximate the Q ( s , k , x k ) and x k Q mappings. In particular, Q ( s , k , x k ; ω ) with network weights ω approximates Q ( s , k , x k ) and x k ( · ; θ ) with network weights θ approximates x k Q mapping. Similar to Q-learning, the target y t is defined as:
y t = R t + γ max k [ K ] Q ( s t + 1 , k , x k ( s t + 1 ; θ t ) ; ω t ) ,
The loss functions for updating the parameters ω and for updating the θ are respectively defined as:
t Q ( ω ) = 1 2 [ Q ( s t , k , x k ) ; ω t ) y t ] 2 , and
t Θ ( θ ) = k = 1 K Q ( s t , k , x k ( s t ; θ ) ; ω t )
One issue the P-DQN architecture suffers from is the the joint action-parameters input to the Q-network, where each Q-value of an action k depends not only its associated action-parameter x k but instead all the action-parameters ( x 1 , , x K ) are engaged. This invalidates the P-DQN theoretical foundations claimed by Xiang et al. [15]. As a solution to this issue, Bester et al. [27] proposed a modified variant to P-DQN, namely, Multi-Pass DQN (MP-DQN), by separating each x k action-parameter with its associated action k. The MP-DQN involves performing multiple forward passes to the network, once per action k, with the state s and action-parameter vector xe k as input to the MP Q-Network (see Figure 1). Notice that the vector xe k = ( 0 , , 0 , x k , 0 , , 0 ) is the standard basis for dimension k. Introducing the vector xe k solves the P-DQN issue and makes Q k dependent only on the associated x k where:
Q ( s , k , xe k ) Q ( s , k , x k ) .

4. Parameterized Deep Reinforcement Learning Approach for TSC

In this section, we discuss the proposed approach to control the traffic signals using a specific reinforcement learning framework called Parameterized-DQN to generate both the appropriate phase P of the traffic signals and its corresponding duration d P .
Our framework is depicted in Figure 2 showing the overall structure of our proposal. At every time-step t, the current state s t of the intersection environment represented as a vector is being observed by the learning agent. Then, the latter maps the state vector to actions π : S A , using its latest policy π : of controlling the TSC. The joint action a t = ( P t , d P t ) A consists of selecting the primary action, the appropriate phase P , and at the same time its associated subaction (i.e., the phase duration d P ). As a result of applying these actions at two levels of the traffic light settings, the agent receives, from the environment, a reward R t as well as the next state s t + 1 after a lapse of time t P proportional to d P . The resulting experience is stored at every time-step as a tuple < s t , a t = ( P t , d P t ) , R t , s t + 1 > in the agent’s memory M for further replay during the agent’s training process. By considering a Parameterized MDP setting, some RL elements should be defined, namely, the state space, the action space, the reward function and the agent architecture.

4.1. State Space

For an intersection environment, we define the state vector s t as the queue length of vehicles q l in each lane l at time step t, in addition to the current phase of signals P t . Queuing vehicles in the environment are those vehicles with speed less than 0.1 m/s during the simulation. We consider the total number of lanes L = 16 , in addition to the current phase of signals P t represented by an integer in { 0 , 1 , 2 , 3 } . Figure 3 shows an example of the acquired vector state from a real time traffic intersection.
Let s t be the state vector at a given time step t where s t R L + | P | , and | P | = 1 is the dimension of the phase vector. Thus, the vector s t is formulated as:
s t ( q ) = q 0 t q 1 t . . q L 1 t P t

4.2. Reward Function

The reward function r : S × A R maps the joint-actions a t = ( P , d P ) A and states s t S into a scalar value R t R . The immediate reward R t evaluates how good the taken joint-action a t in the current state s t is. Along with the above state definition, we define the reward function as the negative sum of queuing vehicles at time-step t stated as follows:
R t = l = 0 L 1 q l = l = 0 L 1 s t + 1 ( q )

4.3. Action Space

The most important part of this setup involves controlling the traffic signals’ behavior by selecting the appropriate actions at each time-step. The action space is built-up of two hierarchical subspaces, respectively, of traffic light phases and the associated phase durations. Therefore, an action a = ( P , d P ) is a joint action with a hierarchical structure, where P is the primary action which indicates a phase of the traffic signals and d P is the secondary parameter indicating the duration of the phase P. In this work, we define the first subspace as a set of four phases { 0 , 1 , 2 , 3 } and the second subspace as the domain of phase duration, a continuous time interval, where d P [ t m i n , t m a x ] . Thus, the action space is defined as A = { { 0 , 1 , 2 , 3 } { [ t m i n , t m a x ] } } . An example of the joint action is illustrated in Figure 4 where the phase P constitutes a set of nonconflicting signals ("G" for green, "r" for red and "y" for yellow) to control each traffic movement, and the duration d P falls in the interval [0 s, 45 s].

4.4. Agent’s Architecture

Following the hybrid nature of the defined action space above, most appropriate architectures that fit our proposal fall in the family of reinforcement learning with parameterized action space architectures (e.g., Paramterized Q-Network [15], Multi-Pass Q-Networks [27]). Multi-Pass-DQN is notably a well performing agent’s architecture that has been proposed recently by Bester C. et al. [27] as a modified version of the P-DQN made to deal with hierarchical hybrid action spaces. In MP-DQN as adopted in our approach, two neural networks are employed, one for approximating the value based Q-function to select the high-level discrete action P denoted by Q ( s , P , d P ; ω ) , we call it the Actor network. The second network is used to approximate the policy based mapping x d P to predict the low-level continuous duration, denoted as x d P ( s ; θ ) , we call it the ParamActor network. For stability purpose, both networks are accompanied with target networks that are used in predicting target values y t and updating the main networks. The architecture of the Actor neural network Q ( ω ) is composed of an input layer of size 16 + 1 + 4 (where 4 is the number of action-parameters), a hidden layer of 256 neurons with R e l u activation function, and an output of size 4 to approximate the Q-values of discrete actions. For the network architecture of the ParamActor x ( θ ) , we use an input layer of size 16 + 1 , a hidden layer of 256 neurons with R e l u activation function and an output of size 4 neurons to predict the continuous action-parameters associated with the discrete Actor actions. Figure 5 illustrates a dynamic flow of the proposed framework composed of mainly five iterative processes. By setting up the simulation configurations and the learning parameters, the agent iteratively perceives traffic state, performs the joint action and observes the new traffic condition along with the obtained reward. These processes are stored in the agent’s memory. The update of the agent’s policy starts when the content of the memory exceeds a certain threshold, and continue, in every time step until a termination condition (i.e., reaching a Maximum number of episodes E). Algorithm 1 as well provides a pseudocode of the training operation of the proposed framework, Traffic Signal Control Using Parameterized Deep RL. Initially, the essential parameters ( { l r Q , l r x } , ϵ , B , ζ , ω 0 , θ 0 ) are initialized to begin the simulation and the training operation of the framework. For a range of E episodes and for each time-step t in every episode, the agent observes the traffic state s t and selects a joint action a t = ( P t , d P t ) according to ϵ -greedy policy,
a t = a sample from ζ with probability ϵ , ( P t , d P t ) P t = argmax P Q ( s t , P , d P t ; ω t ) 1 ϵ ,
where ζ is a uniform random distribution over a bounded continuous interval [ t m i n , t m a x ] . The joint action a t = ( P t , d P t ) is applied to the traffic signal settings and the resulting traffic state s t + 1 is obtained as well as the rewarding signal R t . Each resulting experience i.e., < s t , ( P t , d P t ) , R t , s t + 1 > is stored in a memory M for further replay. After collecting an enough number of experiences exceeding the initial memory threshold, a random batch of size B is sampled from the memory to compute target value y t . The target value y t , state s t and action a t are used to calculate the gradients ω t Q ( ω t ) and θ t Q ( θ ) which in turn are utilized besides the learning rates { l r Q , l r x } to update ω and θ weights.
Algorithm 1 Traffic Signal Control Using Parameterized Deep RL.
1:
Initialize: Learning rates { l r Q , l r x } , exploration parameter ϵ , minibatch size B, a probability distribution ζ , flow configurations, network weights ω 0 and θ 0 .
2:
for episode e = 1 , E do
3:
    Start simulation, observe initial state s 0 and take initial joint action a 0 .
4:
     for  t = 1 , T   do
5:
         Compute action parameters d P t x d P ( s t ; θ t ) .
6:
         Select action a t = ( P t , d P t ) according to ϵ -greedy policy.
a t = a sample from ζ with probability ϵ , ( P t , d P t ) P t = argmax P Q ( s t , P , d P t ; ω t ) 1 ϵ .
7:
         Perform a t , observe next state s t + 1 and get R t .
8:
         Store < s t , a t , R t , s t + 1 > in memory M.
9:
         Sample random B experiences from M.
10:
y t = R t if t = T , R t + max P γ Q ( s t + 1 , P , x d P ( s t + 1 ; θ ) ; ω t ) otherwise .
11:
          Compute ω t Q ( ω t ) and θ t Q ( θ ) using { y t , s t , a t } .
12:
         update weights ω t + 1 ω t l r Q ω t Q ( ω t ) and θ t + 1 θ t l r x θ t Q ( θ ) .
13:
     end for
14:
end for

5. Experiments

In this section, we present our empirical study to evaluate our proposed framework using simulation based traffic. We first present the experiment setup, parametric settings and the performance evaluation metrics. Then, we describe a set of baseline approaches which serve as benchmarks for comparison. Finally, we present and discuss the simulation results of the proposed approach considering different scenarios and performances of benchmarks.

5.1. Experiment Setup

In our experimental study, we utilize the open source Simulation of Urban MObility (SUMO) simulator [29] to simulate the intersection environment and traffic. SUMO has been widely used in several recent works [5,7,30] and provides an API package called TraCI to interface with Python programming language. For the agent architecture, we adopt and customize the implementation of the MP-DQN inspired by Bester et al. [27] which is available online (https://github.com/cycraig/MP-DQN, accessed on 22 August 2020).
We consider a typical 4-way geometry (i.e., East, West, North, South) for the structure of the intersection with each incoming/outgoing road having 4 lanes. All the lanes are of 750 m length with maximum lane speed set to 13.89 m/s (i.e., the urban areas speed limit [31]). They also have the same priority and the same width. The left-most lane is dedicated for turning left solely and the rest of lanes can be occupied by straight or right-turn vehicle-movements. A yellow phase follows the green phase and lasts 3 s for safety reasons.
The traffic flow simulation is generated using custom scripts to simulate realistic traffic flows. In particular, the traffic begins with a low number of cars, increases during the rush hours to its peak value, then, it decays back to a low number of vehicles. We simulate such a scenario (i.e., low, high and low) for a time window of three hours (10,800 s) by having approximately one hour of nonuniform low flow followed by a second hour of nonuniform high flow, then a third hour of nonuniform low flow. Each vehicle of the flow has an Origin point (O) and a Destination point (D) and follows the route OD (i.e., from O to D). The vehicle routes include going straight movements (North-South and East-West) and turning movements (Left-turns and Right-turns). We set the traffic generation in a way to estimate that 75 % of the vehicles are moving straight and 25 % are turning right or left. Detailed about simulated traffic flow are presented in Table 1.

5.2. Parameters and Training Settings

A number of parameters need to be set to leverage the performance of our proposed approach. After several runs within different scenarios, the adopted hybrid architecture has been tuned and its parameters are empirically determined. In particular, the number of training episodes N is set to 301 with an episode duration of 3800 s (extra 200 s to free up the late inserted vehicles to the simulation). Our agent is set in order to follow ϵ g r e e d y discrete policy with random uniform continuous action selection. Such a policy is shown empirically to perform better than the common Ornstein–Uhlenbeck noise (which was recommended by the original DDPG’ authors for the sake of action exploration). The exploration parameter ϵ is decreased linearly from 1 to 0.01 during 270 episodes where the agent explores new actions. The size of the replay memory is set to 20,000. Our agent starts learning and updating its policy when the memory content reaches 128 experiences (Memory Training threshold, called T r _ t h r e s h o l d ). At every time step, the training set for the agent is a mini-batch of b = 64 experiences, where an experience is a tuple of < s t , a t = ( P t , d P t ) , R t , s t + 1 > . Our set of parameters also includes those of the agent learning networks, where the number of nodes in hidden layer is set to 256, and RMSProp [32] stochastic gradient decent method is used for updating both Actor and ParamActor networks weights with a learning rate of l r Q = 0.001 and l r x = 0.00001 respectively. While γ discounting factor, set to 0.95 , is used for updating the Q-values. A gradient clipping method for the gradients is applied with a value of 1 which accelerates the training of the networks. Equally, as suggested by Hausknecht and Stone [26], the inverting gradients method is used to keep the action parameters in their bounded region. Table 2 summarizes various parameters used with their associated values.

5.3. Performance Evaluation Metrics

Following the literature, traffic signal control approaches are evaluated using three main metrics [8,16], (1) Average Travel Time (ATT), (2) the queue length (QL) and (3) the average waiting time of vehicles (AWT).

5.3.1. Average Travel Time (ATT).

It is defined as the total travel time of all vehicles divided by the number of vehicles, formally expressed by the following equation:
A T T = 1 N v e h j = 0 N v e h t j , s t a r t t j , e n d
where N v e h is the total number of vehicles, t j _ s t a r t is the time the vehicle j enters the environment and t j _ e n d is the time the vehicle j exited the environment.

5.3.2. Average Waiting Time (AWT).

This metric corresponds to the average waiting time spent by the vehicles. A vehicle is considered as waiting if its speed is less than 0.1 m/s since the last time it was faster than 0.1 m/s, otherwise the waiting time counter is reset to 0 (i.e., as it starts moving with a speed >0.1 m/s). The formula for the average waiting time is given by:
A W T = 1 N v e h j = 0 N v e h W T j ,
where W T j is the total waiting time of a vehicle j during an episode.

5.3.3. Queue Length (QL).

The queue length of a lane is the total number of vehicles queuing on a lane. The queuing vehicles are those with a speed less than 0.1 m/s on the given lane (known in SUMO as vehicle in ‘halting’ state). We consider the sum of queues lengths over all lanes:
Q L = l = 0 L q l ,
where L is the total number of lanes and q l is the queue length on lane l.

5.4. Benchmarks

To evaluate of the performance of the proposed framework, we compare it to the traditional Fixed-Time as well as the DQN discrete action space approach and the continuous action space DDPG approach.

5.4.1. Fixed Time Approach

It is the simplest traffic control approach that uses fixed phase duration with fixed cycle length and fixed order [33]. The duration of green phases is set to 30 s and the yellow phase duration is 3 s.

5.4.2. Discrete Approach

There are several proposals in the literature which use the deep reinforcement learning DQN approach for traffic signal control [5,7,8]. The DQN agent predicts solely the next phase from a set of phases with a fixed phase duration. We consider the implementation which makes use of the Double-DQN (DDQN) with Prioritized Experience Replay Memory (PER) as the agent’s architecture. For the state and reward definitions we use the queue length for both the state and reward formulae.

5.4.3. Continuous Approach

This approach takes advantage of the continuous DRL architecture to control the traffic signals [6]. It only predicts the duration of the next phase where the sequence of the phases is kept fixed. We use the DDPG continuous architecture for the agent. The state and reward are defined as the latter discrete based approach.

5.5. Results and Discussion

We train the agent on the simulation setup using the training parameters discussed earlier. The resulting smoothed training curves of the proposed framework are illustrated in the Figure 6. It can be noticed from the learning curves that the training undergoes what is known as a “cold start” [34] problem at early stages due to the exploration of the unfamiliar environment where the agent randomly applies decision actions. The agent subsequently optimizes its performance after grasping enough experience batches.
Figure 7 shows the learning performance comparison against the Discrete and Continuous baselines. Remarkably, the Discrete approach exhibits fast initial learning but plateaus at lower performance than the Hybrid framework. It initially learns faster due to the fact that it already has a fixed phase timing and needs only to select the more suitable phase. The Continuous approach curve swings until it reaches a better performance but still worse than the rest. On the other hand, the Hybrid approach curve exhibits a linear-like decaying until it crosses the baselines’ curves where it outperforms the benchmarks’ performance.
In Table 3, we observe the average travel time scores of the Fixed-Time, Discrete and Continuous benchmarks versus the proposed framework with C1-C6 are the simulation configurations listed in Table 1. Notably, the Fixed Time approach is far behind the other approaches due to its static behavior as opposed to the dynamic characteristics of the traffic flow. On the other side, one can remark that the deep reinforcement learning frameworks show noticeable results as they are more capable of dealing with dynamic conditions. Out of the DRL approaches, the proposed Hybrid actions framework outperforms the rest of the approaches in all simulated experiments. This is due to the fact that the Hybrid framework controls the TSC more flexibly by selecting the appropriate phase as well as its duration simultaneously. Further evaluations are shown in Figure 8 where we compare the queue length performance of the three deep RL approaches during one simulation episode. Similar to travel time performance results, the performance of the proposed approach surpasses the baselines by keeping the queue length lower throughout the traffic simulation.

6. Conclusions and Future Work

In this work, we have addressed the traffic signal control dual problem involving next phase determination and its duration. We aim to solve such a problem by leveraging the state of the art of a hybrid reinforcement learning variant. Specifically, we tailor the hybrid parameterized Deep Q-Networks, namely, Multi-Pass DQN, to dually control the TSC phase and its associated timing jointly. We conducted a simulation that allowed a series of controlled experiments for evaluating and demonstrating our framework performance. Moreover and for the sake of validity, we compared our framework to Deep RL benchmarks during training and taking decision at the intersection. The evaluation of the performance of our approach made use of the average travel time and the vehicle queue length as practical metrics. The results proved that our hybrid DRL variant outperformed the baselines in all the simulated experiments. A significant reduction of the average queue length of vehicles and the average travel time by 22.20% and 5.78%, respectively. The potential advantage of our framework is its hybrid nature, which allowed the TSC to control the phase selection as well as its duration. Our future works are twofold. Indeed, we would like to extend the scope of our hybrid DRL in order to cover more than one intersection in different ways, e.g., centralized and decentralized. In the second extension, we will direct our further simulations and experiments using real data from real world traffic intersections.

Author Contributions

This paper is a collaborative work of all authors. Conceptualization, S.B. and A.C.; Methodology, S.B. and A.C.; Software, A.C.; Validation, S.B., A.C. and A.O.; Data Curation, A.C.; Writing—Original Draft Preparation, A.C., S.B., and A.O.; Writing—Review and Editing, S.B., A.C., and A.O.; Supervision, S.B.; Project Administration, S.B.; Funding Acquisition, S.B. and A.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Roadway Transportation and Traffic Safety Research Center (RTTSRC) of the United Arab Emirates University (grant number 31R225) and by Abu Dhabi Department of Education and Knowledge (ADEK award number AARE18-114 grant 21T52).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Synthetic Data and Codes that support the findings of this study are openly available at https://github.com/abderraouf2che/Hybrid-Deep-RL-Traffic-Signal-Control, accessed on 22 August 2020.

Acknowledgments

This work was supported by the Roadway Transportation and Traffic Safety Research Center (RTTSRC) of the United Arab Emirates University (grant number 31R225) and by Abu Dhabi Department of Education and Knowledge (ADEK award number AARE18-114 grant 21T052).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. INRIX Scoreboard 2019. PRESS RELEASES. Available online: https://inrix.com/press-releases/2019-traffic-scorecard-uk/ (accessed on 9 February 2021).
  2. Haydari, A.; Yilmaz, Y. Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey. arXiv 2020, arXiv:2005.00935. [Google Scholar] [CrossRef]
  3. Lin, Y.; Dai, X.; Li, L.; Wang, F.Y. An Efficient Deep Reinforcement Learning Model for Urban Traffic Control. arXiv 2018, arXiv:1808.01876. [Google Scholar]
  4. Gregurić, M.; Vujić, M.; Alexopoulos, C.; Miletić, M. Application of Deep Reinforcement Learning in Traffic Signal Control: An Overview and Impact of Open Traffic Data. Appl. Sci. 2020, 10, 4011. [Google Scholar] [CrossRef]
  5. Genders, W.; Razavi, S. Using a Deep Reinforcement Learning Agent for Traffic Signal Control. arXiv 2016, arXiv:1611.01142. [Google Scholar]
  6. Casas, N. Deep Deterministic Policy Gradient for Urban Traffic Light Control. arXiv 2017, arXiv:1703.09035. [Google Scholar]
  7. Gao, J.; Shen, Y.; Liu, J.; Ito, M.; Shiratori, N. Adaptive Traffic Signal Control: Deep Reinforcement Learning Algorithm with Experience Replay and Target Network. arXiv 2017, arXiv:1705.02755. [Google Scholar]
  8. Guo, M.; Wang, P.; Chan, C.Y.; Askary, S. A Reinforcement Learning Approach for Intelligent Traffic Signal Control at Urban Intersections. arXiv 2019, arXiv:1905.07698. [Google Scholar]
  9. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; Riedmiller, M. Playing Atari with Deep Reinforcement Learning. arXiv 2013, arXiv:1312.5602. [Google Scholar]
  10. van Hasselt, H.; Guez, A.; Silver, D. Deep Reinforcement Learning with Double Q-learning. arXiv 2015, arXiv:1509.06461. [Google Scholar]
  11. Wang, Z.; Schaul, T.; Hessel, M.; van Hasselt, H.; Lanctot, M.; de Freitas, N. Dueling Network Architectures for Deep Reinforcement Learning. arXiv 2016, arXiv:1511.06581. [Google Scholar]
  12. Lillicrap, T.P.; Hunt, J.J.; Pritzel, A.; Heess, N.; Erez, T.; Tassa, Y.; Silver, D.; Wierstra, D. Continuous control with deep reinforcement learning. arXiv 2019, arXiv:1509.02971. [Google Scholar]
  13. Gu, S.; Lillicrap, T.; Sutskever, I.; Levine, S. Continuous Deep Q-Learning with Model-based Acceleration. arXiv 2016, arXiv:1603.00748. [Google Scholar]
  14. Masson, W.; Ranchod, P.; Konidaris, G. Reinforcement Learning with Parameterized Actions. arXiv 2015, arXiv:1509.01644. [Google Scholar]
  15. Xiong, J.; Wang, Q.; Yang, Z.; Sun, P.; Han, L.; Zheng, Y.; Fu, H.; Zhang, T.; Liu, J.; Liu, H. Parametrized Deep Q-Networks Learning: Reinforcement Learning with Discrete-Continuous Hybrid Action Space. arXiv 2018, arXiv:1810.06394. [Google Scholar]
  16. Wei, H.; Zheng, G.; Yao, H.; Li, Z. IntelliLight: A Reinforcement Learning Approach for Intelligent Traffic Light Control. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining; Association for Computing Machinery: New York, NY, USA, 2018; pp. 2496–2505. [Google Scholar] [CrossRef]
  17. Liu, X.Y.; Ding, Z.; Borst, S.; Walid, A. Deep Reinforcement Learning for Intelligent Transportation Systems. arXiv 2018, arXiv:1812.00979. [Google Scholar]
  18. Yu, C.; Liu, J.; Nemati, S. Reinforcement Learning in Healthcare: A Survey. arXiv 2020, arXiv:1908.08796. [Google Scholar]
  19. Wu, J.; Wei, Z.; Li, W.; Wang, Y.; Li, Y.; Sauer, D.U. Battery Thermal- and Health-Constrained Energy Management for Hybrid Electric Bus Based on Soft Actor-Critic DRL Algorithm. IEEE Trans. Ind. Inform. 2021, 17, 3751–3761. [Google Scholar] [CrossRef]
  20. Gong, Y.; Abdel-Aty, M.; Cai, Q.; Rahman, M.S. Decentralized network level adaptive signal control by multi-agent deep reinforcement learning. Transp. Res. Interdiscip. Perspect. 2019, 1, 100020. [Google Scholar] [CrossRef]
  21. Wei, H.; Chen, C.; Zheng, G.; Wu, K.; Gayah, V.; Xu, K.; Li, Z. PressLight: Learning Max Pressure Control to Coordinate Traffic Signals in Arterial Network. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining; Association for Computing Machinery: New York, NY, USA, 2019; pp. 1290–1298. [Google Scholar] [CrossRef]
  22. Genders, W. Deep Reinforcement Learning Adaptive Traffic Signal Control. Ph.D. Thesis, McMaster University, Burlington, ON, Canada, 2018. [Google Scholar]
  23. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef]
  24. Mnih, V.; Badia, A.P.; Mirza, M.; Graves, A.; Lillicrap, T.P.; Harley, T.; Silver, D.; Kavukcuoglu, K. Asynchronous Methods for Deep Reinforcement Learning. arXiv 2016, arXiv:1602.01783. [Google Scholar]
  25. Haarnoja, T.; Zhou, A.; Abbeel, P.; Levine, S. Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. arXiv 2018, arXiv:1801.01290. [Google Scholar]
  26. Hausknecht, M.; Stone, P. Deep Reinforcement Learning in Parameterized Action Space. arXiv 2016, arXiv:1511.04143. [Google Scholar]
  27. Bester, C.J.; James, S.D.; Konidaris, G.D. Multi-Pass Q-Networks for Deep Reinforcement Learning with Parameterised Action Spaces. arXiv 2019, arXiv:1905.04388. [Google Scholar]
  28. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction; The MIT Press: London, UK, 2018; p. 47. [Google Scholar]
  29. Behrisch, M.; Bieker, L.; Erdmann, J.; Krajzewicz, D. SUMO - Simulation of Urban MObility: An overview. In Proceedings of the SIMUL 2011, The Third International Conference on Advances in System Simulation, Barcelona, Spain, 23–29 October 2011; pp. 63–68. [Google Scholar]
  30. Vidali, A.; Crociani, L.; Vizzari, G.; Bandini, S. A Deep Reinforcement Learning Approach to Adaptive Traffic Lights Management. Available online: http://ceur-ws.org/Vol-2404/paper07.pdf (accessed on 22 August 2020).
  31. Speed Limits by Country—Wikipedia, The Free Encyclopedia. Available online: https://en.wikipedia.org/wiki/Speed_limits_by_country (accessed on 22 August 2020).
  32. Tieleman, T.; Hinton, G. Lecture 6.5-Rmsprop: Divide the Gradient by a Running Average of Its Recent Magnitude. Available online: http://www.cs.toronto.edu/~hinton/coursera/lecture6/lec6.pdf (accessed on 24 March 2021).
  33. Gordon, R.; Tighe, W. Traffic Control Systems Handbook; FEDERAL HIGHWAY ADMINISTRATION: Washington, DC, USA, 2005.
  34. GEUS, S.D. Utilizing Available Data to Warm Start Online Reinforcement Learning. Master’s Thesis, Vrije Universiteit Amsterdam, Amsterdam, The Netherlands, 2020. [Google Scholar]
Figure 1. Structure of MP-DQN architecture.
Figure 1. Structure of MP-DQN architecture.
Sensors 21 02302 g001
Figure 2. Overview of the framework structure for traffic signal control with Phase and Duration control.
Figure 2. Overview of the framework structure for traffic signal control with Phase and Duration control.
Sensors 21 02302 g002
Figure 3. Example of the state vector extracted from the intersection environment.
Figure 3. Example of the state vector extracted from the intersection environment.
Sensors 21 02302 g003
Figure 4. Example of the agent’s action that is applied to the traffic light.
Figure 4. Example of the agent’s action that is applied to the traffic light.
Sensors 21 02302 g004
Figure 5. Flow diagram describing the dynamic of the proposed framework.
Figure 5. Flow diagram describing the dynamic of the proposed framework.
Sensors 21 02302 g005
Figure 6. Learning curves of the proposed framework for (a) Average Travel Time, (b) Average Waiting Time and (c) Average Queue Length over episodes.
Figure 6. Learning curves of the proposed framework for (a) Average Travel Time, (b) Average Waiting Time and (c) Average Queue Length over episodes.
Sensors 21 02302 g006
Figure 7. Travel Time Training Curves Comparison of Hybrid Framework Against Discrete and Continuous Benchmarks.
Figure 7. Travel Time Training Curves Comparison of Hybrid Framework Against Discrete and Continuous Benchmarks.
Sensors 21 02302 g007
Figure 8. Queue Length performance comparison of Hybrid approach versus Discrete and Continuous baselines during traffic simulation.
Figure 8. Queue Length performance comparison of Hybrid approach versus Discrete and Continuous baselines during traffic simulation.
Sensors 21 02302 g008
Table 1. Simulated traffic flow.
Table 1. Simulated traffic flow.
Distribution TypeConfigurationGenerated Flow
(Vehicles)
Start Time
(s)
End Time
(s)
Weibull DistC1
C2
C3
1500
4000
C1-C2-C1
0 s
0 s
0 s
3800 s
3800 s
11,000 s
Normal DistC4
C5
C6
1500
4000
C4-C5-C4
0 s
0 s
0 s
3800 s
3800 s
11,000 s
Table 2. Parameters Setting for Agent Training.
Table 2. Parameters Setting for Agent Training.
ParameterDescriptionValue
NNumber of training episodes301
MReplay Memory20,000
T r _ t h r e s h o l d Memory Training threshold128
bMini-batch size64
l r Q Actor Learning rate 0.001
l r x ParamActor Learning rate 0.00001
γ Gamma factor 0.95
e p s _ m i n minimum value of epsilon 0.01
e p s i l o n e p i s o d e s Number of epsilon episodes270
y e l l o w d u r a t i o n Yellow phase duration3 s
Table 3. Performance comparison of our framework to others with respect to average travel time (s).
Table 3. Performance comparison of our framework to others with respect to average travel time (s).
C1C2C3C4C5C6
Fixed-Time164.94254.01217.10165.45255.64223.92
Discrete approach142.07149.5147.28139.10147.86145.97
Continuous approach148.46167.02160.95137.03160.63154.25
Hybrid approach133.61141.05138.33130.59138.98136.89
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bouktif, S.; Cheniki, A.; Ouni, A. Traffic Signal Control Using Hybrid Action Space Deep Reinforcement Learning. Sensors 2021, 21, 2302. https://doi.org/10.3390/s21072302

AMA Style

Bouktif S, Cheniki A, Ouni A. Traffic Signal Control Using Hybrid Action Space Deep Reinforcement Learning. Sensors. 2021; 21(7):2302. https://doi.org/10.3390/s21072302

Chicago/Turabian Style

Bouktif, Salah, Abderraouf Cheniki, and Ali Ouni. 2021. "Traffic Signal Control Using Hybrid Action Space Deep Reinforcement Learning" Sensors 21, no. 7: 2302. https://doi.org/10.3390/s21072302

APA Style

Bouktif, S., Cheniki, A., & Ouni, A. (2021). Traffic Signal Control Using Hybrid Action Space Deep Reinforcement Learning. Sensors, 21(7), 2302. https://doi.org/10.3390/s21072302

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop