Intelligent Video Analytics: How Modern CCTV Detects Behaviour, Not Motion

Intelligent video analytics detects behaviour from classified, tracked objects and rules, not pixel change.

Intelligent Video Analytics: How Modern CCTV Detects Behaviour, Not Motion
Written by TechnoLynx Published on 04 May 2026

Intelligent video analytics detects behaviour by detecting and classifying objects, tracking each one across frames, and testing them against rules such as virtual lines that must not be crossed or protected areas. Basic motion detection detects motion with regard to a fixed background scene. A modular, observable pipeline (detect, track, apply rules) lets you know where and why an alert went wrong. This article goes through how behaviour detection works on CCTV, where it breaks, and why the architecture decides whether you can fix it. Our overview of AI video surveillance false alarms and the architecture that reduces them covers the wider picture.

Intelligent video analytics versus motion detection

Video content analysis is the ability to analyse video automatically and detect temporal and spatial events. In the security market it is sold as “video analytics” or “smart CCTV”. Motion detection is one of its simpler forms. A camera’s motion detector watches an area and raises an alarm when something moves inside it. To cut false alarms, Axis’s manual for its Video Motion Detection application tells users to set filters that ignore swaying foliage, small animals and car headlights. It offers three ignore filters: short-lived objects, small objects and objects that only sway a short distance.

Each of those filters judges an object by its size, how long it appears or how far it moves. Axis’s Object Analytics documentation makes the distinction explicit. Its “motion in area” and “motion line crossing” scenarios classify nothing and trigger on any moving object, while its other scenarios classify humans and vehicles first.

One survey of video surveillance describes the pipeline in this order: detect moving objects, classify them, track them through the image sequence, then analyse their behaviour. The same survey found that most current systems perform almost all the key low-level functions (motion detection, segmentation, tracking, classification) with good accuracy. It also found that the field’s interest had moved on to analysing patterns of activity, and that existing behaviour systems focus on behaviours defined in advance. Once a system holds this internal representation of objects and tracks, behaviour analysis becomes possible to build on it.

How does AI video analytics detect loitering, trespassing or an unattended bag?

The ONVIF Video Analytics Service Specification describes this architecture. It splits a video analytics application into an image-analysis part and an application-specific part. Between the two sits an abstraction that describes the scene in terms of the objects in it. ONVIF calls the first part the video analytics engine and its output the Scene Description. The second part is the rule engine, which compares the scene description against rules such as virtual lines that must not be crossed or polygons around a protected area. The rule engine outputs events, which an event engine can act on or a client can subscribe to.

The specification defines two rules a device implementing a rule engine should support. A LineDetector is a polyline: when an object crosses it in the set direction, the engine sends a Crossed event naming the rule and the object. A FieldDetector is a polygon, and it decides whether each object in the scene is inside or outside it. The same rule mechanism can describe behaviour between objects, such as one object following another (tailgating), or ban certain motion to enforce a speed limit.

Common CCTV behaviours map onto those building blocks:

  • Trespass is a person detected in a restricted area during a set time of day, for example a fenced yard after close of business.
  • Loitering is an object that moves only slightly within an area for a set period. Axis implements this as “time in area”: a counter starts when an object enters and resets if it leaves before the limit.
  • Unattended objects are objects detected as idle or left in an area, such as luggage without an owner. ONVIF defines two standard behaviours for an object that stops moving: Removed and Idle.

Creating, deleting or modifying rules and analytics modules must be atomic: either every change applies or the whole operation fails. That is exactly the property you want when someone edits a zone on a live site.

Worked example: an unattended-bag alert, stage by stage

The assumptions here are illustrative. A person walks in carrying a bag, puts it down and leaves. The detector and tracker first treat person and bag as one object. ONVIF describes this case: when two objects come too close to track individually, the analytics signals a Merge and uses the merged object’s ID in future frames. When the person walks away, the separation is indicated by a Split listing the objects separating from the merged one. The stationary bag can then be marked Idle. The rule engine then raises an event for an object left idle in the area.

Count the stages that must all go right: detection, the merge, the split, the Idle state and the rule. If the alert never fires, you need to know which of those stages broke and why. A system that exposes each stage’s output shows you where and why it broke.

The types of video analytics used in CCTV systems

Bosch’s video analytics task list and Axis Object Analytics illustrate the common types:

Analytics type What triggers it Example source
Object in field / object in area An object moves inside a defined area Bosch, Axis
Line crossing and crossline counting An object’s point of detection crosses a virtual line in a set direction, optionally counted Bosch, Axis
Loitering / time in area An object stays in an area longer than a set time Bosch, Axis
Idle or removed object An object is left in, or taken from, an area Bosch, ONVIF
Condition change A detected object’s properties change within a time span, for example a person falling Bosch
Tailgating More than one object crosses a line within a set window of 0 to 20 seconds Axis
Occupancy in area An estimated count of moving and stationary objects in an area Axis
Recognition events Licence plate or face recognition events ONVIF Profile M

