Fast, accurate and explainable time series classification through randomization

Nestor Cabello, Elham Naghizade, Jianzhong Qi, Lars Kulik

Introduction

Time Series Classification (TSC)—the task of assigning labels to data that evolves over time, such as electrocardiograms or financial indices—has long faced a fundamental trade-off. Researchers typically choose between "Heavyweights" like HIVE-COTE v2.0, which offer state-of-the-art (SOTA) accuracy at the cost of massive computational overhead, and "Sprinters" like ROCKET, which are fast but operate as "black boxes."

The Randomized-Supervised Time Series Forest (r-STSF) addresses this gap. It achieves SOTA accuracy while remaining orders of magnitude faster than its peers and providing built-in explainability, satisfying the critical requirements of high-stakes domains like medicine and law.

The r-STSF Framework

The core of the proposed method is an interval-based classifier that focuses on specific sub-sections of a time series rather than the global signal.

r-STSF identifies discriminative intervals (e.g., interval 1 and 2) across different representations to classify time series data.

Multi-Representation Feature Extraction

r-STSF transforms raw data into four distinct views to capture diverse patterns:

  • Time-domain (Raw): Captures basic shape information.
  • Frequency-domain (Periodogram): Identifies periodic behaviors.
  • Trends (First-order Derivative): Highlights rates of change.
  • Lagged relationships (Autoregressive): Models temporal dependencies.

Unlike traditional models that select intervals purely at random, r-STSF employs a supervised search guided by the Fisher Score. This ensures the selected intervals are discriminative. To maintain robustness and prevent overfitting, the model introduces a perturbation scheme using random cut-points.

The Extra-Trees Ensemble

The model utilizes an ensemble of "Extra-Trees" (ET). By selecting split points at random rather than searching for the optimal one, ET significantly reduces variance and accelerates training. To further optimize efficiency, the forest samples from a shared pool of candidate features ($d=50$), drastically reducing the computational burden without sacrificing accuracy.

Experimental Evaluation

The authors evaluated r-STSF on the UCR112 benchmark (112 diverse datasets) and a suite of Big Data Stress Tests. The latter included massive datasets like MosquitoSound (over 139,000 instances) and DucksAndGeese (series lengths exceeding 236,000 points), designed to push models to their limits.

Results and Discussion

The experimental results confirm that r-STSF hits the "trifecta" of TSC performance.

Performance landscape showing r-STSF (blue) achieving SOTA accuracy and integrated explainability with significantly lower normalized run time compared to other models.

Accuracy and Speed

r-STSF is statistically tied for the highest accuracy among top-tier models like DrCIF. However, it is two orders of magnitude faster than competitors like HC2 and DrCIF. In big data scenarios, r-STSF completed training in approximately 12 hours on datasets where other SOTA models required over a week or failed due to memory constraints.

Explainability

By utilizing simple statistics over specific intervals, r-STSF generates intuitive heatmaps. For instance, in the ItalyPowerDemand dataset, the model pinpointed a specific peak in energy consumption between 19:00 and 20:00 as the key differentiator between summer and winter usage patterns.

Conclusion

r-STSF demonstrates that "strong" randomization is not a drawback but a powerful feature for ensemble diversity. By combining multi-representation views with efficient supervised search, it provides a scalable, transparent solution for modern time series challenges. Future work will focus on extending the framework to multivariate data and developing adaptive randomization techniques for varying dataset complexities.

Summary updated

BibTeX
@article{cabello2024fast,
  author = {Nestor Cabello and Elham Naghizade and Jianzhong Qi and Lars Kulik},
  title = {{Fast, accurate and explainable time series classification through randomization}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-023-00978-w},
}
Figure