Algorithms, Applications and  Performance Engineering

Whitepaper

Algorithms, Applications and Performance Engineering

Nov 2026

Executive Summary

Artificial intelligence is transforming video surveillance from a system that merely records visual

information into one capable of identifying objects, associating observations over time, recognising

predefined scenarios and helping operators retrieve evidence. Yet there is a substantial difference

between a model that performs well on a benchmark dataset and a complete CCTV solution that works

under challenging site conditions. For practical procurement and deployment, the appropriate unit of

evaluation is the end-to-end operational event: was the relevant incident detected, was it notified within

an acceptable interval, and did it create a manageable false-alarm burden?

This white paper explains the analytics pipeline; compares major algorithm families; defines precision,

recall, false-positive measures, tracking and latency metrics; and presents an illustrative acceptance-test

framework. It uses IEC 62676-6:2026 as the principal international reference for performance testing and

grading of intelligent video analysis. References to the standard describe its publicly stated scope; this

document does not reproduce its proprietary test methods or claim compliance with them. [1]

Key findings

  • Algorithm selection must follow the surveillance objective and scene constraints, not model popularity.
  • Object detection, tracking, classification and incident recognition are distinct functions, each with independent failure modes.
  • A single “AI accuracy” figure is inadequate without event definitions, evaluation units, datasets and environmental conditions.
  • False alarms should be measured per camera-hour or relevant exposure period as well as per test sample.
  • Procurement acceptance should combine offline benchmarks, representative field trials, cybersecurity review and an ongoing drift-monitoring plan.

1. Scope and terminology

Video analytics is the automated processing of digital video to generate features, classifications,

trajectories, alerts or searchable metadata. Computer vision describes the methods used to extract this

information. Video content analysis (VCA) often denotes the wider functional class of systems that turn

observed activities into machine-readable output. The precise meaning of vendor terms varies, so

contractual documents should specify measurable tasks.

Function Question answered Typical output

Detection Is an object present? Class label and image bounding box

Tracking Is this the same object over time? Track identifier and trajectory

Event recognition Did a defined temporal condition Timestamped event with rule context

occur?

Scene understanding What is occurring in this scene? Structured description or natural-language summary

Function Question answered Typical output

Forensic search Where did specified visual evidence Indexed candidate clips for review

occur?

2. End-to-end analytics architecture

An intelligent video system is a sequence of interacting functions, not a camera model with an isolated AI

chip. A practical processing chain is: image acquisition -> preprocessing -> object inference -> temporal

association -> event logic -> alert management -> human verification -> evidence retention. Every step

adds potential errors and delay.

2.1 Image acquisition and preprocessing

Image formation is fundamental. Poor contrast, motion blur, sensor noise, compression artefacts,

inadequate pixels on target and incorrect exposure may overwhelm later algorithms. Preprocessing can

include geometric correction, resizing, temporal sampling, masking or exposure normalisation.

Preprocessing must not inadvertently remove the visual cues required by the event detector.

2.2 Detection and temporal reasoning

A detector estimates object categories and positions in individual images. A tracker links observations

between frames. Event logic then evaluates relationships such as whether a person crossed a virtual

boundary, remained within a region for a threshold duration or approached an excluded zone in the

wrong direction. This layered design makes failures easier to diagnose than a single undocumented

“smart alert” function.

2.3 Alert orchestration

Event engines should support configurable severity, duplicate suppression, dwell timers, cooldown

periods, health monitoring and a secure integration interface. A dashboard that delivers technically

correct detections but overwhelms operators can be worse operationally than a more selective system.

3. Algorithm families used in CCTV analytics

3.1 Motion detection and background modelling

Traditional motion detection uses frame differencing, foreground extraction or statistical background

models. These methods may be computationally economical, but moving trees, rain, lighting changes,

shadows and camera vibration can create excessive triggers. They remain useful as early-stage filters,

provided their limitations are recognised.

3.2 Convolutional neural network detectors

Convolutional architectures learn spatial features and support object detection, image classification and

segmentation. One-stage detectors generally optimise for throughput, while two-stage approaches can

offer different accuracy-cost tradeoffs. Actual speed depends on input resolution, model complexity,

hardware, batching and postprocessing.

3.3 Transformer-based vision models

Attention-based architectures model relationships among visual features and can support detection,

tracking and video understanding. Their accuracy and computational demand vary widely. A model

described as transformer-based is not inherently superior for low-light or small-object security

applications.

3.4 Multi-object tracking

Tracking-by-detection combines object measurements across successive frames, often using motion

prediction, spatial overlap and appearance features. Standard challenges include occlusion, crowd

density, abrupt direction changes, camera shake and track fragmentation. Multi-camera identity

association requires additional calibration and governance; it should not be presumed from single-camera

tracking performance.

3.5 Temporal action and scenario recognition

Complex events depend on sequences rather than single frames. Architectures may analyse frame

windows, trajectories, skeletal motion or combinations of detector outputs and explicit rules. A

person-down alert, for example, requires a definition that distinguishes a true fall or collapse from sitting,

bending, maintenance activity or temporary occlusion.

3.6 Unsupervised and open-set anomaly detection

Anomaly methods flag events unlike patterns seen during training or calibration. Their strength is

discovery of unusual activity, but novelty does not establish malicious intent. Changes in traffic volume,

lighting and seasonal operations can also create novelty. Such systems should be positioned as

investigatory aids and tested for operator burden.

3.7 Vision-language and multimodal models

Models that combine video or imagery with text may assist with search, incident summarisation and

retrieval. Their descriptions may hallucinate objects or causality, especially with poor visual evidence. The

original video, event timestamps and chain-of-custody metadata must remain authoritative. Generative

descriptions should be labelled as machine-generated suggestions and verified before consequential

action.

4. Matching an algorithm to the use case

Use case Preferred functional chain Critical validation concern

Perimeter breach Person/vehicle detection + tracking + Night scenes, occlusion, wildlife, wind and rain

geofenced event rule

Wrong-way vehicle Vehicle tracking + directional trajectory rule Camera perspective, turns, lane boundaries

Abandoned object Object persistence + owner/scene Crowds, legitimate temporary placement,

association occlusion

Person down Pose/temporal event recognition + Sitting, crouching, maintenance and image

confirmation workflow detail

Crowd monitoring Counts/occupancy or density estimation Perspective distortion, overlap, density variation

Natural-language Embedding-based retrieval + source-video Retrieval misses and fabricated summaries

evidence search review

Rule complexity should be treated as a design parameter. A perimeter event may be straightforward in a

controlled sterile zone but difficult in an active loading bay. Evaluation must cover the target operating

environment, including legitimate behaviours that resemble prohibited ones.

5. Metrics that matter: from model score to mission outcome

5.1 Confusion-matrix definitions

For a defined binary evaluation unit: true positives (TP) are correctly detected positive instances; false

positives (FP) are incorrectly detected negatives; false negatives (FN) are missed positives; and true

negatives (TN) are correctly rejected negatives. The evaluation unit must be explicitly stated: frames,

objects, clips, events, entrances or operating intervals are not interchangeable.

Precision = TP / (TP + FP). Recall = TP / (TP + FN). F1 score = 2 x Precision x Recall / (Precision + Recall).

False-positive rate = FP / (FP + TN), when a defined population of negative units exists. Specificity = TN /

(TN + FP).

Accuracy = (TP + TN) / total observations is frequently misleading in surveillance, because true incidents

may be rare. An algorithm can have high apparent accuracy while missing many of the events that

matter.

5.2 Operational false alarms

For continuous surveillance, a more actionable metric is false alerts per camera-day or false alerts per

100 camera-hours. Count alerts only after the configured event logic and duplicate suppression, and

disclose the number of monitored hours. A confidence score by itself is not a calibrated probability unless

calibration has been demonstrated.

5.3 Tracking and retrieval

Tracking tests may examine association errors, identity switches, track continuity and established

benchmark measures. Retrieval tests should examine whether relevant clips appear within a defined

candidate list, not merely whether generated text sounds plausible. Report performance by use case and

camera condition rather than collapsing all functions into one global score.

5.4 Event latency

End-to-end alert latency extends from the beginning of a specified event to delivery of a usable

notification. Camera frame sampling, video transport, buffering, inference, temporal dwell requirements,

rules processing and dashboard dispatch all contribute. Average latency should be accompanied by an

upper-percentile measure such as p95 and a clear event-start definition.

6. Worked evaluation example: perimeter intrusion

Illustrative data only – not a field result. Suppose a test set contains 200 independently annotated

intrusion events and 2,000 defined negative evaluation intervals. The algorithm correctly identifies 184

incidents, misses 16 and produces 40 false alerts across negative intervals.

Measure Calculation Result

Precision 184 / (184 + 40) 82.1%

Recall 184 / (184 + 16) 92.0%

F1 score 2 x 0.8214 x 0.92 / (0.8214 + 0.92) 86.8%

Negative-interval false-positive rate 40 / 2,000 2.0%

Missed event proportion 16 / 200 8.0%

Interpretation: strong recall does not imply a manageable operational burden. If 40 false alarms occurred

across 400 camera-hours, the rate would be 10 false alerts per 100 camera-hours. Whether this is

acceptable depends on response staffing, alert criticality and other concurrent systems. The

negative-interval rate and camera-hour rate answer different questions and should not be confused.

For statistically credible procurement tests, datasets should be large enough for the intended confidence

and include rare but safety-relevant conditions. Confidence intervals, scene-level stratification and

site-to-site variation are valuable because repeated frames from one event are not independent samples.

7. Optical and environmental factors

7.1 Pixels on target and scene geometry

Object recognition depends on useful image detail, not simply nominal resolution. The same camera may

provide excellent near-field performance but insufficient pixels on a distant person. Camera height, focal

length, angle to travel direction and blind spots should be evaluated on a site plan and through captured

test footage.

7.2 Lighting and contrast

Night-time headlight glare, low illumination, backlight, infrared reflection and high dynamic range scenes

can change detector performance. WDR and IR illumination are not universal cures: motion blur, sensor

noise and scene interference still matter. Acceptance tests should capture realistic lighting transitions.

7.3 Weather and vibration

Rain, fog, dust, heat shimmer, lens contamination and mechanical shake may create both false positives

and misses. For outdoor analytics, environmental qualification should include selected stress conditions

and defined degraded-mode behaviour. IEC 62676-6:2026 explicitly considers degrees of difficulty in

operating environments. [1]

8. Test-data governance and ground truth

Ground truth is the independently validated description of what actually occurred in the test footage. It

should define event start and end time, location, object class, allowed timing tolerance and acceptable

detection criteria. Annotation guidance must resolve ambiguity, and reviewers should adjudicate disputed

cases before scoring.

  • Separate development, tuning and acceptance footage; avoid reusing a scene across splits in a way that

inflates results.

  • Use independent physical events as evaluation samples where possible; avoid counting many adjacent

frames as separate successes.

  • Include negative footage with legitimate activities that resemble threats.
  • Report performance by day/night, camera, zone, weather condition and activity class.
  • Record software, model version, parameters, firmware and test equipment for reproducibility.

9. Acceptance testing framework

A defensible factory acceptance test (FAT) demonstrates core functional capability under controlled

conditions. A site acceptance test (SAT) verifies real-world performance after final camera alignment,

network installation and rule configuration. A monitored trial validates false-alarm workload over an

extended representative operating period.

Test phase Primary evidence Acceptance decision

Design review Event definitions, image adequacy, network and Requirements are measurable

compute sizing

FAT Documented footage, model version and repeatable Functional baseline established

scenarios

SAT Site trials in representative conditions System demonstrates use-case

performance

Burn-in / monitored trial Camera-hours, alert logs, operator adjudication Alarm workload is sustainable

Test phase Primary evidence Acceptance decision

Periodic reassessment Versioned metrics, incidents and environmental Continued suitability or retuning

changes

9.1 Example acceptance criteria (illustrative, not IEC limits)

For a controlled access-zone intrusion application, a project might specify recall of at least 95% on a

representative event test set, precision of at least 90%, p95 event-to-notification latency within 5 seconds

(for a predefined event-start point), and fewer than 2 false alerts per 100 camera-hours. These values are

example project targets only; they are not IEC-mandated thresholds and must be adjusted for exposure,

risk and test feasibility.

Any threshold must state how detections are matched to ground truth, which event types count, the

allowed time tolerance, how duplicate alerts are counted, and whether failure of a critical scenario

overrides aggregate scores.

10. Edge, server and cloud inference trade-offs

Design variable Edge processing Server/cloud processing

Latency Can minimise transport delay Depends on backhaul, queueing and compute

Bandwidth Can send metadata or selected clips Often needs video streams or selected frame

uploads

Maintainability Many distributed devices to patch Centralised model updates; shared

dependency

Resilience Local analytics can survive WAN loss Central failure domain needs redundancy

Privacy Potentially less raw-video transfer Remote transfer requires governance and

safeguards

A hybrid design can distribute essential event detection to the edge and use central compute for

cross-camera correlation or forensic search. The final architecture should be tested under network

interruption, queue overflow, storage degradation and processor overload.

11. Integration, security and evidence reliability

Analytics platforms should define how alerts, metadata and associated video clips are exchanged with

VMS, command centres and incident-management software. ONVIF Profile M supports analytics metadata

and events for conformant implementations, but does not guarantee every proprietary event is

interoperable; supported functions and product conformance should be checked against the official

database. [2]

Security controls should include unique administrative credentials, restricted management interfaces,

encryption where supported, audit trails, secure update procedures, role-based access and a documented

product-support period. Original video should be protected from unauthorised alteration. Any generated

summaries or classifications should remain linked to source timestamps and recordings.

12. Risks, responsible operation and limitations

Biometric recognition and individual identification raise greater privacy and fairness concerns than simple

object counting. Models can behave differently across contexts and population groups; applicability

should be evaluated before deployment. A behavioural alert should never be portrayed as proof of

wrongdoing. Security responses affecting people require lawful authority and proportionate,

human-governed procedures.

NIST AI RMF offers a useful risk-management structure for validity, reliability, safety, security,

accountability and monitoring, without providing a CCTV-specific certification. [3]

13. Procurement checklist

  • Describe each required event as a testable scenario with boundary conditions and expected operator workflow.
  • Specify image and installation requirements independently of claims such as “4K AI camera”.
  • Demand quantitative event-level metrics, test sample sizes, negative exposure periods and performance by operating condition.
  • Require disclosure of analytics architecture, model update procedures, hardware sizing and failure modes.
  • Confirm interoperability for the exact cameras, VMS versions, interfaces and metadata functions proposed.
  • Document privacy, retention, access, evidence integrity and vendor support obligations.
  • Tie final acceptance to repeatable SAT evidence and an agreed monitored-trial period.

14. Future outlook

The next generation of intelligent surveillance will likely combine edge inference, multi-camera

association, contextual scene reasoning and natural-language retrieval. More automated investigations

could assemble relevant video clips and draft incident timelines. Nevertheless, systems that produce

plausible explanations without traceable evidence can compromise decisions. Evaluation will increasingly

need to measure reliability of the entire workflow – including human use – rather than isolated model

scores.

15. Conclusion

AI analytics should be specified and procured as an engineering function with defined inputs, measurable

outcomes and explicit limits. The most important differentiator is not the number of claimed features, but

the ability to detect relevant incidents under real operating conditions with manageable false alarms and

verified response timing. IEC 62676-6:2026 reinforces the importance of scenario-based performance

testing and grading. For owners and consultants, the practical mandate is to demand evidence of

performance, reproducibility and responsible governance throughout the surveillance lifecycle. [1]

Frequently asked questions

What is the difference between AI video analytics and motion detection?

Motion detection primarily identifies image changes. AI analytics can classify objects, track movement and evaluate temporal rules, though it still requires testing for scene-specific errors.

Which algorithm is best for CCTV?

No single algorithm is universally best. Choose a pipeline based on the target event, optical conditions, compute budget, false-alarm tolerance and evaluated performance.

What does 95% accuracy mean in surveillance?

Without the metric, evaluation unit, event definition, dataset and test conditions, the claim is not decision-useful. Require precision, recall, false alerts per camera-hour and event latency.

What is a false alarm rate for AI CCTV?

It can refer to false positives per test interval, false alerts per camera-hour or another denominator. Procurement specifications must define the denominator and duplicate suppression rules.

Can generative AI be used to search CCTV video?

Yes, multimodal retrieval can help find candidate clips using text prompts, but the operator should verify the actual recording rather than rely on a generated summary.

What international standard covers AI video analytics performance?

IEC 62676-6:2026 covers functions, test methods, environmental adaptability, performance evaluation and grading of intelligent video analysis in video surveillance.

How should AI CCTV be tested before handover?

Use controlled functional tests, representative site acceptance trials, a monitored operational period, documented ground truth and versioned performance records.

Does ONVIF Profile M make every AI camera compatible?

No. Profile M provides a standardised interface for supported analytics metadata and events; actual interoperability requires the relevant conformant implementation and feature verification.

References and further reading

[1] IEC 62676-6:2026 – Video surveillance systems for use in security applications – Performance testing and grading of

real-time intelligent video content analysis

https://webstore.iec.ch/en/publication/59704

[2] ONVIF – Profile M: Metadata and events for analytics applications

Profile M

[3] NIST – Artificial Intelligence Risk Management Framework (AI RMF 1.0)

https://www.nist.gov/itl/ai-risk-management-framework

[4] Google Search Central – AI features and your website (publication and indexing guidance)

https://developers.google.com/search/docs/appearance/ai-features

[5] IEC – IEC 62676-4:2025, application guidelines for video surveillance systems

https://webstore.iec.ch/