The loitering, tailgating and idle-object rows act on detected objects followed over time.

Why motion-based alerting floods operators, and what nobody can tell you about the reduction

Motion detectors raise many irrelevant motion events. The ReMotENet authors list the usual sources of nuisance alarms as tree motion, shadows, reflections, rain or snow, and flags. “Relevant” motion, by contrast, means named objects such as people, vehicles or pets changing location in a way a person would notice. In the 38,360 home-surveillance clips they collected, most footage showed only a static background or irrelevant motion from shadows, lighting changes, or snow and rain.

False alerts carry real costs. One study of alarm policy reports that 94 to 99 percent of police responses to alarms are to false activations. That figure covers burglar alarms in general, not video analytics. The same study reports that police in most communities therefore assign a low priority to all burglar alarm calls.

How much does behaviour analytics reduce false alarms? No universally agreed benchmark exists to produce a comparable figure. Hanwha Vision, for one, says object classification in its AI Box reduces false alarms. A European Commission Joint Research Centre (JRC) report on video surveillance standardisation found no universally agreed set of performance metrics or benchmarking process for video analytics, and no European certification for surveillance analytic systems. The ONVIF specification defines an XML-based scene description interface and a standard rule syntax.

One recognised test is the UK Home Office’s Imagery Library for Intelligent Detection Systems (i-LIDS). Its event-detection scenarios define alarm events, for example a vehicle parked in a defined zone for more than 60 seconds, and each dataset has roughly 24 hours of footage recorded under varied conditions with an XML index. Systems are scored with an F1 measure, a weighted harmonic mean of recall (the share of genuine events detected) and precision (the share of alarms that are genuine). A recall-bias parameter sets how much detection rate counts against false alarms. A system must reach an F1 of 0.7 just to be accepted for evaluation at the application phase. Systems scoring above set boundaries are recommended for a scenario and listed for government and critical-infrastructure buyers, but the F1 values needed for that recommendation are not published.

The broader causes of alert noise in a security operation are covered in cutting SOC noise with AI-powered alerting. Measuring false-alarm rates in residential settings is covered in AI video analytics for apartment buildings.

If the scene has significant depth, Axis Object Analytics needs perspective calibration to remove false alarms caused by small objects. During calibration it compares the height of objects in the image with their known physical heights, then uses that perspective to compute each object’s real size. Axis’s motion detector needs the same calibration before its small-objects filter works on a deep scene.

Getting alert quality right is a reliability discipline in its own right, distinct from model accuracy.

Failure modes behaviour rules inherit from the stages beneath them

Each rule reads the scene description that detection and tracking produce.

Axis decides whether an object is inside an area, or has crossed a line, from a single point of detection: at the feet for a human, at the centre for a vehicle. If that point is hidden, the application estimates where it is. An object that only touches a line does not trigger; its point of detection has to cross. Occupancy is described as an estimate that adjusts as objects come and go. Tracking is hardest when objects move fast relative to the frame rate. The ReMotENet authors also found that detector and tracker performance dropped significantly at small resolution or low frame rate.

The table below sorts a bad alert by pipeline stage:

Stage Its output How its failure shows up What to inspect
Decode and sampling Frames at the sampled rate Missed fast-moving objects Frame rate actually processed versus streamed
Detection and classification Bounding boxes with classes Nuisance alarms from shadows, reflections or rain Perspective calibration on deep scenes
Tracking Object IDs over time, merges and splits Objects too close to track individually Merge and Split nodes in the scene description
Rule engine Events per rule Correct tracks but wrong alerts Zone geometry, direction, dwell time, schedule
Event handling Events to clients Alerts not reaching operators Subscription and action configuration

The JRC report advises using analytics for decision support rather than as a fully automated security solution, because complex systems are never completely fail-safe and they fail in unexpected conditions. Operators need full visibility of the system’s decisions, its configuration and the manual override paths. Without that, the system becomes an operational risk rather than infrastructure.

Should CCTV analytics run in the camera, on an edge device, or on a backend server?

Analytics can run on the cameras themselves or centrally on dedicated processing systems. Microsoft Research’s work on real-time video analytics goes further and places individual pipeline modules separately, at the camera, in a private cluster or in the cloud. Each of those modules implements pre-defined interfaces to receive events and send results downstream.

One measured comparison comes from the REVAMP²T pedestrian-tracking system, which ran on NVIDIA AGX Xavier edge nodes. Server processing had the lowest latency at small node counts. Beyond 16 edge nodes, the network latency of streaming video swung latency in favour of edge processing, and edge processing always used less cost and power. At 64 nodes, edge processing had the best latency at about half the cost and 60 percent of the power of server processing. That is one research system with one workload, so treat the crossover point as a sign of direction, not a rule for your site. Edge processing also has a privacy benefit: in REVAMP²T, only encoded feature vectors, impersonal IDs and metadata crossed the network.

The events worth alerting on are rare by definition. That imbalance shapes where inference runs, how long footage is stored and how aggressively alerts are tuned. Cheap first-stage filtering such as motion detection cuts the bandwidth that must be provisioned. Revisit the split as the camera count grows.

Can existing CCTV cameras be upgraded with AI analytics without replacing them?

For ONVIF cameras, at least one vendor says yes. Hanwha Vision says its AI Box can turn any standard ONVIF-compatible camera into an analytics camera with loitering and line-crossing detection. That is the vendor’s own claim. On the interface side, an ONVIF Profile M device sends analytics metadata to a client and supports configuring analytics modules. Profile M (v1.1) requires devices to support adding and removing analytics modules on an existing configuration, and rules too where rule configuration is supported. The core analytics service already lets a client add, remove or modify module configurations and run several modules in parallel where the device supports it.

The upgrade stops working in three places.

  • Camera position. Analytics algorithms do not suit every camera position and orientation. Our piece on 4K security cameras and AI analytics covers when more resolution helps.
  • Calibration. Many analytics need per-camera calibration. The JRC recommends automating it, or choosing solutions that need none, for installations above about 50 cameras.
  • Metadata consistency. The JRC found that metadata is system-specific and that keeping definitions consistent takes work when a new solution has to fit a legacy system. Profile M devices send analytics metadata to clients over IP. Whether “loitering” means the same thing on two vendors’ boxes is still for you to check.

Why CCTV analytics deployments stall at scale

Two scaling problems stand out in the sources: configuration effort and compute. The JRC’s 50-camera calibration warning covers the first. A published case study on optimising a modular video analytics pipeline, a poultry-welfare system with detection, tracking, clustering and behaviour stages, shows the second. The pipeline used PyTorch, OpenCV and ONNX Runtime, and although its libraries used the GPU, it ran as a sequential process overall. Optimising each module separately exposed specific inefficiencies. The pipeline sampled 2 FPS from 30 FPS video, so 14 of every 15 frames were decoded and then thrown away; switching to OpenCV’s grab-and-retrieve calls removed that work. Batching detection up to 16 frames cut inference time per frame from about 6.6 ms to 2 ms. Across the pipelines, processing cost per video fell from $0.691 to $0.312, a 54.8 percent reduction on AWS g4dn.2xlarge instances.

NVIDIA’s DeepStream SDK is a graph of GStreamer plugins (decode, inference, tracking through Gst-nvtracker, visualisation) that can be combined into an analytics pipeline. Vendor write-ups on modular video pipelines list the same benefits: it is easier to see which part failed, and you can upgrade one component without retraining the whole system.

End-to-end models have their place. ReMotENet, a single 3D ConvNet, detects relevant motion in a 15-second clip in 4 to 8 milliseconds on a GPU. Its output is a set of binary predictions about whether relevant motion occurred. Used as a filter stage at the front of a pipeline, that is useful. As the whole system, it gives an investigator nothing to inspect when a verdict is wrong. We are pragmatic about this: we use end-to-end components where they earn their place, but the system around them stays modular, transparent and observable, so a failure can be traced to a stage and a cause.

Who can build a behaviour analytics pipeline on an existing camera estate?

TechnoLynx builds computer vision systems, including detection and tracking, as modular, observable stages. That way, when an alert goes wrong, you can see which stage was at fault. The work covers object detection and tracking, plus GPU performance engineering to make the workload cheaper on the target hardware. TechnoLynx delivers this through its Computer Vision R&D work.

For standard line, zone and loitering rules on supported cameras, an off-the-shelf camera application or an ONVIF analytics box may be enough, provided you validate it on your own footage. DeepStream provides GStreamer plugins as building blocks for such a pipeline.

What a buyer should still ask for

With no universal metrics and no European certification for video analytics, a vendor’s accuracy claim cannot be checked against any standard yardstick. Even i-LIDS approval keeps its pass mark private. Ask whether the system exposes detections, track IDs and rule events separately. Ask whether a zone change applies atomically and can be audited. Ask whether a missed unattended bag can be replayed and traced to the stage that dropped it.

Back See Blogs
arrow icon