TL;DR
This paper introduces G-HFD, a wireless sensing system that leverages Generative AI (specifically diffusion models) to detect human flow in real-world environments using standard Wi-Fi signals. By applying a novel Unified Weighted Conditional Diffusion Model (UW-CDM) to denoise signal spectra, the system achieves up to 91% accuracy in identifying the number of people and their group movement patterns (subflows).
What Problem Does This Paper Address?
Wireless sensing—using Wi-Fi signals to "see" the environment—is a holy grail for contactless crowd monitoring. However, practical deployment faces two major hurdles:
- Signal Noise and Interference: In real-world settings like malls or offices, human-induced reflections (HIR) are often buried under multipath interference and hardware noise.
- Hardware Constraints: Commercial Wi-Fi devices often have antenna spacings (e.g., one full wavelength) that violate the theoretical requirements for clean Direction of Arrival (DoA) estimation, leading to "ambiguous" spectra with ghost peaks.
Traditional AI approaches (like CNNs or RNNs) typically focus on classifying these messy features. This paper argues that we should instead use Generative AI to enhance the quality of the signal features themselves before trying to count or track people.
Methods
The authors propose a multi-stage pipeline centered around a generative denoising process:
- Feature Extraction: The system uses Channel State Information (CSI) from downlink signals to estimate the velocity and acceleration of human movements, creating a 2D "Velocity-Acceleration" (V-A) spectrum.
- UW-CDM (The Core Innovation): They developed a Unified Weighted Conditional Diffusion Model. Unlike standard diffusion models used for images, this model uses a weighted loss function. Since signal peaks are sparse, the model is trained to give 50x more "attention" (weight) to the vital signal points than to the empty background. It takes a noisy spectrum as a "condition" and generates a clean, high-resolution version.
- Ambiguity Resolution: To handle commercial hardware where antennas are spaced at $d=\lambda$ (instead of the ideal $d \leq \lambda/2$), the UW-CDM is used to "clear" the ambiguous DoA spectrum, effectively hallucinating the correct peaks and suppressing the aliases.
- Two-Stage Clustering: After denoising, the system uses Affinity Propagation to determine the number of "subflows" (groups of people moving together) and K-means to determine the "subflow size" (number of individuals in each group).
Datasets
- Simulated Data: Used to train the UW-CDM. The authors generated paired V-A and DoA spectra with random target counts (1–7), velocities (-2 to 2 m/s), and accelerations. Noise was added to create "noisy" vs. "expert" pairs for the diffusion process.
- Real-World Experimental Data: Collected in two scenarios—a representative office corridor and a meeting room.
- Hardware: Two commercial ASUS Access Points (one as Tx, one as Rx) and a mobile phone (User Equipment). The Rx was equipped with the Nexmon toolbox to capture CSI.
Key Insights and Ideas
- GAI as a Signal Processor: The most striking idea is treating signal denoising as a generative task. Instead of just filtering noise, the diffusion model learns the underlying distribution of "clean" human reflections and reconstructs them from corrupted data.
- Weighted Loss for Sparse Data: Standard MSE loss in diffusion models fails on signal spectra because 99% of the "image" is just background noise. The weighted loss ($ \psi_1 = 50 $ for signal, $ \psi_0 = 1 $ for background) is the "aha moment" that makes the model converge on meaningful peaks.
- Overcoming Hardware Limits with Software: By training the model on the relationship between ambiguous and clear spectra, the authors show that GAI can compensate for physical hardware limitations (like sub-optimal antenna spacing), making high-end sensing possible on cheap, off-the-shelf routers.
Key Results
- High Accuracy: G-HFD reached a 91% accuracy in subflow size detection when the user was downloading files (high packet rate).
- Superior Denoising: The UW-CDM outperformed existing CNN-based denoising models (PMRID and DPIR), providing much cleaner spectra with fewer false-positive peaks.
- Robustness: Even in complex environments like meeting rooms with many obstacles, the system maintained high performance (approx. 90% for downloading scenarios).
- Baselines: G-HFD significantly outperformed traditional CSI-based counting methods like WSTM (RNN-based), WiFlowCount (CNN-based), and SFCC (SVM-based) across all tested scenarios (downloading, gaming, and video streaming).
Limitations and Future Work
- Inference Latency: The authors acknowledge that the diffusion process is computationally expensive. Currently, 10 inference steps take about 2.1 seconds, which might be too slow for real-time safety-critical applications.
- Packet Rate Dependency: Accuracy drops when the network is less active (e.g., watching video vs. downloading files) because fewer CSI samples are available to build the spectra.
- Future Directions: The team plans to explore inference acceleration techniques to bring the latency down and investigate other GAI architectures for different wireless sensing tasks like gesture or fall detection.
Summary updated