Method and device for predicting driving style in dangerous scene

By conducting principal component and cluster analysis on the user's data in normal driving conditions, combined with subjective behavioral characteristics, a predicted driving style in dangerous situations is generated, which solves the problem of low accuracy of driving style prediction in dangerous situations in the existing technology. problem, improving driving safety and comfort.

CN118656633AActive Publication Date: 2024-09-17TSINGHUA UNIVERSITY

Patent Information

Application Number
CN202411124208.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-09-17
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately capture differences in drivers' driving styles in dangerous scenarios, affecting the accuracy of driving style prediction.

Method used

By performing principal component analysis and clustering on the user's sample objective data in normal driving conditions, combined with the sample's subjective behavioral characteristic data, a prediction model is used to generate a predicted driving style in abnormal driving conditions, and the model is optimized through a loss function to improve predictions. Accuracy.

Benefits of technology

It significantly improves the accuracy of predicting the driver's driving style in dangerous scenarios and improves driving safety and comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656633A
    Figure CN118656633A
Patent Text Reader

Abstract

The invention relates to a method and a device for predicting a driving style in a dangerous scene. The method comprises the following steps: analyzing sample objective data of a user in a normal driving state to obtain a first principal component data set and a sample objective driving style corresponding to the user; performing prediction processing on the sample subjective driving style, the first principal component data set and the sample objective driving style of the user through a first driving style prediction model to obtain a predicted driving style of the user in the abnormal driving state; and calculating a loss function based on the sample driving style and the predicted driving style, determining a model optimization parameter based on the loss function, and updating the first driving style prediction model through the model optimization parameter to obtain a target driving style prediction model. By adopting the method, the accuracy of predicting the driving style of the driver in a dangerous scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of road traffic safety technology, and in particular to a method and device for predicting driving style in dangerous scenarios. Background Art

[0002] As the level of automobile intelligence gradually increases, the subject of driving control is gradually transformed from humans to intelligent driving systems. The goal of automobile intelligence development is to help or replace drivers to achieve optimal vehicle control and optimal safety protection. In the long stage before the industrialization and application of intelligent vehicles to achieve unmanned driving, drivers and intelligent driving systems will share vehicle control and road use rights. Intelligent driving systems should be able to adapt to the characteristics and needs of different drivers or passengers, improve the comfort and efficiency of normal driving, and more importantly, provide adaptive optimal protection in combination with different driver styles and response characteristics when danger comes.

[0003] Driving style directly affects driving behavior and traffic safety. In traditional technology, driving style is determined mainly in two ways: one is based on the driver's self-report questionnaire scale, such as the driving behavior questionnaire and the driver attitude questionnaire; the other is to objectively analyze driving style through vehicle driving data.

[0004] However, both the subjective classification method of the questionnaire scale and the objective classification method based on the vehicle driving status focus on the driver's driving style in normal driving conditions, and do not take into account the variability of the driver's style in dangerous scenarios. The driver's driving style behavior may be significantly different between normal driving and dangerous scenarios, and traditional technologies fail to capture this difference. Therefore, the use of traditional technologies will affect the accuracy of predicting the driver's driving style in dangerous scenarios. Summary of the invention

[0005] Based on this, it is necessary to provide a method and device for predicting driving style in dangerous scenarios in response to the above technical problems, which can improve the accuracy of predicting the driver's driving style in dangerous scenarios.

[0006] In a first aspect, the present application provides a method for predicting driving style in dangerous scenarios, comprising:

[0007] Analyzing sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, the sample objective data including user response data and vehicle dynamics data;

[0008] By using a first driving style prediction model, predicting the sample subjective driving style of the user, the first principal component data group and the sample objective driving style, to obtain a predicted driving style of the user under an abnormal driving state;

[0009] A loss function is calculated based on the sample driving style and the predicted driving style, and a model optimization parameter is determined based on the loss function. The first driving style prediction model is updated by the model optimization parameter to obtain a target driving style prediction model, and the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

[0010] In one embodiment, the first principal component data group includes one or more first principal component data; the analysis of the sample objective data of the user in a normal driving state to obtain the first principal component data group and the sample objective driving style corresponding to the user includes:

[0011] Performing principal component analysis on the sample objective data by using a principal component analysis algorithm to obtain a first principal component data group;

[0012] Performing cluster analysis on the first principal component data group by using a clustering algorithm and a preset number of clusters to obtain a plurality of first cluster groups of the user and component values ​​of each first principal component data in each first cluster group;

[0013] Among the first cluster groups, the component values ​​corresponding to the first principal component data are compared to obtain a first comparison result; and the sample objective driving style corresponding to the user is determined according to the first comparison result.

[0014] In one embodiment, the method further comprises:

[0015] The sample subjective behavior characteristic data of the user is obtained, and the sample subjective behavior characteristic data is classified based on a preset classification rule to obtain the sample subjective driving style of the user.

[0016] In one embodiment, the predicting process of the sample subjective driving style of the user, the first principal component data set and the sample objective driving style by the first driving style prediction model to obtain the predicted driving style of the user in the abnormal driving state includes:

[0017] The sample subjective driving style of the user is encoded by using one-hot encoding to obtain a first input feature; the sample objective driving style is encoded by using the one-hot encoding to obtain a second input feature;

[0018] Performing nonlinear processing on the first input feature, the second input feature, and each principal component data in the first principal component data group based on a first activation function to obtain a nonlinear feature;

[0019] The nonlinear feature is probabilistically processed at the output layer based on the second activation function to obtain a probability distribution of the driving style under the abnormal driving state; and based on the probability distribution of the driving style under the abnormal driving state, the predicted driving style of the user under the abnormal driving state is determined.

[0020] In one embodiment, the method further comprises:

[0021] By using the principal component analysis algorithm, a principal component analysis is performed on the collision avoidance decision data of the user in the simulated abnormal driving state to obtain a second principal component data group, wherein the second principal component data group includes one or more second principal component data;

[0022] Performing cluster analysis on the second principal component data group by using the clustering algorithm and the preset number of clusters to obtain a plurality of second cluster groups of the user and component values ​​of each second principal component data in each second cluster group;

[0023] The component values ​​corresponding to the second principal component data are compared between the second cluster groups to obtain a second comparison result; and the sample driving style under the simulated abnormal driving state is determined based on the second comparison result.

[0024] In one embodiment, the method further comprises:

[0025] Acquiring the user's data to be predicted, wherein the data to be predicted includes objective data, objective driving style, and subjective driving style;

[0026] The target driving style prediction model is used to predict the objective data, the objective driving style and the subjective driving style to obtain the target driving style of the user under the abnormal driving state.

[0027] In a second aspect, the present application also provides a device for predicting driving style in dangerous scenarios, including:

[0028] An analysis module, configured to analyze sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, wherein the sample objective data includes user response data and vehicle dynamics data;

[0029] a prediction processing module, configured to perform prediction processing on the sample subjective driving style of the user, the first principal component data group and the sample objective driving style through a first driving style prediction model, so as to obtain a predicted driving style of the user under an abnormal driving state;

[0030] An updating module is used to calculate a loss function based on a sample driving style and the predicted driving style, and determine a model optimization parameter based on the loss function, and to update the first driving style prediction model by using the model optimization parameter to obtain a target driving style prediction model, wherein the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Analyzing sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, the sample objective data including user response data and vehicle dynamics data;

[0033] By using a first driving style prediction model, predicting the sample subjective driving style of the user, the first principal component data group and the sample objective driving style, to obtain a predicted driving style of the user under an abnormal driving state;

[0034] A loss function is calculated based on the sample driving style and the predicted driving style, and a model optimization parameter is determined based on the loss function. The first driving style prediction model is updated by the model optimization parameter to obtain a target driving style prediction model, and the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0036] Analyzing sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, the sample objective data including user response data and vehicle dynamics data;

[0037] By using a first driving style prediction model, predicting the sample subjective driving style of the user, the first principal component data group and the sample objective driving style, to obtain a predicted driving style of the user under an abnormal driving state;

[0038] A loss function is calculated based on the sample driving style and the predicted driving style, and a model optimization parameter is determined based on the loss function. The first driving style prediction model is updated by the model optimization parameter to obtain a target driving style prediction model, and the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0040] Analyzing sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, the sample objective data including user response data and vehicle dynamics data;

[0041] By using a first driving style prediction model, predicting the sample subjective driving style of the user, the first principal component data group and the sample objective driving style, to obtain a predicted driving style of the user under an abnormal driving state;

[0042] A loss function is calculated based on the sample driving style and the predicted driving style, and a model optimization parameter is determined based on the loss function. The first driving style prediction model is updated by the model optimization parameter to obtain a target driving style prediction model, and the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

[0043] The above-mentioned method and device for predicting driving style in dangerous scenarios predicts and processes the principal component data group of the user in normal driving state, the sample objective driving style corresponding to the user, and the sample subjective driving style of the user in the first driving style prediction model to obtain the predicted driving style of the user in abnormal driving state. The loss function is calculated by using the sample driving style and the predicted driving style, and the first driving style prediction model is updated based on the loss function to obtain the target driving style prediction model. The sample objective data, sample objective driving style and subjective driving style in normal driving state are used to predict the driving style of the user in abnormal driving state, which can connect the normal driving state with the potential abnormal driving state. And the driving style prediction model is updated based on the sample driving style and the predicted driving style, which can effectively and safely obtain the user's driving style, and the driving style model is trained and applied based on the acquired driving style, so as to improve the accuracy of the driver's driving style prediction in dangerous scenarios, thereby significantly improving the user's driving safety and comfort. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a flow chart of a method for predicting driving style in a dangerous scenario in one embodiment;

[0046] Figure 2 is a schematic diagram of the structure of a driving style prediction model in an embodiment;

[0047] Figure 3 is a structural block diagram of a device for predicting driving style in a dangerous scenario in one embodiment;

[0048] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] In an exemplary embodiment, Figure 1 As shown, a method for predicting driving style in dangerous scenarios is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0051] Step 101: Analyze the sample objective data of the user in a normal driving state to obtain a first principal component data group and the sample objective driving style corresponding to the user.

[0052] The user is a person driving a vehicle. The normal driving state may refer to a situation where there is no obvious or immediate threat of danger in the driving environment, and the driving conditions allow the user to drive smoothly according to traffic rules and personal driving habits. The normal driving state generally includes good weather conditions, smooth traffic flow, clear road signs and signals, etc. The sample objective data may include user response data and vehicle dynamics data. The user response data may include but is not limited to the user's physiological signals, such as: eye movement information such as gaze point and gaze time, brain area information such as EEG signals and cerebral blood oxygen signals, action information such as electromyographic signals, and electrocardiogram information, etc. The vehicle dynamics data includes but is not limited to vehicle dynamics data of lateral characterization, longitudinal characterization, and lateral and longitudinal joint characterization. For example, the vehicle dynamics data of lateral characterization includes but is not limited to the average value of the distance between the vehicle and the center line of the road, the standard deviation of the distance between the vehicle and the center line of the road, the standard deviation of the steering wheel angular velocity, the maximum lateral acceleration, and the standard deviation of the lateral acceleration; the vehicle dynamics data of longitudinal characterization includes but is not limited to the maximum longitudinal velocity, the maximum longitudinal velocity, the maximum longitudinal acceleration, and the standard deviation of the longitudinal acceleration; the vehicle dynamics data of the lateral and longitudinal joint characterization includes but is not limited to the average vehicle speed and the average value of the acceleration change rate. The first principal component data in the first subjective component data group all represent indicators that affect driving style in the sample objective data. Driving style represents the user's behavior pattern and driving habits during driving. For example, driving style can include reckless and careless driving style, anxious driving style, angry and hostile driving style, patient and careful driving style, etc. Driving style is not only affected by personal psychological and physiological factors, but also by environmental (traffic scene) factors, cultural background and driving experience. The sample objective driving style can reflect the user's behavior pattern and driving habits, and can be obtained based on the user's sample objective data, that is, it truly reflects the user's driving style under normal driving conditions.

[0053] Specifically, the terminal can collect the vehicle dynamics data and user response data of the user in the normal driving state in real time or within a specified time period. The multi-degree-of-freedom high-fidelity driving simulator can provide simulated scenes of normal driving state or other specified driving states, for example, other specified driving state scenes include abnormal driving states. A data acquisition system is set in the simulator, and the data acquisition system includes multiple sensors, which can collect vehicle dynamics data and user response data in the simulator. The simulator can set the time for each user to simulate each time. The user can simulate driving in the normal driving state in the simulator within the set simulation time each time. For example, the set simulation time is 30 minutes, and the user can simulate 30 minutes in the normal driving state each time. During the simulation of the normal driving state, the user only needs to abide by traffic rules, comply with his own driving style, and drive on the road indicated by the arrow. During the simulation of the normal driving state, the user can be familiar with the dynamic feedback of the driving simulator, and collect sample objective data in the normal driving scene, including vehicle dynamics data and user response data.

[0054] Specifically, the terminal may perform principal component analysis on the sample objective data of different users in a normal driving state to obtain a first principal component data group. The terminal may perform cluster analysis on the first principal component data group to obtain sample objective driving styles corresponding to different users.

[0055] Step 102: Predict the user's sample subjective driving style, the first principal component data set, and the sample objective driving style using the first driving style prediction model to obtain a predicted driving style of the user under an abnormal driving state.

[0056] Among them, the first driving style prediction model can be a driving style prediction model to be trained, which can be a neural network model. The neural network model can be replaced by a machine learning model such as a random forest, a decision tree, a K-nearest neighbor classification (kNN) model according to data characteristics and model effects, and is used to predict the predicted driving style in an abnormal driving state based on the subjective driving style and the objective driving style of the normal driving state. The sample subjective driving style can be the user's behavior pattern and driving habits determined based on subjective sample data, and the abnormal driving state can be a state of driving in a traffic scene where there is a traffic conflict source in the scene and it may evolve into a collision accident at any time. The sample subjective driving style can include four driving styles, for example: a reckless and careless driving style, an anxious driving style, an angry and hostile driving style, and a patient and careful driving style.

[0057] Specifically, the terminal can obtain the subjective driving styles corresponding to different users. The terminal establishes a mapping relationship between the sample subjective driving style, the sample objective driving style and the driving style in the abnormal driving state through the first driving style prediction model. The sample subjective driving style, the sample objective driving style and the first principal component data group are predicted and processed in the first driving style prediction model to obtain the predicted driving style of the user in the abnormal driving state.

[0058] Step 103: Calculate a loss function based on the sample driving style and the predicted driving style, determine a model optimization parameter based on the loss function, and update the first driving style prediction model using the model optimization parameter to obtain a target driving style prediction model.

[0059] The sample driving style is the driving style of the user when simulating an abnormal driving state. The target driving style prediction model is used to generate the predicted driving style of the user in the abnormal driving state.

[0060] Specifically, the terminal can use the cross entropy loss function to calculate the sample driving style and the predicted driving style to obtain the loss function of the current training. The loss function can be expressed as follows:

[0061]

[0062] Where L is the loss function; i is the i-th driving style; t i is the unique hot encoding of the driving style of the i-th sample; y i The probability value of the predicted driving style for the i-th category.

[0063] Specifically, the terminal may use optimizers and loss functions such as Stochastic Gradient Descent (SGD) and Adaptive Moment Estimation (Adam) to optimize parameters of the first driving style prediction model to obtain a target driving style model.

[0064] Specifically, during the model training process, the first driving style prediction model is repeatedly trained through the loss function to obtain a target driving style prediction model. The terminal determines whether the first driving style prediction model meets the preset training completion condition. If the preset training completion condition is not met, the first driving style prediction model is updated based on the loss function and the optimizer to obtain an updated first driving style prediction model; based on the updated first driving style prediction model, the step of analyzing the objective data of the user in a normal driving state is re-executed until the preset training completion condition is met to obtain the target driving style prediction model.

[0065] Specifically, the terminal can also train the first driving style prediction model according to the repeatedly collected objective driving style and subjective driving style of the same user. The terminal determines whether the first driving style prediction model meets the preset training conditions. For example, when the loss function is greater than the threshold set in the preset training conditions, it is determined that the first driving style prediction model does not meet the preset training completion conditions, and the first driving style prediction model is updated based on the loss function and the optimizer to obtain an updated first driving style prediction model. Based on the updated first driving style prediction model, the terminal re-analyzes the objective data of the same user in a normal driving state until the preset training completion conditions are met, and obtains the target driving style prediction model, thereby realizing continuous tracking of the same user, and constructing and verifying the first driving style prediction model according to the objective driving style and subjective driving style of the same user.

[0066] In the above-mentioned method for predicting driving style in dangerous scenarios, sample objective data, sample objective driving style and sample subjective driving style in normal driving state are used to predict the user's driving style in abnormal driving state, which can connect the normal driving state with the potential abnormal driving state. In addition, the driving style prediction model is updated based on the sample driving style and the predicted driving style, which can effectively and safely obtain the user's driving style. The driving style model is trained and applied based on the obtained driving style, which improves the accuracy of predicting the driver's driving style in dangerous scenarios, thereby significantly improving the user's driving safety and comfort.

[0067] In an exemplary embodiment, the sample objective data of the user in a normal driving state is analyzed to obtain a first principal component data group and a sample objective driving style corresponding to the user, including:

[0068] The principal component analysis algorithm is used to perform principal component analysis on the sample objective data to obtain a first principal component data group; the clustering algorithm and the preset number of clusters are used to perform cluster analysis on the first principal component data group to obtain multiple first cluster groups of the user, and the component values ​​of each first principal component data in each first cluster group; between each first cluster group, the component values ​​corresponding to each first principal component data are compared to obtain a first comparison result; based on the first comparison result, the sample objective driving style corresponding to the user is determined.

[0069] The first principal component data group includes one or more first principal component data. The clustering algorithm may be a K-means clustering algorithm (K-means clustering algorithm). The preset number of clusters is consistent with the number of classifications of the subjective driving style. The first comparison result may reflect the size arrangement result of the component values ​​corresponding to each first principal component data between each first cluster grouping.

[0070] Specifically, the terminal can collect sample objective data of the normal driving state of the user within a specified time in the simulator. The terminal performs principal component analysis on the sample objective data through a principal component analysis algorithm (PCA) to obtain one or more principal component data. Specifically, the terminal can use a sample set composed of the user's sample objective data as the input of the principal component analysis algorithm.

[0071] The expression of the sample set of sample objective data can be:

[0072]

[0073] Among them, X is the sample set, p is p items of sample objective data, n is n groups of sample objective data, x ij is the jth item of sample objective data in the i-th group of sample objective data.

[0074] The terminal will x ij Perform standardization processing; construct a covariance matrix based on the sample objective data after standardization processing; calculate the eigenvalue and the corresponding orthogonalized unit eigenvector based on the covariance matrix; the terminal calculates the contribution rate and cumulative contribution rate of the sample objective data according to the eigenvalue. When the cumulative contribution rate is greater than the preset value or the eigenvalue is greater than 1, the sample data is determined as the first principal component data, and the principal component data with a cumulative contribution rate greater than the preset value or an eigenvalue greater than 1 is determined as the first principal component data group.

[0075] Specifically, the terminal uses the K-means algorithm to perform cluster analysis on the first principal component data group, and divides the driving style into preset cluster data for labeling, thereby obtaining multiple first cluster groups of the user, and the component values ​​of each first principal component data in each first cluster group. The terminal compares the magnitude of the component values ​​between each first cluster group, sorts the magnitude of the component values, and obtains a first comparison result. The terminal can determine the sample objective driving style corresponding to the user based on the first comparison result, and for example, identify the cluster group with a higher component value as the first type of driving style, etc. The specific method of determining the sample objective driving style corresponding to the user can be determined according to the specific situation.

[0076] In one example, this embodiment uses a driving simulator and a highly reproducible simulation environment to simulate driving in a normal driving state while ensuring the safety of the subject, and can collect vehicle dynamics data and user response data of the user in a normal driving state; and achieve accurate tracking and efficient information collection of the same user. In addition, the principal component analysis algorithm and the clustering algorithm are used to determine the user's objective driving style, thereby improving the accuracy of determining the user's objective driving style.

[0077] In an exemplary embodiment, the method for predicting driving style in a dangerous scenario further includes:

[0078] The user's sample subjective behavior characteristic data is obtained, and the sample subjective behavior characteristic data is classified based on a preset classification rule to obtain the user's sample subjective driving style.

[0079] Specifically, sample subjective behavior characteristic data can be collected through the Driver Behavior Questionnaire (DBQ) and the Driver Decision Making Questionnaire (DDMQ). The DBQ and DDMQ scales evaluate the driver's behavioral responses and decision-making methods in specific scenarios through multi-dimensional questions. The questionnaire can include multiple questions, each of which can reflect the factors that affect the user's driving style. Each factor represents a more specific description of behavioral characteristics. Drivers can be classified into different driving styles based on the scores of different factors. The terminal can determine the user's sample subjective driving style based on the score of each question in the questionnaire filled out by the user.

[0080] For example, the user fills in a multidimensional driving style scale before the experiment, as shown in Table 1: The multidimensional driving style scale contains 44 items, which evaluate four driving styles: reckless and careless driving style, anxious driving style, angry and hostile driving style, and patient and careful driving style. The user is asked to read each question and rate it according to the degree of fit with his feelings, thoughts and behaviors when driving. The rating adopts a 6-point scale ranging from "completely inconsistent (0)" to "very consistent (5)". The 44 questions are classified into 8 factors, each of which represents a more specific description of behavioral characteristics. Users can be classified into different driving styles according to the scores of different factors. If a user scores high on the two factors of risky driving and high-speed driving, it can be inferred that the user may tend to be reckless and careless driving. It should be understood that the above examples are only for illustration and cannot constitute specific limitations. The subjective driving style can be classified according to specific application scenarios and different driving style scales can be designed according to actual scenarios. No specific limitations are made here.

[0081] Table 1

[0082]

[0083] In one example, the user's subjective behavior characteristic data is obtained by using a questionnaire to obtain the user's subjective driving style, which can more accurately predict the user's driving style in abnormal driving conditions.

[0084] In an exemplary embodiment, the user's sample subjective driving style, the first principal component data set, and the sample objective driving style are predicted by the first driving style prediction model to obtain the predicted driving style of the user in an abnormal driving state, including:

[0085] The user's sample subjective driving style is encoded using one-hot encoding to obtain a first input feature; the sample objective driving style is encoded using one-hot encoding to obtain a second input feature; the first input feature, the second input feature and each principal component data in the first principal component data group are nonlinearly processed based on a first activation function to obtain a nonlinear feature; the nonlinear feature is probabilistically processed based on a second activation function to obtain a probability distribution of the driving style under an abnormal driving state; and based on the probability distribution of the driving style under an abnormal driving state, the predicted driving style of the user under an abnormal driving state is determined.

[0086] The first driving style prediction model may include an input layer, one or more hidden layers, and an output layer, and each hidden layer may include any number of neurons. The first input feature may include multiple input features, and the number of the first input features is related to the number of classifications of the subjective driving style. The second input feature may include multiple input features, and the number of the second input features is related to the number of classifications of the objective driving style, and the number of classifications of the subjective driving style is consistent with the number of classifications of the objective driving style. The first activation function may be a rectified linear unit (Rectified Linear Unit, ReLU) or a hyperbolic tangent (tanh) activation function. The second activation function may be a normalized exponential (softmax) activation function.

[0087] Specifically, Figure 2 As shown, Figure 2 is a structural diagram of a driving style prediction model in an embodiment. The driving style prediction model includes an input layer, a first hidden layer, a second hidden layer, and an output layer. In the input layer, one-hot encoding is used to convert the user's sample subjective driving style into a first input feature; one-hot encoding is used to convert the user's sample objective driving style into a first input feature. The input layer inputs the first input feature, the second input feature, and the feature of the first principal component data into each neuron in the first hidden layer, and uses the first activation function in each neuron to perform nonlinear processing on the first input feature, the second input feature, and the feature of the first principal component data to obtain a first nonlinear feature. The first nonlinear feature is sent to each neuron in the second hidden layer, and the first activation function is used in each neuron in the second hidden layer to perform nonlinear processing on the first nonlinear feature to obtain a nonlinear feature. The expression of the first activation function can be:

[0088]

[0089] Among them, h is the output value of a layer in the hidden layer; W (h) is the weight matrix of the hidden layer; b (h) is the bias vector of the hidden layer; x is the input vector, which is the feature vector from the previous layer of the network or the original input data; f is the activation function.

[0090] Each neuron in the second hidden layer sends the nonlinear feature to the output layer. The output layer includes 4 output neurons, each of which represents the type of driving style under an abnormal driving state. The terminal uses the second activation function to process the nonlinear feature and obtain the probability distribution of the driving style under abnormal driving conditions. The expression of the second activation function can be:

[0091]

[0092] Among them, y i The probability that the model predicts that the input belongs to the i-th category, z i is the output value of the i-th neuron in the output layer of the model, z j is the output value of the jth neuron in the output layer of the model, For all output neurons The sum of .

[0093] The terminal may obtain the driving style corresponding to the maximum probability value according to the probability distribution of the driving style in the abnormal driving state. For example, the terminal may sort the probability values ​​of the probability distribution, obtain the driving style corresponding to the maximum probability value, and use the driving style as the driving style in the abnormal driving state.

[0094] In one example, this embodiment uses subjective driving style, objective driving style, and principal component data of normal driving data as input to construct a driving style prediction model to predict the predicted driving style under abnormal conditions. It can effectively describe and infer the driver's style in dangerous scenarios, and provides new solutions and ideas for the study of users' driving style and behavioral characteristics under abnormal driving conditions.

[0095] In an exemplary embodiment, the method for predicting driving style in a dangerous scenario further includes:

[0096] By means of a principal component analysis algorithm, principal component analysis is performed on the collision avoidance decision data of the user in a simulated abnormal driving state to obtain a second principal component data group; by means of a clustering algorithm and a preset number of clusters, a cluster analysis is performed on the second principal component data group to obtain a plurality of second cluster groups of the user, and component values ​​of each second principal component data in each second cluster group; between each second cluster group, component values ​​corresponding to each second principal component data are compared to obtain a second comparison result; and based on the second comparison result, a sample driving style in the simulated abnormal driving state is determined.

[0097] Among them, the collision avoidance decision data can reflect the user's emergency decision-making process and response ability under abnormal driving conditions, including perception reaction time (the time from the beginning of danger to the driver's response), accelerator release time, braking start time, maximum braking force time, steering start time, left turn response history (steering wheel angle, right turn response history (steering wheel angle), braking force history, collision avoidance behavior posture and other data. The second principal component data group includes one or more second principal component data.

[0098] Specifically, the terminal can collect the user's collision avoidance decision data in abnormal driving conditions in real time or within a specified time period. A data acquisition system is set in the simulator, and the data acquisition system includes multiple sensors, which can collect collision avoidance decision data, etc. The simulator can set the time for each user to simulate each time. The user can simulate driving in abnormal driving conditions in the simulator within the set simulation time each time. For example, the set simulation time is 60 minutes, and the user can simulate 60 minutes in abnormal driving conditions each time. The user needs to drive the vehicle normally in an abnormal driving state, and face sudden abnormal conditions. It is necessary to make collision avoidance decisions and vehicle control to avoid collisions or adjust the collision angle. During the simulation process of abnormal driving conditions, users can become familiar with the dynamic feedback of the driving simulator and collect collision avoidance decision data in abnormal driving scenarios.

[0099] Specifically, the terminal performs principal component analysis on the collision avoidance decision data through a principal component analysis (PCA) algorithm to obtain one or more principal component data. Specifically, the terminal can use a sample set composed of the user's collision avoidance decision data as an input to the principal component analysis algorithm.

[0100] The terminal performs standardization processing on the collision avoidance decision data; constructs a covariance matrix based on the standardized collision avoidance decision data; calculates eigenvalues ​​and corresponding orthogonalized unit eigenvectors based on the covariance matrix; and calculates the contribution rate and cumulative contribution rate of the collision avoidance decision data based on the eigenvalues. When the cumulative contribution rate is greater than a preset value or the eigenvalue is greater than 1, the sample data is determined as the second principal component data, and the principal component data with a cumulative contribution rate greater than the preset value or an eigenvalue greater than 1 is determined as the second principal component data group.

[0101] Specifically, the terminal uses the K-means algorithm to perform cluster analysis on the second principal component data group, and divides the driving style into preset cluster data for labeling, thereby obtaining multiple second cluster groups of the user, and the component values ​​of each second principal component data in each second cluster group. The terminal compares the magnitude of the component values ​​between each second cluster group, sorts the magnitude of the component values, and obtains a second comparison result. The terminal can determine the sample driving style corresponding to the user based on the second comparison result, and for example, identify the cluster group with a higher component value as the first type of driving style, etc. The specific method of determining the sample driving style corresponding to the user can be determined according to the specific situation.

[0102] In an exemplary embodiment, the method for predicting driving style in a dangerous scenario further includes:

[0103] Obtain the user's data to be predicted; use the target driving style prediction model to predict the objective data, the objective driving style and the subjective driving style to obtain the user's target driving style under abnormal driving conditions.

[0104] The data to be predicted include objective data, objective driving style and subjective driving style. The objective data may be data collected by a data collection system in a real vehicle during actual driving of the user.

[0105] Specifically, the terminal can collect objective data from sensors of a data collection system of a vehicle of a user in actual driving state in real time or in a specified time period. The terminal performs principal component analysis on the collected objective data to obtain a principal component data group, and performs cluster analysis on the principal component data group to obtain an objective driving style. The terminal obtains the user's subjective driving style. The terminal uses a target driving style prediction model to predict the principal component data group, the objective driving style, and the subjective driving style to obtain the user's target driving style in abnormal driving state.

[0106] In one embodiment, subjective data collected by the Multidimensional Driver Style Inventory (MDSI) and the Driving Behavior Questionnaire (DBQ) are combined with objective data collected under normal driving conditions to comprehensively infer driving style in dangerous traffic scenarios. The target driving style prediction model can use easily accessible normal state data to more accurately describe the driver's behavioral characteristics when facing sudden dangers, providing support for personalized safety systems.

[0107] In addition, this embodiment considers the model verification and optimization of real vehicle applications, and uses the driver questionnaire scale, normal driving data based on the driving simulator, and dangerous interaction data to establish an inference model of the driver's style in dangerous traffic scenarios, and verifies the effectiveness of the model. Considering that it is difficult to obtain a large amount of dangerous interaction data of users in real vehicle applications, but a large amount of normal driving data can be obtained, the design of the model considers the migration strategy and reliability from the simulation environment to the real vehicle application, which ensures the feasibility and safety in actual road tests, thereby improving road traffic safety.

[0108] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0109] Based on the same inventive concept, the embodiment of the present application also provides a device for predicting driving style in dangerous scenarios for implementing the above-mentioned method for predicting driving style in dangerous scenarios. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations of one or more embodiments of the device for predicting driving style in dangerous scenarios provided below can refer to the limitations of the method for predicting driving style in dangerous scenarios above, and will not be repeated here.

[0110] In an exemplary embodiment, Figure 3 As shown, a schematic diagram of the structure of a device for predicting driving style in a dangerous scene is provided. The device 30 for predicting driving style in a dangerous scene includes: an analysis module 31, a prediction processing module 32 and an update module 33, wherein:

[0111] An analysis module 31 is used to analyze the sample objective data of the user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, wherein the sample objective data includes user response data and vehicle dynamics data;

[0112] A prediction processing module 32, configured to perform prediction processing on the user's sample subjective driving style, the first principal component data group and the sample objective driving style through a first driving style prediction model, to obtain a predicted driving style of the user under an abnormal driving state;

[0113] The updating module 33 is used to calculate the loss function based on the sample driving style and the predicted driving style, and determine the model optimization parameters based on the loss function, and update the first driving style prediction model through the model optimization parameters to obtain the target driving style prediction model, which is used to generate the predicted driving style of the user under abnormal driving conditions.

[0114] In one example, the first principal component data group includes one or more first principal component data; the analysis module 31 is used to perform principal component analysis on the sample objective data through a principal component analysis algorithm to obtain the first principal component data group;

[0115] Performing cluster analysis on the first principal component data group by using a clustering algorithm and a preset number of clusters to obtain a plurality of first cluster groups of the user and component values ​​of each first principal component data in each first cluster group;

[0116] Among the first cluster groups, the component values ​​corresponding to the first principal component data are compared to obtain a first comparison result; and the sample objective driving style corresponding to the user is determined according to the first comparison result.

[0117] In one example, the analysis module 31 is further used to obtain sample subjective behavior feature data of the user, and classify the sample subjective behavior feature data based on preset classification rules to obtain the sample subjective driving style of the user.

[0118] In one example, the prediction processing module 32 is used to encode the sample subjective driving style of the user using one-hot encoding to obtain a first input feature; and encode the sample objective driving style using one-hot encoding to obtain a second input feature;

[0119] Based on the first activation function, nonlinear processing is performed on the first input feature, the second input feature, and each principal component data in the first principal component data group to obtain a nonlinear feature;

[0120] Based on the second activation function, the nonlinear features are probabilistically processed to obtain the probability distribution of the driving style under the abnormal driving state; and based on the probability distribution of the driving style under the abnormal driving state, the predicted driving style of the user under the abnormal driving state is determined.

[0121] In one example, the prediction processing module 32 is further used to perform principal component analysis on the collision avoidance decision data of the user in the simulated abnormal driving state by a principal component analysis algorithm to obtain a second principal component data group, wherein the second principal component data group includes one or more second principal component data;

[0122] Performing cluster analysis on the second principal component data group by using a clustering algorithm and a preset number of clusters to obtain a plurality of second cluster groups of the user and component values ​​of each second principal component data in each second cluster group;

[0123] The component values ​​corresponding to the second principal component data are compared between the second cluster groups to obtain a second comparison result; and the sample driving style under the simulated abnormal driving state is determined based on the second comparison result.

[0124] In one example, the updating module 33 is further used to obtain the user's data to be predicted, the data to be predicted includes objective data, objective driving style and subjective driving style;

[0125] The target driving style prediction model is used to predict the objective data, objective driving style and subjective driving style to obtain the target driving style of the user under abnormal driving conditions.

[0126] Each module in the above-mentioned device for predicting driving style in dangerous scenarios can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0127] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store sample subjective driving styles, a first principal component data group and sample objective driving styles. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for predicting a driving style in a dangerous scenario is implemented.

[0128] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0130] In one embodiment, 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 in the above-mentioned method embodiments are implemented.

[0131] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0134] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for predicting driving style in dangerous scenarios, characterized in that: The method comprises: Analyzing sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, the sample objective data including user response data and vehicle dynamics data; By using a first driving style prediction model, predicting the sample subjective driving style of the user, the first principal component data group and the sample objective driving style, to obtain a predicted driving style of the user under an abnormal driving state; A loss function is calculated based on the sample driving style and the predicted driving style, and a model optimization parameter is determined based on the loss function. The first driving style prediction model is updated by the model optimization parameter to obtain a target driving style prediction model, and the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

2. The method according to claim 1, characterized in that The first principal component data group includes one or more first principal component data; the analysis of the sample objective data of the user in the normal driving state to obtain the first principal component data group and the sample objective driving style corresponding to the user includes: Performing principal component analysis on the sample objective data by using a principal component analysis algorithm to obtain a first principal component data group; Performing cluster analysis on the first principal component data group by using a clustering algorithm and a preset number of clusters to obtain a plurality of first cluster groups of the user and component values ​​of each first principal component data in each first cluster group; Among the first cluster groups, the component values ​​corresponding to the first principal component data are compared to obtain a first comparison result; and the sample objective driving style corresponding to the user is determined according to the first comparison result.

3. The method according to claim 1, characterized in that: The method further comprises: The sample subjective behavior characteristic data of the user is obtained, and the sample subjective behavior characteristic data is classified based on a preset classification rule to obtain the sample subjective driving style of the user.

4. The method according to claim 1, characterized in that: The method of predicting the sample subjective driving style of the user, the first principal component data set and the sample objective driving style by using the first driving style prediction model to obtain the predicted driving style of the user under the abnormal driving state includes: The sample subjective driving style of the user is encoded by using one-hot encoding to obtain a first input feature; the sample objective driving style is encoded by using the one-hot encoding to obtain a second input feature; Performing nonlinear processing on the first input feature, the second input feature, and each principal component data in the first principal component data group based on a first activation function to obtain a nonlinear feature; The nonlinear feature is probabilistically processed based on a second activation function to obtain a probability distribution of the driving style under the abnormal driving state; and based on the probability distribution of the driving style under the abnormal driving state, the predicted driving style of the user under the abnormal driving state is determined.

5. The method according to claim 2, characterized in that: The method further comprises: By using the principal component analysis algorithm, a principal component analysis is performed on the collision avoidance decision data of the user in the simulated abnormal driving state to obtain a second principal component data group, wherein the second principal component data group includes one or more second principal component data; Performing cluster analysis on the second principal component data group by using the clustering algorithm and the preset number of clusters to obtain a plurality of second cluster groups of the user and component values ​​of each second principal component data in each second cluster group; The component values ​​corresponding to the second principal component data are compared between the second cluster groups to obtain a second comparison result; and the sample driving style under the simulated abnormal driving state is determined based on the second comparison result.

6. The method according to claim 1, characterized in that The method further comprises: Acquiring the user's data to be predicted, wherein the data to be predicted includes objective data, objective driving style, and subjective driving style; The target driving style prediction model is used to predict the objective data, the objective driving style and the subjective driving style to obtain the target driving style of the user under the abnormal driving state.

7. A device for predicting driving style in dangerous scenarios, characterized in that: The device comprises: An analysis module, configured to analyze sample objective data of a user in a normal driving state to obtain a first principal component data group and a sample objective driving style corresponding to the user, wherein the sample objective data includes user response data and vehicle dynamics data; a prediction processing module, configured to perform prediction processing on the sample subjective driving style of the user, the first principal component data group and the sample objective driving style through a first driving style prediction model, so as to obtain a predicted driving style of the user under an abnormal driving state; An updating module is used to calculate a loss function based on a sample driving style and the predicted driving style, and determine a model optimization parameter based on the loss function, and to update the first driving style prediction model by using the model optimization parameter to obtain a target driving style prediction model, wherein the target driving style prediction model is used to generate a predicted driving style of a user under an abnormal driving state.

8. The device according to claim 7, characterized in that The analysis module is further used to perform principal component analysis on the sample objective data by using a principal component analysis algorithm to obtain a first principal component data group; Performing cluster analysis on the first principal component data group by using a clustering algorithm and a preset number of clusters to obtain a plurality of first cluster groups of the user and component values ​​of each first principal component data in each first cluster group; Among the first cluster groups, the component values ​​corresponding to the first principal component data are compared to obtain a first comparison result; According to the first comparison result, a sample objective driving style corresponding to the user is determined.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Driving style classification method and device, computer equipment and storage medium thereof

    CN117076989A

  • Driving style analysis method and device and vehicle

    CN117985026A

  • Experience mode-based control of a system

    CN118323148A

  • Driving style recognition method and device, computer equipment and storage medium

    CN118439034A

  • Mode of experience-based control of a system

    US20240239349A1

Cited By

  • Driving style identification method and system based on entropy weight method

    CN120688736A