gadgadgad commited on
Commit
06a705c
·
verified ·
1 Parent(s): 0d5451f

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +126 -0
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: cc-by-4.0
5
+ task_categories:
6
+ - time-series-forecasting
7
+ tags:
8
+ - wifi-sensing
9
+ - csi
10
+ - indoor-localization
11
+ - occupancy-detection
12
+ - esp32
13
+ - smart-home
14
+ - indoor-sensing
15
+ pretty_name: "Office Localization — WiFi CSI Indoor Localization (Office)"
16
+ size_categories:
17
+ - 1M<n<10M
18
+ ---
19
+
20
+ # Office Localization — WiFi CSI Indoor Localization (Office Environment)
21
+
22
+ ## Dataset Description
23
+
24
+ **Office Localization** is a WiFi Channel State Information (CSI) dataset for zone-level indoor localization and occupancy region detection, collected in an office environment using two ESP32-C6 microcontrollers operating as commodity 802.11n access points. It contains **4 region/occupancy classes** recorded across **2 temporal sessions per class**, totaling approximately **1.6 million CSI packets** and **~124 minutes** of continuous recording.
25
+
26
+ This dataset is part of the research paper:
27
+
28
+ > **WiFi Sensing-Based Human Activity Recognition For Smart Home Applications Using Commodity Access Points**
29
+ > Gad Gad, Iqra Batool, Mostafa M. Fouda, Shikhar Verma, Zubair Md Fadlullah
30
+ > IEEE, 2026
31
+
32
+ 📄 [Paper](https://gadm21.github.io/WifiSensingESP32HAR/IEEE_2026__wifi_sensing_.pdf) · ⚡ [GitHub](https://github.com/gadm21/WifiSensingESP32HAR) · 🌐 [Project Page](https://gadm21.github.io/WifiSensingESP32HAR/)
33
+
34
+ ## Region / Occupancy Classes
35
+
36
+ | Label | Description |
37
+ |-------|-------------|
38
+ | `empty` | No human present in the sensing area |
39
+ | `one` | Person present in Zone 1 of the office |
40
+ | `two` | Person present in Zone 2 of the office |
41
+ | `five` | Person present in Zone 5 of the office |
42
+
43
+ The zone labels correspond to distinct spatial regions within the office. The task is to determine **where** a person is located (or if the room is empty) based solely on how their body perturbs the WiFi channel between the transmitter and receiver.
44
+
45
+ ## Collection Setup
46
+
47
+ | Parameter | Value |
48
+ |-----------|-------|
49
+ | **Hardware** | 2 × ESP32-C6 (TX: AP mode, RX: STA mode) |
50
+ | **WiFi Standard** | 802.11n, 20 MHz bandwidth, HT-LTF |
51
+ | **Subcarriers** | 64 total (52 LLTF data subcarriers extracted) |
52
+ | **Packet Rate** | ~200 packets/sec (irregular, resampled to 150 Hz) |
53
+ | **Transport** | UART serial @ 115200 baud |
54
+ | **Environment** | Office room with desks, chairs, and typical office furniture |
55
+ | **TX–RX Distance** | ~3 meters, line-of-sight |
56
+ | **Recorded** | October 2025 |
57
+
58
+ ## Data Organization
59
+
60
+ | File | Label | Split | Approx. Packets |
61
+ |------|-------|-------|-----------------|
62
+ | `empty_1.csv` | empty | Train | ~210K |
63
+ | `empty_2.csv` | empty | Test | ~210K |
64
+ | `five_1.csv` | five | Train | ~150K |
65
+ | `five_2.csv` | five | Test | ~150K |
66
+ | `one_1.csv` | one | Train | ~150K |
67
+ | `one_2.csv` | one | Test | ~150K |
68
+ | `two_1.csv` | two | Train | ~150K |
69
+ | `two_2.csv` | two | Test | ~150K |
70
+
71
+ **Split strategy**: File-based temporal holdout. The first recording session per label is used for training and the second for testing. This ensures the model generalizes to temporally distinct data collected at a different time.
72
+
73
+ ## CSV Format
74
+
75
+ Each CSV file contains one row per received CSI packet with the following columns:
76
+
77
+ | Column | Description |
78
+ |--------|-------------|
79
+ | `type` | Packet type (always `CSI_DATA`) |
80
+ | `seq` | Sequence number / local timestamp |
81
+ | `mac` | Transmitter MAC address |
82
+ | `rssi` | Received Signal Strength Indicator (dBm) |
83
+ | `rate` | PHY rate index |
84
+ | `noise_floor` | Noise floor estimate (dBm) |
85
+ | `fft_gain` | FFT gain applied by hardware |
86
+ | `agc_gain` | Automatic Gain Control value |
87
+ | `channel` | WiFi channel number |
88
+ | `local_timestamp` | ESP32 local timestamp (µs) |
89
+ | `sig_len` | Signal length |
90
+ | `rx_state` | Receiver state |
91
+ | `len` | CSI data length (128 = 64 subcarriers × 2 components) |
92
+ | `first_word` | Header word |
93
+ | `data` | Raw CSI data as `[I₀, Q₀, I₁, Q₁, ..., I₆₃, Q₆₃]` — 128 signed integers representing in-phase and quadrature components for 64 subcarriers |
94
+
95
+ ## Recommended Preprocessing Pipeline
96
+
97
+ 1. **Load** CSV and parse the `data` column into complex I/Q arrays
98
+ 2. **Select** 52 LLTF subcarriers (discard guard/null subcarriers)
99
+ 3. **Resample** to a uniform 150 Hz sample rate (original rate is irregular ~100–200 Hz)
100
+ 4. **Feature extraction**: Rolling variance with window W ∈ {20, 200, 2000} (recommended: W=200)
101
+ 5. **Windowing**: Segment into fixed-length windows (e.g., 100 samples = 0.67s at 150 Hz)
102
+
103
+ ## Benchmark Results
104
+
105
+ Best results from the paper using rolling-variance features (W=200):
106
+
107
+ | Classifier | Accuracy |
108
+ |-----------|----------|
109
+ | Random Forest | 89.1% |
110
+ | XGBoost | 88.6% |
111
+ | Conv1D | 95.7% |
112
+ | CNN-LSTM | 96.7% |
113
+ | PCA + KNN | 84.1% |
114
+
115
+ Office Localization achieves excellent results with deep learning models, demonstrating that commodity WiFi CSI can perform zone-level indoor localization without any dedicated infrastructure — just two off-the-shelf ESP32-C6 boards.
116
+
117
+ ## Use Cases
118
+
119
+ - **Smart building management**: Automatically determine which zones are occupied
120
+ - **Energy optimization**: Zone-aware HVAC and lighting control
121
+ - **Elderly care**: Non-intrusive monitoring of movement between rooms/zones
122
+ - **Security**: Detect unauthorized presence in restricted zones
123
+
124
+ ## License
125
+
126
+ This dataset is released under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.