Cross-modal trajectory knowledge transfer driven traffic dynamic simulation trajectory generation method

By constructing a multi-source cross-modal trajectory knowledge base and a cross-modal trajectory knowledge transfer framework, and combining physical dynamics and energy matching algorithms, the problem of insufficient cross-modal knowledge fusion in existing traffic dynamic simulation trajectory generation methods is solved. This enables efficient, stable, and diversified trajectory generation and authenticity verification in various traffic scenarios, thereby improving the reliability of simulation results.

CN123179659APending Publication Date: 2026-11-27PEKING UNIV SHENZHEN GRADUATE SCHOOL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611287896.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for generating traffic dynamic simulation trajectories suffer from limitations in the coverage of single-modal trajectory data, making it difficult to consider different scenarios and traffic participants. Insufficient cross-modal knowledge fusion leads to inadequate model generalization ability, making generated trajectories susceptible to noise and exhibiting poor stability. Furthermore, the lack of effective feedback and update mechanisms makes it difficult to improve trajectory generation accuracy and adaptability, and conflict detection and verification strategies are not flexible enough.

Method used

A multi-source cross-modal trajectory knowledge base is constructed. A GAT graph attention network and a Transformer encoder are used to eliminate modal heterogeneity. A cross-modal trajectory knowledge transfer framework is built. Trajectory generation and optimization are performed by combining physical dynamics and energy matching algorithms. A quantitative and qualitative verification system is introduced to achieve closed-loop iterative updates of knowledge.

Benefits of technology

The generalization performance of the trajectory generation model has been improved, data utilization and stability have been enhanced, multiple types of traffic scenarios have been covered, the diversity and realism of the generated trajectories have been significantly improved, and the reliability of simulation results has been enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179659A_ABST
    Figure CN123179659A_ABST
Patent Text Reader

Abstract

The application discloses a cross-modal trajectory knowledge transfer driven traffic dynamic simulation trajectory generation method, comprising the following steps: S1, multi-source cross-modal trajectory knowledge base construction; S2, cross-modal trajectory knowledge transfer framework building; S3, traffic dynamic simulation scene modeling; S4, initial simulation trajectory generation and dynamic optimization; S5, trajectory diversity enhancement and conflict resolution; S6, simulation trajectory reality verification; S7, knowledge closed loop iteration update. The cross-modal trajectory knowledge transfer driven traffic dynamic simulation trajectory generation method breaks the limitation of single modal data by constructing a multi-source cross-modal trajectory knowledge base, integrating multi-modal trajectory data such as real vehicles, road videos, virtual simulation and AIS ships, combining a GAT graph attention network to construct a knowledge correlation graph, and matching a cross-modal knowledge transfer framework, so that the method can be adapted to multiple types of traffic scenes such as expressways and urban roads, and the generalization performance of the trajectory generation model is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of traffic simulation technology, specifically to a method for generating traffic dynamic simulation trajectories driven by cross-modal trajectory knowledge transfer. Background Technology

[0002] Traffic dynamic simulation trajectory generation is one of the core technologies in intelligent transportation systems, traffic planning optimization, and autonomous driving testing and verification. The realism, diversity, and scenario adaptability of the generated trajectories directly determine the reliability and application value of the simulation results. With the rapid development of intelligent transportation technology, traffic scenarios are becoming increasingly complex. The emergence of multiple types of traffic participants, multi-condition driving environments, and multi-source trajectory data has placed higher demands on traffic dynamic simulation trajectory generation technology. It is urgent to break through the limitations of traditional trajectory generation methods and achieve trajectory simulation that balances efficiency and accuracy. Currently, existing traffic dynamic simulation trajectory generation methods are mainly divided into two categories: one is the physical model-based generation method, which generates simulation trajectories by constructing vehicle dynamics equations and traffic flow evolution models, combined with road constraints, traffic rules, and other conditions; the other is the data-driven generation method, which collects single-modal data such as real vehicle trajectories and road video trajectories, and uses machine learning and deep learning algorithms to train trajectory generation models to achieve the generation of simulation trajectories.

[0003] Data-driven generation methods have certain problems in use. On the one hand, the coverage of single-modal trajectory data is limited, making it difficult to take into account the trajectory characteristics of different scenarios and traffic participants, resulting in insufficient model generalization ability and inability to adapt to the trajectory generation needs of various traffic scenarios such as highways and urban roads. On the other hand, different modal trajectory data have heterogeneous differences, and existing methods lack effective cross-modal knowledge fusion and transfer mechanisms, failing to fully mine useful knowledge in multi-source heterogeneous trajectory data, resulting in low data utilization. Moreover, the generated trajectory is easily affected by noise in single-modal data, resulting in poor stability. In addition, existing trajectory generation methods generally lack a sound knowledge closed-loop mechanism. The generated simulation trajectory does not form an effective feedback update channel, and it is impossible to feed back the verified high-quality trajectory knowledge into model training or knowledge reserves, making it difficult to continuously improve the accuracy and adaptability of trajectory generation. At the same time, in the stages of trajectory conflict detection and resolution, and authenticity verification, existing methods mostly use single indicators or simple rules for processing, lacking a comprehensive verification system that combines quantitative and qualitative methods, and the conflict resolution strategy is not flexible enough, which can easily lead to trajectory distortion or secondary conflicts.

[0004] Therefore, it is necessary to provide a traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer. Summary of the Invention

[0005] The purpose of this invention is to provide a traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer, addressing the following issues raised in the background: Firstly, single-modal trajectory data has limited coverage, making it difficult to consider the trajectory characteristics of different scenarios and traffic participants, resulting in insufficient model generalization ability and an inability to adapt to the trajectory generation needs of various traffic scenarios such as highways and urban roads. Secondly, different modal trajectory data exhibit heterogeneity, and existing methods lack effective cross-modal knowledge fusion and transfer mechanisms, failing to fully exploit useful knowledge in multi-source heterogeneous trajectory data, leading to low data utilization. The generated trajectory is susceptible to noise from single-modal data, resulting in poor stability. Furthermore, existing trajectory generation methods generally lack a comprehensive knowledge loop mechanism. The generated simulated trajectory does not form an effective feedback update channel, making it impossible to feed back the verified high-quality trajectory knowledge into model training or knowledge reserves. This makes it difficult to continuously improve the accuracy and adaptability of trajectory generation. At the same time, in the stages of trajectory conflict detection and resolution, and authenticity verification, existing methods mostly use single indicators or simple rules for processing, lacking a comprehensive verification system that combines quantitative and qualitative methods. Moreover, the conflict resolution strategy lacks flexibility, which can easily lead to trajectory distortion or secondary conflicts.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer, comprising the following steps:

[0007] S1. Construction of a multi-source cross-modal trajectory knowledge base: Collect multi-source heterogeneous traffic trajectory data and corresponding scene-related data. The multi-source heterogeneous traffic trajectory data includes real vehicle trajectory data collected by vehicle terminals, road video trajectory data collected by monitoring equipment, virtual trajectory data generated by simulation platforms, and AIS ship trajectory data. First, modal division is completed according to data source and trajectory representation form. Then, Gaussian filtering and noise reduction and coordinate standardization are used to eliminate data redundancy and deviation. Subsequently, the spatiotemporal features, behavioral features, and constraint features of each modal trajectory are extracted to construct structured trajectory knowledge units. Graph neural networks are used to complete the association mapping between knowledge units and establish an indexed cross-modal trajectory knowledge base to realize the storage and retrieval of multi-modal trajectory knowledge.

[0008] S2. Construction of Cross-Modal Trajectory Knowledge Transfer Framework: An integrated cross-modal trajectory knowledge transfer framework is constructed, comprising a knowledge encoding module, a modality adaptation module, and a knowledge decoding module. The knowledge encoding module employs a Transformer encoder to map each modal trajectory knowledge unit into a knowledge embedding vector of a unified dimension, eliminating modal heterogeneity differences. The modality adaptation module introduces a dynamic attention mechanism, dynamically allocating transfer weights for each source modality knowledge by calculating the feature similarity between the source modality and the target modality trajectory knowledge, adapting to the dynamic changes in the working conditions of the target simulation scenario. The knowledge decoding module, combined with a deconvolution structure, decodes the adapted fused knowledge vector into a trajectory knowledge representation that fits the target simulation scenario.

[0009] S3. Traffic Dynamics Simulation Scenario Modeling: Input the road topology parameters, traffic flow characteristic parameters, and environmental constraint parameters of the target simulation area. Construct a traffic dynamics simulation scenario model using a grid-structured representation method. The road topology parameters include road grade, number of lanes, intersection layout, and road network connectivity. The traffic flow characteristic parameters cover traffic volume, vehicle density, vehicle speed distribution, and vehicle type proportion. The environmental constraint parameters include weather conditions, light intensity, and road traffic status. Based on the above parameters, generate a basic simulation scenario that includes static road structure, dynamic traffic participants, and scenario constraints. The scenario constraints include vehicle driving physical constraints, traffic safety constraints, and traffic rule constraints.

[0010] S4. Initial Simulation Trajectory Generation and Dynamic Optimization: Based on the established cross-modal trajectory knowledge transfer framework, source modal trajectory knowledge from the cross-modal trajectory knowledge base is called. After knowledge transfer and fusion, it is mapped to the traffic dynamic simulation scenario model to generate an initial simulation trajectory set. The initial simulation trajectory set covers different traffic participant types, different driving behaviors, and different scenario conditions. At the same time, a trajectory dynamic optimization module is constructed. Combining the principles of physical dynamics and traffic flow evolution laws, the initial simulation trajectory set is subjected to dual verification of dynamic compliance and scenario adaptability. Trajectories that violate constraints and do not conform to actual driving laws are corrected, and the optimized candidate trajectory set is output.

[0011] S5. Trajectory Diversity Enhancement and Conflict Resolution: A trajectory diversity enhancement mechanism is introduced, and a multimodal trajectory energy function is constructed based on the energy matching algorithm. By adjusting the energy weight scheduling parameters, the candidate trajectory set is guided to generate diverse driving behavior trajectories, covering conventional driving and rare critical behaviors such as lane changing, overtaking, and avoidance. A trajectory conflict detection and resolution module is built, and a lattice space mapping strategy is adopted to map the trajectory to a four-dimensional spatiotemporal lattice that integrates space, heading angle, time, and traffic pressure dimensions. The risk of trajectory conflict is monitored in real time through the traffic pressure energy field. When the lattice point field value exceeds the dynamic critical threshold, a self-organized critical collapse mechanism is triggered to complete the conflict resolution and generate a conflict-free simulation trajectory set.

[0012] S6. Simulation Trajectory Authenticity Verification: A trajectory authenticity verification system is constructed, employing a combination of quantitative indicators and qualitative analysis to comprehensively verify the conflict-free simulation trajectory set. Quantitative indicators include the deviation between the trajectory and the real trajectory, trajectory smoothness, behavioral diversity index, and conflict resolution efficiency. The deviation is calculated using mean square error, and the smoothness is evaluated using the trajectory curvature change rate. Qualitative analysis involves expert review in the transportation field to assess the actual driving rationality of the trajectory. By combining the quantitative and qualitative verification results, the optimal simulation trajectory that conforms to actual traffic operation characteristics is selected.

[0013] S7. Knowledge Closed-Loop Iterative Update: The selected optimal simulation trajectory is fed back to the cross-modal trajectory knowledge base. The trajectory knowledge units and modal association weights are updated through reinforcement learning algorithms. High-frequency effective trajectory knowledge is reinforced and stored, while invalid trajectory knowledge is weakened or removed. At the same time, the adaptation parameters of the cross-modal knowledge transfer framework are optimized to complete the entire closed-loop iteration process from knowledge transfer to trajectory generation to verification feedback and knowledge update, adapting to different traffic scenarios such as highways and urban roads.

[0014] Preferably, in step S1, the spatiotemporal features include trajectory coordinates, vehicle speed, acceleration, duration, and temporal correlation; the behavioral features include parameters and triggering conditions for behaviors such as following and changing lanes; and the constraint features include road, traffic signal, and vehicle dynamics thresholds. After normalization, each feature is incorporated into a knowledge unit, standardizing the extraction and processing of multiple types of trajectory features, providing accurate data support for cross-modal knowledge fusion, and improving the authenticity and compliance of subsequent trajectory generation.

[0015] Preferably, in step S1, the graph neural network adopts the GAT graph attention network, which mines the correlation strength between different modal trajectory knowledge units through the attention mechanism, and constructs a knowledge correlation graph. The knowledge correlation graph includes intra-modal knowledge correlation and cross-modal knowledge correlation, and adds scene tags to each knowledge unit to realize scene-based retrieval of adapted trajectory knowledge, strengthen multi-modal trajectory knowledge correlation, realize scene-based fast retrieval, and improve the efficiency of knowledge retrieval and the accuracy of cross-modal knowledge fusion.

[0016] Preferably, in step S2, the feature similarity calculation of the dynamic attention mechanism uses a cosine similarity algorithm combined with trajectory behavior correlation scoring. First, the feature vector matching degree is calculated using cosine similarity, then a correlation score is given based on the scene adaptability of the trajectory behavior. The final feature similarity is obtained by weighting these scores. Based on this similarity, the transfer weights of each source modality knowledge are dynamically allocated. The weight allocation result is dynamically adjusted in real time according to the traffic flow density and driving conditions of the target simulation scene. The cosine similarity calculation formula is:

[0017]

[0018] in For source modality knowledge feature vectors, For the target modality knowledge feature vector, , These are the magnitudes of the two vectors, respectively.

[0019] Preferably, in step S3, the physical constraints include limits on the vehicle's maximum acceleration, maximum deceleration, and minimum turning radius; the safety constraints include safe distances between vehicles and safe distances from road boundaries; and the traffic rule constraints include speed limits, traffic signal indications, and lane driving rules. These constraints are quantified and embedded into the simulation scenario model through constraint functions. The safe distance uses the classic car-following model formula:

[0020]

[0021] in For a safe following distance, For stationary safe distance, Current vehicle speed For reaction time, To maximize deceleration, multiple types of constraints are quantified to enhance the physical compliance of the trajectory and its adaptability to traffic safety, thus addressing the problem of poor scenario adaptability of existing physical models.

[0022] Preferably, in step S4, the dynamics compliance verification is based on vehicle dynamics performance parameters to verify whether the acceleration, deceleration, and steering angular velocity of the trajectory are within the allowable range of vehicle performance and whether they conform to the laws of vehicle driving dynamics; the scenario adaptability verification verifies whether the trajectory fits the road structure and lane distribution of the target scenario, and whether it follows traffic rules and environmental adaptation requirements. Unqualified trajectories are optimized by interpolation correction or regeneration. Through dual verification of dynamics and scenario adaptability, illegal trajectories are corrected, and the physical rationality and scenario fit of the trajectory are improved.

[0023] Preferably, in step S5, the energy matching algorithm constructs multiple low-energy basins corresponding to different driving modes, with each low-energy basin corresponding to the trajectory features of a type of driving behavior, guiding the trajectory samples to aggregate into diverse modes; the energy weight scheduling parameters are dynamically adjusted according to the aggressiveness requirements of the target simulation scenario, increasing the conservative weight when simulating congested road driving scenarios and increasing the aggressive weight when simulating high-speed driving scenarios.

[0024] Preferably, in step S5, the traffic pressure energy field is updated in real time through a field evolution equation. This field evolution equation is constructed by combining traffic flow density, vehicle speed, and trajectory conflict probability. The dynamic critical threshold is dynamically set according to the road capacity and traffic flow of the target simulation scenario. During conflict resolution, trajectories that conform to actual driving patterns are preferentially retained. Conflict resolution is achieved by fine-tuning the trajectory timing or driving path. The field evolution equation adopts:

[0025]

[0026] in For traffic pressure field values, For time, For vehicle speed, Where is the diffusion coefficient. Traffic flow density, For the probability of conflict, This is the source term function.

[0027] Preferably, in step S6, the behavior diversity index is calculated using trajectory behavior type coverage and trajectory parameter dispersion; conflict resolution efficiency is evaluated using conflict detection time, conflict resolution time, and conflict resolution success rate; expert review adopts an anonymous review method, inviting three or more experts with intermediate or higher professional titles in traffic engineering or trajectory simulation to conduct reviews from two dimensions: trajectory rationality and scenario adaptability. Trajectories with a review pass rate of not less than 80% are included in the optimal simulation trajectory candidate range. The deviation between the trajectory and the real trajectory is expressed using the mean square error formula:

[0028]

[0029] in The number of trajectory sampling points. The coordinates of the actual trajectory points. The system provides coordinates for simulated trajectory points, accurately selects the optimal trajectory, addresses the issue of poor trajectory realism in existing technologies, and improves simulation reliability.

[0030] Preferably, in step S7, the reinforcement learning algorithm adopts a DQN deep Q-network, using trajectory generation accuracy and scene adaptation rate as the core indicators of the reward function. Higher retrieval weights are assigned to knowledge units corresponding to high-frequency effective trajectory knowledge, and invalid trajectory knowledge is marked and then phased out. The adaptation parameter optimization of the cross-modal knowledge transfer framework includes the network parameters of the encoder and decoder and the weight calculation parameters of the dynamic attention mechanism. This optimizes knowledge updates and framework parameter iterations, strengthens the reuse of effective knowledge, and continuously improves trajectory generation accuracy and cross-scene generalization ability.

[0031] Compared with the prior art, the beneficial effects of the present invention are:

[0032] By constructing a multi-source cross-modal trajectory knowledge base, integrating multi-modal trajectory data such as real vehicles, road videos, virtual simulations, and AIS ships, and combining it with the GAT graph attention network to construct a knowledge association graph, the limitations of single-modal data are broken. With the cross-modal knowledge transfer framework, it can be adapted to various traffic scenarios such as highways and urban roads, greatly improving the generalization performance of the trajectory generation model and avoiding the shortcomings of insufficient generalization ability of existing data-driven methods.

[0033] By leveraging the Transformer encoder to achieve unified dimensional embedding of multimodal knowledge units, and by calculating the similarity of source and target modal features and dynamically allocating transfer weights through a dynamic attention mechanism, the heterogeneity differences of trajectory data from different modalities are effectively eliminated, the useful knowledge in multi-source heterogeneous trajectory data is fully explored, the data utilization rate is improved, and the impact of noise in single-modal data on the generated trajectory is reduced, thereby enhancing the stability of trajectory generation.

[0034] A trajectory diversity enhancement mechanism based on energy matching algorithm is introduced. By constructing multiple low-energy basins corresponding to different driving modes, the energy weight scheduling parameters are adjusted to guide the generation of diverse trajectories, which fully cover normal driving and rare critical behaviors such as lane changing, overtaking, and avoidance. This solves the problems of insufficient trajectory diversity and difficulty in simulating critical driving behaviors in existing methods, and improves the coverage of simulated trajectories to actual traffic conditions.

[0035] Furthermore, trajectory quality is ensured through dual optimization and comprehensive verification. On the one hand, dual verification of dynamic compliance and scenario adaptability is carried out by combining physical dynamics principles to correct illegal trajectories. On the other hand, a realism verification system combining quantitative and qualitative methods is constructed. Quantitative indicators such as mean square error and trajectory curvature change rate are used, along with qualitative analysis by expert review, to select the optimal trajectory that conforms to actual traffic characteristics, thus solving the problem of poor trajectory realism in existing methods. Attached Figure Description

[0036] Figure 1 This is the overall flowchart of the present invention;

[0037] Figure 2 This is a flowchart illustrating the multimodal knowledge construction and transfer process of this invention.

[0038] Figure 3 This is a flowchart of the scene modeling and trajectory optimization process of the present invention;

[0039] Figure 4 This is a flowchart of the authenticity verification and closed-loop iteration process of the present invention. Detailed Implementation

[0040] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0041] Please see Figure 1-4 This invention provides a traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer. To make the objectives, technical solutions, and beneficial technical effects of this invention clearer, the following detailed description is provided in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described in this specification are merely for explaining the invention and are not intended to limit the invention.

[0042] In this application embodiment, the following scenario is described: A city is undertaking an intelligent transportation system upgrade project, requiring dynamic traffic simulation of the road network within a 20-square-kilometer core urban area to evaluate the feasibility of regional traffic optimization schemes. This area includes urban arterial roads, secondary arterial roads, branch roads, and three large intersections. Traffic participants include various types such as private cars, buses, and trucks, and the area experiences complex conditions such as peak-hour congestion, off-peak traffic dispersion, and traffic disruptions during inclement weather. Existing simulation technologies generate trajectories with insufficient realism and significant deviations from actual traffic characteristics, resulting in low reliability of simulation results and an inability to provide effective support for traffic optimization decisions. Therefore, this invention employs the method of this invention to generate dynamic traffic simulation trajectories, accurately selecting the optimal trajectory, solving the problem of poor trajectory realism, and improving simulation reliability.

[0043] S1. Construction of a Multi-Source Cross-Modal Trajectory Knowledge Base: Collect multi-source heterogeneous traffic trajectory data and scene-related data from the core urban area of ​​the city. Specifically, real vehicle trajectory data comes from the onboard terminals of 500 taxis, covering one month of driving data; road video trajectory data comes from 80 monitoring devices in the area, extracting vehicle trajectories during morning peak hours (7:00-9:00), evening peak hours (17:00-19:00), and off-peak hours; virtual trajectory data comes from an existing traffic simulation platform, simulating rare scenarios such as extreme congestion and emergency avoidance; AIS ship trajectory data selects the shore-side driving trajectories of ships connected to nearby ports to supplement cross-domain traffic trajectory characteristics. Based on the data source and representation form, the collected data is divided into real vehicle modality, video modality, virtual modality, and ship cross-domain modality. Noise reduction is performed on the data from each modality using Gaussian filtering to eliminate trajectory jitter caused by sensor errors. All trajectory coordinates are standardized using the WGS84 coordinate system to eliminate coordinate deviations from different data acquisition devices. Then, the spatiotemporal features, behavioral features, and constraint features of each modality trajectory are extracted and normalized to construct structured trajectory knowledge units. A GAT graph attention network is used to mine the correlation strength of different modal knowledge units, constructing a knowledge association graph containing intra-modal and cross-modal associations. Scene tags such as morning rush hour, intersection, and congestion are added to each knowledge unit, establishing an indexed cross-modal trajectory knowledge base for rapid knowledge retrieval.

[0044] S2. Cross-modal trajectory knowledge transfer framework construction: A Transformer encoder is used to map the structured knowledge units of each modality in the knowledge base into a 512-dimensional unified-dimensional knowledge embedding vector, eliminating the heterogeneity differences of trajectory knowledge in different modalities and realizing a unified representation of multimodal knowledge. A dynamic attention mechanism is introduced to calculate the feature similarity between source modality and target modality knowledge for traffic simulation scenarios in core urban areas. The feature vector matching degree is calculated through the cosine similarity algorithm, and the relevance score is given by combining the adaptability of trajectory behavior with urban road scenarios. The final feature similarity is obtained by weighting. Based on the result, the transfer weights of each source modality knowledge are dynamically allocated, and the weights are adjusted in real time with the change of traffic flow density in the simulation scenario. Then, combined with the deconvolution structure, the adapted multi-source modality fused knowledge vector is decoded into a trajectory knowledge representation that fits the traffic scenario in core urban areas, and the target modality knowledge containing information such as driving behavior patterns, constraint boundaries, and temporal correlations is output.

[0045] S3. Traffic Dynamics Simulation Scenario Modeling: Input the road topology parameters, traffic flow characteristic parameters, and environmental constraint parameters of the target simulation area in the core urban area. Construct a traffic dynamics simulation scenario model using a grid-structured representation method, with a grid precision of 5 meters × 5 meters. Generate a basic simulation scenario containing static road structure, dynamic traffic participants, and scenario constraints. Among them, physical constraints set the maximum acceleration, maximum deceleration, and minimum turning radius of vehicles; safety constraints use a classic model to calculate safe following distances; traffic rule constraints include speed limits for each road segment, traffic signal timing, and lane driving rules.

[0046] S4. Initial Simulation Trajectory Generation and Dynamic Optimization: Based on the established cross-modal trajectory knowledge transfer framework, source modal knowledge from the cross-modal trajectory knowledge base is called. After knowledge transfer and fusion, it is mapped to the aforementioned traffic dynamic simulation scenario model to generate an initial simulation trajectory set. This set covers different traffic participants such as private cars, buses, and trucks, and includes different driving behaviors such as following, changing lanes, overtaking, and turning. It also covers different scenario conditions such as morning rush hour congestion, off-peak traffic flow, and rainy driving, generating a total of 10,000 initial trajectories. Then, a trajectory dynamic optimization module is constructed. Combining vehicle physical dynamics principles and traffic flow evolution laws, the initial trajectory set is subjected to dual verification. The dynamic compliance verification verifies whether the acceleration, deceleration, and steering angular velocity of the trajectory are within the allowable range of vehicle performance. The scenario adaptability verification verifies whether the trajectory conforms to the urban road structure and lane distribution, and whether it follows traffic rules and environmental adaptation requirements. For trajectories that violate constraints or do not conform to actual driving laws, interpolation correction or regeneration is used for optimization, outputting a set of 8,800 optimized candidate trajectories.

[0047] S5. Trajectory Diversity Enhancement and Conflict Resolution: A trajectory diversity enhancement mechanism is introduced, constructing a multimodal trajectory energy function based on an energy matching algorithm. This constructs multiple low-energy basins corresponding to different driving modes, such as regular driving, lane changing, overtaking, and emergency avoidance. Based on the traffic needs of core urban areas, energy weight scheduling parameters are adjusted: conservative weights are increased for morning rush hour congestion scenarios, while aggressive weights are increased for off-peak smooth traffic scenarios. This guides the candidate trajectory set to generate diverse driving behavior trajectories, covering regular driving and rare critical behaviors, mitigating mode collapse issues. A trajectory conflict detection and resolution module is built, employing a lattice space mapping strategy to map candidate trajectories to a four-dimensional spatiotemporal lattice integrating space, heading angle, time, and traffic pressure dimensions. The traffic pressure energy field is updated in real-time through the field evolution equation, with dynamic critical thresholds set according to road capacity and traffic flow. When the lattice point field value exceeds the critical threshold, a self-organized critical collapse mechanism is triggered, resolving conflicts by fine-tuning the trajectory timing or driving path, ultimately generating a set of 8500 conflict-free simulation trajectories.

[0048] S6. Simulation Trajectory Authenticity Verification: A quantitative index system was constructed to verify the set of conflict-free trajectories. The deviation between the trajectory and the real trajectory was calculated using the mean square error (MSE). 100 real taxi trajectories were selected as real trajectory samples, and the MSE values ​​of the simulated and real trajectories were calculated. Trajectory smoothness was evaluated using the trajectory curvature change rate, and trajectories meeting the requirements were retained. The behavioral diversity index was calculated using the trajectory behavior type coverage and trajectory parameter dispersion. Conflict resolution efficiency was evaluated using conflict detection time, conflict resolution time, and conflict resolution success rate. After quantitative verification, 6800 trajectories meeting the requirements were selected. Three experts with intermediate or higher professional titles in the field of traffic engineering were invited to conduct anonymous reviews of the quantitatively verified trajectories from two dimensions: trajectory rationality and scenario adaptability. The review pass rate was no less than 80%. Finally, combining the results of quantitative and qualitative verification, 5500 optimal simulation trajectories that conform to the characteristics of actual traffic operation were selected.

[0049] S7. Knowledge Closed-Loop Iterative Update: The 5500 optimal simulation trajectories selected are fed back to the cross-modal trajectory knowledge base. A DQN (Deep Q-Network) is used to update the trajectory knowledge units and modal association weights. High-frequency and effective trajectory knowledge is given higher retrieval weights, while invalid trajectory knowledge that does not conform to the urban road scenario is marked and phased out. At the same time, the encoder and decoder network parameters and dynamic attention mechanism weight calculation parameters of the cross-modal knowledge transfer framework are optimized to complete the closed-loop iteration of the entire process from knowledge transfer to trajectory generation to verification feedback and knowledge update, providing more accurate knowledge support for traffic simulation in other areas of the city.

[0050] Through the workflow of this embodiment, the deviation between the generated core urban traffic dynamic simulation trajectory and the real trajectory is significantly reduced; the trajectory covers various driving behaviors and scenario conditions on urban roads, and the diversity index is improved; after expert review, the trajectory authenticity acceptance rate reaches 92%, which effectively solves the problem of poor trajectory authenticity in existing technologies, greatly improves the reliability of traffic dynamic simulation, and provides accurate simulation data support for the evaluation of traffic optimization schemes in the upgrade project of the city's intelligent transportation system.

[0051] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer, characterized by: Includes the following steps: S1. Construction of Multi-Source Cross-Modal Trajectory Knowledge Base: Collect multi-source heterogeneous traffic trajectory data and corresponding scene-related data, preprocess the collected data, construct structured trajectory knowledge units, use graph neural networks to complete the association mapping between knowledge units, and establish an indexed cross-modal trajectory knowledge base; S2. Construction of Cross-Modal Trajectory Knowledge Transfer Framework: An integrated cross-modal trajectory knowledge transfer framework is constructed, comprising a knowledge encoding module, a modality adaptation module, and a knowledge decoding module. The knowledge encoding module uses a Transformer encoder to map each modal trajectory knowledge unit into a knowledge embedding vector of a unified dimension. The modality adaptation module uses a dynamic attention mechanism to dynamically allocate the transfer weights of each source modality knowledge by calculating the feature similarity between the source modality and the target modality trajectory knowledge. The knowledge decoding module adopts a deconvolution structure to decode the adapted fused knowledge vector into a trajectory knowledge representation that fits the target simulation scene. S3. Traffic Dynamics Simulation Scenario Modeling: Input the road topology parameters, traffic flow characteristic parameters, and environmental constraint parameters of the target simulation area, and construct a traffic dynamics simulation scenario model using a grid-structured representation method; S4. Initial Simulation Trajectory Generation and Dynamic Optimization: Based on the established cross-modal trajectory knowledge transfer framework, the source modal trajectory knowledge in the cross-modal trajectory knowledge base is called. After knowledge transfer and fusion, it is mapped to the traffic dynamic simulation scenario model to generate an initial simulation trajectory set. The initial simulation trajectory set is subjected to dual verification of dynamic compliance and scenario adaptability. Trajectories that violate constraints and do not conform to actual driving rules are corrected, and the optimized candidate trajectory set is output. S5. Trajectory Diversity Enhancement and Conflict Resolution: A multimodal trajectory energy function is constructed based on the energy matching algorithm. By adjusting the energy weight scheduling parameters, the candidate trajectory set is guided to generate diverse driving behavior trajectories. A trajectory conflict detection and resolution module was built. A lattice space mapping strategy was adopted to map the trajectory to a four-dimensional spatiotemporal lattice that integrates space, heading angle, time and traffic pressure dimensions. The risk of trajectory conflict was monitored in real time through the traffic pressure energy field. S6. Simulation trajectory authenticity verification: Construct a trajectory authenticity verification system and use a combination of quantitative indicators and qualitative analysis to comprehensively verify the set of conflict-free simulation trajectories. S7. Knowledge Closed-Loop Iterative Update: The selected optimal simulation trajectory is fed back to the cross-modal trajectory knowledge base. The trajectory knowledge units and modal association weights are updated through reinforcement learning algorithms. High-frequency effective trajectory knowledge is reinforced and stored, while invalid trajectory knowledge is weakened or eliminated. The adaptation parameters of the cross-modal knowledge transfer framework are optimized in sync, completing the entire closed-loop iteration process from knowledge transfer to trajectory generation to verification feedback and knowledge update.

2. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S1, the spatiotemporal features include trajectory coordinates, vehicle speed, acceleration, duration, and temporal correlation; the behavioral features include parameters and triggering conditions for behaviors such as following and changing lanes; and the constraint features include road, traffic signals, and vehicle dynamics thresholds.

3. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S1, the graph neural network adopts the GAT graph attention network, which mines the correlation strength between knowledge units of different modal trajectories through the attention mechanism and constructs a knowledge correlation graph. The knowledge association graph includes intra-modal knowledge associations and cross-modal knowledge associations, and adds a scene label to each knowledge unit.

4. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S2, the feature similarity calculation of the dynamic attention mechanism uses a cosine similarity algorithm combined with trajectory behavior relevance scoring. First, the feature vector matching degree is calculated using cosine similarity. Then, a relevance score is given by combining the scene adaptability of trajectory behavior. The final feature similarity is obtained through weighted averaging. Based on the similarity, the transfer weights of each source modality knowledge are dynamically allocated. The cosine similarity calculation formula is as follows: in For source modality knowledge feature vectors, For the target modality knowledge feature vector, , These are the magnitudes of the two vectors, respectively.

5. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S3, the physical constraints include limits on the vehicle's maximum acceleration, maximum deceleration, and minimum turning radius; the safety constraints include safe distances between vehicles and safe distances from road boundaries; and the traffic rule constraints include speed limits, traffic signal indications, and lane driving rules. The safe distance is calculated using the classic car-following model formula: in For a safe following distance, For stationary safe distance, Current vehicle speed For reaction time, This represents the maximum deceleration.

6. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S4, the dynamics compliance verification is based on the vehicle's dynamic performance parameters to verify whether the acceleration, deceleration, and steering angular velocity of the trajectory are within the allowable range of vehicle performance and whether they conform to the laws of vehicle driving dynamics. The scenario adaptability verification verifies whether the trajectory fits the road structure and lane distribution of the target scenario, and whether it follows traffic rule constraints and environmental adaptation requirements. Unqualified trajectories are optimized by interpolation correction or regeneration.

7. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S5, the energy matching algorithm constructs multiple low-energy basins corresponding to different driving modes, with each low-energy basin corresponding to the trajectory features of a type of driving behavior, guiding the aggregation of trajectory samples to form diverse modes. The energy weight scheduling parameters are dynamically adjusted according to the aggressiveness requirements of the target simulation scenario. When simulating a congested road driving scenario, the conservative weight is increased, and when simulating a high-speed driving scenario, the aggressive weight is increased.

8. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 7, characterized in that: In step S5, the traffic pressure energy field is updated in real time through a field evolution equation. This equation is constructed by combining traffic flow density, vehicle speed, and trajectory conflict probability. The dynamic critical threshold is dynamically set based on the road capacity and traffic flow of the target simulation scenario. During conflict resolution, trajectories that conform to actual driving patterns are prioritized. Conflict resolution is achieved by fine-tuning the trajectory timing or driving path. The field evolution equation adopts the following approach: in For traffic pressure field values, For time, For vehicle speed, Where is the diffusion coefficient. Traffic flow density, For the probability of conflict, This is the source term function.

9. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S6, the behavioral diversity index is calculated using trajectory behavior type coverage and trajectory parameter dispersion; conflict resolution efficiency is evaluated using conflict detection time, conflict resolution time, and conflict resolution success rate; the deviation between the trajectory and the actual trajectory is calculated using the mean square error formula: in The number of trajectory sampling points. The coordinates of the actual trajectory points. These are the coordinates of the points on the simulated trajectory.

10. The traffic dynamic simulation trajectory generation method driven by cross-modal trajectory knowledge transfer according to claim 1, characterized in that: In step S7, the reinforcement learning algorithm uses a DQN deep Q network, takes trajectory generation accuracy and scene adaptation rate as the core indicators of the reward function, assigns higher retrieval weights to knowledge units corresponding to high-frequency effective trajectory knowledge, and removes invalid trajectory knowledge in stages after marking it. The optimization of adaptation parameters for the cross-modal knowledge transfer framework includes the network parameters of the encoder and decoder, as well as the weight calculation parameters of the dynamic attention mechanism.