Time series anomaly detection finds the points or stretches of a data stream that break from normal behavior, such as a sensor spike, a sudden drop in orders or a server metric that drifts off course. The method that works for your data depends on its seasonality, trend and drift, and on how costly a false alarm is for your business. A good detector is therefore less a single algorithm than a pipeline built around your data, tuned to your tolerance for noise, and monitored after launch. This guide walks through the anomaly types, the main algorithm families, a practical workflow and the evaluation choices that decide whether a system earns trust.
TL;DR
- Anomalies come in three forms: single points, contextual points that look normal only out of context, and collective sequences that break a usual pattern.
- Time series points depend on each other, so generic outlier methods miss what matters. Seasonality, trend and drift have to be handled explicitly.
- Most production methods fall into statistical, distance-based, density-based, forecasting-based and reconstruction-based families. Benchmarks show that no single one wins everywhere.
- A reliable pipeline has four steps: preprocess, detect, score, then threshold. Evaluation metrics shape which detector looks best, so choose them to match your costs.
- Detection only pays off when it is wired into clean data pipelines and monitoring, which is where custom engineering comes in.
Table of Contents
- What counts as an anomaly in a time series
- Why time series are not ordinary outlier problems
- The main algorithm families
- A practical workflow, step by step
- Choosing a method for your data
- Evaluating a detector without fooling yourself
- Challenges that reduce accuracy in production
- Where businesses apply it
- From prototype to a working system
- FAQ
- Sources
What counts as an anomaly in a time series
In plain terms, an anomaly is an observation that deviates considerably from what is expected. In a time series, researchers distinguish three types:
- Point anomalies: single values that deviate remarkably from the rest of the data, like a card transaction ten times larger than usual.
- Contextual anomalies: values that sit inside the normal range but are wrong for their context, such as a temperature that would be fine in July but is odd in January.
- Collective anomalies: sequences of points that do not repeat a typical, previously observed pattern.
The first two are point-based and the third is sequence-based. The distinction matters in practice because individual points may look normal next to their neighbors while the shape of the whole sequence is anomalous. A heartbeat trace or a machine vibration signal is a good example: every value is in range, yet the pattern is broken.
Collective anomalies also include novelties and change points. A novelty is a pattern seen for the first time, signaling a change in the underlying system. A change point is a structural break, such as a shift in the mean or variance.
A fourth case appears when you track several signals at once. A multivariate anomaly shows up only when sources are viewed together, for instance a changed relationship between temperature and pressure in a chemical process, even though each signal alone looks fine.
What do anomalies mean for a business? Researchers link them to production faults, delivery bottlenecks, system defects and even irregular heart rhythms. In a company setting, the same logic covers fraud signals, equipment wear, traffic or demand shocks, and failing software services.
Why time series are not ordinary outlier problems
Generic outlier detection assumes data points are independent. It measures how far a point sits from the rest, or marks points in sparse regions. Time series break that assumption. As one univariate survey explains, recent values influence the following ones, and values usually change smoothly or follow regular patterns. A jump from 35°C to 85°C can look like two perfectly normal clusters to a method that ignores order, yet in sequence it is a clear event. This dependency is why time series anomalies are generally contextual or collective.

Terminology also shifts with the goal. According to an ACM review, people tend to say outlier when they want to clean unwanted data and anomaly when they want to catch events of interest. That is a useful question to ask your team up front: are we removing noise, or hunting for incidents? The answer changes how you set thresholds and who looks at the alerts.
The main algorithm families
The Boniol et al. decade review organizes the field around how each method turns data into an anomaly score. Here is a practical summary for a business reader.
| Family | How it works | Typical fit |
|---|---|---|
| Statistical (ESD, S-ESD, SH-ESD) | Tests how extreme values are against the mean and spread; the seasonal variants first strip out seasonality with STL decomposition | Single metrics with clear seasonal cycles, such as daily sales or traffic |
| Distance-based | Compares subsequences to a model of normal shapes and scores by distance | Repeating patterns where shape matters, such as machine cycles |
| Density-based (for example HBOS) | Measures how rare a subsequence is in a representation space; HBOS multiplies inverse histogram bin frequencies | Highly unbalanced series with unknown distribution |
| Forecasting-based | A recurrent or convolutional network predicts the next values; the forecasting error is the score | Streams where the near future is predictable |
| Reconstruction-based | An autoencoder learns to rebuild normal data; the reconstruction error is the score | Multivariate signals with many channels |
The statistical family has a well-known open-source lineage. A JAIR comparison of twelve methods describes Twitter's AnomalyDetection package, which uses a modified STL decomposition with the median as the trend, then median-based ESD tests that rely on MAD instead of standard deviation for robustness. The same study notes that this library errors out on missing time steps, so you would need to interpolate gaps first. That small detail shows how much data preparation drives results.
Deep learning has become popular for multivariate data for a structural reason. Multivariate subsequences are essentially matrices, and deep neural networks natively handle them with filters that slide across several channels, as Boniol and Palpanas argue.

