Giter VIP home page Giter VIP logo

safetynet's Introduction

SafetyNet

Industrial Safety is essential for promoting worker safety, preventing accidents, ensuring compliance, and enhancing overall operational efficiency in industrial environments. This project aims to develop a real-time video analytics tool that enhances industrial safety by detecting and preventing potential hazards and unsafe situations in industrial environments.

Video Demo

SafetyNet

Objective

The objective of this project is to leverage Deep Learning techniques to monitor live video feeds and provide real-time hazard detection, prompt alerts, and interventions, enhancing industrial safety and preventing accidents in industrial environments.

Project Structure & Flow

project_flow

Technologies & Tools

  • Python
  • OpenCV
  • Tensorflow
  • YOLO (You Only Look Once) v8
  • Flask (APIs and Back-end)
  • React (Web-Application / Front-end
  • Firebase - Firestore (NoSQL Database)
  • RaspberryPi (Sensor Integration)

Features

  • Real-time video analysis for hazard detection.
  • Proactive alert system for immediate intervention.
  • User-friendly web interface for monitoring and control.
  • Integration with existing industrial video data.
  • Dashboard for factory managers to track safety statistics and incidents.

Getting Started

Follow these steps to get started with the project:

  1. Clone this repository to your local machine:

    git clone (https://github.com/smartinternz02/SBSPS-Challenge-10024-SafeZone-Real-time-Video-Analytics-for-Industrial-Safety)https://github.com/smartinternz02/SBSPS-Challenge-10024-SafeZone-Real-time-Video-Analytics-for-Industrial-Safety)
    cd SBSPS-Challenge-10024-SafeZone-Real-time-Video-Analytics-for-Industrial-Safety
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Start the application:

    cd flask_api
    python app.py
  4. Run web application:

    cd frontend
    npm i -S react-scripts
    npm start
  5. Default - Test Credentials for the application

Model statistics

1. Class labels:

[Hardhat, Mask, NO-Hardhat, NO-Mask, NO-Safety Vest, Person, Safety Cone,
Safety Vest, machinery, vehicle]

The model that was used in order to train this model was the yolov8l model that consists of 268 layers and 43,668,288 parameters. The model needs approximately 165 GFLOPS of compute power to run. The model was trained on a custom dataset with the aforementioned classes and the hardware that was required to train that model was: 2x Nvidia Tesla T4 GPUs with 16gb VRAM each, 30GB of RAM and 4v CPU compute Engine.

The model was trained for 310 epochs and took a total amount of time of nearly 36 hrs to train completely.

2. Model Metrics:

a. mAP50 (B):

The mAP50 B is the Mean Absolute Precision where it measures the Average Precision of detections that have at least a 50% overlap with ground truth objects while excluding those overlapping with the background. Screenshot from 2023-09-03 15-24-39

b. mAP_0.5:

The mAP_0.5 is the same as the previous one but in contrast, mAP_0.5 calculates Average Precision based on detections with an Intersection over Union (IoU) of 0.5 or higher with ground truth objects. Screenshot from 2023-09-03 15-27-09

c. Precision:

Precision in object detection is a metric that assesses the accuracy of a model's detections. It measures the ratio of correctly predicted positive detections to the total number of positive predictions made by the model. In the context of object detection, a "positive detection" refers to a bounding box or region proposed by the model that correctly corresponds to an actual object in the scene. Screenshot from 2023-09-03 15-29-52

d. Recall:

Recall, in the context of object detection, is another important metric that evaluates the completeness of a model's detections. It measures the ratio of correctly predicted positive detections to the total number of actual positive objects present in the scene. Screenshot from 2023-09-03 15-31-06

Usage

  • Upload industrial video data for analysis.
  • The system will analyze the video in real-time, detecting potential hazards.
  • The dashboard provides real-time statistics on safety incidents.
  • When a hazard is detected, the system triggers alerts and interventions as needed.

Outputs

1. Safety Gear Recognition:

outputgif

2. Emergency Hand Gesture Detection:

output2

Implementation Screenshots

Introduction

1 2 3 4

Login for Admins & Managers

5 6

Admin Dashboard

It consists of Organization wide data, i.e. data collected from all the factories / industrial sites are crunched together for the admin of the organization to observe.

7 8

The admin dashboard also has access to analytics and stats related to the safety of the industrial sites, the graphs of safety-scores, fire-incidents and harmful gas sensor alerts

9 10

Manager Dashboard

It consists of Factory / Industrial area wide data, i.e. data collected from that particular factory or industrial site is crunched together for the manager of the respective site to observe.

11 12

The manager dashboard also has access to analytics and stats related to the safety of the industrial sites, the graphs of safety-scores, fire-incidents and harmful gas sensor alerts

13 14

safetynet's People

Contributors

devashish-bhake avatar shivam5522 avatar viren-joshi avatar divijakinger avatar

Stargazers

B Kaushik Rao avatar Harikesh Shukla  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.