Skip to content

Risk, labels, and 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
}

The system exposes three and only three risk levels:

  • safe
  • danger
  • intrusion

These are directly derived from the intrusion score using two configurable thresholds.

ThresholdDescription
Low thresholdBoundary between safe and danger
High thresholdBoundary between danger and intrusion

Typical configuration:

low_threshold = 0.2
high_threshold = 0.8

See Configuration to customize thresholds.

Intrusion scoreRisk levelMeaning
< low_thresholdsafeNo action required
>= low_threshold and < high_thresholddangerRequires operator validation
>= high_thresholdintrusionConfirmed intrusion
if intrusion >= highThreshold {
risk = "intrusion"
} else if intrusion >= lowThreshold {
risk = "danger"
} else {
risk = "safe"
}
  • 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.