Unsupervised, semi-supervised and supervised
The supervision setting depends on what your experts know:
- Unsupervised: nobody can say which stretches are anomalous or even what normal looks like.
- Semi-supervised: experts can provide sequences known to be normal. This is the classical case for most methods in the literature, though they are often labeled unsupervised.
- Supervised: labeled anomalies exist, so a model can learn to spot the precursors of abnormal behavior.
These definitions come from the SIGMOD blog summary. Most companies start in the first or second setting, because labeled incidents are rare and expensive to collect. If you are asking about unsupervised detection, the practical question is how much clean history you can supply: even a few months of verified normal operation moves you toward the more reliable semi-supervised case.
A practical workflow, step by step
The decade review describes a four-step pipeline. Here is how it plays out when you build it for a product, with the places it tends to go wrong.
- Preprocess the series. Cut the stream into sliding windows and apply any extra processing, such as resampling, normalization and filling gaps. Where it goes wrong: missing timestamps and inconsistent units. Some detectors fail outright on gaps, so interpolation rules need to be explicit.
- Apply a detection method. Pick a model from the families above, matched to your data's seasonality, trend and drift. Where it goes wrong: choosing the most sophisticated model first. In one KPI study, a simple Z-Score beat specialized detectors on average, and no single forecaster and detector pair was best for every KPI.
- Convert results into anomaly scores. The model outputs a score per point or window, not a verdict. Where it goes wrong: treating the raw score as a probability. Scores from different models are not comparable.
- Post-process with a threshold. A cut-off turns scores into flagged points or intervals. The ACM review notes that a threshold is often required and few techniques determine one automatically. Where it goes wrong: a fixed threshold that was tuned on last quarter's behavior and then floods the team with alerts.
Two additions make the difference between a notebook and a working system. First, reliable inputs: if the upstream data is late or malformed, the detector reports the pipeline's problems rather than the business's. Our guides on data quality metrics and on data engineering pipelines and SLAs cover that groundwork. Second, an alert path: someone must own each alert, and the team should track how many are useful. Practices for that are covered in application monitoring best practices.
Choosing a method for your data
There is no universal winner. A 2026 WSDM tutorial reports that recent benchmarks find no overall best method across heterogeneous series, and that a study of automated model-selection tools found most failed to beat a random choice. Choose by the characteristics of your series instead.
The JAIR study tested twelve methods on four types of corpora: seasonality, trend, concept drift and missing timesteps. Its findings give a workable rule of thumb:
- Strong seasonality or trend (retail demand, energy load, web traffic): STL, SARIMA and Prophet-style decomposition and forecasting methods looked promising.
- Concept drift (user behavior or equipment that changes over time): simpler methods struggle, and the authors point to more complex approaches such as hidden topic models.
- Missing timesteps (unreliable sensors): fix the data first, or choose a method that tolerates gaps.
- Many correlated signals: consider dimensionality reduction or a model complex enough to see varied patterns, since a few anomalous points can be hidden by many normal variables. Scanning each series on its own and merging the results does not guarantee accurate detection.
Evaluating a detector without fooling yourself
Metrics can flatter a model. A taxonomy of 20 evaluation metrics found that the choice of metric strongly changes method rankings and that some metrics give unreasonably high scores to useless strategies, such as predicting only very long or very short anomalies. The authors conclude that no metric suits every case.
A few practical points follow from the research:
- Match the metric to the deployment. Early detection can matter in a real-time system, while timing may not matter when a clinician reviews an ECG offline.
- Be careful with point-adjusted scores. The decade review notes that point adjustment can overestimate performance, to the point that even a random score can look good. Stricter variants require a set share of an anomaly to be caught first.
- Prefer threshold-independent measures for comparison. The same review recommends VUS-ROC and VUS-PR for their robustness and consistent ranking of detectors.
- Use precision-recall for rare events. The JAIR authors point out that with imbalanced data, the precision-recall curve is more informative than ROC, and that when false positives are costly, threshold-dependent metrics tied to your cost structure are preferable.
A simple business version: put a cost on a missed incident and a cost on a false alarm, then choose the threshold that minimizes the total. A fraud team and a marketing analytics team will land in very different places.
Challenges that reduce accuracy in production
The IEEE review of deep learning for time series names change points, seasonality and concept drift as the main obstacles. Concept drift is especially tricky because a model learned from historical data can lose touch with the present.
One research response is adaptive thresholding. An Ericsson-authored paper proposes a heuristic that adjusts the threshold to local data properties and assumes that true anomalies are rare, typically well under one percent of the data, and non-periodic. If apparent outliers recur on a schedule or too often, they are probably part of normal behavior. That reasoning applies beyond telecom: not every statistical outlier is a business anomaly, and your alert rules should reflect that.
Another subtle trap is the reference data. When expected values come from an external or reference set, that set can contain outliers itself, and even unlabeled approaches usually assume it is clean. Auditing the baseline is part of the job.
Finally, models decay. Once a detector is live, its inputs and the world around it change, so you need to watch its behavior over time. We describe the practice in our piece on model monitoring techniques for production ML.
Where businesses apply it
Use cases follow the anomaly types. Operations teams watch equipment signals for faults before they become outages. Logistics teams look for delivery bottlenecks. Engineering teams track service metrics for system defects. Finance and e-commerce teams watch transaction streams and demand for sudden breaks. Each case has its own seasonality, its own cost of error and its own owner of the alert, which is why off-the-shelf rules usually need tailoring.
Our perspective
We see anomaly detection as an engineering problem first and a modeling problem second. Picking an algorithm takes an afternoon. Getting dependable data into it, deciding what an alert should trigger and keeping the model honest as the business changes takes the rest of the project.
That is why our work in AI and data science starts from the business question: what event do you need to catch, how early, and what does a false alarm cost your team? Business analysis and QA belong in the same conversation, because a detector that passes a benchmark but floods an operations desk with noise has not solved anything.
The research is encouraging on this point. Because no method wins everywhere, a solution shaped to your own series, seasonality and tolerance for noise has a real edge over a generic one. We believe that is where custom development pays off.
Dmitry
From prototype to a working system
If your team has a candidate use case, the fastest route is a scoped build that covers data preparation, model selection against your own series, thresholds and alert integration. Our AI development services are priced at $30,000 to $60,000 one-off, and our data science and predictive analytics teams work on turning historical data into signals your business can act on. For help defining the problem before any code, see our business analysis services.

