Driving state detection method and device

By collecting and calculating steering wheel and vehicle data in real time, and using the BP neural network model to detect driver fatigue status, it solves the problem of non-real-time detection and affecting driving in the existing technology, and achieves interference-free and accurate fatigue detection.

CN118529067APending Publication Date: 2024-08-23PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410721423.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing fatigue driving detection technology cannot meet the needs of real-time detection because it needs to be measured before or after driving, and the sensor contacts the driver's body and affects normal driving.

Method used

By determining the fatigue probability type corresponding to the steering wheel indicator type, vehicle indicator type and driving time, driving behavior data is collected in real time, the target indicator value is calculated, and the pre-trained BP neural network model is used to detect the driving state to avoid sensor contact with the driver's body.

Benefits of technology

It achieves accurate detection of driver fatigue status without affecting the driver's normal driving, and meets the needs of real-time detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118529067A
    Figure CN118529067A
Patent Text Reader

Abstract

The invention discloses a driving state detection method and device. The method comprises the steps of determining a plurality of target index types; the target index type comprises any one or more of a steering wheel index type, a vehicle index type and a fatigue probability type corresponding to the driving time; performing driving behavior data acquisition on the target object in real time according to a preset time interval, and obtaining behavior data corresponding to each target index type so as to obtain a current behavior data set at a current acquisition moment; calculating the behavior data of the same target index type based on the historical behavior data set of each historical moment and the current behavior data set, and obtaining a target index value corresponding to each target index type; and obtaining a target BP neural network model by using pre-training based on each target index value, and carrying out driving state detection on the target object to obtain a detection result. According to the method, the state of the driver can be accurately detected under the condition that normal driving of the driver is not affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a driving state detection method and device. Background Art

[0002] With the development of social economy and the improvement of people's living standards, the whole society's demand for transportation is increasing. The rapid growth of traffic volume has worsened road traffic conditions, leading to a series of serious social problems such as traffic safety accidents, environmental pollution, traffic congestion, and economic losses. Driver fatigue is one of the main causes of traffic accidents.

[0003] Among the existing fatigue driving detection technologies, fatigue detection is mainly based on the driver's physiological parameters. For example, the driver's physiological parameters are obtained based on electroencephalogram, electrooculogram, electromyogram, electrocardiogram, respiratory airflow, respiratory effect (chest sensor), arterial blood oxygen saturation and other measurement methods, and then fatigue state detection is further performed based on these physiological parameters. However, this method cannot meet the real-time requirements because it needs to be measured before or after driving. In addition, during driving, the sensors, electrodes or other detection instruments will directly contact the driver's body, which will affect the driver's normal driving, so it cannot meet the actual application needs. Summary of the invention

[0004] In view of this, the present invention provides a driving status detection method and device, the main purpose of which is to solve the problem that the current detection method affects the driver's normal driving.

[0005] To solve the above problems, the present application provides a driving state detection method, comprising:

[0006] Determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time;

[0007] Collect driving behavior data of the target object in real time at a predetermined time interval to obtain behavior data corresponding to each target indicator type, so as to obtain a current behavior data set at the current collection time;

[0008] Based on the historical behavior data set at each historical collection moment and the current behavior data set, the behavior data of the same target indicator type are calculated respectively to obtain the target indicator value corresponding to each target indicator type;

[0009] Based on each target index value, a target BP neural network model is obtained by pre-training, and a driving state detection is performed on the target object to obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

[0010] In order to solve the above problems, the present application provides a driving state detection device, comprising:

[0011] A determination module, used to determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time;

[0012] A collection module is used to collect driving behavior data of the target object in real time according to a predetermined time interval, obtain behavior data corresponding to each target indicator type, and obtain a current behavior data set at the current collection time;

[0013] A calculation module, used to calculate the behavior data of the same target indicator type based on the historical behavior data set at each historical collection moment and the current behavior data set, and obtain the target indicator value corresponding to each target indicator type;

[0014] The detection module is used to obtain a target BP neural network model based on each target indicator value by pre-training, perform driving state detection on the target object, and obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

[0015] The driving state detection method and device in this application obtains the indicator values ​​corresponding to the steering wheel indicator type, the vehicle indicator type and the fatigue probability type by calculating according to the driving behavior data. Subsequently, based on these indicator values ​​and the predetermined BP neural network model, it can accurately detect whether the driver is in a fatigue state. In addition, since the target indicator types in this application are the steering wheel indicator type, the vehicle indicator type and the fatigue probability type, that is, the collected data involves the steering wheel data, the vehicle data and the driving time data, it is possible to avoid the sensor from directly contacting the driver's body, and thus will not affect the driver's normal driving, thereby realizing the accurate detection of the driver's state without affecting the driver's normal driving.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0018] Figure 1This is a flow chart of a driving state detection method according to an embodiment of the present application;

