Skip to main content
QUICK REVIEW

[Paper Review] Fast Randomized Model Generation for Shapelet-Based Time Series Classification

Daniel Gordon, Danny Hendler|arXiv (Cornell University)|Sep 23, 2012
Time Series Analysis and ForecastingComputer Science10 references16 citations
TL;DR

This paper proposes SALSA-R, a randomized algorithm for fast shapelet-based time series classification that samples shapelets uniformly at random from the entire shapelet space, achieving high accuracy after evaluating only a tiny fraction of possible shapelets. By exploiting the clustered distribution of high-quality shapelets, SALSA-R converges rapidly—producing models with near-state-of-the-art accuracy in minutes instead of days, even on large datasets.

ABSTRACT

Time series classification is a field which has drawn much attention over the past decade. A new approach for classification of time series uses classification trees based on shapelets. A shapelet is a subsequence extracted from one of the time series in the dataset. A disadvantage of this approach is the time required for building the shapelet-based classification tree. The search for the best shapelet requires examining all subsequences of all lengths from all time series in the training set. A key goal of this work was to find an evaluation order of the shapelets space which enables fast convergence to an accurate model. The comparative analysis we conducted clearly indicates that a random evaluation order yields the best results. Our empirical analysis of the distribution of high-quality shapelets within the shapelets space provides insights into why randomized shapelets sampling is superior to alternative evaluation orders. We present an algorithm for randomized model generation for shapelet-based classification that converges extremely quickly to a model with surprisingly high accuracy after evaluating only an exceedingly small fraction of the shapelets space.

Motivation & Objective

  • Address the high computational cost of training shapelet-based classification trees, which can take days on moderate-sized datasets.
  • Overcome the inefficiency of exhaustive search over all subsequences in the YK algorithm, which examines millions of shapelets.
  • Investigate whether alternative evaluation orders (e.g., binary search, length-based) outperform random sampling in terms of convergence speed and accuracy.
  • Develop a self-terminating algorithm that stops searching once model quality stabilizes, reducing computation without sacrificing performance.
  • Demonstrate that random sampling is superior due to the non-uniform clustering of high-quality shapelets in the shapelet space.

Proposed method

  • Propose SALSA-R, a self-terminating algorithm that samples shapelets uniformly at random from the full shapelet space, regardless of length or position.
  • Evaluate shapelets in random order and monitor the quality (information gain and margin) of newly sampled shapelets.
  • Stop the search once the improvement in shapelet quality falls below a threshold (ε = 0.01), indicating convergence.
  • Cache the distances from each evaluated shapelet to all time series to accelerate subsequent tree construction.
  • Use a pre-computed threshold for each shapelet based on its ability to split classes, enabling fast classification via distance comparison.
  • Compare SALSA-R against the original YK algorithm and prior pruning methods, using accuracy, number of shapelets evaluated, and runtime as metrics.

Experimental results

Research questions

  • RQ1Does random evaluation order of shapelets lead to faster convergence to high-accuracy models compared to systematic or binary search-based orders?
  • RQ2Can a self-terminating algorithm based on random sampling achieve accuracy comparable to full-search methods while evaluating only a small fraction of shapelets?
  • RQ3Why is random sampling more effective than structured search orders, given that high-quality shapelets are not uniformly distributed?
  • RQ4Does evaluating fewer shapelets lead to overfitting or reduced accuracy, and how does SALSA-R avoid this?
  • RQ5How does the performance of SALSA-R scale with increasing dataset size, and does it maintain a significant speed advantage over prior art?

Key findings

  • SALSA-R achieves model accuracy within 2% of prior art (e.g., YK or pruning-based methods) on all datasets tested, with improvements on three datasets (coffee, mallat, wheat).
  • On average, SALSA-R evaluates only 0.1% to 1% of the total shapelets in the space—e.g., 1.8e4 out of 1.0e7 for mallat—while maintaining high accuracy.
  • The algorithm reduces training time from days (e.g., >1.2e6 seconds for mallat) to under 1000 seconds (e.g., 954 seconds for mallat with NI=100k), even on large datasets.
  • For small datasets like arrowhead and coffee, SALSA-R achieves near-optimal accuracy (e.g., 78.4% vs. 80.0%) in under 255 seconds, compared to over 2400 seconds with prior methods.
  • The standard deviation of accuracy is low (e.g., 1.3–5.6%), indicating consistent performance across runs and robustness to random sampling.
  • The study reveals that overfitting may occur when too many shapelets are considered, suggesting that a small, high-quality subset is sufficient for optimal performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.