Next Article in Journal
Kernel-Weighted Aggregation for Hyperparameter-Free Quantum Federated Learning
Previous Article in Journal
The Free Energy Principle and Free Markets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Intent-Conditioned Diffusion Trajectory Prediction for Proactive Lane-Change Risk Assessment

1
School of Automobile and Transportation, Xihua University, Chengdu 610039, China
2
College of Intelligent Construction and Manufacturing, Sichuan Technology and Business University, Chengdu 611745, China
*
Author to whom correspondence should be addressed.
Entropy 2026, 28(9), 957; https://doi.org/10.3390/e28090957
Submission received: 6 July 2026 / Revised: 22 August 2026 / Accepted: 24 August 2026 / Published: 26 August 2026
(This article belongs to the Section Multidisciplinary Applications)

Abstract

Proactive lane-change risk assessment requires estimating whether an intended maneuver will lead to unsafe interactions before the maneuver is completed. This is challenging in naturalistic driving data because actual crashes are extremely rare, and binary collision labels provide little discriminative information for learning risk. We propose IntentDiff, an intent-conditioned diffusion framework for proactive lane-change risk assessment. The framework uses predicted future trajectories as the basis for risk estimation. A vectorized scene context learning module combines a VectorNet backbone with a Vector Quantized Variational Autoencoder (VQ-VAE) to map agent–map interactions into discrete intent codes. These codes organize complex traffic situations into interpretable intent prototypes and provide semantic guidance for trajectory generation. Conditioned on the learned intent code, a diffusion model generates kinematically consistent multimodal trajectories of the target vehicle. On the forecast trajectories, Monte Carlo rear-end risk is evaluated against the four bounding vehicles and fused into a Lane-Change Risk Index (LCRI). On the highD dataset, the framework attains an average displacement error of 0.42 m over a 5-s horizon. The forecast-based LCRI agrees closely with the index computed from realized future trajectories, indicating that most high-risk lane changes can be identified before the maneuver is completed. Grouping LCRI by intent code further reveals systematic variation in risk across lane-change maneuvers, suggesting that the learned codebook captures risk-relevant interaction patterns in addition to maneuver semantics.

1. Introduction

Driving risk assessment is an essential function of intelligent vehicles, as safety-critical interactions must be recognized before they develop into crashes. This requirement is particularly important in highway lane-changing scenarios. A small longitudinal or lateral mismatch between a lane-changing vehicle and its surrounding vehicles can rapidly lead to a rear-end or sideswipe conflict. For advanced driver assistance and autonomous decision-making, the central question is therefore not whether a completed maneuver was risky, but whether the future risk of an intended lane change can be estimated early enough to support preventive action. Recent studies [1,2] emphasize that this problem is difficult because risk is not determined solely by the target vehicle but arises from the coupled motion of the target vehicle, neighboring vehicles, road geometry, and the future responses of all interacting agents.
Research on driving risk assessment has gradually moved from instantaneous state judgment to future-oriented risk inference. Since actual crashes are extremely rare in naturalistic traffic, classical surrogate safety measures (SSM) replace sparse and delayed crash records with measurable conflict indicators derived from vehicle proximity, time margins, required braking, or hypothetical collision severity [3,4]. These indicators are commonly grouped into time-based measures such as Time to Collision (TTC), deceleration- and distance-based measures such as the Deceleration Rate to Avoid a Crash (DRAC), and severity-oriented measures [5]. Earlier probabilistic scene-analysis and driver-behavior models have likewise linked predicted motion to collision probability and decision-making risk [6,7]. Although interpretable and computationally efficient, these measures often rely on fixed thresholds, pairwise interaction assumptions, and scenario-specific definitions, which limits their use when several vehicles interact and when both longitudinal and lateral conflicts must be considered.
Risk assessment is particularly challenging in multi-vehicle highway interactions, where the risk state depends jointly on the target vehicle and several surrounding vehicles. Xiong et al. [2] divide multi-vehicle risk assessment methods into state-inference-based and trajectory-prediction-based approaches. Most existing lane-change risk studies fall on the state-inference side as they map historical features directly to a risk state or compute surrogate measures on observed trajectories, without retaining the predicted future segment [8,9,10]. Representative examples include the rear-end crash risk index of Shangguan et al. [8], which combines Monte Carlo crash occurrence with collision severity and was later aggregated across the four key surrounding vehicles into a Lane-Change Risk Index (LCRI) through a fault-tree formulation [11], as well as recent generalized surrogate safety models learned from large-scale naturalistic data without crash labels [12]. Trajectory-prediction-based methods instead forecast the future motion distribution and then evaluate collision probability or severity over the prediction horizon. Although more costly, they account for the future spatial relations among interacting vehicles and can detect collision risk earlier and more accurately [2]. Recent studies illustrate this trend by coupling multi-vehicle trajectory prediction with collision probability, collision intensity, or aggregated lane-change risk indices [13,14,15], and risk-aware predictors have begun to incorporate collision risk into the prediction objective itself [16]. This direction naturally connects risk assessment with trajectory prediction, because forecast trajectories make the source and timing of a potential conflict observable before the maneuver unfolds. However, it requires a forecasting framework whose output is both suitable for proactive risk computation and semantically organized enough to explain why some lane-change situations are riskier than others.
Driving intention recognition provides the semantic ingredient for such forecasts. An intention denotes a deliberate, goal-level decision formed earlier in the timeline than the behavior that executes it, so recognizing it offers an earlier cue for safe decision-making than forecasting the trajectory alone [17,18]. Methodologically, intention recognition has evolved from inferring discrete maneuvers from vehicle kinematics with classical classifiers toward learning spatial and temporal features directly from data. This includes combined CNN–LSTM architectures for lane-change anticipation [19], convolutional social pooling [20] and attention-based models [21] for capturing the interaction context, graph-based models that dynamically update relational edges [22], and transformer-based predictors that jointly model maneuver and trajectory in a multimodal form [23,24]. More recent models increasingly couple intention with trajectory generation, for example by integrating intention awareness into diffusion-based prediction [25] or by obtaining intention-aware motion modes through contrastive clustering [26]. These studies indicate that intention information improves motion prediction. In most designs, however, intention enters as a supervised label, an auxiliary branch, or an input token. Such usage helps the predictor select a plausible mode, yet it does not yield an interpretable representation that can be tied to downstream risk.
The forecasting task itself is inherently generative, because a single observed history may correspond to multiple plausible futures. Lane-change futures are multimodal, interaction-dependent, and constrained by road topology and vehicle kinematics [18,27,28,29,30], which makes deterministic point prediction insufficient. Early generative approaches used conditional variational autoencoders that sample latent variables to generate alternative future hypotheses [31] and adversarial models that encourage socially compliant outputs [32]. Conditional VAEs, however, are prone to posterior collapse and tend to regress toward an average path. GANs are hard to train and frequently exhibit mode collapse. The latent representations of both families are continuous and entangled, which makes it difficult to identify which dimensions correspond to a particular driving intent. Diffusion models have recently emerged as a more stable alternative with superior mode coverage, modeling trajectory generation as a gradual denoising process [33], accelerating inference through leapfrog strategies [34], and incorporating feasibility constraints by conditioning on discrete traffic contexts generated by a VQ-VAE [35]. Nevertheless, standard diffusion predictors typically operate in a continuous latent space and lack explicit semantic control. Hence, the generation process is often blind and may require a large number of samples to cover the ground-truth mode. Many also rely on rasterized maps or time sequences that lose fine-grained topological information compared with vectorized representations [36].
In summary, existing studies have established three important foundations for proactive lane-change risk assessment. Intention recognition provides early semantic cues about future behavior, and generative trajectory prediction represents multiple plausible futures under interaction and road constraints. Surrogate safety measures offer interpretable risk indicators when crash labels are unavailable. However, the links among these components remain weak. Intention-aware predictors often lack a risk-oriented interpretation of their latent representations. Generative predictors produce futures without exposing semantically meaningful intent structures. Most risk assessment methods compute risk from observed trajectories or historical features rather than from interpretable predicted futures. The missing link is therefore a predictor that generates feasible futures, exposes the intent structure behind them, and allows the downstream risk index to be traced back to that structure.
To address these limitations, this paper proposes IntentDiff, an intent-conditioned diffusion framework for proactive lane-change risk assessment. The proposed framework uses predicted futures as an explicit basis for evaluating how lane-change risk will evolve before the maneuver unfolds. The forecast is feasible, multimodal, and associated with discrete intent-related prototypes, so that the resulting risk index can be analyzed in terms of the interaction pattern that produces it. From an information-theoretic viewpoint, the framework compresses the high-dimensional traffic scene into a discrete latent bottleneck that retains the maneuver- and risk-relevant information, a property we quantify through the entropy, perplexity, and mutual information of the learned codebook. The main contributions of this paper are summarized as follows.
  • A vectorized scene context learning module is developed to provide an interpretable intent basis for risk assessment. The module combines a VectorNet backbone with a Vector Quantized Variational Autoencoder (VQ-VAE), mapping agent–map interactions onto a discrete codebook. These codes represent maneuver-associated intent prototypes, allowing complex lane-change situations to be organized into risk-relevant interaction patterns.
  • An intent-conditioned diffusion trajectory generator is proposed to support proactive risk inference. The learned discrete intent code serves as a high-level prior during denoising, while the model generates acceleration and yaw-rate sequences, which are integrated through a kinematic layer. The resulting trajectories are diverse, feasible, and associated with explicit intent prototypes, which makes them suitable for downstream risk computation.
  • A forecast-based Lane-Change Risk Index (LCRI) analysis is constructed to evaluate future collision risk prior to the maneuver. For the generated trajectories, Monte Carlo rear-end risk is evaluated against the four bounding vehicles and then fused across the lane-change conflict structure. This allows the framework to quantify proactive risk and to reveal how different intent prototypes correspond to different levels of lane-change risk.
The remainder of this paper is organized as follows. Section 2 details the methodology, including the vectorized scene context learning, the intent-conditioned diffusion model, and the predictive lane-change risk assessment. Section 3 introduces the experimental setup. Section 4 presents the trajectory prediction and the predictive risk assessment results. Finally, Section 5 concludes the paper.

2. Methodology

This section introduces the trajectory-prediction-based proactive lane-change risk assessment. The framework consists of three functional components: vectorized scene context learning, intent-conditioned diffusion trajectory generation, and predictive lane-change risk assessment. As illustrated in the IntentDiff architecture (Figure 1), a VectorNet-based VQ-VAE encodes heterogeneous agent–map interactions into a discrete latent code associated with maneuver-level driving intents. Subsequently, a 2D U-Net DDPM, conditioned on this discrete intent code, generates dynamically feasible target-vehicle motion control sequences, which are integrated via a kinematic model to produce final forecast trajectories. Finally, the predicted target-vehicle trajectories are evaluated against the four bounding vehicles through a Monte Carlo rear-end risk model and fused into the Lane-Change Risk Index (LCRI). The remaining subsections detail the formal problem statement, scene context learning, conditional trajectory generation, and predictive risk assessment.

2.1. Problem Statement

The trajectory prediction task is formulated as the problem of generating the joint probability distribution over the target agent’s future states, conditioned on the historical context of the dynamic traffic scene. Let the dataset D = { ( ξ ( m ) , Y ( m ) , s ( m ) ) } m = 1 M be composed of M distinct data samples. Each data sample holds the vectorized traffic scenario observations ξ ( m ) , the future trajectory Y ( m ) , and a maneuver label s ( m ) . The scene observation ξ ( m ) encompasses the dynamic states of N interacting agents (including the ego vehicle and its neighbors) and the static high-definition map vectors over a historical horizon of length T o b s . Unlike raster-based methods that use fixed-size tensors, ξ ( m ) is represented as a set of polylines to preserve geometric sparsity. The target future trajectory is defined as Y ( m ) R T p r e d × 2 , representing the 2D global coordinates over the prediction horizon T p r e d . To support intent-aware prediction, each sample includes a maneuver class s ( m ) , which is a one-hot encoded vector representing the driving intention. Specifically, s ( m ) indicates whether the future trajectory Y ( m ) corresponds to a Lane Change Left (LCL), Lane Change Right (LCR), or Keep Lane (KL) maneuver.
The objective is to predict the future trajectory Y ^ for the target agent given ξ . To ensure kinematic feasibility, our model does not directly regress positions. Instead, we define the generation target in the action space as X 0 = { ( a x t , ψ ˙ t ) t = 1 , , T p r e d } , consisting of longitudinal acceleration a x and yaw rate ψ ˙ . The final trajectory Y ^ is recovered from the generated actions X ^ 0 via a kinematic integration layer, ensuring that the output inherently satisfies vehicle non-holonomic constraints.

2.2. Vectorized Scene Context Learning

To effectively capture the complex interactions between agents and the road network and to categorize the infinite possibilities of traffic scenarios into discrete, semantically rich contexts, we employ a vectorized scene context learning module. As shown in Figure 2, this module integrates a VectorNet-based Encoder-Decoder architecture within a VQ-VAE framework.

2.2.1. Hierarchical VectorNet Encoder

The VectorNet backbone [36] is leveraged here to encode the rich interactions among traffic participants and the surrounding road network. This hierarchical GNN operates directly on a polyline-based scene representation, thereby avoiding the information loss inherent to rasterization. Lanes and agent trajectories are approximated as ordered sequences of short vectors: map features are obtained by uniformly sampling key points along the spline of each lane and chaining them in order, while agent histories are sampled at fixed time intervals. A vector v i on polyline P j becomes a node of the graph carrying features v i = [ d s , d e , a , j ] , where d s and d e are the start and end coordinates, a collects auxiliary attributes, and j identifies the parent polyline. Translational invariance is enforced by re-centering every coordinate around the target agent’s position at the last observed time step.
Based on this representation, the encoder aggregates information hierarchically, starting from the local vector level up to the global scene level. First, to exploit spatial and semantic locality, we construct subgraphs for each polyline. For a polyline P j containing vectors { v 1 , , v L } , a subgraph network aggregates features using a Multi-Layer Perceptron (MLP) followed by a permutation-invariant max-pooling operation ϕ a g g :
p j = ϕ a g g MLP ( v i ) , v i P j
This process effectively compresses the variable-length vector sequence into a fixed-size polyline embedding p j , encapsulating the local geometric characteristics of the road or the motion pattern of an agent.
Subsequently, to model higher-order interactions among all scene components (i.e., agents and map features), we construct a fully connected global graph where nodes are the polyline embeddings { p 1 , , p M } . Following VectorNet [36], a self-attention operation is applied to update these features by capturing long-range dependencies. Let P R M × d denote the matrix formed by stacking all polyline embeddings, and let P Q , P K , and P V be its query, key, and value projections, respectively. The global graph update is written as:
Z ^ = softmax P Q P K T d k P V
where d k is the dimension of the key projection. The final output corresponding to the target agent, denoted as z ^ , encapsulates the global scene context and serves as the continuous latent representation for the subsequent quantization module.

2.2.2. Discrete Context Quantization

To handle the continuous, unbounded nature of interactive traffic scenarios, we introduce a discrete quantization step after global feature aggregation. As illustrated in Figure 2, the continuous global embedding z ^ extracted by the hierarchical encoder is projected onto a finite, learnable codebook Z = { z 1 , . . . , z Q } . Rather than employing traditional continuous latent spaces, this operation maps the current scene to the nearest semantic and geometric prototype z q by minimizing the Euclidean distance in the embedding space:
z q = arg min z k Z z ^ z k 2 2
Assigning the dynamic observation to a discrete context cluster c = q significantly reduces multimodal ambiguity. To ensure these discrete representations maintain both geometric fidelity and strong correlation with high-level driving maneuvers, the codebook and network parameters are optimized simultaneously through a composite objective function:
L = L r e c o n + L v q + λ L c l
where the scalar coefficient λ controls the relative contribution of the intent classification objective compared to the reconstruction and quantization terms. This weighting steers the model toward semantically interpretable representations while preserving the geometric fidelity of the reconstructed scene.
The reconstruction term L r e c o n quantifies the vector-wise discrepancy between the original scene input ξ and the decoded output ξ ^ , so that the discrete latent code z q retains the geometric information essential to the traffic scenario. It is defined as:
L r e c o n = ξ ξ ^ 2 2
Simultaneously, the VQ-VAE objective L v q is applied to update the codebook and constrain the encoder outputs:
L v q = sg [ z ^ ] z q 2 2 + β sg [ z q ] z ^ 2 2
where sg [ · ] denotes the stop-gradient operation. The first term updates the codebook embeddings, while the second term (commitment loss) constrains the encoder output from fluctuating excessively.
Finally, to emphasize scenario-specific factors that influence future maneuvers, an intent classification task is incorporated into the latent space. A linear classifier f c l is added to predict the maneuver probability distribution p (i.e., LCL, LCR, or KL) based on the quantized code z q :
p = softmax ( f c l ( z q ) )
To penalize incorrect intent predictions, a cross-entropy loss is computed against the ground truth maneuver label s:
L c l = s log ( p )
By introducing L c l , the latent space is encouraged to form maneuver-associated codebook entries, with each cluster q representing a specific intersection of geometric topology and driving intent, thereby providing a structured condition for the subsequent generative stage.
Since the codebook is shaped by the supervised classification loss L c l with LCL, LCR, and KL labels, the learned codes are maneuver-associated scene prototypes, which are discrete summaries of the agent–map interaction context that are predictive of the labeled maneuver. Throughout this paper, the terms “intent code” and “intent prototype” are used as shorthand for these supervised maneuver-associated prototypes, consistent with the common usage of “intention” for maneuver-level classes in the trajectory prediction literature [17,18].

2.3. Conditioned Diffusion Model

As illustrated in Figure 3, the conditioned diffusion model uses a DDPM [37] to generate the future action sequence X 0 , conditioned on the discrete context index c obtained via vectorized scene context learning.

2.3.1. Denoising Diffusion Process and Network Architecture

