An unsupervised style recognition and graph neural network-based trajectory prediction method for autonomous vehicles
By using unsupervised style recognition and graph neural networks, driver behavior features are extracted and a dynamic driver risk field is constructed, which solves the problem of difficulty in distinguishing driving styles in autonomous driving, achieves high-precision trajectory prediction and risk perception, and improves the ability to predict high-risk behaviors.
Patent Information
- Application Number
- CN202611025517.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing graph neural networks struggle to distinguish between different drivers' driving styles in autonomous driving, resulting in insufficient sensitivity to predicting high-risk behaviors. Furthermore, the lack of effective driving style data annotation leads to insufficient accuracy and stability in trajectory prediction in complex traffic environments.
By using unsupervised style recognition and graph neural network methods, driver behavior features are extracted, clustering and semantic mapping are performed using the GMM model, and a dynamic driver risk field is constructed by combining sparse interaction graphs and graph Transformer models, thereby achieving automatic quantification of driving style and risk perception.
It achieves high-precision and high-reliability trajectory prediction in complex traffic environments, solves the problems of homogenized driving style assumptions and shallow semantic levels in interaction modeling, and improves the sensitivity and prediction accuracy for high-risk behaviors.
Smart Images

Figure CN123179017A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous driving technology, specifically to an unsupervised style recognition and graph neural network-based method for predicting the trajectory of autonomous vehicles. Background Technology
[0002] In the perception and decision-making chain of autonomous driving systems, driver styles are mainly divided into three types: aggressive, conservative, and neutral, which play a decisive role in driving behavior. However, due to the lack of explicit modeling of driving styles, the model has difficulty distinguishing the intentions of different drivers. For example, it cannot predict situations where an aggressive driver forcibly cuts in or a conservative driver hesitates, leading to prediction bias.
[0003] Existing graph neural networks typically construct fully connected graphs based on Euclidean distance or simple physical radii when building interaction relationships. This neglects the differences in risk perception arising from different driving styles, resulting in insufficient sensitivity to predicting high-risk behaviors such as aggressive lane changes and difficulty in detecting deeper semantic interactions. Driving style refers to a driver's personalized driving habits, which are implicit features that are difficult to directly observe and label. Existing public datasets (such as Argoverse and nuScenes) do not specifically label corresponding driving style information, leading to a lack of effective data for the style dimension in the initial training of models, resulting in the typical cold start problem. Furthermore, the driving characteristics statistically derived from vehicle trajectories recorded over a short period are significantly biased and distorted, making them unsuitable for accurately determining the driver's true driving style. Summary of the Invention
[0004] To address the aforementioned issues, this invention provides an unsupervised style recognition and graph neural network-based method for predicting the trajectory of autonomous vehicles. This invention can directly extract driver behavior features from unlabeled driving data and explicitly embed style information into the prediction calculation process, effectively improving the accuracy and operational stability of trajectory prediction under various complex road conditions.
[0005] To achieve the above objectives, the present invention provides the following technical solution: an unsupervised style recognition and graph neural network-based method for predicting the trajectory of autonomous vehicles, specifically comprising the following steps: S1. Based on the original vehicle historical trajectory data, each trajectory is extracted using a preset sliding window as the unified observation scale. The original physical features of the preset dimensions are extracted within each window. The original physical features of the preset dimensions are divided into three categories and then PCA principal component analysis is performed on the features of the preset dimensions to extract a 7-dimensional feature vector. The longitudinal dynamic characteristics are 5-dimensional feature data, including average velocity, maximum velocity, velocity standard deviation, average acceleration, and average deceleration; The lateral and stability features are 4-dimensional feature data, including average lateral acceleration, maximum lateral acceleration, real-time rate of change of vehicle heading, and average jerk data throughout the entire process. The behavioral consistency feature is a 3D feature data, including the frequency of vehicle stops, the stability of vehicle speed maintenance, and the fluctuation deviation of acceleration data.
[0006] S2. Based on 7-dimensional feature vectors, clustering is performed by constructing a Gaussian mixture model (GMM). Semantic mapping is performed on each cluster component, which is labeled as three categories: radical, neutral, and conservative. Then, intra-class linear normalization is performed, and the data is mapped to continuous style scalars. Time decay weighted fusion is used to aggregate the style scalars. Boundary truncation is performed on the aggregated style scalars, and a preset threshold is used to judge the confidence level. The final style scalar and confidence level are then output. S2 specifically includes the following steps: S2.1 Based on 7-dimensional low-dimensional feature vectors, the initial GMM parameter set is obtained through GMM model probability construction and parameter initialization. Then, the EM algorithm is used for fitting to obtain the optimal GMM parameters after training convergence. S2.2 Based on the central mean of the clustering components in the optimal GMM parameters, the style scores of the three categories are calculated through semantic mapping of the clustering components. The category with the highest score is selected as the label of the GMM component and the dominant category of each sample is determined. S2.3. Based on the dominant class of each sample, calculate the intra-class normalized value, and then map t to the corresponding sub-interval of the [0,1] interval according to the dominant class, and output the final style scalar. S2.4. Based on the posterior probability distribution, calculate the style identification comprehensive confidence of a single window and then calculate the fusion weight to obtain the aggregated style scalar and the corresponding trajectory-level confidence. S2.5 Based on the aggregated style scalar and confidence level, the aggregated style scalar is truncated at the boundary and the confidence level is judged by a preset threshold, and the final style scalar and confidence level are output.
[0007] S3. Based on the historical trajectory data of all vehicles, the effective observation duration of the trajectory, the style scalar and the confidence level, through the correction processing of short trajectories and stationary vehicles, output the unified style scalar of the vehicle, the identification confidence level and the stationary vehicle label. S3 specifically includes the following steps: S3.1 Input the historical trajectory data of the vehicle and its effective observation duration, divide each trajectory according to the preset rules, and output three types of diversion results and corresponding trajectory data; The three types of diversion results include long trajectories, short trajectories, and stationary candidates; S3.2 Based on the sample data that are determined to be short trajectories and long trajectories, extract a preset group of instantaneous stable features from the available frames, and simultaneously extract the same preset dimension features for all long trajectory samples and cache them to obtain the feature vector of the short trajectory and the feature library of the long trajectory. S3.3 Based on the feature vectors of short trajectories and the feature library of long trajectories, the set of neighborhood long trajectories for each short trajectory is output through the distance metric of heterogeneous features; S3.4. Based on the set of long trajectories in the neighborhood of the short trajectory, perform soft-weight interpolation to calculate the style scalar of the short trajectory, and obtain the interpolated style scalar and the confidence of the short trajectory. S3.5 Based on the sample data of the identified stationary candidates, output the stationary candidate interpolation style scalar, stationary candidate confidence, and stationary vehicle label by determining the stationary vehicle and assigning style confidence.
[0008] S4. Based on the current motion state, style scalar and confidence of all vehicles, a sparse directed interaction graph is output by using style-modulated dynamic driver risk field SM-DRF modeling and sparse interaction graph construction. Each edge of the sparse directed interaction graph contains composite features of a preset dimension; S4 specifically includes the following steps: S4.1 The current motion state, style scalar and confidence of all vehicles are constructed through the basic driver risk field, and the basic instantaneous risk value between each pair of vehicles is output. The basic driver risk field includes: the anisotropic Gaussian collision probability field and the kinematic collision cost function; The formula for calculating the basic instantaneous risk value is: in, Based on the instantaneous risk value, Let be the collision probability. For the cost of collision; S4.2 Based on style scalar, confidence level, static label and basic instantaneous risk value, output the style modulation instantaneous risk value between each pair of vehicles through the style perception outer modulation mechanism; The style-aware outer modulation mechanism includes a combination of style weight calculation and scene-adaptive gating adjustment; The formula for calculating the combined style weights is as follows: In the formula, To combine style weights, Adjusting the contribution ratio of the vehicle's style to that of other vehicles. The magnification factor is [ [] represents the cutoff interval. To define the style of a car. To calibrate the style of his car; The formula for calculating the instantaneous risk value of style modulation is as follows: in, To adjust the instantaneous risk value for style, Based on the instantaneous risk value, Modulation factor; S4.3 Based on the current motion state of the vehicle, the future extrapolated trajectory sequence of each vehicle is obtained by extrapolating the short-time trajectory of the uniform velocity model CVM. S4.4. Based on the extrapolated trajectory sequence, after extracting 8-dimensional high-order temporal risk features and outputting the 8-dimensional temporal risk feature vector between each pair of interacting vehicles, a peak risk-based system is constructed. The Top-K sparse graph is used to output a sparse directed interaction graph. The combined form of the extracted 8-dimensional high-order temporal risk features is as follows: in, It is an 8-dimensional time-series risk feature. For peak risk, To average risk, Standard deviation To accumulate risk, For the normalized peak time, Due to the persistent nature of risk, The normalized area under the curve, This represents the maximum risk gradient.
[0009] S5. Based on sparse directed interaction graphs, an interaction trajectory prediction model based on graph Transformer and a multi-task joint learning strategy loss function are constructed to output future trajectory, modal confidence and position variance, thus completing the trajectory prediction method for autonomous vehicles.
[0010] In S5, the interactive trajectory prediction model of the graph Transformer is a scene encoder-multimodal decoder structure; the scene encoder uses a graph Transformer structure; the multimodal decoder adopts a two-stage design: the first stage predicts the future destination of the vehicle, and the second stage outputs the complete driving path based on the destination result.
[0011] S5 specifically includes the following steps: S5.1 Scene Encoder Module: Based on the vehicle's historical trajectory sequence, style scalar, confidence level, and stationary markers, the node encoder outputs the initial features of each node as input to the 0th layer of the graph Transformer. The node encoding includes: trajectory encoding, style and identity encoding, and hierarchical map encoding; S5.2 Scene Encoder Module: Based on composite features, the edge encoder outputs 16-dimensional high-dimensional edge features for each edge. S5.3 Scene Encoder Module: Initial features of nodes, edge features, and sparse interaction graph structure. Through the graph Transformer architecture, it outputs the updated final node features and global scene context features. The graph Transformer architecture includes three graph Transformer layers; S5.4 Multimodal Decoder: Based on the final node features and global scene context features, it outputs a modal query vector after fusing the scene context through modal query initialization and interaction; S5.5 Multimodal Decoder: Based on the modal query vector, it predicts the endpoint in the first stage and outputs the predicted endpoint and the unnormalized confidence score. S5.6 Multimodal Decoder: Based on the predicted endpoint, the second stage outputs the time-series trajectory and endpoint position variance through trajectory generation and uncertainty estimation.
[0012] The expression for the loss function of the multi-task joint learning policy is: In the formula, For trajectory position and target point loss, For multi-task physical constraint loss, For modal probability calibration loss, For heteroscedasticity uncertainty loss, For multi-task physical constraint loss weights, To calibrate the loss weights for modal probabilities, This represents the weight for the heteroscedasticity uncertainty loss.
[0013] Compared with the prior art, the present invention has the following beneficial effects: This invention addresses the technical challenges of homogeneous driving style assumptions, shallow semantic levels in interaction modeling, and missing labeled samples in existing autonomous driving trajectory prediction methods by constructing a cascaded architecture of unsupervised style identification, style-modulated risk field, and graph neural network prediction. This achieves high-precision and high-reliability multimodal trajectory prediction in complex traffic environments. At the style identification level, the invention uses a Gaussian mixture model and multi-source interpolation algorithm to automatically output continuous style quantization scalars and confidence scores covering the entire scene without manual annotation, overcoming the practical difficulties of short-trajectory cold start and missing dataset labels. At the interaction modeling level, the invention explicitly embeds style priors into the risk calculation process by modulating the driver's risk field, and uses a heterogeneous Gaussian model and bidirectional combined weights to achieve differentiated risk perception, effectively solving the problem of insufficient sensitivity of traditional models to high-risk behaviors such as aggressive lane changes. At the trajectory prediction level, the invention uses the edge-aware attention mechanism of the SAGE style adaptive graph Transformer to directly inject risk and style differences into the attention scoring logic, achieving dynamic priority attention to high-risk interactions and fundamentally breaking through the limitations of homogeneous interaction modeling. Attached Figure Description
[0014] Figure 1 This is a schematic diagram of the overall process of the method proposed in this invention; Figure 2 This is a flowchart of the unsupervised driving style recognition process of the present invention; Figure 3 A visualization of the risks associated with style adjustments for this invention; Figure 4 Flowchart of the sparse interaction graph construction process of the present invention; Figure 5 This is a schematic diagram of the overall framework of the Sage invention. Detailed Implementation
[0015] 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.
[0016] like Figure 1 As shown, the specific steps include: S1. Based on the original vehicle historical trajectory data, each trajectory is extracted by using a preset sliding window as the uniform observation scale. 12-dimensional original physical features are extracted in each window. After the 12-dimensional original physical features are divided into three categories, PCA principal component analysis is performed on the 12-dimensional features to compress them into 7 principal components, resulting in a 7-dimensional feature vector. This embodiment divides the 12-dimensional original physical features into three categories, including longitudinal dynamic features, lateral and stability features, and behavioral consistency features.
[0017] The longitudinal dynamics features are 5-dimensional data, including average speed, maximum speed, speed standard deviation, average acceleration, and average deceleration. They can directly show the driver's usual driving speed preferences and also truly reflect whether the driver's operation is aggressive when pressing the accelerator and brake.
[0018] Lateral and stability features are 4-dimensional feature data, including lateral average acceleration, lateral maximum acceleration, real-time rate of change of vehicle heading, and average jerkiness data throughout the entire process.
[0019] Behavioral consistency features are three-dimensional feature data, including the frequency of vehicle stops, the stability of vehicle speed, and the fluctuation deviation of acceleration data. They are used to objectively measure whether the driver's operation is regular and whether the behavior state fluctuates frequently throughout the driving process.
[0020] like Figure 2 As shown, this invention establishes a hierarchical driving style recognition framework, using a 3.0s sliding window as a unified scale for vehicle state observation and feature statistics. This framework performs joint computation using a Gaussian Mixture Model (GMM) and a multi-source interpolation algorithm to handle three types of actual driving conditions: regular long-term driving trajectories, short-term incomplete trajectories within 2 seconds, and stationary vehicle states at intersections and in congested sections. It outputs a continuous style quantization scalar in the range [0,1], generating corresponding recognition confidence values within the [0,1] interval, providing stable and quantifiable semantic prior information for subsequent vehicle interaction modeling and trajectory extrapolation. The overall driving style recognition processing logic is executed according to the vehicle's historical driving states across three different conditions.
[0021] Compared to the issues of high noise in the 2-second short window and severe sample truncation in the 5-second long window, the 3.0-second window not only effectively filters out random interference errors during the vehicle sensor acquisition process and extracts stable and effective driving aggression features, but also maximizes the use of short-term effective trajectory samples generated by road occlusion and data truncation, avoiding the problem of insufficient model cold start capability caused by a large number of discarded samples. To construct a driving style representation system with stronger anti-interference capabilities, this invention extracts three types of core driving statistical features within each 3-second time window, totaling 12-dimensional original feature data. At the same time, principal component analysis algorithm is introduced to complete feature simplification and decoupling processing, ultimately compressing the original 12-dimensional features into 7 sets of core principal components. These principal components can cover 96.86% of the overall data variance, fully preserving core driving behavior information.
[0022] S2. Based on 7-dimensional feature vectors, clustering is performed by constructing a Gaussian mixture model (GMM). Semantic mapping is performed on each cluster component, which is labeled as three categories: radical, neutral, and conservative. Then, intra-class linear normalization is performed, and the data is mapped to continuous style scalars. Time decay weighted fusion is used to aggregate the style scalars. Boundary truncation is performed on the aggregated style scalars, and a preset threshold is used to judge the confidence level. The final style scalar and confidence level are then output. S2.1 Based on 7-dimensional low-dimensional feature vectors, the initial GMM parameter set is obtained through GMM model probability construction and parameter initialization. Then, the EM algorithm is used for fitting to obtain the optimal GMM parameters after training convergence. The optimal GMM parameters include the mixed weights, the optimal mean vector, and the covariance matrix.
[0023] This invention constructs a GMM model within a 7-dimensional feature vector space obtained after PCA dimensionality reduction. The model internally comprises three components, with K set to 3. The corresponding probability density function of this model is... The specific definition method is as follows: (1) In the formula, For sample observation vectors, Here is the set of model parameters, and K is the number of Gaussian components. The index of K, For prior probability, Let be the mean vector of the Gaussian components. It is the total covariance matrix; S2.2 Based on the central mean of the clustering components in the optimal GMM parameters, the style scores of the three categories are calculated through semantic mapping of the clustering components. The category with the highest score is selected as the label of the GMM component and the dominant category of each sample is determined. Based on the final scores, each cluster component is automatically assigned a corresponding driving semantic category. Among them, the driving samples judged as aggressive generally exhibit characteristics of medium to high speed driving, large lateral acceleration, and high overall agitation values; the conservative samples show the opposite, with overall lower speeds, more vehicle starts and stops, and relatively larger fluctuations in acceleration; while the samples with a neutral driving style maintain a particularly stable speed, basically in a smooth cruising state, and have the best driving consistency among the three categories.
[0024] S2.3. Based on the dominant class of each sample, calculate the intra-class normalized value, and then map t to the corresponding sub-interval of the [0,1] interval according to the dominant class, and output the final style scalar. This embodiment calculates various posterior probabilities using a Gaussian mixture model, compares and selects the category with the highest probability, and thus determines the dominant driving category C corresponding to the current trajectory sample. After determining the category, the projection data of the sample on the first principal component PC1 is extracted. The normalization calculation within the corresponding category is then performed based on the projection value, and the calculation result is mapped to the set numerical range.
[0025] The expression for calculating the intra-class normalized value is as follows: (2) In the formula, For intra-class normalized values, This represents the projection of the sample onto the first principal component (PC1) of the PCA algorithm. This represents the minimum value projected onto PC1 for all samples within the target category. This represents the maximum value projected onto PC1 for all samples within the target category; Final scalar The segmentation mapping rules are as follows: (3) In the formula, The final output scalar value, This is the category label to which the current sample belongs; S2.4. Based on the posterior probability distribution, calculate the style identification comprehensive confidence of a single window and then calculate the fusion weight to obtain the aggregated style scalar and the corresponding trajectory-level confidence. Regarding the observation duration The trajectory is used to generate serialized single-window predictions. Single-window predicted values Although constrained by segmented mapping, it is susceptible to transient noise. To obtain a globally robust and continuous trajectory-level style, this invention employs a confidence-based time-decay weighted fusion strategy.
[0026] Window style identification overall confidence level Here, we introduce a basic prior term to smooth out probability fluctuations, expressed as follows: (4) In the formula, This is the posterior probability; Then the fusion weights are calculated. This weight is determined by both confidence level and temporal distance, giving higher confidence and newer observations greater influence: (5) in, Proportional to the sign, The time decay coefficient, For window indexing, This represents the total number of windows. This is the time decay coefficient.
[0027] The final output is an aggregated style scalar obtained by weighted summation of all historical windows. ; This embodiment performs weighted fusion processing on multiple time-series features, and the final output is a comprehensive style quantization value. Commonly used threshold standards such as 0.33 and 0.67 are discarded, allowing the value to change naturally and smoothly within the complete range of 0 to 1.
[0028] S2.5 Based on the aggregated style scalar and confidence level, the aggregated style scalar is truncated at the boundary and the confidence level is judged by a preset threshold, and the final style scalar and confidence level are output.
[0029] S3. Based on the historical trajectory data of all vehicles, the effective observation duration of the trajectory, the style scalar and the confidence level, through the correction processing of short trajectories and stationary vehicles, output the unified style scalar of the vehicle, the identification confidence level and the stationary vehicle label. S3.1 Input the historical trajectory data of the vehicle and its effective observation duration, divide each trajectory according to the preset rules, and output three types of diversion results and corresponding trajectory data; The three types of diversion results include long trajectories, short trajectories, and stationary candidates; A trajectory with an effective observation duration greater than 3.0 seconds is considered a long trajectory, while a trajectory between 0 and 3.0 seconds is considered a short trajectory. A trajectory with an average velocity of approximately 0 is considered a candidate for stationary.
[0030] S3.2 Based on the sample data that are determined to be short trajectories and long trajectories, extract 4 sets of instantaneous stable features from the available frames, and simultaneously extract the same 4-dimensional features for all long trajectory samples and cache them to obtain the 4-dimensional feature vector of the short trajectory and the 4-dimensional feature library of the long trajectory. In real-world scenarios, short trajectory data lasting less than 3.0 seconds frequently occur, mostly due to temporary sensor occlusion or vehicles just entering the data collection field of view. If such short samples are directly fed into a GMM model, high-order statistical features like standard deviation and consistency coefficients can easily generate significant noise, severely distorting the overall features and causing the model to fail completely, resulting in inaccurate style identification. To address this specific problem, this invention sets up a soft-weighted interpolation algorithm to adapt to style identification of short trajectory samples. The core design details are as follows: The first step was to select robust feature subsets. Four sets of instantaneously stable features that could be calculated using only a small number of frames of data were set: average speed, average acceleration, average jerk, and average heading angle. These features only require 2 to 3 frames of valid data for calculation, and will not suffer from severe distortion due to short trajectory duration. This largely solves the problem of statistical feature distortion in short trajectories and ensures the usability of basic features.
[0031] S3.3 Based on the 4D feature vector of short trajectories and the 4D feature library of long trajectories, the set of neighborhood long trajectories of each short trajectory is output through the distance metric of heterogeneous features. The distance metric for heterogeneous features is as follows: This invention uses weighted Euclidean distance to determine the similarity of driving behavior between short-trajectory samples and their long-trajectory neighbors. Because the dimensions and numerical ranges of various features are different, a unified normalization process is performed on all feature dimensions to balance the weight of each feature dimension and avoid the influence of single-dimensional data bias on the overall similarity judgment result.
[0032] S3.4. Based on the set of long trajectories in the neighborhood of the short trajectory, perform soft-weight interpolation to calculate the style scalar of the short trajectory, and obtain the interpolated style scalar and the confidence of the short trajectory. Soft-weighted interpolation is the core mechanism. In this embodiment, the confidence level of each neighboring sample is simultaneously incorporated during the function calculation process. To ensure that higher-quality neighbor samples with greater credibility contribute a larger proportion to the final interpolation result, thereby further improving the accuracy of short trajectory style quantization, the neighbor weight function is calculated as follows: (6) In the formula, For neighbor weights, The attenuation coefficient for behavioral feature distance. Distance for behavioral features The attenuation coefficient is the spatial distance. For spatial distance, The confidence level for identifying neighbor samples; The hyperparameters are set to This indicates that the interpolation process is primarily driven by the similarity of driving behavior, rather than simply spatial distance. Ultimately, the style scalar of short-trajectory vehicles... The interpolated style scalar of the short trajectory is derived by weighting the style scalars of all long trajectory neighbors, as shown in the following expression: (7) In the formula, For short trajectories, the style scalar is... For long-trajectory neighbor sets, For neighbor weights, Let j be the style scalar of the neighbor. The index.
[0033] S3.5 Based on the sample data of the identified stationary candidates, output the stationary candidate interpolation style scalar, stationary candidate confidence, and stationary vehicle label by determining the stationary vehicle and assigning style confidence. The specific logic for determining stationary vehicles is as follows: when the average speed of the target vehicle is less than 0.5 m / s, the maximum speed... If the 95th percentile velocity is also less than 1.0 m / s, we classify these vehicles as stationary and assign them absolutely conservative style parameters. At the same time, match the highest identification confidence level. .
[0034] For completely stationary vehicle targets on the road, this embodiment will uniformly set the identification confidence level to v=1. When performing risk field modeling calculations in the future, gating adjustment logic will be designed for stationary candidates to reduce their effective confidence level in the actual calculation to zero.
[0035] S4. Based on the current motion state, style scalar and confidence of all vehicles, a sparse directed interaction graph is output by modeling the dynamic driver risk field (SM-DRF) with style modulation and constructing a sparse interaction graph. Each edge of the sparse directed interaction graph contains 12-dimensional composite features. The 12-dimensional composite feature consists of 8-dimensional risk feature, 1-dimensional style difference feature, 1-dimensional confidence difference feature, 1-dimensional spatial distance feature, and 1-dimensional velocity difference feature; This invention proposes a Style-Modulated Driver Risk Field, or SM-DRF. This model uses the style scalar *s* and confidence level *v* as core state parameters to construct an asymmetric dynamic risk potential field. The generated risk potential field is then mapped to the edge features of a sparse interaction graph, guiding the prediction model to focus on high-risk targets on the road surface and significantly improving the prediction accuracy of high-risk interaction behaviors.
[0036] S4.1 The current motion state, style scalar and confidence of all vehicles are constructed through the Baseline Driver Risk Field (Baseline DRF) to output the basic instantaneous risk value between each pair of vehicles; This invention follows the design principle of physical interpretability, removing human factors such as driving style and defining purely basic interaction risks separately. Target vehicle For bicycle At any moment instantaneous risk Defined as the product of collision probability and collision cost, which closely aligns with real-world driving physics, the basic instantaneous risk value is calculated using the following formula: (8) in, Based on the instantaneous risk value, Let be the collision probability. For the cost of collision; (1) Probability field of opposite Gaussian collisions In actual driving, drivers are more sensitive to longitudinal driving risks and relatively more tolerant of lateral risks. Therefore, this invention does not use the traditional standard two-dimensional Gaussian function, but instead employs anisotropic two-dimensional Gaussian function to model the collision probability field, which more closely reflects real-world human-vehicle interaction logic. This is combined with the vehicle's position... and the location of the target vehicle The base probability field strength is set as follows: (9) in, Let be the probability of an out-of-direction Gaussian collision. The spatial distance between the two vehicles. The relative azimuth angle. The radial and longitudinal attenuation coefficient, The angular attenuation coefficient; In the formula The distance between vehicles is represented by... and The distance is obtained by solving the L2 norm distance. This is the relative azimuth angle. (Additional settings are also provided.) and These two hyperparameters are primarily used to control the rate of decay of the risk field. This scheme sets... .
[0037] (2) Kinematic collision cost function The primary function of collision cost is to quantify the severity of a potential collision between vehicles. This value is largely determined by the relative motion of the two vehicles. Therefore, this invention, referencing the calculation approach of relative kinetic energy, constructs a dedicated cost function. The specific form of the kinematic collision cost function is as follows: (10) In the formula, The coefficient of the collision cost constant. It refers to the modulus of the relative speed between the two vehicles. Let be the angle between their respective velocity vectors. This function expression shows that when two vehicles are approaching each other at high speed, and the angle between their velocity vectors is large, the overall collision interaction cost will increase significantly, and the corresponding driving risk will become extremely high.
[0038] S4.2 Based on style scalar, confidence level, static label and basic instantaneous risk value, output the style modulation instantaneous risk value between each pair of vehicles through the style perception outer modulation mechanism; like Figure 3As shown, the style modulation factor set in this invention dynamically weights and adjusts the basic risk field based on a style scalar. The core logic of the entire design closely matches actual driving scenarios: if the oncoming vehicle is an aggressive vehicle, that is, a target with a high sj value, the driving risk perceived by the vehicle will be appropriately amplified; if the oncoming vehicle is a conservative and stable vehicle, the perceived risk of the vehicle will be reasonably suppressed.
[0039] For a detailed comparison of the visualization effects corresponding to risk fields, please refer to [the relevant documentation / reference]. Figure 3 The SM-DRF risk field is illustrated. In the image, red vehicles represent aggressive drivers, and green vehicles represent conservative drivers. The dashed outline represents the original risk coverage area without style modulation. The visualization clearly shows that after style factor modulation, the risk field coverage area for aggressive vehicles significantly expands, while the risk field for conservative vehicles shrinks to some extent. This demonstrates that this solution effectively utilizes driving style characteristics learned from vehicle historical trajectories to generate a more realistic and reasonable dynamic risk range.
[0040] (1) Robust combination style weight calculation Based on interactive characteristics, this invention defines combined style weights to adapt to two-way interactive scenarios. Furthermore, to avoid instability and output jumps caused by extreme style estimation values, a numerical truncation mechanism is implemented to constrain the output range and improve the overall algorithm robustness. The specific combined style weights... The calculation formula is as follows: (11) in, Adjusting the contribution ratio of the vehicle's style to that of other vehicles. The magnification factor is [ [] represents the cutoff interval. To define the style of a car. For the style scalar of his car. This formula makes the radical target ( The risk weight of the target is >1, while the risk weight of the conservative target is <1, thus simulating the defensive attention of human drivers to aggressive vehicles.
[0041] (2) Scene-adaptive gating adjustment To prevent erroneous style estimations caused by sensor noise or occlusion from misleading risk assessments, a confidence-based approach is introduced. The gating mechanism. The final effective modulation factor. Defined as: (12) This mechanism acts as a "soft switch": when the style confidence of the vehicle or the target vehicle is low ( When ), the modulation term ( 1) Suppressed, The model automatically degrades to 1.0. At this point, the model smoothly regresses to the base DRF risk, ensuring the system's robustness when style inference is uncertain.
[0042] Specifically, stationary vehicles, lacking significant interaction intent features, can essentially be treated as road obstacles. To address this specific case, this embodiment forcibly sets the style confidence of stationary targets to 0, and the style adjustment term... It will become ineffective immediately, corresponding to the effective modulation factor. It will be fixed at 1. The entire model will automatically revert to the basic DRF risk calculation mode driven by pure physics, no longer affected by driving style parameters. This ensures that the risk assessment results are objective enough when the system faces static obstacles, and the overall operation is more stable.
[0043] Based on the style weighting mechanism derived above, the final formula for calculating the instantaneous risk value of style modulation is as follows: (13) S4.3 Based on the current motion state of the vehicle, the extrapolated trajectory sequence of each vehicle for the next 1.0 second is obtained by extrapolating the short-time trajectory of the uniform velocity model CVM. The physical risk data obtained at this point is in continuous form and cannot be directly read and used by graph neural networks. Therefore, the system first performs short-term trajectory extrapolation based on vehicle kinematics to extract time-series risk statistical features, and then uses a Top-K strategy to build a sparse interaction graph centered on risk. Figure 4 The complete process of constructing a sparse interaction graph is demonstrated. The whole process consists of four steps: first, short trajectory extrapolation calculation is completed; then, risk signals between multiple vehicles are statistically solved; after pruning, a sparse graph structure is generated; and finally, the effective risk data is transformed into the edge features required by the graph Transformer.
[0044] CVM-based short-time trajectory extrapolation The risk field modeling in this invention is only used as prior knowledge, with the aim of capturing the current instantaneous driving threat trend. Therefore, this invention uses a constant velocity model (CVM) to extrapolate the vehicle's trajectory for the next 1.0 second.
[0045] The choice of 1.0s and CVM in this embodiment is mainly based on two practical considerations: Physical validity: 1.0 second corresponds exactly to the typical perception and reaction time of a human driver. Within such a short time window, the vehicle mainly relies on inertia to move. The CVM model can output a sufficiently accurate vehicle state estimate without complex calculations, which is suitable for short-term extrapolation requirements.
[0046] Computational decoupling: This approach avoids calling expensive neural network inference operations during the feature extraction stage, ensuring the real-time performance of the graph structure construction process and resulting in higher overall computational efficiency.
[0047] S4.4. Based on the extrapolated trajectory sequence, after extracting 8-dimensional high-order temporal risk features and outputting the 8-dimensional temporal risk feature vector between each pair of interacting vehicles, a peak risk-based system is constructed. The Top-K sparse graph is used to output a sparse directed interaction graph. (1) Extraction of 8-dimensional high-order temporal risk features; After obtaining the extrapolated 1.0s trajectory segment, the instantaneous risk sequence of the vehicle and neighboring vehicles is calculated. Based on this sequence, an eight-dimensional risk statistical feature vector is extracted. The specific combination forms are as follows: (14) The eight-dimensional risk statistical feature vector is divided into three categories, which are used to characterize different features of risk.
[0048] The first category is risk intensity characteristics: including peak risk. Average risk Standard deviation With cumulative risk It can intuitively reflect the level and volatility of overall risk.
[0049] The second category is time-domain characteristics: determined by the normalized peak time. Duration of high risk composition, It can be used to determine how quickly a danger is approaching. This can reflect the persistent nature of risk.
[0050] The third category pertains to the morphological characteristics of the curve: encompassing the normalized area under the curve (AUC) and the maximum risk gradient. (Used to characterize the swiftness of a risk outbreak).
[0051] Based on the combination of multi-dimensional risk characteristics, two easily confused driving risk modes can be better distinguished: instantaneous passing risks and continuous pressure risks. The former is characterized by a high risk gradient and rapid changes, while the latter has a large cumulative amount of points and a long duration of risk, which effectively improves the precision of risk identification.
[0052] (2) Based on peak risk Construction of Top-K Sparse Graph Traditional fully connected graph construction methods produce Due to the computational redundancy of orders of magnitude, this invention adopts a dynamic sparsity mapping strategy to significantly reduce the amount of computation while ensuring that key risk information is not lost.
[0053] The specific mapping rules are as follows: For vehicle nodes: connections with all vehicles in the scene need to be maintained; For surrounding vehicle nodes: peak risk To determine the evaluation criteria, all neighboring vehicles are ranked by risk, and only the top 12 neighbors with the highest risk are selected to form incoming edge connections, meaning K is set to 12.
[0054] The basis for selecting the K value: Information Theory Completeness: Extensive testing on large-scale datasets shows that selecting the Top-12 neighbors can cover 90.7% of the core interaction risk information in the scene. This is also the minimum K value that can meet the 90% information entropy threshold requirement, achieving a balance between information completeness and computational efficiency.
[0055] Finally, the composite edge features obtained by model integration It integrates multiple types of information, including short-term physical risk, vehicle style heterogeneity, and physical distance, and inputs them into the downstream Transformer module for subsequent attention bias calculation.
[0056] S5. Based on sparse directed interaction graphs, an interaction trajectory prediction model based on graph Transformer is constructed, which outputs 6 future trajectories, 6 modal confidences, and 6 location variances. The interactive trajectory prediction model of the Graph Transformer is a scene encoder-multimodal decoder structure; The encoder uses a Transformer structure. The decoder adopts a two-stage design: the first stage predicts the future destination of the vehicle, and the second stage refines and outputs the complete driving path based on the destination result. Existing trajectory prediction methods generally suffer from insufficient understanding of driving styles and homogeneous interaction modeling when facing complex traffic interaction scenarios, making it difficult to adapt to differentiated driving interaction states. To address these shortcomings, this invention proposes the SAGE (Style-Adaptive Graph Embedding Network) model.
[0057] SAGE is an end-to-end graph Transformer architecture whose core function is to fully utilize the multi-source heterogeneous information extracted from upstream modules, including driving style features. And risk-based sparse interaction graph Two types of core data, relying on these refined characteristics, accurately predict the future of target vehicles. Multimodal motion trajectories within a given time period. The complete SAGE framework is as follows: Figure 5 As shown, aside from the two pre-processing modules of feature extraction and risk mapping introduced earlier, the overall prediction architecture adopts an encoder-decoder structure. The encoder uses a graph Transformer structure, and the decoder adopts a two-stage design: the first stage predicts the vehicle's future destination, and the second stage refines and outputs the complete driving path based on the destination result.
[0058] The scene encoder module includes: a node encoder, an edge encoder, and a graph Transformer structure. The core function of the scene encoder is to map input information from different modalities to the same high-dimensional feature space, while deeply mining the spatiotemporal interaction features within the scene. This module mainly consists of three parts: a node encoder, an edge encoder, and a graph Transformer structure.
[0059] S5.1 Scene Encoder Module: Based on the vehicle's historical trajectory sequence, style scalar, confidence level, and stationary markers, the node encoder outputs the initial features of each node as input to the 0th layer of the graph Transformer. The node encoder is mainly responsible for processing the individual feature information of each intelligent agent in the scene, including the vehicle itself and surrounding vehicles, and performing unified fusion encoding of historical trajectory, driving style identity and surrounding map features.
[0060] For trajectory encoding, the historical trajectory state sequence of the vehicle over the past 5 seconds is first linearly projected and positionally encoded, and then fed into a 3-layer Transformer encoder structure to extract long-range trajectory features corresponding to the vehicle's temporal changes. .
[0061] In terms of style and identity encoding, a three-dimensional style feature vector is used, including style value s, confidence level v, and stationary state identifier is stationary. At the same time, identity embedding features of the self-vehicle and other vehicles are introduced, and the final individual style features are obtained by mapping through an MLP network. .
[0062] In terms of hierarchical map encoding, a hierarchical encoder based on PointNet structure is used to extract lane geometric features from high-precision maps. Then, the map features are fused into node features through a cross-attention mechanism, and finally, a unified node feature representation with a dimension of 256 is output.
[0063] S5.2 Scene Encoder Module: Based on 12-dimensional composite features, the edge encoder outputs 16-dimensional high-dimensional edge features for each edge. The edge encoder is primarily used to explicitly model the complex interactions between agents. The input to this module is all the slave nodes in the sparse graph. Pointing to node edge features The corresponding original features are 12-dimensional composite features. This set of features encompasses eight-dimensional temporal risk statistics, style differences and confidence differences between agents, as well as the physical distance and speed differences between the two vehicles, containing multi-dimensional interaction information. Subsequently, these original features are fed into a three-layer MLP network and uniformly mapped to 16-dimensional high-dimensional edge feature vectors. The feature upsizing encoding is completed, and the specific calculation method is as follows: (15) After the mapping process of the edge encoder, the obtained high-dimensional edge features can accurately quantify the risk level in the vehicle interaction process, and effectively characterize the style heterogeneity between different agents, providing refined feature support for subsequent interaction modeling of graph models.
[0064] S5.3 Scene Encoder Module: Initial features of nodes, edge features, and sparse interaction graph structure. Through the graph Transformer architecture, it outputs the updated final node features and global scene context features. The graph Transformer architecture includes three graph Transformer layers; The Graph Transformer is the core module of the entire scene encoder. It mainly relies on the constructed sparse graph structure to carry out message passing, thereby iteratively updating the node features of each agent. Unlike the modeling method of traditional standard GNN networks, this solution adopts an edge-aware attention mechanism, allowing the model to take into account both node features and interaction edge feature information.
[0065] The first layer of the Transformer In each attention head, the target node will be calculated one by one. and its neighboring nodes The attention coefficients between them. This application does not employ the conventional dot-product attention model, but instead designs a concatenated attention mechanism, explicitly concatenating the source node features, target node features, and encoded edge features, and then using a learnable weight vector. Solve for attention score The specific formula is as follows: (16) In the formula, , This represents the node characteristics output from one layer of the network. The edge features are the result of encoding. , , are the linear projection matrices for the corresponding dimensions, and ∥ represents the vector concatenation operation. This design is particularly crucial, as it directly incorporates risk edge characteristics and style difference characteristics into the attention scoring logic.
[0066] After obtaining the raw attention scores, normalization is performed using the Softmax function to obtain the final attention weights. The scoring logic shows that for interaction edges with higher risk statistics and more significant style differences, the attention score will be significantly improved, allowing the model to automatically allocate more attention weight to high-risk and differentiated interactions when aggregating features.
[0067] Finally, based on the normalized attention weights, the effective feature information of all neighboring nodes is aggregated to complete the iterative update of the features of the current layer nodes. The specific update formula is as follows: (17) In the formula, For the layer index of the graph Transformer, It is a node-level multilayer perceptron. For multi-head attention splicing, The weighted sum of neighboring nodes is calculated. The attention weights of the nodes. Let h be the linear projection matrix of the values of the heads. These are the neighbor node features output from the previous layer; The multimodal decoder of this invention is based on the scene context features output by the encoder and adopts a two-stage decoding strategy with query as the core. The overall design concept is similar to the QCNet architecture. It can predict six potential driving trajectories of the target vehicle in the future at one time and output the confidence level corresponding to each trajectory, fully covering the various driving possibilities of the vehicle in the future.
[0068] S5.4 Multimodal Decoder: Based on the final node features and global scene context features, it outputs 6 sets of modal query vectors after fusing scene context through modal query initialization and interaction; The decoder internally maintains K=6 sets of learnable modal query vectors, corresponding to the following dimensions: Each set of query vectors is used to fit a specific vehicle driving behavior pattern. In order to enable each modal query to accurately associate with the current prediction target and perceive the real-time state of the target, this embodiment first projects the encoded features of the target vehicle and then superimposes the initialized modal query vectors to complete the target perception initialization of the query.
[0069] After initialization, a two-layer Transformer encoder is connected. A self-attention mechanism allows the six modal queries to interact and learn from each other, autonomously uncovering the mutual exclusion relationships and division of labor characteristics between different driving modalities, thus avoiding homogenization and redundant overlap of multimodal output results. Finally, feature fusion is achieved through a multi-head cross-attention layer. This module is configured with eight attention heads and introduces relative position bias constraints, combining the optimized query vector Q with the global scene context features output by the encoder. Deep integration provides comprehensive contextual support for subsequent trajectory decoding.
[0070] S5.5 Multimodal Decoder: Based on 6 sets of modal query vectors, through the first stage of endpoint prediction, it outputs 6 sets of predicted endpoints and 6 sets of unnormalized confidence scores. The core task of the first stage of decoding is to predict the vehicle's destination position in the next 6 seconds for each modality. To ensure that the prediction results conform to road topology constraints and have practical rationality, this invention introduces a lane condition prediction strategy. The system first encodes all lane candidate points in the high-precision map, converting them into dimensions... eigenvectors .
[0071] Then calculate the first one one by one. The similarity between each modal query qk and all lane candidate points is used to output the corresponding lane selection probability distribution via the Softmax function. The basic endpoint position is then calculated using a weighted average. To further improve prediction accuracy, this paper adds an offset fine-tuning branch, which predicts the position offset using an independent MLP network to refine the basic endpoint, ultimately obtaining the accurate predicted endpoint for each mode. .
[0072] At the same time, the model activates another parallel MLP branch, which is specifically responsible for predicting the normalized confidence score corresponding to each driving mode, providing a basis for the probability screening and result output of subsequent multimodal trajectories.
[0073] S5.6 Multimodal Decoder: Based on 6 sets of predicted endpoints, the second stage outputs 60 frames of temporal trajectory and 6 sets of endpoint position variances through trajectory generation and uncertainty estimation; The second stage of decoding uses the predicted endpoint obtained in the first stage as the anchor point to interpolate and generate a complete temporal driving trajectory. First, the predicted endpoint... Feature encoding is performed and superimposed onto the modality query features, binding the query vectors to endpoint constraint information and clarifying the driving objectives for each modality. Subsequently, 60 sets of learnable temporal query vectors with a dimension of [missing information] are introduced. These correspond to the predicted times for the next 60 frames.
[0074] The time query is fed into a four-layer Transformer decoder, which uses a temporal self-attention mechanism to capture motion relationships between adjacent time steps. Simultaneously, it fuses global scene context features through cross-attention to parse the vehicle's motion state time-by-time. Finally, the output projection layer decodes the five-dimensional vehicle state for each frame, including horizontal and vertical coordinates. ), Horizontal and vertical speeds ( and heading angle .
[0075] In addition, to fully quantify the predicted risk of future trajectories, this decoder adds an uncertainty modeling branch. This branch uses an independent MLP network with the Softplus activation function to model the uncertainty for each driving mode. Predict the corresponding location variance This enables heteroscedasticity modeling of trajectory distribution, accurately quantifying the degree of position uncertainty under different driving modes. The specific calculation method is as follows: (18) This allows the model to quantify the level of positional uncertainty under different behavioral modalities.
[0076] S5.7 Construct a multi-task joint learning strategy loss function, train the model, and obtain a trained graph Transformer-based interactive trajectory prediction model. To address the modality collapse problem that easily occurs during multimodal prediction, this invention combines a Winner-Takes-All (WTA) strategy, fully leveraging the inherent multi-behavioral pattern fitting capabilities of the query center architecture. The overall loss function of the model consists of four parts, taking into account trajectory accuracy, physical plausibility, modality confidence calibration, and uncertainty learning. The loss function formula for the multi-task joint learning strategy is defined as follows: (19) in, For trajectory position and target point loss, For multi-task physical constraint loss, For modal probability calibration loss, For heteroscedasticity uncertainty loss, For multi-task physical constraint loss weights, To calibrate the loss weights for modal probabilities, This represents the weight for the heteroscedasticity uncertainty loss.
[0077] (1) Trajectory position and target point loss: This loss is the core constraint term for model optimization. It is mainly used to ensure the basic accuracy of trajectory prediction and endpoint prediction, and covers the average displacement error of the optimal mode. Endpoint displacement error And the endpoint prediction loss corresponding to the first stage of decoding. The specific combination forms are as follows: (20) in, This represents the average displacement error. For the endpoint displacement error, Predict the loss for the first phase endpoint. , and These are the weighting coefficients for the loss terms at each location. Used to measure the overall deviation between the predicted trajectory and the actual trajectory, characterizing the global prediction accuracy. It specifically assesses the deviation of the final predicted endpoint to ensure the accuracy of vehicle long-term location prediction.
[0078] (2) Multi-task physical constraints: In order to avoid the model predicting abnormal trajectories that do not conform to the driving rules, this scheme applies Smooth L1 constraints to the two types of motion parameters of the trajectory, namely speed and heading angle, to effectively smooth the motion changes between frames and ensure the continuity and rationality of the output trajectory from the physical level, which conforms to the motion characteristics of real vehicles.
[0079] (3) Modal probability calibration loss: In order to align the prediction confidence with the trajectory quality, a soft target distribution based on FDE is constructed. And minimize its difference from the predicted distribution. The KL divergence.
[0080] (4) Heteroscedasticity uncertainty loss: The heteroscedasticity loss function is used to adaptively learn the location variance. To quantify the uncertainty of forecasts: (twenty one) In the formula, This is the square of the endpoint displacement error. The variance of the endpoint position of the optimal mode; This factor prompts the model to adaptively increase variance when prediction bias is large (difficult samples). This allows them to learn about the cognitive uncertainty of a scenario.
[0081] Training Setup: This model was trained on the Argoverse 2 public dataset, using the AdamW weight decay optimizer. Scene-level batch processing was employed during training to improve efficiency, along with data augmentation techniques such as random rotation and noise injection to enrich the training sample scenarios and effectively enhance the model's overall generalization ability and robustness.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An unsupervised method for predicting the trajectory of autonomous vehicles using style recognition and graph neural networks, characterized in that, Includes the following steps: S1. Based on the original vehicle historical trajectory data, each trajectory is extracted using a preset sliding window as the unified observation scale. The original physical features of the preset dimensions are extracted within each window. The original physical features of the preset dimensions are divided into three categories and then PCA principal component analysis is performed on the features of the preset dimensions to extract a 7-dimensional feature vector. S2. Based on 7-dimensional feature vectors, clustering is performed by constructing a Gaussian mixture model (GMM). Semantic mapping is performed on each cluster component, which is labeled as three categories: radical, neutral, and conservative. Then, intra-class linear normalization is performed, and the data is mapped to continuous style scalars. Time decay weighted fusion is used to aggregate the style scalars. Boundary truncation is performed on the aggregated style scalars, and a preset threshold is used to judge the confidence level. The final style scalar and confidence level are then output. S3. Based on the historical trajectory data of all vehicles, the effective observation duration of the trajectory, the style scalar and the confidence level, through the correction processing of short trajectories and stationary vehicles, output the unified style scalar of the vehicle, the identification confidence level and the stationary vehicle label. S4. Based on the current motion state, style scalar and confidence of all vehicles, a sparse directed interaction graph is output by using style-modulated dynamic driver risk field SM-DRF modeling and sparse interaction graph construction. Each edge of the sparse directed interaction graph contains composite features of a preset dimension; S5. Based on sparse directed interaction graphs, an interaction trajectory prediction model based on graph Transformer and a multi-task joint learning strategy loss function are constructed to output future trajectory, modal confidence and position variance, thus completing the trajectory prediction method for autonomous vehicles.
2. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, In S1, the three categories specifically include: longitudinal dynamic characteristics, lateral and stability characteristics, and behavioral consistency characteristics; The longitudinal dynamic characteristics are 5-dimensional feature data, including average velocity, maximum velocity, velocity standard deviation, average acceleration, and average deceleration; The lateral and stability features are 4-dimensional feature data, including average lateral acceleration, maximum lateral acceleration, real-time rate of change of vehicle heading, and average jerk data throughout the entire process. The behavioral consistency feature is a 3D feature data, including the frequency of vehicle stops, the stability of vehicle speed maintenance, and the fluctuation deviation of acceleration data.
3. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, S2 specifically includes the following steps: S2.1 Based on 7-dimensional low-dimensional feature vectors, the initial GMM parameter set is obtained through GMM model probability construction and parameter initialization. Then, the EM algorithm is used for fitting to obtain the optimal GMM parameters after training convergence. S2.2 Based on the central mean of the clustering components in the optimal GMM parameters, the style scores of the three categories are calculated through semantic mapping of the clustering components. The category with the highest score is selected as the label of the GMM component and the dominant category of each sample is determined. S2.
3. Based on the dominant class of each sample, calculate the intra-class normalized value, and then map t to the corresponding sub-interval of the [0,1] interval according to the dominant class, and output the final style scalar. S2.
4. Based on the posterior probability distribution, calculate the style identification comprehensive confidence of a single window and then calculate the fusion weight to obtain the aggregated style scalar and the corresponding trajectory-level confidence. S2.5 Based on the aggregated style scalar and confidence level, the aggregated style scalar is truncated at the boundary and the confidence level is judged by a preset threshold, and the final style scalar and confidence level are output.
4. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, S3 specifically includes the following steps: S3.1 Input the historical trajectory data of the vehicle and its effective observation duration, divide each trajectory according to the preset rules, and output three types of diversion results and corresponding trajectory data; The three types of diversion results include long trajectories, short trajectories, and stationary candidates; S3.2 Based on the sample data that are determined to be short trajectories and long trajectories, extract a preset group of instantaneous stable features from the available frames, and simultaneously extract the same preset dimension features for all long trajectory samples and cache them to obtain the feature vector of the short trajectory and the feature library of the long trajectory. S3.3 Based on the feature vectors of short trajectories and the feature library of long trajectories, the set of neighborhood long trajectories for each short trajectory is output through the distance metric of heterogeneous features; S3.
4. Based on the set of long trajectories in the neighborhood of the short trajectory, perform soft-weight interpolation to calculate the style scalar of the short trajectory, and obtain the interpolated style scalar and the confidence of the short trajectory. S3.5 Based on the sample data of the identified stationary candidates, output the stationary candidate interpolation style scalar, stationary candidate confidence, and stationary vehicle label by determining the stationary vehicle and assigning style confidence.
5. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, S4 specifically includes the following steps: S4.1 The current motion state, style scalar and confidence of all vehicles are constructed through the basic driver risk field, and the basic instantaneous risk value between each pair of vehicles is output. The basic driver risk field includes: the anisotropic Gaussian collision probability field and the kinematic collision cost function; The formula for calculating the basic instantaneous risk value is: in, Based on the instantaneous risk value, Let be the collision probability. For the cost of collision; S4.2 Based on style scalar, confidence level, static label and basic instantaneous risk value, output the style modulation instantaneous risk value between each pair of vehicles through the style perception outer modulation mechanism; The style-aware outer modulation mechanism includes a combination of style weight calculation and scene-adaptive gating adjustment; The formula for calculating the combined style weights is as follows: In the formula, To combine style weights, Adjusting the contribution ratio of the vehicle's style to that of other vehicles. The magnification factor is [ [] represents the cutoff interval. To define the style of a car. To calibrate the style of his car; The formula for calculating the instantaneous risk value of style modulation is as follows: in, To adjust the instantaneous risk value for style, Based on the instantaneous risk value, Modulation factor; S4.3 Based on the current motion state of the vehicle, the future extrapolated trajectory sequence of each vehicle is obtained by extrapolating the short-time trajectory of the uniform velocity model CVM. S4.
4. Based on the extrapolated trajectory sequence, after extracting 8-dimensional high-order temporal risk features and outputting the 8-dimensional temporal risk feature vector between each pair of interacting vehicles, a peak risk-based system is constructed. The Top-K sparse graph is used to output a sparse directed interaction graph. The combined form of the extracted 8-dimensional high-order temporal risk features is as follows: in, It is an 8-dimensional time-series risk feature. For peak risk, To average risk, Standard deviation, To accumulate risk, For the normalized peak time, Due to the persistent nature of risk, The normalized area under the curve, This represents the maximum risk gradient.
6. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, In S5, the interactive trajectory prediction model of the graph Transformer is a scene encoder-multimodal decoder structure; the scene encoder uses a graph Transformer structure; the multimodal decoder adopts a two-stage design: the first stage predicts the future destination of the vehicle, and the second stage outputs the complete driving path based on the destination result.
7. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, S5 specifically includes the following steps: S5.1 Scene Encoder Module: Based on the vehicle's historical trajectory sequence, style scalar, confidence level, and stationary markers, the node encoder outputs the initial features of each node as input to the 0th layer of the graph Transformer. The node encoding includes: trajectory encoding, style and identity encoding, and hierarchical map encoding; S5.2 Scene Encoder Module: Based on composite features, the edge encoder outputs 16-dimensional high-dimensional edge features for each edge. S5.3 Scene Encoder Module: Initial features of nodes, edge features, and sparse interaction graph structure. Through the graph Transformer architecture, it outputs the updated final node features and global scene context features. The graph Transformer architecture includes three graph Transformer layers; S5.4 Multimodal Decoder: Based on the final node features and global scene context features, it outputs a modal query vector after fusing the scene context through modal query initialization and interaction; S5.5 Multimodal Decoder: Based on the modal query vector, it predicts the endpoint in the first stage and outputs the predicted endpoint and the unnormalized confidence score. S5.6 Multimodal Decoder: Based on the predicted endpoint, the second stage outputs the time-series trajectory and endpoint position variance through trajectory generation and uncertainty estimation.
8. The method for predicting the trajectory of an autonomous vehicle using unsupervised style recognition and graph neural networks according to claim 1, characterized in that, In S5, the expression for the loss function of the multi-task joint learning policy is: In the formula, For trajectory position and target point loss, For multi-task physical constraint loss, For modal probability calibration loss, For heteroscedasticity uncertainty loss, For multi-task physical constraint loss weights, To calibrate the loss weights for modal probabilities, This represents the weight for the heteroscedasticity uncertainty loss.
