Unsupervised Incremental Learning with Dual Concept Drift Detection for Identifying Anomalous Sequences

Jin Li, Kleanthis Malialis, Christos G. Panayiotou, Marios M. Polycarpou

TL;DR

Researchers have developed VAE4AS, a new unsupervised framework that uses Variational Autoencoders (VAEs) to detect anomalies in streaming data. Its "secret sauce" is a dual-mechanism drift detection system that successfully distinguishes between temporary anomalous sequences and permanent shifts in data distribution (concept drift), allowing the model to adapt to new "normals" without being led astray by outliers.

What Problem Does This Paper Address?

In the real world, data isn't static. Sensors in a water network or user preferences in a recommendation engine change over time—a phenomenon known as concept drift. Most anomaly detection systems struggle here: if the data distribution shifts, the model starts flagging everything as an anomaly because it no longer matches the "old normal."

Conversely, an anomalous sequence (a continuous string of outliers, like a week-long water leak) can look a lot like concept drift. If a model mistakenly treats a long anomaly as a permanent shift, it will "learn" the anomaly as the new normal, causing its performance to tank. This paper tackles the challenge of identifying these sequences in unsupervised, non-stationary environments where labeled data is non-existent or too expensive to get.

Methods

The authors introduce VAE4AS (Variational AutoEncoder for identifying Anomaly Sequences). The architecture consists of three main pillars:

  1. Unsupervised Detection (VAE): The system uses a VAE to learn the "normal" distribution of data. It calculates a reconstruction loss; if the loss exceeds an adaptive threshold (which evolves with the data), the instance is flagged as an anomaly.
  2. Incremental Learning: The model doesn't stay frozen. It uses a sliding window of recent "normal" data to incrementally update the VAE, allowing it to follow gradual changes in the environment.
  3. Dual Concept Drift Detection (The Core Innovation): To handle abrupt changes, the authors implemented two explicit tests:
  4. DD1 (Statistical Test): It performs a Kolmogorov-Smirnov (KS) test on the VAE’s latent space (the compressed representation of data). If the distribution of these latent features shifts significantly, it triggers a "Warning" or "Alarm."
    • DD2 (Distance-based Test): It measures the Euclidean distance between current anomalous instances and a reference set of anomalies. This helps identify if the "anomalies" themselves are forming a new, consistent pattern that indicates a drift rather than just random noise.

When an "Alarm" is triggered by either test, the model discards the old VAE and trains a new one on the data collected during the "Warning" phase, effectively hitting a reset button to adapt to the new reality.

Datasets

The study evaluated VAE4AS against four synthetic and two real-world datasets:

  • Synthetic: Sea, Circle, and Sine (standard benchmarks for concept drift), plus Vib (a new time-series dataset created by the authors simulating equipment vibration).
  • Real-world: Fraud (credit card transactions) and Wafer (semiconductor manufacturing sensor data).

These datasets were specifically chosen or modified to include recurrent drifts and anomalous sequences with rates below 10%.

Key Insights and Ideas

  • Latent Space is Better for Testing: Instead of monitoring raw data (which can be high-dimensional and noisy), VAE4AS performs its statistical tests in the VAE's latent space. This captures the essential features of the data, making drift detection more robust.
  • The "Warning" Buffer: By using a "Warning" flag before a full "Alarm," the system can start buffering data that might be the new normal. If the warning turns into an alarm, the model already has the data it needs to retrain immediately.
  • Synergy is Key: The paper demonstrates that neither the KS test nor the distance test is sufficient alone. The KS test is great at catching the initial shift, while the distance test ensures the model doesn't ignore drifts that might initially look like a sequence of anomalies.

Key Results

VAE4AS was compared against several state-of-the-art methods, including strAEm++DD and iForest++.

  • Superior Robustness: While competitors' performance often crashed to zero after encountering complex drifts or long anomalous sequences, VAE4AS maintained a G-mean (a metric balancing true positive and true negative rates) above 0.7 across all datasets.
  • Lower False Alarms: In the Sea dataset, VAE4AS reduced the number of false alarms from 5 (at smaller window sizes) to 0 as the training window optimized, outperforming the baseline's stability.
  • Adaptability: The model successfully identified recurrent drifts—situations where the data distribution shifts away and then eventually returns to a previous state.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Multi-class Scenarios: The current work focuses on binary classification (normal vs. anomalous). Future iterations aim to handle scenarios with multiple types of normal or anomalous classes.
  • Dataset Diversity: While the results are promising, the authors plan to test the framework on a wider variety of datasets with even more complex drift characteristics to further validate its generalizability.
  • Parameter Sensitivity: Like many streaming algorithms, performance can be sensitive to window sizes ($W_{train}$), though the paper provides a heuristic for choosing these.

Summary updated

BibTeX
@inproceedings{li2024unsupervised,
  author = {Jin Li and Kleanthis Malialis and Christos G. Panayiotou and Marios M. Polycarpou},
  title = {{Unsupervised Incremental Learning with Dual Concept Drift Detection for Identifying Anomalous Sequences}},
  booktitle = {IJCNN},
  year = {2024},
  doi = {10.1109/ijcnn60899.2024.10649991},
}
Figure