Abstract
Detecting anomalies in real-time data streams is a critical challenge in fields ranging from finance to healthcare. Traditional methods like the Local Outlier Factor (LOF) are computationally expensive for streaming data, while existing incremental versions (ILOF) often suffer from performance degradation due to noise. This paper discusses the Efficient Incremental Local Outlier Factor (EILOF) algorithm, which optimizes the update process by preserving historical outlier scores. EILOF significantly reduces computational overhead and improves detection accuracy by maintaining a stable reference frame for incoming data.
Introduction
Outlier detection involves identifying observations that deviate significantly from the norm. In high-velocity data environments, such as network security or financial transaction monitoring, algorithms must process new data points instantaneously. The Local Outlier Factor (LOF) is a popular density-based method that identifies outliers by comparing a point's local density to its neighbors. However, applying LOF to streaming data is difficult because every new point potentially requires recalculating the scores of all existing points.
The Incremental LOF (ILOF) was developed to address this, but it introduces a "ripple effect" where a single new arrival triggers a cascade of updates. This not only increases computational cost but also makes the model sensitive to noise, as new, potentially anomalous points can corrupt the density estimates of established data.
Methodology: The EILOF Approach
The Efficient Incremental Local Outlier Factor (EILOF) addresses the limitations of ILOF by adopting a "calculate-and-carry-on" strategy.
In the standard ILOF approach, a new point's arrival necessitates updating the reachability distances, local reachability densities (LRD), and LOF scores for all points in its neighborhood. EILOF simplifies this by calculating the $k$-nearest neighbors for the new point to determine its own density and outlier score, but it does not update the LOF scores of existing points.
By treating the historical dataset as a stable reference, EILOF avoids the computational bottleneck of recursive updates. It only modifies the underlying reachability distance matrix where strictly necessary to ensure the accuracy of the new point's score, effectively damping the "ripple effect" seen in traditional incremental methods.
Experimental Setup
The performance of EILOF was benchmarked against ILOF using several datasets:
- Synthetic Data: 2D and 50D Gaussian distributions with a 5% outlier ratio to test scalability and the curse of dimensionality.
- Shuttle Dataset (UCI): A real-world benchmark with nearly 50,000 observations, adapted for streaming with a 7% outlier proportion.
- Credit Card Fraud Dataset (Kaggle): A highly imbalanced dataset sampled to maintain a 5-7% fraud ratio.
Results and Discussion
The primary finding of this research is that stability in historical scores leads to better overall performance. EILOF demonstrated superior accuracy and resilience across all tests.
As shown in the comparative analysis, ILOF's performance tends to degrade as more data points are added to the stream. This degradation is likely due to "overfitting" to recent noise. In contrast, EILOF maintains a high and stable F1 score. In high-dimensional tests (50D), ILOF's accuracy plummeted, while EILOF remained robust, highlighting its suitability for complex, real-world data.
Furthermore, EILOF proved less sensitive to the parameter $k$ (the number of neighbors). While ILOF required precise tuning to avoid wild fluctuations in performance, EILOF provided consistent results across various neighborhood sizes.
Conclusion
EILOF represents a significant advancement in streaming outlier detection. By eliminating the need to update historical scores, it achieves a dual benefit: reduced computational complexity and increased robustness against noise. Future work will explore adaptive neighborhood sizes ($k$) and mechanisms to handle "concept drift" by incorporating data aging techniques.
Summary updated