Standardized Evaluation of Machine Learning Methods for Evolving Data Streams

Johannes Haug, Effi Tramountani, Gjergji KasneciarXiv 2022

Abstract: Due to the unspecified and dynamic nature of data streams, online machine learning requires powerful and flexible solutions. However, evaluating online machine learning methods under realistic conditions is difficult. Existing work therefore often draws on different heuristics and simulations that do not necessarily produce meaningful and reliable results. In this paper, we propose a comprehensive set of properties for high-quality machine learning in evolving data streams, discussing sensible performance measures and evaluation strategies for online predictive modelling, online feature selection, and concept drift detection. We also introduce float, a modular Python framework that allows for standardized, reliable, and realistic testing of online machine learning methods.

Introduction: The "Wild West" of Stream Learning

In traditional "batch" machine learning, static datasets allow for standard techniques like k-fold cross-validation. Data streams, however, are potentially infinite, arrive in real-time, and suffer from concept drift—where the underlying data distribution changes over time.

Currently, the evaluation of stream models lacks a "gold standard," leading to massive inconsistencies in reported results. For example, the same standard algorithm, such as the Hoeffding Tree, can have reported accuracy scores that vary by over 13% across different papers simply due to the evaluation setup. Without a unified framework, it is nearly impossible to determine which models will perform reliably in production environments like fraud detection or autonomous driving.

Table 1: Variations in reported accuracy for the Hoeffding Tree algorithm across different datasets and papers, illustrating the lack of standardized evaluation.

A Standardized Catalogue of Metrics

The paper moves beyond simple accuracy by proposing a comprehensive catalogue of requirements for online ML, categorized into general properties, active concept drift detection, and online feature selection.

Table 2: Proposed properties and corresponding meaningful evaluation measures for standardized stream learning analysis.

Key Evaluation Properties:

  1. Algorithmic Stability: Introduced as "Noise Variability," this measures how much a model's output fluctuates when artificial noise is added to the input.
  2. Concept Drift Adaptability: New metrics like Drift Performance Deterioration (DPD) and Drift Restoration Time (DRT) quantify the performance drop during drift and the time required to recover.
  3. Detection Truthfulness and Timeliness: For drift detectors, metrics evaluate the "Detected Change Rate" versus "False Discovery Rate" and the delay between a drift occurring and being detected.
  4. Online Feature Selection: Measures for Stability (consistency of the feature set over time) and Selectivity (reduction in dimensionality).

The float Framework

To implement these standards, the authors developed float (Frictionless Online Analysis and Testing). This modular Python library integrates with existing tools like scikit-multiflow and river, allowing researchers to build rigorous evaluation pipelines in just a few lines of code. The framework advocates for "Prequential Evaluation" (test-then-train) as the most realistic strategy, where each new observation is first used to test the model before being used for an update.

Key Insights and Results

Using the float framework on the TüEyeQ dataset (which features natural concept drifts as task difficulty increases), the authors compared a simple Perceptron against a more complex Hoeffding Adaptive Tree (HAT). While the HAT generally achieved a higher F1-score, the Perceptron was computationally faster and showed slightly better Drift Restoration Time and lower Noise Variability.

Furthermore, the study found that using online feature selection methods like FIRES significantly improved recovery from concept drifts, reducing DRT from 0.5 to 0.4. This highlights a critical insight: accuracy is a snapshot, not a story. In a stream, one must consider the kinetics of the model—how it reacts to noise and how fast it recovers from shocks.

Conclusion and Future Work

Standardizing evaluation is a prerequisite for reliable online machine learning. While float provides the necessary infrastructure, challenges remain. The lack of real-world datasets with ground-truth drift labels (like the Insects or TüEyeQ datasets) and the practical issue of label delay are priorities for future research. Future iterations of the framework aim to address these hurdles to further bridge the gap between research and real-world deployment.

Summary updated

BibTeX
@misc{haug2022standardized,
  author = {Johannes Haug and Effi Tramountani and Gjergji Kasneci},
  title = {{Standardized Evaluation of Machine Learning Methods for Evolving Data Streams}},
  year = {2022},
  eprint = {2204.13625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.13625},
}
Figure