Cameras can count people, but people do not like being filmed. WiFi signals change as bodies move through a room, and those changes can be measured.
The setup
With a team of four, I captured Channel State Information (CSI) from two ESP32 modules in two rooms, on both the 2.4 GHz and 5 GHz bands.
The models
We compared an ANN, an LSTM and a complex-valued neural network. The LSTM did best. Data was scarce, so we augmented it with jittering, rotation and interpolation, and checked that the augmented data still made sense using k-means and agglomerative clustering. Phase-rotation augmentation lifted the LSTM from 49% to 67% accuracy.


