Workplace safety · Computer visionComputer vision prototype

AI Safety Monitor: PPE Detection

5Detection classes
ByteTrackObject tracking
XLSXStructured export

Problem, approach and evidence.

01

Problem

Continuous manual observation of PPE compliance is resource-intensive and safety violations can be missed in busy workplaces.

02

Approach

A YOLOv8n and ByteTrack workflow that detects five PPE and person classes in recorded video, saves annotated output and exports frame-level records for review.

03

Evidence

The repository includes a checkpoint, sample footage and an inference notebook that records coordinates, class, confidence and track ID to an Excel file. It does not document a live-camera or alerting implementation.

Project overview.

AI Safety Monitor is a video-analysis prototype for reviewing workplace PPE visibility. It applies a custom YOLOv8n detector to recorded footage and annotates safety-related objects, giving safety teams a visual record they can inspect after processing. Checkpoint metadata defines five labels—helmet, no-helmet, no-vest, person and vest—so the model represents equipment presence alongside explicit absence classes. The repository demonstrates the concept on a bundled PPE-test.mp4 file; it is not evidence of a deployed site-monitoring or incident-response system.

The inference notebook loads best.pt through Ultralytics and runs model tracking with ByteTrack, saving the annotated video while preserving track identifiers across frames. It then iterates through each result and captures frame number, bounding-box coordinates, predicted class, confidence, object ID and tracking status. Pandas organizes those records into a table and writes output.xlsx. This pairing of visual overlays and structured detection data makes the prototype more auditable than a video-only demo and creates a foundation for later filtering or reporting workflows.

The current repository demonstrates a compact offline pipeline: checkpoint, sample video, tracked inference, annotated output and spreadsheet-export logic. The README also discusses live or recorded analysis and rapid alerts, but the checked-in notebook uses a local video file and contains no camera integration, notification service, rule engine or dashboard. No dataset size, validation metrics, hardware profile or latency benchmark is documented, so the project is presented as a working PPE-detection and tracking prototype rather than a real-time compliance system.

Implementation highlights.

  1. 01

    Custom YOLOv8n checkpoint with five PPE and person presence or absence classes.

  2. 02

    ByteTrack-based object tracking across video frames.

  3. 03

    Saved annotated-video output for visual review.

  4. 04

    Structured Excel export with coordinates, class, confidence and track ID.

  5. 05

    Bundled notebook and sample footage demonstrate the offline workflow.