AIoT System2024

S.A.F.E. Laboratory

An AIoT-based laboratory access system integrating computer vision and IoT for automated PPE compliance verification.

S.A.F.E. Laboratory

Overview

Developed the AI component of a smart laboratory access system that verifies Personal Protective Equipment (PPE) compliance in real time before granting laboratory access through an RFID-enabled attendance workflow.

Problem

Laboratory safety inspections are often performed manually, making them time-consuming, inconsistent, and prone to human error before users enter restricted laboratory areas.

Solution

Designed and trained a YOLOv5 object detection model for PPE detection, integrated through a Flask API with an IoT-based attendance system using ESP32 and RFID to automate laboratory entry validation.

Architecture

Camera→
YOLOv5→
Flask API→
ESP32→
RFID→
Access Decision

Engineering Decisions

  • Collected and manually annotated a custom PPE dataset to improve detection performance under realistic laboratory conditions.
  • Separated AI inference from the web application through a Flask API for modular deployment.
  • Integrated the AI model with IoT hardware to enable automated access control instead of standalone object detection.
  • Prioritized real-time inference speed while maintaining reliable detection accuracy.

Challenges

  • Collecting sufficient PPE images with diverse lighting conditions and viewing angles.
  • Balancing detection accuracy with inference latency for real-time operation.
  • Integrating AI inference with RFID-based hardware communication.

Lessons Learned

  • Deploying AI systems requires significantly more engineering than model training alone.
  • Dataset quality often contributes more to performance than architectural complexity.
  • System integration becomes the primary challenge once the model reaches acceptable accuracy.

Future Improvements

  • Deploy optimized models using TensorRT or ONNX Runtime.
  • Expand PPE categories for broader industrial safety applications.
  • Support multiple simultaneous users.
  • Implement edge deployment for lower latency.

Technology

PythonPyTorchYOLOv5FlaskESP32RFIDOpenCV

Gallery

S.A.F.E. Laboratory screenshot 1S.A.F.E. Laboratory screenshot 2S.A.F.E. Laboratory screenshot 3

Results

Accuracy

88-97%

Dataset

3,500+ manually collected and annotated images

Top 10 Finalist among 7,590 participants
Samsung Innovation Campus Batch 5