Vehicle control method and system based on driver's driving pressure feedback
By integrating the analysis of the driver's personal information, vehicle and weather data, and combining the XGBoost model and Q-value function, the vehicle actions are dynamically adjusted, solving the driving stress problem that cannot be personalized identification and intervention in the existing technology, and realizing the control of driving. Precise human management and stress relief improve driving safety.
Patent Information
- Application Number
- CN202410735607.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-07
AI Technical Summary
The existing technology fails to fully consider the individual differences of drivers in driving stress identification and intervention adjustment. As a result, the recognition model cannot accurately capture the changes in each driver's stress level, and the unified feedback method cannot meet the individual needs of different drivers. , the pressure identification results are inaccurate in complex environments.
By collecting driver personal information, vehicle data and weather data, using data preprocessing and feature extraction, combined with XGBoost model and Q-value function, dynamically adjust vehicle actions to personalized intervention in driving stress, and provide a variety of intervention strategies such as visual and voice , tactile reminders, etc., and adjust intervention strategies based on the driver’s historical data and the current environment.
It achieves personalized detection and precise management of driver's driving stress, improves the accuracy and interpretation ability of stress identification, provides personalized driving stress relief strategies, helps drivers better adapt to driving tasks and environments, and reduces driving stress. process pressure, improving driving safety.
Smart Images

Figure CN118323165B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of road vehicle control, and in particular, relates to a vehicle control method and system based on driver's driving pressure feedback. Background Art
[0002] Driving stress is an adaptive response made when an individual feels that the demands of work are greater than the internal and external resources that need to be processed. It is caused by the interaction between the individual and the work environment, which can cause changes in the individual's physiology, psychology, behavior, etc. Driving environment factors such as traffic congestion and road complexity are important reasons for inducing or aggravating driving stress. Non-professional drivers are easily affected by the external environment of the vehicle, and professional drivers are prone to increased driving stress due to long work tasks, many driving tasks, and high mental concentration. High-intensity driving stress has an adverse effect on the driver's emotions, decision-making, and behavior, which may lead to traffic accidents and have long-term effects on the driver's health. Therefore, the driver's stress problem has naturally become a hot topic of concern to all sectors of society.
[0003] For monitoring driving stress, existing research collects data through invasive sensor devices, which is not only expensive and interferes with driving, but also difficult to meet the needs of real-time monitoring. Chinese patent CN 112168190A (application number 202011145540.0) discloses a "real-time monitoring system and method for driving stress", which uses machine learning to train driving behavior data and facial expression data obtained under stressful driving tasks and non-stressful driving tasks, and uses the trained machine learning model to monitor the client's driving behavior in real time. Patent CN 114780806 A (application number 202210365098.5) discloses "a system and method for reducing sudden driving stress surge events", which determines whether the driver is in a state of sudden driving stress through physiological data, and generates feedback information for the driver from driver operation information, vehicle traffic environment information, vehicle motion information, etc.
[0004] Current research has some limitations in driving stress identification and intervention regulation, mainly reflected in the failure to fully consider the differences between individual drivers. First, in terms of stress identification, existing research is often based on data analysis of the entire group, ignoring the differences in sensitivity and emphasis on specific features among different drivers. This results in the inability of the identification model to truly adapt to the personalized needs of different drivers and to accurately capture the changes in stress levels of each driver. Secondly, in terms of intervention and regulation, existing research often adopts the same feedback method or regulation strategy, and cannot provide customized feedback based on the personalized characteristics and preferences of the driver. This unified feedback regulation mode cannot meet the personalized needs of different drivers for feedback methods, and cannot effectively help drivers manage and regulate their own stress status. In addition, in the current stress level identification research, the impact of the surrounding road environment and weather environment on the driver's stress is rarely considered, resulting in inaccurate stress identification results in complex situations. Therefore, it is necessary to provide a vehicle control method and system based on driver driving stress feedback, which controls the vehicle action by real-time grasping the driver's driving stress situation, ensures driving safety, and provides accurate and effective driving stress management services for the driver. Summary of the invention
[0005] In view of the above-mentioned technical problems and defects, the purpose of the present invention is to provide a vehicle control method based on driver driving stress feedback, which can realize personalized detection of driving stress, and provide corresponding vehicle control strategies according to the stress management needs of different drivers and the driving environment in which they are located, and dynamically and personalized adjust the driving pressure to help the driver better adapt to the current driving task and environment, thereby reducing the stress that may be generated during driving, and avoiding the impact of high-intensity driving stress on the driver's emotions, decision-making, etc., which may lead to adverse events such as traffic accidents and personal injuries.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] A vehicle control method based on driver's driving pressure feedback comprises the following steps:
[0008] Step 1: Data Collection
[0009] Collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W; wherein the driver personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI; the weather data W includes temperature T, humidity H, precipitation P and visibility Vi;
[0010] Step 2: Data Preprocessing
[0011] Step 2.1. Standardize and normalize the collected raw data;
[0012] Step 2.2. Convert the categorical data in the driver's personal information I into integer coding form, take the actual values of age and driving experience, and construct the personal information feature matrix ;
[0013] Step 2.3. For the data collected in real time, record the timestamp t of data collection to ensure the accuracy and consistency of the timestamp. Align the data collected from different data sources according to the pre-defined time interval Δt, divide the data according to the time interval, extract the eigenvalues within the time window length Δt, and construct the vehicle feature matrix , road feature matrix and weather characteristics matrix ;
[0014] Wherein, v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front of, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle in the specified range and the current vehicle, RC is the road condition index, and DP is the dew point temperature;
[0015] Step 2.4. Extract the features of the spatiotemporal correlation model from the weather data to obtain the spatiotemporal correlation feature matrix ;
[0016] Step 2.4.1. Establish the internal relationship network between the features in the weather feature matrix, so that RC is associated with T and P, Vi and DP are associated with T and H, Vi is associated with DP, and T is associated with H and P;
[0017] Step 2.4.2. The feature representation of each node i in the internal relationship network is , using an enhanced attention mechanism to calculate the updated representation vector of node i , the updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix ;
[0018] The attention weight between node i and its neighbor node j is , The calculation formula is as follows:
[0019] ;
[0020] ;
[0021] Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the feature representation of neighbor node j, represents the transpose symbol, represents the set of neighbor nodes of node i, is the activation function;
[0022] Step 3: Feature Fusion
[0023] The personal information feature matrix, vehicle feature matrix, road feature matrix and flattened spatiotemporal correlation feature matrix The fusion is performed by weighted summation to obtain the fused feature matrix ; When fusion of features, different weight matrices are selected according to different types of drivers;
[0024] Step S4: Driving stress level identification
[0025] The fused feature matrix Input to the XGBoost stress recognition model, and the model will output the predicted driving stress level;
[0026] Step S5: controlling the vehicle action according to the pressure level recognition result and the historical intervention effect;
[0027] Step S5.1. Establish a Q-value function to estimate the long-term reward of each action under medium and high pressure conditions. The Q-value function is expressed as , represents the long-term reward value of taking action a in state s;
[0028] Step S5.2. Initialize Q-table, the dimension of Q-table is the number of states × the number of actions;
[0029] Step S5.3. When the driver is in the medium pressure state for more than the set time threshold or the driving pressure is in the high pressure state, select a driver from the Q-table according to the current state s. the largest action 𝑎;
[0030] Step S5.4. According to the selected action, control the vehicle to execute the corresponding intervention strategy;
[0031] Step S5.5. Calculate the instant reward r according to the time t required for the driver's stress level to decrease. The calculation formula of the instant reward r is:
[0032] ;
[0033] Step S5.6. Update the Q-table based on the observed instant reward , updated The calculation formula is as follows:
[0034] ;
[0035] in, is the learning rate, usually 0.1, and r is the observed immediate reward;
[0036] Step S5.7. When the driver enters the high pressure state or the medium pressure state again for more than the set time threshold, the updated Q-table is used to select an action and steps S5.3 to S5.6 are repeated.
[0037] As a preferred embodiment of the present invention, the range of the number of vehicles m in step S2.3 is limited to 100m in front of the current vehicle, 80m behind, and 20m on both sides. The calculation formula of the road condition index RC and the dew point temperature DP is:
[0038] ;
[0039] .
[0040] As a preferred embodiment of the present invention, the feature matrix after fusion in step 3 The calculation formula is:
[0041] ;
[0042] ;
[0043] in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ; Weight matrix for safe and stable driving behavior group =[0.25,0.3,0.3,0.15]; weight matrix for the aggressive driving behavior group =[0.2,0.25,0.35,0.2]; weight matrix for the non-centralized driving behavior group =[0.2,0.2,0.35,0.25].
[0044] As a preferred embodiment of the present invention, the XGBoost pressure recognition model in step 4 is obtained by training the XGBoost model using the driver's historical driving data, and the specific training method is:
[0045] (1) 80% of the historical driving data is used as the training set and 20% as the validation set. The stress level of the training data is determined based on the driver's physiological state data;
[0046] (2) Use the training set data to train the XGBoost model. After each round of training, use the loss value L as feedback to monitor the performance of the model on the validation set.
[0047] ;
[0048] Where N represents the total number of samples in the training set, C is the total number of categories, C=3, It is a sample i The true label is in the category c The indication is 0 or 1. i The true label belongs to c category is 1, otherwise it is 0. is the model prediction sample i Belongs to category c The probability of is the sample weight;
[0049] (3) If the model performance does not improve after evaluation, or if there is oscillation during the training process, reduce the learning rate; if the model performance is steadily improving, increase the learning rate. The learning rate is adjusted according to the following formula:
[0050] Learning rate decrease: ;
[0051] in, is the current learning rate; is the attenuation factor, take 0.9, is a pre-set criterion or limit, using the moving average of the model's loss on the validation set as the threshold;
[0052] Learning rate increase: ;
[0053] in, is the growth factor, take 1.1;
[0054] (4) Continue training according to the learning rate adjusted in step (3), repeat steps (2) and (3), and obtain the XGBoost stress recognition model after multiple rounds of training.
[0055] As a preferred embodiment of the present invention, the vehicle action in step 5 includes visual reminder, voice reminder, tactile reminder, taste reminder, window control, temperature reminder, automatic speed adjustment, increase of following distance, and road trajectory control, and each action corresponds to a specific intervention strategy; wherein, the intervention strategy corresponding to the visual reminder is to control the LED light or indicator light on the vehicle display screen or the vehicle dashboard to turn on; the intervention strategy corresponding to the voice reminder is to make a voice reminder through the vehicle voice system; the intervention strategy corresponding to the tactile reminder is to remind the driver by controlling the vibration device under the seat; the intervention strategy corresponding to the taste reminder is to release a refreshing fragrance through the spray system in the car; the intervention strategy corresponding to the window control is to control the window switch, open the window, and increase the air circulation inside and outside the car; the intervention strategy corresponding to the temperature reminder is to increase the temperature of the seat by adjusting the seat heating device; the intervention strategy corresponding to the automatic speed adjustment is to adjust the setting of the driving assistance system so that the vehicle automatically increases the distance from the vehicle in front; the intervention strategy corresponding to the increase of the following distance is to adjust the speed setting of the cruise control system so that the vehicle automatically adjusts the speed to adapt to the current road and traffic conditions; the intervention strategy corresponding to the road trajectory control is to adjust the steering system of the vehicle so that the vehicle automatically changes the driving trajectory to avoid crowded or dangerous sections.
[0056] The present invention also provides a vehicle control system based on driver's driving pressure feedback, including a data acquisition module, a data processing module, a personal information construction module, a feature extraction module, a time-space association module, a data fusion module, a pressure identification module, and a vehicle intervention module;
[0057] The data acquisition module is used to collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W; wherein the driver personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI;
[0058] The data processing module is used to standardize and normalize the collected raw data;
[0059] The personal information building module is used to build a personal information feature matrix based on the driver's personal information ;
[0060] The feature extraction module is used to align the data collected from different data sources, divide the data according to time intervals, extract the eigenvalues within the time window length Δt, and construct a vehicle feature matrix. , road feature matrix and weather characteristics matrix ; Where v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front of, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle in the specified range and the current vehicle, T is the temperature, H is the humidity, P is the precipitation, Vi is the visibility, RC is the road condition index, and DP is the dew point temperature;
[0061] The spatiotemporal association module uses an enhanced attention mechanism to calculate the updated representation vector of node i in the intrinsic relationship network between features in the established weather feature matrix , the attention weight between node i and its neighbor node j is , The calculation formula is as follows:
[0062] ;
[0063] Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the feature representation of neighbor node j, represents the transpose symbol;
[0064] Updated representation vector of node i The calculation formula is as follows:
[0065] ;
[0066] in, represents the set of neighbor nodes of node i, is the activation function;
[0067] The updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix ;
[0068] The data fusion module is used to transform the flattened spatiotemporal correlation feature matrix , the personal information feature matrix, vehicle feature matrix and road feature matrix are fused by weighted summation to obtain the fused feature matrix. The specific calculation formula is as follows:
[0069] ;
[0070] ;
[0071] in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ;
[0072] The pressure identification module is used to perform pressure identification according to the fused feature matrix and output a predicted driving pressure level;
[0073] The vehicle intervention module is used to control the vehicle action according to the stress level identification result and the historical intervention effect, and includes a Q-value module, an immediate reward calculation module, an update module, and an intervention module; wherein the Q-value module is used to estimate the long-term reward of each action taken under medium and high pressure states, and the dimension of the Q-table in the Q-value module is the number of states × the number of actions, and the long-term reward value of taking action a under state s is stored internally;
[0074] The instant reward calculation module is used to calculate the instant reward according to the time t required for the driver's stress level to decrease;
[0075] The update module is used to update the long-term reward value of taking action a in state s in the Q-table according to the immediate reward. The calculation formula is as follows:
[0076] ;
[0077] in, is the learning rate, usually 0.1, and r is the observed immediate reward;
[0078] The intervention module is used to select actions according to the updated Q-table and control the vehicle to execute the corresponding intervention strategy.
[0079] The present invention also provides an electronic device, comprising: one or more processors and a memory; wherein the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned vehicle control method based on driver's driving pressure feedback.
[0080] The present invention also provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the vehicle control method based on the driver's driving pressure feedback described above is implemented.
[0081] Advantages and beneficial effects of the present invention:
[0082] (1) The method provided by the present invention not only considers the personalized needs of driving stress identification and intervention regulation, but also integrates multi-source data and comprehensively considers the impact of the surrounding road environment and weather environment on the driver's stress as well as the driver's personal characteristics. This method can not only accurately predict the driver's driving stress under complex phenomena, but also improve the accuracy and interpretation ability of the model for the driver's stress level through more comprehensive time information and context environment, and comprehensively improve the accuracy of the driver's driving stress detection, so as to provide drivers with more accurate and effective driving stress management services.
[0083] (2) The present invention comprehensively monitors and analyzes information such as pedestrians, vehicles, and roads that drivers face during driving, incorporates weather data into the stress identification model, and uses these indicators in combination to provide multi-dimensional identification of driving stress, thereby better helping the model understand the driver's stress level and coping ability in different situations.
[0084] (3) When fusing features, the present invention pays more attention to the differences between individual drivers. Drivers are divided into different groups according to their historical driving data, and different weight matrices are used to fuse the features, so that the model can accurately understand the differences between different drivers in their sensitivity and emphasis on specific features.
[0085] (4) The method provided by the present invention can identify the stress level faced by each driver during driving, and provide personalized intervention according to different stress management needs and driving environments, dynamically and personally adjust driving stress to help drivers better adapt to current driving tasks and environments, thereby reducing the stress that may be generated during driving, which is conducive to ensuring the driver's driving safety and avoiding adverse events such as traffic accidents and personal injuries.
[0086] (5) The method provided by the present invention provides each driver with a different driving stress relief strategy that suits his or her needs based on the results output by the XGBoost stress identification model and the historical intervention effects. This not only achieves personalized driving stress management, but also enables the driver to feel the intervention method that best suits him or her, thereby helping the driver to quickly relieve driving stress.
[0087] (6) When training the XGBoost model, the present invention uses a defined weighted multi-class cross entropy loss function and decides whether to increase or decrease the learning rate according to the change of the loss function. This method, which combines the weighted loss function and the learning rate adjustment, provides greater flexibility and efficiency for the application of the XGBoost model in a changing environment.
[0088] (7) The present invention establishes an intrinsic relationship network between features in the weather feature matrix, and converts the original weather data into features that are more conducive to model understanding by extracting spatiotemporal correlation features from the weather data, so that the model can more accurately predict the driver's driving stress in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more apparent and easy to understand. In the accompanying drawings:
[0090] Figure 1 Flow chart of the vehicle control method based on driver's driving pressure feedback of the present invention;
[0091] Figure 2 Flow chart of data preprocessing of the present invention;
[0092] Figure 3 The inherent network of relationships between weather features of the present invention;
[0093] Figure 4 The present invention controls the vehicle action according to the pressure level identification result and the historical intervention effect.
[0094] Figure 5 The present invention provides a structural block diagram of a vehicle control system based on driver's driving pressure feedback. DETAILED DESCRIPTION
[0095] In order to enable those skilled in the art to better understand the technical solution and advantages of the present invention, the present application is described in detail below in conjunction with the accompanying drawings, but it is not intended to limit the protection scope of the present invention.
[0096] Embodiment 1 A vehicle control method based on driver's driving pressure feedback
[0097] This embodiment provides a vehicle control method based on driver's driving pressure feedback. Figure 1 A flow chart of a vehicle control method based on driver's driving pressure feedback provided in this embodiment.
[0098] like Figures 1 to 4 As shown, a vehicle control method based on driver's driving pressure feedback provided in this embodiment includes the following steps:
[0099] Step 1: Data Collection
[0100] Collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W;
[0101] The driver's personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI. The driver's personal information needs to be entered into the system in advance to obtain the driver's personal characteristics and health status;
[0102] The vehicle data V includes vehicle speed, steering wheel angle, accelerator pedal opening, and acceleration, and the vehicle driving behavior data can be sensed by vehicle-mounted sensors;
[0103] The road data R refers to the road vehicle conditions near the current vehicle, including the road vehicle conditions in front, behind, and on the left and right of the current vehicle. The laser radar sensor can be used to monitor the vehicle-related data on the road in real time;
[0104] The weather data W includes temperature T, humidity H, precipitation P and visibility Vi, and the above data can be obtained in real time from the public data source of the meteorological department.
[0105] Step 2: Data Preprocessing
[0106] Step 2.1. Standardize and normalize the collected raw data to ensure that the numerical ranges of different features are similar;
[0107] ;
[0108] Among them, X represents the original data, , represent the mean and standard deviation of the data, respectively. Represents the processed data;
[0109] Step 2.2. Convert the categorical data in the driver's personal information I into integer coding form, assign male gender to 1, female gender to 2; age and driving experience take their actual values; driver's history of major diseases is assigned to 1, and driver's history of no major diseases is assigned to 2, and construct the personal information feature matrix ;
[0110] Step 2.3. For the data collected in real time, record the timestamp t of data collection to ensure the accuracy and consistency of the timestamp. Align the data collected from different data sources according to the pre-defined time interval Δt, divide the data according to the time interval, extract the eigenvalues within the time window length Δt, and construct the vehicle feature matrix , road feature matrix and weather characteristics matrix ;
[0111] Among them, v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle and the current vehicle in the specified range, RC is the road condition index, and DP is the dew point temperature.
[0112] In this embodiment, the range of the number of vehicles m is limited to 100m in front of the current vehicle, 80m behind, and 20m on both sides, considering that the road conditions within this distance are of greatest concern to the driver; when calculating the distance between the surrounding vehicles and the current vehicle, the point cloud data set collected by the laser radar of the current vehicle can be clustered, with each group representing a vehicle. The position from the cluster center point to the origin of the laser radar device is then taken as the vehicle distance, and the shortest vehicle distance (the distance between the vehicle closest to the current vehicle and the current vehicle) is selected as j.
[0113] In this embodiment, the road condition index RC is calculated based on the precipitation P and the temperature T. When the temperature is less than or equal to 0 degrees and there is precipitation, the road surface may be frozen. At this time, the index is 1, indicating a high risk; otherwise, it is 0, indicating a low risk. The specific expression is as follows:
[0114] ;
[0115] The dew point temperature DP is the temperature at which the air is saturated and begins to condense at the current humidity. It has a great impact on driving safety, especially under conditions of fog or frost. The DP calculation formula is as follows:
[0116] ;
[0117] Step 2.4. Extract the features of the spatiotemporal correlation model from the weather data to obtain the spatiotemporal correlation feature matrix , specifically including the following steps:
[0118] Step 2.4.1 Establish the internal relationship network between the features in the weather feature matrix. In this embodiment, the weather feature matrix The internal network of relationships (internal relationships) such as Figure 3 As shown, each node i represents a weather feature, with a total of 6 nodes. The edges (lines) between the nodes represent the associations between the weather features, namely: RC is associated with T and P, Vi and DP are associated with T and H, Vi is associated with DP, and T is associated with H and P;
[0119] Step 2.4.2 For each node i, define the feature representation of each node i as , using an enhanced attention mechanism to calculate the updated representation vector of node i (incorporating domain information) , define the attention weight between node i and its neighbor node j as , The calculation formula is as follows:
[0120] ;
[0121] Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the feature representation of neighbor node j, represents the transpose symbol;
[0122] The representation vector of node i after update (integrating domain information) The calculation formula is as follows:
[0123] ;
[0124] in, represents the set of neighbor nodes of node i, is the activation function.
[0125] The updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix .
[0126] Step 3: Feature Fusion
[0127] The flattened spatiotemporal correlation feature matrix , the personal information feature matrix, vehicle feature matrix and road feature matrix are fused by weighted summation to obtain the fused feature matrix. The specific calculation formula is as follows:
[0128] ;
[0129] ;
[0130] in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ;
[0131] In this embodiment, the fused features are used to identify the driver's stress. Considering that the differences between individual drivers directly affect the accuracy of the stress identification results, the present invention selects different weight strategies according to different driver types when fusing multi-source data. Specifically, the weight matrix for the safe and stable driving behavior group is =[0.25,0.3,0.3,0.15]; weight matrix for the aggressive driving behavior group =[0.2,0.25,0.35,0.2]; weight matrix for the non-centralized driving behavior group =[0.2,0.2,0.35,0.25].
[0132] In this embodiment, the method for identifying the driver type described above is as follows:
[0133] The driver's historical driving data is collected, and the vehicle feature data when the driver's stress state is low (high, medium, and low can be determined based on the driver's physiological data) is clustered using density to divide the driver into three different groups. Different types of drivers are determined based on the clustering results, including safe and stable, aggressive, and unfocused. Each type reflects the driver's behavioral characteristics and risk level during driving. Among them, the characteristics of the safe and stable driving behavior group are moderate speed, small steering wheel angle, moderate accelerator pedal opening, and small acceleration. The characteristics of the aggressive driving behavior group are fast speed, large steering wheel angle, large accelerator pedal opening, and large acceleration. The characteristics of the unfocused driving behavior group are unstable steering wheel angle and large fluctuations in accelerator pedal opening. For drivers who have aggressive driving characteristics, the above behaviors are their normal behaviors rather than abnormalities caused by stress. Therefore, when fusion is performed, the proportion of vehicle features in feature fusion is reduced relative to the safe and stable driving behavior group.
[0134] When new driver data is added, the incremental clustering method is used to determine the group to which it belongs, calculate its distance from the existing cluster center, and classify the new data into the nearest cluster.
[0135] It should be noted that regarding the identification of the driver type, those skilled in the art may also adopt other methods, and the above method provided in this application is only for illustration.
[0136] Step S4: Driving stress level identification
[0137] The fused feature matrix Input the XGBoost stress recognition model, and the model will output the predicted driving stress level;
[0138] ;
[0139] in, is the output of the model; Indicates k Weak classifiers, is the feature matrix of the new sample ;
[0140] The present invention uses the driver's historical driving data to train the XGBoost model, thereby obtaining the XGBoost pressure recognition model. The specific training method is as follows:
[0141] (1) 80% of the historical driving data was used as the training set and 20% as the validation set. The stress level of the training data was determined based on the mean heart rate (HR), heart rate variability (HRV), and skin resistance (SCR) of the driver, and the thresholds were set as follows: , , .
[0142] ;
[0143] In this embodiment, a physiological status detection bracelet can be used to collect the driver's physiological data. The driver's physiological data P includes heart rate, heart rate variability, and skin resistance. Then, the characteristic value of Δt within the time window length is extracted to calculate the heart rate mean HR, heart rate variability mean HRV, and skin resistance mean SCR.
[0144] (2) Use the training set data to train the XGBoost model. After each round of training, evaluate the performance of the model on the validation set. Specifically, use the loss value L as feedback to monitor the performance of the model on the validation set.
[0145] Considering the imbalance in the number of samples among high, medium, and low stress categories, this embodiment uses a weighted multi-class cross entropy loss function for the three-category driving stress assessment, which can measure the difference between the model predicted probability distribution and the true distribution. The introduction of can also improve the model's sensitivity and recognition ability for fewer sample categories. The weighted multi-class cross entropy loss function is defined as:
[0146] ;
[0147] Where N represents the total number of samples in the training set, C is the total number of categories (C=3), It is a sample i The true label is in the category c The indication is 0 or 1. i The true label belongs to c category is 1, otherwise it is 0. is the model prediction sample i Belongs to category c probability;
[0148] (3) If the model performance does not improve significantly after evaluation, or if there is oscillation during the training process, gradually reduce the learning rate to refine the adjustment of model parameters; if the model performance improves steadily, increase the learning rate to speed up the learning process. The learning rate is adjusted according to the following formula:
[0149] Learning rate decrease: ;
[0150] in, is the current learning rate; is the decay factor, which is 0.9 and is used to reduce the learning rate when the performance does not improve; is a pre-set criterion or limit for deciding whether the learning rate needs to be adjusted, using the moving average of the model's loss on the validation set as the threshold;
[0151] Learning rate increase: ;
[0152] in, is the growth factor, which is set to 1.1, and is used to increase the learning rate when the model performance is steadily improving;
[0153] (4) Continue training according to the learning rate adjusted in step (3), repeat steps (2) and (3), and obtain the XGBoost stress recognition model after multiple rounds of training, which is used to identify the stress according to the fused feature matrix Determine driving stress level.
[0154] Step S5. Control the vehicle action according to the stress level recognition result and the historical intervention effect. The vehicle action includes visual reminder, voice reminder, tactile reminder, taste reminder, window control, temperature reminder, automatic speed adjustment, increasing the following distance, and road trajectory control. Each action corresponds to a specific intervention strategy.
[0155] Step S5.1. Establish a Q-value function to estimate the long-term reward of each action under medium and high pressure conditions. The Q-value function can be expressed as , represents the long-term reward value of taking action a in state s;
[0156] Step S5.2. Initialize Q-table, the dimension of Q-table is the number of states × the number of actions, that is, 2 × 9;
[0157] Step S5.3. Set a time threshold to determine the duration of the driver's medium pressure state. When the driver is in the medium pressure state for more than the time threshold (5 minutes) or the driving pressure is in the high pressure state, select a driver from the Q-table according to the current state s. the largest action 𝑎;
[0158] Step S5.4. According to the selected action, control the vehicle to execute the corresponding intervention strategy;
[0159] Step S5.5. Calculate the instant reward r according to the time t required for the driver's stress level to decrease. The calculation formula of the instant reward r is:
[0160] ;
[0161] Step S5.6. Update the Q-table based on the observed instant reward , updated The calculation formula is as follows:
[0162] ;
[0163] in, is the learning rate, usually 0.1, and r is the observed immediate reward;
[0164] Step S5.7. When the driver enters the high pressure state or the medium pressure state again for more than 5 minutes, use the updated Q-table to select an action and repeat steps S5.3 to S5.6.
[0165] When the vehicle is controlled in the present invention, the specific intervention strategies corresponding to the above 9 actions are:
[0166] (1) Visual reminder: Control the LED lights or indicator lights on the vehicle display screen or the vehicle dashboard to turn on and provide visual reminders to the driver so that the driver can regulate his or her stress.
[0167] (2) Voice reminders: Voice reminders are given through the vehicle's voice system to provide specific driving advice or precautions to relieve driving stress.
[0168] (3) Tactile reminder: the driver is reminded by controlling the vibration device under the seat so that the driver can adjust the pressure by himself.
[0169] (4) Taste reminder: Release specific smells, such as refreshing fragrances, through the spray system in the car to provide taste reminders and relieve driving stress.
[0170] (5) Window control: control the window switch, open the window, increase air circulation inside and outside the car, provide a fresher air environment, and relieve driving pressure.
[0171] (6) Temperature reminder: By adjusting the seat heating device, the temperature of the seat is increased to remind the driver so that the driver can adjust the pressure by himself.
[0172] (7) Automatically adjust the vehicle speed and the settings of the driving assistance system so that the vehicle automatically increases the distance from the vehicle in front to improve safety and relieve driving stress.
[0173] (8) Increase the following distance and adjust the speed setting of the cruise control system so that the vehicle automatically adjusts its speed to suit the current road and traffic conditions, thereby alleviating driving stress.
[0174] (9) Road trajectory control: By adjusting the vehicle's steering system, the vehicle automatically changes its driving trajectory to avoid congested or dangerous roads, thereby alleviating driving stress.
[0175] Embodiment 2 A vehicle control system based on driver's driving pressure feedback
[0176] like Figure 5 As shown, this embodiment provides a vehicle control system based on driver's driving pressure feedback, including a data acquisition module, a data processing module, a personal information construction module, a feature extraction module, a time-space association module, a data fusion module, a pressure identification module, and a vehicle intervention module;
[0177] The data acquisition module is used to collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W; wherein the driver personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI;
[0178] The data processing module is used to standardize and normalize the collected raw data;
[0179] The personal information building module is used to build a personal information feature matrix based on the driver's personal information ;
[0180] The feature extraction module is used to align the data collected from different data sources, divide the data according to time intervals, extract the eigenvalues within the time window length Δt, and construct a vehicle feature matrix. , road feature matrix and weather characteristics matrix ; Where v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front of, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle in the specified range and the current vehicle, T is the temperature, H is the humidity, P is the precipitation, Vi is the visibility, RC is the road condition index, and DP is the dew point temperature;
[0181] The spatiotemporal association module uses an enhanced attention mechanism to calculate the updated representation vector of node i in the intrinsic relationship network between features in the established weather feature matrix , the attention weight between node i and its neighbor node j is , The calculation formula is as follows:
[0182] ;
[0183] Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the feature representation of neighbor node j, represents the transpose symbol;
[0184] Updated representation vector of node i The calculation formula is as follows:
[0185] ;
[0186] in, represents the set of neighbor nodes of node i, is the activation function;
[0187] The updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix ;
[0188] The data fusion module is used to transform the flattened spatiotemporal correlation feature matrix , the personal information feature matrix, vehicle feature matrix and road feature matrix are fused by weighted summation to obtain the fused feature matrix. The specific calculation formula is as follows:
[0189] ;
[0190] ;
[0191] in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ;
[0192] The pressure identification module is used to perform pressure identification according to the fused feature matrix and output a predicted driving pressure level;
[0193] The vehicle intervention module is used to control the vehicle action according to the stress level identification result and the historical intervention effect, and includes a Q-value module, an immediate reward calculation module, an update module, and an intervention module; wherein the Q-value module is used to estimate the long-term reward of each action taken under medium and high pressure states, and the dimension of the Q-table in the Q-value module is the number of states × the number of actions, and the long-term reward value of taking action a under state s is stored internally;
[0194] The instant reward calculation module is used to calculate the instant reward according to the time t required for the driver's stress level to decrease;
[0195] The update module is used to update the long-term reward value of taking action a in state s in the Q-table according to the immediate reward. The calculation formula is as follows:
[0196] ;
[0197] in, is the learning rate, which controls the update speed of Q-value, usually 0.1, and r is the observed immediate reward;
[0198] The intervention module is used to select actions according to the updated Q-table and control the vehicle to execute the corresponding intervention strategy.
[0199] The present invention also provides an electronic device, comprising: one or more processors and a memory; wherein the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a vehicle control method based on driver driving pressure feedback as described in Example 1.
[0200] The present invention also provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the vehicle control method based on driver's driving pressure feedback described in Example 1 is implemented.
[0201] Those skilled in the art will appreciate that all or part of the functions of the various methods / modules in the above embodiments may be implemented by hardware or by computer programs. When all or part of the functions in the above embodiments are implemented by computer programs, the program may be stored in a computer-readable storage medium, which may include: a read-only memory, a random access memory, a disk, an optical disk, a hard disk, etc. The program is executed by a computer to implement the above functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above functions can be implemented.
[0202] In addition, when all or part of the functions in the above-mentioned embodiments are implemented by means of a computer program, the program can also be stored in a storage medium such as a server, another computer, a disk, an optical disk, a flash drive or a mobile hard disk, and saved to the memory of a local device by downloading or copying, or the system of the local device is updated. When the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0203] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art of the present invention, according to the idea of the present invention, some simple deductions, deformations or substitutions can be made. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A vehicle control method based on driver's driving pressure feedback, characterized in that: The following steps are involved: Step 1: Data Collection Collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W; wherein the driver personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI; the weather data W includes temperature T, humidity H, precipitation P and visibility Vi; Step 2: Data Preprocessing Step 2.
1. Standardize and normalize the collected raw data; Step 2.
2. Convert the categorical data in the driver's personal information I into integer coding form, take the actual values of age and driving experience, and construct the personal information feature matrix ; Step 2.
3. For the data collected in real time, record the timestamp t of data collection to ensure the accuracy and consistency of the timestamp. Align the data collected from different data sources according to the pre-defined time interval Δt, divide the data according to the time interval, extract the eigenvalue within the time window length Δt, and construct the vehicle feature matrix , road feature matrix and weather characteristics matrix ; Wherein, v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front of, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle in the specified range and the current vehicle, RC is the road condition index, and DP is the dew point temperature; Step 2.
4. Extract the features of the spatiotemporal correlation model from the weather data to obtain the spatiotemporal correlation feature matrix ; Step 2.4.
1. Establish the internal relationship network between the features in the weather feature matrix, so that RC is associated with T and P, Vi and DP are associated with T and H, Vi is associated with DP, and T is associated with H and P; Step 2.4.
2. The feature representation of each node i in the internal relationship network is , using an enhanced attention mechanism to calculate the updated representation vector of node i , the updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix ; The attention weight between node i and its neighbor node j is , The calculation formula is as follows: ; ; Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the feature representation of neighbor node j, represents the transpose symbol, represents the set of neighbor nodes of node i, is the activation function; Step 3: Feature Fusion The flattened spatiotemporal correlation feature matrix , the personal information feature matrix, the vehicle feature matrix and the road feature matrix are fused by weighted summation to obtain the fused feature matrix ; When fusion of features, different weight matrices are selected according to different types of drivers; Step 4: Identify driving stress level The fused feature matrix Input to the XGBoost stress recognition model, and the model will output the predicted driving stress level; Step 5: Control vehicle actions based on stress level identification results and historical intervention effects; Step 5.
1. Establish a Q-value function to estimate the long-term return of each action under medium and high pressure conditions. The Q-value function is expressed as , represents the long-term reward value of taking action a in state s; Step 5.
2. Initialize Q-table, the dimension of Q-table is the number of states × the number of actions; Step 5.
3. When the driver is in the medium pressure state for more than the set time threshold or the driving pressure is in the high pressure state, select a driver from the Q-table according to the current state s. the largest action 𝑎; Step 5.
4. According to the selected action, control the vehicle to execute the corresponding intervention strategy; Step 5.
5. Calculate the immediate reward r according to the time t required for the driver's stress level to decrease. The calculation formula of the immediate reward r is: ; Step 5.
6. Update the Q-table based on the observed immediate reward , updated The calculation formula is as follows: ; in, is the learning rate, which is 0.1, and r is the observed immediate reward; Step 5.
7. When the driver enters the high pressure state or the medium pressure state again for more than the set time threshold, use the updated Q-table to select an action and repeat steps 5.3 to 5.
6.
2. The vehicle control method based on driver's driving pressure feedback according to claim 1, characterized in that: The range of the number of vehicles m in step 2.3 is limited to 100m in front of the current vehicle, 80m behind, and 20m on both sides. The calculation formulas for the road condition index RC and the dew point temperature DP are: ; 。 3. The vehicle control method based on driver's driving pressure feedback according to claim 1, characterized in that: The feature matrix after fusion in step 3 The calculation formula is: ; ; in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ; Weight matrix for safe and stable driving behavior group =[0.25,0.3,0.3,0.15]; weight matrix for the aggressive driving behavior group =[0.2,0.25,0.35,0.2]; weight matrix for the non-centralized driving behavior group =[0.2,0.2,0.35,0.25].
4. The vehicle control method based on driver's driving pressure feedback according to claim 1, characterized in that: In step 4, the XGBoost pressure recognition model is obtained by training the XGBoost model using the driver's historical driving data. The specific training method is: (1) 80% of the historical driving data is used as the training set and 20% as the validation set. The stress level of the training data is determined based on the driver's physiological state data; (2) Use the training set data to train the XGBoost model. After each round of training, use the loss value L as feedback to monitor the performance of the model on the validation set. ; Where N represents the total number of samples in the training set, C is the total number of categories, C=3, It is a sample i The true label is in the category c The indication is 0 or 1. i The true label belongs to c category is 1, otherwise it is 0. is the model prediction sample i Belongs to category c The probability of is the sample weight; (3) If the model performance does not improve after evaluation, or if there is oscillation during the training process, reduce the learning rate; if the model performance is steadily improving, increase the learning rate. The learning rate is adjusted according to the following formula: Learning rate decrease: ; in, is the current learning rate; is the attenuation factor, take 0.9, is a pre-set criterion or limit, using the moving average of the model's loss on the validation set as the threshold; Learning rate increase: ; in, is the growth factor, take 1.1; (4) Continue training according to the learning rate adjusted in step (3), repeat steps (2) and (3), and obtain the XGBoost stress recognition model after multiple rounds of training.
5. The vehicle control method based on driver's driving pressure feedback according to claim 1, characterized in that: Step 5: Vehicle actions include visual reminders, voice reminders, tactile reminders, taste reminders, window control, temperature reminders, automatic speed adjustment, increasing the following distance, and road trajectory control, and each action corresponds to a specific intervention strategy; among them, the intervention strategy corresponding to the visual reminder is to control the LED lights and indicator lights on the vehicle display or the vehicle dashboard to turn on; the intervention strategy corresponding to the voice reminder is to give a voice reminder through the vehicle voice system; the intervention strategy corresponding to the tactile reminder is to remind the driver by controlling the vibration device under the seat; the intervention strategy corresponding to the taste reminder is to release a refreshing fragrance through the spray system in the car; the intervention strategy corresponding to the window control is to control the window switch, open the window, and increase the air circulation inside and outside the car; the intervention strategy corresponding to the temperature reminder is to increase the temperature of the seat by adjusting the seat heating device; the intervention strategy corresponding to the automatic speed adjustment is to adjust the settings of the driving assistance system so that the vehicle automatically increases the distance from the vehicle in front; the intervention strategy corresponding to the increasing the following distance is to adjust the speed setting of the cruise control system so that the vehicle automatically adjusts the speed to adapt to the current road and traffic conditions; the intervention strategy corresponding to the road trajectory control is to adjust the steering system of the vehicle so that the vehicle automatically changes the driving trajectory to avoid congested or dangerous sections.
6. A vehicle control system based on driver's driving pressure feedback, characterized in that: It includes data acquisition module, data processing module, personal information construction module, feature extraction module, spatiotemporal association module, data fusion module, pressure identification module, and vehicle intervention module; The data acquisition module is used to collect and obtain data related to driving stress identification, including driver personal information I, vehicle data V, road data R and weather data W; wherein the driver personal information I includes age AGE, gender SEX, driving experience AE and whether the driver has a history of major diseases MI; The data processing module is used to standardize and normalize the collected raw data; The personal information building module is used to build a personal information feature matrix based on the driver's personal information I ; The feature extraction module is used to align the data collected from different data sources, divide the data according to time intervals, extract the eigenvalues within the time window length Δt, and construct a vehicle feature matrix. , road feature matrix and weather characteristics matrix ; Where v is the average vehicle speed, g is the average steering wheel angle, o is the average accelerator pedal opening, a is the average acceleration, m is the number of vehicles in a certain range in front of, behind, left and right of the current vehicle, j is the distance between the vehicle closest to the current vehicle in the specified range and the current vehicle, T is the temperature, H is the humidity, P is the precipitation, Vi is the visibility, RC is the road condition index, and DP is the dew point temperature; The spatiotemporal association module uses an enhanced attention mechanism to calculate the updated representation vector of node i in the intrinsic relationship network between features in the established weather feature matrix , the attention weight between node i and its neighbor node j is , The calculation formula is as follows: ; Among them, a is the attention parameter vector, and is the activation function, W is the weight matrix, is the characteristic representation of each node i in the internal relationship network, is the feature representation of neighbor node j, represents the transpose symbol; Updated representation vector of node i The calculation formula is as follows: ; in, represents the set of neighbor nodes of node i, is the activation function; The updated representation vectors of the 6 nodes i Constructing the spatiotemporal correlation feature matrix ; The data fusion module is used to fuse the flattened spatiotemporal correlation feature matrix, personal information feature matrix, vehicle feature matrix and road feature matrix by weighted summation to obtain a fused feature matrix. The specific calculation formula is as follows: ; ; in, is the function of matrix flattening; the weight of personal information feature matrix is , the vehicle feature matrix weight is , the road feature matrix weight is , the spatiotemporal correlation feature matrix weight is ; The pressure identification module is used to perform pressure identification according to the fused feature matrix and output a predicted driving pressure level; The vehicle intervention module is used to control the vehicle action according to the stress level identification result and the historical intervention effect, and includes a Q-value module, an immediate reward calculation module, an update module, and an intervention module; wherein the Q-value module is used to estimate the long-term reward of each action taken under medium and high pressure states, and the dimension of the Q-table in the Q-value module is the number of states × the number of actions, and the long-term reward value of taking action a under state s is stored internally; The instant reward calculation module is used to calculate the instant reward according to the time t required for the driver's stress level to decrease; The update module is used to update the long-term reward value of taking action a in state s in the Q-table according to the immediate reward. The calculation formula is as follows: ; in, is the learning rate, which is 0.1, and r is the observed immediate reward; The intervention module is used to select actions according to the updated Q-table and control the vehicle to execute the corresponding intervention strategy.
7. An electronic device comprising: One or more processors and a memory; characterized in that the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a vehicle control method based on driver driving pressure feedback as described in any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a vehicle control method based on driver driving pressure feedback according to any one of claims 1 to 5 is implemented.
