An automatic driving method and system based on hierarchical reinforcement learning and model predictive control
The autonomous driving system, which utilizes hierarchical reinforcement learning and model predictive control, solves the problem that existing technologies struggle to balance safety, comfort, and energy consumption in complex traffic environments, thereby improving the range and ride comfort of electric vehicles at the pure software algorithm level.
Patent Information
- Application Number
- CN202611028616.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing autonomous driving methods struggle to balance safety, comfort, and energy consumption in complex traffic environments. Furthermore, current technologies are ill-suited for efficient path tracking and speed maintenance in scenarios with dense traffic flow, frequent vehicle entry and exit, and significant changes in road curvature.
An autonomous driving system based on hierarchical reinforcement learning and model predictive control is adopted, including a state acquisition module, a macro decision-making module, a safety verification module, a trajectory planning module, and a low-level control module. The system reduces computational overhead through hierarchical decoupling design and generates smooth driving commands by combining multi-objective reward functions and safety verification mechanisms.
It enables the effective exploitation of energy-saving potential, extends vehicle range, improves ride comfort and traffic efficiency, and meets the high-frequency real-time control requirements of mass-produced vehicles without changing the existing hardware of the three-electric system.
Smart Images

Figure CN123177152A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous driving planning technology, specifically to an autonomous driving method and system based on hierarchical reinforcement learning and model predictive control. Background Technology
[0002] The driving range of electric vehicles depends not only on the capacity of the power battery, but also on the actual driving style. With the improvement of power battery energy density constrained by factors such as cost, weight, and safety, optimizing the vehicle's acceleration, deceleration, following, and lane-changing behavior through autonomous driving systems has become a feasible way to reduce energy consumption. For autonomous electric vehicles, driving strategies simultaneously affect vehicle driving safety, trajectory smoothness, motor efficiency, battery state of charge, and braking energy recovery effectiveness. Current autonomous driving systems cannot simply complete path tracking or speed maintenance; they also need to balance safety, comfort, and energy consumption in complex traffic environments. In existing autonomous driving methods, following, lane changing, and cruise control often employ rule-based methods, finite state machines, or model predictive control. Rule-based methods typically generate driving commands based on conditions such as headway, safe distance, road speed limits, and lane availability. Their structure is intuitive and easy to implement in engineering. However, in scenarios with dense traffic, frequent vehicle incursions and outcurvatures, and significant changes in road curvature, fixed rules are insufficient to cover all traffic conditions. As the number of rules increases, issues such as complex state transitions, overly conservative strategies, or rule conflicts can easily arise. Model predictive control can incorporate vehicle dynamics constraints and safe distance constraints into the optimization process. However, in cases of multi-vehicle interaction, uncertain preceding vehicle behavior, and nonlinear motor energy consumption models, the online solution burden is significant, placing high demands on onboard computing resources and model accuracy. With the improvement of onboard computing power, deep reinforcement learning and end-to-end learning methods have also been used for autonomous driving decision-making and control. These methods can learn driving strategies from vehicle state, road information, and surrounding traffic information, and have a certain degree of adaptive capability in lane selection, speed planning, and following control. However, when end-to-end strategies directly output throttle, braking, or steering control quantities, they are prone to control quantity jitter, making the changes in vehicle acceleration, jerk, and lateral position less smooth, affecting ride comfort. At the same time, the decision-making process of neural network strategies is not easy to interpret, and the output results are difficult to directly verify for safety. In practical applications, it is usually necessary to add safety rules or emergency takeover logic to the outer layer. This approach can only remedy the situation after the action is output and cannot guarantee from the source that the driving command is always within a safe and feasible range. In the field of energy-saving autonomous driving, existing methods mainly reduce vehicle energy consumption from the perspectives of longitudinal speed planning, economic cruise control, or energy consumption penalty rewards. For pure electric vehicles, energy consumption is related to vehicle speed, acceleration, road gradient, motor efficiency, regenerative braking, and battery status. The acceleration, deceleration, or lane change behavior taken by the vehicle at a certain moment will affect energy consumption and traffic interaction status in the subsequent period of time. If the energy-saving target is only added to the reward function or cost function in the form of soft constraints, the vehicle may produce behaviors such as excessively low speed, frequent lane changes, and rapid deceleration followed by acceleration under the drive of local energy consumption gains. If the safety penalty is set too strongly, it may cause the vehicle to maintain a conservative following state for a long time, resulting in a decrease in traffic efficiency. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention provides an autonomous driving method and system based on hierarchical reinforcement learning and model predictive control, which has the advantage of meeting the high-frequency real-time control requirements of mass-produced vehicles and solves the aforementioned technical problems.
[0004] To achieve the above objectives, the present invention provides the following technical solution: an autonomous driving system based on hierarchical reinforcement learning and model predictive control, comprising a state acquisition module, a macro decision-making module, a safety verification module, a trajectory planning module, and a low-level control module; The status acquisition module is used to acquire status data, including the vehicle's current operating status, road information, surrounding vehicle information, and energy consumption information, and send it to the macro decision-making module. The macro decision-making module uses the state data output by the state acquisition module as the state space and generates driving instructions, which include lateral lane instructions and longitudinal target speeds. The safety verification module is used to perform safety checks on the lateral lane instructions output by the macro decision-making module. If the safety conditions are not met, the lateral lane instructions are replaced with preset safety instructions and the system does not enter the trajectory planning module. If the conditions are met, the system enters the trajectory planning module. The trajectory planning module receives driving instructions that have passed safety verification and generates a reference trajectory based on the vehicle's current operating status. The underlying control module calculates the actual control quantity based on the reference trajectory output by the trajectory planning module.
[0005] As a preferred technical solution of the present invention, the current operating state of the vehicle may include vehicle position, speed, acceleration, heading angle and lane deviation; The road information may include lane number, lane width, road curvature, road speed limit, and target lane availability; The surrounding vehicle information may include the relative distance, relative speed, and acceleration of the vehicles in front and behind in the current lane and adjacent lanes; The energy consumption information includes battery state of charge, instantaneous motor power, and motor efficiency.
[0006] As a preferred embodiment of the present invention, the macroscopic decision-making module is used to represent state data as state vectors, which serve as inputs to the policy network, and output actions. , including lateral discrete actions and target speed .
[0007] As a preferred embodiment of the present invention, the policy network includes a lane decision branch and a speed decision branch. The lane decision branch outputs the probability of each lane's action using a softmax function, and the speed decision branch outputs the mean and standard deviation of a continuous speed distribution. The policy network is used to output parameters... The policy network in state Down-output hybrid motion probability : in This represents a mixed action output by the macro-decision module; Indicates the vehicle's time The obtained status information; Indicates a movement in the lateral lane. This represents the target velocity output by the velocity decision branch; This indicates that the lane decision branch outputs lane actions. The probability of; The output of the velocity decision branch represents the target velocity. The probability density, It represents a logarithm.
[0008] As a preferred embodiment of the present invention, the multi-objective reward function set during training of the policy network is as follows: in, Indicates a security reward. Representing geometric topology and intentional reward, This indicates a reward for driving efficiency. Indicates a comfort reward. This represents the energy-efficient collaborative reward for physical information enhancement. This indicates a survival reward.
[0009] As a preferred technical solution of the present invention, the safety verification module includes longitudinal collision risk assessment and lane change feasibility safety check when verifying lateral lane instructions. The longitudinal collision risk assessment includes calculating the longitudinal collision risk assessment between the current vehicle and the i-th surrounding vehicle. The specific expression for this assessment is as follows: in, Indicates the surrounding first a car, and They are respectively the surrounding number The longitudinal position and speed of the vehicle Indicates the relationship with the first The instantaneous collision time of a vehicle , Let represent the longitudinal position and longitudinal velocity of the vehicle, if there exists any vehicle that satisfies ... If so, it is determined that there is a risk of collision. This indicates that a safety threshold has been set. The specific procedures for the lane change feasibility safety check are as follows: in, For reaction time, This indicates the maximum braking deceleration that the vehicle can achieve. This indicates the braking deceleration magnitude applied to vehicles behind in the target lane. Indicates the vehicle's speed. Indicates the speed of the vehicle behind. Indicates a safe distance. This indicates the minimum distance.
[0010] As a preferred embodiment of the present invention, the trajectory planning module uses the SAC algorithm to optimize the trajectory parameters and outputs the time. Parameterized actions , Indicates the trajectory planning time. This represents the longitudinal planning distance of the trajectory endpoint relative to the starting point, based on time. Parameterized actions The reference trajectory is generated using a fifth-order polynomial in the Frenet coordinate system, specifically including: in, A function representing the longitudinal trajectory in the Frenet coordinate system; A function representing the lateral trajectory in the Frenet coordinate system; This represents a continuous-time variable in the trajectory generation process, with a value range of [value range missing]. , to Represents the coefficients of the vertical fifth-order polynomial; to Represents the coefficients of a horizontal fifth-degree polynomial; The trajectory planning module uses the following specific expression to determine the longitudinal endpoint position: in, Indicates the vertical position of the endpoint of the trajectory; Indicates the vertical position of the starting point of the trajectory; This represents the longitudinal planning distance between the endpoint of the trajectory and the starting point.
[0011] As a preferred technical solution of the present invention, the underlying control module includes writing energy consumption, following efficiency, and comfort into a predictive control objective function, specifically: in, This represents the energy consumption cost item. To reduce the cost of following vehicle efficiency, For comfort-related costs, , Let represent the vehicle state and control input at the k-th prediction step, respectively, and u represent the control sequence to be found. To predict the length of the time domain, It expresses expectation.
[0012] The present invention also provides an autonomous driving method based on hierarchical reinforcement learning and model predictive control, which is based on the above-mentioned autonomous driving system based on hierarchical reinforcement learning and model predictive control for autonomous driving.
[0013] Compared with existing technologies, this invention provides an autonomous driving method and system based on hierarchical reinforcement learning and model predictive control, which has the following beneficial effects: 1. This invention utilizes inertial coasting guidance at the macro-level PPO decision layer and extreme optimization of instantaneous motor power at the underlying SE-MPC. Without altering the existing hardware of the three-electric system, this system effectively unlocks energy-saving potential and extends the vehicle's real-world driving range through pure software algorithms. Furthermore, the layered and decoupled architecture significantly reduces computational overhead in high-dimensional states, perfectly matching the computing power allocation characteristics of current vehicle domain controllers and meeting the high-frequency real-time control requirements of mass-produced vehicles. Through SAC parameter optimization and a fifth-order polynomial analytical generation mechanism, control oscillations in the end-to-end model are eliminated from the mathematical foundation, greatly improving vehicle ride comfort and contributing to enhanced user reputation and operational quality for mobility service providers.
[0014] 2. This invention addresses the uncertainty of traffic flow through opportunity constraints. The system can maximize the use of aerodynamic benefits and downhill potential energy during dynamic following, avoiding sudden braking and energy waste caused by conservative risk avoidance. This provides a significant cost reduction and efficiency improvement technical solution for autonomous driving of trunk logistics lines. Attached Figure Description
[0015] Figure 1 This is a schematic diagram illustrating the status information acquisition and system interaction of the present invention; Figure 2 This is a schematic diagram of the vehicle kinematics model of the present invention; Figure 3 This is a schematic diagram of the energy flow in the electric vehicle of the present invention; Figure 4 This is a schematic diagram illustrating the motor efficiency calculation of the present invention; Figure 5 This is a schematic diagram of the collaborative decision-making process of the present invention; Figure 6 This is a schematic diagram of trajectory optimization in this invention; Figure 7 This is a schematic diagram of the process of the present invention. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] Please see Figures 1-7 An autonomous driving system based on hierarchical reinforcement learning and model predictive control is proposed. The system includes a state acquisition module, a macro decision-making module, a safety verification module, a trajectory planning module, and a low-level control module.
[0018] The status acquisition module is used to acquire the vehicle's current operating status, road information, surrounding vehicle information, and energy consumption-related information, and organize this information into the status data required for subsequent decision-making and control. The vehicle's current operating status may include vehicle position, speed, acceleration, heading angle, and lane departure; road information may include lane number, lane width, road curvature, road speed limit, and target lane availability; surrounding vehicle information may include the relative distance, relative speed, and acceleration of vehicles in the current lane and adjacent lanes; energy consumption information includes battery state of charge, instantaneous motor power, and motor efficiency. The status acquisition module continuously acquires data related to vehicle operating status, road environment, surrounding traffic participants, and vehicle energy consumption. This data can come from onboard sensors, vehicle bus, high-precision maps, roadside equipment, or from simulation platforms or test benches. When using a simulation platform, the simulation environment is only used as an implementation method for model training, parameter debugging, and effect verification, and does not constitute a necessary condition for implementing the method of this invention. 1. Status data source: In real-world vehicle applications, state data can be provided by the vehicle positioning module, inertial measurement unit, wheel speed sensors, cameras, millimeter-wave radar, lidar, vehicle controller area network, and battery management system. In simulation or bench testing, similar data can also be read through the simulation interface at fixed control cycles and organized into a unified state vector. The state acquisition module is not limited to specific data sources; it only needs to obtain the vehicle, road, traffic, and energy consumption information required for subsequent decision-making, trajectory planning, and control. 2. State data type: The system acquires four main types of status data: vehicle motion status, which describes the vehicle's current pose and motion trend; road and navigation status, which provides information on lanes, curvature, speed limits, and target lanes; surrounding traffic status, which describes the relative motion relationships between vehicles in front and behind, as well as vehicles in adjacent lanes; and energy consumption status, which indicates the current battery, motor, and power changes of the vehicle. After coordinate unification and normalization, this data is provided to the macro-decision module, safety verification module, trajectory planning module, and low-level control module, respectively. 3. Status data processing and output: The final status information obtained by the module is summarized in Table 1: Table 1 Status Information and Uses After acquiring the state data, the system further processes it based on the vehicle motion state estimation model and the pure electric vehicle energy consumption calculation model. The vehicle motion state estimation results are used for short-term trajectory extrapolation, safe distance judgment, and instantaneous collision time calculation; the energy consumption calculation results are used for energy consumption evaluation in macro-level decision-making and power loss constraints in low-level control.
[0019] 1. Vehicle motion state estimation In one implementation, the system employs a kinematic bicycle model to describe the short-term motion of the vehicle on a flat road. This model uses the rear axle center as a reference point and, in conjunction with vehicle speed, heading angle, front wheel steering angle, and longitudinal acceleration, calculates the vehicle's position and attitude changes within a short future time window. Using the rear axle center as a reference point, the following kinematic relationship can be used to describe the changes in the vehicle's position and heading in a two-dimensional plane: In the formula: The coordinates of the rear axle center of the vehicle in the world coordinate system; The vehicle's heading angle; The longitudinal speed of the vehicle; The front wheel steering angle serves as the lateral control input for the system. This is the longitudinal acceleration, which serves as the longitudinal control input for the system. This refers to the vehicle's wheelbase. 2. Energy consumption calculation for pure electric vehicles: The energy consumption calculation module is used to estimate the vehicle's power demand and battery state changes under the current driving conditions. This module calculates the power at the wheels and the power at the battery based on information such as vehicle speed, acceleration, vehicle mass, road gradient, air resistance, rolling resistance, and motor efficiency. Calculation of wheel-end power: During vehicle operation, the main factor encountered is air resistance. Rolling resistance Acceleration resistance and slope resistance Impact. Based on longitudinal dynamics, the wheel-end mechanical power required to maintain vehicle motion at the current moment can be calculated. : In the formula, air density, This is the drag coefficient. For windward area, The rolling resistance coefficient, For the overall vehicle quality, Road slope; Conversion between motor efficiency and battery power: Obtaining the mechanical power at the wheel end. Then, the system calculates the motor speed and torque based on vehicle speed, final drive ratio, and transmission parameters, and converts the mechanical power into battery power by combining the motor efficiency. Motor efficiency can be obtained from a preset efficiency chart, a lookup table model, or a neural network model. The system calculates the power flow direction according to whether the vehicle is in driving or braking state: When the vehicle is in driving mode, the battery outputs electrical power to the motor. , can be represented as: When the vehicle is in regenerative braking mode, the motor recovers part of the braking energy, and the battery recovers power. It can be represented as: In the formula, the efficiency of the transmission system Used to describe drive link losses and motor efficiency Used to describe different speeds and torque The relationship between electrical energy and mechanical energy conversion; 3. SOC update and energy status output: The battery-side power can also be further evaluated by considering battery internal resistance losses and the power consumption of onboard auxiliary equipment. The system integrates the battery-side power according to the control cycle and updates the battery state of charge (SOC). In the formula, Indicates the battery state of charge for the next control cycle; Indicates the battery state of charge for the current control cycle; Indicates the current battery power; Indicates the duration of the system control cycle; This indicates the battery's available energy capacity.
[0020] By formulaically modeling the entire electric vehicle energy transmission system, the power consumption during vehicle driving can be roughly calculated. This factor can then be incorporated into the reward function at the decision-making and trajectory planning layers to optimize energy consumption. The motion state calculation results can be provided to the safety verification module and the underlying control module. The safety verification module uses the short-time trajectory extrapolation results to calculate the instantaneous collision time and safe distance. The underlying control module uses this model to constrain the vehicle's executable acceleration, steering angle, and trajectory tracking error.
[0021] The macro-decision module generates driving instructions based on the state data output by the state acquisition module. These instructions include lateral lane instructions and longitudinal target speeds. Lateral lane instructions can be left lane change, maintaining the current lane, or right lane change, while the longitudinal target speed represents the vehicle's desired speed under the current traffic conditions. To ensure that driving instructions simultaneously consider safety, traffic efficiency, and energy consumption, the macro-decision module can employ a proximal strategy optimization model that incorporates vehicle energy consumption status, or it can use other learning models or rule-based decision-making models capable of outputting lane-level instructions and target speeds. The macro decision-making module, as the decision-making layer, is mainly used to output the vehicle's lane-changing behavior and reference speed. The vehicle uses the environmental state extracted by the state extraction module as the state space to output a lane-changing strategy and speed that comprehensively considers vehicle safety, comfort and energy saving. The state space primarily includes information on the vehicle's state, surrounding vehicles' states, road conditions, and energy consumption. The vehicle's state includes its position, speed, longitudinal acceleration, heading angle, and lane departure. Energy consumption information may include the battery's state of charge (SOC) and instantaneous motor power. and motor efficiency Surrounding vehicle status describes the relative distance, relative speed, and acceleration between the vehicle and key vehicles in the current and adjacent lanes. Road status may include the current lane number, road curvature, speed limit, and target lane availability. State-space information is represented as a state vector. In the form of a low-dimensional feature vector containing the vehicle's dynamic characteristics: Among them, the kinematic state of the vehicle It not only includes the kinematic state, but also shows the introduced real-time motor efficiency. and instantaneous power ; Traffic conditions A matrix containing information such as the relative positions and relative speeds of the five surrounding key vehicles; : Indicates the current lane number, road curvature, speed limit, and target lane availability; Road environment conditions This mainly includes the current lane ID, road curvature, and speed limit information; The output action of the driving decision-making level is This action includes lateral discrete actions. and longitudinal continuous motion Lateral discrete actions can take three commands: left lane change, maintaining the current lane, and right lane change; longitudinal continuous actions can be mapped to target speed. Therefore, the action can be represented as: This action definition preserves the interpretability of lane-level decisions and avoids the control jitter that may be caused when the learning model directly outputs the underlying control quantity. Policy network architecture: The policy network employs a shared feature encoding layer and a dual-output branch structure. The shared feature encoding layer extracts features from the input state, encoding the vehicle motion state, road state, surrounding vehicle state, and energy consumption state into a unified state feature representation. Building upon the shared features, the network further sets up two output branches: the first branch is the lane decision branch, which outputs the probability distributions for three lane change actions: left lane change, maintaining the current lane, and right lane change; the second branch is the speed decision branch, which outputs the continuous probability distribution parameters corresponding to the target speed.
[0022] The lane decision branch outputs the probability of each lane action through the softmax function. The speed decision branch outputs the mean and standard deviation of a continuous speed distribution and samples the target speed action based on this continuous distribution. Since lane-level actions are discrete actions and target speed actions are continuous actions, they differ in action type. To facilitate policy training and probability calculation, this invention models lateral lane actions and longitudinal target speed actions in a conditionally independent manner under given state conditions. The joint logarithmic probability of the mixed actions can be expressed as: in, The parameter is The policy network in state Down-output hybrid motion The probability of; This represents a mixed action output by the macro-decision module; Indicates the vehicle's time The obtained status information; This indicates lateral lane actions, with values including left lane change, keeping the current lane, and right lane change; This represents the target velocity output by the velocity decision branch; This indicates that the lane decision branch outputs lane actions. The probability of; The output of the velocity decision branch represents the target velocity. The probability density. This formula indicates that the probability of a mixed action can be determined jointly by the lane action probability and the target speed probability; To ensure stable updates of driving strategies under complex traffic environments and energy constraints, this invention employs a proximal policy optimization method to train the policy network. This method limits the magnitude of change between the new and old policies, preventing instability or degradation of the policy during training due to excessively large updates.
[0023] During training, the system utilizes value networks. The current state is evaluated, and based on the reward obtained by the vehicle after performing the action, it is determined whether the action is better than the current average strategy. If a lane action and speed action can bring higher safety, better traffic efficiency, or lower energy consumption, the training process will increase the probability of that action combination being selected in similar states; if an action leads to safety risks, increased energy consumption, or vehicle instability, the output probability of that action combination in subsequent decisions will be reduced.
[0024] in, The parameter is Value network for state Value estimation; Indicates time Vehicle status; This represents the parameters of the value network. This value network is used to help determine the merits of the current action relative to the average policy, thereby improving the stability of policy training.
[0025] When updating the strategy, the system also introduces policy entropy constraints, enabling the policy network to retain a certain exploratory ability in the early stages of training and preventing it from prematurely fixing into a single driving mode. For example, when there is safe space to change lanes, the vehicle can explore lane-changing and overtaking strategies; when the vehicle ahead is close or energy consumption is high, the vehicle can learn to maintain its lane, decelerate and follow, or coast. In this way, the policy network can form a relatively stable collaborative decision-making ability between safety, efficiency, and energy consumption. Multi-objective reward function design: When using proximal policy optimization reinforcement learning methods to train the decision-making layer model, the reward function is often used as a supervision signal to evaluate the quality of the policy. To enable vehicles to learn safe, comfortable, and energy-efficient decision-making behaviors, this study designs a composite multi-objective total reward function. Taking into account various constraints related to vehicle decision-making, the total reward function... The formula is constructed as follows: 1. Security Rewards : Safety rewards are mainly divided into two categories: termination penalties and intent-to-intercept penalties. The former is used to punish behaviors such as vehicle collisions, driving off the road, prolonged stops due to traffic jams, or severe speeding. The latter is used to punish high-risk strategies output by the vehicle. When the action output by the PPO is determined to be high-risk (e.g., TTC < 2.5s) by the real-time safety shield and is intercepted, although the round does not end, strong negative feedback is given. This forces the policy network to quickly correct the danger probability distribution.
[0026] 2. Geometric topology and intentional reward ( ) The geometric topology reward is primarily used to encourage vehicles to stay as close to the centerline of the target lane as possible during lane keeping or lane changing, and to reduce unnecessary vehicle sway. The system calculates this reward based on the lateral distance between the vehicle and the target lane centerline, the heading angle deviation, and the frequency of lane changes.
[0027] Lane keeping reward is represented as: In the formula, Indicates lane-keeping reward; Indicates the lane-keeping reward weight; Indicates the attenuation coefficient for lateral offset; This indicates the lateral distance between the vehicle's current position and the center line of the target lane. The closer the vehicle is to the center line of the target lane, the higher the reward.
[0028] The heading alignment bonus is represented as: In the formula, Indicates a course alignment reward; This indicates the angular deviation between the vehicle's current heading and the direction of the target lane; This indicates the permissible heading deviation reference threshold. This item is used to reduce unnecessary swaying of the vehicle during operation.
[0029] For unnecessary lane-changing maneuvers, the system sets a fixed action cost. When a vehicle performs a left or right lane change maneuver, A cost of -0.5 is acceptable; when the vehicle stays in the current lane, the cost can be 0. The geometric topology and intent reward can be represented as: In the formula, Representing geometric topology and intentional reward; Indicates lane-keeping reward; Indicates a course alignment reward; This indicates the cost of changing lanes. This incentive guides vehicles to maintain proper lane positioning and reduces unnecessary and frequent lane changes.
[0030] 3. Driving efficiency bonus ( ): Driving efficiency rewards are used to constrain vehicle speed, ensuring the vehicle approaches the target cruising speed as safely as possible, avoiding prolonged low-speed driving or excessive conservatism. Speed tracking rewards are represented as follows: In the formula, Indicates speed tracking reward; Indicates the vehicle's current speed; Indicates the target cruising speed; This represents the tolerance level for speed deviation. The closer the vehicle's current speed is to the target cruise speed, the higher the reward. When the vehicle speed is significantly lower than the target cruise speed and there are no obvious obstacles ahead, the system applies a low-speed slack penalty. For example, when When it is safe ahead, you can set This is used to prevent vehicles from driving at low speeds without reason. Driving efficiency rewards can be represented as: In the formula, This indicates a reward for driving efficiency. Indicates the speed tracking reward weight; Indicates speed tracking reward; This indicates a low-speed congestion penalty; the reward is intended to improve vehicle traffic efficiency while ensuring safety.
[0031] 4. Comfort Rewards : To improve ride comfort, a penalty lateral acceleration mutation (jerk) is applied. in and These represent the vehicle's lateral acceleration and longitudinal acceleration, respectively. , , These represent the weighting coefficients for the vehicle's longitudinal acceleration, lateral acceleration, and comfort reward at the previous moment, respectively. , These represent the penalty for acceleration change at time t and the preset maximum acceleration change reference value, respectively. 5. Energy-efficient synergistic rewards for physical information enhancement : To address the lack of physical interpretability in traditional energy consumption rewards, this study constructs energy consumption rewards based on the Hamiltonian function in optimal control theory.
[0032] Calculate the instantaneous power demand of the motor based on the vehicle's longitudinal dynamics model. : For the vehicle's power conversion efficiency, Indicates speed, , , Representing air resistance, tire rolling resistance, and gradient resistance respectively, and then using this physical quantity The mapping is represented by a reward function, which includes driving energy consumption penalties and regenerative braking rewards: In the formula, The energy consumption reward item, representing the enhancement of physical information, is used to evaluate the energy efficiency of the current driving behavior; This represents the drive energy consumption penalty weight, used to control the penalty intensity under high-power drive conditions; This indicates the regenerative braking reward weight, used to control the reward intensity under energy recovery conditions; This represents a linear rectified function, which retains only the positive values within the parentheses. This indicates the instantaneous power demand of the vehicle's motor at the current moment; This represents the maximum reference power used for normalization, to avoid different power levels affecting the reward scale; The battery charging efficiency coefficient, typically ranging from 000 to 111, indicates the proportion of regenerative braking energy that can be effectively recovered by the battery.
[0033] 6. Survival Rewards It can be represented as: This invention employs a proximal policy optimization method for model training and inference at this layer. Lane selection is a discrete decision, while target speed is a continuous decision; both occur simultaneously in actual driving. Jointly generating these two types of actions under the same state input can reduce the problem of inconsistency between lane intention and speed target, and also facilitates the subsequent safety verification module's inspection of driving commands.
[0034] A safety verification module is positioned between the macro-decision module and the trajectory planning module to perform safety checks on lane change instructions output by the macro-decision module. This module determines whether the lane change instruction meets safety requirements based on the relative positions and speeds of surrounding vehicles in the current and target lanes, as well as preset safety distance conditions. For lane change instructions that do not meet safety conditions, the safety verification module does not directly send them to the trajectory planning module; instead, it replaces them with instructions to maintain the current lane, decelerate, or other preset safety instructions. This reduces the likelihood of dangerous driving intentions being incorporated into subsequent trajectory planning and vehicle control processes. To address the stochastic risks inherent in the exploration phase of learning-based decision-making models and the inherent lack of interpretability in neural networks, this study embeds a deterministic real-time safety verification module between the driving decision-making layer and the parametric planning layer. This module, designed based on the concept of forward invariant sets in control theory, acts as a "safety firewall" for the system, ensuring that instructions issued to the execution layer always remain within a physically feasible safety envelope. This safety shield can directly convert dangerous lane-changing decisions from the upper layer into safe lane-keeping decisions, while simultaneously imposing significant safety penalties.
[0035] The safety verification module primarily assesses longitudinal collision risk and lane change feasibility based on the following principles: (1) Longitudinal Collision Risk Assessment (TTCMetric): Using the instantaneous collision time as the core indicator, TTC is calculated separately for vehicles in front and behind in the current lane and the target lane. in, Indicates the surrounding first a car, and They are respectively the surrounding number The longitudinal position and speed of the vehicle Indicates the relationship with the first The system sets a safety threshold for the instantaneous collision time of a vehicle. (e.g., 2.5s). If any vehicle satisfies... If so, it is determined that there is a significant risk of collision. , This indicates the longitudinal position and longitudinal speed of the vehicle.
[0036] (2) Lane change feasibility safety check (RSSCheck): For lane change instructions, a simplified rule of the responsibility sensitive safety model (RSS) is introduced to check whether there is a sufficient safe gap in the target lane. The necessary and sufficient condition for lane change is that the braking distance of the vehicle behind in the target lane is not enough to cause a rear-end collision.
[0037] in, For reaction time, , , , These represent the maximum braking deceleration that the vehicle can achieve, the braking deceleration amplitude that vehicles behind in the target lane can apply, the vehicle's speed, and the speed of the vehicles behind, respectively. Indicates a safe distance. This indicates the minimum distance to the vehicle in front.
[0038] Shielding mechanism: If the safety check is passed, the planning layer directly receives the instructions from the upper layer; if the target lane TTC does not meet the standard or the safety gap is insufficient, the shield will cover the lane instructions and force the current lane to be maintained, but retain the speed instructions to maintain following efficiency.
[0039] The trajectory planning module receives driving instructions that have undergone safety verification and generates a reference trajectory based on the vehicle's current state. This module does not directly output throttle, braking, or steering control values; instead, it first determines trajectory morphology parameters such as planning duration and longitudinal planning distance, and then generates a sequence of trajectory points based on the vehicle's current and target states. In one implementation, the trajectory planning module employs a flexible strategy—a value network—to select trajectory morphology parameters and generates a reference trajectory using a fifth-order polynomial in the Frenet coordinate system, ensuring continuous variation in position, velocity, and acceleration. The trajectory planning module, acting as the trajectory parameter layer, transforms macroscopic driving commands, after safety verification, into executable reference trajectories. Unlike directly outputting throttle, braking, or steering control values, this invention only outputs trajectory morphology parameters at the trajectory planning layer, then uses a fifth-order polynomial to generate a smooth trajectory. This not only avoids motion jitter caused by end-to-end control but also facilitates the checking of the trajectory's safety, smoothness, and executability. The input states of the trajectory planning layer mainly include three types of information: environmental perception information, upper-level decision conditions, and the vehicle and local traffic conditions.
[0040] Environmental perception information is used to describe information such as road geometry, lane lines, road boundaries, and drivable areas. In one implementation, the system can input semantic segmentation images obtained from a front-facing camera into a pre-trained encoding network to extract low-dimensional semantic features.
[0041] The upper-level decision conditions represent the driving instructions output by the macro-decision layer, including the target lane and target speed. After being embedded, these instructions are input into the trajectory planning layer, enabling it to generate corresponding trajectories based on different intentions such as "change lanes to the left, maintain the current lane, or change lanes to the right".
[0042] The vehicle and local traffic conditions describe the vehicle's position, speed, acceleration, and the relative position and speed of vehicles in front and behind in the target lane, all within the Frenet coordinate system. This information is used to determine lane change windows, the endpoint of the planned trajectory, and the feasible space for lane changes.
[0043] The overall state of the trajectory planning layer can be represented as: In the formula, Indicates time Input the overall state of the trajectory planning layer; This represents the semantic features extracted from environmental perception information; The conditional characteristics representing the upper-level macro-level driving instructions; A structured vector representing the vehicle's motion state and the local traffic state; Indicates feature concatenation operation; Parametric motion space design: The trajectory planning layer does not directly output complete trajectory points, nor does it output vehicle control variables. This layer primarily outputs continuous parameters used to determine the trajectory shape. This parameterized action can be represented as: In the formula, Indicates time Parameterized actions; This indicates the trajectory planning time, which is the time required for a vehicle to complete a lane change or trajectory adjustment. This represents the longitudinal planning distance between the endpoint of the trajectory and the starting point.
[0044] in, It mainly affects the speed of trajectory change. When the planning time is longer, the trajectory curvature changes more slowly, the vehicle's lateral acceleration and jerk are smaller, and the ride comfort is better; when the planning time is shorter, the vehicle responds faster, but may bring larger changes in lateral motion. It primarily affects the longitudinal propulsion of a vehicle during lane changes or trajectory adjustments, distinguishing between different trajectory modes such as acceleration for overtaking, constant speed lane changes, or deceleration for yielding. Therefore, the task of the trajectory planning layer is to select appropriate parameters in the continuous parameter space. and This ensures that the generated trajectory simultaneously meets the requirements of safety, comfort, and traffic efficiency. Trajectory parameter optimization based on SAC: In one implementation, the trajectory planning layer uses the SAC algorithm to optimize trajectory parameters. A key feature of SAC is the introduction of policy entropy on top of reward maximization, enabling the model to maintain a certain level of exploratory ability during training and preventing premature convergence to a single trajectory pattern. For complex traffic scenarios, this mechanism helps the planner learn different trajectory selection methods, such as smooth lane keeping, accelerated lane changing, and decelerated lane changing to avoid collisions.
[0045] The reward function of the trajectory planning layer can be simplified as follows: In the formula, Indicates time Total reward for trajectory planning; This indicates the task completion reward, used to evaluate whether the trajectory endpoint has reached the target lane or target area specified by the upper-level decision. This represents a reward for trajectory smoothness, and is used to penalize trajectories with excessive acceleration or deceleration. This represents an efficiency bonus, used to avoid excessive planning time or insufficient vehicle progress. This represents a physical constraint reward, used to penalize trajectories that exceed vehicle speed, acceleration, curvature, or road boundary limits.
[0046] During training, if the generated trajectory successfully reaches the vicinity of the target lane center, and the trajectory changes smoothly, the planning time is reasonable, and it does not exceed the vehicle's physical limitations, the system provides a high reward; if the generated trajectory has excessive acceleration, abrupt lateral changes, risk of crossing boundaries, or risk of collision, the system provides a negative reward. In this way, the SAC network can gradually learn to select appropriate trajectory morphology parameters under different traffic environments. SAC output and Trajectory morphology parameters alone cannot be directly used as the vehicle's execution trajectory. Therefore, the system needs to convert these parameters into a specific sequence of trajectory points. This invention uses a fifth-order polynomial in the Frenet coordinate system to generate the reference trajectory. The longitudinal and lateral trajectories can be represented as follows: In the formula, A function representing the longitudinal trajectory in the Frenet coordinate system; A function representing the lateral trajectory in the Frenet coordinate system; This represents a continuous-time variable in the trajectory generation process, with a value range of [value range missing]. ; to Represents the coefficients of the vertical fifth-order polynomial; to Represents the coefficients of a horizontal fifth-degree polynomial; Indicates the duration of trajectory planning.
[0047] The trajectory starting point is determined by the vehicle's current state, including its current position, speed, and acceleration; the trajectory ending point is determined by upper-level decision commands and trajectory planning parameters. Specifically, the longitudinal endpoint position can be determined by the current longitudinal position and the longitudinal planned distance. In the formula, Indicates the vertical position of the endpoint of the trajectory; Indicates the vertical position of the starting point of the trajectory; This represents the longitudinal planning distance output by the trajectory planning layer.
[0048] The lateral endpoint position is determined by the target lane. When the upper-level instruction is to maintain the current lane, the lateral endpoint is located near the center line of the current lane; when the upper-level instruction is to change lanes to the left or right, the lateral endpoint is located near the center line of the target lane. The endpoint speed can be determined in conjunction with the target speed output by the upper-level instruction. The endpoint acceleration is usually set to a small value or zero to ensure that the vehicle is in a stable state at the end of the trajectory.
[0049] Based on the position, velocity, and acceleration boundary conditions of the starting and ending points, the coefficients of a fifth-order polynomial can be solved to obtain a complete reference trajectory. The fifth-order polynomial ensures continuous variation of the trajectory in terms of position, velocity, and acceleration, resulting in a trajectory with good smoothness and interpretability.
[0050] The underlying control module executes the reference trajectory output by the trajectory planning module and calculates the actual control input based on the vehicle's dynamic state. For following, cruise, or trajectory tracking scenarios, the underlying control module can employ a stochastic ecological model predictive control method, treating the changes in the preceding vehicle's motion as a random disturbance. Under constraints of safe distance, acceleration, jerk, and vehicle execution capability, it comprehensively calculates speed tracking error, control smoothness, and vehicle energy consumption to obtain the vehicle's control output at the current moment. When the upper-level driving decision layer outputs the "keep current lane" command, and the vehicle does not need to execute a lane-changing trajectory, the system enters cruise or following control mode. At this time, the lower-level control module no longer focuses on lane switching issues, but instead calculates the acceleration or jerk control amount that the vehicle should take within the current control cycle based on the status of the vehicle in front, road speed limits, vehicle energy consumption status, and safe distance requirements.
[0051] In this scenario, the vehicle must follow the vehicle in front or travel at a reference speed while avoiding frequent rapid acceleration and deceleration. For pure electric vehicles, such longitudinal movements directly affect motor power, battery discharge, and regenerative braking effectiveness. This invention introduces a stochastic ecological model predictive control method into the underlying control module. This method calculates the control quantity over a finite prediction time domain, incorporating changes in the motion of the vehicle in front, safe distance, speed error, acceleration changes, and instantaneous power loss into the control objective, enabling the vehicle to achieve smoother following and cruise control within the allowable safe distance range.
[0052] By rationally allocating the functions of each module, this invention separates the processing of driving intention generation, hazard command verification, smooth trajectory generation, and energy-saving control. The macro-decision module is responsible for determining the vehicle's driving direction and speed target, the safety verification module is responsible for filtering driving commands that do not meet safety conditions, the trajectory planning module is responsible for converting driving commands into executable reference trajectories, and the low-level control module is responsible for converting reference trajectories into vehicle control variables. This structure facilitates the individual design of the inputs, outputs, and constraints of each layer, and also helps to balance vehicle energy consumption and passenger comfort within a safe and feasible range. 1. Longitudinal dynamics modeling and handling of uncertainties in the motion of the preceding vehicle: During cruise or following, the underlying control module needs to predict the vehicle's subsequent state based on the current distance to the vehicle, its own speed, relative speed, and its own acceleration. The system can select the appropriate distance between vehicles. Bicycle speed Relative velocity And vehicle acceleration As state variables, they constitute the following state vector. : To reduce sudden acceleration changes, the control input can be selected as the vehicle's acceleration jerk. ,Right now: In one implementation, the discrete state equation of the system can be written as: Where k represents the kth control cycle, and The state transition matrix and control input matrix are determined by the longitudinal motion relationship of the vehicle. The perturbation input matrix, This indicates an external disturbance caused by a change in the acceleration of the vehicle in front.
[0053] In real-world driving, the vehicle in front does not maintain a constant speed or acceleration; that is: in, This represents the predicted mean acceleration of the vehicle in front. This indicates the uncertainty in the prediction. This uncertainty can be set based on historical observation errors, changes in the speed of the vehicle ahead, or road traffic density. Through this approach, the underlying control module can reserve a safety margin for changes in the motion of the vehicle ahead when calculating control variables, rather than relying entirely on the assumption that the vehicle ahead will maintain its current state of motion. The control objective of the underlying control module is not merely to bring the vehicle speed close to the reference speed as quickly as possible. For electric vehicles, frequent increases in power output or frequent braking will increase energy loss and affect the riding experience. This invention incorporates energy consumption, following efficiency, and comfort into the predictive control objective function.
[0054] In one implementation, the predictive control objective function can be expressed as: In the formula, u represents the control sequence to be found. To predict the length of the time domain, Energy consumption cost item To reduce the cost of following vehicle efficiency, For comfort-related costs, , These represent the vehicle state and control input at the k-th prediction step, respectively. It expresses expectation.
[0055] Energy consumption cost item This is primarily used to evaluate the vehicle's power loss within the current prediction step. The system calculates instantaneous power based on vehicle speed, acceleration, air resistance, rolling resistance, gradient resistance, motor efficiency, and transmission efficiency, and incorporates this power as part of control optimization. Its purpose is to reduce unnecessary high-power drives and preserve coasting and regenerative braking space when safe conditions permit.
[0056] Following vehicle efficiency cost item This is primarily used to constrain vehicle speed and following distance. Vehicles cannot maintain a low speed for extended periods to reduce energy consumption, nor can they reduce safe following distance to pursue higher speeds. This parameter can be constructed based on the difference between the vehicle's speed and the reference speed, and the difference between the actual following distance and the desired following distance. For example: in, and These are the weighting coefficients. For reference speed, The desired safe distance.
[0057] Comfort cost This is mainly used to limit the magnitude of acceleration changes. Since the control input is selected as jerk, the system can directly penalize the square of the control input. in, This factor is weighted towards comfort. It helps reduce the feeling of sudden acceleration, deceleration, and jerking during following and cruising. Safety distance constraints and rolling solution: In predictive control, the system also needs to constrain the safe distance between the vehicle and the vehicle in front. The safe distance can be determined based on the current speed, reaction time, and braking capacity. When considering the uncertainty of the vehicle in front's motion, the safe distance constraint can be set as a probabilistic constraint. For example: In the formula, To define the permissible risk probability, this constraint states that, within the prediction time domain, the distance between the vehicle and the vehicle in front should be no less than ( The confidence level of ) meets the safety requirements. , This represents the actual longitudinal distance and minimum safe distance between the vehicle and the vehicle in front at the k-th prediction step within the prediction time domain. These represent the probabilities that the predicted distance between vehicles is not less than the safe distance between vehicles.
[0058] The controller will solve an optimization problem once in each control cycle to obtain control signals for the next few steps based on the trajectory of the planning layer. After the vehicle executes the first control signal, the system will reacquire the vehicle's state and the state information of the vehicle in front, and recalculate for the next round. Through this real-time calculation, the vehicle can update the control quantity according to changes in the surrounding environment and its own conditions. This invention includes the following steps: Step S1: Obtain the status information of the vehicle and the environment. After the system starts, the status acquisition module reads information such as the vehicle's current status, road conditions, responses from surrounding vehicles, and vehicle energy consumption to determine the vehicle's speed (mph), road position, longitudinal acceleration, and direction. Other energy-related values include battery state of charge (SOC) and instantaneous motor power. and motor efficiency The vehicle, battery management system (BMS), motor controller, and positioning module all provide information to the system. This information can also be read from the simulation interface or test bench environment. In addition to the vehicle's own information, the system also collects vehicle information from the surrounding area and roads. The collected traffic information includes the distance between the vehicle and other vehicles, the speed of other vehicles, and the acceleration experienced by the vehicle when it is in the same or adjacent lane. Various road attributes, including curvature, speed limits, number of lanes, and accessibility, are all components of the road information. The road information will undergo processes such as coordinate unification, filtering, and normalization to ultimately become a state vector for subsequent decision-making and control. Step S2: Generate macro driving instructions The state vector is fed into a pre-trained dual-head PPO driving decision network. This network generates macro-level driving instructions based on the current traffic conditions, road conditions, and vehicle energy consumption status. The macro-level driving instructions consist of two parts: lane-level instructions (which can be for the left lane, the current lane, or the right lane) and a longitudinal reference target speed for subsequent trajectory planning and low-level control. This approach allows the vehicle to generate lateral intentions and longitudinal speed targets in the same state, minimizing the disconnect between lane control and speed control. Safety, lane keeping, traffic efficiency, comfort, and energy consumption are evaluated during the training phase and incorporated into the reward function accordingly. The energy consumption evaluation item, similar to other metrics, is calculated based on a combination of variables such as vehicle instantaneous power output, regenerative braking, and battery efficiency. This allows the model to consider energy consumption when analyzing driving behavior, rather than just focusing on speed or lane changes. Step S3: Verify the safety of driving instructions After the driving layer provides driving route instructions, the system does not directly send these instructions to the trajectory planning layer for execution. Instead, it first verifies them in the safety verification module. The system immediately calculates the time-to-collision (TTC) between the target vehicle and adjacent vehicles in the current lane and the target lane. If the TTC is lower than a safety threshold (e.g., 2.5 seconds), the instruction poses a collision risk. For lane change instructions, the system checks the position, speed, and safe distance of the vehicles in front and behind in the target lane to confirm whether there is sufficient space for the target vehicle to enter. If the safety check is successful, the system retains the initial lane change instruction. If the safety check fails, the system replaces the lane change instruction with a lane-keeping instruction, a deceleration instruction, or other preset instructions. The target speed can be stored or adjusted based on the distance to the vehicle in front, the road speed limit, and the current vehicle speed. Intercepted dangerous instructions can be used to provide negative feedback during the model's training phase to reduce the likelihood of the model issuing similar instructions in the future. Step S4: Generating a smooth trajectory After the safety check, driving commands are fed into the trajectory planning layer. The trajectory planning layer does not directly output throttle, brake, and steering control values; instead, it first determines the trajectory morphology parameters and then generates a reference trajectory. In one implementation, the trajectory planning layer uses a trained flexible policy value network to output trajectory planning parameters, such as the planning duration (…). ) and longitudinal planning distance ( These parameters are determined by the current vehicle state, the driving instructions from the upper lane, the target lane information, and adjacent traffic conditions. Then, based on the current vehicle state, and starting with the target lane and trajectory planning parameters, the endpoint boundary conditions in the Frenet coordinate system are determined. Afterward, the system calculates the coefficients of a fifth-order polynomial. When a reference trajectory is formed, the result will be the set of points constituting the continuous trajectory. Step S5: Calculate and execute the underlying control variables The underlying control module receives the reference trajectory, the current vehicle status, and the energy consumption calculation results, and calculates the control quantities that the vehicle needs to execute in the current cycle. If the previous step did not trigger the generation of a lane change trajectory, the underlying control module performs cruise control based on the lane-keeping instruction, the target speed, and the current following status.
[0059] In the control calculations, the system treats the change in the acceleration of the vehicle in front as an uncertainty factor, which can be modeled as a Gaussian stochastic process. Simultaneously, an ecological power loss cost function is constructed, incorporating instantaneous power loss, speed tracking error, and comfort constraints into the same optimization problem. The safe distance can be limited through chance constraints or a preset safety margin.
[0060] The system solves the SOCP optimization problem with chance constraints online, obtains the control sequence in the prediction time domain, and executes the optimal Jerk instruction corresponding to the current time step. This instruction is sent to the vehicle controller for further conversion into vehicle acceleration, braking, or drive control.
[0061] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. An autonomous driving system based on hierarchical reinforcement learning and model predictive control, characterized in that: It includes a status acquisition module, a macro decision-making module, a security verification module, a trajectory planning module, and a low-level control module; The status acquisition module is used to acquire status data, including the vehicle's current operating status, road information, surrounding vehicle information, and energy consumption information, and send it to the macro decision-making module. The macro decision-making module uses the state data output by the state acquisition module as the state space and generates driving instructions, which include lateral lane instructions and longitudinal target speeds. The safety verification module is used to perform safety checks on the lateral lane instructions output by the macro decision-making module. If the safety conditions are not met, the lateral lane instructions are replaced with preset safety instructions and the system does not enter the trajectory planning module. If the conditions are met, the system enters the trajectory planning module. The trajectory planning module receives driving instructions that have passed safety verification and generates a reference trajectory based on the vehicle's current operating status. The underlying control module calculates the actual control quantity based on the reference trajectory output by the trajectory planning module.
2. The autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 1, characterized in that: The current operating status of the vehicle may include vehicle position, speed, acceleration, heading angle, and lane departure. The road information may include lane number, lane width, road curvature, road speed limit, and target lane availability; The surrounding vehicle information may include the relative distance, relative speed, and acceleration of the vehicles in front and behind in the current lane and adjacent lanes; The energy consumption information includes battery state of charge, instantaneous motor power, and motor efficiency.
3. The autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 1, characterized in that: The macro-decision module is used to represent state data as state vectors, which serve as input to the policy network, and output actions. , including lateral discrete actions and target speed .
4. An autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 3, characterized in that: The policy network includes a lane decision branch and a speed decision branch. The lane decision branch outputs the probability of each lane action using a softmax function, and the speed decision branch outputs the mean and standard deviation of a continuous speed distribution. The policy network is used to output parameters... The policy network in state Down-output hybrid motion probability : in This represents a mixed action output by the macro-decision module; Indicates the vehicle's time The obtained status information; Indicates a movement in the lateral lane. This represents the target velocity output by the velocity decision branch; This indicates that the lane decision branch outputs lane actions. The probability of; The output of the velocity decision branch represents the target velocity. The probability density, It represents a logarithm.
5. An autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 4, characterized in that: The multi-objective reward function set during training of the policy network is as follows: in, Indicates a security reward. Representing geometric topology and intentional reward, This indicates a reward for driving efficiency. Indicates a comfort reward. This represents the energy-efficient collaborative reward for physical information enhancement. This indicates a survival reward.
6. An autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 5, characterized in that: The safety verification module includes longitudinal collision risk assessment and lane change feasibility safety check when verifying lateral lane instructions. The longitudinal collision risk assessment includes calculating the longitudinal collision risk assessment expression between the current vehicle and the i-th surrounding vehicle, which is as follows: in, Indicates the surrounding first a car, and They are respectively the surrounding number The longitudinal position and speed of the vehicle Indicates the relationship with the first The instantaneous collision time of a vehicle , Let represent the longitudinal position and longitudinal velocity of the vehicle, if there exists any vehicle that satisfies ... If so, it is determined that there is a risk of collision. This indicates that a safety threshold has been set. The specific procedures for the lane change feasibility safety check are as follows: in, For reaction time, This indicates the maximum braking deceleration that the vehicle can achieve. This indicates the braking deceleration magnitude applied to vehicles behind in the target lane. Indicates the vehicle's speed. Indicates the speed of the vehicle behind. Indicates a safe distance. This indicates the minimum distance.
7. An autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 1, characterized in that: The trajectory planning module uses the SAC algorithm to optimize the trajectory parameters and outputs the time. Parameterized actions , Indicates the trajectory planning time. This represents the longitudinal planning distance of the trajectory endpoint relative to the starting point, based on time. Parameterized actions The reference trajectory is generated using a fifth-order polynomial in the Frenet coordinate system, specifically including: in, A function representing the longitudinal trajectory in the Frenet coordinate system; A function representing the lateral trajectory in the Frenet coordinate system; This represents a continuous-time variable in the trajectory generation process, with a value range of [value range missing]. , to Represents the coefficients of the vertical fifth-order polynomial; to Represents the coefficients of a horizontal fifth-degree polynomial; The trajectory planning module uses the following specific expression to determine the longitudinal endpoint position: in, Indicates the vertical position of the endpoint of the trajectory; Indicates the vertical position of the starting point of the trajectory; This represents the longitudinal planning distance between the endpoint of the trajectory and the starting point.
8. An autonomous driving system based on hierarchical reinforcement learning and model predictive control according to claim 1, characterized in that: The underlying control module includes incorporating energy consumption, following efficiency, and comfort into a predictive control objective function, specifically: in, This represents the energy consumption cost item. To reduce the cost of following vehicle efficiency, For comfort-related costs, , Let represent the vehicle state and control input at the k-th prediction step, respectively, and u represent the control sequence to be found. To predict the length of the time domain, It expresses expectation.
9. An autonomous driving method based on hierarchical reinforcement learning and model predictive control, characterized in that: Autonomous driving is performed based on an autonomous driving system based on hierarchical reinforcement learning and model predictive control as described in any one of claims 1-8.
