Research Article

Classifying Vehicle Activity to Improve Point of Interest Extraction

Algorithm 1

—preprocessing stage of AVPE.
inputs: , the set of trajectories,
, the merge threshold
, the chosen clustering algorithm, with pretrained parameters
output: , a set of preprocessed clusters
(1)
(2)if then
 //merge adjacent clusters up to seconds apart
(3)for do
(4)  for do
   //calculate time difference between current and previous cluster
(5)   
(6)   
(7)   if then
    //append all instances from start of previous cluster to end of current cluster
(8)    
(9)    
(10)   end
(11)  end
(12)end
(13)end
(14)return