| ---
|
| license: cc-by-4.0
|
| task_categories:
|
| - time-series-forecasting
|
| tags:
|
| - tsfile
|
| - timeseries
|
| - time-series
|
| - anomaly-detection
|
| pretty_name: SWaT (TsFile)
|
| size_categories:
|
| - 100K<n<1M
|
| configs:
|
| - config_name: default
|
| data_files:
|
| - split: train
|
| path: SWaT_train.tsfile
|
| - split: test
|
| path: SWaT_test.tsfile
|
| ---
|
|
|
| # SWaT (TsFile)
|
|
|
| Apache TsFile version of the `SWaT` anomaly-detection subset of
|
| [`thuml/Time-Series-Library`](https://huggingface.co/datasets/thuml/Time-Series-Library).
|
|
|
| ## Overview
|
|
|
| Secure Water Treatment testbed: 51 sensor/actuator channels with labelled cyber-attacks.
|
|
|
| - **Train:** 495,000 rows (all normal).
|
| - **Test:** 449,919 rows (with per-timestep 0/1 anomaly labels).
|
| - **Channels:** 51.
|
|
|
| The train and test segments are stored as two separate TsFiles
|
| (`SWaT_train.tsfile` / `SWaT_test.tsfile`), preserving the original split.
|
|
|
| ## Schema (TsFile structure)
|
|
|
| - **Time** (INT64, milliseconds) — row index * 1000 ms (the source has no timestamp; SWaT was recorded at 1 Hz).
|
| - **FIELD** (51 channels, FLOAT) — the sensor/metric channels.
|
| - **label** (INT64) — per-timestep anomaly flag (0/1). The train file is all 0 |
| (no ground-truth labels); the test file carries the anomaly labels.
|
|
|
| No channels or rows are dropped.
|
|
|
| ## Usage
|
|
|
| Read the `.tsfile` files with the Apache TsFile Java or Python SDK.
|
|
|
| ## Source & license
|
|
|
| - Original dataset: https://huggingface.co/datasets/thuml/Time-Series-Library (subset `SWaT`)
|
| - Author / publisher: thuml (Tsinghua University)
|
| - Paper: https://arxiv.org/abs/2407.13278
|
| - License: CC BY 4.0
|
|
|