Deep Learning
AI-Powered Edge Industrial Safety Intelligence System
1Department of Electronics and Communication Engineering, Geetha Shishu Shikshana Sangha Institute of Engineering and Technology for Women, Mysuru, Karnataka, India
2Guide, Department of Electronics and Communication Engineering, Geetha Shishu Shikshana Sangha Institute of Engineering and Technology for Women, Mysuru, Karnataka, India
Published December 2026
Abstract
Missing or incorrectly worn personal protective equipment (PPE) remains a persistent cause of workplace injury, and manual supervision cannot observe every worker at all times. This paper presents an edge-AI system that detects PPE violations in real time on a locally hosted laptop and warns people both remotely and on site. A YOLO26n detector, fine-tuned for 100 epochs on the 11-class Construction-PPE dataset, processes frames from an external USB webcam and recognises persons, helmets, vests, boots and goggles together with their “missing” counterparts. For every detected person the system checks head, torso and foot regions and assigns one of sixteen PPE statuses. A temporal filter over the last ten frames confirms a violation only when at least 60% of them agree, which suppresses isolated misdetections. A confirmed violation triggers a dual-channel response: a Telegram message carrying the violation photograph and status for remote supervisors, and a coded serial command to an ESP32 that drives a buzzer and warning LED on site. On the validation subset the saved weights reached a precision of 0.562, a recall of 0.550, an mAP@50 of 0.559 and an mAP@50–95 of 0.282. Real-time tests with a USB webcam at up to 1.5 m showed per-person status display and Telegram delivery for helmet and vest violations, and also exposed failure cases such as false alerts for partly visible persons and a missed helmet violation. Frame rate, alert latency, test-subset accuracy and false-alarm rates have not yet been measured and are left for future work.
Keywords: Edge AI; ESP32; industrial safety; PPE detection; Telegram Bot API; temporal filtering; YOLO26n
1Introduction
1.1Background
Construction sites, factories and other industrial workplaces expose workers to falling objects, flying particles, sharp edges, moving vehicles and impact. Helmets, high-visibility vests, safety boots and eye protection form the last line of defence against these hazards, but they protect only when they are actually worn. Supervisors cannot observe every worker continuously, particularly across large sites and several shifts, so PPE checks tend to be intermittent and depend on the attention of the person checking.
Computer vision offers an automated alternative: a camera feed can be analysed continuously and a violation flagged the moment it occurs. Single-stage detectors of the YOLO family [1] are attractive for this task because they localise and classify objects in one forward pass and therefore suit near-real-time operation.
Two design choices decide whether such a system is practical in the field. The first is where inference runs. Cloud inference adds network latency and recurring bandwidth cost, and it sends images of identifiable workers off the premises. Edge AI runs the model on local hardware at the point of capture, which avoids these problems at the cost of a limited compute budget. The second is how a detection becomes an alert. One noisy frame is not evidence of a violation, so a rule is needed that turns the raw detection stream into a trustworthy signal, and more than one way of warning people is needed.
1.2Problem statement
Raw per-frame PPE detections are unreliable as a basis for alerts. An item may be missed in one frame and found in the next, small objects such as goggles and boots are easily lost, and a worker who is partly outside the frame can look non-compliant. Camera-based systems also tend to notify only remote supervisors [2], so a worker standing at the hazard receives no immediate warning. The problem addressed here is the development of an integrated, locally hosted system that can:
- acquire live video from a low-cost USB webcam;
- detect persons and four PPE items (helmet, vest, boots and goggles) together with their missing counterparts;
- associate each PPE detection with the correct person;
- confirm a violation over consecutive frames before raising an alert;
- notify remote supervisors with photographic evidence; and
- warn people on site through a buzzer and LED.
1.3Motivation
The aim is a practical and affordable monitoring solution assembled from commodity hardware: a laptop, a consumer USB webcam and an ESP32 board. Rather than a stand-alone detector, the work includes the decision logic, both alert channels and a record of the tests, so that the behaviour of the system, including its failures, can be inspected and improved. Because inference runs on the local machine, no video leaves the premises; a single still image is transmitted only when a violation is confirmed.
1.4Objectives
The objectives of the work are:
- to develop a real-time PPE detection system using YOLO26n that recognises persons, helmets, vests, boots and goggles and the missing-PPE classes;
- to assign every PPE detection to a person using region-based rules and derive a per-person status;
- to reduce false alerts with a ten-frame temporal agreement rule;
- to provide immediate remote and on-site warnings through Telegram and an ESP32-driven buzzer and LED; and
- to report the validation metrics and the real-time behaviour, including failure cases, and to define the evaluation that remains to be done.
1.5Contributions
The contributions of this work are summarised as follows.
- A per-person status evaluation that maps detections to head, torso and foot regions and yields one of sixteen ranked PPE statuses.
- A temporal agreement filter (N = 10, τ = 0.60) that confirms violations before any alert is sent.
- A dual-channel response in which one confirmed violation produces both a Telegram photograph for remote supervisors and a serial command that drives an on-site buzzer and LED.
- A documented validation and real-time test record, including failure cases, that states plainly which quantitative measurements are still missing.
2Literature review
2.1Vision-based PPE detection
Deep-learning PPE detection has been studied extensively for construction sites. Representative work includes safety-helmet detection [3], PPE compliance detection with computer-vision-based deep learning [4] and YOLO-based PPE detectors [5], [6]. Later studies address small objects and difficult lighting, for example an improved YOLOX for tunnel construction sites [7] and YOLOv5 variants for site safety [8], [9]. Dillibabu et al. combine YOLOv8 helmet and vest detection with sensor-equipped smart helmets and report high accuracy across varied conditions, at the price of additional sensor hardware [10]. Li et al. propose SD-YOLOv5 for rapid PPE detection [11], and Tong et al. build an improved YOLOv8n with multi-scale group convolution to reduce the parameter count [12]. Public datasets such as [13] support this research.
2.2Occlusion-robust and transformer-augmented detection
YOLOv8-CGS adds CBAM and GAM attention modules and an SLOU loss for occluded scenes and reports 94.6% and 92.4% accuracy on two datasets [14], at a higher computational cost. Wang combines YOLOv10 with Swin and axial transformer backbones and reports 87.3% average AP50 across helmet, mask, vest, glove and shoe classes [15]; heavier backbones of this kind raise the compute requirement for edge deployment.
2.3IoT alerting and multi-object tracking
Messaging-based alerting has been combined with microcontrollers in IoT safety systems. One ESP8266 and Blynk system pushes sensor-triggered alerts to the user through the Telegram Bot API [16]; it gives immediate remote notice but relies on environmental sensors, not on vision-based PPE detection. For worker-level state, multi-object trackers such as ByteTrack associate every detection box across frames and reach 63.1% HOTA on MOT17 [17], but they depend on a strong detector and are not part of the present system.
2.4Closest prior work
Rijal et al. integrate a YOLOv8n helmet and vest detector (2,777 images, mAP50 0.681) into a Flask dashboard with Telegram text-and-image alerts [2]. They report only qualitative webcam testing and list the absence of quantitative FPS and latency results as future work, together with edge hardware and additional PPE classes as next steps. Table 1 summarises the surveyed work.
| Ref. | Technique | Outcome | Limitation |
|---|---|---|---|
| [10] | YOLOv8 + smart-helmet sensors | High accuracy, varied conditions | Extra sensor cost |
| [11] | SD-YOLOv5 | Rapid PPE detection | Edge optimisation needed |
| [12] | YOLOv8n + multi-scale group convolution | Smaller model | No tracking or physical alerts |
| [14] | YOLOv8 + CBAM/GAM + SLOU | 94.6% / 92.4% accuracy | Higher compute |
| [15] | YOLOv10 + transformers | 87.3% avg. AP50 | Heavier backbones |
| [16] | ESP8266 + Telegram | Instant remote alert | No vision |
| [17] | ByteTrack | 63.1% HOTA (MOT17) | Needs a strong detector |
| [2] | YOLOv8n + Flask + Telegram | mAP50 0.681 | Remote alert only; no latency data |
2.5Research gap
The reviewed literature points to several practical gaps.
- Individual works improve detection accuracy, occlusion robustness or low-cost alerting in isolation.
- Many PPE systems notify remote supervisors only, so the worker at the hazard gets no immediate warning.
- Frame-by-frame detections are often used directly, without a documented rule that confirms a violation before an alert is sent.
- Quantitative FPS and latency are often not reported [2], and small items such as goggles and boots are rarely handled.
2.6Positioning of the proposed work
The proposed system combines multi-item PPE detection, a per-person region-based status, a ten-frame confirmation rule and a dual remote-plus-local alert in one locally hosted pipeline. It does not claim higher detection accuracy than the surveyed models; its contribution is the integration of these stages and an honest account of how the integrated system behaves.
3Proposed system architecture
3.1Overview
Figure 1 shows the architecture. The USB webcam streams video to the host laptop, which runs the detector and the decision logic. A confirmed violation branches into two outputs: a Telegram alert to the supervisor’s phone, and a serial command to the ESP32, which drives a buzzer and LED. Inference runs entirely on the local machine, and the only data sent out is one still image per alert. Figure 2 gives the flowchart of the main program.
The proposed system is designed to detect PPE violations in real time by integrating the YOLO26n object detection model, a USB webcam, Telegram notifications, and an ESP32 microcontroller. Initially, the YOLOv8 model is loaded, the webcam and serial communication are initialized, and the Telegram settings are configured. Video frames are continuously captured and processed using YOLOv8 with a confidence threshold of 0.40 to identify workers and assess the presence of essential protective equipment, including helmets, safety vests, and boots.
The detected PPE status is evaluated for each person by examining the head, torso, and foot regions. To improve detection reliability and minimize false alerts, the system maintains a history of the last 10 frames and confirms a violation only when at least 60% of the frames indicate the same condition. Once a violation is confirmed, it is compared with the previously reported status to avoid duplicate alerts. After the 30-second cooldown period, an alert containing the captured image and violation details is sent to the supervisor through Telegram.
Following successful Telegram delivery, a serial command is transmitted to the ESP32 at 9600 baud. The ESP32 activates the connected LED and buzzer to provide an immediate on-site warning. This continuous process enables automated PPE monitoring, reduces unnecessary alerts, and provides both remote notifications and local safety warnings.
3.2Hardware
Table 2 lists the hardware. The ESP32 is connected to the laptop over a USB/UART cable and receives the serial command; Figure 3 shows the prototype with the LED lit during an alert.
| Component | Role |
|---|---|
| Laptop (host) | Runs the detector, decision logic and alerting |
| Zebronics ZEB-LIVE PRO webcam | Live video capture over USB |
| ESP32 microcontroller | Receives the serial command; drives the buzzer and LED through GPIO D13 |
| Buzzer and LED | Audible and visual on-site warning |
| USB/UART cable | Laptop-to-ESP32 serial link |
| 5 V supply | Powers the ESP32 board |
3.3Camera specification
| Parameter | Specification |
|---|---|
| Model / Model ID | ZEB-LIVE PRO / ZEB-IWC 1 |
| Manufacturer / marketer | AJZ Industries Pvt. Ltd. / Zebronics India Pvt. Ltd., Chennai |
| Rated video resolution | Full HD, 1920 × 1080 |
| Resolution used | 640 × 480 |
| Operating range | 1.5 m |
| Interface | USB (external webcam) |
| Dimensions (W × D × H) | 9 × 6.2 × 5 cm |
| Manufactured | 05/2026, Made in India |
| MRP | ₹2,499 (incl. all taxes) |
| Certification | BIS R-61003166 (IS 616:2017 / IEC 60065:2014) |
3.4Software environment
| Technology | Purpose |
|---|---|
| Python (PyCharm) | Main programming language and IDE |
| Ultralytics YOLO 8.4.137 | Loads the YOLO26n weights and runs inference |
| OpenCV | Frame capture, annotation and display |
| PySerial | Serial link to the ESP32 |
| Requests, certifi | HTTPS calls to the Telegram Bot API with certificate verification |
| NumPy, SciPy | Numerical support (Ultralytics dependencies) |
| Arduino IDE | Programming the ESP32 |
| Telegram Bot API | Delivery of alerts to the supervisor [18] |
3.5Main-loop operation
At start-up the program loads the weights, opens the camera and the serial port and creates an empty ten-frame history. For every frame it runs the detector, assigns detections to persons, derives a status for each person, stores the frame status in the history and decides whether a violation is confirmed. Only a confirmed violation that differs from the previously alerted one reaches the alert stage.
4Dataset and model training
4.1Dataset
The detector was trained on the Ultralytics Construction-PPE dataset [19]; the data path recorded in the training metadata of the saved weights points to a Construction-PPE dataset directory. The published dataset contains 1,416 images annotated with bounding boxes in Ultralytics YOLO format and split into 1,132 training, 143 validation and 141 test images (Table 5) [19]. It provides eleven classes (Table 6): five for PPE that is worn, four for PPE that is missing, Person and a generic none class. Unlike general construction datasets, it labels missing equipment explicitly, so the model can report a violation directly. It has no dedicated label for a missing vest [19]; the vest rule in the per-person status evaluation therefore treats an undetected vest as a violation.
| Parameter | Value |
|---|---|
| Dataset | Ultralytics Construction-PPE |
| Total images | 1,416 |
| Training | 1,132 images |
| Validation | 143 images |
| Test | 141 images (not evaluated in this work) |
| Classes | 11 |
| Annotation | Bounding boxes (YOLO format) |
| Class | Region | Used in logic |
|---|---|---|
| Person | Whole body | Yes |
| helmet, no_helmet | Head | Yes |
| goggles, no_goggle | Eyes | Yes |
| vest | Torso | Yes (no “missing” class) |
| boots, no_boots | Feet | Yes |
| gloves, no_gloves | Hands | No |
| none | Generic | No |
4.2Model
YOLO26n, the nano variant of the YOLO26 family [20], was initialised from the pretrained yolo26n weights and fine-tuned with Ultralytics 8.4.137. As the smallest variant it suits near-real-time inference on modest hardware. The model has 11 output classes, of which eight are used by the decision logic.
4.3Training configuration
Training ran for 100 epochs with batch size 16 and 640 × 640 input on a GPU and took about 5,494 s (91.6 min). The best-fitness checkpoint, selected on mAP@50–95, was saved at epoch 69 and is the model used for inference. Table 7 lists the main settings, which were read from the metadata stored in the weights. In general, training seeks the parameters that minimise a loss function,
| Parameter | Setting |
|---|---|
| Model | YOLO26n (pretrained start) |
| Epochs / batch size | 100 / 16 |
| Image size | 640 × 640 |
| Hardware | GPU (device 0) |
| Learning rate | lr0 = 0.01, lrf = 0.01 |
| Momentum / weight decay | 0.937 / 0.0005 |
| Warm-up | 3 epochs |
| Augmentation | Mosaic 1.0 (off for last 10 epochs), flip 0.5, scale 0.5, translate 0.1, HSV (0.015, 0.7, 0.4) |
| Training time | 5,494 s (91.6 min) |
where θ denotes the model parameters, ℒ(θ) the training loss (a box-regression term and a classification term) and θ* the parameters that minimise it.
5Per-person PPE status evaluation
5.1Region-based assignment of detections
A detector reports PPE items and persons independently, so each item must be assigned to a person. For a person box (xp1, yp1, xp2, yp2) the height is
and a detected item with box (x1, y1, x2, y2) has its centre at
The item is assigned to the person if its centre lies inside the person box horizontally,
and inside the vertical band of its item type k, measured from the top of the person box (Table 8 and Figure 4),
| Item | Band (ak – bk) of h |
|---|---|
| Helmet / no_helmet | 0 – 0.30 |
| Goggles / no_goggle | 0 – 0.35 |
| Vest | 0.25 – 0.70 |
| Boots / no_boots | 0.70 – 1.00 |
5.2Item compliance rules
Let fk indicate that the positive class of item k was found in its band and mk that the corresponding “missing” class was found. Helmet, boots and goggles (k ∈ {helmet, boots, goggles}) count as satisfied only when the positive class is found and the missing class is not,
while the vest, which has no missing class, counts as satisfied when it is found: okvest = fvest. An item that is not detected is therefore treated as a violation. This is a deliberate safety-first choice, and its cost is discussed in the results and limitations.
5.3Status coding and priority
Every missing item adds to the status string. With four items there are 24 − 1 = 15 combinations of NO HELMET, NO VEST, NO BOOTS and NO GOGGLES, which with PPE OK gives sixteen statuses. A priority rank is assigned to each status: 0 for PPE OK, 1–4 for single violations (helmet, vest, boots, goggles in that order), 5–10 for pairs, 11–14 for triples and 15 for all four items missing. For persons p in a frame with status sp and rank ρ(·), the frame status is the highest-ranked one,
with PPE OK when no person is detected. Boxes are drawn red for a helmet violation or any combination of two or more missing items, orange for a single vest, boots or goggles violation, and green for PPE OK.
6Temporal violation confirmation
The frame status St is stored in a queue of the last N = 10 frames. If the most frequent status in a full queue is mt and it occurs c times, the agreement is
and the confirmed status is
with τ = 0.60. Until ten frames have been collected the confirmed status is PPE OK. A violation must therefore persist in at least ⌈τN⌉ = 6 of 10 frames, which suppresses alerts caused by occasional misdetections at the cost of a short confirmation delay. At a processing rate of f frames per second the minimum delay is
The frame rate f was not measured in this work, so no value of this delay can be stated.
7Dual-channel alerting
7.1Trigger logic
An alert is raised when the confirmed status is not PPE OK and differs from the status last alerted. When the confirmed status returns to PPE OK the “last alerted” memory is cleared, so the same violation can be reported again later.
7.2Remote channel: Telegram
The program saves the current annotated frame and calls the Telegram sendPhoto method [18] with the image and a caption that reads “PPE VIOLATION DETECTED” followed by the status. The request is sent over HTTPS with certificate verification and a 20 s timeout, and a 30 s cooldown prevents repeated alerts. Telegram adds the time stamp shown in the received message.
7.3On-site channel: ESP32
After a successful Telegram delivery the laptop writes the character ‘1’ to the serial port (COM5, 9600 baud) and reads one line of reply. The ESP32 sets GPIO D13 high, which turns on the buzzer and the LED. No command that switches the outputs off is sent in the present version. Table 9 collects the operating parameters.
| Parameter | Value |
|---|---|
| Detection confidence | 0.40 |
| History length N | 10 frames |
| Agreement threshold τ | 0.60 |
| Telegram cooldown | 30 s |
| Telegram request timeout | 20 s |
| Serial port / baud rate | COM5 / 9600 |
| Serial command | ‘1’ (violation) |
| ESP32 output | GPIO D13 → buzzer, LED |
| Camera resolution | 640 × 480 |
7.4Credentials
The Telegram bot token and chat identifier are secrets and are not reproduced in this paper. In the prototype they are set in the program source, which is unsuitable for a shared or deployed system; they should be supplied through environment variables or a protected configuration file and revoked if they were ever exposed.
8Experimental results and discussion
This section reports outputs from the working prototype. It separates the model’s recorded validation metrics from the real-time observations, which are qualitative.
8.1Experimental environment
Tests used the Zebronics webcam at 640 × 480 with a detection confidence of 0.40, at an operating distance of up to 1.5 m, in indoor and outdoor scenes. Workers wore combinations of helmet, vest, boots and goggles. The model was trained on a GPU and the live system ran on the host laptop.
8.2Model training results
Table 10 gives the validation metrics recorded in the saved weights and at the final epoch, and Figure 5 shows the training history. The best-fitness checkpoint (epoch 69) reached an mAP@50 of 0.559 and an mAP@50–95 of 0.282; the highest mAP@50 over the run was 0.561, at epoch 60. At epoch 100 the training box and classification losses were 1.292 and 0.771, against validation losses of 1.814 and 1.311. This gap between training and validation loss indicates limited generalisation, which is plausible for a dataset of 1,416 images.
| Checkpoint | P | R | mAP@50 | mAP@50–95 |
|---|---|---|---|---|
| Best (epoch 69) | 0.562 | 0.550 | 0.559 | 0.282 |
| Final (epoch 100) | 0.603 | 0.529 | 0.529 | 0.266 |
Because the validation subset was also used to select the best checkpoint, these scores are indicative only and do not replace an evaluation on the separate 141-image test subset, which has not been run. Per-class values and a confusion matrix are not stored in the weights and are not reported.
8.3Real-time implementation
Table 11 lists the real-time captures taken with the webcam. Figure 6 and 7 show the corresponding images; the status text is the one displayed by the program.
| ID | Scene and PPE observed | Status displayed | Telegram | Remarks |
|---|---|---|---|---|
| RT-1 (6a) | Corridor; two workers without helmet or vest | NO HELMET + NO VEST | Delivered | Small subjects still detected |
| RT-2 (6b) | Corridor; yellow helmet, no vest | NO VEST | Delivered | Single violation, orange box |
| RT-3 (6c) | Outdoor; one worker without helmet, one compliant | NO HELMET; green box for the other | Delivered, 10:34 | Per-person boxes |
| RT-4 (6d) | Outdoor; one worker without vest or helmet, one compliant | NO HELMET + NO VEST; green box for the other | Delivered, 10:35 | Two persons classified separately |
| RT-5 (7a) | Live window; vest worn, no helmet | NO HELMET + NO GOGGLES | Failed (HTTP 404) | Confirmed status lags the per-person box; recapture needed |
| RT-6 (7b) | Live window; helmet and vest worn, no goggles | NO GOGGLES | Not shown | Correct single violation |
| RT-7 (7c) | Saved alert frame; person cropped at frame edge | NO HELMET + NO BOOTS + NO GOGGLES | Alert source image | Likely false positive |
| RT-8 (7d) | Laboratory; two workers in vests, one carrying a helmet in hand | PPE OK (left); NO HELMET (right) | Not recorded | No helmet visible on the left person: missed violation |
8.4Telegram alert output
Each alert is a photograph of the annotated frame with the caption “PPE VIOLATION DETECTED” and the status. Figure 6 shows alerts for helmet, vest and combined violations as they arrived on the supervisor’s phone (RT-1 to RT-4), with Telegram supplying the time stamp.
8.5On-site alert
The serial command and ESP32 output were exercised during development, and Figure 3 shows the LED lit on the prototype. Only this single photograph is available; the buzzer and LED response was not recorded for each real-time test, so Table 11 does not claim an on-site result per test.
8.6Observed behaviour and failure analysis
The per-person status updates on every frame, while the confirmed status changes only after the ten-frame agreement is reached (RT-5). Workers who appear small in the frame (RT-1) were still classified although they were beyond the rated 1.5 m range. Figure 7 shows the live-window captures and the failure cases.
Three failure modes were observed. First, a person partly outside the frame can be reported as missing head and foot items (RT-7), because an undetected item is treated as a violation. Second, in RT-5 the Telegram request failed with HTTP 404, so the remote alert was not delivered; with the present program the on-site command is sent only after a successful delivery, so a network or credential fault also silences the local channel. Third, in RT-8 the person on the left, who is not wearing a helmet, is labelled PPE OK while the person on the right, who carries a helmet in the hand, is correctly flagged NO HELMET. The labels in this capture consider only helmet and vest, which suggests it came from an earlier helmet-and-vest version of the program; it is reported as a missed violation of the detector in that version.
No frame rate, alert latency, or false-alarm and missed-violation rates have been measured yet. These need a structured test across lighting, distance and occlusion scenarios.
8.7Comparison with related work
The recorded mAP@50 of 0.559 is lower than the 0.681 reported by Rijal et al. [2]. The comparison is not like for like: the model used here recognises eleven classes, including small objects such as goggles and boots, while theirs covers fewer classes, and the datasets differ. The advantage of this design is functional rather than a higher accuracy score: it checks four PPE items per worker and adds a local warning channel that a remote-only system lacks.
9Model evaluation metrics
A complete assessment of a detector uses standard metrics computed on labelled images. A true positive (TP) is a prediction that matches a labelled object in class and satisfies the chosen IoU criterion, a false positive (FP) is a prediction that matches no labelled object, and a false negative (FN) is a labelled object that is not detected. The Intersection over Union between a predicted box Bp and a ground-truth box Bg is
Precision and recall are
Average precision is the area under the precision–recall curve of one class, and mAP averages it over the C classes,
mAP@50 uses an IoU threshold of 0.5, and mAP@50–95 averages over thresholds from 0.5 to 0.95. Of these, only the overall precision, recall, mAP@50 and mAP@50–95 on the validation subset are available (Table 10). The following are not yet measured: per-class AP, the confusion matrix, all metrics on the 141-image test subset, and frame rate. Because the system raises alerts rather than boxes, event-level measures are also needed, for example the alert latency
together with the false-alert rate per hour and the fraction of true violations that are confirmed and delivered.
10Advantages
The system runs entirely on a local laptop, so video does not leave the premises and no cloud service is needed for detection. It checks four PPE items per worker rather than helmets alone, and the region-based rules give a separate status for each person in the frame. The ten-frame agreement rule filters isolated misdetections before any alert is sent. A single confirmed violation reaches both a remote supervisor, with photographic evidence, and the people at the hazard, through the buzzer and LED. The hardware is inexpensive: a consumer webcam with a list price of ₹2,499, a laptop and an ESP32 board.
11Limitations
The system should be regarded as a decision-support aid for supervisors, not a replacement for human safety supervision. Several limitations remain.
- No system-level measurements. Frame rate, alert latency, and false-alarm and missed-violation rates have not been measured.
- Modest model accuracy. The mAP@50–95 is 0.282, the checkpoint was selected on the validation subset, the 141-image test subset has not been evaluated, and per-class results are unavailable.
- Small dataset. 1,416 images with a visible training–validation loss gap; performance on other sites, cameras and lighting is unknown. The gloves and mask categories are not used.
- Absence is treated as violation. Helmet, boots and goggles must be positively detected and the vest has no missing class, so a person cropped at the frame edge or too small to resolve can trigger a false alert (RT-7), and a missed detection can also hide a violation (RT-8).
- On-site alert depends on Telegram. The serial command is sent only after a successful Telegram delivery, so the local channel fails when the network or credentials fail (RT-5). The ESP32 also never receives a command that switches the outputs off.
- Alert suppression is not retried. A status confirmed during the 30 s cooldown is recorded as alerted without being sent, so that alert is lost until the status changes.
- No per-worker tracking. The filter acts on the highest-ranked status in the frame, so one worker’s violation can mask another’s change; the ranks are ordinal and not weighted by severity.
- Blocking alert path. The Telegram request, a one-second pause and the serial read run in the main loop and can stall the video for several seconds.
- Capture settings. The webcam supports 1920 × 1080 but was run at 640 × 480, and the rated range is 1.5 m.
- Privacy and security. Transmitting worker images requires consent and a retention policy, and the bot credentials must be removed from the source code.
12Future scope
The most immediate need is quantitative evaluation: the 141-image test subset should be used to report precision, recall, AP, mAP and a confusion matrix, and a structured test should measure FPS, alert latency and false-alarm and missed-violation rates across lighting, distance and occlusion scenarios. The local alert should be decoupled from Telegram delivery and given a reset command, alert sending should move to a separate thread, and cooldown-suppressed alerts should be retried. Per-worker tracking with a tracker such as ByteTrack [17] would give each worker a state of their own. Model optimisation through ONNX export, INT8 quantisation or a dedicated accelerator could lower inference cost, provided any speed gain is checked against detection performance. A larger site-specific dataset that includes gloves and masks, full-HD capture, an explicit missing-vest class, secure credential handling and an image-retention policy would prepare the system for deployment.
13Conclusion
This paper presented a locally hosted PPE monitoring system that detects helmets, vests, boots and goggles with a YOLO26n model, evaluates the status of each person from head, torso and foot regions, confirms violations with a ten-frame agreement rule and responds through a Telegram photograph and an ESP32-driven buzzer and LED. The saved weights reached a validation precision of 0.562, a recall of 0.550, an mAP@50 of 0.559 and an mAP@50–95 of 0.282. Real-time tests with a USB webcam at up to 1.5 m showed per-person status display and Telegram delivery for helmet and vest violations, and also exposed false alerts for partly visible persons, a missed helmet violation and a dependence of the local alert on the network. The results demonstrate the integration and working behaviour of the prototype; quantitative testing of speed, latency and error rates, an evaluation on the held-out test subset and a more robust alert path are needed before the system can be considered for deployment.
Acknowledgment
The authors thank the Department of Electronics and Communication Engineering, GSSS Institute of Engineering and Technology for Women, Mysuru, for guidance and support.
References
- [1]J. Redmon, S. Divvala, R. Girshick and A. Farhadi, “You only look once: Unified, real-time object detection,” in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 2016, pp. 779–788.
- [2]M. Rijal, M. Erdin and H. Musa, “Real-time safety helmet and vest compliance detection using YOLOv8 with web-based monitoring and Telegram alerts,” JEENI, vol. 4, no. 1, pp. 58–67, Sept. 2026, doi: 10.59562/jeeni.v4i1.13712.
- [3]A. Hayat and F. Morgado-Dias, “Deep learning-based automatic safety helmet detection system for construction safety,” Appl. Sci., vol. 12, no. 16, Art. 8268, 2022.
- [4]V. S. K. Delhi, R. Sankarlal and A. Thomas, “Detection of PPE compliance on construction site using computer vision based deep learning techniques,” Front. Built Environ., vol. 6, Art. 136, 2020.
- [5]M. Ferdous and S. M. M. Ahsan, “PPE detector: A YOLO-based architecture to detect PPE for construction sites,” PeerJ Comput. Sci., vol. 8, e999, 2022.
- [6]Z. Wang, Y. Wu, L. Yang et al., “Fast PPE detection for real construction sites using deep learning approaches,” Sensors, vol. 21, no. 10, Art. 3478, 2021.
- [7]Z. Cai and Y. Wu, “An improved YOLOX approach for low-light and small object detection: PPE on tunnel construction sites,” J. Comput. Des. Eng., vol. 10, no. 3, pp. 1158–1175, 2023.
- [8]“Improved detection network model based on YOLOv5 for warning safety in construction sites,” Int. J. Constr. Manag., vol. 24, no. 9, 2024.
- [9]“A real-time system for detecting personal protective equipment compliance using deep learning model YOLOv5,” Procedia Comput. Sci., vol. 245, pp. 647–656, 2024.
- [10]B. Dillibabu et al., “Enhancing construction worker safety through YOLOv8-based PPE detection and sensor-driven smart helmets,” IJRASET, 2025.
- [11]C. Li et al., “SD-YOLOv5: A rapid detection method for PPE on construction sites,” Front. Built Environ., vol. 11, Art. 1563483, 2025.
- [12]B. Tong, G. Li, X. Bu, Y. Wang and X. Yu, “A deep learning-based algorithm for the detection of personal protective equipment,” PLOS ONE, vol. 20, no. 5, e0322115, 2025.
- [13]M.-L. Huang and Y. Cheng, “Dataset of personal protective equipment,” Data Brief, vol. 62, Art. 111988, 2025.
- [14]Z. Wu, X. Lei and M. Kumar, “Advancing construction safety: YOLOv8-CGS helmet detection model,” PLOS ONE, vol. 20, no. 5, e0321713, 2025.
- [15]S. Wang, “Automated non-PPE detection on construction sites using YOLOv10 and transformer architectures,” Sci. Rep., vol. 15, 2025.
- [16]“IoT based industrial safety using ESP8266 and Blynk,” IJSRET, vol. 11, no. 5, 2025.
- [17]Y. Zhang et al., “ByteTrack: Multi-object tracking by associating every detection box,” in Proc. ECCV, 2022, pp. 1–21.
- [18]Telegram, “Telegram Bot API,” 2026. [Online]. Available: https://core.telegram.org/bots/api
- [19]Ultralytics, “Construction-PPE dataset,” Ultralytics Docs, 2026. [Online]. Available: https://docs.ultralytics.com/datasets/detect/construction-ppe/
- [20]Ultralytics, “Ultralytics YOLO26 (Ultralytics package v8.4.137),” Ultralytics Docs, 2026. [Online]. Available: https://docs.ultralytics.com