A collaborative control method for intelligent connected vehicles on-ramp based on deep reinforcement learning
Through deep reinforcement learning technology, an intelligent network-connected vehicle on-ramp collaborative control method is designed to solve the impact of on-ramp vehicle merging behavior on traffic flow in the merging area, improve the safety, efficiency and comfort of the lane changing process, and reduce It reduces the risk of accidents and improves the traffic efficiency in the merging area.
Patent Information
- Application Number
- CN202310851340.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the merging area, the merging behavior of vehicles entering the ramp has an impact on the stability of the traffic flow on the main road, and drivers need high technology to complete lane changes safely and efficiently. The existing technology is difficult to effectively improve safety and traffic efficiency, and reduce accidents. incidence rate.
An intelligent networked vehicle on-ramp collaborative control method based on deep reinforcement learning is adopted. The control strategy is designed through intelligent networked vehicle status information acquisition and flexible action-evaluation algorithms, and the state space, action space and reward function are defined, including safety and efficiency. and comfort three parts, anti-collision strategies, training agents to explore models in simulated environments to optimize lane-changing decisions.
It has improved the safety, efficiency and comfort of vehicles in the process of changing lanes on the ramp, improved the traffic efficiency in the merging area, and reduced the accident rate. Through the continuous exploration and training of the intelligent agent in the simulation environment, the vehicle changing process has been optimized. Dao behavior.
Smart Images

