Abstract
Identifying anomalous patterns in real-world data is essential for understanding where, when, and how systems deviate from their expected dynamics. Yet methods that separately consider the anomalous points or assume independent data fail to capture complex, correlated patterns. We propose Gaussian Process Subset Scanning (GPSS), a framework that integrates Gaussian Process (GP) modeling with subset scanning to detect subtle, irregularly shaped anomalies in non-iid data. By conditioning the GP on data outside the subset, we ensure robust detection even in highly correlated environments.
Introduction
Detecting anomalies in spatial or temporal datasets is challenging because data points are rarely independent. Natural correlations—such as weather patterns in adjacent regions or traffic trends over time—can easily be mistaken for anomalies by traditional models that assume independent and identically distributed (iid) data. This leads to a high rate of false positives. Conversely, point-based outlier detection often misses "collective" anomalies, where a group of points exhibits a subtle but consistent deviation that is only visible when viewed together.
This paper introduces a novel framework that bridges this gap. By combining the flexible modeling power of Gaussian Processes with efficient subset scanning algorithms, the authors can identify irregularly shaped, subtle anomalies that traditional methods miss.
Methodology: GP Subset Scanning
The proposed framework models the "normal" background of the data using GPs and then searches for subsets that deviate significantly from that background.
Scanning Techniques
The authors propose two primary scanning techniques:
- GP Neighborhood Scan (GPNS): This searches through fixed-shape (circular) neighborhoods. It is computationally simpler but limited to contiguous, regular patterns.
- GP Subset Scan (GPSS): This is the core contribution. It searches for the most anomalous subset of points within a neighborhood, allowing it to detect irregularly shaped or even non-contiguous patterns (e.g., an outbreak affecting specific demographic pockets).
Technical Innovations
To find the most anomalous subset, the authors derive a new Log-Likelihood Ratio (LLR) statistic specifically for non-iid data. Finding the optimal subset is an NP-hard problem, so the paper proposes three approximation methods: a priority-ranking method called $\beta_{MAX}$, a Generalized Rayleigh Quotient approach, and a forward stepwise optimization. To ensure scalability for large datasets, the framework utilizes Structured Kernel Interpolation (SKI) to bring GP inference down to $O(n)$ complexity.
Experimental Evaluation
The methods were evaluated on numeric simulations and real-world datasets, including NYC 311 calls, urban opioid overdose deaths, and multi-stream storm reports.
Key Results
In simulations, GPSS (specifically using the $\beta_{MAX}$ optimization) significantly outperformed independent subset scanning, one-class SVMs, and standard GP outlier detection in precision, recall, and statistical power.
Real-world results further validated the approach:
- Opioid Crisis: The model successfully identified a known surge in fentanyl-related deaths in late 2015.
- Urban Infrastructure: In NYC 311 data, it localized a water discoloration event to a specific neighborhood, whereas baseline methods either "smeared" the anomaly across the map or missed it entirely.
- Multi-stream Power: The framework can integrate multiple data streams (e.g., tree damage and flooding). By learning independent GPs for each stream but scanning them jointly, the model detects subtle signals that are weak in one stream but clear when viewed together.
Discussion and Future Work
The GP-based approach shows significant robustness to noise because it correctly attributes spatial correlations to "normal" behavior. Unlike previous GP-based detectors that only looked at contiguous intervals, GPSS can find "discontiguous" anomalies, which is vital for social data where administrative boundaries or demographics create complex patterns.
Future work will explore exploiting correlations between streams (inter-stream covariance) and moving to heavy-tailed noise models (like Student-t processes) to further improve robustness. While SKI helps, the computational intensity of scanning thousands of neighborhoods remains a focus for further optimization.
Summary updated