Cooperative control method for traffic lights and intelligent network connection vehicles in intersection scene

By combining the collaborative control method of traffic lights and intelligent connected vehicles in the intersection scenario, the phase time of the traffic lights is dynamically adjusted, which solves the problem that single agent control of traffic lights cannot cope with real-time traffic flow, significantly improves traffic conditions, and reduces Vehicle emissions and waiting times.

CN118629233APending Publication Date: 2024-09-10HOHAI UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410873652.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing traffic light control methods cannot dynamically adjust the phase time according to real-time traffic flow in intersection scenarios, resulting in long vehicle queues, long waiting times, and increased traffic congestion and vehicle emissions.

Method used

Design a collaborative control method between traffic lights and intelligent connected vehicles in an intersection scenario. By constructing a road intersection network model and a collaborative control model based on reinforcement learning, the information interaction between traffic lights and intelligent connected vehicles can be used to dynamically adjust traffic. Light phase timing to optimize traffic flow.

Benefits of technology

It effectively reduces road congestion, reduces vehicle emissions, improves intersection efficiency, reduces carbon emissions by 34%, and shortens average waiting time by 50%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629233A
    Figure CN118629233A
Patent Text Reader

Abstract

The invention discloses a traffic light and intelligent network connection vehicle cooperative control method in an intersection scene. According to the method, a deep reinforcement learning model is adopted, a reward function for optimizing vehicle fuel consumption and queuing time delay is designed, and a cooperative control problem is expressed as a partial Markov decision process; then, traffic lights and intelligent network connection automobiles are modeled into two types of intelligent agents, and the two types of intelligent agents obtain a joint state space through real-time interaction state information; thirdly, inputting the joint state space into a trained deep reinforcement learning model to obtain an agent joint action space; and finally, according to the combined action space, cooperative control is carried out on the two intelligent agents of the traffic light and the intelligent network connection automobile. The control parameters comprise the traffic light phase and the longitudinal movement acceleration and deceleration of the intelligent network connection vehicle. Compared with an existing method, the method has the main advantages that the vehicle passing efficiency at the intersection is remarkably improved, and meanwhile the vehicle exhaust emission and oil consumption can be greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent transportation technology and relates to a method for collaboratively controlling traffic lights and intelligent networked vehicles for intersection scenarios. Background Art

[0002] Nowadays, cars have become the main means of transportation for people. The substantial increase in the number of vehicles will inevitably lead to traffic congestion and cause a series of environmental problems such as air pollution. Especially in intersection scenarios, when encountering peak travel periods, it is very easy to cause long queues of vehicles and long waiting times, which greatly reduces the utilization rate of roads. Compared with methods such as building new roads and expanding roads to improve traffic conditions, using traffic lights to optimize road traffic conditions is more timely and economical. This is also in line with the development concept of smart cities and digital cities proposed by my country. Using deep reinforcement learning to solve traffic light control problems is currently the mainstream method.

[0003] Traditional traffic lights have fixed phase times and cannot be adjusted dynamically according to the real-time traffic flow at the intersection. This can easily cause long waiting lines at intersections, resulting in traffic congestion and increased vehicle emissions pollution. In order to improve the traffic conditions at intersections, relevant researchers applied deep reinforcement learning methods to traffic light control tasks, which better realized the intelligent and automated regulation of traffic light duration at intersections, and achieved better control effects compared to traditional traffic light control methods. However, many current solutions to traffic light control problems using deep reinforcement learning methods are to control a single intelligent agent of a traffic light, without explicitly considering the interaction between the light and the vehicle, that is, the road vehicle status information is not considered when solving the traffic light control problem.

[0004] As society continues to develop and progress, people will pay more attention to the impact of transportation on the environment while improving traffic conditions. How to reduce vehicle emissions has also become an important issue. The driving mode of a vehicle is closely related to vehicle emissions. For example, vehicle acceleration, deceleration, idling, and stop-and-go situations will increase vehicle emissions. Especially when there is congestion at intersections, the above phenomenon occurs more frequently, and vehicle emissions will increase significantly. Therefore, reasonable traffic light regulation can effectively solve the problem of vehicle emissions.

[0005] Therefore, based on the above-mentioned problems, the present invention adds intelligent connected vehicles, and designs a method for collaborative control of traffic lights and intelligent connected vehicles in intersection scenarios for traffic light control tasks. Summary of the invention

[0006] The technical problem to be solved by the present invention is: in view of the incomplete and insufficient control task of a single intelligent body of a traffic light, a method for collaborative control of traffic lights and intelligent networked vehicles in an intersection scenario is proposed. The method utilizes the information interaction between intelligent networked vehicles and traffic lights, fully considers the road traffic conditions, enables traffic lights to dynamically change phase time according to traffic flow conditions, improves the practicality and accuracy of control tasks, thereby reducing congestion and improving the overall traffic efficiency of intersections.

[0007] The present invention adopts the following technical solutions to solve the above technical problems:

[0008] Here are the steps:

