Dynamic deduction optimization method for complex traffic system based on digital twinning

Using digital twin technology to build mechanism and evolution models to optimize traffic status solves the problem that traditional methods cannot reflect the current traffic status in real time and model simplification, achieves accurate prediction and optimization of complex traffic systems, and improves the efficiency and reliability of the traffic system. sex.

CN118762501APending Publication Date: 2024-10-11NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 12 Cited by

Patent Information

Application Number
CN202410691391.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Traditional road traffic analysis methods rely on historical data and cannot obtain the current traffic status in real time. The models are simplified and cannot fully reflect the complexity and variability of the traffic system, resulting in limited prediction accuracy.

Method used

Use digital twin technology to build mechanism models and evolution models, obtain urban road network environmental data, divide road network areas, implement user balancing strategies based on traffic flow models and influencing factors, build a global evolution model, and optimize traffic conditions.

Benefits of technology

It achieves accurate prediction and optimization of complex traffic systems, reduces traffic congestion, improves the efficiency and reliability of road network operations, and can quickly respond to emergencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762501A_ABST
    Figure CN118762501A_ABST
Patent Text Reader

Abstract

The invention discloses a complex traffic system dynamic deduction optimization method based on digital twinning, and the method comprises the steps: 1, obtaining the environment data of an urban road network, and building an urban road network digital twinning model based on the data; 2, dividing the traffic road network environment of the whole city into orthogonal intervals with equal length in each dimension, and constructing a traffic inflow flow model based on the characteristics of a road network structure; 3, dividing the traffic flow into a plurality of subsets based on a traffic flow model; 4, constructing a global evolution model, and establishing a global situation deduction formula based on probability parameters, influence factors and weight parameters; 5, defining a traffic situation cost loss function, and continuously deducing and iterating to obtain an optimal result; and step 6, proposing an optimization mode of the traffic state. According to the method, the local mechanism model is used, the global evolution model is combined, traffic flow distribution is accurately predicted and optimized, the overall operation efficiency of a road network is improved, and the vehicle driving time is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of digital twin and road traffic analysis, and relates to a method for dynamic deduction and optimization of complex traffic systems based on digital twin, and specifically to a method for dynamically deducing and optimizing complex traffic systems by constructing a mechanism model and an evolution model through digital twin technology. Background Art

[0002] Digital twin is a technology that simulates, analyzes and optimizes actual physical systems through digital models. It refers to creating an exact digital copy of a physical system in the digital world, which runs and interacts synchronously with its actual physical system. Digital twin can be used in many fields. In the field of road traffic analysis, digital twin can simulate, analyze and optimize traffic conditions by mapping actual road traffic conditions into a virtual simulation environment.

[0003] Traditional road traffic analysis methods are mainly based on historical data and empirical rules, and use statistical analysis to evaluate traffic conditions and predict indicators such as traffic flow. The main shortcomings of this method are: limited data sources: traditional traffic analysis methods mainly rely on historical traffic data, which can only provide past traffic conditions and cannot obtain current traffic conditions in real time. Therefore, in a rapidly changing traffic environment, the application of traditional methods is limited; model simplification: traditional traffic models usually simplify road networks into nodes and edges, and the factors considered are relatively limited, which cannot fully reflect the complexity and variability of the traffic system; inaccurate predictions, so the accuracy of the prediction results is limited. Summary of the invention

[0004] The purpose of the present invention is to address the defects and shortcomings of the above-mentioned prior art and propose a dynamic deduction and optimization method for complex transportation systems based on digital twins. Aiming at the optimization scenarios of complex traffic conditions in cities, the present invention models urban road network scenarios through digital twin technology, constructs a mechanism model, and inputs the results of the operation of the mechanism model in multiple regions into the evolution model for deduction and optimization, thereby improving the efficiency and reliability of the operation of the entire transportation system.

[0005] The technical solution adopted by the present invention to solve the technical problem is: a complex traffic system dynamic deduction optimization method based on digital twins, the method comprising the following steps:

[0006] Step 1: Obtain the environmental data of the urban road network, including the status data of elements such as roads, intersections, and buildings, and build a digital twin model of the urban road network based on this data;

[0007] Step 2: Divide the traffic road network environment of the entire city into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thereby dividing the road network into multiple small road network areas. Then, a traffic inflow model is constructed based on the characteristics of the road network structure.

[0008] Step 3: Based on the traffic flow model, the traffic flow is appropriately divided into multiple subsets. For each road network area, a scheduling scheme that optimizes the user equilibrium strategy is implemented based on factors such as weather factors, road speed limit strategies, and traffic light timing ratios. In this way, each area constitutes a local reasoning mechanism model;

[0009] Step 4: On the basis of the above step 3, based on the operation results of multiple road network regional mechanism models, a global evolution model is constructed, and a global situation deduction formula based on probability parameters, various influencing factors and weight parameters is established to obtain the state at the next moment;

[0010] Step 5: Based on the above step 4, in order to measure the difference between the model output and the actual decision, a traffic situation cost loss function is defined, and the update rules of each input parameter in the evolution model are proposed. The iteration is continuously deduced until the cost function reaches the minimum value and the optimal result is obtained;

[0011] Step 6: Based on the optimal results obtained from multiple iterations of the evolutionary model, propose an optimization method for the traffic status.

[0012] Furthermore, in step 2, a gridded DBSCAN algorithm is used to divide the road network of the entire city. The DBSCAN algorithm uses a grid division method to divide the data set into several grid areas, so that the DBSCAN algorithm can better adapt to the characteristics of the data set, thereby making the road network division result more accurate. The DBSCAN algorithm implementation steps include the following:

[0013] Step 2-1: Grid division: Assume an n-dimensional data set D (i = 1, 2, 3, ..., n), the value on the i-th dimension Then there is For an n-dimensional data space, the number of data is N. The data space is divided into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thus forming mutually orthogonal grid units.

[0014] Step 2-2: Data set: Map each object in the N data sets to the corresponding grid one by one, and map each object in the data set to the grid g i In each grid g i The number of objects is That is, the grid density;

[0015] Step 2-3: Merge adjacent grids to form regions: Take relative density difference as the criterion for grid merging, traverse the grid set, select the grid unit with the largest grid density as the initial value and start iteration. During the iteration process, if the relative density difference between two grid units is less than the set standard value, the two grids are merged to form a large grid region. Repeat the above process until all grids do not meet the grid merging criterion. In this way, the n-dimensional data set D can be divided into regions D1, D2..., D k and some noise points that cannot be merged, thereby dividing the road network into multiple small road network areas.

[0016] Furthermore, in step 2, a traffic input model within the road network area is constructed based on factors such as the road's travel time period, the road's regional location, and the structural characteristics of the road network, specifically including:

[0017] For the travel time period T, there are significant differences in traffic flow in different time periods, such as regular weekdays and weekends, and morning and evening peak times of the day usually have a significant impact on traffic flow; the hyperbolic tangent function tan(a·T) is used to simulate the impact of the travel time period, where T refers to the time period (such as peak or non-peak time); the hyperbolic tangent function has the characteristics of nearly linear growth when T is small (i.e. non-peak time), and close to saturation when T increases (i.e. close to or in peak time); this means that during non-peak time, traffic flow is more sensitive to changes in time period, while during peak time, further increasing the value of T will slow down the increase in its impact on traffic flow;

[0018] By adjusting the parameter a, the sensitivity and saturation rate of this time effect change can be adjusted; the larger the value of a, the faster the saturation is reached, which is suitable for roads that are particularly sensitive to peak hours; conversely, it is suitable for roads with relatively gentle traffic changes;

[0019] For the area position L, by the square term L 2 To simulate the impact on traffic flow; the specific indicator of L in this model refers to the area type, such as whether it is adjacent to landmarks with high traffic volume, such as shopping malls, schools, or commercial areas; these locations may cause a significant increase in traffic volume on surrounding roads due to their dense population or vehicle concentration characteristics;

