Driving behavior detection method and device, equipment and medium
By collecting and analyzing the chassis time series data of the vehicle, and using the pre-trained driving behavior recognition model, the problem of low driving behavior recognition accuracy in the existing technology is solved, and higher driving behavior recognition accuracy is achieved.
Patent Information
- Application Number
- CN202410865135.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-11
AI Technical Summary
The existing technology has low accuracy when determining the driver's driving behavior and cannot effectively reflect the real driving situation of the vehicle.
By collecting the vehicle's chassis time series data and analyzing it using a pre-trained driving behavior recognition model, a driving behavior recognition model is generated. The model processes the chassis features through feature extraction and detection task heads, and identifies and outputs driving behavior.
The accuracy of driving behavior recognition is improved, which can better fit the actual driving situation of the vehicle and provide more accurate driving behavior analysis results.
Smart Images

Figure CN118753301A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a driving behavior detection method, device, equipment and medium. Background Art
[0002] During vehicle driving, it is very important to detect the driver's driving behavior in real time.
[0003] At present, it is usually to obtain the steering wheel data input by the driver when operating the vehicle, and input the steering wheel data into a pre-trained model to obtain the driving behavior corresponding to the driver output by the model. The model is pre-trained and has the ability to analyze the steering wheel data and determine the corresponding driving behavior.
[0004] However, the existing technology has the problem of low accuracy. Summary of the invention
[0005] The present application provides a driving behavior detection method, device, equipment and medium to solve the problem of low accuracy in determining the driver's driving behavior in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a driving behavior detection method, comprising:
[0007] During the driving of the vehicle, collecting chassis time series data of the vehicle;
[0008] The chassis timing data is input into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model. The driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data. The label information is used to represent the target driving behavior corresponding to the sample chassis timing data.
[0009] In a possible design, inputting the chassis time series data into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model includes:
[0010] According to the data input length of the driving behavior recognition model, the chassis time series data is segmented to obtain a plurality of sub-chassis time series data;
[0011] The plurality of sub-chassis time series data are sequentially input into the driving behavior recognition model, and the driving behavior corresponding to each sub-chassis time series data output by the driving behavior recognition model is obtained.
[0012] In a possible implementation, the trajectory of the sample vehicle is restored according to each sample chassis time series data to generate a corresponding sample trajectory;
[0013] Determining label information of the sample chassis time series data according to the label information of the sample trajectory, wherein the label information is used to indicate a target driving behavior corresponding to the sample trajectory, and the label information is used to indicate the target driving behavior corresponding to the sample chassis time series data;
[0014] Model training is performed based on multiple sample chassis time series data and label information of each sample chassis time series data to generate the driving behavior recognition model.
[0015] In a possible design, the model training is performed according to a plurality of sample chassis time series data and label information of each sample chassis time series data to generate a driving behavior recognition model, including:
[0016] Inputting the plurality of sample chassis time series data and label information of each sample chassis time series data into an initial model, performing model training, and generating the driving behavior recognition model;
[0017] The initial model includes a feature extraction module and a detection task head, and the detection task head is configured with feature points, and feature forward index lengths and feature backward index lengths corresponding to the feature points.
[0018] In one possible design, the annotation information includes a timestamp range corresponding to the target driving behavior in the sample trajectory, and the label information includes a timestamp range corresponding to the target driving behavior in the sample chassis timing data.
[0019] In a possible design, the inputting of the plurality of sample chassis time series data and the label information of each sample chassis time series data into an initial model, performing model training, and generating the driving behavior recognition model includes:
[0020] Inputting the plurality of sample chassis timing data and label information of each sample chassis timing data into the initial model;
[0021] Extracting chassis features of each sample chassis time series data by the feature extraction module;
[0022] Collecting a plurality of detection anchor data from chassis features by the detection task head according to a target sliding window and a preset step length, wherein the target sliding window is determined according to the feature point and a corresponding feature forward index length and a feature backward index length;
[0023] Performing driving behavior recognition on the detection anchor data by the detection task head to generate a recognition result of the detection anchor data;
[0024] The initial model is trained according to the recognition result of the detection anchor data and the label information of the sample chassis time series data to generate the driving behavior recognition model.
[0025] In a possible design, the recognition result includes driving behavior, forward index regression and backward index regression,
[0026] After the detection task head performs driving behavior recognition on the detection anchor data to generate a recognition result of the detection anchor data, the method includes:
[0027] The target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window;
[0028] The detection anchor data is updated according to the updated target sliding window to obtain updated detection anchor data;
[0029] Driving behavior recognition is performed on the updated detection anchor data to generate updated driving behavior.
[0030] In a possible design, the recognition result further includes a confidence level, and updating the target sliding window according to the forward index regression and the backward index regression to obtain the updated target sliding window includes:
[0031] If the confidence of the detection anchor data is greater than a preset confidence, the target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window.
[0032] In one possible design, the method further includes:
[0033] Analyzing the driving behavior output by the driving behavior recognition model and outputting the analysis result;
[0034] The analysis result may be a target driving parameter or a reminder message, and the reminder message is used to remind the driver to adjust his driving behavior.
[0035] In a second aspect, an embodiment of the present application provides a driving behavior detection device, comprising:
[0036] A collection module, used for collecting chassis time series data of the vehicle during the driving process of the vehicle;
[0037] An input module is used to input the chassis timing data into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model, wherein the driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data, and the label information is used to represent the target driving behavior corresponding to the sample chassis timing data.
[0038] In a possible design, the input module is specifically used for:
[0039] According to the data input length of the driving behavior recognition model, the chassis time series data is segmented to obtain a plurality of sub-chassis time series data;
[0040] The plurality of sub-chassis time series data are sequentially input into the driving behavior recognition model, and the driving behavior corresponding to each sub-chassis time series data output by the driving behavior recognition model is obtained.
[0041] In a possible design, the driving behavior detection device further includes:
[0042] A trajectory restoration module is used to restore the trajectory of the sample vehicle according to the time series data of each sample chassis to generate a corresponding sample trajectory;
[0043] A determination module, configured to determine label information of the sample chassis time series data according to the label information of the sample trajectory, wherein the label information is used to indicate a target driving behavior corresponding to the sample trajectory, and the label information is used to indicate the target driving behavior corresponding to the sample chassis time series data;
[0044] The model training module is used to perform model training based on multiple sample chassis time series data and label information of each sample chassis time series data to generate the driving behavior recognition model.
[0045] In a possible design, the model training module is specifically used to:
[0046] Inputting the plurality of sample chassis time series data and label information of each sample chassis time series data into an initial model, performing model training, and generating the driving behavior recognition model;
[0047] The initial model includes a feature extraction module and a detection task head, and the detection task head is configured with feature points, and feature forward index lengths and feature backward index lengths corresponding to the feature points.
[0048] In one possible design, the annotation information includes a timestamp range corresponding to the target driving behavior in the sample trajectory, and the label information includes a timestamp range corresponding to the target driving behavior in the sample chassis timing data.
[0049] In a possible design, the model training module is specifically used to:
[0050] Inputting the plurality of sample chassis timing data and label information of each sample chassis timing data into the initial model;
[0051] Extracting chassis features of each sample chassis time series data by the feature extraction module;
[0052] Collecting a plurality of detection anchor data from chassis features by the detection task head according to a target sliding window and a preset step length, wherein the target sliding window is determined according to the feature point and a corresponding feature forward index length and a feature backward index length;
[0053] Performing driving behavior recognition on the detection anchor data by the detection task head to generate a recognition result of the detection anchor data;
[0054] The initial model is trained according to the recognition result of the detection anchor data and the label information of the sample chassis time series data to generate the driving behavior recognition model.
[0055] In a possible design, the recognition result includes driving behavior, forward index regression and backward index regression, and the model training module is further used to:
[0056] The target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window;
[0057] The detection anchor data is updated according to the updated target sliding window to obtain updated detection anchor data;
[0058] Driving behavior recognition is performed on the updated detection anchor data to generate updated driving behavior.
[0059] In a possible design, the recognition result also includes a confidence level, and the model training module is specifically used to:
[0060] If the confidence of the detection anchor data is greater than a preset confidence, the target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window.
[0061] In a possible design, the driving behavior detection device further includes an output module, which is used to analyze the driving behavior output by the driving behavior recognition model and output the analysis result;
[0062] The analysis result may be a target driving parameter or a reminder message, and the reminder message is used to remind the driver to adjust his driving behavior.
[0063] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and computer execution instructions stored in the memory and executable on the processor, wherein the processor is used to implement the first aspect and the methods provided by various possible designs when executing the computer execution instructions.
[0064] In a fourth aspect, an embodiment of the present application may provide a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect and the methods provided by various possible designs.
[0065] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the first aspect and the methods provided by various possible designs.
[0066] The driving behavior detection method, device, equipment and medium provided in the embodiment of the present application, in which: during the driving process of the vehicle, the chassis timing data of the vehicle is collected, and then the chassis timing data is input into the driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model. Among them, the driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data, and the label information is used to represent the target driving behavior corresponding to the sample chassis timing data. In this technical solution, during the driving process of the vehicle, compared with the steering wheel data, the chassis timing data is more in line with the actual driving situation of the vehicle, thereby ensuring that the driving behavior obtained based on the processing of the chassis timing data is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0068] Figure 1 A flowchart of a first embodiment of a driving behavior detection method provided in an embodiment of the present application;
[0069] Figure 2 A flowchart of a second embodiment of a driving behavior detection method provided in an embodiment of the present application;
[0070] Figure 3 A schematic diagram of sample trajectory and chassis timing data provided by an embodiment of the present application;
[0071] Figure 4 A flowchart of a third embodiment of the driving behavior detection method provided in the embodiment of the present application;
[0072] Figure 5 A schematic diagram of the structure of a detection anchor provided in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of the structure of a driving behavior detection device provided in an embodiment of the present application;
[0074] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0075] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0076] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0077] Before introducing the embodiments of the present application, the application background of the embodiments of the present application is first explained:
[0078] During vehicle driving, it is very important to detect the driver's driving behavior in real time, as follows:
[0079] 1. Safety: Real-time detection of the driver's driving behavior can help improve road safety. By monitoring the driver's driving behavior, such as speeding, sudden acceleration, overtaking, etc., potential dangerous behaviors during vehicle driving can be discovered in time, and relevant driving parameters of the vehicle can be adjusted to avoid accidents.
[0080] 2. Driving habit analysis: By detecting driving behavior in real time, the driver's behavior can be analyzed and evaluated to determine the driver's driving habits, technical level, and potential risk factors, thereby providing a reference for improving the driver's driving literacy.
[0081] 3. Energy saving and emission reduction: Real-time monitoring of driving behavior can also help improve vehicle fuel efficiency and reduce exhaust emissions. By monitoring driving behavior, bad driving habits of drivers, such as sudden acceleration and sudden braking, can be discovered and corrected, thereby reducing vehicle energy consumption and emissions.
[0082] 4. Insurance and liability: Some insurance companies and traffic management departments may require vehicles to be equipped with real-time monitoring systems to detect the driver's driving behavior to ensure that the driver abides by traffic rules and drives safely. In addition, in the event of an accident, the driver's driving behavior obtained by real-time monitoring can also be used as evidence to determine liability and compensation.
[0083] At present, since artificial intelligence (AI) has the ability to self-learn, it can discover hidden patterns and correlations in data, thereby providing more in-depth and comprehensive analysis results. Therefore, the existing technology will use the learning ability of AI to detect the driving behavior of the driver.
[0084] Specifically, the steering wheel data input by the driver when operating the vehicle is usually obtained, and the steering wheel data is input into a pre-trained model to obtain the driving behavior corresponding to the driver output by the model. The model is pre-trained and has the ability to analyze the steering wheel data and determine the corresponding driving behavior.
[0085] However, in actual scenarios, there are many factors that affect the vehicle's execution of the input data, causing the vehicle's final output to be inconsistent with the input.
[0086] For example, in the case of poor road conditions such as ice, it will affect the vehicle's execution of steering wheel data. For example, when the driver steps on the accelerator hard, the road is slippery and the friction coefficient is small, causing the vehicle to remain stationary or move a small distance.
[0087] From the above analysis, it can be seen that steering wheel data cannot directly represent driving behavior. Therefore, the accuracy of the existing technology of analyzing the steering wheel data through AI to determine the corresponding driving behavior is low.
[0088] Based on the above technical problems, the technical concept of this application is as follows: Since chassis data is usually not affected by the driver's control, it is more stable and reliable and can represent the actual operation of the vehicle. Therefore, a driving behavior detection model can be pre-trained, and the driving behavior detection model has the ability to analyze the chassis data and then determine the corresponding driving behavior. Furthermore, during the driving process of the vehicle, the chassis time series data of the vehicle is collected in real time, and it is processed by the above driving behavior detection model to obtain the corresponding driving behavior, which effectively improves the recognition accuracy.
[0089] The technical solution of the present application is described in detail below through specific embodiments.
[0090] It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0091] Figure 1 A flowchart of a first embodiment of a driving behavior detection method provided in an embodiment of the present application.
[0092] like Figure 1 As shown, the driving behavior detection method can be implemented by the following steps:
[0093] S11. While the vehicle is traveling, collecting chassis time series data of the vehicle.
[0094] The execution subject of the embodiment of the present application is an electronic device, which can be a terminal device, such as a laptop, a desktop computer, a tablet computer, etc., a vehicle for driving behavior detection, or a server. In actual applications, the electronic device can be a terminal device, a vehicle, or a server, which can be determined according to actual conditions and is not specifically limited.
[0095] In this step, the chassis timing data may include multiple indicators, which may be directly obtained from the chassis signal of the vehicle, such as torque, longitudinal acceleration, yaw angular velocity, wheel speed, etc., and may also be obtained by calculation based on the chassis signal, such as the Ackerman model, rolling resistance, wheel speed fluctuation, etc.
[0096] It should be understood that the embodiment of the present application does not limit the collection method and frequency of chassis timing data, which can be determined according to actual conditions.
[0097] S12: Input the chassis time series data into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model.
[0098] In this step, the driving behavior recognition model is a model generated by model training based on multiple sample chassis time series data and label information of each sample chassis time series data, and the label information is used to represent the target driving behavior corresponding to the sample chassis time series data.
[0099] It should be understood that in actual application, the model parameters in the driving behavior recognition model are fixed.
[0100] It should be understood that the model training process will be explained in the following embodiments and will not be repeated here.
[0101] In a possible implementation, the driving behavior recognition model predefines a data input length, and the chassis time series data can be segmented according to the data input length of the driving behavior recognition model to obtain a plurality of sub-chassis time series data. Afterwards, the plurality of sub-chassis time series data are sequentially input into the driving behavior recognition model to obtain the driving behavior corresponding to each sub-chassis time series data output by the driving behavior recognition model.
[0102] The data input length of the driving behavior recognition model is x*y, where x is the number of indicators contained in the chassis time series data, and y is the data length input into the driving behavior recognition model. The order of y is the data index, and there is a corresponding index table for y, which is used to characterize the mapping relationship between the timestamp and the chassis data for easy mapping. The chassis time series data can be segmented according to x*y to obtain multiple sub-chassis time series data, and the multiple sub-chassis time series data are sequentially input into the driving behavior recognition model to obtain the corresponding driving behavior outputted by it.
[0103] Optionally, the chassis time series data can be segmented by sliding a preset sliding window in the chassis time series data, thereby obtaining multiple sub-chassis time series data. It should be understood that the chassis time series data can also be segmented by other segmentation methods, and the embodiment of the present application does not specifically limit the segmentation method.
[0104] The output of the driving behavior recognition model is 1*y. Each data point is a driving behavior, corresponding to each index (i.e., y in x*y) of the input data (sub-chassis time series data).
[0105] Optionally, the time range corresponding to the driving behavior may also be output.
[0106] Exemplarily, driving behaviors include turning, U-turn, accelerating, decelerating, accelerating from zero, decelerating to zero, changing lanes, overtaking, etc.
[0107] The driving behavior detection method provided in the embodiment of the present application collects chassis timing data of the vehicle during the driving process of the vehicle. The chassis timing data is input into the driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model. Among them, the driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data, and the label information is used to represent the target driving behavior corresponding to the sample chassis timing data. In this technical solution, during the driving process of the vehicle, compared with the steering wheel data, the chassis timing data is more in line with the actual driving situation of the vehicle, thereby ensuring that the driving behavior obtained based on the processing of the chassis timing data is more accurate.
[0108] Next, the training process of the driving behavior recognition model is described in detail in combination with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0109] In specific implementation, the execution subject of the driving behavior detection method can also be an electronic device with processing capabilities such as a terminal or a server. It should be understood that the electronic device for training the driving behavior recognition model and the electronic device for executing the driving behavior detection method can be the same device or different devices.
[0110] Figure 2 This is a flow chart of the second embodiment of the driving behavior detection method provided in the present application. Figure 2 As shown, during the driving process of the vehicle, before collecting the chassis time series data of the vehicle, the driving behavior detection method may further include the following steps:
[0111] S21. Restore the trajectory of the sample vehicle according to each sample chassis time series data to generate a corresponding sample trajectory.
[0112] The execution subject of the embodiment of the present application is an electronic device, which can be a terminal device, such as a laptop, a desktop computer, a tablet computer, etc., or a server. In practical applications, whether the electronic device is a terminal device or a server can be determined according to actual conditions, and no specific limitation is imposed on this.
[0113] In this step, since the AI model needs the true value as a reference during the training process, the training and adjustment of the parameters within the model can be performed. In the absence of a mature algorithm or a reference observation system to provide the true value, the data involved in the training needs to be manually labeled. Manual labeling requires standards and data types that can be judged by humans. Since the sample data in this solution is chassis timing data, the correlation between chassis timing data and driving behavior is weak, it is difficult to design artificial standards and have humans label them. Taking into account that different driving behaviors correspond to different trajectories, the sample chassis timing data can be first converted into a sample trajectory, and then the labeling information of the sample trajectory can be determined by manual labeling, and then the label information of the sample chassis timing data can be determined according to the correspondence between the sample chassis timing data and the sample trajectory.
[0114] Among them, the sample chassis time series data is discrete data indexed by timestamps. It can be data generated by the sample vehicle during its past driving process, or it can be data generated by simulated driving of the sample vehicle in a simulation environment. It can be determined based on actual conditions and there is no specific restriction on this.
[0115] Exemplarily, the sample chassis timing data may include multiple indicators, which may be directly obtained from the chassis signal of the vehicle, such as torque, longitudinal acceleration, yaw angular velocity, wheel speed, etc., and may also be obtained by calculation based on the chassis signal, such as the Ackerman model, rolling resistance, wheel speed fluctuation, etc.
[0116] In a possible implementation, the sample trajectory corresponding to each sample chassis timing data may be determined by data reconstruction (DR) restoration based on each sample chassis timing data.
[0117] It should be understood that the sample trajectory also includes a timestamp index, and the timestamp index in the sample trajectory corresponds to the sample chassis timing data. For example, assume that the sample chassis timing data is divided into multiple parts according to time: chassis data 1, chassis data 2, chassis data 3, chassis data 4; the sample trajectory generated by trajectory restoration based on the sample chassis timing data is divided into multiple parts according to time: sub-trajectory 1, sub-trajectory 2, sub-trajectory 3, and sub-trajectory 4. Among them, sub-trajectory 1 is generated by performing trajectory restoration on chassis data 1, sub-trajectory 2 is generated by performing trajectory restoration on chassis data 2, sub-trajectory 3 is generated by performing trajectory restoration on chassis data 3, and sub-trajectory 4 is generated by performing trajectory restoration on chassis data 4. Then, sub-trajectory 1 has the same timestamp index as chassis data 1, sub-trajectory 2 has the same timestamp index as chassis data 2, sub-trajectory 3 has the same timestamp index as chassis data 3, and sub-trajectory 4 has the same timestamp index as chassis data 4.
[0118] It should be understood that the embodiment of the present application does not limit the number of sample chassis timing data, which can be one or more, and can be determined based on actual conditions, and no specific limitation is imposed on this.
[0119] S22. Determine label information of the sample chassis time series data according to the annotation information of the sample trajectory.
[0120] In this step, the labeling information of the sample trajectory is generated by manual labeling, and is used to represent the target driving behavior corresponding to the sample trajectory. Since the sample trajectory corresponds to the sample chassis time series data, the label information of the sample chassis time series data can be determined according to the corresponding relationship, and the label information is used to represent the target driving behavior corresponding to the sample chassis time series data.
[0121] In real life, a driving process may involve multiple driving behaviors. Therefore, the sample trajectory may have multiple annotation information, each of which is used to represent the target driving behavior corresponding to the sample trajectory, and also includes the timestamp range corresponding to the target driving behavior in the sample trajectory. Similarly, the label information is used to represent the target driving behavior corresponding to the sample trajectory, and also includes the timestamp range corresponding to the target driving behavior in the sample chassis time series data.
[0122] For example, Figure 3 Schematic diagram of sample trajectory and chassis timing data provided by the embodiment of the present application. Figure 3As shown, the sample chassis timing data is tracked and restored to generate a sample trajectory. The sample trajectory is then manually labeled to obtain the labeling information. For example, the labeling information of sub-trajectory 1 is lane change, the labeling information of sub-trajectory 2 is deceleration, and the labeling information of sub-trajectory 3 is turn. Further, according to the timestamp range of each sub-trajectory, the chassis data corresponding to the timestamp range is determined in the sample chassis timing data. That is, according to the timestamp range, chassis data 1 corresponding to sub-trajectory 1 is determined from the sample chassis timing data, and the label information of sub-trajectory 1 is determined to be lane change; chassis data 2 corresponding to sub-trajectory 2 is determined from the sample chassis timing data, and the label information of sub-trajectory 2 is determined to be deceleration; chassis data 3 corresponding to sub-trajectory 3 is determined from the sample chassis timing data, and the label information of sub-trajectory 3 is determined to be turn.
[0123] Exemplarily, in order to facilitate manual labeling, driving behaviors can also be defined in advance, and a corresponding relationship between numbers and driving behaviors can be established. When manually labeling sample trajectories, the driving behavior can be replaced by the number corresponding to the driving behavior. For example, the sub-trajectories with a timestamp range of 1-10 in the sample trajectory can be manually marked as "1", and the label information of the chassis data with a timestamp range of 1-10 in the sample chassis time series data is determined to be "1". In other words, manually labeling the sample trajectory is equivalent to labeling the sample chassis time series data, which effectively solves the problem of the difficulty of manually labeling chassis data in the prior art.
[0124] It should be understood that the label information is the true value required in the model training process.
[0125] Exemplarily, the driving behavior may include: turning, U-turn, accelerating, decelerating, accelerating from zero, decelerating to zero, changing lanes, and overtaking.
[0126] S23. Perform model training based on multiple sample chassis time series data and label information of each sample chassis time series data to generate a driving behavior recognition model.
[0127] In this step, after creating a training set (a plurality of sample chassis time series data and label information of each sample chassis time series data), model training can be performed based on the training set to obtain a trained driving behavior recognition model.
[0128] In a possible implementation, multiple sample chassis time series data and label information of each sample chassis time series data may be input into an initial model to perform model training and generate a driving behavior recognition model.
[0129] In practical applications, the initial model includes a feature extraction module and a detection task head. The detection task head is configured with feature points, and feature forward index lengths and feature backward index lengths corresponding to the feature points.
[0130] It should be understood that this implementation will be Figure 4 The detailed description is given in the embodiment shown and will not be repeated here.
[0131] The driving behavior detection method provided by the embodiment of the present application first restores the trajectory of the sample vehicle according to each sample chassis time series data to generate a corresponding sample trajectory. Afterwards, the label information of the sample chassis time series data is determined according to the label information of the sample trajectory. Finally, model training is performed according to multiple sample chassis time series data and the label information of each sample chassis time series data to generate a driving behavior recognition model. Among them, the label information is used to represent the target driving behavior corresponding to the sample trajectory, and the label information is used to represent the target driving behavior corresponding to the sample chassis time series data. In this technical solution, by first restoring the sample chassis time series data to a sample trajectory, and then determining the label information of the sample chassis time series data by manual labeling, and then determining the label information of the sample chassis time series data, the problem of the difficulty of manually labeling the sample chassis time series data is effectively solved. The driving behavior recognition model trained by the technical solution has the ability to determine the corresponding driving behavior according to the chassis time series data, which effectively improves the accuracy of recognition compared with the method of determining the driving behavior by steering wheel data in the prior art.
[0132] Optionally, in some embodiments, after the driving behavior output by the driving behavior recognition model is obtained, it can also be analyzed so that other subsequent processing can be performed according to the analysis result.
[0133] That is, the driving behavior output by the driving behavior recognition model can be analyzed and the analysis result can be output.
[0134] The analysis result may be a target driving parameter or a reminder message, and the reminder message is used to remind the driver to adjust his driving behavior.
[0135] In a possible implementation, it can be determined whether the driving behavior contains potential dangerous behavior. If so, the target driving parameters are output so that the vehicle can be subsequently adjusted to the target driving parameters to avoid vehicle accidents.
[0136] In a possible implementation, the driving behavior can be analyzed to determine whether the driver has bad driving habits, such as sudden acceleration, sudden braking, etc. If so, a reminder message is output to remind the driver to change the driving behavior.
[0137] Optionally, the reminder message can be output by flashing an indicator light, playing a warning sound, vibrating a seat, displaying a reminder message on a screen of a vehicle terminal, etc. In other words, the output method of the reminder message can be determined according to actual conditions, and this application does not impose specific restrictions on the output method.
[0138] In one possible implementation, the insurance company's server or the traffic management department's server can obtain the driving behavior of the driver at the time of the accident output by the driving behavior recognition model when a vehicle is involved in a traffic accident, as well as the driving behavior of the driver of another vehicle that collided with the vehicle, and compare and analyze the driving behaviors of the two, and then output the accident responsibility determination information.
[0139] Next, through Figure 4 The illustrated embodiment describes in detail the structure of the initial model and the process of model training for the initial model.
[0140] Figure 4 This is a flow chart of the third embodiment of the driving behavior detection method provided in the present application. Figure 4 As shown, the process of inputting multiple sample chassis time series data and the label information of each sample chassis time series data into the initial model, performing model training, and generating a driving behavior recognition model can be achieved through the following steps:
[0141] S41, inputting a plurality of sample chassis timing data and label information of each sample chassis timing data into an initial model.
[0142] In this step, since the initial model cannot process all the data, it is necessary to define the data input format of the initial model in advance, and preprocess the sample chassis timing data and the label information of each sample chassis timing data according to the predefined data input format before model training, and divide the entire data into several sub-batches, which are processed one by one by the initial model.
[0143] Exemplarily, the input format of the initial model can be x*y, where x is the number of indicators contained in the sample chassis time series data, and y is the length of the data input into the initial model. The order of y is the data index, and y has a corresponding index table, which is used to characterize the mapping relationship between timestamps and chassis data to facilitate mapping during model training.
[0144] It should be understood that the specific data input format can be determined based on the actual computer performance, and the embodiments of the present application do not impose specific limitations on this.
[0145] S42. Extract chassis features of each sample chassis time series data through a feature extraction module.
[0146] In this step, the feature extraction module includes a multi-layer neural network. The data of each sub-batch is processed by the multi-layer neural network of the feature extraction module to obtain corresponding feature information.
[0147] Exemplarily, the data of each sub-batch mentioned above (data in the format of x*y) are processed into chassis features of a*b*c length.
[0148] It should be understood that in practical applications, the specific depth and length can be determined based on factors such as the amount of data, complexity, computer performance, acceptable computing time, etc. That is, the values of a, b, and c can be determined based on actual conditions, and the embodiments of the present application do not impose specific restrictions on this.
[0149] S43, collecting multiple detection anchor data from chassis features according to the target sliding window and the preset step size through the detection task head.
[0150] In this step, the detection task head may include one or more detection anchors, each of which includes a feature point, a feature forward index length, and a feature backward index length. Each detection anchor is used to detect a driving behavior, and the feature forward index length and feature backward index length in each detection anchor are pre-set. With the feature point as the center, the forward feature forward index length is the starting point of the target sliding window, and the backward feature backward index length is the ending point of the target sliding window. That is, the target sliding window is determined based on the feature point and the corresponding feature forward index length and feature backward index length. Taking the target sliding window as the unit and the preset step length as the step length of each movement, slide along the timestamp from small to large on the chassis feature, and collect detection anchor data once each time it slides to a certain place.
[0151] Figure 5 This is a schematic diagram of the structure of the detection anchor provided in the embodiment of the present application. Figure 5 As shown in the figure, the black dots are the feature points of the detection anchor. The length of the target sliding window is determined according to the feature forward index length and the feature backward index length. The middle point position of the target sliding window is determined according to the position of the feature point. The target sliding window slides on the chassis feature in the sliding direction and collects the detection anchor data.
[0152] In practical applications, different driving behaviors require different durations, and the lengths of the target sliding windows required to detect the driving behaviors are also different. Therefore, the durations corresponding to different driving behaviors can be determined in advance based on the sample chassis time series data, and then the feature forward index length and feature backward index length corresponding to the driving behavior can be determined based on the duration, so as to set the detection anchor corresponding to the driving behavior.
[0153] It should be understood that by setting multiple detection anchors in the detection task head, the model convergence can be effectively accelerated and the detection effect can be improved, thereby ensuring that multiple driving behaviors can be identified at one time.
[0154] Optionally, the duration corresponding to different driving behaviors can be determined based on the sample chassis time series data: for each driving behavior, determine the label duration of the label information corresponding to the driving behavior marked on each sample chassis time series data, cluster all label durations, and obtain the clustered duration. Then, according to the ratio of x*y to a*b*c, the clustered duration is enlarged or reduced in proportion to obtain the duration corresponding to the driving behavior.
[0155] Optionally, half of the duration may be determined as the feature forward index length and the feature backward index length.
[0156] For example, for each detection anchor, the b*c of the sub-batch data is reduced to 1 dimension, that is, the b*c in a*b*c is reduced to 1 dimension. Then, with a=1 as the starting point of the feature point, slide 1 step each time until a=a is reached, and a total of a detection anchor data are obtained.
[0157] S44. Perform driving behavior recognition on the detection anchor data through the detection task head to generate a recognition result of the detection anchor data.
[0158] In this step, the detection anchor data is classified by the detection task head to generate a recognition result corresponding to the detection anchor data, and the recognition result includes the driving behavior corresponding to the detection anchor data.
[0159] Optionally, the recognition result may further include a confidence level, which is used to indicate the credibility of the recognized driving behavior.
[0160] Optionally, the recognition result may further include a forward index regression and a backward index regression, and the forward index regression and the backward index regression are used to adjust the length of the target sliding window.
[0161] For example, when the recognition result includes four pieces of information, namely, confidence, driving behavior, forward index regression and backward index regression, assuming there are n detection anchors, there will be n*a*4 outputs.
[0162] According to the above S43, the length of the target sliding window corresponding to each driving behavior is determined according to the feature forward index length and feature backward index length of the detection anchor corresponding to the driving behavior, and the feature forward index length and feature backward index length are determined according to the sample chassis time series data and label information. Since the amount of sample chassis time series data is limited, the accuracy of the target sliding window length determined based on it cannot be guaranteed, and thus the accuracy of the detection anchor data collected based on the target sliding window cannot be guaranteed either, and too much data or too little data may be collected, which may result in the detection anchor data being identified as an erroneous driving behavior.
[0163] In order to solve the above problem, in a possible implementation, after obtaining the recognition result, the detection task head can be used to perform driving behavior recognition on the detection anchor data to generate the driving behavior, forward index regression and backward index regression corresponding to the detection anchor data. After that, the target sliding window is updated according to the forward index regression and the backward index regression to obtain the updated target sliding window. Then, the detection anchor data is updated according to the updated target sliding window to obtain the updated detection anchor data. Finally, the driving behavior recognition is performed on the updated detection anchor data to generate the updated driving behavior, thereby achieving the purpose of updating the recognition result.
[0164] In another possible implementation, after obtaining the recognition result, it can be determined whether the confidence of the detection anchor data is greater than the preset confidence. If the confidence of the detection anchor data is greater than the preset confidence, the target sliding window is updated according to the forward index regression and the backward index regression to obtain the updated target sliding window. Then, the detection anchor data is updated according to the updated target sliding window to obtain the updated detection anchor data. Finally, the driving behavior recognition is performed on the updated detection anchor data to generate the updated driving behavior, thereby achieving the purpose of updating the recognition result.
[0165] Furthermore, if the confidence of the detection anchor data is less than or equal to the preset confidence, it means that the quality of the detection anchor data is poor and the value of participating in model training is small. Therefore, the recognition result of the detection anchor data may not be updated and it does not participate in the subsequent model training process.
[0166] Exemplarily, taking n*a*4 as the output, first set the preset confidence in advance, and use the preset confidence as the threshold to filter out the output (detection anchor data) below the preset confidence. Assuming that 3 of the n*a results meet the requirements, the filtered results are 3*4. Among them, 3 is the number of filtered detection anchor data, and 4 is the dimension of the recognition result (driving behavior, confidence, forward index regression, and backward index regression). The filtered detection anchor data is updated according to the forward index regression and backward index regression to obtain the updated detection anchor data. The updated detection anchor data is specifically:
[0167] The starting point of the updated detection anchor data: (feature point – forward index length) × forward index regression The end point of the updated detection anchor data: (feature point + backward index length) × backward index regression
[0168] It should be understood that the start and end points of the updated detection anchor data may correspond to the index of the input sub-batch data. Assuming that the input sub-batch data is y, the start point of the updated detection anchor data is not less than 0, and the end point of the updated detection anchor data is not greater than y.
[0169] Exemplarily, the preset confidence level may be determined according to actual conditions, such as 90%, 92%, 94%, etc., and the embodiments of the present application do not impose any specific limitation on this.
[0170] S45. Train the initial model according to the recognition results of the detection anchor data and the label information of the sample chassis time series data to generate a driving behavior recognition model.
[0171] In this step, if the recognition result only includes driving behavior, the initial model is trained according to the recognition result and the label information (i.e., the true value) of the sample chassis time series data until the initial model converges, thereby obtaining the generated driving behavior recognition model. If the recognition result also includes forward index regression and backward index regression, the initial model is trained according to the updated recognition result and the label information (i.e., the true value) of the sample chassis time series data until the initial model converges, thereby obtaining the generated driving behavior recognition model.
[0172] In the actual model training process, the parameters in the initial model are optimized according to the difference between the label information and the recognition result (the updated recognition result), and finally a driving behavior recognition model that can accurately give the driving behavior and time range is obtained. Specifically, the model parameters of the initial model are optimized and trained according to the difference between the driving behavior corresponding to the label information and the driving behavior corresponding to the recognition result, and the difference between the timestamp range corresponding to the label information and the timestamp range corresponding to the detection anchor data (the updated detection anchor data).
[0173] Optionally, after the driving behavior recognition model is generated, it is also possible to determine whether the driving behavior recognition model can be put into use through a validation set and a test set. Among them, the validation set is used to adjust the hyperparameters of the initial model (such as learning rate, regularization parameters, etc.) to optimize the performance of the initial model. At the end of each training cycle, the initial model will be verified on the validation set, and the parameters of the model will be adjusted according to the performance of the validation set to prevent overfitting and improve the generalization ability of the model. The test set is used to finally evaluate the performance and generalization ability of the generated driving behavior recognition model. After the training of the driving behavior recognition model is completed, an independent test set is needed to evaluate the prediction effect of the driving behavior recognition model on unseen data. The results of the test set are generally considered to be the final indicator for evaluating the performance of the model.
[0174] In the prior art, if an AI deep learning network is directly designed and trained to obtain a corresponding driving behavior recognition model, the convergence speed of the model training will be slow due to problems such as the number of parameters and the number of categories, and multiple driving behaviors cannot be recognized. In an embodiment of the present application, the model convergence speed is accelerated by setting a detection task head in the initial model. At the same time, according to the time required for different driving behaviors, a detection anchor corresponding to each detection behavior is set in the detection task head, so that the driving behavior recognition model can have the ability to recognize multiple driving behaviors at the same time.
[0175] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0176] Figure 6 This is a schematic diagram of the structure of the driving behavior detection device provided in the embodiment of the present application. Figure 6 As shown, the driving behavior detection device 60 includes:
[0177] The acquisition module 61 is used to collect chassis time series data of the vehicle during the driving process of the vehicle;
[0178] The input module 62 is used to input the chassis timing data into the driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model. The driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data. The label information is used to represent the target driving behavior corresponding to the sample chassis timing data.
[0179] In a possible design, the input module 62 is specifically used for:
[0180] According to the data input length of the driving behavior recognition model, the chassis time series data is segmented to obtain multiple sub-chassis time series data;
[0181] The multiple sub-chassis time series data are sequentially input into the driving behavior recognition model to obtain the driving behavior corresponding to each sub-chassis time series data output by the driving behavior recognition model.
[0182] In a possible design, the driving behavior detection device 60 further includes:
[0183] A trajectory restoration module is used to restore the trajectory of the sample vehicle according to the time series data of each sample chassis to generate a corresponding sample trajectory;
[0184] A determination module, used to determine label information of the sample chassis time series data according to the label information of the sample trajectory, the label information is used to indicate the target driving behavior corresponding to the sample trajectory, and the label information is used to indicate the target driving behavior corresponding to the sample chassis time series data;
[0185] The model training module is used to perform model training based on multiple sample chassis time series data and label information of each sample chassis time series data to generate a driving behavior recognition model.
[0186] In a possible design, the model training module is specifically used to:
[0187] Input multiple sample chassis time series data and label information of each sample chassis time series data into the initial model, perform model training, and generate a driving behavior recognition model;
[0188] The initial model includes a feature extraction module and a detection task head. The detection task head is configured with feature points, and feature forward index lengths and feature backward index lengths corresponding to the feature points.
[0189] In one possible design, the annotation information includes a timestamp range corresponding to the target driving behavior in the sample trajectory, and the label information includes a timestamp range corresponding to the target driving behavior in the sample chassis time series data.
[0190] In a possible design, the model training module is specifically used to:
[0191] Inputting a plurality of sample chassis time series data and label information of each sample chassis time series data into an initial model;
[0192] Extract chassis features of each sample chassis time series data through a feature extraction module;
[0193] The detection task head collects multiple detection anchor data from the chassis features according to the target sliding window and the preset step size. The target sliding window is determined according to the feature points and the corresponding feature forward index length and feature backward index length.
[0194] The detection task head performs driving behavior recognition on the detection anchor data to generate recognition results of the detection anchor data;
[0195] According to the recognition results of the detection anchor data and the label information of the sample chassis time series data, the initial model is trained to generate a driving behavior recognition model.
[0196] In one possible design, the recognition results include driving behavior, forward index regression and backward index regression, model training module, and are also used for:
[0197] The target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window;
[0198] The detection anchor data is updated according to the updated target sliding window to obtain the updated detection anchor data;
[0199] The updated detection anchor data is used to perform driving behavior recognition to generate updated driving behavior.
[0200] In a possible design, the recognition result also includes a confidence level and a model training module, which is specifically used for:
[0201] If the confidence of the detected anchor data is greater than the preset confidence, the target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window.
[0202] In a possible design, the driving behavior detection device further includes an output module for analyzing the driving behavior output by the driving behavior recognition model and outputting the analysis result;
[0203] The analysis result may be a target driving parameter or a reminder message, and the reminder message is used to remind the driver to adjust his driving behavior.
[0204] The driving behavior detection device provided in the embodiment of the present application can be used to execute the driving behavior detection method in any of the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0205] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, all or part of them can be integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements. They can also be implemented in the form of hardware. Some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together or implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0206] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device may include: a processor 71, a memory 72, and computer execution instructions stored in the memory 72 and executable on the processor 71. When the processor 71 executes the computer execution instructions, the driving behavior detection method provided in any of the aforementioned embodiments is implemented.
[0207] Optionally, the above-mentioned components of the electronic device may be connected via a system bus.
[0208] The memory 72 may be a separate storage unit or a storage unit integrated in the processor. The number of processors is one or more.
[0209] Optionally, the electronic device may further include a communication interface for interacting with other devices.
[0210] It should be understood that the processor 71 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0211] The system bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0212] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed. The above-mentioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0213] It should be understood that the electronic device can be implemented as a vehicle for performing driving behavior detection, an on-board terminal or a server on the vehicle.
[0214] The electronic device provided in the embodiment of the present application can be used to execute the driving behavior detection method provided in any of the above method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0215] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed on a computer, the computer executes the above-mentioned driving behavior detection method.
[0216] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0217] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0218] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the above-mentioned driving behavior detection method can be implemented.
[0219] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A driving behavior detection method, characterized in that: include: During the driving of the vehicle, collecting chassis time series data of the vehicle; The chassis timing data is input into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model. The driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data. The label information is used to represent the target driving behavior corresponding to the sample chassis timing data.
2. The method according to claim 1, characterized in that: The step of inputting the chassis time series data into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model includes: According to the data input length of the driving behavior recognition model, the chassis time series data is segmented to obtain a plurality of sub-chassis time series data; The plurality of sub-chassis time series data are sequentially input into the driving behavior recognition model, and the driving behavior corresponding to each sub-chassis time series data output by the driving behavior recognition model is obtained.
3. The method according to claim 1 or 2, characterized in that: Before collecting chassis time series data of the vehicle during the vehicle driving process, the method further includes: Restore the trajectory of the sample vehicle according to the time series data of each sample chassis to generate a corresponding sample trajectory; Determining label information of the sample chassis time series data according to the label information of the sample trajectory, wherein the label information is used to indicate a target driving behavior corresponding to the sample trajectory; Model training is performed based on multiple sample chassis time series data and label information of each sample chassis time series data to generate the driving behavior recognition model.
4. The method according to claim 3, characterized in that The method of performing model training according to a plurality of sample chassis time series data and label information of each sample chassis time series data to generate the driving behavior recognition model includes: Inputting the plurality of sample chassis time series data and label information of each sample chassis time series data into an initial model, performing model training, and generating the driving behavior recognition model; The initial model includes a feature extraction module and a detection task head, and the detection task head is configured with feature points, and feature forward index lengths and feature backward index lengths corresponding to the feature points.
5. The method according to claim 4, characterized in that The annotation information includes a timestamp range corresponding to the target driving behavior in the sample trajectory, and the label information includes a timestamp range corresponding to the target driving behavior in the sample chassis timing data.
6. The method according to claim 5, characterized in that The step of inputting the plurality of sample chassis time series data and label information of each sample chassis time series data into an initial model, performing model training, and generating the driving behavior recognition model comprises: Inputting the plurality of sample chassis timing data and label information of each sample chassis timing data into the initial model; Extracting chassis features of each sample chassis time series data by the feature extraction module; Collecting a plurality of detection anchor data from chassis features by the detection task head according to a target sliding window and a preset step length, wherein the target sliding window is determined according to the feature point and a corresponding feature forward index length and a feature backward index length; Performing driving behavior recognition on the detection anchor data by the detection task head to generate a recognition result of the detection anchor data; The initial model is trained according to the recognition result of the detection anchor data and the label information of the sample chassis time series data to generate the driving behavior recognition model.
7. The method according to claim 6, characterized in that The recognition result includes driving behavior, forward index regression and backward index regression. After the detection task head performs driving behavior recognition on the detection anchor data to generate the recognition result of the detection anchor data, the method includes: The target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window; The detection anchor data is updated according to the updated target sliding window to obtain updated detection anchor data; Driving behavior recognition is performed on the updated detection anchor data to generate updated driving behavior.
8. The method according to claim 7, characterized in that The recognition result also includes a confidence level, and the updating of the target sliding window according to the forward index regression and the backward index regression to obtain the updated target sliding window includes: If the confidence of the detection anchor data is greater than a preset confidence, the target sliding window is updated according to the forward index regression and the backward index regression to obtain an updated target sliding window.
9. The method according to claim 1 or 2, characterized in that: The method further comprises: Analyzing the driving behavior output by the driving behavior recognition model and outputting the analysis result; The analysis result may be a target driving parameter or a reminder message, and the reminder message is used to remind the driver to adjust his driving behavior.
10. A driving behavior detection device, characterized in that: include: A collection module, used for collecting chassis time series data of the vehicle during the driving process of the vehicle; An input module is used to input the chassis timing data into a driving behavior recognition model to obtain the driving behavior output by the driving behavior recognition model, wherein the driving behavior recognition model is a model generated by model training based on multiple sample chassis timing data and label information of each sample chassis timing data, and the label information is used to represent the target driving behavior corresponding to the sample chassis timing data.
11. An electronic device, comprising: A processor, a memory, and computer-executable instructions stored in the memory and executable on the processor, wherein the processor is used to implement the driving behavior detection method as described in any one of claims 1 to 9 when executing the computer-executable instructions.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the driving behavior detection method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it is used to implement the driving behavior detection method according to any one of claims 1 to 9.
