Skip to content

Akshayk1129/trident

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TRIDENT - Integrated Disaster Response & Rescue Ecosystem

License: MIT Python 3.7+ Flask PlatformIO

A comprehensive, modular disaster response ecosystem designed to improve situational awareness, rescue prioritization, and response speed during flood and water-related emergencies.

๐Ÿ—๏ธ System Architecture

TRIDENT operates across three integrated layers:

๐Ÿ“ฑ Smart Wearable (Edge Layer)

  • 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)

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

๐Ÿš Autonomous ROV (Action Layer)

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

๐Ÿš€ 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
โ””โ”€โ”€ 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

๐Ÿ”ฎ 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 41.6%
  • HTML 38.2%
  • JavaScript 8.9%
  • C++ 5.5%
  • CSS 5.2%
  • Batchfile 0.3%
  • Shell 0.3%