DDPMs form the generative core of our framework, enabling the model to learn the complex conditional distribution of future actions given the context p ( X 0 | c ) . The training process is divided into a fixed forward diffusion phase and a learnable reverse denoising phase.
In the forward phase, the initial ground-truth action sequence X 0 is systematically corrupted with Gaussian noise. This is achieved using a Markov chain that gradually adds Gaussian noise ϵ over T steps, following a variance schedule { β t ( 0 , 1 ) } t = 1 T . The transition probability at each step is defined as q ( X t | X t 1 ) = N ( X t ; 1 β t X t 1 , β t I ) . A key property of this process is that the state X t at any arbitrary timestep t can be sampled directly from X 0 in closed form:
X t = α ¯ t X 0 + 1 α ¯ t ϵ , ϵ N ( 0 , I )
where α t = 1 β t and α ¯ t = s = 1 t α s . As T , α ¯ t 0 , ensuring that the distribution of X T converges to an isotropic Gaussian N ( 0 , I ) .
In the reverse phase, the goal is to invert this diffusion process to recover the original data structure from pure noise. This is modeled as a parameterized Markov chain p θ that learns to denoise the state X t in a step-by-step manner. Since our framework is condition-driven, the reverse transition is explicitly conditioned on the discrete context index c, derived from the vectorized scene-context learning. The transition probability is defined as a Gaussian distribution:
p θ ( X t 1 | X t , c ) = N ( X t 1 ; μ θ ( X t , t , c ) , Σ θ ( X t , t ) )
where μ θ and Σ θ are the predicted mean and covariance, respectively. Following Ho et al. [37], we set the variance Σ θ ( X t , t ) to fixed constants β t I , focusing the learning capacity solely on the mean μ θ .
However, instead of directly predicting the reverse-process mean μ θ , it has been shown that a more stable training objective is to predict the noise component ϵ added at step t. By reparameterizing the Gaussian term, the mean of the reverse process can be derived from the predicted noise ϵ θ ( X t , t , c ) as follows:
μ θ ( X t , t , c ) = 1 α t X t 1 α t 1 α ¯ t ϵ θ ( X t , t , c )
This formulation allows the model to generate new samples by sampling Gaussian noise X T and iteratively solving for X t 1 using the learned noise estimator ϵ θ , guided by the semantic condition c.
To implement this noise prediction function ϵ θ , we employ a 2D U-Net architecture for the target vehicle’s action sequence. Unlike traditional sequence models that process trajectories only as 1D time series, we organize the noisy target action sequence as a compact temporal feature map of shape ( B , C , 1 , T p r e d ) , where B is the batch size and C = 2 corresponds to the action channels (longitudinal acceleration and yaw rate). Interactions with surrounding vehicles are not generated by the U-Net; instead, they are encoded beforehand by the VectorNet–VQ-VAE scene context module and injected through the discrete context index c. The U-Net therefore denoises the target-vehicle future while receiving interaction information through the learned condition. The discrete context index c is integrated via learnable embedding layers, which are added to the timestep embeddings to guide the denoising trajectory. The entire network is optimized by minimizing the simplified Mean Squared Error (MSE) between the actual noise ϵ and the predicted noise ϵ θ :
L s i m p l e = E t , X 0 , ϵ ϵ ϵ θ ( X t , t , c ) 2 2

2.3.2. Inference with Classifier-Free Guidance

In conditioned diffusion models, guidance involves steering the generation process by incorporating additional conditioning. We utilize Classifier-Free Guidance (CFG) [38], which enables conditional generation without an explicit external classifier. In this approach, an unconditional noise estimator ϵ θ ( X t , t , ) and a conditional noise estimator ϵ θ ( X t , t , c ) are jointly trained within a single neural network. During training, the class identifier c is randomly replaced with the null token ∅ with probability p = 0.1 .
During the sampling process, the noise estimate ϵ ˜ θ of the guided DDPM is determined by a linear combination of the conditional and unconditional predictions:
ϵ ˜ θ ( X t , t , c ) = ω ϵ θ ( X t , t , c ) + ( 1 ω ) ϵ θ ( X t , t , )
where ω denotes the guidance scale. A higher ω forces the generated trajectory to strictly adhere to the identified semantic maneuver, while a lower scale preserves more diversity from the unconditional distribution. In our experiments, we set ω = 2.0 for all forecast-based LCRI evaluations, which keeps the sampling protocol fixed across the trajectory and risk analyses.

2.3.3. Kinematic Reconstruction

Instead of predicting positions directly, our model generates a sequence of denoised motion parameters X ^ 0 = { ( a ^ x , t , ψ ˙ ^ t ) } . The rationale behind this choice lies in the fundamental premise of diffusion models, which is to map a Gaussian noise distribution to the target data distribution. While the distribution of absolute trajectory positions is highly multi-modal and complex, the distributions of acceleration and yaw rate are naturally bounded and quasi-Gaussian. Therefore, transforming the target space into the action domain significantly simplifies both the forward noising process and the reverse learning task.
To recover the final trajectory, we employ a kinematic representation of motion subject to nonholonomic constraints. Given the predicted motion parameters, the vehicle state s t = [ x t , y t , v t , ψ t ] is recursively updated using Euler integration. The state update logic at step t + 1 is formulated as:
v t + 1 = v t + a ^ x , t Δ t
ψ t + 1 = ψ t + ψ ˙ ^ t Δ t
x t + 1 = x t + v t + 1 cos ( ψ t + 1 ) Δ t
y t + 1 = y t + v t + 1 sin ( ψ t + 1 ) Δ t
where Δ t is the time interval. This explicit integration ensures that the predicted paths satisfy vehicle kinematic constraints, preventing the unrealistic drift in position- based predictions.
The integration guarantees that position, speed, and heading evolve consistently under the nonholonomic vehicle model. Two mechanisms keep the generated motions within a realistic dynamic envelope. First, the action space is bounded by construction. The denoised actions are clipped to the normalized range before integration, which caps the longitudinal acceleration at | a ^ x | 1.5 m / s 2 and the yaw rate at | ψ ˙ ^ | 0.05 rad/s, both well inside the physical capability of passenger cars and consistent with the action ranges observed in the highD training data. Second, we verified the dynamic envelope empirically on trajectories generated under the evaluation protocol, 2000 samples over 200 test conditions, K = 10 , ω = 2.0 . The 99th percentiles of the generated absolute longitudinal acceleration, lateral acceleration v ψ ˙ ^ , and jerk are 1.41 m / s 2 , 0.44 m / s 2 , and 0.55 m / s 3 , respectively, all within commonly used comfort envelopes for highway driving and of the same order as the corresponding ground truth statistics. Road geometry is not imposed as a hard constraint at the integration stage. It enters through the discrete scene context code, which conditions the generator on the vectorized lane layout.

2.4. Predictive Lane-Change Risk Assessment

The central goal of this work is to translate the target agent’s multimodal forecasts into a proactive, interpretable measure of lane-change risk. To this end, we couple the generated trajectories with a rear-end collision risk model and aggregate the per-interaction risk into a single Lane-Change Risk Index (LCRI) [11] over the prediction horizon. A lane change is risky primarily because of its longitudinal interaction with the four key vehicles that bound the maneuver: the preceding and following vehicles in the current lane, and the preceding and following vehicles in the target lane. The future trajectory of the target agent is the multimodal forecast { Y ^ k } k = 1 K produced by the conditioned diffusion model. Each surrounding vehicle is propagated using a constant-velocity model from its last observed state, yielding a smooth, physically plausible future and keeping the entire pipeline dependent only on quantities available at prediction time. Although with this simplification, the reactive braking of a following vehicle, the reactive behavior most relevant to rear-end risk, is not ignored. We model it stochastically in the Monte Carlo risk computation described below, where each trial samples a reaction time and braking deceleration for the follower. Furthermore, we empirically bound the impact of this simplification in our evaluation. The realized-future reference LCRI in Section 4.5 is computed on the actual recorded trajectories of all vehicles, including whatever reactive behavior the surrounding drivers in fact performed, so the agreement reported there already includes the full effect of the constant-velocity assumption over the prediction horizon.
At each predicted timestep, the risk between the target agent and one key vehicle is quantified by a rear-end collision risk that jointly accounts for collision likelihood and collision severity, following the surrogate-safety formulation of Shangguan et al. [8,11]. For a leader–follower pair with relative gap, leader speed, and follower speed read off the forecast at that frame, a Monte Carlo simulation samples the lead disturbance deceleration, the follower reaction time, and the follower maximum braking deceleration from their empirical distributions, and resolves four rear-end scenarios in closed form to decide whether a collision occurs and, if so, its severity the square of the absolute speed difference (SASD) between the two vehicles at the moment of impact. The three stochastic factors follow the empirically calibrated distributions adopted in Shangguan et al. [8]. The disturbance deceleration imposed on the lead vehicle follows a shifted gamma distribution with shape 17.315 , scale 0.128 , and shift 0.657 (in m / s 2 ), originally calibrated on naturalistic rear-end conflict data by Kuang et al. [39]. The follower reaction time follows a lognormal distribution with parameters ( 0.17 , 0.44 ) plus a fixed braking coordination time of 0.175 s. The maximum available deceleration rate of the follower follows a truncated normal distribution with mean 8.45 m / s 2 and standard deviation 1.4 m / s 2 , truncated to [ 4.23 , 12.68 ] m / s 2 . The rear-end collision risk index for key vehicle i at the considered frame is:
RCRI i = 1 N m c j = 1 N m c crash i j · SASD ˜ i j ,
where N m c is the number of Monte Carlo trials, crash i j { 0 , 1 } indicates whether trial j results in a rear-end collision, and SASD ˜ i j is the normalized severity.
The severity is normalized by a fixed constant, SASD ˜ i j = SASD i j / SASD max with SASD max = 130 m 2 / s 2 , and the resulting risk index is clipped to [ 0 , 1 ] . The constant was calibrated so that our vectorized implementation reproduces the RCRI values reported for the reference car-following episode in Shangguan et al. [8] to within 0.01 , thereby keeping the index numerically comparable to the original formulation. The identical normalization is applied to the forecast-based and the realized-future evaluations, so it does not affect their comparison. Because the model evaluates the longitudinal closing process under stochastic but realistic braking behavior, it assigns a continuous, non-zero risk to close-but-not-colliding interactions that a binary distance threshold would miss. This is precisely the property required on naturalistic data, where almost no trajectory ends in an actual collision.
The four per-vehicle risks are fused over the maneuver into a single index through a fault-tree formulation, in which the lane change is treated as a system whose failure corresponds to an unsafe interaction with any of the four key vehicles:
LCRI = 1 i = 1 4 1 RCRI i ,
where each RCRI i is taken as the maximum over the prediction horizon for that vehicle. Surrounding positions that are absent from the scene contribute RCRI i = 0 , thereby leaving the product unchanged. RCRI models the longitudinal closing process between a leader–follower pair, so the LCRI quantifies the rear-end conflict potential of the lane change with respect to its four bounding vehicles. Lateral and sideswipe conflicts—for example, a collision with a vehicle alongside during the lateral movement itself—are not explicitly modeled, although they are partially reflected in the index because an alongside vehicle becomes a leader or follower in the target lane as the maneuver progresses. Accordingly, LCRI should be read throughout this paper as a rear-end-based lane-change risk index. Following the three-level operational grouping in [11], we stratify LCRI into low-risk, medium-risk, and high-risk levels. Because the target-agent term of every pair is drawn from the diffusion forecast, the K samples yield a distribution of LCRI values. We report the sample mean as the expected risk and retain the per-sample maximum as a worst-case diagnostic.
Crucially, every prediction is produced under a discrete intent code c (Section 2), and the LCRI is computed from the same forward pass. The risk index can therefore be grouped by code, allowing us to analyze the association between learned discrete prototypes and lane-change risk. We analyze this relationship quantitatively in Section 4.

