Search papers, labs, and topics across Lattice.
This paper introduces Rarity-Gated Feature-wise Linear Modulation (RGFiLM), a novel approach for improving contextual anomaly detection in maritime scenarios by addressing the challenges posed by imbalanced context distributions. By leveraging a data-driven rarity score to modulate the influence of context on model predictions, RGFiLM effectively reduces false alarms in rare contexts while maintaining performance in more frequent ones. The method outperforms existing context-agnostic and context-conditioned techniques in achieving optimal mean F1-False Positive Rate trade-offs on maritime trajectory anomaly detection tasks.
Rarity-aware context modulation can significantly enhance anomaly detection performance in maritime environments, reducing false alarms by intelligently adjusting to context frequency.
Contextual anomaly detection aims to identify abnormal behavior conditional on context variables, but practical deployments often face highly imbalanced context distributions where rare regimes can be critical information. Under such frequency bias, context-conditioned models can produce unstable decisions and excessive false alarms in rare contexts. We propose Rarity-Gated Feature-wise Linear Modulation (RGFiLM), a rarity-aware conditioning module that combines feature-wise modulation (i.e., context-conditioned scaling and shifting of hidden features) with a gate controlled by a data-driven rarity score. The rarity score is estimated from the empirical distribution of context variables and regulates how strongly context modulates intermediate representations: the gate becomes more decisive under rare contexts while remaining conservative under frequent contexts. We evaluate RGFiLM on maritime trajectory anomaly detection using AIS motion sequences with ERA5 environmental context in an environment-sensitive detour scenario. When instantiated in a sequential anomaly scoring pipeline, RGFiLM achieves the best mean F1--False Positive Rate (FPR) trade-off among the compared context-agnostic and context-conditioned methods. These results suggest that explicitly accounting for context rarity is an effective approach for reducing false alarms in context-sensitive anomaly detection.