S-Rocket: Selective Random Convolution Kernels for Time Series Classification

Hojjat Salehinejad, Yang Wang, Yuanhao Yu, Jin Tang, Shahrokh Valaee · DOI

Introduction

Time Series Classification (TSC) is a foundational task in modern data analytics, spanning applications from medical diagnostics (ECG monitoring) to industrial IoT sensor analysis. Recently, the Rocket (Random Convolutional Kernel Transform) classifier has emerged as a state-of-the-art solution due to its exceptional computational speed. Unlike traditional deep learning models that require extensive training of convolutional filters, Rocket utilizes a large bank of randomly generated kernels to extract features.

However, this "shotgun approach" leads to significant overparameterization. A standard Rocket implementation typically employs 10,000 random kernels, many of which are redundant or provide negligible discriminative power. This high dimensionality poses challenges for deployment on resource-constrained "edge" devices, such as wearables or remote sensors. S-Rocket (Selective Rocket) addresses this by introducing a pruning framework designed to identify and retain only the most impactful kernels.

The S-Rocket Methodology

The S-Rocket framework transforms kernel selection into a combinatorial optimization problem. The process is structured into three distinct phases:

  1. Pre-training: A baseline Rocket model is trained using the full set of 10,000 random kernels to establish a performance ceiling.
  2. Optimization: This is the core innovation of S-Rocket. The authors employ Binary Differential Evolution (BDE), a population-based evolutionary algorithm, to evolve a "state vector." This vector acts as a binary mask (1s and 0s) determining which kernels are active. The objective function balances classification accuracy against the number of selected kernels, driving the model toward a sparse yet effective configuration.
  3. Post-training: After identifying the optimal subset, the model is retrained from scratch using only the selected kernels and a Ridge regression classifier.
The three-step S-Rocket pipeline: training, optimization via BDE, and post-training.

Feature Extraction and Redundancy

The efficacy of Rocket stems from its ability to map input time series into a high-dimensional feature space using Partial Positive Values (PPVs). As shown in the architecture below, the input signal is convolved with random 1-D kernels, and the proportion of positive values in the resulting feature maps is calculated.

Overview of the random convolution kernel architecture and the resulting PPV features for a UCR dataset sample.

The research reveals a surprising level of redundancy in this random transform. By applying S-Rocket, the authors demonstrate that the "essence" of the data can often be captured by a fraction of the original kernels. Principal Component Analysis (PCA) of the pruned feature space confirms that class separability is maintained even after aggressive pruning, proving that the evolutionary search successfully isolates the most informative random projections.

Experimental Evaluation and Results

S-Rocket was rigorously tested on 30 datasets from the UCR Time Series Archive, the industry standard for TSC benchmarking. The results highlight the framework's ability to "trim the fat" without sacrificing performance:

  • Massive Compression: On average, S-Rocket pruned over 60% of the kernels. In extreme cases, models achieved comparable accuracy using as little as 1% (100 kernels) of the original set.
  • Accuracy Retention: Across the diverse UCR benchmarks, S-Rocket maintained an average accuracy of 0.83, nearly matching the 0.84 achieved by the unpruned Rocket model.
  • Inference Speedup: The reduction in kernel count translates directly to faster inference. For instance, on the ArrowHead dataset, inference time was reduced from 0.050s to 0.008s—a 6x improvement.

Conclusion

S-Rocket provides a robust solution for deploying high-performance time series classifiers on low-power hardware. By replacing gradient-based pruning with evolutionary optimization, it effectively navigates the non-differentiable space of random kernel selection. While the optimization phase introduces a one-time computational cost during training, the resulting models are significantly leaner, faster, and ready for real-time edge applications.

Summary updated

BibTeX
@misc{salehinejad2022s,
  author = {Hojjat Salehinejad and Yang Wang and Yuanhao Yu and Jin Tang and Shahrokh Valaee},
  title = {{S-Rocket: Selective Random Convolution Kernels for Time Series Classification}},
  year = {2022},
  eprint = {2203.03445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03445},
}
Figure