๐Ÿ“ถ

How Does Location Sensing via WiFi CSI Work?

Using Physical Layer Data of WiFi Signals Like Radar

Typical WiFi signal strength (RSSI) measures only a single overall signal power, but CSI (Channel State Information) measures amplitude and phase data for each of the 56 subcarriers. When WiFi signals travel through space, they reflect, absorb, and diffract off the human body, and CSI can detect these changes at millimeter level. Placing 4-6 nodes with CSI-capable chips like ESP32-S3 in a room forms Nร—(N-1) links that scan the space from multiple angles. Collecting simultaneously on channels 1, 6, and 11 creates 3ร—56=168 virtual subcarriers to maximize spatial resolution. The RuView project is an open-source implementation of this technology.

Architecture Diagram

RSSI vs CSI: Information Difference
๐Ÿ“Š
RSSI (standard WiFi)
1 signal strength value
-67 dBm
vs
๐Ÿ“ˆ
CSI (ESP32-S3)
56 subcarriers x amplitude+phase
168 data points
Node Placement & Mesh Links
๐Ÿ“ก
Node 1
ch 1,6,11
๐Ÿ“ก
Node 2
|
๐Ÿšถ
Person
Reflect/Absorb/Diffract
|
๐Ÿ“ก
Node 3
N x (N-1) links
๐Ÿ“ก
Node 4
Signal Processing Pipeline
CSI Collection
168 data points
Hampel
Outlier removal
SpotFi
Angle of Arrival (AoA)
Fresnel
Physics modeling
FFT
Frequency analysis
AI (RuVector)
Attention + Graph
Detectable Information
๐Ÿ“
Location Tracking
cm-level
๐Ÿƒ
Motion Detection
Activity classification
๐Ÿซ
Respiration
0.1~0.5 Hz
๐Ÿ’“
Heart Rate
0.8~2.0 Hz
๐Ÿšจ
Fall Detection
Sudden changes
Core Principle: When a person breathes, the chest moves a few mm, which appears as WiFi phase changes

How It Works

1

Place 4-6 ESP32-S3 nodes in a room, sending/receiving WiFi signals to form Nร—(N-1) links

2

Collect CSI data (56 subcarriers ร— amplitude+phase) on channels 1, 6, 11 from each link in real-time

3

Remove outliers with Hampel filter, estimate Angle of Arrival (AoA) with SpotFi algorithm

4

Calculate physical interaction between human body and signals via Fresnel zone modeling

5

Separate breathing (0.1-0.5Hz) and heartbeat (0.8-2.0Hz) frequency bands via FFT analysis

6

AI (Attention + Graph algorithms) separates human signals from noise, estimates position and behavior

Pros

  • Privacy protection without cameras
  • Detection possible even behind walls/obstacles
  • No wearable devices needed
  • Can measure vital signs like breathing and heartbeat
  • Can leverage existing WiFi infrastructure

Cons

  • Not possible with regular routers (special firmware capable of CSI extraction needed)
  • Multiple ESP32 nodes required (4-6)
  • Recalibration needed for environment changes (furniture moves, etc.)
  • Initial data collection time needed for AI model training
  • Higher implementation complexity compared to RSSI

Use Cases

Smart home occupancy detection (automatic lighting/HVAC control) Elderly safety monitoring (fall detection) Intrusion detection security systems Sleep monitoring (contactless breathing/heartbeat) Smart office space utilization analysis

References