WebSocket-Based Smart Surveillance Camera for Real-Time Detection of Occupational Health and Safety PPE Non-Compliance in Industrial Areas
Abstract
In industrial settings, ensuring adherence to Occupational Health and Safety (OHS) Personal Protective Equipment (PPE) regulations continues to be a crucial challenge. The creation of a WebSocket-based smart surveillance camera system for the real-time identification and reduction of PPE infractions is discussed in the paper. The proposed system includes an ESP32-S3 microcontroller accompanied by an OV5640 camera module, acting as an edge-processing embedded platform. The Edge Impulse machine learning framework was used to train image classification and detection models, enabling efficient low-latency inference directly on the device. A websocket enabled web server streams video frames in real time for constant monitoring, with instant display using regular browsers without wasting bandwidth. Experimental results demonstrate that even with limited computational resources, the system is able to perform on-device inference with very high responsiveness and good detection accuracy. This technology provides a scalable and affordable way to enhance OHS compliance monitoring in industry, reduce reliance on manual supervision, and encourage proactive risk mitigation methodologies.
Downloads
References
A. Badri, B. Boudreau-trudel, and A. Saâdeddine, “Occupational health and safety in the industry 4 . 0 era : A cause for major concern ?,” Saf. Sci., vol. 109, no. August 2017, pp. 403–411, 2018, doi: https://doi.org/10.1016/j.ssci.2018.06.012.
S. Al-Azani, H. Luqman, M. Alfarraj, A. A. I. Sidig, A. H. Khan, and D. Al-Hamed, “Real-Time Monitoring of Personal Protective Equipment Compliance in Surveillance Cameras,” IEEE Access, vol. 12, no. September, pp. 121882–121895, 2024, doi: https://doi.org/10.1109/ACCESS.2024.3451117.
N. Mitrovi and M. Ðor, “Implementation of WebSockets in ESP32 based IoT Systems,” pp. 261–264, 2021.
V. Hyginus et al., Integrating IoT sensors and machine learning for sustainable precision agroecology : enhancing crop resilience and resource efficiency through data ‑ driven strategies , challenges , and future prospects. Springer International Publishing, 2025. doi: https://doi.org/10.1007/s44279-025-00247-y.
M. Cabanillas-carbonell, J. S. Rivera, and J. S. Muñoz, “Artificial intelligence in video surveillance systems for suspicious activity detection and incident response : A systematic literature review,” vol. 19, no. 3, pp. 389–405, 2025.
S. Sathya and M. S. Swetha, “Real-Time Chat Application with Web Socket for Network Efficiency,” 2025.
S. Automatisés, D. Priyasta, and R. Septiawan, “Enabling EV Roaming Through Cascading WebSockets in OCPP 1 . 6,” vol. 56, no. 3, pp. 437–449, 2023.
Y. S. Baraskar, P. Gawande, and P. V. Ambhore, “EXPLORING THE CAPABILITIES OF ESP32-S3 : AN ADVANCED IOT DEVELOPMENT BOARD FOR NEXT-GENERATION EDGE COMPUTING,” no. 11, pp. 5219–5227, 2025.
L. Zhang, W. Guo, and C. Lv, “Science in One Health Modern technologies and solutions to enhance surveillance and response systems for emerging zoonotic diseases,” Sci. One Heal., vol. 3, no. August 2023, p. 100061, 2024, doi: https://doi.org/10.1016/j.soh.2023.100061.
N. Abekiri, A. Rachdy, M. Ajaamoum, B. Nassiri, L. Elmahni, and Y. Oubail, “Platform for hands-on remote labs based on the ESP32 and,” Sci. African, vol. 19, p. e01502, 2023, doi: https://doi.org/10.1016/j.sciaf.2022.e01502.
J. C. Palomares-salas, J. Maria, J. C. Palomares-salas, J. Maria, P. Remigio-carmona, and J. Jos, “ScienceDirect n n Characterization Characterization and and Performance Performance Evaluation Evaluation of of ESP32 ESP32 for for Synchronized Sensor Networks Real-time Synchronized Sensor Networks,” vol. 00, no. 2022, 2024, doi: https://doi.org/10.1016/j.procs.2024.05.104.
J. Paul et al., “ScienceDirect Extraction of Measurement Device Information on an ESP32 Extraction of Measurement Device Information on an ESP32 Microcontroller : TinyML for Image Processing Microcontroller : TinyML for Image Processing,” 2024, doi: https://doi.org/10.1016/j.procs.2024.09.670.
M. Novak, P. Doležal, O. Budík, L. Ptáček, J. Geyer, and R. G. Blue, “Engineering Science and Technology , an International Journal Intelligent inspection probe for monitoring bark beetle activities using embedded IoT real-time object detection,” Eng. Sci. Technol. an Int. J., vol. 51, no. May 2023, p. 101637, 2024, doi: https://doi.org/10.1016/j.jestch.2024.101637.
D. Hercog, T. Lerher, and M. Truntiˇ, “Design and Implementation of ESP32-Based IoT Devices,” no. 1, 2023.
P. Dani, P. Adi, and Y. Wahyu, “Performance evaluation of ESP32 Camera Face Recognition for various projects,” vol. 02, pp. 10–21, 2022, doi: https://doi.org/10.31763/iota.v2i1.512.
S. M. Kulkarni, S. Umadi, R. M. Amogh, S. S. Airani, and M. M. Raikar, “ScienceDirect Grading and Classification of Tomatoes Using ESP32-CAM and Impulse Cloud based IoT Platform for Sustainability,” Procedia Comput. Sci., vol. 260, pp. 938–946, 2025, doi: https://doi.org/10.1016/j.procs.2025.03.277.
G. R. Pinaso, L. M. Figueiredo, O. R. Júnior, and M. Rogério, “s emina,” pp. 1–9, 2024, doi: https://doi.org/10.5433/1679-0375.2024.v45.49197.
I. O. P. C. Series and M. Science, “Weather prediction system and recommendation of plant varieties as an effort to minimize harvest failure with android-based Backpropagation Artificial Neural Networks Weather prediction system and recommendation of plant varieties as an effort to minimize harvest failure with android- based Backpropagation Artificial Neural Networks,” 2021, doi: https://doi.org/10.1088/1757-899X/1098/3/032027.
J. Chaoraingern, V. Tipsuwanporn, and A. Numsomran, “Artificial Intelligence for the Classification of Plastic Waste Utilizing TinyML on Low-Cost Embedded Systems,” vol. 13, no. 6, pp. 2328–2337, 2023.
N. Li, L. Cheng, C. Ji, S. Dongye, and M. Li, “An Improved Framework for Airport Detection under the Complex and Wide Background,” IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens., vol. 15, pp. 9545–9555, 2022, doi: https://doi.org/10.1109/JSTARS.2022.3217040.
M. Rina, A. Azullya, and L. Nurliyana, “Deep learning mango fruit recognition based on TensorFlow lite,” vol. 9, no. 3, pp. 565–576, 2023.
G. George, S. Adeshina, and M. M. Boukar, “INTELLIGENT SYSTEMS AND APPLICATIONS IN ENGINEERING Development of Android Application for Facial Age Group Classification Using TensorFlow Lite,” pp. 0–3, 2023.
K. Filus and J. Doma, “Computers & Security Software vulnerabilities in TensorFlow-based deep learning applications,” vol. 124, 2023, doi: https://doi.org/10.1016/j.cose.2022.102948.
N. Chieng and A. Sallang, “A CNN-Based Smart Waste Management System Using TensorFlow Lite and LoRa-GPS Shield in Internet of Things Environment,” vol. 9, 2021.
Y. Adhimanata, I. Sulistiyowati, A. Wisaksono, S. D. Ayuni, U. M. Sidoarjo, and J. Timur, “Overload Monitoring and Warning System for 3-Phase Electric Motorcycle based on IoT,” vol. 7, no. 1, pp. 30–41, 2025, doi: https://doi.org/10.12928/biste.v7i1.12262.





