From Activity Recognition to Shift Detection: Variational Wi-Fi Sensing with Evidential Uncertainty
Organizations: Department of Information Engineering, University of Brescia, Via Branze 38, Brescia, 25123, Lombardy, Italy · Department of Electronics, Information and Bioengineering, Politecnico di Milano, Piazza Leonardo da Vinci 32, Milan, 20133, Lombardy, Italy · U.S. Army DEVCOM Army Research Laboratory, 2800 Powder Mill Road, Adelphi, 20783, Maryland, USA · Electrical and Computer Engineering Department, University of California, 405 Hilgard Ave, Los Angeles, 90095, California, USA ·
Abstract
Human motion perturbs wireless channels, making commodity Wi-Fi devices a practical platform for device-free activity recognition. Yet Channel State Information (CSI) also depends strongly on the person, receiver position, recording session, and surrounding environment, so a classifier can continue producing activity labels after its deployment conditions have moved away from those seen during training. We propose Wi-HAR, a multi-antenna architecture in which four Variational Auto-Encoders learn compact distributions from raw Wi-Fi 6 CSI magnitudes and a delayed-fusion classifier combines their means and log-variances. On twelve activities from a public benchmark, Wi-HAR reaches 96.6% median recognition accuracy, compared with 70.8-81.5% for independently optimized single-antenna models, showing that the antennas provide complementary views of the same activity. We then use the same latent backbone to detect deployment shifts without using shifted samples for model selection or calibration. A class-conditional uncertainty score derived from Evidential Deep Learning achieves a macro-average ROC-AUC of 0.897 across eleven datasets that change receiver position, participant, recording session, or room, and detects 82.5% of shifted samples at a realized 5.2% in-distribution rejection rate. Detection performance nevertheless varies substantially across receiver positions, showing that the same physical change does not induce a uniform uncertainty response. The compact representation also supports shallow decision-tree analysis using variables from several antennas.
Figures & tables
| A. Walk | B. Run | C. Jump | D. Sit |
| E. Empty room | F. Stand | G. Wave hands | H. Clap |
| I. Lie down | J. Wipe | K. Squat | L. Stretch |
| Encoder | |||
| Layer | Kernel size/Nodes | Stride | Activation |
| Input | - | - | |
| Conv2D | BatchNorm + GELU | ||
| Flatten | - | - | - |
| Linear | - | - | |
| Linear | - | - | |
| Spec | Layer 1 | Layer 2 | Layer 3 |
| A | |||
| B | |||
| C |
| Conv. | Fusion layers | Dropout | P25 | Median | P75 | ||||
| 1 | 0.0036 | 3.3460 | 128 | C | 2 | 0.01 | 0.9031 | 0.9323 | 0.9411 |
| 2 | 0.0032 | 17.8439 | 64 | C | 2 | 0.02 | 0.9594 | 0.9656 | 0.9703 |
| 3 | 0.0033 | 12.3290 | 64 | A | 1 | 0.30 | 0.9526 | 0.9646 | 0.9688 |
| 4 | 0.0068 | 19.0895 | 64 | C | 1 | 0.24 | 0.9547 | 0.9688 | 0.9750 |
| 5 | 0.0099 | 6.2654 | 32 | C | 1 | 0.15 | 0.9521 | 0.9677 | 0.9688 |
| 6 | 0.0016 | 3.7391 | 64 | B | 1 | 0.30 | 0.9563 | 0.9677 | 0.9724 |
| Name | Median | P25 | P75 |
| Antenna 1 | 0.8146 | 0.8036 | 0.8313 |
| Antenna 2 | 0.8063 | 0.7224 | 0.8313 |
| Antenna 3 | 0.7875 | 0.7432 | 0.8036 |
| Antenna 4 | 0.7083 | 0.6505 | 0.7313 |
| Fusion of best | 0.9375 | 0.9266 | 0.9411 |
| Wi-HAR | 0.9646 | 0.9594 | 0.9703 |
| Scenario | Softmax | EDL | GEN |
| S1b | 0.918 | 0.970 | 0.968 |
| S1c | 0.327 | 0.978 | 0.901 |
| S2a | 0.512 | 0.693 | 0.571 |
| S2b | 0.648 | 0.970 | 0.965 |
| S2c | 0.541 | 0.974 | 0.956 |
| S4a | 0.702 | 0.790 | 0.814 |
| Model | S1a false positives | 90% interval | Mean shift detection | 90% interval |
| Softmax | 5.57% | [4.58%, 6.99%] | 22.54% | [19.52%, 30.26%] |
| EDL | 5.21% | [4.03%, 6.04%] | 82.51% | [81.95%, 82.94%] |
| GEN | 3.91% | [3.13%, 5.53%] | 65.12% | [62.84%, 66.45%] |
| Estimand | Mean | 95% credible interval | |||
| Fixed eleven scenarios | 0.0757 | [0.0581, 0.0934] | 0.000 | 0.000 | 1.000 |
| Scenario bootstrap | 0.0764 | [0.0069, 0.1721] | 0.003 | 0.059 | 0.938 |
Wi-Fi Sensing
Wi-Fi sensing uses wireless signal changes to infer human motion, location, presence, and activity without dedicated wearable sensors.
See all 51 papers