Rule-Based Computer Vision vs VLM Contextual AI in Heavy Industries
Rule-based computer vision flags every zone entry. A VLM contextual layer reads why it happened. Learn which decisions belong to which layer on a heavy-industry site.
Last updated
25 min read
Summary
- Rule-based computer vision is fast, deterministic, and cheap to run at scale, but it has no access to operational context, so it flags a permitted pump change identically to an unauthorised intrusion.
- A vision language model (VLM) contextual layer evaluates the whole scene and explains its reasoning in plain language, but it runs 100 ms to 2 seconds per frame against single-digit milliseconds for rules and can be confidently wrong.
- Alert fatigue is the real failure mode: false alarms teach control room operators to dismiss the queue, and research shows CCTV operators detect only roughly half of target behaviours during sustained monitoring.
- The architecture that holds is layered. Fast detectors screen every frame continuously while a heavier verifier is invoked selectively, cutting the false alarm rate from 18.6% to 4.1% in one peer-reviewed test on PPE detection, with detection dipping only from 91.4% to 89.2%.
- Ailytics runs both layers over existing CCTV infrastructure without rip-and-replace, across 400+ projects in 15 countries — request a demo to see how it performs on your cameras.
Heavy-industry sites typically run two distinct types of AI across the same camera networks, and each succeeds where the other fails. Rule-based computer vision processes video at real-time speeds to flag predefined hazards, such as a missing hard hat or a body crossing a geofenced boundary. It is fast, consistent, and cheap to run at scale. It also has no access to operational context, so it treats a permitted pump change identically to an unauthorised intrusion.
A vision language model (VLM) contextual layer evaluates the whole scene, identifies why something is happening, and explains its conclusion in plain sentences a supervisor can check. It is slower, more expensive per inference, and can generate a confident explanation that turns out to be wrong.
Ailytics runs both layers together: fast detection models handle high-volume real-time monitoring, and the contextual layer is called selectively to resolve the situations that rules alone cannot. What follows explains which jobs belong to which layer, and where running both is the only architecture that holds.
The Exception Problem
At 07:00 on a Monday, a shift supervisor signs a permit for an unplanned impeller replacement on a process plant pump. Temporary high-visibility barriers go up. A safety watch is positioned. Two mechanical fitters step inside the marked exclusion zone at 07:14 to begin unbolting the housing.
The computer vision system detects human forms within the restricted boundary polygon. A high-severity alert fires to the EHS dashboard. An automated snapshot dispatches to the site director's inbox.
The system is technically accurate. Two workers crossed a digital line. The alert is also operationally useless: the task was permitted, isolated, barricaded, and supervised before the first bolt moved.
When events like this repeat across every maintenance window, every shift changeover, and every supervised delivery, the alert queue fills with notifications that are correct about what the camera saw and wrong about whether it mattered. Safety professionals who have implemented zone-detection systems describe the same pattern: the early weeks surface a flood of alerts for permitted maintenance access that the system cannot separate from unsafe entry.
Research on CCTV operator performance published in Applied Ergonomics found that operators detected only half of target behaviours, and that less experienced operators got worse the longer they watched. Add a queue full of false alarms and, in a scenario like this one, operators learn within weeks to dismiss it without watching the clips.
That is the point where a safety system stops functioning as one.
The camera was working. The detection model executed correctly. The failure was architectural: a geometric rule was asked to make an operational judgement it was never built to make.
1. Why Heavy Industry Is the Hard Case
Heavy-industry sites combine conditions that make video analytics harder than almost any other environment.
Scale is the first factor. A single shipyard, infrastructure corridor, or intermodal logistics yard can run hundreds of cameras across a layout that changes week to week as civil works progress. Changi Airport Terminal 5, for example, is planning for more than 1,400 cameras across its active construction programme. A camera estate like that is a standing investment, and few sites can afford to replace it because the software underneath has changed.
Environmental conditions are the default challenge, not the exception. Outdoor cameras on construction sites and plant floors contend with torrential rain, aggregate dust, high solar glare off corrugated steel, deep shadow under equipment, and vibrating temporary lighting masts. These conditions cap what any optical system can see, regardless of the model running above it.
Consequence per missed event is high. The construction sector alone accounted for close to a quarter of all fatal workplace accidents in the EU in 2024, according to Eurostat, while the sector employs a small share of the workforce. Earlier construction safety research, cited by La Fata, Barone and Cammarata (2026) in Information, puts over 80 per cent of construction accidents down to worker negligence or incompetence. Either way, the camera sees the moment the error happens.
A further factor is the constant stream of authorised exceptions. Permits to work, crane rigging windows, banksman-escorted vehicle movements, maintenance windows, and shift handovers all create planned, safe, and temporary departures from normal site rules. A system that cannot accommodate any of them will collapse under the weight of its own warnings.
Casual and rotating labour adds another layer. The same zone rules apply to workers who received their site induction yesterday. The system has to be legible to supervisors who cannot tune it on the fly.
2. How Rule-Based Computer Vision Decides
Take "worker near moving machinery" as the worked example.
A frame arrives via the camera's RTSP stream. The detection pipeline runs in sequence:
- Classify and locate: The model identifies bounding boxes for "Person" (92% confidence) and "Excavator" (95% confidence).
- Activity check: The pipeline measures optical flow or bounding box displacement across consecutive frames to determine whether the excavator is moving.
- Danger zone projection: The system draws a static buffer polygon around the machinery bounding box, sized by preconfigured clearance distances.
- Intersection test: The system checks whether the bottom portion of the person's bounding box falls inside the danger polygon.
- Temporal filter: A cooldown timer confirms the intersection persists across several frames before raising a notification.
The output is a class label, bounding coordinates, and a confidence score. "Excavator 95%, Person 92%."
Where it excels. The pipeline executes in single-digit milliseconds per frame on standard GPU or edge hardware. It is deterministic: the same visual input produces the same output every time, which matters when the result enters an incident record. For fixed, unambiguous hazards such as missing PPE, perimeter intrusion, or pedestrian proximity to mobile plant, a well-tuned detection model is very hard to improve on and should not be replaced.
Where it breaks. The later conditions in the logic chain are where real sites live. What if the worker is a certified banksman guiding the excavator? What if a Jersey barrier physically separates them from the swing path? Each exception requires hand-coding a new geometric rule. Adding conditions creates cascading logic failures: a rule change that accommodates banksmen can simultaneously suppress alerts for unescorted workers near the same machine.
Geometry gets the rule system part of the way there, but parallax is the problem. A worker standing metres behind an excavator can appear — from an angled camera — to be inside its danger zone on screen. Platforms including Ailytics convert the camera's 2D image into a ground-level view, so the system checks where a person's feet actually are, not where their silhouette falls on screen. The published work on this cuts both ways. Research in the ETRI Journal (2025) found that a ground-plane conversion improved detection accuracy for workers in danger zones by 16.7 points over an image-only system and 24.7 points over a camera-geometry approach, though the authors note that a single viewpoint still fails when people are occluded. Engineers building crane proximity systems report the same seam in practice: zone jitter, alerts flickering at the boundary, and reference points lost when the crane or its surroundings move through frame.
Temporal logic helps too, up to a point. A study in Buildings (2024) held frames in a five-second window and only triggered an alarm when 70 per cent or more of them showed the violation. Without temporal filtering, the system achieved 97.97 per cent average accuracy across five test videos; adding it pushed that to 100 per cent, a 2.03 percentage-point gain, eliminating the false alarms that the frame-by-frame approach produced. The authors measured the gain on hard-hat detection only. It also runs into the same wall. The logic has no access to operational context. The limit is not the model. It is what the model was asked to know.
3. How a VLM Contextual Layer Decides
A vision language model (VLM) is an AI model that takes an image or a video clip alongside a written question and produces a natural-language answer about what it sees. It does not match pixels against a trained bounding template. It weighs spatial relationships, physical interactions, environmental context, and visible signage together, then draws a conclusion about the scene as a whole.
The reasoning structure is consistent: Who + What + Where + Action + Time.
A person (who) at a loading bay (where) during active forklift operations (what), signalling the driver to hold position (action), over a ten-second observed window (time). Rather than returning "Forklift 94%, Person 91% [CRITICAL PROXIMITY VIOLATION]", the model evaluates the collective scene and concludes that a supervised spotter handoff is occurring.
The output shape is the practical difference. A VLM contextual system does not produce a score to interpret. It produces a sentence: "This is poor housekeeping because materials are stacked directly outside the egress door rather than inside the designated laydown skip, presenting an active trip hazard." A supervisor can check that statement against what the camera shows in under ten seconds. Checking "Person: 92%" takes longer, produces more uncertainty, and tells the supervisor nothing about what action to take.
Where it excels. The contextual layer inspects for anything that can be described in plain language, without retraining. It evaluates sequences and timing: whether a procedure happened in the right order, whether a condition persisted across a period rather than appearing in a single frame. It explains itself, which means its output can be audited, queried, and, when wrong, corrected.
Where it fails as a standalone detector. Inference takes roughly 100 milliseconds to two seconds per frame on dedicated GPU hardware, against single-digit milliseconds for a rule-based detection model. Running a VLM continuously across hundreds of RTSP (real-time streaming protocol) streams is not commercially viable at industrial scale. Training and inference costs scale differently. A trained detector carries its compute cost largely at training time and then runs cheaply per frame, while a VLM incurs a direct per-image compute cost that multiplies with every frame it is asked to read.
The consistency risk is equally significant. Unlike deterministic rules, a VLM can produce different conclusions for the same scene depending on how the prompt is phrased. When a rule-based model errs, it places a bounding box in the wrong location. When a VLM errs, it produces a fluent, confident paragraph that may enter a safety record and be acted upon before anyone checks whether it was correct.
Detection benchmarks put numbers on the gap. The Roboflow100-VL benchmark (arXiv 2505.20612), presented at NeurIPS 2025, tested leading VLMs zero-shot — without domain-specific training — on 100 datasets from specialised domains, including industrial inspection, medical imaging, and aerial imagery. Qwen2.5-VL, one of the frontier models tested, scored 7.6 mAP against 55.3 for a supervised detector trained on each dataset. The lesson is not model size. It is domain alignment: VLMs cope well with common classes such as person and vehicle, but struggle on objects outside their training. That is exactly the situation a heavy-industry site creates when it asks a general model to judge something its pretraining never covered.
4. The Trade-Off
| Operational dimension | Rule-based computer vision | VLM contextual AI |
|---|---|---|
| Processing speed | Milliseconds per frame; runs at live camera frame rates | Roughly 100 ms to 2 seconds per inference on dedicated GPU hardware |
| Inference cost at scale | Low; runs economically on edge appliances and standard servers | High; cost multiplies with every processed frame |
| Consistency | Deterministic: the same visual input produces the same output | Non-deterministic: outputs can vary with prompt wording and context |
| Failure mode | Cannot read context; misses anything it was not trained on | Can be confidently wrong; produces plausible but incorrect conclusions |
| Flexibility | Fixed: changing detection criteria requires retraining | Fluid: evaluates novel conditions using plain-language descriptions |
| Interpretability | Returns a confidence score and bounding coordinates | Explains what it sees in plain sentences that can be audited |
5. The Alert That Is Right and Still Useless
Most comparisons of these two approaches focus on latency figures and inference costs. Those are real, but they are not the operational manager's primary concern. The alert queue is.
In the weeks after a new AI camera system goes live, safety leads typically face a high volume of daily notifications. The events arriving on the EHS console are, in the main, visually accurate. The system saw what it said it saw. A worker entered a geofenced zone. A high-visibility vest was absent from the detection frame. A gate was open.
Most of those events are also operationally permitted. The worker in the zone holds a signed work permit. The vest is off because the worker is putting it on before stepping onto the floor. The gate is open because a concrete transit mixer is moving through. The system was right about the pixels and wrong about the situation.
Safety professionals who have implemented zone-detection systems describe the same thing. The alert is usually right about where the person was and silent about why. Once they have learned that some of those alerts come from permit holders, plant that is deliberately isolated, and deliveries booked the day before, the queue stops being a list of incidents and becomes a list of questions nobody has time to answer. The detection was working. The contextual judgement was not there to begin with.
The Applied Ergonomics research suggests what follows: operators already miss half of what matters before the queue fills up. Supervisors do not become more discerning as alarm volume rises. They become less so.
The value of a contextual layer is not improved detection. It is fewer decisions asked of a person, without lowering what actually gets caught. That is a different promise than accuracy, and a more useful one for a site safety lead managing a review queue.
A contextual layer that evaluates an alert before a human sees it, and suppresses the notification when the scene is permitted, changes the relationship between the supervisor and the monitor. The supervisor only acts on events that require action. The work of reviewing context shifts from person to system for the cases where context is clear, and is escalated to a person only when it is genuinely ambiguous.
Research in Frontiers in Built Environment (2026) tested this shape of architecture on PPE absence detection: a lightweight detector screening every frame, with a heavier verifier called on roughly one candidate detection in five. On real construction-site footage it cut the false alarm rate from 18.6 per cent to 4.1 per cent, a 78 per cent relative reduction, while the detection rate dipped only from 91.4 per cent to 89.2 per cent and live monitoring sustained 29.8 frames per second. The detection layer caught the hazards. The verification layer removed the decisions that did not need a person.
The result is not a licence to claim those numbers everywhere. It is one study, on one hazard type, on one kind of footage. What it demonstrates is the architecture: screening is cheap, verification is selective, and the queue shrinks without the detector being tuned more conservatively.
6. What Running Both Looks Like
The architecture is straightforward to describe, even if the engineering behind it is not.
Fast, specialised detection models ingest RTSP or ONVIF streams from existing IP cameras continuously. They perform bounding box detection, spatial tracking, and monocular 2D-to-3D localization in real time. This layer carries the majority of production alerts and remains the right tool for high-frequency spatial hazards: pedestrian proximity to moving excavators and forklifts, PPE compliance checks, perimeter intrusion, loitering in secured areas, and unattended objects in sterile zones. Its value is that it runs on the cameras the site already owns, with no additional hardware tier required.
The contextual layer is invoked selectively on top of that infrastructure, across four operational functions:
-
Natural-language video search. Safety leads query recorded footage using descriptive sentences and receive ranked clips with a written explanation attached. Example queries: workers positioned near unprotected open edges without fall protection; personnel standing inside a crane exclusion radius while equipment is actively slewing; operators adjacent to live plant without high-visibility apparel. The contextual layer retrieves the relevant footage and states what it found and why.
-
Periodic ambient audits. The layer samples frames at scheduled intervals to reason over gradual scene changes that produce no discrete trigger event: a liquid spill that expands over thirty minutes, stored materials that progressively encroach into a pedestrian walkway, a fire door wedged open across a shift. These conditions are invisible to a rule-based system because nothing crosses a boundary at a single moment.
-
Alert verification before supervisor notification. Before a candidate event reaches the EHS dashboard, the contextual layer evaluates whether the scene is operationally permitted. It checks whether a detected fire is a red warning lamp, whether absent PPE is being held in hand during a task transition, or whether a worker is traversing a zone on a designated access path rather than working within a hazard envelope. Published examples from Ailytics' contextual layer deployment include exactly these scenarios: a red spotlight misread as fire, gloves carried rather than worn, a worker walking through a zone rather than occupying it, and a reflection on metal reading as standing water.
-
Sequence and procedure verification. The contextual layer inspects multi-frame clips to confirm procedural steps completed in order. Outriggers fully extended before a crane pick begins. Mobile earthmoving plant preceded by a banksman escort. Hand kept on the nozzle and no mobile phone use during refuelling. Suspended load events on construction sites, shipyards, and oil and gas facilities are natural candidates: the detection layer already flags anyone standing in the projected drop zone geometrically, while the contextual layer checks whether the procedural steps preceding the lift were completed in order. Deviations are reported as structured operational notes for review, not as hard alarms requiring immediate response.
The economics are direct. No commercial deployment runs large reasoning models across every frame of every camera simultaneously. The compute cost would be prohibitive. Practitioners who have priced continuous VLM inference at scale describe it as too expensive for production use at high frame volumes. The layered architecture, fast filters running continuously with contextual reasoning called selectively, is what keeps enterprise deployment financially viable.
Ailytics runs this architecture across more than 400 projects in 15 countries, operating on standard RTSP and ONVIF camera infrastructure, the standard way cameras and recorders from different brands share video. The platform deploys on edge appliances (hardware on site), on-premise industrial servers, or private cloud infrastructure, and is live in under two weeks on existing cameras. ISO/IEC 27001 certification covers the data security framework. Face and body blurring can be turned on so the system tracks work without identifying individuals — detections run on the blurred feed, so no identifying footage needs to be stored or exported.
As the Safety Tech Review guide to cutting-edge safety technology puts it: "[A conventional safety detector] is fast and measurable, but it only knows what it was trained on." The contextual layer addresses everything that falls outside that boundary. Neither replaces the other, and the guide's own conclusion holds: "A VLM is a good assistant for search, triage and description, and a poor sole detector for life-critical events."
7. What to Ask a Vendor
Ask these questions of any platform that claims a contextual layer. They separate sound architecture from marketing framing.
Which specific safety decisions on this site use the contextual layer, and which remain hard-coded geometric rules? Ask the vendor to name both categories explicitly. A platform that cannot delineate this boundary has not built the boundary.
Does the contextual layer evaluate an alert before or after it reaches a supervisor? Pre-notification verification changes the alert queue fundamentally. Post-notification commentary does not reduce the supervisor's workload. It adds a paragraph to read after the alert has already arrived.
What does the system output when the scene is ambiguous or the camera view is degraded? Determine whether the model expresses uncertainty and escalates, or produces a confident explanation based on partial visual information. A system that states "insufficient visual data to determine compliance" is more trustworthy than one that generates a confident paragraph from a motion-blurred frame.
What is the exact commercial pricing structure: per camera stream, per processed frame, or per contextual inference call? A contextual layer priced as though it runs on every frame of every camera is a commercial model that cannot hold, dressed up as a technical one. Understand which events trigger a billable inference.
Can the platform display the contextual reasoning alongside the alert clip in auditable plain language? Site leads need to verify why an event was categorised as a deviation. A reason field that can be read, checked, and disputed is an audit trail. A score that cannot be interrogated is not.
Does the contextual layer operate over the site's existing RTSP or ONVIF camera infrastructure, or does it require proprietary edge hardware? A contextual layer that demands new cameras or a proprietary appliance restores the capital cost the hardware-agnostic detection layer removed.
What happens to the primary detection layer if the contextual layer is unavailable? Geofenced zone rules, PPE detection, and perimeter controls must remain operational on local edge compute independent of any cloud-hosted reasoning component. Verify the failure mode explicitly.
8. What Neither Layer Fixes
No software layer recovers visual information that was never captured. Heavy motion blur, lens flare from low-angle sun, thick dust plumes, torrential rain, and physical occlusion from structures or plant all cap the maximum performance of any model running above the camera. Research published as the WeatherReasonSeg benchmark (2026) found that vision language models lose reasoning segmentation accuracy steadily as rain, fog, and snow get worse. A contextual model that inherits a degraded optical feed produces degraded contextual conclusions.
Standard AI video analytics platforms running on CCTV cannot detect colourless toxic gases, cannot measure atmospheric oxygen concentration, and cannot substitute for certified fire, smoke, or gas detection systems. The camera sees what is in frame. Hazards outside the frame, below the resolution threshold, or outside the visible light spectrum are outside any AI layer's reach.
The findings on standalone VLM performance are blunt. La Fata, Barone and Cammarata (2026), in Information, evaluated an untuned GPT-4o vision model against four occupational health and safety experts with 30 years of field experience each, across 102 construction site images. Precision reached 94.1 per cent: when the model identified a hazard, it was usually correct. Sensitivity reached approximately 69.6 per cent, and overall agreement with expert consensus was 68.6 per cent. The model missed roughly 30 per cent of the hazardous conditions that the expert panel flagged.
Precision measures how often a flagged event represents a genuine hazard. Recall, or sensitivity, measures the proportion of all actual hazards the system detected. High precision with low recall means the model's alerts are mostly valid but the model misses a significant share of what is actually there.
The paper's own diagnosis is precise: the model "tends to emphasize reassuring elements, such as the presence of PPE, while overlooking less obvious yet potentially hazardous aspects." This is the failure mode to watch for. The model does not fabricate hazards it did not see. It overlooks the subtler ones while noting the obvious ones as safe.
This study tested a general-purpose foundation model without domain fine-tuning, on a small sample, and the authors acknowledge both constraints. It is not a verdict on all VLMs. It is evidence that an untuned general model cannot serve as the sole detector for a life-critical industrial decision, and that precision and recall both matter independently.
Accuracy improves through deliberate domain alignment and ongoing tuning by specialist engineering teams. It does not improve by itself.
9. Choosing the Right Layer for the Right Decision
The question site safety leadership actually faces is not whether to replace a rule-based system with a language model. It is which decisions belong to which layer on a site like this one, and on a construction site that answer changes as the site changes.
Fast rule-based detection protects workers against unambiguous, instantaneous spatial hazards. It fires in milliseconds, produces a consistent audit record, and does not require a supervisor to interpret its output before acting. For a defined hazard inside a fixed geometry, it is the correct tool and it should stay in place.
The contextual layer resolves what falls outside that boundary: the permit-valid zone entry, the PPE transition, the procedure that needs to be checked in sequence rather than in a single frame. Its value is not higher detection volume. It is fewer unnecessary decisions placed in front of a person who has a site to run.
Ailytics deploys both layers across more than 400 projects in 15 countries, pairing real-time spatial detection with selective contextual reasoning on the cameras sites already own. The platform covers more than 50 configurable use cases across safety, productivity, and security, and is operational within two weeks of installation.
To explore how layered AI video analytics can differentiate permitted maintenance from genuine site hazards across your existing camera infrastructure, request a demo with the Ailytics team.
Frequently Asked Questions
Is a vision language model more accurate than rule-based computer vision?
Accuracy depends on the task. For fixed, unambiguous objectives such as confirming whether a worker is wearing a hard hat or detecting an unauthorised zone entry, a fine-tuned detection model typically achieves higher precision and runs at real-time speeds with deterministic outputs. A vision language model excels at interpreting scene context, evaluating procedural compliance, and explaining why a condition is hazardous, but it has a higher miss rate on subtle physical hazards when deployed without extensive domain alignment.
Can a VLM contextual layer replace object detection across a facility?
No. Running a vision language model continuously across hundreds of CCTV streams is computationally impractical and financially unviable at the per-frame volumes industrial sites generate. Detection models remain the essential first layer for high-volume, real-time spatial monitoring. The contextual layer is called selectively to evaluate complex scenarios, verify alerts, and handle conditions that rules cannot resolve.
Why do AI safety camera systems generate so many alerts that turn out to be permitted activity?
The camera is rarely failing and the detection model is rarely flawed. The alerts occur because industrial operations run on authorised exceptions: permits to work, maintenance windows, banksman escorts, and shift changeovers create planned, safe, and temporary departures from the written rules a detection model enforces. The detection model identifies that a person crossed a boundary. It has no access to the permit signed that morning, so it treats the permitted task identically to an actual breach.
What is the difference between a false positive and an alert that is correct but not actionable?
A false positive occurs when a model detects an object or event that does not exist, such as mistaking a shadow for a person. An alert that is correct but not actionable occurs when the detection is physically accurate, for example two workers unbolting a motor inside a zone, but the task is permitted and properly controlled. Rule-based computer vision cannot distinguish between the two. A contextual layer evaluates scene relationships and operational context to identify which category an alert falls into before it reaches a supervisor.
Do VLM contextual layers work reliably in rain, dust, or low light?
Contextual models are bounded by the quality of the optical feed. Published benchmarks confirm that vision language models lose accuracy as rain, fog, or snow reduces the detail available in the image; low light and dust add further degradation in practice. A contextual layer can distinguish a puddle from a chemical spill when both are clearly visible, but it cannot identify hazards obscured by lens contamination, deep shadow, or motion blur. Ailytics models are fine-tuned for the harsh environmental conditions common to heavy-industry sites, but no software layer compensates for an image that does not contain the relevant visual information.
Do facilities need new cameras to use a contextual AI layer?
No. Enterprise AI video analytics platforms operate over standard IP cameras using RTSP or ONVIF, the protocols that let cameras and recorders from different brands share video, at resolutions of 2 megapixels or higher. Processing runs on edge appliances (hardware on site), on-premise industrial servers, or private cloud infrastructure connected to the cameras. Facilities deploy contextual capabilities on their existing camera infrastructure without capital investment in new optical hardware.
