Skip to main content
QUICK REVIEW

[Paper Review] MOSPAT: AutoML based Model Selection and Parameter Tuning for Time Series Anomaly Detection

Sourav Chatterjee, Rohan Bopardikar|arXiv (Cornell University)|May 24, 2022
Time Series Analysis and ForecastingComputer Science7 citations
TL;DR

MOSPAT proposes an AutoML framework for automated model and hyperparameter selection in time series anomaly detection, using a generative model to create synthetic labeled data in the absence of ground truth. It consistently outperforms individual algorithms across synthetic and real-world datasets, achieving superior F-scores without expert intervention.

ABSTRACT

Organizations leverage anomaly and changepoint detection algorithms to detect changes in user behavior or service availability and performance. Many off-the-shelf detection algorithms, though effective, cannot readily be used in large organizations where thousands of users monitor millions of use cases and metrics with varied time series characteristics and anomaly patterns. The selection of algorithm and parameters needs to be precise for each use case: manual tuning does not scale, and automated tuning requires ground truth, which is rarely available. In this paper, we explore MOSPAT, an end-to-end automated machine learning based approach for model and parameter selection, combined with a generative model to produce labeled data. Our scalable end-to-end system allows individual users in large organizations to tailor time-series monitoring to their specific use case and data characteristics, without expert knowledge of anomaly detection algorithms or laborious manual labeling. Our extensive experiments on real and synthetic data demonstrate that this method consistently outperforms using any single algorithm.

Motivation & Objective

  • To address the challenge of selecting optimal anomaly detection algorithms and parameters for diverse time series in large organizations without expert knowledge or labeled data.
  • To develop a scalable, automated system that enables individual users to set up effective monitoring tailored to their data characteristics.
  • To overcome the lack of ground truth in real-world time series by generating synthetic, labeled anomaly data that mimics real data distributions.
  • To demonstrate that an AutoML approach can outperform individual state-of-the-art anomaly detection algorithms across varied data types and anomaly patterns.

Proposed method

  • A generative model injects three types of anomalies—spikes, level shifts, and trend shifts—into unlabeled time series to create synthetic, labeled training data.
  • Time series features (e.g., autocorrelation, kurtosis, trend strength) are extracted to represent each time series for model input.
  • A supervised learning model is trained to predict the optimal combination of anomaly detection algorithm and hyperparameters based on these features.
  • The framework uses a curated set of 8 base algorithms (e.g., BOCPD, Outlier, Prophet, MKDetector) for evaluation and selection.
  • The system is evaluated on both synthetic data and real-world datasets from diverse domains, including human activity recognition and system monitoring.
  • Hyperparameter tuning is applied to the AutoML pipeline to further improve performance, with Bayesian optimization used in future extensions.

Experimental results

Research questions

  • RQ1Can an AutoML system effectively recommend the best anomaly detection algorithm and parameters for time series without access to ground truth?
  • RQ2How well can a generative model simulate realistic time series and anomaly patterns to enable supervised learning in the absence of labeled data?
  • RQ3Does the AutoML approach consistently outperform individual state-of-the-art anomaly detection algorithms across diverse data distributions and anomaly types?
  • RQ4To what extent does the performance of the AutoML system generalize across synthetic data, real data with injected anomalies, and real data with natural anomalies?

Key findings

  • On synthetic data, the AutoML approach achieved an F-score of 0.498 with optimized hyperparameters, significantly outperforming the next best baseline (Outlier at 0.287).
  • On real-world data with injected anomalies, AutoML achieved an F-score of 0.498, outperforming BOCPD (0.352) and MKDetector (0.468), demonstrating robustness across complex distributions.
  • On real data with natural anomalies, AutoML maintained strong performance with an F-score of 0.415 under random hyperparameter settings, outperforming all individual algorithms.
  • The generative model successfully produced synthetic data whose distribution closely matched real data, even in regions with no real data, indicating broad anomaly coverage.
  • No single base algorithm consistently outperformed others across all data types—Outlier excelled on synthetic data, BOCPD on injected real data, and MKDetector on natural real data—highlighting the need for adaptive selection.
  • AutoML consistently surpassed all individual algorithms across all evaluation scenarios, proving its effectiveness in real-world, unsupervised settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.