# UCR Time Series Archive (2002)

> 128 small classification problems, from heartbeats to hand gestures, that every time-series classifier is measured on.

Page: https://mralbu.github.io/ai-datasets/d/ucr

## Key facts

- Category: Time series
- Task: Univariate time-series classification
- Creators: Eamonn Keogh and colleagues (UC Riverside); 2018 expansion led by Hoang Anh Dau
- Size: 128 datasets (2018 version); 191,158 series in all, of length 15 to 2,844
- Splits: train 60,555, test 130,603
- Input: One series, usually z-normalized
- Labels: A class (2 to 60 classes, depending on the dataset)
- License: Free for research; cite the archive
- Paper: [The UCR Time Series Archive](https://arxiv.org/abs/1810.07758)
- Homepage: https://www.cs.ucr.edu/~eamonn/time_series_data_2018/
- Hugging Face: [ChengsenWang/UCR-2018](https://huggingface.co/datasets/ChengsenWang/UCR-2018)
- Sampled at Hub revision 6551f7eec4f6488b390556e78cb3be42f0924c02 (2026-11-14)

## Why it matters

For two decades this has been where time-series classification is measured. Its 128 datasets come from ECGs, motion capture, spectrographs, sensors and image outlines turned into series, each with a fixed train/test split, so results compare across papers. For years the 1-nearest-neighbor classifier with dynamic time warping was famously hard to beat; ensembles like HIVE-COTE, then ROCKET and InceptionTime, finally did.

## Worth knowing

- The archive started in 2002 with 16 datasets; it grew to 85 in 2015 and 128 in 2018.
- Several test sets are larger than their training sets, some by far, to make overfitting visible.
- ROCKET (2020) classifies with thousands of random convolution kernels and a linear model, matching the best ensembles in a small fraction of their training time.
- Its sister, the UEA archive, holds 30 multivariate datasets.

## Configs

- `GunPoint`: GunPoint: an actor's hand position, drawing a gun from a holster or just pointing a finger
- `ECG200`: ECG200: one heartbeat, normal or myocardial infarction
- `Coffee`: Coffee: the spectrum of roasted beans, Arabica or Robusta
- `CBF`: CBF: synthetic cylinder, bell and funnel shapes in noise
- `Trace`: Trace: synthetic transients like those of nuclear plant instruments, 4 classes
- `TwoLeadECG`: TwoLeadECG: the same heartbeat seen through ECG lead 0 or lead 1

## Get the data

A community copy with one config per dataset and train/test splits. The official zip (password on the archive page) also has the 2015 version.

```bash
# pip install -U huggingface_hub
hf download ChengsenWang/UCR-2018 --repo-type dataset \
  --local-dir ucr
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("ChengsenWang/UCR-2018", "GunPoint")  # or any of: ECG200, Coffee, CBF, Trace, TwoLeadECG
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/ChengsenWang/UCR-2018@~parquet/GunPoint/train/*.parquet")
print(df.shape)
```

## Related datasets

- [UEA Multivariate Archive](https://www.timeseriesclassification.com/): 2018, 30 multivariate classification datasets
- [UCR Anomaly Archive](https://www.cs.ucr.edu/~eamonn/time_series_data_2018/): 2021, 250 series with one anomaly each
- [Numenta Anomaly Benchmark (NAB)](https://github.com/numenta/NAB): 2015, 58 labeled streams for real-time anomaly detection; not on Hugging Face in a viewer-readable copy

## Landmark papers

- [The great time series classification bake off](https://arxiv.org/abs/1602.01711) (2017)
- [ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels](https://arxiv.org/abs/1910.13051) (2020)
- [InceptionTime: Finding AlexNet for Time Series Classification](https://arxiv.org/abs/1909.04939) (2020)
