Video analytics for safety: PPE, zones and intrusion alerts
Zone and intrusion alerts from CCTV work well when tuned on your own footage. PPE detection is harder. Start with zones, and route every alert to a person.
AI video analytics can raise three kinds of safety alert from ordinary CCTV: a person or vehicle inside a marked danger zone, someone in a closed area after hours, and a worker missing protective equipment such as a hard hat or vest. Zone and intrusion alerts are the reliable ones, because they only need the system to find a person. PPE detection is harder and more sensitive to camera placement, so start with zones, test every rule on footage from your own site, and make sure each alert reaches a person who can act on it.
Three alerts that get sold as one product
Vendors tend to present "safety analytics" as a single feature. Underneath, these are three different problems with different failure modes.
| Danger zone | After-hours intrusion | Missing PPE | |
|---|---|---|---|
| What the model must find | A person or vehicle | A person (sometimes a vehicle) | A small object on a person |
| Typical target size in frame | Whole body | Whole body, often far away | Head or torso only |
| Main source of false alarms | Box edge clipping the zone, people passing by | Animals, rain, headlights, IR glare at night | Occlusion, colours that look like PPE |
| Main source of misses | Blind spots, crowding | Low light, distance | Small pixels on target, unusual helmets |
| Who acts on it | Supervisor on the floor, in seconds | Security, in minutes | Supervisor, at the next break |
The last row matters more than it looks. A forklift lane alert that arrives thirty seconds late is useless. A missing-vest alert that arrives thirty seconds late is fine, because the point is to fix a habit, not stop an accident in progress. Design the alert path for each separately.
Start from the hazard assessment, not from the camera
The question "where should we put zones?" already has an answer at most sites, written down by the safety team. In the United States, OSHA's general PPE rule (29 CFR 1910.132) requires the employer to "assess the workplace to determine if hazards are present, or are likely to be present, which necessitate the use of personal protective equipment", to select the PPE that protects against those hazards, and to certify in writing that the assessment was done. In India, the government made the four labour codes, including the Occupational Safety, Health and Working Conditions Code, 2020, effective from 21 November 2025, according to PIB. Check the rules that currently apply to your state and industry with your safety and legal advisers; this article is not legal advice.
Use that document. Each hazard it names in a location becomes a zone with a rule: "hard hat and vest required inside the loading bay", "no pedestrians in the forklift aisle while the line runs", "nobody inside the substation fence without a permit". If a rule cannot be traced to the hazard assessment, it will be argued with on the floor, and supervisors will start ignoring it.
There is a second reason to start there. The CDC's hierarchy of controls ranks five controls by general effectiveness: elimination, substitution, engineering controls, administrative controls, and PPE last. It says PPE "can be effective, but only when workers use it correctly and consistently." A camera that checks for hard hats is monitoring the weakest control on that list. That does not make it worthless, but it changes what you should do with the data. If one corner of the warehouse produces most of the no-helmet alerts, the useful question is why people take helmets off there. Heat, a low doorway, a break area too close to the work. The best outcome of a PPE camera is a change to the workplace that makes the alert stop firing.
Zones: the easy win, if the rule is drawn properly
A danger-zone alert works in four steps. A detector finds people and vehicles in each frame. A tracker links detections across frames so the same person keeps the same ID. A rule checks whether that tracked person is inside a polygon drawn on the image. Then an alert goes out.
Most zone false alarms come from the third step, not the model. The usual mistake is to test whether any part of the person's bounding box overlaps the zone. A worker walking beside a painted line on a camera mounted at an angle will have their head and shoulders "inside" the zone in the image while their feet are clearly outside it on the floor. Test the bottom-centre of the box, roughly where the feet are, against a polygon drawn on the floor, not in the air. Draw it by walking the boundary with someone on camera, not by guessing on a still frame.
Two more settings remove most of the remaining noise. A dwell time, a few seconds, so that someone who clips the corner of a zone while turning does not page a supervisor. And a schedule: the forklift aisle is dangerous while forklifts are running, not during the Sunday clean. A rule that fires all the time teaches people that it is always wrong.
Tracking is the piece that turns detections into one event. At 25 frames per second, a person standing in a zone for ten seconds produces 250 positive frames. Without a stable track ID, that is 250 alerts, or a rule that tries to group them afterwards and gets it wrong when two people are close together. Our article on video analytics accuracy goes into ID switches and occlusion, which cause the same problems here as they do in counting.
Some zone questions are counts rather than alerts: how many people were inside the paint shop at 3pm, or did everyone who entered the muster area after a drill get counted. A count like that deserves to be checked before anyone reports it. CloudOEngine's Vision AI counts with two independent trackers and sends the crossings where they disagree to a human review queue, so your staff settle the uncertain cases before the count is finalised.
PPE detection: read the research numbers carefully
PPE detection has a decent research record, and the numbers are worth reading closely because they are easy to misquote.
Nath, Behzadan and Paal (Automation in Construction, 2020) compared three ways of checking hard hats and vests with YOLOv3. One detected workers, hats and vests separately and then decided who was wearing what. One detected each worker and classified them directly as wearing nothing, a hat only, a vest only, or both. One detected workers first and then classified a crop of each. The direct approach was best, at 72.3% mean average precision. Their dataset, Pictor-v3, had 1,472 images, a mix of crowd-sourced and web-mined pictures.
A team at IIT Bombay (Delhi, Sankarlal and Thomas, Frontiers in Built Environment, 2020) trained YOLOv3 on 2,509 images from Indian construction sites with four classes: safe, not safe, no hard hat and no jacket. They reported F1 scores of 0.96 to 0.97. Before quoting that, look at the test set: 54 images, plus a small set of new images. On the new images, recall for the no-hard-hat class was 0.80, meaning one in five missing helmets in that small set went undetected. The authors name the causes plainly: occlusion and "some color mismatching (especially for hard hats)" on crowded sites where workers overlap. Their video processing ran at about 2 frames per second on the hardware they had.
Neither paper is wrong. They describe different data, different metrics and different conditions, and neither describes your site. A 0.97 F1 on 54 photos and a 72.3% mAP on a mixed web dataset tell you that the method works in principle, not what alert quality you will get from camera 14 in your yard at 6pm in November.
The physical problem is pixels. The IEC 62676-4:2014 guidance on surveillance cameras, as summarised by Axis, sets 25 pixels per metre as the level where an operator can tell whether a person is present at all, 63 px/m to see characteristic details such as distinctive clothing, 125 px/m to recognise someone, and 250 px/m to identify them. Those numbers were written for human operators, and both Axis white papers say video analytics needs other definitions. The 2025 edition of the standard also renames and rescales the categories. Still, the arithmetic is a useful sanity check. As an illustration, a hard hat about 30 cm across, seen at 25 px/m, gets around 7 or 8 pixels. That is enough to say a person is there, and not enough to say reliably what is on their head. A wide camera covering a whole yard is often a fine zone camera and a poor PPE camera.
So for PPE, place cameras where people pass close: gates, the entrance to a bay, the top of a ladder access point, the turnstile. Check every alert in the first weeks against the clip. Our piece on low-bitrate CCTV and AI detection covers how compression eats exactly the small, fast details a helmet check needs.
Intrusion after hours is a different job
Intrusion rules look like zone rules with a schedule, and the logic is the same. What changes is the scene. Perimeter cameras watch large, dark, outdoor areas. The person is often far away and small. At night the camera switches to infrared, colour disappears, and insects near the lens, rain, swaying vegetation and vehicle headlights all produce motion. At a site with stray dogs or cattle, add animals to that list.
Three things help more than a better model. Arm the rule only in the hours the area should be empty, and keep a calendar of exceptions for night shifts and maintenance. Require a person or vehicle class, not motion, and a minimum dwell, so that something crossing a corner of the frame for half a second does not page anyone. And put a person between the alert and any dispatch: the guard on duty looks at the clip and decides. An alert that sends a patrol on every trigger usually gets switched off soon after.
What happens after the alert
This is the part that decides whether the project survives. An alert is a request for a person's attention, and attention runs out.
Route each type of alert to the person who can act on it, with the clip attached. A zone alert goes to the floor supervisor's phone, a PPE trend goes to the safety officer's daily summary, an intrusion goes to the security desk. Fire once per tracked person per event, not once per frame. Measure how long it takes for an alert to be acknowledged; if that number climbs, you have too many alerts, not too few supervisors.
Some alerts should lead to an action beyond a phone notification: open a corrective-action ticket, hold a gate, notify a contractor's supervisor. Those are actions somebody should approve. In CloudOEngine, Autopilot runs triggered agents under approval rules, so an agent can propose the ticket or the notification and a person approves it in the app or through an email approve link before it runs.
Keep a record of every alert: the rule, the camera, the time, the clip reference, who acknowledged it and what they did. You need that record for the weekly review, and you will want it the first time there is an incident and someone asks whether the system saw it.
Testing a pilot on your own site
Here is the order I would follow for a first pilot, on three to five cameras:
- Pick zones straight from the hazard assessment, and walk each boundary on camera to draw the polygon on the floor.
- Run the rules silently for two weeks. Nobody gets alerts yet; every trigger is saved with its clip.
- Have someone review every trigger and label it correct or false. That gives you precision per camera and per rule.
- Stage events to measure misses: walk into each zone without a helmet, at different times of day, and see what fires. Real misses are invisible otherwise.
- Fix placement and rules where precision is poor, then turn on alerts for the cameras and rules that passed, and keep the weekly review.
Step 4 is the one teams skip. A system with no false alarms is easy to build if it also misses half the events, and you only find out when something happens.
Workers, privacy and trust
Safety cameras film your own staff all day, and in India footage of identifiable people is likely to count as personal data under the DPDP Act. Decide in writing what the footage is for, who can see clips, how long they are kept, and whether PPE alerts are ever used for discipline. Our article on AI governance and the DPDP Act covers the obligations in more detail. My view is that a PPE system used mainly to fine people will be quietly defeated, while one whose alerts lead to fixing the hot, cramped corner where everyone takes their helmet off will be supported. Under the new labour codes, establishments with 500 or more workers must have safety committees, according to PIB; that committee is a sensible place to agree these rules.
Access matters as much as the policy. Footage from a gate camera should be visible to security and the safety team, not to everyone with a login. CloudOEngine connects camera streams on the same platform as your other data, with role-based access and audit logs under one permission model and one audit trail.
How CloudOEngine helps
CloudOEngine is one platform and one console for connecting data, including databases, files and camera streams, building pipelines, and running AI: an LLM gateway, agents with tool access, RAG, Vision AI and live video. Cameras, alerts and the records around them sit under one permission model and one audit trail.
Governance is included, not upsold: tenant isolation, role-based access, audit logs and per-tenant encrypted secrets. Camera footage of your own staff needs exactly that kind of control from the first day.
For counts, such as people entering a zone or headcount in a muster area, Vision AI uses two independent trackers. Where they disagree, the case goes to a human review queue for your staff to check, and a finalised count ships with a published accuracy report that shows every counted crossing.
Agents in CloudOEngine run real tools, for example filing a ticket, and every step and tool call is traced and inspectable. With Autopilot, triggered agents work under approval rules, so a person approves an action, in the app or through an email approve link, before it runs.
CloudOEngine has 500+ connectors, a 99.9% uptime SLA option, and is built in Bengaluru, India.
Book a demo or see Vision AI.
Frequently asked questions
What can AI video analytics detect for workplace safety?
The common safety uses are a person or vehicle entering a marked danger zone, someone inside a fenced area after hours, and missing protective equipment such as a hard hat or a high-visibility vest. Zone and intrusion rules only need the camera to find a person, which is the easier task. PPE detection needs the camera to see a small object on that person, which is harder.
How accurate is AI PPE detection?
It depends heavily on the site and the camera. In a 2020 study by Nath, Behzadan and Paal, the best of three YOLOv3-based approaches reached 72.3% mean average precision for workers with and without hard hats and vests. An IIT Bombay study reported F1 scores around 0.96 to 0.97, but on small test sets, and recall for the no-hard-hat class fell to 0.80 on new images.
Can existing CCTV cameras be used for PPE detection?
Often for zones, less often for PPE. A camera placed to watch a whole yard may give a person enough pixels to be detected but give a hard hat only a handful. Check how many pixels a helmet gets at the far edge of the zone before you buy software, and move or add cameras where it is too few.
How do you reduce false alarms in video safety alerts?
Test the rule on the feet of a tracked person rather than any corner of the box, require the person to stay in the zone for a few seconds, alert once per tracked person rather than once per frame, and arm intrusion rules only in the hours the area should be empty. Then review every alert weekly and tune the rule that produced the noise.
Is PPE detection a replacement for safety supervision?
No. The CDC's hierarchy of controls ranks PPE last among the five controls, and notes it is effective only when workers use it correctly and consistently. A camera that reports missing PPE tells a supervisor where to look; a person still has to act, and repeated alerts in one place usually point to a fix in the work area itself.
Sources
- Hierarchy of Controls (CDC / NIOSH)
- 29 CFR 1910.132, Personal Protective Equipment: General requirements (OSHA)
- Deep Learning for Site Safety: Real-Time Detection of Personal Protective Equipment (Nath, Behzadan and Paal, Automation in Construction 2020), Pictor-PPE repository
- Detection of PPE Compliance on Construction Site Using Computer Vision Based Deep Learning Techniques (Delhi, Sankarlal and Thomas, Frontiers in Built Environment 2020)
- Pixel density based on IEC 62676-4:2014 (Axis Communications white paper)
- Pixel density based on IEC 62676-4:2025 (Axis Communications white paper)
- Government Makes the Four Labour Codes effective (PIB, 21 November 2025)
