Skip to main content
QUICK REVIEW

[Paper Review] Pattern Recognition and Event Detection on IoT Data-streams

Christos Karras, Aristeidis Karras|arXiv (Cornell University)|Mar 2, 2022
Anomaly Detection Techniques and ApplicationsComputer Science13 citations
TL;DR

This paper proposes a weighted reservoir sampling technique with O(min(k, n−k)) complexity and a modified k-means clustering approach for real-time pattern recognition and event detection in IoT data streams. By maintaining a representative sample of stream data and using sum of squared errors (SSE) to assess cluster quality, the method effectively identifies outliers as events, outperforming standard k-means, DBSCAN, and E-DBSCAN in precision, recall, and F-measure on the SENSORS dataset.

ABSTRACT

Big data streams are possibly one of the most essential underlying notions. However, data streams are often challenging to handle owing to their rapid pace and limited information lifetime. It is difficult to collect and communicate stream samples while storing, transmitting and computing a function across the whole stream or even a large segment of it. In answer to this research issue, many streaming-specific solutions were developed. Stream techniques imply a limited capacity of one or more resources such as computing power and memory, as well as time or accuracy limits. Reservoir sampling algorithms choose and store results that are probabilistically significant. A weighted random sampling approach using a generalised sampling algorithmic framework to detect unique events is the key research goal of this work. Briefly, a gradually developed estimate of the joint stream distribution across all feasible components keeps k stream elements judged representative for the full stream. Once estimate confidence is high, k samples are chosen evenly. The complexity is O(min(k,n-k)), where n is the number of items inspected. Due to the fact that events are usually considered outliers, it is sufficient to extract element patterns and push them to an alternate version of k-means as proposed here. The suggested technique calculates the sum of squared errors (SSE) for each cluster, and this is utilised not only as a measure of convergence, but also as a quantification and an indirect assessment of the element distribution's approximation accuracy. This clustering enables for the detection of outliers in the stream based on their distance from the usual event centroids. The findings reveal that weighted sampling and res-means outperform typical approaches for stream event identification. Detected events are shown as knowledge graphs, along with typical clusters of events.

Motivation & Objective

  • To address the challenge of detecting rare or anomalous events in high-velocity, limited-lifespan IoT data streams.
  • To reduce computational and memory overhead in real-time stream processing by maintaining a representative subset of data using weighted sampling.
  • To improve event detection accuracy by adapting k-means clustering to stream data using SSE as a convergence and approximation metric.
  • To enable scalable, low-cost pattern recognition in resource-constrained IoT edge devices through efficient sampling and clustering.

Proposed method

  • Uses a generalized weighted random sampling framework to select k representative elements from a data stream, ensuring probabilistic significance.
  • Applies reservoir sampling with O(min(k, n−k)) time complexity to maintain a fixed-size, representative sample of the stream.
  • Modifies k-means clustering to operate on the sampled data, using sum of squared errors (SSE) as both a convergence criterion and a measure of distribution approximation accuracy.
  • Detects events as outliers by measuring their distance from cluster centroids in the k-means framework.
  • Visualizes detected events and typical clusters using knowledge graphs for interpretability.
  • Evaluates performance against standard k-means, DBSCAN, and E-DBSCAN using precision, recall, and F-measure on the SENSORS dataset.

Experimental results

Research questions

  • RQ1Can weighted reservoir sampling efficiently maintain a representative subset of high-velocity IoT data streams with minimal computational cost?
  • RQ2How does the proposed res-means clustering approach improve event detection accuracy compared to standard k-means and density-based methods like DBSCAN?
  • RQ3To what extent does using SSE as a convergence and approximation metric enhance the detection of anomalous events in streaming IoT data?
  • RQ4Can the proposed system scale effectively across varying values of k and data distribution shifts in real-world IoT environments?

Key findings

  • The proposed res-means method achieved 51.2% precision, 44.8% recall, and 47.7% F-measure on the SENSORS dataset, outperforming standard k-means (30.46 F-measure), DBSCAN (44.64 F-measure), and E-DBSCAN (51.45 F-measure).
  • For event detection, the proposed method detected 8.4 instances of 'sensor not working', 12.7 of 'noisy data sent', 9.4 of 'wrong intervals', and 11.2 of 'communication issues'—all higher than the next best method in each category.
  • The weighted sampling approach with replacement showed better computational performance than without replacement, despite the latter being more statistically rigorous.
  • The system demonstrated scalability and efficiency, maintaining low computational cost and short processing time even with large k values.
  • The integration of knowledge graphs enabled effective visualization of detected events and typical clusters, enhancing interpretability.
  • The method effectively identifies outliers as events by measuring their distance from cluster centroids, leveraging SSE as a reliable proxy for distribution approximation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.