Overview
Traffic Mode estimates occupancy by counting how many people enter and exit a space.
Occupancy = cumulative IN − cumulative OUT
This approach is scalable and effective for tracking movement and usage trends across entrances, floors, and large spaces.
Because occupancy is derived from movement events rather than measured directly, it follows a natural statistical behavior called drift.
This article explains:
- how traffic-based occupancy works
- what drift is and why it happens
- why traffic accuracy and occupancy accuracy are different measures
- how calibration keeps occupancy reliable, and what it does not do
For how current the data is and where to read it, see: How Live Is Traffic Mode Data?
👉 For how this fits into the broader system, see: How Sensor Setup Determines Data in Butlr
1. How Traffic-Based Occupancy Works (Conceptual Model)
Traffic sensors detect directional movement at entrances:
- IN → person enters
- OUT → person exits
Occupancy is calculated by accumulating these events over time.
This enables:
- traffic flow analysis
- entry/exit monitoring
- occupancy estimation at scale
2. What Is Drift
Drift is the difference that can build up over time between:
- estimated occupancy (from traffic), and
- actual occupancy in the space
It happens because traffic-based occupancy is cumulative. Even small counting variations (e.g., a missed or extra event) can persist and accumulate throughout the day.
Simple example
This behavior is expected in any system that estimates occupancy from movement events.
3. Why Drift Happens
Drift reflects how real-world movement and event counting interact. Key factors include:
- Counting variation (no system is 100% perfect)
- Cumulative calculation (errors carry forward)
- Movement patterns (e.g., back-and-forth traffic, groups)
As a result, occupancy may gradually shift during the day, and values can temporarily over- or under-estimate true occupancy.
👉 Even with high traffic accuracy, drift can still occur because occupancy depends on how events accumulate over time
4. Why Traffic Accuracy ≠ Occupancy Accuracy
The traffic spec distinguishes between two things:
- Traffic accuracy: how accurately IN/OUT events are detected
- Occupancy accuracy: how closely the cumulative estimate matches actual occupancy over time
The two are decoupled. High IN/OUT precision does not guarantee high occupancy accuracy, because occupancy accuracy is dominated by how people actually move through the space. Two systems with near-identical IN/OUT accuracy can show very different occupancy behavior.
This is why we recommend IN/OUT traffic accuracy as the measure for engineering validation and customer evaluations. It has clear targets, it is easy to reproduce, and it measures entrance-level sensor performance directly. Occupancy accuracy is less consistent and highly sensitive to edge cases, sample size, drift, and the number of traffic sensors, so it tells you more about the traffic pattern than about the sensor.
How to read the table below
Compare the two extremes. In Scenario 1, near-perfect IN/OUT accuracy (99.2%) still produces just 47% occupancy accuracy, because traffic is so low that a single missed event swings the percentage hard. In Scenario 4, much lower IN/OUT accuracy lands at 92% occupancy accuracy, because a consistent directional bias gets absorbed into a growing count. Same sensor precision, opposite occupancy outcomes. The driver is the traffic pattern, not the precision.
This gap between traffic accuracy and occupancy accuracy is exactly what calibration works to close. See Section 5 for how Butlr reduces it, and why some residual difference remains regardless of sensor quality.
5. How Butlr Keeps Occupancy Reliable
Butlr applies a calibration system that re-anchors traffic-based occupancy to real-world conditions at known reference points. This reduces drift over the course of a day and keeps occupancy interpretable.
Correction runs in two stages.
Continuous
Applied to every value, including live ones:
- occupancy is floored, so it can never report negative
- values are resolved to whole people
This runs in real time and requires no reference point.
At known anchors
An anchor is a moment when the true count is known, which makes accumulated error measurable and correctable.
| Anchor | What it does | When it applies |
|---|---|---|
| Day boundary | Resets occupancy at the start of the operating day, and corrects accumulated error back across the day's curve once the day closes | Every space |
| PIR Zeroing | Detects when a space is empty and corrects to zero mid-day | Room-level spaces with a PIR sensor |
End-of-day correction cannot run earlier than the day's close, because the reference point does not exist until the space is empty.
PIR Zeroing carries a dwell window, since confirming a room is genuinely empty rather than momentarily still takes time by design. The window is configurable per space, with a recommended default of 300 seconds.
What calibration does and doesn't do
Calibration corrects occupancy at anchor points. Between those anchors, cumulative counting variation can still build up, so the number may differ from true occupancy before the next anchor.
This residual difference is a property of any occupancy estimate built from cumulative IN/OUT events. It is not specific to Butlr, and it is not a sign of a sensor fault. Calibration shrinks the gap and re-zeros it at each anchor; it does not change the underlying math. The more frequent the anchors, the smaller the residual difference stays, which is why spaces with PIR Zeroing track closer to true occupancy through the day.
When you need exact, moment-to-moment occupancy for a specific room or zone, Presence Mode is the better fit, since it measures occupancy directly rather than accumulating it from movement. (See Section 6.)
Processing pipeline
Traffic data is processed into usable occupancy through:
- event aggregation
- calibration filtering
- drift correction
- interpolation + cleanup
- time-based aggregation
6. When to Use Traffic Mode
Traffic Mode is best suited for:
- entrances and doorways
- floor or building-level insights
- understanding flow and usage patterns
Presence Mode is better for:
- real-time occupancy in rooms/zones
- location-based insights (coordinates)
👉 Both modes run on the same Heatic hardware and can be combined for richer insights
7. Key Takeaways
- Traffic Mode estimates occupancy from IN/OUT movement
- Drift is a natural outcome of cumulative event-based estimation, in any system built this way
- Calibration reduces drift but does not eliminate it; some residual difference between anchors is expected
- Occupancy behavior depends on movement patterns, not just sensor accuracy, which is why IN/OUT accuracy is the right measure for evaluation
- More frequent anchors, such as PIR Zeroing, keep traffic-based occupancy tighter through the day
- For precise real-time room or zone occupancy, use Presence Mode
Comments
Please sign in to leave a comment.