AdaFSNet: Time Series Classification Based on Convolutional Network with a Adaptive and Effective Kernel Size Configuration

Haoxiao Wang, Bo Peng, Jianhua Zhang, Cheng Xu · DOI

Abstract

Time series classification is one of the most critical and challenging problems in data mining, existing widely in various fields and holding significant research importance. Despite extensive research and notable achievements with successful real-world applications, addressing the challenge of capturing the appropriate receptive field (RF) size from one-dimensional or multi-dimensional time series of varying lengths remains a persistent issue, which greatly impacts performance and varies considerably across different datasets. In this paper, we propose an Adaptive and Effective Full-Scope Convolutional Neural Network (AdaFSNet) to enhance the accuracy of time series classification. This network includes two Dense Blocks. Particularly, it can dynamically choose a range of kernel sizes that effectively encompass the optimal RF size for various datasets by incorporating multiple prime numbers corresponding to the time series length. We also design a TargetDrop block, which can reduce redundancy while extracting a more effective RF. To assess the effectiveness of the AdaFSNet network, comprehensive experiments were conducted using the UCR and UEA datasets. Our model surpassed baseline models in terms of classification accuracy, underscoring the AdaFSNet network's efficiency and effectiveness in handling time series classification tasks.

Introduction

In Time Series Classification (TSC), the "receptive field" (RF)—the window of time the model "sees" at once—is a critical hyperparameter. If the RF is too small, the model misses long-term patterns; if it’s too large, it gets bogged down in noise and redundant computation. The challenge is that the "correct" RF varies wildly between datasets, such as a heartbeat signal versus a stock market trend. Traditionally, researchers had to manually tune kernel sizes or use computationally expensive search algorithms. AdaFSNet aims to eliminate this guesswork by creating a network that adaptively captures features across all relevant scales.

Methodology

The authors introduce the Adaptive and Effective Full-Scope Convolutional Neural Network (AdaFSNet). Its architecture is designed to automatically determine the optimal receptive field using a "full-scope" approach.

AdaFSNet Architecture and TargetDrop Module

The architecture is built on three main pillars:

  1. The OS-Block (Omni-Scale Block): Inspired by Goldbach’s conjecture, this block uses a set of prime numbers as kernel sizes. By combining these prime-sized kernels across layers, the network can theoretically encompass any integer-sized receptive field, ensuring "full-scope" coverage of the data.
  2. TargetDrop Module: To prevent the "full-scope" approach from becoming computationally bloated, the authors designed an attention-based dropout layer. It calculates channel-wise relevance and selectively identifies the most effective channels for capturing temporal information, dropping redundant paths to focus model capacity.
  3. Dense & Residual Connections: The network integrates dense blocks and residual connections to help the model learn complex feature representations while maintaining stable gradients during training.

Experimental Setup

The model was evaluated on the gold standards of the field:

  • UCR Archive: 34 one-dimensional (univariate) time series datasets covering diverse domains like medicine, entomology, and finance.
  • UEA Archive: 21 multi-dimensional (multivariate) time series datasets. These benchmarks represent a broad spectrum of signal lengths and complexities, providing a robust test for the model's adaptive capabilities.

Results and Discussion

The Receptive Field Puzzle

A key insight from the study is the diminishing returns of RF size. While increasing the RF size initially boosts accuracy, there is a clear "sweet spot." Beyond a certain point, a larger RF only increases computational demand without improving performance, as demonstrated in the FiftyWords dataset analysis.

Impact of Receptive Field Size on Test Accuracy

Performance Benchmarks

AdaFSNet consistently outperformed established baselines like DTW, ROCKET, and InceptionTime:

  • UCR Datasets: In a comparison across 34 datasets, the fine-tuned version (AdaFSNet-FT) achieved the best performance in 19 cases.
  • UEA Datasets: On multivariate data, it secured the top accuracy on 12 out of 23 datasets.

The model showed robust generalization across both multi-view (complex) and sparse-view (simple) scenarios, maintaining high accuracy while keeping computational requirements manageable.

Conclusion

AdaFSNet reduces the need for manual kernel tuning by leveraging prime-number kernel sizes and a specialized attention mechanism. While the architecture is highly adaptive, fine-tuning still provides a significant performance boost on specific complex datasets. Future work could explore further automating the selection of the "largest prime number" based on input length or extending this approach to 2D signals like spectrograms.

Summary updated

BibTeX
@misc{wang2024adafsnet,
  author = {Haoxiao Wang and Bo Peng and Jianhua Zhang and Cheng Xu},
  title = {{AdaFSNet: Time Series Classification Based on Convolutional Network with a Adaptive and Effective Kernel Size Configuration}},
  year = {2024},
  eprint = {2404.18246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.18246},
}
Figure