Driving intention recognition method based on trajectory prediction
By vectorizing vehicle historical trajectories and high-definition maps, constructing graph neural networks and model fusion, we solve the problem that existing technology cannot predict short-term driving intentions, achieve accurate identification of future trajectories and driving intentions, and improve traffic safety and efficiency.
Patent Information
- Application Number
- CN202410596068.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
Existing vehicle driving intention models cannot predict driving intentions in a short period of time, resulting in limited improvements in traffic safety and efficiency.
A driving intention recognition method based on trajectory prediction is used to obtain vehicle historical trajectories and high-definition maps. After vectorization processing, hierarchical subgraphs and global interaction graphs are constructed. VectorNet graph neural network is used for training, combining random forest, gradient boosting and decision trees. The models are fused to build a driving intention recognition model to predict future trajectories and identify driving intentions.
It achieves accurate prediction of future trajectories and identification of driving intentions, improves the accuracy of identification of driving intentions, and reduces the risk of potential traffic accidents.
Smart Images

Figure CN118536003A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent transportation systems, and in particular to a driving intention recognition method based on trajectory prediction. Background Art
[0002] Driving intention recognition is of great significance in intelligent transportation systems and is crucial to ensuring traffic safety and improving traffic efficiency. A large number of scholars have conducted research on driving intention recognition, but most of them are based on methods such as generative models, discriminative models, deep learning models and rules. Generative models understand the potential intentions in driving behavior by learning the distribution of driving data, such as the driver's lane change intention recognition based on Markov model and Bayesian filtering technology done by Li et al. The discriminative model has a strong classification ability. For example, Morris et al. used the relevant vector machine to model and achieved 80% recognition accuracy. The deep learning model is based on a neural network and establishes a mapping relationship between driving data and driving intention through multi-layer nonlinear transformations, such as the CNN-LSTM model proposed by Zhuang Hao et al. In addition, rule-based methods are also one of the important research directions. For example, Bocklisch et al. achieved left and right lane change behaviors with an accuracy of 89.3% and 86.3% respectively based on adaptive fuzzy mode, but they cannot predict the vehicle's driving intention in a short time. Summary of the invention
[0003] The present invention provides a driving intention recognition method based on trajectory prediction to overcome the technical problem that the existing vehicle driving intention model cannot predict the driving intention after a short time.
[0004] In order to achieve the above object, the technical solution of the present invention is:
[0005] A driving intention recognition method based on trajectory prediction, comprising:
[0006] S1: Obtain vehicle historical trajectories and historical high-definition maps, perform trajectory filtering and vehicle feature screening on the vehicle historical trajectories, and divide the processed vehicle historical trajectories into a training set, a test set, and a validation set; the vehicle features include sampling time, vehicle type, location coordinates of surrounding vehicles, and sampling location;
[0007] S2: vectorizing the historical trajectories of the vehicles in the training set and the historical high-definition map to obtain a vector map;
[0008] S3: constructing a hierarchical sub-map based on the vector elements in the vector map;
[0009] S4: construct a global interaction graph based on the hierarchical subgraphs, and use a VectorNet graph neural network to train the relationship between the hierarchical subgraphs in the global interaction graph to obtain future trajectories;
[0010] S5: labeling the lateral driving intention and the longitudinal driving intention of the vehicle historical trajectory to obtain a driving intention label;
[0011] S6: construct a random forest model, a gradient boosting model and a decision tree model, and use a voting classifier to fuse the random forest model, the gradient boosting model and the decision tree model to obtain a fusion model; and based on the fusion model, train the vehicle historical trajectory and the driving intention label to obtain a driving intention recognition model, and identify the future trajectory according to the driving intention recognition model to obtain the final driving intention.
[0012] Furthermore, the historical trajectories of the vehicles in the training set and the historical high-definition map are vectorized to obtain a vector map, including:
[0013] Dividing the elements in the historical high-definition map into lane lines, zebra crossings and traffic lights;
[0014] Uniformly sampling distance key points at the same spatial distance for lane lines and zebra crossings of the historical high-definition map, and sequentially connecting the distance key points in the lane lines and zebra crossings into vectors, taking the traffic lights themselves as key points, and obtaining map features;
[0015] The vehicle historical trajectory in the training set is sampled at fixed time intervals using time key points, and the time key points are sequentially connected to form a vehicle historical trajectory polyline set, as shown in formula (1):
[0016]
[0017] in, and are the coordinates of the starting point and the end point, respectively. i is the attribute feature, j is P j The identifier of v i represents the broken line feature of the vehicle's historical trajectory, v i ∈P j , P j represents the vehicle trajectory polyline set, and P is the node feature vector;
[0018] The map features and the vehicle historical trajectory polyline set are drawn into a vector map.
[0019] Further, constructing a hierarchical sub-map based on the vector elements in the vector map includes:
[0020] The vectors belonging to the same polyline are connected head to tail according to the time sequence, and the connected vehicle trajectory polyline is used as a hierarchical subgraph. The definition of a single layer of the hierarchical subgraph is shown in formula (2):
[0021]
[0022] in, is the node feature of the subgraph network layer l, The input is the vehicle trajectory polyline feature, v j Represents the adjacent vehicle trajectory polyline characteristics, function g enc (·) is the information of each node, φ agg (·) Aggregate all neighboring node information, φ rel (·) is the node v i The relational operator with its neighboring nodes, g enc (·) is a multi-layer perceptron, φ agg (·) is a maximum pooling operation, φ rel (·) is a serial operation.
[0023] Furthermore, a global interaction graph is constructed based on the hierarchical subgraphs, and the global interaction graph is trained using a VectorNet graph neural network to obtain future trajectories, including:
[0024] Initializing the interaction information between the hierarchical subgraphs, establishing the connections between the hierarchical subgraphs, and connecting the hierarchical subgraphs to obtain a global interaction graph;
[0025] The global interaction graph is trained using the VectorNet graph neural network, as shown in formula (3):
[0026]
[0027] in, is a hierarchical subgraph, CNN(·) is a single layer of the corresponding graph neural network, and A is the connection between the hierarchical subgraphs in the global interaction graph;
[0028] The node feature vector is processed using softmax to obtain formula (4):
[0029]
[0030] Among them, P is the node feature vector, P Q , P K , P V are their linear projections. After training, the corresponding hierarchical subgraphs are decoded to obtain the future trajectory, as shown in formula (5).
[0031]
[0032] in, represents the future trajectory, L t is the total number of layers of GNN, φtraj (·) is the trajectory decoder.
[0033] Further, a random forest model, a gradient boosting model and a decision tree model are constructed, and the random forest model, the gradient boosting model and the decision tree model are fused using a voting classifier to obtain a fusion model; and the vehicle historical trajectory is trained based on the fusion model to obtain a driving intention recognition model, and the future trajectory is recognized according to the driving intention recognition model to obtain the final driving intention, including:
[0034] S61. Import the model libraries of random forest, gradient boosting and decision tree;
[0035] S62, instantiating the model library to obtain a random forest model, a gradient boosting model and a decision tree model;
[0036] S63, using a voting classifier to fuse the three models to obtain a fusion model, uploading the vehicle features and driving intention labels in the training set, using a fit method to train the model, and using the test set for automatic evaluation and optimization, and using a validation set for validation, to obtain a driving intention recognition model;
[0037] S64: According to the driving intention recognition model, use a predict method to recognize the future trajectory to obtain the driving intention.
[0038] The present invention discloses a driving intention recognition method based on trajectory prediction. The method comprises the following steps: vectorizing a vehicle historical trajectory and a high-definition map, constructing a hierarchical subgraph according to vector elements, and training the hierarchical subgraph using a Vectornet graph neural network to obtain a future trajectory; constructing a random forest model, a gradient boosting model, and a decision tree model, and fusing the three models to obtain a fusion model; and training based on the future trajectory using the fusion model to perform driving intention recognition. The present invention can predict the future trajectory in real time according to the historical vehicle trajectory, and perform driving intention recognition according to the future trajectory. The method can perform driving intention recognition more accurately, improve the accuracy of driving intention recognition, and effectively avoid potential traffic accident risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A method flow chart of a driving intention recognition method based on trajectory prediction of the present invention;
[0041] Figure 2 is the vehicle history trajectory map before filtering;
[0042] Figure 3 is a scene graph before vectorization of the present invention;
[0043] Figure 4 The scene graph vectorized by VectorNet is used in the present invention;
[0044] Figure 5 It is the feature processing diagram of Vectornet graph neural network;
[0045] Figure 6 It is the global interaction graph of Vectornet graph neural network;
[0046] Figure 7 A schematic diagram of driving intention recognition of the present invention;
[0047] Figure 8 This is a diagram showing the future trajectory and driving intention recognition effect of the trajectory prediction of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments 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.
[0049] This embodiment provides a driving intention recognition method based on trajectory prediction, such as Figure 1 As shown,
[0050] S1: Obtain vehicle historical trajectories and historical high-definition maps, perform trajectory filtering and vehicle feature screening on the vehicle historical trajectories, and divide the processed vehicle historical trajectories into a training set, a test set, and a validation set; the vehicle features include sampling time, vehicle type, coordinates of surrounding vehicles, and sampling locations;
[0051] S2: vectorizing the historical trajectories of the vehicles in the training set and the historical high-definition map to obtain a vector map;
[0052] S3: constructing a hierarchical sub-map based on the vector elements in the vector map;
[0053] S4: construct a global interaction graph based on the hierarchical subgraph, and train the global interaction graph using a VectorNet graph neural network to obtain future trajectories;
[0054] S5: labeling the lateral driving intention and the longitudinal driving intention of the vehicle historical trajectory to obtain a driving intention label;
[0055] S6: construct a random forest model, a gradient boosting model and a decision tree model, and use a voting classifier to fuse the random forest model, the gradient boosting model and the decision tree model to obtain a fusion model; and based on the fusion model, train the vehicle historical trajectory and the driving intention label to obtain a driving intention recognition model, and identify the future trajectory according to the driving intention recognition model to obtain the final driving intention.
[0056] Specifically, the vehicle's historical trajectory and historical high-definition map are obtained, the vehicle's historical trajectory is filtered and vehicle features are screened, and the processed vehicle's historical trajectory is divided into a training set, a test set and a validation set; the vehicle features include sampling time, vehicle type, coordinates of surrounding vehicles and sampling location, and filtering the trajectory can improve the accuracy of the vehicle's position and reduce the system's sensitivity to noise; dividing the trajectory into a training set, a test set and a validation set can effectively extract the trajectory sequence, better capture the key features in the trajectory, and make the training data more accurate; secondly, the vehicle's historical trajectory and the historical high-definition map in the training set are vectorized to obtain a vector map, which can effectively predict the vehicle's trajectory in combination with the driving vehicle's surrounding environment; a hierarchical subgraph is constructed based on the vector elements in the vector map, which can effectively extract effective features, and can effectively improve the robustness of the trajectory prediction model, thereby improving the trajectory prediction model effect; based on the vector elements in the vector map, a hierarchical subgraph is constructed, which can effectively extract effective features, and can effectively improve the robustness of the trajectory prediction model, thereby improving the trajectory prediction model effect; based on the A global interaction graph is constructed based on the hierarchical subgraphs, and the Vectornet graph neural network is used for training to obtain the future trajectory. The Vectornet graph neural network can effectively integrate map information with vehicle trajectory information to predict the future trajectory. Finally, the lateral driving intention and longitudinal driving intention of the vehicle historical trajectory are annotated to obtain the driving intention label, which is fully prepared for the later model training. A random forest model, a gradient boosting model and a decision tree model are constructed, and the random forest model, the gradient boosting model and the decision tree model are fused using a voting classifier to obtain a fusion model. The vehicle historical trajectory is trained based on the fusion model to obtain a driving intention recognition model, and the future trajectory is recognized according to the driving intention recognition model to obtain the final driving intention. Using the fusion model for driving intention recognition can reduce the risk of overfitting, stabilize the operation process and achieve better recognition effect.
[0057] In a specific embodiment, a vehicle history track and a history high-definition map are obtained, the vehicle history track is subjected to track filtering and vehicle feature screening, and the processed vehicle history track is divided into a training set, a test set and a validation set; the vehicle features include sampling time, vehicle type, relative coordinates of the vehicle and a sampling location. The scheme is:
[0058] S11. Obtain vehicle historical tracks and historical high-definition maps:
[0059] This solution uses the Argoverse public dataset collected by Argo AI in Pittsburgh and Miami, USA. The dataset contains 324,557 vehicle trajectories extracted from more than 1,000 driving hours. The data is collected by two lidar sensors, seven ring cameras, and two front stereo cameras. The seven high-resolution ring cameras and two front stereo cameras provide 30Hz and 5Hz sampling data respectively, covering the driving scenarios of 200 meters around the sampled vehicles;
[0060] S12, using average smoothing filtering to perform trajectory filtering on the vehicle historical trajectory:
[0061] In the application of vehicle trajectory, due to factors such as sensor error and environmental interference, trajectory data often contains random noise, which affects the accurate estimation of the vehicle's motion state;
[0062] Average smoothing filtering is a technology commonly used in signal processing and trajectory estimation. Its basic principle is to reduce the impact of noise by calculating the average value of data points within a certain time or space range, thereby obtaining a smoother signal or trajectory. Average smoothing filtering can eliminate instantaneous instability by weighted averaging trajectory points at adjacent moments or spatial positions, making the vehicle trajectory more stable in time and space. This helps to improve the accuracy of vehicle position and reduce the system's sensitivity to noise. This solution selects a certain section of vehicle trajectory. The trajectory before and after filtering is as follows: Figure 2 As shown;
[0063] S13, screening the vehicle characteristics of the vehicle historical trajectory:
[0064] The vehicle features are shown in Table 1. Based on the features in the table, the vehicle itself can be transformed into a polyline composed of several vector segments;
[0065] Table 1 Vehicle characteristics
[0066]
[0067]
[0068] In the table, the X coordinate and Y coordinate represent the coordinates of the surrounding vehicles with the vehicle as the origin;
[0069] S14, dividing the processed vehicle historical trajectory into a training set, a test set and a validation set:
[0070] The sliding window method is used to effectively extract the historical trajectory of the vehicle to obtain a trajectory sequence, and the length of the trajectory sequence is limited to 80 to ensure that key information is fully covered. The length of the sliding window is set to 1 to capture the slight information changes in each step. At the same time, the lane change label at 5 seconds of the driving trajectory subsequence is regarded as the lane change intention of the entire sequence; the processed data is divided into training set, test set and validation set in a ratio of 6:2:2.
[0071] This solution can obtain enough data, remove noise in the data through filtering, extract trajectories using sliding windows, and divide the trajectories into multiple sequences to better capture the key features of the trajectories and make the training data more accurate.
[0072] In a specific embodiment, the vehicle historical trajectories in the training set and the historical high-definition map are vectorized to obtain a vector map as follows:
[0073] This embodiment vectorizes the high-definition map, and the elements in the processed driving scene exist in the form of vectors, closed shapes and key points;
[0074] Dividing the elements in the historical high-definition map into lane lines, zebra crossings and traffic lights;
[0075] Uniformly sampling distance key points at the same spatial distance for lane lines and zebra crossings of the historical high-definition map, and sequentially connecting the distance key points in the lane lines and zebra crossings into vectors, taking the traffic lights themselves as key points, and obtaining map features;
[0076] The vehicle historical trajectories in the training set are sampled at fixed time intervals using time key points, and the time key points are sequentially connected to form a vehicle trajectory polyline set, as shown in formula (6):
[0077]
[0078] in, and are the coordinates of the starting point and the end point, respectively. i is the attribute feature, j is P j The identifier of v i represents the vehicle trajectory polyline feature, v i ∈P j , P j represents the vehicle trajectory polyline set; P is the node feature vector;
[0079] The map features and the vehicle historical trajectory polyline set are drawn into a vector map. The scene graphs of the vehicle trajectory and the map before and after vectorization are as follows: Figure 3 and Figure 4 As shown in the figure, the traffic lights are drawn in the form of points, the zebra crossings are drawn in the form of vectors to form a closed shape, and the lane lines, the own vehicle vectors and the other vehicle vectors are all drawn in the form of vector line segments to obtain a vector map.
[0080] This solution can effectively combine the driving vehicle's surrounding environment to predict the vehicle trajectory, thereby effectively improving the accuracy of trajectory prediction.
[0081] In a specific embodiment, the scheme for constructing a hierarchical sub-map based on the vector elements in the vector map is:
[0082] The vectors belonging to the same vehicle trajectory polyline are connected head to tail according to the time sequence, and the connected vehicle trajectory polyline is used as a hierarchical subgraph. The definition of a single layer of the hierarchical subgraph propagation is shown in formula (7):
[0083]
[0084] in, is the node feature of the subgraph network layer l, The input is the vehicle trajectory polyline feature, v j Represents the adjacent vehicle trajectory polyline characteristics, function g enc (·) is the information of each node, φ agg (·) Aggregate all neighboring node information, φ rel (·) is v i The relational operator with its neighboring nodes. enc (·) is a multi-layer perceptron, φ agg (·) is a maximum pooling operation, φ rel (·) is a concatenation operation, and the feature processing is as follows Figure 5 As shown, the vehicle trajectory polyline features are input and the nodes are encoded, and the encoded features are processed using an aggregation operation, the aggregation operation is a maximum pooling operation, and finally the processed features after aggregation are concatenated with the encoded features to obtain the output concatenated trajectory features.
[0085] This solution can effectively extract effective features, and can effectively improve the robustness of the trajectory prediction model and improve the effect of the trajectory prediction model.
[0086] In a specific embodiment, a global interaction graph is constructed based on the hierarchical subgraphs, and the global interaction graph is trained using a VectorNet graph neural network to obtain a solution for obtaining future trajectories:
[0087] Initializing the interaction information between the hierarchical subgraphs, establishing the connections between the hierarchical subgraphs, and connecting the hierarchical subgraphs to obtain a global interaction graph;
[0088] The global interaction graph is trained using the VectorNet graph neural network, as shown in formula (8):
[0089]
[0090] in, is a hierarchical subgraph, GNN(·) is a single layer of the corresponding graph neural network, and A is the connection between the hierarchical subgraphs in the global interaction graph;
[0091] Use softmax to process the node feature vector and get formula (9):
[0092]
[0093] Among them, P is the node feature vector, P Q , P K , P V are their linear projections. After training, the corresponding hierarchical subgraphs are decoded to obtain the future trajectory, as shown in formula (10).
[0094]
[0095] in, represents the future trajectory, L t is the total number of layers of GNN, φ traj (·) is the trajectory decoder.
[0096] The global interaction graph constructed is as follows Figure 6 As shown in the figure, each rectangle is a hierarchical subgraph constructed based on environmental information and vehicle trajectories, which are fully connected to construct a global interaction graph.
[0097] This solution uses Vectornet graph neural network to effectively integrate map information with vehicle trajectory information, and then predict future trajectories.
[0098] In a specific embodiment, the vehicle historical trajectory is annotated with lateral driving intention and longitudinal driving intention to obtain a driving intention label as follows:
[0099] Driving a vehicle involves a series of complex operations, including changing lanes, accelerating, decelerating, and other behaviors. These operations are affected by multiple factors. In order to accurately identify the driver's driving intention, this solution predicts the future trajectory based on the surrounding environment and historical vehicle trajectories, and infers the driving behaviors that the driver may take in the future.
[0100] Driving intentions are divided into lateral driving intentions and longitudinal driving intentions. Lateral driving intentions mainly include left and right lane changes, while longitudinal driving intentions mainly include acceleration, deceleration and straight driving.
[0101] S51, Horizontal Intent Marking
[0102] The lateral driving intention mainly includes left lane change and right lane change. In this embodiment, the interval in which the lateral coordinate of the vehicle changes continuously in one direction is regarded as the vehicle lane change process. The main information to be extracted from the lane change information includes the lane change starting point, lane change end point and the time when the lane number changes. The lane change discrimination method of this paper is shown in formulas (11) and (12).
[0103]
[0104]
[0105] Among them, t s and t e are the starting and ending times of lane change respectively; t 1 is the moment when the vehicle crosses the lane line; x 1 x is the lateral coordinate of the lane-changing vehicle crossing the lane line; t is the lateral coordinate of the vehicle at time t; W 1 is the lane width;
[0106] S52, vertical intention marking
[0107] Longitudinal driving intention mainly includes acceleration, deceleration and straight driving. The longitudinal driving intention in this paper is divided according to the acceleration value of the vehicle, as shown in Table 2.
[0108] Table 2 Longitudinal driving intention recognition criteria
[0109] Vertical Intention feature accelerate <![CDATA[Go straight, acceleration greater than 1.96m / s 2 > slow down <![CDATA[Go straight, acceleration less than -1.96m / s 2 > straight <![CDATA[Go straight, with an acceleration between 1.96 m / s 2 and -1.96 m / s 2 >
[0110] The driving intention data annotation results are shown in Table 3, and the driving intention label is obtained;
[0111] Table 3 Data annotation results
[0112] Label Left Lane Change Right Lane Change accelerate slow down straight data 1681 1553 6676 6205 16513
[0113] This solution can classify the driving intentions of historical trajectories and make full preparations for later model training.
[0114] In a specific embodiment, a random forest model, a gradient boosting model and a decision tree model are constructed, and the random forest model, the gradient boosting model and the decision tree model are fused using a voting classifier to obtain a fusion model; and the vehicle historical trajectory and the driving intention label are trained based on the fusion model to obtain a driving intention recognition model, and the future trajectory is recognized according to the driving intention recognition model, and the solution to obtain the final driving intention is:
[0115] S61. Import the model libraries of random forest, gradient boosting and decision tree;
[0116] S62, instantiating the model library to obtain a random forest model, a gradient boosting model and a decision tree model;
[0117] S63, using a voting classifier to fuse the three models to obtain a fusion model, uploading the vehicle features and driving intention labels in the training set, using a fit method to train the model, and learning data features and patterns by adjusting parameters and weights during the training process; using the test set to perform automatic evaluation optimization to evaluate the generalization ability and performance of the model; using a validation set to perform verification, using a set of historical trajectories that have not participated in the training as an evaluation standard, verifying the final effect of the model, and obtaining a driving intention recognition model;
[0118] S64: According to the driving intention recognition model, use a predict method to recognize the future trajectory to obtain the driving intention.
[0119] The principles of the three models in this scheme are as follows:
[0120] The random forest algorithm processes high-dimensional and large-scale data sets by constructing multiple decision trees, and is not prone to overfitting. Using the bagging method, multiple subsets are randomly sampled from the training set, and a decision tree is trained independently for each subset. During the splitting process of each tree, some features are randomly selected for evaluation to increase the diversity of the model. Finally, the prediction results of each tree are integrated through a voting mechanism.
[0121] Gradient boosting is an iterative ensemble learning method that improves prediction accuracy by gradually optimizing each decision tree. In gradient boosting, each decision tree is built based on the residual of the previous decision tree. When predicting, gradient boosting takes a weighted average of the predictions of each decision tree to get the final prediction.
[0122] A decision tree is a tree-based classifier that builds a tree structure by recursively partitioning features. In a decision tree, each node represents a feature, each branch represents a feature value, and each leaf node represents a category. When predicting, the decision tree starts from the root node and traverses downward step by step according to the feature value until it reaches a leaf node, and then uses the category of the leaf node as the prediction result.
[0123] This solution integrates three models to obtain a fusion model, which can effectively reduce the risk of overfitting, improve the generalization ability and accuracy of the model, and improve the robustness and reliability of the entire model.
[0124] Driving intention recognition process Figure 7 As shown, firstly, the vehicle trajectory data, i.e., the data of the future trajectory, is intercepted to determine whether it is a lateral intention. If it is a lateral intention, then determine whether it is a left lane change or a right lane change; if it is not a lateral intention, then determine whether it is a longitudinal intention. If it is a longitudinal intention, then determine whether it is an acceleration behavior or a deceleration behavior; if it is not a longitudinal intention, then determine whether it is a straight-ahead behavior.
[0125] The final driving intention recognition result is as follows Figure 8 As shown in the figure, the circle represents the predicted future trajectory, which is a trajectory to the right, and the red line represents the result of driving intention recognition, which is a right lane change behavior.
[0126] This solution uses model fusion for driving intention recognition, which can reduce the risk of overfitting, ensure stable operation and better recognition effect.
[0127] The recognition rates of the LSTM-fusion model and the VectorNet-fusion model of the present invention were tested, and the results are shown in Table 4.
[0128] Table 4 Performance indicators of the two models
[0129]
[0130]
[0131] It can be seen from Table 4 that the present invention uses VectorNet graph neural network and fusion model to recognize driving intention, and the precision, recall, accuracy and F1 score are larger than those of using LSTM network and fusion model for driving intention recognition, indicating that the present invention has better driving intention recognition effect.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A driving intention recognition method based on trajectory prediction, characterized in that: include: S1: Obtain vehicle historical trajectories and historical high-definition maps, perform trajectory filtering and vehicle feature screening on the vehicle historical trajectories, and divide the processed vehicle historical trajectories into a training set, a test set, and a validation set; the vehicle features include sampling time, vehicle type, location coordinates of surrounding vehicles, and sampling location; S2: vectorizing the historical trajectories of the vehicles in the training set and the historical high-definition map to obtain a vector map; S3: constructing a hierarchical sub-map based on the vector elements in the vector map; S4: construct a global interaction graph based on the hierarchical subgraph, and train the global interaction graph using a VectorNet graph neural network to obtain future trajectories; S5: labeling the lateral driving intention and the longitudinal driving intention of the vehicle historical trajectory to obtain a driving intention label; S6: construct a random forest model, a gradient boosting model and a decision tree model, and use a voting classifier to fuse the random forest model, the gradient boosting model and the decision tree model to obtain a fusion model; and based on the fusion model, train the vehicle historical trajectory and the driving intention label to obtain a driving intention recognition model, and identify the future trajectory according to the driving intention recognition model to obtain the final driving intention.
2. The driving intention recognition method based on trajectory prediction according to claim 1 is characterized in that: S2 vectorizes the historical trajectories of the vehicles in the training set and the historical high-definition map to obtain a vector map, including: Dividing the elements in the historical high-definition map into lane lines, zebra crossings and traffic lights; For lane lines and zebra crossings of the historical high-definition map, distance key points are uniformly sampled at the same spatial distance, and the distance key points in the lane lines and zebra crossings are sequentially connected into vectors, and the traffic lights themselves are used as key points to obtain map features; The vehicle historical trajectory in the training set is sampled at fixed time intervals using time key points, and the time key points are sequentially connected to form a vehicle historical trajectory polyline set, as shown in formula (1): in, and are the coordinates of the starting point and the end point, respectively. i is the attribute feature, j is P j The identifier of v i represents the broken line feature of the vehicle's historical trajectory, v i ∈P j , P j represents the set of vehicle historical trajectory polylines, and P is the node feature vector; The map features and the vehicle historical trajectory polyline set are drawn into a vector map.
3. The driving intention recognition method based on trajectory prediction according to claim 1 is characterized in that: S3 constructs a hierarchical sub-graph based on the vector elements in the vector map, including: The vectors belonging to the same vehicle history trajectory polyline are connected head to tail according to the time sequence, and the connected vehicle history trajectory polyline is used as a hierarchical subgraph. The definition of a single layer of the hierarchical subgraph is shown in formula (2): in, is the node feature of the first layer of the subgraph network, The input is the vehicle trajectory polyline feature, v j Represents the adjacent vehicle trajectory polyline characteristics, function g enc (·) is the mapping of each node information, φ agg (·) Aggregate all neighboring node information, φ rel (·) is v i The relational operator with its neighboring nodes, g enc (·) is a multi-layer perceptron, φ agg (·) is a maximum pooling operation, φ rel (·) is a serial operation.
4. The driving intention recognition method based on trajectory prediction according to claim 1 is characterized in that: S4 constructs a global interaction graph based on the hierarchical subgraphs, and trains the global interaction graph using a VectorNet graph neural network to obtain future trajectories, including: Initializing the interaction information between the hierarchical subgraphs, establishing the connections between the hierarchical subgraphs, and connecting the hierarchical subgraphs to obtain a global interaction graph; The global interaction graph is trained using the VectorNet graph neural network, as shown in formula (3): in, is a hierarchical subgraph, GNN(·) is a single layer of the corresponding graph neural network, and A is the connection between the hierarchical subgraphs in the global interaction graph; The node feature vector is processed using softmax to obtain formula (4): Among them, P is the node feature vector, P Q , P K , P V are their linear projections. After training, the corresponding hierarchical subgraphs are decoded to obtain the future trajectory, as shown in formula (5). in, represents the future trajectory, L t is the total number of layers of GNN, φ traj (·) is the trajectory decoder.
5. The driving intention recognition method based on trajectory prediction according to claim 1 is characterized in that: S6 constructs a random forest model, a gradient boosting model and a decision tree model, and uses a voting classifier to fuse the random forest model, the gradient boosting model and the decision tree model to obtain a fusion model; and based on the fusion model, trains the vehicle historical trajectory and the driving intention label to obtain a driving intention recognition model, and recognizes the future trajectory according to the driving intention recognition model to obtain a final driving intention, including: S61. Import the model libraries of random forest, gradient boosting and decision tree; S62, instantiating the model library to obtain a random forest model, a gradient boosting model and a decision tree model; S63, using a voting classifier to fuse the three models to obtain a fusion model, uploading the vehicle features and driving intention labels in the training set, using a fit method to train the model, and using the test set for automatic evaluation and optimization, and using a validation set for validation, to obtain a driving intention recognition model; S64: According to the driving intention recognition model, use a predict method to recognize the future trajectory to obtain the driving intention.
Citation Information
Patent Citations
Intelligent generation of code for imputation of missing data in a machine learning dataset
US20240069874A1
Cited By
Interactive vehicle trajectory prediction and driving intention recognition method based on multi-task learning
CN119293450A
Target guiding track prediction system based on graph neural network
CN120087192A
