TL;DR
This paper introduces TSCMamba, a novel multi-view learning approach for time series classification (TSC) that leverages the power of Mamba's state-space models. By integrating spectral and temporal features with a new "tango scanning" mechanism, TSCMamba achieves state-of-the-art performance while being computationally efficient.
What Problem Does This Paper Address?
Multivariate Time Series Classification (TSC) is crucial across many domains, but existing methods struggle with key time series properties like shift equivariance and inversion invariance. They also face challenges in effectively fusing diverse features (spectral, temporal, local, global), modeling long-range dependencies efficiently, and maintaining computational scalability. Many deep learning models either focus too narrowly on specific feature types or suffer from high computational costs (e.g., Transformers).
Methods
TSCMamba tackles these issues with a multi-pronged approach:
- Multi-View Feature Extraction:
- Spectral Features: Utilizes Continuous Wavelet Transform (CWT) with a Morlet wavelet to capture time-frequency representations that are shift-equivariant.
- Temporal Features: Employs two methods:
- Local Features: Uses the ROCKET approach for unsupervised extraction of local temporal features.
- Global Features: Leverages a simple Multi-Layer Perceptron (MLP) to capture global temporal patterns.
- Adaptive Fusion: A "switch gate" adaptively fuses the spectral features with either the local or global temporal features, based on which is more discriminative for the given input. This fused representation is then fed into Mamba.
- Mamba for Sequence Modeling: Integrates Mamba, a state-space model known for its linear complexity and efficiency in handling long sequences and long-range dependencies.
- Tango Scanning: A novel scanning scheme for Mamba that processes both the forward and reversed sequences within a single Mamba block. This mechanism enhances inter-token relationships and leverages inversion invariance, leading to improved robustness and generalization without significant computational overhead. It can be applied in both time and channel dimensions.
Datasets
The paper evaluates TSCMamba on two sets of benchmark datasets:
- 10 Benchmark Datasets: These are the same datasets used by TimesNet [45].
- Additional 20 Datasets: These are from the TSLANet [8] and UEA archive [53], providing a comprehensive evaluation across diverse real-world time series classification challenges.
Key Insights and Ideas
- Shift Equivariance is Key: The paper strongly emphasizes the importance of shift equivariance for robust time series classification, enabling pattern recognition regardless of exact temporal positions.
- Complementary Features Matter: Effectively combining spectral (CWT) with temporal (ROCKET, MLP) features provides richer contexts than relying on a single feature type.
- Adaptive Fusion is Crucial: The "switch gate" mechanism for fusing local/global temporal features with spectral features is a key innovation, allowing the model to adapt to the dominant patterns in the data.
- Tango Scanning for Inversion Invariance: The novel tango scanning mechanism is a clever way to exploit inversion invariance, effectively doubling the data's utility and improving robustness without the computational cost of full bidirectional processing.
- Mamba's Efficiency for Long Sequences: Mamba's linear complexity makes it a powerful choice for handling the long-range dependencies common in time series data, outperforming traditional Transformer models in this regard.
Key Results
- State-of-the-Art Performance: TSCMamba achieves significant improvements over existing SOTA models.
- Average accuracy improvements of 4.01-6.45% over the existing best baseline (TSLANet) on the 10 benchmark datasets.
- Average accuracy improvements of 7.93% over the second-best baseline (TimesNet) on the same datasets.
- Computational Efficiency: TSCMamba demonstrates substantial reductions in FLOPs compared to other top-performing methods, making it more practical for real-world applications.
- Robustness and Generalization: The tango scanning mechanism and multi-view fusion contribute to improved robustness and generalization, as shown by consistent performance across diverse datasets.
- Outperforms Regular Mamba: TSCMamba consistently outperforms a standard Mamba implementation, highlighting the benefits of its proposed modifications.
Limitations and Future Work
- Limitations:
- The fusion stage produces a tensor of size B×D×3X, which might increase computational requirements.
- While CWT is used for spectral features, other transformations might offer complementary information.
- Future Work:
- Incorporating self-supervised learning techniques.
- Extending the framework to multi-task learning beyond classification.
- Evaluating TSCMamba on more complex time-series datasets from various domains.
Summary updated