Context-Aware Autoencoders for Anomaly Detection in Maritime Surveillance
Divya Acharya, Pierre Bernab'e, Antoine Chevrot, Helge Spieker, Arnaud Gotlieb, Bruno Legeard
TL;DR
This work tackles context-dependent anomalies in maritime AIS data and introduces a context-aware autoencoder framework to model context-specific normality. It analyzes four architectures—AE, MoE-AE, CAE, and GCAE—with context-specific thresholds, demonstrating that incorporating vessel type and navigational status substantially improves detection of collective and contextual anomalies. The results show that CAE and MoE-AE outperform a conventional AE in accuracy, while GCAE provides substantial model-size reductions with minimal loss of detection performance (e.g., ~20% fewer parameters with 86% overlap against CAE). The proposed approach offers a scalable, practical solution for real-world maritime surveillance, enabling more robust anomaly detection under variable sensor coverage and context shifts. The study also defines precise thresholding strategies, such as $\tau_c=\mu_c+\lambda\sigma_c$ with $\lambda=5$, and demonstrates the importance of context-aware modeling for reliable anomaly detection in AIS trajectories.
Abstract
The detection of anomalies is crucial to ensuring the safety and security of maritime vessel traffic surveillance. Although autoencoders are popular for anomaly detection, their effectiveness in identifying collective and contextual anomalies is limited, especially in the maritime domain, where anomalies depend on vessel-specific contexts derived from self-reported AIS messages. To address these limitations, we propose a novel solution: the context-aware autoencoder. By integrating context-specific thresholds, our method improves detection accuracy and reduces computational cost. We compare four context-aware autoencoder variants and a conventional autoencoder using a case study focused on fishing status anomalies in maritime surveillance. Results demonstrate the significant impact of context on reconstruction loss and anomaly detection. The context-aware autoencoder outperforms others in detecting anomalies in time series data. By incorporating context-specific thresholds and recognizing the importance of context in anomaly detection, our approach offers a promising solution to improve accuracy in maritime vessel traffic surveillance systems.
