[Paper Review] VELC: A New Variational AutoEncoder Based Model for Time Series Anomaly Detection
VELC introduces a VAE with a re-Encoder and a latent constraint network to improve time series anomaly detection by evaluating reconstruction and latent-space discrepancies across two spaces, outperforming baselines on multiple datasets.
Anomaly detection is a classical but worthwhile problem, and many deep learning-based anomaly detection algorithms have been proposed, which can usually achieve better detection results than traditional methods. In view of reconstruct ability of the model and the calculation of anomaly score, this paper proposes a time series anomaly detection method based on Variational AutoEncoder model(VAE) with re-Encoder and Latent Constraint network(VELC). In order to modify reconstruct ability of the model to prevent it from reconstructing abnormal samples well, we add a constraint network in the latent space of the VAE to force it generate new latent variables that are similar with that of training samples. To be able to calculate anomaly score in two feature spaces, we train a re-encoder to transform the generated data to a new latent space. For better handling the time series, we use the LSTM as the encoder and decoder part of the VAE framework. Experimental results of several benchmarks show that our method outperforms state-of-the-art anomaly detection methods.
Motivation & Objective
- Motivate robust unsupervised anomaly detection for high-dimensional time series.
- Develop a VAE-based framework that enhances reconstruction accuracy for normal data while limiting abnormal sample reconstruction.
- Enable anomaly scoring in both original and latent feature spaces to improve detection accuracy.
- Incorporate a constraint network in latent space to prevent over-generalization to unseen anomalies.
Proposed method
- Use a bidirectional LSTM encoder/decoder within a VAE to model normal time series.
- Introduce a re-Encoder that maps reconstructed data to a new latent space and produce new latent variables.
- Add a constraint network in latent space that combines normal latent vectors via a sparse, cosine-similarity-based scheme to constrain reconstruction of anomalies.
- Define a multi-term loss L_VELC = L_rec_x + L_KL1 + L_lat + L_KL2 to train the model on normal data.
- Compute anomaly score A(x) as a weighted sum of reconstruction error and latent-space dissimilarity: A(x)=alpha||x−x'||1 + beta||z'−re_z'||1, normalized to [0,1].
- Leverage two feature spaces (original and latent) for anomaly scoring to improve discrimination.
Experimental results
Research questions
- RQ1Does the VELC framework improve anomaly detection performance over state-of-the-art methods on diverse time series datasets?
- RQ2How does incorporating a re-Encoder and latent constraint network influence reconstruction and latent-space error for normal versus abnormal samples?
- RQ3Can dual-space anomaly scoring (original and latent) yield more accurate detection than single-space scoring?
- RQ4What are the effects of the anomaly-score parameter settings (alpha, beta) on overall performance?
Key findings
- VELC outperforms several baselines (AnoGAN, ALAD, MLP-VAE, Isolation Forest) across ten datasets.
- On KDD99, VELC achieves an AUC of 0.958, beating the next best method (ANOGAN) at 0.887.
- Across datasets, VELC shows approximately 1%–5% relative gains over baselines.
- The anomaly-score parameter setting around alpha=0.6, beta=0.4 yields strong average performance.
- Latent-space constraints help prevent over-reconstruction of unseen anomalies, improving detection robustness.
- Visualizations indicate normal samples are reconstructed smoothly, while anomalies exhibit larger reconstruction and latent-space discrepancies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.