3. Experiment Settings

3.1. Data Preparation

We evaluate our framework on the highD dataset [40], a large-scale naturalistic vehicle trajectory dataset recorded by drone-mounted cameras over German highways. Unlike traditional datasets collected via vehicle-mounted sensors, highD provides highly accurate positioning with an error of less than 10 cm from an aerial bird’s-eye view. The dataset aggregates data from roughly 110,500 vehicles and approximately 45,000 km of cumulative driving distance across six recording sites, covering a wide range of traffic densities and interaction patterns.
The raw trajectory data is sampled at 25 Hz. For each scenario, we extract a historical observation window of T o b s = 3 s (75 frames) and predict the future trajectory for T p r e d = 5 s (125 frames). To capture local interactions, we construct a heterogeneous interaction graph for each target agent. Specifically, we select up to N = 8 spatial neighbors based on their relative positions (i.e., preceding, following, and alongside vehicles on the current and adjacent lanes). The coordinates of all agents and vectorized lane boundaries are normalized to the target agent’s frame at the last observed timestep ( t = 0 ).
A significant challenge in naturalistic driving datasets is the extreme class imbalance, where KL maneuvers vastly outnumber LC maneuvers. To prevent the model from collapsing into a trivial solution that predicts only straight paths, we apply an undersampling strategy during training-time preprocessing: all LCL and LCR samples are retained, while KL samples are randomly downsampled. We use files 01–50 for training and files 51–60 for testing. The split is performed at the recording level. Every vehicle appears in exactly one highD recording, thus no trajectory windows extracted from the same vehicle can appear in both the training and the test subsets. Within each recording, samples are extracted from every eligible vehicle track with a sliding window at a stride of 10 frames (0.4 s). Consecutive windows from the same vehicle therefore overlap, but only within the same subset. This overlap enlarges the effective sample count without introducing any train–test contamination. The balanced training split contains 117,658 samples, including 42,015 KL, 40,308 LCR, and 35,335 LCL samples. For evaluation under the natural driving distribution, we use the unbalanced test split with 255,069 samples, including 238,687 KL, 8609 LCR, and 7773 LCL samples.

3.2. Implementation Details

The encoder backbone is implemented as a hierarchical VectorNet. Each subgraph branch uses a 3-layer MLP, while the global interaction graph adopts self-attention with 4 attention heads and a hidden size of 128. The codebook is configured with Q = 60 entries and an embedding dimension of D = 36 , and the commitment loss weight is fixed at β = 0.25 . Training is performed for 100 epochs with a batch size of 64 and the Adam optimizer at a learning rate of 4.5 × 10 6 . To let the model first focus on geometric reconstruction, a dynamic schedule is applied to the intent classification weight λ . A 10-epoch warm-up with λ = 0 is followed by a 20-epoch linear ramp-up that brings λ to 1.0.
The generative model is a 2D U-Net conditioned on discrete context indices extracted from vectorized scene-context learning. Since the diffusion model generates only the target vehicle’s future action sequence, the noisy action input is organized as a 4D tensor with shape ( B , C , H , W ) = ( B , C , 1 , T p r e d ) . Here, B = 64 is the batch size, C = 2 corresponds to the action channels, and the singleton height dimension allows the temporal action sequence to be processed by 2D convolutional blocks. Inter-agent information enters the diffusion model through the discrete scene context code rather than through generated multi-agent action channels. The network consists of residual blocks with channel multipliers of ( 1 , 2 , 4 ) , with attention blocks applied at selected downsampled temporal resolutions. We employ a cosine noise schedule with T = 1000 diffusion steps. The model is optimized to minimize the Mean Squared Error (MSE) of the noise prediction. During training, the condition c is dropped with probability p = 0.1 . During inference, we generate K = 10 samples per scenario with guidance scale ω = 2.0 . The predicted actions are integrated by the kinematic layer with Δ t = 0.04 s.
All models were implemented using the PyTorch 2.3.0 framework. The training and inference experiments were conducted on a single NVIDIA 2080 Ti GPU with 11 GB of RAM. The training-stage hyperparameters were selected as follows. The commitment weight β = 0.25 follows the standard VQ-VAE setting [41], and the training is not sensitive to it in our experiments. The codebook size Q = 60 was chosen to provide sufficient capacity for intra-maneuver variation while keeping each code supported by enough training samples. A larger codebook produces finer-grained prototypes but increases the number of rarely used codes and weakens per-code statistics, whereas a smaller codebook forces distinct interaction patterns to share a single code and reduces the semantic purity of the prototypes. The warm-up schedule of the intent classification weight λ allows the encoder to first learn geometric reconstruction before the semantic objective is introduced. Activating λ too early or with a larger final value causes the codebook to collapse onto the three maneuver labels, at the cost of geometric fidelity. On the other hand, a smaller final value weakens the association between codes and maneuvers. The number of Monte Carlo trials N m c = 2000 was chosen such that the standard error of the RCRI estimate is below the spacing of the three-level risk thresholds. The learning rate and the number of epochs were selected based on convergence of the validation loss. The inference-stage parameters ω and K are analyzed quantitatively in Section 4.4. For ease of reference, Table 1 summarizes the main symbols and tunable parameters of the proposed framework together with the values used in the experiments.

3.3. Baseline Models

To evaluate the effectiveness of the proposed framework, we compare it with several state-of-the-art trajectory prediction models reported in the literature. These baselines cover a range of methodologies, including recurrent neural networks, transformer-based architectures, and recent diffusion probabilistic models. The baseline results for model comparisons are taken from the original studies, which were evaluated on the highD dataset.
  • S-LSTM [42]: An early baseline that pairs LSTM cells for individual motion modeling with a social pooling layer for aggregating features from neighboring agents; it was first proposed for pedestrian trajectory forecasting.
  • CS-LSTM [20]: A vehicle-oriented extension of S-LSTM that replaces the social pooling layer with a convolutional one to better preserve the spatial grid surrounding the ego vehicle.
  • MHA-LSTM (+f) [21]: A multi-head attention model that scores the relative importance of surrounding vehicles. By combining interaction features with historical motion, it explicitly weights the influence of neighbors during forecasting.
  • iNATran (M) [24]: An intention-aware, non-autoregressive Transformer that combines social and temporal attention to model spatiotemporal interactions and uses an intent-driven query design to generate multimodal futures in parallel.
  • DACR-AMTP [16]: An adaptive multi-modal predictor that incorporates a collision-risk-driven drivable area into a graph-augmented multi-head attention pipeline, foregrounding safety and risk in interactive scenes.

3.4. Evaluation Metrics

We utilize three standard displacement metrics: Root Mean Square Error (RMSE), Average Displacement Error (ADE), and Final Displacement Error (FDE). Given the multimodal nature of our predictions, these metrics are computed using the best-matching sample among the K generated trajectories for each test case. RMSE assesses temporal accuracy at specific time horizons throughout the prediction window. ADE calculates the mean Euclidean distance over all predicted timesteps, whereas FDE isolates the endpoint error at the final prediction frame T p r e d . They are calculated as follows:
RMSE t = 1 M m = 1 M min k { 1 , , K } ( x ^ t ( m , k ) x t ( m ) ) 2 + ( y ^ t ( m , k ) y t ( m ) ) 2
ADE = 1 M m = 1 M min k { 1 , , K } 1 T pred t = 1 T pred ( x ^ t ( m , k ) x t ( m ) ) 2 + ( y ^ t ( m , k ) y t ( m ) ) 2
FDE = 1 M m = 1 M min k { 1 , , K } ( x ^ T pred ( m , k ) x T pred ( m ) ) 2 + ( y ^ T pred ( m , k ) y T pred ( m ) ) 2
where ( x ^ t ( m , k ) , y ^ t ( m , k ) ) represents the k-th predicted trajectory sample for the m-th test case, ( x t ( m ) , y t ( m ) ) represents the corresponding ground-truth coordinate at prediction timestamp t, and M is the total number of test samples. We report RMSE at specific horizons (i.e., 1 s, 2 s, 3 s, 4 s, 5 s) to analyze temporal accuracy. As a complement to the best-of-K protocol, single-sample results ( K = 1 ) are reported in the sensitivity analysis of Section 4.4.
For the risk assessment, we evaluate both continuous and ordinal agreement. Continuous agreement is measured by Pearson correlation and Spearman rank correlation between the forecast-based LCRI and the LCRI computed from realized future trajectories. Ordinal agreement is evaluated using the three-level LCRI classes following [11]: low risk ( LCRI 0.03 ), medium risk ( 0.03 < LCRI 0.30 ), and high risk ( LCRI > 0.30 ). We report the three-class confusion matrix, overall accuracy, weighted-F1, and high-risk recall.

4. Experiment Results

4.1. Analysis of Discrete Context Latent Space

