Why a 99% maritime anomaly score may tell you very little
In brief
- Metrics from different AIS anomaly papers are often not comparable because label sources and study regions differ.
- Rule-derived, pseudo-labelled and synthetic anomalies can make classification easier than real operational detection.
- A useful benchmark must document label provenance, independent evidence, temporal/region splits and uncertainty.
A maritime anomaly detector can report high classification accuracy while remaining weakly validated for operational use.
The central issue is not the metric itself, but what is treated as ground truth.
Four distinct label regimes
These regimes answer different questions. They should not be placed in one ranking table as if the F1 values measure the same thing.
What the cited studies compare
The comparison reported by Wijaya and Nakamura (2024) uses a shared test set of 137 US West Coast vessels, with labels from one expert. On that set, geometrical trajectory features achieved 0.99 accuracy / 0.96 F1 score, while the earlier spatiotemporal score achieved 0.97 / 0.92 (Wijaya and Nakamura, 2023). Useful comparison but still one region, one period and one labeller.
Other papers report stronger-looking numbers under different evidence regimes. Liu et al. (2024) report around 99.8% aggregate accuracy/F1 on anomaly classes created from the authors’ own rules plus annotation. The LSTM–Transformer study by Wang et al. (2026) provides a further example of evaluation using Danish AIS trajectories and constructed anomalies. Tao et al. (2025) report classification against pseudo-labels derived from spectral clustering.
The key limitation is that a high score may primarily measure agreement with the label-generation process rather than recovery of the underlying maritime event.
What an ideal benchmark should contain
Every result table should include:
- data source and geographic region;
- train/test time periods;
- vessel-type coverage;
- label source and number of independent annotators;
- whether anomalies are natural, rule-derived or synthetic;
- whether the same vessel appears in train/test;
- whether data gaps are excluded;
- event-level as well as point/segment metrics;
- calibration and abstention performance;
- external evidence available for a subset.
For behaviour models, an ideal scenario also reports performance separately in ports/anchorages, approaches, open sea and high-density traffic. The same motion can mean different things in each context.
The dark-data problem
Some methods discard trajectories with large AIS gaps before detection, that makes modelling easier, but it systematically removes one of the behaviours a maritime-intelligence system may care about most. A benchmark for anomaly/dark-shipping research should therefore include a missingness axis: regular reception, sparse reporting, abrupt gaps, reconstructed gaps and genuinely unmatched non-cooperative detections.
Causal validity before architectural novelty
A benchmark should test whether the model recovers the underlying event rather than reproducing the rule that generated the label. An ideal scenario would include variables that explain competing causes, port state, receiver coverage, vessel type, weather/current proxies and independent observations, then evaluate whether model conclusions remain stable under controlled counterfactual changes.
This is a stricter criterion than classification accuracy: does the representation preserve the distinction between cause, context and observation?
Reproducibility before architectural novelty
The cited studies also highlight a useful opportunity: Danish AIS data and US coastal AIS data provide starting points for shared evaluation (Wang et al., 2026; Wijaya and Nakamura, 2023). That makes them ideal for a reproducible benchmark where multiple rule, classical ML, deep-learning and world-model approaches are rerun under the same event definitions and evaluation split. That contribution may be more scientifically valuable than another architecture with a higher score alone.
References
- Wijaya, W. M., and Nakamura, Y. (2023). Loitering behavior detection by spatiotemporal characteristics quantification based on the dynamic features of Automatic Identification System (AIS) messages. PeerJ Computer Science, 9, e1572.
- Wijaya, W. M., and Nakamura, Y. (2024). Unexpected Trajectory Detection Based on the Geometrical Features of AIS-Generated Ship Tracks. International Journal of Advanced Computer Science and Applications, 15(7).
- Liu, J., Li, J., and Liu, C. (2024). AIS-based kinematic anomaly classification for maritime surveillance. Ocean Engineering, 305, 118026.
- Tao et al. (2025). Analysis of Maritime Loitering Patterns With Discrete AIS Sequences Using Transformer Model Reconstruction and Classification. IEEE Access.
- Wang, Y., Xiao, J., Chen, H., and Zhang, W. (2026). AIS-Based Abnormal Ship Behavior Detection for Sustainable Maritime Traffic Management Using a Dual-Error Fusion LSTM–Transformer Framework. Sustainability, 18(16), 8505.