Road traffic safety risk early warning method based on machine learning

Through the highway traffic safety risk early warning method based on machine learning, the traffic accident data training model is used to conduct deep feature mining and information sorting, which solves the problems of versatility and limitations in the existing technology and realizes the prediction and prediction of highway traffic accidents in the region. Risk early warning within the cycle improves the accuracy and universality of early warning.

CN118692240APending Publication Date: 2024-09-24TRAFFIC MANAGEMENT RES INST OF THE MIN OF PUBLIC SECURITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410792920.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology lacks versatility and limitations in specific road section warnings in highway traffic safety risk warnings, and relies on special equipment for detection, and fails to effectively utilize big data analysis and artificial intelligence methods for universal warnings.

Method used

A highway traffic safety risk early warning method based on machine learning is used to obtain target highway data and input the trained traffic safety risk early warning model to output the safety risk assessment results of the target highway, including segmentation results and risk assessment scores, and use traffic accidents to The data is used for deep feature mining and information sorting to achieve prediction of regional highway traffic accidents and periodic risk warning.

Benefits of technology

It realizes the prediction of highway traffic accidents in the region and the early warning of highway safety risks within the cycle, improves the accuracy and timeliness of early warning, has versatility and universal applicability, and can provide effective early warning for specific road sections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692240A
    Figure CN118692240A
Patent Text Reader

Abstract

The invention relates to a road traffic safety risk early warning method based on machine learning, and relates to the field of road traffic safety risk management and control. The method comprises the following steps: acquiring target road data, wherein the target road data is associated with the state of a target road; and inputting the target highway data into a highway traffic safety risk early warning model, and outputting a target highway safety risk assessment result corresponding to the target highway, the target highway safety risk assessment result comprising a target highway segmentation result and a risk assessment score result corresponding to the target highway segmentation result. A traffic safety risk early warning model obtained through traffic accident data training is used as a risk prediction tool, and deep feature mining and information arrangement are performed on target road data to obtain a safety risk assessment result corresponding to a target road, so that road traffic accidents in a region are predicted, and the risk prediction efficiency is improved. And risk early warning of highway safety in a period is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of highway traffic safety risk management and control, and in particular to a highway traffic safety risk early warning method based on machine learning. Background Art

[0002] With the rapid growth of my country's highway mileage, motor vehicle ownership and the number of motor vehicle drivers, the total number of traffic accidents and casualties remain high. At present, traffic safety risk management is mainly based on remedial measures after the accident, and there are few active early warning and prevention before the accident. Starting from "ex ante" risk control, exploring risk factor early warning related technologies can be used to deploy traffic risk control work and even emergency rescue work in advance, and can also encourage traffic participants to adjust their driving behavior through road control, etc., so as to further strengthen risk management and improve risk control and emergency response capabilities.

