A method, device, equipment and medium for predicting braking intention of intelligent vehicles
Through the deep learning model combined with LSTM, CNN and attention mechanism, the temporal and spatial data characteristics of intelligent vehicles are extracted, and the braking intention prediction model is trained, which solves the problem of untimely prediction of intelligent vehicle braking intention and improves the accuracy of prediction and driving. Security.
Patent Information
- Application Number
- CN202410433677.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-04-11
AI Technical Summary
Existing technology cannot predict the braking intention of smart vehicles in advance, resulting in problems such as untimely or inaccurate braking.
The braking intention prediction method based on deep learning is adopted, using LSTM, CNN and attention mechanism, combined with temporal and spatial data to extract features, train the braking intention prediction model, generate obstacle warning prompts and determine the braking intention category.
It realizes the timely prediction of braking intention of intelligent vehicles when encountering obstacles, improves the accuracy of braking intention prediction, and ensures driving safety.
Smart Images

Figure CN118025151B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of intelligent vehicle technology, and in particular, to a braking intention prediction method, device, equipment and medium applicable to an intelligent vehicle. Background Art
[0002] With the promulgation of relevant national policies and the upgrading of the automobile industry, the research on automatic emergency braking systems conforms to the development trend of electrification and intelligence in the automotive field. The advanced active collision avoidance system braking intention prediction method improves the intelligence level of the vehicle and can effectively avoid some collision accidents.
[0003] In order to reduce the number of motor vehicle traffic accidents, protect the lives and property of drivers and passengers, and avoid deficiencies such as untimely and inaccurate braking during manual braking, research on the prediction method of braking intention of active collision avoidance system has become a trend in the automotive industry.
[0004] However, existing prediction methods cannot predict braking intention in advance. Summary of the invention
[0005] The embodiments described herein provide a method, apparatus, device and medium for predicting braking intention for a smart vehicle, which overcomes the above-mentioned problems.
[0006] In a first aspect, according to the content of the present disclosure, a method for predicting braking intention for a smart car is provided, comprising:
[0007] During the driving process of the smart vehicle, if an obstacle is detected in the driving road of the smart vehicle, an obstacle warning prompt is generated, and the obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation;
[0008] In response to the driver's braking operation on the smart vehicle, obtaining braking response data of the smart vehicle, where the braking response data is used to describe the driving data and environmental data of the smart vehicle during braking;
[0009] Obtaining a pre-trained braking intention prediction model, where the braking intention prediction model is used to predict the braking intention of the intelligent vehicle;
[0010] The braking response data of the intelligent vehicle is input into the braking intention prediction model, and the braking intention category of the intelligent vehicle is determined based on the output of the braking intention prediction model. The braking intention categories of the intelligent vehicle include: no braking, light braking and emergency braking.
[0011] Optionally, the training process of the braking intention prediction model includes:
[0012] Acquire braking simulation data, where the braking simulation data is used to describe driving data and environmental data when simulating braking of the intelligent vehicle;
[0013] Obtaining a preset network model, the preset network model includes: a time data extraction branch, a space data extraction branch and a data merging branch, the time data extraction branch is used to extract vehicle data in the time dimension, and the space data extraction branch is used to extract vehicle data in the space dimension;
[0014] The preset network model is trained based on the braking simulation data to obtain a braking intention prediction model.
[0015] Optionally, a preset network model is trained based on braking simulation data to obtain a braking intention prediction model, including:
[0016] Inputting the braking simulation data into the time data extraction branch to obtain first characteristic data;
[0017] Inputting the braking simulation data into the spatial data extraction branch to obtain second characteristic data;
[0018] Inputting the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data;
[0019] Using a preset loss function, the time data extraction branch and the space data extraction branch are trained based on the braking intention prediction results corresponding to the braking simulation data to obtain a braking intention prediction model.
[0020] Optionally, the time data extraction branch includes: a data extraction layer and an attention mechanism layer, the attention mechanism layer is used to retain feature data whose time weight meets a preset time data condition;
[0021] The braking simulation data is input into the time data extraction branch to obtain the first characteristic data, including:
[0022] Input the braking simulation data into the data extraction layer in the time data extraction branch to obtain feature extraction data;
[0023] The feature extraction data is input into the attention mechanism layer in the time data extraction branch to obtain the first feature data.
[0024] Optionally, the spatial data extraction branch includes: a convolution layer and a pooling layer, the pooling layer is used to reduce feature data that does not meet the preset spatial data conditions;
[0025] The braking simulation data is input into the spatial data extraction branch to obtain the second characteristic data, including:
[0026] Input the braking simulation data into the convolution layer in the spatial data extraction branch to obtain multiple feature maps;
[0027] The multiple feature maps are input into the pooling layer in the spatial data extraction branch to obtain second feature data.
[0028] Optionally, the data merging branch includes: three fully connected layers;
[0029] Inputting the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data includes:
[0030] Inputting the first feature data into the first fully connected layer in the data merging branch to obtain a first classification result;
[0031] Input the second feature data into the second fully connected layer in the data merging branch to obtain a second classification result;
[0032] The first classification result and the second classification result are input into the third fully connected layer in the data merging branch to obtain the braking intention prediction result corresponding to the braking simulation data.
[0033] Optionally, the braking response data of the intelligent vehicle includes: the real value of the accelerator pedal opening, the real value of the accelerator pedal opening rate, the real value of the vehicle speed, the real value of the steering wheel speed, the real value of the accelerator pedal force, the real value of the acceleration, and the real relative distance between the intelligent vehicle and the obstacle;
[0034] The braking simulation data includes: the simulated value of the accelerator pedal opening, the simulated value of the accelerator pedal opening rate, the simulated value of the vehicle speed, the simulated value of the steering wheel speed, the simulated value of the accelerator pedal force, the simulated value of the acceleration, and the simulated relative distance between the intelligent vehicle and the simulated obstacle.
[0035] In a second aspect, according to the content of the present disclosure, a braking intention prediction device for a smart car is provided, comprising:
[0036] A generating module, used for generating an obstacle warning prompt when an obstacle is detected in the driving path of the intelligent vehicle during the driving process of the intelligent vehicle, and the obstacle warning prompt is used to remind the driver of the intelligent vehicle to perform a braking operation;
[0037] A first acquisition module is used to acquire braking response data of the intelligent vehicle in response to the driver's braking operation on the intelligent vehicle, where the braking response data is used to describe the driving data and environmental data of the intelligent vehicle during braking;
[0038] A second acquisition module is used to acquire a braking intention prediction model obtained through pre-training, where the braking intention prediction model is used to predict the braking intention of the intelligent vehicle;
[0039] The determination module is used to input the braking response data of the intelligent vehicle into the braking intention prediction model, and determine the braking intention category of the intelligent vehicle based on the output of the braking intention prediction model. The braking intention categories of the intelligent vehicle include: no braking, light braking and emergency braking.
[0040] Optionally, it further includes: a third acquisition module, a fourth acquisition module and a training module;
[0041] A third acquisition module is used to acquire braking simulation data, where the braking simulation data is used to describe driving data and environmental data when simulating braking of the intelligent vehicle;
[0042] A fourth acquisition module is used to acquire a preset network model, the preset network model includes: a time data extraction branch, a space data extraction branch and a data merging branch, the time data extraction branch is used to extract vehicle data in the time dimension, and the space data extraction branch is used to extract vehicle data in the space dimension;
[0043] The training module is used to train the preset network model based on the braking simulation data to obtain a braking intention prediction model.
[0044] Optionally, the training module includes: a first input unit, a second input unit, a third input unit and a training unit;
[0045] A first input unit, used for inputting the braking simulation data into the time data extraction branch to obtain first characteristic data;
[0046] A second input unit, used for inputting the braking simulation data into the spatial data extraction branch to obtain second characteristic data;
[0047] A third input unit, used for inputting the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data;
[0048] The training unit is used to adopt a preset loss function to train the time data extraction branch and the space data extraction branch based on the braking intention prediction result corresponding to the braking simulation data to obtain a braking intention prediction model.
[0049] Optionally, the time data extraction branch includes: a data extraction layer and an attention mechanism layer, the attention mechanism layer is used to retain feature data whose time weight meets a preset time data condition;
[0050] The first input unit is specifically used for:
[0051] The braking simulation data is input into the data extraction layer in the time data extraction branch to obtain feature extraction data; the feature extraction data is input into the attention mechanism layer in the time data extraction branch to obtain the first feature data.
[0052] Optionally, the spatial data extraction branch includes: a convolution layer and a pooling layer, the pooling layer is used to reduce feature data that does not meet the preset spatial data conditions;
[0053] The second input unit is specifically used for:
[0054] The braking simulation data is input into a convolution layer in a spatial data extraction branch to obtain a plurality of feature maps; and the plurality of feature maps are input into a pooling layer in a spatial data extraction branch to obtain second feature data.
[0055] Optionally, the data merging branch includes: three fully connected layers;
[0056] The third input unit is specifically used for:
[0057] The first feature data is input into the first fully connected layer in the data merging branch to obtain the first classification result; the second feature data is input into the second fully connected layer in the data merging branch to obtain the second classification result; the first classification result and the second classification result are input into the third fully connected layer in the data merging branch to obtain the braking intention prediction result corresponding to the braking simulation data.
[0058] Optionally, the braking response data of the intelligent vehicle includes: the real value of the accelerator pedal opening, the real value of the accelerator pedal opening rate, the real value of the vehicle speed, the real value of the steering wheel speed, the real value of the accelerator pedal force, the real value of the acceleration, and the real relative distance between the intelligent vehicle and the obstacle;
[0059] The braking simulation data includes: the simulated value of the accelerator pedal opening, the simulated value of the accelerator pedal opening rate, the simulated value of the vehicle speed, the simulated value of the steering wheel speed, the simulated value of the accelerator pedal force, the simulated value of the acceleration, and the simulated relative distance between the intelligent vehicle and the simulated obstacle.
[0060] In a third aspect, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the braking intention prediction method for an intelligent vehicle in any of the above embodiments are implemented.
[0061] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the braking intention prediction method for an intelligent vehicle in any of the above embodiments are implemented.
[0062] The braking intention prediction method for smart vehicles provided in the embodiment of the present application generates an obstacle warning prompt during the driving process of the smart vehicle if an obstacle is detected on the driving road of the smart vehicle. The obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation; in response to the driver's braking operation on the smart vehicle, the braking response data of the smart vehicle is obtained, and the braking response data is used to describe the driving data and environmental data of the smart vehicle during braking; a braking intention prediction model obtained by pre-training is obtained, and the braking intention prediction model is used to predict the braking intention of the smart vehicle; the braking response data of the smart vehicle is input into the braking intention prediction model, and the braking intention category of the smart vehicle is determined based on the output of the braking intention prediction model. The braking intention category of the smart vehicle includes: no braking, light braking and emergency braking. In this way, when the smart vehicle encounters an obstacle during driving, the braking intention of the smart vehicle can be predicted in time, which is convenient for the system of the smart vehicle to perform corresponding processing, effectively advances and improves the accuracy of the braking intention prediction, and at the same time, ensures driving safety.
[0063] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0065] Figure 1 It is a flow chart of a braking intention prediction method for a smart car provided in an embodiment of the present disclosure.
[0066] Figure 2A It is a schematic diagram of an LSTM-CNN-Attention model architecture provided in an embodiment of the present disclosure.
[0067] Figure 2B It is a schematic diagram of an LSTM unit structure provided in an embodiment of the present disclosure.
[0068] Figure 2C It is a sample extraction schematic diagram provided by an embodiment of the present disclosure.
[0069] Figure 2D It is a schematic diagram for comparing the prediction accuracy of different models provided by an embodiment of the present disclosure.
[0070] Figure 3It is a structural schematic diagram of a braking intention prediction device for a smart car provided in an embodiment of the present disclosure.
[0071] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.
[0072] It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0074] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0075] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0076] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. Terms such as "first" and "second" are only used to distinguish one component (or a part of a component) from another component (or another part of a component).
[0077] In the description of the present application, unless otherwise specified, “plurality” means more than two (including two), and similarly, “plurality groups” means more than two (including two).
[0078] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0079] Figure 1 is a flow chart of a method for predicting braking intention of a smart car provided by an embodiment of the present disclosure, such as Figure 1 As shown in FIG. 1 , the specific process of the braking intention prediction method for smart cars includes:
[0080] S110. During the driving process of the smart vehicle, if an obstacle is detected in the driving path of the smart vehicle, an obstacle warning prompt is generated.
[0081] Among them, obstacle warning prompts can be used to remind the driver of the smart vehicle to perform braking operations.
[0082] Obstacle warning prompts may be in the form of sound, vibration, etc., so that the driver of the smart vehicle can receive obstacle warning prompts in time.
[0083] S120: In response to the driver's braking operation on the smart vehicle, obtain braking response data of the smart vehicle.
[0084] Among them, the braking response data is used to describe the driving data and environmental data of the intelligent vehicle during braking.
[0085] The braking response data of the smart vehicle may include: the true value of the accelerator pedal opening, the true value of the accelerator pedal opening rate, the true value of the vehicle speed, the true value of the steering wheel speed, the true value of the accelerator pedal force, the true value of the acceleration, and the relative true distance between the smart vehicle and the obstacle.
[0086] S130: Acquire a braking intention prediction model obtained through pre-training.
[0087] Among them, the braking intention prediction model can be used to predict the braking intention of intelligent vehicles.
[0088] In some embodiments, the training process of the braking intention prediction model includes:
[0089] Acquire braking simulation data; acquire a preset network model; train the preset network model based on the braking simulation data to obtain a braking intention prediction model.
[0090] The braking simulation data is used to describe the driving data and environmental data when simulating the intelligent vehicle braking. The braking simulation data may include: the simulated value of the accelerator pedal opening, the simulated value of the accelerator pedal opening rate, the simulated value of the vehicle speed, the simulated value of the steering wheel speed, the simulated value of the accelerator pedal force, the simulated value of the acceleration, and the simulated relative distance between the intelligent vehicle and the simulated obstacle.
[0091] The preset network model includes: a time data extraction branch, a space data extraction branch and a data merging branch. The time data extraction branch is used to extract vehicle data in the time dimension, and the space data extraction branch is used to extract vehicle data in the space dimension.
[0092] The temporal data extraction branch can be LSTM (Long Short-Term Memory), which is convenient for considering the association between different time steps of data and proposing data features from a temporal perspective. The spatial data extraction branch can be CNN (Convolutional Neural Networks), which is convenient for considering the association between different sensors and extracting data from a spatial perspective. In the preset network model, LSTM and CNN are parallel neural network models.
[0093] In some embodiments, a preset network model is trained based on braking simulation data to obtain a braking intention prediction model, including:
[0094] The braking simulation data is input into the time data extraction branch to obtain the first feature data; the braking simulation data is input into the space data extraction branch to obtain the second feature data; the first feature data and the second feature data are input into the data merging branch to obtain the braking intention prediction result corresponding to the braking simulation data; the preset loss function is used to train the time data extraction branch and the space data extraction branch based on the braking intention prediction result corresponding to the braking simulation data to obtain a braking intention prediction model.
[0095] Among them, using a preset loss function, training the time data extraction branch and the space data extraction branch based on the braking intention prediction result corresponding to the braking simulation data to obtain the braking intention prediction model may include: using a preset loss function, calculating the loss value between the braking intention prediction result corresponding to the braking simulation data and the label data corresponding to the braking simulation data (such as the label classification result of the braking intention), if the loss value is lower than the preset threshold, optimizing the time data extraction branch and the space data extraction branch, until the loss value between the braking intention prediction result corresponding to the braking simulation data and the label data corresponding to the braking simulation data after the optimization of the time data extraction branch and the space data extraction branch, as well as the data merging branch, is greater than or equal to the preset threshold, at which time the training is completed, and the braking intention prediction model is obtained. Thereby, the prediction accuracy of the braking intention prediction model is guaranteed.
[0096] In some embodiments, the time data extraction branch includes: a data extraction layer and an attention mechanism layer, and the attention mechanism layer is used to retain feature data whose time weight meets preset time data conditions.
[0097] The braking simulation data is input into the time data extraction branch to obtain the first characteristic data, including:
[0098] The braking simulation data is input into the data extraction layer in the time data extraction branch to obtain feature extraction data; the feature extraction data is input into the attention mechanism layer in the time data extraction branch to obtain the first feature data.
[0099] Among them, after the braking simulation data is extracted by the LSTM layer (i.e., data extraction layer), each hidden state is used as the input of the Attention layer (i.e., attention mechanism layer), and a weight is assigned to each time step in the Attention layer, so that important time step data is retained. In addition, the attention mechanism layer can enhance the feature extraction ability of the recurrent neural network for long time series.
[0100] In some embodiments, the spatial data extraction branch includes: a convolution layer and a pooling layer, and the pooling layer is used to reduce feature data that does not meet preset spatial data conditions.
[0101] The braking simulation data is input into the spatial data extraction branch to obtain the second characteristic data, including:
[0102] The braking simulation data is input into a convolution layer in a spatial data extraction branch to obtain a plurality of feature maps; and the plurality of feature maps are input into a pooling layer in a spatial data extraction branch to obtain second feature data.
[0103] Among them, the braking simulation data passes through the convolution layer to obtain several feature maps, and the feature maps are passed through the maximum pooling layer to reduce the amount of unimportant data.
[0104] In some embodiments, the data merging branch includes: three fully connected layers.
[0105] Inputting the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data includes:
[0106] The first feature data is input into the first fully connected layer in the data merging branch to obtain the first classification result; the second feature data is input into the second fully connected layer in the data merging branch to obtain the second classification result; the first classification result and the second classification result are input into the third fully connected layer in the data merging branch to obtain the braking intention prediction result corresponding to the braking simulation data.
[0107] Among them, in order to merge the features extracted by the recurrent network and the convolutional network, after the feature data extracted by them are compressed, the feature data are sent to the fully connected layers with the same number of units respectively. The data of the two fully connected layers are added and sent to the last fully connected layer to obtain the predicted braking intention.
[0108] S140: Input the braking response data of the intelligent vehicle into a braking intention prediction model, and determine the braking intention category of the intelligent vehicle based on the output of the braking intention prediction model.
[0109] Among them, the braking intention categories of intelligent vehicles include: no braking, light braking and emergency braking.
[0110] The structure of the braking intention prediction model trained in this embodiment may include: LSTM unit, point-to-point attention mechanism, temporal convolution and fully connected layer.
[0111] LSTM unit: Recurrent neural networks can extract features by combining the relationship between the current time step and the past time step data, but there is a gradient vanishing phenomenon. LSTM solves the gradient vanishing problem by introducing a "gate" mechanism to control the flow of data inside the unit.
[0112] Point-to-point attention mechanism: The attention mechanism multiplies each time step of the hidden layer sequence of the recurrent neural network by a weight coefficient. Important time steps are given higher weights, thereby focusing "attention" on these time steps, which can effectively improve the feature extraction ability of long sequences and shorten the training time.
[0113] Temporal convolution: Temporal convolution is a 1D temporal convolutional neural network, and its principle can be expressed as shown in formula (1):
[0114] (1)
[0115] In formula (1), is the feature map of the lth layer, * represents the convolution operation, is the convolution kernel (k is the size of the convolution kernel, d is the number of convolution kernels), is the bias vector and ReLU is the activation function.
[0116] Fully connected layer: The two added vectors pass through the last fully connected layer to obtain the final output. The principle can be expressed as shown in formula (2) and formula (3):
[0117] (2)
[0118] In formula (2), is the input vector, w is the weight matrix, and b is the bias vector.
[0119] (3)
[0120] In formula (2), is the predicted output.
[0121] In this embodiment, during the driving process of the smart vehicle, if an obstacle is detected in the driving road of the smart vehicle, an obstacle warning prompt is generated, and the obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation; in response to the driver's braking operation on the smart vehicle, the braking response data of the smart vehicle is obtained, and the braking response data is used to describe the driving data and environmental data of the smart vehicle when braking; a braking intention prediction model obtained by pre-training is obtained, and the braking intention prediction model is used to predict the braking intention of the smart vehicle; the braking response data of the smart vehicle is input into the braking intention prediction model, and the braking intention category of the smart vehicle is determined based on the output of the braking intention prediction model. The braking intention category of the smart vehicle includes: no braking, light braking and emergency braking. In this way, when the smart vehicle encounters an obstacle during driving, the braking intention of the smart vehicle can be predicted in time, which is convenient for the system of the smart vehicle to perform corresponding processing, effectively advances and improves the accuracy of the braking intention prediction, and at the same time, ensures driving safety.
[0122] This embodiment proposes a method based on deep learning model to predict the driver's intention before actual braking. It uses data from various vehicle-mounted sensors, integrates long short-term memory networks, convolutional neural networks and attention mechanisms, extracts the spatiotemporal characteristics of sensor data, and predicts the driver's braking intention more accurately in advance, thereby improving the safety of the smart car AEB (Autonomous Emergency Braking, automatic braking system) system.
[0123] like Figure 2AAs shown, this embodiment proposes a LSTM and CNN parallel neural network model, in which the recurrent neural network can consider the association between different time steps of the data and propose the characteristics of the data from the perspective of time; while the convolutional neural network can consider the association between different sensors and extract data from the perspective of space. In addition, the attention mechanism can enhance the feature extraction ability of the recurrent neural network for long time series. The network is divided into two parts: a recurrent neural network and a convolutional neural network. For the recurrent neural network part, after the data is extracted through the LSTM layer, each hidden state is used as the input of the Attention layer, and a weight is assigned to each time step in the Attention layer, so that the important time step data is retained. For the convolutional network part, the data is passed through the convolution layer to obtain several feature maps, and the feature maps are passed through the maximum pooling layer to reduce the amount of unimportant data. Then, in order to merge the features extracted by the recurrent network and the convolutional network, the features extracted by them are compressed and sent to the fully connected layers with the same number of units respectively. The data of the two fully connected layers are added and sent to the last fully connected layer to obtain the predicted braking intention. The structure of the LSTM unit is shown in Figure 2B shown.
[0124] In the driving scenario, the car is turning. If it encounters an obstacle, the driver cannot see the obstacle behind the bend. When the obstacle is found, emergency braking measures are taken. When a pedestrian suddenly appears behind the rear of the adjacent car, the driver also takes emergency braking measures.
[0125] In addition, since emergency braking is a measure taken only in extremely dangerous situations, it may endanger the health of the experimenters if the experiment is conducted in the real world. Therefore, an emergency braking scenario for collecting driving data was built to obtain braking simulation data.
[0126] The driving data collection process is as follows: the driver uses the Logitech G29 to operate the virtual vehicle dynamics model in Simulink, Simulink communicates with the PreScan process, generates image information, and records various driving data of the vehicle in Simulink.
[0127] The Dewesoft data acquisition system was used to collect data from the pedal force sensor installed on the G29. The frequency of data acquisition was set to 20 Hz, and the data acquisition was started at the same time so that the data collected by Dewesoft and Simulink were synchronized. The information of the data acquisition equipment is shown in Table 1.
[0128] Table 1 Data collection equipment information table
[0129]
[0130] Invited 12 licensed drivers, in order to collect effective samples, the following requirements must be met: familiar with the use of the simulator before collection, to ensure a good mental state. Each driver collected 50 emergency braking and 50 light braking. The local weighted smoothing filter algorithm (LOWESS) was used to process the signal data.
[0131] like Figure 2C As shown in Figure 2, the sliding window extracts data when the driver does not fully release the accelerator pedal, so it is possible to predict his braking intention. After the sliding window extraction, each sample obtained is a 2D matrix, as shown in formula (4):
[0132] (4)
[0133] In formula (4), n is the number of collected signals (n=7), and t is the size of the sliding window.
[0134] Braking intention prediction is essentially a multi-dimensional time series classification problem, so each sample needs to be labeled. Braking intention is usually divided into three categories: no braking, light braking, and emergency braking. Table 2 shows the three types of braking intention labels and their sample numbers after manual annotation.
[0135] Table 2 Sample labels and quantities
[0136]
[0137] In the training process of the braking intention prediction model, a deep learning model was built using TensorFlow2. The host configuration was i9 9900 CPU, NVIDIA RTX 2060 GPU, and 16GB DDR4 memory. Adam was selected as the optimization algorithm for the model, the initial learning rate was 0.001, the loss function was cross entropy, the number of training rounds was set to 100, and the mini-batch size was set to 64. The model was trained using a five-fold cross validation method, and the accuracy was taken as the average of five times.
[0138] The proposed LSTM-CNN-Attention model is also compared with LSTM, BiLSTM, and CNN models. The results are as follows Figure 2D The comparison results show that the braking intention prediction model proposed in this embodiment can well extract the spatiotemporal features of multi-sensor data, because the existing models only consider single information of time or space.
[0139] In general, under the same prediction time domain and sliding window conditions, the LSTM-CNN-Attenion model proposed in this embodiment has higher accuracy than other models. As shown in Table 3, as the prediction time domain increases, the advantages of the LSTM-CNN-Attenion model become more obvious. When the prediction time domain increases to 350ms, it is 2.29%, 1.38%, and 2.24% higher than the other models, respectively. This shows that the LSTM-CNN-Attenion model can better handle the problem of long prediction time domain.
[0140] Table 3 Comparison of accuracy results
[0141]
[0142] Figure 3 A structural schematic diagram of a braking intention prediction device for a smart car provided in this embodiment, wherein the braking intention prediction device for a smart car may include: a generation module 310, a first acquisition module 320, a second acquisition module 330 and a determination module 340.
[0143] The generation module 310 is used to generate an obstacle warning prompt when an obstacle is detected in the driving path of the smart vehicle during the driving process of the smart vehicle. The obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation.
[0144] The first acquisition module 320 is used to acquire braking response data of the smart vehicle in response to the driver's braking operation on the smart vehicle, where the braking response data is used to describe the driving data and environmental data of the smart vehicle during braking.
[0145] The second acquisition module 330 is used to acquire a pre-trained braking intention prediction model, where the braking intention prediction model is used to predict the braking intention of the intelligent vehicle.
[0146] The determination module 340 is used to input the braking response data of the intelligent vehicle into the braking intention prediction model, and determine the braking intention category of the intelligent vehicle based on the output of the braking intention prediction model. The braking intention categories of the intelligent vehicle include: no braking, light braking and emergency braking.
[0147] In this embodiment, optionally, it also includes: a third acquisition module, a fourth acquisition module and a training module.
[0148] The third acquisition module is used to acquire braking simulation data, where the braking simulation data is used to describe the driving data and environmental data when simulating the braking of the intelligent vehicle.
[0149] The fourth acquisition module is used to acquire a preset network model. The preset network model includes: a time data extraction branch, a space data extraction branch and a data merging branch. The time data extraction branch is used to extract vehicle data in the time dimension, and the space data extraction branch is used to extract vehicle data in the space dimension.
[0150] The training module is used to train the preset network model based on the braking simulation data to obtain a braking intention prediction model.
[0151] In this embodiment, optionally, the training module includes: a first input unit, a second input unit, a third input unit and a training unit.
[0152] The first input unit is used to input the braking simulation data into the time data extraction branch to obtain the first characteristic data.
[0153] The second input unit is used to input the braking simulation data into the spatial data extraction branch to obtain second characteristic data.
[0154] The third input unit is used to input the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data.
[0155] The training unit is used to adopt a preset loss function to train the time data extraction branch and the space data extraction branch based on the braking intention prediction result corresponding to the braking simulation data to obtain a braking intention prediction model.
[0156] In this embodiment, optionally, the time data extraction branch includes: a data extraction layer and an attention mechanism layer, and the attention mechanism layer is used to retain feature data whose time weight meets preset time data conditions.
[0157] The first input unit is specifically used for:
[0158] The braking simulation data is input into the data extraction layer in the time data extraction branch to obtain feature extraction data; the feature extraction data is input into the attention mechanism layer in the time data extraction branch to obtain the first feature data.
[0159] In this embodiment, optionally, the spatial data extraction branch includes: a convolution layer and a pooling layer, and the pooling layer is used to reduce feature data that does not meet the preset spatial data conditions.
[0160] The second input unit is specifically used for:
[0161] The braking simulation data is input into a convolution layer in a spatial data extraction branch to obtain a plurality of feature maps; and the plurality of feature maps are input into a pooling layer in a spatial data extraction branch to obtain second feature data.
[0162] In this embodiment, optionally, the data merging branch includes: three fully connected layers.
[0163] The third input unit is specifically used for:
[0164] The first feature data is input into the first fully connected layer in the data merging branch to obtain the first classification result; the second feature data is input into the second fully connected layer in the data merging branch to obtain the second classification result; the first classification result and the second classification result are input into the third fully connected layer in the data merging branch to obtain the braking intention prediction result corresponding to the braking simulation data.
[0165] In this embodiment, optionally, the braking response data of the intelligent vehicle includes: the real value of the accelerator pedal opening, the real value of the accelerator pedal opening rate, the real value of the vehicle speed, the real value of the steering wheel speed, the real value of the accelerator pedal force, the real value of the acceleration, and the relative real distance between the intelligent vehicle and the obstacle; the braking simulation data includes: the simulated value of the accelerator pedal opening, the simulated value of the accelerator pedal opening rate, the simulated value of the vehicle speed, the simulated value of the steering wheel speed, the simulated value of the accelerator pedal force, the simulated value of the acceleration, and the relative simulated distance between the intelligent vehicle and the simulated obstacle.
[0166] The braking intention prediction device for smart vehicles provided in the present disclosure can execute the above method embodiments. Its specific implementation principles and technical effects can be found in the above method embodiments, and the present disclosure will not repeat them here.
[0167] The present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0168] The computer device includes a memory 410 and a processor 420 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with a memory 410 and a processor 420, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0169] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0170] The memory 410 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 410 may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 410 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash card (Flash Card), etc., equipped on the computer device. Of course, the memory 410 may also include both an internal storage unit of the computer device and an external storage device thereof. In this embodiment, the memory 410 is generally used to store an operating system and various application software installed on the computer device, such as the program code of the above method, etc. In addition, the memory 410 may also be used to temporarily store various data that have been output or are to be output.
[0171] The processor 420 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 410 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 420 is used to execute the program codes or instructions stored in the memory 410 or process data, such as running the program code of the above method.
[0172] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0173] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0174] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0175] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0176] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0177] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0179] In the claims, any reference symbols placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
[0180] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 application.
Claims
1. A method for predicting braking intention of a smart car, characterized in that: include: During the driving process of the smart vehicle, if an obstacle is detected in the driving road of the smart vehicle, an obstacle warning prompt is generated, and the obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation; In response to the driver's braking operation on the smart vehicle, obtaining braking response data of the smart vehicle, wherein the braking response data is used to describe the driving data and environmental data of the smart vehicle during braking; Acquire a braking intention prediction model obtained through pre-training, wherein the braking intention prediction model is used to predict the braking intention of the intelligent vehicle; Inputting the braking response data of the smart vehicle into the braking intention prediction model, and determining the braking intention category of the smart vehicle based on the output of the braking intention prediction model, wherein the braking intention category of the smart vehicle includes: no braking, light braking, and emergency braking; The training process of the braking intention prediction model includes: Acquire braking simulation data, wherein the braking simulation data is used to describe driving data and environmental data when simulating braking of an intelligent vehicle; acquire a preset network model, wherein the preset network model includes: a time data extraction branch, a space data extraction branch, and a data merging branch, wherein the time data extraction branch is used to extract vehicle data under the time dimension, and the space data extraction branch is used to extract vehicle data under the space dimension; train the preset network model based on the braking simulation data to obtain the braking intention prediction model.
2. The method according to claim 1, characterized in that The step of training the preset network model based on the braking simulation data to obtain the braking intention prediction model includes: Inputting the braking simulation data into the time data extraction branch to obtain first characteristic data; Inputting the braking simulation data into the spatial data extraction branch to obtain second feature data; Inputting the first characteristic data and the second characteristic data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data; The preset loss function is used to train the time data extraction branch and the space data extraction branch based on the braking intention prediction result corresponding to the braking simulation data to obtain the braking intention prediction model.
3. The method according to claim 2, characterized in that The time data extraction branch includes: a data extraction layer and an attention mechanism layer, wherein the attention mechanism layer is used to retain feature data whose time weight meets the preset time data condition; The step of inputting the braking simulation data into the time data extraction branch to obtain first characteristic data comprises: Inputting the braking simulation data into the data extraction layer in the time data extraction branch to obtain feature extraction data; The feature extraction data is input into the attention mechanism layer in the time data extraction branch to obtain the first feature data.
4. The method according to claim 2, characterized in that: The spatial data extraction branch includes: a convolution layer and a pooling layer, wherein the pooling layer is used to reduce feature data that does not meet the preset spatial data conditions; The step of inputting the braking simulation data into the spatial data extraction branch to obtain second characteristic data comprises: Inputting the braking simulation data into the convolutional layer in the spatial data extraction branch to obtain a plurality of feature maps; Input the plurality of feature maps into the pooling layer in the spatial data extraction branch to obtain the second feature data.
5. The method according to claim 2, characterized in that: The data merging branch includes: three fully connected layers; The step of inputting the first feature data and the second feature data into the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data includes: Inputting the first feature data into the first fully connected layer in the data merging branch to obtain a first classification result; Inputting the second feature data into the second fully connected layer in the data merging branch to obtain a second classification result; The first classification result and the second classification result are input into the third fully connected layer in the data merging branch to obtain a braking intention prediction result corresponding to the braking simulation data.
6. The method according to claim 1, characterized in that The braking response data of the intelligent vehicle includes: the real value of the accelerator pedal opening, the real value of the accelerator pedal opening rate, the real value of the vehicle speed, the real value of the steering wheel speed, the real value of the accelerator pedal force, the real value of the acceleration, and the relative real distance between the intelligent vehicle and the obstacle; The braking simulation data includes: a simulated value of an accelerator pedal opening, a simulated value of an accelerator pedal opening rate of change, a simulated value of a vehicle speed, a simulated value of a steering wheel speed, a simulated value of an accelerator pedal force, a simulated value of acceleration, and a relative simulated distance between the intelligent vehicle and a simulated obstacle.
7. A braking intention prediction device for a smart car, characterized in that: include: A generating module, used for generating an obstacle warning prompt when an obstacle is detected in the driving path of the smart vehicle during the driving process of the smart vehicle, wherein the obstacle warning prompt is used to remind the driver of the smart vehicle to perform a braking operation; A first acquisition module, configured to acquire braking response data of the smart vehicle in response to the driver's braking operation on the smart vehicle, wherein the braking response data is used to describe driving data and environmental data of the smart vehicle during braking; A second acquisition module is used to acquire a braking intention prediction model obtained through pre-training, wherein the braking intention prediction model is used to predict the braking intention of the intelligent vehicle; A determination module, used for inputting the braking response data of the intelligent vehicle into the braking intention prediction model, and determining the braking intention category of the intelligent vehicle based on the output of the braking intention prediction model, wherein the braking intention category of the intelligent vehicle includes: no braking, light braking and emergency braking; The braking intention prediction device for smart vehicles also includes: a third acquisition module, a fourth acquisition module and a training module; The third acquisition module is used to acquire braking simulation data, where the braking simulation data is used to describe the driving data and environmental data when simulating braking of the intelligent vehicle; The fourth acquisition module is used to acquire a preset network model, and the preset network model includes: a time data extraction branch, a space data extraction branch and a data merging branch, the time data extraction branch is used to extract vehicle data in the time dimension, and the space data extraction branch is used to extract vehicle data in the space dimension; The training module is used to train the preset network model based on the braking simulation data to obtain the braking intention prediction model.
8. A computer device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, a braking intention prediction method for a smart car as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the braking intention prediction method for an intelligent vehicle as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Energy recovery method and device for predicting braking intention based on ELM
CN116424284A
