Home

Awesome

Agent-based Traffic Signal Management System by Model-free Reinforcement Learning

Overview

Traffic congestion is always a daunting problem that affects people's daily life across the world. The objective of this work is to develop an intelligent traffic signal management to improve traffic performance, including alleviating traffic congestion, reducing waiting times, improving the throughput of a road network, and so on. Traditionally, traffic signal control typically formulates signal timing as an optimization problem. In this work, reinforcement learning (RL) techniques have been investigated to tackle traffic signal control problems through trial-and-error interaction with the environment. Comparing with traditional approaches, RL techniques relax the assumption about the traffic and do not necessitate creating a traffic model. Instead, it is a more human-based approach that can learn through trial-and-error search. The results from this work demonstrate the convergence and generalization performance of the RL approach as well as a significant improvement in terms of less waiting time, higher speed, collision avoidance, and higher throughput.

About

This repository provides detailed instructions on the design and implementation of the RL algorithm to solve the traffic signal control problem. It shows three different traffic signal designs, as well as the process of intelligent RL agent learns to manage the traffic light adapting to real-time traffic conditions. Meanwhile, the environment interface is devised that the user can specify their own traffic signal design and RL algorithms to test it on.

                                    Training Stage

                                    Trained Agent

Getting Started

The introduction and detailed step-by-step instructions can be found from MATLAB Live Script: masterLiveScript.mlx preferred. Alternatively, you can also start with master.m, which is a MATLAB script viewable on GitHub.

The workflow of the developing process mainly involves five steps:

application workflow

Dependencies

This model has been tested with MATLAB R2020b. The version tested with MATLAB R2020a is being developed. Here is a list of products required to run:

<!-- ![traffic performance comparision](./savedTestExperience/comparison2.png) -->