Builds behavioral baselines and scores anomalies based on deviation from learned routine patterns over time.
Learned routine patterns over a rolling 7-day window. Each cell is the expected occupancy/activity intensity for that hour of day, derived from CSI presence and motion samples. Anomaly scoring compares fresh observations against these baselines.
Continuous anomaly scoring against the learned baseline. Each score is a normalized deviation (0β1) emitted every 5 minutes as anomaly_score. Crossings of the threshold escalate to routine_deviation events.
| Timestamp | Score | Severity | Cell | Detail |
|---|
Raw events emitted by the behavioral-profiler cog. Three event types are produced: anomaly_score (continuous scoring), routine_deviation (threshold crossings & cluster shifts), profile_update (baseline retrain / sample ingestion).
Current state of the resident profile model β feature weights, cluster centroids, retraining cadence, and detection sensitivity. Tune sensitivity below to trade between false positives and missed anomalies.
Crossings above this value emit a routine_deviation event.
Behavioral anomaly scoring from routine pattern deviation
Builds behavioral baselines and scores anomalies based on deviation from learned routine patterns over time.
Activity is binned into a 7-day Γ 24-hour grid built from CSI presence and motion samples. After a warm-up period the cog continuously scores incoming observations against the learned baseline, emitting an anomaly_score every 5 minutes and an escalated routine_deviation event whenever the score crosses a configurable threshold.
cognitum-one/cogs/src/cogs/behavioral-profiler
| Name | Kind | Required |
|---|---|---|
| csi-presence | cog | required |
| motion-sensor | cog | required |
| nv-storage | capability | required |
| brain-mini | service | optional |
$ cogctl install behavioral-profiler --seed seed-living-room $ cogctl tail behavioral-profiler --follow [profile_update] samples=14210 rev=0.9.0+212 retrain_window=7d [anomaly_score] score=0.18 cell=Mon/19:30 z=0.4Ο [routine_deviation] cluster=evening_peak delta=+0.27 duration_short