Skip to content

[feat] hive-heartbeat anomaly detection + push (extends #1) #116

Description

@cofade

Background

Issue #1 wants user notifications on critical states. The hardest part of "critical" is defining it — a hardcoded "if activity = 0 for 24 h" is naive. Combined with the per-module baseline (#115) and weather context (#111), we can detect relative anomalies and only push when something is genuinely unusual.

Why it matters

Proposal

  1. Daily (or hourly?) job evaluates each module against its baseline + current weather.
  2. If observed activity is outside the expected band (e.g. > 2σ below predicted under similar weather) for K consecutive evaluations, raise an anomaly.
  3. Anomaly fed into the notifications channel ([arch] notifications channel abstraction (mail / webhook / ntfy / telegram) #113) with module name, baseline value, observed value, and suggested causes ("possible predator activity", "possible network issue if no images uploaded").
  4. Operator can mark anomalies as resolved / false positive — feedback loops into baseline confidence.

Acceptance criteria

Out of scope

  • Specific predator/parasite identification (separate ML problem).
  • Operator-configurable thresholds — v1 ships sensible defaults.

Related: #1, #110, #111, #113, #115

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions