Decision tree model-based novice driver potential danger predictive ability intervention method and device and storage medium
Through the method based on the decision tree model, the accident video features are sorted out, the video library is generated, the decision tree model is trained, and the dangerous state of novice drivers is identified, which solves the problem of difficult identification of potential hazard prediction ability for novice drivers in the existing technology, and realizes the problem of novice drivers being difficult to identify potential hazards. More effective behavioral intervention improves the risk prediction ability and accident prevention effects of novice drivers.
Patent Information
- Application Number
- CN202411065866.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-29
AI Technical Summary
The existing technology cannot effectively identify the potential hazard prediction ability of novice drivers, resulting in poor behavioral intervention effects and the inability to scientifically and reasonably screen out key clues related to hazard prediction.
Using a decision tree model-based method, by sorting out clue feature sets in accident videos, building video libraries, generating driver and scene features, training decision tree models, identifying drivers' dangerous states, and generating intervention project feature sets to achieve targeting Sexual intervention.
The representativeness of the training sample of novice drivers' hazard prediction ability is improved, the cost of model training is reduced, and the binary annotation of complex data is realized by designing specific indicator characteristics, avoiding resource waste, and improving intervention effect.
Smart Images

Figure CN119047907A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic safety, and in particular to a method, device and storage medium for intervening in the potential danger prediction ability of a novice driver based on a decision tree model. Background Art
[0002] Novice drivers lack driving experience and have poor adaptability and coordination between cars, roads and the environment, so they are at higher risk of collision. How to scientifically and rationally identify high-risk novice drivers and intervene in their behavior has always been a common problem worldwide.
[0003] Danger prediction refers to the ability of a driver to identify potential dangers on the surrounding roads. Many studies have shown that the hazard prediction test is an effective means of prospectively predicting the collision risk of novice drivers. The results of the study also confirmed that the implementation of this test can effectively reduce the local traffic accident rate. Although some novice drivers can quickly learn basic car operation skills, the high-level cognitive skill of hazard prediction requires a long period of experience accumulation in the natural state. Studies have shown that behavioral intervention can accelerate this process.
[0004] Therefore, at this stage, in order to reduce the harm of novice drivers to society and themselves, designing efficient and reasonable behavioral intervention measures to effectively improve their ability to predict danger is an effective way to reduce traffic accidents. However, in the existing technology, intervention measures are generally designed blindly, and the key clues related to danger prediction cannot be screened out, resulting in poor results of this intervention process. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device and storage medium for intervening in the potential danger prediction ability of a novice driver based on a decision tree model.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model, comprising:
[0008] Step S1: According to the existing real accident videos, a feature set of accident clues is obtained;
[0009] Step S2: Based on the obtained accident clue feature set, a video library for testing the novice driver's ability to predict potential dangers is prepared, wherein the videos in the video library cover all clue features in the accident clue feature set, and a single video includes at least one clue feature;
[0010] Step S3: Obtain basic information of all novice drivers to be tested and generate driver characteristics;
[0011] Step S4: testing each sample novice driver to be tested based on the video library to obtain test data, and generating scene features and index features based on the test data, wherein the index features include: time before first fixation on the clue area, number of fixations on the clue area, probability of fixation on the clue area, percentage of fixation time on the clue area, and dangerous reaction time;
[0012] Step S5: constructing training samples based on the obtained driver characteristics, scene characteristics, indicator characteristics and dangerous state recognition results, and training to obtain a decision tree model, wherein the dangerous state recognition result is a safe state or a warning state;
[0013] Step S6: Generate an intervention project feature set based on the trained decision tree model.
[0014] The step S1 includes: collecting accident videos containing potential dangers, and for these real accident scenes, taking the accident inducing conditions, specific inducing elements and possible triggered danger classification as accident clues, and summarizing the accident clue feature set.
[0015] The videos in the video library are produced by three-dimensional modeling software.
[0016] The mathematical expression of the time before the first fixation on the clue area is:
[0017]
[0018] Among them: TTFF is the time before the first gaze at the clue area, t3 is the moment of first gaze at the clue area, t1 is the moment when the clue area appears in the visual field, and t2 is the moment when the first gaze at the clue area is too late to prevent the accident;
[0019] The number of times the clue area is fixed is specifically: the number of times the clue area is fixed from the moment the clue area appears in the visual field to the moment of the accident;
[0020] The probability of fixating on the clue area is specifically: the ratio of the number of fixations on the clue area to the total number of fixations from the moment the clue area appears in the visual field to the moment of the accident;
[0021] The duration of fixation on the clue area is specifically: the ratio of the duration of fixation on the clue area to the total duration of fixation from the moment when the clue area appears in the visual field to the moment of the accident;
[0022] The mathematical expression of the dangerous reaction is:
[0023]
[0024] Among them: HRT is, t3′ is the time when the corresponding key response is made to the clue area of the video, and t2′ is the time when the corresponding key response is made but it is too late to prevent the accident.
[0025] If the clue area is not observed before the accident occurs, the time when the clue area is first observed but it is too late to prevent the accident is set as the time when the accident occurs;
[0026] If no corresponding key response is made before the accident occurs, the time when the corresponding key response is made for the clue area of the video is set as the time when the accident occurs;
[0027] The step S5 specifically includes:
[0028] Step S51: labeling the dangerous state recognition results based on the obtained indicator features, and constructing training samples based on the obtained dangerous state recognition result labels combined with driver characteristics and scene characteristics
[0029] Step S52: training a decision tree model based on the constructed training samples.
[0030] The labeling of the dangerous state identification result of each sample data includes:
[0031] For the time before the first gaze at the clue area and the dangerous reaction time, if the value is greater than 1, the dangerous state recognition result is marked as a warning state, otherwise, it is marked as a safe state;
[0032] The number of gazes on the clue area, the probability of gazes on the clue area, and the percentage of gaze duration on the clue area are clustered into two groups respectively. The dangerous state identification results of the group with a larger mean are marked as safe state, and the other group is marked as warning state.
[0033] The step S52 also includes pruning the trained decision tree model.
[0034] A device for intervening in the ability to predict potential dangers for novice drivers based on a decision tree model comprises a memory, a processor, and a program stored in the memory, wherein the method described above is implemented when the processor executes the program.
[0035] A storage medium stores a program, which implements the above method when executed.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] 1. By producing videos to obtain training samples, compared with actual videos, the content of the video library can be greatly enriched, and some accident clues can be obtained in a more single video, thereby improving the representativeness of subsequent samples and reducing the training cost of the model.
[0038] 2. By designing five indicator features, the safety status can be fully reflected, thereby mining the corresponding driver characteristics and scene characteristics.
[0039] 3. The safety status identification results of the three indicators are obtained by clustering, so as to realize the binary classification labeling of complex data and avoid the waste of resources caused by local over-optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the structure of the present invention. DETAILED DESCRIPTION
[0041] 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.
[0042] A method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model. Figure 1 As shown, including:
[0043] Step S1: Based on the existing real accident videos, an accident clue feature set is obtained, which specifically includes: collecting accident videos containing potential dangers, and for these real accident scenes, taking the accident inducing conditions, specific inducing elements and possible triggered danger classification as accident clues to obtain an accident clue feature set.
[0044] In this embodiment, for these real accidents, the human factors and objective factors that caused the accidents were analyzed, and the common characteristics were summarized. Finally, the inducing conditions, inducing elements and triggered danger classifications of the accidents were summarized as Table 1:
[0045] Table 1
[0046]
[0047]
[0048] Step S2: Based on the obtained accident clue feature set, a video library for testing the novice driver's ability to predict potential dangers is prepared, wherein the videos in the video library cover all clue features in the accident clue feature set, and a single video includes at least one clue feature;
[0049] The videos in the video library are produced using 3D modeling software, specifically, scene animations are produced using the 3D modeling software Blender.
[0050] Step S3: Obtain basic information of all novice drivers to be tested and generate driver characteristics;
[0051] In this embodiment, several novice drivers with a driving experience of less than 3 years or a driving mileage of less than 10,000 kilometers were screened, and their basic information was investigated to obtain driver characteristics. The driver characteristics include gender and personality characteristics. The characteristics of personality characteristics include conscientiousness, agreeableness, neuroticism, openness and extroversion.
[0052] Step S4: testing each sample novice driver to be tested based on the video library to obtain test data, and generating scene features and index features based on the test data, wherein the index features include: time before first fixation on the clue area, number of fixations on the clue area, probability of fixation on the clue area, percentage of fixation time on the clue area, and dangerous reaction time;
[0053] In this embodiment, the eye movement data of novices during each animation video is collected using Tobii Glasses 2 eye tracker equipment and Tobii Pro Controller software, and E-prime 3.0 is applied to collect the time data of novices' key response to obtain the above-mentioned indicator characteristics.
[0054] Among them, in this embodiment, the types of clue areas include environmental clue areas and behavioral clue areas. According to the time points when different clues appear and disappear in the field of vision, the start frame and end frame of each clue are set on Tobii Pro Lab, and their spatial range is marked. The software can automatically fill the interest area of the intermediate frame, and the shape and size will automatically make a smooth transition according to the size of the interest area of the start frame and the end frame. In order to make the data accurately reflect the visual behavior and characteristics of different types of drivers when observing dangerous situations, the driver's eye movement data in this experiment only extracts the eye movement data when passing through dangerous situations. The specific method is to record the coordinates of each situation danger trigger and end when designing the scene, and the time range is selected from the time when the clue appears in the field of vision to the occurrence of the collision, and select the corresponding reference object to facilitate the determination of the position when replaying the eye movement video recording, thereby improving the accuracy of the time node marking. After that, by replaying the eye movement video of each subject, the start time and end time of each dangerous situation are marked using the previously selected coordinates and reference objects.
[0055] The mathematical expression of the time before the first fixation on the cue area is:
[0056]
[0057] Wherein: TTFF is the time before the first gaze at the clue area, t3 is the moment of the first gaze at the clue area, t1 is the moment when the clue area appears in the field of vision, t2 is the moment when the first gaze at the clue area is too late to prevent the accident. If the clue area is not gazed at before the accident occurs, the moment when the first gaze at the clue area is too late to prevent the accident is set as the moment of the accident. If there are multiple prompt information of the same type in the scene, the starting point of the time window is set as the moment when the prompt information of this type is presented earliest. The time point of the first gaze at the clue area is marked as the moment when the driver observes any prompt information of the same type earliest. The total time from the driver's perception, judgment, braking to the braking effect is usually calculated as 2.5s to 3.0s, so 2.5s before the collision is selected as the warning value of the time before the first gaze at the clue area. The lower the value of the driver's first gaze time, the earlier the clue is discovered, which helps to respond in time. On the contrary, if the value of the driver's first gaze time exceeds 1, it means that the driver gazed at the clue area too late and it is difficult to prevent the occurrence of a collision accident.
[0058] The number of fixations on the clue area is specifically: the number of fixations on the clue area from the moment the clue area appears in the field of vision to the moment of the accident. On the one hand, the number of fixations can reflect the driver's interest in the clue area; on the other hand, the number of fixations can also reflect the driver's cognition and processing efficiency of the clue area. When processing complex information or solving problems, drivers often obtain more detailed information through multiple fixations.
[0059] The probability of fixation on the clue area is specifically: the ratio of the number of fixations on the clue area to the total number of fixations from the moment the clue area appears in the visual field to the moment of the accident. The calculation result of the fixation probability is a relative ratio. This indicator is used to evaluate the distribution and preference of visual attention from a spatial perspective.
[0060] The duration of fixation on the clue area is specifically defined as the ratio of the duration of fixation on the clue area to the total duration of fixation from the moment when the clue area appears in the visual field to the moment of the accident. This indicator is used to evaluate the distribution and preference of the driver's visual attention from a temporal perspective.
[0061] The mathematical expression of dangerous reaction time is:
[0062]
[0063] Wherein: HRT is, t3′ is the moment when the corresponding key response is made to the clue area of the video, t2′ is the moment when the corresponding key response is made but it is too late to prevent the accident. If the corresponding key response is not made before the accident occurs, the moment when the corresponding key response is made to the clue area of the video is set as the moment of the accident. The total time from the driver's perception, judgment, braking to the braking effect is usually calculated as 2.5s to 3.0s, among which the judgment time is 1.5 seconds and the action time is 1 second. Therefore, this paper selects 1 second before the collision as the warning value of the key time. The value of the driver's dangerous reaction is low, indicating that the driver has a higher safety advantage in actual driving and has enough time to choose actions to deal with potential road hazards. On the contrary, if the value of the driver's dangerous reaction exceeds 1, it means that the driver spends too much time in the whole process of potential danger prediction and it is difficult to avoid the occurrence of collision accidents.
[0064] Step S5: constructing training samples based on the obtained personality characteristics, scene characteristics, indicator characteristics and dangerous state recognition results, and training to obtain a decision tree model, wherein the dangerous state recognition result is a safe state or a warning state;
[0065] Step S5 specifically includes:
[0066] Step S51: labeling the dangerous state recognition results based on the obtained indicator features, and constructing training samples based on the obtained dangerous state recognition result labels combined with personality characteristics and scene characteristics
[0067] In this embodiment, the independent variables of the decision tree model are selected and screened, and the influencing factors are divided into two categories: driver characteristics and scene characteristics. Considering that the visual behavior data is for a single clue and the danger reaction data is for a single scene, the influencing factors are selected respectively. For the visual behavior decision tree model, in the driver characteristics, gender and personality traits (conscientiousness, agreeableness, neuroticism, openness, and extroversion) are selected as influencing factors. In the scene characteristics, the direction, dynamic and static attributes, presentation method, and quantity of the prompt information, the relationship between the prompt information and the danger, the color contrast with the surrounding environment, the attributes and visibility of the danger source, the road type, and the number of other interferences are selected as influencing factors. For the danger reaction decision tree model, in the driver characteristics, gender and personality traits (conscientiousness, agreeableness, neuroticism, openness, and extroversion) are selected as influencing factors. In the scene characteristics, the number of environmental prompt information, the number of behavioral prompt information, the visibility of the danger source, the attributes of the danger source, the number of interfering traffic participants, and the road type are selected as influencing factors.
[0068] Table 1
[0069]
[0070]
[0071] The complex continuous data in the independent variables are converted into discrete feature values. In order to ensure that there are enough data in different boxes, the equal frequency binning method is used to bin the two sets of data, personality traits and the color contrast between prompt information and the surrounding environment. Among them, the classification information of the independent variables of the visual behavior decision tree model is shown in Table 2. Finally, the classification information of the independent variables of the danger response decision tree model is shown in Table 3:
[0072] Table 3
[0073]
[0074] Then, the bin boundary values of the dependent variables of the decision tree model are formulated. For the time before the first gaze and the dangerous reaction time, when the value is greater than 1, it means that it is difficult for the driver to prevent the accident. Since the formulated value itself has a demarcation feature, 1 is set as the bin boundary value of these two groups of data; for other dependent variables, K-MEANS cluster analysis is used to bin them to ensure that there is a clear distinction between different states, so as to provide clear goals for training and intervention. For the number of gazes, if the value is small, it means that the novice does not pay enough attention to the prompt information. Therefore, the set with relatively small cluster center values is defined as a warning state, and the one with a higher value is defined as a safe state. For the gaze probability and the percentage of gaze duration, the lower value means that the novice has relatively less spatiotemporal allocation of gaze resources in this area. Therefore, the set with a lower cluster center value is defined as a warning state, and the set with a higher value is defined as a normal state. The specific classification information of each dependent variable is shown in Table 4:
[0075] Table 4
[0076]
[0077]
[0078] Step S52: training a decision tree model based on the constructed training samples.
[0079] Then, the decision tree is constructed and pruned. Before model training, the training parameters of the model are set. The parameters used mainly include: tree criterion, maximum tree depth, minimum number of samples required on leaf nodes, and minimum number of samples required to split internal nodes.
[0080] Set Criterion to the Gini index or information gain, adjust the range of other parameters multiple times and randomly search for the optimal hyperparameters within this range, and find the optimal hyperparameter combination through cross-validation, so that the decision tree model can achieve good performance on both the training set and the test set;
[0081] The high-dimensional decision tree is subjected to dimensionality reduction, features with feature importance values less than 0.05 are removed, and the data set is converted into a low-dimensional space to obtain results with stronger interpretability and visualization.
[0082] Step S6: Generate an intervention project feature set based on the trained decision tree model.
[0083] The decision paths of various indicators for novice drivers are output, and the indicator information, driver characteristics, and scenario characteristics in the warning state are organized into a feature set for intervention projects, so as to facilitate the subsequent batch generation of the scenario set required for intervention based on this rule, and screen out novice drivers with corresponding characteristics for targeted training and intervention.
[0084] In this embodiment, a typical scenario library consisting of 25 scenarios is designed according to the accident clue feature table. The specific scenario information is shown in Table 4. 28 novice drivers are selected for information investigation and ability test, and their eye movement behavior data and danger reaction time data are collected. Then, a decision tree model is constructed to output its decision path. The final intervention project feature set is shown in Table 5.
[0085] Table 5
[0086]
[0087]
[0088]
[0089]
[0090] If the above functions are implemented in the form of software functional units and sold or used as independent products, they 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, etc., which can store program code.
Claims
1. A method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model, characterized in that: include: Step S1: According to the existing real accident videos, a feature set of accident clues is obtained; Step S2: Based on the obtained accident clue feature set, a video library for testing the novice driver's ability to predict potential dangers is prepared, wherein the videos in the video library cover all clue features in the accident clue feature set, and a single video includes at least one clue feature; Step S3: Obtain basic information of all novice drivers to be tested and generate driver characteristics; Step S4: testing each sample novice driver to be tested based on the video library to obtain test data, and generating scene features and index features based on the test data, wherein the index features include: time before first fixation on the clue area, number of fixations on the clue area, probability of fixation on the clue area, percentage of fixation time on the clue area, and dangerous reaction time; Step S5: constructing training samples based on the obtained driver characteristics, scene characteristics, indicator characteristics and dangerous state recognition results, and training to obtain a decision tree model, wherein the dangerous state recognition result is a safe state or a warning state; Step S6: Generate an intervention project feature set based on the trained decision tree model.
2. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 1, characterized in that: The step S1 includes: collecting accident videos containing potential dangers, and for these real accident scenes, taking the accident inducing conditions, specific inducing elements and possible triggered danger classification as accident clues, and summarizing the accident clue feature set.
3. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 1, characterized in that: The videos in the video library are produced by three-dimensional modeling software.
4. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 1, characterized in that: The mathematical expression of the time before the first fixation on the clue area is: Among them: TTFF is the time before the first gaze at the clue area, t3 is the moment of first gaze at the clue area, t1 is the moment when the clue area appears in the visual field, and t2 is the moment when the first gaze at the clue area is too late to prevent the accident; The number of times the clue area is fixed is specifically: the number of times the clue area is fixed from the moment the clue area appears in the visual field to the moment of the accident; The probability of fixating on the clue area is specifically: the ratio of the number of fixations on the clue area to the total number of fixations from the moment the clue area appears in the visual field to the moment of the accident; The duration of fixation on the clue area is specifically: the ratio of the duration of fixation on the clue area to the total duration of fixation from the moment when the clue area appears in the visual field to the moment of the accident; The mathematical expression of the dangerous reaction is: Among them: HRT is, t3′ is the time when the corresponding key response is made to the clue area of the video, and t2′ is the time when the corresponding key response is made but it is too late to prevent the accident.
5. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 4 is characterized in that: If the clue area is not observed before the accident occurs, the time when the clue area is first observed but it is too late to prevent the accident is set as the time when the accident occurs; If no corresponding key response is made before the accident occurs, the time when the corresponding key response is made for the clue area of the video is set as the time when the accident occurs.
6. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 4 is characterized in that: The step S5 specifically includes: Step S51: labeling the dangerous state recognition results based on the obtained indicator features, and constructing training samples based on the obtained dangerous state recognition result labels combined with driver characteristics and scene characteristics Step S52: training a decision tree model based on the constructed training samples.
7. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 1, characterized in that: The labeling of the dangerous state identification result of each sample data includes: For the time before the first gaze at the clue area and the dangerous reaction time, if the value is greater than 1, the dangerous state recognition result is marked as a warning state, otherwise, it is marked as a safe state; The number of gazes on the clue area, the probability of gazes on the clue area, and the percentage of gaze duration on the clue area are clustered into two groups respectively. The dangerous state identification results of the group with a larger mean are marked as safe state, and the other group is marked as warning state.
8. The method for intervening in the ability to predict potential dangers of novice drivers based on a decision tree model according to claim 1, characterized in that: The step S52 also includes pruning the trained decision tree model.
9. A device for intervening in the ability to predict potential dangers for novice drivers based on a decision tree model, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 8 is implemented.
