ieee_best (1)
ieee_best (1)
8, AUGUST 2021 1
(NGSIM 101)
RANDOM IMPULSES
large-scale ITS that is more suitable for batch processing of data, RANDOM IMPULSES TRAJECTORY MODEL
T HE newest generation of vehicles and roadside units, tational resources. They are ideally suited for tasks such as
equipped with sensors and communication systems, gen- path optimization and collision avoidance, where performance
erate a substantial amount of data, which holds vast potential evaluation is primarily assessed from the standpoint of each
for improving vehicular safety and urban traffic infrastructure individual vehicle. Conversely, kinematic models, despite re-
Thinh Hoang Dinh is with Artificial and Natural Intelligence Toulouse
ceiving less attention, offer an alternative approach. While
Institute (ANITI), Université de Toulouse, Toulouse, France. these models are typically simpler due to their lack of explicit
Vincent Martinez is with NXP Semiconductors Toulouse, Toulouse, France. modeling of inter-vehicle interactions, their application to col-
Pierre Maréchal is with Toulouse Institute of Mathematics, Toulouse,
France.
lective tasks, such as optimizing data transmission in vehicular
Daniel Delahaye is with École Nationale de l’Aviation Civile, Toulouse, networks or batch trajectory smoothing at scale, often leads to
France. converging average performance with interaction-aware mod-
Manuscript received April 19, 2021; revised August 16, 2021. els. For instance, when designing a vehicular communication
modem,
0000–0000/00$00.00 predicting all surrounding vehicle trajectories using
© 2021 IEEE
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 2
an optimality solver that accounts for all relative distances implementation reference for these feature trackers by using
and velocities to optimize transmission parameters may not the GMKF for the lateral component. We go a step further
be necessary. In this particular scenario, a simpler model and propose a smoother for offline processing of video data,
performing well on average would be adequate, despite the leading to better estimates thanks to the assimilation of future
possibility of its performance being less optimal for certain measurements compared to filtering-based solutions alone.
vehicles compared to others. The paper unfolds as follows: Section II reviews various
The latter model category is valuable for its ability to trajectory models and relevant literature on trajectory estima-
handle large-scale trajectory information. Distinguished by its tion from aerial videos. Section III introduces the “Random
simplicity, ease of use, and minimal hardware requirements, Impulses” Model and Section IV justifies its validity through
it is optimally suited for edge computing applications, such the analytical derivation of the covariance kernel. Section V
as in smart traffic lights or vehicular communication modems. expounds on the model’s eigenfunctions for trajectory dimen-
In the emerging landscape of urban ITS, such as Vehicle-to- sionality reduction, a crucial component for anomaly detection
Everything (V2X) networks and smart road infrastructure, the in Advanced Driver Assistance Systems (ADAS). Section VI
accessibility of such a model becomes crucial. It can consid- showcases the model’s secondary application in filtering and
erably enhance the design of safe and efficient applications, smoothing trajectory data from aerial videos. The seventh
underlining its transformative potential in this rapidly evolving section that follows will provide various discussions around
field. the assumptions and the results, and the paper concludes with
This paper presents the “Random Impulses” trajectory Section VII.
model, tailored to meet the specific requirements of a kine-
matic statistical model in batch data processing contexts. At
II. R ELATED W ORK
its core, this model perceives individual vehicle trajectories
as variations of a “mean trajectory”. This mean trajectory Lefevre et al. [8] categorized trajectory models into three
represents the safety distance-keeping by drivers, coupled with types: physics-based, maneuver-based, and interaction-aware.
a slow-varying random component that captures the influence Interaction-aware models, including car-following and lane-
of various factors considered to be Markovian. This approach changing models, define motion as functions of surrounding
simplifies the interactive effects exerted by surrounding ve- vehicles’ movement [21]–[24]. Studies also considered ego-
hicles, while preserving the simplicity of the more basic motion due to multi-agent influences using Dynamic Bayesian
kinematic models that assume constant velocity or acceleration Networks [25]. Conversely, maneuver-based models presume
[9]–[11]. The model’s simplicity and computational efficiency a finite number of “maneuvers” that drivers can perform,
make it particularly attractive for deployment in large-scale typically learned from a clustering algorithm or modeled by a
ITS, especially those operating under hardware constraints. Gaussian Process [26], [27].
The considerable value of this model becomes more appar- Deep Generative models were extensively explored as well.
ent in the subsequent sections of this paper, where we demon- Chandra et al. [28] utilized a hybrid LSTM-CNN to model
strate its applications through various application frameworks road agents’ dynamics, shapes, and behaviors. Their model
related to the Karhunen-Loève Transform (KLT) - also known could predict multiple agent behaviors simultaneously. How-
as FPCA - and an approximated linear state-space model. The ever, the inherent fading gradient problem of RNNs led to the
KLT has strong ties to Principal Component Analysis (PCA), a introduction of the attention mechanism [29]. Messaoud et al.
technique that enjoys widespread use in the machine learning [30] incorporated global and partial attention to surrounding
community for data dimension reduction. The intricate nature vehicles into their model. Despite their success, these models
of the lateral impulses distribution necessitates the use of a were often considered too complex for trajectory data process-
Gaussian Mixture implementation for the filter and smoother. ing in systems with limited computational power.
Achieving these applications with car-following or constant Kinematic models, like those assuming constant velocity
velocity models would have posed substantial challenges, or acceleration [9]–[11], [31], align closest with the Random
which likely contributes to their limited implementation in Impulses model. These models are frequently chosen for appli-
edge processing facilities. This stark contrast underscores the cations involving Kalman filters but their utility for prediction
transformative contribution of the ”Random Impulses” model is limited due to disregarding road curvature and distance-
to the field. keeping tendencies.
Furthermore, the field of high-resolution trajectory extrac- While these models are useful for object tracking applica-
tion from aerial videos has also witnessed tremendous devel- tions, they provide deterministic trajectories without a confi-
opments, with a special mention of the NGSIM dataset [12]. dence interval. For instance, several trackers like SORT [17]–
This method has inspired other approaches, such as using [20] extensively used Kalman Filter and its variants. Yet, these
video streams from Unmanned Aerial Vehicles (UAVs) for models are suboptimal for batch offline applications. Chen
traffic monitoring [13]–[16]. Kalman and Particle Filters have et al. [15] attempted to smooth trajectories using wavelets
been widely used in vehicle tracking models such as SORT but without maintaining the same probabilistic framework for
[17] and its variants [18]–[20]. Nevertheless, the process tracking. Furthermore, like other methods, they didn’t provide
and measurement models employed in these trackers often confidence intervals.
employ random walk models without justification. This paper The Random Impulses model aims to enhance the kinematic
also provides the reasoning behind, and the corresponding models by integrating a component that mirrors self-regulatory
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 3
y
RAIM MODEL
P
∫∫
T3
T4 P2
y(t)
P1
MEAN TRAJECTORY RANDOM IMPULSES
RYIM MODEL T1
O
w(t) w
MEAN TRAJECTORY
∫ (a) (b)
Fig. 3: (a) Definition of the P -segment coordinate system.
Wt , Yt are relative coordinates, and absolute coordinates re-
RANDOM IMPULSES
quire road topology be taken into account. (b) An example
of two road segments P1 - a rectangle, and P2 - an L-shape
Fig. 2: An overview of the RAIM and RYIM Models for
road segments, which are shaded polygons at an intersection.
longitudinal and lateral components of the trajectory time
Here, both trajectories T1 and T2 are considered valid for the
series. The “mean” component represents the self-regulatory
road segment P1 , since vehicles enter and leave at the same
effect of distance-maintaining behavior for safety assurance.
places. However, for road segment P2 only the trajectory T3
The Random Impulses model the effects of various stochastic
is considered valid because T4 leaves P2 prematurely.
factors.
III. R ANDOM I MPULSES M ODEL Fig. 4: All vehicles in the segment (blue) are considered to be
In this section, we formulate the Random Impulses Models following a virtual vehicle (green). If the following is exact,
for both the longitudinal and lateral components of the vehicle the separation between each vehicle is maintained, which is
trajectory. The former represents the “fast-slow” characteris- the optimal scenario.
tics of speeding, while the latter characterizes lane-changing
behaviors. For reasons that will become apparent, we will refer
to these models as the Random Acceleration Impulses Model a “virtual vehicle” in a “leisurely” manner. By “leisurely,” we
(RAIM) and the Random Yawing Impulses Model (RYIM), mean that the process of following is not exact. Nevertheless,
respectively (Fig. 2). Consider the trajectory of vehicle i, any vehicle whose motion deviates substantially from the
(i) (i) (i) trajectory of the virtual vehicle runs an increased risk of
denoted as Wt , Yt . Here, Wt specifies the vehicle’s
relative position with respect to the left roadside, and Yt
(i) colliding with other cars, as illustrated in Fig. 4. Formally, let
(i)
indicates the longitudinal distance the vehicle has traveled {Yt }N i=1 be the set of Nv longitudinal trajectories of vehicles
v
(i)
into the segment (Fig. 3a). We conceptualize each vehicle’s traveling on the road segment P , Yt ∈ RR+ . Let Y¯t be
trajectory as an independent realization of two corresponding the trajectory of the virtual vehicle. Statistically, we consider
(i)
random processes, Zt and Xt . These processes will be defined {Yt }N v
i=1 to be independent sample paths of a stochastic
in Equations (1) and (5). process:
{Xt , X(t, ω)}, (1)
A. Random Acceleration Impulses Model (RAIM) where the sample function is defined as:
Consider a road segment with several lanes, all directing ve-
hicles in the same direction. While vehicles might temporarily X(·, ω) : R+ → R,
stop within the segment due to, for example, a traffic light, we over the probability space (Ω, A, P ) indexed by t ∈ R+ . The
simplify our model by assuming all vehicles enter and exit the RAIM model assumes:
segment at the same location (Figure 3b).
To avoid a collision, the motion of any vehicle entering E [Xt ] = Y¯t ,
a road segment is influenced by nearby cars. Similarly, the
movement of these proximate vehicles also impacts the motion and the “residual deviation” of the trajectory is generated
of other neighboring cars. This interaction results in a complex from doubly integrating path-wisely the random acceleration
set of interlocking equations describing vehicle relationships impulses model At :
that defy an easy solution. However, for simplicity, let’s Z t Z s
consider all vehicles in a given road segment as following Xt = E [Xt ] + Aτ dτ ds. (2)
s=0 τ =0
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 4
Acceleration
0.05
State
0.00
0.05
0
0 20 40 60 80 100 120 0 50 100 150 200
Timestep Timestep
Fig. 5: One sample path of Lt with renewal intervals I0,k Fig. 6: One sample path of At with renewal intervals I0,k given
given by Γ(α = 5, β = 0.5) and I1,k given by Γ(α = by Γ(α = 5, β = 0.5), I1,k given by Γ(α = 30, β = 0.5) and
30, β = 0.5). Lt = 1 marks the period where there is Xk ∼ N (0, 0.052 ).
acceleration activity, and Lt = 0 otherwise. There are 11
regeneration points in this exemplary sample path located at
t ∈ {3, 22, 24, 46, 48, 72, 75, 85, 88, 100, 105}. y
0.8
Probability density
v
We now describe the process At . For each k ∈ {0, 1}, let 0.6
{Ik,i }i , i ∈ N∗ be a sequence of independent random variables 0.4
vy Θ
(with respect to i), called renewal intervals associated with the
state k, given by distribution functions: 0.2
This allows us to formally define a Markov renewal process We now shift our focus onto the lateral component of
Lt , which is the acceleration activity process Lt as follows: the trajectory. As before, we assume that the set of lateral
(i)
+∞
trajectories {Wt }N v
i=1 are independent path samples of a
X stochastic process Zt . The RYIM model assumes:
Lt = 1 ωi ≤t≤ωi+1 × δ{i≡0[2]} . (3)
i=1 Z s=t
Informally, the acceleration activity process is composed of Zt = E [Zt ] + Bs ds. (5)
s=0
alternating periods of idleness and acceleration. The lengths
of these periods are determined by the renewal intervals of
Introduce the coordinate system as depicted in Fig. 7(a),
I0,· and I1,· respectively (Fig. 5). The RAIM represents this
where Oy is aligned with the centre marking. With a small
physical reality, suggesting that drivers following a virtual
yawing angle θ, it follows that vx ≈ vθ and vy ≈ v. The
vehicle but intermittently apply and release the gas or brake
dynamics of θ can be attributed to the driver’s steering wheel
pedals over random periods of time, at random times. This
input, and this gives a physical interpretation to the RYIM
process results in the vehicle’s motion deviating from that of
model. As a vehicle navigates a road, small adjustments to
the virtual vehicle.
the steering wheel by the driver keep the vehicle in its lane,
Building upon (3), the RAIM model further assumes that leading to θ oscillating around zero. Occasionally, a significant
acceleration impulses areidentically independent samples from shift in θ might be observed when the driver decides to change
a stationary distribution function Fa (u), resulting in the ac- lanes.
celeration impulses model At :
In comparison with the RAIM model, there are still 2 states
+∞
X {0, 1} which correspond to lane-keeping and lane-changing
At = Mi × 1 ωi ≤t≤ωi+1 × δ{i≡0[2] ), Mi ∼ Fa (u) respectively. The only difference is that Zt only has one
i=1 integration of the random impulses process rather than two,
(4)
as shown in (2).
A path sample is shown in Fig. 6. It is also worth mentioning
As above, the “slipping activity process” St is defined as:
that the RAIM model is a particular case of the more general
Piecewise Markov Process and the Markov Renewal Process. +∞
Other interesting properties, including expended and remain- X
St = 1 ωi ≤t≤ωi+1 × δ{i≡0[2]} . (6)
ing times in a segment, can be further found in [32]. i=1
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 5
where
Lat. velocity
0.5
0.0
0.5 X
0 100 200 300 400 500 Zt = E[Zt ] + Mk I1,k if ωi ≤ t ≤ ωi+1 ,
Timestep
1≤k≤b 2i c
Fig. 8: The slipping impulses generated by process Bt with
renewal intervals I0,k given by Γ(α = 30, β = 0.25), I1,k and
given by Γ(α = 150, β = 0.25) and Ri ∼ N (0, 0.52 ). X
Zt = E[Zt ] + Mk I1,k if ωi ≤ t ≤ ωi+1 .
1≤k≤b i+1
2 c
The slipping impulse model is then defined as
+∞
X We define Fπ (u) as the product distribution of Flc (u) and
Bt = Ri ×11ωi ≤t≤ωi+1 ×δ{i≡0[2]}
in which Ri ∼ Flc (u). Fk (u). Obviously Fπ (u) is stationary if the component distri-
i=1
(7) butions are stationary. Let Qk = Mk I1,k then Qk ∼ Fπ (u).
The distribution Flc dictates the behavior of drivers in terms The lower bound process could be rewritten into a more
of lane-keeping and lane-changing, while the distributions suggestive form:
I·,k manage the frequency and reaction rates of drivers. The X
sample paths of the slipping activity process, denoted as St , Zt = E[Zt ] + Qk , (9)
1≤k≤ζt
are shown in Fig. 5, and of Bt are presented in Fig. 8, with
its corresponding Flc showcased in Fig. 7(b).
where ζt is the the number of regenerations before t of the
process I0 + I1 , {I1,k + I0,k }k . In other words, the process
IV. VALIDATION OF THE M ODEL THROUGH C OMPUTATION
bounds are essentially renewal-reward processes, whose re-
OF THE C OVARIANCE K ERNEL AND ITS E IGENFUNCTIONS
ward function is Qk , and the holding times I1,k +I0,k indicate
The RAIM and RYIM models operate on the assumption the time between two consecutive renewals into state 1. Let
that the residual components of the trajectory time series, once ρ , ω
k 2k+1 , then {ρ1 , ρ2 , . . . } are the times when I0 + I1
the mean trajectories have been subtracted, originate from a regenerates. From the Key Renewal Theorem
Markov process. However, the validity of such assumptions
still needs verification. To address this, we analytically derive h
the covariance kernel of the processes Xt , Zt and the corre- E[ζτ +h ] − E[ζτ ] → as τ → +∞, (10)
µ
sponding eigenfunctions. The stationary process assumption
could be deemed valid if the convergence of the covariance where
function can be established via the law of large numbers.
µ = E[I0 ] + E[I1 ].
A. RYIM Model’s Covariance Kernel and Eigenfunctions Equation (10) implicitly assumes that the process has been
We study the time integration of Bt in Eq. (7). Analysis for running long enough. We also assume that the longer the run
the acceleration process (4) should be similar. time is, the more renewals into state 1 there will be, with
+∞
X probability one:
Bt = Ri × 1 ωi ≤t≤ωi+1 × δ{i≡0[2]} . (8)
i=1 ζt < ζs ⇒ t < s a.s. (11)
Proposition 1. The covariance kernel for the process Zt
defined in (5) converges to the covariance kernel for the Let t = τ + t0 , s = τ + s0 , we can calculate the covariance
Wiener process if the regeneration time I0 + I1 goes to zero. function of Zt :
Proof. The RYIM model assumes: Cov(t, s) = E[(Zt − E[Zt ])(Zs − E[Zs ])]
Z t
Zt= E[Zt ] + Bs ds = E[E[(Zt − E[Zt ])(Zs − E[Zs ])]|ζt , ζs ]
0
X X
E[(Qi − E[Qi ])(Qj − E[Qj ])]
X
E[Z t ] + Mk I1,k if ωi ≤ t ≤ ωi+1 and = E
i 1≤i≤ζt 1≤j≤ζs
1≤k≤ 2
i is even; = E [min(ζt , ζs ) Var[Qi ]]
= X = E [min(ζτ +t0 , ζτ +s0 ) Var[Qi ]]
E[Zt ] +
Mk I1,k + M i+1 (t − ωi ) if
2 1
1≤k≤ i−1
2
→ min(ρζt , ρζs ) Var[Qi ] (12)
µ
ω ≤ t ≤ ω
i i+1 and i is odd.
where we have used the law of total probability to go from the
We define Zt , Zt as the almost sure upper and lower bounds
second line to the third line, independence of Qi to go from
of Zt respectively:
the third line to the fourth, and (10) to go to the final line if
Zt ≤ Zt ≤ Zt a.s. t < s implies ζt < ζs (11).
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 6
0 = 0 / RSID
0
100 100
min(s+µ,t+µ) min(s+µ,t+µ)
200 200
t
300
t
300
min(s,t) min(s,t)
400 400
500 500
t t 100 0 100 200 300 400 500 600 100 0 100 200 300 400 500 600
ρ1 ρ2 ρ3 ρ4 ρ5 ρ6 ρ1 ρ2 ρ3 ρ4 ρ5 ρ6 s s
s s
(a) (b)
(a) (b) Fig. 10: (a) Computed covariance kernel from the NGSIM
Fig. 9: (a) depicts one instance of µ min(ζt , ζs ) Var[Qi ]|ζt , ζs , dataset (b) Predicted covariance kernel from the RYIM model.
with s fixed, as the blue graph. The black dots are regeneration
points. The expectation over all ζt , ζs , when τ → +∞ gives 0.08 1 1.00
2
0.06 3
the covariance function shown on (b). The lower bound of 4
0.75
(a) (b)
By definition, ρζt0 = t0 , Cov(t, s) =
(1/µ) min(t, s) Var[Qi ]. Similarly for Zt : Fig. 11: (a) KL basis obtained by numerically eigendecom-
posing the empirical covariance kernel (b) KL basis predicted
Cov (t, s) = E[(Zt − E[Zt ])(Zs − E[Zs ] by the RYIM model. Functions that are inverted vertically are
= E[E[(Zt − E[Zt ])(Zs − E[Zs ])]|ζt , ζs ] the same since the corresponding coefficients can be replaced
with an opposite sign.
X X
= E E[(Qi − E[Qi ])(Qj − E[Qj ])]
1≤i≤ζt +1 1≤j≤ζs +1 the regeneration period of the slipping activity process not
= E [min(ζt + 1, ζs + 1) Var[Qi ]] being sufficiently small, and from the fact that there is a finite
= E [min(ζτ +t + 1, ζτ +s + 1) Var[Qi ]]
0 0 number of lanes for vehicles to change into. Nevertheless,
1 the structural similarity provides justification for the model’s
→ min(ρζt +µ , ρζs +µ ) Var[Qi ] (13) validity, as made more apparent in the respective visualiza-
µ
tions of their eigenfunctions bearing the harmonic shape with
and we also have Cov (t, s) = (1/µ) min(t+µ, s+µ) Var[Qi ]. similar frequencies (Fig. 11).
Figure 9 shows the covariance functions’ upper and lower
bounds. Obviously, if I0 + I1 regenerates fast enough, µ → 0 B. RAIM Model’s Covariance Kernel and Eigenfunctions
and we can approximate: The derivation of the covariance kernel and eigenfunctions
1 of RAIM is more involved.
Cov[(t, s)] ≈ min(t, s) Var[Qi ]. (14)
µ Proposition 2. Under the assumptions made in Proposition
1, the covariance kernel eigenfunctions are given by (23) and
the covariance kernel can be computed from (19).
Because the covariance kernel’s eigenfunctions are also the
KL basis [33], we will use the terms interchangeably. Proof. Consider the RAIM given by Eq. (2):
Z t Z s
Corollary 1. The KL decomposition for Zt is also the same Xt = E [Xt ] + (Au du) ds. (16)
as the Wiener process is given by: s=0 u=0
0 0
While (18) is a series expansion of Xt , it is far from being
100
the eigenfunctions (or the KLT). This is evident from the fact 100
that {cos ((k − 1/2) πt)−1}k do not even form an orthogonal 200 200
t
basis. To avoid cluttering of notations, we denote: 300
300
400
√
1 400
ek (t) = 2 cos k− πt − 1 . 500
2 100 0 100 200 300 400 500 600 100 0 100 200 300 400 500 600
s s
+∞
X E[βk2 ] (a) (b)
R(s, t) = ek (t)ek (s).
(k − 1/2)2 π 2 Fig. 13: (a) KL basis obtained from RAIM (b) KL basis
k=1
Using (15), we can further simplify the equation to: obtained numerically from NGSIM dataset. Note that some
components in (a) and (b) were inverted, but they are the
+∞
X 1 same since we can invert the sign of the corresponding score
R(s, t) = ek (t)ek (s). (21) component.
(k − 1/2)4 π 4
k=1
Original 2
0.0 KLT
POSTERIOR
0.2 1 DISTRIBUTION
0.4 PRIOR
Position
Position
DISTRIBUTION
0.6 0
0.8
1
1.0
Original
1.2 2 KLT
0 50 100 150 200 0 50 100 150 200
Time Time
Fig. 18: Illustration of the estimation process: the observations
Fig. 17: Approximation with 9 components of the lateral
provide information to “narrow down” the distribution of the
component of two exemplary trajectories.
value of a in the FPCA domain, which explains the more
“pointy” look of the posterior distribution.
kernel. This phenomenon can be attributed to the inherent
numerical errors and variances resulting from working with
a sampled training set. However, it’s anticipated that this “fill in the blanks” of the unobserved part of the longitudinal
discrepancy will diminish as more data is incorporated into trajectory, using partial observations obtained up to a specific
the training set. timestep.
Figures 16 and 17 demonstrate the approximation of trajec- Formally, let y1:n be the set of n noisy observations iden-
tories using only nine FPCA scores. It is immediately obvious tically and independently obtained from a vehicle’s trajectory
that FPCA is comparable to the role of DFT and DCT in whose measurement model is y = ŷ+y where y ∼ N (0, σy2 )
image processing where the truncated basis similarly reveals i
and D = {y1:q ; 1 ≤ i ≤ m} be the training set of m
a denoising ability. There’s a direct relationship between the trajectories whose length is q > n. We would like to find
number of components used in the transformation and the the best estimate for yn+1:q . Furthermore, let a ∈ RN be
smoothness of the trajectory - fewer components result in the corresponding FPCA score vector of the trajectory y1:q
smoother trajectories. computed from (26).
The general idea is to fit a distribution (presumably Gaus-
B. Data Compression sian in this example) on the FPCA score vectors corresponding
Drawing parallels with renowned digital data formats such to the trajectories of D, giving us the prior distribution
as MP3 and JPEG, the KLT carries immense potential akin to p(a) = N (0, Σa ). Then, we compute the posterior:
the DCT for data compression. This potential is particularly
n
evident in the context of vehicular network. For instance, p(y1:n |a)p(a) Y
p(a|y1:n ) = ∝a p(yi |a)p(a) (30)
instead of transmitting vehicle coordinates for each of the 150 p(y1:n ) i=1
time steps, it becomes feasible to transmit only 2-3 FPCA
score coefficients, resulting in a far more efficient scheme.
In the context that all distributions are Gaussians, the
Details can further be found in our previous work [38],
maximum-a-posteriori coincides with the minimum mean
where we successfully demonstrated the implementation of
square (MMSE) estimate of a is obtained from Algorithm 1.
such transform in devising a data compression strategy for the
Figure 19 provides an example of our attempt to complete a
Cooperative Awareness Message (CAM) transmission within
the V2X network setting.
The earlier implementation, however, was marred by prac- Algorithm 1 Trajectory Representation Estimation
tical challenges. Specifically, it required continuous collection 1: φ ← [ek [0], 1 ≤ k ≤ q]
of trajectories in the learning set and recurrent computation 2: µ0 ← 0q , [0, 0, . . . , 0] (q zeroes)
of the basis functions. This paper addresses these challenges 3: Σ0 ← Σa
and offers a significant improvement: we demonstrate that a 4: for i = 1 to n do
single, unique basis set can be utilized, which simplifies the 5: Σ0 ← (Σ−1 2
a + 1/σy (φi ⊗ φi ))
−1
Coordinate (ft)
Ground truth scale, and u, v signify the horizontal and vertical coordinates
200 Observed
of the target center, respectively. However, the model makes
some questionable assumptions. For instance, the assumption
0
0 20 40 60 80 100 120 140 about the nature of the model being perturbed by random walk
Timestep (1/10s) noise is not adequately justified. Additionally, the characteri-
0 Prediction error zation of Q as a full-rank covariance matrix invites scrutiny
regarding its appropriateness.
Error (ft)
400
800
FPCA score 2
600
Filter MMSE
0
Filter MMSE
SMOOTHIE 10
15
0 10 20 30 40
Timestep
SMOOTHED TRAJECTORY
Fig. 22: Overview of the trajectory extraction framework. with approximately a twofold decrease in the confidence
interval of the velocity. The method’s uniqueness lies in
the provision of the smoothed MMSE, coupled with the
availability of the confidence interval, distinguishing it from
conventional denoising techniques where a confidence interval
is not usually obtainable. In scenarios where the vehicle’s
velocity does not factor into the application, employing the
filtered result could be sufficient for the sake of simplicity.
k=1
65 Raw
(i) (i)
60 Suppose the set of samples for xn − x1 is {xn − x1 }m
i=1 ,
using Central Limit Theorem (CLT):
0 10 20 30 40 50 Pm (i) (i)
Timestep i=1 (xn − x1 ) − m(µx,n − µx,1 )
√
m
Fig. 24: Estimation of lateral position x.
→D N (0, (n − 1)(V ar[ηx,k ] + V ar[ζx,k ]))
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 14
also paves the way for further exploration and application in [19] H. Fu, L. Wu, M. Jian, Y. Yang, and X. Wang, “Mf-sort: Simple online
this field. and realtime tracking with motion features,” in Image and Graphics:
10th International Conference, ICIG 2019, Beijing, China, August 23–
25, 2019, Proceedings, Part I 10. Springer, 2019, pp. 157–168.
[20] K.-C. Liu, Y.-T. Shen, and L.-G. Chen, “Simple online and realtime
ACKNOWLEDGMENTS tracking with spherical panoramic camera,” in 2018 IEEE International
Conference on Consumer Electronics (ICCE). IEEE, 2018, pp. 1–6.
This research was supported by the AI Interdisciplinary [21] P. G. Gipps, “A behavioural car-following model for computer simula-
Institute ANITI, funded by the French ”Investing for the tion,” Transportation Research Part B: Methodological, vol. 15, no. 2,
Future – PIA3” program (Grant n°ANR-19-PI3A-0004). We pp. 105–111, 1981.
[22] K. I. Ahmed, “Modeling drivers’ acceleration and lane changing behav-
also acknowledge Google Colab’s generosity in providing free ior,” Ph.D. dissertation, Massachusetts Institute of Technology, 1999.
GPU for YOLOv8 training. [23] K. Aghabayk, M. Sarvi, and W. Young, “A state-of-the-art review of
car-following models with particular considerations of heavy vehicles,”
Transport reviews, vol. 35, no. 1, pp. 82–105, 2015.
R EFERENCES [24] J. Han, H. Shi, L. Chen, H. Li, and X. Wang, “The car-following model
and its applications in the v2x environment: A historical review,” Future
[1] H. Yu and M. Krstic, “Traffic congestion control for aw–rascle–zhang Internet, vol. 14, no. 1, p. 14, 2021.
model,” Automatica, vol. 100, pp. 38–51, 2019. [25] G. Agamennoni, J. I. Nieto, and E. M. Nebot, “A bayesian approach
[2] E. Yurtsever, J. Lambert, A. Carballo, and K. Takeda, “A survey of for driving behavior inference,” in 2011 IEEE Intelligent Vehicles
autonomous driving: Common practices and emerging technologies,” Symposium (IV). IEEE, 2011, pp. 595–600.
IEEE access, vol. 8, pp. 58 443–58 469, 2020. [26] J. Joseph, F. Doshi-Velez, A. S. Huang, and N. Roy, “A bayesian
[3] Y. Li and D. Sun, “Microscopic car-following model for the traffic flow: nonparametric approach to modeling motion patterns,” Autonomous
the state of the art,” Journal of Control Theory and Applications, vol. 10, Robots, vol. 31, pp. 383–400, 2011.
no. 2, pp. 133–143, 2012. [27] G. Aoude, J. Joseph, N. Roy, and J. How, “Mobile agent trajectory pre-
[4] S. Moridpour, M. Sarvi, and G. Rose, “Lane changing models: a critical diction using bayesian nonparametric reachability trees,” in Infotech@
review,” Transportation letters, vol. 2, no. 3, pp. 157–173, 2010. Aerospace 2011, 2011, p. 1512.
[5] Y. Ji, L. Wang, W. Wu, H. Shao, and Y. Feng, “A method for lstm-based [28] R. Chandra, U. Bhattacharya, A. Bera, and D. Manocha, “Traphic:
trajectory modeling and abnormal trajectory detection,” IEEE Access, Trajectory prediction in dense and heterogeneous traffic using weighted
vol. 8, pp. 104 063–104 073, 2020. interactions,” in Proceedings of the IEEE/CVF Conference on Computer
[6] Y. Wang, G. Li, K. Li, and H. Yuan, “A deep generative model Vision and Pattern Recognition, 2019, pp. 8483–8492.
for trajectory modeling and utilization,” Proceedings of the VLDB [29] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez,
Endowment, vol. 16, no. 4, pp. 973–985, 2022. Ł. Kaiser, and I. Polosukhin, “Attention is all you need,” Advances in
[7] G. Zhu, Y. Sang, W. Chen, and L. Zhao, “When self-attention and neural information processing systems, vol. 30, 2017.
topological structure make a difference: Trajectory modeling in road [30] K. Messaoud, I. Yahiaoui, A. Verroust-Blondet, and F. Nashashibi,
networks,” in Web and Big Data: 6th International Joint Conference, “Attention based vehicle trajectory prediction,” IEEE Transactions on
APWeb-WAIM 2022, Nanjing, China, November 25–27, 2022, Proceed- Intelligent Vehicles, vol. 6, no. 1, pp. 175–185, 2020.
ings, Part III. Springer, 2023, pp. 381–396. [31] A. Barth and U. Franke, “Where will the oncoming vehicle be the next
[8] S. Lefèvre, D. Vasquez, and C. Laugier, “A survey on motion prediction second?” in 2008 IEEE Intelligent Vehicles Symposium. IEEE, 2008,
and risk assessment for intelligent vehicles,” ROBOMECH journal, pp. 1068–1073.
vol. 1, no. 1, pp. 1–14, 2014. [32] A. Kuczura, “Piecewise markov processes,” SIAM Journal on Applied
[9] S. Ammoun and F. Nashashibi, “Real time trajectory prediction for colli- Mathematics, vol. 24, no. 2, pp. 169–181, 1973.
sion risk estimation between vehicles,” in 2009 IEEE 5th International [33] P. Deheuvels and G. Martynov, “Karhunen-Loeve expansions for
Conference on Intelligent Computer Communication and Processing. weighted Wiener processes and Brownian bridges via Bessel functions,”
IEEE, 2009, pp. 417–422. in High Dimensional Probability III. Springer, 2003, pp. 57–93.
[10] N. Kaempchen, K. Weiss, M. Schaefer, and K. C. Dietmayer, “Imm [34] R. Durrett, Probability: theory and examples. Cambridge university
object tracking for high dynamic driving maneuvers,” in IEEE Intelligent press, 2019, vol. 49.
Vehicles Symposium, 2004. IEEE, 2004, pp. 825–830. [35] T. H. Dinh, V. Martinez, and D. Delahaye, “Recognition of outlying
[11] A. Polychronopoulos, M. Tsogas, A. J. Amditis, and L. Andreone, driving behaviors: A data-driven perspective with applications to v2x
“Sensor fusion for predicting vehicles’ path for collision avoidance collective perception,” in 2021 IEEE Vehicular Networking Conference
systems,” IEEE Transactions on Intelligent Transportation Systems, (VNC). IEEE, 2021, pp. 52–59.
vol. 8, no. 3, pp. 549–562, 2007. [36] H. L. Shang, “A survey of functional principal component analysis,”
[12] V. G. Kovvali, V. Alexiadis, and L. Zhang PE, “Video-based vehicle AStA Advances in Statistical Analysis, vol. 98, pp. 121–142, 2014.
trajectory data collection,” Tech. Rep., 2007. [37] J. Brown, Jr, “Mean square truncation error in series expansions of
[13] J. Apeltauer, A. Babinec, D. Herman, and T. Apeltauer, “Automatic random functions,” Journal of the Society for Industrial and Applied
vehicle trajectory extraction for traffic analysis from aerial video data,” Mathematics, vol. 8, no. 1, pp. 28–32, 1960.
The International Archives of Photogrammetry, Remote Sensing and [38] T. H. Dinh, V. Martinez, and D. Delahaye, “Spherical codec for v2x
Spatial Information Sciences, vol. 40, no. 3, p. 9, 2015. cooperative awareness trajectory compression: A preliminary study,” in
[14] N. Balamuralidhar, S. Tilon, and F. Nex, “Multeye: Monitoring system 2023 IEEE Vehicular Technology Conference (VTC). IEEE, 2023.
for real-time vehicle detection, tracking and speed estimation from uav [39] G. Jarry, D. Delahaye, F. Nicol, and E. Feron, “Aircraft atypical approach
imagery on edge-computing platforms,” Remote Sensing, vol. 13, no. 4, detection using functional principal component analysis,” Journal of Air
p. 573, 2021. Transport Management, vol. 84, p. 101787, 2020.
[15] X. Chen, Z. Li, Y. Yang, L. Qi, and R. Ke, “High-resolution vehicle tra- [40] G. Jarry, D. Delahaye, and E. Feron, “Trajectory approach analysis:
jectory extraction and denoising from aerial videos,” IEEE Transactions A post-operational aircraft approach analysis tool,” in SID 2019, 9th
on Intelligent Transportation Systems, vol. 22, no. 5, pp. 3190–3202, SESAR Innovation Days, 2019.
2020. [41] A. G. Wills, J. Hendriks, C. Renton, and B. Ninness, “A bayesian
[16] E. Barmpounakis and N. Geroliminis, “On the new era of urban traffic filtering algorithm for gaussian mixture models,” arXiv preprint
monitoring with massive drone data: The pneuma large-scale field arXiv:1705.05495, 2017.
experiment,” Transportation research part C: emerging technologies, [42] M. P. Balenzuela, J. Dahlin, N. Bartlett, A. G. Wills, C. Renton, and
vol. 111, pp. 50–71, 2020. B. Ninness, “Accurate gaussian mixture model smoothing using a two-
[17] A. Bewley, Z. Ge, L. Ott, F. Ramos, and B. Upcroft, “Simple online filter approach,” in 2018 IEEE Conference on Decision and Control
and realtime tracking,” in 2016 IEEE international conference on image (CDC). IEEE, 2018, pp. 694–699.
processing (ICIP). IEEE, 2016, pp. 3464–3468. [43] G. Kitagawa, “The two-filter formula for smoothing and an implementa-
[18] N. Wojke, A. Bewley, and D. Paulus, “Simple online and realtime tion of the gaussian-sum smoother,” Annals of the Institute of Statistical
tracking with a deep association metric,” in 2017 IEEE international Mathematics, vol. 46, pp. 605–623, 1994.
conference on image processing (ICIP). IEEE, 2017, pp. 3645–3649. [44] G. Welch, G. Bishop et al., “An introduction to the kalman filter,” 1995.
JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 16