---
title: Outliers and Anomaly Detection
type: templates
category: Time Series Analysis
cat: time-series-analysis
order: 635
meta_title: Outlier and Anomaly Detection Data Labeling Template
meta_description: Template for detecting outliers and anomallies in time series data with Label Studio for your machine learning and data science projects.
---
If you want to train a machine learning model to detect outliers and anomalies in time series data, use this template to label suspicious regions and classify those regions of the time series channels as outliers or anomalies.
## Interactive Template Preview
## Labeling Configuration
```html
```
## About the labeling configuration
All labeling configurations must be wrapped in [View](/tags/view.html) tags.
Use the [TimeSeries](/tags/timeseries.html) object tag to specify the time series data source. The `valueType="url"` parameter specifies that the time series data is available as a URL, rather than a file, and the `value="$csv"` parameter specifies that the URL is stored in a data key called `csv`. The `sep=","` parameter specifies that a comma is the data separator, as is standard for a CSV-formatted file. The time parameters specify which column contains the time data, the format of the time data in the file, and how to display the time data on the labeling interface.
```xml
```
The `overviewChannels` parameter in the [TimeSeries](/tags/timeseries.html) tag specifies the column in the time series data to display on the time series graph as a channel. You can then use the Channel tag and its parameters to provide details about the data, such as the units of the data, the `displayFormat` of the channel data using d3 format, the `strokeColor` to use when highlighting the channel, and the name of the channel as it should appear in the labeling interface legend.
Use the [TimeSeriesLabels](/tags/timeserieslabels.html) control tag to specify the labels to apply to regions in the time series graph:
```xml
```
Use the [Choices](/tags/choices.html) control tag to classify whether each specific region is an Outlier or an Anomaly in the time series data:
```xml
```
## Related tags
- [TimeSeries](/tags/timeseries.html)
- [TimeSeriesLabels](/tags/timeserieslabels.html)
- [Choices](/tags/choices.html)