Driving state monitoring method based on intelligent wearable devices
By collecting and processing the driver's head movement data through smart headphones, we build an action recognition model, which solves the problems of inconvenient portability and privacy leakage in the existing technology, achieves accurate monitoring and early warning of driving status, and improves driver and road safety. sex.
Patent Information
- Application Number
- CN202111501811.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-09
AI Technical Summary
Existing driving status monitoring methods require the deployment of multiple dedicated devices, which makes them inconvenient to carry and susceptible to environmental factors, and there is a risk of privacy leakage.
A smart headset with a built-in IMU inertial sensing unit is used to collect the driver's head movement data in real time. It builds an action recognition model through preprocessing, action segmentation, correction and improved dynamic time warping algorithms to identify the driver's action type and analyze the driving status. Realize driving status monitoring and early warning.
It achieves portability and privacy protection, can accurately monitor the driver's driving status, improve driving safety and road safety, and reduce the impact of environmental interference.
Smart Images

Figure CN114170264B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data recognition technology, and in particular to a driving status monitoring method based on an intelligent wearable device. Background Art
[0002] After entering the 21st century, the number of motor vehicles in my country has increased rapidly, and so far, it has exceeded 200 million. The increase in vehicles has brought us travel convenience, but it has also created huge hidden dangers in road traffic safety. According to statistics from relevant departments, traffic accidents account for the highest proportion of all types of accidents that lead to death, reaching 78.5%. Among the causes of various traffic accidents, fatigue driving and dangerous driving account for more than 30% of the total. If a driver drives a motor vehicle in an abnormal state, it will seriously threaten road public safety, including the driver's own personal property and the personal and property safety of other vehicle drivers and pedestrians. Therefore, it is very important to develop a system that can accurately monitor the driver's driving status in real time (without affecting the driver) and provide early warning reminders at the same time. It can provide early warning reminders for a series of abnormal behaviors of the driver, which can not only improve road safety, but also prompt the driver to take certain early warning measures in advance to avoid traffic accidents.
[0003] With the continuous development of technology, more and more smart wearable devices have emerged, and smart wearable devices have become an inseparable part of our daily life. For example, smart watches, smart headphones, etc. are already very common in daily life. At the same time, these devices are embedded with many sensors, providing users with many functions, such as motion detection. These devices can be connected to the user's smartphone via Bluetooth, so it is of great significance to use commercial smart wearable devices for driving status monitoring. According to the survey, the previous driving status monitoring method requires the deployment of many special devices, such as cameras, infrared detectors, etc. These devices are not only inconvenient to carry, but also affected by environmental factors, and there may be some risks of privacy leakage. Headphones are very commonly used smart devices for drivers. They can not only safely connect to the phone while driving, but also ensure the privacy of the call and avoid eavesdropping by passengers and other people. Therefore, it is urgent to develop a driving status monitoring system based on smart wearable devices and protecting privacy. Summary of the invention
[0004] The present invention provides a driving state monitoring method based on an intelligent wearable device, the purpose of which is to solve the problem that the traditional driving state monitoring method needs to deploy a lot of dedicated equipment, the dedicated equipment is inconvenient to carry, is easily affected by environmental factors, and has the risk of privacy leakage.
[0005] In order to achieve the above object, an embodiment of the present invention provides a driving state monitoring method based on a smart wearable device, comprising:
[0006] Step 1: The driver wears a smart headset with a built-in IMU inertial sensor unit while driving, and the IMU inertial sensor unit collects the driver's head movement data in real time during driving;
[0007] Step 2, preprocessing is performed based on the collected motion data of the driver's head to obtain preprocessed motion data of the driver's head;
[0008] Step 3, performing motion segmentation and extraction based on the preprocessed motion data of the driver's head;
[0009] Step 4, correcting the motion data of the driver's head after segmentation and extraction;
[0010] Step 5, calculating the motion displacement according to the corrected motion data of the driver's head, and obtaining the motion data of the driver's head after action segmentation extraction and correction;
[0011] Step 6, improving the dynamic time warping algorithm, and building an action recognition model based on the improved dynamic time warping algorithm;
[0012] Step 7, inputting the corrected motion data of each action segment and the preset standard action template into the action recognition model to identify the action type of the driver's head;
[0013] Step 8, analyzing the movement state of the driver's head within the designated time window based on the motion data of the driver's head extracted and corrected by motion segmentation and the motion type of the driver's head, and obtaining the driving state of the driver within the designated time window.
[0014] Wherein, the step 1 specifically includes:
[0015] The smart headset is connected to the smart phone via Bluetooth. The motion data of the driver's head in the driving state is collected in real time by the built-in IMU inertial sensor unit of the smart headset worn by the driver. The smart headset transmits the collected motion data of the driver's head in the driving state to the smart phone in real time via Bluetooth to execute steps 2 to 5, wherein the collected motion data of the driver's head in the driving state includes three-axis acceleration data a x ,a y ,a z And the three-axis angular velocity data θ x ,θ y ,θ z .
[0016] Wherein, the step 2 specifically includes:
[0017] Step 21, removing the null value of the collected motion data of the driver's head;
[0018] Step 22, performing Kalman filtering on the motion data of the driver's head after removing null values, wherein the estimation criterion in the Kalman filtering process is the minimum value of the mean square error;
[0019] Step 23, performing linear interpolation on the motion data of the driver's head after the Kalman filter is performed to obtain a plurality of sample values;
[0020] Step 24, after performing Butterworth low-pass filtering on the multiple sample values, a Savitzky-Golay filter is used to smooth the curve to obtain pre-processed motion data of the driver's head.
[0021] Wherein, the step 3 specifically includes:
[0022] Step 31, calculating a first one-dimensional combined acceleration according to the three-axis acceleration in the preprocessed motion data of the driver's head
[0023] Step 32, calculating a dynamic threshold for motion segmentation according to the first one-dimensional combined acceleration, includes:
[0024] Step 321, detecting whether the driver's head moves by using a set fixed threshold thres. Whenever a movement is detected, a 3-second time window is defined with 1 second before the current moment and 2 seconds after the current moment as the interval;
[0025] Step 322, obtaining the maximum value and the minimum value of the first one-dimensional combined acceleration within the specified time window, and calculating the dynamic threshold of the action segmentation according to the maximum value and the minimum value of the first one-dimensional combined acceleration:
[0026] thres i =0.85*a min +0.15*a max (1)
[0027] Among them, thres i represents the dynamic threshold of action segmentation, i represents a constant, a represents the first one-dimensional acceleration, a min represents the minimum value of the first one-dimensional combined acceleration, 0.85 is the optimal division coefficient of the minimum value of the first one-dimensional combined acceleration, a max It represents the maximum value of the first one-dimensional combined acceleration, and 0.15 is the optimal division coefficient of the maximum value of the first one-dimensional combined acceleration.
[0028] Wherein, the step 3 further comprises:
[0029] Step 33, extract each action segment from the corresponding defined time window, as shown below:
[0030]
[0031] Among them, a t-1 Indicates the total acceleration value of the sampling point before the split position, a t+1 Indicates the total acceleration value of the sampling point after the split position, t start Indicates the start time of the action, t end Indicates the end time of the action, t indicates the current time of finding the split point, and t dura Indicates the duration of the action;
[0032] Step 34, obtain and record the start time t of the action start , the end time of the action t end and the duration of the action t dura ;
[0033] Step 35, extracting the motion data of each action segment, wherein the motion data corresponding to each action segment is divided into a plurality of action units, and the action unit includes three-axis acceleration data and three-axis angular velocity data, as shown below:
[0034]
[0035] Among them, action i Represents the i-th action fragment, action i Contains six-dimensional data, represents the starting time of the i-th action segment, represents the end time of the i-th action segment, represents the duration of the action of the ith action segment, Indicates the x-axis acceleration at the first sampling point of the current action. Indicates the y-axis acceleration at the first sampling point of the current action. Indicates the z-axis acceleration at the first sampling point of the current action. Indicates the x-axis angular velocity at the first sampling point of the current action. Indicates the y-axis angular velocity at the first sampling point of the current action. Indicates the z-axis angular velocity at the first sampling point of the current action. Indicates the x-axis acceleration at the second sampling point of the current action. Indicates the y-axis acceleration at the second sampling point of the current action. Indicates the z-axis acceleration at the second sampling point of the current action. Indicates the x-axis angular velocity at the second sampling point of the current action. Indicates the y-axis angular velocity at the second sampling point of the current action. Indicates the z-axis angular velocity at the second sampling point of the current action. Indicates the x-axis acceleration at the last sampling point of the current action. Indicates the y-axis acceleration at the last sampling point of the current action. Indicates the z-axis acceleration at the last sampling point of the current action. Indicates the x-axis angular velocity at the last sampling point of the current action. Indicates the y-axis angular velocity at the last sampling point of the current action. Indicates the z-axis angular velocity at the last sampling point of the current action. Indicates the duration of the current action.
[0036] Wherein, the step 4 specifically includes:
[0037] Step 41, according to the extracted motion data of each action clip, the heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis are calculated as follows:
[0038]
[0039] Among them, a x represents the x-axis acceleration, a y represents the acceleration on the y-axis, a z represents the z-axis acceleration, θ y represents the y-axis angular velocity;
[0040] Step 42, calculate the rotation matrix according to the calculated heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis, and complete the mapping of each action to the inertial coordinate system, as shown below:
[0041]
[0042] Here, g represents the acceleration due to gravity.
[0043] Wherein, the step 5 specifically includes:
[0044] Step 51, solving the corrected three-axis acceleration according to the rotation matrix, and calculating the second one-dimensional combined acceleration a' according to the corrected three-axis acceleration. Among them, a x` represents the corrected x-axis acceleration, a y` represents the corrected y-axis acceleration, a z`Represents the corrected z-axis acceleration;
[0045] Step 52, perform double integration on the second one-dimensional combined acceleration to obtain the motion displacement x, as shown below:
[0046] x=∫∫a`dt (6)
[0047] Step 53, obtaining the motion data of the driver's head after motion segmentation, extraction and correction, wherein the motion data of the driver's head after motion segmentation, extraction and correction includes the start time of the motion, the end time of the motion, the duration of the motion and the motion displacement of the motion.
[0048] Wherein, the step 6 specifically includes:
[0049] Step 61, improving the dynamic time warping algorithm by the first improvement method or the second improvement method, includes the following steps:
[0050] Step 611: The first improvement method is to increase the first penalty coefficient α 1 , multiply the penalty coefficient by the distance obtained by the original dynamic time warping algorithm to obtain the updated distance;
[0051] Step 612: The second improvement is to increase the second penalty coefficient α 2 , solve the longest common substring k of the two time series. When calculating the longest common substring of the two time series, set the maximum standard deviation deviation tolerance. When the value is within the standard deviation range, it is regarded as part of the longest common substring, and the second penalty coefficient is obtained:
[0052]
[0053] Among them, α 2 represents the second penalty coefficient, k represents the longest common substring, S 1 represents the first time series, S 2 represents the second time series, len(·) represents the length of the sequence;
[0054] Step 62: construct an action recognition model based on the improved dynamic time warping algorithm.
[0055] Wherein, the step 7 specifically includes:
[0056] Inputting the corrected motion data of each motion segment and the preset standard motion template into the motion recognition model to identify the motion type of the driver's head includes the following steps:
[0057] Step 71, respectively calculate the DTW distances between the three-axis acceleration data of each action segment and the three-axis acceleration data of four action templates in the preset standard action template, and obtain four sets of DTW distances for each action segment Among them, the four action templates in the preset standard action templates are head upward movement template, head downward movement template, head left movement template and head right movement template, j represents the number of groups, It represents the DTW distance calculated between the x-axis acceleration of the j-th action template and the x-axis acceleration of the current action. It represents the DTW distance calculated between the y-axis acceleration of the j-th group of action templates and the y-axis acceleration of the current action. It represents the DTW distance calculated between the z-axis acceleration of the j-th group of action templates and the z-axis acceleration of the current action;
[0058] Step 72, summing up the four groups of DTW distances of each action segment respectively, and obtaining the summation result of the four groups of DTW distances of each action segment, as shown below:
[0059]
[0060] in, It represents the sum of the DTW distances calculated from the three-axis acceleration of each set of data for each action segment;
[0061] Step 73, selecting the action type of the action template corresponding to the smallest value among the sum of the four groups of DTW distances of each action segment as the head recognition result within the defined time window;
[0062] Step 74, determining the type of driver's head movement based on the head recognition result within the specified time window.
[0063] Wherein, the step 8 specifically includes:
[0064] Step 81, restore the movement state of the driver's head within the designated time window according to the start time of the action, the end time of the action, the duration of the action, the movement displacement of the action and the movement type of the driver's head. When the movement state of the driver's head within the designated time window is that the driver's head turns to the left for more than five seconds and fails to return to the correct state of looking straight ahead in time, the driving state of the driver within the current designated time window is a dangerous driving behavior.
[0065] The above scheme of the present invention has the following beneficial effects:
[0066] The driving state monitoring method based on smart wearable devices described in the above embodiments of the present invention can meet the system requirements through common commercial smart headphones with built-in inertial sensor units (AirPods Pro, Jabra, etc.) and ordinary commercial smart phones; adaptive threshold motion segmentation and extraction can be performed, and interference such as motion amplitude and other noise in the driving environment can be eliminated, and the basic head motion fragments of the driver can be effectively extracted, and subsequent processing and analysis can be performed; based on the driver's head motion data, a motion recognition model is constructed to identify different basic head motions, and continuous motion analysis is performed at the same time to judge the current driving state of the driver, so as to judge whether dangerous driving behavior and fatigue driving behavior have occurred, etc., to achieve accurate monitoring and real-time warning, thereby improving the driver's driving safety and road safety. Bluetooth headphones are easy to carry, not easily affected by environmental factors, and there is no risk of privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 is a flow chart of the present invention;
[0068] Figure 2 The specific position of the coordinate axis after the driver of the present invention wears the smart headset;
[0069] Figure 3 The effect diagram of the action segmentation extraction of the present invention;
[0070] Figure 4 It is a timing diagram of the basic action types of the present invention;
[0071] Figure 5 This is a diagram showing the recognition accuracy of different actions of the present invention. DETAILED DESCRIPTION
[0072] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0073] In view of the problem that the existing driving state monitoring method requires the deployment of many dedicated devices, the dedicated devices are inconvenient to carry, are easily affected by environmental factors, and have the risk of privacy leakage, the present invention provides a driving state monitoring method based on a smart wearable device.
[0074] like Figures 1 to 5As shown, an embodiment of the present invention provides a driving state monitoring method based on an intelligent wearable device, comprising: step 1, the driver wears an intelligent headset with a built-in IMU inertial sensing unit in the driving state, and the motion data of the driver's head in the driving state is collected in real time through the IMU inertial sensing unit; step 2, preprocessing is performed based on the collected motion data of the driver's head to obtain the preprocessed motion data of the driver's head; step 3, action segmentation and extraction is performed based on the preprocessed motion data of the driver's head; step 4, the motion data of the driver's head after segmentation and extraction is corrected; step 5, the motion displacement is calculated according to the corrected motion data of the driver's head, and the motion data of the driver's head after action segmentation and extraction and correction is obtained; step 6, the dynamic time warping algorithm is improved, and an action recognition model is constructed based on the improved dynamic time warping algorithm; step 7, the motion data of each corrected action segment and the preset standard action template are input into the action recognition model to identify the action type of the driver's head; step 8, the motion state of the driver's head in a specified time window is analyzed according to the motion data of the driver's head after action segmentation and extraction and correction and the action type of the driver's head, and the driving state of the driver in the specified time window is obtained.
[0075] Wherein, the step 1 specifically includes: connecting the smart headset to the smart phone through Bluetooth, collecting the motion data of the driver's head in the driving state in real time through the built-in IMU inertial sensor unit of the smart headset worn by the driver, and transmitting the collected motion data of the driver's head in the driving state to the smart phone in real time through Bluetooth to execute steps 2 to 5, wherein the collected motion data of the driver's head in the driving state includes three-axis acceleration data a x ,a y ,a z And the three-axis angular velocity data θ x ,θ y ,θ z .
[0076] Wherein, the step 2 specifically includes: step 21, removing the null value of the collected motion data of the driver's head;
[0077] Step 22, performing Kalman filtering on the motion data of the driver's head after removing null values, wherein the estimation criterion in the Kalman filtering process is the minimum value of the mean square error;
[0078] Step 23, performing linear interpolation on the motion data of the driver's head after the Kalman filter is performed to obtain a plurality of sample values;
[0079] Step 24, after performing Butterworth low-pass filtering on the multiple sample values, a Savitzky-Golay filter is used to smooth the curve to obtain pre-processed motion data of the driver's head.
[0080] Wherein, the step 3 specifically includes: step 31, calculating a first one-dimensional combined acceleration according to the three-axis acceleration in the preprocessed motion data of the driver's head
[0081] Step 32, calculating a dynamic threshold for motion segmentation according to the first one-dimensional combined acceleration, includes:
[0082] Step 321, detecting whether the driver's head moves by using a set fixed threshold thres. Whenever a movement is detected, a 3-second time window is defined with 1 second before the current moment and 2 seconds after the current moment as the interval;
[0083] Step 322, obtaining the maximum value and the minimum value of the first one-dimensional combined acceleration within the specified time window, and calculating the dynamic threshold of the action segmentation according to the maximum value and the minimum value of the first one-dimensional combined acceleration:
[0084] thres i =0.85*a min +0.15*a max (1)
[0085] Among them, thres i represents the dynamic threshold of action segmentation, i represents a constant, a represents the first one-dimensional acceleration, a min represents the minimum value of the first one-dimensional combined acceleration, 0.85 is the optimal division coefficient of the minimum value of the first one-dimensional combined acceleration, a max It represents the maximum value of the first one-dimensional combined acceleration, and 0.15 is the optimal division coefficient of the maximum value of the first one-dimensional combined acceleration.
[0086] The driving state monitoring method based on the smart wearable device described in the above embodiment of the present invention facilitates the subsequent segmentation and extraction of head movements by calculating the dynamic threshold of movement segmentation.
[0087] Wherein, the step 3 further includes: step 33, extracting each action segment from the corresponding defined time window, as shown below:
[0088]
[0089] Among them, a t-1 Indicates the total acceleration value of the sampling point before the split position, a t+1 Indicates the total acceleration value of the sampling point after the split position, t startIndicates the start time of the action, t end Indicates the end time of the action, t indicates the current time of finding the split point, and t dura Indicates the duration of the action;
[0090] Step 34, obtain and record the start time t of the action start , the end time of the action t end and the duration of the action t dura ;
[0091] Step 35, extracting the motion data of each action segment, wherein the motion data corresponding to each action segment is divided into a plurality of action units, and the action unit includes three-axis acceleration data and three-axis angular velocity data, as shown below:
[0092]
[0093] Among them, action i represents the i-th action segment, Contains six-dimensional data, represents the starting time of the i-th action segment, represents the end time of the i-th action segment, represents the duration of the action of the ith action segment, Indicates the x-axis acceleration at the first sampling point of the current action. Indicates the y-axis acceleration at the first sampling point of the current action. Indicates the z-axis acceleration at the first sampling point of the current action. Indicates the x-axis angular velocity at the first sampling point of the current action. Indicates the y-axis angular velocity at the first sampling point of the current action. Indicates the z-axis angular velocity at the first sampling point of the current action. Indicates the x-axis acceleration at the second sampling point of the current action. Indicates the y-axis acceleration at the second sampling point of the current action. Indicates the z-axis acceleration at the second sampling point of the current action. Indicates the x-axis angular velocity at the second sampling point of the current action. Indicates the y-axis angular velocity at the second sampling point of the current action. Indicates the z-axis angular velocity at the second sampling point of the current action. Indicates the x-axis acceleration at the last sampling point of the current action. Indicates the y-axis acceleration at the last sampling point of the current action. Indicates the z-axis acceleration at the last sampling point of the current action. Indicates the x-axis angular velocity at the last sampling point of the current action. Indicates the y-axis angular velocity at the last sampling point of the current action. Indicates the z-axis angular velocity at the last sampling point of the current action. Indicates the duration of the current action.
[0094] Wherein, the step 4 specifically includes: step 41, calculating the heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis according to the motion data of each action clip extracted, as shown below:
[0095]
[0096] Among them, a x represents the x-axis acceleration, a y represents the acceleration on the y-axis, a z represents the z-axis acceleration, θ y represents the y-axis angular velocity;
[0097] Step 42, calculate the rotation matrix according to the calculated heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis, and complete the mapping of each action to the inertial coordinate system, as shown below:
[0098]
[0099] Here, g represents the acceleration due to gravity.
[0100] Wherein, the step 5 specifically includes: step 51, solving the corrected three-axis acceleration according to the rotation matrix, calculating the second one-dimensional combined acceleration a' according to the corrected three-axis acceleration, Among them, a x` represents the corrected x-axis acceleration, a y` represents the corrected y-axis acceleration, a z` Represents the corrected z-axis acceleration;
[0101] Step 52, perform double integration on the second one-dimensional combined acceleration to obtain the motion displacement x, as shown below:
[0102] x=∫∫a`dt (6)
[0103] Step 53, obtaining the motion data of the driver's head after motion segmentation, extraction and correction, wherein the motion data of the driver's head after motion segmentation, extraction and correction includes the start time of the motion, the end time of the motion, the duration of the motion and the motion displacement of the motion.
[0104] Wherein, the step 6 specifically includes: step 61, improving the dynamic time warping algorithm by the first improvement method or the second improvement method, including the following steps:
[0105] Step 611: The first improvement method is to increase the first penalty coefficient α 1 , multiply the penalty coefficient by the distance obtained by the original dynamic time warping algorithm to obtain the updated distance;
[0106] Step 612: The second improvement is to increase the second penalty coefficient α 2 , solve the longest common substring k of the two time series. When calculating the longest common substring of the two time series, set the maximum standard deviation deviation tolerance. When the value is within the standard deviation range, it is regarded as part of the longest common substring, and the second penalty coefficient is obtained:
[0107]
[0108] Among them, α 2 represents the second penalty coefficient, k represents the longest common substring, S 1 represents the first time series, S 2 represents the second time series, len(·) represents the length of the sequence;
[0109] Step 62: construct an action recognition model based on the improved dynamic time warping algorithm.
[0110] Wherein, the step 7 specifically includes: inputting the corrected motion data of each action segment and the preset standard action template into the action recognition model to identify the action type of the driver's head, including the following steps:
[0111] Step 71, respectively calculate the DTW distances between the three-axis acceleration data of each action segment and the three-axis acceleration data of four action templates in the preset standard action template, and obtain four sets of DTW distances for each action segment Among them, the four action templates in the preset standard action templates are head upward movement template, head downward movement template, head left movement template and head right movement template, j represents the number of groups, It represents the DTW distance calculated between the x-axis acceleration of the j-th action template and the x-axis acceleration of the current action. It represents the DTW distance calculated between the y-axis acceleration of the j-th group of action templates and the y-axis acceleration of the current action. It represents the DTW distance calculated between the z-axis acceleration of the j-th group of action templates and the z-axis acceleration of the current action;
[0112] Step 72, summing up the four groups of DTW distances of each action segment respectively, and obtaining the summation result of the four groups of DTW distances of each action segment, as shown below:
[0113]
[0114] in, It represents the sum of the DTW distances calculated from the three-axis acceleration of each set of data for each action segment;
[0115] Step 73, selecting the action type of the action template corresponding to the smallest value among the sum of the four groups of DTW distances of each action segment as the head recognition result within the defined time window;
[0116] Step 74, determining the type of driver's head movement based on the head recognition result within the specified time window.
[0117] Among them, the step 8 specifically includes: step 81, restoring the movement state of the driver's head within the designated time window according to the start time of the action, the end time of the action, the duration of the action, the movement displacement of the action and the movement type of the driver's head. When the movement state of the driver's head within the designated time window is that the driver's head turns to the left for more than five seconds and fails to return to the correct state of looking straight ahead in time, the driving state of the driver within the current designated time window is a dangerous driving behavior.
[0118] The driving state monitoring method based on smart wearable devices described in the above embodiment of the present invention is experimentally verified for feasibility and stability for ordinary commercial smart headphones (built-in inertial sensing units) and ordinary commercial smart phones. The experimental verification system consists of two parts: a signal collection end and a signal processing end. The signal collection end, that is, the inertial sensing unit of the smart headset, collects the driver's head movement data in real time and transmits it to the signal processing end on the smart phone via Bluetooth 5.0. The signal processing end is a real-time signal processing using an application written on the smart phone, and these signal processing algorithms are implemented using Android NDK. In order to simulate the real driving state, by allowing volunteers to experience visual, auditory and driving scenes close to the real effect in a virtual environment, under the condition of ensuring the safety of volunteers, it can also be free from time, space, climate and venue restrictions, etc., and can refer to the simulated driver's license subject test system. Under simulated conditions, the head movement information of volunteers in the driving state is collected. A total of 10 volunteers (6 men and 4 women) were recruited in the experiment to complete the experiment and record data in three different cars. The experimental scenes include: two roads (highways and mountain roads), two times (daytime and night), and two weathers (sunny and rainy days). Experimental results: Figure 5The recognition accuracy of different types of actions under driving status is demonstrated. It can be seen that for the four basic actions, the recognition accuracy exceeds 95%. The driving status monitoring method based on smart wearable devices has a fast response speed. After completing the action recognition, the driving status analysis is performed within the time window to analyze the driving action of the current driver.
[0119] The driving state monitoring method based on smart wearable devices described in the above embodiments of the present invention can meet the system requirements through common commercial smart headphones with built-in inertial sensor units (AirPods Pro, Jabra, etc.) and ordinary commercial smart phones; adaptive threshold motion segmentation and extraction can be performed, and interference such as motion amplitude and other noise in the driving environment can be eliminated, and the driver's basic head motion fragments can be effectively extracted, and subsequent processing and analysis can be performed; based on the driver's head motion data, a motion recognition model is constructed to identify different basic head motions, and continuous motion analysis is performed at the same time to judge the current driver's driving state, so as to judge whether dangerous driving behavior and fatigue driving behavior have occurred, etc., to achieve accurate monitoring and real-time warning, thereby improving the driver's driving safety and road safety.
[0120] The driving state monitoring method based on the smart wearable device described in the above embodiment of the present invention uses an improved dynamic time warping algorithm. The essence of the dynamic time warping algorithm is to calculate the similarity distance between sequences through dynamic programming. The improved dynamic time warping algorithm is used here, and there are two main improvement strategies: (1) increase the penalty coefficient α 1 , the penalty coefficient α 1 Multiply it by the distance obtained by the original dynamic time warping algorithm to get the updated distance. (2) Increase the penalty coefficient α 2 , we can first solve the two time series S 1 ,S 2 The longest common substring a of , because the maximum standard deviation deviation tolerance is set when calculating the most common substring, so the value within the standard deviation range can also be regarded as part of the longest common substring. The attenuation coefficient is obtained:
[0121] The driving status monitoring method based on the smart wearable device described in the above embodiment of the present invention has high fault tolerance, can correctly identify the action type of the driver's head movement, improve the accuracy of subsequent analysis and the adaptability of the system, reduce the influence of the wearing position of the smart headset and the initial position of the action on the motion data, correct the collected actions, and map them all to the inertial coordinate system to ensure the accuracy of subsequent recognition. By identifying the time domain signal, an action recognition model based on the dynamic time warping algorithm is established. Compared with the traditional deep learning recognition method, the improved recognition efficiency also reduces the requirements for the processing equipment (smartphone), and no additional recognition model training is required.
[0122] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A driving state monitoring method based on an intelligent wearable device, characterized in that: include: Step 1: The driver wears a smart headset with a built-in IMU inertial sensor unit while driving, and the IMU inertial sensor unit collects the driver's head movement data in real time during driving; Step 2, preprocessing is performed based on the collected motion data of the driver's head to obtain preprocessed motion data of the driver's head; Step 3, performing motion segmentation and extraction based on the preprocessed motion data of the driver's head; Step 4, correcting the motion data of the driver's head after segmentation and extraction; Step 5, calculating the motion displacement according to the corrected motion data of the driver's head, and obtaining the motion data of the driver's head after action segmentation extraction and correction; Step 6, improving the dynamic time warping algorithm, and building an action recognition model based on the improved dynamic time warping algorithm; Step 7, inputting the corrected motion data of each action segment and the preset standard action template into the action recognition model to identify the action type of the driver's head; Step 8, analyzing the motion state of the driver's head within the specified time window according to the motion data of the driver's head extracted and corrected by motion segmentation and the motion type of the driver's head, and obtaining the driving state of the driver within the specified time window; Wherein, the step 3 specifically includes: Step 31, calculating a first one-dimensional combined acceleration according to the three-axis acceleration in the preprocessed motion data of the driver's head Step 32, calculating a dynamic threshold for motion segmentation according to the first one-dimensional combined acceleration, includes: Step 321, detecting whether the driver's head moves by using a set fixed threshold thres. Whenever a movement is detected, a 3-second time window is defined with 1 second before the current moment and 2 seconds after the current moment as the interval; Step 322, obtaining the maximum value and the minimum value of the first one-dimensional combined acceleration within the specified time window, and calculating the dynamic threshold of the action segmentation according to the maximum value and the minimum value of the first one-dimensional combined acceleration: tres i =0.85*a min +0.15*a max (1) Among them, thres i represents the dynamic threshold of action segmentation, i represents a constant, a represents the first one-dimensional acceleration, a min represents the minimum value of the first one-dimensional combined acceleration, 0.85 is the optimal division coefficient of the minimum value of the first one-dimensional combined acceleration, a max represents the maximum value of the first one-dimensional combined acceleration, and 0.15 is the optimal division coefficient of the maximum value of the first one-dimensional combined acceleration; The step 3 also includes: Step 33, extract each action segment from the corresponding defined time window, as shown below: Among them, a t-1 Indicates the total acceleration value of the sampling point before the split position, a t+1 Indicates the total acceleration value of the sampling point after the split position, t start Indicates the start time of the action, t end Indicates the end time of the action, t indicates the current time of finding the split point, and t dura Indicates the duration of the action; Step 34, obtain and record the start time t of the action start , the end time of the action t end and the duration of the action t dura ; Step 35, extracting the motion data of each action segment, wherein the motion data corresponding to each action segment is divided into a plurality of action units, and the action unit includes three-axis acceleration data and three-axis angular velocity data, as shown below: Among them, action i Represents the i-th action fragment, action i Contains six-dimensional data, represents the starting time of the i-th action segment, represents the end time of the i-th action segment, represents the duration of the action of the i-th action segment, Indicates the x-axis acceleration at the first sampling point of the current action. Indicates the y-axis acceleration at the first sampling point of the current action. Indicates the z-axis acceleration at the first sampling point of the current action. Indicates the x-axis angular velocity at the first sampling point of the current action. Indicates the y-axis angular velocity at the first sampling point of the current action. Indicates the z-axis angular velocity at the first sampling point of the current action. Indicates the x-axis acceleration at the second sampling point of the current action. Indicates the y-axis acceleration at the second sampling point of the current action. Indicates the z-axis acceleration at the second sampling point of the current action. Indicates the x-axis angular velocity at the second sampling point of the current action. Indicates the y-axis angular velocity at the second sampling point of the current action. Indicates the z-axis angular velocity at the second sampling point of the current action. Indicates the x-axis acceleration at the last sampling point of the current action. Indicates the y-axis acceleration at the last sampling point of the current action. Indicates the z-axis acceleration at the last sampling point of the current action. Indicates the x-axis angular velocity at the last sampling point of the current action. Indicates the y-axis angular velocity at the last sampling point of the current action. Indicates the z-axis angular velocity at the last sampling point of the current action. Indicates the duration of the current action; The step 4 specifically includes: Step 41, according to the extracted motion data of each action clip, the heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis are calculated as follows: Among them, a x represents the x-axis acceleration, a y represents the acceleration on the y-axis, a z represents the z-axis acceleration, θ y represents the y-axis angular velocity; Step 42, calculate the rotation matrix according to the calculated heading angle yaw rotating around the z-axis, the pitch angle pitch rotating around the y-axis and the roll angle row rotating around the x-axis, and complete the mapping of each action to the inertial coordinate system, as shown below: Here, g represents the acceleration due to gravity.
2. The driving state monitoring method based on the intelligent wearable device according to claim 1 is characterized in that: The step 1 specifically includes: The smart headset is connected to the smart phone via Bluetooth. The motion data of the driver's head in the driving state is collected in real time by the built-in IMU inertial sensor unit of the smart headset worn by the driver. The smart headset transmits the collected motion data of the driver's head in the driving state to the smart phone in real time via Bluetooth to execute steps 2 to 5, wherein the collected motion data of the driver's head in the driving state includes three-axis acceleration data a x ,a y ,a z And the three-axis angular velocity data θ x ,θ y ,θ z .
3. The driving state monitoring method based on the intelligent wearable device according to claim 2 is characterized in that: The step 2 specifically includes: Step 21, removing the null value of the collected motion data of the driver's head; Step 22, performing Kalman filtering on the motion data of the driver's head after removing null values, wherein the estimation criterion in the Kalman filtering process is the minimum value of the mean square error; Step 23, performing linear interpolation on the motion data of the driver's head after the Kalman filter is performed to obtain a plurality of sample values; Step 24, after performing Butterworth low-pass filtering on the multiple sample values, a Savitzky-Golay filter is used to smooth the curve to obtain pre-processed motion data of the driver's head.
4. The driving state monitoring method based on the intelligent wearable device according to claim 1 is characterized in that: The step 5 specifically includes: Step 51, solving the corrected three-axis acceleration according to the rotation matrix, and calculating the second one-dimensional combined acceleration a' according to the corrected three-axis acceleration. Among them, a x` represents the corrected x-axis acceleration, a y` represents the corrected y-axis acceleration, a z` Represents the corrected z-axis acceleration; Step 52, perform double integration on the second one-dimensional combined acceleration to obtain the motion displacement x, as shown below: x=∫∫a`dt (6) Step 53, obtaining the motion data of the driver's head after motion segmentation, extraction and correction, wherein the motion data of the driver's head after motion segmentation, extraction and correction includes the start time of the motion, the end time of the motion, the duration of the motion and the motion displacement of the motion.
5. The driving state monitoring method based on the intelligent wearable device according to claim 4 is characterized in that: The step 6 specifically includes: Step 61, improving the dynamic time warping algorithm by the first improvement method or the second improvement method, includes the following steps: Step 611, the first improvement method is to increase the first penalty coefficient α1, and multiply the penalty coefficient by the distance obtained by the original dynamic time warping algorithm to obtain an updated distance; Step 612, the second improvement is to increase the second penalty coefficient α2, solve the longest common substring k of the two time series, and set the maximum standard deviation deviation tolerance when calculating the longest common substring of the two time series. When the value is within the standard deviation range, it is regarded as part of the longest common substring, and the second penalty coefficient is obtained: Wherein, α2 represents the second penalty coefficient, k represents the longest common substring, S1 represents the first time series, S2 represents the second time series, and len(·) represents the sequence length; Step 62: construct an action recognition model based on the improved dynamic time warping algorithm.
6. The driving state monitoring method based on the intelligent wearable device according to claim 5 is characterized in that: The step 7 specifically includes: Inputting the corrected motion data of each motion segment and the preset standard motion template into the motion recognition model to identify the motion type of the driver's head includes the following steps: Step 71, respectively calculate the DTW distances between the three-axis acceleration data of each action segment and the three-axis acceleration data of four action templates in the preset standard action template, and obtain four sets of DTW distances for each action segment Among them, the four action templates in the preset standard action templates are head upward movement template, head downward movement template, head left movement template and head right movement template, j represents the number of groups, It represents the DTW distance calculated between the x-axis acceleration of the j-th action template and the x-axis acceleration of the current action. It represents the DTW distance calculated between the y-axis acceleration of the j-th group of action templates and the y-axis acceleration of the current action. It represents the DTW distance calculated between the z-axis acceleration of the j-th group of action templates and the z-axis acceleration of the current action; Step 72, summing up the four groups of DTW distances of each action segment respectively, and obtaining the summation result of the four groups of DTW distances of each action segment, as shown below: in, It represents the sum of the DTW distances calculated from the three-axis acceleration of each set of data for each action segment; Step 73, selecting the action type of the action template corresponding to the smallest value among the sum of the four groups of DTW distances of each action segment as the head recognition result within the defined time window; Step 74, determining the type of driver's head movement based on the head recognition result within the specified time window.
7. The driving state monitoring method based on the intelligent wearable device according to claim 6 is characterized in that: The step 8 specifically includes: Step 81, restore the movement state of the driver's head within the designated time window according to the start time of the action, the end time of the action, the duration of the action, the movement displacement of the action and the movement type of the driver's head. When the movement state of the driver's head within the designated time window is that the driver's head turns to the left for more than five seconds and fails to return to the correct state of looking straight ahead in time, the driving state of the driver within the current designated time window is a dangerous driving behavior.
Citation Information
Patent Citations
Fatigue driving detection method and system based on smart device
CN110393531A
Safe driving notification system using wearable device and method thereof
US20160207455A1
Wearable device and method of using same to monitor motion state
WO2018040757A1
Method, device, and system for image recognition model training and image recognition
WO2020207377A1
