Datasets:
Tasks:
Time Series Forecasting
Modalities:
Time-series
Languages:
English
Size:
1M<n<10M
ArXiv:
License:
|
Download README.md from THULab/SWaT: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/datasets/THULab/SWaT/resolve/main/README.md
- Command line
-
hf download hf://datasets/THULab/SWaT/README.md
-
curl -L -o README.md https://huggingface.co/datasets/THULab/SWaT/resolve/main/README.md
1.7 kB
| license: cc-by-4.0 | |
| task_categories: | |
| - time-series-forecasting | |
| tags: | |
| - time-series | |
| - forecasting | |
| - anomaly-detection | |
| - classification | |
| - TSLib | |
| - tsfile | |
| - modality:timeseries | |
| - timeseries | |
| - format:tsfile | |
| pretty_name: SWaT (TsFile) | |
| size_categories: | |
| - 1M<n<10M | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: SWaT_train.tsfile | |
| - split: test | |
| path: SWaT_test.tsfile | |
| modality: | |
| - timeseries | |
| - tabular | |
| - text | |
| language: | |
| - en | |
| # 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 | |