MiniRocket: A Very Fast (Almost) Deterministic Transform for Time Series Classification

Angus Dempster, Daniel F. Schmidt, Geoffrey I. WebbKDD 2020

Introduction

Time Series Classification (TSC)—predicting labels for data indexed over time, such as sensor logs or heart rate monitors—has traditionally faced a trade-off between computational efficiency and predictive accuracy. While the original ROCKET algorithm (2020) significantly improved speed by using 10,000 random convolutional kernels, it still relied on stochasticity and redundant computations.

MiniRocket (MINImally Random Convolutional Kernel Transform) evolves this framework by replacing randomness with a small, fixed, and mostly deterministic set of kernels. This shift allows MiniRocket to achieve state-of-the-art accuracy while being up to 75 times faster than its predecessor, processing over a hundred benchmark datasets in under 10 minutes on a single CPU.

Methodology

MiniRocket introduces several key structural optimizations to the ROCKET framework to maximize speed without sacrificing performance:

  1. Fixed Kernels: Instead of thousands of random kernels, MiniRocket utilizes a fixed set of just 84 kernels, each of length 9.
  2. Restricted Weights: Weights are limited to two values: $-1$ and $2$. This ensures kernels are zero-sum (making them invariant to input shifts) and allows convolutions to be computed using only addition and subtraction, eliminating expensive multiplications entirely.
  3. Deterministic Parameters: Randomness in dilation and padding is replaced with a systematic, fixed approach.
  4. PPV Pooling: MiniRocket finds that Proportion of Positive Values (PPV) pooling alone is sufficient. PPV acts as a powerful non-linear transform, essentially computing a point on the empirical cumulative distribution function of the convolution.
  5. Computational Optimization: By factoring out common computations across the fixed kernels, the algorithm can compute a significant portion of the work for all 84 kernels simultaneously for a given dilation.

Experimental Evaluation

The authors evaluated MiniRocket using the UCR archive (109 diverse datasets) and several large-scale datasets, including MosquitoSound (~140,000 examples) and DucksAndGeese, which features time series lengths of over 230,000.

Accuracy and Ranking

Despite its simplified architecture, MiniRocket maintains accuracy comparable to the original ROCKET and remains competitive with significantly more complex ensemble methods like HIVE-COTE or TS-CHIEF, which are often thousands of times slower.

Critical Difference diagram showing MiniRocket's rank relative to other state-of-the-art TSC methods.

Computational Efficiency

MiniRocket's primary advantage is its blistering speed. It can train and test on all 109 UCR datasets combined in under 10 minutes on a single CPU core. On large datasets, the speedup is even more pronounced; for instance, on the MosquitoSound dataset, ROCKET took over 15 hours to train, while MiniRocket finished in just 12 minutes.

Comparison of transform time between Rocket and MiniRocket, demonstrating a 10x to 100x speed improvement across various datasets.

Key Insights and Conclusion

The success of MiniRocket suggests that the randomness in ROCKET was not the primary driver of its performance. Instead, the variety provided by dilations and the descriptive power of PPV pooling are the essential components. By moving to a deterministic, multiplication-free transform, MiniRocket enables state-of-the-art TSC on truly massive datasets that were previously computationally inaccessible. Future work may involve extending these additive, fixed-kernel principles to other domains, such as image classification or multivariate time series analysis.

Summary updated

BibTeX
@inproceedings{dempster2020minirocket,
  author = {Angus Dempster and Daniel F. Schmidt and Geoffrey I. Webb},
  title = {{MiniRocket: A Very Fast (Almost) Deterministic Transform for Time Series Classification}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3447548.3467231},
}
Figure