If you want a detector built around your data, talk to Requestum about a discovery phase.
FAQ
What is the difference between an outlier and an anomaly in a time series?
In many reviews, outlier refers to unwanted data you want to remove, while anomaly refers to an event of interest you want to catch. The math is often the same, but the action differs. Outliers get cleaned, anomalies get investigated.
Which anomaly detection technique should I start with?
Start with the simplest approach that respects your data's structure. For seasonal metrics that means a decomposition-based statistical method, and in one KPI study a plain Z-Score matched or beat specialized detectors on average. Move to forecasting or autoencoder models when you have many correlated signals or complex patterns.
Can I detect anomalies without labeled data?
Yes. Unsupervised and semi-supervised methods learn what normal looks like from historical data, and most literature methods are really semi-supervised, since they assume the training data is clean. The more verified normal history you can supply, the better they behave.
How do I reduce false alarms?
Tune the threshold to your costs, evaluate with precision-recall style metrics for rare events, and use adaptive thresholds if behavior drifts. Treat anomalies that recur on a regular schedule as probable normal behavior, and review the reference data for hidden outliers.
How do I know my detector still works after launch?
Track alert volume, the share of alerts that proved useful and shifts in the input data. When these move, retrain or recalibrate. Monitoring the model is part of running it.
Sources
- Time Series Anomaly Detection, ACM SIGMOD Blog
- What Is Anomaly Detection, MathWorks
- Anomaly Detection in Time Series: A Comprehensive Evaluation, VLDB
- Anomaly Detection for Time Series Data: Anomaly Types, VictoriaMetrics
- Anomaly Detection in Univariate Time-series, arXiv
- A Review on Outlier/Anomaly Detection in Time Series Data, ACM
- Dive into Time-Series Anomaly Detection: A Decade Review, arXiv
- Experimental Comparison and Survey of Twelve Time Series Anomaly Detection Algorithms, JAIR
- Adaptive Thresholding Heuristic for KPI Anomaly Detection, arXiv
- Deep Learning for Anomaly Detection in Time-Series Data, IEEE
- Navigating the metric maze, Data Mining and Knowledge Discovery
- A Comprehensive Guide to Time-Series Anomaly Detection, WSDM 2026
