IK Imran Khalid

Computer Vision 1 month Solo Project Completed

Helmet Detection

Real-Time PPE Compliance Monitoring on Site Cameras

Helmet Detection project cover

Overview

Computer vision pipeline that detects whether workers on live camera feeds are wearing safety helmets, enabling automated PPE compliance monitoring across construction and industrial sites.

The problem

Construction and manufacturing sites see preventable head injuries when workers enter active zones without helmets, and manual supervision cannot cover every camera at every hour.

The solution

Trained an object-detection model on annotated site imagery to distinguish helmeted and non-helmeted workers, then wrapped it in a monitoring loop that logs violations with timestamps and frames for supervisor review.

Project gallery

Technical architecture

Detection model plus violation logging loop over site video

Detection Model

Object detector fine-tuned on helmet, head and person classes with augmentation for distance and lighting variation.

Zone Rules

Restricts enforcement to active work zones so passing pedestrians outside the site are not flagged.

Violation Logger

Stores timestamped events with a cropped evidence frame and confidence score for review.

Review Dashboard

Simple daily summary of flagged events by zone and shift for safety officers.

Methodology

  1. Annotated site footage covering helmets, caps, bare heads and partial occlusion
  2. Fine-tuned the detector and tuned confidence thresholds per zone
  3. Added temporal smoothing so a single blurry frame does not raise an alert
  4. Validated precision against supervisor-confirmed violations

Results & impact

92% Detection Accuracy Helmet vs no-helmet on validation set
Real-time Inference Speed On GPU, near real-time on edge
Reduced False Alerts Via temporal smoothing and zone rules

Key impact

  • Automated PPE checks that previously required manual camera review
  • Created an evidence log for safety briefings
  • Extended an existing site camera investment instead of buying new sensors

Challenges & solutions

Small and Occluded Heads

Trained at multiple scales and used tiled inference for distant workers

Caps Mistaken for Helmets

Added a hard-negative class for caps and hoods during fine-tuning

Technologies used

PythonPyTorchYOLO Object DetectionOpenCVData AnnotationComputer Vision