[Paper Review] Is it worth it? Comparing six deep and classical methods for unsupervised anomaly detection in time series
This study compares six unsupervised anomaly detection methods—three classical (RRCF, MDI, MERLIN) and three deep learning (AE, GANF, TranAD)—on the UCR Anomaly Archive. Results show classical methods, especially MDI and MERLIN, outperform deep learning models across diverse anomaly types, challenging the assumption that deeper models yield superior performance despite reduced interpretability.
Detecting anomalies in time series data is important in a variety of fields, including system monitoring, healthcare, and cybersecurity. While the abundance of available methods makes it difficult to choose the most appropriate method for a given application, each method has its strengths in detecting certain types of anomalies. In this study, we compare six unsupervised anomaly detection methods of varying complexity to determine whether more complex methods generally perform better and if certain methods are better suited to certain types of anomalies. We evaluated the methods using the UCR anomaly archive, a recent benchmark dataset for anomaly detection. We analyzed the results on a dataset and anomaly type level after adjusting the necessary hyperparameters for each method. Additionally, we assessed the ability of each method to incorporate prior knowledge about anomalies and examined the differences between point-wise and sequence-wise features. Our experiments show that classical machine learning methods generally outperform deep learning methods across a range of anomaly types.
Motivation & Objective
- To evaluate whether the increased complexity of deep learning models justifies their reduced interpretability compared to classical methods in unsupervised time series anomaly detection.
- To identify which anomaly detection methods are best suited for specific types of anomalies, given the lack of a universal method.
- To assess the impact of feature representation (point-wise vs. subsequence-wise) and hyperparameter tuning on method performance.
- To enhance the UCR Anomaly Archive by annotating 16 distinct anomaly types for more nuanced benchmarking.
- To provide a fair, comprehensive comparison under standardized experimental conditions using hyperparameter tuning and a unified evaluation protocol.
Proposed method
- The study evaluates six state-of-the-art unsupervised anomaly detection methods: RRCF (isolation forest-based), MDI (maximally divergent intervals), MERLIN (density-based), AE (autoencoder), GANF (graph-augmented normalizing flows), and TranAD (transformer-based).
- All methods are evaluated on the UCR Anomaly Archive, a benchmark dataset of 250 univariate time series from four domains: medicine, industry, biology, and meteorology.
- The authors perform extensive hyperparameter tuning using Bayesian optimization for GANF and other methods, with default values used only when no prior tuning was available.
- Anomaly detection performance is measured using F1-score and UCR score, with results analyzed both at the dataset level and across 16 annotated anomaly types.
- The study compares point-wise features (e.g., raw data points) with subsequence-wise features (e.g., sliding windows) for RRCF, and evaluates subsequence length sensitivity for MDI and MERLIN.
- The UCR Anomaly Archive is extended with 16 distinct anomaly type annotations to enable fine-grained analysis of method performance across different anomaly patterns.
Experimental results
Research questions
- RQ1Does the superior performance of deep learning methods justify the loss of interpretability compared to classical machine learning methods in unsupervised time series anomaly detection?
- RQ2Which types of anomalies are detectable by which methods, and how do feature representation (point-wise vs. subsequence-wise) influence detection capabilities?
- RQ3How do hyperparameter tuning and model complexity affect the performance of classical and deep learning-based anomaly detection methods?
- RQ4Can subsequence-based methods detect both 'steep increase' and 'smoothed increase' anomalies, and how do point-wise feature methods differ in their detection behavior?
- RQ5Which methods are most robust across diverse anomaly types, and which types remain consistently undetected by all models?
Key findings
- Classical methods MDI and MERLIN outperform all deep learning methods across the majority of anomaly types and datasets, with MDI achieving the highest overall F1 and UCR scores.
- Among deep learning models, GANF achieves the best performance, with a 19% drop in UCR score when using default hyperparameters instead of tuned values, highlighting the sensitivity of hyperparameter choice.
- RRCF performs poorly on raw point-wise features but improves significantly when using subsequence-wise statistical features, indicating that feature engineering can compensate for model simplicity.
- AE detects the most anomalies among deep learning models, but its performance remains below that of MDI and MERLIN, and it is sensitive to hyperparameter selection.
- All subsequence-based methods detect 'steep increase' anomalies but fail on 'smoothed increase', whereas point-wise feature methods show the opposite behavior, suggesting a fundamental difference in detection mechanisms.
- The anomaly types 'unusual pattern', 'time shift', 'reversed', and 'flat' are consistently undetected by all six models, indicating a gap in current method capabilities for complex or subtle temporal deviations.
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.