[0003] In the related technology, there are several methods and documents for early warning of traffic accidents. Chinese patent document CN116504070B provides a method and system for early warning of traffic accidents combined with highway characteristics, which includes: obtaining radar monitoring information and camera monitoring information of the same time sequence of a preset highway area; extracting traffic characteristics and generating a traffic characteristic matrix; extracting highway characteristics from the radar monitoring information and the camera monitoring information to generate dynamic highway characteristics; retrieving static highway characteristics of the preset highway area from the highway database of the remote management terminal, combining the dynamic highway characteristics to perform traffic characteristic threshold multi-target mapping, and generating a traffic characteristic constraint matrix; when the traffic characteristic matrix does not meet the traffic characteristic constraint matrix, generating traffic warning information of the preset highway area for early warning, solving the technical problems of insufficient accuracy and timeliness of early warning in the prior art, and achieving the technical effect of improving the accuracy and timeliness of early warning. Chinese patent document CN106448149B provides a highway traffic accident early warning method, which links traffic accident data and traffic violation data through driver identity information; analyzes the characteristics of traffic accident personnel; conducts decision tree judgment on high-risk traffic accident personnel to obtain high-risk accident personnel and the types of accidents they have; conducts environmental variable characteristic analysis to obtain highway type and processing level table, obtains the time, weather, and vehicle color rules of high-risk accident; corresponds the obtained high-risk accident personnel and the types of accidents they have to the environmental variables of high-risk accidents, combines the driver's own characteristics and environmental conditions to carry out targeted driving reminders, and conducts accident early warning at the same time. This method combines high-risk accident drivers with high-risk accident sections, adds the influence of environmental factors such as time and weather, so as to achieve the purpose of judging high-risk accident drivers, judging the types of accidents that drivers have, and corresponding high-risk accident sections to specific driver types, and organically combining accident personnel, accident types, and accident sections. Chinese patent document CN112700678A discloses a traffic accident detection device and early warning system for highway maintenance operations. It includes a traffic accident detection device applied to highway maintenance operations, and is provided for setting up traffic warning obstacles in highway maintenance operation areas, including: a sensing module for sensing posture changes of the traffic warning obstacle; a processing module electrically connected to the sensing module, and used to enable a communication module to send a detection result signal to the outside when the sensing module senses the posture change of the traffic warning obstacle; a communication module electrically connected to the processing module, and used to send the detection result signal to an external alarm device under the control of the processing module, so that the external alarm device sounds an alarm. The present invention provides safety warnings for highway maintenance workers during highway maintenance operations, and gains more escape time for highway maintenance workers in the event of a traffic accident, thereby improving the operating safety of road construction workers. However, the above patents have their own defects. For example, they are only applicable to early warnings of preset highways and are not universal; or, they are applicable to macro traffic safety early warnings and have great limitations on early warnings of specific road sections; or, they predict traffic accidents by deploying relevant equipment in maintenance areas through communication, which is not universal. It can be seen that the prediction of traffic accidents in related technologies tends to use special equipment for detection, and there are fewer predictions of accidents and highway safety early warnings through big data analysis and artificial intelligence methods. Summary of the invention

[0004] This application is about a road traffic safety risk early warning method based on machine learning, which can predict road traffic accidents in a region and warn of road safety risks within a period. The method includes: Acquire target highway data, where the target highway data is associated with a state of the target highway; Input the target highway data into the highway traffic safety risk warning model, and output the target highway safety risk assessment result corresponding to the target highway, the target highway safety risk assessment result including the target highway segmentation result and the risk assessment score result corresponding to the target highway segmentation result; Among them, the traffic safety risk warning model is an artificial intelligence model based on machine learning and trained with traffic accident data.

[0005] In an optional embodiment, the target highway data is input into the highway traffic safety risk warning model, and the target highway safety risk assessment result corresponding to the target highway is output, including: Determine the warning cycle; The target highway data is input into the highway traffic safety risk warning model, and a target highway safety risk assessment result corresponding to the target highway is output, wherein the target highway safety risk assessment result includes at least one assessment sub-result corresponding to the warning period.

[0006] In an optional embodiment, before acquiring the target highway data, the process includes: Obtain a training sample set; Construct an initial traffic safety risk warning model; The initial traffic safety risk warning model is trained through the training sample set to obtain the traffic safety risk warning model.

[0007] In an optional embodiment, obtaining a training sample set includes: Obtain traffic accident related data; Generate a training sample set based on traffic accident related data.

[0008] In an optional embodiment, obtaining traffic accident related data includes: Obtain traffic highway accident source data; Determine the items associated with the traffic highway accident source data; The associated data corresponding to the traffic highway accident source data is determined based on the associated items.

[0009] In an optional embodiment, the highway traffic accident source data is traffic accident data; The associated data includes highway information data and meteorological data; Traffic accident data is used to represent vehicle information, accident party information, and accident road environment information; Highway information data is used to characterize highway characteristics and traffic flow characteristics corresponding to the environment where traffic accidents occur; Meteorological data is used to characterize the temperature, rainfall, humidity, wind speed and wind direction corresponding to the environment where the traffic accident occurred.

[0010] In an optional embodiment, generating a training sample set based on traffic accident related data includes: Spatially align traffic accident source data and related data and temporally align them; Fusing the spatially aligned and temporally aligned traffic accident source data and associated data to obtain fused data; Extract features from the fused data to obtain feature labels corresponding to the fused data; Label the fused data based on feature labels to obtain training samples; Generate a training sample set based on the training samples.

[0011] In an optional embodiment, the spatially aligned and temporally aligned traffic accident source data and the associated data are fused to obtain fused data, including: In response to the traffic accident source data and the associated data being abnormal after alignment, filtering out the traffic accident source data and the associated data; or, In response to anomalies in the aligned traffic accident source data and associated data after alignment, the traffic accident source data and associated data are supplemented to obtain fused data.

[0012] In an optional embodiment, feature extraction is performed on the fused data to obtain feature labels corresponding to the fused data, including: Perform feature mapping, feature construction and feature analysis on the fused data to obtain feature labels corresponding to the fused data; Among them, feature analysis includes correlation analysis and collinearity diagnosis analysis.

[0013] In an optional embodiment, the initial traffic safety risk warning model is trained by a training sample set to obtain a traffic safety risk warning model, including: Determine the evaluation indicators corresponding to the traffic safety risk early warning model; Based on the evaluation indicators, the initial traffic safety risk warning model is trained through the training sample set to obtain the traffic safety risk warning model.

[0014] The technical effects of each embodiment of the present application include at least: In the process of predicting the traffic safety of the target highway, the traffic safety risk warning model trained by traffic accident data is used as a risk prediction tool to conduct in-depth feature mining and information collation on the target highway data to obtain the safety risk assessment results corresponding to the target highway, thereby realizing the prediction of highway traffic accidents in the region and achieving risk warning for highway safety within the cycle. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 A flowchart of a highway traffic safety risk warning method based on machine learning provided by an exemplary embodiment of the present application is shown.

[0017] Figure 2 A schematic diagram of the construction architecture of a highway traffic safety risk warning model provided by an exemplary embodiment of the present application is shown.

[0018] Figure 3 A schematic diagram of the construction process of a traffic safety risk model provided by an exemplary embodiment of the present application is shown.

[0019] Figure 4 A schematic diagram of a data fusion process provided by an exemplary embodiment of the present application is shown.

[0020] Figure 5 A schematic diagram of a process based on data acquisition features provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0022] Figure 1 A flow chart of a road traffic safety risk early warning method based on machine learning provided by an exemplary embodiment of the present application is shown. The method is described by taking the application of the method in a computer device as an example. The method includes: Step 101, obtaining target highway data.

[0023] In the embodiment of the present application, the target highway data is associated with the state of the target highway. Optionally, the computer device acquires the target highway data through a database corresponding to the road network information, or the computer device acquires the longitude and latitude and range of the target highway through the road network information, and acquires data on the weather state of the target highway. The present application does not limit the source of the target highway data.

[0024] Step 102, inputting the target highway data into the highway traffic safety risk warning model, and outputting a target highway safety risk assessment result corresponding to the target highway.

[0025] In the embodiment of the present application, the target highway safety risk assessment result includes the target highway segmentation result and the risk assessment score result corresponding to the target highway segmentation result. In one example, to ensure the accuracy of the output result, when the highway is long, the target highway will be segmented. At this time, the number of risk assessment results will correspond to the number of segmentation results.

[0026] Optionally, in the embodiment of the present application, the risk assessment score result characterizes the safety of the target highway in the form of at least one quantitative score. Optionally, in some embodiments, the risk score assessment result corresponds to a division threshold and a risk level set by the corresponding division threshold.

[0027] Optionally, the target highway data can be formatted and input into the highway traffic safety risk warning model in a preset format.

[0028] It should be noted that, in an optional embodiment, when making a safety risk warning judgment for a target highway, since the prediction period is relatively long, in order to ensure accuracy, it is necessary to divide the warning cycle. At this time, the warning cycle will be pre-determined, and based on the determined warning cycle, the target highway data will be input into the highway traffic safety risk warning model, and the target highway safety risk assessment result corresponding to the target highway will be output. At this time, the target highway safety risk assessment result includes at least one assessment sub-result corresponding to the warning cycle.

[0029] In one example, within a warning cycle, the risk assessment score is recorded as F and is represented by a value of 0-1. When F≥0.75, it is regarded as the most serious first-level warning; when 0.5≤F≤0.75, it is regarded as the second-level warning of the second most serious; when 0.25≤F≤0.5, it is regarded as a non-serious third-level warning; when 0≤F≤0.25, it is regarded as no warning. Optionally, the aforementioned risk score F can be used to represent the proportion of accident sections to the total sections.

[0030] To sum up, the method provided in the embodiment of the present application, in the process of predicting the traffic safety of the target highway, uses the traffic safety risk warning model obtained by training the traffic accident data as a risk prediction tool, conducts in-depth feature mining and information collation on the target highway data, so as to obtain the safety risk assessment results corresponding to the target highway, thereby realizing the prediction of highway traffic accidents in the region and realizing risk warning for highway safety within the period.

[0031] In some embodiments of the present application, a process for establishing or updating a traffic safety risk model is also provided before a highway warning is issued. Figure 2 As shown, the process includes four time series modules, namely, a multi-source data acquisition module 210, a multi-source data fusion module 220, a data processing and feature engineering module 230, and a machine learning modeling module 240. Among them, the multi-source data acquisition module is used to obtain accident information and generate an accident-related data set based on the accident information. The multi-source data fusion module is used to process and fuse the accident-related data set to generate a fused data set. The data processing and feature engineering module is used to perform feature mapping, feature construction, and feature analysis on the fused data to generate feature parameters. The machine learning module is used to construct samples based on feature parameters and the fused data set, and train the model after selecting the model to generate a traffic safety risk model.

[0032] Figure 3 A schematic diagram of a construction process of a traffic safety risk model provided by an exemplary embodiment of the present application is shown, and the method is described by taking the application of the method in a computer device as an example. The method includes: Step 301, obtaining traffic highway accident source data.

[0033] Step 302, determining the associated items with the traffic highway accident source data.

[0034] Step 303: determining the associated data corresponding to the traffic highway accident source data based on the associated items.

[0035] In the embodiment of the present application, the associated data includes highway information data and meteorological data; Traffic accident data is used to characterize vehicle information, accident party information, and accident road environment information; road information data is used to characterize road characteristics and flow characteristics corresponding to the traffic accident environment; meteorological data is used to characterize temperature, rainfall, humidity, wind speed, and wind direction corresponding to the traffic accident environment. That is, in one example, traffic accident data from the public security traffic control includes accident vehicle information, accident party information, and accident road environment information; road information data from transportation includes road characteristics, flow characteristics, etc.; meteorological data from the meteorological department includes temperature, rainfall, humidity, wind speed, wind direction, etc.

[0036] Step 304: spatially align the traffic accident source data and the associated data and temporally align them.

[0037] Optionally, in an embodiment of the present application, spatial alignment includes matching the nearest checkpoint data, violation data, highway data, and matching the meteorological data at the accident point based on the road number, mileage post number, and up and down information of the highway of the accident data; temporal alignment includes matching the data at the time of the accident as the traffic flow and violation data of highway vehicles at the time of the accident, and matching the meteorological data at the time of the accident.

[0038] Step 305 , fusing the traffic accident source data and the associated data after spatial alignment and temporal alignment to obtain fused data.

[0039] It should be noted that in the process of executing the data fusion shown in step 305, in response to the presence of anomalies in the aligned traffic accident source data and related data after alignment, the traffic accident source data and related data are screened out; or, in response to the presence of anomalies in the aligned traffic accident source data and related data after alignment, the traffic accident source data and related data are supplemented to obtain fused data.

[0040] In an embodiment of the present application, the aligned traffic accident source data and related data are differentially processed according to time and space, and a differential threshold is set. Data exceeding the threshold is regarded as abnormal data that needs to be deleted.

[0041] In the embodiment of the present application, if the data generates a null value but does not comply with the deletion rule, it is filled by filling with adjacent values.

[0042] Optionally, in one example, the embodiment of the present application refers to a data fusion method based on a data stack. In this process, the accident data and other data are first stacked into stacks A and Q, and the top data A1 and Q1 are taken out respectively; the time description data are taken out from the data A1 and Q1 respectively, and recorded as Ta1 and Tq1; in this case, Ta1 and Tq1 are compared. If | Ta1-Tq1 |<1s, it is considered that the time alignment is completed and the spatial alignment link is entered; if not, Q1 is popped out of the stack, and the top data of other data are taken out again to repeat the alignment and judgment process. In terms of spatial alignment, the spatial description data are taken out from the data A1 and Q1 respectively, and recorded as Pa1 and Pq1; and the spatial position distance of Pa1 and Pq1 is compared. If it is less than 1km, it is considered that the spatial alignment is completed, and the accident data is fused. If not, Q1 is popped out of the stack, and the top data of other data are taken out again, and the time and space alignment process is repeated; after alignment, A1 can be popped out of the stack. In the process of alignment, it is necessary to judge in real time whether stack A is empty. If yes, then all accident data have been integrated.

[0043] Step 306: extract features from the fused data to obtain feature labels corresponding to the fused data.

[0044] In the embodiment of the present application, the construction of feature labels includes three means: feature mapping, feature construction and feature analysis. Among them, feature analysis includes correlation analysis and collinearity diagnosis analysis.

[0045] In one example, feature mapping is to discretize unstructured data into structured data. The specific mapping includes but is not limited to the following contents: dividing highway lines into three categories, namely 0 (straight), 1 (curve), and 2 (curve); dividing central isolation facilities into two categories, namely 0 (marking) and 1 (double-wave guardrail); dividing roadside facilities into four categories, namely 0 (none), 1 (roadside trees), 2 (vehicle-non-separation (green belt)), and 3 (double-wave guardrail and concrete guardrail); dividing road section speed limits into three categories: 0 (no speed limit or missing), 1 (60~80), and 2 (30~40); dividing road sections passing through villages and towns into two categories: 0 (passing through villages) and 1 (passing through towns); and dividing weather into six conditions, namely 0 (sunny), 1 (cloudy), 2 (rain), 3 (snow), 4 (smog), and 5 (cloudy).

[0046] In one example, feature construction is to derive new features from existing features, including but not limited to constructing features such as average temperature, wind speed, wind direction, etc. based on original meteorological data; and constructing large vehicle proportion features based on traffic data.

[0047] In one example, the correlation analysis is calculated as shown in Formula 1 below: Formula 1: in and They represent the standard deviation of variable X and variable Y respectively, and Cov(x,y) is the covariance of the two variables. Optionally, the computer device needs to set a corresponding relevant technical threshold. In one example, if the calculated correlation coefficient is greater than 0.3, it is considered that the two variables have a strong correlation, and only one of the features needs to be retained as a feature parameter.

[0048] In one example, the collinearity diagnostic analysis is calculated as shown in Formula 2 below: Formula 2: Among them, R 2 is the coefficient of determination of the regression equation. VIF If it is greater than 10, it can be considered that the variable is collinear with other variables, and one of the multiple variables can be retained.

[0049] Step 307: annotate the fused data based on the feature labels to obtain training samples.

[0050] In the embodiment of the present application, the processed data is labeled and used as training samples.

[0051] Step 308: Generate a training sample set based on the training samples.

[0052] After the training samples are processed, they are used as a training sample set. Optionally, the training sample set can be further divided into a training set and a validation set.

[0053] Step 309: construct an initial traffic safety risk warning model.

[0054] Optionally, an initial traffic safety risk warning model is constructed by selecting commonly used machine learning models, wherein the types of machine learning models include but are not limited to logistic regression, random forest, and XGBoost.

[0055] Step 310 , training the initial traffic safety risk warning model using the training sample set to obtain a traffic safety risk warning model.

[0056] In an embodiment of the present application, a computer device needs to determine an evaluation index corresponding to a traffic safety risk warning model; based on the evaluation index, the initial traffic safety risk warning model is trained through a training sample set to obtain a traffic safety risk warning model.

[0057] In one example, in the model training process designed in the embodiment of the present application, there are the following sequential processes: Analyze the balance of samples: For a fixed length of highway, traffic accidents are rare events at a temporal and spatial resolution of 1 km and 1 hour, so the data may be extremely unbalanced and need to be balanced. Resample the data by combining oversampling and undersampling; Hyperparameter tuning. The parameters to be adjusted include but are not limited to: ① Regularization type, select l1 or l2 regularization; ② Regularization strength, the adjustment range includes [0.001, 0.01, 0.1, 1, 10]; ③ Maximum number of iterations, the adjustment range includes [100, 1000, 5000, 10000, 50000]; Cross-validation. The original data set is randomly divided into ten subsets of equal size (usually called folds). From these ten folds, one is selected as a validation set for model validation, and the remaining nine are used as training sets.

[0058] The model is trained using the selected training set, and the performance of the model is evaluated using the validation set. The average of the ten evaluation results is used as the performance evaluation indicator of the model.

[0059] Select model evaluation indicators, including but not limited to model accuracy, recall rate, F1 score and their combination. If the evaluation indicators meet the accuracy requirements, it means that the model has been trained. If not, repeat the training and continuously adjust the data balancing process and hyperparameter tuning process until the accuracy requirements are met.

[0060] To sum up, the method provided in the embodiment of the present application, in the process of predicting the traffic safety of the target highway, uses the traffic safety risk warning model obtained by training the traffic accident data as a risk prediction tool, conducts in-depth feature mining and information collation on the target highway data, so as to obtain the safety risk assessment results corresponding to the target highway, thereby realizing the prediction of highway traffic accidents in the region and realizing risk warning for highway safety within the period.

[0061] Next, the data fusion process provided in the embodiment of the present application is described in detail. Figure 4 , the process includes: Step 401, the accident data is entered into the accident data stack.

[0062] Step 402: other data is put into other data stack.

[0063] Step 401 and step 402 are to fill the data in the stack to obtain a stack A corresponding to the traffic accident source data and a stack Q corresponding to other data.

[0064] Step 403, taking out the top data of the accident data stack.

[0065] Step 404, obtaining the accident time.

[0066] Step 405, taking out the top data of other data stacks.

[0067] Step 406, obtaining data time.

[0068] Step 403 and step 404 correspond to step 405 and step 406 in timing. Step 407: Perform a time alignment operation.

[0069] This process is called time alignment process.

[0070] Step 408, determine whether the time difference is less than 1 second.

[0071] In the embodiment of the present application, the standard time interval for determining time alignment is 1s.

[0072] If yes, execute step 409, if no, execute data pop operation.

[0073] Optionally, after the data is popped out of the stack, if the accident data stack and at least one of the other data stacks are identical, an end operation is performed.

[0074] Step 409, determine the accident location.

[0075] Step 410, determine location information.

[0076] Step 409 and step 410 are completed in parallel.

[0077] Step 411, perform spatial alignment.

[0078] This process is called spatial alignment.

[0079] Step 412, determine whether the spatial distance is less than 1 km.

[0080] If yes, execute step 413.

[0081] If not, perform data pop operation.

[0082] Step 413, determine whether the data fusion is correct.

[0083] Step 414, perform data pop operation.

[0084] Next, the process based on data acquisition features provided in the embodiment of the present application is described, please refer to Figure 5 , the process includes: Step 501, import data.

[0085] Step 502: Adjacent data differentiation.

[0086] Step 503, determining whether the data difference result is less than a preset threshold.

[0087] When the data difference result is greater than the preset threshold, step 505 is executed. If it is less than the preset threshold, it is determined that no outlier processing is required.

[0088] Step 504, perform outlier deletion.

[0089] Step 502 to step 503 is a data processing process for outlier deletion.

[0090] Step 505, locating null values.

[0091] Step 506, determining whether an accident occurs at the position corresponding to the null value.

[0092] If it happens, execute step 508; if it does not happen, execute step 507.

[0093] Step 507, delete.

[0094] That is, the data is deleted.

[0095] Step 508, determine the data whose null value positions are close in the time dimension.

[0096] In response to the null value position being close to the upper data in the time dimension, step 509 is executed. In response to the null value position being close to the lower data in the time dimension, step 510 is executed. Step 509, top filling.

[0097] This process is the process of filling data using the above data.

[0098] Step 510, bottom filling.

[0099] This process is the process of filling data using the data below.

[0100] Step 511, determine whether the processing is completed.

[0101] Step 512, perform feature engineering.

[0102] This process is the process of performing feature analysis. As shown in the embodiments of the present application, feature engineering includes feature mapping, feature analysis and feature construction processes, wherein feature analysis can be further divided into correlation analysis and collinearity diagnosis processes.

[0103] In the embodiment of the present application, after the feature engineering is completed, the features corresponding to the data can be obtained.

[0104] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A highway traffic safety risk early warning method based on machine learning, characterized in that: The method is applied in a computer device, and the method comprises: Acquire target highway data, wherein the target highway data is associated with a state of the target highway; Inputting the target highway data into a highway traffic safety risk warning model, and outputting a target highway safety risk assessment result corresponding to the target highway, wherein the target highway safety risk assessment result includes a target highway segmentation result and a risk assessment score result corresponding to the target highway segmentation result; Among them, the traffic safety risk warning model is an artificial intelligence model based on machine learning and trained by traffic accident data.

2. The method according to claim 1, characterized in that The step of inputting the target highway data into a highway traffic safety risk early warning model and outputting a target highway safety risk assessment result corresponding to the target highway comprises: Determine the warning cycle; The target highway data is input into a highway traffic safety risk warning model, and a target highway safety risk assessment result corresponding to the target highway is output, wherein the target highway safety risk assessment result includes at least one assessment sub-result corresponding to the warning period.

3. The method according to claim 1, characterized in that: Before acquiring the target highway data, the following steps are included: Obtain a training sample set; Construct an initial traffic safety risk warning model; The initial traffic safety risk warning model is trained using the training sample set to obtain the traffic safety risk warning model.

4. The method according to claim 3, characterized in that The obtaining of the training sample set comprises: Obtain traffic accident related data; The training sample set is generated based on the traffic accident related data.

5. The method according to claim 4, characterized in that The obtaining of traffic accident related data includes: Obtain traffic highway accident source data; Determining items associated with the traffic highway accident source data; Based on the associated items, associated data corresponding to the traffic highway accident source data is determined.

6. The method according to claim 5, characterized in that The highway traffic accident source data is traffic accident data; The associated data includes highway information data and meteorological data; The traffic accident data is used to represent vehicle information, accident party information and accident road environment information; The highway information data is used to characterize highway characteristics and traffic flow characteristics corresponding to the environment where the traffic accident occurred; The meteorological data is used to characterize the temperature, rainfall, humidity, wind speed and wind direction corresponding to the environment where the traffic accident occurred.

7. The method according to claim 5, characterized in that The generating the training sample set based on the traffic accident related data comprises: Performing spatial and temporal alignment on the traffic accident source data and the associated data; Fusing the traffic accident source data and the associated data after spatial alignment and temporal alignment to obtain fused data; Performing feature extraction on the fused data to obtain feature labels corresponding to the fused data; Annotating the fused data based on the feature labels to obtain training samples; The training sample set is generated based on the training samples.

8. The method according to claim 7, characterized in that The step of fusing the spatially aligned and temporally aligned traffic accident source data and the associated data to obtain fused data includes: In response to the alignment of the traffic accident source data and the associated data showing an abnormality after alignment, screening out the traffic accident source data and the associated data; or, In response to anomalies existing in the aligned traffic accident source data and the associated data after alignment, the traffic accident source data and the associated data are supplemented to obtain the fused data.

9. The method according to claim 7, characterized in that: The extracting features from the fused data to obtain feature labels corresponding to the fused data includes: Performing feature mapping, feature construction and feature analysis on the fused data to obtain feature labels corresponding to the fused data; Among them, feature analysis includes correlation analysis and collinearity diagnosis analysis.

10. The method according to claim 3, characterized in that The initial traffic safety risk warning model is trained by the training sample set to obtain the traffic safety risk warning model, including: Determining evaluation indicators corresponding to the traffic safety risk early warning model; Based on the evaluation index, the initial traffic safety risk warning model is trained through the training sample set to obtain the traffic safety risk warning model.

Citation Information

Cited By

  • Petrochemical harbor district safety risk analysis method based on deep learning

    CN119296302A

  • Wet and slippery road surface driving safety early warning method and system based on AI

    CN119580428A