Dynamic urban traffic scene digital twin modeling method

By acquiring real traffic scene data and automatically generating simulated road networks, and setting traffic flow parameters in segments, the problem of time-consuming and labor-intensive traffic flow data collection and difficulty in parameter configuration in the existing technology is solved, and efficient digital twin modeling of urban traffic scenes is achieved. , reducing the cost of developing automatic driving control algorithms.

CN118607174APending Publication Date: 2024-09-06SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410627872.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When simulating real urban traffic scenarios, the existing technology relies on traffic flow data collected on site, which is time-consuming and labor-intensive, has high labor costs, and lacks a method to configure the traffic flow parameters of the SUMO traffic simulation model, making it difficult to construct dynamic urban traffic scenarios.

Method used

By obtaining real traffic scene data, using map service providers to obtain road network and traffic flow data, automatically generating simulated road networks, setting traffic flow parameters in segments, and using double-sample K-S test to adjust parameters to ensure that the simulation scene is consistent with the real scene. sex.

Benefits of technology

It reduces labor costs, improves the creation efficiency of traffic simulation models, reduces the need for real vehicle road testing, significantly reduces control algorithm development costs, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607174A
    Figure CN118607174A
Patent Text Reader

Abstract

The invention discloses a dynamic urban traffic scene digital twin modeling method, which relates to the technical field of traffic simulation, and comprises the following steps: step 1, obtaining real traffic scene data through a map service provider; step 2, based on SUMO, constructing a dynamic traffic simulation model according to real traffic scene data; and step 3, collecting a simulation vehicle speed track and a real vehicle speed track under the same driving route, and verifying the consistency of the dynamic traffic simulation model and a real traffic scene. According to the invention, a real urban traffic scene can be simulated, and a large-scale simulation test is carried out in a virtual environment, so that the demand for a real vehicle road test can be remarkably reduced, the development cost of a control algorithm is reduced, and the development efficiency of the control algorithm is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of traffic simulation technology, and in particular to a digital twin modeling method for dynamic urban traffic scenes. Background Art

[0002] With the rapid development of automobile intelligence and networking technology, the demand for testing autonomous driving control algorithms continues to increase. Although the traditional real-car road testing method is intuitive, its expensive time cost and resource investment limit the rapid iteration and wide application of autonomous driving control algorithms. Simulation testing in a virtual environment has become an important way to solve this problem. However, existing research mainly relies on public offline traffic flow datasets for vehicle model calibration, vehicle behavior decision-making, and vehicle trajectory planning. These predefined vehicle speeds and trajectories can only construct static simulation test scenarios, while ignoring the dynamic game between traffic participants, making it difficult to accurately evaluate the actual performance of the control algorithm in a real environment.

[0003] SUMO (Simulation of Urban Mobility) is an open source traffic simulation tool developed by the German Aerospace Center for simulating urban traffic flow. It configures an independent driver model for each vehicle in the simulation environment, and uses these models to control the vehicle to move freely under the premise of complying with traffic rules. During the simulation process, the driver model of each vehicle can dynamically adjust the vehicle's behavior according to the traffic environment around the vehicle, including changing lanes, overtaking, accelerating and decelerating, etc. Figure 1 As shown in the figure, if the driver model of a vehicle in the environment finds that the speed of the vehicle in front is slowing down and the distance between them is gradually decreasing, the driver model of the vehicle will actively control the vehicle to change lanes to overtake or slow down to maintain a safe distance. Therefore, the traffic simulation model developed based on SUMO can effectively simulate the dynamic game between various traffic participants on real roads, thereby realistically simulating complex urban traffic scenes.

[0004] At present, there are some urban traffic simulation models based on SUMO, such as:

[0005] Chinese patent [CN 113409573 B] "A SUMO urban traffic simulation and traffic flow control method based on Matlab" proposes a method for accurately modeling SUMO traffic flow through Matlab. This method uses Matlab to batch process the traffic flow information of roads and major intersections obtained through field surveys into turn probability files and vehicle files, and generates traffic flow files required by SUMO simulation based on these, thereby significantly improving modeling efficiency.

[0006] Chinese patent [CN 115481531 B] "Real-time twinning method and system for road network traffic flow based on SUMO" proposes a dynamic closed-loop road network traffic flow twinning method, which can reversely infer the real-time traffic flow of the road network based on the data of traffic detection points on the real road, and through the secondary development of SUMO, the estimated network flow is configured in the form of vehicle input in the SUMO road network for reproduction, realizing the migration of actual traffic data to the traffic simulation model.

[0007] Chinese patent [CN 109284527 B] "A method for simulating traffic flow on urban roads" proposes a method for simulating traffic flow on urban roads based on a cellular automaton model and a probability theory method. The cellular automaton model abstracts the driving road into a cellular grid space, the road vehicles into cells, and makes decisions based on the probability of lane change that represents the driver's driving habits and driving intentions, making the simulation closer to reality.

[0008] However, the existing technology has the following problems: traffic flow data is usually obtained by relying on on-site collection, which is time-consuming, labor-intensive and has high labor costs; traffic scene modeling usually requires manual definition and creation of simulated road networks. For large-scale simulation scenarios, the workload of manually creating road networks is large; there is a lack of knowledge on how to configure the traffic flow parameters of the SUMO traffic simulation model based on the collected real traffic flow data.

[0009] Therefore, technical personnel in this field are committed to developing a digital twin modeling method for dynamic urban traffic scenarios, which can simulate real urban traffic scenarios. By conducting large-scale simulation tests in a virtual environment, the need for real vehicle road testing can be significantly reduced, thereby reducing the development cost of the control algorithm and improving the development efficiency of the control algorithm. Summary of the invention

[0010] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is how to simulate real urban traffic scenes and reduce actual vehicle road tests.

[0011] To achieve the above object, the present invention provides a method for digital twin modeling of dynamic urban traffic scenes, the method comprising the following steps:

[0012] Step 1: Obtain real traffic scene data through map service providers;

[0013] Step 2: Based on SUMO, a dynamic traffic simulation model is constructed according to real traffic scene data;

[0014] Step 3: Collect the simulated vehicle speed trajectory and the real vehicle speed trajectory under the same driving route to verify the consistency between the dynamic traffic simulation model and the real traffic scene.

[0015] Furthermore, the traffic scene data includes road network data and traffic flow data sets; the road network data includes intersection locations, traffic light locations, road length and width, the number of road vehicle lanes, and road speed limits; the traffic flow data sets reflect the speed distribution and changes of vehicle traffic on the vehicle's driving route.

[0016] Furthermore, the road network data is obtained in the following manner:

[0017] Select the city area containing the driving route through the online map platform of the map service provider and export the original osm data file;

[0018] Batch filter the environmental information irrelevant to the urban roads in the original osm data file through the JOSM editor to obtain the filtered original osm data file;

[0019] The filtered original osm data file is simplified, and lane information, intersection information, speed limit information along the driving route and road information intersecting the driving route are retained to obtain a simplified osm data file, which is the road network data.

[0020] Furthermore, the traffic flow data is obtained in the following manner:

[0021] The vehicle's route is divided into n+1 sub-segments according to n waypoints using ArcGIS software, and the longitude and latitude coordinates of each waypoint are obtained;

[0022] Call the driving route planning service API to obtain the length and expected travel time of each sub-segment;

[0023] Calculate the average speed data of each sub-section of the driving route at a certain time;

[0024] Through regular collection, the collected data are combined into a traffic flow dataset.

[0025] Furthermore, the step 2 further comprises:

[0026] Step 2.1, automatically generate a simulated road network;

[0027] Step 2.2: Configure the simulated traffic flow in sections.

[0028] Furthermore, the step 2.1 also includes:

[0029] Step 2.1.1, run the road network automatic conversion batch file, call the netconvert tool to convert the obtained osm data file into the road network file .net.xml required for SUMO network modeling;

[0030] Step 2.1.2: Check and calibrate the automatically generated simulated road network in the NetEdit editor based on the online panoramic map.

[0031] Furthermore, the step 2.2 also includes:

[0032] Step 2.2.1, divide the road network into N sections according to the actual road segmentation, and calculate the actual vehicle speed mean and standard deviation of each divided road section based on the collected traffic flow data set;

[0033] Step 2.2.2, setting the initial traffic flow parameters of the nth road section according to the calculated mean and standard deviation of the actual vehicle speed, where n = 1, 2, 3 ... N;

[0034] Step 2.2.3, run the traffic simulation model, and record the speed data of vehicles passing through the road section during the simulation;

[0035] Step 2.2.4: Perform a double-sample KS test on the speed data recorded by the simulation and the real speed data collected, with a significance level of α=0.05. If the probability P value calculated by the KS test is greater than α, the traffic flow parameters of the nth section of road are configured, and the step 2.2.5 is performed; if the probability P value calculated by the KS test is less than or equal to α, the traffic flow parameters of the nth section of road are fine-tuned and the step 2.2.3 is returned.

[0036] Step 2.2.5: When n≤N, set n=n+1 and return to step 2.2.2; when n>N, it indicates that the traffic flow parameter design of the simulation scenario has been completed.

[0037] Furthermore, in step 3, collecting the simulated vehicle speed trajectory includes:

[0038] Planning a specific driving route in a dynamic traffic simulation model, and configuring a test vehicle to drive along the specific driving route;

[0039] Different departure times are set for the test vehicles, and the dynamic traffic simulation model is run to obtain the real-time speed trajectory data of the test vehicles on a specific driving route to obtain the simulated speed trajectory.

[0040] Furthermore, in step 3, by setting different departure times, the actual speed trajectory of the vehicle is simulated according to the speed data set, as shown in the following formula:

[0041] v act (t) = f data set (s(v act (t),t),t)

[0042] Among them, v act(t) is the actual speed trajectory; t is the time the vehicle travels; f data set is the vehicle speed dataset collected offline; s(v act (t), t) is the distance traveled by the vehicle;

[0043]

[0044] Furthermore, the vehicle speed dataset is obtained from the traffic flow dataset.

[0045] Compared with the prior art, the present invention has at least the following beneficial technical effects:

[0046] 1. The present invention obtains the length of a certain road section and the expected travel time of a vehicle through navigation services, and then calculates the average speed of the traffic on the road, which can more conveniently obtain traffic flow data, save time and effort, and reduce labor costs;

[0047] 2. The present invention can automatically generate road network files, reducing the creation process of the SUMO traffic simulation model road network;

[0048] 3. The segmented setting method of traffic flow parameters proposed in the present invention reduces the difficulty of adjusting traffic flow parameters of the SUMO traffic simulation model;

[0049] 4. The present invention can obtain the speed trajectory of a real vehicle without the need for a real vehicle experiment, thereby reducing costs.

[0050] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is a schematic diagram of dynamic traffic simulation based on SUMO;

[0052] Figure 2 is a method flow chart of a preferred embodiment of the present invention;

[0053] Figure 3 It is a flow chart of road network data collection and processing of a preferred embodiment of the present invention;

[0054] Figure 4 It is a driving route planning schematic diagram of a preferred embodiment of the present invention;

[0055] Figure 5 is a flow chart of traffic flow data collection of a preferred embodiment of the present invention;

[0056] Figure 6 is a schematic diagram of a traffic flow data set of a preferred embodiment of the present invention;

[0057] Figure 7 It is a flow chart of automatic generation of simulated road network of a preferred embodiment of the present invention;

[0058] Figure 8 It is a schematic diagram of simulated road network calibration of a preferred embodiment of the present invention;

[0059] Fig. 9 is a flow chart of traffic flow parameter adjustment according to a preferred embodiment of the present invention;

[0060] Fig.10 It is a schematic diagram of a simulated vehicle speed trajectory of a preferred embodiment of the present invention;

[0061] Fig.11 It is a schematic diagram of the actual vehicle speed trajectory of a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0062] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.

[0063] This embodiment provides a method for modeling a dynamic urban traffic scene digital twin. Figure 2 As shown, the following steps are included:

[0064] Step 1: Collect and process real traffic scene data.

[0065] Obtain real traffic scene data through map service providers. Traffic scene data includes road network data and traffic flow data. Road network data covers key information such as the location of road intersections, traffic light locations, road length and width, number of road lanes, and road speed limits. Traffic flow data reflects the speed distribution and changes of vehicle traffic on the vehicle route. Collecting road network data and traffic flow data of real urban roads is a prerequisite for realizing dynamic urban traffic scene modeling.

[0066] Step 1.1: Road network data collection and processing.

[0067] Road network data can be obtained by collecting road information on site or from the geographic databases of major online map platforms (such as Google Maps, Baidu Maps, Amap, OpenStreetMap, etc.). Considering that collecting road information on site requires a lot of manpower and time, this embodiment obtains the road network data of the driving route from the open source geographic database of OpenStreetMap. Figure 3As shown in the figure, first select the urban area containing the driving route on the OpenStreetMap website and export the original osm data file. Since the original osm data file includes other environmental information in addition to road information, such as building shapes, rivers, walls, lakes, subways, etc., this information does not need to be paid attention to in the process of urban traffic scene modeling. Therefore, after exporting the original osm data, the urban environmental information that is not related to the road is batch filtered through the filter in the JOSM editor, and only the road information in the city is retained.

[0068] In addition, in order to further reduce the workload of traffic scene modeling, for the specified driving route, other roads in the environment that are not related to the driving route are further deleted, and only the relevant roads in the environment that have intersections with the driving route are retained; two-way roads are simplified to one-way routes along the driving route; and the overpasses passed by the driving route are simplified to several ramp auxiliary roads that merge in or out. The simplified road network data finally retains only the lane information, intersection information, speed limit information along the driving route, and road information that intersects with the driving route.

[0069] Step 1.2: Traffic flow data collection and processing.

[0070] Under the background of the vigorous development of domestic informatization and digitalization, road speedometers, in-vehicle map software, and mobile map software have been widely popularized, and the service ecology of online network map platforms has become increasingly perfect. The navigation service of network map service providers can accurately estimate the expected travel time of the entire trip based on the starting and ending points of the trip. Therefore, this embodiment obtains traffic flow data through the online Web service application programming interface (Application Programming Interface, API) provided by the map service provider.

[0071] Taking Amap as an example, Amap's Web service API provides a driving route planning service that can plan a vehicle's driving route from the starting point through each waypoint and finally reach the destination. Figure 4 As shown in the figure, the driving route planning service divides the vehicle's route into n+1 sub-segments based on n waypoints. At the same time, the length of each sub-segment can be calculated and the expected travel time of each sub-segment can be estimated through the cloud big data platform of Amap. sub n and expected travel time T sub n , the average speed of each sub-section can be calculated by formula (1):

[0072]

[0073] like Figure 5 As shown in Figure 1, the traffic flow data collection process includes the following steps:

[0074] Step 1.2.1: Use ArcGIS software to evenly divide the selected driving route into sub-segments of 100 m in length, obtain the longitude and latitude coordinates of each path point, and calibrate the path point coordinates in the Amap coordinate system;

[0075] Step 1.2.2: Call the driving route planning service API to obtain the length and expected travel time of each sub-segment;

[0076] Step 1.2.3, calculate the average vehicle speed data of each sub-section of the driving route at that moment according to formula (1);

[0077] Step 1.2.4: Regularly call the driving route planning service API to sample the traffic data of the driving route and calculate the average speed of each sub-segment, so as to form a traffic flow data set that reflects the changes in traffic speed over time, such as Figure 6 The horizontal axis of the traffic flow data set is the sampling time corresponding to the vehicle speed data, and the vertical axis is the position of the vehicle speed data corresponding to the selected driving route.

[0078] Step 2: Construction of dynamic traffic simulation model.

[0079] With the help of the open source traffic simulation tool SUMO, a simulated road network and simulated traffic flow are constructed based on the collected real traffic scene data, thereby completing the construction of a dynamic traffic simulation model.

[0080] The traffic simulation model based on SUMO usually contains three files: .net.xml, .rou.xml and .sumocfg. .net.xml and .rou.xml are data files, which correspond to the road network and traffic flow of the simulation scene respectively. .sumocfg is a simulation configuration file, which is responsible for saving simulation parameters. In order to simulate the real urban traffic scene, the road network and traffic flow files of the SUMO traffic simulation model need to be configured according to the real data collected.

[0081] Step 2.1: Automatically generate a simulated road network.

[0082] SUMO provides a visual road network editor netedit, which supports manual creation of road networks based on traffic maps. However, for large-scale simulation scenarios, manual creation of road networks is labor-intensive. In order to reduce the workload, an automatic generation solution for simulation road networks is designed, such as Figure 7 As shown, the following steps are included:

[0083] Step 2.1.1, run the road network automatic conversion batch file (Batch file, BAT), call the netconvert tool to load the collected osm format digital road network file, and convert it into a road network file .net.xml suitable for the SUMO traffic simulation model.

[0084] Step 2.1.2: Check and calibrate the automatically generated simulated road network in the NetEdit editor based on the online panoramic map, such as Figure 8 shown.

[0085] The developed automatic road network generation process effectively simplifies the process of creating the road network of the SUMO traffic simulation model.

[0086] BAT file format for automatic conversion of road network:

[0087] netconvert--osm-files The name of the osm file to be loaded.osm-o The name of the generated simulation network.net.xml--geometry.remove--tls.guess-signals--tls.discard-simple--tls.join--tls.default-type actuated--osm.elevation

[0088] Step 2.2: Traffic flow design of traffic simulation model.

[0089] In order to ensure the consistency between the simulation scene and the real traffic scene, the simulated traffic flow should restore the characteristics of the real traffic flow as much as possible. Specifically, the traffic flow speed data of the SUMO-based simulation model should be basically the same as the real speed data collected.

[0090] Research in the field of traffic engineering shows that the product of the vehicle density K on a road and the average speed v of the traffic equals the road's capacity Q, also known as traffic volume. For a road that has already been built, its maximum capacity is often considered a constant. When the traffic density on the road increases, the average speed of the traffic will decrease; when the traffic decreases, the average speed of the traffic will increase. The relationship between the average speed of the traffic and the traffic density can be expressed by the mathematical model proposed by Greenberg and Underwood:

[0091]

[0092] Among them, v m In order to achieve the traffic speed corresponding to the maximum traffic volume, K j is the maximum density of traffic flow when v = 0, v f is the maximum speed in free flow state, K mTo achieve the traffic density corresponding to the maximum traffic volume.

[0093] In the SUMO simulation model, the number of vehicles per hour in the traffic flow (i.e., the vehsPerHour parameter) determines the vehicle density of the road. At the same time, the SUMO simulation model also supports directly determining the average speed and standard deviation of the traffic flow by setting the traffic flow speed distribution factor (i.e., the speedFactor parameter). When designing the road traffic flow of the traffic simulation model, it is necessary to balance the two key parameters of vehsPerHour and speedFactor. In order to reduce the complexity of traffic flow parameter configuration in large-scale traffic scenarios, a segmented setting method is adopted to adjust the traffic flow parameters one by one according to the actual road characteristics, and configure the traffic flow parameters on each road in the simulated road network separately, such as Fig. 9 As shown, the following steps are included:

[0094] Step 2.2.1: Divide the road network into N sections according to the actual road segmentation. Based on the collected traffic flow data set, calculate the actual vehicle speed mean and standard deviation of each divided road section.

[0095] Step 2.2.2: Set the initial traffic flow parameters vehsPerHour and speedFactor (n=1, 2, 3…N) of the nth road according to the calculated mean and standard deviation of the actual vehicle speed.

[0096] Step 2.2.3: Run the traffic simulation model and record the speed data of vehicles passing through the road section during the simulation.

[0097] Step 2.2.4: Determine whether the simulation results are consistent with the real scene data, and perform a two-sample KS test on the simulated speed data and the collected real speed data, with a significance level of α = 0.05. If the probability P value calculated by the KS test is greater than α, it means that there is no significant difference between the distribution of the simulated speed and the real speed of the nth section of road, and the traffic flow parameters of the nth section of road are configured. If the probability P value calculated by the KS test is less than or equal to α, fine-tune the traffic flow parameters of the nth section of road and return to step 2.2.3.

[0098] Step 2.2.5: When n≤N, set n=n+1 and return to step 2.2.2. When n>N, it indicates that the traffic flow parameter design of the simulation scenario has been completed.

[0099] Step 3: Verification of urban traffic simulation model.

[0100] In order to verify the reliability of the constructed traffic simulation model, it is necessary to evaluate the consistency between the speed trajectory of vehicles traveling along a certain route in the simulation scenario and the speed trajectory of vehicles traveling along the route in the real scenario.

[0101] Step 3.1: Collect the simulated vehicle speed trajectory.

[0102] In order to obtain the simulated vehicle speed trajectory, a test vehicle is first configured in the constructed traffic simulation model to travel along the specified route. Then, by setting different departure times for the test vehicle, the simulation model is run to obtain the speed trajectory data of the test vehicle on the route. This process ensures that the speed trajectory is collected comprehensively and accurately, providing reliable simulation data for subsequent verification and analysis. The simulated vehicle speed collected from the simulation model is as follows: Fig.10 shown.

[0103] Step 3.2: Collect real vehicle speed trajectory

[0104] In order to obtain the real speed trajectory at a low cost, this embodiment proposes a data set driving collection method, which can collect the real speed trajectory without real vehicle experiments. This method simulates the speed trajectory of the vehicle in the collected speed data set by setting different departure times. The speed data set is included in the traffic flow data set obtained in step 1.2. In this way, the real speed trajectory data is obtained in a more economical and efficient way, providing convenient and reliable actual driving information for subsequent model verification.

[0105] v act (t) = f data_set (s(v act (t),t),t) (3)

[0106] where v act (t) is the actual speed trajectory, t is the time the vehicle travels, and f data set is the vehicle speed dataset collected offline, s(v act (t), t) is the distance traveled by the vehicle.

[0107]

[0108] by Fig.11 Taking the vehicle speed data set shown in the figure as an example, the speed trajectory of the real vehicle is obtained by the data set driving collection method. Fig.11 shown.

[0109] Step 3.3: Consistency analysis and evaluation.

[0110] observe Fig.10 The simulated vehicle speed trajectory and Fig.11 The real speed trajectory shows that the simulated speed trajectory obtained by the urban traffic simulation model is basically consistent with the real speed trajectory on the vehicle's driving route. This shows that the constructed virtual Shanghai traffic simulation model can reliably reflect the speed characteristics of different road types in urban scenes.

[0111] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A digital twin modeling method for dynamic urban traffic scenes, characterized in that: The method comprises the following steps: Step 1: Obtain real traffic scene data through map service providers; Step 2: Based on SUMO, a dynamic traffic simulation model is constructed according to real traffic scene data; Step 3: Collect the simulated vehicle speed trajectory and the real vehicle speed trajectory under the same driving route to verify the consistency between the dynamic traffic simulation model and the real traffic scene.

2. The dynamic urban traffic scene digital twin modeling method according to claim 1, characterized in that: The traffic scene data includes road network data and traffic flow data sets; the road network data includes intersection locations, traffic light locations, road length and width, number of road lanes, and road speed limits; the traffic flow data sets reflect the speed distribution and changes of vehicle traffic on the vehicle's driving route.

3. The dynamic urban traffic scene digital twin modeling method according to claim 2, characterized in that: The road network data is obtained in the following manner: Select the city area containing the driving route through the online map platform of the map service provider and export the original osm data file; Batch filter the environmental information irrelevant to the urban roads in the original osm data file through the JOSM editor to obtain the filtered original osm data file; The filtered original osm data file is simplified, and lane information, intersection information, speed limit information along the driving route and road information intersecting the driving route are retained to obtain a simplified osm data file, which is the road network data.

4. The dynamic urban traffic scene digital twin modeling method according to claim 3, characterized in that: The traffic flow dataset is obtained as follows: The vehicle's route is divided into n+1 sub-segments according to n waypoints using ArcGIS software, and the longitude and latitude coordinates of each waypoint are obtained; Call the driving route planning service API to obtain the length and expected travel time of each sub-segment; Calculate the average speed data of each sub-section of the driving route at a certain time; Through regular collection, the collected data are combined into a traffic flow dataset.

5. The dynamic urban traffic scene digital twin modeling method according to claim 4, characterized in that: The step 2 also includes: Step 2.1, automatically generate a simulated road network; Step 2.2: Configure the simulated traffic flow in sections.

6. The dynamic urban traffic scene digital twin modeling method according to claim 5, characterized in that: The step 2.1 also includes: Step 2.1.1, run the road network automatic conversion batch file, call the netconvert tool to convert the obtained osm data file into the road network file .net.xml required for SUMO network modeling; Step 2.1.2: Check and calibrate the automatically generated simulated road network in the NetEdit editor based on the online panoramic map.

7. The dynamic urban traffic scene digital twin modeling method according to claim 5, characterized in that: The step 2.2 also includes: Step 2.2.1, divide the road network into N sections according to the actual road segmentation, and calculate the actual vehicle speed mean and standard deviation of each divided road section based on the collected traffic flow data set; Step 2.2.2, setting the initial traffic flow parameters of the nth road section according to the calculated real speed mean and standard deviation, where n = 1, 2, 3 ... N; Step 2.2.3, run the traffic simulation model, and record the speed data of vehicles passing through the road section during the simulation; Step 2.2.4: Perform a double-sample KS test on the speed data recorded by the simulation and the real speed data collected, with a significance level of α=0.

05. If the probability P value calculated by the KS test is greater than α, the traffic flow parameters of the nth section of road are configured, and the step 2.2.5 is performed; if the probability P value calculated by the KS test is less than or equal to α, the traffic flow parameters of the nth section of road are fine-tuned and the step 2.2.3 is returned. Step 2.2.5: When n≤N, set n=n+1 and return to step 2.2.2; when n>N, it indicates that the traffic flow parameter design of the simulation scenario has been completed.

8. The method for digital twin modeling of dynamic urban traffic scenes according to claim 1, characterized in that: In step 3, collecting the simulated vehicle speed trajectory includes: Planning a specific driving route in a dynamic traffic simulation model, and configuring a test vehicle to drive along the specific driving route; Different departure times are set for the test vehicles, and the dynamic traffic simulation model is run to obtain the real-time speed trajectory data of the test vehicles on a specific driving route to obtain the simulated speed trajectory.

9. The dynamic urban traffic scene digital twin modeling method according to claim 8, characterized in that: In step 3, by setting different departure times, the actual speed trajectory of the vehicle is simulated according to the speed data set, as shown in the following formula: v act (t)=f dataset (s(v act (t),t),t) Among them, v act (t) is the actual speed trajectory; t is the time the vehicle travels; f dataset is the vehicle speed dataset collected offline; s(v act (t), t) is the distance traveled by the vehicle; 10. The method for digital twin modeling of dynamic urban traffic scenes according to claim 9, characterized in that: The vehicle speed dataset is obtained from the traffic flow dataset.

Citation Information

Cited By

  • Automatic parallel traffic simulation analysis method and device

    CN121211978A

  • Road traffic data processing method, system and server

    CN121564958A

  • Road traffic data processing method, system and server

    CN121564958B