
2.4 Implementation
The RSU saves the position and station id of the re-
ceived CAM in a comma-separated text file. These
log files are gathered periodically from the RSU.
Analysis is then performed with Python, mainly using
GeoPandas
1
and Shapely
2
. The orthographic projec-
tion is handled by PyProj
3
. Visualizations are gener-
ated using Folium
4
. Clustering the 1535 historical tra-
jectories takes about four seconds, predicting the 105
partial trajectories takes about ten seconds, or about
0.1s for each. Please note that the time for prediction
increases if the historical database increases, but this
growth is linear in trajectory size and can easily be
handled by optimizing the code and using paralleliza-
tion.
3 RESULTS AND DISCUSSION
For the evaluation of the proposed algorithm, 105 tra-
jectories collected in February 2024 were used. An
overview over these trajectories as well as over the
training data regarding the distribution of driving re-
lation is shown in Fig. 5. These 105 trajectories
were randomly shortened to arrive at partial trajecto-
ries (comp. Fig. 4). An overview over the length of
the partial trajectories with regard to driving relation
are shown in Fig. 6.
For all of the 105 partial trajectories a prediction
(one single trajectory) was computed. The Average
Displacement Error (ADE) and Final Displacement
Error (FDE) of these predictions against the actually
driven trajectories is shown in Fig. 7. ADE for the
straight movements (ew, ew, ns, sn) is usually smaller
than for the turning movements. This is rather intu-
itive, since first there are much more historical tra-
jectories for the straight movements (comp. Fig. 5)
and there is also much more variability in a turning
movement in comparison to a straight movement. On
the other hand, final displacement error shows a rather
uniform distribution. This is also clear, since the
movement ends at the egress lane and does not leave
much room for deviation. The values for ADE and
FDE reported here are in line with the values reported
in (Wu et al., 2021), maximum ADE is less than 0.8m
and maximum FDE is even less than 0.25m.
In a further analysis step, ADE vs. length of
the partial trajectory was examined. Intuitively, one
would expect ADE to decrease with increasing length
1
https://geopandas.org/en/stable/
2
https://pypi.org/project/shapely/
3
https://pypi.org/project/pyproj/
4
https://python-visualization.github.io/folium/latest/
of the partial trajectory. Looking at Fig. 8 certainly
shows a trend, but this is much less pronounced than
one might expect. For straight movements, Pearson’s
correlation coefficient is about −0.1, whereas it is
−0.02 for turning movements. The disparity in avail-
able historical data could be one explanation for this
effect.
In a last step, the numbers of candidates derived in
the first step of the prediction algorithm vs. the length
of the trajectory was analyzed. Again, one would sus-
pect fewer candidates the longer the trajectory. As
shown by Fig. 9, this is certainly true for movements
entering the intersection from east or west along the
two-lane streets. Still, two possible candidates are
calculated most of the time. This is attributed to the
inaccuracy in the initial data, which nearly equals the
width of a lane, making it difficult to determine the
lane the vehicle actually used in the past. On the other
hand, vehicles entering from the north always get two
candidates assigned (which is the maximum number
of possible driving directions, a left turn is disallowed
at this entrance to the intersection), whereas vehicles
entering from the south always get assigned three can-
didates (also the maximum). This is attributed to the
length of the partial trajectory, even at about 30m into
the intersection no driving relation can be ruled out.
4 CONCLUSIONS AND FUTURE
WORK
In this paper, a simple and fast method to predict ve-
hicle movement, based on historical V2X data, is pro-
posed. Although no modern neural networks, like
Long-Short-Term Memorys (LSTMs), are used, the
results are comparable, especially for driving rela-
tions with sufficient historical data. As mentioned be-
fore, this is just a first step in an ongoing research
effort and will act as a base line for further research.
In the current work, only the movement of vehi-
cles is predicted. Especially at urban intersections,
Vulnerable Road User (VRU) might have an influence
on the motion of automated/autonomous vehicles. At
the moment, there is no V2X message to track these
traffic participants directly, although ETSI recently
specified the VRU Awareness Message (VAM). There
is also the chance of indirect detection through the
use of Collective Perception Message (CPM), which
allows vehicles and infrastructure to publish their sen-
sor readings. Nonetheless, predicting VRUs also
needs new approaches, as their possibility of move-
ment is much more unconstrained than vehicular mo-
tion. Some possible methods for predicting pedes-
trian movement are already benchmarked in (Uhle-
VEHITS 2024 - 10th International Conference on Vehicle Technology and Intelligent Transport Systems
478