Skip to content
Writing

One person broke our Wi-Fi sensing model

A cross-subject failure in Wi-Fi CSI activity recognition that looked like a sequence-length problem and turned out to be something harder.

, Wi-Fi CSI, sensing, domain shift

Wi-Fi channel state information can tell you what somebody is doing in a room without a camera. A body moving through the space changes how the radio signal arrives, and a network learns to map that change to an activity. It works well until you test it on a person it has never seen.

While benchmarking a cross-subject split, one user failed badly enough to drag the whole average down. Chasing that failure produced a more useful result than the benchmark did.

The first hypothesis was wrong

Sequence lengths in this dataset vary a lot per user, so the obvious explanation was that the model only works on typical-length captures and this user happened to produce unusual ones. That would be a preprocessing problem, and preprocessing problems are cheap to fix.

I split accuracy by sequence-length bucket to confirm it. The hypothesis died immediately.

User 17 fails in every length bucket, at 15% to 28% accuracy throughout. That includes the 258 samples between 120 and 160 packets, where their captures sit squarely inside the distribution everybody else occupies. In that same bucket the other eight users score between 55% and 80%. User 17 scores 15.5%.

Same lengths. Same preprocessing. Same bucket. Six times worse.

The explanation that survives

The failure is intrinsic to this person’s CSI signature. Their gestures differ physically from the others enough that a model pretrained on seven other people cannot map their samples into the right region of the classification space. Posture, rhythm, incidental movement, body characteristics. Something in the physical execution puts them outside the learned distribution.

This is severe person-specific domain shift, not temporal drift and not a length artefact. It is worth naming precisely, because the two problems have completely different fixes.

A second finding, easier to miss

In the confusion matrix, the source-only model shows a systematic bias toward one class. Between 28% and 35% of draw-O, draw-zigzag and slide samples get classified as push-pull. Push-pull itself has 36% precision against 59% recall. That is the signature of a class the model reaches for whenever the signal is ambiguous.

There is a plausible physical reason. Push-pull is the simplest gesture, a radial in-and-out movement whose CSI signature is mostly a low-frequency Doppler envelope. The other arm gestures also produce radial Doppler components, especially in the first and last couple of hundred milliseconds. Without phase features or multiple receivers to give directionality, the classifier collapses those signatures onto the simplest class.

That reframes what test-time adaptation is doing here. Part of the gain from aligning normalisation statistics is not general improvement, it is specifically reducing this collapse, by 4 to 12 percentage points per class. The original paper reports the aggregate gain without separating out that mechanism.

What I would tell anyone benchmarking CSI sensing

Report cross-subject numbers, not just within-domain ones. A within-domain accuracy near 99% and a cross-subject accuracy that falls apart on one person out of nine are both true statements about the same model, and only one of them predicts what happens when you install it in somebody’s house.

Then look at per-user results before averaging. A single user at 15% hides completely inside a mean.