Edge computing empowered anomaly detection framework with dynamic insertion and deletion schemes on data streams

Haolong Xiang, Xuyun ZhangWorld Wide Web 2022 · DOI

Abstract

The proliferation of Internet of Things (IoT) devices generates massive, high-velocity data streams that require real-time anomaly detection. Traditional centralized and batch-processing methods struggle with the volume, dimensionality, and evolving nature (concept drift) of this data. This paper presents IDForest, a generic framework that combines Locality Sensitive Hashing (LSH) with a dynamic Isolation Forest. By implementing a First-In-First-Out (FIFO) insertion and deletion scheme and leveraging edge computing for parallel execution, IDForest achieves state-of-the-art accuracy and a 100x reduction in processing time compared to traditional approaches.

Introduction

The Internet of Things (IoT) has become a cornerstone of smart infrastructure, from industrial monitoring to healthcare. However, the data generated by these sensors presents significant challenges for anomaly detection. First, the sheer velocity and volume of infinite streams make traditional storage and batch processing infeasible. Second, concept drift—where the statistical properties of "normal" behavior change over time—renders static models obsolete. Finally, the high dimensionality of synchronized sensor data complicates distance-based detection methods.

While existing solutions like Robust Random Cut Forest (RRCF) address some streaming aspects, they often struggle with multidimensional accuracy. Furthermore, while edge computing provides the necessary proximity for low-latency processing, few algorithms are designed to effectively exploit its parallel architecture.

The IDForest Framework

The proposed IDForest (Isolation Forest with dynamic Insertion and Deletion) framework addresses these hurdles through three core innovations:

LSH-based Partitioning

Standard Isolation Forests typically use axis-parallel splits, which can be inefficient in high-dimensional spaces. IDForest utilizes Locality Sensitive Hashing (LSH) to project data into lower-dimensional spaces. This ensures that similar data points are grouped into the same nodes with high probability, enhancing robustness for complex, multidimensional IoT data.

Dynamic Tree Updates

To manage infinite data streams and mitigate concept drift, IDForest employs a First-In-First-Out (FIFO) maintenance scheme. As new data points arrive, they are inserted into the tree structure. Once the tree reaches its predefined capacity, the oldest data point is removed. This "sliding window" approach allows the model to continuously evolve and reflect the most recent data distribution.

Overview of the IDForest architecture and tree maintenance scheme

Edge Parallelization

Isolation Forests are inherently parallelizable because each tree in the forest is independent. IDForest exploits this by distributing tree training and update tasks across multiple edge servers. This decentralized approach significantly reduces the latency between data acquisition and anomaly flagging.

Illustration of dynamic node insertion and path traversal in the IDForest tree structure

Experimental Evaluation

The framework was evaluated using a combination of synthetic datasets (sine waves with injected anomalies) and real-world benchmarks, including:

  • NYC Taxicabs: Passenger count trends.
  • Occupancy & Occupancy_2: Multidimensional sensor data (light, temperature, humidity).
  • Kddcup99 & Smtp: Network intrusion detection.
  • Forestcover (Fc): Cartographic variables.

Key Results

  • Accuracy: IDForest variants (ImL1SH and ImL2SH) consistently outperformed state-of-the-art methods like RRCF and xStream. On the NYC Taxicab dataset, IDForest achieved an AUC of 92.05%, compared to 71.02% for RRCF.
  • Efficiency: Parallel deployment on edge servers resulted in a 100x speedup in execution time compared to single-server setups.
  • Latency: For large-scale datasets like Kddcup99, total transmission and processing latency was approximately 16 seconds, enabling true real-time monitoring where traditional methods often fail.

Conclusion and Future Work

IDForest provides a robust, "plug-and-play" solution for real-time anomaly detection in IoT environments. By combining the efficiency of tree-based isolation with the mathematical rigor of LSH and the low latency of edge computing, it bridges a critical gap in current stream processing capabilities.

Future research will focus on improving the framework's resilience to environmental noise, optimizing performance for resource-constrained "fog" nodes, and developing self-adaptive mechanisms for automatic parameter tuning.

Summary updated

BibTeX
@article{xiang2022edge,
  author = {Haolong Xiang and Xuyun Zhang},
  title = {{Edge computing empowered anomaly detection framework with dynamic insertion and deletion schemes on data streams}},
  journal = {World Wide Web},
  year = {2022},
  doi = {10.1007/s11280-022-01052-z},
}
Figure