A road traffic safety active control method, device and system

By combining traffic data prediction and risk models, the optimal management and control strategy is generated, which solves the problem of poor management and control effects caused by a single risk factor in the existing technology, and improves road traffic safety and traffic efficiency.

CN117894174BActive Publication Date: 2024-08-27CCCC FIRST HIGHWAY CONSULTANTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410062609.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2024-08-27
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

Existing active road traffic safety management and control methods only consider a single traffic risk factor at the current moment, resulting in poor control effects, and traditional passive management methods are difficult to cope with the surge in highway traffic volume and frequent accidents.

Method used

By combining traffic data prediction and risk models, we use optimization algorithms to generate optimal control strategies, obtain traffic data on multiple controlled road sections in real time, predict traffic flow and risk levels, formulate emergency or active control strategies, and prevent traffic accidents and congestion.

Benefits of technology

Effectively reduce the number of traffic accidents, improve road traffic safety and traffic efficiency, and improve the accuracy and effectiveness of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117894174B
    Figure CN117894174B
Patent Text Reader

Abstract

The present invention discloses a method, device and system for active control of road traffic safety, the method comprising: obtaining traffic data of a target road in real time, the target road including multiple controlled sections; for each controlled section, judging whether there is a traffic accident based on the acquired traffic data, and if so, formulating an emergency control strategy; if not, extracting traffic flow data from the traffic data, using a traffic flow prediction model to generate predicted traffic flow data based on the traffic flow data; using a risk prediction model to generate a risk level based on the predicted traffic flow data; using an optimization algorithm to determine the current active control strategy of the controlled section based on the risk level and predicted traffic data, and publishing the control strategy corresponding to each controlled section. The method can actively predict and perceive the change in the risk state of traffic flow in the controlled section before a traffic incident occurs, effectively reduce the number of accidents based on active safety control, and achieve the improvement of road traffic safety level and traffic efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of active road traffic safety control, and in particular to a method, device and system for active road traffic safety control. Background Art

[0002] At present, in the process of road traffic safety management, corresponding control measures are often taken after a traffic accident occurs, and on-site disposal is carried out to avoid the occurrence of secondary traffic accidents and restore normal traffic flow as soon as possible. Control measures taken after an accident often tend to be passive. Actual surveys have found that the traffic volume on the outer highways of a certain city has increased sharply in recent years, and traffic accidents have occurred frequently. Road maintenance personnel are divided into different groups and are on standby around the clock to handle traffic accidents and evacuate traffic congestion caused by accidents. The work intensity has increased sharply, and there was even a shortage of personnel at one point.

[0003] With the continuous increase in traffic volume, traditional passive and manual management methods are no longer suitable for the current road sections or even road network traffic safety management. Active control of road traffic operation means changing the driving behavior of traffic participants before an accident occurs through the implementation of control strategies, thereby adjusting the traffic operation situation. Active control of road traffic operation can achieve real-time detection and dynamic adjustment, ultimately achieving the effect of reducing traffic accidents, avoiding traffic congestion and improving traffic safety.

[0004] At present, there have been many studies on active control of road traffic safety. For example, a Chinese patent with application number 2020109342870 discloses a method for selecting active control strategies for road traffic operation, which simulates traffic flow through a following / lane-changing model, and selects control strategies based on traffic flow by matching historical control schemes through model deduction. It can also achieve active control to a certain extent, but road safety is restricted and affected by multiple risk factors. The control strategy obtained by deducing historical control schemes only through a single traffic flow state may have the problem of poor control effect. Summary of the invention

[0005] The purpose of the present invention is to overcome the problem that the existing active traffic safety control only considers a single traffic risk factor at the current moment and the control effect is poor. The present invention provides a method, device and system for active road traffic safety control. The method combines the prediction of traffic data with the risk prediction of a risk model, and generates an active control strategy based on the predicted traffic data and predicted risk through an optimization algorithm, thereby generating an optimal control strategy based on multi-dimensional traffic data. It can actively predict and perceive changes in the risk state of traffic flow in the controlled section before an accident occurs, and take relevant control measures for high-risk traffic flow states, thereby effectively reducing the number of accidents based on active safety control, and achieving an improvement in road traffic safety level and traffic efficiency.

[0006] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:

[0007] A method for active control of road traffic safety, comprising:

[0008] Acquire traffic data of a target road in real time, wherein the target road includes: a plurality of controlled road sections;

[0009] For each of the controlled road sections, determine whether there is a traffic accident based on the acquired traffic data, and if so, formulate an emergency control strategy; if not, extract first traffic flow data from the acquired traffic data based on a first preset time window, use a pre-built traffic flow prediction model to generate predicted traffic flow data based on the first traffic flow data, generate predicted traffic data based on the predicted traffic flow data, use a pre-built risk prediction model to generate a first risk level based on the predicted traffic data; and use an optimization algorithm to determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic data;

[0010] Publish an emergency control strategy or active control strategy corresponding to each of the controlled road sections.

[0011] According to a specific implementation, in the above-mentioned active road traffic safety control method, the traffic data includes: driver data, traffic flow data, road data, and environmental data;

[0012] The driver data includes: information on fatigue and dangerous driving behavior;

[0013] The traffic flow data includes: vehicle speed information, vehicle type information, and cross-sectional traffic flow information;

[0014] The road information includes: road line type, number of lanes, and lane width information;

[0015] The environmental information includes: visibility, rainfall, snowfall, road friction coefficient, wind force, and wind direction information.

[0016] According to a specific implementation, in the above-mentioned method for active control of road traffic safety, the method further includes: a judgment step before using an optimization algorithm to determine the active control strategy for the current time period of the controlled road section according to the first risk level and the predicted traffic data, including:

[0017] The judgment step includes: judging whether the first risk level reaches a preset level; if so, using an optimization algorithm to calculate the active control strategy for the current time period of the controlled section based on the first risk level and the predicted traffic data; if not, using a normalized control strategy as the active control strategy for the controlled section.

[0018] According to a specific implementation, in the above-mentioned active road traffic safety control method, the formulation of an emergency control strategy includes: taking the traffic accident as a time node, extracting second traffic flow data from the acquired traffic data based on a second preset time window, using a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, generating predicted traffic data based on the predicted traffic flow data, using a pre-constructed risk prediction model to generate a second risk level based on the predicted traffic data; and using the optimization algorithm to generate the emergency control strategy based on the second risk level and the predicted traffic data.

[0019] According to a specific implementation, in the above-mentioned active road traffic safety control method, the second preset time window is smaller than the first preset time window.

[0020] According to a specific implementation method, in the above-mentioned road traffic safety active control method, the optimization algorithm takes the minimum accident rate of the current controlled section and the highest section traffic efficiency per unit time as the optimization goal, and iteratively calculates the position of the control point to be activated, and the optimal active control strategy corresponding to the activated control point; the active control strategy includes: a speed control strategy associated with the vehicle type and lane, and a traffic control strategy;

[0021] The control point is a control strategy release point set in advance in the controlled section according to road control requirements.

[0022] According to a specific implementation, in the above-mentioned active road traffic safety management and control method, the optimization algorithm is a genetic algorithm.

[0023] According to a specific implementation, in the above-mentioned active road traffic safety control method, the traffic flow prediction model is pre-constructed based on the improved TST model;

[0024] Among them, the improved TST model is a TST model with an additional position vector encoding layer and a multi-head attention mechanism layer, and the position vector encoding layer and the multi-head attention mechanism layer are used to model the time series information of the input vector.

[0025] According to a specific implementation, in the above-mentioned active road traffic safety control method, the position vector encoding layer adopts a learning position encoder.

[0026] According to a specific implementation, in the above-mentioned active road traffic safety control method, the improved TST model further includes: a mask layer arranged between the position vector encoding layer and the multi-head attention mechanism layer;

[0027] The mask layer fills and masks the position-encoded input vector based on a Softmax function.

[0028] According to a specific implementation, in the above-mentioned active road traffic safety control method, the traffic risk prediction model is pre-constructed by the following method, including:

[0029] Acquire historical traffic data and historical accident data corresponding to the target road, and determine multiple target risk level intervals based on the historical traffic data and historical accident data;

[0030] constructing a plurality of data sample vectors based on the historical traffic data, and normalizing and labeling the data sample vectors with risk levels based on a plurality of target risk level intervals;

[0031] The convolutional neural network is trained using the labeled data sample vectors, and after the convolutional neural network meets the conditions for convergence, the trained convolutional neural network is used as the traffic risk prediction model.

[0032] According to a specific implementation, in the above-mentioned active road traffic safety control method, the traffic risk prediction model is pre-constructed by the following method, including:

[0033] Traffic conflict data corresponding to a target road is acquired, and a plurality of target risk level intervals are determined based on the traffic conflict data; and the traffic risk prediction model is constructed based on the traffic conflict data and its target risk level intervals.

[0034] Another aspect of the present invention provides a road traffic safety active management and control device, comprising: an acquisition unit, a first calculation unit, a plurality of parallel second calculation units and third calculation units, and a strategy issuing unit;

[0035] The acquisition unit is used to acquire traffic data of a target road in real time, and the target road includes: a plurality of controlled road sections;

