Skip to content

Divjot121/SOS-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 SOS AI for Mental and Disabled Person

SOS AI is an advanced mental health assistant designed to provide compassionate support and helpful resources to people dealing with mental health challenges and disabilities. Built with advanced AI, the assistant leverages Google’s Gemini Pro model, natural language processing (NLP), and multilingual support to deliver personalized care, coping strategies, and emergency assistance when needed.

🚀 Features

  • Emotion Detection: The AI assistant can detect a range of emotions such as sadness, happiness, anger, fear, and loneliness based on user input.
  • Sentiment Analysis: Using TextBlob, the assistant can analyze the user's sentiment to determine how positive or negative they are feeling.
  • Personalized Coping Strategies: Depending on the user's emotions and inputs, the assistant provides personalized strategies to help users manage stress, anxiety, low self-esteem, and more.
  • Real-Time Crisis Support: In critical situations, the assistant immediately offers emergency contact information for mental health helplines.
  • Multilingual Support: The assistant supports multiple languages and can seamlessly translate user input, ensuring accessibility for a wider audience.
  • Mood Tracking and Analytics: Tracks emotional trends over time to help users understand their mental health progression and provide timely interventions.
  • Gemini Pro Integration: Leveraging Google's cutting-edge Gemini Pro model for generating thoughtful and empathetic AI responses.

🌟 Key Functionalities

1. Emotion and Sentiment Detection

The assistant can detect specific emotions and analyze the overall sentiment of a user's input to understand their mental state.

2. Coping Strategies

  • Personalized suggestions to manage mental health challenges.
  • Categories include:
    • Stress
    • Anxiety
    • Low Self-Esteem
    • Loneliness
  • Offers guided techniques like breathing exercises, mindfulness practices, and journaling prompts.

3. Emergency Support

In cases of critical emotional distress, SOS AI offers immediate access to helplines, including:

  • AASRA
  • Vandrevala Foundation
  • iCall
  • NIMHANS
  • Sneha Foundation

4. Multilingual Translation

  • Detects user language and translates responses using Google Translator.
  • Supports real-time translation to ensure accessibility for non-English speakers.

5. Personalization and Mood Tracking

  • Tracks user interactions and trends in their emotional health.
  • Provides personalized recommendations based on trends and user history.

6. Gemini Pro Responses

  • Integrates Google’s Gemini Pro AI model to generate empathetic and well-thought-out responses tailored to the user's emotional state.

💻 Installation

To run the SOS AI project locally, follow these steps:

1. Clone the repository

git clone https://github.com/yourusername/SOS-AI.git
cd SOS-AI

2. Install dependencies

This project uses pip to manage dependencies.

pip install -r requirements.txt

3. Set up Google Gemini API

You will need a valid API key for Google’s Gemini Pro. Configure the API key by adding it to your environment:

export GOOGLE_API_KEY='your_api_key'

4. Run the application

python sos_ai.py

🛠️ Technology Stack

  • Google Gemini Pro: For generating empathetic and safe AI responses.
  • TextBlob: Sentiment analysis for understanding user emotions.
  • Google Translate API: Multilingual translation support.
  • Python: Core programming language.
  • Natural Language Processing (NLP): For emotion detection and sentiment analysis.

🤖 How It Works

  1. User Input: The user enters their thoughts or emotions.
  2. Emotion & Sentiment Analysis: The assistant analyzes the input, detecting emotions and determining the sentiment.
  3. Personalized Response: Based on detected emotions, the assistant generates a personalized response using Gemini Pro and suggests coping strategies.
  4. Emergency Handling: If critical distress is detected, the assistant provides helpline contacts for immediate assistance.
  5. Multilingual Support: Input is automatically translated if the user's language is detected as non-English.

📊 Emotional Trend Analysis

SOS AI keeps track of user emotional trends, such as stress, anxiety, or happiness, and provides insights on how frequently users experience specific emotions. Over time, this data can help users better understand their mental health and take proactive steps towards self-care.

📞 Emergency Contacts

If a user is in distress, SOS AI provides helplines they can call:

  • AASRA: +91-9820466726
  • Vandrevala Foundation: 1860-2662-345 or 1800-2333-330
  • iCall: +91 22-25521111
  • NIMHANS: 080-4611 0007
  • Sneha Foundation: 044-24640050

👥 Contribution

We welcome contributions to make SOS AI even better! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a pull request.

🔒 License

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


SOS AI is more than just a virtual assistant; it’s a supportive friend that helps users through their toughest moments by offering practical solutions, multilingual support, and real-time assistance. Together, we aim to make mental health care more accessible, empathetic, and effective.

Feel free to explore the code, suggest improvements, or join us on this mission to make a positive impact on mental health and disability support!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published