A Transformer–VAE Approach for Detecting Ship Trajectory Anomalies in Cross-Sea Bridge Areas
Open Access
- 25 April 2025
- journal article
- research article
- Published by MDPI AG in Journal of Marine Science and Engineering
- Vol. 13 (5) , 849
Abstract
Abnormal ship navigation behaviors in cross-sea bridge waters pose significant threats to maritime safety, creating a critical need for accurate anomaly detection methods. Ship AIS trajectory data contain complex temporal features but often lack explicit labels. Most existing anomaly detection methods heavily rely on labeled or semi-supervised data, thus limiting their applicability in scenarios involving completely unlabeled ship trajectory data. Furthermore, these methods struggle to capture long-term temporal dependencies inherent in trajectory data. To address these limitations, this study proposes an unsupervised trajectory anomaly detection model combining a transformer architecture with a variational autoencoder (transformer–VAE). By training on large volumes of unlabeled normal trajectory data, the transformer–VAE employs a multi-head self-attention mechanism to model both local and global temporal relationships within the latent feature space. This approach significantly enhances the model’s ability to learn and reconstruct normal trajectory patterns, with reconstruction errors serving as the criterion for anomaly detection. Experimental results show that the transformer–VAE outperforms conventional VAE and LSTM–VAE in reconstruction accuracy and achieves better detection balance and robustness compared to LSTM–-VAE and transformer–GAN in anomaly detection. The model effectively identifies abnormal behaviors such as sudden changes in speed, heading, and trajectory deviation under fully unsupervised conditions. Preliminary experiments using the POT method validate the feasibility of dynamic thresholding, enhancing the model’s adaptability in complex maritime environments. Overall, the proposed approach enables early identification and proactive warning of potential risks, contributing to improved maritime traffic safety.Keywords
Funding Information
- National Natural Science Foundation of China (52272334, 2023H020, 2024C01180, 690713, 2017YFE0194700)
- Ningbo International Science and Technology Cooperation Project (52272334, 2023H020, 2024C01180, 690713, 2017YFE0194700)
- Key R&D Program of Zhejiang Province (52272334, 2023H020, 2024C01180, 690713, 2017YFE0194700)
- EC H2020 Project (52272334, 2023H020, 2024C01180, 690713, 2017YFE0194700)
- National Key Research and Development Program of China (52272334, 2023H020, 2024C01180, 690713, 2017YFE0194700)
This publication has 34 references indexed in Scilit:
- Unsupervised maritime anomaly detection for intelligent situational awareness using AIS dataKnowledge-Based Systems, 2023
- Orientation-aware ship detection via a rotation feature decoupling supported deep learning approachEngineering Applications of Artificial Intelligence, 2023
- Maritime traffic flow clustering analysis by density based trajectory clustering with noiseOcean Engineering, 2022
- Trajectory pattern extraction and anomaly detection for maritime vesselsInternet of Things, 2021
- An enhanced CNN-enabled learning method for promoting ship detection in maritime surveillance systemOcean Engineering, 2021
- Graph neural network approach for anomaly detectionMeasurement, 2021
- Data mining approach to shipping route characterization and anomaly detection based on AIS dataOcean Engineering, 2020
- Ship trajectory uncertainty prediction based on a Gaussian Process modelOcean Engineering, 2019
- A framework for anomaly detection in maritime trajectory behaviorKnowledge and Information Systems, 2015
- Anomaly detection in vessel tracks using Bayesian networksInternational Journal of Approximate Reasoning, 2014