[Paper Review] Anomaly Detection on Seasonal Metrics via Robust Time Series Decomposition
This paper proposes MEDIFF, a robust time series anomaly detection method for seasonal online business metrics using median-based decomposition to isolate trend, seasonality (including DST and holiday effects), and residuals, which are then tested via generalized ESD for outliers. MEDIFF outperforms SH-ESD and DONUT in recall and precision on eBay’s labeled production data, especially during DST and holiday periods, due to its robustness to historical anomalies and effective seasonal compensation.
The stability and persistence of web services are important to Internet companies to improve user experience and business performances. To keep eyes on numerous metrics and report abnormal situations, time series anomaly detection methods are developed and applied by various departments in companies and institutions. In this paper, we proposed a robust anomaly detection algorithm (MEDIFF) to monitor online business metrics in real time. Specifically, a decomposition method using robust statistical metric--median--of the time series was applied to decouple the trend and seasonal components. With the effects of daylight saving time (DST) shift and holidays, corresponding components were decomposed from the time series. The residual after decomposition was tested by a generalized statistics method to detect outliers in the time series. We compared the proposed MEDIFF algorithm with two open source algorithms (SH-ESD and DONUT) by using our labeled internal business metrics. The results demonstrated the effectiveness of the proposed MEDIFF algorithm.
Motivation & Objective
- To develop a fast, robust, and real-time anomaly detection method for high-volume, seasonal business metrics in industrial settings.
- To address the challenge of detecting anomalies in metrics affected by daylight saving time (DST) shifts and holidays, which distort standard seasonal patterns.
- To ensure detection robustness against historical anomalies, missing values, and data errors common in production monitoring.
- To achieve low-latency detection (under 20% of sampling period) suitable for real-time monitoring of one-minute sampled metrics.
- To evaluate performance against open-source baselines (SH-ESD, DONUT) on labeled internal metrics, particularly during DST and holiday periods.
Proposed method
- MEDIFF uses a moving median smoothing technique to decompose the time series into trend, seasonal, and residual components.
- The seasonal component is modeled using week-over-week median values, with additional weighting to capture DST and holiday effects.
- A hybrid seasonal component is constructed by combining the week-over-week median with a trend component under optimized weights (γ=1, β=0.4).
- The residual is computed by subtracting the decomposed trend, DST seasonality, and holiday effect components from the original time series.
- Outliers in the residual are detected using the generalized extreme studentized deviate (ESD) test with m≈600 suspected outliers and α=0.05.
- The method is applied in batch processing on 4-week time series windows, with parameters tuned for DST and holiday compensation.
Experimental results
Research questions
- RQ1Can a robust, median-based decomposition method effectively isolate trend and seasonality in one-minute sampled business metrics with strong seasonal patterns?
- RQ2How does the inclusion of DST and holiday effect compensation improve anomaly detection performance during period shifts and special events?
- RQ3Does MEDIFF outperform existing open-source methods (SH-ESD and DONUT) in detecting true anomalies while minimizing false positives, especially in complex seasonal environments?
- RQ4To what extent does the use of robust statistics (median) improve detection robustness against historical anomalies and data errors?
- RQ5Can the generalized ESD test on residuals achieve high precision and recall in real-time anomaly detection with low latency?
Key findings
- MEDIFF achieved higher recall than SH-ESD on both group A and B metrics, indicating better detection of true anomalies due to cleaner residuals from robust decomposition.
- The use of γ=1 and β=0.4 in MEDIFF’s seasonal component significantly improved detection performance during DST and holiday periods, reducing residual distortion.
- After DST/holiday compensation, MEDIFF showed increased precision and recall, with clearer residuals enabling more accurate ESD outlier detection.
- SH-ESD’s performance declined during DST and holiday periods due to STL decomposition limitations, especially when seasonal patterns shifted.
- DONUT achieved higher overall F1-score than MEDIFF (with γ=0, β=1) and SH-ESD but still reported unexpected anomalies during DST/holiday periods, reducing precision.
- The proposed MEDIFF method demonstrated superior robustness and accuracy in real-time anomaly detection for industrial-scale, seasonal business metrics with complex temporal effects.
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.