The dataset viewer is not available for this dataset.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
CSI-BFI-HAR Dataset
This repository contains the dataset, structure and usage of the CSI-BFI-HAR dataset of the corresponding dataset paper:
Please download the dataset either from huggingface or IEEE dataport:
- https://huggingface.co/datasets/foysalhaque/CSI-BFI-HAR-Dataset
- https://ieee-dataport.org/documents/csi-bfi-har-wi-fi-datasets-human-activity-recognition
Dataset Structure
The dataset is organized into two subsets:
Dataset-1: single-subject HAR (HAR-1toHAR-6)Dataset-2: simultaneous multi-subject HAR (HAR-7toHAR-12)
Each HAR-* folder contains two subfolders:
CSI/: channel state information tracesBFI/: beamforming feedback information traces
CSI-BFI-HAR-Dataset/
βββ Dataset-1/
β βββ HAR-1/
β β βββ BFI/
β β βββ CSI/
β βββ HAR-2/
β β βββ BFI/
β β βββ CSI/
β βββ HAR-3/
β β βββ BFI/
β β βββ CSI/
β βββ HAR-4/
β β βββ BFI/
β β βββ CSI/
β βββ HAR-5/
β β βββ BFI/
β β βββ CSI/
β βββ HAR-6/
β βββ BFI/
β βββ CSI/
βββ Dataset-2/
βββ HAR-7/
β βββ BFI/
β βββ CSI/
βββ HAR-8/
β βββ BFI/
β βββ CSI/
βββ HAR-9/
β βββ BFI/
β βββ CSI/
βββ HAR-10/
β βββ BFI/
β βββ CSI/
βββ HAR-11/
β βββ BFI/
β βββ CSI/
βββ HAR-12/
βββ BFI/
βββ CSI/
HAR Folder Mapping
| HAR Set | Environment | Device(s) | LoS/NLoS | Concurrent Subjects | Subject IDs |
|---|---|---|---|---|---|
| HAR-1 | Kitchen (Orientation 1-3) | M1, M2 | LoS | 1 | P1-P6 |
| HAR-2 | Kitchen (Orientation 1-3) | M3 | NLoS | 1 | P1-P6 |
| HAR-3 | Classroom | M1, M2 | LoS | 1 | P1-P6 |
| HAR-4 | Classroom | M3 | NLoS | 1 | P1-P6 |
| HAR-5 | Living room | M1, M2 | LoS | 1 | P1-P6 |
| HAR-6 | Living room | M3 | NLoS | 1 | P1-P6 |
| HAR-7 | Kitchen (Orientation 1-3) | M1, M2 | LoS | 3 | P1-P3 |
| HAR-8 | Kitchen (Orientation 1-3) | M3 | NLoS | 3 | P1-P3 |
| HAR-9 | Classroom (Orientation 1-3) | M1, M2 | LoS | 3 | P1-P3 |
| HAR-10 | Classroom (Orientation 1-3) | M3 | NLoS | 3 | P1-P3 |
| HAR-11 | Office (Orientation 1-3) | M1, M2 | LoS | 3 | P1-P3 |
| HAR-12 | Office (Orientation 1-3) | M3 | NLoS | 3 | P1-P3 |
Trace Naming Convention
Each trace filename follows:
X_D_YY_ZZ
Where:
X: activity code (AtoT)D: day index (1to6)YY: sensing device IDZZ: subject ID
Device IDs:
- CSI devices:
M1,M2,M3 - BFI devices:
M1,M2,M3
Subject IDs:
P1toP6forDataset-1P1toP3forDataset-2
Activity code map:
A: joggingB: clappingC: push forwardD: boxingE: writingF: brushing teethG: rotatingH: standingI: eatingJ: reading a bookK: wavingL: walkingM: browsing phoneN: drinkingO: hands-up-downP: phone callQ: side bendsR: check wrist (watch)S: washing handsT: browsing laptop
Examples:
A_3_M1_P2-> jogging, day 3, CSI device M1, subject P2N_6_M2_P1-> drinking, day 6, BFI device M2, subject P1
CSI Extraction
CSI traces are extracted from Nexmon PCAP files using:
CSI-Extraction/Extract_CSI.m
Prerequisites
- MATLAB (or GNU Octave with compatible MEX support)
- Files in
CSI-Extraction/:Extract_CSI.mreadpcap.mplotcsi.m(optional visualization)unpack_float.mexa64(for Broadcom float unpacking)
Input
- A Nexmon CSI capture file (
.pcap), for example:D_1_M1_P2_short.pcap
Set the file path at the top of Extract_CSI.m:
FILE = '../CSI-Samples/D_1_M1_P2_short.pcap';
Configuration
In Extract_CSI.m, set:
CHIP(e.g.,4366c0)BWin MHz (e.g.,80)
For BW = 80, the script keeps valid data subcarriers and removes null/pilot bins, producing 242 CSI subcarriers per packet.
Run
From repository root:
cd CSI-Extraction
matlab -batch "Extract_CSI"
Or run Extract_CSI.m directly from the MATLAB editor while your current folder is CSI-Extraction.
Output
The script saves a .mat file next to the input PCAP, with the same base filename:
- Input:
../CSI-Samples/D_1_M1_P2_short.pcap - Output:
../CSI-Samples/D_1_M1_P2_short.mat
Saved variables:
csi: complex CSI matrix of size[num_packets x num_subcarriers](242 subcarriers for 80 MHz)seq_num: sequence identifier extracted per packetcore_num: RF core identifier extracted per packet
BFI Extraction
BFI traces are extracted with Wi-BFI using:
Wi-BFI/main.py
Prerequisites
- Python environment with
numpyandpyshark tsharkinstalled and available in PATH (required bypyshark)- Wi-BFI files in
Wi-BFI/(main.py,bfi_angles.py,vmatrices.py,utils.py)
Optional setup (from Wi-BFI project files):
cd Wi-BFI
conda env create -f wi-bfi.yml
conda activate wi-bfi
Run (your current command)
From Wi-BFI/:
python main.py ./traces/11ac_MU_3x1_80.pcapng AC MU 3x1 80 b0:b9:8a:63:55:9c 200 V_ac_mu_3x1_80 bfa_ac_mu_3x1_80
Argument meaning
python main.py <file_name> <standard> <mimo> <config> <bw> <MAC> <num_packet_to_process> <saved_vmatrices> <saved_angles>
file_name: input pcap/pcapng trace pathstandard:ACorAXmimo:SUorMU(for this dataset useMUwith AC)config: antenna setup (3x1in your command)bw: bandwidth in MHz (80in your command)MAC: target beamformee MAC address to filter framesnum_packet_to_process: number of packets to parse (must be <= available packets after MAC/filter match)saved_vmatrices: output filename prefix for reconstructed V matricessaved_angles: output filename prefix for extracted beamforming angles
Output
main.py stores two NumPy files (.npy) in the current directory:
V_ac_mu_3x1_80.npy: reconstructed V matricesbfa_ac_mu_3x1_80.npy: extracted beamforming feedback angles
For the shown example command with 200 packets and AC MU 3x1 at 80 MHz, output shapes are:
V_ac_mu_3x1_80.npy:(200, 234, 3, 1)complex arraybfa_ac_mu_3x1_80.npy:(200, 234, 4)integer array
In the 3x1 case, the 4 angles per subcarrier correspond to:
phi_11,phi_21,psi_21,psi_31
For any question or query, please contact Foysal Haque (haque.k@northeastern.edu)
- Downloads last month
- 517