Risk, labels, and scores
Scores
Section titled “Scores”The scores object contains the raw output probabilities from the classification model. Each score is a floating-point value between 0.0 and 1.0, representing the model’s confidence that a given concept is present in the analyzed video segment.
"scores": { "intrusion": 0.919, "person": 0.127, "vehicule": 0.893, "animal": 0.062, "flag": 0.830, "plant": 0.049, "rain": 0.005, "wind": 0.007, "text": 0.001, "other": 0.020, "NOTHING": 0.0003}Risk levels
Section titled “Risk levels”The system exposes three and only three risk levels:
safedangerintrusion
These are directly derived from the intrusion score using two configurable thresholds.
Thresholds
Section titled “Thresholds”| Threshold | Description |
|---|---|
| Low threshold | Boundary between safe and danger |
| High threshold | Boundary between danger and intrusion |
Typical configuration:
low_threshold = 0.2high_threshold = 0.8See Configuration to customize thresholds.
Risk derivation
Section titled “Risk derivation”| Intrusion score | Risk level | Meaning |
|---|---|---|
< low_threshold | safe | No action required |
>= low_threshold and < high_threshold | danger | Requires operator validation |
>= high_threshold | intrusion | Confirmed intrusion |
if intrusion >= highThreshold { risk = "intrusion"} else if intrusion >= lowThreshold { risk = "danger"} else { risk = "safe"}Operational semantics
Section titled “Operational semantics”- Safe — Normal background activity. May be automatically filtered out.
- Danger — Ambiguous or suspicious activity. Must be reviewed by an operator. Never automatically discarded.
- Intrusion — High-confidence intrusion detected. Must be reviewed and escalated. Never automatically discarded.