Anytime algorithms for stream data mining

Philipp Kranen, Thomas SeidlRWTH 2011

Introduction

In the modern data landscape, information is no longer a static resource stored in isolated databases. From sensor networks and web traffic to medical monitoring and financial transactions, data arrives as continuous, potentially infinite streams. Traditional data mining algorithms, designed for finite datasets and fixed processing times, often fail under the "firehose" conditions of real-world applications. This research explores anytime algorithms—a class of algorithms capable of providing a valid result at any point during their execution, improving the quality of that result as more time becomes available.

The Constraints of Stream Mining

Stream mining is defined by four primary constraints that differentiate it from classical data mining:

  1. Infinite Volume: Data cannot be stored in its entirety; it must be processed in a single pass.
  2. Strict Time Limits: Each item must be processed before the next arrival to avoid data loss.
  3. Variable Arrival Rates: Streams are often "bursty," alternating between periods of low activity and high-velocity surges.
  4. Concept Drift: The underlying patterns in the data may change over time, requiring models to adapt dynamically.

Traditional "budget" algorithms are typically tuned for a fixed time-per-item. During data bursts, these systems are forced to drop data; during lulls, they remain idle. Anytime algorithms solve this by adhering to the Maximum Principle: maximizing the "yield" (result quality) from whatever input (time) is currently available.

Hierarchical Anytime Architectures

The core contribution of this work lies in the development of hierarchical structures that allow for progressive refinement of results.

Anytime Classification: The Bayes Tree

The Bayes Tree is a hierarchical index designed for anytime classification. Unlike standard decision trees that store data only at the leaves, the Bayes Tree stores statistical summaries—such as means and variances—at every internal node. This architecture allows the algorithm to perform a "coarse" Bayesian classification at the root level almost instantaneously. If time permits, the algorithm descends the tree, refining the probability density and increasing classification accuracy.

Anytime Clustering: The ClusTree and the "Hitchhiker" Mechanism

The ClusTree represents the first true anytime stream clustering algorithm. Its most innovative feature is the "hitchhiker" mechanism. In high-speed streams, if an insertion process is interrupted by a new data point, the current object is not discarded. Instead, it is stored in a local buffer at its current depth. When a subsequent data point passes through that node, it "picks up" the buffered object and carries it deeper into the tree. This ensures that work is never lost, only deferred until processing pressure eases.

Robustness and Outliers: LiarTree and AnyOut

To handle the "noise" inherent in real-world streams, the LiarTree was developed. It utilizes "liar nodes"—temporary placeholders for potential new clusters. This prevents noise or emerging novelties from immediately corrupting existing models. Building on this hierarchy, AnyOut provides anytime outlier detection, where outlier scores are calculated and refined the deeper the algorithm is allowed to search within the ClusTree structure.

Key Insights and Results

The research demonstrates that anytime algorithms provide benefits even when stream rates are constant. Because some data points are inherently easier to process than others, anytime algorithms can finish "easy" tasks quickly and reallocate the saved time to "hard" borderline cases.

Empirical evaluations using datasets like Forest Covertype and HealthNet highlight the efficiency of these approaches:

  • Scalability: The ClusTree maintained over 430,000 micro-clusters at a rate of 49,000 points per second, vastly outperforming linear-scan methods like CluStream.
  • Accuracy: The MC-Tree (a multi-class Bayes Tree variant) improved classification accuracy by up to 13% over previous Bayesian methods.
  • Noise Tolerance: The LiarTree maintained high precision even when the stream contained 50% noise.

Conclusion and Future Directions

Anytime algorithms represent a significant advancement in making stream mining resilient to real-world fluctuations. While these tree-based indices scale logarithmically, future work must address the "curse of dimensionality" through subspace clustering and adapt these models to handle categorical data types more natively. Furthermore, integrating active learning could allow these systems to identify and prioritize the most uncertain data points for human labeling, further optimizing the "yield" of the mining process.

Summary updated

BibTeX
@inproceedings{kranen2011anytime,
  author = {Philipp Kranen and Thomas Seidl},
  title = {{Anytime algorithms for stream data mining}},
  booktitle = {RWTH},
  year = {2011},
}
Figure