Pybunny commited on
Commit
02bab4a
·
verified ·
1 Parent(s): 724ba80

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +86 -0
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ language:
6
+ - en
7
+ tags:
8
+ - nilm
9
+ - energy-disaggregation
10
+ - uk-dale
11
+ - high-frequency
12
+ size_categories:
13
+ - 1K<n<10K
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: train/*
19
+ - split: val
20
+ path: val/*
21
+ - split: benchmark
22
+ path: benchmark/*
23
+ ---
24
+
25
+ # NILMbench processed UK-DALE splits
26
+
27
+ Pre-processed 16 kHz voltage/current frames and per-category active-power
28
+ labels from the UK-DALE 2015 release, packaged for the NILMbench benchmark
29
+ (House 1 → House 2 cross-household evaluation).
30
+
31
+ ## Layout
32
+
33
+ ```
34
+ train/ 10,000 sparse class-balanced 6-second frames from House 1
35
+ val/ 1,000 sparse class-balanced 6-second frames from House 1
36
+ benchmark/ 2,000 sparse class-balanced 6-second frames from House 2
37
+ ```
38
+
39
+ Each split contains:
40
+
41
+ | File | Shape | Description |
42
+ | ------------------------ | -------------- | ------------------------------------------ |
43
+ | `x_vi_6s.npy` | `(N, 2, 96000)` float16 | 16 kHz V/I waveform per frame (FLAC-normalised, range `[-1, 1]`) |
44
+ | `labels_and_index.npz` | dict | per-category power label, on/off label, aggregate context, timestamp, source window id |
45
+
46
+ `labels_and_index.npz` contains:
47
+
48
+ * `y_power` `(N, 7)` float32 — active power in watts per scored category
49
+ * `y_state` `(N, 7)` bool — on/off label per category
50
+ * `x_agg` `(N, 11)` float32 — aggregate-power context (±5 frames, ±30 s)
51
+ * `timestamp` `(N,)` int64 — Unix seconds of frame centre
52
+ * `sample_idx` `(N,)` int16 — 0..599 index inside the source window
53
+ * `window_id` `(N,)` str — UK-DALE window identifier
54
+ * `class_names` `(7,)` str — ordered category names
55
+
56
+ ## Recovering engineering units
57
+
58
+ The V/I waveforms are stored in FLAC-normalised form (range `[-1, 1]`). To
59
+ get volts and amperes, multiply by the UK-DALE House-2 calibration constants:
60
+
61
+ ```python
62
+ V_FACTOR = (2 ** 31) * 1.88296904357e-7 # ≈ 404.4
63
+ I_FACTOR = (2 ** 31) * 4.77518864497e-8 # ≈ 102.5
64
+ ```
65
+
66
+ ## Usage
67
+
68
+ ```python
69
+ import numpy as np
70
+ from huggingface_hub import snapshot_download
71
+
72
+ root = snapshot_download(repo_id="Pybunny/nilmbench-ukdale", repo_type="dataset")
73
+ x = np.load(f"{root}/train/x_vi_6s.npy", mmap_mode="r")
74
+ labels = np.load(f"{root}/train/labels_and_index.npz", allow_pickle=True)
75
+ print(x.shape, labels["y_power"].shape, labels["class_names"])
76
+ ```
77
+
78
+ ## Citation
79
+
80
+ NILMbench paper (2026), and the original UK-DALE dataset by Kelly &
81
+ Knottenbelt (2015).
82
+
83
+ ## License
84
+
85
+ MIT for the processed splits and metadata. The underlying UK-DALE recordings
86
+ are subject to their original license (CC-BY 4.0).