Lane changing intention recognition method and device
By introducing a two-way long-short-term memory network and attention mechanism into the lane-changing intention recognition, the problem of insufficient recognition caused by data packet loss and fixed model input frequency in the Internet of Vehicles environment is solved, and more accurate lane-changing intention recognition and collision warning are achieved. , reducing the risk of traffic accidents.
Patent Information
- Application Number
- CN202410568467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-23
AI Technical Summary
The existing lane-changing intention recognition technology is inaccurate and cannot effectively provide early collision warning, mainly due to insufficient recognition caused by data packet loss and fixed model input frequency in the Internet of Vehicles environment.
Using a two-way long short-term memory network model and an attention mechanism, the historical operating information of the predicted vehicle and surrounding vehicles is input into the fully connected layer, past and future features are extracted for overlapping, and the attention mechanism is used to determine the initial state weight, and finally through Softmax Function determines lane change intention.
It improves the accuracy of lane-changing intention recognition, enables early identification of lane-changing behaviors, effectively provides collision warning, and reduces the risk of traffic accidents.
Smart Images

Figure CN118537843A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a lane-changing intention recognition method and device. Background Art
[0002] If the driving intention of other vehicles can be quickly identified, many traffic accidents can be avoided. The driving behavior of changing lanes not only directly affects the normal passage of other vehicles, but also easily causes traffic accidents. Changing lanes on urban roads is one of the main causes of collision accidents, and changing lanes on highways is likely to cause car damage and death.
[0003] However, the turn signal activation rate is low and there is a delay during the lane change process, which is often manifested as the driver turning on the turn signal after the lane change has already occurred. The driver turning on the turn signal only means that he has the intention to change lanes or it is a misoperation. In reality, the driver may not have started to change lanes or has already started to change lanes, which depends on the driver's driving style and actual road conditions. Therefore, early and accurate recognition of lane change intentions can better predict lane change behavior, which is of great significance for reducing traffic accidents.
[0004] Single-vehicle intelligence relies on the perception of the environment by its own sensors, which is limited by the influence of weather, occlusion, etc., and is insufficient in recognizing complex traffic environment conditions. Vehicle-to-everything (V2X) can obtain real-time information about the surrounding environment through vehicle-to-vehicle communication, vehicle-road collaboration, and vehicle-to-cloud interaction, thereby providing an information exchange basis for lane change intention recognition and helping vehicles better perceive the driving intentions of surrounding vehicles.
[0005] The data used in existing lane change intention recognition research usually comes from a real vehicle driving data set in a certain period of time. This type of data set is an ideal data set. However, in the Internet of Vehicles scenario, vehicle nodes are highly dynamic, and there are limited delay constraints between each other. The network topology changes frequently, which in turn induces data packet loss. On the other hand, although some scholars have studied reducing the amount of model data input in order to reduce the computing load of the vehicle, the collection frequency of such data sets is fixed, and they are mostly considered from the perspective of changing the historical time domain. Therefore, the existing lane change intention recognition is inaccurate, and it is impossible to effectively provide collision warnings in advance. Summary of the invention
[0006] The present invention provides a lane-changing intention recognition method and device, which are used to solve the problem of inaccurate lane-changing intention recognition in the prior art and improve the accuracy of lane-changing intention recognition.
[0007] The present invention provides a method for identifying lane change intention, comprising:
[0008] Inputting historical operation information of the predicted vehicle at multiple times and historical operation information of vehicles around the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form;
[0009] Input the data sequence in vector form into a bidirectional long short-term memory network model to obtain past moment features and future moment features of the data sequence at each moment, overlap the past moment features at each moment and the future moment features at each moment, and obtain overlapping features corresponding to each moment;
[0010] Determine each initial state of the attention mechanism according to the overlapping features corresponding to each moment, use the attention mechanism to determine the weight of each initial state, multiply the weight of each initial state by each initial state and then add them up to obtain an accumulated feature;
[0011] The accumulated features are combined after being transformed nonlinearly by dense output units, and the combined features are input into a Softmax function to determine the predicted lane-changing intention of the predicted vehicle.
[0012] The present invention also provides a lane change intention recognition device, comprising:
[0013] A conversion module, used to input historical operation information of the predicted vehicle at multiple times and historical operation information of vehicles around the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form;
[0014] An extraction module is used to input the data sequence in vector form into a bidirectional long short-term memory network model to obtain past moment features and future moment features of the data sequence at each moment, overlap the past moment features at each moment and the future moment features at each moment, and obtain overlapping features corresponding to each moment;
[0015] An allocation module, configured to determine each initial state of the attention mechanism according to the overlapping features corresponding to each moment, determine the weight of each initial state using the attention mechanism, multiply the weight of each initial state by each initial state and then accumulate to obtain an accumulated feature;
[0016] The detection module is used to combine the accumulated features after nonlinear changes of dense output units, input the combined features into a Softmax function, and determine the predicted lane-changing intention of the predicted vehicle.
[0017] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the lane change intention recognition method as described above is implemented.
[0018] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the lane change intention recognition method as described in any one of the above is implemented.
[0019] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for recognizing lane change intention as described above is implemented.
[0020] The lane-changing intention recognition method and device provided by the present invention, in order to reduce the computing load of the vehicle, start from the perspective of reducing the model input frequency, and take into account the possible impact of data packet loss on the lane-changing intention recognition effect in a real vehicle networking environment, introduce a bidirectional long short-term memory network structure and an attention mechanism, so as to improve the performance of the lane-changing intention recognition model, thereby improving the accuracy of lane-changing intention recognition; and combine the model with collision warning, through early recognition of lane-changing behavior, it can effectively provide early warning, thereby reducing traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 work.
[0022] Figure 1 is a flow chart of a lane change intention recognition method provided by the present invention;
[0023] Figure 2 is a schematic diagram of a road scene in the lane change intention recognition method provided by the present invention;
[0024] Figure 3 It is a schematic diagram of the overall structure of the BiLSTMAttention model in the lane change intention recognition method provided by the present invention;
[0025] Figure 4 Schematic diagram of the BiLSTM network structure in the lane change intention recognition method provided by the present invention;
[0026] Figure 5 It is a schematic diagram of the Attention structure in the lane change intention recognition method provided by the present invention;
[0027] Figure 6 It is a schematic diagram of the structure of the US-101 section in the lane change intention recognition method provided by the present invention;
[0028] Figure 7 It is a schematic diagram of filtering and smoothing comparison in the lane change intention recognition method provided by the present invention;
[0029] Figure 8 It is a schematic diagram of a method for dividing vehicle lane-changing trajectories in the lane-changing intention recognition method provided by the present invention;
[0030] Fig. 9 Schematic diagram of information extraction and input process in the lane change intention recognition method provided by the present invention;
[0031] Fig.10 It is a schematic diagram of the collision warning model flow in the lane change intention recognition method provided by the present invention;
[0032] Fig.11 It is a structural schematic diagram of the lane change intention recognition device provided by the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0034] Combine the following Figure 1 A lane change intention recognition method of the present invention is described, comprising:
[0035] Step 101, inputting historical operation information of the predicted vehicle at multiple times and historical operation information of vehicles around the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form;
[0036] In real traffic scenarios, a vehicle's lane-changing behavior is the result of interaction with surrounding vehicles, and the driving data of a single vehicle should not be used as a reference standard. In order for the model to better learn this behavior, the historical data of the predicted vehicle and its surrounding vehicles is used as input information.
[0037] Assume that the current road scene is as follows Figure 2 As shown, vehicle 5 is the ego vehicle. In order to avoid the collision risk caused by vehicle 0 changing lanes to the right, it is necessary to identify the lane changing intention of vehicle 0, that is, vehicle 0 is the predicted vehicle, and vehicles 1, 2, 3, 4, and 5 are the surrounding vehicles of the predicted vehicle.
[0038] The input data for each set of lane change intention recognition is as follows:
[0039]
[0040] Among them, S t is the historical information of the predicted vehicle, is the historical information of surrounding vehicles, and n is the vehicle number.
[0041] This embodiment builds a bidirectional long short-term memory network structure that combines past moment features with future moment features based on the LSTM (Long Short-Term Memory) model, and introduces an attention mechanism for assigning weights to important features to improve the model recognition performance. The structure is as follows: Figure 3 .
[0042] Figure 3 Middle I k (k=tn,t-n+1,…,t) is the input data, t is the current time, n is the historical time domain, and the input data is converted into vector form through the fully connected layer (FCL) and input into the recognition module.
[0043] Step 102, inputting the data sequence in vector form into a bidirectional long short-term memory network model to obtain past moment features and future moment features of the data sequence at each moment, overlapping the past moment features at each moment with the future moment features at each moment, and obtaining overlapping features corresponding to each moment;
[0044] Based on the LSTM model, a bidirectional long short-term memory network (BiLSTM) is introduced. The schematic diagram of the BiLSTM network structure is as follows: Figure 4 As shown. Figure 4 It can be seen that x n (n=1,2,…,t) is used as the input of the BiLSTM network model and is also input into the forward LSTM fn (n=1,2,…,t) Hidden layer state and backward LSTM bn (n=1,2,…,t) hidden layer state, and then the output h of the BiLSTM network model is obtained by superposition of two hidden layer states. n (n=1,2,…,t). The bidirectional long short-term memory network structure is introduced into the lane-changing intention recognition module. It can not only extract the historical time features of the vehicle through the internal forward LSTM structure, but also extract the future time features of the vehicle through the backward LSTM structure, so as to better capture the dependency relationship in the sequence, thereby enhancing the generalization ability of the model and improving the accuracy of lane-changing intention recognition.
[0045] The input data in vector form is passed through the bidirectional long short-term memory network structure to obtain the past and future features of the interacting vehicles. The number of hidden units in the LSTM unit body in this structure can be 128, and it is composed of 2 layers of LSTM stacking. In order to avoid overfitting during training, the Dropout ratio of each layer can be 0.2.
[0046] Step 103, determining each initial state of the attention mechanism according to the overlapping features corresponding to each moment, using the attention mechanism to determine the weight of each initial state, multiplying the weight of each initial state by each initial state and then accumulating to obtain an accumulated feature;
[0047] The attention mechanism can dynamically adjust the attention weight of the output sequence. The attention mechanism is similar to the brain signal processing mechanism unique to human vision and is currently used in speech recognition, text translation and other fields. Its basic structure is as follows: Figure 5 shown.
[0048] When the vehicle's past and future features are superimposed, the attention mechanism assigns weights to the overlapping features, and the final output is obtained by multiplying the weights with the initial state and accumulating them.
[0049] Step 104 , combining the accumulated features after nonlinear transformation of the dense output unit, inputting the combined features into a Softmax function, and determining the predicted lane-changing intention of the predicted vehicle.
[0050] The accumulated features are transformed nonlinearly through a dense output unit (Dense), and the output features are combined. The dense output unit can set two fully connected dense output layers, and the number of nodes can be 128 and 64 respectively.
[0051] Finally, the Softmax function is used to normalize the processed data features to obtain the probabilities of the three driving intentions of changing lanes to the left, keeping straight and changing lanes to the right, and the class with the largest probability is taken as the final recognition class.
[0052] In order to make the model representation perfectly represent the corresponding data, the Adam optimizer can be used for model training, the learning rate can be 0.001, and the training cycle can be set to 100.
[0053] In order to reduce the computing load of the vehicle, this embodiment starts from the perspective of reducing the model input frequency. Taking into account the impact of data packet loss on the lane change intention recognition effect in a real vehicle networking environment, a bidirectional long short-term memory network structure and an attention mechanism are introduced to improve the performance of the lane change intention recognition model, thereby improving the accuracy of lane change intention recognition.
[0054] On the basis of the above embodiment, the historical running information of the predicted vehicle in this embodiment includes the lateral coordinate, longitudinal coordinate and absolute speed of the predicted vehicle, the coordinate axis of the lateral coordinate is perpendicular to the road on which the predicted vehicle is traveling, and the coordinate axis of the longitudinal coordinate is parallel to the road;
[0055] The historical operation information of the surrounding vehicles includes the lateral relative distance, longitudinal relative distance and relative speed between the surrounding vehicles and the predicted vehicle. The lateral relative distance is the distance between the lateral coordinates of the surrounding vehicles and the lateral coordinates of the predicted vehicle, and the longitudinal relative distance is the distance between the longitudinal coordinates of the surrounding vehicles and the longitudinal coordinates of the predicted vehicle.
[0056] The historical operation information of the predicted vehicle is as shown in formula (2):
[0057] S t =(x t ,y t ,v t ) (2)
[0058] Among them, x t is the lateral coordinate of the predicted vehicle, y t is the longitudinal coordinate of the predicted vehicle, v t is the absolute speed of the predicted vehicle.
[0059] The historical operation information of surrounding vehicles is as shown in formula (3):
[0060]
[0061] in, is the lateral relative distance between vehicle n and the predicted vehicle, is the longitudinal relative distance between vehicle n and the predicted vehicle, is the relative speed between vehicle n and the predicted vehicle. If vehicle n does not exist, Assign a value of 99feet, Assign a value of 999feet. Assign a value of 0 feet·s -1 .
[0062] On the basis of the above embodiment, in this embodiment, the historical operation information of the predicted vehicle at multiple times and the historical operation information of the surrounding vehicles of the predicted vehicle at multiple times are input as a data sequence into the fully connected layer, and before the data sequence in vector form is obtained, the following is also included:
[0063] The historical operation information of the predicted vehicle sample at multiple times and the historical operation information of the vehicles around the predicted vehicle sample at multiple times are used as data sequence samples, and the actual lane change intention of the predicted vehicle sample is used as a label to train the BiLSTM-Attention model formed by the fully connected layer, the bidirectional long short-term memory network model, the attention mechanism, the dense output unit and the Softmax function;
[0064] The data sequence samples are determined according to the running trajectory of the predicted vehicle samples and the lane lines of the driving road, and the actual lane change intention is determined according to the running trajectory of the predicted vehicle samples and the lane lines of the driving road.
[0065] The BiLSTM-Attention model can be trained using the Next Generation Simulation (NGSIM) dataset. The NGSIM dataset contains a large amount of real vehicle driving data and provides detailed vehicle annotation information. It is widely used in model training based on the Internet of Vehicles scenario. The data set is collected at an interval of 0.1s, including information such as each vehicle ID, data frame number, total data frame, standard time, vehicle location, vehicle size, vehicle type, vehicle speed, vehicle acceleration, and vehicle lane. The distance unit is feet (1feet = 0.3048m). Detailed data parameters and descriptions are shown in Table 1.
[0066] Table 1NGSIM data parameters
[0067]
[0068]
[0069] The US-101 National Highway data in the NGSIM dataset can be selected for research and analysis. Its road section structure is as follows: Figure 6 shown.
[0070] The NGSIM dataset collects the trajectory information of vehicles passing through a specified section of road through an aerial camera over a period of time, and then obtains the vehicle position, speed, acceleration and other information through frame processing. Considering that the NGSIM raw data has certain noise and errors, the Savitzky-Golay algorithm is used to filter and smooth the raw data. Taking the vehicle numbered 2 in the period of 7:50am to 8:05am as an example, the speed and position information before and after filtering and smoothing are compared. The comparison results are shown as follows: Figure 7 shown. Figure 7 (a) is a schematic diagram showing the comparison of position information before and after filtering and smoothing. Figure 7 (b) is a schematic diagram showing the comparison of velocity information before and after filtering and smoothing.
[0071] In addition, this embodiment only uses passenger cars as the research object for lane change intention recognition to reduce the impact of different types of vehicle driving behaviors on lane change behavior analysis. At the same time, in order to avoid the impact of ramps on lane change intention recognition, the data selected in this embodiment only includes vehicle information in lanes 1, 2, 3, 4, and 5.
[0072] Based on the above embodiment, the steps of obtaining the data sequence sample and the actual lane change intention in this embodiment include:
[0073] Taking the intersection of the running trajectory and the lane line as a lane change point, and determining the heading angle of the predicted vehicle sample according to the position of each sampling point of the predicted vehicle sample in the running trajectory;
[0074] Traversing the heading angles of each sampling point in the running trajectory from the lane change point in the reverse direction of the time axis;
[0075] If the heading angles of a preset number of consecutive sampling points are less than or equal to a preset threshold, the first sampling point of the preset number of consecutive sampling points is used as the lane change starting point;
[0076] Taking the sampling points between the lane changing starting point and the lane changing point in the running trajectory as lane changing process points;
[0077] Extracting a sampling point sequence from the running trajectory by a sliding time window method, and determining the data sequence samples according to the sampling point sequence;
[0078] If the last sampling point in the sampling point sequence is the lane changing process point, determining that the actual lane changing intention is a lane changing intention;
[0079] If the last sampling point in the sampling point sequence is not the lane-changing process point, it is determined that the actual lane-changing intention is a straight-ahead intention.
[0080] The lane change intention recognition sample training also needs to divide the input information into three categories according to the predicted vehicle: left lane change, straight driving, and right lane change, represented by 0, 1, and 2 respectively. The division method is as follows Figure 8 shown.
[0081] The intersection of the vehicle trajectory and the lane line is defined as the lane change point, and the vehicle heading angle θ is calculated using the vehicle position parameters, as shown in formula (4):
[0082]
[0083] Then, the heading angle of each sampling point is traversed from the lane change point in the reverse direction of the time axis. If the trajectory sequence has a preset number of consecutive sampling points, such as 3 sampling points, |θ|≤θ s (θ s is the heading angle threshold of the lane change starting point, which can be defined as 2°), then the position that is less than or equal to the preset threshold for the first time is defined as the lane change starting point. The specific method is as follows:
[0084]
[0085] All points between the lane change point and the lane change starting point are defined as lane change process points. When all calibration points are determined, the sampling point sequence of the specified time length is extracted by the sliding time window method. The operation information of the predicted vehicle sample at the sampling point sequence and the operation information of the surrounding vehicles of the predicted vehicle sample at this time are used as data sequence samples.
[0086] If the last node of the sampling point sequence corresponds to a lane-changing process point, the sampling point sequence is defined as a lane-changing sequence, otherwise it is a straight-travel sequence.
[0087] 18,000 sets of data can be extracted, 6,000 sets each for left lane change, straight driving, and right lane change. The training set and test set can be divided into a ratio of 3:1 according to the random sampling principle.
[0088] Based on the above embodiments, in this embodiment, the weights of the initial states are determined using the attention mechanism through the following formula:
[0089]
[0090] in, For each initial state H i The weight assigned, g is the alignment model, which is used to score the initial states, g(H i ) uses the alignment model to score the i-th initial state, g(F i ) uses the alignment model to score the features extracted by the convolutional neural network for the i-th data in the data sequence, where t is the length of the data sequence.
[0091] Define the lane change intention recognition result as the conditional probability P(o t |x1,x2,...,x t ), some current methods only consider the output h based on the LSTM at the current moment t , as shown in formula (5):
[0092] P(o t |x1,x2,...,x t )=P(o t |h t ) (5)
[0093] After the introduction of Attention, the lane change intention recognition result is determined by all LSTM output moments, as shown in formula (6):
[0094] P(o t |x1,x2,...,x t )=P(o t |h1,h2,...,h t )=P(o t|Y) (6)
[0095] Where Y is the weighted sum of Attention outputs, and its calculation formula is as shown in formula (7):
[0096]
[0097] In the formula For the initial state H of each Attention i The weighted value assigned is calculated as follows:
[0098]
[0099] Where g is an alignment model used to score each input and parameterize the alignment model α, as shown in formula (9):
[0100] g i =α(H i ) (9)
[0101] This embodiment introduces the Attention mechanism. When enhancing the feature vector, it not only considers the output of the BiLSTM network, but also the difference between the features extracted by the BiLSTM network and the convolutional neural network. The smaller the difference, the greater the weight. The influence of the feature vector on the lane change intention recognition result is enhanced, which makes up for the deficiency of extracting features by a single network and captures important state information at each output moment. For the lane change intention recognition problem, Attention improves the model recognition performance by assigning a weight value to the important feature sequence at each output moment.
[0102] The confusion matrix is a commonly used evaluation method in classification problems, which consists of an n×n matrix (n-classification problem), as shown in Table 2.
[0103] Table 2 Confusion matrix composition
[0104] Predicted as positive class Predicted as negative class True positive class TP FN True negative FP TN
[0105] The performance indicators of precision, recall, F1 score and F1macro score can be obtained from the confusion matrix. The focus of precision and recall is different, which often leads to contradictions between the results of precision and recall. Therefore, it is usually necessary to calculate the F1 score indicator that comprehensively considers the two. In multi-classification problems, each prediction class has an F1 score indicator, and in order to have an overall evaluation of the model, the F1macro score indicator is required. Its calculation process is shown in formula (10):
[0106]
[0107] In order to ensure the diversity of model performance evaluation indicators, this embodiment also draws a macro receiver operating characteristic curve (ROC) according to the model recognition result. This indicator can directly observe the model performance through a characteristic curve. The horizontal axis of the curve is the false positive rate (FPR), which represents the ratio of samples that are mistakenly judged as positive examples among all samples that are actually negative examples, as shown in formula (11):
[0108]
[0109] The ordinate of the curve is the True Positive Rate (TPR), which has the same meaning as Recall, that is, the ratio of samples that are correctly judged as positive examples among all samples that are actually positive examples, as shown in formula (12):
[0110]
[0111] After the ROC curve is drawn, it is necessary to do a qualitative analysis on it. At this time, a new indicator, AUC (Area Under Curve), needs to be introduced. This indicator can be obtained by performing calculus on the ROC curve. The AUC value is mainly used to measure the generalization ability of the model in the classification problem. The larger the AUC value, the better the corresponding model performance.
[0112] Based on the above embodiment, this embodiment further includes the following steps before training the BiLSTM-Attention model:
[0113] Collecting historical operation information of the predicted vehicle sample and historical operation information of surrounding vehicles of the predicted vehicle sample as training data;
[0114] After discarding the training data at different preset packet loss rates, extracting the training data at different preset extraction frequencies;
[0115] Using the extracted training data to train the BiLSTM-Attention model, and determining the performance of the trained BiLSTM-Attention model;
[0116] The performance of the BiLSTM-Attention model corresponding to different preset packet loss rates and different preset extraction frequencies is analyzed, and the preset extraction frequency is selected to extract the training data as the data sequence sample.
[0117] The data size of the BiLSTM-Attention input lane-changing intention recognition model affects the vehicle computing load. If the amount of data input to the model can be reduced, the vehicle computing load utilization rate will be effectively improved. Some literature uses the NGSIM dataset to extract vehicle lane-changing behavior, and reduces the amount of input data by comparing the results obtained by training the model under different historical time domains.
[0118] This embodiment will reduce the amount of input data from the perspective of changing the frequency of data input. On the other hand, unlike traditional ad hoc networks, network nodes in the Internet of Vehicles have high-speed mobility, unstable network topology, and data packet loss is prone to occur. The data set used in the current research has good continuity and can be considered as ideal data, so most researchers ignore the data packet loss phenomenon in the real Internet of Vehicles environment.
[0119] In order to reduce the computing load of the vehicle lane change intention recognition function and taking into account the possibility of data packet loss in a real vehicle networking environment, this embodiment will select a suitable input frequency under the premise that data packet loss does not significantly affect the lane change intention recognition effect.
[0120] Information extraction and input process Fig. 9 As shown in the figure. The vehicle collects and temporarily stores the data of surrounding vehicles through broadcasting. When the lane change intention is recognized, the 3s historical time domain data can be extracted from the temporarily stored data. After processing, the temporarily stored data is extracted into input data according to the frequency requirements, and then input into the lane change intention recognition model, and finally three lane change intention recognition results are obtained.
[0121] In this experiment, the performance of the lane change intention recognition module can be tested at extraction frequencies of 10Hz, 5Hz, 3Hz and 1Hz. At the same time, considering the data packet loss problem in the real car networking environment, the experiment was conducted with no packet loss, 30% packet loss and 60% packet loss. The packet loss data processing method is as follows (data packet loss exists Fig. 9 Temporary data in): Since the data of the vehicle itself is obtained from different surrounding vehicles and the packet loss time is different, a random seed is set for the data of each vehicle to be discarded, and the data at the discarded time is filled with the same type of data at the previous time.
[0122] Since packet loss data is random, five packet loss experiments can be performed for each case, and the average precision and recall of the five results are taken to calculate the F1macro value as the final measurement result. In order to select the appropriate input frequency for the vehicle lane change recognition model, this embodiment obtains experimental results based on the LSTM model.
[0123] For example, when the extraction frequency is selected at 5Hz and 10Hz, the recognition performance is similar, the F1macro value does not differ by more than 0.01, and is almost unaffected by data packet loss. When the extraction frequency is 3Hz, it is also less affected by data packet loss, but the reduction in input frequency causes the lane change intention recognition model to decline in effect. This trend is more obvious at 1Hz, so an extraction frequency of 5Hz can be selected for subsequent performance comparison experiments.
[0124] In order to verify the lane-changing intention recognition effect before and after the model is improved, a comparative experiment is designed for the BiLSTM Attention model. The experimental design is shown in Table 3.
[0125] Table 3 Comparative experimental design
[0126]
[0127]
[0128] The above model was verified using a packet loss-free test set to obtain a confusion matrix. The confusion matrix data of each model was calculated to obtain the performance index of lane change intention recognition in the packet loss-free test set. It can be seen that the BiLSTMAttention model proposed in this embodiment improves the precision and recall of the recognition effects of the three intentions of left lane change, straight driving and right lane change, and the F1 values of the three intentions are relatively high. The recognition effect is better than that of the LSTM, BiLSTM and LSTM Attenion models, and the F1macro values are significantly improved.
[0129] In order to more intuitively judge the effect of the model before and after improvement, the macro receiver operating characteristic curve of each model is drawn. From the curve, it can be seen that the BiLSTM Attention model proposed in this embodiment has a better lane change intention recognition effect, and the AUC values of the three models, LSTM, BiLSTM and LSTM Attention, are all improved.
[0130] By analyzing the confusion matrix recognition results and ROC curves of each model, the following conclusions can be drawn: Both the single bidirectional long short-term memory network structure and the attention mechanism can improve the lane-changing intention recognition effect of the model, but the BiLSTMAttention model combining the two has a better effect on lane-changing intention recognition.
[0131] In order to evaluate the impact of data packet loss on the improvement of model recognition effect, and considering that data transmission packet loss is inevitable in the Internet of Vehicles environment, but not always at a high frequency, 30% random packet loss input data was selected to conduct 5 repeated experiments on the above model, and the confusion matrix obtained from each experiment was analyzed.
[0132] The average precision and recall of each model were calculated based on 5 repeated experiments, and then its F1 score and F1macro score were calculated to evaluate its performance. Experimental results were obtained for lane change intention recognition experiments under 30% data loss scenarios.
[0133] According to the experimental results, when the packet loss rate of the input data is 30%, the performance of the BiLSTMAttention model proposed in this embodiment is still the best, and its F1macro value is significantly improved compared with the LSTM, BiLSTM and LSTMAttenion models.
[0134] The macro receiver operating characteristic curves of the above experiments were analyzed when there was 30% packet loss in the input data of each model. The average AUC values obtained by performing 5 packet loss experiments on each of the above 4 models were all large. Compared with the LSTM, BiLSTM and LSTMAttention models, the AUC value of the BiLSTMAttention model was improved.
[0135] The confusion matrix recognition results of each model obtained by 30% data packet loss input and the improvement effect of the improved model in the ROC curve show that when there is packet loss in the input data, the BiLSTMAttention model proposed in this embodiment still has the best effect in lane change intention recognition.
[0136] On the other hand, when comparing the model recognition effect under 30% packet loss with the model recognition effect without packet loss, the F1macro values of LSTM, BiLSTM, LSTMAttenion, and BiLSTMAttenion all decreased, and the AUC values also decreased. It can be seen that the BiLSTMAttenion model proposed in this embodiment has the lowest decline rate among all indicators, which shows that the BiLSTMAttenion model used in this embodiment performs best in adapting to packet loss scenarios.
[0137] On the basis of the above embodiments, in this embodiment, after the accumulated features are combined after nonlinear changes in dense output units, the combined features are input into the Softmax function, and the predicted lane change intention of the predicted vehicle is determined, the following is further included:
[0138] Determining, based on the predicted lane-changing intention of the predicted vehicle, whether the predicted vehicle enters a lane where the ego vehicle is located, the ego vehicle and the predicted vehicle are located in adjacent lanes and the predicted vehicle travels ahead of the ego vehicle;
[0139] If the predicted vehicle enters the lane where the vehicle is located, the predicted vehicle is taken as a warning target, otherwise the vehicle in front of the predicted vehicle in the lane where the predicted vehicle is located is taken as a warning target;
[0140] Determining the distance between the rear end of the warning target and the front end of the vehicle according to the running information of the warning target;
[0141] The distance is compared with a preset critical distance, and a determination is made based on the comparison result whether to issue a collision warning to the vehicle.
[0142] The main form of traffic accidents is vehicle collision, and the risk of vehicle collision comes from longitudinal vehicles and lateral vehicles. However, current collision warning models are mostly studied for longitudinal vehicles. In order to reduce the accident rate caused by lateral lane-changing vehicles, this embodiment introduces a lane-changing intention recognition model into the hierarchical collision warning model for design, aiming to use it as a collision risk prediction object when vehicles in adjacent lanes have lane-changing behavior at an early moment, and implement corresponding collision avoidance strategies.
[0143] The design flow chart of the collision warning model combined with lane change recognition is as follows: Fig.10 As shown in the figure. rel is the actual distance between the rear of the front vehicle and the front of the vehicle, D low , D middle and D high They are the adaptive critical distances for three types of collision risks.
[0144] When the collision warning model combined with lane change intention recognition proposed in this embodiment recognizes that a vehicle in the adjacent lane ahead is about to enter the lane, the graded collision warning algorithm will be activated, and the third-level safety distance parameters of the vehicle will be calculated with the vehicle as the warning object, and then compared with the longitudinal relative distance at the moment of recognition, and the corresponding graded collision warning strategy will be executed according to the size relationship between the two.
[0145] Since the lane-changing model in SUMO is somewhat different from the lane-changing behavior of real vehicles, the lane-changing scenario in the NGSIM dataset can be selected for testing, mainly analyzing the warning level triggered by the lane-changing vehicle identification moment. 150 sets of lane-changing information for left and right lane-changing are extracted from the US-101 National Highway from 7:50am to 8:05am. There are adjacent vehicles behind the lanes of these 300 lane-changing vehicles to ensure that graded warning evaluation can be performed later. First, the interval between the identification moment and the lane-changing moment of these 300 lane-changing trajectories is counted.
[0146] From the statistical results, it can be seen that in the above experiment, the number of groups whose lane change information cannot be correctly recognized and the number of groups that can complete the lane change intention recognition before 3 seconds are respectively the number of groups that complete the recognition within the range of 2 to 3 seconds, the number of groups that complete the recognition within the range of 1 to 2 seconds, and the number of groups that complete the lane change intention recognition within the first 1 second.
[0147] Then, the risk assessment is performed based on the actual distance and speed between the ego vehicle and the predicted vehicle at the time of lane change intention recognition in each set of information to obtain the recognition result. It can be seen from the warning results that the collision warning system combined with lane change intention recognition can evaluate the potential risks brought by lane-changing vehicles. Among the remaining correctly identified lane-changing trajectories, some vehicles have no impact on the following vehicles in the target lane at the time of lane change recognition, and other lane-changing vehicles have different impacts on the following vehicles in the target lane. Among them, the primary warning is triggered more frequently, while the secondary and tertiary warnings are triggered less frequently.
[0148] Combined with the hierarchical collision warning strategy designed in this embodiment, when a vehicle is about to enter the lane ahead, the primary warning method of light warning will be triggered more often, which will not have a significant impact on the driver. At the same time, it can provide a certain guarantee for the driver's safety. Therefore, it can be considered that the collision warning model combined with lane change intention recognition proposed in this embodiment is feasible.
[0149] This embodiment proposes an improved BiLSTMAttention model that combines a bidirectional long short-term memory network structure and an attention mechanism to improve the performance of lane change intention recognition. Experimental results show that compared with the three models of LSTM, BiLSTM and LSTMAttention, the BiLSTMAttention model proposed in this embodiment has the best performance, with a significant improvement in the F1macro value and an improvement in the AUC value. In the case of 30% packet loss, the performance of the BiLSTM Attention model proposed in this embodiment is still the best, with a significant improvement in the F1macro value and an improvement in the AUC value. Comparing the results obtained with the input without packet loss and the input with 30% packet loss, the F1macro values of the LSTM, BiLSTM, LSTM Attention and BiLSTMAttention models decreased significantly, and the AUC values also decreased, indicating that packet loss has little effect on the recognition effect of the model proposed in this embodiment.
[0150] In addition, a hierarchical collision warning method based on lane-changing intention recognition was designed. By conducting risk assessment on 300 sets of lane-changing information, the experimental results showed that the hierarchical collision warning method combined with lane-changing intention recognition can make reasonable judgments on the potential collision risks caused by vehicles changing lanes, proving the feasibility of the collision warning method.
[0151] The lane-changing intention recognition device provided by the present invention is described below. The lane-changing intention recognition device described below and the lane-changing intention recognition method described above can be referenced to each other.
[0152] like Fig.11 As shown, the device includes a conversion module 1101, an extraction module 1102, an allocation module 1103 and a detection module 1104, wherein:
[0153] The conversion module 1101 is used to input the historical operation information of the predicted vehicle at multiple times and the historical operation information of the surrounding vehicles of the predicted vehicle at multiple times as a data sequence into the fully connected layer to obtain the data sequence in vector form;
[0154] The extraction module 1102 is used to input the data sequence in vector form into the bidirectional long short-term memory network model to obtain the past moment feature and the future moment feature of the data sequence at each moment, overlap the past moment feature at each moment and the future moment feature at each moment, and obtain the overlapping feature corresponding to each moment;
[0155] The allocation module 1103 is used to determine each initial state of the attention mechanism according to the overlapping features corresponding to each moment, use the attention mechanism to determine the weight of each initial state, multiply the weight of each initial state by each initial state and then accumulate to obtain an accumulated feature;
[0156] The detection module 1104 is used to combine the accumulated features after nonlinear changes in the dense output unit, input the combined features into the Softmax function, and determine the predicted lane-changing intention of the predicted vehicle.
[0157] In order to reduce the computing load of the vehicle, this embodiment starts from the perspective of reducing the model input frequency. Taking into account the impact of data packet loss on the lane change intention recognition effect in a real vehicle networking environment, a bidirectional long short-term memory network structure and an attention mechanism are introduced to improve the performance of the lane change intention recognition model, thereby improving the accuracy of lane change intention recognition.
[0158] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A lane change intention recognition method, characterized in that: include: Inputting historical operation information of the predicted vehicle at multiple times and historical operation information of vehicles surrounding the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form; Inputting the data sequence in vector form into a bidirectional long short-term memory network model to obtain past moment features and future moment features of the data sequence at each moment, and overlapping the past moment features and future moment features at each moment to obtain overlapping features corresponding to each moment; Determine each initial state of the attention mechanism according to the overlapping features corresponding to each moment, use the attention mechanism to determine the weight of each initial state, multiply the weight of each initial state by each initial state and then accumulate to obtain an accumulated feature; The accumulated features are combined after being subjected to nonlinear transformation by dense output units, and the combined features are input into a Softmax function to determine the predicted lane-changing intention of the predicted vehicle.
2. The lane change intention recognition method according to claim 1, characterized in that: The historical running information of the predicted vehicle includes a transverse coordinate, a longitudinal coordinate, and an absolute speed of the predicted vehicle, wherein the coordinate axis of the transverse coordinate is perpendicular to the road on which the predicted vehicle is traveling, and the coordinate axis of the longitudinal coordinate is parallel to the road; The historical operation information of the surrounding vehicles includes the lateral relative distance, longitudinal relative distance and relative speed between the surrounding vehicles and the predicted vehicle. The lateral relative distance is the distance between the lateral coordinates of the surrounding vehicles and the lateral coordinates of the predicted vehicle, and the longitudinal relative distance is the distance between the longitudinal coordinates of the surrounding vehicles and the longitudinal coordinates of the predicted vehicle.
3. The lane change intention recognition method according to claim 1, characterized in that: Before inputting the historical operation information of the predicted vehicle at multiple times and the historical operation information of vehicles surrounding the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form, the method further includes: The BiLSTM-Attention model composed of the fully connected layer, bidirectional long short-term memory network model, attention mechanism, dense output unit and softmax function is trained by using the historical operation information of the predicted vehicle sample at multiple times and the historical operation information of the vehicles around the predicted vehicle sample at multiple times as data sequence samples and the actual lane change intention of the predicted vehicle sample as a label; The data sequence sample is determined based on the running trajectory of the predicted vehicle sample and the lane line of the driving road, and the actual lane change intention is determined based on the running trajectory of the predicted vehicle sample and the lane line of the driving road.
4. The lane change intention recognition method according to claim 3, characterized in that: The step of acquiring the data sequence sample and the actual lane-changing intention comprises: Taking the intersection of the running trajectory and the lane line as a lane change point, and determining the heading angle of the predicted vehicle sample according to the position of each sampling point of the predicted vehicle sample in the running trajectory; Traversing the heading angles of each sampling point in the running trajectory from the lane change point in the reverse direction of the time axis; If the heading angles of a preset number of consecutive sampling points are less than or equal to a preset threshold, the first sampling point among the preset number of consecutive sampling points is used as the lane change starting point; The sampling points between the lane-changing starting point and the lane-changing point in the running trajectory are used as lane-changing process points; Extracting a sampling point sequence from the running trajectory by using a sliding time window method, and determining the data sequence sample according to the sampling point sequence; If the last sampling point in the sampling point sequence is the lane-changing process point, determining that the actual lane-changing intention is a lane-changing intention; If the last sampling point in the sampling point sequence is not the lane-changing process point, it is determined that the actual lane-changing intention is a straight-ahead intention.
5. The lane change intention recognition method according to claim 1, characterized in that: The weights of the initial states are determined using the attention mechanism using the following formula: in, For each initial state H i The weight assigned, g is the alignment model, used to score the initial states, g(H i ) uses the alignment model to score the i-th initial state, g(F i ) Use the alignment model to score the features extracted by the convolutional neural network for the i-th data in the data sequence, where t is the length of the data sequence.
6. The lane change intention recognition method according to any one of claims 1 to 5, characterized in that: Before training the BiLSTM-Attention model, the following steps are also included: Collecting historical operating information of the predicted vehicle sample and historical operating information of vehicles surrounding the predicted vehicle sample as training data; After discarding the training data at different preset packet loss rates, extracting the training data at different preset extraction frequencies; Training the BiLSTM-Attention model using the extracted training data, and determining the performance of the trained BiLSTM-Attention model; The performance of the BiLSTM-Attention model corresponding to different preset packet loss rates and different preset extraction frequencies is analyzed, and the preset extraction frequency is selected to extract the training data as the data sequence sample.
7. The lane change intention recognition method according to any one of claims 1 to 5, characterized in that: After the accumulated features are subjected to nonlinear transformation by dense output units and then combined, the combined features are input into a Softmax function to determine the predicted lane-changing intention of the predicted vehicle, the method further includes: determining, based on the predicted lane-changing intention of the predicted vehicle, whether the predicted vehicle enters a lane in which the ego vehicle is located, the ego vehicle and the predicted vehicle are in adjacent lanes and the predicted vehicle is traveling ahead of the ego vehicle; If the predicted vehicle enters the lane where the vehicle is located, the predicted vehicle will be used as a warning target; otherwise, the vehicle in front of the predicted vehicle in the lane where the predicted vehicle is located will be used as a warning target; Determining the distance between the rear end of the warning target and the front end of the own vehicle based on the operating information of the warning target; The distance is compared with a preset critical distance, and a determination is made based on the comparison result whether to issue a collision warning to the vehicle.
8. A lane change intention recognition device, characterized in that: include: A conversion module is configured to input historical operation information of the predicted vehicle at multiple times and historical operation information of vehicles surrounding the predicted vehicle at multiple times as a data sequence into a fully connected layer to obtain the data sequence in vector form; an extraction module, configured to input the data sequence in vector form into a bidirectional long short-term memory network model, obtain past moment features and future moment features of the data sequence at each moment, and overlap the past moment features and the future moment features at each moment to obtain overlapping features corresponding to each moment; an allocation module, configured to determine each initial state of the attention mechanism according to the overlapping features corresponding to each moment, determine the weight of each initial state using the attention mechanism, multiply the weight of each initial state by each initial state, and then accumulate the weights to obtain an accumulated feature; The detection module is used to combine the accumulated features after nonlinear transformation of the dense output unit, input the combined features into the Softmax function, and determine the predicted lane-changing intention of the predicted vehicle.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the lane change intention recognition method as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the lane change intention recognition method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Method for generating a training data set, method for training a model for predicting lane changes of vehicles, method and device for controlling a vehicle on the basis of the trained model
WO2026162452A1
