Intelligent vehicle trajectory prediction method and prediction system based on multi-modal space-time

By employing a trajectory prediction method based on multimodal spatiotemporal data processing and a hierarchical separable attention structure, the problems of insufficient multimodal information fusion and insufficient decoding mode adjustment in existing technologies are solved, achieving efficient and accurate trajectory prediction in complex traffic scenarios.

CN123219829APending Publication Date: 2026-12-04HEFEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611749079.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-06
Publication Date
2026-12-04

AI Technical Summary

Technical Problem

Existing trajectory prediction methods struggle to effectively integrate multimodal traffic information in complex traffic scenarios, and the decoding process lacks scene complexity awareness and adaptive adjustment capabilities, leading to predicted trajectories deviating from the actual path or violating traffic rules, resulting in wasted computational resources or insufficient coverage.

Method used

By acquiring multimodal spatiotemporal data and performing coordinate system-one and time synchronization processing, integrating historical motion trajectories, road elements, perception data and traffic rule constraints, a hierarchical separable attention structure is adopted for spatiotemporal interaction modeling, and the number of decoding modalities is adaptively adjusted according to the scene complexity to generate candidate trajectories.

Benefits of technology

It improves the environmental perception capability and the accuracy of trajectory prediction in complex traffic scenarios, reduces the risk of predicted trajectories deviating from the actual path or violating traffic rules, and improves the utilization efficiency of computing resources and the diversity and robustness of predictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123219829A_ABST
    Figure CN123219829A_ABST
Patent Text Reader

Abstract

This invention provides a method and system for predicting intelligent vehicle trajectories based on multimodal spatiotemporal data, relating to the field of autonomous driving technology. The invention acquires multimodal spatiotemporal data of the target and surrounding participants, and constructs multimodal input samples through a coordinate system synchronized with time. Features of each modality are embedded and projected into the same vector space, and scene features are obtained through spatiotemporal interactive modeling. The matching degree between seeds and scene features is calculated based on a learnable seed library. The number of activated seeds k is determined according to the scene complexity score, and the top k seeds are selected. K candidate trajectories and their probabilities are generated in parallel. The observation period is updated to calculate the predicted trajectory error. This application can integrate multimodal traffic information, adaptively adjust the number of seeds according to scene complexity, balance prediction coverage and computational efficiency, and improve prediction accuracy and safety through an error feedback closed loop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of autonomous driving technology, specifically to a method and system for predicting the trajectory of intelligent vehicles based on multimodal spatiotemporal modes. Background Technology

[0002] Trajectory prediction is a key component of intelligent vehicle autonomous driving systems to make safe decisions. Its task is to infer the target's trajectory over a future period based on historical observations of the target traffic participants and their surrounding environment. The accuracy of the prediction results directly affects the effectiveness of downstream path planning and safety decisions.

[0003] Among existing trajectory prediction methods, one class is based on recurrent neural networks or long short-term memory networks, treating trajectory prediction as a sequence generation problem and using the target participant's historical trajectories to generate future trajectories. These methods typically focus only on the target participant's own kinematic state, lacking modeling of interactions between surrounding traffic participants and road environment constraints, making it difficult to accurately predict driving trajectories in complex traffic scenarios.

[0004] In recent years, Transformer-based methods have been widely used in trajectory prediction. These methods utilize attention mechanisms to capture long-range dependencies in sequential data and map input information such as trajectories into multimodal candidate trajectories and their confidence scores through an encoder-decoder structure. However, these methods still do not fully utilize multimodal traffic information: on the one hand, the system input usually only contains the trajectory of the target vehicle and local map features, and the fusion of multi-source information such as perception information and traffic rule constraints is insufficient, making it difficult to simultaneously capture the spatial structure and temporal dynamics of the traffic scene, which may cause the predicted trajectory to deviate from the actual path or violate traffic rules; on the other hand, multimodal decoding usually uses a fixed number of decoding modes to output multiple candidate trajectories, and the decoding process lacks the ability to perceive and adaptively adjust to the complexity of the scene: in simple scenarios such as straight roads and few vehicles, a large number of candidate trajectories are still generated, resulting in wasted computing resources and increased inference latency; in complex scenarios such as multi-lane intersections and uncertain signal states, the fixed number of modes may not be enough to cover potential driving behaviors, reducing the diversity and robustness of predictions.

[0005] To address the aforementioned issues, an intelligent vehicle trajectory prediction method is needed that can integrate multimodal traffic information and adaptively adjust the number of decoding modes based on scene complexity.

[0006] The information disclosed in the background section is only intended to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] The purpose of this invention is to provide a method and system for predicting the trajectory of intelligent vehicles based on multimodal spatiotemporal conditions, so as to solve the problems mentioned in the background art.

[0008] To achieve the above objectives, the present invention provides the following technical solution: The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal methods includes the following steps: S1: Acquire multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; perform coordinate system-1 and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample; S2: Feature embedding is performed on each modal data in the multimodal input sample, and the embedded modal features are projected onto the same vector space to obtain a multimodal token sequence. The multimodal token sequence is then used for spatiotemporal interaction modeling to obtain scene features representing the current traffic environment. S3: Determine multiple seed vectors based on a learnable seed library, and calculate the matching degree between each seed vector and the scene features; S4: Evaluate the scene complexity of the current traffic environment to obtain a scene complexity score; adaptively determine the number of activated seeds based on the scene complexity score. k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; S5: Selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; S6: Update the observation period. Calculate the predicted trajectory error based on the actual observation data of the target traffic participants. When the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraint at multiple consecutive times, adjust the scene complexity score to increase the number of activated seeds. Repeat step S5 to reselect seed vectors to generate candidate trajectories for the current observation period.

[0009] Furthermore, the multimodal spatiotemporal data includes historical motion trajectory data, road element data, perception data, and traffic rule constraint data; wherein, the historical motion trajectory data includes the position, speed, and acceleration information of each traffic participant at each time step; the road element data includes lane centerlines, lane boundaries, and intersection topology information; the perception data includes perception images and / or radar point clouds; and the traffic rule constraint data includes traffic light status, speed limits, and traffic priority information.

[0010] Furthermore, the method also includes: fusing historical motion trajectory data, traffic participant density, traffic light status changes, lane connectivity topology, and surrounding perception information to construct a scene feature vector, and using a pre-trained scene classification network to identify the scene type of the current traffic environment, using the scene type as a scene prior for the feature embedding and / or the spatiotemporal interaction modeling; the scene type includes at least one of straight road, curve, intersection, merging / merging, congested road section, and signal control area; The multimodal input samples are stratified according to the scene type, and the sampled historical motion trajectory data are time-normalized and spatially recalibrated. The historical motion trajectories in the multimodal input samples are clustered based on the discrete Fréchet distance, and the number of neighbors of each trajectory within a given radius threshold is counted. Trajectories with fewer than a preset number of neighbors are removed as abnormal trajectories.

[0011] Furthermore, the feature embedding for each modality data includes: encoding the historical motion trajectory data using a temporal coding module to obtain a trajectory token; encoding the road element data using a road feature encoder to obtain a road token; embedding the perception image in the perception data into blocks and sparsifying the radar point cloud to obtain a geometric token; embedding the traffic rule constraint data semantically to obtain a constraint token; and before projecting the embedded modal features to the same vector space, performing cross-modal semantic alignment on each modal feature through a modal alignment layer. The modal alignment layer adopts a multi-head attention structure and minimizes the semantic distance between different modal embeddings through cross-modal alignment loss.

[0012] Furthermore, the spatiotemporal interaction modeling of the multimodal token sequence is performed by a Transformer encoder; the Transformer encoder adopts a hierarchical separable attention structure, which includes local subspace attention and global context attention, wherein the local subspace attention is used to model the local interaction between the target traffic participant and its nearest neighbor traffic participant, and the global context attention is used to model the scene-level global traffic flow trend.

[0013] Furthermore, the various sub-vectors in the learnable seed library are trainable vectors, each representing a potential trajectory generation starting point, and are updated along with the system parameters during training. The calculation of the matching degree between each seed vector and the scene feature includes: using a seed-scene interaction module, with each seed vector as the query and the scene feature as the key and value, and employing multi-head cross-attention to calculate the interaction score between each seed vector and the scene feature; and encoding road element data through a road feature encoder to obtain road features, concatenating each seed vector with the road feature through the seed-road interaction module, and then processing the concatenation through a multilayer perceptron to obtain the matching score between each seed vector and the road feature.

[0014] Furthermore, the scene complexity score is obtained by weighted fusion of at least one of the following indicators: prediction distribution entropy, number of road bifurcations, conflict point density, reciprocal of collision time, and traffic light state change variance. The prediction distribution entropy measures prediction uncertainty, the number of road bifurcations measures road topology complexity, the conflict point density measures traffic participant density and interaction intensity, the reciprocal of collision time measures potential collision risk, and the traffic light state change variance measures traffic signal uncertainty. The scene complexity score is obtained by summing the results after multiplying each of the fused indicators by its corresponding weighting coefficient.

[0015] Furthermore, the step of adaptively determining the number of activated seeds k based on the scene complexity score includes: converting the scene complexity score into a value within the preset range of minimum and maximum seed numbers through a monotonically increasing nonlinear mapping, and using this value as the number of activated seeds k; wherein the sensitivity and offset of the nonlinear mapping are controlled by preset routing hyperparameters, and the number of activated seeds k increases as the scene complexity score increases.

[0016] Furthermore, adjusting the scene complexity score to increase the number of activated seeds includes: mapping the predicted trajectory error and / or the degree of deviation of the predicted trajectory from the road constraint into a compensation increment, and superimposing the compensation increment onto the scene complexity score to obtain the adjusted scene complexity score; the consecutive multiple moments refer to N consecutive time steps, where N is an integer not less than 2; repeating step S5 to reselect seed vectors to generate candidate trajectories for the current observation period includes: redetermining the number of activated seeds based on the adjusted scene complexity score, reselecting a corresponding number of seed vectors from the learnable seed library according to the matching degree, and using the reselected seed vectors as the decoding starting point to generate candidate trajectories for the current observation period and the probability corresponding to each candidate trajectory in parallel.

[0017] This invention also provides a multimodal spatiotemporal intelligent vehicle trajectory prediction system, applicable to any of the above methods, comprising: Data acquisition module: acquires multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; performs coordinate system one and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample; Scene modeling module: It performs feature embedding on each modal data in the multimodal input sample, and projects the embedded modal features onto the same vector space to obtain a multimodal token sequence. It then performs spatiotemporal interaction modeling on the multimodal token sequence to obtain scene features representing the current traffic environment. Seed matching module: Determines multiple seed vectors based on a learnable seed library, and calculates the matching degree between each seed vector and the scene features; Seed selection module: Evaluates the scene complexity of the current traffic environment to obtain a scene complexity score; adaptively determines the number of activated seeds based on the scene complexity score. k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; Trajectory generation module: based on the selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; Adaptive Feedback Module: Updates the observation period, calculates the predicted trajectory error based on the actual observation data of the target traffic participants, and adjusts the scene complexity score to increase the number of activated seeds when the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraints for multiple consecutive times. The trajectory generation module is called repeatedly to reselect the seed vector to generate the candidate trajectory for the current observation period.

[0018] Compared with the prior art, the beneficial effects of the present invention are: This invention acquires multimodal spatiotemporal data of the target traffic participant and its surrounding traffic participants and performs coordinate system-one and time synchronization processing. It can integrate multi-source information such as historical motion trajectory, road elements, perception data and traffic rule constraints, and avoid the interference of inconsistencies between multi-source data in spatial coordinate system and time reference on modeling. This allows the system to directly utilize the relative position and relative motion relationships between the target vehicle and surrounding vehicles, thereby improving the environmental perception capability in complex traffic scenarios.

[0019] This invention embeds features into each modal data separately and performs cross-modal semantic alignment through a modal alignment layer, unifying heterogeneous data such as trajectory, road, perception, and traffic rule constraints into the same vector space. Then, through hierarchical spatiotemporal interaction modeling with separable attention, it captures both local interactions and global traffic flow trends. This enables the predicted trajectory to simultaneously integrate temporal dynamics, spatial interactions, and road constraint information, reducing the risk of the predicted trajectory deviating from the actual path or violating traffic rules, and improving the physical rationality and accuracy of the predicted trajectory. To address the shortcomings of multimodal decoding, which uses a fixed number of decoding modes and lacks scene complexity awareness and adaptive adjustment capabilities, this invention uses scene complexity score to drive the number of activation seeds k, which is continuously adjusted through a monotonically increasing nonlinear mapping between a preset minimum and maximum number of seeds. Activation is then optimized based on comprehensive matching degree, allowing the number of decoding modes (candidate trajectories) to adaptively increase or decrease with scene complexity and allocate computing resources on demand. In simple scenarios, the number of modes is actively compressed to avoid redundant candidate trajectories, reduce inference latency, and improve real-time performance. In complex scenarios, the number of modes is automatically expanded to fully cover potential driving behaviors such as straight driving, lane changing, turning, and obstacle avoidance, avoiding insufficient coverage and improving diversity and robustness. This achieves a balance between inference efficiency and prediction coverage completeness, ensuring no waste in simple scenarios and no omissions in complex scenarios.

[0020] This invention constructs scene feature vectors by fusing multi-source information and identifies scene types in the current traffic environment. The scene type is used as a scene prior for feature embedding and spatiotemporal interaction modeling. Furthermore, it performs hierarchical sampling according to scene type and removes abnormal trajectories based on discrete Fréchet distance. This approach can balance the distribution of training samples for different scene types, improve the representativeness and stability of training data, and enhance the system's generalization ability in different traffic scenarios. Attached Figure Description

[0021] Figure 1 This is a schematic diagram of the overall method flow of the present invention; Figure 2 This is a schematic diagram of the prediction system of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.

[0023] It should be noted that, unless otherwise defined, the technical or scientific terms used in this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0024] Example: Please see Figure 1 The present invention provides a technical solution: The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal methods includes the following steps: S1: Acquire multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; perform coordinate system-1 and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample; It should be noted that, in the embodiments of this application, the target traffic participant refers to the target vehicle, i.e., the intelligent vehicle (automobile) currently performing trajectory prediction; the surrounding traffic participants refer to vehicles located around the target vehicle and participating in the current traffic flow. All embodiments of this application are described using vehicles as the trajectory prediction object.

[0025] The multimodal spatiotemporal data includes historical motion trajectory data, road element data, perception data, and traffic rule constraint data; wherein: The historical motion trajectory data includes the position, speed and acceleration information of each traffic participant at each time step, which is used to characterize the motion state evolution process of the target vehicle and its surrounding vehicles within the observation period; The road element data includes lane centerlines, lane boundaries, and intersection topology information, which are used to depict the drivable area and road geometry of the lane where the target vehicle is located and adjacent lanes. The perception data includes perception images and / or radar point clouds, wherein the perception images can be acquired by an on-board camera and the radar point clouds can be acquired by lidar and / or millimeter-wave radar, and are used to provide spatial observation of the distribution of obstacles and traffic conditions around the target vehicle. The traffic rule constraint data includes traffic light status, speed limits, and traffic priority information, which are used to provide traffic rule information that constrains driving behavior.

[0026] Since the aforementioned multimodal spatiotemporal data originates from different sensors and data sources, their spatial coordinate systems and time references are not consistent. This embodiment performs coordinate system unification and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample.

[0027] Coordinate System 1 Processing: Vehicle coordinates are aligned with the target vehicle as a reference, and historical trajectory data and road element data are uniformly transformed into a relative coordinate system centered on the target vehicle. This coordinate system uses the target vehicle's position at the most recent observation time as its origin, located at the center of the target vehicle's front axle, with the front as the x-axis and the left as the y-axis. The positions, speeds, and other motion states of surrounding traffic participants, as well as road elements such as lane centerlines and lane boundaries, are all represented in this relative coordinate system. Using Coordinate System 1 avoids dependence on absolute coordinate systems, allowing subsequent modeling to directly utilize the relative positional and motion relationships between the target vehicle and surrounding vehicles, enhancing the system's ability to perceive the traffic environment context.

[0028] Time synchronization processing: Multi-source observation data within the observation period are aligned to a unified time step, ensuring that different modal data correspond to the traffic state at the same time step. Since the sampling frequency and time reference of each sensor may differ, missing trajectory points are interpolated and filled in. The observation data from each sensor are then mapped to the corresponding unified time step according to the timestamp, guaranteeing the temporal consistency of multi-source information within the same observation period.

[0029] After completing the coordinate system and time synchronization processing, the multi-source information within the same observation period is organized into a single input sample. Taking an observation period of length T as an example, the target traffic participant and its surrounding N traffic participants, M related road elements, and the corresponding time-based perception data and traffic rule constraint data are selected to form a complete sample S, which can be represented as follows: Where T is the observation period, X represents the set of historical trajectories of all traffic participants within the observation period, R represents the set of roads and lanes related to the current scene, I represents multimodal perception information such as perception images and radar point clouds, and P represents rule constraint information such as traffic signals, speed limits, and priorities.

[0030] In a specific example, taking a crossroads scenario: the location information of the target vehicle and its six surrounding vehicles (front, rear, left, and right) over the past 3 seconds (e.g., 30 frames, 0.1 seconds per frame) constitutes the historical trajectory X; the centerline and boundary lines of the lane where the target vehicle is located and the three adjacent lanes constitute road elements R; the status of the two sets of traffic lights at the intersection, as well as the observations from the surround-view camera and the forward-facing millimeter-wave radar within this time window, constitute perception information I; and the corresponding traffic priorities, no-turn rules, etc., constitute constraint information P. The input sample constructed in the above manner can simultaneously characterize the dynamic traffic participants, static road structure, and traffic rule environment around the target vehicle, providing a unified input for subsequent multimodal feature embedding and spatiotemporal interaction modeling.

[0031] S2: Feature embedding is performed on each modal data in the multimodal input sample, and the embedded modal features are projected onto the same vector space to obtain a multimodal token sequence. The multimodal token sequence is then used for spatiotemporal interaction modeling to obtain scene features representing the current traffic environment. Because historical trajectory data, road element data, perception data, and traffic rule constraint data differ significantly in form—trajectory is a coordinate sequence over a time step, road elements are geometric and topological structures, perception data is an image or point cloud, and traffic rule constraints are semantic information—direct cross-modal processing would result in inconsistent representation spaces for each modal feature, making effective interactive fusion difficult. Therefore, this implementation embeds features into each modal data separately, converting the different forms of raw data into a unified token representation, and projecting each modal feature onto the same vector space to form a multimodal token sequence. Considering that the Transformer encoder processes input data in parallel and cannot naturally preserve the temporal order of the sequence, this implementation superimposes positional encoding onto the multimodal token sequence, mapping the temporal positional information of each token in the sequence into positional features to preserve the temporal dependency of the trajectory. After the multimodal token sequence is modeled by the Transformer encoder for spatiotemporal interaction, it outputs a global contextual feature that integrates temporal dynamics, spatial interaction, and road constraint information. This feature represents the scene features of the current traffic environment and is used for subsequent seed-scene matching and trajectory decoding.

[0032] The method further includes: fusing historical motion trajectory data, traffic participant density, traffic light status changes, lane connectivity topology, and surrounding perception information to construct a scene feature vector, and using a pre-trained scene classification network to identify the scene type of the current traffic environment, using the scene type as a scene prior for feature embedding and / or spatiotemporal interaction modeling; the scene type includes at least one of straight road, curve, intersection, merging / merging, congested road section, and signal control area; This scene recognition mechanism does not rely solely on static map information for classification, but rather on dynamic scene perception based on multi-source fusion: it constructs scene feature vectors using temporal statistical features and spatial geometric features, and a pre-trained scene classification network comprehensively judges the current traffic environment to identify the scene type. The recognition results are used for hierarchical sampling and data balancing of training samples, and also serve as explicit scene prior inputs for feature embedding and / or the spatiotemporal interaction modeling stage, enabling the system to learn more semantically consistent features for different scene types, thereby improving its environmental understanding and generalization capabilities in complex traffic environments.

[0033] The multimodal input samples are stratified according to the scene type, and the sampled historical motion trajectory data are time-normalized and spatially recalibrated. The historical motion trajectories in the multimodal input samples are clustered based on the discrete Fréchet distance, and the number of neighbors of each trajectory within a given radius threshold is counted. Trajectories with fewer than a preset number of neighbors are removed as abnormal trajectories.

[0034] By stratifying sampling by scene type, the distribution of different scene types in the training samples can be balanced, avoiding system bias towards scenes with larger sample sizes. Temporal normalization and spatial recalibration are used to ensure that trajectories under different vehicle speeds and time windows have a uniform scale, eliminating the influence of differences in speed and observation duration on trajectory features. The abnormal trajectory filtering process based on discrete Fréchet distance is as follows: Let the first... The trajectory is recorded as ,in For this trajectory in the th t Planar coordinates at each time step; for any two trajectories and The discrete Fréchet distance is used to measure the shape similarity between trajectories, and its recursive form is as follows: in, For trajectory The former Points and Trajectory The former Discrete Fréchet distance between points It is the Euclidean norm. These represent the number of sampling points for the two trajectories, respectively. For trajectory With trajectory The discrete Fréchet distance between trajectories is calculated pairwise for all trajectories in the same scene, forming a distance matrix. Clustering (e.g., density clustering or hierarchical clustering) is then performed based on this distance matrix to obtain several trajectory clusters. The distances between each trajectory and a given radius threshold are then statistically analyzed. Number of neighbors , To meet The number of trajectories, where the radius threshold is determined based on the discrete Fréchet distance distribution of each pair of trajectories in the trajectory dataset: the discrete Fréchet distance of each trajectory pair in the training sample set is statistically analyzed, and the inflection point value of the distance histogram or the low quantile (e.g., the 10th percentile) of the distance distribution is taken as the radius threshold. Less than the preset quantity When an abnormal trajectory is identified, it is removed from the training sample set, and the remaining trajectories are assigned to the corresponding normal trajectory cluster. This process can remove rare erroneous trajectories and sensor-abnormal trajectories, improving the representativeness and stability of the training data. A preset number of trajectories is used. The setting is based on the trajectory feature dimension and the scene sample size, for example, taking the trajectory feature dimension plus one, or taking a certain proportion of the total number of trajectory samples under this scene type (e.g., ).

[0035] The feature embedding for each modality data includes: encoding the historical motion trajectory data using a temporal coding module to obtain a trajectory token; encoding the road element data using a road feature encoder to obtain a road token; embedding the perception image in the perception data into blocks and performing radar point cloud sparsification to obtain a geometric token; embedding the traffic rule constraint data semantically to obtain a constraint token; and before projecting the embedded modal features to the same vector space, performing cross-modal semantic alignment on each modal feature through a modal alignment layer. The modal alignment layer adopts a multi-head attention structure and minimizes the semantic distance between different modal embeddings through cross-modal alignment loss.

[0036] Specifically, trajectory tokens are obtained by encoding the historical trajectories of the target traffic participant and surrounding traffic participants using a temporal coding module; road tokens are obtained by inputting road elements such as lanes, intersections, and boundaries into a road feature encoder in the form of topological structures or vector curves; geometric tokens are obtained by embedding blocks of the perceived image and sparsening the radar point cloud; and constraint tokens are obtained by semantic embedding of semantic features such as traffic light status and traffic priority. Tokens of different modalities are initially located in their respective semantic spaces. To maintain consistency among multimodal features, this implementation sets a modality alignment layer before projecting each modality feature into the same vector space. The modality alignment layer adopts a multi-head attention structure, enabling spatial semantic calibration of features from different modalities before entering the Transformer encoder; by jointly optimizing the cross-modal alignment loss, the semantic distance between different modal embeddings is minimized, ensuring consistency in the representation spaces of trajectories, roads, and perceived features, thereby improving the efficiency and accuracy of subsequent interaction modeling.

[0037] The spatiotemporal interaction modeling of the multimodal token sequence is performed by a Transformer encoder. The Transformer encoder adopts a hierarchical separable attention structure, which includes local subspace attention and global context attention. The local subspace attention is used to model the local interaction between the target traffic participant and its nearest neighbor traffic participants, and the global context attention is used to model the scene-level global traffic flow trend.

[0038] In the spatiotemporal interaction modeling process, the encoder uses an attention mechanism to characterize the dynamic evolution of participants' historical movements, the spatial interaction between the target traffic participant and surrounding traffic participants, and the interaction between participant tokens and road tokens. This simultaneously captures long-term and short-term temporal dependencies, reflects relative positions and movement trends, and ensures that the prediction results are consistent with road geometry and lane connectivity. Unlike traditional single attention mechanisms, the encoder in this implementation adopts a hierarchical separable attention structure. In each layer, attention is divided into local subspace attention and global contextual attention: local subspace attention focuses on the local interactions between the target traffic participant and its nearest neighbor traffic participants, while global contextual attention captures scene-level global traffic flow trends. Through this hierarchical mechanism, the encoder can simultaneously understand local interaction details and overall traffic semantics while maintaining efficient computation. In the attention calculation, the input sequence is multiplied by the query weight matrix, key weight matrix, and value weight matrix respectively to obtain the query vector, key vector, and value vector. The similarity score between the query vector and the key vector is calculated, and scaling is performed before Softmax activation to avoid excessively large element values ​​that cause the Softmax output to approach the one-hot vector and trigger the gradient vanishing problem. Finally, the attention weights and value vectors are weighted and aggregated to obtain the attention output.

[0039] S3: Determine multiple seed vectors based on a learnable seed library, and calculate the matching degree between each seed vector and the scene features; In the decoding phase, a learnable seed library is set up, containing several trainable vectors. Each vector represents a potential trajectory generation starting point, corresponding to a potential driving behavior pattern, such as going straight, turning, or swerving. The seed library is updated along with the system parameters during training, so that different seeds gradually correspond to different trajectory patterns. The initial representation of each seed vector can be defined as a randomly initialized vector, whose dimension is related to the time step and feature dimension required for decoding. After training, the seed vectors will capture dynamic features related to specific roads or traffic situations. Before entering the decoding phase, this implementation first determines multiple seed vectors from the learnable seed library to participate in matching, and calculates the matching degree between various sub-vectors and scene features to measure the adaptability of various sub-vectors to the current traffic environment, providing a basis for subsequent selection of decoding seeds based on matching degree.

[0040] The various sub-vectors in the learnable seed library are trainable vectors, each representing a potential trajectory generation starting point, and are updated along with system parameters during training. The calculation of the matching degree between each seed vector and the scene feature includes: using a seed-scene interaction module, with each seed vector as the query and the scene feature as the key and value, and employing multi-head cross-attention to calculate the interaction score between each seed vector and the scene feature; and encoding road element data through a road feature encoder to obtain road features, concatenating each seed vector with the road feature through the seed-road interaction module, and then processing the concatenation through a multilayer perceptron to obtain the matching score between each seed vector and the road feature.

[0041] To further improve the matching degree between seeds and scenes, this implementation sets up a seed-scene interaction module. This module calculates the correlation between various sub-vectors and current scene features through multi-head cross-attention, dynamically adjusting the interaction score of each seed. The current scene features include the target vehicle state and the distribution information of other traffic participants. Specifically, using various sub-vectors as queries and scene features as keys and values, a similarity score is calculated between the seed query vector and the scene feature key representation. This similarity score is scaled and normalized using Softmax, then used as an attention weight. This weighted aggregation with the scene feature value representation yields the interaction score. This interaction score can be expressed as: in, For the first The interaction score between seed vectors and scene features For seed index, Traversal allows learning various subvectors in the seed library. For the first Seed query vectors corresponding to seed vectors. , These represent the key and value representations of scene features, respectively. The key representation of the scene features is the transpose, and d is the feature dimension, used as a scaling factor to scale the similarity score, preventing the Softmax output from approaching a one-hot vector due to excessively large values. Through this mechanism, each seed can automatically focus on the most relevant scene region, such as the lane where the target is located or the conflict area, thereby improving the relevance and physical plausibility of the prediction.

[0042] To ensure the generated trajectory matches the actual road scene, this implementation also includes a seed-road interaction module, which matches the potential trajectory pattern of each seed with the structural features of the road scene. Specifically, a road feature encoder encodes road element data to generate road features, such as lane centerlines, road bifurcation numbers, and intersections. Various sub-vectors are then concatenated with the road features, and the concatenation result is input into a multilayer perceptron for processing to obtain a matching score between the various sub-vectors and the road features. This matching score can be expressed as: in, For the first The matching score between each seed vector and the road feature For the first Seed vectors, The road features are the feature representations obtained by encoding road information using a road feature encoder. This represents a vector concatenation operation. This is a multilayer perceptron used to learn and output a matching score between seed vectors and road features. This matching score helps the system determine which seeds are best suited to the current road and traffic environment, ensuring that the subsequently generated trajectory conforms to road geometry and lane connectivity constraints.

[0043] S4: Evaluate the scene complexity of the current traffic environment to obtain a scene complexity score; adaptively determine the number of activated seeds based on the scene complexity score. k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; The complexity varies significantly across different traffic scenarios: in scenarios like straight roads and open sections, traffic participants are sparse and interactions are simple, while in scenarios like intersections and congested sections, multiple vehicles converge, signals change frequently, and prediction uncertainty is high. Activating a fixed number of seed vectors in scenarios of varying complexity can lead to unnecessary computational overhead in low-complexity scenarios and insufficient coverage of potential trajectory patterns in high-complexity scenarios, resulting in decreased prediction coverage. Therefore, this implementation introduces a scenario complexity assessment mechanism: first, the scenario complexity of the current traffic environment is quantitatively assessed to obtain a scenario complexity score; then, the number of activated seeds k is adaptively determined based on the scenario complexity score; and finally, the top k seed vectors are selected from the learnable seed library according to the matching degree calculated in step S3, thereby achieving a dynamic balance between computational efficiency and prediction coverage.

[0044] Specifically, the scene complexity score is obtained by weighted fusion of at least one of the following indicators: predicted distribution entropy, number of road bifurcations, conflict point density, reciprocal of collision time, and variance of traffic light state changes. It is understood that the at least one indicator can be selected in practice based on available data sources, computing resources, and scene requirements: any one of the following can be used, or a combination of several can be used. When only a single indicator is used, the scene complexity score is the product of the normalized version of that indicator and its corresponding weight coefficient; when multiple indicators are used, the scene complexity score is calculated by weighted summation of the normalized versions of each indicator and their respective weight coefficients. The following explanation uses the simultaneous fusion of five indicators as an example.

[0045] This implementation method takes the simultaneous fusion of five indicators as an example. The definitions of each indicator are as follows: Predicted distribution entropy This is used to measure prediction uncertainty. Based on the interaction scores between various sub-vectors in S3 and scene features, the interaction scores are normalized to a prediction prior distribution using Softmax: in, For the first The prediction hypothesis probability corresponding to each seed vector The number of seeds in the learnable seed bank, For the first The interaction score between the seed vector and the scene features. The predicted distribution entropy is: When the scores of each interaction are evenly distributed, the probabilities of the prediction hypotheses are similar, and the entropy value is large, indicating that the possible trajectory patterns in the current scene are scattered and the prediction uncertainty is high. When the probability of a certain prediction hypothesis is significantly dominant, the entropy value is small, indicating that the prediction direction is relatively clear. The larger the prediction distribution entropy, the higher the scene complexity.

[0046] Number of road branches Used to measure road topological complexity: in, The number of bifurcations in the possible driving directions of the target vehicle in the current scene can be obtained by counting the number of lanes in the target vehicle's lane and adjacent lanes, and the number of intersection branches. For example, in a straight road scene... Smaller, and in four-way intersection scenarios The more branching roads there are, the more driving behaviors are available, the larger the topological space for trajectory prediction, and the higher the scene complexity.

[0047] Conflict point density Used to measure traffic participant density and interaction intensity: in, The number of conflict points between the target vehicle and surrounding vehicles in the current scene represents the number of spatial intersections between the target vehicle's predicted trajectory and the predicted trajectories of each surrounding vehicle; A represents the area of ​​the conflict zone. A higher conflict point density indicates more frequent and intense interactions between vehicles, and a higher level of scene complexity.

[0048] Among them, the number of conflict points The calculation is performed as follows: Extrapolate the historical motion states of the target vehicle and all surrounding vehicles to the prediction time domain using a constant-velocity kinematic system to obtain the target vehicle's reference trajectory. Extrapolated trajectory of surrounding vehicles , ;in, Let v be the position of the target vehicle at the most recent observation time, and v be the speed of the target vehicle. , Let v and v be the position and velocity of the nth surrounding vehicle at the most recent observation time, respectively. All were calculated by differentiating their respective historical trajectories. Let be the time interval between adjacent time steps. If there exists a time step t such that... If a conflict point exists between the target vehicle and the nth surrounding vehicle, then it is determined that there is a conflict point between the target vehicle and the nth surrounding vehicle. The preset collision detection distance; calibrated based on vehicle geometry and safety margin: , , These are the vehicle widths of the target vehicle and the nth surrounding vehicle, respectively. This is a preset safety margin. This value corresponds to the sum of the lateral envelopes of the two vehicles plus the safety margin, i.e., the critical distance when the two vehicles are close enough that their vehicle boundaries approach or enter the mutual influence range. Number of conflict points. This represents the number of surrounding vehicles in the current scenario that meet the above criteria.

[0049] The area A of the sudden area is a circle centered on the current position of the target vehicle and with a preset interaction radius. The area of ​​a circular region with radius , i.e. ,in The preset interaction radius is calibrated according to the target vehicle's perception range or safe interaction distance.

[0050] Collision time Used to measure potential collision risk: in, This represents the number of vehicle pairs in the current scenario that pose a potential collision risk to the target vehicle, provided that the vehicle pairs meet a preset collision risk assessment condition. The collision risk assessment condition is that the relative distance between the target vehicle and surrounding vehicles is less than a preset distance threshold. Furthermore, the relative speed at which the two approach each other is greater than zero. Let be the collision time of the p-th vehicle pair. This represents the relative distance between the target vehicle and the corresponding surrounding vehicles. The relative approach speed between the two It should be noted that a spatial intersection point does not necessarily equate to a collision—two vehicles passing the same intersection point at different times will not collide. Therefore, this implementation only calculates the collision time for vehicle pairs that meet the above collision risk assessment criteria; vehicle pairs without collision risk are not included in the statistics to avoid directly equating spatial intersection with collision risk. The shorter the collision time and the larger its reciprocal, the higher the potential collision risk and the higher the scenario complexity.

[0051] Variance of traffic light status changes This is used to measure the uncertainty of traffic signals. The sequence of traffic light states within an observation period is encoded into a numerical sequence (e.g., red, yellow, and green lights are encoded as 0, 1, and 2 respectively), and their variance is calculated. in, For the first The signal light status code value at each time step The mean of the traffic light state codes within the observation period is denoted by , and T is the number of time steps within the observation period. The more frequently the traffic light states change, the larger the variance, the higher the uncertainty brought by traffic signals, and the higher the scene complexity.

[0052] Because the dimensions and value ranges of the above indicators differ significantly (entropy is dimensionless, bifurcation count is a count, collision point density is the number per unit area, the dimension of the reciprocal of collision time is the reciprocal of time, and variance is the square of the value), if a weighted sum is directly applied, the indicator with the larger dimension will dominate the scene complexity score. Therefore, this implementation normalizes each indicator, mapping each indicator to a unified value range: in, These are the minimum and maximum values ​​of the j-th indicator within a preset statistical range or historical sample distribution, respectively. Let j be the j-th normalized index.

[0053] The scenario complexity score is obtained by weighted summation of the normalized metrics, and can be expressed as: Where c represents the scenario complexity score. For the j-th normalized index, The weight coefficient corresponding to the j-th indicator can be preset or learned along with the system parameters during training. It is used to adjust the relative contribution of each indicator to the scene complexity score. The higher the scene complexity score, the more complex the current traffic environment.

[0054] After obtaining the scene complexity score, this implementation converts the scene complexity score into a value within the preset range of minimum and maximum seed numbers using a monotonically increasing non-linear mapping, and uses this value as the number of activated seeds k. This mapping can be expressed as: in, , These are the preset minimum and maximum number of seeds, respectively; For the Logistic function , is a monotonically increasing nonlinear function; The routing hyperparameters are used to control the sensitivity of the nonlinear mapping. The larger the value, the more significant the change in the number of seeds caused by a small change in the scene complexity score; The routing hyperparameters controlling the nonlinear mapping offset determine the optimal value for the scene complexity score at which the number of activated seeds reaches an intermediate level; due to The number of activated seeds k increases monotonically with the scene complexity score and is always within the range (0,1). Within the interval: When the scene complexity score is low, fewer seed vectors are activated to ensure computational efficiency; when the scene complexity score is high, more seed vectors are activated to ensure sufficient coverage of potential trajectory patterns.

[0055] After determining the number of activated seeds k, this implementation selects the first k seed vectors from the learnable seed library according to the matching degree. The comprehensive matching degree is obtained by fusing the seed-scene interaction score and the seed-road matching score obtained in S3, and can be expressed as: in, Let be the overall matching degree of the i-th seed vector. The interaction score between the i-th seed vector and the scene features. The matching score between the i-th seed vector and the road features. This is a preset fusion coefficient used to balance the contributions of scene interaction and road structure to seed selection. All seed vectors in the learnable seed library are then fused according to their overall matching degree. Sort the data from high to low, select the top k seed vectors as the decoding starting point for the current observation period, and proceed to S5 to generate candidate trajectories in parallel.

[0056] S5: Selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; The selected k seed vectors are input to the trajectory decoder Φ along with the scene feature E, and k candidate trajectories are generated in parallel. The i-th candidate trajectory is: in, Let i be the seed vector. Let be the position coordinates at the t-th prediction time step. For prediction in the time domain, the decoder uses the seed vector as the query and scene features as the key and value for cross-attention, and generates the data autoregressively step by step. The position generated in step t depends on the positions generated in the previous t-1 steps. in, For the position sequence of the i-th candidate trajectory generated in the first t-1 time steps, the decoder simultaneously outputs the unnormalized confidence score of each trajectory. The probabilities of each candidate trajectory are obtained after Softmax normalization: in, For the first The probability corresponding to each candidate trajectory For the first The unnormalized confidence scores of the candidate trajectories are calculated, and then each candidate trajectory is subjected to safety constraint verification. Three constraints must be met simultaneously; a trajectory is eliminated if any constraint is not met. Let N be the number of surrounding vehicles in the current scene. Index for nearby vehicles: Road boundary constraints: Let be the lateral distance from the trajectory point of the i-th candidate trajectory at the t-th prediction time step to the nearest road boundary. This is the preset minimum safe distance; Collision safety distance constraints: in, Let i be the position of the i-th candidate trajectory at the t-th prediction time step. The preset collision safety distance threshold, The predicted position of the nth surrounding vehicle at the t-th prediction time step is obtained by extrapolation from its historical motion state. Specifically, a constant velocity kinematics system is used for extrapolation. in, The position of the nth surrounding vehicle at the most recent observation time; The speed of the nth surrounding vehicle is calculated from the difference of its historical trajectory, for example, by taking the ratio of the difference between the positions of the last two observation times to the time interval; The time interval between adjacent prediction time steps; This constant velocity extrapolation method is approximately valid in the short prediction time domain, has low computational overhead, and meets real-time requirements. In other implementations, a constant acceleration system or a prediction method based on state estimation can also be used to extrapolate the positions of surrounding vehicles.

[0057] Vehicle dynamics constraints: for all satisfy , , ;in, , , Let be the velocity, acceleration, and trajectory curvature of the i-th candidate trajectory at the t-th prediction time step, respectively, calculated from the differences between adjacent trajectory points. , , These are the preset speed limit, acceleration limit, and curvature limit, respectively.

[0058] The above parameters are preset based on the overall vehicle parameters and safe driving rules of the target vehicle: , Take the target vehicle's design maximum speed and maximum braking / driving acceleration respectively; Based on minimum turning radius Sure, ; according to Dynamically set according to vehicle speed For the preset time interval, The basic safety distance is determined based on vehicle type and driving speed; Set according to the sum of the vehicle's half width and the preset safety margin.

[0059] S6: Update the observation period. Calculate the predicted trajectory error based on the actual observation data of the target traffic participants. When the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraint at multiple consecutive times, adjust the scene complexity score to increase the number of activated seeds. Repeat step S5 to reselect seed vectors to generate candidate trajectories for the current observation period.

[0060] This implementation updates the observation period with a fixed time step: after the target vehicle travels along the planned trajectory determined in S5, the observation window is advanced along the time axis to incorporate the actual observation data at the latest moment, and the predicted trajectory error of the target vehicle in the previous observation period is calculated based on the actual observation data.

[0061] Specifically, let the predicted trajectory of the target vehicle in the previous observation period be... ,in The predicted position at the t-th prediction time step (taken from the planned trajectory generated by S5). After updating the observation period, the actual observation trajectory of the target vehicle within the prediction time domain is obtained. ,in Let be the actual observed position corresponding to the t-th prediction time step. The prediction trajectory error is: in, To predict trajectory error, Let t be the predicted position at the t-th prediction time step. Let t be the actual observed position corresponding to the t-th prediction time step. For prediction in the time domain.

[0062] After each update of the observation period, determine whether at least one of the following triggering conditions is met: (a) The predicted trajectory error exceeds the preset threshold for multiple consecutive time steps: Taking the most recent N consecutive update time steps as an example (N is an integer not less than 2), if the predicted trajectory error for N consecutive time steps is greater than the preset error threshold... ,Right now ,in If the predicted trajectory error is at the t-th update time, then the trigger condition (a) is determined to be true; in, The preset error threshold is calibrated based on the historical prediction error distribution of the target vehicle under normal driving scenarios: , , These represent the mean and standard deviation of historical prediction errors, respectively, with n being a preset multiplier coefficient determined based on the false trigger rate requirements. For example, n=2 or n=3, ensuring that normal prediction errors remain within a threshold, and only significantly larger prediction errors trigger adjustments. Alternatively, it can be directly set according to the planning and control accuracy requirements of the target vehicle. The value of .

[0063] (b) Predicted trajectory deviation from road constraint: If there exists a time step t on the predicted trajectory such that the lateral distance from the trajectory point to the nearest road boundary is... Less than the preset minimum safe distance ,Right now If the predicted trajectory deviates from the road constraint, then trigger condition (b) is met.

[0064] When at least one of the triggering conditions is met, this implementation adjusts the scene complexity score to increase the number of activated seeds. Specifically, the predicted trajectory error and / or the degree to which the predicted trajectory deviates from the road constraints is mapped to a compensation increment, and the compensation increment is added to the scene complexity score to obtain the adjusted scene complexity score: Where c is the scene complexity score obtained in S4. To compensate for the increase, The adjusted scene complexity score is represented by e, where e is the predicted trajectory error and b is the degree of road deviation, defined as follows: That is, the maximum depth at which the predicted trajectory crosses the road boundary, with no deviation b=0; , These are preset mapping coefficients used to convert the predicted trajectory error and road deviation into compensation increments, which can be determined through calibration or training. Because... , Compensation increment Adjusted scene complexity score Not less than the original score c.

[0065] The adjusted scene complexity score Then, in this embodiment, step S5 is repeated: Substituting the monotonically increasing nonlinear mapping described in S4, the number of activation seeds is redetermined: in, To adjust the number of activated seeds, The adjusted scene complexity score is given, and the meanings of the other symbols are the same as in S4.

[0066] because And the mapping is monotonically increasing. This means that the number of activated seeds increases after adjustment; subsequently, based on the comprehensive matching degree described in S4, the previous seeds are reselected from the learnable seed bank. A seed vector is generated, and the candidate trajectory for the current observation period and the probability of each candidate trajectory are generated in parallel using the newly selected seed vector as the decoding starting point. Path planning and safety decisions are then re-performed.

[0067] Through the above mechanism, when the predicted trajectory error increases or the predicted trajectory deviates from the road constraint, this implementation increases the number of activated seeds by increasing the scene complexity score, thereby expanding the coverage of the trajectory hypothesis and improving the prediction accuracy. This process continues with the observation cycle, forming a closed loop of "prediction - observation - error feedback - adjustment - re-prediction" until the predicted trajectory error converges to within the preset threshold or no longer triggers the adjustment condition.

[0068] Please see Figure 2 This application also includes a multimodal spatiotemporal intelligent vehicle trajectory prediction system, applicable to the above method, comprising: Data acquisition module: acquires multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; performs coordinate system one and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample; Scene modeling module: It performs feature embedding on each modal data in the multimodal input sample, and projects the embedded modal features onto the same vector space to obtain a multimodal token sequence. It then performs spatiotemporal interaction modeling on the multimodal token sequence to obtain scene features representing the current traffic environment. Seed matching module: Determines multiple seed vectors based on a learnable seed library, and calculates the matching degree between each seed vector and the scene features; Seed selection module: Evaluates the scene complexity of the current traffic environment to obtain a scene complexity score; adaptively determines the number of activated seeds based on the scene complexity score.k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; Trajectory generation module: based on the selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; Adaptive Feedback Module: Updates the observation period, calculates the predicted trajectory error based on the actual observation data of the target traffic participants, and adjusts the scene complexity score to increase the number of activated seeds when the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraints for multiple consecutive times. The trajectory generation module is called repeatedly to reselect the seed vector to generate the candidate trajectory for the current observation period.

[0069] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.

[0070] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.

[0071] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0072] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A multi-modal spatio-temporal based intelligent vehicle trajectory prediction method, characterized in that, The specific steps include: S1: Acquire multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; perform coordinate system-1 and time synchronization processing on the multimodal spatiotemporal data to construct a unified multimodal input sample; S2: Feature embedding is performed on each modal data in the multimodal input sample, and the embedded modal features are projected onto the same vector space to obtain a multimodal token sequence. The multimodal token sequence is then used for spatiotemporal interaction modeling to obtain scene features representing the current traffic environment. S3: Determine multiple seed vectors based on a learnable seed library, and calculate the matching degree between each seed vector and the scene features; S4: Evaluate the scene complexity of the current traffic environment to obtain a scene complexity score; adaptively determine the number of activated seeds based on the scene complexity score. k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; S5: Selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; S6: Update the observation period, calculate the predicted trajectory error based on the actual observation data of the target traffic participants, and when the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraint for multiple consecutive times, adjust the scene complexity score to increase the number of activated seeds, reselect the corresponding number of seed vectors from the learnable seed library according to the matching degree, take the reselected seed vectors as the decoding starting point, generate candidate trajectories for the current observation period and the probability corresponding to each candidate trajectory in parallel, and re-perform path planning and safety decision-making for the current observation period.

2. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 1, characterized in that: The multimodal spatiotemporal data includes historical motion trajectory data, road element data, perception data, and traffic rule constraint data; wherein, the historical motion trajectory data includes the position, speed, and acceleration information of each traffic participant at each time step; the road element data includes lane centerlines, lane boundaries, and intersection topology information; the perception data includes perception images and / or radar point clouds; and the traffic rule constraint data includes traffic light status, speed limits, and traffic priority information.

3. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 2, characterized in that: The method further includes: fusing historical motion trajectory data, traffic participant density, traffic light status changes, lane connectivity topology, and surrounding perception information to construct a scene feature vector, and using a pre-trained scene classification network to identify the scene type of the current traffic environment, using the scene type as a scene prior for feature embedding and / or spatiotemporal interaction modeling; the scene type includes at least one of straight road, curve, intersection, merging / merging, congested road section, and signal control area; The multimodal input samples are stratified according to the scene type, and the sampled historical motion trajectory data are time-normalized and spatially recalibrated. The historical motion trajectories in the multimodal input samples are clustered based on the discrete Fréchet distance, and the number of neighbors of each trajectory within a given radius threshold is counted. Trajectories with fewer than a preset number of neighbors are removed as abnormal trajectories.

4. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 2, characterized in that: Feature embedding is performed on each modal data in the multimodal input samples, including: encoding the historical motion trajectory data through a temporal coding module to obtain a trajectory token; encoding the road element data through a road feature encoder to obtain a road token; embedding the perception image in the perception data into blocks and sparsening the radar point cloud to obtain a geometric token; and embedding the traffic rule constraint data through semantic embedding to obtain a constraint token. Before projecting the embedded modal features to the same vector space, cross-modal semantic alignment is performed on each modal feature through a modal alignment layer. The modal alignment layer adopts a multi-head attention structure and minimizes the semantic distance between different modal embeddings through cross-modal alignment loss.

5. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 1, characterized in that: The spatiotemporal interaction modeling of the multimodal token sequence is performed by a Transformer encoder. The Transformer encoder adopts a hierarchical separable attention structure, which includes local subspace attention and global context attention. The local subspace attention is used to model the local interaction between the target traffic participant and its nearest neighbor traffic participants, and the global context attention is used to model the scene-level global traffic flow trend.

6. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 1, characterized in that: The various sub-vectors in the learnable seed library are trainable vectors, each used to represent a potential trajectory generation starting point, and are updated along with the system parameters during the training process. The calculation of the matching degree between each seed vector and the scene feature includes: using a seed-scene interaction module, with each seed vector as the query and the scene feature as the key and value, and employing multi-head cross-attention to calculate the interaction score between each seed vector and the scene feature; and encoding road element data through a road feature encoder to obtain road features, and then concatenating each seed vector with the road feature through the seed-road interaction module and processing it through a multilayer perceptron to obtain the matching score between each seed vector and the road feature.

7. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 1, characterized in that: The scene complexity score is obtained by weighted fusion of at least one of the following indicators: prediction distribution entropy, number of road bifurcations, conflict point density, reciprocal of collision time, and traffic light state change variance. The prediction distribution entropy measures prediction uncertainty, the number of road bifurcations measures road topology complexity, the conflict point density measures traffic participant density and interaction intensity, the reciprocal of collision time measures potential collision risk, and the traffic light state change variance measures traffic signal uncertainty. The scene complexity score is obtained by summing the results after multiplying each of the fused indicators by its corresponding weighting coefficient.

8. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 7, characterized in that: The step of adaptively determining the number of activated seeds k based on the scene complexity score includes: converting the scene complexity score into a value within a preset range of minimum and maximum seed numbers through a monotonically increasing nonlinear mapping, and using this value as the number of activated seeds k; wherein the sensitivity and offset of the nonlinear mapping are controlled by preset routing hyperparameters, and the number of activated seeds k increases as the scene complexity score increases.

9. The intelligent vehicle trajectory prediction method based on multimodal spatiotemporal conditions according to claim 7, characterized in that: The method of adjusting the scene complexity score to increase the number of activated seeds includes: mapping the predicted trajectory error and / or the degree of deviation of the predicted trajectory from the road constraint into a compensation increment, and superimposing the compensation increment onto the scene complexity score to obtain the adjusted scene complexity score; wherein, the degree of deviation of the predicted trajectory from the road constraint is the maximum depth of the predicted trajectory crossing the road boundary, and the consecutive multiple moments are N consecutive time steps, where N is an integer not less than 2.

10. A multimodal spatiotemporal intelligent vehicle trajectory prediction system, wherein the system is applicable to the method described in any one of claims 1-9, characterized in that: include: Data acquisition module: Acquires multimodal spatiotemporal data of the target traffic participant and surrounding traffic participants within a preset time period; The multimodal spatiotemporal data is processed with coordinate system 1 and time synchronization to construct a unified multimodal input sample; Scene modeling module: It performs feature embedding on each modal data in the multimodal input sample, and projects the embedded modal features onto the same vector space to obtain a multimodal token sequence. It then performs spatiotemporal interaction modeling on the multimodal token sequence to obtain scene features representing the current traffic environment. Seed matching module: Determines multiple seed vectors based on a learnable seed library, and calculates the matching degree between each seed vector and the scene features; Seed selection module: Evaluates the scene complexity of the current traffic environment and obtains a scene complexity score; The number of activation seeds is adaptively determined based on the scene complexity score. k And select the top seeds from the learnable seed bank according to the matching degree. k Seed vectors; Trajectory generation module: based on the selected k Using seed vectors as the starting point for decoding, parallel generation is performed. k k candidate trajectories and the probability of each candidate trajectory; based on the k candidate trajectories and the probability of each candidate trajectory, perform path planning and safety decision-making for the current observation period; Adaptive Feedback Module: Updates the observation period, calculates the predicted trajectory error based on the actual observation data of the target traffic participants, and adjusts the scene complexity score to increase the number of activated seeds when the predicted trajectory error exceeds the preset threshold or the predicted trajectory deviates from the road constraints for multiple consecutive times. The trajectory generation module is called repeatedly to reselect the seed vector to generate the candidate trajectory for the current observation period.