WO2021027410A1 - Driving behavior detection method and apparatus, computer device, and storage medium - Google Patents

Driving behavior detection method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2021027410A1
WO2021027410A1 PCT/CN2020/098827 CN2020098827W WO2021027410A1 WO 2021027410 A1 WO2021027410 A1 WO 2021027410A1 CN 2020098827 W CN2020098827 W CN 2020098827W WO 2021027410 A1 WO2021027410 A1 WO 2021027410A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
data
value
preset
driving
Prior art date
Application number
PCT/CN2020/098827
Other languages
French (fr)
Chinese (zh)
Inventor
成潜
张刘立
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021027410A1 publication Critical patent/WO2021027410A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/08Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to drivers or passengers
    • B60W40/09Driving style or behaviour
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data

Definitions

  • This application relates to the technical field of traffic safety in smart cities, and in particular to a driving behavior detection method, device, computer equipment and storage medium.
  • the inventor realizes that for drivers, drivers with dangerous driving behaviors often seldom realize that they have dangerous driving behaviors, which is likely to bring greater traffic safety hazards. Therefore, to avoid dangerous driving behaviors In the coming traffic safety hazards, it is particularly necessary to detect the driving behavior of drivers in real time.
  • the main purpose of this application is to provide a driving behavior detection method, device, computer equipment, and storage medium, which are designed to detect whether drivers have dangerous driving behaviors during the driving of the vehicle, so as to avoid traffic caused by dangerous driving behaviors. Security risks.
  • this application proposes a driving behavior detection method applied to a mobile terminal, and the method includes:
  • Real-time acquisition of driving data during vehicle driving where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
  • the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm the acceleration reference value in each driving state is calculated; and, according to the first angular acceleration data , The preset second characteristic value data and the first algorithm corresponding to the first angular acceleration data in each driving state, calculate the angular acceleration reference value in each driving state; and, according to the first azimuth angle data, the corresponding driving state
  • the preset third characteristic value data of the first azimuth angle data and the first algorithm calculate the azimuth reference value in each driving state, where the driving state includes a sharp turn state, a sharp acceleration state, and a sudden braking state;
  • the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth reference value in the same driving state is greater than the preset azimuth threshold, then It is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • this application also proposes a driving behavior detection device applied to a mobile terminal, and the device includes:
  • the first acquisition module is configured to acquire driving data during the driving of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
  • the first calculation module is configured to calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and Calculate the angular acceleration reference value in each driving state according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm; and, according to the first azimuth angle Data, the preset third characteristic value data corresponding to the first azimuth angle data in each driving state, and the first algorithm to calculate the azimuth reference value in each driving state.
  • the driving state includes a sharp turn state, a sharp acceleration state, and Sudden braking state;
  • the comparison module is used to compare the acceleration reference value and the preset acceleration threshold value in the same driving state, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively;
  • the determination module is used for when the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset
  • the azimuth angle threshold is set, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • this application also proposes a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements a driving behavior detection method when the computer program is executed.
  • the steps of the driving behavior detection method include:
  • Real-time acquisition of driving data during the driving of the vehicle where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
  • the angular acceleration reference in each driving state is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, calculate each of the driving states
  • the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • the present application also proposes a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a driving behavior detection method is implemented.
  • the steps of the driving behavior detection method include:
  • Real-time acquisition of driving data during the driving of the vehicle where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
  • the angular acceleration reference in each driving state is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, calculate each of the driving states
  • the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • the driving behavior detection method, device, computer equipment, and computer-readable storage medium obtained by the embodiments of the present application obtain driving data of a vehicle during driving in real time through a mobile terminal, and then combine preset characteristic value data of the vehicle in different driving states Through calculation, the acceleration reference value, angular acceleration reference value and azimuth angle reference value corresponding to each driving state can be obtained, and then the acceleration reference value, angular acceleration reference value, and azimuth angle reference value obtained by calculation are respectively and the corresponding preset Set the acceleration threshold, the preset angular acceleration threshold, and the preset azimuth threshold to compare one by one. It can detect in real time whether the driver has any dangerous driving behavior during the driving of the vehicle, and then when a dangerous driving behavior occurs, the Voice prompts and other methods are used to remind users to drive safely, thereby avoiding traffic safety hazards caused by dangerous driving behaviors.
  • FIG. 1 is a schematic flowchart of a driving behavior detection method in an implementation of this application
  • FIG. 2 is a schematic diagram of the structure of a driving behavior detection device in an implementation of the present application.
  • Fig. 3 is a schematic diagram of the structure of a computer device in an implementation of the present application.
  • an embodiment of the present application proposes a driving behavior detection method, which relates to the technical field of traffic safety in a smart city, and is applied to a mobile terminal.
  • the method includes:
  • S11 Acquire driving data during the driving of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
  • S12 Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, according to the first angle Acceleration data, preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm to calculate the angular acceleration reference value in each driving state; and, according to the first azimuth data, each driving state Download the preset third characteristic value data corresponding to the first azimuth data and the first algorithm to calculate the azimuth reference value in each driving state, where the driving state includes a sharp turn state, a sharp acceleration state, and a sudden braking state;
  • the mobile terminal may obtain the first acceleration data during the vehicle driving through the built-in linear acceleration sensor, obtain the first angular acceleration data during the vehicle travel through the built-in gyroscope, and use the built-in direction sensor Acquire the first azimuth angle data during the driving process of the vehicle, where the first acceleration data includes acceleration values in the three axial directions of X, Y, and Z, and the first angular acceleration data includes angular acceleration in the three axial directions of X, Y, and Z
  • the first azimuth angle data includes pitch angle (ie pitch value), yaw angle (ie yaw value) and roll angle (ie roll value).
  • the function of the preset first feature value data is to modify the collected first acceleration data in combination with the first algorithm to obtain the acceleration reference value for driving behavior detection, the driving state, and the first acceleration data
  • the function of the preset first eigenvalue data is to correct the collected first angular acceleration data in combination with the first algorithm to obtain
  • the acceleration reference value of the driving behavior detection, the driving state, the first angular acceleration data and the first characteristic value data have a one-to-one mapping relationship
  • the function of the preset first characteristic value data is to combine the first algorithm to the collected data
  • the first azimuth data is corrected to obtain an acceleration reference value used for driving behavior detection, and the driving state, the first azimuth data and the first characteristic value data have a one-to-one mapping relationship.
  • the acceleration in the sharp turn state The reference value is compared with the preset acceleration threshold in the emergency turning state, the angular acceleration reference value in the sharp turning state is compared with the preset angular acceleration threshold in the emergency turning state, the acceleration reference value in the emergency braking state is compared with the emergency braking
  • the preset acceleration threshold value of the state is compared, if the acceleration reference value in the sharp turn state is greater than the preset acceleration threshold value in the emergency turning state, and the angular acceleration reference value in the sharp turn state is greater than the preset angular acceleration threshold value in the emergency turning state , And the acceleration reference value in the emergency braking state is greater than the preset acceleration threshold for the emergency braking state, the mobile terminal can determine that the user currently has a dangerous driving behavior (that is, a dangerous driving behavior in a sharp turn); Use the known
  • the driving behavior detection method acquires the driving data of the vehicle in real time through the mobile terminal, and then combines the presets of the vehicle in different driving states (a sharp turn state, a sharp acceleration state, and a sudden braking state).
  • the characteristic value data is calculated to obtain the acceleration reference value, angular acceleration reference value, and azimuth angle reference value corresponding to each driving state, and then the calculated acceleration reference value, angular acceleration reference value, and azimuth angle reference value are respectively and
  • the corresponding preset acceleration threshold, preset angular acceleration threshold, and preset azimuth threshold are compared one by one, and it can detect in real time whether the driver has dangerous driving behavior during the driving of the vehicle, and then when dangerous driving behavior occurs, Voice prompts can be used to remind users to drive safely, thereby avoiding traffic safety hazards caused by dangerous driving behaviors.
  • the foregoing step of acquiring driving data during the vehicle driving process in real time wherein the driving data includes the first acceleration data, the first angular acceleration data, and the first azimuth angle data, includes:
  • abnormal signals in driving data can be processed to avoid abnormalities.
  • the interference caused by the signal can improve the accuracy of data and the accuracy of driving behavior detection.
  • the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the Y axis in a specific driving state.
  • the steps of calculating the reference value of acceleration in each driving state by using the data and the preset first algorithm include:
  • a parameter Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value for the emergency turning state and the second acceleration reference value for the emergency acceleration state And the third acceleration reference value for the emergency braking state,
  • a parameter is the acceleration reference value under a specific driving state
  • a x1 is the acceleration value of the X axis in the first acceleration data
  • a y1 is The acceleration value of the Y axis in the first acceleration data
  • a 21 is the acceleration value of the Z axis in the first acceleration data
  • A is the first characteristic value coefficient
  • B is the second characteristic value coefficient
  • C is the third characteristic value coefficient.
  • the above-mentioned specific driving state is a sharp turn state, or a rapid acceleration state, or a sudden braking state; when the specific driving state is a sharp turn state, the above-mentioned first calculation formula can be used to calculate the emergency turning state
  • the acceleration reference value ie, the first acceleration reference value
  • the acceleration reference value for the emergency acceleration state can be calculated using the above first calculation formula.
  • the acceleration reference value for the emergency braking state that is, the third acceleration reference value
  • the angular acceleration reference value in each driving state is calculated.
  • the calculation process, and the foregoing calculation process of calculating the reference value of the azimuth angle in each driving state based on the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each driving state, and the first algorithm Similar to the calculation of the acceleration reference value in each driving state by using the first calculation formula described above (that is, the relevant parameter in the first calculation formula is changed to the parameter corresponding to the angular acceleration data or the corresponding azimuth angle data), those skilled in the art Understandably, this will not be repeated here.
  • the method before the step of real-time obtaining driving data during the driving of the vehicle, the method further includes:
  • S10a Collect acceleration sample data in each driving state within a predetermined time period according to a predetermined frequency, where there are at least three sets of acceleration sample data in each driving state;
  • a is always the total acceleration value in a specific driving state
  • a x is a specific driving
  • a y is the acceleration value of the Y axis in the acceleration sample data in the specific driving state
  • a z is the acceleration value of the Z axis in the acceleration sample data in the specific driving state
  • S10c Perform Fourier transform on each group of acceleration sample data in each driving state and multiple sets of corresponding total acceleration values to obtain multiple sets of first frequency domain data in each driving state and multiple sets of corresponding total acceleration values. Two frequency domain data;
  • S10d Perform spectrum analysis on each group of first frequency domain data and each group of second frequency domain data to obtain multiple sets of first feature values corresponding to acceleration sample data in each driving state and multiple sets of second features corresponding to total acceleration values value;
  • A is the first eigenvalue coefficient
  • B is the second eigenvalue coefficient
  • C is the third eigenvalue coefficient
  • x is the acceleration of the X axis in a specific driving state
  • y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state
  • z is the first characteristic value corresponding to the acceleration value of the Z axis in a specific driving state
  • Max is the second characteristic value corresponding to the total acceleration value in a specific driving state.
  • the vehicle before using the first acceleration data, first angular acceleration data, and first azimuth angle data collected in real time during the driving process of the vehicle for driving behavior detection, it can be in a sharp turn, a sharp acceleration, and a sharp brake.
  • the built-in acceleration sensor of the mobile terminal In the state, use the built-in acceleration sensor of the mobile terminal to collect acceleration sample data.
  • the above-mentioned predetermined time can be 2 seconds, 3 seconds, 4 seconds, etc., and there is no specific restriction on this; the predetermined frequency can be 1 time per 0.5 second, 1 time per second There are no specific restrictions on this; for example, three sets of acceleration sample data of the vehicle in a sharp turn and three sets of acceleration samples in a sharp acceleration state can be collected at a frequency of 1 time per second within 3 seconds. Data and three sets of acceleration sample data in the sudden braking state.
  • the three sets of acceleration sample data in the sharp turn state are respectively substituted into the above second formula for calculation, and the three sets of total acceleration values in the sharp turn state can be obtained.
  • the process of the total acceleration value in the braking state is similar to the foregoing, which can be understood by those skilled in the art and will not be repeated here.
  • the specific representation form of the first frequency domain data and the second frequency domain data is a spectrogram.
  • the acceleration sample data collected in a sharp turn state is used for description, and the acceleration sample in the emergency turn state
  • the data includes the acceleration values of X, Y, and Z axes.
  • the corresponding spectrograms of X, Y, and Z axes can be obtained.
  • the spectrogram corresponding to the total acceleration value ie the second frequency domain data
  • the relevant process of the Fourier transformation of the acceleration sample data and the total acceleration value in the state and in the sudden braking state is similar to the foregoing, and will not be repeated here.
  • the first frequency domain data and the second frequency domain data in the sharp turning state are respectively analyzed by the frequency spectrum as an example.
  • the frequency spectrum corresponding to the three axes of X, Y, and Z The graph performs spectrum analysis, and the eigenvalues corresponding to the acceleration values of the X, Y, and Z axes (ie the first eigenvalue) can be extracted, and the total acceleration can be extracted by performing spectrum analysis on the spectrogram corresponding to the total acceleration value
  • the eigenvalue corresponding to the value i.e., the second eigenvalue
  • the above-mentioned first eigenvalue and the second eigenvalue refer to the maximum energy density (ie the peak value in the spectrogram).
  • the related processes of performing spectrum analysis on the first frequency domain data and the second frequency domain data below are similar to the foregoing, and will not be repeated here.
  • the specific driving state is a sharp turn state, or a sharp acceleration state, or a sudden braking state; when the specific driving state is a sharp turn state, the three sets of first characteristic values and the three sets of the emergency turning state
  • the second eigenvalue is substituted into the above-mentioned first calculation formula to solve the equation group, and the first eigenvalue coefficient, the second eigenvalue coefficient and the third eigenvalue coefficient for the emergency turning state can be calculated;
  • the specific driving state is rapid acceleration In the state, the three sets of first eigenvalues and three sets of second eigenvalues for the emergency acceleration state are substituted into the above-mentioned first calculation formula to solve the equation set, and the first eigenvalue coefficients for the emergency acceleration state,
  • the method before the step of real-time obtaining driving data during the driving of the vehicle, the method further includes:
  • S102 Calculate a fourth acceleration reference value corresponding to the start state of the stroke according to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm; and, according to The second angle acceleration data and the preset step counting algorithm calculate the number of exercise steps of the user; and, according to the second azimuth angle data, the preset fifth characteristic value data corresponding to the second azimuth angle data in the state of using the mobile terminal And the second algorithm to calculate the azimuth reference value corresponding to the state of the mobile terminal;
  • the above S11 is executed to obtain driving data of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data.
  • the specified time length can be 15 seconds, 16 seconds, 17 seconds, etc., and there is no specific limitation on this; specifically, the mobile terminal can use the built-in linear acceleration sensor, gyroscope, and direction sensor within the specified time period (such as 15 seconds) continuously collect multiple groups (such as 15 groups) of second acceleration data, second angular acceleration data, and second azimuth angle data of the user according to a preset frequency (such as 1 time per second), where the second acceleration data includes X, Y, and Z axis acceleration values, the second angular acceleration data includes the X, Y, Z axis angular acceleration values, the second azimuth angle data includes the pitch angle (ie pitch value), yaw angle (Ie yaw value) and roll angle (ie roll value).
  • a preset frequency such as 1 time per second
  • the calculation process of the fourth acceleration reference value is as follows:
  • the function of the preset fourth characteristic value data is to correct the collected second acceleration data in combination with the second algorithm to obtain Whether the user is in the fourth acceleration reference value at the beginning of the stroke
  • the function of the above-mentioned preset fifth characteristic value data is to correct the collected second azimuth angle data in combination with the second algorithm to obtain the data used to detect whether the user is in use or not
  • the reference value of the azimuth angle of the terminal state calculate the user's movement steps within the specified time based on the collected multiple sets of second angle acceleration data, that is, use the preset step counting algorithm to calculate the gyroscope data to calculate the movement steps Since it is a relatively mature existing technology, it will not be repeated here.
  • the mobile terminal can determine that the user is in the starting state of driving according to this; if the number of exercise steps is greater than the preset threshold, move The terminal can determine that the user is walking; if the azimuth reference value is greater than the preset azimuth threshold, the mobile terminal can determine that the user is in the state of using the mobile terminal; generally, because the user is driving, it will The mobile terminal is placed in a specific position in the car, such as on the seat, fixed next to the driver's seat with a mobile phone holder, etc., that is, the mobile terminal is in the placed state rather than being operated by the user.
  • the mobile terminal can determine that the user is currently driving, that is, if the fourth acceleration reference value is greater than the preset.
  • the acceleration threshold, the number of exercise steps is greater than the preset step threshold, and the azimuth reference value is greater than the preset azimuth threshold, the mobile terminal can determine that the user is currently driving, and then can make subsequent judgments Whether the user has operations related to dangerous driving behavior.
  • the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the starting state of the stroke, and corresponding to the acceleration value of the Y axis in the starting state of the stroke.
  • the step of calculating the fourth acceleration reference value corresponding to the start state of the stroke by using the data and the preset second algorithm includes:
  • a is the fourth acceleration reference value
  • a x2 is the acceleration value of the X axis in the second acceleration data
  • a y2 Is the acceleration value of the Y axis in the second acceleration data
  • a z2 is the acceleration value of the Z axis in the second acceleration data
  • D is the fourth eigenvalue coefficient
  • E is the fifth eigenvalue coefficient
  • F is the sixth eigenvalue coefficient
  • n is the specified duration.
  • the mobile terminal uses the built-in linear acceleration sensor to continuously collect multiple sets of second acceleration data (such as 15 consecutive sets) at a preset frequency (such as 1 time per second) within a specified time period (such as 15 seconds).
  • the acceleration value of the X axis, the acceleration value of the Y axis and the acceleration value of the Z axis) are substituted into the above-mentioned third calculation formula to solve the equation group, and then the fourth acceleration reference value can be calculated.
  • the driving data further includes GPS data, and the GPS data includes speed information, acceleration information, and azimuth angle information.
  • S14A determines whether the speed value in the speed information is greater than a preset speed threshold and whether the azimuth angle value in the azimuth angle information is greater than the preset azimuth angle threshold in a sharp turn;
  • S14B Determine whether the user currently has dangerous driving behavior and the type of dangerous driving behavior according to the judgment result.
  • the mobile terminal can collect GPS data during the driving process of the vehicle in real time by turning on the built-in GPS sensor.
  • the data collected by the GPS sensor is used for further confirmation. Since the data collected by the GPS sensor is more accurate than the data collected by the acceleration sensor, gyroscope, and direction sensor, when using the acceleration sensor, When the data collected by the gyroscope and the direction sensor predicts that the user currently has dangerous driving behavior, the GPS data can be used for further confirmation, which can improve the accuracy of driving behavior detection;
  • the mobile terminal can determine that the user currently has a dangerous driving behavior and The type of the dangerous driving behavior is a sharp turn; if the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold for the emergency acceleration state, the mobile terminal can determine that the user currently has a dangerous driving behavior and the dangerous The type of driving behavior is rapid acceleration; if the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold for the emergency braking state, the mobile terminal can determine that the user currently has a dangerous driving behavior and the dangerous driving behavior The type is sudden braking.
  • the method further includes:
  • S16 Associate the type of dangerous driving behavior with location information and time information to generate associated information.
  • the type of the dangerous driving behavior is associated with the current location information and time information to generate the associated information, so that the user can see clearly by viewing the associated information after driving. Knowing what kind of dangerous driving behaviors have occurred when and where, so that users can conduct serious self-reflection learning after driving to avoid the recurrence of dangerous driving behaviors.
  • the method further includes:
  • S17 Determine whether the user is currently in a parking state according to the first angular acceleration data
  • the first angular acceleration data during the driving process of the vehicle can be collected in real time through the built-in gyroscope of the mobile terminal, and then the number of movement steps can be calculated according to the first angular acceleration data, and then it can be judged whether the number of movement steps exceeds The preset number of steps threshold. If it is, it can be judged that the user is walking, so that it can be judged that the user is currently in a parking state.
  • the driving track record chart can be generated according to the driving track recorded by the GPS sensor, and the associated information can be marked on the corresponding position in the driving track record chart, so that the user can view by viewing after driving.
  • the driving trajectory record chart can be more intuitive and clear to know when and where what dangerous driving behaviors have occurred, so that users can conduct serious self-reflection learning after driving to avoid the recurrence of dangerous driving behaviors .
  • the method further includes:
  • the above-mentioned RBF neural network model is a model that is trained to convergence through training samples in advance.
  • the training process is described as follows: First, obtain training samples, where the training samples include input data and output data, and the input data is Acceleration sample training data, angular acceleration sample training data, and azimuth angle sample training data collected in a sharp turn, rapid acceleration, and sudden braking.
  • the output data is the acceleration threshold and corresponding angle of the corresponding acceleration data in each state
  • the angular acceleration threshold of the acceleration data and the azimuth threshold of the corresponding azimuth angle data is trained through the training samples to obtain the RBF neural network model with better network parameters.
  • the built-in acceleration sensor, gyroscope and direction sensor of the mobile terminal can be used in the sharp turn state to collect the sharp turn state.
  • Acceleration sample data, angular acceleration sample data and azimuth angle sample data similarly, the acceleration sensor, gyroscope and direction sensor built in the mobile terminal can be used to collect acceleration sample data and angular acceleration sample in the rapid acceleration state.
  • Data and azimuth sample data similarly, the acceleration sensor, gyroscope and direction sensor built in the mobile terminal can be used to collect acceleration sample data, angular acceleration sample data and azimuth sample data in the sudden braking state, respectively.
  • the acceleration sample data, angular acceleration sample data, and azimuth angle sample data collected in each state are input into the preset RBF neural network model, and the preset acceleration threshold and preset angle for the emergency turning state in S13 can be obtained.
  • the angle threshold in the same way, the acceleration threshold and the azimuth angle threshold in S103 can be obtained.
  • This application also proposes a driving behavior detection device applied to a mobile terminal, and the device includes:
  • the first acquisition module 11 is configured to acquire driving data during the driving process of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
  • the first calculation module 12 is configured to calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; And, according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm, the angular acceleration reference value in each driving state is calculated; and, according to the first orientation Angle data, preset third characteristic value data corresponding to the first azimuth angle data in each driving state and the first algorithm to calculate the reference value of the azimuth angle in each driving state, where the driving state includes a sharp turn state and a sharp acceleration state And sudden braking;
  • the comparison module 13 is configured to compare the acceleration reference value and the preset acceleration threshold value in the same driving state, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively;
  • the determination module 14 is used for when the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold.
  • the azimuth angle threshold is set, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • the aforementioned first obtaining module 11 includes:
  • Acquisition unit for real-time acquisition of acceleration data, angular acceleration data and azimuth angle data during vehicle driving
  • the noise reduction processing unit is used to perform low-pass filtering processing on the acceleration data to obtain the first acceleration data, and to perform band-pass filtering processing on the angular acceleration data and the azimuth angle data respectively to obtain the first angular acceleration data and the first azimuth angle data.
  • the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the Y axis in a specific driving state.
  • the above-mentioned first calculation module 12 includes:
  • the above driving behavior detection device further includes:
  • the first collection module is configured to collect acceleration sample data in each driving state within a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each driving state;
  • the second calculation module is used to use the preset second calculation formula Calculate each group of acceleration sample data in each driving state to obtain multiple sets of corresponding total acceleration values.
  • a is always the total acceleration value in a specific driving state
  • a x is a specific driving
  • a y is the acceleration value of the Y axis in the acceleration sample data in the specific driving state
  • a z is the acceleration value of the Z axis in the acceleration sample data in the specific driving state
  • the data transformation module is used to perform Fourier transform on each set of acceleration sample data and multiple sets of corresponding total acceleration values in each driving state to obtain multiple sets of first frequency domain data and multiple sets of corresponding total acceleration values in each driving state.
  • the spectrum analysis module is used to perform spectrum analysis on each group of first frequency domain data and each group of second frequency domain data to obtain multiple groups of first characteristic values corresponding to acceleration sample data in each driving state and multiple groups of corresponding total acceleration values The second characteristic value;
  • the characteristic value coefficient and the third characteristic value coefficient where in the second calculation formula, A is the first characteristic value coefficient, B is the second characteristic value coefficient, C is the third characteristic value coefficient, and x is in a specific driving state
  • y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state
  • z is the acceleration value corresponding to the Z axis in a specific driving state
  • Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
  • the above driving behavior detection device further includes:
  • the second collection module is configured to continuously collect multiple sets of motion data of the user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth angle data;
  • the fourth calculation module is used to calculate the fourth acceleration reference corresponding to the stroke start state according to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm And, according to the second angle acceleration data and the preset step counting algorithm, calculate the user's movement steps; and, according to the second azimuth data, the preset corresponding to the second azimuth data in the state of using the mobile terminal
  • the fifth characteristic value data and the second algorithm calculate the azimuth reference value corresponding to the state of the mobile terminal;
  • the comparison module is used to compare the fourth acceleration reference value with the preset acceleration threshold, the number of motion steps to compare with the preset step threshold, and the azimuth reference value to compare with the preset azimuth threshold. Compare, and judge whether the user is currently driving according to the result of the comparison;
  • the above-mentioned first acquisition module 11 is specifically configured to acquire driving data of the vehicle in real time when the user is currently driving, wherein the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data.
  • the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the starting state of the stroke, and corresponding to the acceleration value of the Y axis in the starting state of the stroke.
  • the second calculation unit is used to use a preset third calculation formula Calculate the second acceleration data to obtain the fourth acceleration reference value, where, in the third calculation formula, the four parameters a is the fourth acceleration reference value, a x2 is the acceleration value of the X axis in the second acceleration data, a y2 Is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth eigenvalue coefficient, E is the fifth eigenvalue coefficient, F is the sixth eigenvalue coefficient, n is the specified duration.
  • a is the fourth acceleration reference value
  • a x2 is the acceleration value of the X axis in the second acceleration data
  • a y2 Is the acceleration value of the Y axis in the second acceleration data
  • a z2 is the acceleration value of the Z axis in the second acceleration data
  • D is the fourth eigenvalue coefficient
  • E is the fifth eigenvalue coefficient
  • the driving data further includes GPS data
  • the GPS data includes speed information, acceleration information, and azimuth angle information.
  • the above-mentioned driving behavior detection device further includes:
  • the first judgment module is used for judging whether the speed value in the speed information is greater than the preset speed threshold and the azimuth angle value in the azimuth angle information is greater than the predicted value in the sharp turn when the user currently has a dangerous driving behavior of a sharp turn.
  • Set the azimuth threshold it is also used when the user currently has a dangerous driving behavior of rapid acceleration, to determine whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold in the rapid acceleration state; also used when When the user currently has a dangerous driving behavior of sudden braking, it is judged whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold in the sudden braking state;
  • the determination module is used to determine whether the user currently has dangerous driving behavior and the type of dangerous driving behavior according to the judgment result.
  • the above driving behavior detection device further includes:
  • the second acquisition module is used to acquire current location information and time information when the user currently has dangerous driving behavior
  • the association module is used to associate the type of dangerous driving behavior with location information and time information to generate associated information.
  • the above driving behavior detection device further includes:
  • the second judgment module is used to judge whether the user is currently in a parking state according to the first angular acceleration data
  • the generating module is used to generate a driving track record chart when the user is currently in a parking state, and mark the associated information on the corresponding position in the driving track record chart.
  • the above-mentioned driving behavior detection device further includes:
  • the data processing module is used to input the acceleration sample data, angular acceleration sample data and azimuth sample data obtained in each driving state into the preset RBF neural network model for data processing, and output the above predictions in each driving state Set the acceleration threshold, the above-mentioned preset angular acceleration threshold and the above-mentioned preset azimuth angle threshold.
  • an embodiment of the present application also provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 3.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the computer equipment database is used to store driving behavior detection methods and programs.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • Real-time acquisition of driving data during the driving of the vehicle where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
  • the angular acceleration reference in each driving state is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states
  • the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • the embodiment of the present application also proposes a computer-readable storage medium.
  • the storage medium is a volatile storage medium or a non-volatile storage medium, and a computer program is stored thereon.
  • a driving In a behavior detection method the steps of the driving behavior detection method include:
  • Real-time acquisition of driving data during the driving of the vehicle where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
  • the angular acceleration reference in each driving state is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states
  • the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • SDRAM dual-rate data rate SDRAM
  • SSRSDRAM dual-rate data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mathematical Physics (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

A driving behavior detection method and apparatus, a computer device, and a storage medium. The method comprises: obtaining first acceleration data, first angular acceleration data, and first azimuth angle data in a vehicle running process in real time; calculating an acceleration reference value, an angular acceleration reference value, and an azimuth angle reference value under each running state according to the first acceleration data, the first angular acceleration data, the first azimuth angle data, preset first characteristic value data, preset second characteristic value data, preset third characteristic value data, and a first algorithm; respectively comparing the acceleration reference value with a preset acceleration threshold, the angular acceleration reference value with a preset angular acceleration threshold, and the azimuth angle reference value with a preset azimuth angle threshold under the same running state; and determining whether a user currently conducts a dangerous driving behavior according to all the comparative results. The driving behavior detection method can detect whether a driver conducts a dangerous driving behavior.

Description

驾驶行为检测方法、装置、计算机设备及存储介质Driving behavior detection method, device, computer equipment and storage medium
本申请要求于2019年8月14日提交中国专利局、申请号为201910750554.6,发明名称为“驾驶行为检测方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on August 14, 2019, the application number is 201910750554.6, and the invention title is "driving behavior detection method, device, computer equipment and storage medium", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及到智慧城市中的交通安全技术领域,特别是涉及到一种驾驶行为检测方法、装置、计算机设备及存储介质。This application relates to the technical field of traffic safety in smart cities, and in particular to a driving behavior detection method, device, computer equipment and storage medium.
背景技术Background technique
近年来,随着汽车行业的发展和人们生活水平的提高,居民汽车持有量持续增长,但随之而来的交通事故也频繁发生,诸如车辆的追尾碰撞、侧翻等,而这些交通事故背后的原因大部分都是由于驾驶人员的危险驾驶行为而导致的。In recent years, with the development of the automobile industry and the improvement of people’s living standards, the number of residents’ car ownership has continued to increase, but subsequent traffic accidents have also occurred frequently, such as rear-end collisions and rollovers of vehicles, and these traffic accidents Most of the reasons behind are due to the dangerous driving behavior of drivers.
发明人意识到,针对驾驶人员而言,存在危险驾驶行为的驾驶人员往往很少会意识到自己存在危险驾驶行为,从而容易带来较大的交通安全隐患,因此,为避免危险驾驶行为所带来的交通安全隐患,实时对驾驶人员的驾驶行为进行检测就显得尤为必要了。The inventor realizes that for drivers, drivers with dangerous driving behaviors often seldom realize that they have dangerous driving behaviors, which is likely to bring greater traffic safety hazards. Therefore, to avoid dangerous driving behaviors In the coming traffic safety hazards, it is particularly necessary to detect the driving behavior of drivers in real time.
技术问题technical problem
本申请的主要目的为提供一种驾驶行为检测方法、装置、计算机设备及存储介质,旨在检测驾驶人员在车辆行驶的过程中是否存在危险驾驶的行为,以避免危险驾驶行为所带来的交通安全隐患。The main purpose of this application is to provide a driving behavior detection method, device, computer equipment, and storage medium, which are designed to detect whether drivers have dangerous driving behaviors during the driving of the vehicle, so as to avoid traffic caused by dangerous driving behaviors. Security risks.
技术解决方案Technical solutions
第一方面,本申请提出一种驾驶行为检测方法,应用于移动终端上,该方法包括:In the first aspect, this application proposes a driving behavior detection method applied to a mobile terminal, and the method includes:
实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during vehicle driving, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
根据第一加速度数据、各个行驶状态下对应第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个行驶状态下的加速度参考值;以及,根据第一角加速度数据、各个行驶状态下对应第一角加速度数据的预设第二特征值数据和第一算法,计算出各个行驶状态下的角加速度参考值;以及,根据第一方位角数据、各个行驶状态下对应第一方位角数据的预设第三特征值数据和第一算法,计算出各个行驶状态下的方位角参考值,其中,行驶状态包括急转弯状态、急加速状态和急刹车状态;According to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm, the acceleration reference value in each driving state is calculated; and, according to the first angular acceleration data , The preset second characteristic value data and the first algorithm corresponding to the first angular acceleration data in each driving state, calculate the angular acceleration reference value in each driving state; and, according to the first azimuth angle data, the corresponding driving state The preset third characteristic value data of the first azimuth angle data and the first algorithm calculate the azimuth reference value in each driving state, where the driving state includes a sharp turn state, a sharp acceleration state, and a sudden braking state;
分别将相同行驶状态下的加速度参考值与预设加速度阈值进行比较、角加速度参考值与预设角加速度阈值进行比较、方位角参考值与预设方位角阈值进行比较;Compare the acceleration reference value with the preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
若相同行驶状态下的加速度参考值大于预设加速度阈值,且相同行驶状态下的角加速度参考值大于预设角加速度阈值,且相同行驶状态下的方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth reference value in the same driving state is greater than the preset azimuth threshold, then It is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
第二方面,本申请还提出一种驾驶行为检测装置,应用于移动终端上,该装 置包括:In the second aspect, this application also proposes a driving behavior detection device applied to a mobile terminal, and the device includes:
第一获取模块,用于实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;The first acquisition module is configured to acquire driving data during the driving of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
第一计算模块,用于根据第一加速度数据、各个行驶状态下对应第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个行驶状态下的加速度参考值;以及,根据第一角加速度数据、各个行驶状态下对应第一角加速度数据的预设第二特征值数据和第一算法,计算出各个行驶状态下的角加速度参考值;以及,根据第一方位角数据、各个行驶状态下对应第一方位角数据的预设第三特征值数据和第一算法,计算出各个行驶状态下的方位角参考值,其中,行驶状态包括急转弯状态、急加速状态和急刹车状态;The first calculation module is configured to calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and Calculate the angular acceleration reference value in each driving state according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm; and, according to the first azimuth angle Data, the preset third characteristic value data corresponding to the first azimuth angle data in each driving state, and the first algorithm to calculate the azimuth reference value in each driving state. The driving state includes a sharp turn state, a sharp acceleration state, and Sudden braking state;
比较模块,用于分别将相同行驶状态下的加速度参考值与预设加速度阈值进行比较、角加速度参考值与预设角加速度阈值进行比较、方位角参考值与预设方位角阈值进行比较;The comparison module is used to compare the acceleration reference value and the preset acceleration threshold value in the same driving state, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively;
判定模块,用于当相同行驶状态下的加速度参考值大于预设加速度阈值,且相同行驶状态下的角加速度参考值大于预设角加速度阈值,且相同行驶状态下的方位角参考值大于预设方位角阈值时,则判定用户当前存在危险驾驶行为,其中,危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。The determination module is used for when the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset When the azimuth angle threshold is set, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
第三方面,本申请还提出一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:In a third aspect, this application also proposes a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements a driving behavior detection method when the computer program is executed. The steps of the driving behavior detection method include:
实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculating the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, calculate each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state and a sudden braking state;
分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
第四方面,本申请还提出一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:In a fourth aspect, the present application also proposes a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a driving behavior detection method is implemented. The steps of the driving behavior detection method include:
实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值; 以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculating the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, calculate each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state and a sudden braking state;
分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
有益效果Beneficial effect
本申请实施例提供的驾驶行为检测方法、装置、计算机设备及计算机可读存储介质,通过移动终端实时获取车辆行驶过程中的驾驶数据,进而通过结合车辆在不同行驶状态下的预设特征值数据进行计算,可获得各个行驶状态下对应的加速度参考值、角加速度参考值和方位角参考值,然后再通过将计算获得的加速度参考值、角加速度参考值、方位角参考值分别与对应的预设加速度阈值、预设角加速度阈值、预设方位角阈值一一进行比较,可实时检测出驾驶人员在车辆行驶的过程中是否存在危险驾驶的行为,进而当发生危险驾驶行为时,可通过发出语音提示等方式来提醒用户安全驾驶,从而可避免危险驾驶行为所带来的交通安全隐患。The driving behavior detection method, device, computer equipment, and computer-readable storage medium provided by the embodiments of the present application obtain driving data of a vehicle during driving in real time through a mobile terminal, and then combine preset characteristic value data of the vehicle in different driving states Through calculation, the acceleration reference value, angular acceleration reference value and azimuth angle reference value corresponding to each driving state can be obtained, and then the acceleration reference value, angular acceleration reference value, and azimuth angle reference value obtained by calculation are respectively and the corresponding preset Set the acceleration threshold, the preset angular acceleration threshold, and the preset azimuth threshold to compare one by one. It can detect in real time whether the driver has any dangerous driving behavior during the driving of the vehicle, and then when a dangerous driving behavior occurs, the Voice prompts and other methods are used to remind users to drive safely, thereby avoiding traffic safety hazards caused by dangerous driving behaviors.
附图说明Description of the drawings
图1是本申请一实施中驾驶行为检测方法的流程示意图;FIG. 1 is a schematic flowchart of a driving behavior detection method in an implementation of this application;
图2是本申请一实施中驾驶行为检测装置的结构示意图;2 is a schematic diagram of the structure of a driving behavior detection device in an implementation of the present application;
图3是本申请一实施中计算机设备的结构示意图。Fig. 3 is a schematic diagram of the structure of a computer device in an implementation of the present application.
本发明的最佳实施方式The best mode of the invention
参照图1,本申请实施例提出一种驾驶行为检测方法,涉及到智慧城市中的交通安全技术领域,应用于移动终端上,该方法包括:1, an embodiment of the present application proposes a driving behavior detection method, which relates to the technical field of traffic safety in a smart city, and is applied to a mobile terminal. The method includes:
S11,实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;S11: Acquire driving data during the driving of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
S12,根据第一加速度数据、各个行驶状态下对应第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个行驶状态下的加速度参考值;以及,根据第一角加速度数据、各个行驶状态下对应第一角加速度数据的预设第二特征值数据和第一算法,计算出各个行驶状态下的角加速度参考值;以及,根据第一方位角数据、各个行驶状态下对应第一方位角数据的预设第三特征值数据和第一算法,计算出各个行驶状态下的方位角参考值,其中,行驶状态包括急转弯状态、急加速状态和急刹车状态;S12: Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, according to the first angle Acceleration data, preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm to calculate the angular acceleration reference value in each driving state; and, according to the first azimuth data, each driving state Download the preset third characteristic value data corresponding to the first azimuth data and the first algorithm to calculate the azimuth reference value in each driving state, where the driving state includes a sharp turn state, a sharp acceleration state, and a sudden braking state;
S13,分别将相同行驶状态下的加速度参考值与预设加速度阈值进行比较、角加速度参考值与预设角加速度阈值进行比较、方位角参考值与预设方位角阈值 进行比较;S13, comparing the acceleration reference value with the preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
S14,若相同行驶状态下的加速度参考值大于预设加速度阈值,且相同行驶状态下的角加速度参考值大于预设角加速度阈值,且相同行驶状态下的方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。S14, if the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth reference value in the same driving state is greater than the preset azimuth threshold , It is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of sharp turning, sharp acceleration, and sharp braking.
在上述S11中,具体地,移动终端可通过内置的线性加速度传感器获取车辆行驶过程中的第一加速度数据、通过内置的陀螺仪获取车辆行驶过程中的第一角加速度数据以及通过内置的方向传感器获取车辆行驶过程中的第一方位角数据,其中,第一加速度数据包括X、Y、Z三个轴向的加速度值,第一角加速度数据包括X、Y、Z三个轴向的角加速度值,第一方位角数据包括俯仰角(即pitch值)、偏航角(即yaw值)和翻滚角(即roll值)。In the above S11, specifically, the mobile terminal may obtain the first acceleration data during the vehicle driving through the built-in linear acceleration sensor, obtain the first angular acceleration data during the vehicle travel through the built-in gyroscope, and use the built-in direction sensor Acquire the first azimuth angle data during the driving process of the vehicle, where the first acceleration data includes acceleration values in the three axial directions of X, Y, and Z, and the first angular acceleration data includes angular acceleration in the three axial directions of X, Y, and Z The first azimuth angle data includes pitch angle (ie pitch value), yaw angle (ie yaw value) and roll angle (ie roll value).
在上述S12中,预设第一特征值数据的作用在于结合第一算法对采集到的第一加速度数据进行修正,以获得用于进行驾驶行为检测的加速度参考值,行驶状态、第一加速度数据和第一特征值数据三者为一一对应的映射关系;同理,预设第一特征值数据的作用在于结合第一算法对采集到的第一角加速度数据进行修正,以获得用于进行驾驶行为检测的加速度参考值,行驶状态、第一角加速度数据和第一特征值数据三者为一一对应的映射关系;预设第一特征值数据的作用在于结合第一算法对采集到的第一方位角数据进行修正,以获得用于进行驾驶行为检测的加速度参考值,行驶状态、第一方位角数据和第一特征值数据三者为一一对应的映射关系。In the above S12, the function of the preset first feature value data is to modify the collected first acceleration data in combination with the first algorithm to obtain the acceleration reference value for driving behavior detection, the driving state, and the first acceleration data There is a one-to-one mapping relationship with the first eigenvalue data; in the same way, the function of the preset first eigenvalue data is to correct the collected first angular acceleration data in combination with the first algorithm to obtain The acceleration reference value of the driving behavior detection, the driving state, the first angular acceleration data and the first characteristic value data have a one-to-one mapping relationship; the function of the preset first characteristic value data is to combine the first algorithm to the collected data The first azimuth data is corrected to obtain an acceleration reference value used for driving behavior detection, and the driving state, the first azimuth data and the first characteristic value data have a one-to-one mapping relationship.
在上述S13和S14中,具体地,获得各个行驶状态下的加速度参考值、角加速度参考值和方位角参考值后,为检测用户当前是否存在危险驾驶行为,可分别将急转弯状态下的加速度参考值与对应急转弯状态的预设加速度阈值进行比较、急转弯状态下的角加速度参考值与对应急转弯状态的预设角加速度阈值进行比较、急刹车状态下的加速度参考值与对应急刹车状态的预设加速度阈值进行比较,若急转弯状态下的加速度参考值大于对应急转弯状态的预设加速度阈值,且急转弯状态下的角加速度参考值大于对应急转弯状态的预设角加速度阈值,且急刹车状态下的加速度参考值大于对应急刹车状态的预设加速度阈值,则移动终端可据此判定用户当前存在危险驾驶行为(即存在急转弯的危险驾驶行为);同理,还可利用对应急加速状态的已知数据或者利用对应急刹车状态的已知数据,来判断用户当前是否存在危险驾驶行为(如是否存在急加速的危险驾驶行为或者急刹车的危险驾驶行为),其判断过程与上述利用对应急转弯状态的已知数据来进行判断的过程类似,对此不再赘述。In the above S13 and S14, specifically, after obtaining the acceleration reference value, angular acceleration reference value, and azimuth reference value in each driving state, in order to detect whether the user currently has a dangerous driving behavior, the acceleration in the sharp turn state The reference value is compared with the preset acceleration threshold in the emergency turning state, the angular acceleration reference value in the sharp turning state is compared with the preset angular acceleration threshold in the emergency turning state, the acceleration reference value in the emergency braking state is compared with the emergency braking The preset acceleration threshold value of the state is compared, if the acceleration reference value in the sharp turn state is greater than the preset acceleration threshold value in the emergency turning state, and the angular acceleration reference value in the sharp turn state is greater than the preset angular acceleration threshold value in the emergency turning state , And the acceleration reference value in the emergency braking state is greater than the preset acceleration threshold for the emergency braking state, the mobile terminal can determine that the user currently has a dangerous driving behavior (that is, a dangerous driving behavior in a sharp turn); Use the known data of the emergency acceleration state or use the known data of the emergency braking state to determine whether the user currently has a dangerous driving behavior (such as whether there is a dangerous driving behavior of sudden acceleration or a dangerous driving behavior of sudden braking), its judgment The process is similar to the above-mentioned process of judging by using the known data of the emergency turning state, and will not be repeated here.
在本实施例中,该驾驶行为检测方法,通过移动终端实时获取车辆行驶过程中的驾驶数据,进而通过结合车辆在不同行驶状态(急转弯状态、急加速状态和急刹车状态)下的预设特征值数据进行计算,可获得各个行驶状态下对应的加速度参考值、角加速度参考值和方位角参考值,然后再通过将计算获得的加速度参考值、角加速度参考值、方位角参考值分别与对应的预设加速度阈值、预设角加速度阈值、预设方位角阈值一一进行比较,可实时检测出驾驶人员在车辆行驶的过程中是否存在危险驾驶的行为,进而当发生危险驾驶行为时,可通过发出语音提示等方式来提醒用户安全驾驶,从而可避免危险驾驶行为所带来的交通安全隐患。In this embodiment, the driving behavior detection method acquires the driving data of the vehicle in real time through the mobile terminal, and then combines the presets of the vehicle in different driving states (a sharp turn state, a sharp acceleration state, and a sudden braking state). The characteristic value data is calculated to obtain the acceleration reference value, angular acceleration reference value, and azimuth angle reference value corresponding to each driving state, and then the calculated acceleration reference value, angular acceleration reference value, and azimuth angle reference value are respectively and The corresponding preset acceleration threshold, preset angular acceleration threshold, and preset azimuth threshold are compared one by one, and it can detect in real time whether the driver has dangerous driving behavior during the driving of the vehicle, and then when dangerous driving behavior occurs, Voice prompts can be used to remind users to drive safely, thereby avoiding traffic safety hazards caused by dangerous driving behaviors.
在一个可选的实施例中,上述实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据的步骤,包 括:In an optional embodiment, the foregoing step of acquiring driving data during the vehicle driving process in real time, wherein the driving data includes the first acceleration data, the first angular acceleration data, and the first azimuth angle data, includes:
S111,实时采集车辆行驶过程中的加速度数据、角加速度数据和方位角数据;S111, real-time collection of acceleration data, angular acceleration data, and azimuth angle data during vehicle driving;
S112,对加速度数据进行低通滤波处理,获得第一加速度数据,以及,分别对角加速度数据、方位角数据进行带通滤波处理,获得第一角加速度数据和第一方位角数据。S112, performing low-pass filtering processing on the acceleration data to obtain first acceleration data, and performing band-pass filtering processing on the angular acceleration data and the azimuth angle data respectively, to obtain the first angular acceleration data and the first azimuth angle data.
在本实施例中,通过对实时采集到的加速度数据进行低通滤波处理、对实时采集到的角加速度数据和方位角数据进行带通滤波处理,可处理掉驾驶数据中的异常信号,避免异常信号所带来的干扰,从而可提升数据的准确性,提高驾驶行为检测的准确性。In this embodiment, by performing low-pass filtering processing on acceleration data collected in real time, and band-pass filtering processing on angular acceleration data and azimuth angle data collected in real time, abnormal signals in driving data can be processed to avoid abnormalities. The interference caused by the signal can improve the accuracy of data and the accuracy of driving behavior detection.
在一个可选的实施例中,预设第一特征值数据包括在特定行驶状态下与X轴的加速度值相对应的第一特征值系数、在特定行驶状态下与Y轴的加速度值相对应的第二特征值系数,在特定行驶状态下与Z轴的加速度值相对应的第三特征值系数,上述根据第一加速度数据、各个行驶状态下对应第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个行驶状态下的加速度参考值的步骤,包括:In an optional embodiment, the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the Y axis in a specific driving state. The second eigenvalue coefficient of, the third eigenvalue coefficient corresponding to the acceleration value of the Z axis in a specific driving state, and the preset first characteristic value corresponding to the first acceleration data in each driving state according to the first acceleration data The steps of calculating the reference value of acceleration in each driving state by using the data and the preset first algorithm include:
利用预设的第一计算公式a =Aa x1+Ba y1+Ca z1,对第一加速度数据进行计算,获得对应急转弯状态的第一加速度参考值、对应急加速状态的第二加速度参考值和对应急刹车状态的第三加速度参考值,其中,在第一计算公式中,a 为特定行驶状态下的加速度参考值,a x1为第一加速度数据中X轴的加速度值,a y1为第一加速度数据中Y轴的加速度值,a 21为第一加速度数据中Z轴的加速度值,A为第一特征值系数,B为第二特征值系数,C为第三特征值系数。 Use the preset first calculation formula a parameter = Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value for the emergency turning state and the second acceleration reference value for the emergency acceleration state And the third acceleration reference value for the emergency braking state, where in the first calculation formula, a parameter is the acceleration reference value under a specific driving state, a x1 is the acceleration value of the X axis in the first acceleration data, and a y1 is The acceleration value of the Y axis in the first acceleration data, a 21 is the acceleration value of the Z axis in the first acceleration data, A is the first characteristic value coefficient, B is the second characteristic value coefficient, and C is the third characteristic value coefficient.
在本实施例中,上述特定行驶状态为急转弯状态,或急加速状态,或急刹车状态;当特定行驶状态为急转弯状态时,则利用上述第一计算公式可计算出对应急转弯状态的加速度参考值(即第一加速度参考值),当特定行驶状态为急加速状态时,则利用上述第一计算公式可计算出对应急加速状态的加速度参考值(即第二加速度参考值),当特定行驶状态为急刹车状态时,则利用上述第一计算公式可计算出对应急刹车状态的加速度参考值(即第三加速度参考值)。In this embodiment, the above-mentioned specific driving state is a sharp turn state, or a rapid acceleration state, or a sudden braking state; when the specific driving state is a sharp turn state, the above-mentioned first calculation formula can be used to calculate the emergency turning state The acceleration reference value (ie, the first acceleration reference value). When the specific driving state is a rapid acceleration state, the acceleration reference value (ie, the second acceleration reference value) for the emergency acceleration state can be calculated using the above first calculation formula. When the specific driving state is the emergency braking state, the acceleration reference value for the emergency braking state (that is, the third acceleration reference value) can be calculated using the above-mentioned first calculation formula.
在其它一些实施例中,上述根据第一角加速度数据、各个行驶状态下对应第一角加速度数据的预设第二特征值数据和第一算法,计算出各个行驶状态下的角加速度参考值的计算过程,以及上述根据第一方位角数据、各个行驶状态下对应第一方位角数据的预设第三特征值数据和第一算法,计算出各个行驶状态下的方位角参考值的计算过程,与上述利用第一计算公式计算出各个行驶状态下的加速度参考值类似(即,将第一计算公式中的相关参数改为对应角加速度数据或者对应方位角数据的参数),本领域技术人员都可以理解,对此不再赘述。In some other embodiments, according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm, the angular acceleration reference value in each driving state is calculated. The calculation process, and the foregoing calculation process of calculating the reference value of the azimuth angle in each driving state based on the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each driving state, and the first algorithm, Similar to the calculation of the acceleration reference value in each driving state by using the first calculation formula described above (that is, the relevant parameter in the first calculation formula is changed to the parameter corresponding to the angular acceleration data or the corresponding azimuth angle data), those skilled in the art Understandably, this will not be repeated here.
在一个可选的实施例中,上述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:In an optional embodiment, before the step of real-time obtaining driving data during the driving of the vehicle, the method further includes:
S10a,按照预定频率采集预定时长内各个行驶状态下的加速度样本数据,其中,每个行驶状态下的加速度样本数据至少有三组;S10a: Collect acceleration sample data in each driving state within a predetermined time period according to a predetermined frequency, where there are at least three sets of acceleration sample data in each driving state;
S10b,利用预设的第二计算公式
Figure PCTCN2020098827-appb-000001
分别对各个行驶状态下的各组加速度样本数据进行计算,获得多组对应的总加速度值,其中,在第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下加速度样本数据中X轴的加速度值,a y为特定行驶状态下加速度样本数据中Y轴的加速度值,a z为特定行驶状态下加速度样本数据中Z轴的加速度值;
S10b, using the preset second calculation formula
Figure PCTCN2020098827-appb-000001
Calculate each group of acceleration sample data in each driving state to obtain multiple sets of corresponding total acceleration values. In the second calculation formula, a is always the total acceleration value in a specific driving state, and a x is a specific driving The acceleration value of the X axis in the acceleration sample data in the state, a y is the acceleration value of the Y axis in the acceleration sample data in the specific driving state, and a z is the acceleration value of the Z axis in the acceleration sample data in the specific driving state;
S10c,对各个行驶状态下的各组加速度样本数据和多组对应的总加速度值分别进行傅里叶变换,获得多组各个行驶状态下的第一频域数据和多组对应总加速度值的第二频域数据;S10c: Perform Fourier transform on each group of acceleration sample data in each driving state and multiple sets of corresponding total acceleration values to obtain multiple sets of first frequency domain data in each driving state and multiple sets of corresponding total acceleration values. Two frequency domain data;
S10d,对各组第一频域数据和各组第二频域数据分别进行频谱分析,获得多组各个行驶状态下对应加速度样本数据的第一特征值和多组对应总加速度值的第二特征值;S10d: Perform spectrum analysis on each group of first frequency domain data and each group of second frequency domain data to obtain multiple sets of first feature values corresponding to acceleration sample data in each driving state and multiple sets of second features corresponding to total acceleration values value;
S10e,利用预设的第二计算公式Ax+By+Cz=Max,分别对各组第一特征值和各组第二特征值进行计算,获得第一特征值系数、第二特征值系数和第三特征值系数,其中,在第二计算公式中,A为第一特征值系数,B为第二特征值系数,C为第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的第一特征值,Max为与特定行驶状态下的合加速度值相对应的第二特征值。S10e: Use the preset second calculation formula Ax+By+Cz=Max to calculate each group of first eigenvalues and each group of second eigenvalues to obtain the first eigenvalue coefficient, the second eigenvalue coefficient, and the first eigenvalue coefficient. Three eigenvalue coefficients, where in the second calculation formula, A is the first eigenvalue coefficient, B is the second eigenvalue coefficient, C is the third eigenvalue coefficient, and x is the acceleration of the X axis in a specific driving state The first characteristic value corresponding to the value, y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, and z is the first characteristic value corresponding to the acceleration value of the Z axis in a specific driving state , Max is the second characteristic value corresponding to the total acceleration value in a specific driving state.
在上述S10a中,在使用车辆行驶过程中实时采集到的第一加速度数据、第一角加速度数据和第一方位角数据进行驾驶行为检测之前,可分别在急转弯状态、急加速状态和急刹车状态下利用移动终端内置的加速度传感器采集加速度样本数据,上述预定时长可以是2秒、3秒、4秒等,对此不作具体的限制;预定频率可以是每0.5秒1次、每秒1次等,对此不作具体的限制;示例性的,可在3秒内按每秒1次的频率分别采集车辆在急转弯状态下的三组加速度样本数据、在急加速状态下的三组加速度样本数据和在急刹车状态下的三组加速度样本数据。In the above S10a, before using the first acceleration data, first angular acceleration data, and first azimuth angle data collected in real time during the driving process of the vehicle for driving behavior detection, it can be in a sharp turn, a sharp acceleration, and a sharp brake. In the state, use the built-in acceleration sensor of the mobile terminal to collect acceleration sample data. The above-mentioned predetermined time can be 2 seconds, 3 seconds, 4 seconds, etc., and there is no specific restriction on this; the predetermined frequency can be 1 time per 0.5 second, 1 time per second There are no specific restrictions on this; for example, three sets of acceleration sample data of the vehicle in a sharp turn and three sets of acceleration samples in a sharp acceleration state can be collected at a frequency of 1 time per second within 3 seconds. Data and three sets of acceleration sample data in the sudden braking state.
在上述S10b中,示例性地,将在急转弯状态下的三组加速度样本数据分别代入上述第二公式进行计算,可获得在急转弯状态下的三组总加速度值,计算急加速状态、急刹车状态下的总加速度值的过程与前述类似,本领域技术人员可以理解,对此不再赘述。In the above S10b, by way of example, the three sets of acceleration sample data in the sharp turn state are respectively substituted into the above second formula for calculation, and the three sets of total acceleration values in the sharp turn state can be obtained. The process of the total acceleration value in the braking state is similar to the foregoing, which can be understood by those skilled in the art and will not be repeated here.
在上述S10c中,上述第一频域数据和第二频域数据具体表现形式为频谱图,示例性地,以在急转弯状态下采集到的加速度样本数据进行说明,对应急转弯状态的加速度样本数据包括X、Y、Z三个轴向的加速度值,通过对X、Y、Z三个轴向的加速度值进行傅里叶变换,可获得X、Y、Z三个轴向对应的频谱图(即第一频域数据),同理,通过对急转弯状态下的总加速度值进行傅里叶变换,可获得该总加速值对应的频谱图(即第二频域数据);对急加速状态下、急刹车状态下的加速度样本数据和总加速度值进行傅里叶变换的相关过程与前述类似,对此不再赘述。In the above S10c, the specific representation form of the first frequency domain data and the second frequency domain data is a spectrogram. Illustratively, the acceleration sample data collected in a sharp turn state is used for description, and the acceleration sample in the emergency turn state The data includes the acceleration values of X, Y, and Z axes. Through the Fourier transform of the acceleration values of X, Y, and Z axes, the corresponding spectrograms of X, Y, and Z axes can be obtained. (I.e. the first frequency domain data), in the same way, by performing Fourier transform on the total acceleration value in a sharp turn, the spectrogram corresponding to the total acceleration value (ie the second frequency domain data) can be obtained; The relevant process of the Fourier transformation of the acceleration sample data and the total acceleration value in the state and in the sudden braking state is similar to the foregoing, and will not be repeated here.
在上述S10d中,示例性地,以对急转弯状态下的第一频域数据和第二频域数据分别进行频谱分析为例进行说明,通过对X、Y、Z三个轴向对应的频谱图进行频谱分析,可提取到X、Y、Z三个轴向的加速度值对应的特征值(即第一特征值),通过对总加速度值对应的频谱图进行频谱分析,可提取到总加速度值对应的特征值(即第二特征值),其中,上述第一特征值和第二特征值是指能量密度最大值(即频谱图中的波峰值),对急加速状态下、急刹车状态下的第一频域数据和第二频域数据分别进行频谱分析的相关过程与前述类似,对此不再赘述。In the above S10d, exemplarily, the first frequency domain data and the second frequency domain data in the sharp turning state are respectively analyzed by the frequency spectrum as an example. The frequency spectrum corresponding to the three axes of X, Y, and Z The graph performs spectrum analysis, and the eigenvalues corresponding to the acceleration values of the X, Y, and Z axes (ie the first eigenvalue) can be extracted, and the total acceleration can be extracted by performing spectrum analysis on the spectrogram corresponding to the total acceleration value The eigenvalue corresponding to the value (i.e., the second eigenvalue), where the above-mentioned first eigenvalue and the second eigenvalue refer to the maximum energy density (ie the peak value in the spectrogram). The related processes of performing spectrum analysis on the first frequency domain data and the second frequency domain data below are similar to the foregoing, and will not be repeated here.
在上述S10e中,上述特定行驶状态为急转弯状态,或急加速状态,或急刹车状态;当特定行驶状态为急转弯状态时,则将对应急转弯状态的三组第一特征值和三组第二特征值代入到上述第一计算公式中进行解方程组,可计算出对应急转弯状态的第一特征值系数、第二特征值系数和第三特征值系数;当特定行驶状态为急加速状态时,则将对应急加速状态的三组第一特征值和三组第二特征值代 入到上述第一计算公式中进行解方程组,可计算出对应急加速状态的第一特征值系数、第二特征值系数和第三特征值系数;当特定行驶状态为急刹车状态时,则将对应急刹车状态的三组第一特征值和三组第二特征值代入到上述第一计算公式中进行解方程组,可计算出对应急刹车状态的第一特征值系数、第二特征值系数和第三特征值系数,此处需要说明的是,在其它一些实施例中,可采用与本实施例相同的发明构思,获得其它状态下的特征值系数(如下述的第四特征值系数、第五特征值系数和第六特征值系数)。In the above S10e, the specific driving state is a sharp turn state, or a sharp acceleration state, or a sudden braking state; when the specific driving state is a sharp turn state, the three sets of first characteristic values and the three sets of the emergency turning state The second eigenvalue is substituted into the above-mentioned first calculation formula to solve the equation group, and the first eigenvalue coefficient, the second eigenvalue coefficient and the third eigenvalue coefficient for the emergency turning state can be calculated; when the specific driving state is rapid acceleration In the state, the three sets of first eigenvalues and three sets of second eigenvalues for the emergency acceleration state are substituted into the above-mentioned first calculation formula to solve the equation set, and the first eigenvalue coefficients for the emergency acceleration state, The second characteristic value coefficient and the third characteristic value coefficient; when the specific driving state is a sudden braking state, the three sets of first characteristic values and three sets of second characteristic values for the emergency braking state are substituted into the above first calculation formula By solving the equations, the first eigenvalue coefficient, the second eigenvalue coefficient, and the third eigenvalue coefficient for the emergency braking state can be calculated. It should be noted here that in some other embodiments, the same as this embodiment can be used. Example of the same inventive concept to obtain characteristic value coefficients in other states (such as the following fourth characteristic value coefficient, fifth characteristic value coefficient and sixth characteristic value coefficient).
在一个可选的实施例中,上述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:In an optional embodiment, before the step of real-time obtaining driving data during the driving of the vehicle, the method further includes:
S101,在指定时长内按照预设频率连续采集用户的多组运动数据,其中,运动数据包括第二加速度数据、第二角加速度数据和第二方位角数据;S101. Continuously collect multiple sets of motion data of a user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth data;
S102,根据第二加速度数据、在行程开始状态下对应第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应行程开始状态的第四加速度参考值;以及,根据第二角加速数据和预设的计步算法,计算出用户的运动步数;以及,根据第二方位角数据、在使用移动终端状态下对应第二方位角数据的预设第五特征值数据和第二算法,计算出对应使用移动终端状态的方位角参照值;S102: Calculate a fourth acceleration reference value corresponding to the start state of the stroke according to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm; and, according to The second angle acceleration data and the preset step counting algorithm calculate the number of exercise steps of the user; and, according to the second azimuth angle data, the preset fifth characteristic value data corresponding to the second azimuth angle data in the state of using the mobile terminal And the second algorithm to calculate the azimuth reference value corresponding to the state of the mobile terminal;
S103,分别将第四加速度参考值与预设的加速度阀值进行比较、运动步数与预设的步数阀值进行比较、方位角参照值与预设的方位角阀值进行比较,并根据比较的结果判断用户当前是否处于开车状态;S103. Compare the fourth acceleration reference value with a preset acceleration threshold, compare the number of exercise steps with the preset step threshold, compare the azimuth reference value with the preset azimuth threshold, and compare The result of the comparison determines whether the user is currently driving;
若用户当前处于开车状态,则执行上述S11,实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据。If the user is currently in a driving state, the above S11 is executed to obtain driving data of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data.
在上述S101中,上述指定时长可以是15秒、16秒、17秒等,对此不作具体限制;具体地,移动终端可通过内置的线性加速度传感器、陀螺仪和方向传感器分别在指定时长内(如15秒)按照预设频率(如每秒1次)连续采集用户的多组(如15组)第二加速度数据、第二角加速度数据和第二方位角数据,其中,第二加速度数据包括X、Y、Z三个轴向的加速度值,第二角加速度数据包括X、Y、Z三个轴向的角加速度值,第二方位角数据包括俯仰角(即pitch值)、偏航角(即yaw值)和翻滚角(即roll值)。In the above S101, the specified time length can be 15 seconds, 16 seconds, 17 seconds, etc., and there is no specific limitation on this; specifically, the mobile terminal can use the built-in linear acceleration sensor, gyroscope, and direction sensor within the specified time period ( Such as 15 seconds) continuously collect multiple groups (such as 15 groups) of second acceleration data, second angular acceleration data, and second azimuth angle data of the user according to a preset frequency (such as 1 time per second), where the second acceleration data includes X, Y, and Z axis acceleration values, the second angular acceleration data includes the X, Y, Z axis angular acceleration values, the second azimuth angle data includes the pitch angle (ie pitch value), yaw angle (Ie yaw value) and roll angle (ie roll value).
在上述S102中,具体地,上述第四加速度参考值的计算过程如下:上述预设第四特征值数据的作用在于结合第二算法对采集到的第二加速度数据进行修正,以获得用于检测用户是否处于行程开始状态的第四加速度参考值,上述预设第五特征值数据的作用在于结合第二算法对采集到的第二方位角数据进行修正,以获得用于检测用户是否处于使用移动终端状态的方位角参照值,根据采集到的多组第二角加速数据计算出用户在指定时长内的运动步数,即利用预设的计步算法对陀螺仪数据进行计算,计算出运动步数,由于已是比较成熟的现有技术,因此此处不再赘述。In S102, specifically, the calculation process of the fourth acceleration reference value is as follows: The function of the preset fourth characteristic value data is to correct the collected second acceleration data in combination with the second algorithm to obtain Whether the user is in the fourth acceleration reference value at the beginning of the stroke, the function of the above-mentioned preset fifth characteristic value data is to correct the collected second azimuth angle data in combination with the second algorithm to obtain the data used to detect whether the user is in use or not The reference value of the azimuth angle of the terminal state, calculate the user's movement steps within the specified time based on the collected multiple sets of second angle acceleration data, that is, use the preset step counting algorithm to calculate the gyroscope data to calculate the movement steps Since it is a relatively mature existing technology, it will not be repeated here.
在上述S103中,具体地,若第四加速度参考值大于预设的加速度阀值,则移动终端可据此判定用户处于行车开始状态;若运动步数大于预设的步数阀值,则移动终端可据此判定用户处于步行状态;若方位角参照值大于预设的方位角阀值,则移动终端可据此判定用户处于使用移动终端状态;一般地,由于用户处于开车状态下,会将移动终端放在车内的特定位置上,如放在座椅上、用手机固定架固定在驾驶座旁边等,即移动终端处于放置状态而不是处于被用户操作状态,因此当通过采集到的多组运动数据判断出用户处于行车开始状态,且不处于步行 状态,且不处于使用移动终端状态,则移动终端可据此判定用户当前处于开车状态,即,若第四加速度参考值大于预设的加速度阀值,且运动步数大于预设的步数阀值,且方位角参照值大于预设的位角阀值时,则移动终端可据此判定用户当前处于开车状态,进而可进行后续判断用户是否存在危险驾驶行为的相关操作。In the above S103, specifically, if the fourth acceleration reference value is greater than the preset acceleration threshold, the mobile terminal can determine that the user is in the starting state of driving according to this; if the number of exercise steps is greater than the preset threshold, move The terminal can determine that the user is walking; if the azimuth reference value is greater than the preset azimuth threshold, the mobile terminal can determine that the user is in the state of using the mobile terminal; generally, because the user is driving, it will The mobile terminal is placed in a specific position in the car, such as on the seat, fixed next to the driver's seat with a mobile phone holder, etc., that is, the mobile terminal is in the placed state rather than being operated by the user. Therefore, when the The group exercise data determines that the user is at the start of driving, is not walking, and is not in the state of using the mobile terminal, the mobile terminal can determine that the user is currently driving, that is, if the fourth acceleration reference value is greater than the preset When the acceleration threshold, the number of exercise steps is greater than the preset step threshold, and the azimuth reference value is greater than the preset azimuth threshold, the mobile terminal can determine that the user is currently driving, and then can make subsequent judgments Whether the user has operations related to dangerous driving behavior.
在一个可选的实施例中,预设第四特征值数据包括在行程开始状态下与X轴的加速度值相对应的第四特征值系数、在行程开始状态下与Y轴的加速度值相对应的第五特征值系数,在行程开始状态下与Z轴的加速度值相对应的第六特征值系数,根据第二加速度数据、在行程开始状态下对应第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应行程开始状态的第四加速度参考值的步骤,包括:In an optional embodiment, the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the starting state of the stroke, and corresponding to the acceleration value of the Y axis in the starting state of the stroke. The fifth characteristic value coefficient of, the sixth characteristic value coefficient corresponding to the acceleration value of the Z axis in the start state of the stroke, and the preset fourth characteristic value corresponding to the second acceleration data in the start state of the stroke according to the second acceleration data The step of calculating the fourth acceleration reference value corresponding to the start state of the stroke by using the data and the preset second algorithm includes:
S102a,利用预设的第三计算公式
Figure PCTCN2020098827-appb-000002
对第二加速度数据进行计算,获得第四加速度参考值,其中,在第三计算公式中,a 四参为第四加速度参考值,a x2为第二加速度数据中X轴的加速度值,a y2为第二加速度数据中Y轴的加速度值,a z2为第二加速度数据中Z轴的加速度值,D为第四特征值系数,E为第五特征值系数,F为第六特征值系数,n为指定时长。
S102a, using a preset third calculation formula
Figure PCTCN2020098827-appb-000002
Calculate the second acceleration data to obtain the fourth acceleration reference value, where, in the third calculation formula, the four parameters a is the fourth acceleration reference value, a x2 is the acceleration value of the X axis in the second acceleration data, a y2 Is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth eigenvalue coefficient, E is the fifth eigenvalue coefficient, F is the sixth eigenvalue coefficient, n is the specified duration.
如上述S102a所述,将移动终端通过内置的线性加速度传感器在指定时长内(如15秒)按照预设频率(如每秒1次)连续采集到的多组第二加速度数据(如连续15组X轴的加速度值、Y轴的加速度值和Z轴的加速度值)代入到上述第三计算公式中进行解方程组,即可计算出第四加速度参考值。在一个可选的实施例中,驾驶数据还包括GPS数据,GPS数据包括速度信息、加速度信息和方位角信息,上述判定用户当前存在危险驾驶行为的步骤之后,还包括:As described in S102a above, the mobile terminal uses the built-in linear acceleration sensor to continuously collect multiple sets of second acceleration data (such as 15 consecutive sets) at a preset frequency (such as 1 time per second) within a specified time period (such as 15 seconds). The acceleration value of the X axis, the acceleration value of the Y axis and the acceleration value of the Z axis) are substituted into the above-mentioned third calculation formula to solve the equation group, and then the fourth acceleration reference value can be calculated. In an optional embodiment, the driving data further includes GPS data, and the GPS data includes speed information, acceleration information, and azimuth angle information. After the above step of determining that the user currently has a dangerous driving behavior, it further includes:
S14A,若用户当前存在急转弯的危险驾驶行为,则判断速度信息中的速度值是否大于预设速度阈值以及方位角信息中的方位角度值是否大于在急转弯状态下的预设方位角阈值;S14A, if the user currently has a dangerous driving behavior of a sharp turn, determine whether the speed value in the speed information is greater than a preset speed threshold and whether the azimuth angle value in the azimuth angle information is greater than the preset azimuth angle threshold in a sharp turn;
若用户当前存在急加速的危险驾驶行为,则判断在预设时间段内加速度信息的合加速度值是否大于在急加速状态下的预设加速度阈值;If the user currently has a dangerous driving behavior of rapid acceleration, it is determined whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold value in the rapid acceleration state;
若用户当前存在急刹车的危险驾驶行为,则判断在预设时间段内加速度信息的合加速度值是否大于在急刹车状态下的预设加速度阈值;If the user currently has a dangerous driving behavior of sudden braking, it is determined whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold in the sudden braking state;
S14B,根据判断结果,确定用户当前是否存在危险驾驶行为以及危险驾驶行为的类型。S14B: Determine whether the user currently has dangerous driving behavior and the type of dangerous driving behavior according to the judgment result.
在本实施例中,具体地,当用户处于开车状态时,移动终端可通过开启内置的GPS传感器来实时采集车辆驾驶过程中的GPS数据,当通过上述S13中的方式预判出用户当前存在危险驾驶行为时,则进一步通过GPS传感器采集到的数据进行更进一步的确认,由于GPS传感器采集到的数据要比加速度传感器、陀螺仪、方向传感器采集到的数据更为准确,因此当通过加速度传感器、陀螺仪和方向传感器采集到的数据预判出用户当前存在危险驾驶行为时,再结合GPS数据进行进一步的确认,可提高驾驶行为检测的准确性;In this embodiment, specifically, when the user is driving, the mobile terminal can collect GPS data during the driving process of the vehicle in real time by turning on the built-in GPS sensor. When it is predicted that the user is currently in danger by the method in S13 above When driving behavior, the data collected by the GPS sensor is used for further confirmation. Since the data collected by the GPS sensor is more accurate than the data collected by the acceleration sensor, gyroscope, and direction sensor, when using the acceleration sensor, When the data collected by the gyroscope and the direction sensor predicts that the user currently has dangerous driving behavior, the GPS data can be used for further confirmation, which can improve the accuracy of driving behavior detection;
具体地,若速度信息中的速度值大于预设速度阈值且方位角信息中的方位角 度值大于对应急转弯状态的预设方位角阈值,则移动终端可据此确定用户当前存在危险驾驶行为且该危险驾驶行为的类型为急转弯;若在预设时间段内加速度信息的合加速度值大于对应急加速状态的预设加速度阈值,则移动终端可据此确定用户当前存在危险驾驶行为且该危险驾驶行为的类型为急加速;若在预设时间段内加速度信息的合加速度值大于对应急刹车状态的预设加速度阈值,则移动终端可据此确定用户当前存在危险驾驶行为且该危险驾驶行为的类型为急刹车。Specifically, if the speed value in the speed information is greater than the preset speed threshold and the azimuth angle value in the azimuth information is greater than the preset azimuth threshold for the emergency turning state, the mobile terminal can determine that the user currently has a dangerous driving behavior and The type of the dangerous driving behavior is a sharp turn; if the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold for the emergency acceleration state, the mobile terminal can determine that the user currently has a dangerous driving behavior and the dangerous The type of driving behavior is rapid acceleration; if the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold for the emergency braking state, the mobile terminal can determine that the user currently has a dangerous driving behavior and the dangerous driving behavior The type is sudden braking.
在一个可选的实施例中,上述根据判断结果,确定用户当前是否存在危险驾驶行为以及危险驾驶行为的类型的步骤之后,还包括:In an optional embodiment, after the step of determining whether the user currently has dangerous driving behavior and the type of dangerous driving behavior according to the judgment result, the method further includes:
S15,当用户当前存在危险驾驶行为时,获取当前位置信息和时间信息;S15, when the user currently has a dangerous driving behavior, obtain current location information and time information;
S16,将危险驾驶行为的类型与位置信息、时间信息进行关联,生成关联信息。S16: Associate the type of dangerous driving behavior with location information and time information to generate associated information.
在本实施例中,当用户发生危险驾驶行为时,通过将危险驾驶行为的类型与当前的位置信息、时间信息进行关联,生成关联信息,使得用户在驾驶结束后通过查看该关联信息,可清楚知道自己在何时何地发生过何种危险驾驶行为,从而有利于用户在驾驶结束后可进行认真的自我反思学习,以避免危险驾驶行为的再次发生。In this embodiment, when the user has a dangerous driving behavior, the type of the dangerous driving behavior is associated with the current location information and time information to generate the associated information, so that the user can see clearly by viewing the associated information after driving. Knowing what kind of dangerous driving behaviors have occurred when and where, so that users can conduct serious self-reflection learning after driving to avoid the recurrence of dangerous driving behaviors.
在一个可选的实施例中,将危险驾驶行为的类型与位置信息、时间信息进行关联,生成关联信息的步骤之后,还包括:In an optional embodiment, after the step of associating the type of dangerous driving behavior with location information and time information, and generating the associated information, the method further includes:
S17,根据第一角加速度数据判断用户当前是否处于停车状态;S17: Determine whether the user is currently in a parking state according to the first angular acceleration data;
若用户当前处于停车状态,则执行S18,生成行车轨迹记录图,并将关联信息标注在行车轨迹记录图中对应的位置上。If the user is currently in a parking state, execute S18 to generate a driving track record chart, and mark the associated information on the corresponding position in the driving track record chart.
在本实施例中,具体地,可通过移动终端内置的陀螺仪实时采集车辆行驶过程中的第一角加速度数据,进而根据第一角加速度数据来计算运动步数,然后判断运动步数是否超出预设步数阈值,若是,则可据此判定用户处于步行状态,从而可据此判断出用户当前处于停车状态,由于GPS传感器可记录车辆在行驶过程中的行车轨迹,因此当判断出用户当前处于停车状态,则可根据GPS传感器所记录的行车轨迹生成行车轨迹记录图,并将所述关联信息标注在所述行车轨迹记录图中对应的位置上,这样,使得用户在驾驶结束后通过查看该行车轨迹记录图,可更加直观清楚地知道自己在何时何地发生过何种危险驾驶行为,从而有利于用户在驾驶结束后可进行认真的自我反思学习,以避免危险驾驶行为的再次发生。In this embodiment, specifically, the first angular acceleration data during the driving process of the vehicle can be collected in real time through the built-in gyroscope of the mobile terminal, and then the number of movement steps can be calculated according to the first angular acceleration data, and then it can be judged whether the number of movement steps exceeds The preset number of steps threshold. If it is, it can be judged that the user is walking, so that it can be judged that the user is currently in a parking state. Since the GPS sensor can record the trajectory of the vehicle during driving, when it is judged that the user is currently In the parking state, the driving track record chart can be generated according to the driving track recorded by the GPS sensor, and the associated information can be marked on the corresponding position in the driving track record chart, so that the user can view by viewing after driving. The driving trajectory record chart can be more intuitive and clear to know when and where what dangerous driving behaviors have occurred, so that users can conduct serious self-reflection learning after driving to avoid the recurrence of dangerous driving behaviors .
在一个优选的实施例中,上述按照预定频率采集预定时长内各个所述行驶状态下的加速度样本数据的步骤之后,还包括:In a preferred embodiment, after the above step of collecting acceleration sample data in each of the driving states within a predetermined time period according to a predetermined frequency, the method further includes:
S10a1、将各个行驶状态下所获得的加速度样本数据、角加速度样本数据和方位角样本数据分别输入至预设的RBF神经网络模型中进行数据处理,输出各个行驶状态下的上述预设加速度阈值、上述预设角加速度阈值和上述预设方位角阈值。S10a1. Input the acceleration sample data, angular acceleration sample data and azimuth angle sample data obtained in each driving state into the preset RBF neural network model for data processing, and output the above-mentioned preset acceleration thresholds in each driving state, The above-mentioned preset angular acceleration threshold and the above-mentioned preset azimuth angle threshold.
在本实施例中,上述RBF神经网络模型为预先通过训练样本训练至收敛的模型,训练过程描述如下:首先,获取训练样本,其中,训练样本中包括输入数据和输出数据,输入数据为分别在急转弯状态下、急加速状态下、急刹车状态下所采集到的加速度样本训练数据、角加速度样本训练数据和方位角样本训练数据,输出数据为各个状态下对应加速度数据的加速度阈值、对应角加速度数据的角加速度阈值、对应方位角数据的方位角阈值,之后,通过训练样本对RBF神经网络模型进行训练,可得到具有较优网络参数的RBF神经网络模型,因此,在使用车辆行驶过程中实时采集到的第一加速度数据、第一角加速度数据和方向角数据进 行驾驶行为检测之前,可在急转弯状态下利用移动终端内置的加速度传感器、陀螺仪和方向传感器分别采集急转弯状态下的加速度样本数据、角加速度样本数据和方位角样本数据,同理,可在急加速状态下利用移动终端内置的加速度传感器、陀螺仪和方向传感器分别采集急加速状态下的加速度样本数据、角加速度样本数据和方位角样本数据,同理,可在急刹车状态下利用移动终端内置的加速度传感器、陀螺仪和方向传感器分别采集急刹车状态下的加速度样本数据、角加速度样本数据和方位角样本数据,进而将各个状态下采集到的加速度样本数据、角加速度样本数据和方位角样本数据输入至预设的RBF神经网络模型中,可得到上述S13中对应急转弯状态的预设加速度阈值、预设角加速度阈值、预设方位角阈值,对应急加速状态的预设加速度阈值、预设角加速度阈值、预设方位角阈值,对应急刹车状态的预设加速度阈值、预设角加速度阈值、预设方位角阈值,同理,可获得上述S103中的加速度阀值和方位角阀值。In this embodiment, the above-mentioned RBF neural network model is a model that is trained to convergence through training samples in advance. The training process is described as follows: First, obtain training samples, where the training samples include input data and output data, and the input data is Acceleration sample training data, angular acceleration sample training data, and azimuth angle sample training data collected in a sharp turn, rapid acceleration, and sudden braking. The output data is the acceleration threshold and corresponding angle of the corresponding acceleration data in each state The angular acceleration threshold of the acceleration data and the azimuth threshold of the corresponding azimuth angle data. After that, the RBF neural network model is trained through the training samples to obtain the RBF neural network model with better network parameters. Therefore, in the process of using the vehicle to drive Before the first acceleration data, first angular acceleration data, and direction angle data collected in real time are used for driving behavior detection, the built-in acceleration sensor, gyroscope and direction sensor of the mobile terminal can be used in the sharp turn state to collect the sharp turn state. Acceleration sample data, angular acceleration sample data and azimuth angle sample data, similarly, the acceleration sensor, gyroscope and direction sensor built in the mobile terminal can be used to collect acceleration sample data and angular acceleration sample in the rapid acceleration state. Data and azimuth sample data, similarly, the acceleration sensor, gyroscope and direction sensor built in the mobile terminal can be used to collect acceleration sample data, angular acceleration sample data and azimuth sample data in the sudden braking state, respectively. Then the acceleration sample data, angular acceleration sample data, and azimuth angle sample data collected in each state are input into the preset RBF neural network model, and the preset acceleration threshold and preset angle for the emergency turning state in S13 can be obtained. Acceleration threshold, preset azimuth threshold, preset acceleration threshold, preset angular acceleration threshold, preset azimuth threshold for emergency acceleration state, preset acceleration threshold, preset angular acceleration threshold, preset azimuth for emergency braking state The angle threshold, in the same way, the acceleration threshold and the azimuth angle threshold in S103 can be obtained.
本申请还提出一种驾驶行为检测装置,应用于移动终端上,该装置包括:This application also proposes a driving behavior detection device applied to a mobile terminal, and the device includes:
第一获取模块11,用于实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;The first acquisition module 11 is configured to acquire driving data during the driving process of the vehicle in real time, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
第一计算模块12,用于根据第一加速度数据、各个行驶状态下对应第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个行驶状态下的加速度参考值;以及,根据第一角加速度数据、各个行驶状态下对应第一角加速度数据的预设第二特征值数据和第一算法,计算出各个行驶状态下的角加速度参考值;以及,根据第一方位角数据、各个行驶状态下对应第一方位角数据的预设第三特征值数据和第一算法,计算出各个行驶状态下的方位角参考值,其中,行驶状态包括急转弯状态、急加速状态和急刹车状态;The first calculation module 12 is configured to calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; And, according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each driving state, and the first algorithm, the angular acceleration reference value in each driving state is calculated; and, according to the first orientation Angle data, preset third characteristic value data corresponding to the first azimuth angle data in each driving state and the first algorithm to calculate the reference value of the azimuth angle in each driving state, where the driving state includes a sharp turn state and a sharp acceleration state And sudden braking;
比较模块13,用于分别将相同行驶状态下的加速度参考值与预设加速度阈值进行比较、角加速度参考值与预设角加速度阈值进行比较、方位角参考值与预设方位角阈值进行比较;The comparison module 13 is configured to compare the acceleration reference value and the preset acceleration threshold value in the same driving state, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively;
判定模块14,用于当相同行驶状态下的加速度参考值大于预设加速度阈值,且相同行驶状态下的角加速度参考值大于预设角加速度阈值,且相同行驶状态下的方位角参考值大于预设方位角阈值时,则判定用户当前存在危险驾驶行为,其中,危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。The determination module 14 is used for when the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. When the azimuth angle threshold is set, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
在一个可选的实施例中,上述第一获取模块11,包括:In an optional embodiment, the aforementioned first obtaining module 11 includes:
采集单元,用于实时采集车辆行驶过程中的加速度数据、角加速度数据和方位角数据;Acquisition unit for real-time acquisition of acceleration data, angular acceleration data and azimuth angle data during vehicle driving;
降噪处理单元,用于对加速度数据进行低通滤波处理,获得第一加速度数据,以及,分别对角加速度数据、方位角数据进行带通滤波处理,获得第一角加速度数据和第一方位角数据。The noise reduction processing unit is used to perform low-pass filtering processing on the acceleration data to obtain the first acceleration data, and to perform band-pass filtering processing on the angular acceleration data and the azimuth angle data respectively to obtain the first angular acceleration data and the first azimuth angle data.
在一个可选的实施例中,预设第一特征值数据包括在特定行驶状态下与X轴的加速度值相对应的第一特征值系数、在特定行驶状态下与Y轴的加速度值相对应的第二特征值系数,在特定行驶状态下与Z轴的加速度值相对应的第三特征值系数,上述第一计算模块12,包括:In an optional embodiment, the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the Y axis in a specific driving state. The second eigenvalue coefficient of, and the third eigenvalue coefficient corresponding to the acceleration value of the Z axis in a specific driving state. The above-mentioned first calculation module 12 includes:
第一计算单元,用于利用预设的第一计算公式a =Aa x1+Ba y1+Ca z1,对第一加速度数据进行计算,获得对应急转弯状态的第一加速度参考值、对应急加速状态的第二加速度参考值和对应急刹车状态的第三加速度参考值,其中,在第一计算公式中,a 为特定行驶状态下的加速度参考值,a x1为第一加速度数据中X轴的加速度值,a y1为第一加速度数据中Y轴的加速度值,a z1为第一加速度 数据中Z轴的加速度值,A为第一特征值系数,B为第二特征值系数,C为第三特征值系数。 The first calculation unit is configured to use the preset first calculation formula a parameter = Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value for the emergency turning state and for the emergency acceleration The second acceleration reference value of the state and the third acceleration reference value of the emergency braking state, where, in the first calculation formula, a parameter is the acceleration reference value in a specific driving state, and a x1 is the X axis in the first acceleration data A y1 is the acceleration value of the Y axis in the first acceleration data, a z1 is the acceleration value of the Z axis in the first acceleration data, A is the first eigenvalue coefficient, B is the second eigenvalue coefficient, and C is The third eigenvalue coefficient.
在一个可选的实施例中,上述驾驶行为检测装置,还包括:In an optional embodiment, the above driving behavior detection device further includes:
第一采集模块,用于按照预定频率采集预定时长内各个行驶状态下的加速度样本数据,其中,每个行驶状态下的加速度样本数据至少有三组;The first collection module is configured to collect acceleration sample data in each driving state within a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each driving state;
第二计算模块,用于利用预设的第二计算公式
Figure PCTCN2020098827-appb-000003
分别对各个行驶状态下的各组加速度样本数据进行计算,获得多组对应的总加速度值,其中,在第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下加速度样本数据中X轴的加速度值,a y为特定行驶状态下加速度样本数据中Y轴的加速度值,a z为特定行驶状态下加速度样本数据中Z轴的加速度值;
The second calculation module is used to use the preset second calculation formula
Figure PCTCN2020098827-appb-000003
Calculate each group of acceleration sample data in each driving state to obtain multiple sets of corresponding total acceleration values. In the second calculation formula, a is always the total acceleration value in a specific driving state, and a x is a specific driving The acceleration value of the X axis in the acceleration sample data in the state, a y is the acceleration value of the Y axis in the acceleration sample data in the specific driving state, and a z is the acceleration value of the Z axis in the acceleration sample data in the specific driving state;
数据变换模块,用于对各个行驶状态下的各组加速度样本数据和多组对应的总加速度值分别进行傅里叶变换,获得多组各个行驶状态下的第一频域数据和多组对应总加速度值的第二频域数据;The data transformation module is used to perform Fourier transform on each set of acceleration sample data and multiple sets of corresponding total acceleration values in each driving state to obtain multiple sets of first frequency domain data and multiple sets of corresponding total acceleration values in each driving state. The second frequency domain data of the acceleration value;
频谱分析模块,用于对各组第一频域数据和各组第二频域数据分别进行频谱分析,获得多组各个行驶状态下对应加速度样本数据的第一特征值和多组对应总加速度值的第二特征值;The spectrum analysis module is used to perform spectrum analysis on each group of first frequency domain data and each group of second frequency domain data to obtain multiple groups of first characteristic values corresponding to acceleration sample data in each driving state and multiple groups of corresponding total acceleration values The second characteristic value;
第三计算模块,用于利用预设的第二计算公式Ax+By+Cz=Max,分别对各组第一特征值和各组第二特征值进行计算,获得第一特征值系数、第二特征值系数和第三特征值系数,其中,在第二计算公式中,A为第一特征值系数,B为第二特征值系数,C为第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的第一特征值,Max为与特定行驶状态下的合加速度值相对应的第二特征值。The third calculation module is used to use the preset second calculation formula Ax+By+Cz=Max to calculate each group of first characteristic values and each group of second characteristic values to obtain the first characteristic value coefficients and the second characteristic values. The characteristic value coefficient and the third characteristic value coefficient, where in the second calculation formula, A is the first characteristic value coefficient, B is the second characteristic value coefficient, C is the third characteristic value coefficient, and x is in a specific driving state The first characteristic value corresponding to the acceleration value of the X axis, y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, and z is the acceleration value corresponding to the Z axis in a specific driving state Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
在一个可选的实施例中,上述驾驶行为检测装置,还包括:In an optional embodiment, the above driving behavior detection device further includes:
第二采集模块,用于在指定时长内按照预设频率连续采集用户的多组运动数据,其中,运动数据包括第二加速度数据、第二角加速度数据和第二方位角数据;The second collection module is configured to continuously collect multiple sets of motion data of the user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth angle data;
第四计算模块,用于根据第二加速度数据、在行程开始状态下对应第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应行程开始状态的第四加速度参考值;以及,根据第二角加速数据和预设的计步算法,计算出用户的运动步数;以及,根据第二方位角数据、在使用移动终端状态下对应第二方位角数据的预设第五特征值数据和第二算法,计算出对应使用移动终端状态的方位角参照值;The fourth calculation module is used to calculate the fourth acceleration reference corresponding to the stroke start state according to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm And, according to the second angle acceleration data and the preset step counting algorithm, calculate the user's movement steps; and, according to the second azimuth data, the preset corresponding to the second azimuth data in the state of using the mobile terminal The fifth characteristic value data and the second algorithm calculate the azimuth reference value corresponding to the state of the mobile terminal;
比对模块,用于分别将第四加速度参考值与预设的加速度阀值进行比较、运动步数与预设的步数阀值进行比较、方位角参照值与预设的方位角阀值进行比较,并根据比较的结果判断用户当前是否处于开车状态;The comparison module is used to compare the fourth acceleration reference value with the preset acceleration threshold, the number of motion steps to compare with the preset step threshold, and the azimuth reference value to compare with the preset azimuth threshold. Compare, and judge whether the user is currently driving according to the result of the comparison;
上述第一获取模块11,具体用于当用户当前处于开车状态时,实时获取车辆行驶过程中的驾驶数据,其中,驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据。The above-mentioned first acquisition module 11 is specifically configured to acquire driving data of the vehicle in real time when the user is currently driving, wherein the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data.
在一个可选的实施例中,预设第四特征值数据包括在行程开始状态下与X轴的加速度值相对应的第四特征值系数、在行程开始状态下与Y轴的加速度值相对应的第五特征值系数,在行程开始状态下与Z轴的加速度值相对应的第六特征值系数,上述第四计算模块,包括:In an optional embodiment, the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the starting state of the stroke, and corresponding to the acceleration value of the Y axis in the starting state of the stroke. The fifth eigenvalue coefficient of, the sixth eigenvalue coefficient corresponding to the acceleration value of the Z axis in the stroke start state, the fourth calculation module mentioned above, includes:
第二计算单元,用于利用预设的第三计算公式
Figure PCTCN2020098827-appb-000004
对第二加速度数据进行计算,获得第四加速度参考值,其中,在第三计算公式中,a 四参为第四加速度参考值,a x2为第二加速度数据中X轴的加速度值,a y2为第二加速度数据中Y轴的加速度值,a z2为第二加速度数据中Z轴的加速度值,D为第四特征值系数,E为第五特征值系数,F为第六特征值系数,n为指定时长。
The second calculation unit is used to use a preset third calculation formula
Figure PCTCN2020098827-appb-000004
Calculate the second acceleration data to obtain the fourth acceleration reference value, where, in the third calculation formula, the four parameters a is the fourth acceleration reference value, a x2 is the acceleration value of the X axis in the second acceleration data, a y2 Is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth eigenvalue coefficient, E is the fifth eigenvalue coefficient, F is the sixth eigenvalue coefficient, n is the specified duration.
在一个可选的实施例中,驾驶数据还包括GPS数据,GPS数据包括速度信息、加速度信息和方位角信息,上述驾驶行为检测装置,还包括:In an optional embodiment, the driving data further includes GPS data, and the GPS data includes speed information, acceleration information, and azimuth angle information. The above-mentioned driving behavior detection device further includes:
第一判断模块,用于当用户当前存在急转弯的危险驾驶行为时,判断速度信息中的速度值是否大于预设速度阈值以及方位角信息中的方位角度值是否大于在急转弯状态下的预设方位角阈值;还用于当用户当前存在急加速的危险驾驶行为时,判断在预设时间段内加速度信息的合加速度值是否大于在急加速状态下的预设加速度阈值;还用于当用户当前存在急刹车的危险驾驶行为时,判断在预设时间段内加速度信息的合加速度值是否大于在急刹车状态下的预设加速度阈值;The first judgment module is used for judging whether the speed value in the speed information is greater than the preset speed threshold and the azimuth angle value in the azimuth angle information is greater than the predicted value in the sharp turn when the user currently has a dangerous driving behavior of a sharp turn. Set the azimuth threshold; it is also used when the user currently has a dangerous driving behavior of rapid acceleration, to determine whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold in the rapid acceleration state; also used when When the user currently has a dangerous driving behavior of sudden braking, it is judged whether the total acceleration value of the acceleration information in the preset time period is greater than the preset acceleration threshold in the sudden braking state;
确定模块,用于根据判断结果,确定用户当前是否存在危险驾驶行为以及危险驾驶行为的类型。The determination module is used to determine whether the user currently has dangerous driving behavior and the type of dangerous driving behavior according to the judgment result.
在一个可选的实施例中,上述驾驶行为检测装置,还包括:In an optional embodiment, the above driving behavior detection device further includes:
第二获取模块,用于当用户当前存在危险驾驶行为时,获取当前位置信息和时间信息;The second acquisition module is used to acquire current location information and time information when the user currently has dangerous driving behavior;
关联模块,用于将危险驾驶行为的类型与位置信息、时间信息进行关联,生成关联信息。The association module is used to associate the type of dangerous driving behavior with location information and time information to generate associated information.
在一个可选的实施例中,上述驾驶行为检测装置,还包括:In an optional embodiment, the above driving behavior detection device further includes:
第二判断模块,用于根据第一角加速度数据判断用户当前是否处于停车状态;The second judgment module is used to judge whether the user is currently in a parking state according to the first angular acceleration data;
生成模块,用于当用户当前处于停车状态时,生成行车轨迹记录图,并将关联信息标注在行车轨迹记录图中对应的位置上。The generating module is used to generate a driving track record chart when the user is currently in a parking state, and mark the associated information on the corresponding position in the driving track record chart.
在一个优选的实施例中,上述驾驶行为检测装置,还包括:In a preferred embodiment, the above-mentioned driving behavior detection device further includes:
数据处理模块,用于将各个行驶状态下所获得的加速度样本数据、角加速度样本数据和方位角样本数据分别输入至预设的RBF神经网络模型中进行数据处理,输出各个行驶状态下的上述预设加速度阈值、上述预设角加速度阈值和上述预设方位角阈值。The data processing module is used to input the acceleration sample data, angular acceleration sample data and azimuth sample data obtained in each driving state into the preset RBF neural network model for data processing, and output the above predictions in each driving state Set the acceleration threshold, the above-mentioned preset angular acceleration threshold and the above-mentioned preset azimuth angle threshold.
需要说明的是,对于上述装置实施例而言,由于其与上述方法实施例基本对应,其具体实施方式可参见方法实施例部分的说明即可,本领域技术人员可以理解,对此不再赘述。It should be noted that for the foregoing device embodiment, since it basically corresponds to the foregoing method embodiment, the specific implementation mode can be referred to the description of the method embodiment section, which can be understood by those skilled in the art and will not be repeated here. .
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储 驾驶行为检测方法程序等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时实现上一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:3, an embodiment of the present application also provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 3. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The computer equipment database is used to store driving behavior detection methods and programs. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the previous driving behavior detection method is realized, and the steps of the driving behavior detection method include:
实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state, and a sharp braking state;
分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
本申请实施例还提出一种计算机可读存储介质,所述存储介质为易失性存储介质或非易失性存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:The embodiment of the present application also proposes a computer-readable storage medium. The storage medium is a volatile storage medium or a non-volatile storage medium, and a computer program is stored thereon. When the computer program is executed by a processor, a driving In a behavior detection method, the steps of the driving behavior detection method include:
实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state, and a sharp braking state;
分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、 数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by computer programs instructing relevant hardware. The computer programs can be stored and a non-volatile computer readable storage In the medium, when the computer program is executed, it may include the procedures of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of this application description and drawings, or directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of this application.

Claims (20)

  1. 一种驾驶行为检测方法,其中,应用于移动终端上,所述方法包括:A driving behavior detection method, wherein, applied to a mobile terminal, the method includes:
    实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
    根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state, and a sharp braking state;
    分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
    若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  2. 根据权利要求1所述的驾驶行为检测方法,其中,所述预设第一特征值数据包括在特定行驶状态下与X轴的加速度值相对应的第一特征值系数、在特定行驶状态下与Y轴的加速度值相对应的第二特征值系数,在特定行驶状态下与Z轴的加速度值相对应的第三特征值系数,所述根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值的步骤,包括:The driving behavior detection method according to claim 1, wherein the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state. The second characteristic value coefficient corresponding to the acceleration value of the Y axis, and the third characteristic value coefficient corresponding to the acceleration value of the Z axis in a specific driving state, according to the first acceleration data, corresponding to each driving state The step of calculating the reference value of acceleration in each of the driving states by the preset first characteristic value data of the first acceleration data and the preset first algorithm includes:
    利用预设的第一计算公式a =Aa x1+Ba y1+Ca z1,对所述第一加速度数据进行计算,获得对应所述急转弯状态的第一加速度参考值、对应所述急加速状态的第二加速度参考值和对应所述急刹车状态的第三加速度参考值,其中,在所述第一计算公式中,a 为特定行驶状态下的加速度参考值,a x1为所述第一加速度数据中X轴的加速度值,a y1为所述第一加速度数据中Y轴的加速度值,a z1为所述第一加速度数据中Z轴的加速度值,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数。 Use the preset first calculation formula a parameter = Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value corresponding to the sharp turning state and corresponding to the sharp acceleration state The second acceleration reference value corresponding to the sudden braking state and the third acceleration reference value corresponding to the sudden braking state, wherein, in the first calculation formula, a parameter is the acceleration reference value in a specific driving state, and a x1 is the first The acceleration value of the X axis in the acceleration data, a y1 is the acceleration value of the Y axis in the first acceleration data, a z1 is the acceleration value of the Z axis in the first acceleration data, and A is the first characteristic value coefficient , B is the second characteristic value coefficient, and C is the third characteristic value coefficient.
  3. 根据权利要求2所述的驾驶行为检测方法,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:The driving behavior detection method according to claim 2, wherein, before the step of obtaining driving data during the driving of the vehicle in real time, the method further comprises:
    按照预定频率采集预定时长内各个所述行驶状态下的加速度样本数据,其中,每个所述行驶状态下的所述加速度样本数据至少有三组;Collecting acceleration sample data in each of the driving states for a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each of the driving states;
    利用预设的第二计算公式
    Figure PCTCN2020098827-appb-100001
    分别对各个所述行驶状态下的各组所述加速度样本数据进行计算,获得多组对应的总加速度值,其中,在所述第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下所述加速度样本数据中X轴的加速度值,a y为特定行驶状态下所述加速度样本数据中Y轴的加速度值,a z为特定行驶状态下所述加速度样本数据中Z轴的加速度值;
    Use the preset second calculation formula
    Figure PCTCN2020098827-appb-100001
    Calculate each group of the acceleration sample data in each of the driving states to obtain multiple sets of corresponding total acceleration values, where in the second calculation formula, a is always the total acceleration value in a specific driving state , A x is the acceleration value of the X axis in the acceleration sample data in a specific driving state, a y is the acceleration value of the Y axis in the acceleration sample data in a specific driving state, and a z is the acceleration sample in the specific driving state The acceleration value of the Z axis in the data;
    对各个所述行驶状态下的各组所述加速度样本数据和多组对应的所述总加 速度值分别进行傅里叶变换,获得多组各个所述行驶状态下的第一频域数据和多组对应所述总加速度值的第二频域数据;Fourier transform is performed on each group of said acceleration sample data and multiple sets of corresponding total acceleration values in each said driving state, respectively, to obtain multiple sets of first frequency domain data and multiple sets of each said driving state Second frequency domain data corresponding to the total acceleration value;
    对各组所述第一频域数据和各组所述第二频域数据分别进行频谱分析,获得多组各个所述行驶状态下对应所述加速度样本数据的第一特征值和多组对应所述总加速度值的第二特征值;Perform spectrum analysis on each group of the first frequency domain data and each group of the second frequency domain data, and obtain multiple sets of first feature values corresponding to the acceleration sample data in each of the driving conditions and multiple sets of corresponding data. The second characteristic value of the total acceleration value;
    利用预设的第二计算公式Ax+By+Cz=Max,分别对各组所述第一特征值和各组所述第二特征值进行计算,获得所述第一特征值系数、所述第二特征值系数和所述第三特征值系数,其中,在所述第二计算公式中,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的所述第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的所述第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的所述第一特征值,Max为与特定行驶状态下的所述合加速度值相对应的所述第二特征值。Using the preset second calculation formula Ax+By+Cz=Max, each group of the first characteristic value and each group of the second characteristic value are respectively calculated to obtain the first characteristic value coefficient and the first characteristic value coefficient. Two eigenvalue coefficients and the third eigenvalue coefficient, wherein, in the second calculation formula, A is the first eigenvalue coefficient, B is the second eigenvalue coefficient, and C is the third The characteristic value coefficient, where x is the first characteristic value corresponding to the acceleration value of the X axis in a specific driving state, and y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, z is the first characteristic value corresponding to the acceleration value of the Z axis in a specific driving state, and Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
  4. 根据权利要求1所述的驾驶行为检测方法,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:The driving behavior detection method according to claim 1, wherein, before the step of acquiring driving data in the vehicle driving process in real time, the method further comprises:
    在指定时长内按照预设频率连续采集所述用户的多组运动数据,其中,所述运动数据包括第二加速度数据、第二角加速度数据和第二方位角数据;Continuously collecting multiple sets of motion data of the user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth angle data;
    根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值;以及,根据所述第二角加速数据和预设的计步算法,计算出所述用户的运动步数;以及,根据所述第二方位角数据、在使用移动终端状态下对应所述第二方位角数据的预设第五特征值数据和所述第二算法,计算出对应所述使用移动终端状态的方位角参照值;According to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm, the fourth acceleration reference value corresponding to the stroke start state is calculated And, calculating the number of exercise steps of the user according to the second angular acceleration data and a preset step-counting algorithm; and, according to the second azimuth data, corresponding to the first in the state of using the mobile terminal The preset fifth characteristic value data of the two-azimuth angle data and the second algorithm calculate the azimuth angle reference value corresponding to the state of the mobile terminal in use;
    分别将所述第四加速度参考值与预设的加速度阀值进行比较、所述运动步数与预设的步数阀值进行比较、所述方位角参照值与预设的方位角阀值进行比较,并根据比较的结果判断所述用户当前是否处于开车状态;The fourth acceleration reference value is compared with a preset acceleration threshold value, the number of exercise steps is compared with a preset step threshold value, and the azimuth angle reference value is compared with the preset azimuth angle threshold value. Compare, and determine whether the user is currently driving according to the result of the comparison;
    若所述用户当前处于开车状态,则执行所述实时获取车辆行驶过程中的驾驶数据的步骤。If the user is currently in a driving state, the step of acquiring driving data during the driving of the vehicle in real time is executed.
  5. 根据权利要求4所述的驾驶行为检测方法,其中,所述预设第四特征值数据包括在所述行程开始状态下与X轴的加速度值相对应的第四特征值系数、在所述行程开始状态下与Y轴的加速度值相对应的第五特征值系数,在所述行程开始状态下与Z轴的加速度值相对应的第六特征值系数,所述根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值的步骤,包括:The driving behavior detection method according to claim 4, wherein the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the starting state of the stroke, and The fifth characteristic value coefficient corresponding to the acceleration value of the Y axis in the starting state, and the sixth characteristic value coefficient corresponding to the acceleration value of the Z axis in the starting state of the stroke, according to the second acceleration data, The step of calculating the fourth acceleration reference value corresponding to the start state of the stroke corresponding to the preset fourth characteristic value data of the second acceleration data and the preset second algorithm in the stroke start state includes:
    利用预设的第三计算公式
    Figure PCTCN2020098827-appb-100002
    对所述第二加速度数据进行计算,获得所述第四加速度参考值,其中,在所述第三计算公式中,a 四参为所述第四加速度参考值,a x2为所述第二加速度数据中X轴的加速度值,a y2为所述第二加速度数据中Y轴的加速度值,a z2为所述第二加速度数据中Z轴的 加速度值,D为所述第四特征值系数,E为所述第五特征值系数,F为所述第六特征值系数,n为所述指定时长。
    Use the preset third calculation formula
    Figure PCTCN2020098827-appb-100002
    Calculate the second acceleration data to obtain the fourth acceleration reference value, where in the third calculation formula, a four-parameter is the fourth acceleration reference value, and a x2 is the second acceleration The acceleration value of the X axis in the data, a y2 is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth characteristic value coefficient, E is the fifth characteristic value coefficient, F is the sixth characteristic value coefficient, and n is the specified duration.
  6. 根据权利要求1至5中任一项所述的驾驶行为检测方法,其中,所述驾驶数据还包括GPS数据,所述GPS数据包括速度信息、加速度信息和方位角信息;所述判定用户当前存在危险驾驶行为的步骤之后,还包括:The driving behavior detection method according to any one of claims 1 to 5, wherein the driving data further includes GPS data, and the GPS data includes speed information, acceleration information, and azimuth information; the determining that the user currently exists After the dangerous driving behavior steps, it also includes:
    若用户当前存在急转弯的危险驾驶行为,则判断所述速度信息中的速度值是否大于预设速度阈值以及所述方位角信息中的方位角度值是否大于在所述急转弯状态下的所述预设方位角阈值;If the user currently has a dangerous driving behavior of a sharp turn, it is determined whether the speed value in the speed information is greater than a preset speed threshold and whether the azimuth angle value in the azimuth angle information is greater than the azimuth angle value in the sharp turn. Preset azimuth angle threshold;
    若用户当前存在急加速的危险驾驶行为,则判断在预设时间段内所述加速度信息的合加速度值是否大于在所述急加速状态下的所述预设加速度阈值;If the user currently has a dangerous driving behavior of rapid acceleration, determining whether the total acceleration value of the acceleration information in a preset time period is greater than the preset acceleration threshold in the rapid acceleration state;
    若用户当前存在急刹车的危险驾驶行为,则判断在预设时间段内所述加速度信息的合加速度值是否大于在所述急刹车状态下的所述预设加速度阈值;If the user currently has a dangerous driving behavior of sudden braking, determining whether the total acceleration value of the acceleration information within a preset period of time is greater than the preset acceleration threshold in the sudden braking state;
    根据判断结果,确定用户当前是否存在所述危险驾驶行为以及所述危险驾驶行为的类型。According to the judgment result, it is determined whether the user currently has the dangerous driving behavior and the type of the dangerous driving behavior.
  7. 根据权利要求6所述的驾驶行为检测方法,其中,所述根据判断结果,确定用户当前是否存在所述危险驾驶行为以及所述危险驾驶行为的类型的步骤之后,还包括:The driving behavior detection method according to claim 6, wherein after the step of determining whether the user currently has the dangerous driving behavior and the type of the dangerous driving behavior according to the judgment result, the method further comprises:
    当用户当前存在所述危险驾驶行为时,获取当前位置信息和时间信息;When the user currently has the dangerous driving behavior, acquiring current location information and time information;
    将所述危险驾驶行为的类型与所述位置信息、时间信息进行关联,生成关联信息。Associating the type of the dangerous driving behavior with the location information and time information to generate associated information.
  8. 一种驾驶行为检测装置,其中,应用于移动终端上,所述装置包括:A driving behavior detection device, wherein, applied to a mobile terminal, the device includes:
    第一获取模块,用于实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;The first acquisition module is configured to acquire driving data during the driving of the vehicle in real time, wherein the driving data includes first acceleration data, first angular acceleration data, and first azimuth data;
    第一计算模块,用于根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;The first calculation module is configured to calculate the first acceleration data in each driving state, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm And, according to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, calculating each of the The angular acceleration reference value in the driving state; and, calculating according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm The azimuth reference value in each of the driving states, where the driving state includes a sharp turn state, a sharp acceleration state, and a sudden braking state;
    比较模块,用于分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;The comparison module is configured to compare the acceleration reference value with a preset acceleration threshold under the same driving state, compare the angular acceleration reference value with the preset angular acceleration threshold, and compare the azimuth reference value with the preset azimuth Angle threshold for comparison;
    判定模块,用于当相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值时,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。The determination module is configured to: when the acceleration reference value in the same driving state is greater than a preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the orientation in the same driving state When the angle reference value is greater than the preset azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  9. 根据权利要求8所述的驾驶行为检测装置,其中,所述第一获取模块包括:The driving behavior detection device according to claim 8, wherein the first acquisition module comprises:
    采集单元,用于实时采集车辆行驶过程中的加速度数据、角加速度数据和方位角数据;Acquisition unit for real-time acquisition of acceleration data, angular acceleration data and azimuth angle data during vehicle driving;
    降噪处理单元,用于对加速度数据进行低通滤波处理,获得第一加速度数据,以及,分别对角加速度数据、方位角数据进行带通滤波处理,获得第一角加速度 数据和第一方位角数据。The noise reduction processing unit is used to perform low-pass filtering processing on the acceleration data to obtain the first acceleration data, and to perform band-pass filtering processing on the angular acceleration data and the azimuth angle data respectively to obtain the first angular acceleration data and the first azimuth angle data.
  10. 根据权利要求7所述的驾驶行为检测装置,其中,还包括:The driving behavior detection device according to claim 7, further comprising:
    第一采集模块,用于按照预定频率采集预定时长内各个行驶状态下的加速度样本数据,其中,每个行驶状态下的加速度样本数据至少有三组;The first collection module is configured to collect acceleration sample data in each driving state within a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each driving state;
    第二计算模块,用于利用预设的第二计算公式
    Figure PCTCN2020098827-appb-100003
    分别对各个行驶状态下的各组加速度样本数据进行计算,获得多组对应的总加速度值,其中,在第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下加速度样本数据中X轴的加速度值,a y为特定行驶状态下加速度样本数据中Y轴的加速度值,a z为特定行驶状态下加速度样本数据中Z轴的加速度值;
    The second calculation module is used to use the preset second calculation formula
    Figure PCTCN2020098827-appb-100003
    Calculate each group of acceleration sample data in each driving state to obtain multiple sets of corresponding total acceleration values. In the second calculation formula, a is always the total acceleration value in a specific driving state, and a x is a specific driving The acceleration value of the X axis in the acceleration sample data in the state, a y is the acceleration value of the Y axis in the acceleration sample data in the specific driving state, and a z is the acceleration value of the Z axis in the acceleration sample data in the specific driving state;
    数据变换模块,用于对各个行驶状态下的各组加速度样本数据和多组对应的总加速度值分别进行傅里叶变换,获得多组各个行驶状态下的第一频域数据和多组对应总加速度值的第二频域数据;The data transformation module is used to perform Fourier transform on each set of acceleration sample data and multiple sets of corresponding total acceleration values in each driving state to obtain multiple sets of first frequency domain data and multiple sets of corresponding total acceleration values in each driving state. The second frequency domain data of the acceleration value;
    频谱分析模块,用于对各组第一频域数据和各组第二频域数据分别进行频谱分析,获得多组各个行驶状态下对应加速度样本数据的第一特征值和多组对应总加速度值的第二特征值;The spectrum analysis module is used to perform spectrum analysis on each group of first frequency domain data and each group of second frequency domain data to obtain multiple groups of first characteristic values corresponding to acceleration sample data in each driving state and multiple groups of corresponding total acceleration values The second characteristic value;
    第三计算模块,用于利用预设的第二计算公式Ax+By+Cz=Max,分别对各组第一特征值和各组第二特征值进行计算,获得第一特征值系数、第二特征值系数和第三特征值系数,其中,在第二计算公式中,A为第一特征值系数,B为第二特征值系数,C为第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的第一特征值,Max为与特定行驶状态下的合加速度值相对应的第二特征值。The third calculation module is used to use the preset second calculation formula Ax+By+Cz=Max to calculate each group of first characteristic values and each group of second characteristic values to obtain the first characteristic value coefficients and the second characteristic values. The characteristic value coefficient and the third characteristic value coefficient, where in the second calculation formula, A is the first characteristic value coefficient, B is the second characteristic value coefficient, C is the third characteristic value coefficient, and x is in a specific driving state The first characteristic value corresponding to the acceleration value of the X axis, y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, and z is the acceleration value corresponding to the Z axis in a specific driving state Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
  11. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其中,所述处理器执行所述计算机程序时实现一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:A computer device includes a memory and a processor, the memory stores a computer program, wherein the processor implements a driving behavior detection method when the computer program is executed, and the steps of the driving behavior detection method include:
    实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
    根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state, and a sharp braking state;
    分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
    若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  12. 根据权利要求11所述的计算机设备,其中,所述预设第一特征值数据包括在特定行驶状态下与X轴的加速度值相对应的第一特征值系数、在特定行驶 状态下与Y轴的加速度值相对应的第二特征值系数,在特定行驶状态下与Z轴的加速度值相对应的第三特征值系数,所述根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值的步骤,包括:The computer device according to claim 11, wherein the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X axis in a specific driving state, and a first characteristic value coefficient corresponding to an acceleration value of the Y axis in a specific driving state. The second characteristic value coefficient corresponding to the acceleration value of the vehicle, the third characteristic value coefficient corresponding to the acceleration value of the Z axis in a specific driving state, and the first acceleration data corresponding to the first characteristic value coefficient in each driving state according to the first acceleration data The step of calculating the reference value of acceleration in each of said driving states with preset first characteristic value data of acceleration data and a preset first algorithm includes:
    利用预设的第一计算公式a =Aa x1+Ba y1+Ca z1,对所述第一加速度数据进行计算,获得对应所述急转弯状态的第一加速度参考值、对应所述急加速状态的第二加速度参考值和对应所述急刹车状态的第三加速度参考值,其中,在所述第一计算公式中,a 为特定行驶状态下的加速度参考值,a x1为所述第一加速度数据中X轴的加速度值,a y1为所述第一加速度数据中Y轴的加速度值,a z1为所述第一加速度数据中Z轴的加速度值,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数。 Use the preset first calculation formula a parameter = Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value corresponding to the sharp turning state and corresponding to the sharp acceleration state The second acceleration reference value corresponding to the sudden braking state and the third acceleration reference value corresponding to the sudden braking state, wherein, in the first calculation formula, a parameter is the acceleration reference value in a specific driving state, and a x1 is the first The acceleration value of the X axis in the acceleration data, a y1 is the acceleration value of the Y axis in the first acceleration data, a z1 is the acceleration value of the Z axis in the first acceleration data, and A is the first characteristic value coefficient , B is the second characteristic value coefficient, and C is the third characteristic value coefficient.
  13. 根据权利要求12所述的计算机设备,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:The computer device according to claim 12, wherein, before the step of obtaining driving data during the driving of the vehicle in real time, it further comprises:
    按照预定频率采集预定时长内各个所述行驶状态下的加速度样本数据,其中,每个所述行驶状态下的所述加速度样本数据至少有三组;Collecting acceleration sample data in each of the driving states for a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each of the driving states;
    利用预设的第二计算公式
    Figure PCTCN2020098827-appb-100004
    分别对各个所述行驶状态下的各组所述加速度样本数据进行计算,获得多组对应的总加速度值,其中,在所述第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下所述加速度样本数据中X轴的加速度值,a y为特定行驶状态下所述加速度样本数据中Y轴的加速度值,a z为特定行驶状态下所述加速度样本数据中Z轴的加速度值;
    Use the preset second calculation formula
    Figure PCTCN2020098827-appb-100004
    Calculate each group of the acceleration sample data in each of the driving states to obtain multiple sets of corresponding total acceleration values, where in the second calculation formula, a is always the total acceleration value in a specific driving state , A x is the acceleration value of the X axis in the acceleration sample data in a specific driving state, a y is the acceleration value of the Y axis in the acceleration sample data in a specific driving state, and a z is the acceleration sample in the specific driving state The acceleration value of the Z axis in the data;
    对各个所述行驶状态下的各组所述加速度样本数据和多组对应的所述总加速度值分别进行傅里叶变换,获得多组各个所述行驶状态下的第一频域数据和多组对应所述总加速度值的第二频域数据;Fourier transform is performed on each group of said acceleration sample data and multiple sets of corresponding total acceleration values in each said driving state, respectively, to obtain multiple sets of first frequency domain data and multiple sets of each said driving state Second frequency domain data corresponding to the total acceleration value;
    对各组所述第一频域数据和各组所述第二频域数据分别进行频谱分析,获得多组各个所述行驶状态下对应所述加速度样本数据的第一特征值和多组对应所述总加速度值的第二特征值;Perform spectrum analysis on each group of the first frequency domain data and each group of the second frequency domain data, and obtain multiple sets of first feature values corresponding to the acceleration sample data in each of the driving conditions and multiple sets of corresponding data. The second characteristic value of the total acceleration value;
    利用预设的第二计算公式Ax+By+Cz=Max,分别对各组所述第一特征值和各组所述第二特征值进行计算,获得所述第一特征值系数、所述第二特征值系数和所述第三特征值系数,其中,在所述第二计算公式中,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的所述第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的所述第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的所述第一特征值,Max为与特定行驶状态下的所述合加速度值相对应的所述第二特征值。Using the preset second calculation formula Ax+By+Cz=Max, each group of the first characteristic value and each group of the second characteristic value are respectively calculated to obtain the first characteristic value coefficient and the first characteristic value coefficient. Two eigenvalue coefficients and the third eigenvalue coefficient, wherein, in the second calculation formula, A is the first eigenvalue coefficient, B is the second eigenvalue coefficient, and C is the third The characteristic value coefficient, where x is the first characteristic value corresponding to the acceleration value of the X axis in a specific driving state, and y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, z is the first characteristic value corresponding to the acceleration value of the Z axis in a specific driving state, and Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
  14. 根据权利要求11所述的计算机设备,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:The computer device according to claim 11, wherein, before the step of acquiring driving data during the driving of the vehicle in real time, it further comprises:
    在指定时长内按照预设频率连续采集所述用户的多组运动数据,其中,所述运动数据包括第二加速度数据、第二角加速度数据和第二方位角数据;Continuously collecting multiple sets of motion data of the user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth angle data;
    根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值;以及,根据所述第二角加速数据和预设的计步算法,计算出所述用户的运动步数;以及,根据所述第二方位角数据、在使用移动终端状态下对应所述第二方位角数据的预设第五特征值数据和所述第二算法,计算出对应所述使用移 动终端状态的方位角参照值;According to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm, the fourth acceleration reference value corresponding to the stroke start state is calculated And, calculating the number of exercise steps of the user according to the second angular acceleration data and a preset step-counting algorithm; and, according to the second azimuth data, corresponding to the first in the state of using the mobile terminal The preset fifth characteristic value data of the two-azimuth angle data and the second algorithm calculate the azimuth angle reference value corresponding to the state of the mobile terminal in use;
    分别将所述第四加速度参考值与预设的加速度阀值进行比较、所述运动步数与预设的步数阀值进行比较、所述方位角参照值与预设的方位角阀值进行比较,并根据比较的结果判断所述用户当前是否处于开车状态;The fourth acceleration reference value is compared with a preset acceleration threshold value, the number of exercise steps is compared with a preset step threshold value, and the azimuth angle reference value is compared with the preset azimuth angle threshold value. Compare, and determine whether the user is currently driving according to the result of the comparison;
    若所述用户当前处于开车状态,则执行所述实时获取车辆行驶过程中的驾驶数据的步骤。If the user is currently in a driving state, the step of acquiring driving data during the driving of the vehicle in real time is executed.
  15. 根据权利要求14所述的计算机设备,其中,所述预设第四特征值数据包括在所述行程开始状态下与X轴的加速度值相对应的第四特征值系数、在所述行程开始状态下与Y轴的加速度值相对应的第五特征值系数,在所述行程开始状态下与Z轴的加速度值相对应的第六特征值系数,所述根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值的步骤,包括:The computer device according to claim 14, wherein the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to the acceleration value of the X axis in the stroke start state, and in the stroke start state The fifth characteristic value coefficient corresponding to the acceleration value of the Y axis, the sixth characteristic value coefficient corresponding to the acceleration value of the Z axis in the stroke start state, the second acceleration data, the stroke The step of calculating the fourth acceleration reference value corresponding to the starting state of the stroke by the preset fourth characteristic value data corresponding to the second acceleration data and the preset second algorithm in the starting state includes:
    利用预设的第三计算公式
    Figure PCTCN2020098827-appb-100005
    对所述第二加速度数据进行计算,获得所述第四加速度参考值,其中,在所述第三计算公式中,a 四参为所述第四加速度参考值,a x2为所述第二加速度数据中X轴的加速度值,a y2为所述第二加速度数据中Y轴的加速度值,a z2为所述第二加速度数据中Z轴的加速度值,D为所述第四特征值系数,E为所述第五特征值系数,F为所述第六特征值系数,n为所述指定时长。
    Use the preset third calculation formula
    Figure PCTCN2020098827-appb-100005
    Calculate the second acceleration data to obtain the fourth acceleration reference value, where in the third calculation formula, a four-parameter is the fourth acceleration reference value, and a x2 is the second acceleration The acceleration value of the X axis in the data, a y2 is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth characteristic value coefficient, E is the fifth characteristic value coefficient, F is the sixth characteristic value coefficient, and n is the specified duration.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现一种驾驶行为检测方法,所述驾驶行为检测方法的步骤包括:A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, a driving behavior detection method is implemented, and the steps of the driving behavior detection method include:
    实时获取车辆行驶过程中的驾驶数据,其中,所述驾驶数据包括第一加速度数据、第一角加速度数据和第一方位角数据;Real-time acquisition of driving data during the driving of the vehicle, where the driving data includes first acceleration data, first angular acceleration data, and first azimuth angle data;
    根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值;以及,根据所述第一角加速度数据、各个所述行驶状态下对应所述第一角加速度数据的预设第二特征值数据和所述第一算法,计算出各个所述行驶状态下的角加速度参考值;以及,根据所述第一方位角数据、各个所述行驶状态下对应所述第一方位角数据的预设第三特征值数据和所述第一算法,计算出各个所述行驶状态下的方位角参考值,其中,所述行驶状态包括急转弯状态、急加速状态和急刹车状态;Calculate the acceleration reference value in each driving state according to the first acceleration data, the preset first characteristic value data corresponding to the first acceleration data in each driving state, and the preset first algorithm; and, According to the first angular acceleration data, the preset second characteristic value data corresponding to the first angular acceleration data in each of the driving states, and the first algorithm, the angular acceleration reference in each of the driving states is calculated Value; and, according to the first azimuth angle data, the preset third characteristic value data corresponding to the first azimuth angle data in each of the driving states, and the first algorithm, the calculation of each of the driving states The reference value of the azimuth angle of, wherein the driving state includes a sharp turn state, a sharp acceleration state, and a sharp braking state;
    分别将相同行驶状态下的所述加速度参考值与预设加速度阈值进行比较、所述角加速度参考值与预设角加速度阈值进行比较、所述方位角参考值与预设方位角阈值进行比较;Comparing the acceleration reference value with a preset acceleration threshold value, the angular acceleration reference value and the preset angular acceleration threshold value, and the azimuth angle reference value and the preset azimuth angle threshold value respectively in the same driving state;
    若相同行驶状态下的所述加速度参考值大于预设加速度阈值,且相同行驶状态下的所述角加速度参考值大于预设角加速度阈值,且相同行驶状态下的所述方位角参考值大于预设方位角阈值,则判定用户当前存在危险驾驶行为,其中,所述危险驾驶行为包括急转弯、急加速、急刹车中的一种或多种。If the acceleration reference value in the same driving state is greater than the preset acceleration threshold, and the angular acceleration reference value in the same driving state is greater than the preset angular acceleration threshold, and the azimuth angle reference value in the same driving state is greater than the preset acceleration threshold. Setting the azimuth angle threshold, it is determined that the user currently has a dangerous driving behavior, where the dangerous driving behavior includes one or more of a sharp turn, a sharp acceleration, and a sharp brake.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述预设第一特征值数据包括在特定行驶状态下与X轴的加速度值相对应的第一特征值系数、在特定行驶状态下与Y轴的加速度值相对应的第二特征值系数,在特定行驶状态下与Z轴的加速度值相对应的第三特征值系数,所述根据所述第一加速度数据、各个行驶状态下对应所述第一加速度数据的预设第一特征值数据和预设的第一算法,计算出各个所述行驶状态下的加速度参考值的步骤,包括:The computer-readable storage medium according to claim 16, wherein the preset first characteristic value data includes a first characteristic value coefficient corresponding to an acceleration value of the X-axis in a specific driving state, and in a specific driving state The second eigenvalue coefficient corresponding to the acceleration value of the Y axis, and the third eigenvalue coefficient corresponding to the acceleration value of the Z axis in a specific driving state, according to the first acceleration data, corresponding to each driving state The step of calculating the reference value of acceleration in each driving state by the preset first characteristic value data of the first acceleration data and the preset first algorithm includes:
    利用预设的第一计算公式a =Aa x1+Ba y1+Ca z1,对所述第一加速度数据进行计算,获得对应所述急转弯状态的第一加速度参考值、对应所述急加速状态的第二加速度参考值和对应所述急刹车状态的第三加速度参考值,其中,在所述第一计算公式中,a 为特定行驶状态下的加速度参考值,a x1为所述第一加速度数据中X轴的加速度值,a y1为所述第一加速度数据中Y轴的加速度值,a z1为所述第一加速度数据中Z轴的加速度值,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数。 Use the preset first calculation formula a parameter = Aa x1 +Ba y1 +Ca z1 to calculate the first acceleration data to obtain the first acceleration reference value corresponding to the sharp turning state and corresponding to the sharp acceleration state The second acceleration reference value corresponding to the sudden braking state and the third acceleration reference value corresponding to the sudden braking state, wherein, in the first calculation formula, a parameter is the acceleration reference value in a specific driving state, and a x1 is the first The acceleration value of the X axis in the acceleration data, a y1 is the acceleration value of the Y axis in the first acceleration data, a z1 is the acceleration value of the Z axis in the first acceleration data, and A is the first characteristic value coefficient , B is the second characteristic value coefficient, and C is the third characteristic value coefficient.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:18. The computer-readable storage medium according to claim 17, wherein, before the step of acquiring driving data during the driving of the vehicle in real time, the method further comprises:
    按照预定频率采集预定时长内各个所述行驶状态下的加速度样本数据,其中,每个所述行驶状态下的所述加速度样本数据至少有三组;Collecting acceleration sample data in each of the driving states for a predetermined time period according to a predetermined frequency, wherein there are at least three sets of acceleration sample data in each of the driving states;
    利用预设的第二计算公式
    Figure PCTCN2020098827-appb-100006
    分别对各个所述行驶状态下的各组所述加速度样本数据进行计算,获得多组对应的总加速度值,其中,在所述第二计算公式中,a 为特定行驶状态下的总加速度值,a x为特定行驶状态下所述加速度样本数据中X轴的加速度值,a y为特定行驶状态下所述加速度样本数据中Y轴的加速度值,a z为特定行驶状态下所述加速度样本数据中Z轴的加速度值;
    Use the preset second calculation formula
    Figure PCTCN2020098827-appb-100006
    Calculate each group of the acceleration sample data in each of the driving states to obtain multiple sets of corresponding total acceleration values, where in the second calculation formula, a is always the total acceleration value in a specific driving state , A x is the acceleration value of the X axis in the acceleration sample data in a specific driving state, a y is the acceleration value of the Y axis in the acceleration sample data in a specific driving state, and a z is the acceleration sample in the specific driving state The acceleration value of the Z axis in the data;
    对各个所述行驶状态下的各组所述加速度样本数据和多组对应的所述总加速度值分别进行傅里叶变换,获得多组各个所述行驶状态下的第一频域数据和多组对应所述总加速度值的第二频域数据;Fourier transform is performed on each group of said acceleration sample data and multiple sets of corresponding total acceleration values in each said driving state, respectively, to obtain multiple sets of first frequency domain data and multiple sets of each said driving state Second frequency domain data corresponding to the total acceleration value;
    对各组所述第一频域数据和各组所述第二频域数据分别进行频谱分析,获得多组各个所述行驶状态下对应所述加速度样本数据的第一特征值和多组对应所述总加速度值的第二特征值;Perform spectrum analysis on each group of the first frequency domain data and each group of the second frequency domain data, and obtain multiple sets of first feature values corresponding to the acceleration sample data in each of the driving conditions and multiple sets of corresponding data. The second characteristic value of the total acceleration value;
    利用预设的第二计算公式Ax+By+Cz=Max,分别对各组所述第一特征值和各组所述第二特征值进行计算,获得所述第一特征值系数、所述第二特征值系数和所述第三特征值系数,其中,在所述第二计算公式中,A为所述第一特征值系数,B为所述第二特征值系数,C为所述第三特征值系数,x为在特定行驶状态下与X轴的加速度值相对应的所述第一特征值,y为在特定行驶状态下与Y轴的加速度值相对应的所述第一特征值,z为在特定行驶状态下与Z轴的加速度值相对应的所述第一特征值,Max为与特定行驶状态下的所述合加速度值相对应的所述第二特征值。Using the preset second calculation formula Ax+By+Cz=Max, each group of the first characteristic value and each group of the second characteristic value are respectively calculated to obtain the first characteristic value coefficient and the first characteristic value coefficient. Two eigenvalue coefficients and the third eigenvalue coefficient, wherein, in the second calculation formula, A is the first eigenvalue coefficient, B is the second eigenvalue coefficient, and C is the third The characteristic value coefficient, where x is the first characteristic value corresponding to the acceleration value of the X axis in a specific driving state, and y is the first characteristic value corresponding to the acceleration value of the Y axis in a specific driving state, z is the first characteristic value corresponding to the acceleration value of the Z axis in a specific driving state, and Max is the second characteristic value corresponding to the resultant acceleration value in a specific driving state.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述实时获取车辆行驶过程中的驾驶数据的步骤之前,还包括:15. The computer-readable storage medium according to claim 16, wherein before the step of acquiring driving data during the driving of the vehicle in real time, the method further comprises:
    在指定时长内按照预设频率连续采集所述用户的多组运动数据,其中,所述运动数据包括第二加速度数据、第二角加速度数据和第二方位角数据;Continuously collecting multiple sets of motion data of the user according to a preset frequency within a specified time period, where the motion data includes second acceleration data, second angular acceleration data, and second azimuth angle data;
    根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值;以及,根据所述第二角加速数据和预设的计步算法,计算出所述用户 的运动步数;以及,根据所述第二方位角数据、在使用移动终端状态下对应所述第二方位角数据的预设第五特征值数据和所述第二算法,计算出对应所述使用移动终端状态的方位角参照值;According to the second acceleration data, the preset fourth characteristic value data corresponding to the second acceleration data in the stroke start state, and the preset second algorithm, the fourth acceleration reference value corresponding to the stroke start state is calculated And, calculating the number of exercise steps of the user according to the second angular acceleration data and a preset step-counting algorithm; and, according to the second azimuth data, corresponding to the first in the state of using the mobile terminal The preset fifth characteristic value data of the two-azimuth angle data and the second algorithm calculate the azimuth angle reference value corresponding to the state of the mobile terminal in use;
    分别将所述第四加速度参考值与预设的加速度阀值进行比较、所述运动步数与预设的步数阀值进行比较、所述方位角参照值与预设的方位角阀值进行比较,并根据比较的结果判断所述用户当前是否处于开车状态;The fourth acceleration reference value is compared with a preset acceleration threshold value, the number of exercise steps is compared with a preset step threshold value, and the azimuth angle reference value is compared with the preset azimuth angle threshold value. Compare, and determine whether the user is currently driving according to the result of the comparison;
    若所述用户当前处于开车状态,则执行所述实时获取车辆行驶过程中的驾驶数据的步骤。If the user is currently in a driving state, the step of acquiring driving data during the driving of the vehicle in real time is executed.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述预设第四特征值数据包括在所述行程开始状态下与X轴的加速度值相对应的第四特征值系数、在所述行程开始状态下与Y轴的加速度值相对应的第五特征值系数,在所述行程开始状态下与Z轴的加速度值相对应的第六特征值系数,所述根据所述第二加速度数据、在行程开始状态下对应所述第二加速度数据的预设第四特征值数据和预设的第二算法,计算出对应所述行程开始状态的第四加速度参考值的步骤,包括:The computer-readable storage medium according to claim 19, wherein the preset fourth characteristic value data includes a fourth characteristic value coefficient corresponding to an acceleration value of the X axis in the stroke start state, The fifth characteristic value coefficient corresponding to the acceleration value of the Y axis in the stroke start state, and the sixth characteristic value coefficient corresponding to the acceleration value of the Z axis in the stroke start state, according to the second acceleration data The step of calculating the fourth acceleration reference value corresponding to the start state of the stroke corresponding to the preset fourth characteristic value data of the second acceleration data and the preset second algorithm in the start state of the stroke includes:
    利用预设的第三计算公式
    Figure PCTCN2020098827-appb-100007
    对所述第二加速度数据进行计算,获得所述第四加速度参考值,其中,在所述第三计算公式中,a 四参为所述第四加速度参考值,a x2为所述第二加速度数据中X轴的加速度值,a y2为所述第二加速度数据中Y轴的加速度值,a z2为所述第二加速度数据中Z轴的加速度值,D为所述第四特征值系数,E为所述第五特征值系数,F为所述第六特征值系数,n为所述指定时长。
    Use the preset third calculation formula
    Figure PCTCN2020098827-appb-100007
    Calculate the second acceleration data to obtain the fourth acceleration reference value, where in the third calculation formula, a four-parameter is the fourth acceleration reference value, and a x2 is the second acceleration The acceleration value of the X axis in the data, a y2 is the acceleration value of the Y axis in the second acceleration data, a z2 is the acceleration value of the Z axis in the second acceleration data, D is the fourth characteristic value coefficient, E is the fifth characteristic value coefficient, F is the sixth characteristic value coefficient, and n is the specified duration.
PCT/CN2020/098827 2019-08-14 2020-06-29 Driving behavior detection method and apparatus, computer device, and storage medium WO2021027410A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910750554.6A CN110550035B (en) 2019-08-14 2019-08-14 Driving behavior detection method and device, computer equipment and storage medium
CN201910750554.6 2019-08-14

Publications (1)

Publication Number Publication Date
WO2021027410A1 true WO2021027410A1 (en) 2021-02-18

Family

ID=68737552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098827 WO2021027410A1 (en) 2019-08-14 2020-06-29 Driving behavior detection method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN110550035B (en)
WO (1) WO2021027410A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114426025A (en) * 2022-03-17 2022-05-03 一汽解放汽车有限公司 Driving assistance method, driving assistance device, computer equipment and storage medium
CN114487477A (en) * 2022-01-17 2022-05-13 北京卡路里信息技术有限公司 Riding judgment method and device based on wristband, storage medium and processor

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110550035B (en) * 2019-08-14 2022-03-18 平安科技(深圳)有限公司 Driving behavior detection method and device, computer equipment and storage medium
CN110979336A (en) * 2019-12-24 2020-04-10 东北林业大学 Real-time monitoring system for running attitude of vehicle body
CN111951550B (en) * 2020-08-06 2021-10-29 华南理工大学 Traffic safety risk monitoring method and device, storage medium and computer equipment
CN113096401A (en) * 2021-04-08 2021-07-09 重庆交通职业学院 Traffic accident early warning system and method
CN113506012A (en) * 2021-07-22 2021-10-15 中冶南方城市建设工程技术有限公司 Driving behavior risk index judgment method based on mobile phone Internet of vehicles data
CN116394952A (en) * 2023-03-06 2023-07-07 机汇网(深圳)科技有限公司 Driver abnormal driving behavior detection method, computer device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011194973A (en) * 2010-03-18 2011-10-06 Advics Co Ltd Vehicle motion control device
CN104354699A (en) * 2014-10-08 2015-02-18 北京远特科技有限公司 Method and device for detecting driving behavior information based on OBD (on-board diagnostic) terminal
CN106934876A (en) * 2017-03-16 2017-07-07 广东翼卡车联网服务有限公司 A kind of recognition methods of vehicle abnormality driving event and system
CN108022326A (en) * 2017-11-30 2018-05-11 中国平安财产保险股份有限公司 Stroke recording detection method, mobile device, detection terminal and readable storage medium storing program for executing
CN108189763A (en) * 2018-01-17 2018-06-22 北京万得嘉瑞汽车技术有限公司 A kind of analysis method of driver's driving behavior and special intelligent vehicular rear mirror
CN108304594A (en) * 2017-01-11 2018-07-20 厦门雅迅网络股份有限公司 A kind of determination method of the car steering stability based on speed and gyro data
CN110550035A (en) * 2019-08-14 2019-12-10 平安科技(深圳)有限公司 driving behavior detection method and device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19515046B4 (en) * 1994-11-25 2012-03-08 Continental Teves Ag & Co. Ohg Device for controlling the yawing moment of a vehicle
CN105718710B (en) * 2014-12-02 2019-01-11 高德软件有限公司 A kind of driving behavior analysis method and apparatus
CN106297290A (en) * 2016-08-27 2017-01-04 时空链(北京)科技有限公司 A kind of driving behavior processing method, mobile unit and cloud server
CN108068823A (en) * 2017-12-06 2018-05-25 上海评驾科技有限公司 A kind of vehicle drive behavioral value method
CN108921977A (en) * 2018-07-16 2018-11-30 东北林业大学 A kind of vehicle carried driving person's abnormal driving behavioral value device and detection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011194973A (en) * 2010-03-18 2011-10-06 Advics Co Ltd Vehicle motion control device
CN104354699A (en) * 2014-10-08 2015-02-18 北京远特科技有限公司 Method and device for detecting driving behavior information based on OBD (on-board diagnostic) terminal
CN108304594A (en) * 2017-01-11 2018-07-20 厦门雅迅网络股份有限公司 A kind of determination method of the car steering stability based on speed and gyro data
CN106934876A (en) * 2017-03-16 2017-07-07 广东翼卡车联网服务有限公司 A kind of recognition methods of vehicle abnormality driving event and system
CN108022326A (en) * 2017-11-30 2018-05-11 中国平安财产保险股份有限公司 Stroke recording detection method, mobile device, detection terminal and readable storage medium storing program for executing
CN108189763A (en) * 2018-01-17 2018-06-22 北京万得嘉瑞汽车技术有限公司 A kind of analysis method of driver's driving behavior and special intelligent vehicular rear mirror
CN110550035A (en) * 2019-08-14 2019-12-10 平安科技(深圳)有限公司 driving behavior detection method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114487477A (en) * 2022-01-17 2022-05-13 北京卡路里信息技术有限公司 Riding judgment method and device based on wristband, storage medium and processor
CN114426025A (en) * 2022-03-17 2022-05-03 一汽解放汽车有限公司 Driving assistance method, driving assistance device, computer equipment and storage medium
CN114426025B (en) * 2022-03-17 2023-11-14 一汽解放汽车有限公司 Driving assistance method, driving assistance device, computer device, and storage medium

Also Published As

Publication number Publication date
CN110550035A (en) 2019-12-10
CN110550035B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
WO2021027410A1 (en) Driving behavior detection method and apparatus, computer device, and storage medium
CN108372785B (en) Image recognition-based automobile unsafe driving detection device and detection method
CN112180921B (en) Automatic driving algorithm training system and method
CN110991289B (en) Abnormal event monitoring method and device, electronic equipment and storage medium
CN104724103B (en) Control method between control device and the vehicles between the vehicles
CN108248609A (en) Hybrid vehicle and the method that prediction drives pattern in hybrid vehicle
CN110575163A (en) Method and device for detecting driver distraction
JP7354295B2 (en) Apparatus and method for processing vehicle signals and calculating behavioral risk measures
CN112277936B (en) Vehicle collision detection processing method and device, vehicle-mounted terminal and storage medium
CN113581209B (en) Driving assistance mode switching method, device, equipment and storage medium
US20200384989A1 (en) Method for the improved detection of objects by a driver assistance system
WO2019165617A1 (en) Vehicle-mounted apparatus and vehicle collision analysis method and device
CN113804460B (en) Vehicle evaluation method, vehicle evaluation system, vehicle and storage medium
CN109584871B (en) User identity recognition method and device of voice command in vehicle
CN104063914A (en) Terminal achieving driving risk management and use method thereof
CN112319505B (en) Automatic driving lane change judgment method, device, equipment and storage medium
CN110834646B (en) Lane change auxiliary early warning method, device, equipment and storage medium
EP3640857B1 (en) Method, vehicle, system, and storage medium for indicating anomalous vehicle scenario using encoder network and discriminator network intermediate layer activation
CN108454514A (en) A kind of traffic safety early warning system based on mobile Internet
EP3654246B1 (en) Method, vehicle, system, and storage medium for indicating anomalous vehicle scenario using encoder network and replay buffer
CN113573939B (en) Method and system for sequential micro-activity based driver detection on smart devices
CN113619589A (en) Method and device for determining driving behavior information, electronic equipment and storage medium
CN208101702U (en) A kind of non-security driving detection device of automobile based on image recognition
KR101937218B1 (en) Apparatus for evaluation of driver acceptance and method thereof
CN112418315B (en) Driver identity recognition modeling method based on braking characteristics and SVM algorithm

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20851480

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20851480

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20851480

Country of ref document: EP

Kind code of ref document: A1