CN115238576A - A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model - Google Patents
A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model Download PDFInfo
- Publication number
- CN115238576A CN115238576A CN202210817405.9A CN202210817405A CN115238576A CN 115238576 A CN115238576 A CN 115238576A CN 202210817405 A CN202210817405 A CN 202210817405A CN 115238576 A CN115238576 A CN 115238576A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- longitudinal
- neural network
- acceleration
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 38
- 238000003062 neural network model Methods 0.000 claims abstract description 48
- 238000012549 training Methods 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 8
- 230000001133 acceleration Effects 0.000 claims description 140
- 230000005540 biological transmission Effects 0.000 claims description 27
- 239000011159 matrix material Substances 0.000 claims description 27
- 238000005096 rolling process Methods 0.000 claims description 24
- 230000008569 process Effects 0.000 claims description 22
- 238000013507 mapping Methods 0.000 claims description 18
- 238000005070 sampling Methods 0.000 claims description 18
- 238000001914 filtration Methods 0.000 claims description 15
- 230000007704 transition Effects 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 12
- 230000009467 reduction Effects 0.000 claims description 11
- 210000002569 neuron Anatomy 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 10
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 claims description 6
- 230000004913 activation Effects 0.000 claims description 6
- 238000012958 reprocessing Methods 0.000 claims description 3
- 230000005484 gravity Effects 0.000 claims description 2
- 230000009466 transformation Effects 0.000 claims 1
- 238000005065 mining Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005259 measurement Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000013480 data collection Methods 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 101000802640 Homo sapiens Lactosylceramide 4-alpha-galactosyltransferase Proteins 0.000 description 2
- 102100035838 Lactosylceramide 4-alpha-galactosyltransferase Human genes 0.000 description 2
- 239000003638 chemical reducing agent Substances 0.000 description 2
- 238000013178 mathematical model Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 239000010426 asphalt Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 235000000332 black box Nutrition 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 239000004568 cement Substances 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000012067 mathematical method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/14—Force analysis or force optimisation, e.g. static or dynamic forces
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biophysics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Biomedical Technology (AREA)
- Geometry (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Control Of Transmission Device (AREA)
Abstract
Description
技术领域technical field
本发明涉及自动驾驶车辆技术领域,具体而言,涉及一种结合神经网络和物理模型的车辆纵向动力学辨识方法。The invention relates to the technical field of automatic driving vehicles, in particular to a vehicle longitudinal dynamics identification method combining a neural network and a physical model.
背景技术Background technique
自动驾驶技术已成为关联众多领域协同创新、构建新型交通运输体系的重要载体,在重塑产业生态、推动技术创新、提高交通安全、实现节能减排等方面具有重大战略意义。自动驾驶技术可以分为定位、感知、运动预测、决策规划、运动控制、仿真等关键技术,其中运动控制是自动驾驶车辆实现安全、平稳行驶的核心技术之一。而要实现自动驾驶车辆的运动控制,进行车辆动力学特性分析与建模是进行车辆动力学仿真以及运动控制的关键。车辆是拥有多个子系统的复杂机电液一体化设备,其动力学模型一般基于两种思路进行构建:物理模型和数据驱动模型。物理模型的构建过程也被白箱建模,通过分析系统的结构、组成和运动规律,运用已知的定律、定理和原理,例如力学原理、生物学定律、牛顿定理、能量平衡方程、传热传质原理等,利用数学方法进行推导,建立系统的物理模型。数据驱动模型的构建过程也被称作黑箱建模,利用数据进行建模,其特点就是完全依靠输入和输出数据所提供的信息来建立系统的数学模型,而不管其物理意义。Autonomous driving technology has become an important carrier for collaborative innovation in many fields and the construction of a new transportation system. It has great strategic significance in reshaping the industrial ecology, promoting technological innovation, improving traffic safety, and achieving energy conservation and emission reduction. Autonomous driving technology can be divided into key technologies such as positioning, perception, motion prediction, decision planning, motion control, and simulation, among which motion control is one of the core technologies for autonomous vehicles to achieve safe and smooth driving. To realize the motion control of autonomous vehicles, the analysis and modeling of vehicle dynamics is the key to vehicle dynamics simulation and motion control. Vehicles are complex electromechanical-hydraulic devices with multiple subsystems, and their dynamic models are generally constructed based on two ideas: physical models and data-driven models. The process of building a physical model is also modeled in a white box, by analyzing the structure, composition, and laws of motion of the system, applying known laws, theorems, and principles, such as principles of mechanics, laws of biology, Newton's laws, energy balance equations, heat transfer The principle of mass transfer, etc., is deduced by mathematical methods, and the physical model of the system is established. The construction process of data-driven model is also called black-box modeling, which uses data for modeling.
现有技术中:公开号为CN202010247999.5的发明专利公开了一种车辆纵向动力学系统辨识方法,通过对车辆的输入和输出数据进行采集,利用频域响应分析法估算该档位节气门开度与车速幅频特性曲线,获得该车在各档位加速特性和对应数学模型,完成了车辆纵向动力学系统辨识。但该方法依赖大量的人工经验进行分析,进行规模化车辆辨识时会耗费大量人力及财力,同时数学模型无法覆盖所有工况。In the prior art: The invention patent with publication number CN202010247999.5 discloses a vehicle longitudinal dynamics system identification method. By collecting the input and output data of the vehicle, the frequency domain response analysis method is used to estimate the throttle opening of the gear. Acceleration characteristics and corresponding mathematical models of the vehicle in each gear are obtained, and the vehicle longitudinal dynamics system identification is completed. However, this method relies on a large amount of human experience for analysis, and large-scale vehicle identification will consume a lot of manpower and financial resources, and the mathematical model cannot cover all working conditions.
公开号为CN110967991A的发明专利公开了一种车辆控制参数的确定方法、装置、车载控制器和无人车,通过大量数据仅依赖神经网络的方法对车辆纵向驱动及制动系统进行自动辨识,可以用于规模化车辆的纵向动力学模型辨识并快速确定运动控制的参数,但是该方法多用于结构化的水泥、柏油等硬路面,面对路面状态不好的道路,面对一些车辆变速箱换挡过程带来的加速度波动无法很好的进行拟合。The invention patent with publication number CN110967991A discloses a method, device, on-board controller and unmanned vehicle for determining vehicle control parameters, which can automatically identify the longitudinal driving and braking system of the vehicle by relying on a large amount of data only on neural networks, and can It is used to identify the longitudinal dynamics model of large-scale vehicles and quickly determine the parameters of motion control, but this method is mostly used on hard roads such as structured cement and asphalt. The acceleration fluctuation caused by the blocking process cannot be well fitted.
公开号为CN113657036A的发明专利公开了一种基于神经网络和物理模型的车辆动力学模拟实现方法,该方法也是将车辆横向动力学模型与神经网络模型结合起来,提高车辆横向动力学建模的精度。但是该方法仅用于车辆横向动力学标定。The invention patent publication number CN113657036A discloses a method for realizing vehicle dynamics simulation based on neural network and physical model. The method also combines the vehicle lateral dynamics model with the neural network model to improve the accuracy of vehicle lateral dynamics modeling. . But this method is only used for vehicle lateral dynamics calibration.
发明内容SUMMARY OF THE INVENTION
针对自动驾驶车辆纵向速度控制面临纵向动力学模型复杂,具有强非线性、时变的特征导致建模困难的问题,本发明提出的方法可对车辆纵向动力学模型进行高精度的表征,可以得到车辆的纵向动力学模型及逆动力学模型。其中,纵向动力学模型可以应用于特定车辆的纵向动力学仿真建模,可以模拟出接近于实车的纵向驱动与制动响应结果;逆动力学模型可以转化为车辆控制参数映射表应用于无人驾驶车辆的纵向速度控制,实现纵向速度控制算法输出的期望加速度向执行层可以接收的油门开度、制动开度指令的映射。Aiming at the problem that the longitudinal dynamic model of the self-driving vehicle is complex, and has strong nonlinear and time-varying characteristics, the modeling is difficult. Longitudinal dynamics model and inverse dynamics model of the vehicle. Among them, the longitudinal dynamics model can be applied to the longitudinal dynamics simulation modeling of a specific vehicle, and can simulate the longitudinal driving and braking response results close to the real vehicle; the inverse dynamics model can be transformed into a vehicle control parameter map and applied to no The longitudinal speed control of the human-driven vehicle realizes the mapping of the desired acceleration output by the longitudinal speed control algorithm to the accelerator opening and braking opening commands that can be received by the executive layer.
本发明旨在提供一种结合神经网络和物理模型的车辆纵向动力学辨识方法,以解决或改善上述技术问题中的至少之一。The present invention aims to provide a vehicle longitudinal dynamics identification method combining a neural network and a physical model, so as to solve or improve at least one of the above technical problems.
有鉴于此,本发明的第一方面在于提供一种结合神经网络和物理模型的车辆纵向动力学辨识方法。In view of this, a first aspect of the present invention is to provide a vehicle longitudinal dynamics identification method combining a neural network and a physical model.
本发明的第一方面提供了一种结合神经网络和物理模型的车辆纵向动力学辨识方法,包括:所述纵向动力学模型为:A first aspect of the present invention provides a vehicle longitudinal dynamics identification method combining a neural network and a physical model, including: the longitudinal dynamics model is:
ar=MODEL(vx,φt,φb,ig,θ道路坡度),其中:ar为车辆实际加速度、vx为车辆纵向速度、φt为油门开度、φb为制动开度、ig为变速器减速比、θ为道路坡度,所述纵向动力学模型通过所述方法标定,包括以下步骤:S1,驱动无人车辆行驶,记录包括有变速箱档位的行驶数据;S2,根据行驶数据进行处理,得到可供训练的样本数据集;S3,通过样本数据集分别对油门神经网络模型和制动神经网络模型进行训练;S4,将训练后的油门神经网络模型、制动神经网络模型与车辆驱动物理模型、车辆制动物理模型相结合,以得到无人驾驶车辆的纵向动力学模型;其中,所述行驶数据包括:油门开度、制动开度、纵向速度、纵向加速度和变速器档位。a r =MODEL(v x , φ t , φ b , ig , θ road gradient ), where: a r is the actual acceleration of the vehicle, v x is the longitudinal speed of the vehicle, φ t is the accelerator opening, and φ b is the braking Opening, ig are the transmission reduction ratio, θ is the road gradient, and the longitudinal dynamics model is calibrated by the method, including the following steps: S1, driving the unmanned vehicle to travel, and recording the driving data including the transmission gear; S2, process the driving data to obtain a sample data set for training; S3, train the throttle neural network model and the braking neural network model respectively through the sample data set; S4, train the throttle neural network model, the brake neural network model after training The dynamic neural network model is combined with the vehicle driving physical model and the vehicle braking physical model to obtain the longitudinal dynamics model of the unmanned vehicle; wherein, the driving data includes: accelerator opening, braking opening, longitudinal speed, Longitudinal acceleration and transmission gear.
本发明提供的一种结合神经网络和物理模型的车辆纵向动力学辨识方法,针对自动驾驶车辆纵向速度控制面临纵向动力学模型复杂,具有强非线性、时变的特征导致建模困难的问题,将车辆的变速器档位及道路坡度信息构建的物理方程与神经网络结合起来,可以更好的表征车辆纵向动力学,可以适用的车辆种类更多,对车辆整体纵向动力学模型的构建问题简化为只针对驱动系统及制动系统所能产生的等效加速度的建模问题,得到的纵向动力学模型更加精准。The invention provides a vehicle longitudinal dynamics identification method combined with a neural network and a physical model, aiming at the problem that the longitudinal speed control of an autonomous driving vehicle faces the complex longitudinal dynamics model, which has strong nonlinear and time-varying characteristics, which leads to difficult modeling. Combining the physical equation constructed by the vehicle's transmission gear and road gradient information with the neural network can better characterize the vehicle's longitudinal dynamics, and can be applied to more types of vehicles. The problem of constructing the overall longitudinal dynamics model of the vehicle is simplified as Only for the modeling problem of the equivalent acceleration generated by the drive system and the braking system, the obtained longitudinal dynamics model is more accurate.
另外,根据本发明的实施例提供的技术方案还可以具有如下附加技术特征:In addition, the technical solutions provided according to the embodiments of the present invention may also have the following additional technical features:
上述任一技术方案中,通过所述纵向动力学模型的逆向转换,得到车辆纵向控制参数映射关系,具体为下述公式:In any of the above technical solutions, through the reverse conversion of the longitudinal dynamics model, the vehicle longitudinal control parameter mapping relationship is obtained, which is specifically the following formula:
(φt,φb)=MAP(vx,a期望速度,θ道路坡度,ig)(φ t , φ b )=MAP(v x , a desired speed , θ road gradient , i g )
其中,所述车辆纵向控制参数映射关系用于无人驾驶车辆纵向速度的控制,在给定当前车辆运行状态(vx,θ道路坡度,ig)和纵向控制率取值(a期望速度)时,查询得到车辆要执行的油门、制动开度值(φt,φb)。Wherein, the vehicle longitudinal control parameter mapping relationship is used for the control of the longitudinal speed of the unmanned vehicle, given the current vehicle operating state (v x , θ road gradient , i g ) and the value of the longitudinal control rate (a desired speed ) When , query to obtain the accelerator and brake opening values (φ t , φ b ) to be executed by the vehicle.
在该技术方案中,逆动力学模型可以转化为车辆控制参数映射表应用于无人驾驶车辆的纵向速度控制,实现纵向速度控制算法输出的期望加速度向执行层可以接收的油门开度、制动开度指令的映射;In this technical solution, the inverse dynamics model can be transformed into a vehicle control parameter map and applied to the longitudinal speed control of the unmanned vehicle, so as to realize the desired acceleration output by the longitudinal speed control algorithm to the accelerator opening and braking that can be received by the executive layer. Mapping of opening instructions;
该映射关系可用于车辆纵向速度控制。特定车辆纵向控制参数映射关系指的是以当前车辆变速器档位减速比、车辆纵向速度、道路坡度、期望的加速度作为输入,得到车辆线控系统可以接收的油门开度值和制动开度值。This mapping relationship can be used for vehicle longitudinal speed control. The mapping relationship of specific vehicle longitudinal control parameters means that the current vehicle transmission gear reduction ratio, vehicle longitudinal speed, road gradient, and expected acceleration are used as inputs to obtain the accelerator opening value and brake opening value that the vehicle control-by-wire system can receive. .
上述任一技术方案中,所述S1的步骤包括:S11,设置不同的油门开度和不同的制动开度;S12,驱动无人车辆在水平道路上,在预设范围内以不同的速度行驶;S13,采集无人车辆行驶时的油门开度、制动开度、纵向速度、纵向加速度、变速器档位;其中,所述预设范围为0km/h-30km/h,所述不同的油门开度和制动开度为0%,10%,20%,……,100%的离散化开度指令。In any of the above technical solutions, the step of S1 includes: S11, setting different accelerator opening degrees and different brake opening degrees; S12, driving the unmanned vehicle on a horizontal road at different speeds within a preset range driving; S13, collect the accelerator opening, brake opening, longitudinal speed, longitudinal acceleration, and transmission gear position when the unmanned vehicle is running; wherein, the preset range is 0km/h-30km/h, and the different The accelerator opening and braking opening are discrete opening commands of 0%, 10%, 20%, ..., 100%.
在该技术方案中,选择平坦的路面,自动驾驶车辆使用预先内置的采集程序进行采集实验,按照固定的油门\制动开度要求采集车辆纵向速度、纵向加速度、变速器档位(含减速比)等车辆状态数据,得到实车数据[油门开度、制动开度、纵向速度、纵向加速度、变速器档位];In this technical solution, a flat road is selected, and the autonomous vehicle uses the pre-built acquisition program to conduct the acquisition experiment, and collects the vehicle longitudinal speed, longitudinal acceleration, and transmission gear (including the reduction ratio) according to the fixed accelerator/brake opening requirements. Wait for the vehicle status data to get real vehicle data [accelerator opening, brake opening, longitudinal speed, longitudinal acceleration, transmission gear];
主要应用于车速小于30km/h的车辆,如矿用宽体自卸车、渣土车等工程车辆,因此空气阻力可以忽略。It is mainly used in vehicles with a speed of less than 30km/h, such as mining wide-body dump trucks, muck trucks and other engineering vehicles, so the air resistance can be ignored.
上述任一技术方案中,,所述S2的步骤包括:S21,对车辆的纵向速度和纵向加速度进行状态估计;S22,对滚动阻力加速度项进行估计;S23,对加速度响应延迟时间进行估计,并进行数据对齐。In any of the above technical solutions, the step of S2 includes: S21, estimating the longitudinal speed and longitudinal acceleration of the vehicle; S22, estimating the rolling resistance acceleration term; S23, estimating the acceleration response delay time, and Perform data alignment.
在该技术方案中,对数据进行预处理,形成可供神经网络训练的训练数据集,数据处理主要包括以下步骤:对车辆纵向速度和纵向加速度进行状态估计、对滚动阻力加速度项进行估计、对加速度响应延迟时间估计。In this technical solution, the data is preprocessed to form a training data set for neural network training. The data processing mainly includes the following steps: estimating the longitudinal speed and longitudinal acceleration of the vehicle, estimating the rolling resistance acceleration term, estimating the Acceleration response delay time estimation.
上述任一技术方案中,所述S21的估计方法为:In any of the above technical solutions, the estimation method of S21 is:
S211,先采用下述公式对测量的纵向加速度进行限幅滤波处理,具体为:S211, firstly use the following formula to limit and filter the measured longitudinal acceleration, specifically:
Δa=amea(k)-amea(k-1)Δa=a mea (k)-a mea (k-1)
其中,Δa为第(k-1)次采样到第(k)次采样的增加值、amea表示测量值、amea,limit为限幅后的测量值;Among them, Δa is the increase value from the (k-1)th sampling to the (k)th sampling, a mea represents the measured value, a mea, limit is the measured value after limiting;
S212,进行再处理得到车辆纵向速度和纵向加速度,具体为:S212, perform reprocessing to obtain the longitudinal velocity and longitudinal acceleration of the vehicle, specifically:
基于车辆运动学模型构建离散化状态转移方程和观测方程,The discretized state transition equation and observation equation are constructed based on the vehicle kinematics model,
所述状态转移方程为:The state transition equation is:
即X(k)=AX(k-1)+w(k-1) That is, X(k)=AX(k-1)+w(k-1)
所述观测方程为:The observation equation is:
即Z(k)=HX(k)+ε(k) That is, Z(k)=HX(k)+ε(k)
其中,为状态矢量、为系统矩阵、为传感器观测值、为观测矩阵、T为数据采样周期、k为离散化的采样序列、为系统的过程噪声、为传感器观测噪声、T为数据采样周期、k为离散化的采样序列;in, is the state vector, is the system matrix, are the sensor observations, is the observation matrix, T is the data sampling period, k is the discretized sampling sequence, is the process noise of the system, is the sensor observation noise, T is the data sampling period, and k is the discretized sampling sequence;
S213,最后依据下述公式不断迭代进行预测和更新,具体为:S213, finally predict and update iteratively according to the following formula, specifically:
其中,为k时刻的最优估计状态矢量、为k时刻的预测状态矢量、P(k)为k时刻的协方差矩阵更新值、为k时刻的协方差矩阵预测值、KG(k)为k时刻的卡尔曼矩阵、为预测过程误差协方差矩阵、σv为速度状态转移方程的过程噪声标准差、σa为加速度状态转移方程的过程噪声标准差、为传感器观测噪声协方差矩阵、σv,m为速度传感器噪声的标准差、σa,m为加速度传感器噪声的标准差、I为单位矩阵、HT为观测矩阵H的转置形式。in, is the optimal estimated state vector at time k, is the predicted state vector at time k, P(k) is the updated value of the covariance matrix at time k, is the predicted value of the covariance matrix at time k, K G (k) is the Kalman matrix at time k, is the prediction process error covariance matrix, σ v is the process noise standard deviation of the velocity state transition equation, σ a is the process noise standard deviation of the acceleration state transition equation, is the sensor observation noise covariance matrix, σ v, m is the standard deviation of the velocity sensor noise, σ a, m is the standard deviation of the acceleration sensor noise, I is the identity matrix, and H T is the transposed form of the observation matrix H.
S214,进行移动平均滤波,得到具有车辆的纵向速度、纵向加速度的样本数据集;S214, performing moving average filtering to obtain a sample data set with longitudinal velocity and longitudinal acceleration of the vehicle;
在该技术方案中,数据处理主要包括对车辆纵向速度和纵向加速度进行状态估计、对滚动阻力加速度项进行估计、对加速度响应延迟时间估计以便进行数据对齐。处理后的数据形成训练集TrainingSet,训练集的数据输入为[油门开度、制动开度、车辆纵向速度、变速器当前档位减速比],训练集的数据标签为[等效驱动制动系统车辆纵向加速度];In this technical solution, the data processing mainly includes state estimation of vehicle longitudinal velocity and longitudinal acceleration, estimation of rolling resistance acceleration term, and acceleration response delay time estimation for data alignment. The processed data forms a training set TrainingSet, the data input of the training set is [accelerator opening, brake opening, longitudinal speed of the vehicle, the current gear reduction ratio of the transmission], and the data label of the training set is [equivalent drive braking system] vehicle longitudinal acceleration];
状态获取基于GPS测量纵向速度和IMU测量纵向加速度,采取限幅滤波、二阶线性卡尔曼滤波、移动平均滤波结合的方法对车辆纵向速度和纵向加速度进行估计;State acquisition is based on GPS measurement of longitudinal velocity and IMU measurement of longitudinal acceleration, and the combination of limiting filtering, second-order linear Kalman filtering, and moving average filtering is used to estimate vehicle longitudinal velocity and longitudinal acceleration;
进行移动平均滤波,得到车辆纵向速度、纵向加速度的估计结果更加平滑,更加接近真实值。Perform moving average filtering to get the estimated results of vehicle longitudinal velocity and longitudinal acceleration that are smoother and closer to the real values.
上述任一技术方案中,所述S22具体包括:标定水平路面零油门开度、零制动开度工况下的车辆滑行加速度,剔除离群点数据,得到滚动阻力加速度项的估计值,依据车辆驱动物理模型和车辆制动物理模型得到等效驱动制动系统车辆纵向加速度。In any of the above technical solutions, the S22 specifically includes: calibrating the vehicle coasting acceleration under the working conditions of zero accelerator opening and zero braking opening on the horizontal road surface, eliminating outlier data, and obtaining an estimated value of the rolling resistance acceleration term, according to The vehicle driving physical model and the vehicle braking physical model obtain the vehicle longitudinal acceleration of the equivalent driving braking system.
在该技术方案中,对滚动阻力加速度项的估计,得到滚动阻力加速度项的估计值,即为车辆驱动物理模型和车辆制动物理模型中的gfcosθ项。In this technical solution, the estimated value of the rolling resistance acceleration term is obtained by estimating the rolling resistance acceleration term, which is the gfcosθ term in the vehicle driving physical model and the vehicle braking physical model.
上述任一技术方案中,所述S23具体包括:标定油门指令、制动指令时刻及车辆开始加速、减速的时刻,统计不同油门、制动开度下加速及减速的延迟时间,计算平均加速延迟时间τt及平均减速延迟时间τb,对等效驱动制动系统车辆纵向加速度进行和个采样数据的偏移对齐。In any of the above-mentioned technical solutions, the S23 specifically includes: calibrating the time of the accelerator command, the braking command and the time when the vehicle starts to accelerate and decelerate, count the delay times of acceleration and deceleration under different accelerators and brake openings, and calculate the average acceleration delay. The time τ t and the average deceleration delay time τ b are used to calculate the longitudinal acceleration of the vehicle with the equivalent driving and braking system. and Offset alignment of sample data.
在该技术方案中,通过在不同油门、制动开度下的延迟时间进行统计,并计算计算平均加速延迟时间τt及平均减速延迟时间τb,能够对采样数据进行偏移对齐,保证了得到的数据结果更加真实和更加平滑。In this technical solution, by calculating the delay time under different accelerator and brake opening degrees, and calculating the average acceleration delay time τ t and average deceleration delay time τ b , the sampling data can be offset and aligned, ensuring that The resulting data results are more realistic and smoother.
上述任一技术方案中,所述油门神经网络模型采用多层前馈神经网络,具体包括:一个输入层、两个隐藏层、一个输出层,两个所述隐藏层分别包括110个神经元和20个神经元,所述隐藏层采用Sigmoid作为激活函数,优化器选择Adam,损失函数为均方根误差,学习率0.0001。In any of the above technical solutions, the throttle neural network model adopts a multi-layer feedforward neural network, which specifically includes: an input layer, two hidden layers, and an output layer, and the two hidden layers respectively include 110 neurons and 20 neurons, the hidden layer uses Sigmoid as the activation function, the optimizer selects Adam, the loss function is the root mean square error, and the learning rate is 0.0001.
在该技术方案中,油门神经网络模型采用多层前馈神经网络,能够在在大数据样本下有更好的性能。In this technical solution, the throttle neural network model adopts a multi-layer feedforward neural network, which can have better performance under large data samples.
上述任一技术方案中,所述制动神经网络模型采用多层前馈神经网络,具体包括:一个输入层、一个隐藏层、一个输出层,所述隐藏层包括80个神经元,所述隐藏层采用tanh作为激活函数,优化器选择Adam,损失函数为均方根误差,学习率0.0002。In any of the above technical solutions, the braking neural network model adopts a multi-layer feedforward neural network, which specifically includes: an input layer, a hidden layer, and an output layer, the hidden layer includes 80 neurons, and the hidden layer includes 80 neurons. The layer uses tanh as the activation function, the optimizer selects Adam, the loss function is the root mean square error, and the learning rate is 0.0002.
在该技术方案中,制动神经网络模型采用多层前馈神经网络,能够在在大数据样本下有更好的性能。In this technical solution, the braking neural network model adopts a multi-layer feedforward neural network, which can have better performance under large data samples.
上述任一技术方案中,油门神经网络模型:制动神经网络模型:车辆驱动物理模型为:车辆制动物理模型为:其中,为驱动或制动系统产生的等效加速度,ar为车辆实际加速度,与ar定义正值为加速,负值为减速;θ为道路坡度,定义正值为下坡道,负值为上坡道。;gfcosθ为滚动阻力加速度项,f为滚动阻力系数,g=9.8/s2为重力加速度。In any of the above technical solutions, the accelerator neural network model: Braking neural network model: The vehicle drive physics model is: The physical model of vehicle braking is: in, is the equivalent acceleration generated by the driving or braking system, a r is the actual acceleration of the vehicle, With a r , positive value is defined as acceleration, negative value is deceleration; θ is road slope, positive value is defined as downhill, and negative value is defined as uphill. ; gfcosθ is the rolling resistance acceleration term, f is the rolling resistance coefficient, g=9.8/s 2 is the gravitational acceleration.
本发明的有益效果:Beneficial effects of the present invention:
1.将车辆驱动物理模型、车辆制动物理模型与基于油门神经网络模型、制动神经网络模型结合起来构建更加精准的车辆纵向动力学模型,使得对车辆整体纵向动力学模型的构建问题简化为只针对驱动系统及制动系统所能产生的等效加速度的建模问题,得到的纵向动力学模型更加精准。1. Combine the vehicle driving physical model, the vehicle braking physical model with the accelerator neural network model and the braking neural network model to build a more accurate vehicle longitudinal dynamics model, which simplifies the construction of the overall vehicle longitudinal dynamics model as Only for the modeling problem of the equivalent acceleration generated by the drive system and the braking system, the obtained longitudinal dynamics model is more accurate.
2.将变速箱不同档位的传动比信息加入油门神经网络模型进行训练,可以适用于变速箱档位较少、加速过程不够平滑的车辆,如矿用宽体自卸车、渣土车等工程车辆。2. The transmission ratio information of different gears of the gearbox is added to the accelerator neural network model for training, which can be applied to vehicles with few gearbox gears and the acceleration process is not smooth enough, such as mining wide-body dump trucks, muck trucks and other projects vehicle.
3.在建模中加入了道路坡度的变量,充分考虑了道路坡度对车辆实际加速度表现的影响。3. The variable of road gradient is added in the modeling, and the influence of road gradient on the actual acceleration performance of the vehicle is fully considered.
根据本发明的实施例的附加方面和优点将在下面的描述部分中变得明显,或通过根据本发明的实施例的实践了解到。Additional aspects and advantages of embodiments in accordance with the invention will become apparent in the description section that follows, or learned through practice of embodiments in accordance with the invention.
附图说明Description of drawings
附图仅用于示出具体实施例的目的,而并不认为是对本发明的限制。The drawings are for the purpose of illustrating specific embodiments only, and are not to be considered limiting of the present invention.
图1为本发明的方法整体流程图;Fig. 1 is the overall flow chart of the method of the present invention;
图2为本发明的不同油门\制动开度指令自动采集数据试验图;Fig. 2 is the test diagram of automatic data collection of different accelerator/brake opening commands of the present invention;
图3为本发明的不同油门\制动开度指令下车辆实际的速度试验结果图;Fig. 3 is the actual speed test result diagram of the vehicle under different accelerator/brake opening commands of the present invention;
图4为本发明的车辆试验数据速度状态估计结果图;Fig. 4 is the result diagram of vehicle test data speed state estimation result of the present invention;
图5为本发明的车辆试验数据加速度状态估计结果图;Fig. 5 is the result diagram of the acceleration state estimation result of vehicle test data according to the present invention;
图6为本发明的油门神经网络模型训练结果图;Fig. 6 is the throttle neural network model training result diagram of the present invention;
图7为本发明的制动神经网络模型训练结果图;Fig. 7 is the training result diagram of the braking neural network model of the present invention;
图8为本发明的用于纵向速度控制的车速、等效油门制动加速度与油门制动开度的映射关系三维图。8 is a three-dimensional diagram of the mapping relationship between vehicle speed, equivalent accelerator-braking acceleration and accelerator-braking opening degree for longitudinal speed control according to the present invention.
具体实施方式Detailed ways
为了可以更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above objects, features and advantages of the present invention more clearly, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments may be combined with each other in the case of no conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. Example limitations.
在本实施方式所用的参数符号中,如无特殊说明,下角标带有v的符号代表该参数的速度方向相关值、下角标带有a的符号代表该参数的加速度方向相关值、下角标带有X的代表该参数在状态矢量中的相关值、下角标带有ema的代表该参数传感器观测的相关值。In the parameter symbols used in this embodiment, unless otherwise specified, the symbol marked with v in the lower corner represents the velocity direction correlation value of the parameter, the symbol marked with a in the lower corner represents the acceleration direction correlation value of the parameter, and the lower corner labelling The ones with X represent the correlation value of the parameter in the state vector, and the ones marked with ema in the lower corner represent the correlation value observed by the sensor of the parameter.
请参阅图1,本发明的第一方面提供了一种结合神经网络和物理模型的车辆纵向动力学辨识方法,包括:纵向动力学模型为:Referring to FIG. 1, a first aspect of the present invention provides a vehicle longitudinal dynamics identification method combining a neural network and a physical model, including: the longitudinal dynamics model is:
ar=MODEL(vx,φt,φb,ig,θ道路坡度),其中:ar为车辆实际加速度、vx为车辆纵向速度、φt为油门开度、φb为制动开度、ig为变速器减速比、θ为道路坡度,纵向动力学模型通过方法标定,包括以下步骤:S1,驱动无人车辆行驶,记录包括有变速箱档位的行驶数据;S2,根据行驶数据进行处理,得到可供训练的样本数据集;S3,通过样本数据集分别对油门神经网络模型和制动神经网络模型进行训练;S4,将训练后的油门神经网络模型、制动神经网络模型与车辆驱动物理模型、车辆制动物理模型相结合,以得到无人驾驶车辆的纵向动力学模型;其中,所述行驶数据包括:油门开度、制动开度、纵向速度、纵向加速度和变速器档位。a r =MODEL(v x , φ t , φ b , ig , θ road gradient ), where: a r is the actual acceleration of the vehicle, v x is the longitudinal speed of the vehicle, φ t is the accelerator opening, and φ b is the braking Opening, ig is the transmission reduction ratio, θ is the road gradient, and the longitudinal dynamics model is calibrated by the method, including the following steps: S1, drive the unmanned vehicle to drive, and record the driving data including the transmission gear; S2, according to the driving The data is processed to obtain a sample data set for training; S3, the throttle neural network model and the brake neural network model are trained respectively through the sample data set; S4, the trained throttle neural network model and brake neural network model are trained. Combined with the vehicle driving physical model and the vehicle braking physical model to obtain the longitudinal dynamics model of the unmanned vehicle; wherein, the driving data includes: accelerator opening, braking opening, longitudinal speed, longitudinal acceleration and transmission gear.
本发明提供的一种结合神经网络和物理模型的车辆纵向动力学辨识方法,针对自动驾驶车辆纵向速度控制面临纵向动力学模型复杂,具有强非线性、时变的特征导致建模困难的问题,将车辆的变速器档位及道路坡度信息构建的物理方程与神经网络结合起来,可以更好的表征车辆纵向动力学,可以适用的车辆种类更多,对车辆整体纵向动力学模型的构建问题简化为只针对驱动系统及制动系统所能产生的等效加速度的建模问题,得到的纵向动力学模型更加精准。The invention provides a vehicle longitudinal dynamics identification method combined with a neural network and a physical model, aiming at the problem that the longitudinal speed control of an autonomous driving vehicle faces the complex longitudinal dynamics model, which has strong nonlinear and time-varying characteristics, which leads to difficult modeling. Combining the physical equation constructed by the vehicle's transmission gear and road gradient information with the neural network can better characterize the vehicle's longitudinal dynamics, and can be applied to more types of vehicles. The problem of constructing the overall longitudinal dynamics model of the vehicle is simplified as Only for the modeling problem of the equivalent acceleration generated by the drive system and the braking system, the obtained longitudinal dynamics model is more accurate.
具体地,车辆物理模型基于汽车行驶方程推导得到,包括车辆驱动物理模型和车辆制动物理模型;汽车行驶方程如下:Specifically, the vehicle physical model is derived based on the vehicle driving equation, including the vehicle driving physical model and the vehicle braking physical model; the vehicle driving equation is as follows:
Ft=Ff+Fi+Fw+Fj F t =F f +F i +F w +F j
式中,为驱动力、Ff=mgfcosθ为滚动阻力、Fi=mgsinθ为坡度阻力、为空气阻力,在低速情况下可以忽略、Fj=kmar为加速阻力、Ttq为发动机输出扭矩、r为车轮半径、ig为变速箱传动比、i0为主减速器传动比、ηT为传动系统效率、m为车辆质量、g=9.8m/s2为重力加速度、θ为道路坡度、CD为车辆空气阻力系数、A为迎风面积、v为车辆纵向速度、ar为车辆纵向加速度、k为质量换算系数,f为滚动阻力系数。In the formula, is the driving force, F f = mgfcosθ is the rolling resistance, F i = mgsinθ is the slope resistance, is the air resistance, which can be ignored at low speed, F j = kmar is the acceleration resistance, T tq is the output torque of the engine, r is the wheel radius, ig is the transmission ratio of the gearbox, i 0 is the transmission ratio of the main reducer, η T is the efficiency of the transmission system, m is the mass of the vehicle, g=9.8m/s 2 is the acceleration of gravity, θ is the road gradient, C D is the air resistance coefficient of the vehicle, A is the windward area, v is the longitudinal speed of the vehicle, and a r is the vehicle Longitudinal acceleration, k is the mass conversion coefficient, and f is the rolling resistance coefficient.
车辆驱动物理模型为: The vehicle drive physics model is:
车辆制动物理模型为: The physical model of vehicle braking is:
为驱动或制动系统产生的等效加速度,ar为车辆实际加速度,与ar定义正值为加速,负值为减速;θ为道路坡度,定义正值为下坡道,负值为上坡道。 is the equivalent acceleration generated by the driving or braking system, a r is the actual acceleration of the vehicle, With a r , positive value is defined as acceleration, negative value is deceleration; θ is road slope, positive value is defined as downhill, and negative value is defined as uphill.
具体地,神经网络模型具体包括油门神经网络模型和制动神经网络模型其中:vx为车辆纵向速度、φt为油门开度、φb为制动开度、ig为变速器减速比、为等效驱动制动系统车辆纵向加速度。油门神经网络模型用于标定不同速度、不同油门开度所能够产生的等效加速度,制动神经网络模型用于标定不同速度、不同制动开度所能够产生的等效加速度,结合道路坡度加速度项和车辆滚动阻力加速度项,可以综合反映车辆在任何工况下的加速度表现,构成车辆纵向动力学模型。Specifically, the neural network model specifically includes a throttle neural network model and braking neural network model Where: v x is the longitudinal speed of the vehicle, φ t is the accelerator opening, φ b is the brake opening, ig is the transmission reduction ratio, is the vehicle longitudinal acceleration for the equivalent drive braking system. The accelerator neural network model is used to calibrate the equivalent acceleration generated by different speeds and different accelerator openings, and the braking neural network model is used to calibrate the equivalent accelerations generated by different speeds and different braking openings, combined with the road gradient acceleration term and vehicle rolling resistance acceleration term, which can comprehensively reflect the acceleration performance of the vehicle under any working conditions, and constitute the vehicle longitudinal dynamics model.
上述任一实施例中,通过纵向动力学模型的逆向转换,得到车辆纵向控制参数映射关系,具体为下述公式:In any of the above embodiments, through the reverse conversion of the longitudinal dynamics model, the mapping relationship of the vehicle longitudinal control parameters is obtained, which is specifically the following formula:
(φt,φb)=MAP(vx,a期望速度,θ道路坡度,ig)(φ t , φ b )=MAP(v x , a desired speed , θ road gradient , i g )
其中,所述车辆纵向控制参数映射关系用于无人驾驶车辆纵向速度的控制,在给定当前车辆运行状态(vx,θ道路坡度,ig)和纵向控制率取值(a期望速度)时,查询得到车辆要执行的油门、制动开度值(φt,φb)。Wherein, the vehicle longitudinal control parameter mapping relationship is used for the control of the longitudinal speed of the unmanned vehicle, given the current vehicle operating state (v x , θ road gradient , i g ) and the value of the longitudinal control rate (a desired speed ) When , query to obtain the accelerator and brake opening values (φ t , φ b ) to be executed by the vehicle.
在该实施例中,逆动力学模型可以转化为车辆控制参数映射表应用于无人驾驶车辆的纵向速度控制,实现纵向速度控制算法输出的期望加速度向执行层可以接收的油门开度、制动开度指令的映射;In this embodiment, the inverse dynamics model can be transformed into a vehicle control parameter mapping table and applied to the longitudinal speed control of the unmanned vehicle, so as to realize the desired acceleration output by the longitudinal speed control algorithm to the accelerator opening and braking that can be received by the executive layer. Mapping of opening instructions;
该映射关系可用于车辆纵向速度控制。特定车辆纵向控制参数映射关系指的是以当前车辆变速器档位减速比、车辆纵向速度、道路坡度、期望的加速度作为输入,得到车辆线控系统可以接收的油门开度值和制动开度值。This mapping relationship can be used for vehicle longitudinal speed control. The mapping relationship of specific vehicle longitudinal control parameters means that the current vehicle transmission gear reduction ratio, vehicle longitudinal speed, road gradient, and expected acceleration are used as inputs to obtain the accelerator opening value and brake opening value that the vehicle control-by-wire system can receive. .
上述任一实施例中,S1的步骤包括:S11,设置不同的油门开度和不同的制动开度;S12,驱动无人车辆在水平道路上,在预设范围内以不同的速度行驶;S13,采集无人车辆行驶时的油门开度、制动开度、纵向速度、纵向加速度、变速器档位;其中,预设范围为0km/h-30km/h,所述不同的油门开度和制动开度为0%,10%,20%,……,100%的离散化开度指令。In any of the above-mentioned embodiments, the steps of S1 include: S11, setting different accelerator opening degrees and different brake opening degrees; S12, driving the unmanned vehicle on a level road and running at different speeds within a preset range; S13, collect the accelerator opening, brake opening, longitudinal speed, longitudinal acceleration, and transmission gear position when the unmanned vehicle is running; wherein, the preset range is 0km/h-30km/h, and the different accelerator openings and The brake opening is 0%, 10%, 20%, ..., 100% of the discrete opening command.
在该实施例中,选择平坦的路面,自动驾驶车辆使用预先内置的采集程序进行采集实验,按照固定的油门\制动开度要求采集车辆纵向速度、纵向加速度、变速器档位(含减速比)等车辆状态数据,得到实车数据[油门开度、制动开度、纵向速度、纵向加速度、变速器档位];In this embodiment, a flat road is selected, and the automatic driving vehicle uses the pre-built acquisition program to conduct the acquisition experiment, and collects the vehicle longitudinal speed, longitudinal acceleration, and transmission gear (including the reduction ratio) according to the fixed accelerator/brake opening requirements. Wait for the vehicle status data to get real vehicle data [accelerator opening, brake opening, longitudinal speed, longitudinal acceleration, transmission gear];
主要应用于车速小于30km/h的车辆,如矿用宽体自卸车、渣土车等工程车辆,因此空气阻力可以忽略。It is mainly used in vehicles with a speed of less than 30km/h, such as mining wide-body dump trucks, muck trucks and other engineering vehicles, so the air resistance can be ignored.
上述任一实施例中,S2的步骤包括:S21,对车辆的纵向速度和纵向加速度进行状态估计;S22,对滚动阻力加速度项进行估计;S23,对加速度响应延迟时间进行估计,并进行数据对齐。In any of the above-mentioned embodiments, the step of S2 includes: S21, the longitudinal velocity and longitudinal acceleration of the vehicle are state estimated; S22, the rolling resistance acceleration term is estimated; S23, the acceleration response delay time is estimated, and data alignment is performed .
在该实施例中,对数据进行预处理,形成可供神经网络训练的训练数据集,数据处理主要包括以下步骤:对车辆纵向速度和纵向加速度进行状态估计、对滚动阻力加速度项进行估计、对加速度响应延迟时间估计。In this embodiment, the data is preprocessed to form a training data set for neural network training. The data processing mainly includes the following steps: estimating the longitudinal speed and longitudinal acceleration of the vehicle, estimating the rolling resistance acceleration term, Acceleration response delay time estimation.
上述任一实施例中,S21的估计方法为:In any of the above-mentioned embodiments, the estimation method of S21 is:
S211,先采用下述公式对测量的纵向加速度进行限幅滤波处理,具体为:S211, firstly use the following formula to limit and filter the measured longitudinal acceleration, specifically:
Δa=amea(k)-amea(k-1)Δa=a mea (k)-a mea (k-1)
其中,Δa为第(k-1)次采样到第(k)次采样的增加值、amea表示测量值、amea,limit为限幅后的测量值;Among them, Δa is the increase value from the (k-1)th sampling to the (k)th sampling, a mea represents the measured value, a mea, limit is the measured value after limiting;
S212,进行再处理得到车辆纵向速度和纵向加速度,具体为:S212, perform reprocessing to obtain the longitudinal velocity and longitudinal acceleration of the vehicle, specifically:
基于车辆运动学模型构建离散化状态转移方程和观测方程,The discretized state transition equation and observation equation are constructed based on the vehicle kinematics model,
状态转移方程为:The state transition equation is:
即X(k)=AX(k-1)+w(k-1) That is, X(k)=AX(k-1)+w(k-1)
观测方程为:The observation equation is:
即Z(k)=HX(k)+ε(k) That is, Z(k)=HX(k)+ε(k)
其中,为状态矢量、为系统矩阵、为传感器观测值、为观测矩阵、T为数据采样周期、k为离散化的采样序列、为系统的过程噪声、为传感器观测噪声;in, is the state vector, is the system matrix, are the sensor observations, is the observation matrix, T is the data sampling period, k is the discretized sampling sequence, is the process noise of the system, Observe noise for the sensor;
S213,最后依据下述公式不断迭代进行预测和更新,具体为:S213, finally predict and update iteratively according to the following formula, specifically:
其中,为k时刻的最优估计状态矢量、为k时刻的预测状态矢量、P(k)为k时刻的协方差矩阵更新值、为k时刻的协方差矩阵预测值、kG(k)为k时刻的卡尔曼矩阵、为预测过程误差协方差矩阵、σv为速度状态转移方程的过程噪声标准差、σa为加速度状态转移方程的过程噪声标准差、为传感器观测噪声协方差矩阵、σv,m为速度传感器噪声的标准差、σa,m为加速度传感器噪声的标准差、I为单位矩阵、HT为观测矩阵H的转置形式;in, is the optimal estimated state vector at time k, is the predicted state vector at time k, P(k) is the updated value of the covariance matrix at time k, is the predicted value of the covariance matrix at time k, k G (k) is the Kalman matrix at time k, is the prediction process error covariance matrix, σ v is the process noise standard deviation of the velocity state transition equation, σ a is the process noise standard deviation of the acceleration state transition equation, is the sensor observation noise covariance matrix, σ v, m is the standard deviation of the speed sensor noise, σ a, m is the standard deviation of the acceleration sensor noise, I is the identity matrix, H T is the transpose form of the observation matrix H;
S214,进行移动平均滤波,得到具有车辆的纵向速度、纵向加速度的样本数据集。S214 , performing moving average filtering to obtain a sample data set having the longitudinal velocity and longitudinal acceleration of the vehicle.
在该实施例中,数据处理主要包括对车辆纵向速度和纵向加速度进行状态估计、对滚动阻力加速度项进行估计、对加速度响应延迟时间估计以便进行数据对齐。处理后的数据形成训练集TrainingSet,训练集的数据输入为[油门开度、制动开度、车辆纵向速度、变速器当前档位减速比],训练集的数据标签为[等效驱动制动系统车辆纵向加速度],速度传感器选用GPS速度传感器,加速度传感器选用IMU加速度传感器;In this embodiment, data processing mainly includes state estimation of vehicle longitudinal speed and longitudinal acceleration, estimation of rolling resistance acceleration term, and acceleration response delay time estimation for data alignment. The processed data forms a training set TrainingSet, the data input of the training set is [accelerator opening, brake opening, longitudinal speed of the vehicle, the current gear reduction ratio of the transmission], and the data label of the training set is [equivalent drive braking system] Vehicle longitudinal acceleration], the speed sensor selects the GPS speed sensor, and the acceleration sensor selects the IMU acceleration sensor;
状态获取基于GPS测量纵向速度和IMU测量纵向加速度,采取限幅滤波、二阶线性卡尔曼滤波、移动平均滤波结合的方法对车辆纵向速度和纵向加速度进行估计;State acquisition is based on GPS measurement of longitudinal velocity and IMU measurement of longitudinal acceleration, and the combination of limiting filtering, second-order linear Kalman filtering, and moving average filtering is used to estimate vehicle longitudinal velocity and longitudinal acceleration;
进行移动平均滤波,得到车辆纵向速度、纵向加速度的估计结果更加平滑,更加接近真实值;Perform moving average filtering to obtain the estimated results of vehicle longitudinal speed and longitudinal acceleration that are smoother and closer to the real values;
为状态矢量,由每个采样时刻的车辆纵向速度和纵向加速度组成; is the state vector, which consists of the longitudinal velocity and longitudinal acceleration of the vehicle at each sampling moment;
为传感器观测值,由每个采样时刻的GPS纵向测量速度和IMU纵向测量加速度组成; is the sensor observation value, which consists of the GPS longitudinal measurement velocity and the IMU longitudinal measurement acceleration at each sampling time;
为系统的过程噪声,由纵向速度和纵向加速度进行状态转移预测时的两个过程噪声构成; is the process noise of the system, which is composed of two process noises when the longitudinal velocity and longitudinal acceleration are used for state transition prediction;
速度预测过程噪声服从高斯分布加速度预测过程噪声服从高斯分布均值为0,方差分别为和 为传感器观测噪声,GPS速度传感器观测噪声服从高斯分布IMU加速度传感器观测噪声服从高斯分布 The noise in the speed prediction process follows a Gaussian distribution Acceleration prediction process noise obeys Gaussian distribution The mean is 0 and the variances are and For the sensor observation noise, the GPS speed sensor observation noise obeys a Gaussian distribution The observation noise of the IMU accelerometer obeys a Gaussian distribution
上述任一实施例中,S22具体包括:标定水平路面零油门开度、零制动开度工况下的车辆滑行加速度,剔除离群点数据,得到滚动阻力加速度项的估计值,依据车辆驱动物理模型和车辆制动物理模型得到等效驱动制动系统车辆纵向加速度。In any of the above-mentioned embodiments, S22 specifically includes: calibrating the vehicle coasting acceleration under the operating conditions of zero accelerator opening and zero braking opening on the horizontal road surface, eliminating outlier data, obtaining an estimated value of the rolling resistance acceleration term, and driving the vehicle according to the vehicle drive. The physical model and the vehicle braking physics model obtain the vehicle longitudinal acceleration of the equivalent drive braking system.
在该实施例中,对滚动阻力加速度项的估计,得到滚动阻力加速度项的估计值,即为车辆驱动物理模型和车辆制动物理模型中的gfcosθ项。In this embodiment, the estimated value of the rolling resistance acceleration term is obtained by estimating the rolling resistance acceleration term, which is the gfcosθ term in the vehicle driving physical model and the vehicle braking physical model.
上述任一实施例中,S23具体包括:标定油门指令、制动指令时刻及车辆开始加速、减速的时刻,统计不同油门、制动开度下加速及减速的延迟时间,计算平均加速延迟时间τt及平均减速延迟时间τb,对等效驱动制动系统车辆纵向加速度进行和个采样数据的偏移对齐。In any of the above-mentioned embodiments, S23 specifically includes: calibrating the accelerator command, the braking command time and the time when the vehicle starts to accelerate and decelerate, count the delay times of acceleration and deceleration under different accelerators and brake openings, and calculate the average acceleration delay time τ. t and the average deceleration delay time τ b , the longitudinal acceleration of the vehicle in the equivalent driving braking system is calculated. and Offset alignment of sample data.
在该实施例中,通过在不同油门、制动开度下的延迟时间进行统计,并计算计算平均加速延迟时间τt及平均减速延迟时间τb,,能够对采样数据进行偏移对齐,保证了得到的数据结果更加真实和更加平滑。In this embodiment, by counting the delay times under different accelerator and brake opening degrees, and calculating the average acceleration delay time τ t and average deceleration delay time τ b , the sample data can be offset and aligned to ensure that The resulting data results are more realistic and smoother.
上述任一实施例中,油门神经网络模型采用多层前馈神经网络,具体包括:一个输入层、两个隐藏层、一个输出层,两个隐藏层分别包括110个神经元和20个神经元,隐藏层采用Sigmoid作为激活函数,优化器选择Adam,损失函数为均方根误差,学习率0.0001。In any of the above embodiments, the throttle neural network model adopts a multi-layer feedforward neural network, which specifically includes: an input layer, two hidden layers, and an output layer, and the two hidden layers respectively include 110 neurons and 20 neurons. , the hidden layer uses Sigmoid as the activation function, the optimizer selects Adam, the loss function is the root mean square error, and the learning rate is 0.0001.
在该实施例中,油门神经网络模型采用多层前馈神经网络,能够在在大数据样本下有更好的性能。In this embodiment, the throttle neural network model adopts a multi-layer feedforward neural network, which can have better performance under large data samples.
上述任一实施例中,制动神经网络模型采用多层前馈神经网络,具体包括:一个输入层、一个隐藏层、一个输出层,隐藏层包括80个神经元,隐藏层采用tanh作为激活函数,优化器选择Adam,损失函数为均方根误差,学习率0.0002。In any of the above embodiments, the braking neural network model adopts a multi-layer feedforward neural network, which specifically includes: an input layer, a hidden layer, and an output layer, the hidden layer includes 80 neurons, and the hidden layer uses tanh as the activation function. , the optimizer chooses Adam, the loss function is the root mean square error, and the learning rate is 0.0002.
在该实施例中,制动神经网络模型采用多层前馈神经网络,能够在在大数据样本下有更好的性能。In this embodiment, the braking neural network model adopts a multi-layer feedforward neural network, which can have better performance under large data samples.
上述任一实施例中,油门神经网络模型:制动神经网络模型:车辆驱动物理模型为:车辆制动物理模型为:其中,为驱动或制动系统产生的等效加速度,ar为车辆实际加速度,与ar定义正值为加速,负值为减速;θ为道路坡度,定义正值为下坡道,负值为上坡道。;gfcosθ为滚动阻力加速度项,f为滚动阻力系数,g=9.8m/s2为重力加速度。In any of the above embodiments, the throttle neural network model: Braking neural network model: The vehicle drive physics model is: The physical model of vehicle braking is: in, is the equivalent acceleration generated by the driving or braking system, a r is the actual acceleration of the vehicle, With a r , positive value is defined as acceleration, negative value is deceleration; θ is road slope, positive value is defined as downhill, and negative value is defined as uphill. ; gfcosθ is the rolling resistance acceleration term, f is the rolling resistance coefficient, g=9.8m/s 2 is the gravitational acceleration.
实施例1Example 1
如图2-8所示,车辆为一辆矿用宽体自卸车,最高时速为40km/h,实验数据采集场地为平坦的硬土路。As shown in Figure 2-8, the vehicle is a mining wide-body dump truck with a maximum speed of 40km/h, and the experimental data collection site is a flat hard dirt road.
第一步:启动编写的自动驾驶程序,在水平道路运行无人驾驶矿用宽体自卸车,程序设置不同油门开度(0.0,0.1,0.2,…,0.9,1.0)、不同制动开度(0.0,0.1,0.2,…,0.9,1.0)采集不同车速下的行驶数据。车速由0km/h加速到最大车速23km/h再减速到0km/h,数据采集试验如图2和图3所示。Step 1: Start the programmed automatic driving program, run the unmanned mining wide-body dump truck on the level road, and set different accelerator opening degrees (0.0, 0.1, 0.2, ..., 0.9, 1.0) and different brake opening degrees in the program. (0.0, 0.1, 0.2, …, 0.9, 1.0) to collect driving data at different speeds. The vehicle speed is accelerated from 0km/h to the maximum speed of 23km/h and then decelerated to 0km/h. The data collection test is shown in Figure 2 and Figure 3.
第二步:对数据进行预处理,形成可供神经网络训练的训练数据集。数据处理主要包括以下步骤:对车辆纵向速度和纵向加速度进行状态估计、对滚动阻力加速度项进行估计、对加速度响应延迟时间估计。Step 2: Preprocess the data to form a training data set for neural network training. The data processing mainly includes the following steps: estimating the longitudinal velocity and longitudinal acceleration of the vehicle, estimating the rolling resistance acceleration term, and estimating the acceleration response delay time.
对车辆纵向速度和纵向加速度进行状态估计:包括限幅滤波、二阶线性卡尔曼滤波、移动平均滤波。最后的实验采集数据进行速度及加速度估计的结果如下图4、图5所示。State estimation for vehicle longitudinal velocity and longitudinal acceleration: including limiting filtering, second-order linear Kalman filtering, and moving average filtering. The results of velocity and acceleration estimation from the data collected in the final experiment are shown in Figures 4 and 5 below.
第三步:进行网络训练,对样本数据集进行网络训练,数据采集来自水平路面,等效驱动制动系统车辆纵向加速度除以每个采样时刻的减速器传递博,对修正后的等效驱动制动系统车辆纵向加速度进行油门神经网络模型和制动神经网络模型的训练。The third step: carry out network training, conduct network training on the sample data set, the data is collected from the horizontal road, the equivalent driving and braking system vehicle longitudinal acceleration is divided by the transmission speed of the reducer at each sampling time, and the corrected equivalent driving The vehicle longitudinal acceleration of the braking system is used to train the accelerator neural network model and the braking neural network model.
第四步,模型生成,油门神经网络模型和制动神经网络模型的训练的结果如下图6、图7所示,结合车辆驱动物理模型和车辆制动物理模型,最终得到特定车辆的精准动力学模型ar=MODEL(vx,φt,φb,ig,θ道路坡度)。The fourth step, model generation, the results of the training of the accelerator neural network model and the braking neural network model are shown in Figures 6 and 7 below. Combined with the vehicle driving physical model and the vehicle braking physical model, the precise dynamics of a specific vehicle is finally obtained. Model a r =MODEL(v x , φ t , φ b , ig , θ road gradient ).
矿用宽体自卸车的精准动力学模型经过逆向转换可得到矿用宽体自卸车纵向控制参数映射关系(φt,φb)=MAP(vx,a期望速度,θ道路坡度,ig),可以应用于无人驾驶车辆的纵向速度控制,实现速度控制算法中期望加速度到油门、制动开度的合理映射。如图8所示,为在水平路面工况下,矿用宽体自卸车车速、等效油门制动加速度与油门制动开度(-1到0为制定开度,0到1为油门开度)的映射关系三维图,在使用过程中可以结合实时的档位及道路坡度信息将期望加速度换算为等效油门制动加速度,然后查该映射关系得到油门制动开度,用于车辆的纵向速度控制The precise dynamic model of the mining wide-body dump truck can be reversely converted to obtain the longitudinal control parameter mapping relationship of the mining wide-body dump truck (φ t , φ b )=MAP(v x , a desired speed , θ road gradient , i g ), which can be applied to the longitudinal speed control of unmanned vehicles to achieve a reasonable mapping of the expected acceleration to the accelerator and brake opening in the speed control algorithm. As shown in Figure 8, under the condition of horizontal road surface, the speed of the mining wide-body dump truck, the equivalent accelerator braking acceleration and the accelerator braking opening (-1 to 0 are the specified opening, 0 to 1 is the accelerator opening In the process of use, the expected acceleration can be converted into the equivalent accelerator braking acceleration in combination with the real-time gear position and road gradient information, and then check the mapping relationship to obtain the accelerator braking opening, which is used for the vehicle's Longitudinal speed control
在本发明的描述中,需要理解的是,术语“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that the terms "portrait", "horizontal", "upper", "lower", "front", "rear", "left", "right", "vertical", The orientation or positional relationship indicated by "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention, rather than indicating or It is implied that the device or element referred to must have a particular orientation, be constructed and operate in a particular orientation, and therefore should not be construed as limiting the invention.
以上的实施例仅是对本发明的优选方式进行描述,并非对本发明的范围进行限定,在不脱离本发明设计精神的前提下,本领域普通技术人员对本发明的技术方案做出的各种变形和改进,均应落入本发明权利要求书确定的保护范围内。The above embodiments are only to describe the preferred mode of the present invention, but not to limit the scope of the present invention. On the premise of not departing from the design spirit of the present invention, those of ordinary skill in the art can make various deformations and modifications to the technical solutions of the present invention. Improvements should all fall within the protection scope determined by the claims of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210817405.9A CN115238576A (en) | 2022-07-12 | 2022-07-12 | A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210817405.9A CN115238576A (en) | 2022-07-12 | 2022-07-12 | A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115238576A true CN115238576A (en) | 2022-10-25 |
Family
ID=83673240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210817405.9A Pending CN115238576A (en) | 2022-07-12 | 2022-07-12 | A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115238576A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174172A1 (en) * | 2023-02-23 | 2024-08-29 | 华为技术有限公司 | Modeling method and apparatus for vehicle dynamics model, and computing device |
-
2022
- 2022-07-12 CN CN202210817405.9A patent/CN115238576A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174172A1 (en) * | 2023-02-23 | 2024-08-29 | 华为技术有限公司 | Modeling method and apparatus for vehicle dynamics model, and computing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110610260B (en) | Driving energy consumption prediction system, method, storage medium and equipment | |
CN110696815B (en) | A predictive energy management method for connected hybrid electric vehicles | |
WO2021212728A1 (en) | Unmanned vehicle lane changing decision-making method and system based on adversarial imitation learning | |
Yin et al. | Data-driven models for train control dynamics in high-speed railways: LAG-LSTM for train trajectory prediction | |
CN103914985B (en) | A Method for Predicting the Future Speed Trajectory of a Hybrid Electric Bus | |
CN107168104B (en) | Observer-based longitudinal speed control method for pure electric intelligent automobile | |
CN103381826B (en) | Based on the self-adapting cruise control method of approximate Policy iteration | |
CN106840097A (en) | A kind of road grade method of estimation based on adaptive extended kalman filtering | |
CN111267830A (en) | Hybrid power bus energy management method, device and storage medium | |
CN110910531B (en) | Rapid pavement friction coefficient detection method based on vehicle-mounted OBD information | |
CN105136469A (en) | Unmanned vehicle speed control method based on PSO and RBF neutral network | |
Zhang et al. | Driving force coordinated control of an 8× 8 in-wheel motor drive vehicle with tire-road friction coefficient identification | |
CN111267867A (en) | Method and device for constructing motion characteristic model of unmanned vehicle | |
CN113806861A (en) | Two-step structure vehicle mass and road gradient estimation method | |
CN115303289A (en) | Vehicle dynamics model based on depth Gaussian, training method, intelligent vehicle trajectory tracking control method and terminal equipment | |
CN115238576A (en) | A Vehicle Longitudinal Dynamics Identification Method Combining Neural Network and Physical Model | |
CN112198799B (en) | A deep learning-based high-speed train parking control method and system | |
Piccinini et al. | A predictive neural hierarchical framework for on-line time-optimal motion planning and control of black-box vehicle models | |
CN111198032A (en) | Real-time estimation method for automobile mass | |
Shao et al. | Machine learning enabled traffic prediction for speed optimization of connected and autonomous electric vehicles | |
CN117818706B (en) | Method, system, equipment and medium for predicting speed of medium-low speed maglev train | |
Gregory et al. | Data-driven vehicle dynamic model for autonomous vehicle applications | |
Wu et al. | An optimal longitudinal control strategy of platoons using improved particle swarm optimization | |
Nugroho et al. | Vehicle Speed Profile Optimization for Fuel Efficient Eco-Driving via Koopman Linear Predictor and Model Predictive Control | |
Mo et al. | Neural networks based real-time transit passenger volume prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |