Vehicle control method and device based on driving style recognition and medium

Through the fine tree classifier and the stochastic hybrid automatic machine sub-model, the driving style is identified, the vehicle control instructions are generated, and through dynamic verification, the difficulty of the unmanned driving system in identifying and responding to human driving behaviors in mixed traffic scenarios is solved, and the automatic driving system is improved. security and real-time.

CN118770239APending Publication Date: 2024-10-15SHANGHAI NORMAL UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410919082.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult for existing driverless systems to accurately identify and respond to human driving behaviors in mixed traffic scenarios, resulting in insufficient safety and real-time performance, especially during interactions with human-driving vehicles in complex environments.

Method used

A driving style recognition model based on a fine tree classifier is used, combined with environmental perception data and a random hybrid automaton sub-model, to generate vehicle control instructions, which are dynamically verified through parameter comparison methods to ensure the accuracy and real-time performance of vehicle control.

Benefits of technology

It achieves rapid and accurate recognition of the driving styles of manual and unmanned vehicles and the generation of vehicle control instructions, ensuring safe operation and real-time response in complex environments, and improving the safety and interpretability of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118770239A_ABST
    Figure CN118770239A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle control method and device based on driving style recognition and a medium, and the method comprises the following steps: S1, obtaining time-space data of an unmanned vehicle in real time, inputting a driving style recognition model based on a fine tree classifier, and obtaining a driving style recognition result; s2, environment sensing data is obtained, the environment sensing data and the driving style recognition result are input into a driving state model together, a vehicle control instruction is generated, and the driving state model comprises a plurality of random hybrid automatic machine sub-models; and S3, acquiring safe driving standard data, dynamically verifying the generated vehicle control instruction through a parameter comparison method based on the verification result library, and controlling the unmanned vehicle based on the verified vehicle control instruction. Compared with the prior art, the method can ensure the accuracy and real-time performance of vehicle control under the coexisting mixed traffic flow of manual driving and unmanned driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent transportation technology, and in particular relates to a vehicle control method, device and medium based on driving style recognition. Background Art

[0002] Cyber ​​Physical Systems (CPS) is a multi-dimensional complex system that integrates computing, network and physical environment. It realizes real-time perception, dynamic control and information services of large engineering systems through the organic integration and deep collaboration of 3C technologies, namely computing, communication and control. The essence of CPS system is computing technology aimed at the integration of "man-machine-object" to achieve the extension of human control in time, space and other aspects. Human Cyber-Physical-Systems (HCPS) is an intelligent networked system with deeply integrated human, network and physical elements. On the basis of CPS, it focuses on the uncertain environment in which the system is located and the human factors in the environment.

[0003] The unmanned driving system is one of the typical application systems of HCPS. The unmanned vehicle is an autonomous vehicle that integrates perception, decision-making and control functions. The perception system replaces the human driver's vision, hearing, touch and other functions, integrates the massive traffic environment data collected by sensors such as cameras and radars, accurately identifies various traffic elements, and provides support for the decision-making system of the autonomous driving vehicle. In the mixed traffic scene of unmanned driving and manual driving, due to the large randomness of human driving behavior and driving environment, and some current unmanned driving designs are based on the mode setting of rule-based driving, in the process of interaction, the intelligent technology in the unmanned driving system has limited cognitive understanding ability for unknown environments and lacks certain adaptability, which may lead to conflicts between unmanned driving and manual driving. How to ensure intelligent operation in uncertain and complex environments is still a challenge faced by the current design of unmanned driving systems. In order to better quantify the uncertainty and risk level of driving scenarios to improve the safety of autonomous driving systems, the paper Uncertainty in deep learning (Gal Y., University of Cambridge, 2016) proposed a method to quantify the uncertainty of deep neural networks using Bayesian methods, and the paper Compositional falsification of cyber physical systems with machine learning components (Dreossi T, Donzé A, Seshia S A., Journal of Automated Reasoning, 2019, 63 (4): 10311053) predicts the future behavior of the target vehicle through a hidden Markov model. However, in most cases, the autonomous driving system can only observe the surrounding vehicles for a few seconds, so complex models that require a long observation period cannot be used. The above methods cannot meet the requirements of accuracy and timeliness. Therefore, it is necessary to design a driving style classification method to respond to the driving environment under mixed traffic flow where manual driving and unmanned driving coexist in real time to ensure the safety of the unmanned driving system. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a vehicle control method, device and medium method, device and medium based on driving style recognition, so as to respond in real time to the driving environment in mixed traffic flow where manual driving and unmanned driving coexist, and ensure the accuracy and real-time performance of vehicle control.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] The present invention provides a vehicle control method based on driving style recognition, comprising the following steps:

[0007] S1. Real-time acquisition of spatiotemporal data of unmanned vehicles, including driving data of the unmanned vehicles themselves and relationship data between the unmanned vehicles and surrounding manually driven vehicles, input into a driving style recognition model based on a fine tree classifier, and obtain driving style recognition results;

[0008] S2, acquiring environmental perception data, and inputting the data together with the driving style recognition result into a driving state model to generate a vehicle control instruction, wherein the driving state model includes a plurality of random hybrid automaton sub-models;

[0009] S3. Obtain safe driving standard data, dynamically verify the generated vehicle control instructions through parameter comparison method based on the verification result library, and control the unmanned vehicle based on the verified vehicle control instructions.

[0010] Furthermore, in step S1, the driving style recognition model based on the fine tree classifier is trained in the following manner:

[0011] S101, obtaining spatiotemporal data of unmanned vehicles, performing annotation, preprocessing and feature extraction, and constructing a data set;

[0012] S102, building a driving style recognition model based on a fine tree classifier;

[0013] S103, dividing the data set into a training set and a test set, performing parallel training on the driving style recognition model based on the fine tree classifier based on the training set, evaluating the model based on the test set, and further optimizing the model structure and model parameters.

[0014] Furthermore, in step S101, features are extracted by using a PCA dimensionality reduction algorithm.

[0015] Furthermore, in step S103, the model is evaluated according to one or more of a scatter plot, a ROC curve and a confusion matrix.

[0016] Furthermore, in step S2, the driving state model includes a combination sub-model, a start sub-model, a risk sub-model and a manual driving sub-model, wherein the combination sub-model is used to coordinate the sub-models, the start sub-model is used for initialization, the risk sub-model is used to evaluate the driving environment risk according to the environmental perception data and the driving style recognition result, and the manual driving sub-model is used to calculate the vehicle control instructions according to the output of the risk sub-model.

[0017] Furthermore, in step S3, the verification result library is constructed in the following manner:

[0018] The driving state model is obtained, and according to the verification attributes, the statistical model detection tool UPPAAL-SMC is used to perform verification, and the verification result library is constructed based on the verification results.

[0019] Furthermore, the verification attribute is obtained by formally describing the safety requirements in different driving scenarios.

[0020] Furthermore, in step S302, when the statistical model checking tool UPPAAL-SMC is used for verification, the property to be verified is defined by the PCTL formula.

[0021] The present invention also provides an electronic device, comprising a memory, a processor, and a program stored in the memory, wherein the processor implements the above method when executing the program.

[0022] The present invention also provides a computer-readable storage medium on which a computer program is stored, and the program implements the above method when executed by a processor.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] 1. The present invention obtains the spatiotemporal data of unmanned vehicles in real time, inputs a driving style recognition model based on a fine tree classifier, obtains a driving style recognition result, and then inputs the driving style recognition result and the environmental perception data into a driving state model to generate a vehicle control instruction. Next, the safe driving standard data is obtained, and based on a verification result library, the generated vehicle control instruction is dynamically verified by a parameter comparison method, and the unmanned vehicle is controlled based on the verified vehicle control instruction. Among them, the driving style recognition model based on the fine tree classifier has the ability to pass multi-level discrimination, has low computational complexity, and can accurately and quickly identify the driving style. The driving state model includes a plurality of random hybrid automaton sub-models, has strong interpretability, scalability and flexibility, and can quickly generate effective vehicle control instructions based on the driving style. The vehicle control instructions can be quickly verified by a parameter comparison method, and the driving environment under mixed traffic flow where manual driving and unmanned driving coexist can be responded to in real time, ensuring the accuracy and real-time performance of vehicle control.

[0025] 2. The present invention uses the statistical model checking tool UPPAAL-SMC to verify the driving state model. UPPAAL-SMC can efficiently verify large and complex systems and can evaluate model performance by collecting and analyzing a large amount of simulation data, thereby obtaining more reliable and accurate verification results. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of the method of the present invention;

[0027] Figure 2Schematic diagram of driving style recognition model based on fine tree classifier;

[0028] Figure 3 This is a schematic diagram of the driving style classification results, where the horizontal axis represents speed and the vertical axis represents absolute distance;

[0029] Figure 4 This is a diagram of the confusion matrix;

[0030] Figure 5 is the parallel coordinate diagram of the classification results, where the abscissa represents the sample attributes, SpeedAC, RelativeDistance, RelativeSpeed, SpeedHuman, OverSpeedPercentage, Weather, Time, Lightright, BrakeTime and OtherWrongBehavior represent vehicle speed, relative distance, relative vehicle speed, manual driving speed, speeding percentage, weather, time, light, braking time and other wrong behaviors respectively, Aggressive-Correct, Aggressive-Incorrect, Danger-Correct, Danger-Incorrect, Normal-Correct and Normal-Incorrect represent aggressive prediction correct, aggressive prediction wrong, dangerous prediction correct, dangerous prediction wrong, normal prediction correct and normal prediction wrong respectively;

[0031] Figure 6 It is a schematic diagram of ROC curve;

[0032] Figure 7 A schematic diagram of a dynamic verification method combining offline and online verification;

[0033] Figure 8 This is the verification result of the property P1;

[0034] Fig. 9 is the probability density distribution of reaching CHANGE_LANE within 12 time units;

[0035] Fig.10 The probability density distribution and cumulative distribution of the manual vehicle allowing the unmanned vehicle to pass within 20 time units, where (10a) is the density distribution and (10b) is the cumulative distribution;

[0036] Fig.11 The probability density distribution and cumulative distribution of the driverless vehicle completing lane change within 20 time units, where (11a) is the density distribution and (11b) is the cumulative distribution. DETAILED DESCRIPTION

[0037] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0038] Example:

[0039] This embodiment provides a vehicle control method based on driving style recognition, such as Figure 1 As shown, the following steps are included:

[0040] S1. Acquire the spatiotemporal data of the unmanned vehicle in real time, including the driving data of the unmanned vehicle itself and the relationship data between the unmanned vehicle and surrounding manually driven vehicles, input the driving style recognition model based on the fine tree classifier, and obtain the driving style recognition result.

[0041] Unmanned vehicles face a lot of uncertainties during driving. In the process of interacting with manually driven vehicles, the driving behavior of human drivers is highly subjective. Therefore, from the perspective of unmanned vehicles, the driver's behavior state has certain uncertainty. For example, facing the same driving environment, different drivers may have different driving behaviors. If the unmanned vehicle cannot accurately determine the driving behavior of the surrounding human drivers in a timely manner, it will inevitably lead to the vehicle entering an unsafe state. Therefore, it is necessary to analyze the driving behavior of surrounding vehicles through a driving style recognition model based on a fine tree classifier.

[0042] like Figure 2 As shown in the figure, the driving style recognition model based on the fine tree classifier is divided into three parts: data preprocessing, offline training and online testing. The data preprocessing part is used to extract feature data and form a feature data set of driving behavior. In the data preprocessing stage, after the labeled unmanned vehicle data (including the driving data of the unmanned vehicle itself and the relationship data between the unmanned vehicle and the surrounding manually driven vehicles) is input into the sample selection preprocessor, the feature sample memory will store the feature samples and enter the offline training stage at the same time. In the offline training stage, the data set is divided into a training set and a test set. The driving style recognition model based on the fine tree classifier is trained based on the training set, and the model is evaluated based on the test set to further optimize the model structure and model parameters.

[0043] In the offline training phase, the probability of each category is estimated first, then the probability of each attribute value under each category condition is estimated p(y), and the probability p(x|y)P(y) of each attribute combination belonging to each category is calculated, and finally the maximum probability value p(x|y)P(y) is selected as the inference result output of the conditional data. In the online testing phase, the spatiotemporal data collected in real time is input into the trained classification model for model evaluation, and finally the behavior prediction results are output, including three categories: aggressive, dangerous, and normal.

[0044] The offline training process of the classifier is as follows:

[0045] 1) Taking known input data (observations or examples) and known responses to the data (labels or categories) as input as a dataset;

[0046] 2) Select the features to be trained or use PCA for dimensionality reduction. By default, no dimensionality reduction is performed and all features are used.

[0047] 3) Set the misclassification cost, that is, the category accuracy priority, which categories must be classified correctly, and which categories can accept a certain error range;

[0048] 4) Select a training model and configure model parameters;

[0049] 5) Input sample data to train the model. Multiple classifier models can be trained simultaneously by parallel training to improve training efficiency. The trained model can generate predictions for the response to new data.

[0050] 6) Classifier effect evaluation results include scatter plots, confusion matrices, ROC curves, etc.;

[0051] 7) Export the training results and model files to prepare for the subsequent online training.

[0052] like Figure 3 As shown in the figure, the scatter plot shows the classification of different driving behaviors, and points of different colors represent different classification results. In artificial intelligence algorithms, confusion matrix is ​​a visualization tool, especially for supervised learning. Figure 4 As shown in , the confusion matrix represents the distribution of different categories in the true class and the predicted class. It is calculated by comparing the position and classification of each measured pixel with the corresponding position and classification image in the classification image, thereby characterizing the classification accuracy of a classifier to verify the validity of the classification result. Parallel coordinates are a way to visualize data, such as Figure 5As shown in the figure, each mark on the horizontal axis represents an attribute in the sample, such as vehicle speed, relative distance, relative speed, etc.; the vertical axis represents the value of the attribute in each sample, and a broken line connected together represents the sample. Blue, red, and yellow represent aggressive driving behavior, dangerous driving behavior, and normal driving behavior, respectively. A straight line indicates that the classification result is consistent with the pre-classification result of the sample at the time of input, and a dotted line indicates that the classification result of the model is inconsistent with the pre-classification result of the sample at the time of input.

[0053] ROC curve Figure 6 As shown in the figure, the horizontal axis represents the false positive rate, that is, the proportion of samples predicted to be positive but actually negative to all negative samples, and the vertical axis represents the true positive rate, that is, the proportion of samples predicted to be positive and actually positive to all positive samples. Table 1 shows the offline training results. The accuracy of each model after training and other related information will be displayed. The training methods mainly include decision trees, fine trees, support vector machines, nearest neighbor KNN and combination classifiers. The final results show that the fine tree classifier has a higher training accuracy. Export the offline trained model to the workspace so that the model can be used to test new data.

[0054] Table 1 Offline training results

[0055]

[0056] S2. Acquire environmental perception data, and input the data together with the driving style recognition result into a driving state model to generate a vehicle control instruction. The driving state model includes a plurality of random hybrid automaton sub-models.

[0057] Environmental perception data is obtained from sensors through the intelligent agent in the environmental perception model and can be divided into the following three types: 1) Self-driving data and relationship data with vehicles driven by surrounding people, mainly including the speed and acceleration of the autonomous driving vehicle, the relative speed and relative distance with surrounding vehicles, etc.; 2) Driving data of vehicles driven by surrounding people, mainly including whether the headlights are used correctly, the number of brakes, and whether there are other irregular driving behaviors, etc.; 3) Information data in the surrounding environment that is not related to the vehicle, mainly including weather (for example: rainy days, foggy days, sunny days, etc.), time (for example: daytime, night, morning and evening rush hours, etc.), road conditions (for example: highways, urban roads, rural roads, etc.), etc.

[0058] The driving state model NSHA includes multiple SHA sub-models, namely the composite sub-model Composite, the start sub-model Start, the risk sub-model EnvRisk and the human driving sub-model HumanDrive. The composite sub-model is used to coordinate the sub-models, the start sub-model is used for initialization, the risk sub-model is used to evaluate the driving environment risk based on the environmental perception data and driving style recognition results, and the human driving sub-model is used to calculate the vehicle control instructions based on the output of the risk sub-model. Each SHA sub-model mainly includes three states: STOP, STRAIGHT, CHANGE_LANE and two Urgent states. In the Urgent state, time does not elapse and it will jump to the next state.

[0059] S3. Obtain safe driving standard data, dynamically verify the generated vehicle control instructions through parameter comparison method based on the verification result library, and control the unmanned vehicle based on the verified vehicle control instructions.

[0060] Safe driving standard data refers to maintaining safe automobile driving standards, for example, on a highway, the speed limit is 100km / h, the braking distance is 200m, on an ordinary road, the speed limit is 60km / h, and the braking distance is 50m.

[0061] This embodiment is inspired by the offline training and online learning process in the machine learning process. It adopts a method that combines offline verification and online verification. By comparing parameters, the verification results can be quickly obtained, thereby achieving a dynamic and real-time verification effect, thereby ensuring the safe operation of the system in a complex environment. Figure 7 As shown in the figure, during the offline verification process, the statistical model checking tool UPPAAL-SMC accepts verification attributes and the driving state model NSHA, where the verification attributes are obtained by formally describing the safety requirements under different driving scenarios, and the NSHA model is jointly modeled by the environmental perception data and the driving style recognition obtained in the offline training phase, and a verification result library is built based on the verification results.

[0062] During the online verification process, data related to new scenarios are continuously added. By comparing relevant safe driving standard data and querying the verification results obtained during the offline verification process in the verification result library, timely feedback can be given to the system to achieve real-time dynamic verification effects, which can respond to complex, changeable and uncertain driving environments intelligently, safely and promptly.

[0063] When verifying, we first need to define the properties to be verified in combination with the PCTL formula, as shown in Table 2. Among them, P1 represents the probability of reaching CHANGE_LANE in the composite state within 100 time units, such as Figure 8As shown, after 252 simulations, the obtained probability interval is [0.759819, 0.859624], with a confidence level of 0.95. Fig. 9 This is the probability distribution diagram of reaching CHANGE_LANE within 12 time units. Purple represents the upper limit of probability, dark blue represents the average probability, and light blue represents the lower limit of probability. According to the calculated probability interval of the vehicle changing lanes under this condition, the autonomous driving vehicle can be assisted in judging whether to change lanes.

[0064] P2 represents the probability that a human-driven vehicle allows an unmanned vehicle to pass within 20 time units. The probability distribution diagram is shown in Fig.10 As shown in (10a), the cumulative probability distribution is Fig.10 As shown in (10b), based on the analysis of the vehicle's surrounding environment, the vehicle determines the driving style of the drivers of the surrounding manually driven vehicles, thereby assisting in determining the probability distribution of successful lane change during the lane change process. The autonomous driving vehicle decides whether to change lanes based on the obtained results.

[0065] P3 represents the probability that the driverless vehicle completes the lane change within 20 time units. The probability distribution diagram is as follows: Fig.11 As shown in (11a), the cumulative probability distribution is Fig.11 As shown in (11b), the red line indicates that the driving style of the manually driven vehicle is classified as Danger, the blue line indicates that the driving style is Aggressive, and the green line indicates that the driving style is Normal. Judging the different driving styles of the drivers of the surrounding vehicles can assist the autonomous driving vehicle in adopting different driving strategies during the lane change process.

[0066] Table 2 Verification properties list

[0067]

[0068] Finally, the unmanned driving sub-model Autodrive is used to control the vehicle through verified vehicle control commands.

[0069] If the above method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0070] The above description of the embodiments is to facilitate the understanding and use of the invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the present invention should be within the scope of protection of the present invention.

Claims

1. A vehicle control method based on driving style recognition, It is characterized in that The following steps are involved: S1. Real-time acquisition of spatiotemporal data of unmanned vehicles, including driving data of the unmanned vehicles themselves and relationship data between the unmanned vehicles and surrounding manually driven vehicles, input into a driving style recognition model based on a fine tree classifier, and obtain driving style recognition results; S2, acquiring environmental perception data, and inputting the data together with the driving style recognition result into a driving state model to generate a vehicle control instruction, wherein the driving state model includes a plurality of random hybrid automaton sub-models; S3. Obtain safe driving standard data, dynamically verify the generated vehicle control instructions through parameter comparison method based on the verification result library, and control the unmanned vehicle based on the verified vehicle control instructions.

2. A vehicle control method based on driving style recognition according to claim 1, It is characterized in that In step S1, the driving style recognition model based on the fine tree classifier is trained in the following manner: S101, obtaining spatiotemporal data of unmanned vehicles, performing annotation, preprocessing and feature extraction, and constructing a data set; S102, building a driving style recognition model based on a fine tree classifier; S103, dividing the data set into a training set and a test set, performing parallel training on the driving style recognition model based on the fine tree classifier based on the training set, evaluating the model based on the test set, and further optimizing the model structure and model parameters.

3. A vehicle control method based on driving style recognition according to claim 2, It is characterized in that In step S101, features are extracted using a PCA dimensionality reduction algorithm.

4. The vehicle control method based on driving style recognition according to claim 2, It is characterized in that In step S103, the model is evaluated according to one or more of a scatter plot, a ROC curve, and a confusion matrix.

5. The vehicle control method based on driving style recognition according to claim 1, It is characterized in that In step S2, the driving state model includes a combination sub-model, a start sub-model, a risk sub-model and a manual driving sub-model, wherein the combination sub-model is used to coordinate the sub-models, the start sub-model is used for initialization, the risk sub-model is used to evaluate the driving environment risk according to the environmental perception data and the driving style recognition result, and the manual driving sub-model is used to calculate the vehicle control instructions according to the output of the risk sub-model.

6. The vehicle control method based on driving style recognition according to claim 1, It is characterized in that In step S3, the verification result library is constructed in the following manner: The driving state model is obtained, and according to the verification attributes, the statistical model detection tool UPPAAL-SMC is used to perform verification, and the verification result library is constructed based on the verification results.

7. A vehicle control method based on driving style recognition according to claim 6, It is characterized in that The verification attributes are obtained by formally describing the safety requirements in different driving scenarios.

8. The vehicle control method based on driving style recognition according to claim 6, It is characterized in that In step S302, when the statistical model checking tool UPPAAL-SMC is used for verification, the property to be verified is defined by the PCTL formula.

9. An electronic device comprising a memory, a processor, and a program stored in the memory, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.

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