A driving behavior prediction method and system based on bidirectional long short-term memory network
The driving behavior prediction method based on the two-way long short-term memory network solves the problem that the existing system cannot effectively predict the driver's future maneuvering behavior, achieves high-precision driving behavior prediction, and improves the safety and applicability of the assisted driving system.
Patent Information
- Application Number
- CN202210279062.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-21
AI Technical Summary
Existing advanced assisted driving systems cannot effectively predict the driver's future maneuvering behavior, causing conflicts between the system and the driver and affecting vehicle driving safety.
A driving behavior prediction method based on a bidirectional long short-term memory network is adopted. By collecting and processing the driver's vertical and horizontal driving behavior data, the bidirectional LSTM network, fully connected layer and regression output layer are used for prediction to achieve prediction of future short-term driving behavior.
It improves the accuracy of driving behavior prediction, enhances the safety of the assisted driving system, and achieves efficient prediction under a lightweight on-board processor. It has the characteristics of low economic cost and wide applicability.
Smart Images

Figure CN114750766B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent driving technology, and in particular to a driving behavior prediction method and system based on a bidirectional long short-term memory network. Background Art
[0002] The main cause of traffic accidents comes from the driver's incorrect operating behavior, which is often caused by fatigue, distraction, tension, etc. Therefore, predicting the driver's driving behavior and providing the advanced driver assistance system with the driver's possible operating behavior data in the future will play a significant role in improving vehicle driving safety and thus improving traffic safety.
[0003] According to surveys and research, due to insufficient prediction of the driver's future behavior, advanced driver assistance systems often cannot achieve pre-estimation of the driver's manipulation behavior. The lack of estimation assistance for the driver's future behavior may cause conflicts between the driver and the assistance system. The vehicle-mounted assistance system currently on the market is limited to analyzing the vehicle status and providing auxiliary measures based on the vehicle body information. Such systems only consider external environmental factors during vehicle driving, making the warning not comprehensive and flexible. Therefore, a complete vehicle-mounted assistance system needs to be able to understand the driver's manipulation behavior. If it cannot predict the driver's driving behavior in the short term in the future and make reasonable auxiliary measures, the system itself will conflict with the driver, adversely affecting the driver's driving status, resulting in a decrease in vehicle driving safety.
[0004] There is no lightweight vehicle-mounted system in the prior art for predicting the driver's short-term behavior. Therefore, there is a broad demand and hardware foundation for a lightweight vehicle-mounted system that can predict the driver's short-term longitudinal and lateral control behavior. Summary of the invention
[0005] The present application provides a driving behavior prediction method and system based on a bidirectional long short-term memory network, the technical purpose of which is to improve the prediction accuracy of the driver's driving behavior.
[0006] The above technical objectives of this application are achieved through the following technical solutions:
[0007] A driving behavior prediction method based on a bidirectional long short-term memory network, comprising:
[0008] S1: Collecting the driver's longitudinal and lateral driving behavior data;
[0009] S2: Smoothing the longitudinal and lateral driving behavior data;
[0010] S3: storing the processed data in the form of time series;
[0011] S4: Inputting the processed data into a bidirectional long short-term memory network module to predict the driving behavior and obtain a prediction result;
[0012] The bidirectional long short-term memory network module includes a bidirectional LSTM network, a first fully connected layer, a second fully connected layer and a regression output layer. The bidirectional long short-term memory network module is expressed as:
[0013] S t =fc2(fc1(BiLSTM(In t )));(1)
[0014] The output of the bidirectional long short-term memory network module is expressed as:
[0015] S ft =f(W 1f x t +W 2f S f(t-1) +b x );
[0016] S bt =f(W 3f x t +W 4f S b(t-1) +b x ); (2)
[0017] O t =f(W 5f S ft +W 6f S bt +b o );
[0018] fc2 represents the terminal fully connected layer that completes sequence prediction, that is, the second fully connected layer; fc1 represents the fully connected layer with a custom number of hidden units, that is, the first fully connected layer; t represents the preprocessed time series data as the input of the bidirectional long short-term memory network module; f represents the activation function, x t Represents the input state of the bidirectional long short-term memory network module, S ft represents the feedforward hidden layer state of the bidirectional long short-term memory network module, S bt represents the backward hidden state of the bidirectional long short-term memory network module, O t Represents the output state of the bidirectional long short-term memory network module, W 1f represents the forward connection weight of the input layer, W 2f represents the forward connection weight of the hidden layer, W 3f represents the backward connection weight of the input layer, W 4f represents the backward connection weight of the hidden layer, W5f represents the input weight matrix, W 6f represents the output weight matrix, b x represents the input bias matrix, b o Represents the bias matrix for the output.
[0019] BiLSTM is a bidirectional LSTM network with 40 hidden units in both the forward and reverse directions. It contains a recurrent neural network that moves from the beginning of the sequence and a recurrent neural network that moves from the end of the sequence to the beginning of the sequence. The 40 hidden units in the forward direction process the sequence in a forward direction, and the 40 hidden units in the reverse direction process the sequence in a reverse direction. Finally, the vector results of the two LSTM layers in the forward and reverse directions are added together to obtain the output.
[0020] A driving behavior prediction system based on a bidirectional long short-term memory network, comprising:
[0021] The sensor module collects the driver's longitudinal and lateral driving behavior data;
[0022] A signal filtering module for smoothing the longitudinal and lateral driving behavior data;
[0023] The on-board processor stores the processed data in the form of time series;
[0024] The bidirectional long short-term memory network module inputs the processed data into the bidirectional long short-term memory network module to predict the driving behavior and obtain the prediction result.
[0025] The beneficial effects of this application are: through mature on-board sensors, combined with deep learning methods of big data, the function of quickly predicting the driver's future longitudinal and lateral driving behavior in a short time window is realized, with high prediction accuracy, and the prediction of the driver's future longitudinal and lateral driving behavior is realized under a lightweight on-board processor, with low economic cost. It can widely serve the vehicle assisted driving system, improve the safety of the assisted driving system, enhance the auxiliary system's understanding of the driver, help achieve safe driving, and has practicality and commercial value.
[0026] At the same time, deep learning methods based on big data have high prediction accuracy, robustness and generalization ability, which are conducive to the in-depth development of advanced driver assistance systems and are widely applicable to driver behavior prediction in different vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of the method described in this application;
[0028] Figure 2 This is a schematic diagram of the structure of the driver behavior prediction system described in this application;
[0029] Figure 3Schematic diagram of the structure of a bidirectional long short-term memory network. DETAILED DESCRIPTION
[0030] The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0031] Figure 1 A flowchart of the method described in this application, such as Figure 1 As shown, the method includes:
[0032] S1: Collect the driver's longitudinal and lateral driving behavior data.
[0033] S2: Smoothing the longitudinal and lateral driving behavior data.
[0034] S3: Store the processed data in the form of time series.
[0035] S4: The processed data is input into a bidirectional long short-term memory network to predict the driving behavior and obtain the prediction result.
[0036] Figure 2 This is a schematic diagram of the structure of the driver behavior prediction system described in the present application, which includes a sensor module, a signal filtering module, an on-board processor and a bidirectional long short-term memory network (BiLSTM).
[0037] The sensor module includes a steering wheel angle sensor, a body sensor and an accelerator pedal sensor. The steering wheel angle sensor collects information on the driver's steering angle and steering angle change rate. The body sensor collects vehicle longitudinal speed, longitudinal acceleration, lateral deviation, and heading angle information. The accelerator pedal sensor collects driver's throttle opening information.
[0038] The data collected by the sensor module is processed by Gaussian smoothing through the signal filtering module to reduce the noise of the data and eliminate the influence of errors such as sensor gap and sensor noise disturbance on the data. The filtering formula is as follows:
[0039]
[0040] In the filtering formula, x represents the original sequence, and σ represents the standard deviation of the Gaussian smoothing filter. The larger σ is, the wider the frequency band of the Gaussian filter is, and the higher the degree of smoothing is. The use of Gaussian smoothing filtering is a process of convolving the original sequence with the Gaussian template obtained according to the Gaussian function, which effectively removes Gaussian white noise. Then, the denoised data is transmitted to the storage unit of the on-board processor, which stores 5 sampling moments with a total of 0.25s of data size, with a sampling frequency of 20Hz. Then, the data is expanded through spline interpolation, and a total of 120 data samples are stored each time.
[0041] The obtained training data is trained through a bidirectional long short-term memory network, and the desired bidirectional long short-term memory network module is obtained through the training set. The deep learning network architecture used to predict the driver's longitudinal and lateral control behavior is constructed as follows: Figure 3 shown.
[0042] The bidirectional long short-term memory network module includes a bidirectional LSTM network, a first fully connected layer, a second fully connected layer, and a regression output layer. It is a "sequence-to-sequence" deep learning network. The bidirectional long short-term memory network module is expressed as:
[0043] S t =fc2(fc1(BiLSTM(In t ))); (1)
[0044] fc2 represents the terminal fully connected layer that completes the sequence prediction, that is, the second fully connected layer; fc1 represents the fully connected layer with a custom number of hidden units, that is, the first fully connected layer. BiLSTM is a bidirectional LSTM network with 40 hidden units in the forward and reverse directions. It contains a recurrent neural network that moves from the beginning of the sequence and a recurrent neural network that moves from the end of the sequence to the beginning of the sequence. The 40 hidden units in the forward direction process the sequence forward in time sequence, and the 40 hidden units in the reverse direction process the sequence reversely in time sequence. Finally, the vector results of the two LSTM layers in the forward and reverse directions are added to obtain the output. t Represents the preprocessed time series data as the input of the bidirectional long short-term memory network module.
[0045] The output of the bidirectional long short-term memory network module is expressed as:
[0046] S ft =f(W 1f x t +W 2f S f(t-1) +b x );
[0047] S bt =f(W 3f x t +W 4f S b(t-1) +b x ); (2)
[0048] O t =f(W 5f S ft +W 6f S bt +b o );
[0049] Among them, f represents the activation function, x tRepresents the input state of the bidirectional long short-term memory network module, S ft represents the feedforward hidden layer state of the bidirectional long short-term memory network module, S bt represents the backward hidden state of the bidirectional long short-term memory network module, O t Represents the output state of the bidirectional long short-term memory network module, W 1f represents the forward connection weight of the input layer, W 2f represents the forward connection weight of the hidden layer, W 3f represents the backward connection weight of the input layer, W 4f represents the backward connection weight of the hidden layer, W 5f represents the input weight matrix, W 6f represents the output weight matrix, b x represents the input bias matrix, b o Represents the bias matrix for the output.
[0050] The sequence after the aforementioned preprocessing method enters the bidirectional long short-term memory network module through the sequence input layer, and finally outputs the driver's steering prediction sequence and the accelerator pedal opening prediction sequence from the regression output layer.
[0051] The above is only an example of the concept of this application. This application can also optimize and improve the network topology structure for specific vehicle models and sensor devices. All non-substantial changes made to this application are within the scope of protection of this application.
Claims
1. A driving behavior prediction method based on a bidirectional long short-term memory network, characterized in that: include: S1: Collecting the driver's longitudinal and lateral driving behavior data; S2: Smoothing the longitudinal and lateral driving behavior data; S3: storing the processed data in the form of time series; S4: Inputting the processed data into a bidirectional long short-term memory network module to predict the driving behavior and obtain a prediction result; The bidirectional long short-term memory network module includes a bidirectional LSTM network, a first fully connected layer, a second fully connected layer and a regression output layer. The bidirectional long short-term memory network module is expressed as: S t =fc2(fc1(BiLSTM(In t ))); (1) The output of the bidirectional long short-term memory network module is expressed as: BiLSTM represents a bidirectional LSTM network with 40 hidden units in the forward and reverse directions; fc2 represents the terminal fully connected layer that completes sequence prediction, that is, the second fully connected layer; fc1 represents a fully connected layer with a custom number of hidden units, that is, the first fully connected layer; In t represents the preprocessed time series data as the input of the bidirectional long short-term memory network module; f represents the activation function, x t Represents the input state of the bidirectional long short-term memory network module, S ft represents the feedforward hidden layer state of the bidirectional long short-term memory network module, S bt represents the backward hidden state of the bidirectional long short-term memory network module, O t Represents the output state of the bidirectional long short-term memory network module, W 1f represents the forward connection weight of the input layer, W 2f represents the forward connection weight of the hidden layer, W 3f represents the backward connection weight of the input layer, W 4f represents the backward connection weight of the hidden layer, W 5f represents the input weight matrix, W 6f represents the output weight matrix, b x represents the input bias matrix, b o Represents the bias matrix for the output.
2. The prediction method according to claim 1, characterized in that: In step S3, the time series includes 5 sampling moments, and the duration of each sampling moment is 0.05 s.
3. The prediction method according to claim 2, characterized in that: The bidirectional LSTM networks all include 40 hidden units.
4. A driving behavior prediction system based on a bidirectional long short-term memory network, characterized in that: include: The sensor module collects the driver's longitudinal and lateral driving behavior data; A signal filtering module for smoothing the longitudinal and lateral driving behavior data; The on-board processor stores the processed data in the form of time series; Bidirectional long short-term memory network module, which inputs the processed data into the bidirectional long short-term memory network module to predict the driving behavior and obtain the prediction result; The bidirectional long short-term memory network module includes a bidirectional LSTM network, a first fully connected layer, a second fully connected layer and a regression output layer. The bidirectional long short-term memory network module is expressed as: S t =fc2(fc1(BiLSTM(In t ))); (1) The output of the bidirectional long short-term memory network module is expressed as: BiLSTM represents a bidirectional LSTM network with 40 hidden units in the forward and reverse directions; fc2 represents the terminal fully connected layer that completes sequence prediction, that is, the second fully connected layer; fc1 represents a fully connected layer with a custom number of hidden units, that is, the first fully connected layer; In t represents the preprocessed time series data as the input of the bidirectional long short-term memory network module; f represents the activation function, x t Represents the input state of the bidirectional long short-term memory network module, S ft represents the feedforward hidden layer state of the bidirectional long short-term memory network module, S bt represents the backward hidden state of the bidirectional long short-term memory network module, O t Represents the output state of the bidirectional long short-term memory network module, W 1f represents the forward connection weight of the input layer, W 2f represents the forward connection weight of the hidden layer, W 3f represents the backward connection weight of the input layer, W 4f represents the backward connection weight of the hidden layer, W 5f represents the input weight matrix, W 6f represents the output weight matrix, b x represents the input bias matrix, b o Represents the bias matrix for the output.
5. The prediction system according to claim 4, characterized in that The sensor module includes a steering wheel angle sensor, a body sensor and an accelerator pedal sensor.
Citation Information
Cited By
Driving behavior prediction method based on informer neural network in safety potential field
CN115547040A
