SGP Official store ↗
Blog / Projects / People counting

Counting people in a room with Wi-Fi CSI

Knowing a room is occupied is the easy win for Wi-Fi sensing. Knowing that it holds three people, not one, is a much harder problem — and a much more interesting one. Here is how CSI counting works, why a still person breaks it, and what accuracy you can honestly expect in your own space.

Published 20 Oct 2026Read 11 minLevel IntermediateTopic Wi-Fi CSI
Wi-Fi CSI detecting human movement Watch · CSI movement demo
VIDEO — Our own demo of CSI reacting to human movement. The amount of disturbance in the signal is the raw material counting is built on.

A single Wi-Fi link is a good occupancy switch. The jump from is anyone here to how many people are here sounds small, but it crosses a line in the physics. Presence is a threshold on a clean signal; counting is an estimate from a messy one. Understanding why is the key to not over-trusting a counter you build.

01Why counting is harder than presence

Presence detection, which we cover in camera-free room occupancy, works because one moving person disturbs the channel far more than an empty room ever does. You set a threshold on how much the CSI is changing and you have a reliable yes-or-no answer. The signal does not need to be proportional to anything; it just needs to clear the bar.

Counting asks the signal to be proportional, and it is not, at least not cleanly. Two people in a link do not disturb it exactly twice as much as one. They can stand in each other's radio shadow, so the second person adds almost nothing. They can move in opposite directions and partly cancel. One can be pacing while another sits perfectly still and barely registers at all. The channel reports total motion, and total motion is only loosely tied to the number of bodies producing it.

02The core signal: motion energy

Almost every counting method starts from the same quantity, which we will call motion energy: a measure of how much the CSI is changing from moment to moment. In practice it is something like the variance of the amplitude across subcarriers over a short window, after cleaning. A quiet, empty room sits near a baseline. Movement lifts the energy above that baseline, and more movement lifts it higher.

motion energy people moving empty-room baseline 01 23 gap shrinks: harder to separate
FIG 2 — Motion energy rises as more people move, but not in even steps. The jump from empty to one person is large; each extra person adds less and the levels start to overlap, which is why counting gets vague as the room fills.

Notice the shape of that graph. The step from zero to one is huge and easy. The steps after that get smaller and start to blur into one another. That single picture explains why CSI counting is confident at the low end and shaky at the high end, and why nobody sensibly claims to count a crowd with one link.

03Two ways to turn signal into a count

There are broadly two approaches to mapping that motion signal onto a number.

Both share one requirement: a baseline of the empty room and a calibration or training stage in the actual space. There is no universal lookup from CSI to count. The relationship is specific to the room, as it is for the rest of CSI sensing.

04The still-versus-moving ambiguity

The single biggest limit deserves its own section, because it surprises people. CSI senses motion, not mass. A person sitting perfectly still — reading, sleeping, watching a screen — disturbs the channel far less than the same person walking. Their only reliable signature is the slow rhythm of breathing, which we explore in can Wi-Fi CSI measure your breathing, and that is a delicate signal that a counting pipeline tuned for movement will usually miss.

A still person is nearly invisibleFive people sitting quietly in a meeting can read closer to zero than to five on a motion-based counter. Any counter you build will tend to track the number of moving people, which is not always the number of people in the room.

The mirror image is just as real: one child running in circles can push the motion energy up into the range you calibrated for two or three adults. Because the signal is driven by how much movement is happening, not by how many bodies are present, both under-counting the still and over-counting the restless are built into the method.

05Why multi-link setups help

A single transmitter-receiver pair only sees motion along the paths between those two points. People who line up along the link, or who sit in a corner the link barely reaches, are easy to miss. The standard way to improve counting is to add links.

With several transmitters and receivers placed around the room, each pair crosses the space at a different angle. A person hidden in one link's shadow is often in plain view of another. Combining the motion signals from all the links gives a fuller picture and softens the shadowing and still-person problems, though it never fully removes them. This is the same reasoning that drives CSI indoor localization, where multiple anchors are what make position possible at all.

SetupWhat it buys youCost
Single linkCoarse count for a few moversOne board plus an access point
A few links, varied anglesFewer blind spots, better separationSeveral boards, more calibration
Dense multi-linkBest counts, some spatial senseResearch-grade effort and compute

06Accuracy and its limits

So what can you actually expect? For a small number of people — roughly up to a handful — in a room the system was trained on, a well-built CSI counter often lands within about one person of the truth a good share of the time. That is genuinely useful for things like estimating whether a room is empty, lightly used or busy. It is not a turnstile, and you should not bill anyone based on it.

Accuracy degrades in predictable ways, and it is worth stating them plainly rather than quoting a single headline figure:

We deliberately avoid quoting a precise benchmark number here, because any single figure is only true for its exact room, its exact crowd and its exact training. The honest headline is: good for small, roughly known rooms as an estimate; unreliable for crowds, still occupants or untrained spaces.

07Building a counter you own

If you want to try it, keep the scope realistic and the space your own. Capture CSI on a board that exposes it, record the empty-room baseline, then record several sessions with a known number of people moving naturally, label them, and train a simple model or calibrate motion-energy bands. Start by only distinguishing empty, one, and several — a coarse but dependable scale — before you chase an exact number.

SGP Card Mini, an ESP32-S3 board used as a Wi-Fi CSI sensor
One SGP Card Mini is enough for a coarse occupancy estimate; a few of them, spread around the room, make a much better counter.

As always, this is for spaces you control: your own office, workshop or home. CSI counting is a privacy-respecting alternative to a camera for knowing roughly how busy your own room is, and that is exactly where it earns its place.

08FAQ

Can Wi-Fi CSI count how many people are in a room?

It can estimate a count, not read it exactly. CSI measures how much the channel is being disturbed, which grows with the number of moving people, so a trained system can map that disturbance to a rough count. It works best for small numbers in a known room and gets unreliable as the count rises or as people hold still.

Why is counting people harder than just detecting presence?

Presence is a yes-or-no question and a single moving person answers it clearly. Counting asks how many, and the channel does not add up neatly: two people can shadow each other, a still person barely registers, and one energetic person can look like two calm ones. The signal reflects total motion, not a clean head count.

How accurate is Wi-Fi CSI people counting?

For a handful of people in a trained room, systems often land within about one person of the true count much of the time. Accuracy falls as the room fills, as people stop moving, or when the setup is used in a space it was not trained on. Treat it as an estimate with an error bar, not an exact turnstile.

Do I need more than one Wi-Fi link to count people?

One link can give a coarse estimate, but several links that cross the room from different angles see people a single link would miss or merge. Multi-link setups reduce blind spots and the shadowing problem, which is why more serious counting work uses multiple transmitters and receivers rather than one pair.

SGP Lab — written by the team that designs and builds SGP hardware in Europe. We test every example on our own boards before publishing.

SGP devices are sold only at our official store.

sgpstore.net ↗