Deep reinforcement learning traffic signal control method based on multiple targets and multiple agents
Through the multi-objective and multi-agent deep reinforcement learning signal control method, the phase switching of traffic lights is optimized, which solves the problem of vehicle exhaust emissions and pedestrian crossing needs in the existing technology, and achieves the alleviation of traffic congestion and shortening of pedestrian waiting time. effect.
Patent Information
- Application Number
- CN202410708201.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
AI Technical Summary
Existing traffic signal control methods mainly take vehicles as the optimization target and fail to effectively consider vehicle exhaust emissions and pedestrian crossing needs, resulting in traffic congestion and long waiting times for pedestrians.
A deep reinforcement learning signal control method based on multi-objective multi-agent is adopted. By constructing an intersection simulation road network model, pedestrian crossing demand perception based on video data, designing status, action and reward functions, the MADDPG algorithm is used to construct multi-agent deep reinforcement. Learn models to optimize phase switching of traffic lights to alleviate traffic congestion and reduce vehicle emissions.
It can meet the needs of pedestrians to cross the street while reducing the number of vehicle stops and waiting time, reducing vehicle exhaust emissions at the intersection, shortening the waiting time of pedestrians, and improving the traffic efficiency of the intersection.
Smart Images

Figure CN118629228A
Abstract
Description
Technical Field
[0001] The invention of this article relates to a deep reinforcement learning signal control method based on multi-objective and multi-agent, which is used in the field of urban traffic signal control and belongs to the field of intelligent transportation. Technical Background
[0003] With the rapid development of artificial intelligence technology, data-driven reinforcement learning (RL) is widely used in the field of intelligent traffic signal control. Reinforcement learning does not need to model complex environments, and its flexibility and adaptability make it complement the changing traffic environment. This provides new ideas and methods for model-based traffic signal control. At present, most of the existing traffic signal control work takes vehicles as the optimization target, without considering vehicle exhaust emissions and pedestrian crossing needs at intersections. The present invention proposes a traffic signal control method based on deep reinforcement learning of multiple objectives and multiple agents to alleviate traffic congestion, reduce vehicle exhaust emissions and pedestrian waiting time, and improve the traffic efficiency of intersections. Summary of the invention
[0004] In view of the above problems, the present invention proposes a multi-objective multi-agent based deep reinforcement learning signal control method. The present invention reduces the number of vehicle stops and waiting time at the intersection while meeting the crossing needs of pedestrians at the zebra crossing at the intersection, thereby reducing vehicle exhaust emissions at the intersection and shortening the waiting time of pedestrians.
[0005] The basic steps of the present invention are as follows.
[0006] S1: Construct intersection simulation road network model.
[0007] S2: Pedestrian crossing demand perception at intersection zebra crossings based on video data.
[0008] S3: Construct the states, actions, and rewards of a transportation system defined by deep reinforcement learning.
[0009] S4: Construct a multi-objective and multi-agent deep reinforcement learning model.
[0010] The process of step S1 includes:
[0011] Use SUMO simulation software to build the intersection network model. Use NETEDIT to build the road network model, set the attributes of road sections and intersections, and set the traffic flow attributes in the road network (speed, vehicle type, etc.).
[0012] The process of step S2 includes:
[0013] S21: Establish a pedestrian crossing target detection model based on video data.
[0014] S22: Perform inference on the pedestrian crossing target detection model and process the label data output by the model inference.
[0015] S23: Estimate the spatial distribution of pedestrian trajectories and analyze the characteristics of pedestrian spatial trajectories.
[0016] S24: Perform cluster analysis on the trajectory data to extract the starting and ending points of pedestrians crossing the street, and extract the dynamic OD matrix of pedestrians crossing the street according to the number of people crossing the street at different times.
[0017] The S3 process includes:
[0018] S31: State-space design.
[0019] Based on the estimation results of pedestrian crossing demand based on video data, the phase information of traffic signal control is encoded using the one-hot encoding method. At the same time, the minimum green light information of each phase and the dynamic stock of motor vehicles on the road section are considered to design the state of reinforcement learning.
[0020] S32: Action Space Design.
[0021] The agent interacts with the environment through actuators and performs corresponding actions. In the field of intelligent signal control, the action set is usually discrete, mainly divided into two types: fixed phase sequence and variable phase sequence. In the actual road network, the choice of phase mainly depends on the actual traffic conditions of the intersection, including its geometry, channelization design, traffic flow and other specific control objectives. The phase can be designed according to specific needs. At present, for common intersections, four phases are usually used: east-west straight, east-west left turn, north-south straight, and north-south left turn.
[0022] S33: Reward function design.
[0023] The goal of the intelligent agent is to ease traffic congestion, shorten pedestrian waiting time and reduce vehicle exhaust emissions. Therefore, the minimum total delay target for travelers, the minimum carbon emission target for vehicles, the minimum queue length target and the maximum speed target are established, and an adaptive optimization model of weight coefficients for different targets is constructed.
[0024] definition The reward function at time t is defined as follows.
[0025]
[0026] in represents the traveler's waiting time reward function; represents the CO2 emission reward function; represents the queue length reward function; represents the vehicle speed reward function; Represents the weight coefficient.
[0027] S34: Punishment function design.
[0028] Through the penalty function, the agent is guided to avoid taking bad actions in the future learning process. When the cumulative reward of the agent is lower than a certain threshold, a penalty value is assigned to the reward. ; When a vehicle in the road network waits too long, a penalty value is assigned to the reward When the waiting time of pedestrians exceeds the tolerable time, pedestrians are likely to run red lights and violate traffic rules. A pedestrian waiting time threshold is designed for pedestrians' waiting time to cross the street. When the pedestrian waiting time exceeds the threshold, a penalty value is assigned to the reward. , in order to reduce the number of pedestrians running red lights.
[0029]
[0030]
[0031]
[0032] in Indicates accumulated rewards; Indicates the cumulative reward threshold; Indicates the vehicle waiting time; Indicates the vehicle waiting time threshold; Indicates pedestrian waiting time; Indicates the pedestrian waiting time threshold.
[0033] S4: Construct a multi-objective and multi-agent deep reinforcement learning model.
[0034] MADDPG (Multi-Agent Deep Deterministic Policy Gradient) algorithm is an advanced multi-agent reinforcement learning technology. It solves the cooperation and competition problems in multi-agent systems by allowing multiple agents to learn collaboratively in a shared environment. The MADDPG algorithm allows agents to quickly converge to the optimal strategy through mutual observation and learning without understanding the environmental dynamics model, thereby showing strong adaptability and flexibility in complex dynamic environments. Therefore, the multi-objective reinforcement learning model of the present invention selects the MADDPG algorithm, and the network of the algorithm includes: a policy network, a value network and a target network, wherein the value network includes: a local value network and a global value network. The input of the model is the current traffic state of the intersection, and the output is the probability distribution of the action. The local value network is used to evaluate the value of the action taken by the agent in a specific state, while taking into account the influence of individual rewards and neighboring agents; the global value network evaluates the value of the agent from a global perspective, aiming to maximize the reward of the entire system.
[0035] The present invention has the following benefits.
[0036] (1) The present invention adjusts the phase switching of traffic lights through real-time traffic flow information, thereby alleviating traffic congestion and reducing vehicle exhaust emissions at intersections.
[0037] (2) The present invention takes into account the needs of pedestrians crossing the street at intersections, reduces the waiting time for pedestrians to cross the street, and improves the safety of pedestrians crossing the street. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the process of the present invention
[0039] Figure 2 Schematic diagram of pedestrian crossing demand perception at intersection zebra crossings based on video data
[0040] Figure 3 This is a diagram of the actions of the traffic light agent. DETAILED DESCRIPTION
[0041] like Figure 1 As shown, the basic steps of the present invention are as follows.
[0042] S1: Construct intersection simulation road network model.
[0043] S2: Perception of new pedestrian crossing needs at zebra crossings at intersections based on video data.
[0044] S3: Construct the states, actions, and rewards of a transportation system defined by deep reinforcement learning.
[0045] S4: Construct a multi-objective and multi-agent deep reinforcement learning model.
[0046] The process of step S1 includes:
[0047] Use SUMO simulation software to build the intersection network model. Use NETEDIT to build the road network model, set the attributes of road sections and intersections, and set the traffic flow attributes in the road network (speed, vehicle type, etc.).
[0048] like Figure 2 As shown, the process of step S2 includes:
[0049] S21: Establish a pedestrian crossing target detection model based on video data.
[0050] Pedestrian target detection datasets (Caltech Pedestrian, MOT 16, MOT17, USA Pedestrian Detection Test, INRIA Person Dataset, City Persons) are used to train the multi-target tracking detection algorithm model. The model is optimized through optimization strategies such as data enhancement strategy and spatial domain attention mechanism. The model accuracy is tested, and a multi-target detection model for pedestrian crossing is established based on computer vision.
[0051] S22: Perform inference on the pedestrian crossing target detection model and process the label data output by the model inference.
[0052] Based on the pedestrian crossing multi-target detection model in S11, the model is inferred, the actual collected pedestrian crossing video data is input, and the structured label data (frame number, pedestrian number, center coordinates of the pedestrian detection box, and width and height parameters) is output. The label data is processed, the actual time corresponding to the frame number is extracted according to the set frame rate, and the coordinates in the picture are converted into actual physical coordinates , extract the number of people in each frame. After label data processing, output the pedestrian crossing trajectory and the number of people crossing the street.
[0053] S23: Fit the spatial distribution of pedestrian trajectories to describe the characteristics of pedestrian spatial trajectories.
[0054] The multidimensional kernel density estimation method is used to estimate the spatial distribution of pedestrian trajectories and analyze the characteristics of pedestrian spatial trajectories.
[0055] set up The data of pedestrian trajectory sample points is a dimensional random vector. Its density function is , yes A random sample drawn from , is the number of random samples. The probability density function of is estimated as follows.
[0056]
[0057] in, It is a kernel smoothing function - a non-negative function; is the pedestrian trajectory variable; the kernel function with subscript is called the scaling kernel and is defined as , yes is a symmetric and positive definite matrix.
[0058] When the origin of the detection area is set at the center of the detection area, the pedestrian trajectory cumulative distribution function The calculation is as follows.
[0059]
[0060] S24: Use DBSCAN (Density-Based Spatial Clustering of Applications with Noise) to cluster the trajectory data. The following are the specific steps of DBSCAN.
[0061] (1) Setting the hyperparameter neighborhood radius And the minimum number of sample points P in the neighborhood.
[0062] (2) The core sample points are calibrated in the pedestrian trajectory data set output in S22, and all sample points that are densely connected to the core sample points are found. Points that are not densely connected to the core sample points are recorded as noise.
[0063] (3) Repeat step (2) until a core sample is found, and then find the corresponding density-connected sample points for all core objects in its neighborhood.
[0064] (4) Traverse all temporary noise points and repeat (2) and (3) until there are no new core objects.
[0065] (5) After completing the above operations, the points that are still not classified are marked as final noise points.
[0066] Extract the starting and ending points of pedestrian crossings, and extract the dynamic OD matrix of pedestrian crossings based on the number of people crossing at different times.
[0067] The S3 process includes:
[0068] S31: State-space design.
[0069] The phase information of traffic signal control is encoded using the one-hot encoding method, while the minimum green light information of each phase, pedestrian crossing demand and dynamic stock of motor vehicles are considered as reinforcement learning states.
[0070] The estimated motor vehicle stock of the road segment is shown below.
[0071] Assume that there are virtual detectors before and after the entrance and exit of the road section and , including the cumulative curve of vehicles driving from the target section to the entrance and exit is , including the cumulative curve of vehicles driving from the entrance and exit to the target section is , the upstream vehicle cumulative curve is , the downstream vehicle cumulative curve is Assumptions: (1) The initial stock is 0; (2) The vehicle capture rate of the upstream and downstream sections is 100%; (3) The road section has one and only one entrance and exit. Then the dynamic stock of motor vehicles in the entrance and exit sections is for.
[0072]
[0073] According to whether the upstream and downstream vehicles match, the upstream vehicle cumulative curve is divided into two categories, which can be divided into the part that can match the downstream vehicle , failed to match the downstream vehicle part ; Similarly, divide the downstream accumulated vehicle curve into parts that can match the upstream vehicles , the part that fails to match the upstream vehicle ; The vehicle cumulative curve at the entrance and exit virtual detector position is also divided into the matching part , , and the unmatched part , As shown below.
[0074]
[0075] When the distance between the two virtual detectors at the entrance and exit is very close, , combined with formula (7) and (8), the dynamic stock of motor vehicles on the road section is transformed into the following.
[0076]
[0077] in, and Unknown, needs to be estimated. It can be calculated by the upstream unmatched vehicle accumulation curve and downstream unmatched vehicle accumulation curve Reconstruct the cumulative vehicle curve of the unmatched vehicles of the entrance and exit virtual detector and estimate and .
[0078] When considering the initial stock of a road section with entrances and exits, since there are entrances and exits in the road section, upstream vehicles may exit the road section from the entrances and exits, and vehicles may also drive downstream from the entrances and exits. Then, the cumulative number of changes in upstream vehicles and the cumulative number of changes in downstream vehicles may not be equal. Let the cumulative number of changes in the entrances and exits be , assuming that from time To time During the time period, the traffic flow rates of upstream, downstream and entrances and exits remain unchanged, and vehicles arrive evenly, travel at a constant speed, and there is no stagnation in the road section. The initial dynamic stock of the entrance and exit is estimated as follows.
[0079]
[0080] in, For from time To time , the cumulative number of new vehicles added upstream; For from time To time , the cumulative number of new vehicles added downstream, is the average travel time of the road section, is the length of the road section, is the distance from the upstream intersection stop line to the entrance and exit, It is the distance from the entrance and exit to the stop line of the downstream intersection.
[0081] Therefore, on a road section with entrances and exits, when considering the initial stock, the dynamic stock of motor vehicles on the road section is estimated as follows.
[0082]
[0083] in, and From the time To time , the cumulative number of vehicles that can match upstream and downstream; and From the time To time , the cumulative number of unmatched vehicles in the upstream and downstream; and From the time To time The reconstructed cumulative vehicle curves of the unmatched vehicles of the two virtual detectors at the entrance and exit are combined with the passing time of the unmatched vehicles in the upstream and downstream sections, and the travel time distribution information is used to estimate the passing time of the unmatched vehicles at the middle entrance and exit, thereby reconstructing the cumulative curve of the unmatched vehicles at the middle entrance and exit.
[0084] S32: Action Space Design.
[0085] The agent interacts with the environment through actuators and performs corresponding actions. In the field of intelligent signal control, the action set is usually discrete, mainly divided into two types: fixed phase sequence and variable phase sequence. In the actual road network, the choice of phase mainly depends on the actual traffic conditions of the intersection, including its geometry, channelization design, traffic flow and other specific control objectives. The phase can be designed according to specific needs. At present, for common intersections, four phases are usually adopted: east-west straight, east-west left turn, north-south straight, and north-south left turn. The actions performed by the agent are as follows: Figure 3 As shown in Figure 1. The agent selects an action at the beginning of each time step and obtains a new state after execution. In order to ensure the safe transition from one action to the next, a yellow signal light is set between the two action switches to ensure that the vehicle passes the intersection safely.
[0086] S33: Reward function design.
[0087] The goal of the agent is to ease traffic congestion, shorten pedestrian waiting time and reduce vehicle exhaust emissions. Therefore, the minimum total delay target for travelers, the minimum carbon emission target for vehicles, the minimum queue length target and the maximum speed target are established, and a reward function with weight coefficients for different targets is constructed.
[0088] The waiting time is the waiting time in the queue caused by the red light. In order to reflect the improvement of the waiting time of the travelers after the agent performs the action, the negative value of the ratio of the difference between the waiting time before and after the traveler performs the action and the minimum value before and after the action is used as the reward function, and the reward function of the traveler's waiting time is defined.
[0089]
[0090]
[0091] in, The waiting time for travelers in the current period; The waiting time of travelers in the previous time period; Travelers during the current period Waiting time; is the total number of travelers in the current period; is a very small positive infinite number.
[0092] The vehicle emission reward function is the carbon dioxide emissions of the vehicle in the lane. In order to reflect the improvement of the vehicle's carbon dioxide emissions after the agent performs the action, the difference in the vehicle's carbon dioxide emissions before and after the vehicle performs the action is used as the reward function. The reward function for carbon dioxide emissions is The definitions are as follows.
[0093]
[0094]
[0095] in, For the current period Average vehicle CO2 emissions by lane; For the previous time period Average CO2 of vehicles in the lane; is a very small positive infinite number.
[0096] The length of the vehicle queue is the length of the vehicle queue from the stop line of the intersection or the starting point of the queue to the end of the queue. In order to reflect the improvement of the length of the vehicle queue after the agent performs an action, the negative value of the ratio of the difference in the length of the vehicle queue before and after the vehicle performs the action to the minimum value before and after the action is used as the reward function. The reward function of the length of the vehicle queue is defined as follows.
[0097]
[0098]
[0099] in, For the current period The length of the vehicle queue in the lane; For the previous time period The length of the vehicle queue in the lane; In the current period The length of the vehicle queue in the lane; Enter the lane during the current time period Total number of vehicles; is a very small positive infinite number.
[0100] The vehicle speed is the speed at which the vehicle is traveling on the road. To reflect the improvement in the vehicle speed after the agent performs the action, the current entrance road The average speed of the entrance The reward function considering the vehicle speed is defined as follows.
[0101]
[0102] in, The current import channel The average speed, For import By considering the above indicators and combining their corresponding weight coefficients .
[0103] Weighted final reward, overall reward function The definitions are as follows.
[0104]
[0105] in, represents the traveler's waiting time reward function; represents the CO2 emission reward function; represents the queue length reward function; represents the vehicle speed reward function; Indicates The weight coefficient of the reward, and satisfy .
[0106] Assumptions is the importance multiple between different goals, The value range of [ 1 , 2 , … , n ] , the importance of different objectives is determined using orthogonal experiments. Weight coefficient The definitions are as follows.
[0107]
[0108] S34: Punishment function design.
[0109] Through the penalty function, the agent is guided to avoid taking disadvantageous actions in the future learning process. When the cumulative reward of the agent is lower than a certain threshold, a penalty value is assigned to the reward. ; When a vehicle in the road network waits too long, a penalty value is assigned to the reward The penalty function is defined as follows.
[0110]
[0111]
[0112]
[0113] in Indicates accumulated rewards; Indicates the cumulative reward threshold; Indicates the vehicle waiting time; Indicates the vehicle waiting time threshold; Indicates pedestrian waiting time; Indicates the pedestrian waiting time threshold.
[0114] The process of S4 includes:
[0115] MADDPG (Multi-Agent Deep Deterministic Policy Gradient) algorithm is an advanced multi-agent reinforcement learning technology. It solves the cooperation and competition problems in multi-agent systems by allowing multiple agents to learn collaboratively in a shared environment. The MADDPG algorithm allows agents to quickly converge to the optimal strategy through mutual observation and learning without understanding the environmental dynamics model, thereby showing strong adaptability and flexibility in complex dynamic environments. Therefore, the multi-objective reinforcement learning model of the present invention selects the MADDPG algorithm, and the network of the algorithm includes: a policy network, a value network and a target network, wherein the value network includes: a local value network and a global value network. The input of the model is the current traffic state of the intersection, and the output is the probability distribution of the action. The local value network is used to evaluate the value of the action taken by the agent in a specific state, while taking into account the influence of individual rewards and neighboring agents; the global value network evaluates the value of the agent from a global perspective, aiming to maximize the reward of the entire system.
[0116] For each agent, initialize its policy network, value network, goal network, and experience replay buffer.
[0117] Each agent interacts with the environment according to the actions output by its policy network, storing the experience (state, action, reward, and new state) in the experience replay buffer.
[0118] For traffic lights at intersections , the performance function of its policy network for.
[0119] J ( m i i i m ) = E x − x i [ Q i m i ( x , a 1 , … , a i , … , a n )| a i = m i ( x ) ]
[0120] in, For The policy network with parameters ; is the current environment status information, for In strategy The state distribution under For the current policy network Action decisions made based on information about the environment state; To evaluate the network Policy Network The evaluation value made by the current output.
[0121] Through formula (24), we can get the gradient of the policy network performance function.
[0122] ∇ J ( m i i i m ) = E x − x i [ ∇ i i m i i i m ( x ) ∇ a i Q i m i ( x , a 1 , … , a i , … , a n )| a i = m i ( x ) ]
[0123] The policy network parameters are updated according to formula (26).
[0124]
[0125] in, is the current network parameter of the strategy network; is the learning rate; The updated network parameters of the policy network.
[0126] The agent evaluates the performance of the road network by the loss function express.
[0127]
[0128] in, For the current evaluation network Policy Network Action The evaluation value given; Strategy Network Action The actual evaluation value obtained.
[0129] The MADDPG algorithm is a dual network structure. The actual evaluation value obtained for.
[0130]
[0131] in, For Action The current reward value obtained; The target evaluation network evaluates the agent in the next state based on the environmental state information of the next state and the action information of other agents. Action the evaluation made; The action taken by the target policy network based on the environmental state information in the next state.
[0132] The evaluation network is a deep network whose training goal is to minimize the error between the network estimation value and the actual value. The network parameters are updated according to formula (29).
[0133]
Claims
1. A traffic signal control method based on multi-objective and multi-agent deep reinforcement learning, characterized by The method comprises the following steps. S1: Use SUMO simulation software to build an intersection network model. Use NETEDIT to build a road network model, set the properties of road sections and intersections, and set the traffic flow properties in the road network (speed, vehicle type, etc.). S2: Pedestrian crossing demand perception at intersection zebra crossings based on video data. S21: Establish a pedestrian crossing target detection model based on video data. S22: Perform inference on the pedestrian crossing target detection model and process the label data output by the model inference. S23: Estimate the spatial distribution of pedestrian trajectories and analyze the characteristics of pedestrian spatial trajectories. S24: Perform cluster analysis on the trajectory data to extract the starting and ending points of pedestrians crossing the street, and extract the dynamic OD matrix of pedestrians crossing the street according to the number of people crossing the street at different times. The process of S3 specifically includes: S31: State-space design. Based on the estimation results of pedestrian crossing demand based on video data, the phase information of traffic signal control is encoded using the one-hot encoding method. At the same time, the minimum green light information of each phase and the dynamic stock of motor vehicles on the road section are considered to design the state of reinforcement learning. The estimated motor vehicle stock of the road segment is shown below. Assume that there are virtual detectors before and after the entrance and exit of the road section and , including the cumulative curve of vehicles driving from the target section to the entrance and exit is , including the cumulative curve of vehicles driving from the entrance and exit to the target section is , the upstream vehicle cumulative curve is , the downstream vehicle cumulative curve is Assumptions: (1) The initial stock is 0; (2) The vehicle capture rate of the upstream and downstream sections is 100%; (3) The road section has one and only one entrance and exit. Then the dynamic stock of motor vehicles in the entrance and exit sections is for. According to whether the upstream and downstream vehicles match, the upstream vehicle cumulative curve is divided into two categories, which can be divided into the part that can match the downstream vehicle , failed to match the downstream vehicle part ; Similarly, the downstream cumulative vehicle curve is divided into parts that can be matched with upstream vehicles , the part that fails to match the upstream vehicle ; The vehicle cumulative curve at the entrance and exit virtual detector position is also divided into the matching part , , and the unmatched part , . When the distance between the two virtual detectors at the entrance and exit is very close, , combined with formula (2) and (3), the dynamic stock of motor vehicles on the road section is transformed into the following. in, and Unknown, needs to be estimated. It can be calculated by the upstream unmatched vehicle accumulation curve and downstream unmatched vehicle accumulation curve Reconstruct the cumulative vehicle curve of the unmatched vehicles of the entrance and exit virtual detector and estimate and . When considering the initial stock of a road section with entrances and exits, since there are entrances and exits in the road section, upstream vehicles may exit the road section from the entrances and exits, and vehicles may also drive downstream from the entrances and exits. Then, the cumulative number of changes in upstream vehicles and the cumulative number of changes in downstream vehicles may not be equal. Let the cumulative number of changes in the entrances and exits be , assuming that from time To time During the time period, the traffic flow rates of upstream, downstream and entrances and exits remain unchanged, and vehicles arrive evenly, travel at a constant speed, and there is no stagnation in the road section. The initial dynamic stock of the entrance and exit is estimated as follows. in, For from time To time , the cumulative number of new vehicles added upstream; For from time To time , the cumulative number of new vehicles added downstream, is the average travel time of the road section, is the length of the road section, is the distance from the upstream intersection stop line to the entrance and exit, It is the distance from the entrance and exit to the stop line of the downstream intersection. Therefore, on a road section with entrances and exits, when considering the initial stock, the dynamic stock of motor vehicles on the road section is estimated as follows. in, and From the time To time , the cumulative number of vehicles that can match upstream and downstream; and From the time To time , the cumulative number of unmatched vehicles in the upstream and downstream; and From the time To time The reconstructed cumulative vehicle curves of the unmatched vehicles of the two virtual detectors at the entrance and exit are combined with the passing time of the unmatched vehicles in the upstream and downstream sections, and the travel time distribution information is used to estimate the passing time of the unmatched vehicles at the middle entrance and exit, thereby reconstructing the cumulative curve of the unmatched vehicles at the middle entrance and exit. S32: Action Space Design. The agent interacts with the environment through actuators and performs corresponding actions. In the field of intelligent signal control, the action set is usually discrete, mainly divided into two types: fixed phase sequence and variable phase sequence. In the actual road network, the choice of phase mainly depends on the actual traffic conditions of the intersection, including its geometry, channelization design, traffic flow and other specific control objectives. The phase can be designed according to specific needs. At present, for common intersections, four phases are usually used: east-west straight, east-west left turn, north-south straight, and north-south left turn. S33: Reward function design. The goal of the agent is to ease traffic congestion, shorten pedestrian waiting time and reduce vehicle exhaust emissions. Therefore, the minimum total delay target for travelers, the minimum carbon emission target for vehicles, the minimum queue length target and the maximum speed target are established, and a reward function with weight coefficients for different targets is constructed. The waiting time is the waiting time in the queue caused by the red light. In order to reflect the improvement of the waiting time of the travelers after the agent performs the action, the negative value of the ratio of the difference between the waiting time before and after the traveler performs the action and the minimum value before and after the action is used as the reward function. The reward function of the traveler's waiting time is defined as follows. in, The waiting time for travelers in the current period; The waiting time of travelers in the previous time period; Travelers during the current period Waiting time; is the total number of travelers in the current period; is a very small positive infinite number. The vehicle emission reward function is the carbon dioxide emissions of the vehicle in the lane. In order to reflect the improvement of the vehicle's carbon dioxide emissions after the agent performs the action, the difference in the vehicle's carbon dioxide emissions before and after the vehicle performs the action is used as the reward function. The reward function for carbon dioxide emissions is The definitions are as follows. in, For the current period Average vehicle CO2 emissions by lane; For the previous time period Average CO2 of vehicles in the lane; is a very small positive infinite number. The length of the vehicle queue is the length of the vehicle queue from the stop line of the intersection or the starting point of the queue to the end of the queue. In order to reflect the improvement of the length of the vehicle queue after the agent performs an action, the negative value of the ratio of the difference in the length of the vehicle queue before and after the vehicle performs the action to the minimum value before and after the action is used as the reward function. The reward function of the length of the vehicle queue is defined as follows. in, For the current period The length of the vehicle queue in the lane; For the previous time period The length of the vehicle queue in the lane; In the current period The length of the vehicle queue in the lane; Enter the lane during the current period Total number of vehicles; is a very small positive infinite number. The vehicle speed is the speed at which the vehicle is traveling on the road. To reflect the improvement in the vehicle speed after the agent performs the action, the current entrance road The average speed of the entrance The reward function considering the vehicle speed is defined as follows. in, The current import channel The average speed, For import By considering the above indicators and combining their corresponding weight coefficients . Weighted final reward, overall reward function The definitions are as follows. in, represents the traveler's waiting time reward function; represents the CO2 emission reward function; represents the queue length reward function; represents the vehicle speed reward function; Indicates The weight coefficient of the reward, and satisfy . Assumptions is the importance multiple between different goals, The value range of , the importance of different objectives is determined using orthogonal experiments. Weight coefficient The definitions are as follows. S34: Punishment function design; Through the penalty function, the agent is guided to avoid taking disadvantageous actions in the future learning process. When the cumulative reward of the agent is lower than a certain threshold, a penalty value is assigned to the reward. ; When a vehicle in the road network waits too long, a penalty value is assigned to the reward The penalty function is defined as follows. in Indicates accumulated rewards; Indicates the cumulative reward threshold; Indicates the vehicle waiting time; Indicates the vehicle waiting time threshold; Indicates pedestrian waiting time; Indicates the pedestrian waiting time threshold. S4: Construct a multi-objective and multi-agent deep reinforcement learning model. MADDPG (Multi-Agent Deep Deterministic Policy Gradient) algorithm is an advanced multi-agent reinforcement learning technology. It solves the cooperation and competition problems in multi-agent systems by allowing multiple agents to learn collaboratively in a shared environment. The MADDPG algorithm allows agents to quickly converge to the optimal strategy through mutual observation and learning without understanding the environmental dynamics model, thereby showing strong adaptability and flexibility in complex dynamic environments. Therefore, the multi-objective reinforcement learning model of the present invention selects the MADDPG algorithm, and the network of the algorithm includes: a policy network, a value network and a target network, wherein the value network includes: a local value network and a global value network. The input of the model is the current traffic state of the intersection, and the output is the probability distribution of the action. The local value network is used to evaluate the value of the action taken by the agent in a specific state, while taking into account the influence of individual rewards and neighboring agents; the global value network evaluates the value of the agent from a global perspective, aiming to maximize the reward of the entire system.
Citation Information
Cited By
Traffic signal control system, method and equipment considering stability of average queuing length
CN119181263A
Smart city traffic indication system and working method thereof
CN119380550A
