Delayed labelling evaluation for data streams

Maciej Grzenda, Heitor Murilo Gomes, Albert BifetData Min. Knowl. Discov 2020 · DOI

Abstract

In the field of data stream mining, the standard "test-then-train" (prequential) evaluation paradigm assumes that the ground truth label for an instance becomes available immediately after a prediction is made. However, real-world applications frequently encounter verification latency, where labels arrive with significant delays. This paper proposes a novel continuous re-evaluation framework. This approach moves beyond static "one-shot" predictions, instead measuring how models can refine their outputs over time as they continue to learn from other incoming data while awaiting a specific label.

Introduction: The Reality of Verification Latency

Most research in stream learning operates under the idealised assumption of zero-latency feedback. In practice, this is rarely the case. Consider the task of predicting flight delays: a model makes a prediction at the moment of departure ($X_k$), but the actual delay ($y_k$) is only known once the flight arrives at its destination, potentially hours later.

Illustration of verification latency in data streams, where the label $y_k$ arrives significantly after the input $X_k$.

During this waiting period, the stream does not stop. The model continues to process other flights, learning from their outcomes and adapting to changing conditions like weather or airport congestion. Traditional evaluation methods ignore this interim learning, only assessing the model's performance at the initial point of prediction. This paper argues that we are missing a crucial dimension of model performance: the ability to provide increasingly accurate "updated" predictions as more context becomes available.

The Continuous Re-evaluation Framework

To address this gap, the authors introduce a methodology that treats predictions as evolving states rather than static events.

Periodic Prediction Updates

To avoid the computational burden of constant polling, the framework introduces a parameter $K$. The system requests an updated prediction for a pending instance every time $K$ new labeled instances from other parts of the stream are processed. This allows the model to incorporate the most recent "knowledge" into its existing pending predictions.

Binned Performance Metrics

To visualize and quantify improvement over time, the delay period is discretized into $B$ "bins" or sub-periods. This structure allows researchers to plot a performance curve, tracking accuracy from the initial encounter ($b=0$) through to the final label arrival ($b=B+1$).

Binned performance evaluation showing how label latency is divided into sub-periods (bins) for tracking prediction refinement.

Because multiple prediction updates might occur within a single time bin, the framework uses a "dominating prediction" strategy. The prediction held for the longest duration within a specific bin is used to calculate that bin's accuracy. This ensures that the metric reflects the model's most stable state during that interval.

Experimental Setup and Datasets

The framework was validated using a diverse set of synthetic and real-world benchmarks:

  • Synthetic Streams: Hyperplane (incremental drift), LED (abrupt/gradual drift), and Agrawal (loan functions) were used with simulated delays ranging from 100 to 1000 instances.
  • Real-World Applications:
    • Airlines: Predicting arrival delays for flights to Atlanta (ATL), where the delay is the actual flight duration.
  • Electricity: Predicting 24-hour-ahead price changes, involving delays of 1–2 days.
  • Forest Cover Type: A classification task for forest types with simulated delays.
  • Bike Sharing: A regression task predicting hourly rentals with a simulated one-week delay.

Key Insights: Models as Evolving Entities

The study reveals several critical insights into the behavior of streaming algorithms under delayed labeling:

  1. The "Fast Learner" Advantage: Certain algorithms are better at exploiting new data during the delay period. For instance, k-Nearest Neighbors (kNN) often shows rapid accuracy gains because its sliding-window memory updates immediately with every new labeled instance.
  2. Dynamic Leaderboards: The "best" model is not a fixed choice. A model that leads in initial accuracy ($b=0$) might be overtaken by more complex ensembles, such as Adaptive Random Forest (ARF), as the delay progresses and more data is incorporated.
  3. Visualizing Resilience to Drift: The binned accuracy plots serve as a "stress test," showing how effectively a model can recover from concept drift even when it hasn't seen the labels for its most recent predictions.

Results and Discussion

The experimental results confirm that models do indeed improve significantly during the waiting period. In the Hyperplane dataset, initial accuracy started at approximately 75% but climbed to over 92% by the time the label arrived (bin 51).

The framework also proved effective for regression tasks. On the Bike Sharing dataset, the Adaptive Random Forest for Regression (ARFReg) demonstrated a consistent reduction in Mean Absolute Error (MAE) as the delay period progressed. Interestingly, while simple baselines like "No Change" (predicting the last seen label) performed well in high-dependency streams like Electricity, they lacked the adaptive capacity of the proposed models to improve over time.

Limitations and Future Directions

While providing a more realistic evaluation, the framework has limitations. It currently assumes that class labels are fixed once they arrive, not accounting for "evolving" ground truths (e.g., a transaction initially marked as pending that is later flagged as fraud). Additionally, the computational overhead of periodic polling remains a factor; future work will focus on optimizing the balance between prediction freshness and CPU cost. Finally, the authors suggest this framework is an ideal environment for testing semi-supervised learning techniques that could leverage unlabeled data arriving during the delay.

Summary updated

BibTeX
@article{grzenda2020delayed,
  author = {Maciej Grzenda and Heitor Murilo Gomes and Albert Bifet},
  title = {{Delayed labelling evaluation for data streams}},
  journal = {Data Min. Knowl. Discov.},
  year = {2020},
  doi = {10.1007/s10618-019-00654-y},
}
Figure