Midas: Microcluster-Based Detector of Anomalies in Edge Streams

Siddharth Bhatia, Bryan Hooi, Minji Yoon, Kijung Shin, Christos Faloutsos

Introduction

In the era of massive, high-speed data, graphs are rarely static. They exist as "edge streams" where connections—such as network packets, financial transactions, or social media interactions—appear continuously over time. Detecting anomalies in these streams is critical for identifying Denial of Service (DoS) attacks, fraudulent activity, and coordinated bot behavior. MIDAS (Microcluster-Based Detector of Anomalies in Edge Streams) is a high-performance algorithm designed to address the limitations of previous detection methods by focusing on "microclusters": sudden bursts of suspiciously similar edges.

The Challenge of Edge Stream Anomaly Detection

Existing anomaly detection tools face three primary hurdles that limit their effectiveness in real-world scenarios:

  1. Focus on Individuals: Most methods search for single "surprising" edges, often missing coordinated "microclusters" where groups of edges appear in lockstep patterns typical of botnets.
  2. Scalability: As streams continue indefinitely, the number of unique nodes grows. Many algorithms fail to maintain the constant memory and time complexity required for real-time processing.
  3. Lack of Theoretical Guarantees: Practitioners often lack a way to bound the likelihood of false alarms, as most current methods rely on heuristics.
Feature comparison of MIDAS against previous state-of-the-art methods, highlighting its unique ability to detect microclusters and provide theoretical guarantees.

Methodology

MIDAS treats anomaly detection as a statistical goodness-of-fit problem, utilizing a principled hypothesis testing framework combined with efficient streaming data structures.

1. Streaming Data Structures

To handle massive streams with constant memory, MIDAS employs Count-Min-Sketch (CMS). This allows the algorithm to maintain approximate counts of edge occurrences (total history vs. current time tick) regardless of the number of unique nodes in the graph.

2. Hypothesis Testing

MIDAS utilizes a Chi-squared goodness-of-fit test to evaluate the null hypothesis that the mean rate of an edge in the current time tick matches its historical average. If activity is significantly higher than expected, it is flagged as an anomaly. Crucially, the authors prove that even with the approximation errors of CMS, they can provide a theoretical bound on the false positive probability.

3. MIDAS-R: Incorporating Relations

The framework is extended into MIDAS-R to capture temporal and spatial relations. It uses a decay factor to give more weight to recent activity and checks for bursts at the node level to identify anomalous sources (e.g., a single IP address targeting thousands of destinations).

Experimental Evaluation

The researchers evaluated MIDAS on several large-scale datasets, including DARPA (4.5 million IP communications) and Twitter (entity co-mention graphs).

MIDAS significantly outperformed the baseline, SEDANSPOT, across all critical metrics. On the DARPA dataset, MIDAS-R achieved an AUC of 0.977, compared to the baseline's 0.643. Furthermore, MIDAS proved to be 108x to 505x faster than previous state-of-the-art methods, processing 4 million edges in less than one second on a standard laptop.

Accuracy and Precision scores plotted against wall-clock time, illustrating that MIDAS achieves superior detection performance while being orders of magnitude faster than SEDANSPOT.

Conclusion

MIDAS represents a significant leap forward in stream-based anomaly detection. By prioritizing the detection of microclusters and leveraging efficient data structures with statistical rigor, it provides a solution that is both highly accurate and fast enough for the most demanding high-speed network links. Future work may extend this framework to heterogeneous data types and more complex tensor structures.

Summary updated

BibTeX
@inproceedings{bhatia2020midas,
  author = {Siddharth Bhatia and Bryan Hooi and Minji Yoon and Kijung Shin and Christos Faloutsos},
  title = {{Midas: Microcluster-Based Detector of Anomalies in Edge Streams}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5724},
}
Figure