Cognitum/Loiteringv1.0.0Security
Security

Loitering Detection

Detects prolonged stationary presence in monitored zones, triggering alerts when configurable dwell time thresholds are exceeded. Runs on ESP32-S3 with CSI presence input — no cameras, no images, no PII.

Source cognitum-one/cogs/src/cogs/loitering Hardware ESP32-S3 Input CSI presence Size 14 KB Difficulty Easy
Monitored zones
active / total
Active presences
across all zones
Avg dwell time
last 24h
Alerts today
vs yesterday
CSI sample rate
across fleet
Active occupancy (last 30 min)
Stacked by zone · 1s tick
Current zone occupancy
Ring gauges — % of threshold dwell
Recent loitering alerts
Last 10 detections
TimeZoneDwellThresholdDeviceStatus
loading…

Live presence stream

Real-time CSI presence and dwell counters from paired ESP32-S3 sensors. Events are emitted on the cog event bus as loitering_detected when the dwell threshold is crossed.

Dwell time per zone (live)
Seconds since each zone became occupied
Event feed
Newest first · click to acknowledge
CSI signal heatmap (rolling 60s)
Per-device CSI variance — bright = motion, dim = stationary

Zones

Define monitored areas. Each zone maps to one or more CSI sensors and has its own dwell threshold.

Alerts

Every loitering_detected event, with ack/dismiss/resolve actions.

TimeZoneDwellThresholdDeviceStatusActions
Alert timeline
Detections per hour — last 24h

Thresholds

Tune dwell-time thresholds per zone. Lower = more sensitive (more alerts). Higher = fewer but more confident detections.

Per-zone dwell thresholds
Slide to adjust — applies immediately
Global defaults
Applied to newly created zones
Threshold impact preview
Estimated alerts/day at each global threshold

Devices

ESP32-S3 seeds reporting CSI presence into this cog. Each device feeds one zone.

Analytics

Patterns in loitering events: when, where, and how long. Histories are rolled in-process; persist to RVF index for cross-session retention.

Detection heatmap (last 26 weeks)
Each cell is one day · brighter = more detections
0
Dwell-time distribution
Histogram of all detections — 30s buckets
Detections by zone
Last 14 days
0
total
Detections per day (14d trend)
All zones combined

Settings

Cog-level configuration for the Loitering detector.

Notifications
How loitering events are surfaced
Event schema
Emitted on the cog event bus
{
  "event": "loitering_detected",
  "fields": {
    "zone_id":   "string",
    "dwell_time":"integer (seconds)"
  },
  "hardware":  "ESP32-S3",
  "input":     "CSI presence",
  "version":   "1.0.0"
}
Data retention
How long events are kept locally
Danger zone
Irreversible operations