PPE Detection on a Mine Site: Why 95 Percent Accuracy Still Fails

The vendor's slide said 95 percent. The model had been tested on several thousand labelled images of workers with and without helmets and high-visibility vests, and it had scored well on all of them. The mine's control room connected it to eight cameras covering a workshop yard, a fuel bay and the approach to the haul road, and switched it on for the night shift.
By six in the morning there were more than three hundred alerts. Most showed workers who were wearing helmets: helmets under headlamps, helmets in the glare of a dumper's lights, helmets on men bent over an engine bay, helmets seen from behind through dust. On day three, the shift supervisor muted the feed. On day five, a contractor walked across the fuel bay with his helmet hooked on his belt. The system flagged him correctly. Nobody saw it.
The model was not bad. On its test set it was as good as the slide said. The problem was the belief that a test-set accuracy figure says anything useful about how a safety system will behave on a working mine. This post takes that belief apart, one piece at a time, and ends with the measurement that should replace it. The mine is a composite scene; the numbers in it are illustrative and the pattern is common.
A PPE model's accuracy describes its test set. A PPE system's value is measured in false alerts per camera per night and violations caught per week, on your site.
The Myth, Stated Plainly
The belief goes like this: a PPE detection model that scores 95 percent accuracy on a large test set will catch about 95 percent of violations on site, with few false alarms, and is therefore ready to deploy.
Each part of that sentence is wrong in a different way. Accuracy is the wrong measure for rare events. Per-image scores do not translate into per-person alerts. The test set does not resemble the site. Pixel density on real cameras is lower than in the training images. Mine conditions include things the training data never contained. And the question the model answers, whether a helmet is visible near a head, is not the same as the question the site needs answered, whether the helmet is being worn properly.
Accuracy Is the Wrong Number
Accuracy is the share of all decisions that are correct. When the thing being detected is rare, accuracy is dominated by the common case, and a model can score well by mostly saying "no problem".
Suppose 98 percent of person sightings on a site are compliant. A model that never raises an alert at all scores 98 percent accuracy. It catches no violations. That is the trivial case, but it shows why accuracy figures for safety systems need two other numbers beside them.
Recall, also called sensitivity, is the share of real violations the system catches. Precision is the share of alerts that are real violations. Recall decides whether the system protects anyone. Precision decides whether anyone keeps looking at it. A system with high recall and low precision floods the control room; a system with high precision and low recall stays quiet and misses things.
Base Rates Make Precise Alerts Hard
The rarer violations are, the harder it is to keep precision high, even with a model that looks excellent on paper. Our script takes a site with 1,500 person passes a day past the monitored cameras and varies two things: the share of passes that are real violations, and the model's sensitivity and specificity, where specificity is the share of compliant passes correctly left alone.
Violation rate | Sensitivity | Specificity | Real violations caught per day | False alerts per day | Precision | Accuracy |
2% | 95% | 95% | 28.5 | 73.5 | 28% | 95.0% |
2% | 95% | 99% | 28.5 | 14.7 | 66% | 98.9% |
2% | 90% | 99.5% | 27.0 | 7.4 | 79% | 99.3% |
5% | 95% | 95% | 71.2 | 71.3 | 50% | 95.0% |
20% | 95% | 95% | 285.0 | 60.0 | 83% | 95.0% |
The first row is the vendor's slide on a well-run site: 95 percent accuracy, and nearly three false alerts for every real one. Precision rises with the violation rate, which means the better a site's safety culture, the worse an unchanged model's alerts look. Raising specificity from 95 to 99 percent cuts false alerts by a factor of five; that improvement matters far more than another point of sensitivity.
On a site where most people already wear their PPE, specificity decides whether the system survives. Every point of false-alert rate removed is worth more than a point of recall added.
Per-Frame Scores Hide Per-Person Behaviour
Test-set scores are usually computed per image. A camera running at five frames per second sees a person walking across its view for perhaps eight seconds, which is 40 frames. If the system raises an alert whenever any single frame shows a missing helmet, a per-frame false-positive rate that looks small becomes a large per-person rate.
With independent errors, a per-frame false-positive rate of 1 percent across 40 frames gives about a one-in-three chance that a compliant person triggers at least one false flag. At 5 percent per frame, it is close to nine in ten. Requiring several consecutive flagged frames before alerting helps a great deal: with three consecutive frames required, the same 5 percent per-frame rate falls to about half a percent per person pass, under the independence assumption.
That assumption is optimistic. Errors are not independent between frames, because the same person in the same pose under the same light tends to fool the model repeatedly: a helmet hidden behind a raised arm stays hidden for a second or two. Real gains from multi-frame voting are therefore smaller than the arithmetic suggests, which is why tracking each person and judging the whole pass, rather than counting frames, works better.
The Test Set Was Not Your Site
Most PPE models start from public or vendor datasets, and those datasets are small and specific compared with the range of real sites.
A widely cited academic dataset for coloured helmets and vests, published in the journal Sensors in 2021, contains 1,330 images, chosen to reflect real construction backgrounds, poses, angles and distances. Its authors trained and compared eight detectors, with the best reaching a mean average precision in the high eighties. That is good work, and it is still 1,330 images from construction sites, not from a mine at night. The same study reports that helmet detection accuracy dropped by 7 percent on images where faces were blurred for privacy, a small change in the image that had a noticeable effect.
A publicly released construction PPE dataset from a major detection-model developer goes further in its own documentation: it has no separate test split, and it advises users to evaluate final performance on independent images from the intended deployment environment, especially real camera footage. That advice is the correct one. A score measured on images like the training set predicts performance on images like the training set.
Research on extreme conditions makes the same point from the other side. A 2023 study built a test set of real-world images under adverse conditions, such as low light, haze and motion blur, and evaluated a detector trained on conventional PPE datasets against it, finding that performance fell substantially and proposing training methods to recover it.
Mean Average Precision Is a Ranking Measure
Model papers and vendor sheets often quote mean average precision, mAP, rather than accuracy. It is a better measure for object detection, because it accounts for how well boxes match and how confidence ranks true detections above false ones.
It is still not an alert rate. mAP summarises performance across all confidence thresholds; a deployed system runs at one threshold. mAP is computed per object in each image; a site cares about each person pass. And mAP at a box-overlap threshold of 0.5 rewards boxes that are roughly in the right place, which says nothing about whether the system's decision about a person was right.
mAP is useful for comparing models on the same data. It cannot tell a site manager how many alerts will arrive on a Tuesday night.
Pixels on a Helmet
A safety helmet is about 28 cm across. The number of pixels that lands on it depends on the camera's pixel density at the worker's distance, which is set by resolution, lens and distance together.
Pixel density at the worker | Pixels across a helmet | What a detector can do |
25 px/m | About 7 | Detect a person; helmet barely visible |
48 px/m (1080p, 90° view, 20 m away) | About 13 | Detect people reliably; helmet decisions unreliable |
62 px/m | About 17 | Helmet usually visible in good light |
120 px/m (same camera at 8 m) | About 34 | Helmet and vest decisions workable |
250 px/m | About 70 | Helmet type and fit visible |
The categories in the first column follow the international standard for surveillance design, IEC 62676-4, which uses about 25, 62, 125 and 250 pixels per metre for detection, observation, recognition and identification. Many training images are close-ups with several hundred pixels on a helmet. Many installed site cameras give a dozen or two. A model trained on the first and run on the second is being asked to do something it has never seen.
Mine Conditions the Dataset Never Saw
Mines and heavy industrial sites add conditions that rarely appear in general PPE datasets.
Dust and haze reduce contrast and soften edges. Night operation brings infrared illumination, which removes colour and turns reflective strips into saturated blobs, and vehicle headlights, which blind cameras for seconds at a time. Cap lamps mounted on helmets create a bright point exactly where the model looks for the helmet. Rain, mud and wet clothing change textures. Workers in hot climates often wear cloth caps or scarves under their helmets, or hoods over them. Helmet colours differ by role and contractor, and some sites use colours the model was never trained on.
People also look different from dataset images. Workers kneel, bend into engine bays, climb ladders, sit in cabs and carry loads that hide their bodies. Each of these is ordinary on a mine and unusual in a dataset collected mostly from people standing or walking.
Helmet Present Is Not Helmet Worn
A detector answers a narrow visual question: is there a helmet-shaped object near a head-shaped object? A safety system needs to answer a different one: is this person wearing the required protection, properly, in a zone where it is required?
The gap shows up in familiar ways. A helmet held in the hand or hooked on a belt, close to the body in the image, can be scored as worn. A helmet worn tilted back, or without its chin strap where straps are required, looks the same as a correctly worn one at typical pixel densities. A helmet lying on a vehicle seat next to the driver can look like a worn helmet from some angles. A vest carried over the shoulder is detected as a vest.
Some of these can be reduced with training data that includes them as explicit negative examples. Some cannot be resolved at the resolution of existing cameras at all, and they set a limit on what the system can promise.
Write down the exact violation the site cares about before choosing a model. "No helmet visible" and "helmet not worn correctly" are different problems with different camera requirements.
The Measure That Should Replace Accuracy
A field-ready PPE system is judged on numbers that come from the site, measured per camera, per shift, over weeks.
False alerts per camera per shift is the first, because it decides whether people keep looking. Violations caught per week, checked against a sample of footage reviewed by a person, is the second, because it decides whether the system protects anyone. Time from alert to acknowledgement is the third, because an alert that waits an hour has not prevented anything. Each should be reported separately for day and night, and for each camera, because averages across a site hide the one camera that generates most of the noise.
These measures cannot be produced in a laboratory. They come from running the system on site, with a person reviewing alerts and a sample of unalerted footage, for long enough to cover shifts, weather and activity patterns.
Computing Event-Level Precision and Recall
The calculation itself is simple once alerts and reviewed ground truth are in the same log. The key is to match alerts to real violation events in time and space, not to compare frames:
from collections import defaultdict
def event_metrics(alerts, violations, window_s=10):
"""alerts, violations: lists of dicts {camera, t (epoch s), night (bool)}.
A violation counts as caught if an alert on the same camera falls within window_s.
Returns per-camera, per-shift true positives, false alerts and misses."""
out = defaultdict(lambda: {"tp": 0, "fa": 0, "miss": 0})
used = set()
for v in violations:
key = (v["camera"], "night" if v["night"] else "day")
hit = None
for i, a in enumerate(alerts):
if i in used or a["camera"] != v["camera"]:
continue
if abs(a["t"] - v["t"]) <= window_s:
hit = i; break
if hit is None:
out[key]["miss"] += 1
else:
used.add(hit); out[key]["tp"] += 1
for i, a in enumerate(alerts):
if i not in used:
out[(a["camera"], "night" if a["night"] else "day")]["fa"] += 1
for key, m in out.items():
m["precision"] = m["tp"] / max(1, m["tp"] + m["fa"])
m["recall"] = m["tp"] / max(1, m["tp"] + m["miss"])
return dict(out)
The ground-truth list is the expensive part: a person reviewing a sample of footage, including periods with no alerts, to find violations the system missed. Without that sample, recall is unknown, and a quiet system looks like a successful one.
Building a Site Validation Set
A useful validation set is built from the site's own cameras, before the system is trusted.
Sample frames from every candidate camera across all shifts, days of the week and weather conditions available, with deliberate over-sampling of nights, dust, rain and busy periods. Include the awkward cases: kneeling, climbing, carrying, sitting in cabs, helmets held or hung, cap lamps, cloth under helmets. Label them carefully, with clear rules for what counts as compliant, and have a second person check a share of the labels.
A validation set of one to three thousand frames per site, spread across cameras and conditions, is often enough to show where a model is weak. It also becomes the training set for the next step.
Fine-Tuning on Site Data
Models improve quickly when trained on images from the cameras they will run on. A few hundred to a few thousand labelled site images, added to a model pre-trained on public data, often makes more difference than switching to a larger architecture.
The most valuable examples are hard negatives: compliant workers the model wrongly flagged, collected from the first weeks of operation. Each false alert reviewed by a supervisor is a labelled hard negative if it is saved with the right tag. Building that feedback into the alert screen, with a single button for "false alert", turns the operators' daily work into training data.
Validation must stay separate from training. Images from the validation set should never be used for training, or the next round's scores will overstate performance in exactly the way the original slide did.
Rules Around the Model
A detector produces detections. Rules turn them into alerts, and good rules remove most of the noise before anyone sees it.
Track each person across frames and decide once per pass, using the share of frames in which the person was clearly visible and judged non-compliant, rather than alerting on any single frame. Require a minimum number of clear views, so that a person seen only from behind or only in a headlight glare does not produce a decision at all. Apply zones, so that the system checks only where PPE is required. Apply schedules, so that zones change when work changes. Add a cooling-off period, so that one person standing in view does not generate a stream of alerts.
The model is one component. On many sites, rules and tracking reduce false alerts by more than any model change.
Alert on a person's whole pass through the scene, not on a frame. Tracking and a minimum number of clear views remove more false alerts than any retraining.
People and Process
A PPE system succeeds or fails in the way people use it.
Alerts must reach someone who can act, quickly: a supervisor on the floor, not a mailbox. They should show a still and a short clip so that the person can judge in seconds. Operators need an easy way to mark false alerts, and someone must review those marks weekly and act on them.
The purpose matters too. Systems presented as tools for coaching and hazard reduction are accepted more readily than systems presented as surveillance for discipline, and they produce better data because people do not try to avoid the cameras. Workers and their representatives should know what is monitored and why, and the data protection obligations that apply to camera analytics, including India's Digital Personal Data Protection Act, belong in the design from the start.
The Cost of a False Alert
False alerts are often treated as a nuisance. They are a cost, and on a busy site a large one.
Each alert takes an operator time to open, look at the still or clip, decide and dismiss. Ten to twenty seconds is typical for a clear false alert on a well-designed screen; longer when the image is ambiguous and the operator zooms or replays. Three hundred false alerts in a night at fifteen seconds each is about seventy-five minutes of attention spent on nothing, in a control room that has other jobs to do.
The larger cost is what false alerts teach. Operators learn quickly which cameras and which alert types are usually wrong, and they start dismissing those without looking. Once that habit forms, a correct alert from the same camera is dismissed in the same way. This is the mechanism behind the muted feed in the opening: nobody decided to ignore safety, they learned that the system was usually wrong.
A useful planning figure is the number of false alerts per operator per hour that the site can tolerate without that habit forming. It is usually small, a few per hour at most, and it sets the specificity the system must reach before it goes live.
Choosing Cameras for PPE, Not Reusing Them
Most PPE projects start with the cameras that are already installed, because they are paid for and connected. That is a sensible starting point and a poor finishing point.
Existing cameras were usually placed for security coverage: high, wide and far. PPE decisions need the opposite: moderate height, a narrower view of the place where people pass, and enough pixels on a helmet at the working distance, which the table above puts at roughly 17 or more for reliable decisions in good light and more at night.
The practical approach is to classify existing cameras by what they can support. Some are suitable as they are. Some become suitable with a change of lens, angle or position. The rest should be left for intrusion and activity analytics, where the requirement is detecting a person rather than judging what the person is wearing. Where the important points, such as entries, fuel bays and workshop doors, have no suitable camera, adding one purpose-placed camera often costs less than months of tuning a model to cope with a poor view.
What the Vendor Should Show You
A vendor proposal for PPE detection should answer a specific set of questions, and the answers reveal quickly whether the system has been tested on sites like yours.
Ask for | A reassuring answer | A warning sign |
Results on footage from your own cameras | A trial report from your site, by camera, day and night | Only results on the vendor's test set |
False alerts per camera per shift | A measured figure from a comparable site | Only accuracy or mAP |
How recall was measured | Reviewed footage including periods without alerts | Recall estimated from alerts alone |
Night and infrared performance | Separate figures for night operation | Daytime demonstrations only |
Minimum pixel density required | A stated figure per PPE item | "Works on any camera" |
How the system decides per person | Tracking and per-pass decisions with clear rules | Alerts on single frames |
How false alerts feed back into training | A defined process and retraining schedule | No feedback path |
Data handling and retention | Video kept on site, events and clips with set retention | Continuous upload to a remote service |
A vendor that answers most of these with measured figures from comparable sites is selling a system. A vendor that answers with a single accuracy figure is selling a model.
Ask every vendor for false alerts per camera per night from a comparable site. If they cannot give that number, they have not yet run the system where it has to work.
A Pilot Plan That Produces Honest Numbers
A pilot should be designed to produce the field measures, not to demonstrate the product. Four phases over six to eight weeks fit most sites.
Phase | Duration | Purpose | Output |
Survey and baseline | 1 week | Camera classification, sample footage, labelling rules | Validation set and camera shortlist |
Shadow running | 2 weeks | System runs, alerts go only to the project team | False alerts and misses per camera, day and night |
Tuning | 1-2 weeks | Rules, zones, thresholds, fine-tuning on site hard negatives | Revised configuration and model |
Live trial | 2-3 weeks | Alerts go to supervisors with feedback buttons | Acknowledgement times, operator feedback, final field measures |
The shadow phase is the one most often skipped and the one that matters most. Running without anyone acting on alerts lets the team see the real false-alert rate before it reaches the people who would otherwise learn to ignore it. The decision to go live should be made against agreed thresholds for false alerts per camera per shift and for recall on the reviewed sample, written down before the pilot starts.
When a Camera Is Not the Best Sensor
Some PPE questions are easier to answer with something other than a camera, and the strongest systems combine the two.
Tags in helmets and vests, using RFID or Bluetooth Low Energy, can confirm that a specific item is present with a specific person at an entry point, regardless of light, dust or pose. Readers at turnstiles or doorways check the tag and the worker's access card together. Tags cannot tell whether a helmet is on the head or in the hand, which is exactly what a close-range camera at the same point can check, so the two cover each other's weaknesses.
Instrumented helmets add sensors that detect whether the helmet is being worn, such as contact or proximity sensors in the harness, and can report it over a site radio network alongside other data such as falls or location. They cost more per worker and need charging, but they answer the "worn, not just present" question directly, in places where no camera can see.
Access control changes the purpose of the check. A camera that reports a violation after someone has entered a hazardous area records a problem; a gate that will not open until the helmet and vest are confirmed prevents it. At controlled entry points, prevention is usually the better design, and the camera becomes a confirmation step rather than a watcher.
The choice depends on the site. Wide open areas with many entry routes favour cameras and instrumented PPE. Sites with a few controlled entry points favour tags, readers and close-range cameras at those points.
Where PPE Detection Works Well
None of this means PPE detection is a poor idea. It works well where the conditions are favourable and the question is narrow.
Controlled entry points, such as a gate, a turnstile or the door to a workshop, give close range, good lighting, predictable poses and a natural moment to check. Combined with access control, they can prevent entry without the right equipment rather than report it afterwards. Fixed workstations and loading points give similar conditions. Wide-area monitoring of a yard or a pit, at long range and at night, is where the myth does its damage.
The Corrected Model
A PPE detector's test score tells you whether it is worth trialling. Its false alerts per camera per shift and its violations caught per week, measured on your site across days and nights, tell you whether it is worth deploying.
Back to the Control Room
The muted feed held the one alert that mattered that week: a contractor with his helmet on his belt, crossing the fuel bay. The model had done its job. The system around it had not, because three hundred false alerts a night had taught everyone to ignore it.
The same model, pointed only at the fuel bay entry and the workshop door, with per-person tracking, a minimum number of clear views, fine-tuning on a few weeks of the site's own hard negatives, and a supervisor's phone at the end of the alert, would have produced a handful of alerts a shift, and someone would have looked at that one.
Related service: Industrial Edge Vision Systems
Related reading: Edge Vision on a Conveyor: Camera, Lighting and Reject Timing, Jetson Orin vs Hailo-8: Choosing an Edge AI Accelerator for Vision, Can Edge AI Vision Survive a Poultry Shed?, Adding AI to Existing CCTV and DPDP Act and Rules 2025 for Camera, Audio and Sensor AI
EurthTech is an engineering-first product design and embedded systems company with a development center in Hyderabad. To discuss a project, write to connect@eurthtech.com or see https://www.eurthtech.com/case-studies.




Comments