Skip to content

Lokeswari3173/Factory-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿšจ Factory Guard AI

AI-Powered Industrial Safety Risk Prediction System

A production-oriented Machine Learning system designed to proactively identify unsafe industrial conditions and reduce workplace accidents through intelligent risk prediction.


๐Ÿ“Œ Problem Statement

Industrial workplaces face significant safety challenges due to:

  • Lack of real-time monitoring
  • Human error and unsafe practices
  • Delayed identification of hazardous conditions

Traditional systems are reactive, responding only after incidents occur.

๐ŸŽฏ Objective

To build a proactive AI-driven safety system that predicts potential risks and enables early intervention.


๐Ÿง  System Overview

Factory Guard AI is an end-to-end Machine Learning application that:

  • Ingests industrial condition parameters
  • Applies a trained LightGBM model
  • Predicts risk levels (Safe / Unsafe)
  • Displays results through an interactive Streamlit dashboard

๐Ÿ” High-Level Workflow

  1. Data Collection
  2. Data Preprocessing
  3. Feature Engineering
  4. Model Training (LightGBM)
  5. Model Evaluation
  6. Deployment via Streamlit UI

๐Ÿ—๏ธ System Architecture

[Input Data] โ†’ [Preprocessing] โ†’ [LightGBM Model] โ†’ [Prediction] โ†’ [Streamlit UI]

โš™๏ธ Tech Stack

Layer Technology
Language Python
ML Framework LightGBM
Data Processing Pandas, NumPy
Visualization Matplotlib, Seaborn
Web Interface Streamlit
Model Persistence Pickle
Version Control Git & GitHub

๐Ÿ“Š Model Details

๐Ÿ” Algorithm: LightGBM

A gradient boosting framework optimized for speed and performance.

โœ… Why LightGBM?

  • Handles large-scale structured data efficiently
  • Faster training compared to XGBoost
  • High accuracy with lower memory usage

๐Ÿ“ˆ Performance Metrics

Metric Score
Accuracy ~98%
F1 Score ~0.87
ROC-AUC ~0.98

๐Ÿงช Training Pipeline

  • Data Cleaning
  • Feature Scaling
  • Train-Test Split
  • Model Training
  • Hyperparameter Tuning
  • Evaluation

๐Ÿ“ธ Screenshots

๐Ÿ”น Application Interface

๐Ÿ”น User Input & Predictio

๐Ÿ”น Output Result

๐Ÿ”น Performance Visualization

Screenshot 2026-04-06 142351 - Copy Screenshot 2026-04-06 142340 Screenshot 2026-04-06 142326 Screenshot 2026-04-06 142233 Screenshot 2026-04-06 142219 Screenshot 2026-04-06 142206 Screenshot 2026-04-06 142157 Screenshot 2026-04-06 142141 Screenshot (22) Screenshot 2026-04-06 142131 Screenshot 2026-04-06 142107 Screenshot 2026-04-06 141946 Screenshot 2026-04-06 141859 Screenshot 2026-04-06 141926

๐Ÿš€ Getting Started

๐Ÿ”ง Prerequisites

  • Python 3.8+
  • pip

๐Ÿ“ฅ Installation

git clone https://github.com/your-username/FACTORY-GUARD-AI.git
cd FACTORY-GUARD-AI
pip install -r requirements.txt

โ–ถ๏ธ Run the Application

streamlit run app.py

๐ŸŒ Access

Open in browser:

http://localhost:8501

๐Ÿ“ Project Structure

FACTORY-GUARD-AI/
โ”‚
โ”œโ”€โ”€ app.py                # Streamlit application
โ”œโ”€โ”€ train_model.py       # Model training script
โ”œโ”€โ”€ requirements.txt     # Dependencies
โ”œโ”€โ”€ README.md            # Documentation
โ”œโ”€โ”€ screenshots/         # Project images
โ””โ”€โ”€ model.pkl            # Trained ML model

๐Ÿ“ˆ Results & Impact

  • Achieves high prediction accuracy (~98%)
  • Enables early detection of unsafe conditions
  • Reduces dependency on manual monitoring
  • Can significantly improve industrial safety compliance

๐Ÿ”ฎ Future Scope

  • ๐ŸŽฅ Integration with Computer Vision (CCTV monitoring)
  • ๐Ÿ“ก Real-time data streaming (IoT sensors)
  • ๐Ÿ“ฒ Alert system (SMS / Email / Dashboard notifications)
  • โ˜๏ธ Cloud deployment (AWS / Azure / GCP)
  • ๐Ÿค– Deep Learning models for complex pattern detection

๐Ÿงช Use Cases

  • Manufacturing Plants
  • Construction Sites
  • Chemical Industries
  • Smart Factories (Industry 4.0)

๐Ÿ‘จโ€๐Ÿ’ป Author

Mangasamudram Lokeswari

Data Science | Machine Learning | Generative AI Enthusiast

GitHub: https://github.com/Lokeswari3173


โญ Support

If you find this project useful:

  • โญ Star this repository
  • ๐Ÿด Fork it
  • ๐Ÿ“ข Share with others

๐Ÿ“œ License

This project is open-source and available under the MIT License.

out put screenshorts

Screenshot 2026-04-06 142351 - Copy Screenshot 2026-04-06 142340 Screenshot 2026-04-06 142326 Screenshot 2026-04-06 142233 Screenshot 2026-04-06 142219 Screenshot 2026-04-06 142206 Screenshot 2026-04-06 142157 Screenshot 2026-04-06 142141 Screenshot (22) Screenshot 2026-04-06 142131 Screenshot 2026-04-06 142107 Screenshot 2026-04-06 141946 Screenshot 2026-04-06 141859 Screenshot 2026-04-06 141926

About

Factory Guard AI is an intelligent surveillance and safety monitoring system that uses Artificial Intelligence to detect potential hazards in industrial environments. The system analyzes live video feeds using computer vision techniques to identify unsafe conditions such as missing safety gear, unauthorized access and abnormal activities inrealtime

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages