SafeGuardianAI

Decentralized AI-Driven Disaster Response Assistant

License: GPL 3.0 Python 3.8+ Spaces Streamlit App

🌟 Overview

SafeGuardianAI is an innovative emergency response platform that harnesses the power of artificial intelligence to provide critical support during catastrophic events. By seamlessly integrating real-time data analysis, offline capabilities, and community-driven support, SafeGuardianAI bridges the gap between individuals, communities, and emergency services, ensuring a more coordinated and effective response to disasters.

SafeGuardian_short.mp4

πŸš€ Key Features

  • πŸ’¬ AI-Powered Chat Interface: Interact with GuardianAI for personalized emergency assistance and real-time guidance.
  • πŸŽ™οΈ Multi-Modal Activation: Trigger emergency mode via text, voice commands, or automatic motion detection for hands-free operation.
  • πŸ‘€ Smart User Profiles: Store vital information securely for quick access during emergencies, including medical history and emergency contacts.
  • πŸ“± Offline Functionality: Access critical guides and emergency procedures without an internet connection, ensuring help is always available.
  • 🧠 Real-time Situation Assessment: Receive tailored responses and advice based on AI analysis of current conditions and user input.
  • 🀝 Community Coordination: Facilitate local collaboration during large-scale events, connecting neighbors and organizing grassroots relief efforts.
  • πŸ—ΊοΈ Resource Management: Locate and manage emergency services, shelters, and supplies with an interactive, real-time updated map.
  • πŸ“Š Data-Driven Insights: Collect anonymous data to improve future disaster responses and enhance predictive capabilities.
  • 🌐 Multi-lingual Support: Communicate effectively in multiple languages to assist diverse populations.
  • πŸ”‹ Power-Efficient Design: Optimized for long battery life to remain operational during extended power outages.

πŸ–ΌοΈ Screenshots

UI Screenshot Priority Mapping Optimized Path

πŸ› οΈ Tech Stack

  • Frontend: Streamlit - for rapid development of interactive web applications
  • Backend: Python - leveraging its rich ecosystem of data science and AI libraries
  • Database: MongoDB Realtime Database - for real-time data synchronization and offline support
  • AI/ML: Google's Generative AI (Gemini) - powering intelligent conversations and decision-making
  • Geolocation: Custom WiFi & IP-based tracking - for accurate location services even in challenging environments
  • Text-to-Speech: ElevenLabs API - providing natural-sounding voice interactions
  • Mapping: KeplerGL - for advanced geospatial visualizations
  • Path Optimization: NVIDIA cuOpt - for efficient resource allocation and routing

πŸš€ Quick Start

Live Demo

  1. Clone the repository:
    git clone https://github.com/Ashoka74/SafeGuardian-LLM.git
    cd SafeGuardian-LLM
  2. Install dependencies:
    pip install -r requirements.txt
  3. Set up environment variables: Create a .env file in the project root with the following content:
    
         gemini_api = ''
         elevenlabs_api = ''
    
  4. Run the application:
    streamlit run app.py

πŸ› οΈ Usage Guide

  1. Initial Setup:
    • Launch the app and grant necessary permissions (location, microphone, notifications).
    • Create a user profile with essential information (medical conditions, emergency contacts).
  2. Emergency Activation:
    • Use the chat interface, voice command, or automatic detection to activate emergency mode.
    • Provide details about your situation or immediate needs.
  3. AI Assistance:
    • Follow the AI assistant's guidance for emergency procedures and safety protocols.
    • Receive personalized advice based on your profile and current situation.
  4. Resource Location:
    • Use the interactive map to locate nearby resources, safe zones, and emergency services.
    • Get real-time updates on the availability and status of these resources.
  5. Community Coordination:
    • Connect with nearby users to coordinate local response efforts.
    • Share and request resources within your community network.
  6. Offline Mode:
    • Access critical information and basic functionality even without an internet connection.
    • Sync data automatically when connectivity is restored.
  7. Continuous Updates:
    • Stay informed with real-time updates on the evolving situation.
    • Receive push notifications for critical alerts and changes in your area.

🌍 Future Roadmap

  1. Pilot Testing (Q3 2024):
    • Roll out SafeGuardianAI in high-risk areas to gather user feedback and refine features.
    • Collaborate with local emergency response teams for real-world testing.
  2. Government Integration (Q4 2024):
    • Establish partnerships with public safety agencies to integrate SafeGuardianAI into existing emergency response frameworks.
    • Develop secure data-sharing protocols to enhance coordination between users and official responders.
  3. Advanced AI Capabilities (Q1 2025):
    • Implement machine learning models for predictive analytics on disaster patterns and resource needs.
    • Enhance natural language processing to improve multi-lingual support and context understanding.
  4. Global Language Expansion (Q2 2025):
    • Extend language support to cover 95% of global languages, including regional dialects.
    • Implement real-time translation features for cross-language communication during international relief efforts.
  5. Wearable Integration (Q3 2025):
    • Develop APIs for smartwatch and fitness tracker integration to monitor vital signs and detect emergencies automatically.
    • Create a dedicated SafeGuardianAI wearable device for enhanced tracking and communication in disaster zones.
  6. Community Resilience Features (Q4 2025):
    • Implement a community preparedness score and gamification elements to encourage proactive disaster readiness.
    • Develop tools for community leaders to manage and coordinate larger groups during extended crisis periods.
  7. Scalability Enhancements (Ongoing):
    • Continuously optimize backend infrastructure to support millions of concurrent users.
    • Implement edge computing solutions for faster response times and reduced server load.

🀝 Contributing

We welcome contributions to SafeGuardianAI! Whether you're fixing bugs, adding new features, or improving documentation, your help is appreciated. Please follow these steps to contribute:

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

For major changes, please open an issue first to discuss what you would like to change. Please ensure to update tests as appropriate and adhere to the Contributor Covenant code of conduct.

πŸ“„ License

This project is licensed under the GNU General Public License- see the LICENSE.md file for details.

πŸ™ Acknowledgments

  • Thanks to all the open-source projects that made SafeGuardianAI possible.
  • Special thanks to our early adopters and beta testers for their valuable feedback.
  • We're grateful to the emergency response professionals who provided insights into real-world disaster management challenges.

Made with ❀️ by the SafeGuardianAI Team