TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning
Xiwen Chen, Peijie Qiu, Wenhui Zhu, Huayu Li, Hao Wang, Aristeidis Sotiras, Yalin Wang, Abolfazl Razi
TL;DR
TimeMIL addresses MTSC by recasting it as weakly supervised MIL, enabling pattern localization in time. It integrates a tokenized transformer with a learnable wavelet positional encoding to model temporal ordering and instance correlations, using Nyström self-attention for scalability. The method achieves state-of-the-art results across 28 datasets, with strong interpretability via attention-based time-point localization. This approach offers a principled, information-theoretic perspective on MTSC and broad potential for applications requiring localized, explainable time-series analysis.
Abstract
Deep neural networks, including transformers and convolutional neural networks, have significantly improved multivariate time series classification (MTSC). However, these methods often rely on supervised learning, which does not fully account for the sparsity and locality of patterns in time series data (e.g., diseases-related anomalous points in ECG). To address this challenge, we formally reformulate MTSC as a weakly supervised problem, introducing a novel multiple-instance learning (MIL) framework for better localization of patterns of interest and modeling time dependencies within time series. Our novel approach, TimeMIL, formulates the temporal correlation and ordering within a time-aware MIL pooling, leveraging a tokenized transformer with a specialized learnable wavelet positional token. The proposed method surpassed 26 recent state-of-the-art methods, underscoring the effectiveness of the weakly supervised TimeMIL in MTSC. The code will be available at https://github.com/xiwenc1/TimeMIL.
