[Paper Review] RLAD: Time Series Anomaly Detection through Reinforcement Learning and Active Learning
RLAD is a novel semi-supervised time series anomaly detection framework that combines deep reinforcement learning (DRL) and active learning to achieve state-of-the-art performance with minimal labeled data. It dynamically adapts to non-stationary data and outperforms all compared unsupervised and semi-supervised methods, achieving up to 4.4x higher F1-score than the best unsupervised baseline with only 0.1% labels.
We introduce a new semi-supervised, time series anomaly detection algorithm that uses deep reinforcement learning (DRL) and active learning to efficiently learn and adapt to anomalies in real-world time series data. Our model - called RLAD - makes no assumption about the underlying mechanism that produces the observation sequence and continuously adapts the detection model based on experience with anomalous patterns. In addition, it requires no manual tuning of parameters and outperforms all state-of-art methods we compare with, both unsupervised and semi-supervised, across several figures of merit. More specifically, we outperform the best unsupervised approach by a factor of 1.58 on the F1 score, with only 1% of labels and up to around 4.4x on another real-world dataset with only 0.1% of labels. We compare RLAD with seven deep-learning based algorithms across two common anomaly detection datasets with up to around 3M data points and between 0.28% to 2.65% anomalies.We outperform all of them across several important performance metrics.
Motivation & Objective
- To address the challenge of limited labeled data in time series anomaly detection, especially in non-stationary real-world environments.
- To reduce reliance on manual hyperparameter tuning and strong prior assumptions about data distribution.
- To develop a dynamic, adaptive model that improves over time through interaction with data and selective labeling.
- To outperform existing unsupervised and semi-supervised deep learning methods in anomaly detection accuracy with minimal labeling.
Proposed method
- RLAD employs a deep Q-network (DQN) agent to select the most informative samples for labeling in a streaming time series setting.
- It uses active learning to query only the most uncertain or informative samples, minimizing labeling effort.
- The model integrates label propagation to refine predictions using both labeled and unlabeled data.
- It leverages a reward function based on F1-score to guide the DRL agent toward optimal labeling decisions.
- The framework is trained end-to-end with a combination of reconstruction loss from a variational autoencoder and mutual information maximization for representation learning.
- The agent continuously adapts its policy based on feedback from the environment, enabling long-term adaptation to concept drift.
Experimental results
Research questions
- RQ1Can deep reinforcement learning with active learning significantly reduce the number of required labels for effective time series anomaly detection?
- RQ2How does RLAD perform compared to state-of-the-art unsupervised and semi-supervised anomaly detection methods under low-label regimes?
- RQ3To what extent can RLAD adapt to non-stationary data distributions without retraining?
- RQ4Does the integration of DRL and active learning lead to faster convergence and better generalization than existing methods?
Key findings
- With only 1% labeled data, RLAD achieved a 59% higher F1-score than the best-performing unsupervised method (SPOT) on the A1Benchmark dataset.
- On the KPI dataset, RLAD achieved an F1-score of 0.778 with just 0.1% labeled samples, outperforming Deep-SAD (F1 = 0.128) by over 6x.
- RLAD outperformed the best unsupervised method by a factor of 1.58 in F1-score on the A2Benchmark dataset with 1% labels.
- RLAD converged in as few as 300 episodes on the KPI dataset, requiring only 1500 (0.05%) and 3000 (0.1%) labeled samples for training.
- On the Yahoo dataset, RLAD achieved near-perfect F1-scores of 0.8 (10% labels) and 1.0 (10% labels) on A1Benchmark and A2Benchmark, respectively.
- RLAD surpassed the state-of-the-art semi-supervised method Deep-SAD by up to 10x in F1-score across experiments, even with a fraction of the labels.
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.