Figure CN117315955B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent transportation systems, and in particular to a method for coordinated on-ramp control of intelligent connected vehicles based on deep reinforcement learning. Background Art
[0002] The imbalance between traffic supply and demand has led to serious traffic congestion, traffic safety and environmental problems. Expressways occupy a dominant position in the highway network and serve as a bridge for inter-city transportation. They have the advantages of many lanes, large traffic capacity, high driving speed and low transportation cost. In its basic section, most vehicles travel in a straight line without interference from external vehicles, and traffic accidents are not easy to occur. In the merging area formed by the main road and the ramp entrance, the frequent merging of vehicles entering the ramp often affects the stable state of the main road traffic flow. The merging behavior of vehicles entering the ramp is urgent and necessary, and requires high driving skills from the driver. Improper lane changing behavior has a greater impact on the vehicles behind the main lane, which will force them to slow down or emergency brake to maintain a safe distance with the lane changing vehicle, thereby affecting the normal driving of the merging area and upstream vehicles.
[0003] With the development of Internet of Vehicles technology and 5G communication technology, new ideas have been brought to vehicle control in merging areas. 5G communication technology has high speed and short network delay, making the development of Internet of Things technology more mature, which can support real-time information transmission and data sharing between vehicles. Internet of Vehicles technology and on-board sensing system enable vehicles to obtain relevant information such as the movement status of nearby vehicles, road congestion conditions, regional speed limits, etc. in real time and accurately during driving, and process the information through the central controller or on-board controller, analyze the vehicle's operation decision at the next moment, and control the vehicle in real time. If the on-ramp vehicle can obtain road information in advance through intelligent network technology and reasonably control the vehicle speed, then the conflict between on-ramp vehicles and trunk road vehicles can be reduced, so that on-ramp vehicles can complete vehicle merging in a safer, more efficient and more comfortable way. Therefore, intelligent network technology provides more possibilities for improving the traffic efficiency of ramp merging areas.
[0004] In summary, the driving behavior of vehicles in the merging area needs to attract more attention. This invention combines the performance advantages of intelligent connected vehicles and the exploration ability of deep reinforcement learning in decision space, models the process of on-ramp vehicles merging from the expressway into the main road and exiting the merging area, and through the continuous exploration and training model of the intelligent agent in deep reinforcement learning in the simulation environment, puts forward reasonable suggestions for improving the traffic efficiency of the merging area and ensuring the safety of vehicle driving. Summary of the invention
[0005] In view of the shortcomings in the prior art, the purpose of the present invention is to provide a collaborative control method for on-ramp intelligent connected vehicles based on deep reinforcement learning, which can improve the safety, efficiency and comfort of on-ramp vehicles during lane changing, and provide certain theoretical guidance for improving the traffic efficiency of merging areas and reducing the accident rate.
[0006] In order to solve the above technical problems, the technical solution provided by the present invention is:
[0007] A method for coordinated control of intelligent connected vehicle on-ramp based on deep reinforcement learning includes the following steps:
[0008] Step 1: Acquisition of intelligent connected vehicle status information;
[0009] Step 2: Obtain surrounding environment information in real time through the on-board sensors, positioning system and V2X system of the intelligent connected vehicle; the status information of the intelligent connected vehicle includes the vehicle's driving speed, position, and distance from the end of the expressway; the surrounding environment information of the intelligent connected vehicle includes the speed, position, and acceleration of the vehicle on the main lane.
[0010] Step 3: Design a control strategy for on-ramp vehicles based on the flexible action-evaluation algorithm, and define the state space, action space, and reward function of the model respectively;
[0011] Step 3.1: Define the state space of the model;
[0012] The state space of the model is as follows:
[0013] Se={Δx,Δy,v,Δx tp ,Δv tp ,Δx tl ,Δv tl}
[0014] Among them, Se is the state space of the intelligent connected vehicle;
[0015] Δx is the distance between the intelligent connected vehicle and the end of the ramp;
[0016] Δy is the lateral distance between the intelligent connected vehicle and the center line of the main lane;
[0017] v is the speed of the intelligent connected vehicle;
[0018] Δx tp , Δv tp The longitudinal distance and speed difference between the intelligent connected vehicle and the vehicle in front of the target lane;
[0019] Δx tl , Δv tl is the longitudinal distance and speed difference between the intelligent connected vehicle and the vehicle behind in the target lane;
[0020] Step 3.2: Define the action space of the model;
[0021] The action space of the model includes the steering angle and acceleration values of the vehicle, as follows:
[0022] A={θ,a}
[0023] Among them, A is the action space of the intelligent connected vehicle;
[0024] θ is the steering angle of the intelligent connected vehicle;
[0025] a is the longitudinal acceleration of the intelligent connected vehicle.
[0026] Step 3.3: Define the reward function of the model;
[0027] The total reward and punishment function includes three parts: safety, efficiency, and comfort, as follows:
[0028] R=w safe R safe +w efficiency R efficiency +w comfort R comfort
[0029] Among them, w safe is the weight coefficient corresponding to the sub-reward related to security;
[0030] R safe is the penalty function for security;
[0031] w efficiency is the weight coefficient corresponding to the sub-reward related to efficiency;
[0032] R efficiency is the sub-reward function related to lane-changing efficiency;
[0033] w comfort is the weight coefficient corresponding to the sub-reward related to comfort;
[0034] R comfort is the sub-reward function related to comfort;
[0035] The safety penalty function is to avoid collisions between smart connected vehicles and other vehicles and maintain a safe distance. When the collision time between the smart connected vehicle and surrounding vehicles does not meet the safety constraints, the agent will be assigned a negative penalty value R safe , which is defined as follows:
[0036]
[0037]
[0038] Wherein, t represents time;
[0039] n represents the following vehicle;
[0040] n-1 indicates the preceding vehicle;
[0041] x n-1 (t) indicates the position of the preceding vehicle;
[0042] v n-1 (t) represents the speed of the preceding vehicle;
[0043] l represents the length of the vehicle;
[0044] TTC stands for Time to Collision;
[0045] x n (t) indicates the position of the following vehicle;
[0046] v n (t) represents the speed of the following vehicle;
[0047] Sub-reward function R related to lane changing efficiency efficiency The specific definitions are as follows:
[0048] R efficiency =w lane R lane +w speed R speed
[0049]
[0050]
[0051] Among them, R lane is the sub-reward function related to the horizontal coordinate;
[0052] R speed is the sub-reward function related to the longitudinal velocity;
[0053] y * is the center position of the target lane;
[0054] R lane It is a sub-reward related to lane changing for smart connected vehicles;
[0055] v * To automatically calculate the desired speed of the vehicle;
[0056] R speed It is a sub-reward related to the speed of the smart connected vehicle;
[0057] R efficiency is the total efficiency reward, which includes the two sub-rewards related to position and speed mentioned above;
[0058] w lane and w speed is the weight coefficient;
[0059] y is the lateral position of the vehicle;
[0060] v is the vehicle speed;
[0061] Sub-reward function R related to comfort comfort The specific definitions are as follows:
[0062]
[0063] Where jerk is the derivative of acceleration;
[0064] jerk max is the maximum comfortable acceleration rate of change.
[0065] Step 4: Define the anti-collision strategy, including:
[0066] When the intelligent connected vehicle meets the unsafe constraints, the safety layer will take effect and will refuse to adopt the output of the model to control the vehicle in a safer way. The safety constraints of the intelligent connected vehicle mainly include the minimum safe distance constraint and the lane constraint.
[0067] The minimum safety distance constraint means that when the speed of the intelligent networked vehicle is greater than that of the vehicle in front and the distance between the intelligent networked vehicle and the vehicle in front is less than the minimum safety distance, the intelligent networked vehicle will decelerate at the maximum deceleration. The definition of the minimum safety distance is as follows:
[0068]
[0069] d min =(v n -v n-1 )×t min
[0070] Among them, v n The speed of intelligent connected vehicles;
[0071] v n-1 Speed of the vehicle ahead of the intelligent connected vehicle;
[0072] a dmax Maximum deceleration;
[0073] t min is the minimum safety time;
[0074] d min is the minimum safe distance;
[0075] Lane constraints refer to when an intelligent connected vehicle is about to leave the road and crash into the sides of the lane due to improper decision-making. The anti-collision strategy should correct this dangerous driving behavior in a timely manner. Lane constraints are defined as follows:
[0076]
[0077] Where, θ is the steering angle of the intelligent connected vehicle; θ steer is the steering angle that the vehicle can operate at, [-30°, 30°]
[0078] Step 5: Define the algorithm flow, including:
[0079] Before model training, all parameters need to be initialized, including the maximum time step M, the initialization policy network parameter φ, the Q value function parameters θ1 and θ2, the V value function parameter ψ, and the experience replay pool D. Then the agent selects an action based on the environment state and the policy network. The agent performs action a. t Will update the environment to the new state s t+1 , and generates a reward r t ; The experience generated at each step (s t ,a t ,s t+1 ,r) will be stored in the experience replay pool. When there is enough experience in the experience replay pool, the learning process begins. During the learning process, random sampling will be performed in the experience pool, the network will be updated through the algorithm's loss function, and finally the target network will be updated.
[0080] Compared with the prior art, the present invention has the following beneficial effects:
[0081] The present invention provides a ramp-entry vehicle control method based on the Soft Actor-Critic (SAC) algorithm for the process of vehicles merging from the entrance ramp to the main lane, which can achieve continuous control of the vehicle in the lateral and longitudinal directions. The proposed lane-changing model designs a reward function from the three perspectives of vehicle lane-changing safety, efficiency, and comfort based on the characteristics of human driving data, with the goal of maximizing the cumulative reward, and trains the model through the continuous exploration of the intelligent agent in a simulated environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0083] Figure 1 It is a schematic diagram of the research scenario of the present invention;
[0084] Figure 2 It is a schematic diagram of the training results of the present invention;
[0085] Figure 3 It is a schematic diagram of simulation results of the present invention;
[0086] Figure 4 A comparison diagram of the locations where the simulation data of the present invention and the NGSIM data are imported;
[0087] Figure 5 It is a comfort comparison diagram of the simulation data of the present invention and the NGSIM data;
[0088] Figure 6 It is a structural diagram of the present invention. DETAILED DESCRIPTION
[0089] The present invention proposes a method for coordinated control of intelligent connected vehicle on-ramp based on deep reinforcement learning, comprising the following steps:
[0090] Step 1: Acquire the status information of the intelligent connected vehicle, including the vehicle's speed, location, and distance to the end of the expressway. Figure 1 As shown;
[0091] Step 2: Obtain surrounding environment information in real time through the on-board sensors, positioning system and V2X system of the intelligent connected vehicle. The information obtained includes the speed, position and acceleration of the vehicle in the main lane, such as Figure 1 As shown;
[0092] Step 3: Design a control strategy for on-ramp vehicles based on the SoftActor-Critic (SAC) algorithm, and define the state space, action space, and reward function in the model respectively;
[0093] Step 3.1: Define the state space of the model. To ensure that the on-ramp vehicles merge smoothly into the main lane, the following two conditions must be met: ① The lane change gap of the target lane meets the psychological expectations of the driver; ② There is sufficient space on the expressway for the on-ramp vehicles to complete the lane change. This requires the drivers of the on-ramp vehicles to grasp the lane change opportunity in time and have high driving skills. Therefore, the state space of the model is as follows:
[0094] Se={Δx,Δy,v,Δx tp ,Δv tp ,Δx tl ,Δv tl}
[0095] Where Se is the state space of the intelligent connected vehicle; Δx is the distance between the intelligent connected vehicle and the end of the ramp; Δy is the lateral distance between the intelligent connected vehicle and the center line of the main lane; v is the speed of the intelligent connected vehicle; Δx tp , Δv tpΔx is the longitudinal distance and speed difference between the intelligent connected vehicle and the vehicle in front of the target lane; tl , Δv tl It is the longitudinal distance and speed difference between the intelligent connected vehicle and the vehicle behind in the target lane.
[0096] Step 4.2: Define the action space of the model. In order to achieve continuous control of the intelligent connected vehicle, the action space of the model defined in the present invention includes the steering angle and acceleration value of the vehicle, as shown below:
[0097] A={θ,a}
[0098] Step 4.3: Define the reward function of the model. The total reward and punishment function includes three parts: safety, efficiency, and comfort, as follows:
[0099] R=w safe R safe +w efficiency R efficiency +w comfort R comfort
[0100] Among them, w safe is the weight coefficient corresponding to the sub-reward related to security; w efficiency is the weight coefficient corresponding to the sub-reward related to efficiency; w comfort is the weight coefficient corresponding to the sub-reward related to comfort.
[0101] R safe is a safety penalty function, which is used to avoid collisions between intelligent connected vehicles and other vehicles and maintain a safe distance. When the collision time between the intelligent connected vehicle and the surrounding vehicles does not meet the safety constraints, the intelligent agent will be assigned a negative penalty value R safe , which is defined as follows:
[0102]
[0103]
[0104] Where t represents time; n and n-1 represent the following vehicle and the preceding vehicle respectively; x n-1 (t) indicates the position of the preceding vehicle; v n-1 (t) represents the speed of the front vehicle; l represents the length of the vehicle. TTC is negatively correlated with the collision risk, that is, the smaller the TTC, the higher the vehicle collision risk. From the above formula, it can be seen that when TTC is close to 0, the penalty value of the intelligent networked vehicle will tend to negative infinity. When TTC is negative or greater than 4, the intelligent networked vehicle will not be assigned a penalty value.
[0105] R efficiency It is a sub-reward function related to lane-changing efficiency. It is as follows:
[0106] R efficiency =w lane R lane +w speed R speed
[0107]
[0108]
[0109] Among them, R lane is the sub-reward function related to the lateral coordinate, which aims to encourage the intelligent connected vehicle to merge into the target lane as soon as possible; R speed is a sub-reward function related to the longitudinal speed, which aims to encourage the intelligent connected vehicle to accelerate to the desired speed as quickly as possible; * is the center position of the target lane, i.e. the expected longitudinal position of the intelligent connected vehicle; R lane is the sub-reward related to lane changing of intelligent connected vehicles; * To automatically calculate the desired speed of the vehicle; R speed is a sub-reward related to the speed of the intelligent connected vehicle; R efficiency is the total efficiency reward, which includes the above two sub-rewards related to position and speed; lane and R speed is the weight coefficient.
[0110] R comfort It is a sub-reward function related to comfort. It is as follows:
[0111]
[0112] Where jerk is the derivative of acceleration; jerk max is the maximum comfortable acceleration rate of change.
[0113] Step 4: Define the anti-collision strategy. Although the reward function will penalize the case of a small TTC, the agent may still adopt an unsafe strategy, resulting in a vehicle collision. In this study, in order to solve this problem, the present invention proposes a rule-based anti-collision strategy. When the intelligent connected vehicle meets the unsafe constraints, the safety layer will take effect and will refuse to adopt the output results of the model to control the vehicle in a safer way. The safety constraints of the intelligent connected vehicle mainly include the minimum safe distance constraint and the lane constraint.
[0114] The minimum safety distance constraint means that when the speed of the intelligent networked vehicle is greater than that of the vehicle in front and the distance between the intelligent networked vehicle and the vehicle in front is less than the minimum safety distance, the intelligent networked vehicle will decelerate at the maximum deceleration. The definition of the minimum safety distance is as follows:
[0115]
[0116] d min =(v n -v n-1 )×t min
[0117] Among them, v n is the speed of the intelligent connected vehicle; v n-1 Speed of the vehicle ahead of the intelligent connected vehicle; a dmax Maximum deceleration; t min is the minimum safety time; d min The minimum safe distance.
[0118] In addition to collisions between vehicles, leaving the road is also a dangerous driving behavior in real traffic scenarios. Lane constraints mean that when an intelligent connected vehicle leaves the road and crashes into the sides of the lane due to improper decisions, the anti-collision strategy should correct this dangerous driving behavior in a timely manner. Lane constraints are defined as follows:
[0119]
[0120] Where, θ is the steering angle of the intelligent connected vehicle; θ steer is the steering angle that the vehicle can operate at, [-30°, 30°]
[0121] Step 5: Define the algorithm flow. Before model training, all parameters need to be initialized, including the maximum time step M, the initialization policy network parameter φ, the Q value function parameters θ1 and θ2, the V value function parameter ψ, and the experience replay pool D. Then the agent selects an action based on the environment state and the policy network. The agent performs action a. t Will update the environment to the new state s t+1 , and generates a reward r t The experience generated at each step (s t ,a t ,s t+1 ,r) will be stored in the experience replay pool. When there is enough experience in the experience replay pool, the learning process begins. During the learning process, random sampling will be performed in the experience pool, the network will be updated through the algorithm's loss function, and finally the target network will be updated to ensure the stability of the training.
[0122] Step 6: Analysis of model training results. To verify the performance of the SAC algorithm, the present invention uses the mainstream deep reinforcement learning algorithm DDPG algorithm and the SAC algorithm for comparison. Figure 2It describes how the reward value changes with the increase of iteration rounds during the training process. The average reward is the average reward of lane change events included in a sliding window of size 50 in the training round. It can be seen from the figure that each experiment is trained for 4000 rounds. The solid line in the figure is the average value of multiple experiments; the upper and lower bounds of the shaded area in the figure are the maximum and minimum values of multiple experiments, indicating the fluctuation of the average reward value in multiple experiments. The straight line representing the reward value of the lane change model of the on-ramp vehicle based on the SAC algorithm in the figure finally converges to 0.818, and the straight line representing the reward value of the on-ramp vehicle model trained by the DDPG algorithm finally converges to 0.733. The dotted line is the average reward value obtained by all on-ramp vehicles in the NGSIM dataset, which is 0.471. Although the reward value of the on-ramp vehicle lane-changing model based on the DDPG algorithm is higher than the reward value of the on-ramp vehicle lane-changing model based on the SAC algorithm in the early stage of training, the final convergence results show that the cumulative reward of the SAC algorithm is higher, indicating that it is more suitable for the construction of the on-ramp vehicle lane-changing model than the DDPG algorithm, and the performance of the on-ramp vehicle lane-changing model constructed based on the SAC algorithm and the DPPG algorithm is better than the human driving data, indicating that the design of the model of the present invention is reasonable. In addition, it can be seen from the shadows in the figure that the training process of the forced lane-changing model constructed based on the SAC algorithm is more stable and converges faster.
[0123] Step 7: Analysis of simulation results. Figure 3 The figure is a time-space diagram of the vehicle trajectory of the main lane in the NGSIM dataset and vehicle simulation. The black straight lines in the figure are the front and rear vehicles of the on-ramp vehicle in the target lane; the black dotted line is the on-ramp vehicle, which shows the change of the regional vertical coordinate after it changes lanes to the main lane. It can be seen from the figure that the intelligent connected vehicle can react to the merging gap in advance by analyzing the motion state of the surrounding vehicles under the control of the on-ramp vehicle lane changing model proposed in the present invention, so that it has a larger distance between the vehicles and the rear vehicle in the target lane during the lane changing process, and can complete the vehicle lane changing in a more comfortable driving state.
[0124] The simulation data of a single vehicle is accidental. In order to further demonstrate the overall effect of the on-ramp vehicle lane-changing model proposed in the present invention in multiple simulations, the present invention randomly extracts 1 / 4 of the sample data from the NGSIM data set to perform simulation tests on the trained on-ramp vehicle lane-changing model, and analyzes the simulation data from three aspects: safety, lane-changing efficiency, and comfort.
[0125] (1) Security
[0126] TTC is usually used to describe the safety of vehicle driving behavior. The penalty function for safety in the lane-changing model of on-ramp vehicles proposed in the present invention is defined as follows: only when the TTC value between the intelligent connected vehicle and the surrounding vehicles is greater than 0 and less than or equal to 4, the intelligent connected vehicle will be considered to have safety hazards in the decision-making process, that is, it will be assigned a certain penalty value. Table 1 counts the proportion of the number of data frames in the simulation data and NGSIM data set when the TTC value is greater than 0 and less than or equal to 4 to the total frames of the entire data set and the proportion of the number of vehicles involved in these frame data to the total number of vehicles in the data set. It can be seen from the table that among all the data in the NGSIM data set, the proportion of TTC values between 0 and 4 is 0.0326%, and the vehicles involved in these data account for 33.898% of the total number of lane-changing vehicles in the data set; in the simulation data of the lane-changing model based on the SAC algorithm, the data with TTC values between 0 and 4 account for 0.0271% of the total simulation data, and the vehicles involved in these frame data account for 17.375% of the total number of lane-changing vehicles in the simulation data. Therefore, the on-ramp vehicle lane changing model based on the SAC algorithm proposed in the present invention is safer than human driving data. The model trained by the algorithm is more inclined to keep the TTC between the intelligent connected vehicle and the surrounding vehicles in a range greater than 4 or less than 0 in order to increase the reward value.
[0127] Table 1 TTC statistics of simulation data and NGSIM dataset
[0128]
[0129]
[0130] (2) Lane changing efficiency
[0131] Figure 4 The figure shows the distribution of the merging positions of lane-changing vehicles in the simulation data and the NGSIM data set, where the straight line is the normal distribution fitting curve of the merging position, which further describes the distribution law of the merging position; the horizontal axis is the merging position; the vertical axis is the percentage, which indicates the percentage of vehicles with merging positions in the corresponding range. It can be seen from the figure that the median of the merging position in the simulation data is about 240 meters, and about 71% of the vehicles can complete the lane change within 260 meters; the median of the merging position in the NGSIM data set is about 260 meters, and only about 50% of the vehicles can complete the lane change within 260 meters. This shows that the lane-changing model for on-ramp vehicles based on the SAC algorithm proposed in the present invention advances the position where the lane-changing vehicle completes the lane change to a certain extent, and improves the lane-changing efficiency of the lane-changing vehicle.
[0132] (3) Comfort
[0133] Figure 5The figure shows the jerk values of lane-changing vehicles in the simulation data and NGSIM data. The red straight line is a random sampling of the jerk values of some lane-changing vehicles in the NGSIM data set, and the green straight line is the jerk value of all lane-changing vehicles in the simulation data set. It can be seen from the figure that the fluctuation of the jerk value of lane-changing vehicles in the simulation data is relatively stable, at -15m / s 3 Up to 15m / s 3 The jerk value of lane-changing vehicles in the NGSIM dataset fluctuates more widely, with a maximum value of about 75 m / s. 3 , the minimum value is about -75m / s 3 Therefore, the forced lane change model based on the SAC algorithm proposed in the present invention reduces the fluctuation amplitude of acceleration to a certain extent, that is, improves the comfort of the driver and passengers.
[0134] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
[0135] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for coordinated control of intelligent connected vehicles entering ramps based on deep reinforcement learning, characterized in that: The merging area scenario involved in the vehicle on-ramp coordinated control method is composed of an entrance ramp, a parallel acceleration lane and a main lane. After the on-ramp vehicle enters the expressway from the entrance ramp, in order to merge into the main lane, it needs to accelerate to a suitable speed range in the acceleration lane and complete the vehicle lane change; The following steps are involved: Step 1: Acquisition of intelligent connected vehicle status information; Step 2: Obtain surrounding environment information in real time through the on-board sensors, positioning system and V2X system of the intelligent connected vehicle; Step 3: Design a control strategy for on-ramp vehicles based on the flexible action-evaluation algorithm, and define the state space, action space, and reward function of the model respectively; Step 4: Define anti-collision strategy; Step 5: Define the algorithm flow; Step 3 specifically includes: Step 3.1: Define the state space of the model; The state space of the model is as follows: Se={Δx,Δy,v,Δx tp ,Δv tp ,Δx tl ,Δv tl } Among them, Se is the state space of the intelligent connected vehicle; Δx is the distance between the intelligent connected vehicle and the end of the ramp; Δy is the lateral distance between the intelligent connected vehicle and the center line of the main lane; v is the speed of the intelligent connected vehicle; Δx tp is the longitudinal distance between the intelligent connected vehicle and the vehicle in front of the target lane, Δv tp is the speed difference between the intelligent connected vehicle and the vehicle in front of the target lane; Δx tl is the longitudinal distance between the intelligent connected vehicle and the vehicle behind in the target lane, Δv tl is the speed difference between the intelligent connected vehicle and the vehicle behind in the target lane; Step 3.2: Define the action space of the model; The action space of the model includes the steering angle and acceleration values of the vehicle, as follows: A={θ,a} Among them, A is the action space of the intelligent connected vehicle; θ is the steering angle of the intelligent connected vehicle; a is the longitudinal acceleration of the intelligent connected vehicle; Step 3.3: Define the reward function of the model; The total reward and punishment function includes three parts: safety, efficiency, and comfort, as follows: R=w safe R safe +w efficiency R efficiency +w comfort R comfort Among them, w safe is the weight coefficient corresponding to the sub-reward related to security; R safe is the penalty function for security; w efficiency is the weight coefficient corresponding to the sub-reward related to efficiency; R efficiency is the sub-reward function related to lane-changing efficiency; w comfort is the weight coefficient corresponding to the sub-reward related to comfort; R comfort is the sub-reward function related to comfort; The safety penalty function is to avoid collisions between smart connected vehicles and other vehicles and maintain a safe distance. When the collision time between the smart connected vehicle and surrounding vehicles does not meet the safety constraints, the agent will be assigned a negative penalty value R safe , which is defined as follows: Wherein, t represents time; n represents the following vehicle; n-1 represents the front vehicle; x n-1 (t) indicates the position of the preceding vehicle; v n-1 (t) represents the speed of the preceding vehicle; l represents the length of the vehicle; TTC stands for Time to Collision; x n (t) indicates the position of the following vehicle; v n (t) represents the speed of the following vehicle; Sub-reward function R related to lane changing efficiency efficiency The specific definitions are as follows: R efficiency =w lane R lane +w speed R speed Among them, R lane is the sub-reward function related to the horizontal coordinate; R speed is the sub-reward function related to the longitudinal velocity; y * is the center position of the target lane, i.e., the desired position of the intelligent connected vehicle; R lane It is a sub-reward related to lane changing for smart connected vehicles; v * is the expected speed of the vehicle; R speed It is a sub-reward related to the speed of the smart connected vehicle; R efficiency is the total efficiency reward, which includes the two lane-changing-related and speed-related sub-rewards mentioned above; w lane and w speed is the weight coefficient; y is the lateral position of the vehicle; v is the vehicle speed; Sub-reward function R related to comfort comfort The specific definitions are as follows: Where jerk is the derivative of acceleration; jerk max is the maximum comfortable acceleration change rate; Step 4 specifically includes: When the intelligent connected vehicle meets the unsafe constraints, the safety layer will take effect and will refuse to adopt the output of the model to control the vehicle in a safer way. The safety constraints of the intelligent connected vehicle include the minimum safe distance constraint and the lane constraint. The minimum safety distance constraint means that when the speed of the intelligent networked vehicle is greater than that of the vehicle in front and the distance between the intelligent networked vehicle and the vehicle in front is less than the minimum safety distance, the intelligent networked vehicle will decelerate at the maximum deceleration. The definition of the minimum safety distance is as follows: d min =(v n -v n-1 )×t min Among them, v n The speed of intelligent connected vehicles; v n-1 is the speed of the vehicle in front of the intelligent connected vehicle; a dmax is the maximum deceleration; t min is the minimum safety time; d min is the minimum safe distance; Lane constraints refer to when an intelligent connected vehicle is about to leave the road and crash into the sides of the lane due to improper decision-making. The anti-collision strategy should correct this dangerous driving behavior in a timely manner. Lane constraints are defined as follows: Where, θ is the steering angle of the intelligent connected vehicle; θ steer is the steering angle that the vehicle can operate at, [-30°, 30°] Step 5 specifically includes: Before model training, all parameters need to be initialized, including the maximum time step M, the policy network parameter φ, the Q value function parameters θ1 and θ2, the V value function parameter ψ, and the experience replay pool D. Then the agent selects an action s according to the environment state and the policy network. t , the agent performs action a t Will update the environment to the new state s t+1 , and generates a reward r t ; The experience generated at each step (s t ,a t ,s t+1 ,r t ) will be stored in the experience replay pool. When there is enough experience in the experience replay pool, the learning process begins. During the learning process, random sampling will be performed in the experience replay pool, the network will be updated through the algorithm's loss function, and finally the target network will be updated.
2. The method for coordinated control of intelligent connected vehicle on-ramp based on deep reinforcement learning according to claim 1 is characterized in that: The state information of the intelligent network-connected vehicle includes the vehicle's driving speed, position and distance from the end of the expressway; the surrounding environment information of the intelligent network-connected vehicle includes the vehicle's speed, position and acceleration on the main lane.
