Optimal Spatial Anomaly Detection
Baiyu Wang, Chao Zheng
TL;DR
The paper tackles spatial anomaly detection of anomaly-in-mean on a regular lattice, proposing a double-penalised least squares approach (DPLS-SAD) that jointly penalises the number of anomaly regions and the area of their minimum convex hulls to recover both the count and the geometry of irregular spatial anomalies. It establishes non-asymptotic consistency and minimax optimal localisation rates in 2D, and extends the framework to general dimensions and spatial dependence, with a fast approximate algorithm (CRS) to handle computational intractability. The method is validated via extensive simulations and is applied to marine heatwave detection from global sea surface temperature data, showing accurate, interpretable segmentation of complex regions and alignment with historical events. Together, these results demonstrate a scalable, theoretically sound tool for automatic, shape-flexible SAD in both synthetic and real-world spatial data contexts.
Abstract
There has been a growing interest in anomaly detection problems recently, whilst their focuses are mostly on anomalies taking place on the time index. In this work, we investigate a new anomaly-in-mean problem in multidimensional spatial lattice, that is, to detect the number and locations of anomaly ''spatial regions'' from the baseline. In addition to the classic minimisation over the cost function with a $L_0$ penalisation, we introduce an innovative penalty on the area of the minimum convex hull that covers the anomaly regions. We show that the proposed method yields a consistent estimation of the number of anomalies, and it achieves near optimal localisation error under the minimax framework. We also propose a dynamic programming algorithm to solve the double penalised cost minimisation approximately, and carry out large-scale Monte Carlo simulations to examine its numeric performance. The method has a wide range of applications in real-world problems. As an example, we apply it to detect the marine heatwaves using the sea surface temperature data from the European Space Agency.
