Safety Measure Detection Using Deep Learning
Safety Measure Detection Using Deep Learning
ARTICLEINFO ABSTRACT
Copyright © 2024 The Author(s): This is an open-access article distributed under the terms of the Creative 148
Commons Attribution 4.0 International License (CC BY-NC 4.0) which permits unrestricted use, distribution, and
reproduction in any medium for non-commercial use provided the original author and source are credited.
Tejas Bagthaliya et al Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol., March-April-2024, 10 (2) : 148-155
In [8] delved into the application of machine In [14] discussed the integration of Realtime
learning in predictive maintenance for smart Locating Systems (RTLS) in enhancing safety measures
manufacturing, highlighting machine learning at construction sites, offering valuable insights into
algorithms' role in optimizing maintenance processes. RTLS technology's impact on safety protocols. The
The study emphasized the importance of predictive review emphasized the importance of real-time
maintenance in ensuring equipment reliability and location data in improving worker safety and accident
reducing downtime in smart manufacturing prevention on construction sites.
environments. In [15] proposed a real-time monitoring system
In [9] proposed a comprehensive safety management designed to control interference in large-scale
system for construction sites based on computer vision construction projects, contributing to improved
and deep learning technologies, automating hazard operational efficiency and safety. The system addresses
detection and monitoring to enhance safety protocols. critical challenges in construction site management,
The system integrated advanced technologies to such as real-time interference control, leading to
improve safety measures and reduce the likelihood of smoother project execution and reduced safety risks.
workplace accidents. These papers collectively contribute to advancements
In [10] demonstrated the effectiveness of the in safety management, deep learning, computer vision,
Haarcascade algorithm in detecting safety equipment and predictive maintenance, addressing critical
across diverse work environments, contributing to challenges and improving safety measures in various
improved safety management systems. The research industrial and construction environments.
enhanced safety protocols by accurately identifying
safety equipment usage and compliance in various III.PROJECT FLOW AND METHODOLOGY
working environments.
In [11] presented a method for detecting safety gear
A. Image Enhancement
using advanced deep learning techniques, promoting
Image enhancement involves adjusting digital images
safer working conditions. Their approach leveraged
to make them more suitable for display or further
deep learning algorithms to improve safety gear
analysis. This can include tasks such as noise reduction,
detection accuracy, ensuring workers' adherence to
sharpening, or brightening an image to improve the
safety protocols and regulations.
visibility of important features.
In [12] presented enhancements for detecting
industrial safety gear using a re-ID conditioned B. Feature Extraction
detector, contributing to the development of more Feature extraction methods identify distinct features in
accurate safety gear detection systems. The research images, such as edges and corners, which can then be
focused on improving the efficiency and reliability of used to distinguish or match images with similar
safety gear detection, enhancing overall workplace features. An algorithm was developed in this study to
safety. extract color features from samples. Typically, color,
In [13] introduced deep residual learning techniques shape, and texture features are extracted from images
for image recognition tasks, significantly advancing the to aid in image recognition.
field of computer vision and pattern recognition. This
work has had a substantial impact on improving the C. Image acquisition
accuracy and efficiency of image classification models, Images were acquired through two methods: the first
especially in complex recognition tasks. system utilized a scanner (hp 1370) and a Pentium IV
Computer unit, while the second system used a digital
Figure 3. ER Diagram
D. Training application
The training application begins by receiving a video
stream from a connected camera. Frames are extracted
from this stream to capture images at an adjustable rate.
The application continues this process until it reaches
a default target of 30 images, uploading these images to
the designated Custom Vision resource. During this
image capture phase, the camera can be exposed to the
specific
objects you want the model to recognize. Once the
images are uploaded, they are available within the
Custom Vision resource. Alternatively, images can be
directly uploaded to Custom Vision from a local folder
via the Custom Vision web portal.
IV.MATERIAL METHODOLOGY the camera are pre-processed and fed into the model
for safety gear detection. The output of the model can
A safety gear detection system using deep learning be displayed on a monitor or integrated with other
methodology typically follows the following steps: safety equipment for real-time alerts.
A. Data Collection:
V. RESULTS
The first step is to collect a large dataset of images that
contain workers wearing safety gear, such as hard hats
The toolkit for Intel® Distribution of OpenVINOTM
and safety vests. The dataset should include images
contains an inference engine that is used by the
captured in different lighting conditions, angles, and
application. First, a trained neural network finds
orientations.
persons in the frame and shows a bounding box over
B. Data Pre-processing: them in a green colour. The programme checks
The collected data is pre-processed by resizing the everyone it finds to see if they are donning a hard
images, removing irrelevant features, and normalizing helmet and safety gear. If they are not, the system
the pixel values. The pre-processed data is then divided registers an alarm.
into training, validation, and test sets.
C. Model Development:
The next step is to develop a deep learning model using
a suitable framework, such as TensorFlow or PyTorch.
The model can be a convolutional neural network
(CNN) or a hybrid model that combines CNN with Figure 4. Working System
other deep learning architectures. The model is trained
To prepare the environment for utilizing the Intel®
on the training set using backpropagation and gradient
Distribution of OpenVINO™ toolkit, configureit by
descent algorithms.
exporting the necessary environment variables:
D. Model Evaluation: command: source /opt/intel/openvino/bin/setupvars.sh
Once the model is trained, it is evaluated on the
validation set to assess its performance. The evaluation
metrics used can include accuracy, precision, recall,
and F1 score.
E. Model Optimization:
Figure 5. Environment Setup
The model is optimized by fine-tuning the
hyperparameters, such as learning rate, number of This command is essential for setting up the required
layers, environment variables. The system can access crucial
and batch size. The optimized model is then tested on OpenVINOTM libraries, tools, and dependencies by
the test set to evaluate its generalization performance. sourcing this script. In order to enable for easy
interaction with OpenVINOTM components, it makes
F. Deployment:
sure that the system environment is configured
Once the model is trained and optimized, it can be correctly.
deployed in the field using suitable hardware and Begin by changing the current directory to the specific
software components. The input images captured by location of the code on your system.
The safety gear detection system using deep learning The safety gear detection system can be
can be used in industries to detect the usage of safety implemented in firefighting settings to detect the usage
gear such as helmets, gloves, safety shoes, goggles, etc. of safety gear such as helmets, boots, gloves, and
This can prevent accidents and ensure the safety of the breathing apparatus. This can prevent injuries and
workers. ensure the safety of the firefighters.
B. Construction safety
VII. REFERENCES
Construction sites are considered high-risk areas,
and the safety of the workers is of utmost importance.
[1] K. He, X. Zhang, S. Ren and J. Sun, ”Deep
The safety gear detection system can be implemented
Residual Learning for Image Recognition,” 2016
in construction sites to detect the usage of safety gear
IEEE Conference on Computer Vision and
such as helmets, safety harnesses, safety shoes, etc.
Pattern Recognition (CVPR), Las Vegas, NV,
C. Healthcare safety USA, 2016, pp. 770-778, doi :
The safety gear detection system can be used in 10.1109/CVPR.2016.90.
healthcare settings to detect the usage of personal [2] Soltanmohammadlou, N., Sadeghi, S., Hon, C.K.,
protective equipment (PPE) such as masks, gloves, Mokhtarpour-Khanghah, F. (2019). Realtime
goggles, and gowns. This can prevent the spread of locating systems and safety in construction sites:
infectious diseases and ensure the safety of healthcare A literature review. Safety Science.
workers. [3] Naticchia , Berardo et al. “A monitoring system
for real-time interference control on large
D. Sports safety construction sites.” Automation in Construction
The safety gear detection system can be 29 (2013):148-160.
implemented in sports settings to detect the usage of [4] Perez, L., Wang, J. (2017). The Effectiveness of
safety gear such as helmets, pads, and mouthguards. Data Augmentation in Image Classification using
This can prevent injuries and ensure the safety of Deep Learning. ArXiv, abs/1712.04621.
athletes. [5] Shijie, Jia Ping, Wang Peiyi, Jia Siping, Hu.
(2017). Research on data augmentation for image
E. Transportation safety
classification based on convolution neural
The safety gear detection system can be used in
networks. 4165-4170.
transportation settings such as aviation, rail, and
10.1109/CAC.2017.8243510.
maritime industries to detect the usage of safety gear
[6] Barro-Torres, Santiago Fern´andez-Caram´es,
such as helmets, life jackets, and harnesses. This can
Tiago P´erez-Iglesias, H´ector Escudero, Carlos.
prevent accidents and ensure the safety of the
(2012). Real-Time Personal Protective
passengers and crew.
Equipment Monitoring System. Computer
F. Military safety Communications. 36. 42-50.
The safety gear detection system can be used in 10.1016/j.comcom.2012.01.005.
military settings to detect the usage of protective gear [7] Nath, Nipun Behzadan, Amir Paal, Stephanie.
such as helmets, body Armor, and gas masks. This can (2020). Deep learning for site safety: Realtime
ensure the safety of the soldiers during combat. detection of personal protective equipment.
Automation in Construction. 112. 103085.
G. Firefighter safety
10.1016/j.autcon.2020.103085.