Traffic signal timing optimization control method for urban road network

Through the multi-intersection collaborative adaptive signal control model based on deep reinforcement learning, the traffic signal timing strategy is optimized, which solves the problem that emergency vehicles and public transportation are not fully considered in the existing technology, and achieves improved traffic efficiency and reduced delay time. effect.

CN117275228BActive Publication Date: 2024-08-30LANZHOU UNIVERSITY OF TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311229608.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2024-08-30
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

Existing traffic signal control methods are mainly aimed at single intersections and social vehicles, without fully considering the optimization of emergency vehicles and public transportation, and the feedback incentive model ignores the comprehensive benefits of emergency vehicles and public transportation, resulting in possible delays in rescue in traffic jams. time.

Method used

A multi-intersection collaborative adaptive signal control model based on deep reinforcement learning is adopted. By defining states, actions and reward functions, the Actor network and Critic network are designed, and the importance sampling and intersection dynamic density methods are introduced to optimize the traffic signal timing strategy. Prioritize emergency vehicle access.

Benefits of technology

Significantly improves the efficiency of the multi-intersection road network, reduces the average delay at intersections and the average travel time of vehicles, improves road resource utilization, and shows better signal priority, stability and safety when road resources are low sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117275228B
    Figure CN117275228B
Patent Text Reader

Abstract

The urban road network traffic signal timing optimization control method of the present invention introduces importance sampling on the basis of the traditional A2C algorithm to realize the experience sharing method of adjacent intersections. Through offline data sharing, adjacent intelligent agents are enabled to learn, thereby improving data utilization and system convergence efficiency. In terms of reward function setting, a hybrid reward function model of the intersection dynamic density method is proposed. While maximizing the traffic efficiency of social vehicles, the EMV priority is emphasized, and the problem of sparse rewards for deep reinforcement learning in the traffic road network environment is solved. Through simulation experiments based on synthetic networks and Monaco traffic networks, the average delay of intersections and the average travel time of vehicles can be effectively reduced, thereby increasing the vehicle throughput. Compared with social vehicles, the EMV extraction delay rate is lower than that of social vehicles. When the road resource utilization rate is low, the algorithm exhibits better signal priority, stability, practicality and safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of traffic signal timing, in particular to a method for optimizing and controlling the timing of traffic signals in an urban road network. Background Art

[0002] Traffic signal control is an important means of urban traffic management. The level of traffic signal control determines the operation quality of the urban road network to a large extent. At the same time, after an emergency occurs, urban emergency vehicles need to arrive at the first scene safely in the shortest time. If they face traffic congestion, they may delay rescue missions due to time delays, resulting in loss of life and property. Therefore, under normal traffic conditions, it is necessary to ensure that emergency vehicles pass through intersections quickly to prevent traffic congestion; or in the case of traffic congestion, it is of great practical significance to ensure that emergency vehicles pass quickly and guide traffic operations at the same time.

[0003] The American Standards and Engineering Association was the first to realize the impact of traffic on emergency vehicles and proposed the term "emergency vehicle priority". With the proposal of combining deep learning and reinforcement learning, a branch of machine learning, deep reinforcement learning (DRL), was derived. More scholars have noticed the potential of deep reinforcement learning in the field of traffic control. In recent years, with the improvement of computing power of computing equipment, more and more scholars have expanded the DRL model of a single agent to a multi-agent reinforcement learning (MARL) model, and it has developed rapidly in the field of regional traffic signal adaptive control and has been put into practical application. MARL control can autonomously learn and optimize strategy knowledge based on feedback information of control effects, accurately infer the optimal joint actions between multiple intersections, and enrich the content and form of regional traffic coordination control. It uses instant decision-making in seconds and can respond to changes in time-varying traffic flow in real time. At the same time, decentralized MARL control has a unified structural model and can be modified accordingly for specific road network structures and traffic flow characteristics. It only requires input and output data of the system, and has no requirements for the specific technology and form of data collection.

[0004] At present, the existing traffic signal control methods have the following problems: the vast majority of domestic research focuses on single intersections, some state-cooperative MARL and action-linked MARL have long been at the stage of tracking the latest foreign research results, and most MARL studies only consider social vehicles, without involving emergency vehicles, public transportation, and pedestrians. In addition, feedback incentives only use the number of passenger cars as the basic unit for modeling, thus ignoring the comprehensive benefits of emergency vehicles and public transportation. Summary of the invention

[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method for optimizing the timing control of traffic signals in urban road networks, which can be applied to the coordinated adaptive signal control of multiple intersections in urban road networks.

[0006] The technical solution thereof comprises the following steps:

[0007] Step S1, establishing a traffic signal control model based on deep reinforcement learning;

[0008] Step S2, training a multi-intersection coordinated adaptive signal timing optimization control model based on deep reinforcement learning;

[0009] Step S3, based on step S2, generates a traffic signal timing optimization control strategy and a continuous update model.

[0010] Preferably, the establishment of a traffic signal control model based on deep reinforcement learning comprises the following steps:

[0011] S11. Define the state of the deep reinforcement learning control model and construct the joint state

[0012]

[0013] in, are the number of vehicles upstream and downstream of the intersection including emergency vehicles, respectively, and w t is the waiting time of the upstream leading vehicle at the intersection, d t,emv is the shortest distance between the emergency vehicle and intersection i;

[0014] s12. Define the actions of the deep reinforcement learning control model. The action switch of each intersection is in its action set A. i Choose from:

[0015] A i ={NS,NSL,WE,WEL}

[0016] Among them, NS means going straight in the north-south direction; NSL means turning left in the north-south direction; WE means going straight in the east-west direction; WEL means turning left in the east-west direction;

[0017] s13. Define the reward value function of the deep reinforcement learning control model;

[0018] s14. Design actor network and critic network.

[0019] The beneficial effects of the present invention are as follows: (1) Importance sampling is introduced on the basis of the traditional A2C algorithm to realize the neighboring intersection experience sharing method, and the neighboring intelligent agents are enabled to learn through offline data sharing, thereby improving data utilization and system convergence efficiency;

[0020] (2) In terms of reward function setting, a hybrid reward function model of the intersection dynamic density method is proposed. While maximizing the traffic efficiency of social vehicles, it emphasizes the priority of EMV and solves the problem of sparse rewards in deep reinforcement learning in the traffic network environment.

[0021] (3) Through simulation experiments based on synthetic networks and Monaco's traffic network, the results show that this method can not only significantly improve the efficiency of multi-intersection road networks, but also effectively reduce the average delay at intersections and the average travel time of vehicles, thereby increasing vehicle throughput. Compared with social vehicles, the EMV extraction delay rate is lower than that of social vehicles. When the road resource utilization rate is low, the algorithm shows better signal priority, stability, practicality and safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the steps of the present invention.

[0023] Figure 2 This is a flow chart of the steps of establishing a traffic signal control model based on deep reinforcement learning according to the present invention. DETAILED DESCRIPTION

[0024] For the above and other technical contents, features and effects of the present invention, please refer to the following attached Figures 1 to 2 The detailed description of the embodiments will clearly show that the structural contents mentioned in the following embodiments are all based on the drawings in the specification.

[0025] Exemplary embodiments of the present invention will be described below with reference to the accompanying drawings.

[0026] Embodiment 1, a method for optimizing the timing of traffic signals in an urban road network, comprises the following steps:

[0027] Step S1, establish a traffic signal control model based on deep reinforcement learning. The core idea of ​​the reinforcement learning method to solve the traffic signal timing optimization problem is to obtain delayed rewards through the previous model setting, and continue to let the intelligent agent perform actions defined in the action space in the traffic network environment to obtain corresponding benefits, so as to finally let the intelligent agent learn the optimal action strategy and maximize the return, and achieve the optimization goal of traffic network signal timing. The effect of using reinforcement learning alone to perform optimization control in a high-dimensional and complex traffic network environment is not ideal. Therefore, when performing signal timing optimization control at multiple intersections, reinforcement learning combined with a neural network of deep learning methods will be used to finally achieve the goal of optimization control;

[0028] Step S2, training a multi-intersection coordinated adaptive signal timing optimization control model based on deep reinforcement learning;

[0029] Step S3, based on step S2, generates a traffic signal timing optimization control strategy and a continuously updated model, and uses the deep reinforcement learning traffic signal timing optimization control model run in step S2 to continuously train and optimize in the actual road network. After repeated cycles, the model can be better adapted to the actual traffic network and achieve coordinated control of traffic signals at multiple intersections.

[0030] Embodiment 2, based on embodiment 1, the establishment of a traffic signal control model based on deep reinforcement learning includes the following steps:

[0031] S11. Define the state of the deep reinforcement learning control model and construct a joint state to reflect the local traffic network conditions

[0032]

[0033] in, are the number of vehicles upstream and downstream of the intersection including emergency vehicles, respectively, and w t is the waiting time of the upstream leading vehicle at the intersection, d t,emv is the shortest distance between the emergency vehicle and intersection i;

[0034] s12. Define the actions of the deep reinforcement learning control model. Generally, there are two action settings for signal light phase control: fixed phase sequence and variable phase sequence. The present invention predefines the possible traffic signal phases of the intersection. Each action represents a set of phase states of the entire intersection. The action switching of each intersection is in its action set A. i Since right-turning vehicles in the lane can basically pass directly under the condition of ensuring safety in the real environment, the actions of straight-going and right-turning vehicles are combined to form an action space including four actions: north-south straight-going, north-south left-turning, east-west straight-going, and east-west left-turning, taking into account the flexibility and stability of action switching:

[0035] A i ={NS,NSL,WE,WEL}

[0036] Among them, NS means going straight in the north-south direction; NSL means turning left in the north-south direction; WE means going straight in the east-west direction; WEL means turning left in the east-west direction;

[0037] s13. Define the reward value function of the deep reinforcement learning control model and propose a hybrid reward function model for different traffic vehicles;

[0038] s14. Design the actor network and the critic network. In the actor-critic framework, in order to preserve the hidden state information of traffic in the time dimension in a short term and improve the system instability caused by local observation state, a 64×1 LSTM network is used in the network to improve the stability of the system. On the basis of the traditional A2C algorithm, the off-policy data of other agents (i.e., the trajectories generated by neighboring agents) are used as part of the current agent training data. Since this data is not the optimal strategy, it is necessary to perform importance sampling on it based on the behavioral strategy μ. After adding the neighbor experience sharing data of agent i, the policy gradient loss function of agent i can be obtained.

[0039] Embodiment 3, based on embodiment 2, the reward value function of the deep reinforcement learning control model is defined, including a reward function with emergency vehicles as the object, and the steps are as follows:

[0040] S131A, the final evaluation standard for emergency vehicle priority passage is the time taken to reach the destination from the starting point, but travel time is a long-term reward, which depends on a series of indirect signal controls and cannot construct timely rewards. The minimum dynamic density of the lane where the emergency vehicle is located is taken as the optimization target. Based on this, the present invention constructs a reward function that can truly feedback the emergency vehicle traffic control effect from the following two aspects, takes the minimum dynamic density of the lane where the emergency vehicle is located as the optimization target, balances the social vehicles in the evacuation lane, and optimizes the road resources of the emergency vehicle. Its dynamic density reward is expressed as:

[0041]

[0042] Where x(l) represents the number of vehicles in lane l, x max (l) represents the maximum capacity of the lane; accordingly, x(m) and x max (l) represents the number of vehicles and the maximum capacity of the downstream lane m, respectively. The intersection turning model is defined as a pair (l, m)∈M from the intersection entry lane l to the exit lane m corresponding to the next edge. The arrow indicates that when a vehicle enters the downstream lane from the upstream lane, there are two choices, that is, h(m)=2;

[0043] S132A, the emergency vehicle intersection driving status reward is:

[0044]

[0045] Among them, v emv is the speed of the emergency vehicle, v max is the maximum allowed speed of the lane;

[0046] S133A, the reward function for the emergency vehicle is:

[0047] remv,t -10r des (l))+r s (4).

