TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning

Xiwen Chen, Peijie Qiu, Wenhui Zhu, Huayu Li, Hao Wang +3 more
2/12/2026

No official code found. Best implementation: xiwenc1/TimeMIL (74 stars, last commit 2024-11-03).

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.

View on arXivView PDF

Code Implementations(1)

xiwenc1/TimeMILCommunity100%

The code for the paper: TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning

747PythonMay 6, 20241 years ago

Similar Papers

Cite this paper

@article{chen2026timemil,
  title  = {TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning},
  author = {Xiwen Chen and Peijie Qiu and Wenhui Zhu and Huayu Li and Hao Wang and Aristeidis Sotiras and Yalin Wang and Abolfazl Razi},
  year   = {2026},
  eprint = {2405.03140},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.03140},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.03140.svg)](https://codeofpaper.com/paper/2405.03140)

Discussion