Detach-ROCKET: sequential feature selection for time series classification with random convolutional kernels

Gonzalo Uribarri, Federico Barone, Alessio Ansuini, Erik Fransén

Introduction

Time Series Classification (TSC) is a foundational task in modern data science, with applications ranging from medical diagnostics and anomaly detection to financial forecasting. While deep learning architectures like Recurrent Neural Networks (RNNs) or InceptionTime offer high accuracy, they are often computationally intensive and slow to train.

Recently, the ROCKET (RandOm Convolutional KErnel Transform) model emerged as a highly efficient alternative. ROCKET achieves state-of-the-art accuracy by generating a massive pool of random convolutional kernels (typically 20,000 to 80,000) to extract features, followed by a simple linear classifier. However, this efficiency comes at a cost: the vast majority of these random kernels are redundant or irrelevant. This paper introduces Detach-ROCKET, a pruning methodology designed to strip away this bloat, resulting in leaner, faster, and more interpretable models.

The Challenge of Random Kernels

The primary strength of ROCKET—its reliance on a massive number of arbitrary features—is also its primary weakness. Because the kernels are generated randomly, the feature space is inherently noisy. This redundancy leads to several issues:

  1. Memory Overhead: Storing and processing tens of thousands of features is memory-intensive.
  2. Inference Latency: Large feature sets slow down the classification of new data points.
  3. Overfitting: The inclusion of irrelevant "noise" features can allow the model to memorize training data rather than learning generalizable patterns.

Existing feature selection methods, such as Lasso or standard stepwise regression, are often too computationally expensive to handle the scale of ROCKET’s feature sets.

Methodology: Sequential Feature Detachment (SFD)

The authors propose Sequential Feature Detachment (SFD), a backward-stepwise selection algorithm optimized for massive feature sets. This process transforms a standard ROCKET model into a Detach-ROCKET model through an iterative three-step cycle:

  1. Train & Rank: A ridge classifier is trained on the current set of active features. Features are then ranked based on the absolute value of their learned coefficients, which serves as a proxy for their importance to the classification decision.
  2. Prune: The algorithm discards a fixed percentage (defaulting to 5%) of the lowest-ranked features.
  3. Iterate: The process repeats, training a new classifier on the reduced feature pool until a target size or an optimal performance threshold is reached.

To automate this, the authors developed an end-to-end optimization procedure. By evaluating pruned models on a validation set at each step, the system identifies the "sweet spot" that maximizes accuracy while minimizing the feature count.

Experimental Results

The methodology was rigorously tested using the UCR Time Series Classification Archive, specifically focusing on 42 binary classification datasets.

Massive Compression and Efficiency

Detach-ROCKET demonstrated the ability to discard up to 90% of original features while maintaining or even slightly improving accuracy (an average relative gain of +0.2% across the UCR datasets). On the FordB dataset—the largest binary dataset in the UCR archive—the results were even more dramatic. The model size was reduced by 98.9% (from 20,000 features down to just 228). Despite this extreme compression, test accuracy increased by 0.6%, and overfitting was significantly reduced (training set accuracy dropped from 99.8% to 96.5%, indicating better generalization).

Comparison with Competitors

When compared to other ROCKET pruning methods like S-ROCKET and POCKET, Detach-ROCKET proved superior in efficiency. While competing methods typically retain 35–39% of features, Detach-ROCKET achieves comparable accuracy using only 10% of the features. Furthermore, the SFD process is computationally efficient, adding only about 19% to the total training time—a negligible cost compared to the resulting gains in deployment speed and memory savings.

Discussion and Key Insights

The "Lottery Ticket" Hypothesis

The success of Detach-ROCKET supports a variation of the "Lottery Ticket Hypothesis" in the context of random kernels. By generating 20,000 kernels, the model essentially "buys" enough tickets to ensure it randomly creates the few hundred "winning" kernels perfectly suited for the specific task. SFD acts as the mechanism to find those winning tickets.

Pruning as Regularization

One of the most significant findings is that pruning acts as a form of regularization. By removing noisy and highly correlated features, the model is forced to rely on the most robust signals in the data. This explains why pruned models often outperform their full-sized counterparts on unseen test data.

Unlocking Interpretability

Standard ROCKET models are often viewed as "black boxes" due to the sheer volume of features. By reducing the feature set to a manageable size, researchers can analyze the specific properties of the surviving kernels—such as their dilation or activation timing. This allows for a physical interpretation of which characteristics of the time series (e.g., specific frequencies or temporal patterns) are driving the classification.

Conclusion

Detach-ROCKET represents a significant step forward in making time series classification more practical for resource-constrained environments. By proving that 99% of a model's features can often be discarded without a loss in performance, the authors provide a blueprint for creating models that are not only faster and smaller but also more robust and interpretable. Future work will look toward applying these techniques to multi-class problems and more complex, non-linear classifiers.

Summary updated

BibTeX
@article{uribarri2024detach,
  author = {Gonzalo Uribarri and Federico Barone and Alessio Ansuini and Erik Fransén},
  title = {{Detach-ROCKET: sequential feature selection for time series classification with random convolutional kernels}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-024-01062-7},
}
Figure