MSTAR: Multi-Scale Backbone Architecture Search for Timeseries Classification

Tue M. Cao, Nhat H. Tran, Hieu H. Pham, Hung T. Nguyen, Phi Le Nguyen · DOI

Abstract

Most of the previous approaches to Time Series Classification (TSC) highlight the significance of receptive fields and frequencies while overlooking the time resolution. Hence, unavoidably suffered from scalability issues as they integrated an extensive range of receptive fields into classification models. Other methods, while having a better adaptation for large datasets, require manual design and yet not being able to reach the optimal architecture due to the uniqueness of each dataset. We overcome these challenges by proposing a novel multi-scale search space and a framework for Neural architecture search (NAS), which addresses both the problem of frequency and time resolution, discovering the suitable scale for a specific dataset. We further show that our model can serve as a backbone to employ a powerful Transformer module with both untrained and pre-trained weights. Our search space reaches the state-of-the-art performance on four datasets on four different domains while introducing more than ten highly fine-tuned models for each data.

Introduction

In the field of deep learning, Time Series Classification (TSC) has historically lacked the standardized backbones common in computer vision (e.g., ResNet). Time series data is highly heterogeneous; a heartbeat signal (ECG) requires a fundamentally different analytical scale than satellite imagery or smartphone accelerometer data. The MSTAR (Multi-Scale Time series ARchitecture search) framework addresses this by automating the discovery of optimal convolutional backbones tailored to specific datasets.

The Frequency-Time Resolution Trade-off

A fundamental challenge in TSC is the trade-off between frequency extraction and time resolution. To analyze a signal, models use various receptive fields (kernel sizes). While large kernels effectively capture low-frequency patterns, they often "blur" the time axis, sacrificing precision regarding when an event occurred. Conversely, small kernels maintain high time resolution but may miss broader periodic patterns.

The trade-off between frequency extraction and time resolution in time series filters.

Existing solutions like InceptionTime or Omni-Scale CNN attempt to manually balance these scales. However, these fixed designs often fail to reach the optimal architecture for the unique "critical frequencies" of diverse datasets. MSTAR posits that these scales should be searched for automatically rather than designed by hand.

Methodology: Neural Architecture Search via CAE

MSTAR utilizes a cell-based Neural Architecture Search (NAS) framework with a multi-scale search space. This space allows for 13 nodes per cell, incorporating operations such as convolutions (kernel sizes 1 to 39), max/average pooling, and identity connections.

To navigate this complex space efficiently, the framework employs a Convolutional Autoencoder (CAE). The CAE projects the adjacency matrix representing a potential architecture into a continuous vector space. This allows for the use of Bayesian Optimization (BO) and a neural predictor to estimate the performance of candidate architectures without training every possibility from scratch.

The Convolutional Autoencoder (CAE) architecture used to map discrete network topologies into a continuous search space.

Research indicated that a standard CAE reconstructed these architecture matrices more accurately than a Variational Autoencoder (VAE), leading to a more precise search process. Furthermore, the resulting MSTAR backbone can be paired with Vision Transformers (ViT) to leverage global contextual understanding, outperforming standard 1D-CNN/ViT combinations.

Experimental Results

The researchers evaluated MSTAR across four distinct domains: cardiology (PTB-XL), eye-tracking (EEGEyeNet), human activity recognition (Smartphone HAR), and satellite monitoring.

Key findings include:

  • State-of-the-Art Performance: MSTAR achieved top-tier results on all four datasets. Notably, on the PTB-XL ECG dataset, it reached an AUC of 0.9355, surpassing established models like IncepSE and TCN.
  • Dataset Specificity: The search process yielded four distinct architectures for the four tasks, confirming that a universal backbone is sub-optimal for time series data.
  • Efficiency: On the Smartphone HAR dataset, MSTAR achieved an F1-micro score of 0.953, outperforming specialized models such as InnoHAR.

Conclusion

MSTAR demonstrates that preserving time resolution while extracting multi-scale frequencies is critical for high-performance TSC. By automating the backbone design through a CAE-based NAS framework, MSTAR provides a scalable and highly accurate solution for diverse time series domains. Future work may involve co-searching for Transformer hyperparameters alongside the CNN backbone and expanding the operation space to include dilated convolutions or attention modules.

Summary updated

BibTeX
@misc{cao2024mstar,
  author = {Tue M. Cao and Nhat H. Tran and Hieu H. Pham and Hung T. Nguyen and Phi Le Nguyen},
  title = {{MSTAR: Multi-Scale Backbone Architecture Search for Timeseries Classification}},
  year = {2024},
  eprint = {2402.13822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13822},
}
Figure