Automatic driving vehicle longitudinal decision-making method based on model reinforcement learning
Through the longitudinal decision-making method of autonomous vehicles based on model reinforcement learning, combined with vehicle longitudinal and vertical dynamics models, the energy consumption and comfort of the vehicle are optimized, the problem of speed planning of electric vehicles in complex environments is solved, and efficient and safe are achieved. and comfortable driving experience.
Patent Information
- Application Number
- CN202410753949.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Traditional electric vehicle speed planning methods are difficult to achieve optimal performance in complex traffic environments, and uneven road surfaces lead to reduced driving comfort and high energy consumption, making it difficult to balance energy saving, comfort and safety.
A longitudinal decision-making method for autonomous vehicles based on model-based reinforcement learning is adopted. By establishing a vehicle longitudinal dynamics model and a full-vehicle vertical dynamics model, combined with inter-vehicle communication technology, the vehicle in front is obtained, and greedy actions and Q-learning algorithms are used to optimize the vehicle. Energy consumption and comfort, determine intelligent speed planning strategies.
It achieves a balance between energy saving and comfort while ensuring safety, reducing vehicle energy consumption, improving ride comfort, improving the overall travel experience, and promoting sustainable transportation development.
Smart Images

Figure CN118770280A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous driving decision planning, and in particular to a longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning. Background Art
[0002] As one of the sustainable transportation solutions, electric vehicles (EVs) have attracted widespread attention from countries around the world. With the continuous advancement of battery technology and the gradual reduction of costs, the market acceptance and penetration of electric vehicles are gradually increasing. However, the widespread promotion of electric vehicles still faces many challenges in terms of driving range, energy efficiency and driving experience. Among them, how to achieve energy-saving, efficient, comfortable and safe driving through intelligent speed planning is a key issue that needs to be solved in the development of electric vehicle technology.
[0003] Traditional speed planning methods often rely on pre-set rules or simple feedback control strategies, which may not achieve optimal performance when faced with complex traffic environments and changing driving conditions. In recent years, with the rapid development of artificial intelligence technology, reinforcement learning, as an advanced machine learning paradigm, has shown great potential in dealing with sequential decision-making problems. Reinforcement learning has achieved remarkable results in many fields by allowing agents to interact with the environment, explore and optimize behavioral strategies autonomously. Applying reinforcement learning to speed planning for electric vehicles is expected to achieve more intelligent and personalized driving decisions, improve the energy efficiency of electric vehicles, and ensure passenger comfort and driving safety.
[0004] In addition, the driving comfort and safety of electric vehicles are crucial to improving user experience and promoting electric vehicles. A comfortable driving experience can reduce passenger fatigue and improve passenger satisfaction, while high safety is the basic prerequisite for ensuring passenger trust and acceptance of electric vehicles. Speed planning based on reinforcement learning not only needs to consider how to save energy and use energy efficiently, but also needs to comprehensively consider passenger comfort and driving safety. By learning and adapting to complex traffic environments, reinforcement learning can provide electric vehicles with a more flexible and adaptable speed planning strategy, thereby achieving the dual goals of comfort and energy saving while ensuring safety.
[0005] Therefore, studying the electric vehicle speed planning method based on reinforcement learning has important theoretical and practical significance for promoting the development of electric vehicle technology and realizing green intelligent transportation. Summary of the invention
[0006] The purpose of the present invention is to provide a longitudinal decision-making method for autonomous driving vehicles based on model-based reinforcement learning. Through intelligent speed planning technology, it effectively balances energy saving and comfort, achieves a more efficient, safe and pleasant driving experience, and solves the problems of reduced following vehicle driving comfort and excessive energy consumption caused by uneven roads, providing a new idea for solving safe, energy-saving, efficient and comfortable autonomous driving tasks; through ecological driving control strategies, it reduces automobile energy consumption and improves ride comfort, which is of great significance for improving the overall travel experience of passengers, ensuring health and safety, improving work efficiency, promoting sustainable transportation development, and enhancing social and economic benefits.
[0007] To achieve the above object, the present invention provides a longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning, comprising the following steps:
[0008] S1. Establish a longitudinal dynamics model of the vehicle and use an internal resistance model to analyze the energy consumption of the battery during vehicle driving;
[0009] S2. Construct a vertical dynamics model of the entire vehicle, use weighted root mean square acceleration as an objective indicator for evaluating ride comfort, and use the concept of annoyance rate in experimental psychology to correct the evaluation results;
[0010] S3, based on vehicle-to-vehicle communication technology, obtain and analyze the driving data of the preceding vehicle and determine the minimum safe distance for following the vehicle;
[0011] S4. Based on the model-based reinforcement learning method, greedy actions are used to update the vehicle energy consumption and longitudinal dynamics approximate model, and the model reaches the optimal result through repeated training.
[0012] Preferably, in step S1, a vehicle longitudinal dynamics model is established and the energy consumption of the battery during vehicle driving is analyzed. The specific steps are as follows:
[0013] S11. Establish a vehicle longitudinal dynamics model as follows:
[0014]
[0015] Where, v is the longitudinal velocity of the vehicle, T whl is the wheel torque, R is the tire radius, F brk is the braking force, F load is the road load, M eq is the total mass of the vehicle including the inertia of rotating components in the powertrain;
[0016] Road load F load The expression is as follows:
[0017] F load =f0+f1·v+f2·v2 +M·g·sinθ
[0018] Where f0, f1 and f2 represent load factors related to road conditions, M is the total mass of the vehicle, and θ is the inclination of the road;
[0019] S12: According to the calculation formula of step S11, the torque T of the motor is determined by the transmission ratio and efficiency of the reduction gear. m and speed ω m , as shown below:
[0020]
[0021]
[0022] Among them, η fd is the final drive efficiency, γ fd is the final drive ratio, ω whl is the wheel speed;
[0023] S13. Calculate the electric energy consumed by the motor and inverter as follows:
[0024]
[0025] Among them, P bat is the power consumed by the battery, η elec (T m ,ω m ) is the overall efficiency of the motor, which is a function of the motor torque and motor speed;
[0026] S14. Based on the internal resistance model, the battery state of charge SOC is as follows:
[0027]
[0028] Among them, V ocv is the open circuit voltage, R bat is the internal resistance of the battery, Q bat is the battery capacity.
[0029] Preferably, in step S2, a vertical dynamics model of the entire vehicle is constructed, and the specific steps are as follows:
[0030] S21, the vertical dynamics model of the whole vehicle is as follows:
[0031]
[0032] Among them, M is the mass matrix, C is the damping matrix, and K is the spring matrix; is the acceleration vector, is the velocity vector, Z is the displacement vector;
[0033] The state space is as follows:
[0034]
[0035]
[0036] Among them, k t is the stiffness coefficient of the tire, k S is the stiffness coefficient of the suspension, k is the stiffness coefficient of the seat; I represents the unit matrix; 0 represents an empty matrix; z1 and z2 correspond to the road profiles contacted by the left and right wheels respectively; l is the distance between the front and rear axles; v is the vehicle's speed;
[0037] S22. The time domain data is converted into frequency domain data using power spectral density technology, and the weighted root mean square acceleration is used as an objective indicator for evaluating ride comfort. The calculation of this indicator involves assigning a corresponding weighting coefficient to each frequency band, as shown below:
[0038]
[0039] Among them, a w is the RMS value of the vertical vibration acceleration of the seat of the autonomous driving vehicle, ω i represents the weighting coefficient of the ith 1 / 3 octave band; ui and li are the upper and lower limits of the frequency range of the ith 1 / 3 octave band, respectively; S α (f) is the energy distribution of vibration acceleration in the frequency domain;
[0040] S23. The concept of annoyance rate in experimental psychology is used to correct the evaluation results; the annoyance rate is composed of a random fuzzy evaluation model, a membership function, and a probability distribution, as shown below:
[0041]
[0042]
[0043]
[0044] Among them, v(x) is the membership function, x min represents the minimum vibration value that cannot be felt by passengers, x represents the actual vibration acceleration; σ is the scaling parameter; δ is the vibration parameter, a and b are fixed constants, x max This is the maximum vibration value that passengers cannot tolerate.
[0045] Preferably, in step S3, the minimum safe distance for following a vehicle is determined as follows:
[0046]
[0047] Among them, dsafe is the shortest safety distance, τ′2 is the brake idle travel time, τ″2 is the braking deceleration linear growth time, 0 is the initial braking speed, a b max is the braking deceleration.
[0048] Preferably, in step S1, a reinforcement learning method is used to transform the control problem into a control strategy that is a reinforcement learning solution in a discrete form on an infinite horizon with a distance d. The specific steps are as follows:
[0049] S41. Minimize the expected cost function J π (x0), as shown below:
[0050]
[0051] Among them, J π (x0) is the expected cost under the initial state x0 and control strategy π, γ is the discount factor, N is the number of steps, and g is the immediate cost of each step k when traveling from d(k) to d(k+1) over a fixed unit distance Δd;
[0052] S42. The weighted sum g of multiple cost items is as follows:
[0053] g=ω SOC ΔSOC+ω t ·Δtime+ω v ·Cv+ω d ·Cd rel
[0054] Among them, ω SOC ,ω t ,ω ν and ω d They represent the battery SOC utilization rate ΔSOC, the unit distance driving time Δtime, the vehicle vertical comfort constraint cost Cv and the distance cost to the front vehicle Cd respectively. rel The weight coefficient of
[0055] S43, the energy consumption and efficiency of step k are as follows:
[0056]
[0057]
[0058] S44. Construct the vertical comfort function Cv as follows:
[0059]
[0060] S45, in order to maintain a safe distance with the vehicle in front to prevent collision, construct safety function Rd rel , as shown below:
[0061]
[0062] Among them, d rel (k) is the relative distance between the vehicle and the vehicle in front, d safe is a constant value of the safe distance between vehicles, and α represents a value close to 0;
[0063] S46, state vector, as shown below:
[0064] x=[v,h,θ,v front , d rel , V p ] T
[0065] Among them, v is the vehicle speed, h is the height, θ is the road slope, V p is prior knowledge, v front is the observed speed of the preceding vehicle;
[0066] S47. Based on Q-learning, random data-driven reinforcement learning is used to adaptively optimize the longitudinal control strategy of the vehicle.
[0067] Preferably, step S47 is based on Q-learning, using random data driven reinforcement learning to adaptively optimize the vehicle longitudinal control strategy, and the specific steps are as follows:
[0068] S471, Q-learning optimal control strategy π * (x k ) and the optimal cost J * (x k ), as follows:
[0069]
[0070]
[0071] Among them, the Q factor represents the action value function, which is expressed as:
[0072] Q * (x k ,u k ) = g(x k ,u k )+γ·J * (x k+1 )
[0073] S472. In order to determine the value of the q function, the action value function is updated as follows:
[0074]
[0075] S473, simplifying the control input u to the relative offset of the vehicle speed after discretization, as shown below:
[0076]
[0077] in, is the discretized unit of the car speed.
[0078] Therefore, the present invention adopts the above-mentioned longitudinal decision-making method for autonomous driving vehicles based on model-based reinforcement learning, and effectively balances energy saving and comfort through intelligent speed planning technology to achieve a more efficient, safe and pleasant driving experience. At the same time, it solves the problems of reduced following vehicle driving comfort and excessive energy consumption caused by uneven roads, and provides a new idea for solving safe, energy-saving, efficient and comfortable autonomous driving tasks; through the ecological driving control strategy, it reduces automobile energy consumption and improves ride comfort, which is of great significance for improving the overall travel experience of passengers, ensuring health and safety, improving work efficiency, promoting sustainable transportation development, and enhancing social and economic benefits.
[0079] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 It is a longitudinal decision model structure diagram of a longitudinal decision method for an autonomous driving vehicle based on model-based reinforcement learning according to the present invention;
[0081] Figure 2 It is an overall structural diagram of an electric vehicle of the present invention, which is a longitudinal decision-making method of an autonomous driving vehicle based on model-based reinforcement learning;
[0082] Figure 3 It is a schematic diagram of maximum comfortable speed calculation of a longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning of the present invention;
[0083] Figure 4 It is a schematic diagram of the reinforcement learning model training process of the longitudinal decision-making method of an autonomous driving vehicle based on model-based reinforcement learning of the present invention. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical scheme and advantages disclosed in the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention and are not intended to limit the embodiments of the present invention. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0085] like Figure 1 As shown, a longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning includes the following steps:
[0086] S1. Establish a longitudinal dynamics model of the vehicle and use an internal resistance model to analyze the energy consumption of the battery during vehicle driving;
[0087] S2. Construct a vertical dynamics model of the entire vehicle, use weighted root mean square acceleration as an objective indicator for evaluating ride comfort, and use the concept of annoyance rate in experimental psychology to correct the evaluation results;
[0088] S3, based on vehicle-to-vehicle communication technology, obtain and analyze the driving data of the preceding vehicle and determine the minimum safe distance for following the vehicle;
[0089] S4. Based on the model-based reinforcement learning method, greedy actions are used to update the vehicle energy consumption and longitudinal dynamics approximate model, and the model reaches the optimal result through repeated training.
[0090] Example
[0091] S1. Establish a longitudinal dynamics model of the vehicle and use an internal resistance model to analyze the energy consumption of the battery during vehicle driving;
[0092] S11. In the process of building the vehicle model, a simplified one-dimensional longitudinal dynamics model is selected. The model is based on the quasi-static assumption. Under this assumption, it is considered that the impact of the short-term dynamic response of the motor and its power system on the overall model can be ignored. Therefore, the longitudinal dynamics are as follows:
[0093]
[0094] Where, v is the longitudinal velocity of the vehicle, T whl is the wheel torque, R is the tire radius, F brk is the braking force, M eg is the total mass of the vehicle including the inertia of the rotating components in the power system, F load is the road load.
[0095] Road load F load , as shown below:
[0096] F load =f0+f1·v+f2·v 2 +M·g·sinθ
[0097] Among them, f0, f1 and f2 are load coefficients related to road conditions, M is the total mass of the vehicle, and θ is the inclination of the road.
[0098] S12: Calculate the wheel torque T according to the calculation formula of step S11, combined with the vehicle speed and expected accelerationwhl .
[0099] In actual vehicles, in order to ensure safety, during deceleration, the regenerative braking torque will be distributed to the wheel torque T whl and braking force F brk Under the assumptions of this model, unless there is a limit on the wheel torque, it is assumed that all regenerative braking is achieved through the wheel torque during deceleration; in this case, the regenerative braking that exceeds the wheel torque will be converted into braking force, and the motor torque T is determined by the transmission ratio and efficiency of the reduction gear. m and speed ω m , as shown below:
[0100]
[0101]
[0102] Among them, η fd is the final drive efficiency, γ fd is the final drive ratio, ω whl is the wheel speed.
[0103] S13. Calculate the electric energy consumed by the motor and inverter as follows:
[0104]
[0105] Among them, P bat is the power consumed by the battery, η elec (T m ,ω m ) is the total efficiency of the motor, including the efficiency of the inverter, and is a function of the motor torque and motor speed.
[0106] S14. For the battery, based on the internal resistance model, the battery state of charge SOC is as follows:
[0107]
[0108] Among them, V ocv is the open circuit voltage, R bat is the internal resistance of the battery, Q bat is the battery capacity; the overall structure of the vehicle, such as Figure 2 shown.
[0109] S2. Construct a vertical dynamics model of the entire vehicle, use weighted root mean square acceleration as an objective indicator for evaluating ride comfort, and use the concept of annoyance rate in experimental psychology to correct the evaluation results;
[0110] S21. Since the standard quarter car model is too simplified and cannot fully capture the vibration characteristics of the vehicle, a more complex model is used, that is, a full vehicle model including seats. The vertical dynamic model of the full vehicle is as follows:
[0111]
[0112] Among them, M is the mass matrix, C is the damping matrix, and K is the spring matrix; is the acceleration vector, is the velocity vector and Z is the displacement vector.
[0113] The state space is as follows:
[0114]
[0115]
[0116] Among them, k t is the stiffness coefficient of the tire, k S is the stiffness coefficient of the suspension, k is the stiffness coefficient of the seat; I represents the unit matrix; 0 represents the empty matrix; z1 and z2 correspond to the road profiles contacted by the left and right wheels respectively; l is the distance between the front and rear axles; v is the vehicle's speed.
[0117] The input data of the full vehicle model is mainly the road profile in the time domain. Although the spatial road profile remains consistent, the time domain data will change due to different driving speeds. In the state space formula, the output is usually manifested as time domain acceleration with irregular fluctuations. In contrast, the acceleration pattern in the frequency domain shows more stable characteristics.
[0118] Therefore, the present invention uses power spectral density technology to convert time domain data into frequency domain data. In frequency domain analysis, the vibration frequency band of 0.5 to 80 Hz has a particularly significant impact on human perception, and there are significant differences in the impact of different frequency bands within this range. In order to more accurately evaluate these differences, the focus is placed on the vibration in a specific frequency band, and the frequency band is further subdivided into 23 parts through a 1 / 3 octave filter. According to the recommendations of ISO 2631-1-1997 standard, weighted root mean square acceleration is used as an objective indicator for evaluating ride comfort. The calculation of this indicator involves assigning corresponding weighting coefficients to each frequency band, as shown below:
[0119]
[0120] Among them, a w is the RMS value of the vertical vibration acceleration of the seat of the autonomous driving vehicle, ω irepresents the weighting coefficient of the ith 1 / 3 octave band; ui and li are the upper and lower limits of the frequency range of the ith 1 / 3 octave band, respectively; S α (f) is the energy distribution of vibration acceleration in the frequency domain.
[0121] S23. Although weighted root mean square acceleration can be used as an objective indicator to evaluate ride comfort, it cannot fully reflect the individual sensitivity differences of passengers. In fact, ride comfort is a subjective experience, which means that even when facing the same vibration, different passengers may have significantly different feelings. In order to more accurately measure the proportion of passengers who cannot tolerate vibration, the concept of annoyance rate in experimental psychology is used to correct the evaluation results. The annoyance rate consists of a random fuzzy evaluation model, a membership function, and a probability distribution, as shown below:
[0122]
[0123]
[0124]
[0125] Among them, v(x) is the membership function, x min represents the minimum vibration value that cannot be felt by passengers, x represents the actual vibration acceleration; σ is the scaling parameter; δ is the vibration parameter, a and b are fixed constants, x max This is the maximum vibration value that passengers cannot tolerate.
[0126] Although vibration perception varies depending on passenger expectations and activities, ISO 2631-1 provides an approximate indication of response to different vibration amplitudes. min and x max Usually set to 0.125 and 2.3 m / s respectively 2 , the values of a and b are 0.4726 and 0.5478 respectively.
[0127] In the present invention, the annoyance rate of a specific road section is calculated using a conventional road quality assessment method. The road profile of the driving trajectory is evenly divided into several sections, and the corresponding annoyance rate is calculated based on the speed and road conditions of each section. In order to improve the riding experience of passengers, the goal of intelligent speed control is to control the annoyance rate within 25%, thereby ensuring that 75% of passengers feel comfortable. The speed that meets this standard is regarded as an important basis for measuring vertical comfort and is directly applied to the speed control of autonomous vehicles.
[0128] like Figure 3As shown in the figure, the annoyance rate at different speeds is calculated and recorded at the end of each section. Among them, the circle represents the situation where the annoyance rate is less than 25%, while the other graph represents the annoyance rate above 25%. In order to keep the annoyance rate within 25%, the maximum comfortable speed (MCS) of each section is determined. MCS, as a priori knowledge of vertical comfort, provides an important reference for real-time speed control.
[0129] S3, based on vehicle-to-vehicle communication technology, obtain and analyze the driving data of the preceding vehicle and determine the minimum safe distance for following the vehicle;
[0130] Combined with the real-time speed of the following vehicle and the current road conditions, the braking distance of the vehicle is calculated and used as the shortest safe distance, as shown below:
[0131]
[0132] Among them, d safe is the shortest safe distance, τ'2 is the brake idle travel time, τ"2 is the braking deceleration linear growth time, 0 is the initial braking speed, a b max is the braking deceleration;
[0133] S4, based on the model-based reinforcement learning method, the vehicle energy consumption and longitudinal dynamics approximate model is updated using greedy actions, and the model is trained repeatedly to achieve the optimal result;
[0134] For this driving problem, it can be expressed as finding a steady-state control strategy on an infinite horizon from a random perspective. In this form, given the stable distribution of the vehicle driving environment, the optimal control strategy obtained by reinforcement learning RL can be generally applicable to different driving situations. Therefore, the control problem can be expressed as finding a general control strategy as an RL solution in a discrete form on an infinite horizon with a distance of d. The specific steps are as follows:
[0135] S41. Minimize the expected cost function J π (x0), as shown below:
[0136]
[0137] Among them, J π (x0) is the expected cost under the initial state x0 and control strategy π, γ is the discount factor; N is the number of steps, and g is the immediate cost of each step k when traveling a fixed unit distance Δd from d(k) to d(k+1).
[0138] S42. The weighted sum g of multiple cost items is as follows:
[0139] g=ω SOC ΔSOC+ωt ·Δtime+ω v ·Cv+ω d ·Cd rel
[0140] Among them, ω SOC ,ω t ,ω ν and ω d They represent the battery SOC utilization rate ΔSOC, the unit distance driving time Δtime, the vehicle vertical comfort constraint cost Cv and the distance cost to the front vehicle Cd respectively. rel The weight coefficient of .
[0141] S43, the energy consumption and efficiency of step k are as follows:
[0142]
[0143]
[0144] Driving speed is a key factor affecting vertical comfort, and MCS provides the vehicle with information about the vertical comfort of the road ahead. To ensure passenger comfort, autonomous vehicles should control their speed within a specific range. in, is the maximum comfortable speed of the vehicle at k steps. This will only cause discomfort to a few passengers. When the vehicle speed is in this range, its impact on vertical comfort is acceptable, so the eigenvalue is set to zero.
[0145] However, once the speed exceeds this range, the intelligent system will be punished accordingly. is used as a guide to adjust the driving speed. At the same time, the degree of penalty is inversely proportional to the required speed deviation ΔVe, aiming to ensure that the speed deviation can be controlled within the expected range.
[0146] S44. Construct the vertical comfort function Cv as follows:
[0147]
[0148] S45, in order to maintain a safe distance with the vehicle in front to prevent collision, construct safety function Rd rel , as shown below:
[0149]
[0150] Among them, d rel (k) is the relative distance between the vehicle and the vehicle in front, d safe To represent a constant value of the safe distance between vehicles, α represents a value close to 0, and takes 0 or 1 to avoid the denominator being 0.
[0151] S46, state vector, as shown below:
[0152] x=[v,h,θ,v front , d rel , V p ] T
[0153] Where v is the vehicle speed, h is the height, θ is the road slope, V p is prior knowledge, v front is the observed speed of the preceding vehicle.
[0154] The state vector is composed of the height (altitude) h, the road slope θ, and the prior knowledge V p Defined driving cycle environment and vehicle speed v, as well as the observed vehicle speed v ahead front The state corresponding to the relative distance between cars.
[0155] Prior Knowledge V p Samples are collected from the MCS at certain distance intervals to represent future vertical comfort information. In the present invention, it is assumed that the speed of the vehicle ahead and the distance between vehicles (up to 60 meters) can be provided by sensors or vehicle-to-vehicle communication systems. Other information, such as height, slope and vehicle speed, and road conditions can be obtained from the roadside unit and vehicle system.
[0156] S47. In the present invention, the longitudinal control strategy of the vehicle is derived based on the RL algorithm of Q-learning, and the longitudinal control strategy of the vehicle is adaptively optimized by RL driven by random data. The specific steps are as follows:
[0157] S471, Q-learning optimal control strategy π * (x k ) and the optimal cost J * (x k ), as follows:
[0158]
[0159]
[0160] Among them, the Q factor represents the action value function, which is expressed as:
[0161] Q * (x k ,u k ) = g(x k ,u k )+γ·J * (x k+1 )
[0162] S472. In order to determine the value of the q function, the action value function is updated as follows:
[0163]
[0164] In Q-learning, the control input is determined by the q function, and through interaction with the environment, the q function value is updated after the agent performs an action. In this process, the agent can observe the instantaneous cost and changes in state variables, and then use this information to update the q function value.
[0165] In addition, based on the Q-learning structure, MBRL (model-based reinforcement learning) is combined with vehicle powertrain dynamics and longitudinal dynamics. In MBRL, by building and utilizing a data-driven model of the vehicle powertrain battery SOC consumption, the sampling efficiency of Q-learning is improved, making it more efficient in practical applications.
[0166] S473, the control input u is simplified to the relative offset of the vehicle speed after discretization, as shown below:
[0167]
[0168] in, is the discrete unit of the vehicle speed; only when the corresponding motor torque T m and motor speed ω m The control input u can only be applied if it is allowed. For h(k), θ(k), v front (k) and V p (k) represents the given driving cycle data, and k = 1, 2, 3, ..., N, Q-learning iterations are performed using vehicle simulation.
[0169] Reinforcement learning algorithms such as Figure 4 As shown, in the outer loop, the present invention adopts a greedy strategy to select action u k as control input; in the inner loop, the q-function value is updated for all possible actions using an approximate environment model built based on the driving batch data. This reinforcement learning structure means that the powertrain dynamics and longitudinal dynamics are represented by approximate modeling, which are learned through virtual interactions of the agents.
[0170] Changes in driving cycle information, such as (h k ,θ k , ) to (h k+1 ,θ k+1 , ), the state variable conversion of the front vehicle speed behavior, such as v front,k to v front,k+1, as experience replay is passed from the actual environment to the approximate environment model. However, this information is stochastic and difficult to generalize directly.
[0171] In order to make more efficient use of data, the stored actual experience is used multiple times for off-policy learning, providing a more efficient sampling method. In this way, the learning process can converge quickly without the time-consuming acquisition of actual experience. Using these stored experiences, different control inputs can be tested and the estimated rewards can be used to and the estimated subsequent state transitions To update the Q function value.
[0172] In order to handle different vehicle speeds and relative distances between vehicles, all allowed actions are executed in a "for loop". where l = 1, 2, 3, ..., N u Iterate to update the Q function; then at time step k, it is as follows:
[0173]
[0174] Among them, controlled by Estimated next speed of the vehicle As shown below:
[0175]
[0176] in, is the next relative distance, as follows:
[0177]
[0178] Among them, v i Indicates different vehicle speeds. Represents different distances from the vehicle in front; both are discretized uniformly as follows:
[0179] v∈{v i |i=1,2,…,M v}
[0180]
[0181] Among them, M v Represents the discretization quantity of vehicle speed, M d The discretized number representing the relative distance. In the quantization process, the nearest neighbor quantization method is used to obtain the discrete values of the q-table.
[0182] In addition, the approximate cost can be estimated by step S21 Through the approximate model Calculate the battery SOC utilization rate ΔSOC, and x′=[v,h,θ,V p ] T , from the data of the simulated outer loop:
[0183]
[0184] in, is the approximate battery SOC usage ΔSOC when state x, u represents the one-step control input, α m is the learning rate of the model.
[0185] It can also be calculated and initialized based on the known powertrain dynamics, and the approximate cost is As shown below:
[0186]
[0187] Therefore, the present invention adopts the above-mentioned longitudinal decision-making method for autonomous driving vehicles based on model-based reinforcement learning, and effectively balances energy saving and comfort through intelligent speed planning technology to achieve a more efficient, safe and pleasant driving experience. At the same time, it solves the problems of reduced following vehicle driving comfort and excessive energy consumption caused by uneven roads, and provides a new idea for solving safe, energy-saving, efficient and comfortable autonomous driving tasks; through the ecological driving control strategy, it reduces automobile energy consumption and improves ride comfort, which is of great significance for improving the overall travel experience of passengers, ensuring health and safety, improving work efficiency, promoting sustainable transportation development, and enhancing social and economic benefits.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning, characterized in that: The following steps are involved: S1. Establish a longitudinal dynamics model of the vehicle and use an internal resistance model to analyze the energy consumption of the battery during vehicle driving; S2. Construct a vertical dynamics model of the entire vehicle, use weighted root mean square acceleration as an objective indicator for evaluating ride comfort, and use the concept of annoyance rate in experimental psychology to correct the evaluation results; S3, based on vehicle-to-vehicle communication technology, obtain and analyze the driving data of the preceding vehicle and determine the minimum safe distance for following the vehicle; S4. Based on the model-based reinforcement learning method, greedy actions are used to update the vehicle energy consumption and longitudinal dynamics approximate model, and the model reaches the optimal result through repeated training.
2. The longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning according to claim 1, characterized in that: In step S1, a vehicle longitudinal dynamics model is established and the energy consumption of the battery during vehicle driving is analyzed. The specific steps are as follows: S11. Establish a vehicle longitudinal dynamics model as follows: Where, v is the longitudinal velocity of the vehicle, T whl is the wheel torque, R is the tire radius, F brk is the braking force, F load is the road load, M eq is the total mass of the vehicle including the inertia of rotating components in the powertrain; Road load F load The expression is as follows: F load =f0+f1·v+f2·v 2 +M·g·sinθ Where f0, f1 and f2 represent load factors related to road conditions, M is the total mass of the vehicle, and θ is the inclination of the road; S12: According to the calculation formula of step S11, the torque T of the motor is determined by the transmission ratio and efficiency of the reduction gear. m and speed ω m , as shown below: Among them, η fd is the final drive efficiency, γ fd is the final drive ratio, ω whl is the wheel speed; S13. Calculate the electric energy consumed by the motor and inverter as follows: Among them, P bat is the power consumed by the battery, η elec (T m ,ω m ) is the overall efficiency of the motor, which is a function of the motor torque and motor speed; S14. Based on the internal resistance model, the battery state of charge SOC is as follows: Among them, V ocv is the open circuit voltage, R bat is the internal resistance of the battery, Q bat is the battery capacity.
3. The longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning according to claim 1, characterized in that: In step S2, a vertical dynamics model of the entire vehicle is constructed. The specific steps are as follows: S21, the vertical dynamics model of the whole vehicle is as follows: Among them, M is the mass matrix, C is the damping matrix, and K is the spring matrix; is the acceleration vector, is the velocity vector, Z is the displacement vector; The state space is as follows: Among them, k t is the stiffness coefficient of the tire, k S is the stiffness coefficient of the suspension, k is the stiffness coefficient of the seat; I represents the unit matrix; 0 represents an empty matrix; z1 and z2 correspond to the road profiles contacted by the left and right wheels respectively; l is the distance between the front and rear axles; v is the vehicle's speed; S22. The time domain data is converted into frequency domain data using power spectral density technology, and the weighted root mean square acceleration is used as an objective indicator for evaluating ride comfort. The calculation of this indicator involves assigning a corresponding weighting coefficient to each frequency band, as shown below: Among them, a w is the RMS value of the vertical vibration acceleration of the seat of the autonomous driving vehicle, ω i represents the weighting coefficient of the ith 1 / 3 octave band; ui and li are the upper and lower limits of the frequency range of the ith 1 / 3 octave band, respectively; S α (f) is the energy distribution of vibration acceleration in the frequency domain; S23. The concept of annoyance rate in experimental psychology is used to correct the evaluation results; the annoyance rate is composed of a random fuzzy evaluation model, a membership function, and a probability distribution, as shown below: Among them, v(x) is the membership function, x min represents the minimum vibration value that cannot be felt by passengers, x represents the actual vibration acceleration; σ is the scaling parameter; δ is the vibration parameter, a and b are fixed constants, x max This is the maximum vibration value that passengers cannot tolerate.
4. The longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning according to claim 1, characterized in that: In step S3, the minimum safe distance for following a vehicle is determined as follows: Among them, d safe is the shortest safety distance, τ′2 is the brake idle travel time, τ″2 is the braking deceleration linear growth time, 0 is the initial braking speed, a b max is the braking deceleration.
5. The longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning according to claim 1, characterized in that: In step S1, the control problem is transformed into a control strategy that is a reinforcement learning solution in a discrete form on an infinite horizon with a distance d by using the reinforcement learning method. The specific steps are as follows: S41. Minimize the expected cost function J π (x0), as shown below: Among them, J π (x0) is the expected cost under the initial state x0 and control strategy π, γ is the discount factor, N is the number of steps, and g is the immediate cost of each step k when traveling from d(k) to d(k+1) over a fixed unit distance Δd; S42. The weighted sum g of multiple cost items is as follows: g=ω SOC ·ΔSOC+ω t ·Δtime+ω v ·Cv+ω d ·CD rel Among them, ω SOC ,ω t ,ω ν and ω d They represent the battery SOC utilization rate ΔSOC, the unit distance driving time Δtime, the vehicle vertical comfort constraint cost Cv and the distance cost to the front vehicle Cd respectively. rel The weight coefficient of S43, the energy consumption and efficiency of step k are as follows: S44. Construct the vertical comfort function Cv as follows: S45, in order to maintain a safe distance with the vehicle in front to prevent collision, construct safety function Rd rel , as shown below: Among them, d rel (k) is the relative distance between the vehicle and the vehicle in front, d safe is a constant value of the safe distance between vehicles, and α represents a value close to 0; S46, state vector, as shown below: x=[v,h,θ,v front ,d rel ,V p ] T Where v is the vehicle speed, h is the height, θ is the road slope, V p is prior knowledge, v front is the observed speed of the preceding vehicle; S47. Based on Q-learning, random data-driven reinforcement learning is used to adaptively optimize the longitudinal control strategy of the vehicle.
6. The longitudinal decision-making method for an autonomous driving vehicle based on model-based reinforcement learning according to claim 5, characterized in that: Step S47 is based on Q-learning and uses random data driven reinforcement learning to adaptively optimize the vehicle longitudinal control strategy. The specific steps are as follows: S471, Q-learning optimal control strategy π * (x k ) and the optimal cost J * (x k ), as follows: Among them, the Q factor represents the action value function, which is expressed as: Q * ( x k ,her k )=g(x k ,her k )+γ·J * ( x k+1 ) S472. In order to determine the value of the q function, the action value function is updated as follows: S473, simplifying the control input u to the relative offset of the vehicle speed after discretization, as shown below: in, is the discretized unit of the car speed.
Citation Information
Patent Citations
Longitudinal decision-making system and longitudinal decision-making determination method for automatic driving vehicle
CN111391830A
Automatic driving longitudinal decision control method in vehicle-road cooperation environment
CN112896186A
