SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.21866 · NeurIPS · 2025

CSI-Bench: A Large-Scale In-the-Wild Dataset for Multi-task WiFi Sensing

K Liu, Guozhen Zhu, Yuqian Hu, Weihang Gao, Wei-Hsiang Wang, Beibei Wang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.21866.json · badge: /api/ran/2505.21866.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
build_dataframe Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/build_localization_new_metadata.py
code served (permissive licence) · get_code("edf02f0da5e0626a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import re

# Set up the arguments for build_dataframe function

# Create sample S3 keys that match the expected layout
keys = [
    'env_indoor/Diff_easy/Dpl_lab/act_walking/user_subject1/motionsrc_1/device_radar-5G/session_1__freq10.h5',
    'env_outdoor/Diff_hard/Dpl_field/act_running/user_subject2/motionsrc_2/device_lidar-2G/session_2__freq20.h5',
    'env_indoor/Diff_medium/Dpl_lab/act_twouser_walking/user_subject3/motionsrc_3/device_camera/session_3__freq30.h5',
    'env_outdoor/Diff_easy/Dpl_field/act_empty/motionsrc_0/device_radar-5G/session_4__freq15.h5',
]

prefix = ''

ARGS = {
    'keys': keys,
    'prefix': prefix,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collect_results Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/result_analysis/all_result_summary.py
code served (permissive licence) · get_code("ba3123c0e55663e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
from pathlib import Path
import pandas as pd

# Create a temporary directory structure with test results
tmpdir = Path(tempfile.mkdtemp())

# Create experiment directory 1
exp_dir_1 = tmpdir / "exp_1"
exp_dir_1.mkdir(parents=True, exist_ok=True)

# Create config for experiment 1
config_1 = {
    "task_name": "classification",
    "model": "bert",
    "seed": 42
}
(exp_dir_1 / "bert_classification_config.json").write_text(json.dumps(config_1))

# Create results for experiment 1
results_1 = {
    "train": {"accuracy": 0.95, "f1_score": 0.94},
    "test": {"accuracy": 0.92, "f1_score": 0.91}
}
(exp_dir_1 / "bert_classification_results.json").write_text(json.dumps(results_1))

# Create experiment directory 2
exp_dir_2 = tmpdir / "exp_2"
exp_dir_2.mkdir(parents=True, exist_ok=True)

# Create config for experiment 2
config_2 = {
    "task": "sentiment",
    "model": "roberta",
    "seed": 123
}
(exp_dir_2 / "roberta_sentiment_config.json").write_text(json.dumps(config_2))

# Create test_results for experiment 2 (multi-task format)
results_2 = {
    "train": {"accuracy": 0.88, "f1_score": 0.87},
    "test_id": {"accuracy": 0.85, "f1_score": 0.84}
}
(exp_dir_2 / "roberta_sentiment_test_results.json").write_text(json.dumps(results_2))

# Create experiment directory 3 with few_shot results (should be ignored)
exp_dir_3 = tmpdir / "exp_3"
exp_dir_3.mkdir(parents=True, exist_ok=True)

config_3 = {
    "task_name": "qa",
    "model": "gpt2",
    "seed": 99
}
(exp_dir_3 / "gpt2_qa_config.json").write_text(json.dumps(config_3))

results_3 = {
    "dev": {"accuracy": 0.78, "f1_score": 0.77}
}
(exp_dir_3 / "gpt2_qa_few_shot_results.json").write_text(json.dumps(results_3))

# Also add a main results file to exp_3
(exp_dir_3 / "gpt2_qa_results.json").write_text(json.dumps(results_3))

ARGS = {
    "results_dir": tmpdir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
list_h5_keys Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/build_localization_new_metadata.py
code served (permissive licence) · get_code("785a5d7a31beb637")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import boto3
from unittest.mock import Mock, MagicMock

# Mock the boto3 client and paginator to avoid actual S3 calls
mock_s3_client = Mock()
mock_paginator = Mock()

# Create mock page responses with Contents
page1 = {
    'Contents': [
        {'Key': 'data/file1.h5'},
        {'Key': 'data/file2.txt'},
        {'Key': 'data/file3.h5'},
    ]
}

page2 = {
    'Contents': [
        {'Key': 'data/subdir/file4.h5'},
        {'Key': 'data/subdir/file5.csv'},
    ]
}

# Configure the mock paginator to return pages
mock_paginator.paginate.return_value = [page1, page2]

# Configure the mock s3 client to return the paginator
mock_s3_client.get_paginator.return_value = mock_paginator

# Patch boto3.client to return our mock
original_client = boto3.client
boto3.client = lambda service: mock_s3_client if service == 's3' else original_client(service)

ARGS = {
    'bucket': 'my-test-bucket',
    'prefix': 'data/',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
boto3 — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_csi_amps Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/convert_h5_to_correct_format.py
code served (permissive licence) · get_code("9d22c71b6a0996a5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path
import numpy as np
import h5py

# Create a temporary HDF5 file with CSI_amps dataset
temp_dir = tempfile.mkdtemp()
h5_path = Path(temp_dir) / "test_csi.h5"

# Create HDF5 file with CSI_amps data
with h5py.File(h5_path, 'w') as f:
    # Create sample complex CSI amplitude data
    csi_data = np.random.randn(4, 3) + 1j * np.random.randn(4, 3)
    f.create_dataset('CSI_amps', data=csi_data)

ARGS = {
    'h5_path': h5_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_key Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/build_localization_new_metadata.py
code served (permissive licence) · get_code("76d4c31cfeba9b94")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

SESSION_RE = re.compile('^session_(\\d+)__freq(\\d+)\\.h5$')

def parse_key(key: str, prefix: str) -> dict | None:
    """Parse one S3 key into a metadata-row dict.

    Returns ``None`` if the key does not match the expected layout.
    """
    rel = key[len(prefix):] if key.startswith(prefix) else key
    parts = rel.split('/')
    if len(parts) < 2:
        return None
    env = diff = dpl = act = user = mot = dev = ''
    fname = parts[-1]
    for seg in parts[:-1]:
        if seg.startswith('env_'):
            env = seg[len('env_'):]
        elif seg.startswith('Diff_'):
            diff = seg[len('Diff_'):]
        elif seg.startswith('Dpl_'):
            dpl = seg[len('Dpl_'):]
        elif seg.startswith('act_'):
            act = seg[len('act_'):]
        elif seg.startswith('user_'):
            user = seg[len('user_'):]
        elif seg.startswith('motionsrc_'):
            mot = seg[len('motionsrc_'):]
        elif seg.startswith('device_'):
            dev = seg[len('device_'):]
    m = SESSION_RE.match(fname)
    if not m:
        return None
    session, freq = (m.group(1), m.group(2))
    if act == 'empty' and (not user):
        user = 'Empty'
    if '-5G' in dev:
        c_freq = '5G'
    elif '-2G' in dev:
        c_freq = '2G'
    else:
        c_freq = ''
    is_multi = 'TRUE' if act == 'twouser_walking' else 'FALSE'
    try:
        label_int = int(mot)
    except ValueError:
        label_int = 0
    sample_id = f'Human_{user}_{env}_{act}_{dpl}_{diff}_{mot}_{freq}_{session}'
    rel_path = './' + rel
    return {'id': sample_id, 'file_path': rel_path, 'subject': 'Human', 'user': user, 'activity': act, 'environment': env, 'num_sub': freq, 'c_freq': c_freq, 'difficulty': diff, 'deplyoment': dpl, 'session': session, 'is_multi_subject': is_multi, 'label': label_int, 'device': dev}


ARGS = {
    'key': 'env_office/Diff_easy/Dpl_indoor/act_walking/user_alice/motionsrc_42/device_phone-5G/session_001__freq10.h5',
    'prefix': ''
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reinterpret_fortran_reshape_ft Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/convert_h5_to_correct_format.py
code served (permissive licence) · get_code("15deeaa5bfa6c0fb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small test array with shape (F, T) = (4, 3)
# F=4 (number of features), T=3 (time steps)
ft = np.arange(12, dtype=np.float32).reshape(4, 3)

ARGS = {
    'ft': ft
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
wrong_h5_signature Ran
ran on a synthesized input
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/util/convert_h5_to_correct_format.py
code served (permissive licence) · get_code("07bd0aab8cd85ca3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create test data for wrong_h5_signature
# The function expects ft: np.ndarray with shape (F, T) where F >= 8 and T >= 80

# Create a case where the signature should detect "wrong" CSI
# (adjacent frequency rows are nearly identical with consistent lag and high correlation)
np.random.seed(0)

# Create base signal
T = 100
base_signal = np.sin(np.linspace(0, 4*np.pi, T)) + 0.1 * np.random.randn(T)

# Create ft array with F=12 frequency bins
F = 12
ft = np.zeros((F, T), dtype=np.float32)

# Make adjacent rows nearly identical with a consistent small lag
for f in range(F):
    # Add small lag offset that stays consistent
    lag_offset = 3
    shifted = np.roll(base_signal, lag_offset)
    # Add tiny noise to make it realistic but still highly correlated
    ft[f] = shifted + 0.01 * np.random.randn(T)

ARGS = {
    "ft": ft,
    "max_lag": 40,
    "max_pairs": 40,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_benchmark_supervised Not yet run
unverified (harvested, no recorded run)
Jenny-Zhu/CSI-Bench-Real-WiFi-Sensing-Benchmark/load/supervised/benchmark_loader.py
code served (permissive licence) · get_code("ead08823b635943d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

WiFi sensing has emerged as a compelling contactless modality for human activity monitoring by capturing fine-grained variations in Channel State Information (CSI). Its ability to operate continuously and non-intrusively while preserving user privacy makes it particularly suitable for health monitoring. However, existing WiFi sensing systems struggle to generalize in real-world settings, largely due to datasets collected in controlled environments with homogeneous hardware and fragmented, session-based recordings that fail to reflect continuous daily activity. We present CSI-Bench, a large-scale, in-the-wild benchmark dataset collected using commercial WiFi edge devices across 26 diverse indoor environments with 35 real users. Spanning over 461 hours of effective data, CSI-Bench captures realistic signal variability under natural conditions. It includes task-specific datasets for fall detection, breathing monitoring, localization, and motion source recognition, as well as a co-labeled multitask dataset with joint annotations for user identity, activity, and proximity. To support the development of robust and generalizable models, CSI-Bench provides standardized evaluation splits and baseline results for both single-task and multi-task learning. CSI-Bench offers a foundation for scalable, privacy-preserving WiFi sensing systems in health and broader humancentric applications. Links: CSI-Bench Dataset; CSI-Bench Code; Project

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.21866")
get_code_for_paper("2505.21866")
have("2505.21866")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.21866.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.21866.svg)](https://syntology.ai/paper/2505.21866)

Connect an agent — have() is free.