Driving style recognition method, device, computer equipment and storage medium

By obtaining and analyzing characteristic data in car driving, combined with road conditions categories, using pre-trained models to identify car users' driving styles, it solves the problem that fixed driving styles in traditional cars cannot reflect the user's real driving style, and achieves a better driving experience and improvements in energy efficiency.

CN118439034BActive Publication Date: 2024-09-24CHENGDU CELIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410926313.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-24
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The fixed driving style in traditional cars cannot reflect the user's real driving style, resulting in a poor driving experience.

Method used

By obtaining driving style characteristic data, such as the average longitudinal acceleration, the average following distance and the maximum value of the product of steering wheel angle and vehicle speed, combined with the road condition category, the pre-trained driving style recognition model is used to identify the driving style and achieve the goal. Mileage determines final driving style.

Benefits of technology

It achieves accurate identification and personalized matching of user driving styles, improving driving experience and energy efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118439034B
    Figure CN118439034B
Patent Text Reader

Abstract

The present application relates to a driving style recognition method, device, computer equipment and storage medium. By acquiring the driving style feature data of the target object for each stage and identifying the road condition category of the corresponding stage, and determining the target driving style recognition model based on the road condition category, the driving style of the corresponding stage is identified, and when the driving mileage of the target object reaches the target mileage, the target driving style of the target object is determined based on the driving style of each stage corresponding to the driving mileage of the target object. When identifying the driving style, it is based on the driving style feature data including the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed, so it can accurately and real-time describe the operating style of the target object when turning, accelerating and decelerating. By identifying the driving style in combination with the road condition category of the corresponding stage, the accuracy of driving style recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a driving style recognition method, device, computer equipment and storage medium. Background Art

[0002] With the rapid development of new energy vehicles, users have higher and higher requirements for driving experience. In traditional technology, the driving style of a car generally includes three modes: economy, comfort, and sports. Usually, after a car leaves the factory, its available driving style modes are relatively fixed.

[0003] However, different users have different driving styles, and the relatively fixed driving style in current cars cannot reflect the user's real driving style. Therefore, how to accurately identify the user's driving style is a problem that needs to be solved urgently. Summary of the invention

[0004] Based on this, it is necessary to provide a driving style recognition method, device, computer equipment, storage medium and computer program product that can accurately identify driving style in response to the above technical problems.

[0005] In a first aspect, the present application provides a driving style recognition method, comprising:

[0006] Acquiring driving style characteristic data of the target object for each stage and identifying the road condition category of the corresponding stage, wherein the driving style characteristic data includes an average longitudinal acceleration, an average following distance, and a maximum value of the product of the steering wheel angle and the vehicle speed for each stage;

[0007] determining a target driving style recognition model for the corresponding stage based on the road condition category, inputting the driving style feature data for the corresponding stage into the target driving style recognition model, and obtaining a driving style for the corresponding stage output by the target driving style recognition model;

[0008] When the driving mileage of the target object reaches the target mileage, a target driving style of the target object is determined based on the driving styles of each stage corresponding to the driving mileage of the target object.

[0009] In a second aspect, the present application also provides a driving style recognition device, comprising:

[0010] A data acquisition module, used to acquire driving style characteristic data of the target object for each stage and identify the road condition category of the corresponding stage, wherein the driving style characteristic data includes the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed for each stage;

[0011] a style recognition module, configured to determine a target driving style recognition model for the corresponding stage based on the road condition category, input the driving style feature data for the corresponding stage into the target driving style recognition model, and obtain a driving style for the corresponding stage output by the target driving style recognition model;

[0012] The style determination module is used to determine the target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage.

[0013] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect above.

[0015] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0016] The above-mentioned driving style recognition method, device, computer equipment, computer-readable storage medium and computer program product obtain the driving style feature data of the target object for each stage and identify the road condition category of the corresponding stage, determine the target driving style recognition model of the corresponding stage based on the road condition category, input the driving style feature data of the corresponding stage into the target driving style recognition model to obtain the driving style for the corresponding stage output by the target driving style recognition model, and determine the target driving style of the target object based on the driving style of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage. When identifying the driving style, it is based on the driving style feature data including the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed, so that the operating style of the target object during steering, acceleration and deceleration can be accurately and real-time described. By identifying the driving style in combination with the road condition category of the corresponding stage, the accuracy of driving style recognition can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a schematic flow chart of a driving style identification method in one embodiment;

[0019] Figure 2 is a flow chart of a driving style recognition method in another embodiment;

[0020] Figure 3 A schematic diagram of a flow chart of a step of determining a target driving style in one embodiment;

[0021] Figure 4 A schematic diagram of a flow chart of a model training step in an embodiment;

[0022] Figure 5 A schematic diagram of a process for obtaining a training data set in one embodiment;

[0023] Figure 6 A schematic diagram of a process for training different types of models in one embodiment;

[0024] Figure 7 A schematic diagram of a network structure in an embodiment;

[0025] Figure 8 A schematic diagram of a flow chart of a model testing step in an embodiment;

[0026] Fig. 9 is a flow chart of a driving style identification method in yet another embodiment;

[0027] Fig.10 is a structural block diagram of a driving style recognition device in one embodiment;

[0028] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0030] Since different users have different driving styles, the relatively fixed driving style in traditional cars cannot reflect the user's actual driving style.

[0031] Based on this, the embodiment of the present application provides a driving style recognition method, which obtains the driving style feature data of the target object for each stage and identifies the road condition category of the corresponding stage, determines the target driving style recognition model of the corresponding stage based on the road condition category, inputs the driving style feature data of the corresponding stage into the target driving style recognition model to obtain the driving style for the corresponding stage output by the target driving style recognition model, and determines the target driving style of the target object based on the driving style of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage. When identifying the driving style, it is based on the driving style feature data including the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed, so that the operating style of the target object during steering, acceleration and deceleration can be accurately and real-time described. By identifying the driving style in combination with the road condition category of the corresponding stage, the accuracy of driving style recognition can be improved.

[0032] In one embodiment, Figure 1 As shown, a driving style recognition method is provided. This embodiment uses the method applied to a vehicle controller as an example. In this embodiment, the method includes the following steps:

[0033] Step 102 : Acquire driving style characteristic data of the target object for each stage and identify the road condition category of the corresponding stage.

[0034] The driving style characteristic data includes the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed in each stage. Specifically, the driving style characteristic data is determined by statistical analysis based on the vehicle state information of the corresponding stage, and the vehicle state information may include the vehicle's steering wheel angle, vehicle speed, longitudinal acceleration, lateral acceleration and following distance.

[0035] The stage may be a driving stage of the vehicle, which may be specifically divided into stages based on the mileage of the vehicle, and the mileage may be a specific number of kilometers, for example, one kilometer of mileage may be one stage. The stage may also be divided based on the driving time of the vehicle, for example, one stage may be one driving event per minute. It is understood that the mileage or driving time of each stage may be set based on actual needs, and this embodiment does not limit this.

[0036] The target object may be any user object for which driving style recognition is required. It is understandable that the driving style recognition method of the present application may recognize the driving style of any user object. However, when the driving style recognition is performed on a certain user object, the driving style feature data of each stage of the user object driving the vehicle is used.

[0037] The road condition category refers to the category of the vehicle driving road condition at the corresponding stage, which may specifically include a straight-ahead condition category, a lane-changing condition category, and a turning condition category. In this embodiment, the specific road condition category may be identified based on the vehicle state information at the corresponding stage.

[0038] In this embodiment, when it is necessary to identify the driving style of a target object, the vehicle controller can obtain the driving style characteristic data of each stage of the target object's driving process and identify the road condition category of the corresponding stage. Specifically, the driving style characteristic data includes the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed in each stage.

[0039] Step 104 : determining a target driving style recognition model for a corresponding stage based on the road condition category, and determining a driving style for the corresponding stage according to the target driving style recognition model and the driving style feature data for the corresponding stage.

[0040] Specifically, the vehicle controller determines a target driving style recognition model for the corresponding stage based on the road condition category, and inputs the driving style feature data for the corresponding stage into the target driving style recognition model, thereby obtaining the driving style for the corresponding stage output by the target driving style recognition model.

[0041] The target driving style recognition model may be a pre-trained neural network model that matches the road condition category of the corresponding stage and can recognize the user's driving style. It is understandable that for different road condition categories, the matching target driving style recognition model is also different. That is, in this embodiment, for each road condition category, a corresponding driving style recognition model is pre-trained.

[0042] The driving style is the driving style of the user object at a certain stage identified by the model based on the driving style feature data of the user object at that stage. Specifically, the driving style mainly reflects the operating style of road conditions such as acceleration, deceleration and turning, including but not limited to conservative style, general style and aggressive style.

[0043] Specifically, when the vehicle controller identifies the road condition category of the target object at the corresponding stage based on the above steps, the target driving style recognition model of the corresponding stage is determined based on the road condition category, and the driving style feature data of the corresponding stage is input into the target driving style recognition model to obtain the driving style of the target object for the corresponding stage output by the target driving style recognition model. It can be understood that during the process of the target object driving the vehicle, after obtaining the driving style feature data of a stage, the vehicle controller can identify the road condition category of the stage, thereby determining the target driving style recognition model that matches the road condition category of the stage, and input the driving style feature data of the stage into the corresponding target driving style recognition model to obtain the driving style for the stage output by the target driving style recognition model.

[0044] Step 106 : when the driving mileage of the target object reaches the target mileage, determine the target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object.

[0045] The target driving style is the driving style of the target object that is finally determined. The target mileage is the pre-set driving mileage that the target object needs to complete in order to finally determine the driving style of the target object. Specifically, the target mileage can be set by the target object itself to achieve flexibility in driving style recognition. The driving mileage of the target object refers to the actual driving mileage of the target object.

[0046] Specifically, when the driving mileage of the target object reaches the target mileage, the vehicle controller may determine the target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object. For example, the target driving style of the target object may be determined by statistically analyzing the driving styles of each stage corresponding to the driving mileage of the target object.

[0047] In the above driving style recognition method, the vehicle controller obtains the driving style feature data of the target object for each stage and identifies the road condition category of the corresponding stage, and determines the target driving style recognition model of the corresponding stage based on the road condition category, inputs the driving style feature data of the corresponding stage into the target driving style recognition model to obtain the driving style for the corresponding stage output by the target driving style recognition model, and determines the target driving style of the target object based on the driving style of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage. When identifying the driving style, it is based on the driving style feature data including the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed, so that the operating style of the target object during steering, acceleration and deceleration can be accurately and real-time described. By identifying the driving style in combination with the road condition category of the corresponding stage, the accuracy of driving style recognition can be improved.

[0048] In an exemplary embodiment, Figure 2 As shown, in step 106, after determining the target driving style of the target object, the method may further include:

[0049] Step 108 , matching a corresponding target energy recovery level according to the target driving style of the target object.

[0050] Among them, the energy recovery level is used to characterize the strength of the vehicle's energy recovery. Energy recovery is a technology that recycles excess energy generated by the vehicle during driving, thereby improving the vehicle's energy utilization rate and reducing environmental pollution.

[0051] Specifically, the energy recovery level generally includes three levels, namely low (20%), medium (70%) and high (100%). The low level corresponds to mild recovery, which means that when the vehicle decelerates or brakes, the system will automatically intervene to recover and reuse excess energy (its energy recovery rate is about 20%). In this case, the deceleration of the vehicle will be relatively slight and will not have much impact on the driving experience. The intermediate level corresponds to moderate recovery, which adds some braking measures on the basis of mild recovery to make the energy recovery rate higher (its energy recovery rate is about 70%). The high level corresponds to intensive recovery, which is to stop the vehicle completely and convert excess energy into electrical energy through braking. This level of kinetic energy recovery can maximize energy utilization (its energy recovery rate is about 100%).

[0052] Since the fuel consumption is higher in aggressive style, in order to increase the economy and endurance of the vehicle, you can choose the high energy recovery level to maximize energy utilization; in conservative style, the fuel consumption is lower, at this time you can choose the low energy recovery level; in general style, in order to ensure a balance between driving experience and energy utilization efficiency, you can choose the medium energy recovery level.

[0053] Based on this, in this embodiment, when the target driving style of the target object is an aggressive style, the vehicle controller can determine the matching target energy recovery level to be a high level; when the target driving style of the target object is a normal style, the vehicle controller can determine the matching target energy recovery level to be a medium level; when the target driving style of the target object is a conservative style, the vehicle controller can determine the matching target energy recovery level to be a low level. This maximizes energy utilization and achieves a balance between driving experience and energy utilization efficiency.

[0054] Step 110: Control the vehicle to perform energy recovery according to the target energy recovery level.

[0055] Specifically, the vehicle controller may control the vehicle to perform energy recovery according to the above determined target energy recovery level that matches the target driving style of the target object, thereby improving the economy and driving experience of the vehicle.

[0056] In the above embodiment, the vehicle controller can match the corresponding target energy recovery level according to the target driving style of the target object, and control the vehicle to perform energy recovery according to the target energy recovery level, that is, map the driving style with the energy recovery level, so as to maximize the energy utilization rate, achieve a balance between driving experience and energy utilization efficiency, and improve the economy and driving experience of the vehicle.

[0057] In an exemplary embodiment, Figure 3 As shown, in step 106, based on the driving styles of each stage corresponding to the driving mileage of the target object, determining the target driving style of the target object may specifically include:

[0058] Step 302 , counting the driving styles of each stage corresponding to the driving mileage of the target object, and obtaining the statistical times corresponding to different driving styles.

[0059] During the process of the target object driving the vehicle, after the vehicle controller obtains the driving style feature data of a stage, it can input the driving style feature data of the stage into the pre-trained target driving style recognition model that matches the road condition category of the corresponding stage, so as to obtain the driving style for the stage output by the target driving style recognition model. In addition, since the environmental factors corresponding to each stage and the state of the target object are different, if the driving style of a certain stage is directly used as the driving style of the target object, it will be biased and there will be a problem of inaccurate identification of the driving style of the target object.

[0060] Based on this, in this embodiment, by setting a relatively long target mileage such as 500 kilometers or 1000 kilometers, the target driving style of the target object is determined based on the driving styles of each stage corresponding to the target object's driving mileage only when the target object's driving mileage reaches the target mileage.

[0061] Specifically, the driving styles of each stage corresponding to the driving mileage of the target object can be counted to obtain the statistical times corresponding to different driving styles. For example, if the target mileage is 1000 kilometers and each stage is one kilometer of driving mileage, then during the process of the target object driving the vehicle, for each kilometer driven, a driving style for the stage (i.e., one kilometer) output by the target driving style recognition model can be obtained. When the target object completes the driving mileage of 1000 kilometers, a driving style for each kilometer in 1000 kilometers output by the driving style recognition model can be obtained, i.e., 1000 driving styles. Since the driving styles of this embodiment include conservative style, general style, and aggressive style, the times of each driving style can be counted, i.e., the driving style of each kilometer in 1000 kilometers is counted, so that the statistical times corresponding to different driving styles can be obtained.

[0062] Step 304 : determining the driving style with the highest statistical number as the target driving style of the target object.

[0063] Specifically, the driving styles may be sorted based on the number of statistics of each driving style, for example, they may be sorted from high to low according to the number of statistics, and the driving style ranked first (ie, with the highest number of statistics) is determined as the target driving style of the target object.

[0064] In this embodiment, the driving styles of each stage corresponding to the driving mileage of the target object are counted to obtain the statistical times corresponding to different driving styles, and the driving style with the highest statistical times is determined as the target driving style of the target object. The target driving style of the target object is determined based on the statistical analysis method by comprehensively considering the driving style of the target object at each stage in a relatively long driving mileage, thereby improving the accuracy of the target object's driving style recognition.

[0065] In one scenario, for different user objects driving the same vehicle, a specific user object can be identified based on a camera. If the camera identifies different user objects, the relevant data of the previous user object driving the vehicle is saved. If the current user object is driving the vehicle for the first time, the driving mileage is reset to zero, and the driving style of the current user object is identified again. When the driving mileage of the current user object reaches the target mileage, the driving style of the current user object is generated. If the current user object is not driving the vehicle for the first time, the historical data of the current user object driving the vehicle is searched from the saved data, and the historical driving mileage of the current user object is determined based on the historical data of the current user object, so as to continue to identify the driving style of the current user object based on the historical driving mileage, and when the cumulative driving mileage of the current user object reaches the target mileage, the driving style of the current user object is generated. This achieves accurate identification of the driving styles of different user objects driving the same vehicle.

[0066] In an exemplary embodiment, in step 102, identifying the road condition category of the corresponding stage may specifically include: obtaining the steering wheel angle of the steering wheel operated by the target object in the corresponding stage, and when the maximum value of the steering wheel angle is less than a first angle threshold, identifying the road condition category of the corresponding stage as a straight-ahead condition category; when the maximum value of the steering wheel angle is greater than or equal to the first angle threshold and less than the second angle threshold, identifying the road condition category of the corresponding stage as a lane-changing condition category; wherein the second angle threshold is greater than the first angle threshold; and when the maximum value of the steering wheel angle is greater than or equal to the second angle threshold, identifying the road condition category of the corresponding stage as a turning condition category.

[0067] Specifically, in each stage, the vehicle controller can monitor the change of the steering wheel angle. When the change of the steering wheel angle is detected, it means that the target object has operated the steering wheel. Therefore, the steering wheel angle of the target object operating the steering wheel can be obtained. It can be understood that in a stage, there may be a situation where the target object operates the steering wheel multiple times. Therefore, the vehicle controller can obtain multiple steering wheel angles of the target object operating the steering wheel multiple times in this stage.

[0068] Since the steering wheel angle is directly related to the road curvature, the steering wheel angle is usually larger in scenarios with larger road curvature. Therefore, the first angle threshold and the second angle threshold are set to compare with the steering wheel angle to identify the corresponding road condition category. The first angle threshold may be the minimum angle of the steering wheel angle in a lane change scenario, and the second angle threshold may be the minimum angle of the steering wheel angle in a turning scenario. The second angle threshold is greater than the first angle threshold. For example, the first angle threshold may be 10 degrees, and the second angle threshold may be 20 degrees.

[0069] Therefore, in this embodiment, after obtaining the steering wheel angle of each stage, the vehicle controller can compare the maximum value of the steering wheel angle in the stage with the pre-set first angle threshold and second angle threshold, that is, when the maximum value of the steering wheel angle is less than the first angle threshold, identify the road condition category of the corresponding stage as the straight-ahead condition category. When the maximum value of the steering wheel angle is greater than or equal to the first angle threshold and less than the second angle threshold, identify the road condition category of the corresponding stage as the lane-changing condition category. When the maximum value of the steering wheel angle is greater than or equal to the second angle threshold, identify the road condition category of the corresponding stage as the turning condition category. In this way, the road condition category is identified based on the steering wheel angle of the corresponding stage, and then the driving style of the stage is identified in combination with the road condition category, so as to improve the accuracy of driving style identification.

[0070] In an exemplary embodiment, Figure 4 As shown, the target driving style recognition model in step 104 can be trained by the following method:

[0071] Step 402: Obtain training data sets under different road condition categories.

[0072] Among them, different road condition categories can specifically include straight-ahead condition categories, lane-changing condition categories, and turning condition categories. The training data set is sample data used for model training. In this embodiment, for each road condition category, a training data set under the corresponding road condition category can be obtained respectively, that is, there is a corresponding training data set under each road condition category. The training data set under each category includes driving style feature sample data of multiple sample stages and corresponding driving style labels. Specifically, the driving style feature sample data includes the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed in the corresponding sample stage. The driving style label refers to the real driving style corresponding to the sample stage, including but not limited to conservative style, general style, and aggressive style. In this embodiment, when training the model, it is first necessary to obtain the training data set under each road condition category.

[0073] Step 404 : using training data sets under different road conditions to respectively train initial driving style recognition models of corresponding categories, so as to obtain driving style recognition models under different road conditions.

[0074] The initial driving style recognition model may be a neural network model based on a neural network for predicting driving style. Since each road condition category has a corresponding training data set, in this embodiment, the training data sets under different road condition categories are used to train the initial driving style recognition models of the corresponding categories, so that the driving style recognition models under different road condition categories can be obtained.

[0075] For example, the training data set under the straight driving condition category is used to train the initial driving style recognition model, and the driving style recognition model under the straight driving condition category can be obtained; the training data set under the lane changing condition category is used to train the initial driving style recognition model, and the driving style recognition model under the lane changing condition category can be obtained; the training data set under the turning condition category is used to train the initial driving style recognition model, and the driving style recognition model under the turning condition category can be obtained. In this embodiment, the driving style recognition models under different road condition categories have different weight parameters for the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data, that is, the driving style recognition models under different road condition categories have different corresponding network weight parameters.

[0076] In this embodiment, by acquiring training data sets under different road condition categories, and using the training data sets under different road condition categories to train the initial driving style recognition models of the corresponding categories respectively, driving style recognition models under different road condition categories are obtained. Since the driving style recognition models under different road condition categories have different weight parameters for the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data, the driving style recognition models based on different road condition categories can improve the accuracy of driving style recognition.

[0077] In practical applications, the target driving style recognition model for the corresponding stage can be determined based on the road condition category, that is, based on the road condition category of the stage, the corresponding target driving style recognition model is selected to identify the driving style of the corresponding stage, so as to improve the accuracy of driving style recognition.

[0078] Specifically, when the road condition category of the corresponding stage is identified as the straight-ahead condition category, the target driving style recognition model can be determined as the driving style recognition model for the straight-ahead condition; when the road condition category of the corresponding stage is identified as the lane-changing condition category, the target driving style recognition model can be determined as the driving style recognition model for the lane-changing condition; when the road condition category of the corresponding stage is identified as the turning condition category, the target driving style recognition model can be determined as the driving style recognition model for the turning condition. In this way, different driving style recognition models are matched as target driving style recognition models based on the road condition categories of different stages to recognize the driving style of the stage, thereby improving the accuracy of driving style recognition.

[0079] In an exemplary embodiment, Figure 5 As shown, in step 402, obtaining training data sets under different road conditions may specifically include:

[0080] Step 502 , collecting vehicle state information of the vehicle at multiple sample stages in a sample driving environment.

[0081] The vehicle state information includes the vehicle's steering wheel angle, vehicle speed, longitudinal acceleration, lateral acceleration, and following distance. The sample driving environment may be a driving road environment with working conditions such as straight driving, lane changing, and turning. The sample stage may be a vehicle's driving stage, which may be specifically divided into stages based on the vehicle's mileage or driving time.

[0082] Specifically, a driving road with straight driving, lane changing, turning and other working conditions (i.e., a sample driving environment) can be selected, and 20 drivers of different age groups and genders can be selected to drive, and vehicle status information such as steering wheel angle, vehicle speed, longitudinal acceleration, lateral acceleration, and following distance can be collected. Then, noise reduction, filtering and other methods are used to pre-process the data, such as excluding acceleration events within 1s, braking events within 0.5s, and steering events within 2s, and the pre-processed data is divided into n sample sizes according to mileage or driving time, and each sample size corresponds to the vehicle status information of a sample stage, so the vehicle status information of n sample stages is obtained.

[0083] Step 504 , determining driving style features from the vehicle state information, performing dimensionality reduction processing based on the driving style features of multiple sample stages, and obtaining driving style feature sample data of multiple sample stages.

[0084] Among them, driving style features are original features that may have a certain effect on the identification of driving style, determined by statistical analysis based on vehicle status information. Dimensionality reduction is the process of converting the original features that may be correlated into a set of linearly unrelated variables through orthogonal transformation. The converted variables are called principal components, i.e. driving style feature sample data. It simplifies the data set by using fewer variables to explain most of the variation in the original data while retaining as much original information as possible, also known as principal component analysis.

[0085] Since the driver's operating parameters will affect the vehicle state information during vehicle driving, and the driver's operating parameters generally include the accelerator pedal opening and opening change rate, the brake pedal opening and opening change rate, the steering wheel angle, etc. The vehicle state information generally includes vehicle speed, longitudinal acceleration, lateral acceleration, following distance, center of mass slip angle, etc. The brake pedal opening and accelerator pedal opening can be directly reflected by the vehicle speed, and the brake pedal opening change rate and the accelerator pedal opening change rate can be reflected by the longitudinal acceleration. Although the center of mass slip angle can reflect the lateral and longitudinal coupling characteristics of the vehicle at the turning moment, this characteristic is difficult to estimate in practice. In addition, as the vehicle limit increases, the center of mass slip angle of the vehicle actually shows a trend of increase (positive value)-decrease (positive value)-increase (negative value), that is, it is not positively correlated with the intensity of the driving style. The steering wheel angle is directly related to the road curvature. If it is directly used to characterize the driving style, it will lead to inaccuracy. When drivers with the same driving style pass through curves with different curvatures, the characteristic value of the product of the steering wheel angle and the vehicle speed is relatively stable, so it can be used to characterize the driving style. The length of the following distance can be used to judge the driver's following habits and the risk of rear-end collision.

[0086] Based on the above analysis, it can be seen that the product of steering wheel angle and vehicle speed, longitudinal acceleration, lateral acceleration and following distance can be used to characterize driving style.

[0087] Based on this, the original features that may have a certain effect on the identification of driving style, namely driving style features, can be determined from the vehicle state information. In this embodiment, the maximum value, average value and standard deviation of the longitudinal acceleration, the maximum value, average value and standard deviation of the lateral acceleration, the maximum value, average value and standard deviation of the product of the steering wheel angle and the vehicle speed, and the maximum value, average value and standard deviation of the following distance in each sample stage can be used as driving style features, a total of 12 original features. It can be understood that based on the collection cycle of the vehicle state information collected by the vehicle controller, for each sample stage, the state information such as the steering wheel angle, vehicle speed, longitudinal acceleration, lateral acceleration and following distance of the vehicle in multiple cycles can be collected. By statistically analyzing the vehicle state information of multiple cycles in each sample stage, the above 12 driving style features of each sample stage can be obtained.

[0088] Furthermore, by performing dimensionality reduction processing on the driving style features of multiple sample stages, driving style feature sample data of multiple sample stages are obtained. In this embodiment, the principal component analysis method can be used to perform dimensionality reduction processing on the driving style features determined above.

[0089] Specifically, taking the principal component analysis of the driving style characteristics of n sample stages as an example, the corresponding sample matrix is:

[0090]

[0091] Wherein, p is the number of driving style features, which is 12 in this embodiment; n is the number of sample stages, that is, the number of samples.

[0092] Assume the correlation coefficient matrix is ​​R, then:

[0093]

[0094] in, and and The correlation coefficient is expressed as follows:

[0095]

[0096]

[0097]

[0098]

[0099] in, and Refers to any two of the 12 driving style characteristics mentioned above, The arbitrary two driving style characteristics are and The correlation coefficient between is the mean of the i-th column in matrix X, is the mean of the jth column in matrix X, For characterization The degree of dispersion is also the variance. Similarly, For characterization The degree of dispersion is also known as the variance. For characterization and The degree of correlation between them is also called covariance.

[0100] Then, the eigenvalues ​​λ1, λ2, …, λ of R are calculated by MATLAB (a programming and numerical computing platform). p , a total of p eigenvalues, and λ1>λ2>…>λp >0, the contribution rate of each principal component (i.e. each driving style feature) is calculated as follows:

[0101]

[0102] in, is the contribution rate of the ith principal component. The first three principal components (i.e., driving style features with cumulative contribution rates of more than 80% and eigenvalues ​​greater than 1) are selected as the three main eigenvalues ​​that can determine the driving style. In this embodiment, based on the driving style features of the above-mentioned multiple sample stages, the three main eigenvalues ​​finally determined, i.e., the driving style feature sample data, are the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed.

[0103] Step 506 : clustering the driving style feature sample data of multiple sample stages based on a clustering algorithm to determine the category of the driving style feature sample data of each sample stage.

[0104] The category is used to characterize the driving style label of the driving style feature sample data of the corresponding sample stage. In this embodiment, after the three main feature values ​​that can determine the driving style, i.e., the driving style feature sample data, are determined through the above steps, clustering processing is performed on the driving style feature sample data of multiple sample stages based on a clustering algorithm to determine the category corresponding to the driving style feature sample data of each sample stage, i.e., the driving style label.

[0105] Specifically, this embodiment can preliminarily identify the driving style tendency of the driving style feature sample data based on the k-means algorithm, and through a cycle, continuously iterate the class center point, determine the number of iterations, calculate the distance from each driving style feature sample data to the new class center point, and reclassify according to the principle of the closest distance, and finally divide the driving style feature sample data of n sample stages into k categories. It can be understood that in this embodiment, k=3, that is, there are three categories of driving style, namely conservative category, general category and aggressive category. Among them, the aggressive category has a higher maximum value of the product of the steering wheel angle and the vehicle speed, the average value of the longitudinal acceleration, and a smaller average value of the following distance; the conservative category has the lowest maximum value of the product of the steering angle and the vehicle speed, the average value of the longitudinal acceleration, and a larger average value of the following distance. The maximum value of the product of the steering wheel angle and the vehicle speed, the average value of the longitudinal acceleration and the average value of the following distance under the general category are all moderate.

[0106] Therefore, based on the above clustering, the category corresponding to the driving style feature sample data of each sample stage can be determined, and the category is used as the driving style label of the driving style feature sample data of the corresponding sample stage.

[0107] Step 508 : determining the road condition category of the driving style feature sample data corresponding to the sample stage based on the steering wheel angle of each sample stage.

[0108] Since the training data set in this embodiment is differentiated based on different road condition categories, in this embodiment, the driving style feature sample data of the corresponding sample stage can also be classified based on the steering wheel angle of each sample stage.

[0109] Specifically, when the maximum value of the steering wheel angle in a certain sample stage is less than the first angle threshold, the road condition category of the driving style feature sample data in the corresponding sample stage is determined to be the straight-ahead condition category. When the maximum value of the steering wheel angle in a certain sample stage is greater than or equal to the first angle threshold and less than the second angle threshold, the road condition category of the driving style feature sample data in the corresponding sample stage is determined to be the lane-changing condition category. When the maximum value of the steering wheel angle in a certain sample stage is greater than or equal to the second angle threshold, the road condition category of the driving style feature sample data in the corresponding sample stage is determined to be the turning condition category. This achieves classification of the driving style feature sample data in each sample stage.

[0110] Step 510 : Using the driving style feature sample data of multiple sample stages under each road condition category and the corresponding driving style labels as a training data set under the corresponding road condition category.

[0111] Specifically, after determining the driving style labels of the driving style feature sample data of each sample stage and the corresponding road condition category through the above steps, the driving style feature sample data of multiple sample stages under each road condition category and the corresponding driving style labels can be used as training data sets under the corresponding road condition category. Then, the corresponding initial driving style recognition model can be trained with the training data sets under different road condition categories to obtain driving style recognition models under different road condition categories that can be used to accurately predict driving styles.

[0112] In the above embodiment, the principal component analysis method is used to identify three main eigenvalues ​​that can determine the driving style, namely, the driving style feature sample data, and the driving style feature sample data is classified and identified based on the k-means clustering algorithm to determine the driving style label of the driving style feature sample data, and based on the steering wheel angle of each sample stage, the road condition category of the driving style feature sample data of the corresponding sample stage is determined to obtain training data sets under different road condition categories, and then the neural network is trained so that the network can learn the driving styles under different road condition categories, and when applied to actual driving style prediction, it can accurately identify the driving styles under different road condition categories to improve the accuracy of driving style recognition.

[0113] In an exemplary embodiment, Figure 6 As shown, in step 404, the initial driving style recognition models of the corresponding categories are trained using the training data sets under different road conditions to obtain the driving style recognition models under different road conditions, which may specifically include:

[0114] Step 602 : input the driving style feature sample data under different road condition categories into the initial driving style recognition model of the corresponding category to obtain the predicted driving style for the driving style feature sample data.

[0115] The initial driving style recognition model can be a neural network model based on a neural network for predicting driving style. Specifically, a single hidden layer neural network can be used to build the initial driving style recognition model. The network structure is as follows: Figure 7 As shown, it may include 3 input layer neurons and 3 output layer neurons, wherein the output layer activation function is a sigmoid function, and the number of neurons in its hidden layer can be determined based on the following formula:

[0116] ,in, is the number of neurons in the hidden layer, N s is the number of samples in the training set, N i is the number of neurons in the input layer, N o is the number of neurons in the output layer. α can be selected according to the actual situation and is usually between 2 and 10.

[0117] In this embodiment, by inputting driving style feature sample data under different road condition categories into the initial driving style recognition model (i.e., x1, x2 and x3 correspond to the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data, respectively, and each feature corresponds to an input layer neuron for input), the predicted driving style for the driving style feature sample data output by the initial driving style recognition model is obtained, that is, the probability of each output layer neuron outputting the corresponding driving style (i.e., y1, y2 and y3 are the probabilities of different driving styles, respectively), and finally the driving style with the largest probability is output as the predicted driving style of the driving style feature sample data.

[0118] It is understandable that the initial driving style recognition models inputted are different for driving style feature sample data under different road condition categories. That is, for driving style feature sample data under multiple road condition categories, multiple initial driving style recognition models can be used for training, that is, driving style feature sample data under one road condition category is used to train one initial driving style recognition model.

[0119] Step 604 , determining the loss value of the initial driving style recognition model of the corresponding category according to the set loss function, the driving style label corresponding to the driving style feature sample data, and the predicted driving style.

[0120] Among them, the loss function is a function that maps the value of a random event or its related random variables to a non-negative real number to represent the "risk" or "loss" of the random event. In this embodiment, the loss function can specifically adopt a square error loss function. The loss value is the specific loss or error between the predicted driving style and the driving style label corresponding to the driving style feature sample data of each sample stage in the training data set under the same road condition category calculated based on the loss function. Specifically, the loss function can be expressed as:

[0121]

[0122] in, is the loss function, is the driving style label corresponding to the i-th driving style feature sample data, is the predicted driving style corresponding to the i-th driving style feature sample data, and N represents the number of driving style feature sample data in the training data set under the same road condition category. w is the network parameter of the neural network, including the weight and bias parameter of each input feature. Specifically, based on the above loss function, the loss value of the initial driving style recognition model under the corresponding road condition category can be obtained by calculation.

[0123] Step 606 , based on the loss value and the preset weight parameters under different road conditions, the network parameters of the initial driving style recognition model of the corresponding category are updated using the gradient descent method until a driving style recognition model of the corresponding category is obtained upon convergence.

[0124] Among them, the weight parameter can be the weight of each input feature (i.e., x1, x2, and x3) in the network parameters of the neural network pre-set under different road conditions. Specifically, for the straight-ahead condition category, the corresponding weight parameter includes the weight limit for the average value of the following distance (such as greater than or equal to 0.2) and the weight limit for the average value of the longitudinal acceleration (such as greater than or equal to 0.5), then the weight of the maximum value of the product of the steering wheel angle and the vehicle speed is less than 0.3, that is, the sum of the weights of the three is 1. For the lane-changing condition category, the corresponding weight parameter includes the weight limit for the average value of the following distance (such as greater than or equal to 0.5), then the sum of the weight of the maximum value of the product of the steering wheel angle and the vehicle speed and the weight of the average value of the longitudinal acceleration is less than 0.5. For the turning condition category, the corresponding weight parameter includes the weight limit for the maximum value of the product of the steering wheel angle and the vehicle speed (such as greater than or equal to 0.6), then the sum of the weight of the average value of the longitudinal acceleration and the weight of the average value of the following distance is less than 0.4.

[0125] In this embodiment, weight parameters under different road condition categories are pre-set, and the network parameters of the initial driving style recognition model of the corresponding category are updated by the gradient descent method based on the loss value, and the above steps are repeated to continue training the adjusted initial driving style recognition model until convergence, that is, the loss value no longer decreases, and the weight of each input feature reaches the expectation, that is, it meets the preset weight parameters under the corresponding road condition category. At this time, the network parameters of the model are saved to obtain a trained driving style recognition model of the corresponding category.

[0126] It can be understood that the training data set of this embodiment includes a training data set under the straight-ahead condition category, a training data set under the lane-changing condition category, and a training data set under the turning condition category. The training data sets under different road condition categories are used to train the initial driving style recognition models of the corresponding categories respectively, and the driving style recognition models under different road condition categories can be obtained. That is, the driving style recognition model under the straight-ahead condition category, the driving style recognition model under the lane-changing condition category, and the driving style recognition model under the turning condition category can be obtained. Then, the driving style of the corresponding stage is identified based on the driving style recognition models under different road condition categories, which is conducive to improving the accuracy of driving style recognition.

[0127] In practical applications, in order to further improve the confidence of the driving style recognition model, after completing the training of the driving style recognition model based on the above steps, a testing process of the driving style recognition model may also be included. Figure 8 As shown, the testing process of the driving style recognition model may specifically include the following steps:

[0128] Step 802: Acquire test data sets under different road conditions.

[0129] The test data set includes a plurality of driving style feature sample data and corresponding driving style labels. In this embodiment, for each road condition category, a test data set corresponding to the road condition category can be obtained respectively, that is, there is a corresponding test data set under each road condition category. The test data set under each category includes driving style feature sample data of multiple sample stages and corresponding driving style labels. It can be understood that the acquisition process of the test data set is similar to that of the training data set, and this embodiment will not be repeated.

[0130] Specifically, the test data set and the training data set may have a certain ratio respectively. For example, the training data set may account for 80% or 85% of the total sample data, and the test data set may account for 20% or 15% of the total sample data.

[0131] Step 804 : Using test data sets under different road conditions to test driving style recognition models of corresponding categories respectively, so as to determine the accuracy of the driving style recognition models of corresponding categories.

[0132] Since each road condition category has a corresponding test data set, in this embodiment, the test data sets under different road condition categories are used to test the driving style recognition models of the corresponding categories respectively, so as to obtain the accuracy of the driving style recognition models under different road condition categories. For example, the test data set under the straight-ahead condition category is used to test the corresponding driving style recognition model, so as to obtain the accuracy of the driving style recognition model under the straight-ahead condition category; the test data set under the lane-changing condition category is used to test the corresponding driving style recognition model, so as to obtain the accuracy of the driving style recognition model under the lane-changing condition category; the test data set under the turning condition category is used to test the corresponding driving style recognition model, so as to obtain the accuracy of the driving style recognition model under the turning condition category.

[0133] Among them, the accuracy rate is the accuracy rate of the predicted driving style corresponding to the driving style feature sample data, which is calculated based on the driving style label corresponding to the driving style feature sample data. For example, if there are m driving style feature sample data in the test data set under a certain road condition category, the predicted driving style for each driving style feature sample data is obtained through the driving style recognition model, and the predicted driving style of each driving style feature sample data is compared with the corresponding driving style label. If they are the same, it means that the prediction of the driving style for the driving style feature sample data is correct. If they are different, it means that the prediction of the driving style for the driving style feature sample data is incorrect. If it is found statistically that there are k driving style feature sample data whose driving style prediction is incorrect, the accuracy rate of the driving style recognition model is [(mk) / m]×100%.

[0134] Specifically, each driving style feature sample data in the test data set under the same road condition category is input into the driving style recognition model of the corresponding category after the above training to obtain the predicted driving style for each driving style feature sample data in the test data set, and based on the driving style label of each driving style feature sample data, the accuracy of the driving style recognition model under the category is statistically analyzed.

[0135] Step 806 : When the accuracy rate meets the preset threshold, it is determined that the driving style recognition model test of the corresponding category has passed.

[0136] The preset threshold may be a preset accuracy threshold for measuring whether the driving style recognition model is usable. It is understandable that the preset threshold may be set to different values ​​based on actual application scenarios. For example, for scenarios with high accuracy requirements, the preset threshold may be set to a larger value, and for scenarios with low accuracy requirements, the preset threshold may be set to a smaller value. This is not limited in the present embodiment.

[0137] Specifically, after the accuracy of the driving style recognition model of the corresponding category is determined by using the test data set through the above steps, if the accuracy meets the preset threshold, it means that the error of the driving style recognition model of the category is within an acceptable range, that is, it means that the driving style recognition model of the category is available, so it can be determined that the driving style recognition model of the corresponding category has passed the test. Then, the driving style recognition model can be used to recognize the driving style of the target object in real time.

[0138] In an exemplary embodiment, Fig. 9 As shown, this embodiment takes the target mileage of 1000 kilometers and the mileage of each stage of 1 kilometer as an example to further illustrate the driving style recognition method of the present application, which may specifically include the following steps:

[0139] Step 901, identifying the driver.

[0140] Step 902, determining whether the driver is driving for the first time.

[0141] The first-time driver refers to a driver who drives a vehicle for the first time. Specifically, if it is identified that the current driver is not the first-time driver of the vehicle, step 903 is executed to call the driver's historical data. If it is the first-time driver of the vehicle, step 904 is executed to initialize the data and record the driver's related information.

[0142] Step 903: call the driver's historical data.

[0143] If it is identified that the current driver is not the first time driving the vehicle, it means that the current driver has driven the vehicle before, so the driver's historical data is called, and the driver's driving style characteristic data per kilometer is continued to be obtained based on the historical data to identify the corresponding driving style.

[0144] Step 904: Initialize data and record driver-related information.

[0145] The data initialization can be understood as performing data reset processing for the driver. Since the driver is driving the vehicle for the first time, the relevant information of the driver is recorded, and the driving data of the driver is recorded from scratch to identify the driving style of the driver. In this way, the driving styles of different drivers can be identified, and the driving style identification can be personalized.

[0146] Step 905 , obtaining driving style characteristic data for each kilometer and identifying the corresponding road condition category.

[0147] Specifically, the driving style characteristic data includes the average longitudinal acceleration per kilometer of mileage, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed. The road condition category includes the straight driving condition category, the lane changing condition category, and the turning condition category.

[0148] Step 906 : Identify the driving style corresponding to each kilometer in real time based on the road condition category.

[0149] Specifically, based on the corresponding road condition category identified above, the corresponding driving style is identified by calling a pre-trained target driving style recognition model of the corresponding category and according to the acquired driving style feature data per kilometer, and the count of the corresponding driving style is increased by 1.

[0150] Step 907, determining whether the driving mileage of the same driver reaches 1000 kilometers.

[0151] Specifically, if the driving mileage of the same driver has not reached 1000 kilometers, return to step 905, and if the driving mileage of the same driver has reached 1000 kilometers, execute step 908.

[0152] Step 908, counting the number of times each driving style has been driven in 1000 kilometers, and determining the driving style with the highest number of times.

[0153] Step 909 , determining the driving style with the highest statistical number as the target driving style for the driver whose driving mileage meets the requirement.

[0154] In the above embodiment, the driving styles of different drivers driving the same vehicle can be identified respectively, so that the driving style identification can be personalized. In addition, when identifying the driving style at each stage, the road condition category of the corresponding stage is combined for identification, so the accuracy of driving style identification can be improved.

[0155] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can also be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0156] Based on the same inventive concept, the embodiment of the present application also provides a driving style recognition device for implementing the driving style recognition method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more driving style recognition device embodiments provided below can refer to the limitations of the driving style recognition method above, and will not be repeated here.

[0157] In an exemplary embodiment, Fig.10 As shown, a driving style recognition device is provided, including: a data acquisition module 1002, a style recognition module 1004 and a style determination module 1006, wherein:

[0158] The data acquisition module 1002 is used to acquire the driving style characteristic data of the target object for each stage and identify the road condition category of the corresponding stage, wherein the driving style characteristic data includes the average longitudinal acceleration, the average following distance and the maximum value of the product of the steering wheel angle and the vehicle speed for each stage;

[0159] A style recognition module 1004 is used to determine a target driving style recognition model for the corresponding stage based on the road condition category, input the driving style feature data for the corresponding stage into the target driving style recognition model, and obtain a driving style for the corresponding stage output by the target driving style recognition model;

[0160] The style determination module 1006 is configured to determine a target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage.

[0161] In an exemplary embodiment, the data acquisition module is also used to: acquire the steering wheel angle of the steering wheel operated by the target object in the corresponding stage; when the maximum value of the steering wheel angle is less than a first angle threshold, identify the road condition category of the corresponding stage as a straight-ahead condition category; when the maximum value of the steering wheel angle is greater than or equal to the first angle threshold and less than a second angle threshold, identify the road condition category of the corresponding stage as a lane-changing condition category; the second angle threshold is greater than the first angle threshold; when the maximum value of the steering wheel angle is greater than or equal to the second angle threshold, identify the road condition category of the corresponding stage as a turning condition category.

[0162] In an exemplary embodiment, the style recognition module is also used to: when it is identified that the road condition category of the corresponding stage is a straight-ahead condition category, determine that the target driving style recognition model is a driving style recognition model for a straight-ahead condition; when it is identified that the road condition category of the corresponding stage is a lane-changing condition category, determine that the target driving style recognition model is a driving style recognition model for a lane-changing condition; when it is identified that the road condition category of the corresponding stage is a turning condition category, determine that the target driving style recognition model is a driving style recognition model for a turning condition.

[0163] In an exemplary embodiment, a model training module is also included, which is used to: obtain training data sets under different road condition categories, the training data sets include driving style feature sample data of multiple sample stages and corresponding driving style labels, the driving style feature sample data include the average longitudinal acceleration value, the average following distance value and the maximum value of the product of the steering wheel angle and the vehicle speed of the corresponding sample stage; use the training data sets under different road condition categories to respectively train initial driving style recognition models of corresponding categories to obtain driving style recognition models under different road condition categories; the driving style recognition models under different road condition categories have different weight parameters for the average longitudinal acceleration value, the average following distance value and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data.

[0164] In an exemplary embodiment, the model training module is also used to: input the driving style feature sample data under different road condition categories into the initial driving style recognition model of the corresponding category to obtain the predicted driving style for the driving style feature sample data output by the initial driving style recognition model; determine the loss value of the initial driving style recognition model of the corresponding category according to a set loss function, the driving style label corresponding to the driving style feature sample data, and the predicted driving style; and update the network parameters of the initial driving style recognition model of the corresponding category using the gradient descent method according to the loss value and the preset weight parameters under different road condition categories until the driving style recognition model of the corresponding category is obtained at convergence.

[0165] In an exemplary embodiment, the model training module is also used to: collect vehicle state information of the vehicle at multiple sample stages in a sample driving environment, the vehicle state information including the steering wheel angle, vehicle speed, longitudinal acceleration, lateral acceleration and following distance of the vehicle; determine driving style characteristics from the vehicle state information, perform dimensionality reduction processing based on the driving style characteristics of multiple sample stages, and obtain the driving style characteristic sample data of multiple sample stages; perform clustering processing on the driving style characteristic sample data of multiple sample stages based on a clustering algorithm to determine the category of the driving style characteristic sample data of each sample stage, and the category is used to characterize the corresponding driving style label; determine the road condition category of the driving style characteristic sample data of the corresponding sample stage based on the steering wheel angle of each sample stage; use the driving style characteristic sample data of multiple sample stages under each road condition category and the corresponding driving style label as the training data set under the corresponding road condition category.

[0166] In an exemplary embodiment, the style determination module is further used to: count the driving styles of each stage corresponding to the driving mileage of the target object to obtain the statistical times corresponding to different driving styles; and determine the driving style with the highest statistical times as the target driving style of the target object.

[0167] In an exemplary embodiment, an energy recovery module is also included, which is used to: match the corresponding target energy recovery level according to the target driving style of the target object; control the vehicle to perform energy recovery according to the target energy recovery level, and the energy recovery level is used to characterize the strength of the energy recovery of the vehicle.

[0168] In an exemplary embodiment, the energy recovery module is also used to: when the target driving style of the target object is an aggressive style, determine the matching target energy recovery level to be a high level; when the target driving style of the target object is a normal style, determine the matching target energy recovery level to be a medium level; when the target driving style of the target object is a conservative style, determine the matching target energy recovery level to be a low level.

[0169] Each module in the above driving style recognition device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0170] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a driving style recognition method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0171] Those skilled in the art will understand that Fig.11The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0172] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0173] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0174] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0175] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0176] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0177] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0178] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A driving style recognition method, It is characterized in that The method comprises: Acquire driving style characteristic data of the target object for each stage and identify the road condition category of the corresponding stage, wherein the driving style characteristic data includes an average longitudinal acceleration, an average following distance, and a maximum value of the product of the steering wheel angle and the vehicle speed for each stage; determining a target driving style recognition model for the corresponding stage based on the road condition category, inputting the driving style feature data for the corresponding stage into the target driving style recognition model, and obtaining a driving style for the corresponding stage output by the target driving style recognition model; When the driving mileage of the target object reaches the target mileage, determining the target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object; The target driving style recognition model is trained by the following method: Acquire a training data set under different road conditions, wherein the training data set includes driving style feature sample data of multiple sample stages and corresponding driving style labels, wherein the driving style feature sample data includes an average longitudinal acceleration, an average following distance, and a maximum value of a product of a steering wheel angle and a vehicle speed in a corresponding sample stage; Training data sets under different road conditions are used to train initial driving style recognition models of corresponding categories respectively, so as to obtain driving style recognition models under different road conditions. The driving style recognition models under different road conditions have different weight parameters for the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data.

2. The method according to claim 1, It is characterized in that The identification of the road condition category of the corresponding stage includes: Obtaining a steering wheel angle of a steering wheel operated by the target object in the corresponding stage; When the maximum value of the steering wheel angle is less than a first angle threshold, identifying the road condition category of the corresponding stage as a straight-ahead condition category; When the maximum value of the steering wheel angle is greater than or equal to the first angle threshold and less than a second angle threshold, identifying the road condition category of the corresponding stage as a lane change condition category; and the second angle threshold is greater than the first angle threshold; When the maximum value of the steering wheel angle is greater than or equal to the second angle threshold, the road condition category of the corresponding stage is identified as a turning condition category.

3. The method according to claim 2, It is characterized in that The determining of the target driving style recognition model of the corresponding stage based on the road condition category includes: In the case where it is identified that the road condition category of the corresponding stage is a straight-ahead condition category, determining that the target driving style recognition model is a driving style recognition model for a straight-ahead condition; In the case where it is identified that the road condition category of the corresponding stage is a lane-changing condition category, determining that the target driving style recognition model is a driving style recognition model for a lane-changing condition; In the case where it is identified that the road condition category of the corresponding stage is a turning condition category, the target driving style recognition model is determined to be a driving style recognition model for turning conditions.

4. The method according to claim 1, It is characterized in that The method of using training data sets under different road conditions to respectively train initial driving style recognition models of corresponding categories to obtain driving style recognition models under different road conditions includes: Inputting the driving style feature sample data under different road conditions into an initial driving style recognition model of a corresponding category to obtain a predicted driving style for the driving style feature sample data output by the initial driving style recognition model; Determining a loss value of the initial driving style recognition model of a corresponding category according to a set loss function, a driving style label corresponding to the driving style feature sample data, and the predicted driving style; According to the loss value and the preset weight parameters under different road conditions, the network parameters of the initial driving style recognition model of the corresponding category are updated by using the gradient descent method until the driving style recognition model of the corresponding category is obtained when convergence occurs.

5. The method according to claim 1, It is characterized in that The step of obtaining training data sets under different road conditions includes: Collecting vehicle state information of the vehicle at multiple sample stages in a sample driving environment, the vehicle state information including a steering wheel angle, a vehicle speed, a longitudinal acceleration, a lateral acceleration, and a following distance of the vehicle; Determining driving style features from the vehicle state information, performing dimensionality reduction processing based on the driving style features at multiple sample stages, and obtaining driving style feature sample data at multiple sample stages; performing clustering processing on the driving style feature sample data of multiple sample stages based on a clustering algorithm to determine a category of the driving style feature sample data of each sample stage, wherein the category is used to characterize a corresponding driving style label; Determining the road condition category of the driving style feature sample data corresponding to the sample stage based on the steering wheel angle of each sample stage; The driving style feature sample data of multiple sample stages under each road condition category and the corresponding driving style labels are used as the training data set under the corresponding road condition category.

6. The method according to claim 1, It is characterized in that The method further comprises: Acquire a test data set under different road conditions, wherein the test data set includes driving style feature sample data of multiple sample stages and corresponding driving style labels; Using test data sets under different road conditions to test driving style recognition models of corresponding categories, the accuracy of driving style recognition models of corresponding categories is obtained; When the accuracy rate meets the preset threshold, it is determined that the driving style recognition model test of the corresponding category has passed.

7. The method according to any one of claims 1 to 6, It is characterized in that The determining the target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object includes: Counting the driving styles of each stage corresponding to the driving mileage of the target object to obtain the statistical times corresponding to different driving styles; The driving style with the highest statistical number is determined as the target driving style of the target object.

8. The method according to any one of claims 1 to 6, It is characterized in that After determining the target driving style of the target object, the method further includes: matching a corresponding target energy recovery level according to a target driving style of the target object; The vehicle is controlled to perform energy recovery according to the target energy recovery level, and the energy recovery level is used to represent the strength of the energy recovery performed by the vehicle.

9. The method according to claim 8, It is characterized in that The matching of the corresponding target energy recovery level according to the target driving style of the target object includes: When the target driving style of the target object is an aggressive style, determining the matched target energy recovery level to be a high level; When the target driving style of the target object is a general style, determining the matched target energy recovery level to be a medium level; In a case where the target driving style of the target object is a conservative style, the matched target energy recovery level is determined to be a low level.

10. A driving style recognition device, It is characterized in that The device comprises: A data acquisition module, used to acquire driving style characteristic data of the target object for each stage and identify the road condition category of the corresponding stage, wherein the driving style characteristic data includes the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed for each stage; a style recognition module, configured to determine a target driving style recognition model for the corresponding stage based on the road condition category, input the driving style feature data for the corresponding stage into the target driving style recognition model, and obtain a driving style for the corresponding stage output by the target driving style recognition model; a style determination module, configured to determine a target driving style of the target object based on the driving styles of each stage corresponding to the driving mileage of the target object when the driving mileage of the target object reaches the target mileage; The device also includes a model training module, which is used to: Acquire a training data set under different road conditions, wherein the training data set includes driving style feature sample data of multiple sample stages and corresponding driving style labels, wherein the driving style feature sample data includes an average longitudinal acceleration, an average following distance, and a maximum value of a product of a steering wheel angle and a vehicle speed in a corresponding sample stage; Training data sets under different road conditions are used to train initial driving style recognition models of corresponding categories respectively, so as to obtain driving style recognition models under different road conditions. The driving style recognition models under different road conditions have different weight parameters for the average longitudinal acceleration, the average following distance, and the maximum value of the product of the steering wheel angle and the vehicle speed in the driving style feature sample data.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.