[0036] The first calculation unit is used to determine, for each of the controlled road sections, whether the acquired traffic data has a traffic accident. If so, one of the second calculation units is started for the controlled road section where the accident occurred, and one of the third calculation units is started for the remaining controlled road sections; if not, the third calculation unit is started for each of the controlled road sections;

[0037] The second computing unit is used to formulate an emergency control strategy for the controlled road section where the traffic accident occurred;

[0038] The third calculation unit is used to extract first traffic flow data from the acquired traffic data based on a first preset time window, generate predicted traffic flow data based on the first traffic flow data using a pre-built traffic flow prediction model, generate predicted traffic data based on the predicted traffic flow data, and generate a first risk level based on the predicted traffic data using the pre-built risk prediction model; and determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic flow data using an optimization algorithm;

[0039] The strategy publishing unit is used to publish the emergency control strategy or active control strategy corresponding to each of the controlled road sections.

[0040] According to a specific implementation, in the above-mentioned road traffic safety active control device, the traffic data includes: driver data, traffic flow data, road data, and environmental data;

[0041] The driver data includes: information on fatigue and dangerous driving behavior;

[0042] The traffic flow data includes: vehicle speed information, vehicle type information, and cross-sectional traffic flow information;

[0043] The road information includes: road line type, number of lanes, and lane width information;

[0044] The environmental information includes: visibility, rainfall, snowfall, road friction coefficient, wind force, and wind direction information;

[0045] The acquisition unit is configured to: acquire driver data and traffic flow data from a roadside perception device, and read road information and environmental information of a target road from a vehicle-road information system.

[0046] According to a specific implementation, in the above-mentioned road traffic safety active control device, the second computing unit is configured as follows:

[0047] Taking the traffic accident as a time node, extracting second traffic flow data from the acquired traffic data based on a second preset time window, using a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, generating predicted traffic data based on the predicted traffic flow data, using the pre-constructed risk prediction model to generate a second risk level based on the second traffic flow data, and using the optimization algorithm to generate the emergency control strategy based on the second risk level and the predicted traffic flow data.

[0048] According to a specific implementation, in the above-mentioned road traffic safety active control device, the third calculation unit includes:

[0049] An extraction module, configured to extract first traffic flow data from the acquired traffic data based on a first preset time window;

[0050] A traffic flow prediction module, configured to generate predicted traffic flow data according to the first traffic flow data using a pre-built traffic flow prediction model, and to generate predicted traffic data based on the predicted traffic flow data;

[0051] A risk prediction module, configured to generate a first risk level according to the predicted traffic data using a pre-built risk prediction model;

[0052] A strategy generation module is used to use an optimization algorithm to determine the active control strategy for the current time period of the controlled section according to the first risk level and the predicted traffic flow data.

[0053] Another aspect of the present invention provides a road traffic safety active management and control system, comprising:

[0054] A roadside sensing device, used to obtain real-time traffic data of a target road and transmit it to the road traffic safety active control device, wherein the roadside sensing device is arranged at intervals in a plurality of controlled sections of the target road;

[0055] A road traffic safety active control device, used to generate an emergency control strategy or an active control strategy for a target road using the above-mentioned road traffic safety active control method, and output it to the strategy issuing device;

[0056] A strategy issuing device is arranged at intervals in a plurality of controlled sections of a target road, and is used for visually presenting the emergency control strategy or the active control strategy.

[0057] According to a specific implementation, in the above-mentioned road traffic safety active management and control system, the roadside sensing equipment includes: radar, camera, and radar-vision integrated device.

[0058] According to a specific implementation, in the above-mentioned road traffic safety active management and control system, the policy issuing device includes: a variable information board and a V2X device.

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

[0060] 1. The method provided in the embodiment of the present invention obtains traffic data of multiple controlled sections in real time. When a traffic accident occurs on the controlled section, an emergency control strategy is generated to perform accident control. When no traffic accident occurs on the controlled section, predicted traffic flow data is generated based on the pre-built traffic flow prediction model according to the real-time traffic flow data, and then predicted traffic data is generated. The predicted traffic data is then combined with the accident risk model to predict the risk level of the next time period according to the predicted traffic data, thereby combining traffic flow prediction with accident risk prediction, and using an optimization algorithm to formulate an active control strategy based on the prediction results. Accordingly, the method pre-establishes traffic flow, predicts the risk status of the current section, and uses an optimization algorithm to actively predict the changes in the risk status of traffic flow on the controlled section according to the risk status when no accident occurs, and takes relevant control measures for high-risk traffic flow status, thereby effectively reducing the number of accidents based on active safety control, and achieving an improvement in road traffic safety level and traffic efficiency.

[0061] 2. The method provided in the embodiment of the present invention, on the basis of conventional emergency control strategies, uses a pre-built accident risk model to evaluate the risk level according to the traffic flow data corresponding to the accident when an accident is detected, and formulates the control strategy according to the risk level; accordingly, the method can efficiently and accurately formulate an emergency strategy that matches the accident when an accident occurs, thereby improving the level of road safety.

[0062] 3. The improved TST model provided in the embodiment of the present invention uses the attention mechanism and position vector to capture the long-term dependencies of time series data, allowing information to propagate in longer sequences and can be adapted to short-term predictions. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A flow chart of a method for active control of road traffic safety according to an exemplary embodiment of the present invention;

[0064] Figure 2 A target road schematic diagram of an exemplary embodiment of the present invention;

[0065] Figure 3a A first schematic diagram of dividing a target road into controlled sections according to an exemplary embodiment of the present invention;

[0066] Figure 3b A second schematic diagram of dividing a target road into controlled sections according to an exemplary embodiment of the present invention;

[0067] Figure 3c A third schematic diagram of dividing a target road into controlled sections according to an exemplary embodiment of the present invention;

[0068] Figure 3d A fourth schematic diagram of dividing a target road into controlled sections according to an exemplary embodiment of the present invention;

[0069] Figure 4 A schematic diagram of an activation strategy for a control point on a controlled road section according to an exemplary embodiment of the present invention;

[0070] Figure 5 A schematic diagram of a process of generating a control strategy using a genetic algorithm according to an exemplary embodiment of the present invention;

[0071] Figure 6 A schematic diagram of gene coding of an exemplary embodiment of the present invention;

[0072] Figure 7 This is a schematic diagram of the classic Transformer model architecture;

[0073] Figure 8 It is a schematic diagram of the improved TST model architecture of an exemplary embodiment of the present invention;

[0074] Figure 9a Schematic diagram of the prediction effect of the improved TST model of the exemplary embodiment of the present invention Figure 1 ;

[0075] Figure 9b Schematic diagram of the prediction effect of the improved TST model of the exemplary embodiment of the present invention Figure 2 ;

[0076] Fig.10 A schematic diagram of a highway for verifying model performance according to an exemplary embodiment of the present invention;

[0077] Fig.11a Schematic diagram of the LSTM model prediction effect of an exemplary embodiment of the present invention Figure 1 ;

[0078] Fig.11b Schematic diagram of the LSTM model prediction effect of an exemplary embodiment of the present invention Figure 2 ;

[0079] Fig.12 A schematic diagram of a process for pre-building an accident risk prediction model according to an exemplary embodiment of the present invention;

[0080] Fig.13 A schematic diagram of road risk level classification according to an exemplary embodiment of the present invention;

[0081] Fig.14 A schematic diagram of a traffic incident simulation according to an exemplary embodiment of the present invention;

[0082] Fig.15 A schematic diagram of the architecture of an active road traffic safety control system according to an exemplary embodiment of the present invention;

[0083] Fig.16A schematic diagram of the hardware architecture of an active road traffic safety control device according to an exemplary embodiment of the present invention;

[0084] Fig.17 A schematic diagram of the architecture of an active road traffic safety control device (software unit) according to an exemplary embodiment of the present invention;

[0085] Fig.18 A schematic diagram of a ramp control section application of an exemplary embodiment of the present invention;

[0086] Fig.19 A schematic diagram of a tunnel control section application of an exemplary embodiment of the present invention;

[0087] Fig. 20 It is a schematic diagram of the application of accident section control road section according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0088] The present invention is further described in detail below in conjunction with test examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.

[0089] Example 1

[0090] Figure 1 A method for active control of road traffic safety according to an exemplary embodiment of the present invention is shown, comprising:

[0091] S1. Acquire traffic data of a target road in real time, where the target road includes: a plurality of controlled road sections;

[0092] S2. For each of the controlled road sections, determine whether there is a traffic accident based on the acquired traffic data. If so, formulate an emergency control strategy; if not, extract first traffic flow data from the acquired traffic data based on a first preset time window, use a pre-built traffic flow prediction model to generate predicted traffic flow data based on the first traffic flow data, generate predicted traffic data based on the predicted traffic flow data, use a pre-built risk prediction model to generate a first risk level based on the predicted traffic data; and use an optimization algorithm to determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic data;

[0093] S3. Release the emergency control strategy or active control strategy corresponding to each controlled road section.

[0094] Among them, the above-mentioned traffic accidents include: rear-end collisions, side collisions, rollover accidents, continuous collisions, etc.; the above-mentioned traffic flow prediction model can adopt one of the time series models such as LSTM, TCN time series convolutional neural network, BILSTM, etc., and the above-mentioned risk prediction model can adopt one of the neural networks such as BP, RBF, etc.; the above-mentioned first preset time window is the time set according to monitoring needs, for example: 5 minutes; the above-mentioned active control strategy is a control strategy set according to actual road control needs, for example: pre-setting one or more combinations of common highway active traffic control strategies as active control strategies, among which common highway active traffic control strategies include: speed control strategy, lane control strategy, ramp control strategy, vehicle type control strategy, emergency lane control strategy, etc.

[0095] It is understandable that existing active traffic control methods often use a single model to predict a single data and generate strategies based on a single data, which will result in poor control effects; however, this application not only takes into account the traffic flow operation conditions at the current moment, but also further takes into account the road traffic operation conditions at future moments, and resolves possible road risks through appropriate control measures at the current moment, thereby maximizing road operation safety; in addition, this patent is able to formulate a control strategy that fully complies with current road conditions and traffic flow conditions, with a higher degree of control accuracy.

[0096] In this embodiment, by acquiring traffic data of multiple controlled sections in real time, when an accident is detected on the controlled section, an emergency control strategy is generated to perform accident control, and when no traffic accident occurs on the controlled section, predicted traffic flow data is generated based on the real-time traffic flow data based on a pre-constructed traffic flow prediction model, and the risk level of the next time period is predicted based on the predicted traffic flow data in combination with the accident risk model, and an active control strategy is formulated based on the prediction results; accordingly, this method predicts the risk status of the current section by pre-establishing traffic flow and risk prediction, and uses an optimization algorithm to actively predict changes in the risk status of traffic flow on the controlled section according to the risk status when no accident occurs, and takes relevant control measures for high-risk traffic flow status, thereby effectively reducing the number of accidents based on active safety control, and achieving an improvement in road traffic safety level and traffic efficiency.

[0097] Example 2

[0098] In a possible implementation, taking the target road in S1 as a highway as an example, Figure 2As shown, the method of pre-dividing a plurality of the controlled sections in a highway is as follows: taking the vehicle entrances and exits of the highway, such as entrance ramps, exit ramps and special sections such as bridges, tunnels and merging areas as key nodes, a highway is divided into multiple sub-sections. Each highway sub-section is the controlled section to be obtained in the active road traffic safety control method. Preferably, when the distance between key nodes is large, key nodes should be added at appropriate positions in the controlled section according to the specific embodiment, and the sub-sections should be divided twice; when two key nodes overlap or are close to each other, the two key points are merged into one key point to divide the controlled section.

[0099] It is understandable that each controlled road section will contain multiple control points (control points for issuing control strategies) and data collection points (for collecting traffic data). In a possible implementation, the control points and data collection points should ideally be installed on the same road section cross section; Figure 3a As shown in the figure, in the main line road control section of the expressway including the merging area, each toll gantry is used as the layout position of the control point and data collection point. If the interval between the toll gantries is too long, a new gantry or variable information board should be set up between two toll gantries that are too far apart as a control point and data collection point according to the actual road conditions. The control point applies corresponding speed control strategies to different types of vehicles in different lanes through the variable information board; the collection point collects traffic data in real time through traffic flow sensing equipment such as cameras and radars; Figure 3b As shown in FIG, in the main highway control section including the entrance ramp and exit ramp, in addition to using the toll gantry as the layout location of the control point and data collection point, corresponding control points and data collection points are also set at the entrance and exit of the ramp; Figure 3c As shown, in the control section with the bridge as the main component, control points and data collection points are set at the entrance and exit of the bridge. When the bridge is long, it is determined whether to set control points and data collection points inside the bridge according to the specific embodiment. The corresponding control points and data collection points are set on the toll gantry for the rest of the main line; Figure 3d As shown, in the control section with the tunnel as the main component, control points and data collection points are set at the tunnel entrance and exit. When the tunnel is long, it is determined whether to set control points and data collection points inside the tunnel according to the specific implementation method. The corresponding control points and data collection points are set on the toll gantry for the remaining main line parts.

[0100] Preferably, Figure 4 As shown in the figure, after a risk point or emergency control point (accident point) appears on the controlled section, the generated control strategy will be sent to multiple control points in the opposite direction of the traffic flow from the risk point or emergency control point, and the activation of multiple control points will be determined according to the control strategy.

[0101] In a possible implementation, the traffic data acquired in the above S1 includes: driver data, traffic flow data, road data, and environmental data; the driver data includes: fatigue, dangerous driving behavior information, etc.; the traffic flow data includes: vehicle speed information, vehicle model information, cross-sectional traffic flow information, etc.; the road information includes: road line type, number of lanes, lane width information, etc.; the environmental information includes: visibility, rainfall, snowfall, road friction coefficient, wind force, wind direction information, etc.; the generation of predicted traffic data based on the predicted traffic flow data includes:

[0102] The predicted traffic flow data is used to replace the traffic flow data in the extracted traffic data, and is integrated with other traffic data (road data, environmental data, etc.) to obtain the predicted traffic data.

[0103] Specifically, the traffic data obtained in this embodiment mainly includes the roadside sensing system built along the highway and the traffic information provided by social vehicles. Among them, the road test sensing equipment built along the highway includes hardware facilities such as video, coil, radar, and weather station. Social information includes traffic flow status and traffic event information provided by passing drivers, as well as road information and environmental information obtained through the Internet and other means; road information includes road line shape, road friction coefficient, etc.; environmental information includes meteorological information and geological disasters and other related information that may affect safe driving.

[0104] According to a specific implementation, in the above-mentioned method for active control of road traffic safety, the method further includes: a judgment step before using an optimization algorithm to determine the active control strategy for the current time period of the controlled road section according to the first risk level and the predicted traffic data, including:

[0105] The judgment step includes: judging whether the first risk level reaches a preset level; if so, using an optimization algorithm to calculate the active control strategy for the current time period of the controlled section based on the first risk level and the predicted traffic data; if not, using a normalized control strategy as the active control strategy for the controlled section.

[0106] It is understandable that in the existing road control technology, there will be some normalized control strategies, such as normalized speed limit strategies for some sections of roads. Therefore, in this embodiment, through the preset risk level judgment mechanism, when the predicted risk level does not meet the preset level and the current section is in a relatively safe operating state, there is no need to search for strategies based on the optimization algorithm, and normalized control strategies can be used directly for control, thereby effectively saving calculation amount and improving the efficiency of active control.

[0107] In a possible implementation, in the above S2, the formulating of an emergency management and control strategy includes:

[0108] Taking the traffic event as a time node, extracting second traffic flow data from the acquired traffic data based on a second preset time window, using a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, using the pre-constructed risk prediction model to generate a second risk level based on the second traffic flow data, and using the optimization algorithm to generate the emergency control strategy based on the second risk level and the predicted traffic flow data.

[0109] The second preset time window is a short time interval (shorter than the first preset time window) set according to actual needs, for example: 30s, 1min.

[0110] It is understandable that in the existing road control technology, there are already some mature emergency control strategies for dealing with sudden traffic accidents. When a traffic accident occurs, the corresponding conventional emergency control strategy can be directly generated. However, the corresponding conventional emergency control strategy is generated based on manual experience, lacks pertinence, and may have the problem of poor control effect. Therefore, in this embodiment, when a traffic incident occurs, by extracting short-term traffic flow data and accurately predicting the short-term risk of the road, and finally combining the optimization algorithm, an emergency control strategy matching the current road incident is generated.

[0111] In one possible implementation, in the above S2, the optimization algorithm takes the minimum accident rate of the current controlled section and the maximum traffic efficiency of the section per unit time as the optimization goals, and iteratively calculates the position of the control point that needs to be activated, and the control strategy corresponding to the activated control point; the active control strategy includes: a speed control strategy associated with the vehicle type and lane, and a traffic control strategy; wherein the control point is a control strategy release point set in advance in the controlled section according to the road control requirements.

[0112] It is understandable that active traffic control can maximize the functions of traffic infrastructure and road network, improve traffic capacity and traffic safety; the current common active traffic control strategies for highways are as follows: Speed ​​control: dynamically adjust the speed limit according to real-time traffic status, road status or weather conditions, provide recommended speed or adjust the speed limit, which can be applied to the entire road section or individual lanes, reduce the vehicle speed gradient, "smooth" traffic flow, make the speed harmonious, improve traffic capacity, and reduce the risk of accidents. It is often used in sections with repeated congestion or significant weather impact; Lane control: often used in accidents or congestion, close or open a single lane, provide closure warnings through dynamic lane control signs, and allow vehicles to safely merge into adjacent lanes; Ramp control: Dynamic control of highway entrance ramps has been widely used and studied in many large cities abroad. Its control methods can be divided into dynamic coordinated control, single-point dynamic control and static control according to the control scope and complexity. Dynamic coordinated control and single-point dynamic control are mainly used in trunk roads, ramps or weaving areas with heavy traffic volume. Dynamic distribution of traffic flow is achieved by controlling the opening and closing of ramps. Vehicle type control: control of specific vehicle types, including speed limits, driving lanes, etc. Emergency lane control: based on the level of congestion during peak hours, accidents during non-peak hours or other situations, the emergency lane (hard shoulder) can be dynamically opened as a lane to improve road capacity and effectively alleviate congestion.