The effectiveness of vectorized scene context learning is first evaluated by analyzing how complex traffic scenarios are disentangled into semantically meaningful latent codes. The VQ-VAE module is designed to discretize the infinite continuous scenario space into a finite set of learnable codebook entries Z = { z 1 , , z Q } . Each discrete code z q represents a specific geometric configuration and corresponds to a distinct driving maneuver (i.e., LCL, KL, or LCR), thereby reducing ambiguity for the downstream diffusion generator.
Figure 4 presents the stacked histogram of the latent code usage. The horizontal axis represents the codebook indices q { 0 , , 59 } , and the vertical axis shows the frequency with which each code is selected by the encoder. The color of each bar segment corresponds to the ground-truth maneuver class of the target agent: blue for lane-keeping, orange for right lane-changing, and green for left lane-changing. As observed in Figure 4, most active codebook entries are dominated by a single color segment. For instance, specific indices are triggered almost exclusively by left lane-changing maneuvers (green bars), while others correspond to lane-keeping behaviors (blue bars). This strong correlation indicates that the auxiliary intent classification loss L c l effectively regularized the latent space, encouraging the model to disentangle different driving modes into separate clusters. Furthermore, the histogram also reveals the usage pattern of the codebook. While some codes are frequently used to capture common driving scenarios, others occur infrequently, suggesting that the model effectively compressed the scenario space into a subset of active prototypes.
Some codes exhibit mixed color segments—for example, bars containing both blue and orange portions. This indicates a degree of ambiguity, in which geometrically similar scenarios could yield different future outcomes. Nevertheless, the overall high purity of the bars suggests that the discrete context c provides a reliable, low-entropy condition for the subsequent diffusion generation stage, thereby reducing modality confusion.
To quantify these observations, we characterize the learned discrete latent space with information-theoretic measures, treating the codebook index C and the ground-truth maneuver class M as random variables. Table 2 summarizes the results. The marginal codebook entropy is H ( C ) = 3.74 , against the uniform upper bound of ln 60 = 4.09 , corresponding to a codebook perplexity of e H ( C ) 42.1 effective codes out of 60. The codebook therefore operates at roughly 91 % of its capacity: the encoder spreads probability mass over most of the codebook rather than collapsing onto a few entries, while reserving a subset of codes for rare interaction patterns. Cluster purity, defined per code as the fraction of its samples belonging to its majority maneuver class, averages 0.83 over the 59 codes with at least five test samples, and 27 of these codes reach a purity of at least 0.90. The impure codes correspond to the mixed bars in Figure 4. The mutual information between codes and maneuvers is I ( C ; M ) = 0.63 , which accounts for 58 % of the maneuver entropy H ( M ) = 1.09 ; the discrete code thus carries substantial maneuver-discriminative information, consistent with the visual purity of the histogram in Figure 4. At the same time, the conditional entropy H ( M C ) = 0.47 shows that the code does not fully determine the maneuver. This residual uncertainty is consistent with the design of the framework. The code summarizes the scene-level interaction context, while the diffusion stage accounts for the remaining within-code variability in future motion. From an information-theoretic perspective, the VQ-VAE acts as a lossy compressor of the traffic scene, preserving maneuver-relevant information in a discrete bottleneck.

4.2. Quantitative Results

Table 3 summarizes the quantitative performance of the proposed framework against the baseline models on the highD dataset. The evaluation metrics include RMSE over a 5-s prediction horizon, as well as ADE and FDE@5s. IntentDiff achieves competitive trajectory prediction accuracy, with the best ADE (0.42 m) and FDE (1.11 m) among models for which these metrics are available, and the best or tied-best average RMSE (0.39 m). Compared with traditional RNN-based methods, S-LSTM [42] and CS-LSTM [20], IntentDiff reduces the average RMSE by approximately 74 % , indicating the advantage of the proposed generative formulation in this benchmark.
Analyzing the RMSE variation over the prediction horizon reveals the temporal robustness of our model. While the Transformer-based iNATran(M) [24] exhibits a slight advantage in the short-term horizon (1 s and 2 s), the proposed framework surpasses it in the mid-term (3 s and 4 s), achieving the lowest errors of 0.18 m and 0.52 m, respectively. Although DACR-AMTP [16] reports the lowest RMSE at the 5-s mark (1.01 m), the proposed framework remains highly competitive (1.05 m) and obtains a lower reported FDE (1.11 m vs. 1.69 m). This suggests that the proposed framework can maintain globally consistent target-vehicle trajectories while preserving competitive pointwise accuracy.

4.3. Qualitative Results

To visually evaluate the proposed framework’s generation capabilities in different traffic scenarios, Figure 5 and Figure 6 show the prediction results for five representative test samples, grouped into explicit-intent scenarios and ambiguous scenarios. In the visualization, the black solid line represents the historical observation trajectory of the target vehicle over the past 3 s, the green solid line represents the ground truth trajectory for the next 5 s, and the pink cluster of lines shows the 10 predicted trajectories generated by the model under CFG ω = 2.0 . The yellow square marks the start time of the prediction.
Figure 5a, 5b and 5c illustrate typical lane-keeping, lane-changing right, and lane-changing left scenarios, respectively. In these cases, the proposed vectorized scene context learning module demonstrates high intent recognition accuracy. In Figure 5a, the model correctly identified the lane-keeping intention (Code 9) with a probability of 95.2%. The generated trajectory bundle converges tightly to the lane centerline and highly overlaps with the real trajectory, illustrating the model’s accuracy in steady-state driving scenarios. In Figure 5b and 5c, the model predicted lane-changing behavior with high confidence levels of 99.7% and 99.3%, respectively. The results show that the generated lane-changing trajectory not only matched the ground-truth value at the endpoint but also exhibited natural, kinematically consistent characteristics in movement timing and curvature. These examples suggest that the conditioned diffusion model can generate smooth and kinematically consistent lane-changing trajectories under the guidance of discrete intentions.
Figure 6a,b show two more complex interaction scenarios (Sample Index 808 and 1228). Unlike the high confidence levels in the previous cases, the model’s prediction probabilities for lane-keeping intent in these two scenarios are 58.7% and 89.3%. This lower confidence level typically reflects the ambiguity of the scenario itself, such as when the vehicle is at the edge of the lane or exhibits a potential tendency to change lanes. Visualization shows that the generated trajectory clusters exhibit greater lateral dispersion compared to Figure 5a. This diversity indicates the proposed framework’s ability to capture aleatoric uncertainty in the data, avoiding collapse into a single pattern when the scenario intent is unclear and instead generating a distribution that covers multiple possibilities, thereby supporting robust predictions.
In summary, the qualitative results indicate that the proposed framework can flexibly adjust its generation strategy based on the discrete context code extracted from the scenario. In explicit scenarios (e.g., Figure 5a–c), the model exhibits strong constraints and high accuracy; in ambiguous scenarios (e.g., Figure 6a,b), the model demonstrates reasonable diversity. Furthermore, the generated trajectories maintain good smoothness, consistent with the intended effect of introducing a kinematic integral layer during the diffusion process.

4.4. Ablation Study

The two inference-stage parameters, the guidance scale ω and the number of generated samples K, directly control the trade-off between intent adherence, diversity, and computational cost. This subsection analyzes their effects on prediction performance and explains the experimental settings.
The influence of the classifier-free guidance scale ω is investigated first. As summarized in Table 4, the prediction performance exhibits a distinct U-shaped trend with respect to ω . With ω = 0 , the guided noise estimate reduces to the unconditional branch learned through condition dropout during training, so the sampler draws from an unconditional diffusion model and the discrete intent code plays no role in generation. In the absence of guidance ( ω = 0 ), the model fails to strictly adhere to the target intent, resulting in a high displacement error (ADE 1.15 m). This gap isolates the contribution of intent conditioning as such, under otherwise identical model, training corpus, and sampling protocol conditions. Whether the condition must be discrete is a separate question, which is examined by the discrete–continuous conditioning ablation at the end of this subsection. Increasing ω to 2 improves accuracy by effectively directing the diffusion process toward the conditioned maneuver. However, overly strong guidance ( ω = 5 ) degrades performance (ADE increases to 0.75 m) by restricting the diversity of the generated distribution and may lead to unnatural, over-constrained trajectories. For risk assessment, this loss of diversity is particularly undesirable because an over-concentrated forecast distribution underestimates the uncertainty in future motion. Consequently, ω = 2 is chosen for all experiments.
Since the proposed framework is probabilistic, the number of sampled trajectories K during inference directly affects the coverage of potential futures. We investigate the performance trade-off by varying K { 1 , 5 , 10 , 15 , 20 } , as shown in Table 5. When K = 1 , the model performance is limited (ADE 0.98 m) due to the stochastic nature of sampling. As K increases to 10, both ADE and FDE improve significantly to 0.42 m and 1.11 m, respectively, indicating that the model effectively covers the ground-truth mode. Increasing K from 1 to 10 incurs only a marginal increase in latency (from 32 ms to 45 ms), whereas further increasing K to 20 yields diminishing returns in accuracy, as ADE decreases by only 0.02 m, while raising the inference time to 68 ms. We therefore adopt K = 10 , which balances mode coverage against computational cost.
The framework’s computational profile is as follows. The VectorNet–VQ-VAE scene encoder has 1.49 million parameters, and the diffusion U-Net has 15.13 million parameters, for a total of approximately 16.6 million parameters. The inference times reported in Table 5 are end-to-end per scenario. They cover scene encoding and quantization, conditional denoising with classifier-free guidance for all K samples, kinematic integration, and the Monte Carlo LCRI computation. The cost is dominated by the iterative denoising of the diffusion model; because the K samples are generated in a single batched pass, the latency grows sublinearly with K (from 32 ms at K = 1 to 68 ms at K = 20 ). The Monte Carlo risk stage is fully vectorized over the four key vehicles, the prediction horizon, and the N m c = 2000 trials, and evaluates the four rear-end scenarios in closed form without any per-trial simulation loop, so it contributes only a small fraction of the total latency. A distance prefilter further skips pairs whose gap never falls below 60 m. At the adopted setting ( K = 10 , ω = 2.0 ), the complete pipeline processes a scenario in 45 ms, corresponding to an update rate above 20 Hz, which matches the replanning frequencies typically used in proactive risk monitoring.
Furthermore, to isolate the contribution of the discrete bottleneck at the diffusion conditioning interface, we perform an ablation that replaces the integer intent code c { 0 , , 59 } with the pre-quantization continuous embedding z e R 36 produced by the Stage 1 encoder. The same Stage 1 weights are reused. Stage 2 is retrained with an identical training configuration (CFG condition-drop probability p = 0.1 ), and the inference protocol is unchanged (K = 10, ω = 2.0 ). In the continuous variant, the Embedding ( Q + 1 ) layer in the U-Net is replaced by a two-layer MLP that maps R 36 R time _ embed _ dim . Classifier-free guidance is implemented by zeroing z e with probability p = 0.1 during training, in place of the integer unconditional token used in the discrete variant. At inference, the same continuous z e is fed to the U-Net, and CFG uses the zero vector as the unconditioning signal.
Table 6 compares the two variants on the highD test set under the locked evaluation protocol. The two variants are nearly indistinguishable. The continuous variant is marginally better at the 2 s and 3 s horizons and in FDE, whereas the discrete variant is marginally better at the 4 s and 5 s horizons and in ADE, with an identical average RMSE of 0.39 m. The differences are small throughout, at most 0.02 m in RMSE and 0.06 m in FDE, so we consider Table 6 to be near-parity. The ablation therefore shows that quantizing the condition costs essentially no prediction accuracy, even though the 36-dimensional z e retains strictly more information than a single integer code. Moreover, because the continuous variant bypasses the quantizer and conditions the diffusion model directly on the unquantized encoder output, this comparison also captures the downstream effect of VQ quantization at the generation interface. The discrete bottleneck is therefore not an accuracy-motivated design choice. Its role in the framework is to provide interpretable intent prototypes, the code-by-code risk stratification, and the information-theoretic characterization of the learned representation.

4.5. Predictive Lane-Change Risk Assessment Results

We evaluate the proposed framework as a forecast-based estimator of proactive lane-change risk. The target-agent trajectory is generated by the intent-conditioned diffusion model under CFG ω = 2.0 with K = 10 samples. The four surrounding vehicles are modeled using a constant-velocity model, and the rear-end collision risk for each vehicle is estimated using N m c = 2000 Monte Carlo trials. Both the forecast-based LCRI and the reference LCRI are computed using the same surrogate-safety formulation as in [8,11]. They differ only in the trajectories on which the index is evaluated. This involves comparing predicted futures available at decision time versus the futures that are actually realized in the data. By holding the risk formula fixed, we isolate the quantity under test. The agreement between the two sides measures how well the predicted trajectories preserve the future conflict structure of the scene. This includes gaps, closing speeds, and their timing, which is the contribution of the forecasting framework. It serves as a consistency check against a retrospective surrogate index rather than a validation against actual collision outcomes. The connection between the LCRI formulation itself and real crash risk relies on the empirical grounding of the underlying surrogate measure and is not re-established here.
We first examine whether LCRI computed from predicted futures is consistent with LCRI computed from realized futures. A total of 1500 lane-change samples are drawn from the natural-distribution test set, including 750 LCR and 750 LCL maneuvers. For each sample, LCRI is computed once from the forecast available at decision time and once from the realized future trajectories of the target vehicle and its neighbors. Table 7 reports the agreement between the forecast-based and realized-future LCRI values.
The forecast-based LCRI shows strong consistency with the realized-future LCRI, as shown in Table 7. It obtains a Pearson correlation of 0.886 and a Spearman correlation of 0.875 , indicating that the predicted risk values preserve both linear agreement and rank order. Under the three-level risk thresholds following [11], the forecast-based assessment achieves an accuracy of 0.874 and a weighted F1 score of 0.878 . The high-risk recall is 0.863 , indicating that most high-risk lane changes, as identified by the realized-future surrogate index, are identified before the maneuver is completed. This agreement also quantifies the practical impact of the constant-velocity neighbor model discussed in Section 2.4. The reference index is computed on the actual recorded trajectories of all vehicles, including the reactive braking, yielding, or acceleration that surrounding drivers actually performed, whereas the forecast-based index propagates neighbors at constant velocity. The discrepancy introduced by ignoring this reactive feedback is therefore contained in the reported correlations and confusion matrix. On highD highway traffic, the constant-velocity simplification does not systematically distort the risk ranking over the 5-s horizon.
To quantify the dataset-level statistical reliability of the four aggregate agreement metrics in Table 7, we compute 95% normal-approximation bootstrap confidence intervals (point estimate ±   1.96 bootstrap standard errors) by resampling the 1500 evaluated scenarios 1000 times. As shown in Table 8, the narrow intervals confirm that the reported agreement is robust to scenario sampling. Even at the lower endpoints of these intervals, all four metrics remain above 0.85, so the qualitative conclusion that the forecast-based assessment reproduces the realized-future ordering is not sensitive to which scenarios are included.
To quantify inference-time stochasticity, we further evaluated the LCRI consistency metrics under N = 5 diffusion sampling seeds, with the scenario-subsampling seed held fixed to isolate inference randomness from scenario selection. The standard deviation across the five inference seeds was 0.003 for Pearson, 0.003 for Spearman, 0.005 for accuracy, 0.005 for weighted F1, and 0.006 for high-risk recall, as shown in Table 9. These seed-to-seed standard deviations are small relative to the bootstrap CI widths in Table 8 (0.031–0.064), indicating that the reported aggregate metrics are dominated by dataset-level variation rather than by sampling stochasticity at inference time. The point estimates in Table 7 correspond to a single sampling seed, and they deviate from the five-seed means by at most 0.007, i.e., within about twice the seed-level standard deviations.
With these thresholds, the realized futures contain 1020 low-risk, 246 medium-risk, and 234 high-risk maneuvers. The forecast-based assessment predicts 958, 301, and 241 samples in the three levels, respectively. The confusion matrix in Figure 7 shows that most disagreements occur between adjacent risk levels. Overall, 98.3 % of samples fall within one level of the realized-future classification. High-risk maneuvers obtain an F1 score of 0.851 , while the medium-risk class obtains an F1 score of 0.702 . The LCRI distribution in Figure 8 further shows a continuous and long-tailed risk profile, with high-risk cases reaching LCRI = 1 . These cases correspond mainly to close-following conflicts during lane changes toward a target lane when a fast-approaching follower is present.
We further analyze the relationship between discrete intent codes and lane-change risk. Because each forecast is generated under a learned intent code, LCRI values can be grouped by code to examine whether the codebook captures risk-relevant interaction patterns. Of the 60 learned codes, 54 are observed among the 1500 evaluated lane-change samples, with per-code sample counts ranging from 1 to 137 (median 12.5). A total of 18 codes have at least 30 samples and together cover about 80 % of the evaluation set. As shown in Figure 9, the per-code mean LCRI ranges from approximately 0.00 to 0.64 . The association between codes and risk is both large and statistically significant. The per-code mean LCRI spans a 13-fold range, from 0.022 (code 49, n = 45 ) to 0.285 (code 39, n = 85 , whose samples exceed the high-risk threshold in 33 % of cases), and a Kruskal–Wallis test rejects the hypothesis of a common LCRI distribution across these 18 codes ( H = 222.7 , p < 10 37 , N = 1195 ). This result indicates that the learned codebook captures not only maneuver-level differences but also risk variation within lane-change maneuvers.

5. Conclusions

In this paper, we propose IntentDiff, an intent-conditioned diffusion framework for proactive lane-change risk assessment. The framework estimates lane-change risk before the maneuver unfolds by computing LCRI on predicted future trajectories rather than on completed or observed trajectories alone. A vectorized scene context learning module combines a hierarchical VectorNet with a VQ-VAE to map agent–map interactions into discrete intent codes. These codes organize complex traffic situations into interpretable intent prototypes and provide semantic guidance for diffusion-based trajectory generation. Conditioned on the learned intent code, the diffusion model generates kinematically consistent multimodal trajectories that support proactive risk computation.
The experimental findings on the highD dataset can be summarized as follows. First, the framework attains competitive trajectory prediction accuracy, with an ADE of 0.42 m and an FDE of 1.11 m over a 5-s horizon. The sensitivity analysis shows that intent conditioning is responsible for a nearly threefold reduction in displacement error relative to unconditional sampling, while the discrete–continuous conditioning ablation shows that this benefit stems from conditioning itself, whose value lies in interpretability and code-level risk stratification. Second, the learned codebook operates as an effective discrete bottleneck. Sixty codes are active, the codebook perplexity corresponds to roughly 91% capacity utilization, and the codes retain 58% of the maneuver information ( I ( C ; M ) = 0.63 nats) with an average per-code purity of 0.83. Third, for 1500 naturalistic lane changes, the forecast-based LCRI agrees closely with the realized-future LCRI, indicating that most high-risk lane changes under the surrogate index can be identified before the maneuver is completed, with an end-to-end latency of 45 ms per scenario. These results suggest that the learned codebook captures not only maneuver semantics but also risk-relevant interaction patterns, allowing proactive risk estimates, in the sense of the adopted rear-end surrogate index, to be traced back to interpretable intent prototypes.
Several limitations of this study should be acknowledged. First, since the experiments are conducted on the highD dataset, recorded on structured German highways, the conclusions of this study are limited to structured highway scenarios. Second, the learned codebook characterizes the interaction patterns of highway traffic as represented in highD. Since driving behaviors such as following distance, gap acceptance, and lane-change timing vary across countries and driving cultures, transferring the framework to other regions or unstructured environments, such as urban roads and intersections, would require retraining the codebook on corresponding data. Third, the three-level LCRI thresholds may require recalibration in driving environments with different speed and density profiles. Fourth, the reliability analysis quantifies dataset-level variability through bootstrap resampling and inference-time variability through multiple sampling seeds, but the variability introduced by the training process, including network initialization, mini-batch ordering, codebook initialization, and the stochastic diffusion training, has not been quantified. Therefore, future work will proceed in four directions. First, we will validate the framework on naturalistic trajectory datasets from other countries and road environments. Second, we will extend the framework to more complex urban environments and incorporate joint multi-agent forecasting for surrounding vehicles. Third, we will evaluate the proposed risk index in closed-loop planning to assess its impact on autonomous decision-making. Fourth, the reliability analysis will be extended to the training process through multi-seed training of both stages, together with systematic sweeps of the intent-classification loss weight and the codebook size.

Author Contributions

Conceptualization: L.M. and W.Z.; Methodology: L.M., Y.W. and J.Y.; Investigation: Y.W.; Writing—original draft: L.M., Y.W. and S.Z.; Writing—review and editing: L.M., S.Z. and W.Z.; Funding acquisition: L.M. and W.Z. Supervision: L.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Vehicle Measurement, Control and Safety Key Laboratory of Sichuan Province, China (Grant No. QCCK2025-0017) and Xihua University, China (Grant No. Z242024).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADEAverage Displacement Error
CFGClassifier-Free Guidance
CNNConvolutional Neural Network
CVConstant Velocity
DDPMDenoising Diffusion Probabilistic Model
DRACDeceleration Rate to Avoid a Crash
FDEFinal Displacement Error
GNNGraph Neural Network
KLKeep Lane
LCLLane Change Left
LCRLane Change Right
LCRILane-Change Risk Index
LSTMLong Short-Term Memory
MCMonte Carlo
MLPMulti-Layer Perceptron
MSEMean Squared Error
RCRIRear-end Collision Risk Index
RMSERoot Mean Square Error
SASDSquare of the Absolute Speed Difference
SSMSurrogate Safety Measure
TTCTime to Collision
VQ-VAEVector Quantized Variational Autoencoder

References

  1. Lefkopoulos, V.; Menner, M.; Domahidi, A.; Zeilinger, M.N. Interaction-aware motion prediction for autonomous driving: A multiple model Kalman filtering scheme. IEEE Robot. Autom. Lett. 2020, 6, 80–87. [Google Scholar] [CrossRef] [Scilit]
  2. Xiong, X.; Zhang, S.; Chen, Y. Review of intelligent vehicle driving risk assessment in multi-vehicle interaction scenarios. World Electr. Veh. J. 2023, 14, 348. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, C.; Xie, Y.; Huang, H.; Liu, P. A review of surrogate safety measures and their applications in connected and automated vehicles safety modeling. Accid. Anal. Prev. 2021, 157, 106157. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Arun, A.; Haque, M.M.; Bhaskar, A.; Washington, S.; Sayed, T. A systematic mapping review of surrogate safety assessment using traffic conflict techniques. Accid. Anal. Prev. 2021, 153, 106016. [Google Scholar] [CrossRef] [Scilit]
  5. Lyu, N.; Wang, Y.; Zhou, Y.; Wu, C. Review of road traffic safety analysis and evaluation methods. China J. Highw. Transp. 2023, 36, 183–201. [Google Scholar]
  6. Laugier, C.; Paromtchik, I.E.; Perrollaz, M.; Yong, M.; Yoder, J.D.; Tay, C.; Mekhnacha, K.; Nègre, A. Probabilistic analysis of dynamic scenes and collision risks assessment to improve driving safety. IEEE Intell. Transp. Syst. Mag. 2011, 3, 4–19. [Google Scholar] [CrossRef] [Scilit]
  7. Gindele, T.; Brechtel, S.; Dillmann, R. Learning driver behavior models from traffic observations for decision making and planning. IEEE Intell. Transp. Syst. Mag. 2015, 7, 69–79. [Google Scholar] [CrossRef] [Scilit]
  8. Shangguan, Q.; Fu, T.; Wang, J.; Jiang, R.; Fang, S. Quantification of rear-end crash risk and analysis of its influencing factors based on a new surrogate safety measure. J. Adv. Transp. 2021, 2021, 5551273. [Google Scholar] [CrossRef] [Scilit]
  9. Shangguan, Q.; Fu, T.; Wang, J.; Luo, T.; Fang, S. An integrated methodology for real-time driving risk status prediction using naturalistic driving data. Accid. Anal. Prev. 2021, 156, 106122. [Google Scholar] [CrossRef] [Scilit]
  10. Zhu, J.; Ma, Y.; Lou, Y. Multi-vehicle interaction safety of connected automated vehicles in merging area: A real-time risk assessment approach. Accid. Anal. Prev. 2022, 166, 106546. [Google Scholar] [CrossRef] [Scilit]
  11. Shangguan, Q.; Fu, T.; Wang, J.; Fang, S.; Fu, L. A proactive lane-changing risk prediction framework considering driving intention recognition and different lane-changing patterns. Accid. Anal. Prev. 2022, 164, 106500. [Google Scholar] [CrossRef] [Scilit]
  12. Jiao, Y.; Calvert, S.C.; van Cranenburgh, S.; van Lint, H. Learning collision risk proactively from naturalistic driving data at scale. Nat. Mach. Intell. 2026, 8, 337–350. [Google Scholar] [CrossRef] [Scilit]
  13. Wang, X.; Alonso-Mora, J.; Wang, M. Probabilistic risk metric for highway driving leveraging multi-modal trajectory predictions. IEEE Trans. Intell. Transp. Syst. 2022, 23, 19399–19412. [Google Scholar] [CrossRef] [Scilit]
  14. Li, P.; Pei, X.; Chen, Z.; Zhou, X.; Xu, J. Human-like motion planning of autonomous vehicle based on probabilistic trajectory prediction. Appl. Soft Comput. 2022, 118, 108499. [Google Scholar] [CrossRef] [Scilit]
  15. Su, H.; Wang, N.; Wang, X. Collision Risk Assessment of Lane-Changing Vehicles Based on Spatio-Temporal Feature Fusion Trajectory Prediction. Electronics 2025, 14, 3388. [Google Scholar] [CrossRef] [Scilit]
  16. Cong, P.; Xiao, Y.; Wan, X.; Deng, M.; Li, J.; Zhang, X. DACR-AMTP: Adaptive Multi-Modal Vehicle Trajectory Prediction for Dynamic Drivable Areas Based on Collision Risk. IEEE Trans. Intell. Veh. 2024, 9, 5339–5360. [Google Scholar] [CrossRef] [Scilit]
  17. Fang, J.; Wang, F.; Xue, J.; Chua, T.S. Behavioral intention prediction in driving scenes: A survey. IEEE Trans. Intell. Transp. Syst. 2024, 25, 8334–8355. [Google Scholar] [CrossRef] [Scilit]
  18. Gomes, I.; Wolf, D. A review on intention-aware and interaction-aware trajectory prediction for autonomous vehicles. Authorea Prepr. 2022. [Google Scholar] [CrossRef]
  19. Izquierdo, R.; Quintanar, A.; Parra, I.; Fernández-Llorca, D.; Sotelo, M. Experimental validation of lane-change intention prediction methodologies based on CNN and LSTM. In Proceedings of the 2019 IEEE Intelligent Transportation Systems Conference (ITSC); IEEE: New York, NY, USA, 2019; pp. 3657–3662. [Google Scholar]
  20. Deo, N.; Trivedi, M.M. Convolutional social pooling for vehicle trajectory prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops; IEEE: New York, NY, USA, 2018; pp. 1468–1476. [Google Scholar]
  21. Messaoud, K.; Yahiaoui, I.; Verroust-Blondet, A.; Nashashibi, F. Attention based vehicle trajectory prediction. IEEE Trans. Intell. Veh. 2020, 6, 175–185. [Google Scholar] [CrossRef] [Scilit]
  22. Li, J.; Yang, F.; Tomizuka, M.; Choi, C. Evolvegraph: Multi-agent trajectory prediction with dynamic relational reasoning. Adv. Neural Inf. Process. Syst. 2020, 33, 19783–19794. [Google Scholar]
  23. Mozaffari, S.; Sormoli, M.A.; Koufos, K.; Dianati, M. Multimodal manoeuvre and trajectory prediction for automated driving on highways using transformer networks. IEEE Robot. Autom. Lett. 2023, 8, 6123–6130. [Google Scholar] [CrossRef] [Scilit]
  24. Chen, X.; Zhang, H.; Zhao, F.; Cai, Y.; Wang, H.; Ye, Q. Vehicle trajectory prediction based on intention-aware non-autoregressive transformer with multi-attention learning for Internet of Vehicles. IEEE Trans. Instrum. Meas. 2022, 71, 2513912. [Google Scholar] [CrossRef] [Scilit]
  25. Liu, C.; He, S.; Liu, H.; Chen, J. Intention-aware denoising diffusion model for trajectory prediction. In Proceedings of the IEEE Transactions on Intelligent Transportation Systems; IEEE: New York, NY, USA, 2025. [Google Scholar]
  26. Tang, Y.; Ma, W. INTENT: Trajectory prediction framework with intention-guided contrastive clustering. IEEE Open J. Intell. Transp. Syst. 2026, 7, 337–352. [Google Scholar] [CrossRef] [Scilit]
  27. Huang, Y.; Du, J.; Yang, Z.; Zhou, Z.; Zhang, L.; Chen, H. A survey on trajectory-prediction methods for autonomous driving. IEEE Trans. Intell. Veh. 2022, 7, 652–674. [Google Scholar] [CrossRef] [Scilit]
  28. Madjid, N.A.; Ahmad, A.; Mebrahtu, M.; Babaa, Y.; Nasser, A.; Malik, S.; Hassan, B.; Werghi, N.; Dias, J.; Khonji, M. Trajectory prediction for autonomous driving: Progress, limitations, and future directions. Inf. Fusion 2025, 126, 103588. [Google Scholar] [CrossRef] [Scilit]
  29. Yan, Y.; Zhang, P.; Du, C.; Wang, H.; Wang, H.; Pi, D.; Chen, Y.H. Vehicle Trajectory Prediction for Autonomous Driving Applications: State-of-the-Art Review, Research Challenges, and Future Directions. Automot. Innov. 2026, 9, 263–295. [Google Scholar] [CrossRef] [Scilit]
  30. Xu, M.; Liu, Z.; Wang, B.; Li, S. A Survey of Autonomous Driving Trajectory Prediction: Methodologies, Challenges, and Future Prospects. Machines 2025, 13, 818. [Google Scholar] [CrossRef] [Scilit]
  31. Lee, N.; Choi, W.; Vernaza, P.; Choy, C.B.; Torr, P.H.; Chandraker, M. Desire: Distant future prediction in dynamic scenes with interacting agents. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2017; pp. 336–345. [Google Scholar]
  32. Gupta, A.; Johnson, J.; Li, F.-F.; Savarese, S.; Alahi, A. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2018; pp. 2255–2264. [Google Scholar]
  33. Gu, T.; Chen, G.; Li, J.; Lin, C.; Rao, Y.; Zhou, J.; Lu, J. Stochastic trajectory prediction via motion indeterminacy diffusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 17113–17122. [Google Scholar]
  34. Mao, W.; Xu, C.; Zhu, Q.; Chen, S.; Wang, Y. Leapfrog diffusion model for stochastic trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 5517–5526. [Google Scholar]
  35. Neumeier, M.; Dorn, S.; Botsch, M.; Utschick, W. Reliable trajectory prediction and uncertainty quantification with conditioned diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2024; pp. 3461–3470. [Google Scholar]
  36. Gao, J.; Sun, C.; Zhao, H.; Shen, Y.; Anguelov, D.; Li, C.; Schmid, C. Vectornet: Encoding hd maps and agent dynamics from vectorized representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2020; pp. 11525–11533. [Google Scholar]
  37. Ho, J.; Jain, A.; Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
  38. Ho, J.; Salimans, T. Classifier-free diffusion guidance. arXiv 2022, arXiv:2207.12598. [Google Scholar]
  39. Kuang, Y.; Qu, X.; Wang, S. A tree-structured crash surrogate measure for freeways. Accid. Anal. Prev. 2015, 77, 137–148. [Google Scholar] [CrossRef] [Scilit]
  40. Krajewski, R.; Bock, J.; Kloeker, L.; Eckstein, L. The highd dataset: A drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems. In Proceedings of the 2018 21st International Conference on Intelligent Transportation Systems (ITSC); IEEE: New York, NY, USA, 2018; pp. 2118–2125. [Google Scholar]
  41. Van Den Oord, A.; Vinyals, O. Neural discrete representation learning. Adv. Neural Inf. Process. Syst. 2017, 30, 6306–6315. [Google Scholar]
  42. Alahi, A.; Goel, K.; Ramanathan, V.; Robicquet, A.; Li, F.-F.; Savarese, S. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2016; pp. 961–971. [Google Scholar]
Figure 1. IntentDiff architecture.
Figure 1. IntentDiff architecture.
Entropy 28 00957 g001
Figure 2. Vectorized scene context learning with VectorNet-VQ-VAE.
Figure 2. Vectorized scene context learning with VectorNet-VQ-VAE.
Entropy 28 00957 g002
Figure 3. Conditional generative trajectory prediction with 2D U-Net DDPM.
Figure 3. Conditional generative trajectory prediction with 2D U-Net DDPM.
Entropy 28 00957 g003
Figure 4. Distribution of latent codes by driving intent.
Figure 4. Distribution of latent codes by driving intent.
Entropy 28 00957 g004
Figure 5. Trajectory prediction results in explicit-intent scenarios.
Figure 5. Trajectory prediction results in explicit-intent scenarios.
Entropy 28 00957 g005
Figure 6. Trajectory prediction results in ambiguous scenarios.
Figure 6. Trajectory prediction results in ambiguous scenarios.
Entropy 28 00957 g006
Figure 7. Confusion matrix for three-level forecast-based LCRI risk classification.
Figure 7. Confusion matrix for three-level forecast-based LCRI risk classification.
Entropy 28 00957 g007
Figure 8. Distribution of ground-truth and forecast-based LCRI values.
Figure 8. Distribution of ground-truth and forecast-based LCRI values.
Entropy 28 00957 g008
Figure 9. Distribution of the LCRI per intent code.
Figure 9. Distribution of the LCRI per intent code.
Entropy 28 00957 g009
Table 1. Main symbols and tunable parameters of the proposed framework.
Table 1. Main symbols and tunable parameters of the proposed framework.
SymbolDescriptionValue
T o b s / T p r e d Observation/prediction horizon3 s/5 s
NMaximum number of spatial neighbors per scene8
Q/DCodebook size/embedding dimension60/36
β Commitment loss weight in L v q 0.25
λ Intent classification loss weight 0 1.0 (warm-up)
TNumber of diffusion steps (cosine schedule)1000
ω Classifier-free guidance scale2.0
pCondition drop probability during CFG training0.1
KNumber of generated trajectories per scene10
Δ t Kinematic integration time step0.04 s
N m c Number of Monte Carlo trials per interaction2000
Table 2. Information-theoretic characterization of the learned codebook.
Table 2. Information-theoretic characterization of the learned codebook.
QuantityValueReference Bound
Codebook entropy H ( C ) 3.74 ln 60 = 4.09
Codebook perplexity e H ( C ) 42.160
Maneuver entropy H ( M ) 1.09 ln 3 = 1.10
Conditional entropy H ( M C ) 0.47
Mutual information I ( C ; M ) 0.63 H ( M ) = 1.09
Note: C: codebook index; M: ground-truth maneuver class (LCL, LCR, KL). All entropies in nats.
Table 3. Five-second prediction performance of different models.
Table 3. Five-second prediction performance of different models.
ModelRMSE (m) over 5 s Prediction HorizonADE (m)FDE@5s (m)
1 s 2 s 3 s 4 s 5 s AVG
S-LSTM0.220.621.272.153.411.530.621.25
CS-LSTM0.230.611.242.103.271.490.591.19
MHA-LSTM (+f)0.080.140.310.671.240.49--
iNATran (M)0.040.050.210.541.110.39--
DACR-AMTP0.100.170.310.541.010.420.761.69
IntentDiff (Ours)0.090.120.180.521.050.390.421.11
Note: Cells marked with “-” indicate unavailable data. Values shown in bold and underlined highlight the top and second-best performances in each category, respectively.
Table 4. Impact of the guidance scale on trajectory prediction performance.
Table 4. Impact of the guidance scale on trajectory prediction performance.
Guidance Scale ω ADE (m)FDE@5s (m)
01.152.85
10.681.72
20.421.11
30.491.28
50.751.84
Table 5. Impact of the number of sampled trajectories on prediction performance.
Table 5. Impact of the number of sampled trajectories on prediction performance.
Samples KADE (m)FDE@5s (m)Inference Time (ms)
10.982.5532
50.521.3538
100.421.1145
150.411.0856
200.401.0168
Table 6. Discrete and continuous conditioning ablation on the test set.
Table 6. Discrete and continuous conditioning ablation on the test set.
ConditioningRMSE (m) over 5 s Prediction HorizonADE (m)FDE@5s (m)
1 s2 s3 s4 s5 sAVG
Ours0.090.120.180.521.050.390.421.11
Continuous variant0.090.110.170.531.070.390.441.05
Table 7. Consistency between forecast-based LCRI and realized-future LCRI on 1500 lane-change samples.
Table 7. Consistency between forecast-based LCRI and realized-future LCRI on 1500 lane-change samples.
PearsonSpearmanAcc.W-F1High Recall
0.8860.8750.8740.8780.863
Table 8. Normal-approximation bootstrap 95% confidence intervals for the LCRI agreement metrics.
Table 8. Normal-approximation bootstrap 95% confidence intervals for the LCRI agreement metrics.
MetricPoint Estimate95% CI
Pearson0.886[0.854, 0.918]
Spearman0.875[0.853, 0.897]
Accuracy0.874[0.858, 0.890]
Weighted F10.878[0.863, 0.894]
Table 9. LCRI consistency metrics under N = 5 diffusion sampling seeds.
Table 9. LCRI consistency metrics under N = 5 diffusion sampling seeds.
MetricMean Across 5 SeedsStd (Across Seeds)
Pearson0.8860.003
Spearman0.8700.003
Accuracy0.8700.005
Weighted F10.8740.005
High recall0.8560.006
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ma, L.; Zhang, S.; Zhang, W.; Yin, J.; Wu, Y. Intent-Conditioned Diffusion Trajectory Prediction for Proactive Lane-Change Risk Assessment. Entropy 2026, 28, 957. https://doi.org/10.3390/e28090957

AMA Style

Ma L, Zhang S, Zhang W, Yin J, Wu Y. Intent-Conditioned Diffusion Trajectory Prediction for Proactive Lane-Change Risk Assessment. Entropy. 2026; 28(9):957. https://doi.org/10.3390/e28090957

Chicago/Turabian Style

Ma, Lijing, Shaofei Zhang, Wei Zhang, Jiacheng Yin, and Yilong Wu. 2026. "Intent-Conditioned Diffusion Trajectory Prediction for Proactive Lane-Change Risk Assessment" Entropy 28, no. 9: 957. https://doi.org/10.3390/e28090957

APA Style

Ma, L., Zhang, S., Zhang, W., Yin, J., & Wu, Y. (2026). Intent-Conditioned Diffusion Trajectory Prediction for Proactive Lane-Change Risk Assessment. Entropy, 28(9), 957. https://doi.org/10.3390/e28090957

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop