Skip to content

PyroGuardian is an end-to-end edge computing computer vision ecosystem designed for real-time fire detection, risk assessment, and emergency reporting. It integrates high-performance AI at the edge with a user-friendly cloud-connected dashboard.

Notifications You must be signed in to change notification settings

MohanKrishnaGR/PyroGuardian

Repository files navigation

PyroGuardian: Edge-AI Fire Detection & Monitoring Suite

License: MIT Python 3.10+ DeepStream 6.2+

Overview

PyroGuardian is an end-to-end computer vision ecosystem designed for real-time fire detection, risk assessment, and emergency reporting. It integrates high-performance AI at the edge with a user-friendly cloud-connected dashboard.

System Architecture

graph TD
    %% Actors
    User((Public User))
    Admin((Admin / Firefighter))

    %% Edge System (UAV / Fixed)
    subgraph Edge ["Edge Computing"]
        Source[Drone Camera] --> AI{AI Engine}
        AI -->|Baseline| YOLO["YOLOv5, ( MobileNetV2 -User Uploads classification)"]
        AI -->|Research| RT[RT-DETR]
        YOLO & RT --> Stream[Live Annotated Feed]
        YOLO & RT --> Logic[Severity & Analytics]
        Logic -->|High Risk| SNS[AWS SNS Alert]
        Logic -->|Telemetry| Data[Analytics & Evidence]
    end

    %% Cloud Infrastructure
    subgraph Cloud ["Management Platform"]
        Data ==>|HTTP POST| API[Node.js API]
        User -->|Manual Report| API
        API --> DB[(MongoDB)]
        DB --> Dash[Integrated Dashboard]
    end

    %% Integrated Communications
    SNS -.->|SMS / Email| Admin
    Stream ==>|RTSP| Admin
    Dash -->|Monitor & Control| Admin
Loading

🏆 Awards & Recognition


🚀 Key Performance Indicators

Metric Baseline (YOLOv5) Optimized (RT-DETR)
Inference Latency 250ms 33ms
Throughput 4 FPS 30 FPS
Precision FP32 FP16 / INT8
Edge Hardware Desktop CPU/GPU NVIDIA Jetson Nano

📁 Repository Structure

  • detection-engine/: Core AI modules optimized for Jetson.
    • core/: Alerting logic & AWS SNS/Twilio integration.
    • deployment/: DeepStream GStreamer pipelines.
    • training/: NVIDIA TAO specifications for RT-DETR.
    • data-engineering/: Dataset curation & augmentation tools.
    • research-baseline/: Original YOLOv5 reference implementation.
  • web-dashboard/: Full-stack Node.js reporting application.

🛠 Tech Stack

Edge AI (Detection Engine)

  • Platform: NVIDIA Jetson Nano
  • Pipeline: GStreamer (DeepStream SDK), Python bindings (pyds)
  • Models: RT-DETR (TensorRT Optimized), YOLOv5 (Baseline)
  • Tools: OpenCV, PyTorch

Web Dashboard (Control Plane)

  • Runtime: Node.js (v18), Express.js
  • Database: MongoDB, Mongoose ODM
  • Frontend: Vanilla JS, Leaflet.js, Chart.js
  • Security: Helmet, Rate-Limiting, Bcrypt

DevOps & Infrastructure

  • Containerization: Docker (Multi-stage, Non-root security)
  • CI/CD: GitHub Actions (Automated Testing & Linting)
  • Cloud: AWS SNS, Twilio

👩‍💻 Engineering Standards

This project adheres to production-grade software engineering practices:

  • CI/CD Pipeline: Automated testing for both Python and Node.js environments on every push.
  • Code Quality: Enforced via ruff, black (Python) and eslint, prettier (JavaScript).
  • Security: Hardened Docker containers, API rate limiting, and strict environment variable management.

📚 Documentation & Manual Setup

For component-specific details, development guides, and architecture deep-dives, please consult the respective documentation:


🚀 Quick Start (Golden Path)

The fastest way to spin up the entire PyroGuardian ecosystem (Dashboard + Database + Detection Engine) is via Docker Compose.

Prerequisites

1. Configure Environment

Create the necessary environment files from templates:

# Root environment (optional override)
cp detection-engine/.env.example detection-engine/.env
cp web-dashboard/.env.example web-dashboard/.env

2. Launch System

docker-compose up --build

3. Access Services


📖 Manual Developer Setup

If you prefer to run components individually for development, please refer to the specific installation guides:

  1. AI Engine: Follow the Detection Engine Setup.
  2. Web Dashboard: Follow the Dashboard Setup.

📜 Research & Methodology

This project implements a Targeted Augmentation strategy to handle high-occlusion fire scenarios (smoke, fog). By distilling knowledge from an 86.7M parameter RT-DETR model into a TensorRT-optimized engine, we achieve near-lossless accuracy at a 90% speed improvement on edge hardware.

About

PyroGuardian is an end-to-end edge computing computer vision ecosystem designed for real-time fire detection, risk assessment, and emergency reporting. It integrates high-performance AI at the edge with a user-friendly cloud-connected dashboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published