[0113] It is understandable that, for road conditions with large traffic volume, super-multi-lane, and super-wide sections, the speed control strategy can enable drivers to quickly respond to the control strategy after it is released, and the real-time control effect of the speed strategy is better, which is adapted to the needs of rapid control on highways. Therefore, in this embodiment, the speed strategy is set as the core target strategy of the optimization algorithm (other control strategies are added adaptively), and the optimization algorithm is configured to minimize the accident rate of the current controlled section and maximize the traffic efficiency of the section per unit time as the optimization goal. According to the input risk and traffic flow data, the speed control strategy associated with the vehicle model and lane is output. Specifically, the above-mentioned optimization algorithm can be one of the algorithms such as genetic algorithm, simulated annealing algorithm, particle swarm optimization algorithm, etc.

[0114] In a possible implementation, a genetic algorithm is used as the optimization algorithm of this embodiment. It is understandable that with the advent of the era of big data, the order of magnitude of data that the algorithm has to process is getting larger and larger, and the scenarios for processing problems are ever-changing; the overall purpose of the optimization algorithm is to minimize the cost of the entire process (such as money, time, various consumption, etc.), and typical optimization algorithms include: genetic algorithm (GA), taboo algorithm (TS), simulated annealing algorithm (SA), particle swarm algorithm (PSO), difference algorithm (DE), biogeographic algorithm (BBO), etc. Typical optimization algorithms have developed relatively mature and are applied to various optimization scenarios. In the scenario of traffic safety control, there are complex spatial traffic flows and upstream and downstream traffic that affect each other (parallel calculations are required during optimization calculations). Therefore, in this embodiment, a genetic algorithm that is compatible with the scenario requirements is selected as a strategy optimization algorithm, and the advantages of the genetic algorithm's strong global search ability, full use of each solution space point value, and parallel calculation are used to achieve accurate and efficient mining of traffic safety control strategies.

[0115] Specifically, the genetic algorithm optimization consists of four parts: population genotype encoding, fitness function determination, genotype crossover mutation, and determination of iterative solution end conditions; Figure 5 As shown, the vehicle categories and types allowed to enter the lane corresponding to the current controlled road section, the layout of control points and data collection points are input into the genetic algorithm, and the genetic algorithm solves the strategy according to the following steps:

[0116] Step 101: Determine the vehicle categories and types that are allowed to enter a lane in the current controlled section. The vehicle categories are trucks and buses. Trucks can be divided into: Type 1 trucks, Type 2 trucks, Type 3 trucks, and Type 4 trucks; buses can be divided into Type 1 buses, Type 2 buses, Type 3 buses, and Type 4 buses. It should be noted that the vehicle types in this embodiment are divided according to the "Classification of Vehicle Types for Toll Road Vehicle Tolls" (JT / T 489-2019). This specification divides buses into four categories and trucks into six categories. In this embodiment, trucks higher than Type 4 trucks are uniformly classified into Type 4 trucks.

[0117] Step 102: According to the layout of control points and data collection points in the current controlled section, a certain type of motor vehicle allowed to enter a lane is genotyped and randomly generated as an initial population of the corresponding genetic algorithm; wherein the speed control strategy of a certain type of motor vehicle allowed to enter the lane at multiple control points and data collection points in the entire controlled section is represented by the genotype code, such as Figure 6 As shown;

[0118] It should be noted that if the controlled section includes a ramp part, the ramp part coding does not distinguish between vehicle categories and vehicle types, and only limits the speed. Among them, each controlled section contains multiple control points, and the genotype code of each main line control point contains 11 bits. From left to right, the first 2 bits are lane codes. The lane code determines the number of bits of the code according to the actual number of lanes, and the lane value is converted from decimal to the corresponding binary value. The third bit is the vehicle type code, 1 for trucks and 0 for buses. Bits 4-6 are vehicle type codes. According to the highway vehicle classification standard, buses and trucks are divided into 4 categories, and the corresponding decimal values ​​are represented in binary in the genotype. The seventh bit represents whether the control point is activated, 1 for activation and 0 for inactivation. Bits 8-11 represent the size of the speed control, and the value is the binary value corresponding to the decimal, with a resolution of 10km / h.

[0119] Step 103: Input the initial population generated in step 102 and the road risk level obtained by the risk assessment module into the fitness function once, obtain the fitness value and sort it according to the value.

[0120] Specifically, the first-order fitness function of this step takes the minimum accident rate of a certain type of motor vehicle on one lane of the controlled road section and the maximum road section traffic efficiency per unit time as the optimization goal.

[0121] Step 104, sampling the multiple genotypes corresponding to the different vehicle models obtained in step 103 according to the probability distribution, taking the first 10% of the genotypes, and discarding the last 90% of the genotypes.

[0122] Repeat steps 102 to 104 to obtain multiple genotypes corresponding to all vehicle types allowed to enter a lane.

[0123] Step 105, randomly sample the genotypes corresponding to different vehicle types in a lane obtained in step 104 to obtain a lane genotype set. A lane genotype set includes the genotypes of all vehicle types allowed to enter the lane.

[0124] Specifically, during random sampling, because one genotype corresponds to a control strategy for one vehicle type in one lane in a controlled section, the corresponding genotype can only be sampled once.

[0125] Step 106, repeat step 105, obtain multiple lane genotype sets as initial populations, input the initial populations into the quadratic fitness function, obtain fitness values, and sort the genotypes of different lanes and different vehicle models according to the values.

[0126] Specifically, the quadratic fitness function of this step takes the minimum accident rate for all vehicle types allowed to enter a lane on the controlled road section and the maximum traffic efficiency of the road section per unit time as the optimization goal.

[0127] Among them, modifying the quadratic fitness function of step 106 can meet the traffic efficiency requirements of different vehicle models.

[0128] Step 107, select the genotype with the best fitness obtained in the last sorting in step 106, convert it into control strategies for different vehicle models, and perform iterative end condition judgment. If the iterative end condition is met, the genotype is output as the control strategy for the road. If the iterative end condition is not met, continue to execute the optimization steps 108-109.

[0129] Specifically, the condition for ending the iteration is that the traffic flow per unit time actually collected in this lane can be fully passed within the unit time under the calculated control strategy.

[0130] Step 8, retain the top 10% of the genotypes in 106, perform gene crossover and mutation, wherein the gene crossover process can only be performed between the same type of vehicle models, and the mutation process can only mutate the speed, to generate the initial population for the next round of optimization algorithm.

[0131] Step 9, repeat steps 103-107 until the iteration end condition is met.

[0132] Step 1010, as of step 109, the control strategy for all vehicle types allowed to enter a lane is formulated, and steps 101-109 are repeated to formulate the control strategy for the vehicle types allowed to enter all lanes of the road actually in operation, and obtain the control strategy for all vehicle types allowed to enter all lanes of a controlled section of road.

[0133] Step 1011, repeat steps 101-1010 for different controlled sections to obtain lane-by-lane and vehicle-type speed control strategies for all controlled sections.

[0134] In a possible implementation, the primary fitness function in S103 is as follows:

[0135]

[0136] Among them C jk1 (v i ), C jk2 (Δv i ), C jk3 (δ) is the accident rate of vehicle type k in lane j of the controlled section, v jki is the cross-sectional speed of vehicle type k in lane j of the controlled section, v jkf is the free flow speed of vehicle type k in lane j, δ is the standard deviation of speed in the controlled section, n is the number of control points in the controlled section, β is the risk level, and for every increase in risk level, the accident rate per million kilometers increases by 1. jk4 is the total accident rate of the controlled road section.i is the length of the road covered by each control point in the controlled section, t jki is the time required for a motor vehicle to exit the control point of the controlled road section, T jk It is the time required for a motor vehicle to exit the controlled road section.

[0137] The above fitness function solution must satisfy the minimum accident rate and the minimum travel time, which is C jk4 The value of T jk The values ​​of constitute the non-dominated solutions of the solution set.

[0138] In a possible implementation, the quadratic fitness function in S106 is as follows:

[0139]

[0140] Where C1(v jki )、C2(Δv jki ), C3(δ) is the accident rate of all lanes and vehicle types covered by each control point of the controlled section, and C4 is the total accident rate of the controlled section. c It is the time for each control point of the controlled section to cover all lanes and vehicle types to drive out of the control point of the controlled section. T is the time for each control point of the controlled section to cover all lanes and vehicle types to drive out of the control point of the controlled section.

[0141] The solution to the above quadratic fitness function must satisfy the minimum accident rate and the minimum travel time, that is, the non-dominated solution of the solution set composed of the value of C4 and the value of T.

[0142] In a possible implementation, the iteration termination condition function in the above S107 is as follows:

[0143]

[0144] Where Q s The data collected by this system at time T s =t m The cross-sectional traffic volume in the time window, Q y It is the value of the traffic volume that is expected to increase after the implementation of control measures after the algorithm is optimized. In the case of a traffic accident, it is the predicted traffic flow data for the next time window. m It is the simulated traffic input quantity at time T entered into the traffic simulation software.

[0145] In particular, when Q m At time T s When the whole section is completely passed, the genetic algorithm iteration optimization is terminated, the optimal genotype is output and converted into the corresponding control strategy of the controlled section. m Cannot be within time T sWhen the whole process is completed, the genetic algorithm continues to iterate.

[0146] In a possible implementation, in S2 above, the traffic flow prediction model is pre-built based on an improved TST model. The improved TST model is a TST model with a position vector encoding layer and a multi-head attention mechanism layer added, and the position vector encoding layer and the multi-head attention mechanism layer are used to model the time series information of the input vector.

[0147] It is understandable that in the field, for traffic time series prediction scenarios, the commonly used prediction models are LSTM models or improved models based on LSTM models, but the existing models have the problems of low accuracy and poor applicability. Therefore, in this embodiment, an improved Transformer (TST) model is established. The model uses the attention mechanism and position vector to capture the long-term dependencies of time series data, allowing information to propagate in longer sequences, which can be adapted to short-term predictions and effectively improve the application performance of the model.

[0148] Specifically, Figure 7 The classic Transformer model is shown. The overall model consists of four parts: input, output, encoder, and decoder. The input part includes the source data embedding layer and its position encoder, the target data embedding layer and its position encoder, the output part includes the linear layer and the Softmax layer, and the encoder and decoder are composed of multiple sub-layer connection structures.

[0149] In this embodiment, the core of the improved TST model used is the stacking of encoders. Each encoder layer completes the feature extraction process of the input data once. The TST model removes the decoder part of the previous classic Transformer model and redefines the other parts of the model. The schematic diagram of the model part is shown in the figure. Figure 8 As shown, each part will be described in detail later.

[0150] This model uses the attention mechanism and position vector to capture the long-term dependencies of time series data, allowing information to propagate in longer sequences. It has been applied to feature extraction and time series anomaly detection. Some studies have also attempted to improve the classic Transformer model for short-term traffic flow prediction. However, due to a combination of reasons such as time series data acquisition and model application, the TST model has not yet been fully applied in the field of short-term speed prediction.

[0151] (1) Input part

[0152] Each training sample time series has a length of w, which constitutes a feature vector sequence x t ∈R w =[x1,x2,…,x w], use the Z-Score method to analyze the original feature vector x t After standardization, it is mapped to d-dimensional space through high-order feature extraction. That is:

[0153] u t =w p x t +b p (4)

[0154] In the above formula, w p ∈R d 、b p ∈R d are all parameters that the model can learn, u t ∈R d ,t=0,…,w is the model input vector, which will enter the multi-head self-attention sublayer through position encoding. From this, it can be seen that the original time series segment dimension mapping becomes d, which is also called hidden feature.

[0155] (2) Positional encoding

[0156] In order to enable the model to model time series information, the input vector U∈R w×d =[u1,u2,…,u w ]Add position code W pos ,Right now:

[0157] U′=U+W pos (5)

[0158] Currently, the commonly used position coding methods are trigonometric function position coding and learning position coding. The latter breaks the position invariance of the model and performs better on existing data sets. Therefore, this embodiment adopts the learning position coding method.

[0159] (3) Multi-head attention mechanism

[0160] The mathematical expression of the attention mechanism is as follows: Represent the query, key, and value in the attention mechanism respectively.

[0161]

[0162] In this embodiment, a multi-head attention mechanism is used for time series modeling, and its calculation formula is as follows:

[0163] MultiHead(Q,K,V)=Concat(h1,h2,…,h m )W o (7)

[0164] h i =Attention(QW iq ,KW i k ,VW i v ) (8)

[0165] in, are all learnable model parameters, and m is the number of heads of the multi-head attention mechanism.

[0166] Each time sequence segment may have a different length, so the maximum sequence length w is used in the model, and short samples are padded with arbitrary values. Before calculating the self-attention distribution, the Softmax function is used to generate the padding mask, which adds a large negative value to the padding position, which makes the model ignore the padding position value and allows parallel processing of short sequence segment data.

[0167] In the NLP model, layer normalization is usually used after the multi-head self-attention sublayer and the feed-forward fully connected sublayer are calculated. In order to reduce the impact of outliers, in this embodiment, batch normalization is used for the improved TST model (Text Style Transfer network model) provided in the embodiment of the present application, which can also alleviate the gradient disappearance / explosion, accelerate training, and regularize the effect.

[0168] In a possible implementation, in the above-mentioned active road traffic safety control method, as shown in FIG9 , the traffic flow prediction model is pre-built based on the improved TST model, including:

[0169] Acquire historical traffic flow data corresponding to the target road, and extract multiple data sample vectors from the historical traffic flow data based on the preset time window;

[0170] Using a Z-Score method to perform standardization processing on the plurality of data sample vectors, and training an improved TST model based on the plurality of first data sample vectors;

[0171] After the improved TST model meets the conditions for convergence, the trained improved TST model is used as the traffic flow prediction model.

[0172] Specifically, the acquired time series data (second level) of all vehicles on the main line section of the expressway are sorted out, and the original time series data are divided into a set of multiple time series segments by means of sliding windows; 70% of the time series segment data of each vehicle are randomly selected as the training set, and 30% of the time series segment data are randomly selected as the test set; after the data is standardized, the constructed TST model is used to train and test the data of each vehicle in each lane; finally, the error is analyzed and the model is saved.

[0173] In a possible implementation, the training of the improved TST model includes: optimizing the model using the Adam algorithm, using Dropout to further improve the generalization of the model, using the learning rate annealing algorithm to find the optimal learning rate for model convergence, and selecting GELU as the activation function. Through hyperparameter tuning and result comparison, the learning rate parameter value, batch size, number of iterations, sliding window size, and sliding window step size can be finally achieved.

[0174] In this embodiment, multiple attempts are made on model construction and training hyper-parameter tuning for the target scenario, and finally a high-precision vehicle time-series traffic flow prediction model applicable to all lanes provided in this application is constructed.

[0175] In a further embodiment of the present invention, in order to evaluate and verify the accuracy of the established lane-level speed prediction model, the mean absolute error (MAE) and relative error (MAPE) indicators are used to evaluate the prediction accuracy of the model. The calculation formula is as follows:

[0176]

[0177]

[0178] MAE can directly reflect the deviation between the true value and the predicted value; MAPE refers to the percentage of error to the true value, which can reflect the error level and credibility of the prediction. i and l are the actual speed and predicted speed at time i, and n is the total number of predicted values.

[0179] Figure 9a to Figure 9b The improved TST model used in this embodiment is shown in FIG. Fig.10 The prediction result diagram of the lane-level driving speed of the highway interchange is shown. From the figure, it can be seen that the prediction accuracy of the improved TST model used in this embodiment can reach 98.35%, with high prediction accuracy and good prediction effect. Take the prediction results of two vehicles in lane 1 and lane 2 as an example:

[0180] Figure 11a to Figure 11b The LSTM model commonly used in this field is shown. Fig.10 As shown in the prediction results of the highway, it can be seen from the figure that the prediction accuracy of the LSTM model can reach 95.21%. By comparing the two vehicles in lane 1 and lane 2, it can be seen that the model average absolute error proposed by the improved TST model adopted in this embodiment is smaller.

[0181] In a possible implementation, the first preset time period is 5 minutes. By acquiring real-time traffic flow data for each period, the traffic flow of the road section is predicted using the established model. The time series speed in the above model corresponds to the 5-minute traffic flow. Time series traffic flow data is established and processed to obtain predicted traffic flow data for the next period.

[0182] In a possible implementation, in S2 above, the traffic risk prediction model is pre-constructed by the following method, including: obtaining historical traffic data and historical event data corresponding to the target road, and determining multiple target risk level intervals based on the historical traffic data and historical event data; constructing multiple data sample vectors based on the historical traffic data, and normalizing and risk level-labeling the data sample vectors based on the multiple target risk level intervals; using the labeled data sample vectors to train a convolutional neural network, and after the convolutional neural network meets the convergence conditions, using the trained convolutional neural network as the traffic risk prediction model.

[0183] Fig.12 The flow chart of the principle of the traffic risk prediction model is shown. Specifically, the risk prediction model provided in this embodiment collects 28 data items in seven dimensions, namely, road information, environmental information, traffic information, vehicle speed information, bad traffic behavior, vehicles, and time, and uses a convolutional neural network method based on traffic flow sequences to predict the probability of traffic accidents and the number of accident vehicles. Specifically, Table 1 shows the input of the model, and the output of the model is the road risk level and road risk coefficient:

[0184] Table 1 Model input

[0185]

[0186] Specifically, since traffic events have the characteristic of temporal continuity, the model collects data of various dimensions over a certain period of time to form a sequence as input data. Since the units and spans of each data item are different, the data with larger numbers have greater weights, so all data are normalized and preprocessed as input to the model. For inputs with maximum values, such as days of the week and time (24 hours), they can be directly normalized to between 0 and 1. For inputs without maximum or minimum values, such as the maximum vehicle speed, it is considered that if the speed exceeds 150 km / h, it is a very dangerous behavior and has reached the maximum risk. Therefore, the speed between 0 and 150 will be normalized to 0 to 1, and the speed exceeding 150 will be directly 1. These maximum risk values ​​will be set by traffic experts.

[0187] The model uses a multi-channel convolution layer to extract features. Multiple large-core neural networks perform convolutions in parallel and extract features independently. Using a large convolution kernel can cover a wider range during convolution, have a larger receptive field, and can sense features in a wider range. Multiple cores extract features independently, which is equivalent to multiple models in parallel, and the extracted features are more complete and diversified. After the features of multiple channels are spliced, the fully connected layer of the neural network is used for feature fusion, so that the final predicted probability is associated with each extracted feature, and finally the traffic accident risk is comprehensively predicted.

[0188] During network training, since there are much more data when safety occurs than when accidents occur, in order to meet the balance of accidents, the number of samples with a small difference will be selected. For training data, a higher proportion of accident data is also used to improve the reliability of the model. When marking, four levels of accident risks and treatment plans are set in advance according to the actual situation of road accidents, as well as the risk threshold (0-1) corresponding to each plan. According to the actual traffic accident conditions and the severity of the start-up plan, the accident plan level set in advance is applied, and the risk coefficient is manually marked.

[0189] When calculating the accuracy of the model, that is, the loss calculation, the mean square error loss calculation (MSELoss) commonly used in regression problems is used to measure the difference between the predicted probability and the true probability. According to the network prediction, the true label and the loss, the gradient back propagation is performed to update the network parameters, narrow the gap between the network prediction probability and the true probability, and make the model prediction more accurate.

[0190] The model predicts the risk of accidents and classifies the risks according to the set thresholds, which are divided into no risk, level 1, level 2, level 3, and level 4. Based on the predicted risk level, the traffic flow is guided and controlled in advance to avoid accidents as much as possible, and police and medical personnel are mobilized according to the scale of the accident to ensure the personal and property safety of traffic participants.

[0191] Compared with the traditional weighted prediction algorithm, the model provided in this embodiment avoids the subjectivity and incompleteness of artificially setting weights. Compared with the BP network, the number of network channels and depth are larger; the increase in network depth is equivalent to greater network complexity, stronger network prediction and expression capabilities, and the increase in the number of network channels is that multiple neural network convolution layers are parallel and each extracts features, which is equivalent to multiple models in parallel, and finally the prediction results are comprehensively calculated.

[0192] Compared with the traditional convolutional network, the accident risk prediction model provided in this embodiment inputs continuous time data, takes into account the time correlation between data, and is more in line with traffic application scenarios. Due to the different data units and spans, the data with larger numbers has a greater weight, so all data are normalized and preprocessed, which can better integrate and process all dimensional data. Compared with the traditional convolutional network, the input information has been selected, which is equivalent to data preprocessing, and does not contain redundant information, so it is faster. The network uses common operators with high parallelism, which is convenient for deployment on the edge computing end. The equipment is deployed on the road test, and the prediction results can be obtained as quickly as possible to control the vehicle. More and more hardware devices (computers, edge terminals, mobile phones) support hardware acceleration of neural networks, increase the parallelism of calculations and equipment utilization, and make the network reasoning faster. The network is convenient to deploy on the edge computing end, and only needs to send the prediction results to the command center, which reduces the transmission cost, reduces the server computing and storage pressure, and facilitates the unified decision-making of the server. And the edge computing device itself has the advantages of low price, low power consumption, and easy deployment.

[0193] Specifically, the training data set of the above risk prediction model is constructed by the following method: Fig.13 As shown, the road risk level is divided in advance, based on the actual project, with 5 minutes as the data collection window length, and the historical traffic flow data of the road is collected multiple times; by analyzing the historical data, the data with road visibility greater than 300 meters, no snow and ice accumulation, and no abnormal driving behavior of the driver is obtained. The data is the traffic flow data of the unit time window with free flow, and multiple free flow traffic flow data constitute a data set with a risk level of 0. This embodiment constructs data sets of other risk levels based on this.

[0194] The traffic flow data includes flow data output by simulation software, time-series speed change data of each motor vehicle, and time-series lane change data.

[0195] The different speed limits under different road conditions are as follows:

[0196] Table 2 Speed ​​limits for different road conditions

[0197] Road visibility (m) Road snow accumulation (mm) Road ice accumulation (mm) Speed ​​(km / h) <300 <5 <2 80 <200 <10 <4 60 <100 <15 <6 40 <50 >20 >6 20

[0198] like Fig.14 Through secondary development of traffic simulation software, one or more motor vehicles are controlled to generate different traffic events, and traffic flow data of the entire road area is collected when traffic events occur. By controlling motor vehicles to stop in lanes, lane closures caused by traffic events are simulated.

[0199] Specifically, when constructing a data set with a road risk level of 1, by exhaustively enumerating a combination of certain traffic events and road conditions, converting them into input parameters for traffic simulation software and performing structured collection of traffic flow data, a data set with a road risk level of 1 is obtained.

[0200] Preferably, when constructing a data set with a road risk level of 2, in addition to exhaustively enumerating a combination of certain traffic events and road conditions and converting them into input parameters for traffic simulation software, it is also necessary to exhaustively enumerate all lanes of the current road and control one or more motor vehicles to stop in lanes that are 1 / 3 of the total number of lanes due to the current traffic event, thereby simulating a partial road closure. In this whole process, structured traffic flow data collection is performed to obtain a data set with a road risk level of 2.

[0201] Preferably, when constructing a data set with a road risk level of 3, it is necessary to exhaustively list a combination of certain traffic events and road conditions and convert them into traffic simulation software input parameters, exhaustively list all lanes of the current road and control one or more motor vehicles to stop in lanes of 2 / 3 of the total number of lanes due to the current traffic event, so as to simulate the partial closure of the road. In this process, structured traffic flow data collection is performed to obtain a data set when the road risk level is 3.

[0202] Preferably, when constructing a data set with a road risk level of 4, it is necessary to exhaustively list a combination of certain traffic events and road conditions and convert them into traffic simulation software input parameters, exhaustively list all lanes of the current road and control one or more motor vehicles to stop in all lanes due to the current traffic event, so as to simulate a road full closure. In this process, structured traffic flow data collection is performed to obtain a data set when the road risk level is 4.

[0203] Specifically, Fig.14 , by collecting traffic flow data that meets non-accident and non-free flow conditions in historical traffic data, a data set with a road risk level of 1 is constructed. Preferably, when constructing a data set with a road risk level of 2, data in historical accident data that causes lane closures to reach 1 / 3 of all lanes are collected to obtain a data set with a road risk level of 2. Preferably, when constructing a data set with a road risk level of 3, data in historical accident data that causes lane closures to reach 2 / 3 of all lanes are collected to obtain a data set with a road risk level of 3. Preferably, when constructing a data set with a road risk level of 4, data in historical accident data that causes all lane closures are collected to obtain a data set with a road risk level of 4.

[0204] In a possible implementation, if no traffic event data is obtained on the target road (such as a newly built road), the accident risk model can be pre-built using the following two methods, including:

[0205] 1. Use similar road scenes in the surrounding area as a substitute, establish an initial model through simulation, and modify the parameters of the risk prediction model after accumulating event data;

[0206] 2. Collect traffic conflict data on the road section (such as the relative distance between two vehicles divided by the speed difference, emergency braking data, and emergency deceleration data), use traffic conflicts to indicate the safety level of traffic flow on the road section, and establish a corresponding relationship between traffic conflicts and traffic flow risks.

[0207] Furthermore, the above-mentioned road traffic safety active control method also includes: S4. After generating the corresponding active control strategy, the corresponding active control strategy is sent to the remote control center system so that the remote control center system publishes the strategy in the information network.

[0208] Example 3

[0209] Another aspect of the present invention, as Fig.15 As shown, a road traffic safety active control system is provided, comprising:

[0210] A roadside sensing device, used to obtain real-time traffic data of a target road and transmit it to the road traffic safety active control device, wherein the roadside sensing device is arranged at intervals in a plurality of controlled sections of the target road;

[0211] An active road traffic safety control device, which is used to generate an emergency control strategy or an active control strategy for a target road using the active road traffic safety control method of the above-mentioned embodiment 1 or embodiment 2, and output it to the strategy issuing device;

[0212] A strategy issuing device is arranged at intervals in a plurality of controlled sections of a target road, and is used for visually presenting the emergency control strategy or the active control strategy.

[0213] In one possible implementation, in the above-mentioned active road traffic safety management and control system, the multiple monitoring modules include: radar, camera module, and radar-vision integrated device.

[0214] In a possible implementation, in the above-mentioned road traffic safety active management and control system, the policy issuing device includes: a variable information board and a V2X device.

[0215] In one possible implementation, Fig.16As shown, the hardware carrier of the above-mentioned active road traffic safety control device is an electronic device, which includes a processor, a network interface and a memory, and the processor, the network interface and the memory are interconnected, wherein the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the active road traffic safety control method of the above-mentioned embodiment 1 or embodiment 2.

[0216] Another aspect of the present invention, as Fig.17 As shown, a road traffic safety active control device (i.e., a software functional unit) is provided, which is used to implement the road traffic safety active control method of the above-mentioned embodiment 1 or embodiment 2, including: an acquisition unit, a first calculation unit, a plurality of parallel second calculation units and third calculation units, and a strategy issuing unit;

[0217] The acquisition unit is used to acquire traffic data of a target road in real time, and the target road includes: a plurality of controlled road sections;

[0218] The first calculation unit is used to determine, for each of the controlled road sections, whether the acquired traffic data has a traffic accident. If so, one of the second calculation units is started for the controlled road section where the accident occurred, and one of the third calculation units is started for the remaining controlled road sections; if not, the third calculation unit is started for each of the controlled road sections;

[0219] The second computing unit is used to formulate an emergency control strategy for the controlled road section where the traffic accident occurred;

[0220] The third calculation unit is used to extract first traffic flow data from the acquired traffic data based on a first preset time window, generate predicted traffic flow data based on the first traffic flow data using a pre-constructed traffic flow prediction model, generate predicted traffic data based on the predicted traffic flow data, and generate a first risk level based on the predicted traffic data using the pre-constructed risk prediction model; and determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic data using an optimization algorithm;

[0221] The strategy publishing unit is used to publish the emergency control strategy or active control strategy corresponding to each of the controlled road sections.

[0222] In a possible implementation, in the above-mentioned active road traffic safety control device, the acquisition unit is configured to: acquire driver data and traffic flow data from a roadside sensing device, and read road information and environmental information of the target road from a vehicle-road information system.

[0223] According to a specific implementation, in the above-mentioned road traffic safety active control device, the third computing unit includes: an extraction module, used to extract first traffic flow data from the acquired traffic data based on a first preset time window; a traffic flow prediction module, used to generate predicted traffic flow data based on the first traffic flow data using a pre-built traffic flow prediction model, and generate predicted traffic data based on the predicted traffic flow data; a risk prediction module, used to generate a first risk level based on the predicted traffic data using a pre-built risk prediction model; a strategy generation module, used to determine the active control strategy for the current time period of the controlled section based on the first risk level and the predicted traffic data using an optimization algorithm.

[0224] According to a specific implementation, the above-mentioned second calculation unit is configured to: take the traffic accident as the time node, extract second traffic flow data from the acquired traffic data based on a second preset time window, use a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, generate predicted traffic data based on the predicted traffic flow data, use the pre-constructed risk prediction model to generate a second risk level based on the second traffic flow data, and use the optimization algorithm to generate the emergency control strategy based on the second risk level and the predicted traffic data.

[0225] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.

[0226] It should be understood that the system / device disclosed in the present invention can be implemented in other ways. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the communication connection between modules can be through some interfaces, indirect coupling or communication connection of servers or units, which can be electrical or other forms.

[0227] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each module may exist physically separately, or two or more modules may be integrated into one processing unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional unit.

[0228] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0229] Example 4

[0230] In a further embodiment of the present invention, the specific operation method of performing active control using the road traffic safety active control device provided in Example 3 of the present invention is explained in combination with different controlled road sections.

[0231] like Fig.18 As shown in the figure, the current controlled section is a one-way three-lane road with an entrance ramp. Control points and data acquisition equipment are set on the toll gantry. The distance between control point 2 and control point 4 is too long, so a new control point is added in the middle.

[0232] At this time, the method for controlling using the above-mentioned road traffic safety active control device includes the following steps:

[0233] Step 1: Set the time window step to 5 minutes, and obtain the traffic data of control point 1, control point 2, control point 3, and control point 4 at the next time step through the traffic flow prediction module in the road traffic active safety management and control system.

[0234] Step 2: Input the road perception information and the traffic prediction data of each control point into the risk assessment module in the road traffic active safety management and control system to obtain the risk level prediction results {d1, d2, d3, d4} of the current four control points. When the risk prediction results of the four control points are all risk-free, motor vehicle control is performed in accordance with the normalized control strategy. When only one of the four control points has a risk prediction result, the control point is used as the control terminal to formulate a control strategy. When multiple control points have risk prediction results among the four control points, the control point with the highest risk level is the control terminal, and a control strategy is formulated. In this embodiment, the next moment predicted risk level of control point 4 is the highest, and control point 4 is used as the control terminal.

[0235] Step 3, execute the control strategy formulation module in the road traffic active safety management control system, and divide the lanes into lane 1, lane 2, and lane 3 from right to left according to the road driving rules and the driving direction. In this embodiment, the vehicle categories are divided into trucks and buses. Buses are divided into type 1, type 2, type 3, and type 4 buses according to the highway toll standards. Trucks are divided into type 1 trucks, type 2 trucks, type 3 trucks, and type 4 trucks. Among them, all types higher than type 4 trucks are classified into type 4 trucks.

[0236] Step 4: Determine the vehicle types and speed limits allowed in different lanes of the current road section. In this embodiment, the corresponding limits are:

[0237] Lane 1 is a truck lane, which allows Type 1 trucks, Type 2 trucks, Type 3 trucks, Type 4 trucks, Type 1 buses, Type 2 buses, Type 3 buses and Type 4 buses to enter. The minimum speed limit is 60km / h and the maximum speed limit is 80km / h.

[0238] Lane 2 is a normal lane, allowing Type 1 trucks, Type 1 buses, Type 2 buses, Type 3 buses and Type 4 buses to enter. The minimum speed limit is 80km / h and the maximum speed limit is 100km / h.

[0239] Lane 3 is an overtaking lane, allowing Type 1 trucks, Type 1 buses and Type 2 buses to enter. The minimum speed limit is 100km / h and the maximum speed limit is 120km / h.

[0240] Step 5: Generate the genotype corresponding to the type of vehicle allowed to enter each lane according to the control strategy generation method in the content of the invention, and solve it according to the optimization strategy of the genetic algorithm.

[0241] In particular, in the control section including the entrance ramp, the ramp is a special road section, and the control points therein should also be input into the strategy generation module of this device.

[0242] Step 6: Output the vehicle control strategy for the control section.

[0243] Example 5

[0244] like Fig.19 As shown in the figure, the current controlled section is a one-way three-lane road with three tunnels. There is no installed toll gantries in the entire section. The first and second tunnels are close to each other. According to the control point layout principle, they are merged into one control point. The third tunnel is longer, so a control point is added in the middle. New control points are added at the entrance and exit of the tunnel.

[0245] At this time, the method for controlling using the above-mentioned road traffic safety active control device includes the following steps:

[0246] Step 1: Set the time window step to 5 minutes, and obtain the traffic data of control point 1, control point 2, control point 3, and control point 4 at the next time step through the traffic flow prediction module in the road traffic active safety management and control system.

[0247] Step 2: Input the road perception information and the traffic prediction data of each control point into the risk assessment module in the road traffic active safety management and control system to obtain the risk level prediction results {d1, d2, d3, d4} of the current four control points. When the risk prediction results of the four control points are all risk-free, motor vehicle control is performed in accordance with the normalized control strategy. When only one of the four control points has a risk prediction result, the control point is used as the control terminal to formulate a control strategy. When multiple control points have risk prediction results among the four control points, the control point with the highest risk level is the control terminal, and a control strategy is formulated. In this embodiment, the next moment predicted risk level of control point 4 is the highest, and control point 4 is used as the control terminal.

[0248] Step 3, execute the control strategy formulation module in the road traffic active safety management control system, and according to the road driving rules, the lanes are divided into 1 lane, 2 lanes, and 3 lanes. In this embodiment, the vehicle categories are divided into trucks and buses. Buses are divided into large buses and small buses according to the management requirements of the operation center, and trucks are divided into large trucks and small trucks.

[0249] Among them, small passenger cars have 7 seats or less, and the rest are classified as large passenger cars. Small trucks have 2 axles and a load capacity of less than 2 tons, and the rest are classified as large trucks.

[0250] Step 4, respectively determine the vehicle types and speed limits allowed to enter different lanes. In this embodiment:

[0251] Lane 1 is a truck lane, which allows small trucks, large trucks, small buses, and large buses to enter, with a maximum speed limit of 80km / h.

[0252] Lane 2 is a regular lane, allowing small trucks, small buses and large buses to enter with a maximum speed limit of 100km / h.

[0253] Lane 3 is an overtaking lane, allowing small trucks and small passenger cars to enter, with a maximum speed limit of 120km / h.

[0254] Step 5: Generate the genotype corresponding to the type of vehicle allowed to enter each lane according to the control strategy generation method in the content of the invention, and solve it according to the optimization strategy of the genetic algorithm.

[0255] Step 6: Output the vehicle control strategy for the control section.

[0256] Example 6

[0257] like Fig. 20 As shown, the currently controlled road section is a one-way three-lane road, including the main road line and an accident point. The toll gantries are reasonably spaced, and no additional control points are added. The emergency control module of the active traffic safety management control system is executed. The emergency control module can generate conventional emergency control strategies, or use the time of the traffic accident as the time node, use the pre-built traffic flow prediction model to generate predicted traffic flow data based on the traffic flow data of the current time window, use the pre-built risk prediction model to evaluate the road risk level, and use the genetic algorithm to generate the corresponding emergency control strategy based on the obtained risk assessment level and the predicted traffic flow data.

[0258] According to the invention content of this patent, the road traffic active safety management control system of this example operates as follows:

[0259] Step 1: Locate the location of the accident point. In this embodiment, an accident occurs on the road section downstream of control point 4, so control point 4 serves as the control end.

[0260] Step 2, execute the control strategy formulation module in the road traffic active safety management control system, and according to the road driving rules, the lanes are divided into 1 lane, 2 lanes, and 3 lanes. In this embodiment, the vehicle categories are divided into trucks and buses. According to the management requirements of the operation center, buses are divided into large buses and small buses, and trucks are divided into large trucks and small trucks.

[0261] Among them, small passenger cars have 7 seats or less, and the rest are classified as large passenger cars. Small trucks have 2 axles and a load capacity of less than 2 tons, and the rest are classified as large trucks.

[0262] Step 3, respectively determine the vehicle types and speed limits allowed to enter different lanes. In this embodiment:

[0263] Lane 1 is a truck lane, which allows small trucks, large trucks, small buses, and large buses to enter, with a maximum speed limit of 80km / h.

[0264] Lane 2 is a regular lane, allowing small trucks, small buses and large buses to enter with a maximum speed limit of 100km / h.

[0265] Lane 3 is an overtaking lane, allowing small trucks and small passenger cars to enter, with a maximum speed limit of 120km / h.

[0266] In particular, based on historical data experience, the vehicle running speeds under different accident situations can be collected to lower the maximum speed limit and accelerate the convergence of the algorithm.

[0267] Step 4: Generate the genotype corresponding to the type of vehicle allowed to enter each lane according to the control strategy generation method in the invention content, and solve it according to the optimization strategy of the genetic algorithm.

[0268] Step 5: Output the vehicle control strategy for the control section.

[0269] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for active control of road traffic safety, characterized in that: include: Acquire traffic data of a target road in real time, wherein the target road includes: a plurality of controlled road sections; For each of the controlled road sections, determine whether there is a traffic accident based on the acquired traffic data, and if so, formulate an emergency control strategy; if not, extract first traffic flow data from the acquired traffic data based on a first preset time window, use a pre-built traffic flow prediction model to generate predicted traffic flow data based on the first traffic flow data, generate predicted traffic data based on the predicted traffic flow data, use a pre-built risk prediction model to generate a first risk level based on the predicted traffic data; and use an optimization algorithm to determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic data; Release the emergency control strategy or active control strategy corresponding to each controlled road section; The optimization algorithm takes the minimum accident rate of the currently controlled road section and the maximum traffic efficiency of the road section per unit time as the optimization goal, and iteratively calculates the position of the control point that needs to be activated, and the optimal active control strategy corresponding to the activated control point; the active control strategy includes: speed control strategy associated with vehicle type and lane, and traffic control strategy; The control point is a control strategy release point set in advance in the controlled section according to road control requirements.

2. The method for active road traffic safety control according to claim 1, characterized in that: The traffic data includes: driver data, traffic flow data, road data, and environmental data; The driver data includes: information on fatigue and dangerous driving behavior; The traffic flow data includes: vehicle speed information, vehicle type information, and cross-sectional traffic flow information; The road data includes: road line type, number of lanes, and lane width information; The environmental data include: visibility, rainfall, snowfall, road friction coefficient, wind force, and wind direction information.

3. The active road traffic safety control method according to claim 1, characterized in that: The method further includes: before using the optimization algorithm to determine the active control strategy for the current time period of the controlled road section according to the first risk level and the predicted traffic data, a judgment step includes: The judgment step includes: judging whether the first risk level reaches a preset level; if so, using an optimization algorithm to calculate the active control strategy for the current time period of the controlled section based on the first risk level and the predicted traffic data; if not, using a normalized control strategy as the active control strategy for the controlled section.

4. The method for active road traffic safety control according to claim 1, characterized in that: The formulation of the emergency management and control strategy includes: taking the traffic accident as a time node, extracting second traffic flow data from the acquired traffic data based on a second preset time window, using a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, generating predicted traffic data based on the predicted traffic flow data, using a pre-constructed risk prediction model to generate a second risk level based on the predicted traffic data; and using the optimization algorithm to generate the emergency management and control strategy based on the second risk level and the predicted traffic data.

5. The method for active road traffic safety control according to claim 4, characterized in that: The second preset time window is smaller than the first preset time window.

6. The method for active control of road traffic safety according to claim 1, characterized in that: The optimization algorithm is a genetic algorithm.

7. The method for active road traffic safety control according to any one of claims 1 to 5, characterized in that: Pre-constructing the traffic flow prediction model based on the improved TST model; Among them, the improved TST model is a TST model with an additional position vector encoding layer and a multi-head attention mechanism layer, and the position vector encoding layer and the multi-head attention mechanism layer are used to model the time series information of the input vector.

8. The method for active control of road traffic safety according to claim 7, characterized in that: The position vector encoding layer adopts a learning position encoder.

9. The method for active road traffic safety control according to claim 7, characterized in that: The improved TST model further includes: a mask layer arranged between the position vector encoding layer and the multi-head attention mechanism layer; The mask layer fills and masks the position-encoded input vector based on a Softmax function.

10. The method for active road traffic safety control according to any one of claims 1 to 5, characterized in that: The risk prediction model is pre-constructed by the following method, including: Acquire historical traffic data and historical event data corresponding to the target road, and determine multiple target risk level intervals based on the historical traffic data and historical event data; Constructing a plurality of data sample vectors based on the historical traffic data, and normalizing and labeling the data sample vectors with risk levels based on a plurality of target risk level intervals; The convolutional neural network is trained using the labeled data sample vectors, and after the convolutional neural network meets the conditions for convergence, the trained convolutional neural network is used as the risk prediction model.

11. The method for active road traffic safety control according to any one of claims 1 to 5, characterized in that: The risk prediction model is pre-constructed by the following method, including: Traffic conflict data corresponding to a target road is obtained, and a plurality of target risk level intervals are determined based on the traffic conflict data; and the risk prediction model is constructed based on the traffic conflict data and its target risk level intervals.

12. A road traffic safety active control device, characterized in that: include: An acquisition unit, a first calculation unit, a plurality of parallel second calculation units and third calculation units, and a policy issuing unit; The acquisition unit is used to acquire traffic data of a target road in real time, and the target road includes: a plurality of controlled road sections; The first calculation unit is used to determine, for each of the controlled road sections, whether the acquired traffic data has a traffic accident. If so, one of the second calculation units is started for the controlled road section where the accident occurred, and one of the third calculation units is started for the remaining controlled road sections; if not, the third calculation unit is started for each of the controlled road sections; The second computing unit is used to formulate an emergency control strategy for the controlled road section where the traffic accident occurred; The third calculation unit is used to extract first traffic flow data from the acquired traffic data based on a first preset time window, generate predicted traffic flow data based on the first traffic flow data using a pre-built traffic flow prediction model, generate predicted traffic data based on the predicted traffic flow data, and generate a first risk level based on the predicted traffic data using the pre-built risk prediction model; and determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic flow data using an optimization algorithm; A strategy publishing unit, used to publish an emergency control strategy or an active control strategy corresponding to each of the controlled road sections; The optimization algorithm takes the minimum accident rate of the currently controlled road section and the maximum traffic efficiency of the road section per unit time as the optimization goal, and iteratively calculates the position of the control point that needs to be activated, and the optimal active control strategy corresponding to the activated control point; the active control strategy includes: speed control strategy associated with vehicle type and lane, and traffic control strategy; The control point is a control strategy release point set in advance in the controlled section according to road control requirements.

13. The active road traffic safety control device according to claim 12, characterized in that: The traffic data includes: driver data, traffic flow data, road data, and environmental data; The driver data includes: information on fatigue and dangerous driving behavior; The traffic flow data includes: vehicle speed information, vehicle type information, and cross-sectional traffic flow information; The road data includes: road line type, number of lanes, and lane width information; The environmental data includes: visibility, rainfall, snowfall, road friction coefficient, wind speed, and wind direction information; The acquisition unit is configured to: acquire driver data and traffic flow data from a roadside perception device, and read road information and environmental information of a target road from a vehicle-road information system.

14. The active road traffic safety control device according to claim 12, characterized in that: The second computing unit is configured to: Taking the traffic accident as a time node, extracting second traffic flow data from the acquired traffic data based on a second preset time window, using a pre-constructed traffic flow prediction model to generate predicted traffic flow data based on the second traffic flow data, generating predicted traffic data based on the predicted traffic flow data, using the pre-constructed risk prediction model to generate a second risk level based on the second traffic flow data, and using the optimization algorithm to generate the emergency control strategy based on the second risk level and the predicted traffic data.

15. The active road traffic safety control device according to claim 12, characterized in that: The third computing unit comprises: An extraction module, configured to extract first traffic flow data from the acquired traffic data based on a first preset time window; A traffic flow prediction module, configured to generate predicted traffic flow data according to the first traffic flow data using a pre-built traffic flow prediction model, and to generate predicted traffic data based on the predicted traffic flow data; A risk prediction module, configured to generate a first risk level according to the predicted traffic data using a pre-built risk prediction model; A strategy generation module is used to determine the active control strategy for the current time period of the controlled road section based on the first risk level and the predicted traffic data using an optimization algorithm.

16. A road traffic safety active control system, characterized in that: include: A roadside sensing device, used to obtain real-time traffic data of a target road and transmit it to the road traffic safety active control device, wherein the roadside sensing device is arranged at intervals in a plurality of controlled sections of the target road; An active road traffic safety control device, used to generate an emergency control strategy or an active control strategy for a target road using the active road traffic safety control method as described in any one of claims 1 to 11, and output it to a strategy issuing device; A strategy issuing device is arranged at intervals in a plurality of controlled sections of a target road, and is used for visually presenting the emergency control strategy or the active control strategy.

17. The active road traffic safety control system according to claim 16, characterized in that: The roadside sensing equipment includes: radar, camera, and radar-vision integrated device.

18. The active road traffic safety control system according to claim 16, characterized in that: The policy issuing device includes: a variable information board and a V2X device.