[0048] Embodiment 4, based on embodiment 2, the reward value function of the deep reinforcement learning control model is defined, including a reward function with social vehicles as the object, and the steps are as follows:

[0049] s131B. The average waiting reward function of the first vehicle at intersection i can be expressed as:

[0050]

[0051] Among them, N t represents the number of leading vehicles, r h,t Waiting for negative rewards for the vehicle, specifically:

[0052]

[0053] Among them, W h,t represents the total waiting time of vehicle h up to time t;

[0054] s132B. The reward function passed per unit time can be expressed as:

[0055]

[0056] Among them, φ1 and φ2 represent the weight factors of the number of passing vehicles and the number of vehicles queuing in the lane, and φ1+φ2=1, r′ pass is defined as the number of vehicles passing through the intersection in one time step:

[0057]

[0058] In the above formula, m is the number of intersection edges, n is the number of lanes contained in each edge, and Indicates the number of queued vehicles in a lane at adjacent moments;

[0059] s133B. The social vehicle reward function is:

[0060] r veh,t =–r wait +r pass (9)

[0061] s134B. The total system reward is:

[0062]

[0063] The mixed reward function for different passing vehicles can truly feedback the emergency vehicle traffic control effect and achieve targeted control.

[0064] Example 5, based on Example 2, the steps of designing the actor network and the critic network are as follows:

