Research Article

A V2P Collision Risk Warning Method based on LSTM in IOV

Algorithm 1

Collision warning.
Input: Two sets of GPS data for pedestrian and vehicle
Output: A risk of collision occurs or not
(1) Acquire 2 sets of GPS data continuously (pedestrian and vehicle) ,
  if there is a collision point
   if and
  if the confidence probability corresponding to the collision area generated by the predicted future trajectory
   Output: A risk of collision will occur.
(2) Calculate the direction angle of pedestrian and vehicle
  if or
   , stop getting data
  else
   , stop getting data