[0019] Figure 2 This is a structural block diagram of a driving state detection device according to another embodiment of the present application;

[0020] Figure 3 This is a structural block diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION

[0021] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0022] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0023] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0024] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0025] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0026] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0027] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0028] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0029] The present application embodiment provides a driving state detection method, which can be specifically applied to electronic devices such as terminals and servers, such as Figure 1 As shown, the driving state detection method in this embodiment includes the following steps:

[0030] Step S101, determining a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time;

[0031] In this step, by determining the target indicator type, it is convenient to collect driving behavior data using corresponding sensors in the future.

[0032] Step S102, collecting driving behavior data of the target object in real time at a predetermined time interval, obtaining behavior data corresponding to each target indicator type, and obtaining a current behavior data set at the current collection time;

[0033] In the implementation process of this step, the target object refers to the driver to be tested. The acquisition frequency can be 0.1HZ, that is, the behavior data is collected at a time interval of 10 seconds, thereby obtaining a number of historical behavior data sets corresponding to the historical acquisition time and the current behavior data set at the current acquisition time.

[0034] In this step, if the target indicator type is a steering wheel indicator type, the corresponding sensor will be used to collect the steering wheel angle and / or the steering wheel angular velocity, and the behavior data set will include the steering wheel angle data and / or the steering wheel angular velocity data. If the target indicator type includes a vehicle indicator type, the corresponding sensor will be used to collect the vehicle speed, and the behavior data set will include the vehicle speed data. Similarly, if the target indicator type includes a fatigue probability type, the corresponding sensor will be used to collect the driving time, and the data set will include the driving time data.

[0035] Step S103, based on the historical behavior data set at each historical collection moment and the current behavior data set, the behavior data of the same target indicator type are calculated respectively to obtain the target indicator value corresponding to each target indicator type;

[0036] In this step, since the behavior data set corresponding to each collection moment contains multiple behavior data, such as steering wheel angle, steering wheel angular velocity, vehicle speed, driving time, etc., when calculating the target index value, it is necessary to calculate based on the same behavior data at each collection moment, that is, to calculate the steering wheel angle mean square error index value and / or steering wheel crossing area index value based on the steering wheel angle at each collection moment; to calculate the steering wheel angular velocity mean square error index value based on the steering wheel angular velocity at each collection moment; to calculate the vehicle speed mean square error index value based on the vehicle speed at each collection moment; to calculate the fatigue probability index value based on the driving time at each collection moment, thereby calculating the target index value corresponding to the target index type. This lays the foundation for the subsequent detection of whether the target object is in a fatigue state based on the target index value and the target BP neural network model.

[0037] Step S104, based on each target index value, a target BP neural network model is obtained by pre-training, and a driving state detection is performed on the target object to obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

[0038] In the specific implementation process of this step, the target BP neural network includes: an input layer, a hidden layer and an output layer in sequence. Specifically, each target index value can be input into the input layer of the target BP neural network, and the first fatigue state feature can be extracted based on the input layer; then, based on the first fatigue state feature, feature extraction is performed based on the hidden layer and the output layer in sequence to obtain the target fatigue state feature; finally, based on the target fatigue state feature, it is determined whether the target object is in a fatigue state or a non-fatigue state to obtain the detection result.

[0039] Another embodiment of the present application provides a driving state detection method. On the basis of the above embodiment, in this embodiment, driving behavior data of a target object is collected in real time at predetermined time intervals to obtain behavior data corresponding to each target indicator type, specifically including: collecting the steering wheel angle and / or steering wheel angular velocity of the target object in real time at predetermined time intervals to obtain the steering wheel angle and / or steering wheel angular velocity corresponding to the steering wheel indicator type; collecting the vehicle speed of the target object in real time at predetermined time intervals to obtain the vehicle speed corresponding to the vehicle indicator type; collecting the driving time of the target object in real time at predetermined time intervals to obtain the driving time corresponding to the fatigue probability type.

[0040] In this step, due to the different types of target indicators, the behavioral data involved in calculating the target indicators are also different, so it is necessary to collect corresponding behavioral data according to the type of target indicator. For example, if the target indicator type includes a steering wheel indicator type and a vehicle indicator type, then when collecting behavioral data, the steering wheel angle and / or steering wheel angular velocity, and vehicle speed will be collected at each collection moment, thereby obtaining several behavioral data sets including steering wheel angle and / or steering wheel angular velocity, and vehicle speed. For another example, if the target indicator type includes a vehicle indicator type and a fatigue probability type, then when collecting behavioral data, the vehicle speed and driving time will be collected at each collection moment, thereby obtaining several behavioral data sets including vehicle speed and driving time. In this step, by collecting various behavioral data, it is possible to lay the foundation for the subsequent calculation based on the behavioral data to obtain the corresponding indicator value.

[0041] Another embodiment of the present application provides a driving state detection method. On the basis of the above embodiment, each index type in this embodiment corresponds to at least one index. Specifically, for the steering wheel index type, it can specifically involve three target indicators, namely, the steering wheel angle mean square deviation index, the steering wheel crossing area index, and the steering wheel angular velocity mean square deviation index. For the vehicle index type, it mainly involves the vehicle speed mean square deviation index. For the fatigue probability index type, it mainly involves the probability index.

[0042] In this embodiment, when calculating the target indicator value corresponding to each target indicator type, the following method can be specifically adopted:

[0043] Regarding the steering wheel angle mean square error index: Specifically, the steering wheel angle mean square error index value corresponding to the steering wheel index type can be calculated based on the steering wheel angles in each historical behavior data set and the current behavior data set. Specifically, each steering wheel angle can be normalized first to obtain the processed first steering wheel angle; then the steering wheel angle mean square error index value is calculated based on each of the first steering wheel angles. Among them, the normalization method is to first calculate the average value of each steering wheel angle to obtain the average angle, then subtract each steering wheel angle from the average angle, and then divide it by the maximum steering wheel angle value. The specific calculation formula is: Among them, θ n ′ represents the first steering wheel angle value after normalization of the nth steering wheel angle, θ n Indicates the nth steering wheel angle value, Indicates the average angle value calculated based on each steering wheel angle, θ max Indicates the maximum steering wheel angle value among all steering wheel angles.

[0044] For the steering wheel crossing area index: Based on the steering wheel angles in each historical behavior data set and the current behavior data set, the steering wheel crossing area index values ​​corresponding to the steering wheel index type are calculated respectively. Specifically, each steering wheel angle is normalized first to obtain the processed first steering wheel angle, and then the trapezoidal area method can be used based on each first steering wheel angle to calculate the steering wheel crossing area S in the cumulative time. The specific calculation formula is:

[0045] Where S represents the steering wheel crossing area, θ i ′ is the normalized steering wheel angle at time i, θ i ' +1 is the normalized steering wheel angle at time i+1.

[0046] For the steering wheel angular velocity mean square error index: the steering wheel angular velocity mean square error index value corresponding to the steering wheel index type can be calculated based on the steering wheel angular velocities in each historical behavior data set and the current behavior data set. Specifically, each steering wheel angular velocity can be normalized first to obtain the processed first steering wheel angular velocity; then the steering wheel angular velocity mean square error index value can be calculated based on each of the first steering wheel angular velocities. Among them, the normalization process for each steering wheel angular velocity is similar to the above-mentioned normalization process for the steering wheel angle, and both first calculate the average value of each steering wheel angular velocity to obtain the average angular velocity, and then subtract each steering wheel angular velocity from the average angular velocity, and then divide it by the maximum steering wheel angular velocity. The specific calculation formula is: Among them, ω' n represents the first steering wheel angular velocity value after normalization of the nth steering wheel angular velocity, ω n Indicates the nth steering wheel angular velocity value, represents the average angular velocity value calculated based on the angular velocity of each steering wheel, ω max Indicates the maximum steering wheel angular velocity value among all steering wheel angular velocities.

[0047] For the vehicle speed index: based on the vehicle speed data in each historical behavior data set and the current behavior data set, the vehicle speed mean square error index value corresponding to the vehicle index type can be calculated. Specifically, each vehicle speed can be normalized to obtain the processed first vehicle speed; then the vehicle speed mean square error index value can be calculated based on each of the first vehicle speeds. Among them, the normalization process for each vehicle speed is similar to the above-mentioned normalization process, which first calculates the average value of each vehicle speed to obtain the average speed, then subtracts the speed of each vehicle from the average speed, and then divides it by the maximum square speed. The specific calculation formula is: Among them, v' n represents the first angular velocity value after normalization of the nth vehicle speed, vn represents the nth vehicle speed value, represents the average angular velocity value calculated based on the speed of each vehicle, v max Indicates the maximum vehicle speed value among various vehicle speeds.

[0048] For the fatigue probability index: the cumulative driving time can be obtained based on the driving time data in each historical behavior data set and the current behavior data set, so as to calculate the fatigue probability index value corresponding to the fatigue probability type based on the cumulative driving time. Specifically, the cumulative driving time can be obtained based on the driving time statistics; based on the cumulative driving time, a predetermined time-fatigue probability function is used to calculate the fatigue probability value corresponding to the cumulative driving time.

[0049] In this embodiment, by calculating any one or more of the above five index values, it is possible to facilitate the subsequent input of each index value into the target BP neural network model, thereby laying a foundation for accurately detecting the driving state of the target object.

[0050] Another embodiment of the present application provides a driving state detection method. Based on the above embodiment, in this embodiment, before determining the target indicator type, a target BP neural network model can also be pre-trained. The specific model training process is:

[0051] Step 1: When each sample subject drives the vehicle on the sample road section in each round, any one or more behavior data of steering wheel angle, steering wheel angular velocity, vehicle speed and driving time are collected in real time according to a predetermined sampling interval to obtain a sample data set of each sample subject under each driving round number;

[0052] In this step, the sample object refers to the driver / subject used to collect sample behavior data. Specifically, a number of subjects are first determined, and then a driving simulator is used to conduct a simulated driving experiment to collect driver control signals, and the collection frequency can be, for example, 0.1Hz. That is, each subject drives in the middle lane of the circular route / predetermined driving section, and the test drive is maintained at a speed of 110km / h for one lap. During the experiment, the subject will collect driving behavior data at a predetermined time interval during each lap of driving, thereby obtaining a behavior data set of each subject under each driving lap number, which contains behavior data corresponding to each collection time. For example, the subjects can be set to 80, 100 or 200 people, etc., and each subject drives 20 laps or 25 laps, etc., then there will be 2000 behavior data sets. In this step, the behavior data specifically includes: any one or more of the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time.

[0053] Step 2: Obtain the self-evaluation results of the driving status of each sample subject after completing a round of driving on the sample road section, and obtain the driving status label corresponding to each sample data set;

[0054] In this step, the subject can self-assess his / her fatigue state after each driving lap, thereby obtaining a driving state label of fatigue state or non-fatigue state.

[0055] Step 3, based on the subsets of various behavior data in the same sample data set, respectively, calculate and obtain any one or more sample index values ​​of the steering wheel angle mean square error index value, the steering wheel crossing area mean square error index value, the steering wheel angular velocity mean square error index value, the vehicle speed mean square error index value and the fatigue probability index value corresponding to the sample data set;

[0056] In this step, since the sample data set contains multiple behavior data at each collection time, the behavior data in the sample data set can be divided first, so as to divide the same behavior data into a group, so as to obtain behavior data subsets corresponding to various behavior data. For example, the sample data set contains the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time at the first collection time, the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time at the second collection time, the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time at the third collection time... the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time at the nth collection time. Thus, based on the four data types of steering wheel angle, steering wheel angular velocity, vehicle speed and driving time, the behavior data in the sample data set can be divided to obtain a first subset consisting of the steering wheel angle corresponding to each collection time, a second subset consisting of the direction angle corresponding to each collection time, a third subset consisting of the speed corresponding to each collection time, and a fourth subset consisting of the driving time corresponding to each collection time.

[0057] After obtaining subsets of each behavior data corresponding to each sample data set, each subset of the same sample data set calculates the steering wheel angle mean square deviation index value, steering wheel crossing area mean square deviation index value, steering wheel angular velocity mean square deviation index value, vehicle speed mean square deviation index value and fatigue probability index value corresponding to the sample data set.

[0058] That is, taking the sample data set as an example, which includes at least the sample data set A, for the sample data set A, the steering wheel angle mean square error index value can be calculated using the steering wheel angles at each acquisition time in the first subset of the sample data set A. The calculation process of the steering wheel angle mean square error index value is consistent with the principle of the steering wheel angle mean square error index calculation process in the above embodiment, firstly, each sample steering wheel angle in the first subset of the sample data set A is normalized, and then based on each processed first sample steering wheel angle, the steering wheel angle mean square error index value is calculated.

[0059] At the same time, the steering wheel angle at each acquisition moment in the first subset of sample data set A can also be used to calculate the steering wheel crossing area index value. The specific calculation process of the steering wheel crossing area index value is consistent with the principle of the steering wheel crossing area index calculation process in the above embodiment, and the steering wheel crossing area index value is also calculated based on the normalized first sample steering wheel angles.

[0060] Then, the steering wheel angular velocity in the second subset of the sample data set A can be used to calculate the steering wheel angular velocity mean square index value. The calculation process of the steering wheel angular velocity mean square error index value is consistent with the calculation process of the steering wheel angular velocity mean square error index value in the above embodiment. Specifically, each steering wheel angular velocity in the second subset is normalized to obtain the processed first sample angular velocity, and then the steering wheel angular velocity mean square error index value is calculated based on each first sample angular velocity.

[0061] Then, the vehicle speed index value can be calculated using the vehicle speeds of the third subset in the sample data set A; the calculation process of the vehicle speed mean square error index value is consistent with the principle of the vehicle speed mean square error index value calculation process in the above embodiment; each vehicle speed in the third subset is normalized to obtain the processed first sample vehicle speed; and then the vehicle speed mean square error index value is calculated based on each of the first sample vehicle speeds.

[0062] Finally, the cumulative driving time can be obtained based on the driving time of each fourth subset in the sample data set A, and then the fatigue probability index value corresponding to the sample data set A can be calculated based on the cumulative driving time and the pre-constructed time-fatigue probability function.

[0063] Specifically, the construction process of the time-fatigue probability function is as follows: based on the driving time in the fourth subset corresponding to each sample data set (sample data set A, sample data set B...), and the driving state label corresponding to each sample data set, the number of first sample objects corresponding to each driving time in the fatigue state is counted; based on the number of first sample objects in the fatigue state corresponding to each driving time and the total number of sample objects, a fatigue time function for calculating the fatigue probability index value is constructed. For example, there are 80 subjects, each subject drives 30 laps, and the total driving time of each subject is 450 minutes. In this way, the number of people in the fatigue state corresponding to each cumulative driving time can be counted. For example, no person is fatigued before 40 minutes of continuous driving, and two drivers are in a fatigued state when the continuous driving is in the time period of 40min to 60min. When the driving time lasts for 100min, the number of fatigued people reaches 20, and the number of fatigued people increases by 30 in the driving time period of 100min-140min, until all subjects are fatigued after 260min of continuous driving. In this way, the time-fatigue probability function F(x) can be constructed:

[0064]

[0065] Where x represents the cumulative driving time of the driver, and F(x) represents the fatigue probability value when the cumulative driving time is x.

[0066] Thus, the steering wheel angle mean square error index value, steering wheel crossing area index value, steering wheel angular velocity mean square error index value, vehicle speed mean square error index value and fatigue probability index value corresponding to sample data set A can be obtained. Similarly, the steering wheel angle mean square error index value, steering wheel crossing area index value, steering wheel angular velocity mean square error index value, vehicle speed mean square error index value and fatigue probability index value corresponding to sample data B, sample data set C and other sample data sets can be obtained, that is, the sample index value corresponding to each sample data set can be obtained.

[0067] Step 4: Based on the sample index values ​​corresponding to each sample data set and the driving state labels corresponding to each sample data set, the initial BP neural network model is trained using a back propagation training method to obtain the target BP neural network model.

[0068] In this step, each sample index value corresponding to the same sample data set and the driving state label corresponding to the sample data set can be used as a pair of learning samples for model training, thereby obtaining a number of learning samples corresponding to each sample data set.

[0069] In this embodiment, the BP neural network model can specifically be a neural network with three or more layers, including an input layer, a hidden layer and an output layer. After obtaining the learning samples corresponding to each sample data set, they are provided to the initial BP neural network model. After a pair of learning samples are provided to the network, the activation value of the neuron is transmitted from the input layer to the output layer through each intermediate layer, and the input response of the network is obtained between each neural unit in the output layer, and in accordance with the direction of reducing the error between the target output and the actual error, each connection weight is corrected layer by layer from the output layer through each hidden layer, and finally returns to the input layer. With the continuous propagation and correction of this error inverse, the accuracy of the network's response to the input pattern continues to increase, and when the final error reaches the set target value, the target BP neural network model is obtained. In this embodiment, the learning algorithm of the BP neural network model belongs to the global approximation method, and thus has good generalization ability and fault tolerance.

[0070] Specifically, when conducting model training, each sample data can be randomly divided to obtain a training set, a test set, and a validation set. That is, for example, there are 179 learning samples, and the 179 learning samples can be divided into three sets: training, validation, and testing, where the training data has 108 learning samples, the validation data has 35 learning samples, and the test data has 36 learning samples.

[0071] Then the transfer function of the hidden layer neurons of the network can be set to tansig (Tan-Sigmoid, hyperbolic tangent S-type transfer function), the transfer function of the output layer neurons can be set to logsig (Log-Sigmoid, logarithmic S-type transfer function), and the back-propagation training function can be set to traingdx.

[0072] Next, the initial BP neural network model is trained with the training set samples. After each training, the verification samples are introduced to calculate the error sum. If the output layer does not get the expected output, it will turn to back propagation and adjust the network weights and thresholds according to the prediction error until the training error continues to decrease while the verification error increases. The training is terminated and the target BP neural network model is generated. That is, the input layer of the initial BP neural network model is the indicator variable xi (i = 1, 2, ..., 5), which respectively represent the mean square error of the steering wheel angle, the steering wheel crossing area, the fatigue time function F (x), the mean square error of the steering wheel angular velocity, and the mean square error of the vehicle speed. The hidden layer contains 5 neurons, and the network output layer is the sample state, 0 represents the normal state, and 1 represents the fatigue state.

[0073] The driving state detection method in the embodiment of the present application obtains the indicator values ​​corresponding to the steering wheel indicator type, the vehicle indicator type and the fatigue probability type by calculating according to the driving behavior data, and then accurately detects whether the driver is in a fatigue state based on these indicator values ​​and the predetermined BP neural network model. In addition, since the target indicator types in the present application are the steering wheel indicator type, the vehicle indicator type and the fatigue probability type, that is, the collected data involves the steering wheel data, the vehicle data and the driving time data, it is possible to avoid the sensor from directly contacting the driver's body, and thus will not affect the driver's normal driving, and achieve accurate detection of the driver's state without affecting the driver's normal driving.

[0074] Another embodiment of the present application provides a driving state detection device, such as Figure 2 As shown, including:

[0075] The determination module 11 is used to determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time;

[0076] The collection module 12 is used to collect driving behavior data of the target object in real time according to a predetermined time interval, obtain behavior data corresponding to each target indicator type, and obtain a current behavior data set at the current collection time;

[0077] A calculation module 13 is used to calculate the behavior data of the same target indicator type based on the historical behavior data set at each historical collection moment and the current behavior data set, and obtain the target indicator value corresponding to each target indicator type;

[0078] The detection module 14 is used to obtain a target BP neural network model based on each target indicator value by pre-training, perform driving state detection on the target object, and obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

[0079] During the specific implementation of this embodiment, the acquisition module is specifically used to: collect the steering wheel angle and / or steering wheel angular velocity of the target object in real time at a predetermined time interval to obtain the steering wheel angle and / or steering wheel angular velocity corresponding to the steering wheel indicator type; collect the vehicle speed of the target object in real time at a predetermined time interval to obtain the vehicle speed corresponding to the vehicle indicator type; collect the driving time of the target object in real time at a predetermined time interval to obtain the driving time corresponding to the fatigue probability type.

[0080] During the specific implementation of this embodiment, the calculation module is specifically used to: calculate the steering wheel angle mean square deviation index value and / or the steering wheel crossing area index value corresponding to the steering wheel index type based on the steering wheel angles in each historical behavior data set and the current behavior data set; and / or, calculate the steering wheel angular velocity mean square deviation index value corresponding to the steering wheel index type based on the steering wheel angular velocity in each historical behavior data set and the current behavior data set; and / or, calculate the vehicle speed mean square deviation index value corresponding to the vehicle index type based on the vehicle speed in each historical behavior data set and the current behavior data set; and / or, obtain the cumulative driving time based on the driving time in each historical behavior data set and the current behavior data set, so as to calculate the fatigue probability index value corresponding to the fatigue probability index type based on the cumulative driving time.

[0081] In the specific implementation process of this embodiment, the calculation module is specifically used to: normalize each steering wheel angle to obtain the processed first steering wheel angle; calculate the steering wheel angle mean square error index value based on each first steering wheel angle, and / or calculate the steering wheel crossing area based on each first steering wheel angle using the trapezoidal area method.

[0082] In the specific implementation process of this embodiment, the calculation module is specifically used to: perform normalization processing on each steering wheel angular velocity to obtain the processed first steering wheel angular velocity; and calculate the steering wheel angular velocity mean square error index value based on each of the first steering wheel angular velocities.

[0083] In the specific implementation process of this embodiment, the calculation module is specifically used to: perform normalization processing on each vehicle speed to obtain a processed first vehicle speed;

[0084] The vehicle speed mean square error index value is calculated based on each of the first vehicle speeds.

[0085] In the specific implementation process of this embodiment, the calculation module is specifically used to obtain the cumulative driving time based on the statistics of each driving time; based on the cumulative driving time, a predetermined time-fatigue probability function is used to calculate and obtain the fatigue probability value corresponding to the cumulative driving time.

[0086] In the specific implementation process of this embodiment, the target BP neural network includes: an input layer, a hidden layer and an output layer in sequence. The detection module is specifically used to: input each target index value into the input layer of the target BP neural network, extract and obtain the first fatigue state feature based on the input layer; based on the first fatigue state feature, perform feature extraction based on the hidden layer and the output layer in sequence to obtain the target fatigue state feature; based on the target fatigue state feature, determine whether the target object is in a fatigue state or a non-fatigue state to obtain the detection result.

[0087] In the specific implementation process of this embodiment, the driving state detection device also includes a training module for pre-training to obtain the target BP neural network model, and the training module is used to: when each sample object drives the vehicle on the sample road section in each round, collect any one or more behavioral data of steering wheel angle, steering wheel angular velocity, vehicle speed and driving time in real time according to a predetermined sampling interval to obtain a sample data set of each sample object under each driving round; obtain the self-evaluation result of the driving state of each sample object after completing a round of driving on the sample road section, and obtain a driving state label corresponding to each sample data set; based on subsets of various behavioral data in the same sample data set, calculate and obtain any one or more sample index values ​​of steering wheel angle mean square error index value, steering wheel crossing area mean square error index value, steering wheel angular velocity mean square error index value, vehicle speed mean square error index value and fatigue probability index value corresponding to the sample data set; based on each sample index value corresponding to each sample data set and the driving state label corresponding to each sample data set, perform model training on the initial BP neural network model using a back propagation training method to obtain the target BP neural network model.

[0088] The device in this embodiment obtains the indicator values ​​corresponding to the steering wheel indicator type, the vehicle indicator type and the fatigue probability type by calculating the driving behavior data, and then can accurately detect whether the driver is in a fatigue state based on these indicator values ​​and the predetermined BP neural network model. In addition, since the target indicator types in this application are the steering wheel indicator type, the vehicle indicator type and the fatigue probability type, that is, the collected data involves the steering wheel data, the vehicle data and the driving time data, it is possible to avoid the sensor from directly contacting the driver's body, and thus will not affect the driver's normal driving, and achieve accurate detection of the driver's state without affecting the driver's normal driving.

[0089] Another embodiment of the present application provides an electronic device, such as Figure 3 As shown, at least a memory 1 and a processor 2 are included, the memory 1 stores a computer program, and the processor 2 implements the following method steps when executing the computer program on the memory 1:

[0090] Step 1: determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time;

[0091] Step 2: collecting driving behavior data of the target object in real time at a predetermined time interval, obtaining behavior data corresponding to each target indicator type, and obtaining a current behavior data set at the current collection time;

[0092] Step 3: Based on the historical behavior data set at each historical collection moment and the current behavior data set, the behavior data of the same target indicator type are calculated respectively to obtain the target indicator value corresponding to each target indicator type;

[0093] Step 4: Based on the target index values, a target BP neural network model is obtained by pre-training, and a driving state detection is performed on the target object to obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

[0094] The specific implementation process of the above method steps can be found in the embodiments of any of the above driving state detection methods, and this embodiment will not be repeated here.

[0095] The electronic device in this embodiment obtains the indicator values ​​corresponding to the steering wheel indicator type, the vehicle indicator type and the fatigue probability type by calculating according to the driving behavior data, and can then accurately detect whether the driver is in a fatigue state based on these indicator values ​​and the predetermined BP neural network model. In addition, since the target indicator types in this application are the steering wheel indicator type, the vehicle indicator type and the fatigue probability type, that is, the collected data involves the steering wheel data, the vehicle data and the driving time data, it is possible to avoid the sensor from directly contacting the driver's body, and thus will not affect the driver's normal driving, and achieve accurate detection of the driver's state without affecting the driver's normal driving.

[0096] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A driving state detection method, characterized in that: include: Determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time; Collect driving behavior data of the target object in real time at a predetermined time interval to obtain behavior data corresponding to each target indicator type, so as to obtain a current behavior data set at the current collection time; Based on the historical behavior data set at each historical collection moment and the current behavior data set, the behavior data of the same target indicator type are calculated respectively to obtain the target indicator value corresponding to each target indicator type; Based on each target index value, a target BP neural network model is obtained by pre-training, and a driving state detection is performed on the target object to obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.

2. The method according to claim 1, characterized in that The driving behavior data of the target object is collected in real time at a predetermined time interval to obtain behavior data corresponding to each target indicator type, specifically including: At predetermined time intervals, the steering wheel angle and / or steering wheel angular velocity of the target object is collected in real time to obtain the steering wheel angle and / or steering wheel angular velocity corresponding to the steering wheel indicator type; According to the predetermined time interval, the vehicle speed of the target object is collected in real time to obtain the vehicle speed corresponding to the vehicle index type; According to the predetermined time interval, the driving time of the target object is collected in real time to obtain the driving time corresponding to the fatigue probability type.

3. The method according to claim 1, characterized in that The historical behavior data set based on each historical collection moment and the current behavior data set are respectively calculated for the behavior data of the same target indicator type to obtain the target indicator value corresponding to each target indicator type, specifically including: Based on the steering wheel angles in each historical behavior data set and the current behavior data set, respectively calculate the steering wheel angle mean square error index value and / or the steering wheel crossing area index value corresponding to the steering wheel index type; and / or, calculating a steering wheel angular velocity mean square error index value corresponding to a steering wheel index type based on the steering wheel angular velocities in each historical behavior data set and the current behavior data set; and / or, calculating a vehicle speed mean square error index value corresponding to the vehicle index type based on the vehicle speeds in each historical behavior data set and the current behavior data set; And / or, based on the driving time in each historical behavior data set and the current behavior data set, the cumulative driving time is statistically obtained, so as to calculate the fatigue probability index value corresponding to the fatigue probability index type based on the cumulative driving time.

4. The method according to claim 3, characterized in that The method of calculating the steering wheel angle mean square error index value and / or the steering wheel crossing area mean square error index value corresponding to the steering wheel index type based on the steering wheel angles in each historical behavior data set and the current behavior data set includes: Normalizing each steering wheel angle to obtain a processed first steering wheel angle; The steering wheel angle mean square error index value is calculated based on each of the first steering wheel angles, and / or Based on each of the first steering wheel angles, the steering wheel crossing line area is calculated using the trapezoidal area method.

5. The method according to claim 3, characterized in that The calculating of the steering wheel angular velocity mean square error index value corresponding to the steering wheel index type based on the steering wheel angular velocity data in each historical behavior data set and the current behavior data set specifically includes: Normalizing each steering wheel angular velocity to obtain a processed first steering wheel angular velocity; The steering wheel angular velocity mean square error index value is calculated based on each of the first steering wheel angular velocities.

6. The method according to claim 3, characterized in that The calculating of the vehicle speed mean square error index value corresponding to the vehicle index type based on the vehicle speed data in each historical behavior data set and the current behavior data set specifically includes: Normalizing the speeds of each vehicle to obtain a processed first vehicle speed; The vehicle speed mean square error index value is calculated based on each of the first vehicle speeds.

7. The method according to claim 3, characterized in that Based on the driving time data in each historical behavior data set and the current behavior data set, the cumulative driving time is statistically obtained, so as to calculate the fatigue probability index value corresponding to the fatigue probability type based on the cumulative driving time, specifically including: Obtaining cumulative driving time based on each driving time statistics; A predetermined time-fatigue probability function is used based on the accumulated driving time to calculate a fatigue probability value corresponding to the accumulated driving time.

8. The method according to claim 1, characterized in that The target BP neural network includes: an input layer, a hidden layer and an output layer in sequence; The method of obtaining a target BP neural network model by pre-training based on each target index value, performing driving fatigue state detection on the target object, and obtaining a detection result of whether the driving fatigue state is a fatigue state or a non-fatigue state specifically includes: Inputting each target index value into the input layer of the target BP neural network, and extracting and obtaining a first fatigue state feature based on the input layer; Based on the first fatigue state feature, feature extraction is performed based on the hidden layer and the output layer in sequence to obtain a target fatigue state feature; Based on the target fatigue state feature, it is determined whether the target object is in a fatigue state or a non-fatigue state to obtain the detection result.

9. The method according to claim 1, characterized in that The method further includes pre-training to obtain the target BP neural network model, specifically including: When each sample subject drives the vehicle on the sample road section in each round, any one or more behavior data of the steering wheel angle, steering wheel angular velocity, vehicle speed and driving time are collected in real time according to a predetermined sampling interval to obtain a sample data set of each sample subject under each driving round number; Obtain the self-evaluation results of the driving status of each sample object after completing a round of driving on the sample road section, and obtain the driving status label corresponding to each sample data set; Based on subsets of various behavior data in the same sample data set, respectively, any one or more sample index values ​​of the steering wheel angle mean square error index value, the steering wheel crossing area mean square error index value, the steering wheel angular velocity mean square error index value, the vehicle speed mean square error index value, and the fatigue probability index value corresponding to the sample data set are calculated; Based on the sample index values ​​corresponding to the sample data sets and the driving state labels corresponding to the sample data sets, the initial BP neural network model is trained using a back propagation training method to obtain the target BP neural network model.

10. A driving state detection device, characterized in that: include: A determination module, used to determine a number of target indicator types; the target indicator types include any one or more of the following: a steering wheel indicator type, a vehicle indicator type, and a fatigue probability type corresponding to driving time; A collection module is used to collect driving behavior data of the target object in real time according to a predetermined time interval, obtain behavior data corresponding to each target indicator type, and obtain a current behavior data set at the current collection time; A calculation module, used to calculate the behavior data of the same target indicator type based on the historical behavior data set at each historical collection moment and the current behavior data set, and obtain the target indicator value corresponding to each target indicator type; The detection module is used to obtain a target BP neural network model based on each target indicator value by pre-training, perform driving state detection on the target object, and obtain a detection result of whether the driving state is a fatigue state or a non-fatigue state.