[0065] s141. A 64×1 LSTM network is used in the network to improve the stability of the system. On the basis of the traditional A2C algorithm, the off-policy data of other agents is used as part of the training data of the current agent. The importance sampling is performed on the behavior strategy μ. After adding the neighbor experience sharing data of agent i, the policy gradient loss function of agent i can be obtained.

[0066] S142. Introduce the neighboring agents of agent i at the previous moment, and use the value loss function as the input feature of the agent strategy function. The strategy function of agent i can be set as:

[0067]

[0068] The single-step reward function of agent i corresponding to a certain intersection is:

[0069]

[0070] Among them, α is the spatial discount factor, which is used to weaken the state and reward of the surrounding agents to balance the competition and cooperation between agents. i represents the shortest distance between agent i and the edge agents in the region;

[0071] S143. Experience is shared between intersections, so the policy gradient loss function is:

[0072]

[0073] Among them, λ is the offline data weight factor. By extending the loss of the local intersection agent from the synchronous policy to the asynchronous policy data of other agents, the loss function of the Critic network can be expressed as:

[0074]

[0075] Example 6, based on Example 1, the training of a multi-intersection coordinated adaptive signal timing optimization control model based on deep reinforcement learning, the specific implementation steps include:

[0076] s21. Build a traffic simulation environment based on the microscopic traffic simulation software SUMO. SUMO is a time-discrete and space-continuous microscopic traffic simulation software. SUMO TraCI provides a client / server architecture based on the TCP protocol. The controller is remotely controlled. <int>The port accesses SUMO as a client, obtains the value of the simulation object, and controls the simulation object online. By building a synthetic network in SUMO and introducing the actual road network of Monaco, the corresponding vehicle flow information data is established to generate traffic status information for each signal cycle;

[0077] s22. Initialize the deep reinforcement learning traffic signal control model and the algorithm parameters, including the maximum number of rounds epsilon for training the control model, the number of time steps per round T, the batch size B of each batch of processed data, and the Actor network learning rate η ω , Critic network learning rate η_θ, and initialize the policy network and value function network;

[0078] s23. Initialize the number of training rounds to 1;

[0079] s24. Initialize the number of training time steps for each round, so that the number of time steps is initialized to 0;

[0080] s25. Obtain the traffic status information of the intersection from the simulated road network as input, run the policy network to select the execution action, return the corresponding reward and state, output the probability corresponding to each action, then increase the time step by 1, loop until the sampled data reaches the value of the small batch, and proceed to the next step;

[0081] s26. Calculate the advantage function and reward estimation, and update the Actor network and Critic network;

[0082] s27. Check the number of time steps in the round. If the number of time steps does not reach the specified maximum number of time steps, execute step s25. If the time step reaches the specified maximum time step, update the network parameters to complete the training within one round and execute the next step.

[0083] s28. Check the number of training rounds. If the number of rounds epsilon is less than the maximum number of rounds, the current number of rounds is increased by 1, and step s24 is executed to start the next round of training. Otherwise, the entire traffic signal timing control training is completed.

[0084] The above is a further detailed description of the present invention in combination with a specific implementation method, and it cannot be determined that the specific implementation of the present invention is limited to this; for technical personnel in the technical field to which the present invention belongs and related technical fields, based on the technical solution of the present invention, the expansion and replacement of operating methods and data should all fall within the protection scope of the present invention.< / int>

Claims

1. A method for optimizing the timing of traffic signals in urban road networks, characterized in that: The following steps are involved: Step S1, establishing a traffic signal control model based on deep reinforcement learning; Step S2, training a multi-intersection coordinated adaptive signal timing optimization control model based on deep reinforcement learning; Step S3, based on step S2, generating a traffic signal timing optimization control strategy and a continuous updating model; The establishment of a traffic signal control model based on deep reinforcement learning includes the following steps: S11. Define the state of the deep reinforcement learning control model and construct the joint state in, are the number of vehicles upstream and downstream of the intersection including emergency vehicles, respectively, and w t is the waiting time of the upstream leading vehicle at the intersection, d t,emv is the shortest distance between the emergency vehicle and intersection i; s12. Define the actions of the deep reinforcement learning control model. The action switch of each intersection is in its action set A. i Choose from: A i ={NS,NSL,WE,WEL} Among them, NS means going straight in the north-south direction; NSL means turning left in the north-south direction; WE means going straight in the east-west direction; WEL means turning left in the east-west direction; s13. Define the reward value function of the deep reinforcement learning control model; s14. Design actor network and critic network; The training of the multi-intersection coordinated adaptive signal timing optimization control model based on deep reinforcement learning includes the following specific implementation steps: s21. Build a traffic simulation environment based on the microscopic traffic simulation software SUMO. SUMO is a time-discrete and space-continuous microscopic traffic simulation software. SUMO TraCI provides a client / server architecture based on the TCP protocol. The controller is remotely controlled. <int> The port accesses SUMO as a client, obtains the value of the simulation object, and controls the simulation object online. By building a synthetic network in SUMO and introducing the actual road network of Monaco, the corresponding vehicle flow information data is established to generate traffic status information for each signal cycle;< / int> s22. Initialize the deep reinforcement learning traffic signal control model and the algorithm parameters, including the maximum number of rounds epsilon for training the control model, the number of time steps per round T, the batch size B of each batch of processed data, and the Actor network learning rate η ω 、Critic network learning rate η θ , and initialize the policy network and value function network; s23. Initialize the number of training rounds to 1; s24. Initialize the number of training time steps for each round, so that the number of time steps is initialized to 0; s25. Obtain the traffic status information of the intersection from the simulated road network as input, run the policy network to select the execution action, return the corresponding reward and state, output the probability corresponding to each action, then increase the time step by 1, loop until the sampled data reaches the value of the small batch, and proceed to the next step; s26. Calculate the advantage function and reward estimation, and update the Actor network and Critic network; s27. Detect the number of time steps in the round. If the number of time steps does not reach the specified maximum number of time steps, execute step s25. If the time step reaches the specified maximum time step, update the network parameters to complete the training in one round and execute the next step. s28. Check the number of training rounds. If the number of rounds epsilon is less than the maximum number of rounds, the current number of rounds is increased by 1, and step s24 is executed to start the next round of training. Otherwise, the entire traffic signal timing control training is completed.

2. The urban road network traffic signal timing optimization control method according to claim 1, characterized in that: The reward value function of the deep reinforcement learning control model is defined, including a reward function with the emergency vehicle as the object, and the steps are: S131A takes the minimum dynamic density of the lane where the emergency vehicle is located as the optimization target, balances the social vehicles in the evacuation lane and optimizes the road resources of the emergency vehicle. Its dynamic density reward is expressed as: Where x(l) represents the number of vehicles in lane l, x max (l) represents the maximum capacity of the lane; accordingly, x(m) and x max (m) respectively represent the number of vehicles and the maximum capacity of the downstream lane m. The intersection turning model is defined as a pair (l, m)∈M from the intersection entry lane l to the exit lane m corresponding to the next edge. The arrow indicates that when a vehicle enters the downstream lane from the upstream lane, there are two choices, that is, h(m)=2; S132A, the emergency vehicle intersection driving status reward is: Among them, v emv Calculate the speed for the emergency vehicle, v max is the maximum allowed speed of the lane; S133A, the reward function for the emergency vehicle is: r emv,t =-10r des (l)+r s (4)。 3. The urban road network traffic signal timing optimization control method according to claim 1, characterized in that: The reward value function of the deep reinforcement learning control model is defined, including a reward function with social vehicles as the object, and the steps are: s131B. The average waiting reward function of the first vehicle at intersection i can be expressed as: Among them, N t represents the number of leading vehicles, r h,t Waiting for negative rewards for the vehicle, specifically: Among them, W h,t represents the total waiting time of vehicle h up to time t; s132B. The reward function passed per unit time can be expressed as: Among them, φ1 and φ2 represent the weight factors of the number of passing vehicles and the number of vehicles queuing in the lane, and φ1+φ2=1, r′ pass is defined as the number of vehicles passing through the intersection in one time step: In the above formula, m is the number of intersection edges, n is the number of lanes contained in each edge, and Indicates the number of queued vehicles in a lane at adjacent moments; s133B. The social vehicle reward function is: r veh,t =-r wait +r pass (9) s134B. The total system reward is: The mixed reward function for different passing vehicles can truly feedback the emergency vehicle traffic control effect and achieve targeted control.

Citation Information

Patent Citations

  • Method, system and device for controlling single-intersection traffic signal control based on deep reinforcement learning

    CN110428615A

  • Urban traffic jam scheduling method based on reinforcement learning

    CN114550456A