arXiv:2611.01661cs.LGNov 2026

Manuscript Offprint

arXiv:2611.01661

A Hybrid Anomaly Detection Method for Multivariate Time Series

Ali Babalhavaeji, Hui Song, Mahdi Jalili

Abstract

Multivariate time series are ubiquitous in monitoring smart systems such as power plants, smart houses, and servers. These systems use multiple sensors to collect the system's status over time. Those sensors represent the status of the whole system as one entity. Anomaly detection in such smart systems is of critical importance to prevent system failure and maintain functionality. But anomaly detection in such multivariate time series data is very challenging since this type of data includes both temporal and spatial information. Capturing both of these pieces of information is important to detect anomalies. In this paper, we propose a hybrid deep learning-based anomaly detection method, which captures both temporal and spatial information. We propose to take advantage of the feature extraction capabilities of 2d convolutional network in a variational autoencoder, alongside a prediction-based deep neural network of 2d convolutional networks and a gated recurrent unit network to capture both spatial and temporal information. Experiments on public data against state-of-the-art show the potential of our method.

Keywords: Anomaly detection, Multivariate Time Series, Convolutional Neural Networks, Variational Autoencoder, Recurrent neural networks

1- Introduction

Complex systems like power plants, modern factories, smart houses, spacecrafts, server machines, robot-assisted systems, engines, etc are monitored via smart meters (sensors). These smart meters generate vast amounts of multivariate time series data, which are complex and difficult to analyse [1]. The operators of such systems need to know whether an abnormal state occurred or not. These abnormal states indicate a fault that can be very harmful, especially for critical systems like power plants and spacecrafts [2]. Previously, such monitoring used to be done by experts who supervise the system. However, the complexity of modern IT systems and the large number of sensors to monitor the system have rendered expert-based supervision useless and call for automated approaches to detect such anomalies [3]. This problem of detecting abnormal states in historical data collected by multiple sensors is called anomaly detection in multivariate time series (MTS). The problem is an active research line [4].

This problem has complex challenges. First, MTS datasets are usually highly imbalanced, i.e., the percentage of anomalies is so low that it makes it difficult to train a model that is not biased toward normal points. Second, in the real application, usually there is no label for the data, which raises the need for unsupervised methods to deal with the problem [5]. The third challenge is the dimensions of the MTS data. In such data, the features correlate with each other and correlate over time. It is very important to consider these relationships to capture the true system status. This relation between each feature and its lagged values (auto-correlation/temporal correlation), and the inter-relation of features over time (spatiotemporal correlation), is an important piece of information and should be captured. Most of the works in the literature fail to capture all types of correlation for MTS anomaly detection explicitly. The other challenge is the stochastic nature of time series data, which further complicates anomaly detection for MTS data.

The high complexity of MTS data and the weakness of traditional methods due to the curse of dimensionality necessitate the need for deep learning-based methods for the problem. Deep-learning-based methods are categorised as prediction-based and reconstruction-based. Hundman et al [2] proposed a prediction-based method that uses Long-Short Term Memory (LSTM). LSTM proved successful in predicting time series data. Their method uses prediction error to detect anomalies. They apply their method to MTS collected by satellite devices. Tariq et al [6] propose to use a convolutional LSTM integrated with probabilistic Principle Component Analysis (PCA) as a prediction-based method.

Ikeda et al [7] developed a variational auto-encoder (VAE) for the problem. They use a multi-layer perceptron (MLP) as the building blocks of the VAE. The encoder uses a multivariate Gaussian with a diagonal covariance. The VAE is trained on normal data, and then they use reconstruction error to detect anomalies. Another line of work based on reconstruction is inspired by Generative Adversarial Networks (GAN). GAN is designed to train generative AI models by adversarial training. It proved successful in image processing to generate realistic images [8]. Li et al [1] propose a GAN-based anomaly detection for MTS data called MAD-GAN. They use LSTM for both the generator and discriminator components of the GAN. The generator builds fake MTS and passes them to the discriminator to detect fake (generated MTS) from real MTS. Although effective, GAN suffers from mode collapse and non-convergence issues [9]. Audibert et al [3] propose Unsupervised Anomaly Detection (USAD) to address these issues in GAN-based methods. They developed an Auto-Encoder (AE) architecture that consists of one encoder component and two decoder components (AE1AE_1 and AE2AE_2). In the first stage, the encoder and two decoders are trained to reconstruct the normal data. In the second stage, in an adversarial learning manner, AE2AE_2 learns to distinguish between real data and reconstructed data by AE1AE_1, and AE1AE_1 is trained to fool AE2AE_2 at the discrimination task. They use MLP for building blocks, and the latent space of their AE is not stochastic.

Zhang et al [10] propose a Multi-Scale Convolutional Recurrent Encoder-Decoder (MSCRED). It first constructs signature matrices for each time step. Then, a convolutional encoder captures spatial correlation, and an attention-based convolutional LSTM captures temporal correlations. Finally, a convolutional decoder is used to reconstruct the MTS. Su et al [11] propose OmniAnomaly, a VAE-based method that uses a Gated Recurrent Unit (GRU) network for building blocks of the VAE. Their method aims to capture both the temporal and stochastic nature of MTS. They use stochastic variables alongside the planar Normalizing Flows technique to learn the non-Gaussian posterior distribution of the latent space in VAE.

Previous works fail to consider all types of correlation in MTS. In this paper, we propose HEADMTS (Hybrid Ensemble Anomaly Detection Multivariate Time Series), which is a hybrid of prediction-based and reconstruction-based methods. It includes two main components. The main building blocks of these components are 2D-convolutional networks that we believe have the potential to capture correlation between different time series. The first component captures temporal correlation, and the second captures spatio-temporal correlations explicitly. We use a hybrid loss function to train the model. Our contributions are as follows:

  • We propose to capture correlations between sensors explicitly using separate components.
  • We propose a hybrid anomaly detection method which uses 2d-CNN as the building blocks
  • We provide a comparison in terms of all important metrics.

The rest of this paper is organized as follows. In Section 2, we introduce the problem definition and the method. Section 3 includes data description, data analysis, results, and discussion. The results and discussion section includes the performance, ablation study, and the convergence rate of the method. This paper is concluded in Section 4.