[0009] S1. Construct road network modeling of road intersections and traffic lights:

[0010] The constructed road intersection is divided into left-turn, straight-ahead and right-turn lanes; the traffic light phase signals are divided into north-south straight-ahead, north-south left-turn, east-west straight-ahead, east-west left-turn, and right turns are not restricted (always green light). A yellow light is designed for a period of time as a transition during the above four phase switching processes.

[0011] S2. Construction of collaborative control model of traffic lights and intelligent connected vehicles based on reinforcement learning:

[0012] Two types of agents are designed in the method of the present invention. The state space, action space, and reward function of each agent are designed as follows:

[0013] (a) State space design

[0014] Traffic lights: For each intersection, the state space is represented by the current traffic light status information, the status information of each lane under observation, and the number of vehicles in each lane (entering lanes and exiting lanes). The P matrix represents the current traffic light status information, the V matrix represents the status information of the observed vehicles, the N matrix represents the current traffic flow at the intersection, and the S matrix represents the current traffic flow at the intersection. TL represents the state space of the traffic light, that is

[0015] S TL =(P, V, N)

[0016] Intelligent connected vehicles: Use vehicle status information P, including: vehicle position, speed, acceleration, relative speed with the vehicle in front, distance from the vehicle in front, acceleration of the vehicle in front, and status information V of the current traffic light at the intersection, including: the direction allowed by the current traffic light, the last time the traffic light phase changed, the current yellow light status of the traffic light, S cav Represents the state space of the intelligent connected vehicle, that is

[0017] S cav =(P, V)

[0018] The state information of the two types of agents is combined to form a joint state space

[0019] (b) Action space design

[0020] Traffic light: Four actions are designed, namely, going straight in the north-south direction, turning left in the north-south direction, going straight in the east-west direction, and turning left in the east-west direction.

[0021] Intelligent connected vehicles: Two actions are designed, namely vehicle acceleration and deceleration, which are mainly used to control the longitudinal movement of the vehicle.

[0022] (c) Reward function design

[0023] Traffic light: reward function r at time step t TL for

[0024] r TL =w1*r P +w2*r E +w3*r f +w4*r d

[0025] Among them, w1, w2, w3, w4 are weight coefficients, r p is the reward function for the traffic pressure at the intersection, r E is the carbon emission partial reward function, r f is the fuel consumption reward function, r d is the intersection waiting delay reward function.

[0026] Intelligent connected vehicle: reward function r at time step t cav for

[0027] r cav =r1+r2

[0028] Among them, r1 is the partial reward function that makes the vehicle pass the intersection at a faster speed, and r2 is the partial reward function that stabilizes the vehicle's acceleration.

[0029] The two reward functions are combined to form a joint reward function.

[0030] Further,

[0031] The joint state space for:

[0032]

[0033] For the traffic light agent, the state space S TL The specific design is

[0034] S TLi =(PTL , V TL , N TL )

[0035]

[0036] Indicates the time when the traffic light at the i-th intersection was last switched; Indicates the current allowed traffic direction of the traffic light at the i-th intersection, that is, the traffic light phase.

[0037] V TL =(v j , a j , d j , l j )

[0038] v j represents the longitudinal speed of the jth intelligent connected vehicle, a j represents the acceleration of the jth intelligent connected vehicle, d j represents the distance of the jth intelligent connected vehicle from the intersection, l j Indicates the lane number where the jth intelligent connected vehicle is located;

[0039]

[0040] represents the total number of vehicles entering the lane at the i-th intersection, represents the total number of vehicles on all exit lanes at the i-th intersection, i∈[1, 2, ..., m] means there are m intersections in the road network.

[0041]

[0042]

[0043] Among them, n_InLanes and n_OutLanes represent the total number of in-lanes and out-lanes at each intersection respectively; q l Represents the total number of vehicles on the lth lane.

[0044] For the intelligent connected vehicle agent, the state space S cav The specific design is

[0045] S cavi =(P TL , V cav )

[0046] V cav =(d j , v j , a j , v f , af , d f ,v r , a r , d r )

[0047] d j , d f ,d r They represent the distance of the jth intelligent connected vehicle from the intersection, the relative distance between the jth intelligent connected vehicle and the vehicle in front, and the relative distance between the jth intelligent connected vehicle and the vehicle behind; v j , v f ,v r They represent the longitudinal speed of the jth intelligent connected vehicle and its relative speed to the preceding and following vehicles respectively; a j , a f ,a r They represent the longitudinal acceleration of the jth intelligent connected vehicle, the longitudinal acceleration of its preceding vehicle and the following vehicle respectively;

[0048] The joint action space for

[0049]

[0050] m and n represent the number of traffic lights and intelligent connected vehicles respectively.

[0051] a TLi =c, c∈{0,1}

[0052] The present invention defines the action of a traffic light as a discrete binary set, where 0 means that the traffic light controller keeps the current phase unchanged, and 1 means that it switches to the next traffic light phase in the next time interval. Compared with other common action definitions, such as phase selection, this definition is easier to manage for deep reinforcement learning model training.

[0053] a cavj =a, a∈[-3,3]m / s 2

[0054] Among them, a represents the acceleration of the j-th intelligent connected vehicle, which is used to control the longitudinal motion of the vehicle.

[0055] The joint reward t for

[0056] r t =(r TL ,r cav )

[0057] For the traffic light agent, the reward is designed as

[0058] r TL =w1*rP +w2*r E +w3*r f +w4*r d

[0059] Intersection Traffic Pressure Rewards:

[0060]

[0061] Carbon Emissions Rewards:

[0062]

[0063] Fuel consumption bonus:

[0064]

[0065] Waiting delay reward:

[0066]

[0067]

[0068] r p Part of the reward function is used to improve the traffic pressure at the intersection, optimize the traffic rate at the intersection, and allow as many vehicles as possible to pass through the intersection; E Part of the reward function is used to reduce vehicle carbon emissions. This invention only considers CO2 emissions; f Part of the reward function is used to reduce fuel consumption; r d Some reward functions count the waiting delay at the intersection to reduce the waiting time of vehicles at the intersection. Among them, w1, w2, w3, w4 represent weight coefficients; n in 、n out They represent the total number of vehicles on all the entry and exit lanes at each intersection; c represents the maximum road carrying capacity; n_Lanes represents the total number of lanes at each intersection; C i represents the total CO2 concentration of vehicles on the i-th lane at the current intersection; f i represents the fuel consumption of the vehicle in the i-th lane at the current intersection; h i Indicates the waiting delay of vehicles in the i-th lane at the current intersection.

[0069] For the intelligent connected vehicle agent, the reward function is designed as

[0070] r cav =r1+r2

[0071]

[0072]

[0073] The r1 part of the reward function is used to increase the average speed of the vehicle passing through the intersection, and the r2 part of the reward function is used to stabilize the vehicle acceleration. j / a * ) makes the acceleration close to the maximum acceleration. Where K represents the number of vehicles in the same lane as the intelligent connected vehicle; v * Indicates the maximum speed of the vehicle; v j Indicates the actual average speed of all vehicles; a j Indicates the actual driving acceleration of the vehicle; a * Indicates the maximum acceleration of the vehicle.

[0074] S3. Building a deep reinforcement learning model for coordinated control of traffic lights and intelligent connected vehicles

[0075] The traffic lights and intelligent networked vehicles are controlled in a coordinated manner as follows:

[0076] By adding intelligent connected vehicle agents to the road network, they exchange environmental information with traffic lights, so that traffic light decisions can fully consider traffic flow conditions, thereby dynamically changing traffic light switching time and improving traffic congestion. At the same time, this method also controls intelligent connected vehicles, so it can strike a good balance between reducing driving time, fuel consumption and carbon emissions. When a traffic light communicates with an intelligent connected vehicle, it only selects the vehicle closest to the current traffic light controller to cooperate, avoiding cooperation with all intelligent connected vehicles, greatly reducing training time and cost, and increasing the stability of the training convergence of this method.

[0077] The deep reinforcement learning model structure includes a value network, a current policy network and a target policy network. The method for obtaining the model includes: iteratively executing the total cycle steps until the preset conditions are met to obtain a trained deep reinforcement learning model.

[0078] The overall cycle steps of the deep reinforcement learning model include:

[0079] (1) Execute the first loop step to obtain the interaction information of each step between the two types of intelligent agents (traffic lights, intelligent connected vehicles) and the environment The first cycle step comprises:

[0080] a. Obtain the joint state space formed by the interaction between traffic lights and intelligent connected vehicles and the environment

[0081] b. Combine the state space Input into the current deep reinforcement learning model to obtain the joint action space of the two types of agents Calculate the reward value r t , forming the mutual information of the corresponding step And the joint action space The output information is sent to the corresponding agent, and the probability value corresponding to the action is output, and the action is randomly sampled and selected according to the probability value;

[0082] c. Agents based on joint action space Select and execute the corresponding action, jump to the next joint state in the environment

[0083] (2) After a round, the interaction information collected at each step is are all input into the value network to obtain the state value V = [V1, V2, ..., V T ], and calculate the discounted reward R = [R1, R2, ..., R T ]; further,

[0084] The state value V at step t t =V(s t ;ω), where V(s t ; ω) represents the value function, ω represents the parameter of the value network, and the state s of the tth step t Input into the value network to get the state value V t ;

[0085] The calculation formula for discount rewards is:

[0086] R t =r t +γV(s t+1 ;ω)

[0087] Therefore, using the state value V at step T T Derived forward the discounted reward R at step t t for

[0088]

[0089] Among them, γ k-t and γ T-t is the discount factor r of the corresponding step k is the reward value of the kth step.

[0090] (3) Calculate the loss function L(ω) of the value network based on the state value and the discounted reward, and update the value network parameters using gradient descent and back propagation; further,

[0091] The loss function L(ω) of the value network is calculated as follows:

[0092] L(ω)=E t [(R t -V t ) 2]

[0093] Where E t is the expected function, R t is the discounted reward at step t, V t is the state value of step t;

[0094] Based on L(ω), the gradient descent method is used to update the parameter ω of the value network:

[0095]

[0096] Among them, α is the learning rate of the gradient method, It is a gradient operator that uses gradient descent and back propagation to update the parameters of the value network, so that the state value output by the value network is closer to the actual state value.

[0097] (4) executing the second loop step, updating the current policy network M times (M≤T) to obtain updated current policy network parameters; wherein the second loop step includes:

[0098] The state of the interactive information s t and action a t Input them into the current policy network and the target policy network respectively, and use the importance sampling method to calculate the importance weight I t (θ); Calculate the advantage function based on the state value V and the discounted reward R Combined with the importance weight I t (θ) Find the objective function L of the current policy network CLIP (θ), use back propagation to update the parameters of the current policy network;

[0099] Further,

[0100] Importance Weight I t The calculation method of (θ) is as follows:

[0101]

[0102] where π(·|s t ;θ)、π(·|s t θ old ) means that the state s t The policy distribution obtained by inputting into the current policy network and the target policy network, θ represents the parameters of the current policy network, θ old represents the parameters of the target policy network, π(a t |s t ;θ),π(a t |s t θ old ) indicates the actual action to be taken tInput into the corresponding strategy distribution to obtain the value of the action under the corresponding strategy distribution.

[0103] Calculate advantage function based on state value and discounted reward Combined with the importance weight I t (θ) Find the objective function L of the current policy network CLIP (θ), including:

[0104] According to the state value V t and discount reward R t Calculate the advantage function for

[0105]

[0106] According to the advantage function and importance weight I t (θ), find the objective function L of the current policy network CLIP (θ):

[0107]

[0108] Where ε is the restricted importance weight I t (θ) is a hyperparameter, clip(I t (θ), 1-ε, 1+ε) will be the importance weight I t The value of (θ) is limited to the range of (1-ε, 1+ε). t When (θ)<1-ε, let I t (θ)=1-ε, similarly when I t When (θ)>1+ε, let I t (θ) = 1 + ε;

[0109] Based on the objective function L of the current policy network CLIP (θ), and use back-propagation to update the parameters θ of the current policy network.

[0110] (5) Use the updated parameters of the current policy network to update the parameters of the target policy network. Further, use the updated current policy network parameters θ to update the target policy network θ old ,

[0111] θ old ←θ

[0112] The role of the current policy network is to collect the execution trajectory of the agent in the environment for updating the value network and the target policy network, thus completing an iteration.

[0113] Compared with the prior art, the present invention has the following technical effects:

[0114] By adding intelligent connected vehicles, based on the collaborative control method of traffic lights and intelligent connected vehicles, and by designing a reward function that optimizes vehicle fuel consumption and queuing delay, the intelligent connected vehicles and traffic lights interact with each other, so that the traffic light control task at the intersection fully considers the road traffic conditions. Compared with the single-agent control of traffic lights, this method can effectively improve the traffic situation, reduce the average waiting time at the intersection by about 50%, and reduce carbon emissions by about 34%. BRIEF DESCRIPTION OF THE DRAWINGS

[0115] Figure 1 Schematic diagram of the scene of the present invention

[0116] Figure 2 Schematic diagram of the traffic light agent control action

[0117] Figure 3 Design diagram for the interaction of state information between two types of agents

[0118] Figure 4 Schematic diagram of the deep reinforcement learning model training process for designing the collaborative control method of the present invention

[0119] Figure 5 is a bar chart comparing indicators of implementation cases DETAILED DESCRIPTION

[0120] The following is combined with Figure 1 and attached Figure 2 The implementation cases of the technology of the present invention are described in detail:

[0121] Before the description, the experimental simulation scenario is designed first, such as Figure 1 As shown in the figure, this is a 2x3 checkerboard road network. The relevant settings in the experiment are as follows:

[0122] 1) The traffic lights at the intersection are equipped with a traffic light controller, which has a communication module and can support wireless data transmission.

[0123] 2) The road network includes both intelligent connected vehicles and human-driven vehicles;

[0124] 3) The intelligent connected vehicles involved in the road network are equipped with on-board units (OBUs) that support V2X communication and are equipped with high-precision sensors, GPS, lidar and other equipment to obtain their own speed and position, as well as the relative position and speed of surrounding vehicles;

[0125] 4) Assume that V2X communication has no delay and the packet loss rate is negligible.

[0126] This implementation case provides a method for coordinated control of traffic lights and intelligent networked vehicles in an intersection scenario. Figure 2As shown in Figure 2, the model training process of the coordinated control method of traffic lights and intelligent connected vehicles is as follows: Figure 3 The detailed parameter settings are shown in the following table.

[0127]

[0128]

[0129] The specific implementation steps are as follows:

[0130] Step 1: Initialize the road network environment and model parameters. The intersection road network model in the case is built using the Netedit component in the traffic simulation software SUMO. Based on the traffic reinforcement learning framework FLOW, connect SUMO through the interface TraCI, and use python code to perform microscopic simulation of traffic flow or reinforcement learning training. There are three lanes in the road network, namely left turn, straight and right turn (right turn is not controlled by traffic lights). Figure 1 As shown in the figure, the distance between adjacent intersections is set to 300 meters, and the distance between the outer sections is set to 500 meters. The road network contains intelligent connected vehicles, and the current penetration rate of intelligent connected vehicles is set to 50%. The total number of vehicles is set to 100, and they enter the road network randomly from the north, south, east and west directions. The collaborative method is based on the deep reinforcement learning algorithm of proximal policy optimization. Therefore, the deep reinforcement learning model includes the current policy network, the target policy network and the value network. The three network parameters θ, θ old , ω is initialized. The policy network is used to select the appropriate action according to the current state, and the value network is used to score the current state.

[0131] Step 2: During the training process in step t, the intelligent connected vehicle sends the surrounding vehicle information obtained by its own sensor equipment to the traffic light central storage unit, and combines it with the traffic light's own data observed to form a joint state space The design is as follows,

[0132]

[0133] For the traffic light agent,

[0134] S TLi =(P TL , V TL , N TL )

[0135]

[0136] Indicates the time when the traffic light at the i-th intersection was last switched; Indicates the current allowed traffic direction of the traffic light at the i-th intersection, that is, the traffic light phase.

[0137] V TL =(v j , a j , d j , l j )

[0138] v j represents the longitudinal speed of the jth intelligent connected vehicle, a j represents the acceleration of the jth intelligent connected vehicle, d j represents the distance of the jth intelligent connected vehicle from the intersection, l j Indicates the lane number where the jth intelligent connected vehicle is located;

[0139]

[0140] represents the total number of vehicles entering the lane at the i-th intersection, represents the total number of vehicles on all exit lanes at the i-th intersection, i∈[1, 2, ..., m] means there are m intersections in the road network.

[0141]

[0142]

[0143] Among them, n_InLanes and n_OutLanes represent the total number of in-lanes and out-lanes at each intersection respectively; q l Represents the total number of vehicles on the lth lane.

[0144] For intelligent connected vehicle agents,

[0145] S cavi =(P TL , V cav )

[0146] V cav =(d j , v j , a j , v f , a f , d f , v r , a r , d r )

[0147] d j , d f , d r They represent the distance of the jth intelligent connected vehicle from the intersection, the relative distance between the jth intelligent connected vehicle and the vehicle in front, and the relative distance between the jth intelligent connected vehicle and the vehicle behind; v j , vf , v r They represent the longitudinal speed of the first intelligent connected vehicle and the relative speeds of the front and rear vehicles respectively; a j , a f , a r They represent the longitudinal acceleration of the jth intelligent connected vehicle, the longitudinal acceleration of its preceding vehicle and the following vehicle respectively;

[0148] Step 3: During the training process of step t, the traffic light controller will Input into the current deep reinforcement learning model to obtain the joint action space of the intelligent connected vehicle And calculate the reward value r t , and then Sent to the corresponding agent, the agent performs the corresponding action to make the environment jump to the next state

[0149] The joint action space at step t for

[0150]

[0151] m and n represent the number of traffic lights and intelligent connected vehicles respectively.

[0152] a TLi =c, c∈{0,1}

[0153] The present invention defines the action of a traffic light as a discrete binary set, where 0 means that the traffic light controller keeps the current phase unchanged, and 1 means that it switches to the next traffic light phase in the next time interval. Compared with other common action definitions, such as phase selection, this definition is easier to manage for deep reinforcement learning model training.

[0154] a cavj =a, a∈[-3,3]m / s 2

[0155] Among them, a represents the acceleration of the j-th intelligent connected vehicle, which is used to control the longitudinal motion of the vehicle.

[0156] Step 4: Loop through the interaction process between the multi-agent and the environment in steps 2 and 3 for T times, and record the interaction information of each step. are stored in the traffic light storage unit cache.

[0157] Step 5: Collect each step of interaction information in the cache are all input into the value network to obtain the state value V = [V1, V2, ..., V T ], and calculate the discounted reward R = [R1, R2, ..., R T];

[0158] Among them, the state value V at step t t =V(s t ;ω), where V(s t ; ω) represents the value function, ω represents the parameter of the value network, and the state s of the tth step t Input into the value network to get the state value V t ;

[0159] The calculation formula for discount rewards is:

[0160] R t =r t +γV(s t+1 ;ω)

[0161] Therefore, using the state value V at step T T Derived forward the discounted reward R at step t t for:

[0162]

[0163] Among them, γ k-t and γ T-t is the discount factor r of the corresponding step k is the reward value of the kth step.

[0164] Step 6: Calculate the loss function L(ω) of the value network as follows:

[0165] L(ω)=E t [(R t -V t ) 2 ]

