A traffic emergency command method and system based on digital twin
Digital twin technology is used to build a traffic flow model, analyze and optimize traffic emergency command strategies in real time, solve the problem of slow response of traditional traffic management systems, and improve the intelligence and emergency response capabilities of urban traffic management.
Patent Information
- Application Number
- CN202410310803.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-19
AI Technical Summary
Traditional traffic management systems lack the adaptability and prediction capabilities for real-time traffic conditions, making it difficult to respond quickly and effectively to emergencies, resulting in slow response in large-scale or unconventional traffic conditions and affecting the passage of emergency service vehicles.
Adopt a traffic emergency command method based on digital twins, process traffic data through monitoring and gradient weighted filtering, build a multi-level, multi-dimensional traffic flow digital twin model, analyze traffic conditions in real time, calculate traffic adaptability index, and automatically adjust traffic emergency command Strategy.
It has significantly improved the intelligence and emergency response capabilities of urban traffic management, and can optimize traffic flow, reduce congestion, and improve the traffic efficiency of emergency service vehicles based on real-time monitoring and prediction.
Smart Images

Figure CN118247954B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital traffic technology, and in particular to a traffic emergency command method and system based on digital twins. Background Art
[0002] With the acceleration of urbanization, urban traffic congestion has become a common problem. Traffic congestion not only affects the economic development of cities and the quality of life of residents, but also poses a serious threat to the rapid passage of rescue vehicles in emergency situations (such as fire, medical emergency, natural disasters, etc.). Therefore, an effective traffic emergency command method is crucial, which needs to be able to accurately predict and manage complex traffic conditions to ensure that emergency service vehicles can reach their destination in the shortest time.
[0003] Traditional traffic management systems usually rely on static traffic rules and manual monitoring, lack the adaptability and prediction capabilities of real-time traffic conditions, and are difficult to respond quickly and effectively to emergencies. Existing traffic control methods are often slow to respond to large-scale or unconventional traffic conditions, making it difficult to achieve ideal traffic control effects. Summary of the invention
[0004] The purpose of the present invention is to provide a traffic emergency command method and system based on digital twins to address the deficiencies in the prior art. It can integrate real-time traffic data and environmental influencing factors, and provide efficient traffic optimization emergency command strategies through a highly adaptable and predictive digital twin model as a decision support system, thereby significantly improving the intelligence of urban traffic management and emergency response capabilities.
[0005] An embodiment of the present application provides a traffic emergency command method based on digital twins, the method comprising:
[0006] Monitor and collect raw data in the traffic system environment and perform gradient weighted filtering;
[0007] Injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0008] Performing real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas and calculating a traffic adaptability index;
[0009] For the road section where the traffic adaptability index is lower than a specific threshold, the intervention strategy of the traffic emergency command is automatically adjusted.
[0010] Optionally, the gradient weighted filtering is processed as follows:
[0011] GWFA(D,t)=beta(t)·G(D)+gamma(t)·dD / dt+epsilon
[0012] Among them, the GWFA(D, t) is the data filtering result at time t, the G(D) is the Gaussian filtering result of the original data D, the beta(t) and the gamma(t) are the data weight and derivative weight function at time t, respectively, and the epsilon is the perturbation adjustment constant.
[0013] Optionally, the traffic adaptability index is calculated as follows:
[0014]
[0015] Among them, the TAI is the traffic adaptability index, the PVF is the current traffic flow, the PTF is the traffic flow under ideal conditions, the HVI is the coefficient of variation of historical traffic flow, the EC is the environmental impact factor, the C(t) is the traffic congestion level at time t, the C_{max} is the maximum possible congestion level under specific conditions, the T is the time period of investigation, and the zeta, mu, delta, lambda, and sigma are weight coefficients determined according to the characteristics of the traffic system.
[0016] Optionally, the automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold value includes:
[0017] Automatically adjust the signal light timing of the road section where the traffic adaptability index is lower than a specific threshold, and calculate the signal efficiency ratio:
[0018]
[0019] Among them, the SER is the signal energy efficiency ratio, the ω_i is the weight coefficient of the i-th signal light, the tau_{opt,i} is the optimal timing of the i-th signal light recommended by the model, the tau_{cur,i} is the timing of the current i-th signal light, and N is the total number of signal lights.
[0020] Optionally, the method further includes:
[0021] The intervention effectiveness value after adjusting the intervention strategy of traffic emergency command is calculated as follows:
[0022] IPC=Theta·(R_{im}+R_{lt} / R_{max})·(1-D_{res} / D_{init})^varphi
[0023] Wherein, IPC is the intervention effectiveness value, R_{im} is the immediate response effect of the intervention strategy, R_{lt} is the long-term effect of the intervention strategy, R_{max} is the maximum effect that the intervention measures may achieve, D_{res} is the traffic system recovery time after the intervention, D_{init} is the predicted system recovery time before the intervention, and Theta and varphi are weight coefficients determined according to the characteristics of the traffic system;
[0024] Determining whether the intervention effectiveness value exceeds a preset intervention threshold;
[0025] If the preset intervention threshold is exceeded, stop adjusting the intervention strategy of the traffic emergency command; otherwise, return to the step of automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than the specific threshold until the intervention effectiveness value exceeds the preset intervention threshold and the traffic adaptability index reaches the specific threshold.
[0026] Another embodiment of the present application provides a traffic emergency command system based on digital twins, the system comprising:
[0027] A processing module is used to monitor and collect raw data in the traffic system environment and perform gradient weighted filtering processing;
[0028] An injection module for injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0029] An analysis module, used to perform real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculate a traffic adaptability index;
[0030] The adjustment module is used to automatically adjust the intervention strategy of traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold.
[0031] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0032] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0033] Compared with the prior art, the present invention provides a traffic emergency command method based on digital twins, which monitors and collects raw data in the traffic system environment and performs gradient weighted filtering processing; injects the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation; performs real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculates the traffic adaptability index; automatically adjusts the intervention strategy of traffic emergency command for sections where the traffic adaptability index is lower than a specific threshold, thereby integrating real-time traffic data and environmental influencing factors, and providing an efficient traffic optimization emergency command strategy through a highly adaptable and predictive digital twin model as a decision support system, significantly improving the intelligence and emergency response capabilities of urban traffic management. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A hardware structure block diagram of a computer terminal for a traffic emergency command method based on digital twins provided in an embodiment of the present invention;
[0035] Figure 2 A flow chart of a traffic emergency command method based on digital twins provided in an embodiment of the present invention;
[0036] Figure 3 A schematic structural diagram of a traffic emergency command system based on digital twins provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0038] The embodiment of the present invention first provides a traffic emergency command method based on digital twins, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, etc.
[0039] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal of a traffic emergency command method based on digital twins provided in an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0040] The memory 104 can be used to store software programs and modules of application software, such as program instructions / modules corresponding to the traffic emergency command method based on digital twins in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0042] See also Figure 2 , an embodiment of the present invention provides a traffic emergency command method based on digital twins, which may include the following steps:
[0043] S201, monitor and collect raw data in the traffic system environment, and perform gradient weighted filtering processing;
[0044] Specifically, a gradient weighted filtering processing method can be:
[0045] GWFA(D,t)=beta(t)·G(D)+gamma(t)·dD / dt+epsilon
[0046] Among them, GWFA (D, t) is the data filtering result at time t, which is the data used to input the digital twin model after weighted processing.
[0047] G(D) is the Gaussian filtering result of the original data D. The Gaussian filtering result of the original data D is used to suppress the random noise in the original data, making the data smoother and facilitating more accurate analysis and prediction.
[0048] beta(t) and gamma(t) are the data weight and derivative weight function at time t, respectively, where beta(t) is the weight of the original data at time t, which enables data processing to adapt to the characteristics of traffic flow in different time periods and improves the practicality of the filtering results; gamma(t) is the weight of the data derivative at time t, which allows the filtering results to better reflect the dynamic changes of traffic flow, which is particularly important in predicting scenarios with rapid changes in traffic flow.
[0049] frac{dD}{dt}: The time derivative of the data, that is, the rate of change of the data over time, can reveal key characteristics of traffic flow dynamics.
[0050] Epsilon is a perturbation adjustment constant used to fine-tune the filtering results to ensure that the model output is closer to the actual traffic flow, especially in the face of complex or abnormal conditions. In practical applications, a specific implementation method may include:
[0051] Step 1: Deploy monitoring equipment. Deploy sensors and surveillance cameras at key traffic nodes in the city. These devices should be able to monitor and collect raw data including but not limited to the following types: number and speed of vehicles, status of traffic lights, road condition information (such as whether there is construction, accidents, etc.), and environmental information (such as weather conditions, visibility, etc.).
[0052] Step 2: Data transmission and preliminary processing The collected data is transmitted to the central processing unit in real time through a secure network. Basic data cleaning techniques are used to remove obvious errors and noise, such as correcting or eliminating vehicle speed anomalies (significant deviations from the average) or missing signal data.
[0053] Step 3: Apply Gaussian filtering to the data obtained in step 2 after preliminary processing (G) to smooth the data curve and eliminate random fluctuations in the data. The filtering can be applied with the following formula:
[0054]
[0055] Here, mu is the mean of the data and sigma is the standard deviation.
[0056] Step 4: Calculate the time derivative of the data Calculate the rate of change of the monitored data over time, that is, the derivative frac{dD}{dt}. In practical applications, this can be approximated by comparing the data changes at two consecutive time points.
[0057] Step 5: Determination of the time weight function Set the data weight function beta(t) and the derivative weight function gamma(t) for each time point. These functions can be designed according to the expected periodic changes in traffic flow, such as giving higher weights to raw data during peak hours in the morning and evening, and giving higher weights to the rate of change at night or during off-peak hours.
[0058] Assume that during the peak period from 7 to 9 in the morning, a higher weight can be given to the real-time traffic data, for example: beta(t) = 0.8; during the evening peak period, such as from 5 to 7 in the afternoon, a higher weight is also set: beta(t) = 0.8; at night or during off-peak hours, the weight of the original data can be lower, for example: beta(t) = 0.2.
[0059] During time periods when traffic flow changes rapidly (such as the beginning and end of peak hours), the derivative weight can be assigned a higher value, for example: gamma(t) = 0.6, while during time periods when traffic flow changes slowly (such as midnight), the weight can be reduced, for example: gamma(t) = 0.1.
[0060] Step 6: Gradient weighted filtering According to the provided formula, combined with the results calculated in steps 3 and 4, and the weight function determined in step 5, the gradient weighted filtering result GWFA (D, t) is calculated. The perturbation adjustment constant epsilon in the formula can be used to adjust the final result to better reflect the actual situation. A smaller constant value can be set to fine-tune the filtering result to adapt to possible model errors or unpredicted sudden changes. For example, epsilon = 0.01.
[0061] Step 7: Calibration and feedback The filtering results are calibrated by comparing with known traffic flow patterns (such as historical data). If it is found that the filtering results deviate greatly from the known patterns, the weight function in step 5 or the perturbation adjustment constant epsilon in step 6 is adjusted, and then the filtering process is re-executed. This calibration process can be iterated continuously until the filtering results meet the preset accuracy requirements.
[0062] Through the above steps, not only can the raw data be monitored and collected in real time, but the data can also be processed by gradient weighted filtering to provide accurate and real-time information input for higher-level analysis and decision-making. It combines real-time data processing with advanced digital modeling technology to achieve efficient and accurate traffic flow monitoring and emergency response.
[0063] The function of monitoring and collecting raw data in the traffic system environment and performing gradient weighted filtering is to provide accurate and real-time traffic flow data, which is essential for building and synchronizing multi-level and multi-dimensional traffic flow digital twin models. This step ensures that the input data obtained through filtering and processing has a high signal-to-noise ratio, providing a reliable foundation for subsequent data analysis, model synchronization, and decision support. Weighted filtering can also eliminate or reduce the impact of abnormal data, ensuring the accuracy and efficiency of the digital twin model.
[0064] S202, injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow to achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0065] Specifically, one implementation may include:
[0066] Step 1: Construction of digital twin model Before constructing the digital twin model, the city traffic network is carefully studied, including road network layout, intersection design, signal light configuration, traffic signs, real-time and historical traffic flow data, etc. A variety of simulation technologies such as computational fluid dynamics (CFD) model, vehicle automatic following model, cellular automaton model, etc. are used to abstract the city's traffic network into a multi-level and multi-dimensional mathematical model. This model can dynamically map and simulate actual traffic flow parameters, such as traffic density, speed, acceleration, etc.
[0067] Step 2: Data processing and calibration Using the gradient weighted filtered data as input, the digital twin model is initialized and calibrated. This may include setting a series of boundary conditions, initial conditions, and model parameters to ensure that the model reflects the real traffic scenario. This process may require multiple iterations, involving adjusting the model parameters to achieve the best fit with the actual observed data.
[0068] Step 3: Model Synchronization During the process of real-time data injection and synchronization, the model state needs to be synchronized with the latest status of the actual traffic flow. This is usually done by a data interface that is responsible for receiving filtered traffic data from the data processing unit and passing them to the appropriate locations and parameters in the model. The synchronization process should be fast to support real-time or near real-time application requirements.
[0069] Step 4: Dynamic mapping and updating Each element or module in the digital twin model needs to update its status based on new data when it receives it. For example, the model will add vehicles to areas with high traffic density; if the status of the traffic light changes, the corresponding model section needs to update the traffic light logic and vehicle behavior. The algorithm in the model will be dynamically adjusted based on the input real-time data to map the real traffic flow characteristics.
[0070] Step 5: Feedback mechanism The digital twin model needs to have a feedback mechanism to detect in real time whether the predicted model state is consistent with the actual observed traffic state. This requires building an algorithm to evaluate the model prediction accuracy and adjusting the model parameters based on the results to improve the accuracy of the model prediction.
[0071] Step 6: Visualization and Analysis The data output by the model is displayed through visualization tools. This allows traffic managers to intuitively observe and analyze the current traffic flow status and instantly identify potential congestion points or accident risk areas.
[0072] Step 7: Decision support Based on the simulation results obtained from the digital twin model, the traffic management system can predict possible traffic problems in the future and propose solutions. For example, by simulating the impact of different traffic light configurations on traffic flow, it can provide optimization suggestions for on-site traffic signal control.
[0073] Step 8: Continuous iteration and optimization The digital twin model is a system that continuously learns and optimizes itself. By comparing the differences between the model predictions and field verification results, the system will continuously adjust and optimize the model parameters to ensure that the simulation accuracy continues to improve and better simulate and predict future traffic flows.
[0074] This implementation highlights the application of digital twin technology in traffic flow simulation and ensures the high fidelity and practicality of the model. By effectively realizing dynamic data injection and state synchronization, the digital twin model becomes a powerful tool for traffic management and decision-making.
[0075] S203, performing real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculating a traffic adaptability index;
[0076] Specifically, a method for calculating the traffic adaptability index may be:
[0077]
[0078] Among them, TAI is the traffic adaptability index, which measures the ability of the transportation network to adapt to adverse conditions such as congestion, accidents and other emergencies.
[0079] PVF is the current traffic flow, which means the actual vehicle flow observed at the current time point or time period. The example value is 750 vehicles / hour.
[0080] PTF is the ideal traffic flow, which is the ideal or non-peak traffic flow. Example value: 1000 vehicles / hour.
[0081] HVI is the coefficient of variation of historical traffic flow, an indicator reflecting the stability of historical traffic flow, and a statistic obtained by analyzing historical traffic flow data. Example value: 0.2 (indicating 20% variability).
[0082] EC is the environmental impact factor, which is a comprehensive indicator of external conditions that affect traffic flow, such as weather, accidents, road construction, etc. The example value is: 0.8 (may mean that normal traffic is affected by slight rain).
[0083] C(t) is the degree of traffic congestion at time t, the level of traffic congestion at a specific point in time t, with an example value of 0.7 (indicating that 70% of the road section capacity has been used).
[0084] C_{max} is the maximum possible congestion level under specific conditions, the maximum congestion level that a road section may reach under extreme circumstances. An example value is 0.9 (indicating that 90% of the road section capacity is in an extreme congestion state).
[0085] T is the time period for investigation, which is used to analyze the duration of congestion. The example value is 60 minutes.
[0086] Zeta, mu, delta, lambda, and sigma are weight coefficients determined according to the characteristics of the traffic system, among which zeta (weight coefficient of PVF / PTF): reflects the influence of the ratio of current flow to ideal flow on TAI, example value: 0.5; mu (weight coefficient of HVI): reflects the influence of the historical coefficient of variation on TAI, example value: 0.3; delta (weight coefficient of relative value of congestion degree integral): reflects the influence of congestion degree on TAI, example value: 0.2; lambda (power exponent of PVF / PTF expression): used to adjust the nonlinear influence of the ratio of current flow to ideal flow, example value: 2; sigma (environmental factor exponential regression coefficient): adjusts the influence of environmental impact factors on TAI, example value: 0.1. A specific implementation method may include:
[0087] Step 1: Traffic flow data collection Collect real-time traffic flow data (PVF) from the monitoring system, including the number and speed of vehicles passing through a specific road section. At the same time, obtain the ideal traffic flow (PTF), which can be obtained based on the expected flow when the road section is designed or the flow data during non-peak hours.
[0088] Step 2: Historical traffic flow analysis Calculate the coefficient of variation (HVI) of historical traffic flow, which requires statistical analysis of historical traffic data. By analyzing the flow fluctuations in different time periods, the stability and predictability of traffic flow can be measured.
[0089] Step 3: Environmental Impact Assessment Evaluate the current environmental impact factors (EC), which may include factors such as weather conditions, accidents, road construction, etc. This data can be obtained by connecting to the information system of relevant departments or using sensor data.
[0090] Step 4: Congestion calculation For each time point t, calculate the traffic congestion level (C(t)), which can be estimated by the ratio of real-time traffic flow to the design capacity of the road section. Then integrate C(t) to get the total congestion level within a period of time T, and compare it with the maximum possible congestion level (C_{max}) to get a relative index.
[0091] Step 5: Parameter and weight coefficient setting Set the parameters and weight coefficients (zeta, mu, delta, lambda, sigma) in the TAI formula. These parameters can be derived based on historical data analysis or adjusted by traffic experts based on actual conditions.
[0092] Step 6: Calculate the Traffic Adaptability Index (TAI) Using the data and parameters calculated in Steps 1 to 5, apply them to the TAI calculation formula to calculate the TAI value for each road segment or traffic network.
[0093] Step 7: Identification of congestion points or risk areas Based on the calculated TAI values, road sections with low adaptability can be identified, indicating that these road sections have potential traffic congestion points or accident risk areas. A TAI threshold can be set, and road sections below this threshold need attention and may require emergency command intervention measures.
[0094] Step 8: Real-time monitoring and updating Monitor the traffic status in real time in the digital twin model, continuously update traffic flow data, environmental impact factors and other information, and recalculate TAI. This process can ensure that the actual traffic flow conditions are reflected in real time and accurately, and respond quickly to emergencies.
[0095] Step 9: Decision Support Use TAI as a key indicator to provide decision support to transportation managers to guide them in formulating emergency measures or long-term improvement strategies to enhance the adaptability and resilience of the entire transportation network.
[0096] Through the above steps, traffic management departments can use digital twin models to analyze existing traffic conditions in real time, identify and evaluate potential traffic problems, and provide data support for emergency command decisions. This method combines advanced digital twin technology and real-time data processing to improve the response speed and management efficiency of the traffic system.
[0097] S204: For the road section where the traffic adaptability index is lower than a specific threshold, automatically adjust the intervention strategy of the traffic emergency command.
[0098] Specifically, the signal light timing of the road section where the traffic adaptability index is lower than a specific threshold can be automatically adjusted, and the signal efficiency ratio can be calculated:
[0099]
[0100] Among them, SER: signal energy efficiency ratio, measures the proportional relationship between the current signal timing and the optimized timing, and indicates the potential improvement space for signal optimization.
[0101] ω_i (weight coefficient): The importance weight of each traffic light. This weight can be set based on the traffic flow controlled by the traffic light, the traffic accident rate, or the importance of the traffic flow (such as whether it is located on a main road). Example values: ω_1 = 0.5, ω_2 = 0.3, ω_3 = 0.2, indicating that the first traffic light is the most critical, the second is the second, and so on.
[0102] tau_{opt,i}: The optimal timing of the i-th traffic light recommended by the model. The theoretical optimal timing of each traffic light is calculated to achieve the best traffic flow efficiency and reduce congestion. Example values: τ_{opt,1} = 60 seconds, τ_{opt,2} = 50 seconds, τ_{opt,3} = 55 seconds, indicating the optimal signal duration of each traffic light.
[0103] tau_{cur,i}: The timing of the current i-th signal light, the timing of each signal light currently set by the traffic signal system. Example values: τ_{cur,1} = 50 seconds, τ_{cur,2} = 60 seconds, τ_{cur,3} = 50 seconds, indicating the current signal duration of each signal light. N is the total number of signal lights, the total number of signal lights involved in the intervention strategy. Example value: n = 3, indicating that three signal lights are involved in the calculation.
[0104] By calculating the SER value, the system can determine the efficiency of the current signal light timing and whether it needs to be adjusted. If the SER value is significantly lower than a certain threshold (for example, 0.5), it means that the current signal timing is not effective enough and needs to be adjusted to a setting closer to the optimal signal timing to improve traffic conditions. Through such a mechanism, traffic signals can be adjusted dynamically in real time to reduce congestion and improve the traffic capacity of the road section.
[0105] In practical applications, one implementation may include:
[0106] Step 1: Determine the intervention threshold First, you need to set a threshold for the Traffic Adaptability Index (TAI). When the TAI of a road section is lower than this threshold, it indicates that traffic flow intervention is required. For example, the TAI threshold can be set to 0.5, indicating that when the TAI of a road section is less than 0.5, emergency command intervention is required.
[0107] Step 2: Monitor and evaluate the status of road sections. Monitor the traffic flow, speed and other relevant data of each road section in real time, and calculate the TAI of each road section in real time. For all monitored road sections, screen out areas where the TAI is lower than the preset threshold, which are potential traffic intervention targets.
[0108] Step 3: Select the intervention section From the sections identified in step 2, select the section with the highest priority for intervention. The priority can be determined based on factors such as the TAI value, the importance of the section, and the traffic flow. For example, the section with the lowest TAI and the largest traffic flow is selected first for intervention.
[0109] Step 4: Calculate the traffic light timing For the selected road section for intervention, use traffic simulation software or optimization algorithm to calculate the optimal timing of each traffic light (tau_{opt,i}). These calculations should be based on the current traffic conditions, including traffic density, traffic flow direction, etc., in order to maximize the efficiency of traffic flow.
[0110] Step 5: Calculate the signal efficiency ratio (SER) Based on the current timing of each signal light (tau_{cur,i}) and the calculated optimal timing (tau_{opt,i}), the formula is used to calculate the signal efficiency ratio (SER). SER will be used as one of the indicators to evaluate the need for adjusting the timing of signal lights.
[0111] Step 6: Adjust the signal timing Compare the calculated SER value with the pre-set signal performance improvement target. If the SER indicates that adjustment is necessary, the traffic signal control system adjusts the signal timing to make it closer to or reach the optimal timing (tau_{opt,i}).
[0112] Step 7: Monitor the effect of the adjustment After the signal light timing is adjusted, continue to monitor the traffic conditions and calculate the TAI value. Evaluate the effect of the emergency command intervention strategy to ensure that the intervention measures can lead to an improvement in the TAI value.
[0113] Step 8: Feedback loop A feedback loop mechanism is established. If the adjusted TAI value is still below the threshold, or the SER indicates that there is room for further improvement, then return to step 4 to recalculate the optimal timing and adjust the signal light. This process will continue until the TAI value reaches a satisfactory level.
[0114] By combining real-time data monitoring, mathematical model calculation, signal timing optimization, real-time feedback and other steps, the system can intelligently and automatically adjust the intervention strategy of traffic emergency command to alleviate congestion, improve the efficiency of traffic flow, ensure road safety, and achieve optimized management of the transportation system.
[0115] Furthermore, in practical applications, the intervention effectiveness value after adjusting the intervention strategy of traffic emergency command can also be calculated as:
[0116] IPC=Theta·(R_{im}+R_{lt} / R_{max})·(1-D_{res} / D_{init})^varphi
[0117] The IPC is an intervention effectiveness value, which is an indicator to measure the effectiveness of intervention measures. It combines immediate response and long-term effects, and takes into account the shortening of system recovery time to evaluate the overall success of the intervention. Example value: IPC is a dimensionless value, usually between 0 and 1, with 1 indicating the best intervention effect and 0 indicating ineffectiveness.
[0118] The R_{im} is the immediate response effect of the intervention strategy, that is, the improvement in traffic flow in the short term after the intervention, which can be calculated based on the improvement percentage of traffic flow or speed, such as any value from 0.2 to 1, where 1 indicates that the flow or speed reaches the optimal state.
[0119] The R-{lt} is the long-term effect of the intervention strategy, that is, the improvement in traffic flow in the long term after the intervention. It may require data from several weeks to several months to evaluate. It is also a value between 0.2 and 1, where 1 indicates that long-term stability is optimal.
[0120] R_{max} is the maximum effect that the intervention measures can achieve, and the maximum improvement in traffic flow that can be achieved through intervention in theory. Example value: It is usually set based on simulation or historical best performance and may be a fixed value, such as 1, which represents the maximum possible improvement in theory.
[0121] The D_{res} is the traffic system recovery time after intervention, which is the time required for the traffic system to return to normal after the intervention measures are implemented. Example value: in minutes or hours, such as reducing from 30 minutes to 10 minutes, then D_{res} can be set to 10.
[0122] The D_{init} is the predicted system recovery time before intervention, and the predicted time for the traffic system to return to normal without intervention. Example value: also in minutes or hours, if the prediction is 60 minutes, then D-{init} is set to 60.
[0123] Theta and varphi are both weight coefficients determined according to the characteristics of the traffic system. Theta: A weight coefficient determined according to the characteristics of the traffic system, used to balance the importance of the immediate response and long-term effects of the intervention strategy. Example value: It can be any value between 0.5 and 1, depending on the manager's preference for immediate and long-term effects. varphi: An index that determines the degree of impact of improvements in system recovery time on the intervention effectiveness value. Example value: Usually a positive number, such as 0.5, 1 or higher, depending on the sensitivity of the traffic system to improvements in recovery time.
[0124] Determine whether the intervention effectiveness value exceeds a preset intervention threshold; if it exceeds the preset intervention threshold, stop adjusting the intervention strategy of the traffic emergency command, otherwise, return to the step of automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold, until the intervention effectiveness value exceeds the preset intervention threshold and the traffic adaptability index reaches a specific threshold.
[0125] After each adjustment of the signal light timing, the effectiveness of the intervention strategy can also be evaluated using the defined intervention effectiveness value (IPC) formula. If the IPC exceeds the preset intervention threshold, the intervention effect is considered to have reached the target and further adjustments can be stopped. If the IPC does not exceed the threshold, the iterative adjustment process continues.
[0126] If the calculated IPC value exceeds the preset intervention threshold (such as 0.75), the current intervention strategy is considered effective and monitoring continues without further adjustment. If the IPC value is below the threshold, it is necessary to return to the above steps to re-evaluate and adjust the strategy.
[0127] The above steps are used as a continuous iterative process to continuously adjust the strategy until the IPC continues to exceed the preset threshold. In addition, machine learning algorithms can be applied to analyze historical intervention results and automatically adjust parameters in the IPC calculation, such as Theta and varphi, to optimize the intervention strategy. The system can also provide traffic managers with intervention effect reports, including recommended adjustment measures, to support the decision-making process.
[0128] This implementation helps to respond to complex urban traffic conditions in a scientific and dynamic way. It not only provides a deep understanding of current traffic conditions through real-time monitoring and data-driven models, but also quantifies the effects of intervention measures through intelligent calculation and evaluation of IPC.
[0129] The key to this approach is its iterative and adaptive nature. The effectiveness of the strategy is achieved through continuous monitoring, analysis, and adjustment. This means that the system is not only effective when it is first implemented, but also maintains this effectiveness in the face of changes in traffic patterns. Through the application of machine learning to optimize parameters, the intelligence level of the system gradually increases over time, and it is able to better predict and adjust future traffic flows, thereby improving the efficiency and safety of the entire urban transportation system.
[0130] It can be seen that by monitoring and collecting raw data in the traffic system environment and performing gradient weighted filtering processing; injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow, high-fidelity traffic flow simulation can be achieved; the digital twin model is analyzed in real time to identify potential traffic congestion points or accident risk areas, and the traffic adaptability index is calculated; for sections where the traffic adaptability index is lower than a specific threshold, the intervention strategy of traffic emergency command is automatically adjusted, so that real-time traffic data and environmental influencing factors can be integrated, and a highly adaptable and predictive digital twin model is used as a decision support system to provide an efficient traffic optimization emergency command strategy, significantly improving the intelligence of urban traffic management and emergency response capabilities.
[0131] Another embodiment of the present invention provides a traffic emergency command system based on digital twins, see Figure 3 , the system may include:
[0132] The processing module 301 is used to monitor and collect raw data in the traffic system environment and perform gradient weighted filtering processing;
[0133] An injection module 302 for injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0134] An analysis module 303 is used to perform real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas and calculate a traffic adaptability index;
[0135] The adjustment module 304 is used to automatically adjust the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold.
[0136] It can be seen that by monitoring and collecting raw data in the traffic system environment and performing gradient weighted filtering processing; injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow, high-fidelity traffic flow simulation can be achieved; the digital twin model is analyzed in real time to identify potential traffic congestion points or accident risk areas, and the traffic adaptability index is calculated; for sections where the traffic adaptability index is lower than a specific threshold, the intervention strategy of traffic emergency command is automatically adjusted, so that real-time traffic data and environmental influencing factors can be integrated, and a highly adaptable and predictive digital twin model is used as a decision support system to provide an efficient traffic optimization emergency command strategy, significantly improving the intelligence of urban traffic management and emergency response capabilities.
[0137] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0138] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0139] S201, monitor and collect raw data in the traffic system environment, and perform gradient weighted filtering processing;
[0140] S202, injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow to achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0141] S203, performing real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculating a traffic adaptability index;
[0142] S204: For the road section where the traffic adaptability index is lower than a specific threshold, automatically adjust the intervention strategy of the traffic emergency command.
[0143] It can be seen that by monitoring and collecting raw data in the traffic system environment and performing gradient weighted filtering processing; injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow, high-fidelity traffic flow simulation can be achieved; the digital twin model is analyzed in real time to identify potential traffic congestion points or accident risk areas, and the traffic adaptability index is calculated; for sections where the traffic adaptability index is lower than a specific threshold, the intervention strategy of traffic emergency command is automatically adjusted, so that real-time traffic data and environmental influencing factors can be integrated, and a highly adaptable and predictive digital twin model is used as a decision support system to provide an efficient traffic optimization emergency command strategy, significantly improving the intelligence of urban traffic management and emergency response capabilities.
[0144] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0145] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0146] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0147] S201, monitor and collect raw data in the traffic system environment, and perform gradient weighted filtering processing;
[0148] S202, injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow to achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters;
[0149] S203, performing real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculating a traffic adaptability index;
[0150] S204: For the road section where the traffic adaptability index is lower than a specific threshold, automatically adjust the intervention strategy of the traffic emergency command.
[0151] It can be seen that by monitoring and collecting raw data in the traffic system environment and performing gradient weighted filtering processing; injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow, high-fidelity traffic flow simulation can be achieved; the digital twin model is analyzed in real time to identify potential traffic congestion points or accident risk areas, and the traffic adaptability index is calculated; for sections where the traffic adaptability index is lower than a specific threshold, the intervention strategy of traffic emergency command is automatically adjusted, so that real-time traffic data and environmental influencing factors can be integrated, and a highly adaptable and predictive digital twin model is used as a decision support system to provide an efficient traffic optimization emergency command strategy, significantly improving the intelligence of urban traffic management and emergency response capabilities.
[0152] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A traffic emergency command method based on digital twins, characterized in that: The method comprises: Monitor and collect raw data in the traffic system environment and perform gradient weighted filtering; Injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters; Performing real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas and calculating a traffic adaptability index; For a road section where the traffic adaptability index is lower than a specific threshold, automatically adjusting the intervention strategy of the traffic emergency command; The automatic adjustment of the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold value includes: Automatically adjust the signal light timing of the road section where the traffic adaptability index is lower than a specific threshold, and calculate the signal efficiency ratio: Wherein, SER is the signal energy efficiency ratio, ω_i is the weight coefficient of the i-th signal light, tau_{opt,i} is the optimal timing of the i-th signal light recommended by the model, tau_{cur,i} is the timing of the current i-th signal light, and N is the total number of signal lights; The method further comprises: The intervention effectiveness value after adjusting the intervention strategy of traffic emergency command is calculated as follows: IPC=Theta·(R_{im}+R_{lt} / R_{max})·(1-D_{res} / D_{init})^varphi Wherein, IPC is the intervention effectiveness value, R_{im} is the immediate response effect of the intervention strategy, R_{lt} is the long-term effect of the intervention strategy, R_{max} is the maximum effect that the intervention measures may achieve, D_{res} is the traffic system recovery time after the intervention, D_{init} is the predicted system recovery time before the intervention, and Theta and varphi are weight coefficients determined according to the characteristics of the traffic system; Determining whether the intervention effectiveness value exceeds a preset intervention threshold; If the preset intervention threshold is exceeded, stop adjusting the intervention strategy of the traffic emergency command; otherwise, return to the step of automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than the specific threshold until the intervention effectiveness value exceeds the preset intervention threshold and the traffic adaptability index reaches the specific threshold.
2. The method according to claim 1, characterized in that The processing method of the gradient weighted filtering is: GWFA(D,t)=beta(t)·G(D)+gamma(t)·dD / dt+epsilon Wherein, the GWFA(D,t) is the data filtering result at time t, the G(D) is the Gaussian filtering result of the original data D, the beta(t) and the gamma(t) are the data weight and derivative weight function at time t, respectively, and the epsilon is the perturbation adjustment constant.
3. The method according to claim 2, characterized in that The traffic adaptability index is calculated as follows: Among them, the TAI is the traffic adaptability index, the PVF is the current traffic flow, the PTF is the traffic flow under ideal conditions, the HVI is the coefficient of variation of historical traffic flow, the EC is the environmental impact factor, the C(t) is the traffic congestion level at time t, the C_{max} is the maximum possible congestion level under specific conditions, the T is the time period of investigation, and the zeta, mu, delta, lambda, and sigma are weight coefficients determined according to the characteristics of the traffic system.
4. A traffic emergency command system based on digital twins, characterized in that: The system comprises: A processing module is used to monitor and collect raw data in the traffic system environment and perform gradient weighted filtering processing; An injection module for injecting the filtered data into a pre-built multi-level, multi-dimensional traffic flow digital twin model to synchronize the model state with the actual traffic flow and achieve high-fidelity traffic flow simulation, wherein the digital twin model dynamically maps the actual traffic flow parameters; An analysis module, used to perform real-time analysis on the digital twin model to identify potential traffic congestion points or accident risk areas, and calculate a traffic adaptability index; An adjustment module, for automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold; The automatic adjustment of the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than a specific threshold value includes: Automatically adjust the signal light timing of the road section where the traffic adaptability index is lower than a specific threshold, and calculate the signal efficiency ratio: Wherein, SER is the signal energy efficiency ratio, ω_i is the weight coefficient of the i-th signal light, tau_{opt,i} is the optimal timing of the i-th signal light recommended by the model, tau_{cur,i} is the timing of the current i-th signal light, and N is the total number of signal lights; After calculating and adjusting the intervention strategy of traffic emergency command, the intervention effectiveness value is: IPC=Theta·(R_{im}+R_{lt} / R_{max})·(1-D_{res} / D_{init})^varphi Wherein, IPC is the intervention effectiveness value, R_{im} is the immediate response effect of the intervention strategy, R_{lt} is the long-term effect of the intervention strategy, R_{max} is the maximum effect that the intervention measures may achieve, D_{res} is the traffic system recovery time after the intervention, D_{init} is the predicted system recovery time before the intervention, and Theta and varphi are weight coefficients determined according to the characteristics of the traffic system; Determining whether the intervention effectiveness value exceeds a preset intervention threshold; If the preset intervention threshold is exceeded, stop adjusting the intervention strategy of the traffic emergency command; otherwise, return to the step of automatically adjusting the intervention strategy of the traffic emergency command for the road section where the traffic adaptability index is lower than the specific threshold until the intervention effectiveness value exceeds the preset intervention threshold and the traffic adaptability index reaches the specific threshold.
5. The system according to claim 4, characterized in that The processing method of the gradient weighted filtering is: GWFA(D,t)=beta(t)·G(D)+gamma(t)·dD / dt+epsilon Wherein, the GWFA(D,t) is the data filtering result at time t, the G(D) is the Gaussian filtering result of the original data D, the beta(t) and the gamma(t) are the data weight and derivative weight function at time t, respectively, and the epsilon is the perturbation adjustment constant.
6. The system according to claim 5, characterized in that The traffic adaptability index is calculated as follows: Among them, the TAI is the traffic adaptability index, the PVF is the current traffic flow, the PTF is the traffic flow under ideal conditions, the HVI is the coefficient of variation of historical traffic flow, the EC is the environmental impact factor, the C(t) is the traffic congestion level at time t, the C_{max} is the maximum possible congestion level under specific conditions, the T is the time period of investigation, and the zeta, mu, delta, lambda, and sigma are weight coefficients determined according to the characteristics of the traffic system.
7. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.
8. An electronic device, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.
