Skip to content

harshitworkmain/trident

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TRIDENT Logo

TRIDENT - Integrated Disaster Response & Rescue Ecosystem

License: MIT Python 3.7+ Flask PlatformIO

This is an integrated disaster rescue ecosystem that enables real-time situational awareness, predictive risk analysis, and priority classification. It combines a multi-sensor wearable (ESP32, MAX30102, GSR, MPU6050, NEO-6M GPS, buzzer) and an underwater ROV (Arduino Uno, 4x thrusters, LiPo) with an AI-powered Flask central orchestrator.

๐ŸŽฅ Demonstration

Watch the multi-functional health & safety wearable in action:

(Note: Video playback might require viewing on standard GitHub web. A direct download or raw viewing might be necessary depending on your device.)

๐Ÿ—๏ธ System Architecture

System Architecture TRIDENT Infographic

TRIDENT operates across three integrated layers:

๐Ÿ“ฑ Smart Wearable (Edge Layer)

Wearable Infographic

  • ESP32-based embedded firmware with multi-sensor integration
  • Real-time vital signs, motion, and GPS monitoring
  • Edge-based emergency detection and alert generation

๐Ÿ–ฅ๏ธ Central Command Dashboard (Decision Layer)

Command Dashboard

  • Web-based emergency response coordination interface
  • AI-powered priority classification and resource allocation
  • Real-time visualization of incidents and response teams

Live Telemetry Data Feed: Live Telemetry

๐Ÿš Autonomous ROV (Action Layer)

  • Remote-controlled deployment system for emergency scenarios
  • Sensor integration for environmental assessment
  • Automated navigation to high-priority locations

๐Ÿ› ๏ธ Hardware Engineering & Design

Wearable Component

The wearable hardware was designed meticulously integrating multiple bio-sensors and embedded modules.

CAD Flythrough:

Autonomous ROV

The underwater ROV undergoes rigorous fluid dynamics analysis to ensure stability under water currents.

ROV Field Deployment:

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.7+
  • Node.js 14+ (for frontend development)
  • PlatformIO (for firmware development)
  • Qt6 (for ROV control station)

Installation

  1. Clone the repository

    git clone <repository-url>
    cd trident
  2. Install Python dependencies

    pip install -r requirements.txt
  3. Set up configuration

    cp config/development.env.example config/development.env
    # Edit config/development.env with your settings
  4. Initialize database

    python scripts/development/database_reset.py
  5. Start the backend server

    python src/backend/main.py
  6. Access the dashboard

    • Open browser to http://localhost:5000
    • Navigate to /admin for dashboard access

๐Ÿ“ Project Structure

trident/
โ”œโ”€โ”€ src/                     # Source code
โ”‚   โ”œโ”€โ”€ firmware/           # ESP32 embedded firmware
โ”‚   โ”œโ”€โ”€ backend/            # Flask API server
โ”‚   โ”œโ”€โ”€ ml/                 # Machine learning models
โ”‚   โ”œโ”€โ”€ rov/                # ROV control system
โ”‚   โ””โ”€โ”€ frontend/           # Web interface
โ”œโ”€โ”€ data/                   # Data files and models
โ”œโ”€โ”€ docs/                   # Documentation
โ”œโ”€โ”€ scripts/                # Utility scripts
โ”œโ”€โ”€ assets/                 # Static resources (Images, Videos, CADs)
โ””โ”€โ”€ config/                 # Configuration files

๐Ÿ”ง Development Setup

Backend Development

# Start development server
python src/backend/main.py

# Run tests
python -m pytest src/backend/tests/

# Database operations
python scripts/development/database_reset.py
python scripts/development/add_sample_data.py

Firmware Development

# Flash ESP32
cd src/firmware
pio run --target upload

# Monitor serial output
pio device monitor

Frontend Development

# Serve static files (development)
python -m http.server 8080 --directory src/frontend/static

ROV Control

# Launch ROV control station
python src/rov/communication/serial_interface.py

๐Ÿง  Machine Learning Components

Weather Prediction

  • LSTM-based temperature forecasting
  • Historical weather data analysis
  • Real-time prediction API

Risk Analysis

  • Graph-based risk propagation modeling
  • Flood network analysis
  • Storm path prediction
  • Geospatial risk zone mapping

๐Ÿ“Š Key Features

Emergency Detection

  • Fall Detection: MPU6050 accelerometer analysis
  • Vital Signs Monitoring: MAX30102 heart rate and SpO2
  • Stress Assessment: GSR sensor integration
  • Location Tracking: GPS with geofencing

Priority Classification

  • Automated severity scoring
  • Multi-factor consideration (injuries, vulnerable populations)
  • Resource availability optimization
  • Real-time priority updates

Response Coordination

  • Team assignment and notification
  • Status tracking and updates
  • Resource deployment optimization
  • Analytics and reporting

๐Ÿš€ Deployment

Development Environment

# Start all services
docker-compose up -d

Production Deployment

# Using scripts
./scripts/deployment/start_app.sh

# Manual deployment
gunicorn -w 4 -b 0.0.0.0:5000 src.backend.main:app

๐Ÿงช Testing

Backend Tests

# Run all tests
python -m pytest src/backend/tests/

# Specific test categories
python -m pytest src/backend/tests/test_api.py
python -m pytest src/backend/tests/test_priority_system.py

ROV Integration Tests

python src/rov/tests/test_rov_integration.py
python src/rov/tests/test_rov_deployment.py

๐Ÿ“– Documentation

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ†˜ Emergency Contacts

  • General Emergency: 100
  • Fire Department: 101
  • Medical Emergency: 108
  • Disaster Management: 108

๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Meet the Team

Team Photo

๐Ÿ”ฎ Future Enhancements

  • Mobile Applications: iOS and Android apps for field operations
  • Advanced AI Integration: Deep learning for emergency prediction
  • IoT Sensor Network: Expanded environmental monitoring
  • Blockchain Integration: Secure emergency records
  • Multi-language Support: Localization for global deployment

โš ๏ธ Important: This is an emergency response system. In case of real emergencies, always contact local emergency services directly using the numbers provided above.

๐Ÿ›ก๏ธ TRIDENT - Your Shield in Times of Crisis

About

This is an integrated disaster rescue ecosystem for real-time situational awareness and priority classification. It integrates edge wearable telemetry (ESP32, MAX30102, GSR, MPU6050, NEO-6M GPS) and an underwater action ROV (Arduino Uno, 4x thrusters, LiPo) with an AI-powered Flask central dashboard acting as the main orchestrator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors