Abstract
Time series shapelets are discriminative sub-sequences and their similarity to time series can be used for time series classification. Initial shapelet extraction algorithms searched shapelets by complete enumeration of all possible data sub-sequences. Research on shapelets for univariate time series proposed a mechanism called shapelet learning which parameterizes the shapelets and learns them jointly with a prediction model in an optimization procedure. Trivial extension of this method to multivariate time series does not yield very good results due to the presence of noisy channels which lead to overfitting. In this paper we propose a shapelet learning scheme for multivariate time series in which we introduce channel masks to discount noisy channels and serve as an implicit regularization.
Introduction
Time series classification is a critical task in domains ranging from medical diagnostics to gesture recognition. A powerful approach involves identifying shapelets—short, representative sub-sequences that characterize specific classes. While effective for univariate data, extending shapelet learning to multivariate time series (MTS) presents a significant challenge: noise. In high-dimensional sensor data, many channels may be irrelevant or purely noisy. Standard models that treat all channels equally often overfit to this noise, degrading classification accuracy.
Methodology
This research builds upon the Learning Time-Series Shapelets (LTS) framework, transforming shapelet discovery into a continuous optimization problem. The core innovation is the introduction of Channel Masks ($\mu$), which act as learnable weights for each data channel.
Joint Optimization
The model utilizes Stochastic Gradient Descent (AdaGrad) to simultaneously optimize three components:
- Shapelet Patterns: The actual sub-sequence values.
- Classification Weights: The importance of each shapelet for the final prediction.
- Channel Masks: Weights that scale the contribution of each channel during distance calculations.
The ReLU Advantage
The authors found that using a Rectified Linear Unit (ReLU) activation for the masks significantly outperformed the Sigmoid function. While Sigmoid squashes values into a narrow range, ReLU allows informative channels to have significantly higher weights while effectively zeroing out noisy ones. This creates a sparse, interpretable selection of relevant sensors.
Experimental Evaluation
Synthetic Dataset
To test the masking mechanism, the researchers created a synthetic dataset with 40 channels. Only the first two channels ($X_1$ and $X_2$) contained predictive patterns (A-F), while the remaining 38 were filled with random noise.
The classification logic was defined by a joint probability distribution, where specific combinations of patterns in the two informative channels determined the class label $Y$.
Real-World Benchmarks
The method was also evaluated on 9 real-world datasets from the UCR and UCI repositories, including CharacterTrajectories, CMU MOCAP, and ECG data, representing a wide variety of temporal patterns and channel counts.
Results and Key Insights
- Noise Robustness: On the synthetic dataset, the masked approach achieved a perfect 0.000 error rate, compared to 0.195 for the unmasked version. The model successfully learned to ignore the 38 noisy channels.
- State-of-the-Art Performance: The proposed method outperformed the standard multivariate shapelet approach on all tested datasets and beat the leading SMTS (Symbolic Representation for Multivariate Timeseries) baseline on 6 out of 9 real-world benchmarks.
- Implicit Regularization: By discounting irrelevant channels, the masks serve as a form of regularization that prevents the model from finding spurious correlations in noisy data streams.
- Dynamic Weighting: Unlike static feature selection, these masks are learned per shapelet, allowing the model to focus on different sensor groups for different temporal patterns.
Conclusion
Channel masking provides a robust solution to the overfitting problems inherent in multivariate shapelet learning. By allowing the model to automatically filter out noise through learnable ReLU-based masks, this approach achieves superior accuracy and better interpretability. Future work may involve integrating these masking layers into deep learning architectures to further enhance multivariate temporal analysis.
Summary updated