Research Article

Application of Artificial Intelligence in an Unsupervised Algorithm for Trajectory Segmentation Based on Multiple Motion Features

Algorithm 2

Trajectory merging method.
Input: The raw trajectory , Segment point sequence
Output: The set of sub-trajectories
1:  Segment the raw trajectory by
2:  The number of sub-trajectories
3: 
4:   The and its next sub-trajectory
4:   Mergers and into
5:   Calculate the value of the loss function of , and
6:  
7:   merges and from the local perspective
8:  end if
9: end for
10:  The set of sub-trajectories