Perimeter Control Using Deep Reinforcement Learning: A Model-Free Approach Towards Homogeneous Flow Rate Optimization

Xiaocan Li, Ray Coden Mercurius, Ayal Taitler, Xiaoyu Wang, Mohammad Noaeen, Scott Sanner, Baher Abdulhai

Introduction

Urban traffic networks frequently suffer from oversaturation during peak hours, leading to a phenomenon known as "capacity drop." This occurs when vehicle density exceeds a critical threshold, causing a significant decrease in the network's throughput and resulting in gridlock. To mitigate this, traffic engineers employ perimeter control (or gating), which regulates the flow of vehicles entering a protected urban region to maintain internal density at an optimal level.

Traditionally, perimeter control relies on macroscopic traffic models, such as Network Transmission Models (NTMs) and Macroscopic Fundamental Diagrams (MFDs). However, these mathematical abstractions often fail to capture the complexities of real-world traffic, such as individual driver behavior, signal timings, and road geometry. This paper proposes a model-free Deep Reinforcement Learning (DRL) approach that bypasses these modeling inaccuracies by learning optimal control policies directly from microscopic simulations.

Problem Statement

Traditional model-based controllers are limited by the inherent noise and hysteresis found in MFDs—where traffic behavior differs during the "loading" and "unloading" phases of a rush hour. Furthermore, these models often require a precisely tuned "set-point" (the ideal density), which is difficult to determine in dynamic environments. When the underlying model is biased or overly simplistic, the resulting control strategy can lead to sub-optimal performance or even exacerbate congestion.

Methodology

The researchers formulated perimeter control as a model-free RL problem using the Proximal Policy Optimization (PPO) algorithm. Unlike traditional methods, this approach does not require a pre-defined mathematical model of the traffic network.

The Simulation Environment

To provide a realistic "ground truth," the authors utilized Aimsun, a high-fidelity microscopic traffic simulator. This allowed the agent to interact with a complex environment where individual vehicle interactions and specific road geometries are modeled, providing a level of detail that macroscopic models ignore.

Agent Design

  • State Space: The study evaluated multiple state designs, concluding that a 6D state vector was most effective. This vector includes current internal density, the density of feeder links (queues waiting to enter), and predicted future demand.
  • Action Space: The agent determines a "homogeneous" flow metering rate, ranging from 50 to 300 vehicles per hour per meter, applied uniformly to all entry points of the protected region.
  • Reward Function: The agent is incentivized to maximize the trip completion rate, directly aligning the RL objective with the goal of clearing the network as efficiently as possible.

Experimental Setup

The approach was tested on a synthetic 5x5 grid network featuring 24 feeder links. The demand profile simulated a 135-minute rush hour involving 11,000 internal and 6,000 external trips. To test the robustness of the DRL agent, the authors introduced two stress tests:

  1. Scalability Test: Adjusting total vehicle volume from 80% to 120% of the training data.
  2. Peakedness Test: Modifying the intensity of the rush hour peak while maintaining the same total vehicle count.

Key Results and Analysis

The DRL-based approach demonstrated significant improvements over both no-control scenarios and traditional control methods:

  • Efficiency: The PPO agent reduced the Total Time Spent (TTS) by 59.9% compared to a scenario with no perimeter control.
  • Benchmarking: The agent outperformed a standard Proportional-Integral (PI) controller by an average of 10.5%.
  • Generalizability: In scalability tests, the performance gap between the PPO agent and the PI controller widened as traffic volume increased. This suggests that the DRL approach is more resilient to extreme congestion than traditional model-based methods.
  • Policy Discovery: Interestingly, visualization of the learned policy revealed that the agent independently "discovered" a three-piecewise linear function. It allows maximum flow at low densities, decreases flow linearly as density approaches the critical threshold, and applies a minimum gate during oversaturation. This alignment with traffic engineering intuition—achieved without pre-defined physics—validates the model-free approach.

Discussion and Future Work

A critical insight from the study is the importance of proactive gating. By incorporating historical demand predictions into the state space, the agent improved performance by 7.8% over a purely reactive strategy. This highlights the value of "looking ahead" in urban traffic management.

Despite these successes, the study identifies several areas for future research. The current model assumes homogeneous control, applying the same rate to all gates. Future iterations will explore heterogeneous control to manage irregular city layouts where specific feeder links may require unique metering rates. Additionally, the researchers plan to transition from flow metering rates to direct traffic signal control (green/red cycles) and test the framework on irregular, real-world urban topologies.

Summary updated

Abstract

Perimeter control maintains high traffic efficiency within protected regions by controlling transfer flows among regions to ensure that their traffic densities are below critical values. Existing approaches can be categorized as either model-based or model-free, depending on whether they rely on network transmission models (NTMs) and macroscopic fundamental diagrams (MFDs). Although model-based approaches are more data efficient and have performance guarantees, they are inherently prone to model bias and inaccuracy. For example, NTMs often become imprecise for a large number of protected regions, and MFDs can exhibit scatter and hysteresis that are not captured in existing model-based works. Moreover, no existing studies have employed reinforcement learning for homogeneous flow rate optimization in microscopic simulation, where spatial characteristics, vehicle-level information, and metering realizations - often overlooked in macroscopic simulations - are taken into account. To circumvent issues of model-based approaches and macroscopic simulation, we explore a model-free deep reinforcement learning approach that optimizes the flow rate homogeneously at the perimeter at the microscopic level. Additionally, we investigate different arrangements of the agent's state space to assess the importance of different state variables. Results demonstrate that the model-free reinforcement learning approach without any knowledge of NTMs or MFDs can compete and match the performance of a model-based approach, and exhibits enhanced generalizability and scalability.
BibTeX
@inproceedings{li2023perimeter,
  author = {Xiaocan Li and Ray Coden Mercurius and Ayal Taitler and Xiaoyu Wang and Mohammad Noaeen and Scott Sanner and Baher Abdulhai},
  title = {{Perimeter Control Using Deep Reinforcement Learning: A Model-Free Approach Towards Homogeneous Flow Rate Optimization}},
  booktitle = {ITSC},
  year = {2023},
  url = {https://openreview.net/forum?id=DggdYKQW9A},
}
Figure