[0020] The L value can represent the nonlinear reinforcing effect of the regional location on traffic flow; when the value of L is small, it means that the region has a small impact on the flow; while when the value of L is large, its impact on the flow is a super-proportional growth, which reflects that roads close to busy landmarks may experience an accelerated effect of flow growth;

[0021] For a specific road network structure, the road width S width and the number of intersections Snum , by log(1+S width ) to represent the influence of road width, pointing out that as the road width increases, the traffic volume it can accommodate increases, but the rate of increase will decrease with S width As the width of a road increases, it gradually decreases; this is in line with the actual situation. Assuming that a very wide road can increase traffic flow compared to a narrow road, this increase is not unlimited; when the road width is increased within a certain range, the number of lanes can be significantly increased, thereby increasing traffic flow; but due to other factors (such as traffic lights, vehicle turning requirements, etc.), the increase in lanes does not always translate into a completely linear increase in traffic flow; +1 ensures that when S width = 0, the logarithmic term is defined, reflecting that even on very narrow roads, there is a certain base flow;

[0022] pass Describes the negative impact of the number of intersections on traffic flow, where the negative sign indicates that an increase in the number of intersections will lead to a decrease in traffic flow, since an increase in intersections usually means more stops, waits, and increased conflict points between vehicles, leading to a decrease in flow;

[0023] Based on factors such as travel time, hot spot location, and road characteristics of the road network structure, a nonlinear model is constructed to represent the nonlinear impact of these factors on the traffic flow input model of the road network area. The formula for constructing the traffic flow input model is as follows:

[0024]

[0025] Among them, Q0 is the baseline flow of the road network area without any special conditions; ξ is the impact of other factors on the system input flow, and α, β, γ, and δ represent the weights of the corresponding influencing factors.

[0026] Furthermore, in step 3, a user balance strategy is implemented as the most optimized scheduling solution based on objective factors such as weather, road speed limit strategy, traffic light timing ratio, etc., and the user balance optimal strategy takes the shortest road section travel time as the goal;

[0027] Considering the weather factor e When considering the impact of different weather conditions on the traffic flow prediction model, a weather adjustment coefficient is introduced to quantify the impact of different weather conditions on road traffic efficiency. For each weather w, define W e (w) is the weather adjustment factor, which represents the capacity percentage under weather condition w relative to perfect weather; for example, for clear weather w s , W e (w s )=1.0 means no adjustment. For rainy weather wr , W e (w r )=0.8 means reducing the speed and flow by 20%. For snowy days, w snow , W e (w snow ) = 0.5 means reducing the speed and flow by 50%; Based on the above assumed traffic input flow model, the travel time of a section is determined by the free flow speed and current flow conditions of this section, combined with weather factors, the travel time of the section is calculated as follows:

[0028]

[0029] Among them, T e1 is the travel time of segment e under specific weather conditions; L is the length of segment e; is the free flow speed under standard conditions (i.e. clear weather) on section e; w e (w) is the value corresponding to the current weather condition w e (w) is the weather w adjustment coefficient; Penalty is the additional delay time due to weather conditions;

[0030] Considering the speed limit factor S e The impact on traffic flow prediction model is e represents the legal speed limit for a specific road segment e; the driving time T e Length of the passing section L e Divide by the average speed of the vehicle V e To calculate, where the average speed of the vehicle is subject to the speed limit S e The impact of can be expressed as:

[0031] Under ideal conditions, i.e. when there is no congestion, the average speed of the vehicle is V e Usually related to the speed limit of the road section e However, in reality, the actual speed of the vehicle may be lower than the speed limit due to factors such as traffic flow, road conditions, and weather. Therefore, the actual average speed V of the vehicle e Introduce an adjustment coefficient α so that it is subject to the speed limit S e Impact: V e =min(S e ,α·C e ), where C e represents the traffic capacity or current flow of section e, α is an adjustment coefficient used to represent the impact of traffic flow on average speed; the average speed V considering the speed limit is e Rewriting the formula for the travel time gives:

[0032]

[0033] Traffic light timing ratio factor R e It refers to the proportion of green light in the signal cycle. If the signal cycle is C, the green light time is G, and the red light time is R, then the signal cycle can be expressed as: C = C + R, and the traffic light timing ratio factor R e It can be expressed as:

[0034]

[0035] Considering that vehicles may encounter red lights when arriving at intersections, the average delay needs to be calculated. If vehicles arrive randomly within a period, the average delay D can be simplified to half a red light period: Taking into account the influence of traffic lights, the travel time of the road section is T e It can be expressed as:

[0036]

[0037] Here L represents the length of the road section, v represents the vehicle speed; the corrected T e It includes the travel time of vehicles through the road section and the average waiting time caused by red lights; in this way, the average delay D directly affects the travel time T e , is one of the main contributing factors of intersection signal control to the total travel time;

[0038] Taking into account objective factors, such as weather factors, and human-controllable factors, such as road speed limit factors and traffic light timing ratio, the average road section travel time is calculated as follows: For each road section e, given the adjustment coefficient T affected by weather e1 , speed limit T e2 The proportion of traffic light timing is T e3 , average T e The calculation formula is as follows:

[0039]

[0040] Here D e (R e ) indicates that in addition to traffic light timing, weather and road speed limits, there are other relevant factors that may be added to the basic travel time.

[0041] Implement the user balance strategy. For each set of road segments, the actual travel time from any area to another area is equal and less than or equal to the time from the area to another area via any other path. Set the inflow flow of each road segment to F e , then different user equilibrium strategies can be used to solve the user equilibrium:

[0042] The first-order moment mean strategy is adopted to solve the user equilibrium. The solution is as follows:

[0043]

[0044] The first-order moment mean equilibrium strategy solves user equilibrium by directly using the average travel time of the road as a benchmark. It is easy to understand and calculate, and there is no need to understand the distribution characteristics of the travel time in detail. However, this equilibrium strategy ignores the volatility of the travel time: it only considers the average travel time and fails to reflect the uncertainty and volatility of the travel time, which is particularly important during peak hours or when encountering emergencies; and it may cause excessive congestion on some roads: because it does not consider the variance and only focuses on the average value, some roads may face serious congestion problems due to uneven traffic distribution.

[0045] The second-order moment variance strategy is used to solve the user equilibrium. The solution is as follows:

[0046] First, define the travel time T of section e e The relationship between the inflow volume f is T e (f), which may be nonlinear to reflect the non-proportional increase in travel time caused by the increase in traffic volume. The expected value of the average travel time of road e is:

[0047]

[0048] And its travel time variance (second-order moment) is:

[0049] Var[T e ]=E[(T e -E[T e ]) 2 ]=E[T e 2 ]-(E[T e ]) 2

[0050] Among them, E[T e 2 ] is the expected value of the squared travel time to flow, which can be obtained by the following integral:

[0051]

[0052] Therefore, the user equilibrium variance minimization model can be constructed as the following optimization problem:

[0053]

[0054] The second-order moment variance strategy aims to minimize the sum of the variances of all road travel times, reflecting the stability and predictability of traffic flow. By considering the travel time variance, it can provide the evolution model with a more stable and reliable travel time expectation, thereby reducing the extreme travel time caused by traffic fluctuations. However, the second-order moment has high implementation complexity, requires more data processing, and is more complicated to calculate.

[0055] The reliability user equilibrium strategy is adopted to solve the user equilibrium. A collection model with more dimensions is introduced to balance the advantages of the first-order moment and the second-order moment while alleviating the disadvantages of the two methods as much as possible. This strategy not only considers the average travel time and the volatility of the travel time, but also tries to make the computational complexity and data requirements of the model within the practical feasible range. This can be achieved by incorporating the variance-mean ratio into the calculation of user equilibrium. First, the coefficient of variation CV of the travel time is defined as:

[0056]

[0057] Here E[T e ] represents the first-order moment of the travel time, i.e., the average value, and is the standard deviation of the travel time, that is, the square root of the variance; in the reliability user equilibrium model, the following objective function is attempted to be minimized:

[0058]

[0059] Among them, λ1 and λ2 are weight parameters for adjusting the importance of the first-order moment and the coefficient of variation; the first term of this objective function ensures that the mean of the travel time is optimized, while the second term optimizes the reliability (i.e., variability) of the travel time; in this way, not only can the calculation be simplified, because the calculation of the coefficient of variation is relatively simple, but also uncertainty and reliability are taken into account, thereby optimizing the calculation method of the first-order matrix.

[0060] Furthermore, in step 4, the core of constructing the global evolution model is to use the user equilibrium strategy to simulate the traffic flow state in each area to ensure that the vehicle flow distribution in each local network area is balanced; integrate external influencing factors, such as weather conditions, speed limit regulations, traffic light timing, etc., and use weight parameters to quantitatively describe the degree of influence of these factors; integrate the operation results based on the user equilibrium strategy in each road network area and various influencing factors to form a global evolution model, reflecting the process of transitioning from the current state F(t) to the next state F(t+1) in a probabilistic form; in constructing a global evolution model based on a local game theory mechanism model, it is necessary to integrate the local strategy adjustment results of each area, and consider various influencing factors and weight parameters to derive the traffic flow state of the urban road network at the next moment, and the steps include the following:

[0061] Step 4-1: Regional road network model: First, for each road network area i in the city, its current traffic flow state can be expressed as f i (t); Under the influence of the user equilibrium strategy, each region achieves the local efficiency optimum, which is determined by local game theory analysis; Assuming that f is known i (t) is the traffic flow of area i at time t, u i (f i (t)) is the utility function under the user equilibrium measurement;

[0062] Step 4-2: Probability parameters and influencing factors: The change of each area state depends not only on the current traffic state, but also on the adjustment of various influencing factors. For example, S represents the parameter set of the speed limit in each area (the corresponding weight is ω S ), R represents the parameter set of traffic light timing (the corresponding weight is ω R ).

[0063] Step 4-3: Global evolution model construction: define a global state F(t) at time t:

[0064] F(t)=[f1(t),f2(t),...,f n (t)] T

[0065] F(t) represents the global state at the current time t, which is a vector in which each element f i (t) represents the traffic flow state of the ith area in the road network; the transition of the global evolution model from F(t) to F(t+1) is defined by the following formula:

[0066] F(t+1)=F(t)+ΔF(t)

[0067] Among them, ΔF(t) is the state change, which is determined by the weighted sum of the following influencing factors:

[0068]

[0069] in, They represent the flow changes at time t caused by the speed limit S and the traffic light timing R in the i-th area respectively; these changes are weighted based on the corresponding weight parameters ω of the corresponding influencing factors;

[0070] I a cc(t) is a vehicle accident model. In a traffic network, an accident can cause a sharp drop in traffic flow and driving speed. The accident impact function I is defined as a cc(t) is used to describe the impact of the accident on the traffic state during its duration, which can be expressed as:

[0071]

[0072] Among them, t acc is the specific date and time of the accident; clear is the estimated time required to clear the accident; k is a weighting factor that is adjusted based on the actual impact of the accident on traffic (e.g., percentage of road closures, severity of the accident); the function decreases linearly with time after the accident until t clear The time is over, after which the accident no longer affects the traffic status;

[0073] I weather (t) is a weather event model that can be used to describe the impact of unexpected severe weather conditions (such as heavy rain, heavy snow, sandstorm, etc.) on the transportation system; this model can be defined as:

[0074]

[0075] Among them, t start is the date and time when the weather event starts, σ ​​is the parameter of the impact range of the weather event, which determines how the impact spreads over time, and α is an adjustment coefficient based on the intensity of the event, which represents the maximum impact intensity. The function uses a Gaussian waveform, indicating that the impact of the weather event on traffic rises rapidly at the beginning, reaches a peak, and then gradually weakens over time; both emergency event models can be directly integrated into the global evolution model F(t) as factors affecting traffic conditions; when these events occur, F(t) can be recalculated to reflect the new traffic conditions, thereby helping the evolution model to respond and adjust quickly.

[0076] Consider a simple discrete-time Markov chain model. The state transition probability P can be determined by the global utility function U(F(t),X), where X is the set of influencing factors; therefore, it can be expressed as follows:

[0077]

[0078] The global utility function combines the utility functions of each region:

[0079]

[0080] Here, U will determine the probability of the next state and derive the final situation deduction model;

[0081] Furthermore, in step 5, in order to measure the difference between the output of the evolution model and the actual decision and find the optimal result, the cost loss function defined will focus on time delay and congestion, and the parameter update rule will be based on the gradient descent method. The specific steps include the following:

[0082] Step 5-1: Definition of cost loss function: Define the cost loss function J(F) as the traffic congestion cost under the global state F. The loss function can be expressed as:

[0083]

[0084] Among them, F(t) is the output state of the evolution model at time t, F obs (t) is the actual traffic flow state at time t, obtained through observation data, F(t-1) is the output state of the evolution model at the previous time t-1, λ1, λ2 are weight factors and λ1+λ2=1. This cost function can reflect the difference between the current output of the evolution model and the actual traffic decision and the difference between the output of the evolution model at the previous moment;

[0085] Step 5-2: Parameter update rule: Model parameters X = {W, S, R}, and corresponding weights ω = {ω W ,ω S ,ω R}, needs to be updated according to the cost loss function; the parameter update rule is based on gradient descent and has the following form:

[0086]

[0087] Among them, α is the learning rate, a small positive number used to control the size of the update step;

[0088] Step 5-3: Derivation of iterative formula and gradient calculation: In order to minimize the cost function, the gradient descent method is used, which is specifically expressed as follows:

[0089]

[0090] in, is the gradient of J with respect to F(t) at the current state of X, which can be calculated by the chain rule:

[0091]

[0092] The update rule ensures that each iteration moves in the fastest direction to reduce the loss function until the loss function J(F) converges to a minimum value or drops below a preset threshold. When the loss function is minimized, the state F(t) of the road network in each region will be close to the actual observed value or reach the target state. At this time, the determined parameter X and the corresponding road network state will obtain the optimal result.

[0093] Furthermore, in step 6, the optimization method of the traffic status is proposed to specifically include:

[0094] Dynamically adjust the signal timing strategy: In the evolutionary model, the signal timing parameter R significantly affects the efficiency of the intersection; the cost function J captures the deviation between the model prediction and the actual observation, and may include the smoothness of the traffic flow as an optimization goal; therefore, adjusting the signal timing in response to real-time data and the output of the prediction model will directly reduce the value of the cost function, which means improving the efficiency of the intersection and reducing congestion;

[0095] Speed ​​limit adjustment strategy: The speed limit S directly affects the speed of traffic and the service level of the road section; adjusting the speed limit can not only directly control the state of traffic flow, but also is the key variable in the cost function J; appropriately reducing the speed limit during peak hours can increase the queuing distance of vehicles, relieve the pressure at the intersection, and reduce the time delay cost in the cost function;

[0096] Real-time traffic information feedback: The evolutionary model predicts the traffic flow situation in different areas at different time points, and the real-time traffic information can be used to adjust the driver's behavior, resulting in real-time correction of the model prediction; this will indirectly affect the efficiency loss term J of the cost function, optimize the traffic flow at the macro level, and avoid possible congestion areas;

[0097] Traffic demand management: Demand management at the system level has a profound impact on the entire city's traffic; by managing commuting time or encouraging non-traditional work arrangements, the traffic pressure during peak hours is reduced, and the congestion risk in the evolution model is reduced; the cost function J will reflect the positive impact of this demand management strategy, because the overall traffic flow and pressure reduction make the model prediction state closer to the actual observed state.

[0098] Beneficial effects:

[0099] 1. The present invention uses a local mechanism model, combined with a global evolution model, to accurately predict and optimize traffic flow distribution, which has the potential to significantly reduce traffic congestion, improve the overall operating efficiency of the road network, and optimize vehicle travel time.

[0100] 2. The present invention allows the urban traffic network to quickly adapt to emergencies such as accidents, emergencies or major events during the iterative evolution process. The traffic situation cost loss function can evaluate the effects of different response strategies, allowing decision makers to make the most reasonable adjustments in a short period of time.

[0101] 3. The present invention models the city’s road network environment through digital twin technology, maps the physical entities of the city’s road network environment into virtual twin entities, and constructs a series of mechanism models. The operation results of multiple mechanism models drive the evolution model to deduce the states at different times, so as to better cope with the rapidly changing traffic environment, and thus minimize the accident rate at intersections in the city during peak hours, while enabling the entire transportation system to reach the peak flow that it can carry as much as possible, thereby improving the efficiency and reliability of the entire transportation system. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 This is an overall flow chart of the complex transportation system dynamic deduction and optimization method based on digital twins of the present invention. DETAILED DESCRIPTION

[0103] The invention will be further described in detail below in conjunction with the accompanying drawings.

[0104] like Figure 1 As shown, the present invention proposes a complex traffic system dynamic deduction optimization method based on digital twins, which includes the following steps:

[0105] Step 1: Obtain the environmental data of the urban road network, including the status data of elements such as roads, intersections, and buildings, and build a digital twin model of the urban road network based on this data;

[0106] Step 2: Divide the traffic road network environment of the entire city into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thereby dividing the road network into multiple small road network areas. Then, a traffic inflow model is constructed based on the characteristics of the road network structure.

[0107] Step 3: Based on the traffic flow model, the traffic flow is appropriately divided into multiple subsets. For each road network area, a scheduling scheme that optimizes the user equilibrium strategy is implemented based on factors such as weather factors, road speed limit strategies, and traffic light timing ratios. In this way, each area constitutes a local reasoning mechanism model;

[0108] Step 4: On the basis of the above step 3, based on the operation results of multiple road network regional mechanism models, a global evolution model is constructed, and a global situation deduction formula based on probability parameters, various influencing factors and weight parameters is established to obtain the state at the next moment;

[0109] Step 5: Based on the above step 4, in order to measure the difference between the model output and the actual decision, a traffic situation cost loss function is defined, and the update rules of each input parameter in the evolution model are proposed. The iteration is continuously deduced until the cost function reaches the minimum value and the optimal result is obtained;

[0110] Step 6: Based on the optimal results obtained from multiple iterations of the evolutionary model, propose an optimization method for the traffic status.

[0111] In the above step 2 of the present invention, a gridded DBSCAN algorithm is used to divide the road network of the entire city; the DBSCAN algorithm uses a grid division method to divide the data set into a number of grid areas, so that the DBSCAN algorithm can better adapt to the characteristics of the data set, thereby making the result of the road network division more accurate. The DBSCAN algorithm implementation steps include the following:

[0112] Step 2-1: Grid division: Assume an n-dimensional data set D (i = 1, 2, 3, ..., n), the value R on the i-th dimension gi ∈[l i ,h i ], then For an n-dimensional data space, the number of data is N. The data space is divided into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thus forming mutually orthogonal grid units.

[0113] Step 2-2: Data set: Map each object in the N data sets to the corresponding grid one by one, and map each object in the data set to the grid g i In each grid g i The number of objects is That is, the grid density;

[0114] Step 2-3: Merge adjacent grids to form a region: Use relative density difference as the criterion for grid merging; traverse the grid set and select the grid unit with the largest grid density as the initial value to start iteration. During the iteration process, if it is found that the relative density difference between two grid units is less than the set standard value, the two grids are merged to form a large grid region; repeat the above process until all grids do not meet the grid merging criterion, so that the n-dimensional data set D can be divided into regions D1, D2…, D k and some noise points that cannot be merged, thereby dividing the road network into multiple small road network areas.

[0115] The above step 2 of the present invention constructs a flow input model in the road network area based on factors such as the road's travel time period, the road's regional location, and the structural characteristics of the road network. The specific process is as follows:

[0116] ⑴ For the traffic time period T, there are significant differences in traffic flow in different time periods, such as regular weekdays and weekends, and morning and evening peak times of the day usually have a significant impact on traffic flow; the hyperbolic tangent function tan(a·T) is used to simulate the impact of the traffic period, where T refers to the time period (such as peak or non-peak period); the hyperbolic tangent function has the characteristics of close to linear growth when T is small (i.e. non-peak period), and close to saturation when T increases (i.e. close to or in peak period); this means that during non-peak period, traffic flow is more sensitive to changes in time period, while during peak period, further increasing the value of T will slow down the increase in its impact on traffic flow;

[0117] By adjusting the parameter a, the sensitivity and saturation rate of this time effect change can be adjusted; the larger the value of a, the faster the saturation is reached, which is suitable for roads that are particularly sensitive to peak hours; conversely, it is suitable for roads with relatively gentle traffic changes.

[0118] ⑵For the area position L, through the square term L 2 To simulate the impact on traffic flow; the specific indicator of L in this model refers to the area type, such as whether it is adjacent to landmarks with high traffic volume, such as shopping malls, schools, or commercial areas; these locations may cause a significant increase in traffic volume on surrounding roads due to their dense population or vehicle concentration characteristics;

[0119] The L value can represent the nonlinear reinforcing effect of the regional location on traffic flow; when the value of L is small, it means that the region has a small impact on the flow; when the value of L is large, its impact on the flow is out-of-proportionate, which reflects that roads close to busy landmarks may experience an accelerated effect of flow growth.

[0120] ⑶ For a specific road network structure, the road width S width and the number of intersections S num , by log(1+S width ) to represent the influence of road width, pointing out that as the road width increases, the traffic volume it can accommodate increases, but the rate of increase will decrease with S width As the width of a road increases, it gradually decreases; this is in line with the actual situation. Assuming that a very wide road can increase traffic flow compared to a narrow road, this increase is not unlimited; when the road width is increased within a certain range, the number of lanes can be significantly increased, thereby increasing traffic flow; but due to other factors (such as traffic lights, vehicle turning requirements, etc.), the increase in lanes does not always translate into a completely linear increase in traffic flow; +1 ensures that when S width = 0, the logarithmic term is defined, reflecting that even on very narrow roads, there is a certain base flow;

[0121] pass Describes the negative impact of the number of intersections on traffic flow, where the negative sign indicates that an increase in the number of intersections will lead to a decrease in traffic flow, since an increase in intersections usually means more stops, waits, and increased conflict points between vehicles, leading to a decrease in flow;

[0122] Based on factors such as travel time, hot spot location, and road characteristics of the road network structure, a nonlinear model is constructed to represent the nonlinear impact of these factors on the traffic flow input model of the road network area. The formula for constructing the traffic flow input model is as follows:

[0123]

[0124] Among them, Q0 is the baseline flow of the road network area without any special conditions; ξ is the impact of other factors on the system input flow, and α, β, γ, and δ represent the weights of the corresponding influencing factors.

[0125] In the above step 3 of the present invention, a user balance strategy is implemented as the optimal scheduling scheme based on objective factors such as weather, road speed limit strategy, traffic light timing ratio, etc., and the user balance optimal strategy is to take the shortest road section travel time as the goal;

[0126] Considering the weather factor e When considering the impact of different weather conditions on the traffic flow prediction model, a weather adjustment coefficient is introduced to quantify the impact of different weather conditions on road traffic efficiency. For each weather w, define W e (w) is the weather adjustment factor, which represents the capacity percentage under weather condition w relative to perfect weather; for example, for clear weather w s , W e (w s )=1.0 means no adjustment. For rainy weather w r , W e (w r )=0.8 means reducing the speed and flow by 20%. For snowy days, w snow , W e (w snow ) = 0.5 means reducing the speed and flow by 50%; Based on the above assumed traffic input flow model, the travel time of a section is determined by the free flow speed and current flow conditions of this section, combined with weather factors, the travel time of the section is calculated as follows:

[0127]

[0128] Among them, T e1 is the travel time of segment e under specific weather conditions; L is the length of segment e; is the free flow speed under standard conditions (i.e. clear weather) on section e; we (w) is the value corresponding to the current weather condition w e (w) is the weather w adjustment coefficient; Penalty is the additional delay time due to weather conditions.

[0129] Considering the speed limit factor S e The impact on traffic flow prediction model is e represents the legal speed limit for a specific road segment e; the driving time T e Length of the passing section L e Divide by the average speed of the vehicle V e To calculate, where the average speed of the vehicle is subject to the speed limit S e The impact of can be expressed as:

[0130] Under ideal conditions (i.e., when there is no congestion), the average speed of the vehicle is V e Usually related to the speed limit of the road section e However, in reality, the actual speed of the vehicle may be lower than the speed limit due to factors such as traffic flow, road conditions, and weather. Therefore, the actual average speed V of the vehicle e Introduce an adjustment coefficient α so that it is subject to the speed limit S e Impact: V e =min(S e ,α·C e ), where C e represents the traffic capacity or current flow of section e, α is an adjustment coefficient used to represent the impact of traffic flow on average speed; the average speed V considering the speed limit is e Rewriting the formula for the travel time gives:

[0131]

[0132] Traffic light timing ratio factor R e It refers to the proportion of green light in the signal cycle. If the signal cycle is C, the green light time is G, and the red light time is R, then the signal cycle can be expressed as: C = C + R, and the traffic light timing ratio factor R e It can be expressed as:

[0133]

[0134] Considering that vehicles may encounter red lights when arriving at intersections, the average delay needs to be calculated. If vehicles arrive randomly within a period, the average delay D can be simplified to half a red light period: Taking into account the influence of traffic lights, the travel time of the road section is T e It can be expressed as:

[0135]

[0136] Here L represents the length of the road section, v represents the vehicle speed; the corrected T e It includes the travel time of vehicles through the road section and the average waiting time caused by red lights; in this way, the average delay D directly affects the travel time T e , is one of the main contributing factors of intersection signal control to the total travel time;

[0137] Taking into account objective factors, such as weather factors, and human-controllable factors, such as road speed limit factors and traffic light timing ratio, the average road section travel time is calculated as follows: For each road section e, given the adjustment coefficient T affected by weather e1 , speed limit T e2 The proportion of traffic light timing is T e3 , average T e The calculation formula is as follows:

[0138]

[0139] Here D e (R e ) indicates that in addition to traffic light timing, weather and road speed limits, there are other relevant factors that may be added to the basic travel time.

[0140] Implement the user balance strategy. For each set of road segments, the actual travel time from any area to another area is equal and less than or equal to the time from the area to another area via any other path. Set the inflow flow of each road segment to F e , then different user equilibrium strategies can be used to solve the user equilibrium:

[0141] The first-order moment mean strategy is adopted to solve the user equilibrium. The solution is as follows:

[0142]

[0143] The first-order moment mean equilibrium strategy solves user equilibrium by directly using the average travel time of the road as a benchmark. It is easy to understand and calculate, and there is no need to understand the distribution characteristics of the travel time in detail. However, this equilibrium strategy ignores the volatility of the travel time: it only considers the average travel time and fails to reflect the uncertainty and volatility of the travel time, which is particularly important during peak hours or when encountering emergencies; and it may cause excessive congestion on some roads: because it does not consider the variance and only focuses on the average value, some roads may face serious congestion problems due to uneven traffic distribution.

[0144] The second-order moment variance strategy is used to solve the user equilibrium. The solution is as follows:

[0145] First, define the travel time T of section e e The relationship between the inflow volume f is T e (f), which may be nonlinear to reflect the non-proportional increase in travel time caused by the increase in traffic volume. The expected value of the average travel time of road e is:

[0146]

[0147] And its travel time variance (second-order moment) is:

[0148] Var[T e ]=E[(T e -E[T e ]) 2 ]=E[T e 2 ]-(E[T e ]) 2

[0149] Among them, E[T e 2 ] is the expected value of the squared travel time to flow, which can be obtained by the following integral:

[0150]

[0151] Therefore, the user equilibrium variance minimization model can be constructed as the following optimization problem:

[0152]

[0153] The second-order moment variance strategy aims to minimize the sum of the variances of all road travel times, reflecting the stability and predictability of traffic flow. By considering the variance of travel time, it can provide the evolutionary model with more stable and reliable travel time expectations, thereby reducing extreme travel time conditions caused by traffic fluctuations. However, the second-order moment has high implementation complexity, requires processing more data, and is more complex to calculate.

[0154] The reliability user equilibrium strategy is adopted to solve the user equilibrium. A collection model with more dimensions is introduced to balance the advantages of the first-order moment and the second-order moment while alleviating the disadvantages of the two methods as much as possible. This strategy not only considers the average travel time and the volatility of the travel time, but also tries to make the computational complexity and data requirements of the model within the practical feasible range. This can be achieved by incorporating the variance-mean ratio into the calculation of user equilibrium. First, the coefficient of variation CV of the travel time is defined as:

[0155]

[0156] Here E[T e] represents the first-order moment of the travel time, i.e., the average value, and is the standard deviation of the travel time, that is, the square root of the variance; In the reliability user equilibrium model, we try to minimize the following objective function:

[0157]

[0158] Among them, λ1 and λ2 are weight parameters for adjusting the importance of the first-order moment and the coefficient of variation; the first term of this objective function ensures that the mean of the travel time is optimized, while the second term optimizes the reliability (i.e., variability) of the travel time; in this way, not only the calculation is simplified, because the calculation of the coefficient of variation is relatively simple, but also uncertainty and reliability are taken into account, thereby optimizing the calculation method of the first-order matrix.

[0159] In the above step 4 of the present invention, the core of constructing a global evolution model is to use the user equilibrium strategy to simulate the traffic flow state in each area to ensure that the vehicle flow distribution in each local network area is balanced; integrate external influencing factors, such as weather conditions, speed limit regulations, traffic light timing, etc., and use weight parameters to quantitatively describe the degree of influence of these factors; integrate the operation results based on the user equilibrium strategy in each road network area and various influencing factors to form a global evolution model, reflecting the process of transitioning from the current state F(t) to the next state F(t+1) in a probabilistic form; in constructing a global evolution model based on a local game theory mechanism model, it is necessary to integrate the local strategy adjustment results of each area, and consider various influencing factors and weight parameters to derive the traffic flow state of the urban road network at the next moment, and the steps include the following:

[0160] ⑴ Regional road network model: First, for each road network area i in the city, its current traffic flow state can be expressed as f i (t); Under the influence of the user equilibrium strategy, each region achieves the local efficiency optimum, which is determined by local game theory analysis; Assuming that f is known i (t) is the traffic flow of area i at time t, u i (f i (t)) is the utility function under the user equilibrium measurement.

[0161] ⑵Probability parameters and influencing factors: The change of each area state depends not only on the current traffic state, but also on the adjustment of various influencing factors. For example, S represents the parameter set of the speed limit in each area (the corresponding weight is ω S ), R represents the parameter set of traffic light timing (the corresponding weight is ω R ).

[0162] ⑶ Global evolution model construction: define a global state F(t) at time t:

[0163] F(t)=[f1(t),f2(t),...,f n (t)] T

[0164] F(t) represents the global state at the current time t, which is a vector in which each element f i (t) represents the traffic flow state of the ith area in the road network; the transition of the global evolution model from F(t) to F(t+1) is defined by the following formula:

[0165] F(t+1)=F(t)+ΔF(t)

[0166] Among them, ΔF(t) is the state change, which is determined by the weighted sum of the following influencing factors:

[0167]

[0168] in, They represent the traffic flow changes at time t caused by the speed limit S and the traffic light timing R in the i-th area respectively; these changes are weighted based on the corresponding weight parameters ω of the corresponding influencing factors.

[0169] I a cc(t) is a vehicle accident model. In a traffic network, an accident can cause a sharp drop in traffic flow and driving speed. The accident impact function I is defined as a cc(t) is used to describe the impact of the accident on the traffic state during its duration, which can be expressed as:

[0170]

[0171] Among them, t acc is the specific date and time of the accident; clear is the estimated time required to clear the accident; k is a weighting factor that is adjusted based on the actual impact of the accident on traffic (e.g., percentage of road closures, severity of the accident); the function decreases linearly with time after the accident until t clear The time is over, after which the accident no longer affects the traffic situation.

[0172] I weather (t) is a weather event model that can be used to describe the impact of unexpected severe weather conditions (such as heavy rain, heavy snow, sandstorm, etc.) on the transportation system; this model can be defined as:

[0173]

[0174] Among them, t startis the date and time when the weather event starts, σ ​​is the parameter of the impact range of the weather event, which determines how the impact spreads over time, and α is an adjustment coefficient based on the event intensity, which represents the maximum impact intensity. The function uses a Gaussian waveform, indicating that the impact of the weather event on traffic rises rapidly at the beginning, reaches a peak, and then gradually weakens over time; both emergency event models can be directly integrated into the global evolution model F(t) as factors affecting traffic conditions; when these events occur, F(t) can be recalculated to reflect the new traffic conditions, thereby helping the evolution model to respond and adjust quickly.

[0175] Consider a simple discrete-time Markov chain model. The state transition probability P can be determined by the global utility function U(F(t),X), where X is the set of influencing factors; therefore, it can be expressed as follows:

[0176]

[0177] The global utility function combines the utility functions of each region:

[0178]

[0179] Here, U will determine the probability of the next state and derive the final situation deduction model;

[0180] In the above step 5 of the present invention, in order to measure the difference between the output of the evolution model and the actual decision and find the optimal result, the defined cost loss function will focus on time delay and congestion level, and the parameter update rule will be based on the gradient descent method. The specific steps include the following:

[0181] ⑴ Definition of cost loss function: Define the cost loss function J(F) as the traffic congestion cost under the global state F. The loss function can be expressed as:

[0182]

[0183] Among them, F(t) is the output state of the evolution model at time t, F obs (t) is the actual traffic flow state at time t (obtained through observation data), F(t-1) is the output state of the evolution model at the previous time t-1, λ1 and λ2 are weight factors and λ1+λ2=1. The cost function can reflect the difference between the current output of the evolution model and the actual traffic decision as well as the difference between the output of the evolution model at the previous moment.

[0184] ⑵Parameter update rule: Model parameters X = {W, S, R}, and corresponding weights ω = {ω W ,ω S ,ω R}, needs to be updated according to the cost loss function; the parameter update rule is based on gradient descent and has the following form:

[0185]

[0186] Among them, α is the learning rate, a small positive number used to control the size of the update step.

[0187] ⑶ Derivation of iterative formula and gradient calculation: In order to minimize the cost function, the gradient descent method is used, which is specifically expressed as follows:

[0188]

[0189] in, is the gradient of J with respect to F(t) at the current state of X, which can be calculated by the chain rule:

[0190]

[0191] The update rule ensures that each iteration moves in the fastest direction to reduce the loss function until the loss function J(F) converges to a minimum value or drops below a preset threshold; when the loss function is minimized, the state F(t) of the road network in each region will be close to the actual observation value or reach the target state. At this time, the determined parameters X and the corresponding road network state can produce the optimal result.

[0192] In the above step 6 of the present invention, the optimization method of the traffic status specifically includes:

[0193] ⑴ Dynamically adjust the signal timing strategy: In the evolutionary model, the signal timing parameter R significantly affects the traffic efficiency of the intersection; the cost function J captures the deviation between the model prediction and the actual observation, and may include the smoothness of the traffic flow as an optimization goal; therefore, adjusting the signal timing in response to real-time data and the output of the prediction model will directly reduce the value of the cost function, which means improving the traffic efficiency of the intersection and reducing congestion.

[0194] ⑵ Speed ​​limit adjustment strategy: The speed limit S directly affects the traffic speed and the service level of the road section; adjusting the speed limit can not only directly control the state of traffic flow, but is also the key variable in the cost function J; appropriately lowering the speed limit during peak hours can increase the queuing distance of vehicles, help ease the pressure at the intersection, and reduce the time delay cost in the cost function.

[0195] ⑶ Real-time traffic information feedback: The evolutionary model predicts the traffic flow situation in different areas at different time points, and the real-time traffic information can be used to adjust the driver's behavior, resulting in real-time correction of the model prediction; this will indirectly affect the efficiency loss term J of the cost function, optimize traffic flow at the macro level, and avoid possible congested areas.

[0196] ⑷ Traffic demand management: Demand management at the system level has a profound impact on the entire city's traffic; by managing commuting time or encouraging non-traditional work arrangements, traffic pressure during peak hours can be reduced, reducing the risk of congestion in the evolutionary model; the cost function J will reflect the positive impact of this demand management strategy, because the overall traffic flow and pressure reduction make the model's predicted state closer to the actual observed state.

[0197] The above is a detailed introduction to the dynamic deduction and optimization method of complex transportation systems based on digital twins provided in the embodiments of the present invention. For those skilled in the art, according to the ideas of the embodiments of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A dynamic deduction and optimization method for complex transportation systems based on digital twins, characterized by: The method comprises the following steps: Step 1: Obtain environmental data of the urban road network, including status data of elements such as roads, intersections, and buildings, and build a digital twin model of the urban road network based on this data; Step 2: Divide the entire city's traffic network environment into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thus dividing the road network into multiple small road network areas. Then, construct a traffic inflow flow model based on the characteristics of the road network structure. Step 3: Based on the traffic flow model, the traffic flow is divided into multiple subsets. For each road network area, a scheduling solution that optimizes the user equilibrium strategy is implemented based on weather factors, road speed limit policies, and traffic light timing ratios. In this way, each area constitutes a local reasoning mechanism model; Step 4: Based on the above step 3, a global evolution model is constructed based on the operation results of multiple road network regional mechanism models. A global situation deduction formula based on probability parameters, influencing factors and weight parameters is established to obtain the state at the next moment; Step 5: Based on Step 4 above, to measure the difference between the model output and the actual decision, a traffic situation cost loss function is defined. Update rules for each input parameter in the evolutionary model are proposed, and the model is iterated continuously until the cost function reaches its minimum value, resulting in the optimal result. Step 6: Based on the optimal results obtained from multiple iterations of the evolutionary model, propose an optimization method for the traffic status.

2. The method for dynamic deduction and optimization of complex transportation systems based on digital twins according to claim 1 is characterized in that: In step 2, a gridded DBSCAN algorithm is used to divide the road network of the entire city. The DBSCAN algorithm uses a grid division method to divide the data set into several grid areas, so that the DBSCAN algorithm can better adapt to the characteristics of the data set, thereby making the road network division result more accurate. The DBSCAN algorithm implementation steps include the following: Step 2-1: Grid division: Assume an n-dimensional data set D (i = 1, 2, 3, ..., n), the value on the i-th dimension Then there is For an n-dimensional data space with N data, the data space is divided into orthogonal intervals of equal length in each dimension. Each interval does not interfere with each other, thus forming mutually orthogonal grid units. Step 2-2: Data collection: Map each object in the N data sets to the corresponding grid one by one, and map each object in the data set to the grid g i In each grid g i The number of objects is That is, the grid density; Step 2-3: Merge adjacent grids to form regions: Using relative density difference as the criterion for grid merging, traverse the grid set and select the grid cell with the largest grid density as the initial value to start iteration. During the iteration process, if the relative density difference between two grid cells is less than the set standard value, the two grids are merged to form a large grid region. Repeat the above process until all grids do not meet the grid merging criterion. In this way, the n-dimensional data set D can be divided into regions D1, D2..., D k and some noise points that cannot be merged, thereby dividing the road network into multiple small road network areas.

3. The method for dynamic deduction and optimization of complex transportation systems based on digital twins according to claim 1 is characterized in that: In step 2, a traffic flow input model within the road network area is constructed based on factors such as the road's travel time, the road's regional location, and the structural characteristics of the road network. Specifically, the model includes: For the travel time period T, traffic flow varies significantly in different time periods. For example, regular weekdays and weekends, as well as morning and evening peak times, usually have a significant impact on traffic flow. The hyperbolic tangent function tan(a·T) is used to simulate the impact of the travel time period, where T refers to the time period (e.g., peak or off-peak period). The hyperbolic tangent function has the characteristics of nearly linear growth when T is small (i.e., off-peak period) and close to saturation when T increases (i.e., close to or during peak period). This means that during off-peak period, traffic flow is more sensitive to changes in time period, while during peak period, increasing the value of T slows down the increase in traffic flow. By adjusting the parameter a, the sensitivity and saturation rate of this time effect change can be adjusted. The larger the value of a, the faster the saturation is reached, which is suitable for roads that are particularly sensitive to peak hours; conversely, it is suitable for roads with relatively smooth traffic changes. For the area position L, by the square term L 2 To simulate the impact on traffic flow; the specific indicator L in this model refers to the area type, such as whether it is adjacent to landmarks with high pedestrian flow, such as shopping malls, schools, or commercial areas; these locations, due to the characteristics of dense population or vehicle concentration, will cause a significant increase in traffic flow on surrounding roads; The L value represents the nonlinear reinforcing effect of the region's location on traffic flow; when the value of L is small, it means that the region has a small impact on traffic flow; while when the value of L is large, its impact on traffic flow is disproportionately increasing, which reflects that roads close to busy landmarks experience an accelerating effect of traffic growth; For a specific road network structure, the road width S width and the number of intersections S num , by log(1+S width ) to express the influence of road width, pointing out that as the road width increases, the traffic volume it can accommodate increases, but the rate of increase will decrease with S width As the width of a road increases, it gradually decreases, which is in line with the actual situation. Assuming that a very wide road can increase traffic flow compared to a narrow road, this increase is not unlimited. When the road width is increased within a certain range, the number of lanes can be significantly increased, thereby increasing traffic flow. However, due to other factors (such as traffic lights and vehicle turning requirements), the increase in lanes does not always translate into a completely linear increase in traffic flow. +1 ensures that when S width = 0, the logarithmic term is defined, reflecting that even on a very narrow road, there is a certain base flow; pass The negative effect of the number of intersections on traffic flow is described. The negative sign indicates that an increase in the number of intersections will lead to a decrease in traffic flow. This is because an increase in the number of intersections usually means more stops, waiting, and an increase in conflict points between vehicles, which leads to a decrease in flow. Based on factors such as travel time, hotspot location, and road characteristics of the road network structure, a nonlinear model is constructed to represent the nonlinear impact of these factors on the traffic flow input model of the road network area. The formula for constructing the traffic flow input model is as follows: Among them, Q0 is the baseline flow of the road network area without any special conditions; ξ is the impact of other factors on the system input flow, and α, β, γ, and δ represent the weights of the corresponding influencing factors.

4. The method for dynamic deduction and optimization of complex transportation systems based on digital twins according to claim 1 is characterized in that: In step 3, a user balancing strategy is implemented as the optimal scheduling solution based on weather conditions, road speed limit strategies, and traffic light timing factors. The optimal user balancing strategy aims to minimize the travel time on the shortest road section. Considering the weather factors e When considering the impact of different weather conditions on the traffic flow prediction model, a weather adjustment coefficient is introduced to quantify the impact of different weather conditions on road traffic efficiency. For each weather w, define W e (w) is the weather adjustment factor, which represents the percentage of capacity under weather condition w relative to perfect weather. For example, for clear weather w s , W e (w s )=1.0 means no adjustment, for rainy weather w r , W e (w r )=0.8 means reducing the speed and flow by 20%. For snowy days, w snow , W e (w snow ) = 0.5 means reducing the speed and flow by 50%. Based on the above assumed traffic input flow model, the travel time of a road section is determined by the free flow speed and current flow conditions of the road section. Taking into account weather factors, the travel time of the road section is calculated as follows: Among them, T e1 is the travel time of segment e under specific weather conditions, L is the length of segment e, is the free flow speed of section e under standard conditions (i.e. clear weather), w e (w) is the weather condition corresponding to the current weather condition w e (w) is the weather w adjustment coefficient, Penalty is the additional delay time due to weather conditions; Considering the speed limit factor S e When it comes to the impact on traffic flow prediction models, S e represents the legal speed limit for a specific road segment e, and the driving time T e Length of the passing section L e Divide by the average speed of the vehicle V e To calculate, where the average speed of the vehicle is subject to the speed limit S e The impact is expressed as: Under ideal conditions, that is, when there is no congestion, the average speed of the vehicle V e Usually related to the speed limit of the road section e However, in reality, the actual speed of the vehicle may be lower than the speed limit due to factors such as traffic flow, road conditions, and weather. Therefore, the actual average speed V of the vehicle is e Introduce an adjustment coefficient α to make it subject to the speed limit S e Impact: V e =min(S e ,α·C e ), where C e represents the traffic capacity or current flow of section e, α is an adjustment coefficient used to represent the impact of traffic flow on average speed; the average speed V considering the speed limit is e Rewriting the formula for the travel time calculation yields: Traffic light timing ratio factor R e It refers to the proportion of green light in the signal cycle. If the signal cycle is C, the green light time is G, and the red light time is R, then the signal cycle is expressed as: C = C + R, and the traffic light timing ratio factor R e Expressed as: Considering that vehicles will encounter red lights when arriving at the intersection, the average delay needs to be calculated. If vehicles arrive randomly within the cycle, the average delay D is simplified to half a red light cycle: Taking into account the influence of traffic lights, the travel time of the road section is T e Expressed as: Here L represents the length of the road section, v represents the vehicle speed, and the corrected T e It includes the travel time of the vehicle through the road section and the average waiting time caused by the red light. In this way, the average delay D directly affects the travel time T e , which is one of the main contributing factors of intersection signal control to the total travel time; Taking into account objective factors such as weather and human-controllable factors such as road speed limit and traffic light timing, the average road section travel time is calculated as follows: For each road section e, under a given weather-affected adjustment coefficient T e1 , speed limit T e2 and traffic light timing ratio T e3 , average T e The calculation formula is as follows: Here D e (R e ) indicates that in addition to traffic light timing, weather and road speed limits, other relevant factors will be added to the basic travel time; Implement the user balance strategy. For each set of road segments, the actual travel time from any area to another area is equal and less than or equal to the time from the area to another area via any other path. Set the inflow flow of each road segment to F e , then the user equilibrium can be solved through different user equilibrium strategies: The first-order moment mean strategy is adopted to solve the user equilibrium. The solution is as follows: The first-order moment mean equilibrium strategy solves user equilibrium by directly using the average travel time of a road as a benchmark. This makes it easy to understand and calculate, without requiring a detailed understanding of the distribution characteristics of travel time. However, this equilibrium strategy ignores the volatility of travel time and only considers the average travel time, failing to reflect the uncertainty and volatility of travel time, which is particularly important during peak hours or when encountering emergencies. It can also lead to excessive congestion on some roads because it ignores variance and only focuses on the average, resulting in serious congestion on some roads due to uneven traffic distribution. The second-order moment variance strategy is used to solve the user equilibrium. The solution is as follows: First, define the travel time T of section e e The relationship between the inflow rate f is T e (f) is nonlinear to reflect the non-proportional increase in travel time caused by the increase in traffic volume. The expected value of the average travel time of road e is: And its travel time variance (second-order moment) is: in, is the expected value of the squared travel time over the flow rate, obtained by the following integration: Therefore, the user equilibrium variance minimization model is constructed as the following optimization problem: The second-order moment variance strategy aims to minimize the sum of all road travel time variances, reflecting the stability and predictability of traffic flow. By considering travel time variance, it can provide the evolution model with more stable and reliable travel time expectations, thereby reducing extreme travel time situations caused by traffic fluctuations. However, the second-order moment implementation is complex, requiring more data processing and more complex calculations. A reliability-based user equilibrium strategy is adopted to solve user equilibrium. A more dimensional ensemble model is introduced. This balances the advantages of first-order and second-order moments while alleviating the disadvantages of both methods. This strategy not only considers the volatility of average travel time and travel time, but also tries to keep the computational complexity and data requirements of the model within a practical range. This is achieved by incorporating the variance-mean ratio into the calculation of user equilibrium. First, the coefficient of variation (CV) of travel time is defined as: Here E[T e ] represents the first-order moment of travel time, i.e. the average value, and is the standard deviation of travel time, that is, the square root of the variance. In the reliability user equilibrium model, the following objective function is minimized: Among them, λ1 and λ2 are weight parameters that adjust the importance of the first-order moment and the coefficient of variation. The first term of this objective function ensures that the mean of the travel time is optimized, while the second term optimizes the reliability (i.e., variability) of the travel time. In this way, not only can the calculation be simplified, because the calculation of the coefficient of variation is relatively simple, but also uncertainty and reliability are taken into account, thereby optimizing the calculation method of the first-order matrix.

5. The method for dynamic deduction and optimization of complex transportation systems based on digital twins according to claim 1 is characterized in that: In step 4, the core of constructing a global evolution model is to use the user equilibrium strategy to simulate the traffic flow state in each area, ensure that the vehicle flow distribution in each local network area is balanced, integrate external influencing factors such as weather conditions, speed limits, and traffic light timing, and use weight parameters to quantitatively describe the degree of influence of these factors. The operation results based on the user equilibrium strategy in each road network area and various influencing factors are integrated to form a global evolution model, which reflects the process of transitioning from the current state F(t) to the next state F(t+1) in a probabilistic form. In constructing a global evolution model based on a local game theory mechanism model, it is necessary to integrate the local strategy adjustment results of each area and consider various influencing factors and weight parameters to deduce the traffic flow state of the urban road network at the next moment. The steps include the following: Step 4-1: Regional road network model: First, for each road network area i in the city, its current traffic flow state is represented by f i (t), under the influence of the user equilibrium strategy, each region achieves the local efficiency optimum, which is determined by local game theory analysis. Assuming that f is known i (t) is the traffic flow of area i at time t, u i (f i (t)) is the utility function under the user's equilibrium measurement; Step 4-2: Probability parameters and influencing factors: The change of each area state depends not only on the current traffic state, but also on the adjustment of multiple influencing factors. For example, S represents the parameter set of the speed limit in each area (the corresponding weight is ω S ), R represents the parameter set of traffic light timing (the corresponding weight is ω R ); Step 4-3: Global evolution model construction: define a global state F(t) at time t: F(t)=[f1(t),f2(t),...,f n (t)] T F(t) represents the global state at the current moment t, which is a vector in which each element f i (t) represents the traffic flow state of the i-th area in the road network. The transition of the global evolution model from F(t) to F(t+1) is defined by the following formula: F(t+1)=F(t)+ΔF(t) Where ΔF(t) is the state change, which is determined by the weighted sum of the following influencing factors: in, They represent the flow changes at time t caused by the speed limit S and traffic light timing R in the i-th area, respectively. These changes are weighted based on the corresponding weight parameters ω of the corresponding influencing factors; I a cc(t) is a vehicle accident model. In a traffic network, an accident can cause a sharp drop in traffic flow and driving speed. The accident impact function I is defined as a cc(t) is used to describe the impact of the accident on the traffic state during its duration, which can be expressed as: Among them, t acc is the specific date and time of the accident, t clear is the estimated time required to clear the accident, k is a weight factor that is adjusted based on the actual impact of the accident on traffic, and the function decreases linearly with time after the accident until t clear The time is over, after which the accident no longer affects the traffic situation; I weather (t) is the weather emergency event model, which is used to describe the impact of unexpected severe weather conditions on the transportation system. This model is defined as: Among them, t start is the date and time when the weather event begins, σ is a parameter for the impact range of the weather event, which determines how the impact spreads over time, and α is an adjustment coefficient based on the event intensity, indicating the maximum impact intensity. This function uses a Gaussian waveform, indicating that the impact of the weather event on traffic increases rapidly at the beginning, reaches a peak, and then gradually weakens over time. Both emergency event models can be directly integrated into the global evolution model F(t) as factors affecting traffic conditions. When these events occur, F(t) is recalculated to reflect the new traffic conditions, thereby helping the evolution model to respond and adjust quickly. Consider a simple discrete-time Markov chain model where the state transition probability P is determined by the global utility function U(F(t),X), where X is the set of influencing factors. Therefore, it can be expressed as follows: The global utility function combines the utility functions of each region: Here, U will determine the probability of the next state and derive the final situation deduction model.

6. The traffic state optimization method based on digital twin according to claim 1 is characterized in that: In step 5, to measure the difference between the evolution model output and the actual decision and find the optimal result, the cost loss function defined will focus on time delay and congestion level, and the parameter update rule will be based on the gradient descent method. The specific steps include the following: Step 5-1: Definition of cost loss function: Define the cost loss function J(F) as the traffic congestion cost under the global state F. The loss function is expressed as: Among them, F(t) is the output state of the evolution model at time t, F obs (t) is the actual traffic flow state at time t, obtained through observation data, F(t-1) is the output state of the evolution model at the previous time t-1, λ1 and λ2 are weight factors and λ1+λ2=1. This cost function can reflect the difference between the current output of the evolution model and the actual traffic decision and the difference between the output of the evolution model at the previous time; Step 5-2: Parameter update rule: Model parameters X = {W, S, R}, and corresponding weights ω = {ω W ,ω S ,ω R }, needs to be updated according to the cost loss function, and the parameter update rule is based on gradient descent and has the following form: Where α is the learning rate, a small positive number used to control the size of the update step; Step 5-3: Deducing the iterative formula and gradient calculation: In order to minimize the cost function, the gradient descent method is used, which is specifically expressed as follows: in, is the gradient of J with respect to F(t) at the current state of X, calculated by the chain rule: The update rule ensures that each iteration moves in the fastest direction to reduce the loss function until the loss function J(F) converges to a minimum value or drops below a preset threshold. When the loss function is minimized, the state F(t) of the road network in each area will be close to the actual observation value or reach the target state. At this time, the determined parameters X and the corresponding road network state can guide the optimal result.

7. The method for dynamic deduction and optimization of complex transportation systems based on digital twins according to claim 1 is characterized in that: In step 6, the optimization method of the traffic status is proposed to specifically include: Dynamically adjust traffic light timing strategies: In the evolutionary model, the signal timing parameter R significantly affects intersection efficiency. The cost function J captures the deviation between model predictions and actual observations and may include traffic flow smoothness as an optimization objective. Therefore, adjusting traffic light timing in response to real-time data and the output of the prediction model will directly reduce the value of the cost function, which means improving intersection efficiency and reducing congestion. Speed ​​limit adjustment strategy: The speed limit S directly affects traffic speed and the service level of the road section. Adjusting the speed limit not only directly controls the state of traffic flow but is also a key variable in the cost function J. Appropriately lowering the speed limit during peak hours can increase the distance between vehicles queuing, help alleviate intersection pressure, and reduce the time delay cost in the cost function. Real-time traffic information feedback: The evolutionary model predicts traffic flow trends in different areas at different times. Real-time traffic information can be used to adjust driver behavior, leading to real-time corrections to the model predictions. This indirectly affects the efficiency loss term J in the cost function, optimizing traffic flow at a macro level and avoiding possible congestion areas. Traffic demand management: Demand management at the system level has a profound impact on urban traffic as a whole. By managing commuting times or encouraging non-traditional work arrangements, we can reduce traffic pressure during peak hours and lower the risk of congestion in the evolutionary model. The cost function J will reflect the positive impact of this demand management strategy, because the overall traffic flow and pressure reduction will lead to a closer prediction of the model state to the actual observed state.

Citation Information

Cited By

  • Intelligent parking-oriented digital road model dynamic updating method and system

    CN119394291A

  • Traffic flow prediction method and device, computer equipment and storage medium

    CN119495194A

  • Power distribution control method and system for prefabricated equipment compartment based on digital twinning

    CN119891197A

  • Ecological driving method considering credit control uncertainty

    CN119920090A

  • Intelligent traffic light scheduling method and system combined with edge calculation

    CN120356352A