Tunnel driving risk level assessment method and system based on vehicle bus data

Driving risk assessment is performed on vehicle bus data through the sliding window method and the latent Dirichlet LDA model, which solves the flexibility and accuracy problems of driving risk assessment in the existing technology and achieves efficient identification and assessment of driving risks.

CN118289006BActive Publication Date: 2024-10-11ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719441.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-11
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

The existing technology in driving risk assessment is time-consuming and labor-intensive in manual assessment, the threshold setting is highly subjective and not flexible and accurate enough, and it is difficult to process high-dimensional driving behavior data, making it difficult to accurately identify driving risk levels.

Method used

The sliding window method based on vehicle bus data is used to extract driving risk characteristic indexes, the latent Dirichlet LDA model is used to analyze risk types, and driving risk assessment is carried out through characteristic index encoding and word sequences.

Benefits of technology

It achieves more accurate and flexible driving risk assessment, can identify the driver's potential semantic probability information, is suitable for high-dimensional data and very large sample sets, and improves the accuracy and efficiency of driving risk identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118289006B_ABST
    Figure CN118289006B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for assessing the risk level of tunnel driving based on vehicle bus data. The method uses the CAN bus data collected during driving in the tunnel, designs and extracts the driving risk characteristic feature indicators that reflect the driver's driving behavior through the sliding window method, writes a feature code book to symbolize the extracted sequence features, and then randomly samples from the entire sample. The Latent Dirichlet (LDA) topic model is used to assess the driving risk level based on the sampled symbolized data. The model training method is to obtain the optimal number of risk levels and perform driving risk analysis on the driving data in the entire sample by evaluating the perplexity and consistency scores. The method helps to accurately and intuitively identify the risk level of the vehicle driving status in the tunnel, and provides support for risk management and active early warning of the tunnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of tunnel traffic safety research, and relates to a tunnel driving risk level assessment method and system, and in particular to a tunnel driving risk level assessment method and system based on vehicle bus data. Background Art

[0002] Real-time assessment and short-term warning of driving risks are essential for proactively intervening in traffic and enhancing road safety. Several research reports indicate that approximately 90% of light vehicle collisions involve the same type of human error, such as impaired status, unintentional errors, and dangerous driving behaviors. If accidents cannot be identified quickly, drivers and passengers will be in great danger, and tunnel sections are key sections where accidents frequently occur. Real-time assessment and warning of tunnel driving risks can, on the one hand, remind drivers in time to avoid tunnel accidents, and on the other hand, improve the efficiency of medical response, which can significantly reduce the number of deaths. In addition, timely handling of accidents can also reduce delays and traffic congestion, which is conducive to tunnel traffic. Therefore, it is necessary to improve advanced driver assistance systems through more efficient driving risk assessment methods to improve the level of tunnel traffic safety.

[0003] Previously, the analysis of driving risk levels was mainly done through manual assessment or setting specific thresholds, but the former often takes a lot of time and effort, and the latter threshold setting is highly subjective and has no unified standard, so it is often not flexible and accurate enough. At present, there are some studies on risk level analysis based on driving behavior data, most of which are based on simple clustering techniques to classify different behaviors, but clustering algorithms often have difficulty processing high-dimensional data and need to be further combined with dimensionality reduction algorithms or extract some new indicators that reflect driving risk levels. This conversion often reduces the model's understanding of the original driving data and makes it difficult to discover the potential information of the data. Therefore, using semantic models to study driving risks can start from the perspective of driver intentions, thereby achieving a driving risk definition that is more in line with actual scenarios. Summary of the invention

[0004] In view of the above problems, the present invention provides a method and system for assessing the risk level of tunnel driving based on vehicle bus data.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A method for assessing tunnel driving risk level based on vehicle bus data comprises the following steps:

[0007] S1: Obtain bus data during vehicle driving in the tunnel, extract driving risk characteristic feature indicators based on the bus data using a sliding window method, and obtain several driving risk units;

[0008] S2: compile a feature index codebook according to the characteristic index of driving risk characteristics, and obtain the word sequence of each driving risk unit according to the feature index codebook;

[0009] S3: The latent Dirichlet (LDA) model is used to analyze the risk type of driving risk units according to word sequences to evaluate the driving risk level.

[0010] Furthermore, in step S1, the bus data during the vehicle driving process includes five driving behavior characteristics, namely, steering wheel angle, steering wheel angle change rate, accelerator pedal opening, brake pedal opening and brake pedal change rate; each driving behavior characteristic has four driving risk characteristic characteristic indicators, namely, the average driving behavior characteristic within the time window, the standard deviation of the driving behavior characteristic within the time window, the maximum driving behavior characteristic within the time window, and the minimum driving behavior characteristic within the time window.

[0011] Furthermore, the driving risk characteristic feature indicators are extracted using a sliding window method based on the bus data, specifically: T1 is used as a sliding time window, T2 is used as a moving step, and the sliding time window method is used to extract driving risk characteristic feature indicators of five driving behavior characteristics in each time window, and each time window is used as a driving risk unit to obtain a plurality of driving risk units, each driving risk unit including 20 driving risk characteristic feature indicators.

[0012] Furthermore, the feature indicator codebook is compiled according to the driving risk characteristic feature indicator, specifically, the value of the driving risk characteristic feature indicator is divided into a plurality of ranges, each range corresponds to a word, and the feature indicator codebook is obtained.

[0013] Furthermore, the word sequence of the driving risk unit is expressed as:

[0014] d m = [ w m 1 , w m 2 , ……, w mn ]

[0015] in, The word sequence representing the mth driving risk unit, represents the nth word in the mth risk unit.

[0016] Furthermore, the training method of the latent Dirichlet LDA model is:

[0017] Randomly sample all word sequences to obtain a training set;

[0018] Build the LDA model and set the number of model iterations;

[0019] Set a series of risk topics k and divide the word sequence of the driving risk unit into k risk topics;

[0020] For each number of risk topics k, the LDA model is iteratively trained using the training set to obtain the perplexity and consistency score of the model corresponding to each number of risk topics;

[0021] Determine the optimal number of risk topics k based on perplexity and consistency score m .

[0022] Furthermore, for k m The risk level of each risk theme is determined by visually analyzing the characteristic indicators of driving risk characteristics in each type.

[0023] Furthermore, the latent Dirichlet LDA model is used to analyze the risk type of the driving risk unit according to the word sequence to achieve the evaluation of the driving risk level. Specifically, the risk topic of each driving risk unit is analyzed according to the word sequence using the trained LDA model, and the corresponding risk level is determined according to the risk topic.

[0024] A tunnel driving risk level assessment system based on vehicle bus data, comprising:

[0025] Data acquisition and analysis module: used to obtain bus data during vehicle driving in the tunnel, and extract driving risk characteristic indicators based on the bus data using the sliding window method;

[0026] Feature index coding module: used to compile a feature index codebook according to the feature index of driving risk characteristics, and obtain the word sequence under each time window according to the feature index codebook;

[0027] Risk analysis and evaluation module: used to analyze word sequences using the latent Dirichlet allocation (LDA) model to evaluate driving risk levels.

[0028] A computer device comprising:

[0029] one or more processors;

[0030] A memory for storing one or more programs;

[0031] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned tunnel driving risk level assessment method based on vehicle bus data.

[0032] A computer-readable storage medium storing computer instructions, when the computer instructions are executed by one or more processors, causes the one or more processors to execute the steps in the above method.

[0033] The present invention has the following beneficial effects:

[0034] First, the present invention specifically designs risk assessment indicators according to tunnel driving behavior, and uses a variety of driving behavior raw data in CAN bus data to specifically propose 20 indicators that reflect driving risk levels.

[0035] Second, the present invention uses the LDA probabilistic topic method to identify the driving risk level in the tunnel. Compared with the currently commonly used K-means, FCM clustering and other algorithms, the LDA algorithm can explore the potential semantic probability information of driving behavior during the iteration process and obtain driving risk topics that are more in line with real driving scenarios.

[0036] Third, the present invention uses a codebook to encode driving risk characteristic indicators, which helps to deepen the understanding of driving risk behavior.

[0037] Fourth, the method proposed in the present invention can be applied to very large sample sets, because semantic segmentation and symbolization can be easily implemented by the database, and LDA has high topic generation efficiency and can be applied to high-dimensional sample sets, which is difficult to achieve with existing methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of a method for assessing tunnel driving risk level based on vehicle bus data in an embodiment of the present invention.

[0039] Figure 2 Schematic diagram of the average steering wheel angle coding of 10 drivers in an embodiment of the present invention.

[0040] Figure 3 It is a schematic diagram of selecting the optimal number of risk topics in an embodiment of the present invention.

[0041] Figure 4 Schematic diagram of steering wheel angle distribution at various risk levels in an embodiment of the present invention.

[0042] Figure 5 Schematic diagram of the distribution of steering wheel angle change rate under various risk topics in an embodiment of the present invention.

[0043] Figure 6 Schematic diagram of the distribution of accelerator pedal opening under various risk topics in an embodiment of the present invention.

[0044] Figure 7 Schematic diagram of brake pedal opening distribution under various risk topics in an embodiment of the present invention.

[0045] Figure 8 Schematic diagram of the distribution of brake pedal change rate under various risk topics in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0047] The present invention uses the driving behavior data in the tunnel collected by the vehicle bus, and uses the sliding window method to design and extract a total of 20 indicators that reflect the characteristics of driving behavior. Each indicator is encoded according to its distribution range through the feature codebook, and the feature indicator codebook is obtained. Then, the model is trained, T% random sampling is performed from the entire sample, and the driving risk vehicles are identified based on the latent Dirichlet (LDA) model. The optimal number of risk levels is selected through perplexity and consistency scores, and risk identification is performed on the entire sample. This method helps to accurately and intuitively identify the risk level of the vehicle driving state, and provides support for the realization of vehicle risk management and active warning.

[0048] Example 1

[0049] A method for assessing tunnel driving risk level based on vehicle bus data comprises the following steps:

[0050] S1: Obtain bus data during vehicle driving in the tunnel, extract driving risk characteristic feature indicators based on the bus data using a sliding window method, and obtain several driving risk units;

[0051] S2: compile a feature index codebook according to the characteristic index of driving risk characteristics, and obtain the word sequence of each driving risk unit according to the feature index codebook;

[0052] S3: The latent Dirichlet (LDA) model is used to analyze the risk type of driving risk units according to word sequences to evaluate the driving risk level.

[0053] In step S1, the bus data during the vehicle driving process includes five driving behavior characteristics, namely, steering wheel angle, steering wheel angle change rate, accelerator pedal opening, brake pedal opening and brake pedal change rate; each driving behavior characteristic has four driving risk characteristic characteristic indicators, namely, the average driving behavior characteristic within the time window, the standard deviation of the driving behavior characteristic within the time window, the maximum driving behavior characteristic within the time window, and the minimum driving behavior characteristic within the time window.

[0054] The calculation method of the average value of driving behavior characteristics within the time window is:

[0055]

[0056] in, Indicates that the driving behavior feature feature has a time window length of The features include steering wheel angle, steering wheel angle change rate, accelerator pedal opening, brake pedal opening, and brake pedal change rate.

[0057] The calculation method of the standard deviation of driving behavior characteristics within the time window is:

[0058]

[0059] in, Indicates that the driving behavior feature feature has a time window length of The standard deviation of time.

[0060] The calculation method for the maximum value of driving behavior characteristics within the time window is:

[0061]

[0062] in, Indicates that the driving behavior feature feature has a time window length of The maximum value when express The characteristic value at time.

[0063] The calculation method of the minimum value of driving behavior characteristics within the time window is:

[0064]

[0065] in, Indicates that the driving behavior feature feature has a time window length of The minimum value when .

[0066] In step S1, the driving risk characteristic feature indicators are extracted according to the bus data by using a sliding window method, specifically: T1 is used as a sliding time window, T2 is used as a moving step (T1 can be 0.5s, 1s, 1.5s, etc., and T2 is greater than or equal to 0.1s), and the sliding time window method is used to extract the driving risk characteristic feature indicators of the five driving behavior characteristics in each time window, and each time window is used as a driving risk unit to obtain a plurality of driving risk units, each driving risk unit including 20 driving risk characteristic feature indicators.

[0067] In step S2, the feature indicator codebook is compiled according to the driving risk characteristic feature indicator, specifically: the value of the driving risk characteristic feature indicator is divided into several ranges, each range corresponds to a word, and the feature indicator codebook is obtained.

[0068] After driving behavior data segmentation and symbolization, the 20 features of each risk unit correspond to 20 words respectively. Each driving risk unit can be represented by a word sequence. The word sequence of the driving risk unit can be represented as:

[0069] d m = [ w m 1 , w m 2 , ……, w mn ]

[0070] in, The word sequence representing the m-th risk unit, represents the nth word in the mth risk unit.

[0071] In step S3, the training method of the latent Dirichlet LDA model is:

[0072] Randomly sample all word sequences to obtain a training set. Specifically, create each word sequence as a document. The collection of all documents constitutes a corpus. Perform T% (T is usually 20-40) random sampling in the corpus to obtain a small sample as the training set.

[0073] Build the LDA model and set the number of model iterations (the value is 30-100);

[0074] Set a series of risk topic numbers k, k = 2, 3, 4, ..., 10, and divide the word sequence of the driving risk unit into k risk topics; the risk topic composition of each document and the word composition of each risk topic can be described by Dirichlet-polynomial conjugate respectively. The relationship between the parameters of the LDA model includes: , , , , where k represents the number of risk topics, m represents the mth driving risk unit, θ, α, β and Denotes the parameters of the LDA model, z denotes the potential risk topic, Dir(·) denotes the number of Dirichlet distributions, Mult(·) denotes the multinomial distribution, and the variational Bayes algorithm is used to solve the parameters of LDA and its extensions in this example. For the M documents in the corpus, the process of generating risk topics is independent of each other, so there are M independent conjugate structures. The overall LDA model is a joint probability distribution composed of observed variables and latent variables, and its expression is:

[0075]

[0076] Among them, K represents the number of risk topics k, and M represents the number of driving risk units.

[0077] For each number of risk topics k, the LDA model is iteratively trained using the training set to obtain the perplexity and consistency score of the model corresponding to each number of risk topics; the perplexity and consistency score calculation methods are as follows:

[0078]

[0079]

[0080] in, is the perplexity, is the consistency score, N represents the total number of words, Representing words and words The number of times they appear together in the document, Indicates that it appears alone The number of times, is the compensation coefficient.

[0081] Determine the optimal number of risk topics k based on perplexity and consistency score m .

[0082] For k m The risk level of each risk theme is determined by visually analyzing the characteristic indicators of driving risk characteristics in each type.

[0083] The latent Dirichlet LDA model is used to analyze the risk type of the driving risk unit according to the word sequence to achieve the evaluation of the driving risk level. Specifically, the risk topic of each driving risk unit is analyzed according to the word sequence using the trained LDA model, and the corresponding risk level is determined according to the risk topic.

[0084] Example 2

[0085] Taking the tunnel operation CAN bus data of 30 drivers collected through natural driving tests as an example, the driving risk level is identified as follows:

[0086] 1. Extract 20 driving risk characteristic indicators that reflect driving risk levels based on CAN bus data

[0087] In order to facilitate subsequent research, the frequency of all data is unified to 10Hz by downsampling. Due to the different driving time of different drivers, the length of the sequence data collected from different drivers is different. In order to alleviate these problems, the sliding time window method is used to extract the features of the fixed window. Therefore, the trajectory data is statistically described in each time window with the length of the fixed time window (such as maximum, minimum, average and standard deviation), and a total of 20 indicators are obtained. Since the risky driving behavior of the driver is often sudden and short-lived, in order to accurately characterize the driving risk, T1=0.5s is selected as the moving window, recorded as the driving risk unit, and the moving step is T2=0.1s. Finally, 469,830 driving risk units are extracted from the tunnel operation CAN bus data of 30 drivers.

[0088] 2. Design a feature coding book and encode each indicator to obtain feature text

[0089] (1) Feature coding book design

[0090] Taking the average steering wheel angle as an example, during normal driving, the steering wheel angle fluctuates mainly between ±5°, accounting for 95.23% (447419 / 469,830). In this embodiment, the sample feature of the steering wheel angle in the range of [-5,5] is recorded as A1. In addition to A1, the average steering wheel angle is mainly distributed between ±150°, and a small amount is distributed outside this range. Therefore, the absolute value of the encoding range of the average steering wheel angle is: 0~5, 5~10, 10~20, 20~30,30~40, 40~60, 60~120, 120~200, and the corresponding encoding words are: A1, A2, …, A8. Some encoding results are shown as follows. Figure 2 As shown in the figure, for each extracted feature of the driver behavior data, it is encoded according to the data distribution and domain knowledge. Taking the driving risk characteristic feature indicators extracted from the steering wheel angle, steering wheel angle change rate and accelerator pedal opening as an example, the encoding results are shown in the following table:

[0091]

[0092] (2) Obtaining word sequences of driving risk units

[0093] After driving behavior data segmentation and symbolization, the 20 driving risk characteristic indicators of each risk unit correspond to 20 words respectively. Each driving risk unit can be represented by a word sequence, such as "A1, B2, C5, D8, E2, ..., T1", that is, the document: {d}_{m}={W}_{m}=[{w}_{m1},{w}_{m2},......{,w}_{mn}] , all documents constitute a corpus: W = [ w 1 ,w 2 ,...,w m ] , where W represents the corpus, represents the word sequence of the mth risk unit, W m represents the mth document, It represents the nth word in the mth driving risk unit, that is, the nth word in the mth document.

[0094] 3. Using LDA model for driving risk identification

[0095] (1) Determine the optimal number of risk topics k m

[0096] A small sample of 30% is taken from the overall sample to determine the optimal number of risk topics. A series of risk topic numbers k=2, 3, 4, ..., 10 are set. The model is iteratively trained for each k. The perplexity and consistency scores after each training are obtained. Finally, the distribution of evaluation indicators is drawn as follows: Figure 3,Through the analysis of the evaluation indicators, it is finally determined that the ,optimal number of risk topics is k = 3 and the number of iterations is 30.

[0097] (2) Identification of driving risk level

[0098] The cumulative frequency distribution of each driving risk characteristic index under each risk theme is plotted as follows: Figure 4-Figure 8 As shown in the figure, by comparing the three risk levels of 0, 1, and 2, it can be seen that the LDA model can discover the potential connections between different driving behaviors. Risk 0 represents normal driving by the driver, without large steering wheel rotation and braking behavior, and the risk level is the lowest at this time; while in risk 1, the brake pedal opening and change rate are significantly higher, which means that the driver takes emergency braking behavior at this time, which can be considered to have a higher longitudinal risk; in risk 2, the driver's accelerator pedal opening is high and the steering wheel angle and its change rate are significantly increased. At this time, the driver suddenly changes lanes or turns, which can be considered to have a higher lateral risk. Combined with the video data collected by the front camera, further manual judgment shows that the driving environment of the driver in risks 1 and 2 is more complicated, such as emergency braking of the vehicle in front and the insertion of the vehicle on the edge.

[0099] 4. Full sample risk identification based on the optimal number of risk topics

[0100] Based on the optimal number of risk topics obtained, the sequence data of the entire sample was segmented and symbolized in the relational database, and risk identification was performed through the LDA model, resulting in 360,767 normal driving samples, 85,377 longitudinal risk samples, and 23,686 transverse risk samples.

[0101] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0102] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1Process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0105] The above is only a preferred embodiment of the present invention. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A tunnel driving risk level assessment method based on vehicle bus data, characterized in that: The following steps are involved: S1: Obtain bus data during vehicle driving in the tunnel, extract driving risk characteristic feature indicators based on the bus data using a sliding window method, and obtain several driving risk units; S2: compile a feature index codebook according to the characteristic index of driving risk characteristics, and obtain the word sequence of each driving risk unit according to the feature index codebook; S3: Analyze the risk type of the driving risk unit according to the word sequence using the Latent Dirichlet LDA model to evaluate the driving risk level, which includes normal driving, lateral risk and longitudinal risk; In step S1, the bus data during the vehicle driving process includes five driving behavior characteristics, namely, steering wheel angle, steering wheel angle change rate, accelerator pedal opening, brake pedal opening and brake pedal change rate; Each driving behavior characteristic has four driving risk characteristic indicators, namely, the average value of the driving behavior characteristic within the time window, the standard deviation of the driving behavior characteristic within the time window, the maximum value of the driving behavior characteristic within the time window, and the minimum value of the driving behavior characteristic within the time window; The characteristic indicator codebook is compiled according to the driving risk characteristic characteristic indicator, specifically: the value of the driving risk characteristic characteristic indicator is divided into several ranges, each range corresponds to a word, that is, for each driving risk characteristic characteristic indicator, it is encoded according to data distribution and domain knowledge to obtain a characteristic indicator codebook; the 20 driving risk characteristic characteristic indicators of each driving risk unit correspond to 20 words respectively, and each driving risk unit can be represented by a word sequence: , in, The word sequence representing the m-th risk unit, represents the nth word in the mth risk unit.

2. The tunnel driving risk level assessment method based on vehicle bus data according to claim 1 is characterized in that: The method of extracting driving risk characteristic feature indicators by using a sliding window method according to bus data is specifically as follows: T1 is used as a sliding time window, T2 is used as a moving step, and the sliding window method is used to extract driving risk characteristic feature indicators of five driving behavior characteristics in each time window. Each time window is used as a driving risk unit to obtain a plurality of driving risk units, and each driving risk unit includes 20 driving risk characteristic feature indicators.

3. The tunnel driving risk level assessment method based on vehicle bus data according to claim 1 is characterized in that: The training method of the latent Dirichlet LDA model is: Randomly sample all word sequences to obtain a training set; Build the LDA model and set the number of model iterations; Set a series of risk topics k and divide the word sequence of the driving risk unit into k risk topics; For each number of risk topics k, the LDA model is iteratively trained using the training set to obtain the perplexity and consistency score of the model corresponding to each number of risk topics; Determine the optimal number of risk topics k based on perplexity and consistency score m .

4. The tunnel driving risk level assessment method based on vehicle bus data according to claim 3 is characterized in that: For k m The risk level of each risk theme is determined by visually analyzing the characteristic indicators of driving risk characteristics in each theme.

5. A tunnel driving risk level assessment system based on vehicle bus data, characterized in that: include: Data acquisition and analysis module: used to obtain bus data during vehicle driving in the tunnel, and extract driving risk characteristic indicators based on the bus data using the sliding window method; The bus data during the vehicle driving process includes five driving behavior characteristics, namely, steering wheel angle, steering wheel angle change rate, accelerator pedal opening, brake pedal opening and brake pedal change rate; Each driving behavior characteristic has four driving risk characteristic indicators, namely, the average value of the driving behavior characteristic within the time window, the standard deviation of the driving behavior characteristic within the time window, the maximum value of the driving behavior characteristic within the time window, and the minimum value of the driving behavior characteristic within the time window; Feature indicator coding module: used to compile a feature indicator codebook according to the driving risk characteristic feature indicators, and obtain a word sequence under each time window according to the feature indicator codebook; specifically: divide the value of the driving risk characteristic feature indicator into several ranges, so that each range corresponds to a word, that is, for each driving risk characteristic feature indicator, it is encoded according to the data distribution and domain knowledge to obtain a feature indicator codebook; the 20 driving risk characteristic feature indicators of each driving risk unit correspond to 20 words respectively, and each driving risk unit can be represented by a word sequence: , in, The word sequence representing the m-th risk unit, represents the nth word in the mth risk unit; Risk analysis and evaluation module: It is used to analyze the risk type of driving risk units according to word sequences using the Latent Dirichlet LDA model to evaluate the driving risk level.

6. A computer device, characterized in that: The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the tunnel driving risk level assessment method based on vehicle bus data as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the method according to any one of claims 1 to 4.