[0166] Where E t is the expected function, R t is the discounted reward at step t, V t is the state value of step t;

[0167] Based on L(ω), the gradient descent method is used to update the parameter ω of the value network:

[0168]

[0169] Among them, α is the learning rate of the gradient method, It is a gradient operator that uses gradient descent and back propagation to update the parameters of the value network, so that the state value output by the value network is closer to the actual state value.

[0170] Step 7: Use the importance sampling method to calculate the importance weights I of the current policy network and the target policy network t(θ), calculated as follows:

[0171]

[0172] where π(·|s t ;θ)、π(·|s t θ old ) means that the state s t The policy distribution obtained by inputting into the current policy network and the target policy network, θ represents the parameters of the current policy network, θ old represents the parameters of the target policy network, π(a t |s t ;θ),π(a t |s t θ old ) indicates the actual action to be taken t Input into the corresponding strategy distribution to obtain the value of the action under the corresponding strategy distribution.

[0173] Step 8. Calculate the advantage function based on the state value and discounted reward Combined with the importance weight I t (θ) Find the objective function L of the current policy network CLIP (θ), including:

[0174] According to the state value V t and discount reward R t Calculate the advantage function for:

[0175]

[0176] According to the advantage function and importance weight I t (θ), find the objective function L of the current policy network CLIP (θ):

[0177]

[0178] Where ε is the restricted importance weight I t (θ) is a hyperparameter, clip(I t (θ), 1-ε, 1+ε) will be the importance weight I t The value of (θ) is limited to the range of (1-ε, 1+ε). t When (θ)<1-ε, let I t (θ)=1-ε, similarly when I t When (θ)>1+ε, let I t (θ) = 1 + ε;

[0179] Based on the objective function L of the current policy network CLIP(θ), and use back-propagation to update the parameters θ of the current policy network.

[0180] Step 9: Loop through steps 7 and 8, update the current policy network parameters M times (M≤T), and use the updated current policy network parameters θ to update the target policy network θ. old ,

[0181] θ old ←θ

[0182] Step 10: Repeat steps 1-9 for E iterations to obtain a trained deep reinforcement learning model. So far, all implementation processes of this example have been completed.

[0183] Finally, this implementation case will compare and evaluate the effect of the design method of the present invention from four indicators: fuel consumption, carbon dioxide emissions, average delay time, and average total driving time. The indicator bar charts are shown in Figures 5(a), 5(b), 5(c), and 5(d).

[0184] The above implementation cases are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for collaborative control of traffic lights and intelligent connected vehicles in an intersection scenario, characterized in that The method comprises the following steps: Step 1: Construct a road network model of road intersections and traffic lights, specifically: The constructed road intersection is divided into left-turn, straight-ahead and right-turn lanes; the traffic light phase signals are divided into north-south straight-ahead, north-south left-turn, east-west straight-ahead, east-west left-turn, and right turns are not restricted (always green light). A yellow light is designed for a period of time as a transition during the above four phase switching processes. Step 2: Construction of a collaborative control model of traffic lights and intelligent connected vehicles based on reinforcement learning, specifically: Two types of agents are designed in the method of the present invention. The state space, action space, and reward function of each agent are designed as follows: (a) State space design Traffic lights: For each intersection, the state space is represented by the current traffic light status information, the status information of each lane under observation, and the number of vehicles in each lane (entering lanes and exiting lanes). The P matrix represents the current traffic light status information, the V matrix represents the status information of the observed vehicles, the N matrix represents the current traffic flow at the intersection, and the S matrix represents the current traffic flow at the intersection. TL represents the state space of the traffic light, that is S TL =(P,V,N) Intelligent connected vehicles: Use vehicle status information P, including: vehicle position, speed, acceleration, relative speed with the vehicle in front, distance from the vehicle in front, acceleration of the vehicle in front, and status information V of the current traffic light at the intersection, including: the direction allowed by the current traffic light, the last time the traffic light phase changed, the current yellow light status of the traffic light, S cav Represents the state space of the intelligent connected vehicle, that is S cav =(P,V) The state information of the two types of agents is combined to form a joint state space (b) Action space design Traffic light: Four actions are designed, namely, going straight in the north-south direction, turning left in the north-south direction, going straight in the east-west direction, and turning left in the east-west direction. Intelligent connected vehicles: Two actions are designed, namely vehicle acceleration and deceleration, which are mainly used to control the longitudinal movement of the vehicle. (c) Reward function design Traffic light: reward function r at time step t TL for r TL =w1*r P +w2*r E +w3*r f +w4*r d Among them, w1, w2, w3, w4 are weight coefficients, r p is the reward function for the traffic pressure at the intersection, r E is the carbon emission partial reward function, r f is the fuel consumption reward function, r d is the intersection waiting delay reward function. Intelligent connected vehicle: reward function r at time step t cav for r cav =r1+r2 Among them, r1 is the partial reward function that makes the vehicle pass the intersection at a faster speed, and r2 is the partial reward function that stabilizes the vehicle's acceleration. The two reward functions are combined to form a joint reward function. Step 3: Build a deep reinforcement learning model for coordinated control of traffic lights and intelligent connected vehicles The traffic lights and intelligent networked vehicles are controlled in a coordinated manner as follows: Intelligent connected vehicles are added to the road network, which exchange environmental information with traffic lights, so that the traffic light decision-making fully considers the traffic flow conditions, thereby dynamically changing the traffic light switching time and improving traffic congestion. At the same time, this method also controls intelligent connected vehicles, so it can strike a good balance between reducing driving time, fuel consumption and carbon emissions. When the traffic light communicates with the intelligent connected vehicle, it only selects the vehicle closest to the current traffic light controller to cooperate, avoiding cooperation and coordination with all intelligent connected vehicles, greatly reducing training time and cost, and increasing the stability of the training convergence of this method. The deep reinforcement learning model structure includes a value network, a current policy network and a target policy network. The method for obtaining the model includes: iteratively executing the total cycle steps until the preset conditions are met to obtain a trained deep reinforcement learning model.

2. The method for collaborative control of traffic lights and intelligent connected vehicles according to claim 1, characterized in that: The overall cycle steps of the deep reinforcement learning model include: (1) Execute the first loop step to obtain the interaction information of each step between the two types of intelligent agents (traffic lights, intelligent connected vehicles) and the environment The first cycle step comprises: a. According to step 2 of claim 1, obtain the joint state space formed by the interaction between the two types of intelligent agents, traffic lights and intelligent connected vehicles, and the environment b. Combine the state space Input into the current deep reinforcement learning model to obtain the joint action space of the two types of agents Calculate the reward value r t , forming the mutual information of the corresponding step And the joint action space The output information is sent to the corresponding agent, and the probability value corresponding to the action is output, and the action is randomly sampled and selected according to the probability value; c. Agents based on joint action space Select and execute the corresponding action to jump to the next joint state in the environment (2) After a round, the interaction information collected at each step is are all input into the value network to obtain the state value V = [V1, V2, ..., V T ], and calculate the discounted reward R = [R1, R2, ..., R T ]; (3) Calculate the loss function L(ω) of the value network based on the state value and discounted reward, and update the value network parameters using gradient descent and back propagation; (4) executing the second loop step, updating the current policy network M times (M≤T), and obtaining updated current policy network parameters; wherein the second loop step includes: The state of the interactive information s t and action a t Input them into the current policy network and the target policy network respectively, and use the importance sampling method to calculate the importance weight I t (θ); Calculate the advantage function based on the state value V and the discounted reward R Combined with the importance weight I t (θ) Find the objective function L of the current policy network CLIP (θ), use back propagation to update the parameters of the current policy network; (5) Use the updated parameters of the current policy network to update the parameters of the target policy network.

3. The method for coordinated control of traffic lights and intelligent connected vehicles according to claim 1, characterized in that: The joint state space for: For a traffic light agent, as described in claim 1: S TLi =(P TL ,V TL ,N TL ) Indicates the time when the traffic light at the i-th intersection was last switched; Indicates the current allowed traffic direction of the traffic light at the i-th intersection, that is, the traffic light phase. V TL =(v j ,a j ,d j ,l j ) v j represents the longitudinal speed of the jth intelligent connected vehicle, a j represents the acceleration of the jth intelligent connected vehicle, d j represents the distance of the jth intelligent connected vehicle from the intersection, l j Indicates the lane number where the jth intelligent connected vehicle is located; represents the total number of vehicles entering the lane at the i-th intersection, represents the total number of vehicles on all exit lanes at the i-th intersection, i∈[1, 2, ..., m] means there are m intersections in the road network. Among them, n_InLanes and n_OutLanes represent the total number of in-lanes and out-lanes at each intersection respectively; q l Represents the total number of vehicles on the lth lane. For an intelligent connected vehicle agent, as described in claim 1: S cavi =(P TL ,V cav ) In cav =(d j ,in j ,and j ,in f ,and f ,d f ,in r ,and r ,d r ) d j , d f ,d r They represent the distance of the jth intelligent connected vehicle from the intersection, the relative distance between the jth intelligent connected vehicle and the vehicle in front, and the relative distance between the jth intelligent connected vehicle and the vehicle behind; v j , v f ,v r They represent the longitudinal speed of the jth intelligent connected vehicle and the relative speeds to the preceding and following vehicles; a j , a f ,a r They represent the longitudinal acceleration of the jth intelligent connected vehicle, the longitudinal acceleration of its preceding vehicle and the following vehicle respectively; The joint action space for m and n represent the number of traffic lights and intelligent connected vehicles respectively. a TLi =c,c∈{0,1} The present invention defines the action of a traffic light as a discrete binary set, where 0 means that the traffic light controller keeps the current phase unchanged, and 1 means that it switches to the next traffic light phase in the next time interval. Compared with other common action definitions, such as phase selection, this definition is easier to manage for deep reinforcement learning model training. a cavj =a,a∈[-3,3]m / s 2 Among them, a represents the acceleration of the j-th intelligent connected vehicle, which is used to control the longitudinal motion of the vehicle.

