EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Improving position encoding of transformers for multivariate time series classification

Navid Mohammadi Foumani, Chang Wei Tan, Geoffrey I. Webb, Mahsa Salehi

Data Mining and Knowledge Discovery · 2024-01 · 38 (1) · 22-48

DOI: 10.1007/s10618-023-00948-2 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Data Mining and Knowledge Discovery, online erschienen am 05.09.2023. Verfasst von Navid Mohammadi Foumani und 3 weiteren Autor:innen. Die Arbeit wurde bisher 253-mal zitiert (Crossref) und nennt 34 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Monash University.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Transformers have demonstrated outstanding performance in many applications of deep learning. When applied to time series data, transformers require effective position encoding to capture the ordering of the time series data. The efficacy of position encoding in time series analysis is not well-studied and remains controversial, e.g., whether it is better to inject absolute position encoding or relative position encoding, or a combination of them. In order to clarify this, we first review existing absolute and relative position encoding methods when applied in time series classification. We then proposed a new absolute position encoding method dedicated to time series data called time Absolute Position Encoding (tAPE). Our new method incorporates the series length and input embedding dimension in absolute position encoding. Additionally, we propose computationally Efficient implementation of Relative Position Encoding (eRPE) to improve generalisability for time series. We then propose a novel multivariate time series classification model combining tAPE/eRPE and convolution-based input encoding named ConvTran to improve the position and data embedding of time series data. The proposed absolute and relative position encoding methods are simple and efficient. They can be easily integrated into transformer blocks and used for downstream tasks such as forecasting, extrinsic regression, and anomaly detection. Extensive experiments on 32 multivariate time-series datasets show that our model is significantly more accurate than state-of-the-art convolution and transformer-based models. Code and models are open-sourced at https://github.com/Navidfoumani/ConvTran .

Förderung

  • Monash University

Zitieren

APA

Foumani, N. M., Tan, C. W., Webb, G. I., & Salehi, M. (2024). Improving position encoding of transformers for multivariate time series classification. Data Mining and Knowledge Discovery, 38(1), 22-48. https://doi.org/10.1007/s10618-023-00948-2

Vancouver

Foumani NM, Tan CW, Webb GI, Salehi M. Improving position encoding of transformers for multivariate time series classification. Data Mining and Knowledge Discovery. 2024;38(1):22-48. doi:10.1007/s10618-023-00948-2

BibTeX
@article{Foumani2024,
  author = {Foumani, Navid Mohammadi and Tan, Chang Wei and Webb, Geoffrey I. and Salehi, Mahsa},
  title = {Improving position encoding of transformers for multivariate time series classification},
  journal = {Data Mining and Knowledge Discovery},
  year = {2024},
  volume = {38},
  number = {1},
  pages = {22--48},
  doi = {10.1007/s10618-023-00948-2}
}
Kostenlos starten →