Enhancing Anomaly Detection in Multivariate Time Series with Stacked Transformer Encoders and Adaptive Positional Embeddings

Kella Sowmya,K. Ramesh
DOI: https://doi.org/10.1007/s13369-024-09821-w
IF: 2.807
2024-12-08
Arabian Journal for Science and Engineering
Abstract:Detecting anomalies in multivariate time series data is a complex task due to the challenges of effectively representing spatio-temporal features and extracting deep, intricate patterns across both time and feature dimensions. Traditional methods often struggle to capture these relationships fully, and even transformer-based models, while promising, face limitations due to their use of a fixed number of encoders and positional embeddings, which restrict their adaptability across diverse time series contexts. In response, this paper introduces a novel approach that employs a stacked transformer encoder architecture combined with learnable positional embeddings. By using separate encoders for time and feature dimensions, the model enhances its ability to represent multivariate time series data more comprehensively. The stacked transformer encoders allow for deeper, more effective extraction of complex features, thereby improving anomaly detection performance. Additionally, the integration of fixed and learnable positional embeddings offers a versatile, context-sensitive method for encoding positional information, effectively resolving the limitations of relying solely on fixed embeddings. Rigorous evaluations on datasets such as SMD, SMAP, MSL, SWaT, and WADI demonstrate that our approach significantly outperforms baseline and state-of-the-art models, with further improvements in detection accuracy stemming from the careful selection of the optimal number of encoders and an ablation study validating the importance of learnable positional embeddings.
multidisciplinary sciences
What problem does this paper attempt to address?