4. According to claim 1, the joint reward is r t =(r TL ,r cav ) For the traffic light agent, the reward is designed as r TL =w1*r P +w2*r E +w3*r f +w4*r d Intersection Traffic Pressure Rewards: Carbon Emissions Rewards: Fuel consumption bonus: Waiting delay reward: r p Part of the reward function is used to improve the traffic pressure at the intersection, optimize the traffic rate at the intersection, and allow as many vehicles as possible to pass through the intersection; E Part of the reward function is used to reduce vehicle carbon emissions. This invention only considers CO2 emissions; f Part of the reward function is used to reduce fuel consumption; r d Some reward functions count the waiting delay at intersections to reduce the waiting time of vehicles at intersections. w1, w2, w3, w4 represent weight coefficients; n in 、n out They represent the total number of vehicles on all the entry and exit lanes at each intersection; c represents the maximum capacity of the road; n_Lanes represents the total number of lanes at each intersection; C i Represents the total CO2 concentration emitted by vehicles in the i-th lane at the current intersection; f i represents the fuel consumption of the vehicle in the i-th lane at the current intersection; h i Indicates the waiting delay of vehicles in the i-th lane at the current intersection. For the intelligent connected vehicle agent, the reward function is designed as r cav =r1+r2 The r1 part of the reward function is used to increase the average speed of the vehicle passing through the intersection, and the r2 part of the reward function is used to stabilize the vehicle acceleration. j / a * ) makes the acceleration close to the maximum acceleration. Where K represents the number of vehicles in the same lane as the intelligent connected vehicle; v * Indicates the maximum speed of the vehicle; v j Indicates the actual average speed of all vehicles; a j Indicates the actual driving acceleration of the vehicle; a * Indicates the maximum acceleration of the vehicle.

5. The overall cycle step of the deep reinforcement learning model according to claim 2, characterized in that: The state value V at step t t =V(s t ;ω), where V(s t ; ω) represents the value function, ω represents the parameter of the value network, and the state s of the tth step t Input into the value network to get the state value V t ; The calculation formula for discount rewards is: R t =r t +γV(s t+1 ;ω) Therefore, using the state value V at step T T Derived forward the discounted reward R at step t t for Among them, γ k-t and γ T-t is the discount factor r of the corresponding step k is the reward value of the kth step.

6. The overall cycle step of the deep reinforcement learning model according to claim 2, characterized in that: The loss function L(ω) of the value network is calculated as follows: L(ω)=E t [(R t -V t ) 2 ] Where E t is the expected function, R t is the discounted reward at step t, V t is the state value of step t; Based on L(ω), the gradient descent method is used to update the parameter ω of the value network: Among them, α is the learning rate of the gradient method, It is a gradient operator that uses gradient descent and back propagation to update the parameters of the value network, so that the state value output by the value network is closer to the actual state value.

7. The deep reinforcement learning model total cycle step according to claim 2, characterized in that: Importance Weight I t The calculation method of (θ) is as follows: where π(·|s t ;θ)、π(·|s t θ old ) means that the state s t The policy distribution obtained by inputting into the current policy network and the target policy network, θ represents the parameters of the current policy network, θ old represents the parameters of the target policy network, π(a t |s t ;θ),π(a t |s t θ old ) indicates the actual action to be taken t Input into the corresponding strategy distribution to obtain the value of the action under the corresponding strategy distribution.

8. The deep reinforcement learning model total cycle step according to claim 2, characterized in that: Calculate advantage function based on state value and discounted reward Combined with the importance weight I t (θ) Find the objective function L of the current policy network CLIP (θ), including: According to the state value V t and discount reward R t Calculate the advantage function for According to the advantage function and importance weight I t (θ), find the objective function L of the current policy network CLIP (θ): Where ε is the restricted importance weight I t (θ) is a hyperparameter, clip(I t (θ), 1-ε, 1+ε) will be the importance weight I t The value of (θ) is limited to the range of (1-ε, 1+ε). t When (θ)<1-ε, let I t (θ)=1-ε, similarly when I t When (θ)>1+ε, let I t (θ) = 1 + ε; Based on the objective function L of the current policy network CLIP (θ), and use back-propagation to update the parameters θ of the current policy network.

9. The deep reinforcement learning model total cycle step according to claim 2, characterized in that: Update the target policy network θ using the updated current policy network parameters θ old , i old ←θ The role of the current policy network is to collect the execution trajectory of the agent in the environment for updating the value network and the target policy network, thus completing an iteration.

Citation Information

Cited By

  • Traffic signal lamp and vehicle cooperative control method based on heterogeneous hierarchical reinforcement learning

    CN119600826A

  • Traffic signal and vehicle cooperative control method based on heterogeneous hierarchical reinforcement learning

    CN119600826B

  • Intersection traffic signal control method in intelligent network connection vehicle passing environment

    CN120319044A