Disclosure of Invention
The invention provides a vehicle ADAS control method and system based on a driver emotion index, which are used for solving the technical problem that the conventional vehicle ADAS alarm is not timely or too frequent.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a vehicle ADAS control method based on a driver emotion index comprises the following steps:
in the real-time driving process of a driver, monitoring a facial image of the driver in real time, and extracting facial expression category information with time series information from the facial image;
calculating the emotion index of the driver according to the facial expression category information with the time series information; and comparing the emotion index with a preset emotion threshold value, and adjusting the alarm threshold value/intensity of ADAS according to the comparison result.
Preferably, the method for extracting facial expression category information with time series information from the facial image includes the following steps:
combining simulated driving with real-vehicle experiments, collecting facial expression pictures of a driver, enhancing and expanding a data set by using data, and manufacturing a special data set containing a large number of facial expressions of the driver;
selecting a convolutional neural network model, training and verifying on a mainstream face data set to obtain neural network parameters, and establishing an initial neural network model;
performing migration training on the initial neural network model on the established special data set for the facial expression of the driver by adopting a Fine-tune migration learning mode, and retraining part of the convolutional layer and the output layer again to obtain a neural network model after migration learning;
and identifying the facial expression of the driver in the real-time driving process by using the neural network model after the transfer learning to obtain the facial expression category of the driver in the real-time driving process.
Preferably, the emotion index of the driver is calculated according to the facial expression category information with time series information, and the emotion index is calculated according to the following formula:
in the formula, EkIs the emotional index of the driver at time k, Ek-1The emotion index of the driver at the moment k-1, alpha is a coefficient of the emotion index of the driver at the moment k-1, beta represents an expression conversion coefficient from the moment k-1 to the moment k, and is related to the expression categories of the driver at the previous moment and the current moment, and epsilon is a fixed value set according to the expression categories of the driver at the current moment k.
Preferably, the emotion threshold includes a first emotion threshold and a second emotion threshold, and specifically includes the following steps:
when the emotion index exceeds the first emotion threshold and does not exceed a second emotion threshold, judging that the driver is not suitable for driving at present, and adjusting the alarm threshold/intensity of the ADAS to a first-level alarm threshold/intensity;
and when the emotion index exceeds the second emotion threshold, judging that the driver is extremely unsuitable for driving at present, and adjusting the alarm threshold/intensity of the ADAS to a secondary alarm threshold/intensity.
Preferably, the alarm thresholds/intensities include: one or a combination of any several of a collision distance threshold value, a residual collision time threshold value, a yaw angle threshold value and alarm intensity.
Preferably, the acquisition of the face image of the driver in the real-time driving process is realized by a camera which is arranged above a front windshield of the vehicle and close to the driver side.
A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program.
The invention has the following beneficial effects:
1. according to the method and the system for controlling the vehicle ADAS based on the emotion index of the driver, facial expression category information based on time series in the driving process of the driver is extracted by acquiring a face image in the real-time driving process of the driver; calculating the emotion index of the driver according to the facial expression category information based on the time series; and comparing the emotion index with a preset emotion threshold value, and adjusting the alarm threshold value/intensity of ADAS according to the comparison result. Compared with the prior art, the invention can calculate the emotion index of the driver according to the facial expression category information of the driver with time series information to accurately quantify the current driving state of the driver, and dynamically adjust the trigger condition and the alarm intensity of ADAS alarm according to the emotion index of the driver, thereby better ensuring the comfort and the safety of the driver in the driving process.
2. In a preferred scheme, the method can effectively identify the facial expression of the driver based on the deep neural network and the transfer learning technology.
In addition to the objects, features and advantages described above, other objects, features and advantages of the present invention are also provided. The present invention will be described in further detail below with reference to the accompanying drawings.
Detailed Description
The embodiments of the invention will be described in detail below with reference to the drawings, but the invention can be implemented in many different ways as defined and covered by the claims.
The first embodiment is as follows:
the implementation discloses a vehicle ADAS control method based on a driver emotion index, which comprises the following steps:
in the real-time driving process of a driver, monitoring a facial image of the driver in real time, and extracting facial expression category information with time series information from the facial image;
calculating the emotion index of the driver according to the facial expression category information with the time series information; and comparing the emotion index with a preset emotion threshold value, and adjusting the alarm threshold value/intensity of ADAS according to the comparison result. .
In addition, in the embodiment, a computer system is also disclosed, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the steps of the method are implemented.
According to the method and the system for controlling the vehicle ADAS based on the emotion index of the driver, facial expression category information based on time series in the driving process of the driver is extracted by acquiring a facial image of the driver in the real-time driving process of the driver; calculating the emotion index of the driver according to the facial expression category information based on the time series; and comparing the emotion index with a preset emotion threshold value, and adjusting the alarm threshold value/intensity of ADAS according to the comparison result. Compared with the prior art, the invention can calculate the emotion index of the driver according to the facial expression category information of the driver with time series information to accurately quantify the current driving state of the driver, and dynamically adjust the trigger condition and the alarm intensity of ADAS alarm according to the emotion index of the driver, thereby better ensuring the comfort and the safety of the driver in the driving process.
Example two:
the second embodiment is the preferred embodiment of the first embodiment, and is different from the first embodiment in that specific steps of a vehicle ADAS control method based on a driver emotion index are refined, and a specific structure of a vehicle ADAS control system based on the driver emotion index is optimized:
as shown in fig. 1, in the present embodiment, a method for controlling a vehicle ADAS based on a driver emotion index is disclosed, which includes the following steps:
1) collecting a driver facial expression specific dataset in a non-laboratory controlled environment: collecting facial expression images of drivers under different emotions through simulation driving, real vehicle experiments and the like, labeling, and obtaining a facial expression data set containing driving scene pictures of the drivers after data enhancement;
2) selecting a neural network model by applying deep learning, testing and verifying on a mainstream face data set to obtain parameters of the neural network model, and establishing an initial neural network model;
3) fixing network parameters of the initial neural network model except for the output layer and part of the convolution layer, performing migration training on a special data set for the emotional expression of the driver, and adjusting the network parameters to obtain a neural network model subjected to fine adjustment aiming at the emotional expression of the driver;
4) and identifying the facial expressions of the driver in the real-time driving process, and calculating the emotion index of the driver according to the facial expression category information of the driver with the time series information.
In the present embodiment, the facial expression categories include: sadness, anger, surprise, fear, happiness, disgust, neutrality.
Wherein, the calculation formula of the emotion index is as follows:
in the formula, EkIs the emotional index of the driver at time k, Ek-1The emotion index of the driver at the moment k-1, alpha is a coefficient of the emotion index of the driver at the moment k-1, beta represents an expression conversion coefficient from the moment k-1 to the moment k, and is related to the expression categories of the driver at the previous moment and the current moment, and epsilon is a fixed value set according to the expression categories of the driver at the current moment k.
Here, α and β need to be set empirically, and α needs to be smaller if the emotion index at the previous time is attenuated more or the proportion is smaller, and α needs to be larger if the emotion index at the previous time is attenuated less or the proportion is larger. β is related to the expression categories of the previous moment and the current moment, which is illustrated in table 1, and when the expressions of the previous moment are consistent, the more positive the expression of the current moment is, the smaller β is, the more negative the expression of the current moment is, and the larger β is; under the condition that the expressions at the current moment are consistent, the more positive the expression at the previous moment is, the smaller beta is, and the more negative the expression at the previous moment is, the larger beta is. Epsilon is set so that the more negative the expression at the current moment, the more positive the expression, and the less negative the expression.
In this embodiment, the values of β are as follows:
table 1 beta values example
5) Adjusting an ADAS alarm threshold value and intensity according to the emotion index of the driver, and when the emotion index of the driver is suitable for driving, the ADAS works according to a normal collision distance threshold value, a normal remaining collision time threshold value, a normal yaw angle threshold value and normal alarm intensity; when the emotion index of the driver represents that the driver is not suitable for driving, the ADAS works according to a primary collision distance threshold value, a primary residual collision time threshold value, a primary yaw angle threshold value and a primary alarm intensity; when the emotion index characterization of the driver is extremely unsuitable for driving, the ADAS will work according to a secondary collision distance threshold value, a secondary remaining collision time threshold value, a secondary yaw angle threshold value and a secondary alarm intensity.
In this embodiment, the primary collision distance threshold, the primary remaining collision time threshold, the primary yaw angle threshold, and the primary alarm intensity are collectively referred to as a first emotion threshold; the secondary collision distance threshold, the secondary residual collision time threshold, the secondary yaw angle threshold and the secondary alarm intensity are collectively called a second emotion threshold; the first emotion threshold is smaller than the second emotion threshold, and the specific numerical value is related to the setting of the emotion index; the first-level alarm threshold value is larger than the second-level alarm threshold value, the first-level alarm intensity is weaker than the second-level alarm intensity, and the second-level alarm can increase more alarm modes such as lamplight and active safety belt pre-tightening.
Further, in the present embodiment, as shown in fig. 2 and 3, there is disclosed a vehicle ADAS control system based on a driver emotion index, including:
1) an image acquisition module: the system comprises one or more cameras, a front windshield and a rear windshield, wherein the cameras are arranged at proper positions above the front windshield of the vehicle and close to the driver side;
2) an image processing module: based on the established neural network model, acquiring a facial expression image of the driver from the image acquisition module, identifying the facial expression image, and calculating the emotion index of the driver, wherein the calculation mode of the emotion index of the driver at the moment k is shown as the formula (1):
3) an ADAS module: the system comprises a front collision early warning module and a lane departure early warning module, wherein a normal collision distance threshold value, a normal remaining collision time threshold value, a normal yaw angle threshold value and normal warning intensity are arranged in the modules; a primary collision distance threshold value, a primary residual collision time threshold value, a primary yaw angle threshold value and a primary alarm intensity; a secondary collision distance threshold value, a secondary residual collision time threshold value, a secondary yaw angle threshold value and a secondary alarm intensity. The ADAS module receives the emotion index of the driver obtained from the image processing module, when the driver is judged to be suitable for driving, the front collision early warning module starts a normal collision distance threshold value and a normal remaining collision time threshold value, the lane departure early warning module starts a normal yaw angle threshold value, and the ADAS module starts normal alarm intensity; when the driver is judged to be not suitable for driving, a front collision early warning module starts a primary collision distance threshold value and a primary residual collision time threshold value, a lane departure early warning module starts a primary yaw angle threshold value, and an ADAS module starts primary alarm intensity; when the driver is judged to be extremely unsuitable for driving, the front collision early warning module starts a secondary collision distance threshold value and a secondary remaining collision time threshold value, the lane departure early warning module starts a secondary yaw angle threshold value, and the ADAS module starts secondary alarm intensity. Wherein the normal collision distance threshold is greater than the primary collision distance threshold, and the primary collision distance threshold is greater than the secondary collision distance threshold; the normal residual collision time threshold value is larger than a primary residual collision time threshold value, and the primary residual collision time threshold value is larger than a secondary residual collision time threshold value; the normal yaw angle threshold value is larger than a first-level yaw angle threshold value, and the first-level yaw angle threshold value is larger than a second-level yaw angle threshold value; the normal alarm intensity is weaker than the first-level alarm intensity, and the first-level alarm intensity is weaker than the second-level alarm intensity. When any parameter is detected to be less than or equal to the threshold value, a corresponding alarm mechanism is started.
In summary, the vehicle ADAS control method and system based on the emotion index of the driver in the invention collect the face picture of the driver in the simulated driving or real scene under the non-laboratory controlled environment, and improve the accuracy of recognizing the face expression of the driver by using the transfer learning. Meanwhile, the method for calculating the emotion index of the driver is provided, the emotion index of the driver is obtained by combining the facial expression category information of the driver with the time series information, and the driving state of the driver is represented by the facial expression. The invention also provides a self-adaptive advanced driving assistance system and a self-adaptive advanced driving assistance method based on the emotion index of the driver, which can dynamically adjust the alarm threshold and intensity of the ADAS according to the emotion index of the driver. Therefore, the invention not only improves the accuracy of the facial expression recognition of the driver and obtains the emotion index reflecting the driving state of the driver, but also avoids the problem of ADAS false alarm or untimely alarm and improves the comfort and safety of the driver in the driving process.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.