CN118306403A - Vehicle track prediction and behavior decision method and system considering driving style - Google Patents
Vehicle track prediction and behavior decision method and system considering driving style Download PDFInfo
- Publication number
- CN118306403A CN118306403A CN202410499805.9A CN202410499805A CN118306403A CN 118306403 A CN118306403 A CN 118306403A CN 202410499805 A CN202410499805 A CN 202410499805A CN 118306403 A CN118306403 A CN 118306403A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- driving
- data set
- trajectory prediction
- behavior
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000006399 behavior Effects 0.000 claims abstract description 107
- 239000013598 vector Substances 0.000 claims abstract description 64
- 230000008859 change Effects 0.000 claims abstract description 56
- 238000005457 optimization Methods 0.000 claims abstract description 23
- 230000006403 short-term memory Effects 0.000 claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims abstract description 12
- 238000013136 deep learning model Methods 0.000 claims abstract description 10
- 230000001133 acceleration Effects 0.000 claims description 31
- 238000004422 calculation algorithm Methods 0.000 claims description 26
- 239000013256 coordination polymer Substances 0.000 claims description 21
- 230000006870 function Effects 0.000 claims description 14
- 238000012360 testing method Methods 0.000 claims description 14
- 238000012549 training Methods 0.000 claims description 14
- 238000013527 convolutional neural network Methods 0.000 claims description 8
- 238000000513 principal component analysis Methods 0.000 claims description 8
- YBJHBAHKTGYVGT-ZKWXMUAHSA-N (+)-Biotin Chemical compound N1C(=O)N[C@@H]2[C@H](CCCCC(=O)O)SC[C@@H]21 YBJHBAHKTGYVGT-ZKWXMUAHSA-N 0.000 claims description 6
- 239000002356 single layer Substances 0.000 claims description 6
- FEPMHVLSLDOMQC-UHFFFAOYSA-N virginiamycin-S1 Natural products CC1OC(=O)C(C=2C=CC=CC=2)NC(=O)C2CC(=O)CCN2C(=O)C(CC=2C=CC=CC=2)N(C)C(=O)C2CCCN2C(=O)C(CC)NC(=O)C1NC(=O)C1=NC=CC=C1O FEPMHVLSLDOMQC-UHFFFAOYSA-N 0.000 claims description 6
- 230000009467 reduction Effects 0.000 claims description 5
- 238000013528 artificial neural network Methods 0.000 claims description 4
- 238000007621 cluster analysis Methods 0.000 claims description 4
- 238000003064 k means clustering Methods 0.000 claims description 4
- 230000015654 memory Effects 0.000 claims description 4
- 230000008447 perception Effects 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 11
- 230000008569 process Effects 0.000 description 14
- 230000003542 behavioural effect Effects 0.000 description 9
- 230000000875 corresponding effect Effects 0.000 description 8
- 238000013461 design Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000013135 deep learning Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012706 support-vector machine Methods 0.000 description 2
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013079 data visualisation Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000556 factor analysis Methods 0.000 description 1
- 238000005206 flow analysis Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000010410 layer Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012067 mathematical method Methods 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 210000000697 sensory organ Anatomy 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
- B60W40/08—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to drivers or passengers
- B60W40/09—Driving style or behaviour
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W30/00—Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
- B60W30/18—Propelling the vehicle
- B60W30/18009—Propelling the vehicle related to particular drive situations
- B60W30/18163—Lane change; Overtaking manoeuvres
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W2050/0001—Details of the control system
- B60W2050/0002—Automatic control, details of type of controller or control system architecture
- B60W2050/0004—In digital systems, e.g. discrete-time systems involving sampling
- B60W2050/0005—Processor details or data handling, e.g. memory registers or chip architecture
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W2050/0001—Details of the control system
- B60W2050/0019—Control system elements or transfer functions
- B60W2050/0028—Mathematical models, e.g. for simulation
- B60W2050/0031—Mathematical model of the vehicle
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Human Computer Interaction (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明提供一种考虑驾驶风格的车辆轨迹预测与行为决策方法和系统,涉及自动驾驶技术领域。所述方法包括:获取驾驶行为数据集,并进行数据处理,得到用于车辆轨迹预测的平衡化数据集,所述平衡化数据集中还包含基于驾驶风格分类器得到的驾驶风格向量标签;构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络,用于进行车辆轨迹预测;其中,利用所述平衡化数据集对长短时记忆网络进行训练和测试;结合多车道变道场景的安全因子、舒适因子、效率因子、增益因子,以及驾驶风格向量标签和车辆轨迹预测信息,采用深度学习模型实现车道变更行为决策。本发明可提高车辆行为决策的准确性、安全性和实时性。
The present invention provides a vehicle trajectory prediction and behavior decision method and system considering driving style, and relates to the field of autonomous driving technology. The method comprises: obtaining a driving behavior data set, and performing data processing to obtain a balanced data set for vehicle trajectory prediction, wherein the balanced data set also includes a driving style vector label obtained based on a driving style classifier; constructing a long short-term memory network based on Bayesian optimization fused with a discrete cosine transform attention mechanism for vehicle trajectory prediction; wherein the long short-term memory network is trained and tested using the balanced data set; combining the safety factor, comfort factor, efficiency factor, gain factor of a multi-lane lane change scenario, as well as the driving style vector label and vehicle trajectory prediction information, and using a deep learning model to implement lane change behavior decision. The present invention can improve the accuracy, safety and real-time performance of vehicle behavior decision-making.
Description
技术领域Technical Field
本发明涉及自动驾驶技术领域,特别是指一种考虑驾驶风格的车辆轨迹预测与行为决策方法和系统。The present invention relates to the field of autonomous driving technology, and in particular to a vehicle trajectory prediction and behavior decision-making method and system considering driving style.
背景技术Background technique
自动驾驶技术是近年来汽车行业和信息技术领域的热门话题之一。这项技术的发展和应用不仅能够改善交通安全、提高道路利用率,还有望彻底改变人们的出行方式和城市交通系统。在一套相对成熟的自动驾驶技术体系中,环境感知模块可类比为车辆的感知器官,而决策规划模块则可视作车辆的智能中枢。现有的行为决策算法虽然能够在一定程度上保证行车安全和效率,但通常缺乏处理复杂路况的灵活性。Autonomous driving technology has been one of the hot topics in the automotive industry and information technology field in recent years. The development and application of this technology can not only improve traffic safety and increase road utilization, but also is expected to completely change people's travel methods and urban transportation systems. In a relatively mature autonomous driving technology system, the environmental perception module can be compared to the sensory organ of the vehicle, while the decision-making and planning module can be regarded as the intelligent center of the vehicle. Although the existing behavioral decision-making algorithms can ensure driving safety and efficiency to a certain extent, they usually lack the flexibility to handle complex road conditions.
目前,现有的行为决策技术还存在以下问题:At present, the existing behavioral decision-making technology still has the following problems:
1.现有的行为决策算法往往过于理想化,绝大部分决策方法都是建立在先验规则基础之上的,而在车辆实际驾驶中,会遇到包括交通场景覆盖面不广、规则设计难度大以及拓展性受限等一系列问题,现有技术难以处理。1. Existing behavioral decision-making algorithms are often too idealistic. Most decision-making methods are based on a priori rules. However, in actual vehicle driving, a series of problems will be encountered, including limited coverage of traffic scenarios, difficulty in rule design, and limited scalability, which are difficult to handle with existing technologies.
2.当前道路上仍存在自动驾驶汽车和手动驾驶汽车并行的情况,为了确保道路交通的安全和流畅,必须确保自动驾驶汽车和手动驾驶汽车之间的行为更加一致。面对相同的驾驶情境时,不同风格的驾驶员会做出不同的行为决策,有些驾驶员选择变道,而有些则选择继续行驶在当前车道。然而,现有技术没有考虑各类驾驶员或乘客的个性化偏好。2. Currently, there are still situations where self-driving cars and manually driven cars coexist on the road. In order to ensure the safety and smoothness of road traffic, it is necessary to ensure that the behavior between self-driving cars and manually driven cars is more consistent. When faced with the same driving situation, drivers with different styles will make different behavioral decisions. Some drivers choose to change lanes, while others choose to continue driving in the current lane. However, existing technologies do not take into account the personalized preferences of various types of drivers or passengers.
3.想要在城市等复杂场景中实现安全、高效、舒适地行驶,准确预测周围车辆的行驶轨迹是必须解决的关键问题之一。现有技术未考虑自我车辆与周围车辆之间复杂的交互关系,没有将车辆的预测轨迹纳入决策系统,影响决策的准确性。3. To achieve safe, efficient and comfortable driving in complex scenarios such as cities, accurately predicting the driving trajectory of surrounding vehicles is one of the key issues that must be solved. Existing technologies do not consider the complex interactive relationship between the self-vehicle and surrounding vehicles, and do not incorporate the predicted trajectory of the vehicle into the decision-making system, which affects the accuracy of decision-making.
因此,研发一种能够在保证驾驶安全的前提下,仍然可以灵活应对各种交通环境的行为决策系统显得尤为重要。Therefore, it is particularly important to develop a behavioral decision-making system that can flexibly respond to various traffic environments while ensuring driving safety.
发明内容Summary of the invention
针对上述问题,本发明的目的在于提供一种考虑驾驶风格的车辆轨迹预测与行为决策方法和系统,充分考虑驾驶员个性化的驾驶风格,对周围车辆的轨迹进行预测,并充分利用以上信息进行行为决策,提高车辆行为决策的准确性、安全性和实时性。In view of the above problems, the purpose of the present invention is to provide a vehicle trajectory prediction and behavior decision-making method and system taking driving style into consideration, which fully considers the driver's personalized driving style, predicts the trajectories of surrounding vehicles, and makes full use of the above information to make behavior decisions, thereby improving the accuracy, safety and real-time performance of vehicle behavior decisions.
为解决上述技术问题,本发明提供如下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:
一方面,提供了一种考虑驾驶风格的车辆轨迹预测与行为决策方法,所述方法包括以下步骤:On the one hand, a vehicle trajectory prediction and behavior decision method considering driving style is provided, the method comprising the following steps:
S1、获取驾驶行为数据集,对所述驾驶行为数据集进行数据处理,得到用于车辆轨迹预测的平衡化数据集;S1. Acquire a driving behavior data set, and perform data processing on the driving behavior data set to obtain a balanced data set for vehicle trajectory prediction;
所述平衡化数据集中还包含基于驾驶风格分类器对所述驾驶行为数据集进行分类得到的驾驶风格向量标签;The balanced data set also includes a driving style vector label obtained by classifying the driving behavior data set based on a driving style classifier;
S2、构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络,用于进行车辆轨迹预测;S2. Build a long short-term memory network based on Bayesian optimization and discrete cosine transform attention mechanism for vehicle trajectory prediction;
其中,利用所述平衡化数据集对所述长短时记忆网络进行训练和测试;wherein the balanced data set is used to train and test the long short-term memory network;
S3、结合多车道变道场景的安全因子、舒适因子、效率因子、增益因子,以及驾驶风格向量标签和车辆轨迹预测信息,采用深度学习模型实现车道变更行为决策。S3. Combining the safety factor, comfort factor, efficiency factor, gain factor of multi-lane lane change scenarios, as well as the driving style vector label and vehicle trajectory prediction information, a deep learning model is used to realize lane change behavior decision.
可选地,所述步骤S1中,对所述驾驶行为数据集进行数据处理,具体包括:Optionally, in step S1, data processing is performed on the driving behavior data set, specifically including:
基于小波变换去噪算法对所述驾驶行为数据集进行滤波;Filtering the driving behavior data set based on a wavelet transform denoising algorithm;
对滤波后的驾驶行为数据集进行筛选,剔除无用特征;Screen the filtered driving behavior dataset and remove useless features;
添加新特征,包括:车辆行驶航向角,左车道标签和右车道标签,车道变更标签,车辆速度和加速度,驾驶风格分类器得到的驾驶风格向量标签;Add new features, including: vehicle heading angle, left lane label and right lane label, lane change label, vehicle speed and acceleration, and driving style vector label obtained by driving style classifier;
采用滑动窗口法对添加新特征后的驾驶行为数据集进行数据对齐处理;The sliding window method is used to align the driving behavior dataset after adding new features;
将数据对齐后的驾驶行为数据集划分为训练集和测试集,其中80%的数据分配给训练集,20%的数据分配给测试集,得到所述平衡化数据集。The driving behavior dataset after data alignment is divided into a training set and a test set, wherein 80% of the data is allocated to the training set and 20% of the data is allocated to the test set, thereby obtaining the balanced dataset.
可选地,所述步骤S1中,基于驾驶风格分类器对所述驾驶行为数据集进行分类得到驾驶风格向量标签,具体包括:Optionally, in step S1, classifying the driving behavior dataset based on a driving style classifier to obtain a driving style vector label specifically includes:
从所述驾驶行为数据集中选取多个驾驶行为特征参数,包括:最大速度、平均速度、速度标准差、横向速度最大值、横向速度均值、横向速度标准差、加速度绝对值最大值、加速度绝对值均值、加速度标准差、最大绝对横向加速度、平均绝对横向加速度、横向加速度标准差、最小跟车距离、平均跟车距离、跟车距离标准差、最小车头时距、车头时距均值、车头时距标准差、行驶距离;Selecting multiple driving behavior characteristic parameters from the driving behavior data set, including: maximum speed, average speed, speed standard deviation, maximum lateral speed, mean lateral speed, standard deviation of lateral speed, maximum absolute acceleration, mean absolute acceleration, standard deviation of acceleration, maximum absolute lateral acceleration, average absolute lateral acceleration, standard deviation of lateral acceleration, minimum following distance, average following distance, standard deviation of following distance, minimum headway, mean headway, standard deviation of headway, and driving distance;
采用主成分分析法降低所述驾驶行为特征参数的维度;Using principal component analysis to reduce the dimension of the driving behavior characteristic parameters;
基于K均值聚类算法对降维后的驾驶行为特征参数进行聚类分析,将驾驶风格聚类为两类,分别用向量1和向量2进行标注,得到驾驶风格向量标签;其中,向量1和向量2分别对应激进型驾驶风格和保守型驾驶风格。Based on the K-means clustering algorithm, a cluster analysis is performed on the driving behavior characteristic parameters after dimensionality reduction, and the driving styles are clustered into two categories, which are marked with vector 1 and vector 2 respectively to obtain the driving style vector label; among which, vector 1 and vector 2 correspond to aggressive driving style and conservative driving style respectively.
可选地,所述步骤S2中,构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络,具体包括:Optionally, in step S2, constructing a long short-term memory network based on Bayesian optimization fused with discrete cosine transform attention mechanism specifically includes:
采用单层卷积神经网络对输入的目标车辆状态观测特征向量进行潜在特征提取;A single-layer convolutional neural network is used to extract potential features from the input target vehicle state observation feature vector;
将提取的潜在特征输入长短时记忆网络,并引入基于离散余弦变换的频率增强通道注意力机制;The extracted latent features are input into the long short-term memory network, and a frequency-enhanced channel attention mechanism based on discrete cosine transform is introduced;
利用贝叶斯优化算法对模型的超参数进行优化,并定义均方误差函数为贝叶斯优化算法最小化的目标函数。The Bayesian optimization algorithm is used to optimize the hyperparameters of the model, and the mean square error function is defined as the objective function minimized by the Bayesian optimization algorithm.
可选地,利用单层卷积神经网络进行潜在特征提取,所述目标车辆状态观测特征向量Input(t)表示如下:Optionally, a single-layer convolutional neural network is used to extract potential features, and the target vehicle state observation feature vector Input (t) is expressed as follows:
Input(t)=[X(t),Y(t),v(t),a(t),D(t),T(t),L,W]Input (t) = [X (t) , Y (t) , v (t) , a (t) , D (t) , T (t) , L, W]
其中,X(t)和Y(t)分别表示预测目标车辆轨迹的横向坐标和纵向坐标,v(t)和a(t)分别表示预测目标车辆的瞬时速度和加速度,D(t)表示周围车辆与预测目标车辆之间的跟车距离,T(t)表示周围车辆与预测目标车辆之间的车头时距,L和W分别为预测目标车辆的长度和宽度。Where X (t) and Y (t) represent the lateral and longitudinal coordinates of the predicted target vehicle trajectory, respectively; v (t) and a (t) represent the instantaneous velocity and acceleration of the predicted target vehicle, respectively; D (t) represents the following distance between the surrounding vehicles and the predicted target vehicle; T (t) represents the headway between the surrounding vehicles and the predicted target vehicle; L and W represent the length and width of the predicted target vehicle, respectively.
可选地,利用贝叶斯优化算法优化模型的超参数,所述目标函数为:Optionally, the hyperparameters of the model are optimized using a Bayesian optimization algorithm, and the objective function is:
其中,Nt表示样本数量,表示第t个样本的真实值,表示模型对第t个样本的预测值。Where Nt represents the number of samples, represents the true value of the tth sample, Represents the model's predicted value for the tth sample.
可选地,所述步骤S3中,采用深度学习模型实现车道变更行为决策,具体包括:Optionally, in step S3, a deep learning model is used to implement lane change behavior decision, specifically including:
结合多车道变道场景,综合考虑以下因素:安全因子Ssafe、舒适因子Ccomfort、效率因子Eefficiency、增益因子Ggain、驾驶风格向量标签Tstyle和周围车辆轨迹预测信息Ppredicted,构建车道变更决策向量,如下式所示:Combined with the multi-lane lane change scenario, the following factors are considered comprehensively: safety factor S safe , comfort factor C comfort , efficiency factor E efficiency , gain factor G gain , driving style vector label T style and surrounding vehicle trajectory prediction information P predicted , and the lane change decision vector is constructed as shown in the following formula:
F=fLC(Ssafe,Ccomfort,Eefficiency,Ggain,Tstyle,Ppredicted)F=f LC (S safe ,C comfort ,E efficiency ,G gain ,T style ,P predicted )
其中,F是一个三元素的车道变更决策向量,对应于车道保持、左车道变更和右车道变更的概率,fLC(·)是基于上述输入因素的车道变更概率函数。where F is a three-element lane change decision vector corresponding to the probabilities of lane keeping, left lane change, and right lane change, and f LC (·) is the lane change probability function based on the above input factors.
可选地,所述安全因子Ssafe表示为:Optionally, the safety factor S safe is expressed as:
Ssafety=fS(dLP,dRP,dCP,dth)S safety = f S (d LP ,d RP ,d CP ,d th )
其中,dLP表示自车与左前方车辆的纵向距离,dRP表示自车与右前方车辆的纵向距离,dCP表示自车与当前车道上的前车的纵向距离,dth表示最小安全距离;Wherein, d LP represents the longitudinal distance between the vehicle and the left front vehicle, d RP represents the longitudinal distance between the vehicle and the right front vehicle, d CP represents the longitudinal distance between the vehicle and the front vehicle in the current lane, and d th represents the minimum safe distance;
所述舒适因子Ccomfort表示为:The comfort factor C comfort is expressed as:
式中,x(t)和y(t)分别表示当前车辆行驶时刻t对应的横向坐标和纵向坐标,ax(t)和ay(t)分别表示当前车辆行驶时刻t对应的横向加速度和纵向加速度;Where x(t) and y(t) represent the lateral coordinate and longitudinal coordinate corresponding to the current vehicle driving time t, respectively; a x (t) and a y (t) represent the lateral acceleration and longitudinal acceleration corresponding to the current vehicle driving time t, respectively;
所述效率因子Eefficiency表示为:The efficiency factor Eefficiency is expressed as:
Eefficiency=fE(s(t),v(t))E efficiency = f E (s(t), v(t))
式中,s(t)和v(t)分别表示当前车辆行驶时刻t对应的行驶距离及行驶速度;In the formula, s(t) and v(t) represent the driving distance and driving speed corresponding to the current vehicle driving time t respectively;
所述增益因子Ggain表示为:The gain factor G gain is expressed as:
Ggain=fG((vCP-vE),(vLP-vE),(vRP-vE),dLP)-dCP),(dRP-dCP))G gain =fG((v CP -v E ),(v LP -v E ),(v RP -v E ),d LP )-d CP ),(d RP -d CP ))
其中,vE表示自车行驶速度,vCP是当前车道前车的行驶速度,vLP和vRP分别表示左车道和右车道中的前车行驶速度;dCP是当前车道上自车与前车之间的车头时距,dLP和dRP分别表示本车与左车道和右车道中的前车的车头时距;Wherein, v E represents the speed of the ego vehicle, v CP is the speed of the vehicle in front of the current lane, v LP and v RP represent the speeds of the vehicles in front of the left lane and the right lane, respectively; d CP is the headway time between the ego vehicle and the vehicle in front of the current lane, d LP and d RP represent the headway time between the ego vehicle and the vehicle in front of the left lane and the right lane, respectively;
将驾驶风格向量标签Tstyle和周围车辆轨迹预测信息Ppredicted与上述各个因子中的参数向量级联,然后输入全连接神经网络,最终输出三类行为决策结果之一,即车道保持、左车道变更或右车道变更。The driving style vector label T style and the surrounding vehicle trajectory prediction information P predicted are cascaded with the parameter vectors in the above factors, and then input into the fully connected neural network, and finally output one of the three types of behavior decision results, namely lane keeping, left lane change or right lane change.
另一方面,提供了一种考虑驾驶风格的车辆轨迹预测与行为决策系统,用于实现上述任一项所述的方法,所述系统包括:On the other hand, a vehicle trajectory prediction and behavior decision system considering driving style is provided, which is used to implement any of the above methods, and the system includes:
环境感知模块,用于获取驾驶行为数据集,对所述驾驶行为数据集进行数据处理,得到用于车辆轨迹预测的平衡化数据集;An environment perception module, used to obtain a driving behavior data set, perform data processing on the driving behavior data set, and obtain a balanced data set for vehicle trajectory prediction;
所述平衡化数据集中还包含基于驾驶风格分类器对所述驾驶行为数据集进行分类得到的驾驶风格向量标签;The balanced data set also includes a driving style vector label obtained by classifying the driving behavior data set based on a driving style classifier;
轨迹预测模块,用于构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络,进行车辆轨迹预测;Trajectory prediction module, which is used to build a long short-term memory network based on Bayesian optimization and discrete cosine transform attention mechanism to predict vehicle trajectory;
其中,利用所述平衡化数据集对所述长短时记忆网络进行训练和测试;wherein the balanced data set is used to train and test the long short-term memory network;
行为决策模块,用于结合多车道变道场景的安全因子、舒适因子、效率因子、增益因子,以及驾驶风格向量标签和车辆轨迹预测信息,采用深度学习模型实现车道变更行为决策。The behavior decision module is used to combine the safety factor, comfort factor, efficiency factor, gain factor, driving style vector label and vehicle trajectory prediction information of multi-lane lane change scenarios, and use a deep learning model to realize lane change behavior decision.
另一方面,提供了一种电子设备,所述电子设备包括:In another aspect, an electronic device is provided, the electronic device comprising:
处理器;processor;
存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器加载并执行时,实现如上述车辆轨迹预测与行为决策方法的步骤。A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are loaded and executed by the processor, the steps of the vehicle trajectory prediction and behavior decision-making method as described above are implemented.
另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如上述车辆轨迹预测与行为决策方法的步骤。On the other hand, a computer-readable storage medium is provided, in which a program code is stored. The program code can be called by a processor to execute the steps of the vehicle trajectory prediction and behavior decision-making method as described above.
本发明提供的技术方案带来的有益效果至少包括:The beneficial effects brought about by the technical solution provided by the present invention include at least:
1.本发明提出了一种全新的基于深度学习的决策框架,能够准确模仿预测人类的行为决策。该框架不仅充分考虑了驾驶员个性化的驾驶风格,还综合考虑了周围驾驶车辆轨迹的不确定性。相较于传统方法,本发明能够更精准地模拟人类的换道决策过程。1. This invention proposes a new decision-making framework based on deep learning, which can accurately imitate and predict human behavioral decisions. This framework not only fully considers the driver's personalized driving style, but also comprehensively considers the uncertainty of the trajectory of surrounding driving vehicles. Compared with traditional methods, this invention can more accurately simulate the human lane change decision process.
2.本发明提出了一种新的驾驶风格分类器,对驾驶行为数据集中的驾驶轨迹进行分类,并将分类结果转化为驾驶风格向量标签,添加到原始数据集中,作为轨迹预测和行为决策网络训练的重要参数之一。这一方法有助于更有效地满足不同驾驶风格驾驶员的决策需求。2. This paper proposes a new driving style classifier to classify driving trajectories in the driving behavior dataset and convert the classification results into driving style vector labels, which are added to the original dataset as one of the important parameters for trajectory prediction and behavior decision network training. This method helps to more effectively meet the decision-making needs of drivers with different driving styles.
3.本发明设计并训练了一种基于离散余弦变换注意力机制的长短时记忆网络用于进行周围车辆的轨迹预测,并采用贝叶斯优化算法对其进行参数优化。该网络能够显著提升车辆轨迹预测的准确率,使行为决策系统能够更高效地适应周边复杂的交通情况。3. The present invention designs and trains a long short-term memory network based on the discrete cosine transform attention mechanism for trajectory prediction of surrounding vehicles, and uses the Bayesian optimization algorithm to optimize its parameters. The network can significantly improve the accuracy of vehicle trajectory prediction, enabling the behavior decision system to more efficiently adapt to complex surrounding traffic conditions.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1是本发明实施例提供的一种考虑驾驶风格的车辆轨迹预测与行为决策方法的整体框架示意图;FIG1 is a schematic diagram of the overall framework of a vehicle trajectory prediction and behavior decision method considering driving style provided by an embodiment of the present invention;
图2是本发明实施例提供的NGSIM数据处理流程示意图;FIG2 is a schematic diagram of a NGSIM data processing flow according to an embodiment of the present invention;
图3是本发明实施例提供的驾驶风格分类流程示意图;FIG3 is a schematic diagram of a driving style classification process provided by an embodiment of the present invention;
图4是本发明实施例提供的DCTAM-BOLSTM算法框架示意图;FIG4 is a schematic diagram of a DCTAM-BOLSTM algorithm framework provided in an embodiment of the present invention;
图5是本发明实施例提供的多车道复杂变道场景示意图;FIG5 is a schematic diagram of a multi-lane complex lane change scenario provided by an embodiment of the present invention;
图6是本发明实施例提供的因子载荷矩阵热力图。FIG6 is a heat map of a factor loading matrix provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于所描述的本发明的实施例,本领域普通技术人员在无需创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
在本发明实施例中,“示例地”、“例如”等词用于表示作例子、例证或说明。本发明中被描述为“示例”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用示例的一词旨在以具体方式呈现概念。In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the word "exemplary" is used to present concepts in a specific way.
本发明实施例提供了一种考虑驾驶风格的车辆轨迹预测与行为决策方法,该方法可以由电子设备实现,该电子设备可以是终端或服务器。参考图1所示,该方法包括如下的步骤:The embodiment of the present invention provides a vehicle trajectory prediction and behavior decision method considering driving style, which can be implemented by an electronic device, which can be a terminal or a server. Referring to FIG1 , the method includes the following steps:
S1、获取驾驶行为数据集,对所述驾驶行为数据集进行数据处理,得到用于车辆轨迹预测的平衡化数据集。所述平衡化数据集中还包含基于驾驶风格分类器对所述驾驶行为数据集进行分类得到的驾驶风格向量标签。S1. Acquire a driving behavior data set, perform data processing on the driving behavior data set, and obtain a balanced data set for vehicle trajectory prediction. The balanced data set also includes a driving style vector label obtained by classifying the driving behavior data set based on a driving style classifier.
作为本发明的一种可选实施方式,为了保证数据的可靠性,选取公开数据集NGSIM(Next Generation Simulation)作为驾驶行为数据集进行验证。该数据集涵盖了结构化道路、路口和高速公路上下匝道等车路协同研究的热点区域。研究者可以利用该数据集进行车辆跟随与变道、交通流分析、微交通模型构建、车辆运动轨迹预测、驾驶员意图识别以及自动驾驶决策规划等驾驶行为的研究。为方便后续使用,本发明将数据集导出为CSV格式。As an optional implementation of the present invention, in order to ensure the reliability of the data, the public data set NGSIM (Next Generation Simulation) is selected as the driving behavior data set for verification. This data set covers hot areas of vehicle-road collaboration research such as structured roads, intersections, and on- and off-ramps on highways. Researchers can use this data set to study driving behaviors such as vehicle following and lane changing, traffic flow analysis, micro-traffic model construction, vehicle motion trajectory prediction, driver intention recognition, and autonomous driving decision planning. For the convenience of subsequent use, the present invention exports the data set to CSV format.
进一步地,如图2所示,对所述驾驶行为数据集进行数据处理,具体包括:Furthermore, as shown in FIG2 , data processing is performed on the driving behavior data set, specifically including:
第一步,基于小波变换去噪算法对所述驾驶行为数据集进行滤波。In the first step, the driving behavior data set is filtered based on a wavelet transform denoising algorithm.
由于NGSIM数据集在采集过程中存在一定的误差,尤其是横向速度误差明显,因此有必要对其进行平滑处理。本发明采用循环5次的小波变换去噪操作,对NGSIM原始数据集进行轨迹数据滤波。Since the NGSIM dataset has certain errors in the acquisition process, especially the lateral velocity error is obvious, it is necessary to smooth it. The present invention uses a wavelet transform denoising operation with 5 cycles to perform trajectory data filtering on the NGSIM original dataset.
第二步,对滤波后的驾驶行为数据集进行筛选,剔除无用特征。The second step is to screen the filtered driving behavior dataset and remove useless features.
NGSIM数据集主要以车道保持为主,为保证数据集的平衡性和多样性(左换道、右换道和车道保持),本发明提前对轨迹数据进行标注,筛选出所需平衡的数据集,并移除无用特征。The NGSIM dataset is mainly based on lane keeping. To ensure the balance and diversity of the dataset (left lane change, right lane change and lane keeping), the present invention labels the trajectory data in advance, filters out the required balanced dataset, and removes useless features.
第三步,添加新特征,主要包括:车辆行驶航向角,左车道标签和右车道标签,车道变更标签,车辆速度和加速度,驾驶风格分类器得到的驾驶风格向量标签。The third step is to add new features, mainly including: vehicle heading angle, left lane label and right lane label, lane change label, vehicle speed and acceleration, and driving style vector label obtained by the driving style classifier.
第四步,采用滑动窗口法对添加新特征后的驾驶行为数据集进行数据对齐处理。The fourth step is to use the sliding window method to align the driving behavior dataset after adding new features.
由于模型要求具有相同长度的数据序列,因此本发明采用滑动窗口法来获取所需8s轨迹数据序列集合,其中,数据序列长度为80,滑动步长为1。本发明将利用3s的车辆历史轨迹去预测车辆未来5s的轨迹,将原始轨迹数据转换为特征数据,并将其用于后期模型的训练和预测。Since the model requires data sequences with the same length, the present invention adopts the sliding window method to obtain the required 8s trajectory data sequence set, where the data sequence length is 80 and the sliding step is 1. The present invention uses the 3s historical vehicle trajectory to predict the vehicle's trajectory for the next 5s, converts the original trajectory data into feature data, and uses it for later model training and prediction.
第五步,将数据对齐后的驾驶行为数据集划分为训练集和测试集,其中80%的数据分配给训练集,20%的数据分配给测试集,得到所述平衡化数据集。In the fifth step, the aligned driving behavior dataset is divided into a training set and a test set, wherein 80% of the data is allocated to the training set and 20% of the data is allocated to the test set, thereby obtaining the balanced dataset.
将数据集分为训练集和测试集以进行研究,旨在为模型提供平衡的数据集,以确保模型训练和评估的准确性和可靠性。本发明采用随机抽样技术来划分数据集。具体而言,将80%的数据分配给训练集,而余下的20%的数据则分配给测试集。The data set is divided into a training set and a test set for research, aiming to provide a balanced data set for the model to ensure the accuracy and reliability of model training and evaluation. The present invention uses random sampling technology to divide the data set. Specifically, 80% of the data is assigned to the training set, and the remaining 20% of the data is assigned to the test set.
进一步地,如图3所示,基于驾驶风格分类器对所述驾驶行为数据集进行分类得到驾驶风格向量标签,具体包括:Further, as shown in FIG3 , the driving behavior dataset is classified based on the driving style classifier to obtain a driving style vector label, specifically including:
从驾驶行为数据集中选取多个驾驶行为特征参数,参考表1所示,从中选取19个特征参数,包括:最大速度、平均速度、速度标准差、横向速度最大值、横向速度均值、横向速度标准差、加速度绝对值最大值、加速度绝对值均值、加速度标准差、最大绝对横向加速度、平均绝对横向加速度、横向加速度标准差、最小跟车距离、平均跟车距离、跟车距离标准差、最小车头时距、车头时距均值、车头时距标准差、行驶距离。A plurality of driving behavior characteristic parameters are selected from the driving behavior data set. As shown in Table 1, 19 characteristic parameters are selected, including maximum speed, average speed, speed standard deviation, maximum lateral speed, mean lateral speed, standard deviation of lateral speed, maximum absolute value of acceleration, mean absolute value of acceleration, standard deviation of acceleration, maximum absolute lateral acceleration, average absolute lateral acceleration, standard deviation of lateral acceleration, minimum following distance, average following distance, standard deviation of following distance, minimum headway, mean headway, standard deviation of headway, and driving distance.
表1:驾驶行为特征参数选取Table 1: Selection of driving behavior characteristic parameters
为了提高驾驶风格聚类的效果和效率,本发明实施例中采用主成分分析法(Principal Component Analysis,PCA)降低驾驶行为特征参数的维度,确保聚类结果的准确性和可靠性,从而规避了由于过多特征参数而对聚类结果产生的不利影响。In order to improve the effect and efficiency of driving style clustering, the embodiment of the present invention adopts the principal component analysis (PCA) method to reduce the dimension of the driving behavior characteristic parameters, ensure the accuracy and reliability of the clustering results, and thus avoid the adverse effects on the clustering results caused by too many characteristic parameters.
为了对降维后的数据进行聚类分析,本发明实施例中基于K均值(K-means)聚类算法对降维后的驾驶行为特征参数进行聚类分析,将驾驶风格聚类为两类,分别用向量1和向量2进行标注,得到驾驶风格向量标签,并将其添加至驾驶行为数据集中;其中,向量1和向量2分别对应激进型驾驶风格和保守型驾驶风格。In order to perform cluster analysis on the data after dimensionality reduction, in the embodiment of the present invention, a cluster analysis is performed on the driving behavior characteristic parameters after dimensionality reduction based on the K-means clustering algorithm, and the driving styles are clustered into two categories, which are respectively labeled with vector 1 and vector 2 to obtain a driving style vector label, and add it to the driving behavior data set; wherein vector 1 and vector 2 correspond to an aggressive driving style and a conservative driving style, respectively.
S2、构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络(LongShort-Term Memory Network with Discrete Cosine Transform Attention Mechanismand Bayesian Optimization Algorithm,DCTAM-BOLSTM),用于进行车辆轨迹预测。其中,利用所述平衡化数据集对所述长短时记忆网络进行训练和测试。S2. Construct a Long Short-Term Memory Network with Discrete Cosine Transform Attention Mechanism and Bayesian Optimization Algorithm (DCTAM-BOLSTM) for vehicle trajectory prediction. The balanced data set is used to train and test the Long Short-Term Memory Network.
为了提高交通管理的安全性,需要准确预测周围车辆的变道轨迹,并将其纳入车辆的决策过程。因此,本发明构建了一种基于长短时记忆网络与离散余弦变换频率增强通道注意力机制相结合的车辆轨迹预测方法,并使用贝叶斯超参数优化算法调整模型参数,以进一步提高车辆轨迹预测的准确率。In order to improve the safety of traffic management, it is necessary to accurately predict the lane change trajectories of surrounding vehicles and incorporate them into the vehicle's decision-making process. Therefore, the present invention constructs a vehicle trajectory prediction method based on a combination of a long short-term memory network and a discrete cosine transform frequency enhanced channel attention mechanism, and uses a Bayesian hyperparameter optimization algorithm to adjust the model parameters to further improve the accuracy of vehicle trajectory prediction.
DCTAM-BOLSTM的算法框架如图4所示。首先,通过探索特征向量之间的潜在关系,对目标车辆状态观测特征向量的潜在特征进行提取。本发明采用单层卷积神经网络(Convolutional Neural Network,CNN)应用一系列卷积运算,对输入的目标车辆状态观测特征向量进行潜在特征提取,得到空间和时间特征。为了确保模型捕捉到真实交通数据中的潜在特征,输入数据应包括预测的目标车辆类型、运行状态以及与周围车辆的时空关系等参数。The algorithm framework of DCTAM-BOLSTM is shown in Figure 4. First, by exploring the potential relationship between feature vectors, the potential features of the target vehicle state observation feature vector are extracted. The present invention uses a single-layer convolutional neural network (CNN) to apply a series of convolution operations to extract the potential features of the input target vehicle state observation feature vector to obtain spatial and temporal features. In order to ensure that the model captures the potential features in real traffic data, the input data should include parameters such as the predicted target vehicle type, operating status, and spatiotemporal relationship with surrounding vehicles.
具体地,利用单层卷积神经网络进行潜在特征提取,所述目标车辆状态观测特征向量Input(t)表示如下:Specifically, a single-layer convolutional neural network is used to extract potential features, and the target vehicle state observation feature vector Input (t) is expressed as follows:
Input(t)=[X(t),Y(t),v(t),a(t),D(t),T(t),L,W]Input (t) = [X (t) , Y (t) , v (t) , a (t) , D (t) , T (t) , L, W]
其中,X(t)和Y(t)分别表示预测目标车辆轨迹的横向坐标和纵向坐标,v(t)和a(t)分别表示预测目标车辆的瞬时速度和加速度,D(t)表示周围车辆与预测目标车辆之间的跟车距离,T(t)表示周围车辆与预测目标车辆之间的车头时距,L和W分别为预测目标车辆的长度和宽度。Where X (t) and Y (t) represent the lateral and longitudinal coordinates of the predicted target vehicle trajectory, respectively; v (t) and a (t) represent the instantaneous velocity and acceleration of the predicted target vehicle, respectively; D (t) represents the following distance between the surrounding vehicles and the predicted target vehicle; T (t) represents the headway between the surrounding vehicles and the predicted target vehicle; L and W represent the length and width of the predicted target vehicle, respectively.
接下来,由于长短时记忆网络(Long Short Term Memory Network,LSTM)在轨迹预测方面的显著优势,本发明将卷积神经网络提取的潜在特征输入长短时记忆网络,并且在预测网络中引入基于离散余弦变换(Discrete Cosine Transform,DCT)的频率增强通道注意力机制。该机制可以从本质上避免傅里叶变换过程中由吉布斯现象引起的高频噪声,从而有效提高预测的准确性。Next, due to the significant advantages of the Long Short Term Memory Network (LSTM) in trajectory prediction, the present invention inputs the potential features extracted by the convolutional neural network into the LSTM, and introduces a frequency-enhanced channel attention mechanism based on discrete cosine transform (DCT) in the prediction network. This mechanism can essentially avoid the high-frequency noise caused by the Gibbs phenomenon in the Fourier transform process, thereby effectively improving the accuracy of the prediction.
最后,在模型训练过程中,超参数的优化至关重要,最优的超参数组合可以提高模型的预测性能和泛化能力。传统的超参数优化方法依赖于经验丰富的人类领域专家,相比之下,贝叶斯优化算法能够更智能地搜索超参数空间,帮助模型更快地找到最优的超参数组合。因此,本发明利用贝叶斯优化算法对模型的超参数进行优化,并定义均方误差(MeanSquared Error,MSE)函数为贝叶斯优化算法最小化的目标函数:Finally, in the model training process, the optimization of hyperparameters is crucial, and the optimal hyperparameter combination can improve the predictive performance and generalization ability of the model. Traditional hyperparameter optimization methods rely on experienced human experts in the field. In contrast, the Bayesian optimization algorithm can search the hyperparameter space more intelligently and help the model find the optimal hyperparameter combination faster. Therefore, the present invention uses the Bayesian optimization algorithm to optimize the hyperparameters of the model, and defines the mean square error (MSE) function as the objective function minimized by the Bayesian optimization algorithm:
其中,Nt表示样本数量,表示第t个样本的真实值,表示模型对第t个样本的预测值。均方误差(Mean Squared Error,MSE)的数值越小,表明模型的预测值与真实值之间的差异越小,从而反映了模型的性能越好。Where Nt represents the number of samples, represents the true value of the tth sample, Represents the model's predicted value for the tth sample. The smaller the mean square error (MSE) value, the smaller the difference between the model's predicted value and the true value, which reflects the better performance of the model.
DCTAM-BOLSTM的算法步骤如表2所示:The algorithm steps of DCTAM-BOLSTM are shown in Table 2:
表2 DCTAM-BOLSTM算法步骤Table 2 DCTAM-BOLSTM algorithm steps
S3、结合多车道变道场景的安全因子、舒适因子、效率因子、增益因子,以及驾驶风格向量标签和车辆轨迹预测信息,采用深度学习模型实现车道变更行为决策。S3. Combining the safety factor, comfort factor, efficiency factor, gain factor of multi-lane lane change scenarios, as well as the driving style vector label and vehicle trajectory prediction information, a deep learning model is used to realize lane change behavior decision.
车辆行为决策涉及多参数非线性问题,传统数学方法难以有效求解。近年来,深度学习展现了在此类问题中的巨大潜力。因此,本发明采用深度学习模型来解决该问题,学习的目标是找到一个fθ(·)的模型,以最小化长期平均损失,其中θ是模型的一组参数,并设计考虑了图5所示的多车道复杂变道场景。Vehicle behavior decision-making involves multi-parameter nonlinear problems, which are difficult to solve effectively with traditional mathematical methods. In recent years, deep learning has shown great potential in such problems. Therefore, the present invention adopts a deep learning model to solve this problem. The learning goal is to find a model of f θ (·) to minimize the long-term average loss, where θ is a set of parameters of the model, and the design takes into account the multi-lane complex lane change scenario shown in Figure 5.
本发明实施例中,结合多车道变道场景,综合考虑以下因素:安全因子Ssafe、舒适因子Ccomfort、效率因子Eefficiency、增益因子Ggain、驾驶风格向量标签Tstyle和周围车辆轨迹预测信息Ppredicted,构建车道变更决策向量,如下式所示:In the embodiment of the present invention, in combination with the multi-lane lane change scenario, the following factors are comprehensively considered: safety factor S safe , comfort factor C comfort , efficiency factor E efficiency , gain factor G gain , driving style vector label T style and surrounding vehicle trajectory prediction information P predicted , and a lane change decision vector is constructed, as shown in the following formula:
F=fLC(Ssafe,Ccomfort,Eefficiency,Ggain,Tstyle,Ppredicted)F=f LC (S safe ,C comfort ,E efficiency ,G gain ,T style ,P predicted )
其中,F是一个三元素的车道变更决策向量,对应于车道保持、左车道变更和右车道变更的概率,fLC(·)是基于上述输入因素的车道变更概率函数。where F is a three-element lane change decision vector corresponding to the probabilities of lane keeping, left lane change, and right lane change, and f LC (·) is the lane change probability function based on the above input factors.
接下来,本发明将深入研究车道变更决策中的四个关键考虑因素:安全性、舒适性、驾驶效率和变道增益。Next, the present invention will delve into four key considerations in lane change decision-making: safety, comfort, driving efficiency, and lane change gain.
1、安全因子(Ssafety):为了确保安全变道,有必要评估与当前车道上的前车和目标车道上的前车的碰撞风险。该评估与当前最小安全跟车距离(dth)和与前车的距离密切相关。1. Safety factor (S safety ): To ensure safe lane change, it is necessary to assess the risk of collision with the vehicle in the current lane and the vehicle in the target lane. This assessment is closely related to the current minimum safe following distance (d th ) and the distance to the vehicle in front.
安全因子Ssafe表示为:The safety factor S safe is expressed as:
Ssafety=fS(dLP,dRP,dCP,dth)S safety = f S (d LP ,d RP ,d CP ,d th )
其中,dLP表示自车与左前方车辆的纵向距离,dRP表示自车与右前方车辆的纵向距离,dCP表示自车与当前车道上的前车的纵向距离,dth表示最小安全距离。Wherein, d LP represents the longitudinal distance between the vehicle and the left front vehicle, d RP represents the longitudinal distance between the vehicle and the right front vehicle, d CP represents the longitudinal distance between the vehicle and the front vehicle in the current lane, and d th represents the minimum safe distance.
2、舒适因子(Ccomfort):舒适性因子反映了驾驶员对驾驶舒适性的要求,主要考虑自车的纵向和横向加速度的绝对值。2. Comfort factor (C comfort ): The comfort factor reflects the driver's requirement for driving comfort, and mainly considers the absolute values of the longitudinal and lateral acceleration of the vehicle.
舒适因子Ccomfort表示为:The comfort factor C comfort is expressed as:
式中,x(t)和y(t)分别表示当前车辆行驶时刻t对应的横向坐标和纵向坐标,ax(t)和ay(t)分别表示当前车辆行驶时刻t对应的横向加速度和纵向加速度。Where x(t) and y(t) represent the lateral coordinate and longitudinal coordinate corresponding to the current vehicle driving time t, respectively; ax (t) and ay (t) represent the lateral acceleration and longitudinal acceleration corresponding to the current vehicle driving time t, respectively.
3、效率因子(Eefficiency):驾驶效率反映了驾驶员快速到达目的地的愿望,主要考虑自车的行驶速度。3. Efficiency factor (E efficiency ): Driving efficiency reflects the driver's desire to reach the destination quickly, mainly considering the driving speed of the vehicle.
效率因子Eefficiency表示为:The efficiency factor E efficiency is expressed as:
Eefficiency=fE(s(t),v(t))E efficiency = f E (s(t), v(t))
式中,s(t)和v(t)分别表示当前车辆行驶时刻t对应的行驶距离及行驶速度。Where s(t) and v(t) represent the driving distance and driving speed corresponding to the current vehicle driving time t, respectively.
4、增益因子(Ggain):增益因子主要体现在速度和车头时距两方面的考虑。具体而言,它主要考虑了左右车道变换期间的目标车道速度及距离优势。4. Gain factor (G gain ): The gain factor is mainly reflected in the consideration of speed and headway. Specifically, it mainly considers the speed and distance advantage of the target lane during the left and right lane changes.
增益因子Ggain表示为:The gain factor G gain is expressed as:
Ggain=fG((vCP-vE),(vLP-vE),(vRP-vE),(dLP-dCP),(dRP-dCP))G gain = f G ((v CP -v E ),(v LP -v E ),(v RP -v E ),(d LP -d CP ),(d RP -d CP ))
其中,vE表示自车行驶速度,vCP是当前车道前车的行驶速度,vLP和vRP分别表示左车道和右车道中的前车行驶速度;dCP是当前车道上自车与前车之间的车头时距,dLP和dRP分别表示本车与左车道和右车道中的前车的车头时距。Wherein, v E represents the speed of the ego vehicle, v CP is the speed of the vehicle in front of the current lane, v LP and v RP represent the speeds of the vehicles in front of the left lane and the right lane, respectively; d CP is the headway time between the ego vehicle and the vehicle in front of the current lane, d LP and d RP represent the headway time between the ego vehicle and the vehicle in front of the left lane and the right lane, respectively.
将驾驶风格向量标签Tstyle和周围车辆轨迹预测信息Ppredicted与上述各个因子中的13维参数向量级联,然后输入全连接神经网络(Fully Connected Neural Network,FCNN),最终输出三类行为决策结果之一,即车道保持、左车道变更或右车道变更。The driving style vector label T style and the surrounding vehicle trajectory prediction information P predicted are cascaded with the 13-dimensional parameter vectors in the above factors, and then input into the Fully Connected Neural Network (FCNN), and finally output one of the three types of behavior decision results, namely lane keeping, left lane change or right lane change.
本发明提出的考虑驾驶风格的车辆轨迹预测与行为决策方法具有以下优点:The vehicle trajectory prediction and behavior decision-making method considering driving style proposed in the present invention has the following advantages:
1.提出了一种全新的基于深度学习的决策框架,能够准确模仿预测人类的行为决策。该框架不仅充分考虑了驾驶员个性化的驾驶风格,还综合考虑了周围驾驶车辆轨迹的不确定性。相较于传统方法,本发明能够更精准地模拟人类的换道决策过程。1. A new decision-making framework based on deep learning is proposed, which can accurately imitate and predict human behavioral decisions. This framework not only fully considers the driver's personalized driving style, but also comprehensively considers the uncertainty of the trajectory of surrounding driving vehicles. Compared with traditional methods, this invention can more accurately simulate the human lane change decision process.
2.提出了一种新的驾驶风格分类器,对驾驶行为数据集中的驾驶轨迹进行分类,并将分类结果转化为驾驶风格向量标签,添加到原始数据集中,作为轨迹预测和行为决策网络训练的重要参数之一。这一方法有助于更有效地满足不同驾驶风格驾驶员的决策需求。2. A new driving style classifier is proposed to classify the driving trajectories in the driving behavior dataset and convert the classification results into driving style vector labels, which are added to the original dataset as one of the important parameters for trajectory prediction and behavior decision network training. This method helps to more effectively meet the decision-making needs of drivers with different driving styles.
3.设计并训练了一种基于离散余弦变换注意力机制的长短时记忆网络用于进行周围车辆的轨迹预测,并采用贝叶斯优化算法对其进行参数优化。该网络能够显著提升车辆轨迹预测的准确率,使行为决策系统能够更高效地适应周边复杂的交通情况。3. A long short-term memory network based on discrete cosine transform attention mechanism is designed and trained to predict the trajectory of surrounding vehicles, and the Bayesian optimization algorithm is used to optimize its parameters. This network can significantly improve the accuracy of vehicle trajectory prediction, enabling the behavior decision system to more efficiently adapt to the complex traffic conditions around it.
为了研究提出的车辆轨迹预测与行为决策方法的性能,首先,利用驾驶风格分类器对车辆轨迹进行分类。接下来,轨迹预测模块将结合驾驶员的不同风格及周围驾驶环境,预测车辆未来一段时间内的轨迹。最后,行为决策模块将结合当前驾驶情况、周围车辆的预测轨迹以及自车驾驶员或乘客的驾驶风格,做出合理的行为决策。本发明的实施案例将在NVIDIA GeForce RTX 4060GPU上进行,以确保计算效率和性能。In order to study the performance of the proposed vehicle trajectory prediction and behavior decision method, first, the vehicle trajectory is classified using a driving style classifier. Next, the trajectory prediction module will combine the different styles of drivers and the surrounding driving environment to predict the vehicle's trajectory in the future. Finally, the behavior decision module will make reasonable behavior decisions based on the current driving situation, the predicted trajectory of surrounding vehicles, and the driving style of the driver or passengers of the vehicle. The implementation case of the present invention will be carried out on an NVIDIA GeForce RTX 4060 GPU to ensure computational efficiency and performance.
首先,利用主成分分析法(PCA)对所选特征进行降维处理,将特征减少到5个主成分,以减少数据的维度和复杂度,同时保留尽可能多的信息。通过PCA得到各主成分的贡献度,以评估降维后数据的可解释性。输出的各主成分的贡献度如表3所示。First, principal component analysis (PCA) was used to reduce the dimension of the selected features and reduce the features to 5 principal components to reduce the dimension and complexity of the data while retaining as much information as possible. The contribution of each principal component was obtained through PCA to evaluate the interpretability of the data after dimensionality reduction. The output contribution of each principal component is shown in Table 3.
表3:各主成分的贡献度Table 3: Contribution of each principal component
在主成分分析中,贡献度数值表示每个主成分所解释的总方差的比例。具体来说,对于给定的主成分,贡献度数值表示它解释了原始数据中的多少方差。可以看出,第一个主成分的贡献度为0.82139042,表示第一个主成分能够解释总方差的约82.14%。第二个主成分的贡献度为0.16333355,表示第二个主成分能够解释总方差的约16.33%。依此类推,第三、第四和第五个主成分的贡献度分别为0.00919988、0.00531227和0.00037623,表示它们分别能够解释总方差的约0.92%、0.53%和0.04%。第一个主成分贡献最大,依次递减,则表明该方法能够有效的减少数据的维度和复杂度,同时保留了尽可能多的信息。这样做有助于简化数据分析和可视化,并且可以更好地理解数据的结构和特征。In principal component analysis, the contribution value indicates the proportion of the total variance explained by each principal component. Specifically, for a given principal component, the contribution value indicates how much variance it explains in the original data. It can be seen that the contribution of the first principal component is 0.82139042, indicating that the first principal component can explain about 82.14% of the total variance. The contribution of the second principal component is 0.16333355, indicating that the second principal component can explain about 16.33% of the total variance. Similarly, the contributions of the third, fourth, and fifth principal components are 0.00919988, 0.00531227, and 0.00037623, respectively, indicating that they can explain about 0.92%, 0.53%, and 0.04% of the total variance, respectively. The first principal component has the largest contribution, and the contribution decreases in turn, indicating that this method can effectively reduce the dimension and complexity of the data while retaining as much information as possible. Doing so helps to simplify data analysis and visualization, and can better understand the structure and characteristics of the data.
接下来进行因子分析,并利用热力图来可视化因子载荷矩阵,热力图如图6所示,它的行表示因子,列表示原始变量,颜色的深浅表示了因子载荷的大小,从而直观地展示了变量与因子之间的相关程度。绘制旋转后的因子载荷矩阵,可以得到原始指标变量的线性组合,找出某一因子和哪个成分最为相关。从而探索数据中潜在的因子结构,以理解特征之间的内在关系。Next, we conduct factor analysis and use heat maps to visualize the factor loading matrix. The heat map is shown in Figure 6. Its rows represent factors, columns represent original variables, and the depth of color represents the size of factor loading, which intuitively shows the degree of correlation between variables and factors. By drawing the rotated factor loading matrix, we can get the linear combination of the original indicator variables and find out which component is most correlated with a certain factor. In this way, we can explore the potential factor structure in the data to understand the intrinsic relationship between features.
图中,横坐标代表五个成分,纵坐标代表上文中挑选的19个特征参数,因子载荷矩阵颜色深浅显示了每个主成分与原始变量之间的相关性程度。可以看到,图中值的范围通常在-1到1之间,接近1表示高正相关,接近-1表示高负相关,接近0表示低相关或者不相关。而热力图中较高的载荷值,则表示主成分与原始变量之间有较强的相关性。如果一个主成分与某个变量的载荷值很高,如第一个因子对总方差的贡献率为79.80%,前两个因子的累积贡献率为81.32%,说明该主成分可以很好地解释该变量的方差。In the figure, the horizontal axis represents the five components, the vertical axis represents the 19 characteristic parameters selected above, and the color depth of the factor loading matrix shows the degree of correlation between each principal component and the original variable. It can be seen that the range of values in the figure is usually between -1 and 1, close to 1 indicates a high positive correlation, close to -1 indicates a high negative correlation, and close to 0 indicates a low correlation or no correlation. The higher load value in the heat map indicates that there is a strong correlation between the principal component and the original variable. If a principal component has a high load value with a variable, such as the first factor contributes 79.80% to the total variance, and the cumulative contribution of the first two factors is 81.32%, it means that the principal component can well explain the variance of the variable.
接下来利用K均值聚类方法,聚类的数量为2,即将样本分为两个簇。接着,使用fit方法拟合数据并获取聚类结果,获取聚类中心和每个样本的聚类标签。最后,统计每个类别的样本数量并打印输出。根据聚类结果,共有两个簇,其中第一个簇包含300个样本,第二个簇包含20个样本。聚类的平均轮廓系数(Silhouette-Score)为:0.9342949098434978,该值越接近1,表示聚类效果越好;而越接近-1,则表示样本更适合分配到不同的簇。CH(Calinski-Harabasz)指数为:442.51558243139345,DB(Davies-Bouldin)指数为:0.46819286842833047。均表明了聚类效果较好,簇内数据点之间的相似性较高,簇之间的区分度较好。Next, the K-means clustering method is used, and the number of clusters is 2, that is, the samples are divided into two clusters. Then, the fit method is used to fit the data and obtain the clustering results, and the cluster center and the cluster label of each sample are obtained. Finally, the number of samples in each category is counted and printed out. According to the clustering results, there are two clusters, of which the first cluster contains 300 samples and the second cluster contains 20 samples. The average silhouette coefficient (Silhouette-Score) of the cluster is: 0.9342949098434978. The closer the value is to 1, the better the clustering effect is; and the closer it is to -1, the more suitable the sample is to be assigned to different clusters. The CH (Calinski-Harabasz) index is: 442.51558243139345, and the DB (Davies-Bouldin) index is: 0.46819286842833047. Both indicate that the clustering effect is good, the similarity between the data points in the cluster is high, and the distinction between clusters is good.
在驾驶风格得到有效分类后,本发明将结合车辆驾驶风格向量以及周围交通环境向量,利用设计好的DCTAM-BOLSTM模型进行周围车辆的轨迹预测。本发明用3s的历史轨迹预测未来5s的轨迹,评价指标为1~5的终点位移误差。实验在NVIDIA GeForce RTX4060GPU上进行,代码在深度学习框架PyTorch下实现。训练迭代次数为600,Batch Size为1024,优化器为Adam,学习率为0.001,权重衰减为0.0001。进行5次实验,分别在10组数据集上进行,共50组实验。为验证所提出模型的先进性,本发明将与当前表现较好的轨迹预测模型进行对比。不同模型5秒内预测终点位移误差对比结果如表4所示。其中,S-LSTM为使用社交池化层的LSTM编码解码模型;M-LSTM为考虑周围车辆驾驶行为的LSTM编码解码模型;MHA-LSTM为融合多头注意力机制的LSTM编码解码模型;而DCTAM-BOLSTM为本发明提出的LSTM编码解码模型。After the driving style is effectively classified, the present invention will combine the vehicle driving style vector and the surrounding traffic environment vector, and use the designed DCTAM-BOLSTM model to predict the trajectory of surrounding vehicles. The present invention uses the 3s historical trajectory to predict the trajectory of the next 5s, and the evaluation index is the terminal displacement error of 1 to 5. The experiment was carried out on the NVIDIA GeForce RTX4060GPU, and the code was implemented under the deep learning framework PyTorch. The number of training iterations is 600, the Batch Size is 1024, the optimizer is Adam, the learning rate is 0.001, and the weight decay is 0.0001. Five experiments were conducted on 10 sets of data sets, for a total of 50 sets of experiments. In order to verify the advancedness of the proposed model, the present invention will be compared with the current trajectory prediction model with better performance. The comparison results of the terminal displacement error predicted within 5 seconds by different models are shown in Table 4. Among them, S-LSTM is an LSTM encoding and decoding model using a social pooling layer; M-LSTM is an LSTM encoding and decoding model that takes into account the driving behavior of surrounding vehicles; MHA-LSTM is an LSTM encoding and decoding model that integrates a multi-head attention mechanism; and DCTAM-BOLSTM is the LSTM encoding and decoding model proposed in the present invention.
表4:不同模型5秒内预测终点位移误差对比Table 4: Comparison of the error of different models predicting the end point displacement within 5 seconds
可以看出,本发明提出的模型在车辆轨迹预测方面,在5s内的终点位移均方根误差控制在1.35m以内,且预测能力方面明显优于其他模型。因此,本发明提出的车辆轨迹预测模型能够显著提升模型对真实轨迹数据的学习能力。It can be seen that the model proposed in the present invention has a root mean square error of the end point displacement within 5 seconds within 1.35m in terms of vehicle trajectory prediction, and its prediction ability is significantly better than other models. Therefore, the vehicle trajectory prediction model proposed in the present invention can significantly improve the model's ability to learn real trajectory data.
最后,将车辆驾驶风格向量标签以及轨迹预测模块得到的周围车辆轨迹预测信息,与上文提到的安全性、舒适性、驾驶效率和变道增益中包含的交通信息向量级联,然后输入到全连接神经网络(FCNN)。为验证所提出模型的决策准确性,本发明将与基于监督学习算法的支持向量机(SVM)模型、基于规则的模型MOBIL,以及基于学习的LSTM决策模型进行比较。对比结果如表5所示。Finally, the vehicle driving style vector label and the surrounding vehicle trajectory prediction information obtained by the trajectory prediction module are cascaded with the traffic information vector contained in the safety, comfort, driving efficiency and lane change gain mentioned above, and then input into the fully connected neural network (FCNN). In order to verify the decision accuracy of the proposed model, the present invention will be compared with the support vector machine (SVM) model based on the supervised learning algorithm, the rule-based model MOBIL, and the learning-based LSTM decision model. The comparison results are shown in Table 5.
表5:不同行为决策模型决策准确率对比Table 5: Comparison of decision accuracy of different behavioral decision models
从数值结果来看,本发明提出的考虑个性化驾驶风格及周围车辆驾驶轨迹的行为决策模型相较于其他模型,在预测准确率方面得到了有效的提高。From the numerical results, it can be seen that the behavioral decision-making model proposed in the present invention, which takes into account the personalized driving style and the driving trajectory of surrounding vehicles, has effectively improved the prediction accuracy compared with other models.
相应地,本发明的实施例还提供了一种考虑驾驶风格的车辆轨迹预测与行为决策系统,该系统包括:Accordingly, an embodiment of the present invention further provides a vehicle trajectory prediction and behavior decision system considering driving style, the system comprising:
环境感知模块,用于获取驾驶行为数据集,对所述驾驶行为数据集进行数据处理,得到用于车辆轨迹预测的平衡化数据集;An environment perception module, used to obtain a driving behavior data set, perform data processing on the driving behavior data set, and obtain a balanced data set for vehicle trajectory prediction;
所述平衡化数据集中还包含基于驾驶风格分类器对所述驾驶行为数据集进行分类得到的驾驶风格向量标签;The balanced data set also includes a driving style vector label obtained by classifying the driving behavior data set based on a driving style classifier;
轨迹预测模块,用于构建基于贝叶斯优化融合离散余弦变换注意力机制的长短时记忆网络,进行车辆轨迹预测;Trajectory prediction module, which is used to build a long short-term memory network based on Bayesian optimization and discrete cosine transform attention mechanism to predict vehicle trajectory;
其中,利用所述平衡化数据集对所述长短时记忆网络进行训练和测试;wherein the balanced data set is used to train and test the long short-term memory network;
行为决策模块,用于结合多车道变道场景的安全因子、舒适因子、效率因子、增益因子,以及驾驶风格向量标签和车辆轨迹预测信息,采用深度学习模型实现车道变更行为决策。The behavior decision module is used to combine the safety factor, comfort factor, efficiency factor, gain factor, driving style vector label and vehicle trajectory prediction information of multi-lane lane change scenarios, and use a deep learning model to realize lane change behavior decision.
本实施例的系统,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The system of this embodiment can be used to execute the technical solution of the method embodiment shown in FIG1 . Its implementation principle and technical effects are similar and will not be described in detail here.
本发明提出的考虑驾驶风格的车辆轨迹预测与行为决策方法和系统,在高度交互的动态复杂交通环境中,通过考虑不同驾驶风格车辆的预测轨迹,从而能够更好的模仿人类驾驶员的驾驶操作,以实现准确、高效的行为决策。The vehicle trajectory prediction and behavior decision-making method and system considering driving style proposed in the present invention can better imitate the driving operation of human drivers by considering the predicted trajectories of vehicles with different driving styles in a highly interactive, dynamic and complex traffic environment, so as to achieve accurate and efficient behavior decision-making.
在示例性实施例中,本发明还提供一种电子设备,所述电子设备包括:In an exemplary embodiment, the present invention further provides an electronic device, the electronic device comprising:
处理器;processor;
存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器加载并执行时,实现如上述车辆轨迹预测与行为决策方法的步骤。A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are loaded and executed by the processor, the steps of the vehicle trajectory prediction and behavior decision-making method as described above are implemented.
在示例性实施例中,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上述车辆轨迹预测与行为决策方法的步骤。例如,所述计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, the present invention further provides a computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is loaded and executed by a processor to implement the steps of the vehicle trajectory prediction and behavior decision method as described above. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "includes a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
在说明书中提到“一个实施例”、“实施例”、“示例性实施例”、“一些实施例”等指示所述的实施例可以包括特定特征、结构或特性,但未必每个实施例都包括该特定特征、结构或特性。另外,在结合实施例描述特定特征、结构或特性时,结合其它实施例(无论是否明确描述)实现这种特征、结构或特性应在相关领域技术人员的知识范围内。References in the specification to "one embodiment", "an embodiment", "an exemplary embodiment", "some embodiments", etc. indicate that the described embodiments may include a particular feature, structure, or characteristic, but not every embodiment may include the particular feature, structure, or characteristic. In addition, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it should be within the knowledge of a person skilled in the relevant art to implement such feature, structure, or characteristic in conjunction with other embodiments (whether or not explicitly described).
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系,但也可能表示的是一种“和/或”的关系,具体可参考前后文进行理解。It should be understood that the term "and/or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character "/" in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and/or" relationship. Please refer to the context for specific understanding.
本发明中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
本发明涵盖任何在本发明的精髓和范围上做的替代、修改、等效方法以及方案。为了使公众对本发明有彻底的了解,在以下本发明优选实施例中详细说明了具体的细节,而对本领域技术人员来说没有这些细节的描述也可以完全理解本发明。另外,为了避免对本发明的实质造成不必要的混淆,并没有详细说明众所周知的方法、过程、流程、元件和电路等。The present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention. In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, and those skilled in the art can fully understand the present invention without the description of these details. In addition, in order to avoid unnecessary confusion about the essence of the present invention, well-known methods, processes, procedures, components and circuits are not described in detail.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410499805.9A CN118306403B (en) | 2024-04-24 | 2024-04-24 | Vehicle track prediction and behavior decision method and system considering driving style |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410499805.9A CN118306403B (en) | 2024-04-24 | 2024-04-24 | Vehicle track prediction and behavior decision method and system considering driving style |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118306403A true CN118306403A (en) | 2024-07-09 |
CN118306403B CN118306403B (en) | 2024-12-17 |
Family
ID=91728867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410499805.9A Active CN118306403B (en) | 2024-04-24 | 2024-04-24 | Vehicle track prediction and behavior decision method and system considering driving style |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118306403B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119149905A (en) * | 2024-08-12 | 2024-12-17 | 安徽大学 | Vehicle track prediction method and device suitable for different driving styles |
CN119272060A (en) * | 2024-12-12 | 2025-01-07 | 山东大学 | Vehicle nitrogen oxide emission model training method and system for virtual calibration |
CN119149905B (en) * | 2024-08-12 | 2025-07-25 | 安徽大学 | Vehicle track prediction method and device suitable for different driving styles |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076599A (en) * | 2021-04-15 | 2021-07-06 | 河南大学 | Multimode vehicle trajectory prediction method based on long-time and short-time memory network |
CN113313941A (en) * | 2021-05-25 | 2021-08-27 | 北京航空航天大学 | Vehicle track prediction method based on memory network and encoder-decoder model |
CN115056798A (en) * | 2022-05-30 | 2022-09-16 | 天津大学 | A Bayesian Game-Based Vehicle-Road Collaborative Decision Algorithm for Lane-changing Behavior of Autonomous Vehicles |
US20240001966A1 (en) * | 2022-06-30 | 2024-01-04 | Baidu Usa Llc | Scenario-based training data weight tuning for autonomous driving |
WO2024008880A1 (en) * | 2022-07-06 | 2024-01-11 | Mercedes-Benz Group AG | Driving style based personalizable driver assistance system and method |
CN117585017A (en) * | 2023-12-11 | 2024-02-23 | 西部科学城智能网联汽车创新中心(重庆)有限公司 | Automatic driving vehicle lane change decision method, device, equipment and storage medium |
-
2024
- 2024-04-24 CN CN202410499805.9A patent/CN118306403B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076599A (en) * | 2021-04-15 | 2021-07-06 | 河南大学 | Multimode vehicle trajectory prediction method based on long-time and short-time memory network |
CN113313941A (en) * | 2021-05-25 | 2021-08-27 | 北京航空航天大学 | Vehicle track prediction method based on memory network and encoder-decoder model |
CN115056798A (en) * | 2022-05-30 | 2022-09-16 | 天津大学 | A Bayesian Game-Based Vehicle-Road Collaborative Decision Algorithm for Lane-changing Behavior of Autonomous Vehicles |
US20240001966A1 (en) * | 2022-06-30 | 2024-01-04 | Baidu Usa Llc | Scenario-based training data weight tuning for autonomous driving |
WO2024008880A1 (en) * | 2022-07-06 | 2024-01-11 | Mercedes-Benz Group AG | Driving style based personalizable driver assistance system and method |
CN117585017A (en) * | 2023-12-11 | 2024-02-23 | 西部科学城智能网联汽车创新中心(重庆)有限公司 | Automatic driving vehicle lane change decision method, device, equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119149905A (en) * | 2024-08-12 | 2024-12-17 | 安徽大学 | Vehicle track prediction method and device suitable for different driving styles |
CN119149905B (en) * | 2024-08-12 | 2025-07-25 | 安徽大学 | Vehicle track prediction method and device suitable for different driving styles |
CN119272060A (en) * | 2024-12-12 | 2025-01-07 | 山东大学 | Vehicle nitrogen oxide emission model training method and system for virtual calibration |
CN119272060B (en) * | 2024-12-12 | 2025-05-09 | 山东大学 | Vehicle nitrogen oxide emission model training method and system for virtual calibration |
Also Published As
Publication number | Publication date |
---|---|
CN118306403B (en) | 2024-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sayed et al. | Artificial intelligence-based traffic flow prediction: a comprehensive review | |
Siami et al. | A mobile telematics pattern recognition framework for driving behavior extraction | |
Sun et al. | Corner case generation and analysis for safety assessment of autonomous vehicles | |
Li et al. | Short-term vehicle speed prediction based on BiLSTM-GRU model considering driver heterogeneity | |
CN105091890B (en) | Method and apparatus for recommended candidate path | |
Chu et al. | A review of driving style recognition methods from short-term and long-term perspectives | |
Jin et al. | Gauss mixture hidden Markov model to characterise and model discretionary lane‐change behaviours for autonomous vehicles | |
Vasconcelos et al. | Smartphone-based outlier detection: a complex event processing approach for driving behavior detection | |
CN112046489A (en) | Driving style identification algorithm based on factor analysis and machine learning | |
CN113706220A (en) | User portrait determination, user demand prediction method, and data processing system | |
EP3965021B1 (en) | A method of using clustering-based regularization in training a deep neural network to classify images | |
CN116050245A (en) | Trajectory prediction and decision-making method and system for autonomous driving commercial vehicles on highways based on complex network theory | |
CN115062202A (en) | Method, device, equipment and storage medium for predicting driving behavior intention and track | |
Hu et al. | Driver identification using 1D convolutional neural networks with vehicular CAN signals | |
CN118306403A (en) | Vehicle track prediction and behavior decision method and system considering driving style | |
CN117709602A (en) | Urban intelligent vehicle personification decision-making method based on social value orientation | |
Wang et al. | Machine learning for transportation research and applications | |
Taylor et al. | Road type classification through data mining | |
Li et al. | Personalized trajectory prediction for driving behavior modeling in ramp-merging scenarios | |
Selvaraj et al. | Edge learning of vehicular trajectories at regulated intersections | |
Hu et al. | Bayesian global optimization gated recurrent unit model for human-driven vehicle lane-change trajectory prediction considering hyperparameter optimization | |
CN117132958B (en) | Road element identification method and related device | |
CN117275240B (en) | Traffic signal reinforcement learning control method and device considering multiple types of driving styles | |
Li et al. | Driving cycle prediction based on Markov chain combined with driving information mining | |
Liu et al. | Learning to route via theory-guided residual network |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |