A driving training assistance method based on POMDP and facial behavior analysis

The driving training assistance method that combines POMDP and facial behavior analysis solves the problems of high labor costs and difficult attention and emotion monitoring in traditional driving training, achieves efficient decision-making assistance in driving training, and improves students' driving safety capabilities.

CN113158859BActive Publication Date: 2024-08-23ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110386590.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-12
Publication Date
2024-08-23
Estimated Expiration
2041-04-12

AI Technical Summary

Technical Problem

Traditional driving training relies on instructor guidance, which results in high labor costs and low training efficiency. It is also difficult to effectively monitor the driver's attention and emotions, which affects the training effect.

Method used

Adopt a driving training assistance method based on POMDP and facial behavior analysis, capture the head posture and facial expressions through the camera, use the OpenFace2.0 tool to detect the student's attention and emotional state, and make optimal decisions based on the POMDP model to provide driving assistance .

Benefits of technology

It effectively reduces the workload of coaches, reduces labor costs, improves the effect of driving training, provides personalized assistance through facial behavior analysis, and improves students' driving safety capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113158859B
    Figure CN113158859B
Patent Text Reader

Abstract

The present invention discloses a driving training assistance system based on POMDP and facial behavior analysis, comprising the steps of: collecting the head posture, facial expression and eye gaze images of the trainee in real time, and processing the collected images; estimating and predicting the trainee's attention according to the images of the head posture, facial expression and eye gaze; giving the trainee appropriate driving training assistance reminders or controls according to the predicted trainee's attention and the trainee's operation results. Since the internal state of human attention and other internal states cannot be completely directly observed and can only be inferred through interaction and observation, such scenes have incomplete observability. Therefore, this paper implements a driving training assistance method based on a partially observable Markov decision process (POMDP). The present invention realizes real-time detection of human head posture, facial expression and eye gaze in the process of machine driving training assistance, and realizes the optimal decision of driving assistance based on POMDP by judging the emotions and attention of the trainee, providing the trainee with appropriate driving assistance input, and helping the trainee to obtain better driving training effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses a driving training auxiliary method based on POMDP and facial behavior analysis. Background Art

[0002] The statements herein merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] The inventor found that with the rapid economic development, people's car usage is increasing, and traffic safety issues have become more and more valued by the whole society. Autonomous driving has made very significant progress in recent years, but it is still a long way from fully autonomous driving that does not require a driver, and various driving assistance systems as auxiliary tools cannot guarantee that they will never fail. In view of this, as long as the driving process still requires a driver, it is still very important to improve the driver's own safe driving ability. Before each of us becomes a driver, it is necessary to go through driving training. Traditional driving training mainly relies on coaching guidance, and with the development of various auxiliary systems at present, it is a reasonable trend for systems with artificial intelligence to assist coaching training to reduce long-term labor costs and improve the effectiveness of driving training. The present invention mainly captures the abnormal state of the trainee by analyzing the facial behavior of the trainee. Among the facial behavior states, the trainee's attention and emotions are more correlated with the student's driving learning effect, and the two are often two important factors affecting the learning effect. Therefore, this paper mainly realizes the driving training assistance method by monitoring the trainee's attention and emotions and combining the detection of the vehicle state.

[0004] POMDP is a generalization of the Markov decision process model. It is an effective tool for calculating the optimal conditional strategy in the absence of perfect information about the state of the world, so that the agent based on POMDP decision can effectively estimate the results of its actions even though it cannot accurately observe the state of the environment. Existing research has proved that human models with Markov characteristics have high accuracy in describing human behavior through a large number of experimental results on human behavior recognition and prediction. In addition, human internal states such as attention cannot be fully observed directly, and can only be inferred through interaction and observation, which has incomplete observability. Therefore, the present invention provides guidance for machine decision-making for driving training assistance based on POMDP. Summary of the invention

[0005] In view of the shortcomings existing in the actual situation, the purpose of the present invention is to provide a driving training assistance method based on POMDP and facial behavior analysis. This method enables the driving training assistance system to obtain people's attention and emotional state through facial behavior analysis, so as to provide students with reasonable driving assistance in a targeted manner, while optimizing the driving training effect of students, reducing the workload of coaches and reducing the long-term human cost in the driving training process.

[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0007] Step 1: Use a camera to capture each frame of head posture, facial expression and eye gaze, and use the open source, powerful and easy-to-use facial behavior analysis tool OpenFace2.0 to obtain the outline of the face and frame it, and use line segments to indicate the eye gaze direction;

[0008] Step 2: Based on the facial expression image obtained in step 1, in the OpenFace2.0 environment, different facial expressions correspond to different values ​​of different facial action units. Based on these values, the facial expressions can be inferred and the emotional state of the students can be estimated and predicted.

[0009] Step 3 estimates and predicts the student's attention based on the head posture and eye gaze images obtained in step 1 and the emotional state obtained in step 2. Regarding attention detection, we assume that if the student's head posture and eye gaze angle are basically within the normal angle range (short-term deviation is allowed), and the eye gaze angle does not remain unchanged for a long time (if it remains unchanged for a long time, it is likely that the student is in a daze), and the emotional state obtained in step 2 is normal, then the student's attention is considered to be focused;

[0010] Step 4: based on the attention predicted in step 3, the optimal decision of the driver assistance system is realized based on a partially observable Markov decision process (POMDP);

[0011] POMDP is a generalization of the Markov decision process model. It is an effective tool for calculating the optimal conditional strategy in the absence of perfect information about the state of the world, so that the agent based on POMDP decision can effectively estimate the results of its actions even though it cannot accurately observe the state of the environment. Existing research has proved that human models with Markov characteristics have high accuracy in describing human behavior through a large number of experimental results on human behavior recognition and prediction. In addition, human internal states such as attention cannot be fully observed directly, and can only be inferred through interaction and observation, which has incomplete observability. Therefore, the present invention provides guidance for machine decision-making for driving training assistance based on POMDP.

[0012] Step 4.1 Establish a model of the driving training assistance system based on POMDP: For a specific driving training scenario, instantiate each tuple content (S, A, Ω, R, T, O, γ) of the POMDP basic model to obtain the POMDP model of the driving training assistance method;

[0013] Step 4.1.1 Determine the state space S of the scenario to be studied: Each possible state of the environment is represented by s1, s2, ..., s n The set of all possible states of the environment is called the state space, which is represented by S, that is, S = {s1, s2, ..., s n}. At each point in time, the environment is in one of the possible states;

[0014] Step 4.1.2 Determine the observation space Ω of the scenario to be studied: the agent does not observe the state directly, but obtains observations about the state. Every possible observation of the environment is represented by o1, o2, ..., o m The set of all possible observations of the environment is called the observation space, which is represented by Ω, that is, Ω = {o1, o2, ..., o m};

[0015] Step 4.1.3 Determine the action space A of the scenario to be studied: Each action that the agent can take is represented by a1, a2, ..., a p To represent, all actions that the agent can take constitute the action space A, that is, A = {a1, a2, ..., a p}. After receiving the observation, the agent selects an action from a set of possible actions A and performs the action;

[0016] Step 4.1.4 Determine the state transfer function T(s, a, s′): T(s, a, s′) = P(S t+1 =s'|s t =s,a t =a), the state transfer function is generally expressed as a state transfer matrix, which describes the impact of an action on the system state. When an agent takes action a in state s, the state of the system at the next moment is determined by the state transfer probability distribution;

[0017] Step 4.1.5 Determine the observation matrix O(s', a, o): O(s', a, o) = P(o t+1 =o|a t =a,S t+1 =s'), where each element p(o|a, s') is the probability that the observed information is o under the condition that the agent chooses action a and then moves to state s' in the next step;

[0018] Step 4.1.6 Determine the reward function R(s, a): The reward function R(s, a) is generally set according to the goal of the task, such as speed, safety, etc. After the agent performs action a in state s, it obtains the reward R(s, a), and the environment evolves to the next state based on the state transition function T;

[0019] Step 4.1.7 Determine the discount factor γ; the discount factor is used to weigh the immediate return and future return, and is also used to ensure reasonable behavior when facing infinite time. If γ is closer to 1, it means that the future return and the immediate return have similar impact on the present; if γ is closer to 0, it means that the future return has less impact on the present, and the immediate return is more important;

[0020] Step 4.2 Driver training assistance POMDP model solution:

[0021] Step 4.2.1 According to step 4.1, the specific contents of each tuple of the POMDP model have been determined for the specific driving training scenario, and the driving training auxiliary POMDP model (S, A, Ω, T, O, R, γ) has been established.

[0022] Step 4.2.2 Update of belief state based on the evolution of POMDP model: In solving the POMDP model, the belief state b = [b(s1), b(s2), ... b(s n )] describes the probability distribution of incompletely observable states. The belief state b' at the next moment can be updated by introducing the Bayesian formula using the belief state b, action a and observation o at the current moment:

[0023]

[0024] Step 4.2.3 POMDP value iteration solution method: Solve the optimal value function, solve the driving assistance POMDP model, and obtain the appropriate driving training assistance actions that should be given to students during driving training:

[0025]

[0026] The beneficial effects of the above embodiments of the present invention are as follows:

[0027] The present invention provides a driving training assistance method based on POMDP and facial behavior analysis. The method enables the driving training assistance system to obtain the trainee's attention through facial behavior analysis, so as to provide the trainee with reasonable driving assistance in a targeted manner, thereby optimizing the trainee's driving training effect while reducing the coach's workload and the long-term human cost in the driving training process. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 :Structural diagram of driving training assistance method based on POMDP and facial behavior analysis;

[0029] Figure 2 : Schematic diagram of head posture detection using OpenFace2.0 in an embodiment of the present invention;

[0030] Figure 3 : Schematic diagram of eye gaze detection using OpenFace2.0 in an embodiment of the present invention;

[0031] FIG4(1): A schematic diagram of normal emotions and corresponding facial action units obtained by using OpenFace2.0 according to an embodiment of the present invention;

[0032] FIG4(2): A schematic diagram of a happy emotion and a corresponding facial action unit obtained by using OpenFace2.0 according to an embodiment of the present invention;

[0033] FIG4 (3) is a schematic diagram of a sad emotion and a corresponding facial action unit obtained by using OpenFace2.0 according to an embodiment of the present invention;

[0034] Figure 5 : An initial schematic diagram of the simulation experiment link of an embodiment of the present invention;

[0035] Figure 6 : A simulation result diagram of an embodiment of the present invention showing that the auxiliary system gives corresponding prompts to the trainee when the vehicle position is good but the trainee's attention has been inattentive for a period of time;

[0036] Figure 7 : Diagram of simulation results of the auxiliary system giving corresponding prompts to the trainee when the trainee's attention is not focused for a period of time and the vehicle position deviates from the normal trajectory according to the embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to facilitate those skilled in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings. Figure 1 , a structural block diagram of a driving training assistance method based on POMDP and facial behavior analysis, modeling the trainee's attention status as a hidden state in POMDP. The present invention is a method for implementing driving training assistance based on a POMDP model for making decisions under uncertain conditions by real-time detection of the trainee's attention and operation results during the trainee training process.

[0038] Example:

[0039] In a typical implementation of the present invention, a driving training assistance method based on POMDP and facial behavior analysis is proposed. This method enables the driving training assistance system to obtain the attention and emotional state of a person through facial behavior analysis, thereby providing reasonable driving assistance to the trainee in a targeted manner, while optimizing the driving training effect of the trainee, reducing the workload of the coach and reducing the long-term human cost in the driving training process. The implementation steps of this embodiment are as follows:

[0040] Step 1: Process the image in real time to obtain the person's head posture, facial expression and eye gaze direction;

[0041] Use an open source, powerful and easy-to-use OpenFace2.0 tool to process the images captured by the camera in real time to obtain the head posture, facial expression and eye gaze direction of the person, such as Figure 2 , Figure 3 , Figure 4(1), Figure 4(2), Figure 4(3). For each frame of image captured by the camera, OpenFace2.0 is used to obtain the outline of the face and outline it, and lines are used to indicate the direction of eye gaze; different facial expressions correspond to different facial action unit values, and facial expressions can be obtained based on these values.

[0042] Step 2: Estimate and predict the emotional state of the learner based on the facial expression image obtained in step 1;

[0043] During the driving training process, students rarely make phone calls, send messages, eat, or take things that affect their attention. Their lack of concentration may be mainly reflected in facial behaviors, such as head posture and eye gaze. Therefore, the present invention mainly detects the attention of students by analyzing these two parts. Regarding attention detection, we assume that if the head posture and eye gaze angle of the student are basically within the normal angle range (short-term deviation is allowed), and the eye gaze angle does not remain unchanged for a long time (if it remains unchanged for a long time, it is likely that the student is in a daze), then the student's attention is concentrated.

[0044] Step 3: Estimate and predict the student's attention status based on the head posture and eye gaze images obtained in step 1 and the emotional state obtained in step 2;

[0045] For emotion detection, although people can sometimes hide their emotions, facial expression recognition is still the best choice among machine analysis methods for emotion detection when users do not wear external devices. Different facial expressions will have different facial action unit values, and the corresponding emotional state can be inferred based on these values.

[0046] Step 4: According to the attention status obtained in step 3, the optimal decision of the driving assistance system is achieved based on POMDP.

[0047] Step 4.1 Establish a model of the driving training assistance system based on POMDP.

[0048] S: In this embodiment, our ultimate goal is to achieve driving training, taking the second test as an example, that is, to complete various required point actions, such as reversing into a garage. Therefore, the driving training assistance system in this article focuses on two main states: the position of the vehicle (position) s p = [0, 1, 2] and the student's attention s a=[0,1], so the number of states of the model after combination is 6. State space:

[0049] s=(s p ,s a ), S=[s0, s1, s2, s3, s4, s5]=[(0,0), (0,1), (0,2), (1,0), (1,1), (1,2)].

[0050] Ω: The perception of the actual state of the trainee and the vehicle obtained by the auxiliary system through sensors, including observations of the vehicle position and the trainee's attention. Therefore, the observation space of the model is:

[0051] Ω=[o0, o1, o2, o3, o4, 05]=[(0,0), (0,1), (0,2), (1,0), (1,1), (1,2)].

[0052] A: Under normal circumstances, the auxiliary system does not need to take any action on the trainee and the vehicle; if the system predicts that the trainee and the vehicle as a whole are about to deviate from the original target, the trainee will be reminded; if the human-vehicle system continues to deviate from the original target to a dangerous state, the auxiliary system will immediately take the initiative to brake. Therefore, the action space of this model is:

[0053] A=[0, 1, 2]=[Normal, Warning, Stop].

[0054] Slice (s, a): During driving training, we hope that trainees can focus on and efficiently train their driving skills. Therefore, making both position and attention as good as possible is the goal of the driving training assistance system, and the reward function is set according to this goal.

[0055] T: T(s, a, s′) = P(s t+1 =s′|s t =s,a t =a). The embodiment considered in the present invention includes two state variables. In order to be closer to the actual situation, we do not directly assume the transition probability between the six states in the state space, but analyze and set the transition conditions of the two state variables respectively, and then obtain the final system transfer matrix according to the chain rule. P(s′|s, a) = P(s′|s p , a) P(s′|s a , a).

[0056] O: O(a, s′, o) = P(o t+1 =o|a t =a,s t+1=s′). The setting principle of the system observation matrix is ​​the same as that of the transfer matrix. The size of the observation probability value reflects the degree of change in the confidence of the system state when a certain observation is obtained.

[0057] γ: The discount factor is assumed to be 0.95.

[0058] Step 4.2: Solve the driving assistance POMDP model.

[0059] A key aspect of the POMDP model is the assumption that the state is not completely observable. At each time step, the agent can only obtain observations that contain incomplete information about the current state. Since the state is not completely observable, the agent cannot choose its action based on the state. It needs to consider the complete history of its past actions and observations to choose the current action. The explicit representation of history will result in a large amount of memory consumption, so belief states (probability distributions on the state space) are used to summarize all relevant information about past actions and observations. The belief state at time t is the posterior probability distribution of each state given the complete history, that is, the belief state b is the probability distribution on S, and b(s) is the probability that the system is in state s∈S. In solving the POMDP model, it is generally solved by introducing the belief state b=[b(s1), b(s2), ...b(s n )] describes the probability distribution of incompletely observable states. The belief state b' at the next moment can be updated by introducing the Bayesian formula using the belief state b, action a and observation o at the current moment:

[0060]

[0061] Since the states in POMDP are not fully observable, we need to maximize the expected return for each belief state b, so the value function is as follows:

[0062]

[0063] The value function of POMDP can be well approximated by a piecewise linear convex function of beliefs, where each linear function is called an α vector. Each α vector can be viewed as an action-value pair, and the α vector is associated with a conditional plan, capturing the benefit of executing the plan starting from state s for each state s. If the α vector is known, the value of the conditional plan associated with any belief b can be evaluated by taking the inner product of the α vector and the belief b.

[0064] After n iterations, the value function can be expressed as a series of α vectors, V n ={α0, ..., α m}, each α vector defines a value function in a region on the belief simplex:

[0065]

[0066] Where Γ is a set of α vectors.

[0067] This embodiment has 6 states. Each α vector is a 6-dimensional hyperplane. The optimal strategy of POMDP can be found by searching in the 6-dimensional convex hull formed by the α vectors. Since the number of states |S| is 6, the number of observations |Ω| is 6, and the number of actions |A| is 3, the set of α vectors contains |A||S| |Ω| |Ω| = 839808 α vectors. If we directly perform multi-step search in so many α vectors, it will take a lot of time and cannot meet the real-time requirements in practical applications. In addition, the set may contain duplicate vectors and ineffective vectors. Therefore, we deduplicate and prune the α vector set, which greatly shortens the planning time.

[0068] This embodiment realizes real-time detection of a person's head posture, eye gaze and facial expression during the student's driving training process to track the attention and emotional state that affects the student's driving training effect, and uses the attention and emotional state to realize the optimal auxiliary decision of the intelligent driving assistance system based on POMDP, which optimizes the student's driving training effect while freeing up part of the coach's manpower to a certain extent.

Claims

1. A driving training assistance method based on POMDP and facial behavior analysis, characterized in that: The following steps are involved: Step 1: Use a camera to capture each frame of head posture, facial expression and eye gaze, and use the facial behavior analysis tool OpenFace2.0 to obtain the outline of the face and frame it, and use line segments to indicate the direction of eye gaze; Step 2: Based on the facial expression image obtained in step 1, in the OpenFace2.0 environment, different facial expressions correspond to different values ​​of different facial action units. Based on these values, the facial expressions can be inferred and the emotional state of the students can be estimated and predicted. Step 3 estimates and predicts the student's attention according to the head posture and eye gaze images obtained in step 1 and the emotional state obtained in step 2; if the student's head posture and eye gaze angle are basically within the normal angle range, a short-term deviation is allowed, and the eye gaze angle does not remain unchanged for a long time, and the emotional state obtained in step 2 is normal, it is considered that the student's attention is focused; Step 4: Based on the attention predicted in step 3, the optimal decision of the driver assistance system is achieved based on the partially observable Markov decision process (POMDP); Step 4.1 Establish a model of the driving training assistance system based on POMDP: For a specific driving training scenario, instantiate each tuple content (S, A, Ω, R, T, O, γ) of the POMDP basic model to obtain the POMDP model of the driving training assistance method; Step 4.1.1 Determine the state space of the scenario to be studied: Each possible state of the environment is represented by s1, s2, …, s n The set of all possible states of the environment is called the state space, which is represented by S, that is, S = {s1, s2, ..., s n };At each point in time, the environment is in one of the possible states; Step 4.1.2 Determine the observation space of the scene to be studied: the agent does not observe the state directly, but obtains observations about the state. Each possible observation of the environment is represented by o1, o2, ..., o m The set of all possible observations of the environment is called the observation space, which is represented by Ω, that is, Ω = {o1,o2,…,o m }; Step 4.1.3 Determine the action space of the scenario to be studied: Each action that the agent can take is represented by a1, a2, …, a p To represent, all actions that the agent can take constitute the action space A, that is, A = {a1, a2, ..., a p };After receiving the observation, the agent selects an action from a set of possible actions A and performs the action; Step 4.1.4 Determine the state transfer function T(s,a,s'): T(s,a,s') = P(s t+1 =s'|s t =s,a t =a), the state transfer function is expressed as a state transfer matrix, which describes the impact of the action on the system state. The agent takes action a in state s, and the state of the system at the next moment is determined by the state transfer probability distribution; Step 4.1.5 Determine the observation matrix O(s',a,o): O(s',a,o) = P(o t+1 =o|a t =a,s t+1 =s'), where each element p(o|a,s') is the probability that the observed information is o under the condition that the agent chooses action a and then moves to state s' in the next step; Step 4.1.6 Determine the reward function R(s,a): The reward function R(s,a) is set according to the goal of the task; after the agent performs action a in state s, it obtains the reward R(s,a), and the environment evolves to the next state based on the state transition function T; Step 4.1.7 Determine the discount factor γ; the discount factor is used to weigh the immediate return and future return, and is also used to ensure reasonable behavior when facing infinite time; if γ is closer to 1, it means that the future return and the immediate return have similar impact on the present; if γ is closer to 0, it means that the future return has less impact on the present, and the immediate return is more important; Step 4.2 Driver training assistance POMDP model solution: Step 4.2.1 According to step 4.1, the specific contents of each tuple of the POMDP model have been determined for the specific driving training scenario, and the driving training auxiliary POMDP model (S, A, Ω, T, O, R, γ) has been established; Step 4.2.2 Update of belief state during the evolution of POMDP model: In solving the POMDP model, by introducing the belief state b = [b(s1), b(s2), …b(s n )] describes the probability distribution of incompletely observable states. The belief state b' at the next moment can be updated by introducing the Bayesian formula using the belief state b, action a and observation o at the current moment: Step 4.2.3 POMDP value iteration solution method: Solve the optimal value function, solve the driving assistance POMDP model, and obtain the appropriate driving training assistance actions that should be given to students during driving training: