MoCo-AIS: A Contrastive Learning Framework for Similarity Computation of Vessel Trajectories

Song, Ruixin, Alam, Md Mahbub, Sadeghi, Zahra, Soares, Amilcar, Rodrigues-Jr, José F., Spadon, Gabriel

–arXiv.org Artificial Intelligence 

Abstract--Trajectory similarity is a fundamental task in ana-The large scale of historical AIS data has enabled extenlyzing mobility patterns, essential for applications such as routesive research on vessel movement patterns, including route pattern extraction, mobility prediction, and anomaly detection. Supervised methods rely on ex-of these analyses is trajectory similarity, which quantifies how tensive labels derived from traditional distance measures andclosely two paths align across spatial, temporal, and semantic often reproduce these metrics, which limits generalization. This notion supports many downstream tasks: supervised contrastive learning addresses this issue but lacks aclustering trajectories [9], searching for similar paths [10], unified framework, making it difficult to compare deep learning trajectory classification [11], identifying co-movement pat-(DL) models for consistent trajectory representation. This paper terns [12-14], and extracting mobility networks [15, 16].pr trajectory esents MoCo-AIS, embeddings a based unified on the framew Momentum ork for Contrast learning (MoCo) vessel Measuring similarity for vessel trajectories is harder than paradigm, which formulates similarity learning through positive and negative trajectory pairs. Within it, we evaluate leading DL for land-based GPS data: vessels operate in loosely bounded models on large-scale, real-world vessel-tracking AIS datasets environments where weather (e.g., wind and currents) and covering diverse navigation behaviors and operating conditions. AIS achieves the best retrieval performance among the learned modelsmessages are also often irregular over long voyages [18] due under a fixed input representation, while reducing large-scaleto burst transmissions, dropouts, and uneven coverage [4]. Index Terms--AIS data, trajectory similarity, representation Time Warping (DTW) [20]) measure trajectory similarity by learning, contrastive learning, spatio-temporal systemsaligning raw coordinate sequences and computing point-wise distances, capturing mainly geometric similarity [21, 22]. They I. INTRODUCTIONare widely used in mobility studies for tasks such as clustering A trajectory represents the motion of an object in spacevessel routes [9] and predicting vessel movements [17, 23]. However, as trajectory datasets grow, distance-based methodsover time.