Skip to content

An Android app that uses machine learning to analyze system-wide typed text and provide real-time insights into the user's emotional state, which can also alert an emergency contact if it detects potential suicidal risk.

Notifications You must be signed in to change notification settings

chamajay/deepsense

Repository files navigation

AI Powered Mood, Depression and Suicidal Text Patterns Detection on Android

Android Kotlin

DeepSense is an Android application that utilizes two machine learning models to analyze system-wide typed text to accurately determine the user's emotional state. The app uses an accessibility service to capture text input across the system, enabling it to provide insights into the user's mood and mental state in real-time and to notify an emergency contact if it detects the user is at risk of suicide.

Screenshots


Features

  • Text capture: Capture typed text in popular chat apps (WhatsApp, Telegram, Signal, Slack) and web browsers (Firefox, Chrome, Bromite) to analyze the user's mood and mental health.

  • Mood detection: Use machine learning models to identify the user's mood based on the typed text.

  • Mood analysis: Calculate the average mood percentages, mood status, and all emotions in a typed text to provide a comprehensive analysis.

  • Mental health assessment: Based on the predicted results, determine the user's current mental health condition and provide recommendations for improvement.

  • Emergency response: If suicidal text patterns are detected, the app will send an emergency SMS to the saved emergency contact, providing immediate support and assistance.

  • User authentication: Seamless authentication using One Tap Google Log in and Firebase to provide a secure and personalized experience for the user.

  • Material 3: App uses the latest material design system from Google, offering a modern and intuitive user interface that enhances usability and user experience.

Installation and Usage

  1. Setup the local backend server: https://github.com/chamajay/deepsense-backend

  2. Clone the repository:

    git clone https://github.com/chamajay/deepsense.git
    
  3. Change the BASE_URL constant inside Constants.kt file to include the local server address.

  4. Build the application from source:

    ./gradlew assembleDebug
    
  5. Install and run the application.

Contributors

About

An Android app that uses machine learning to analyze system-wide typed text and provide real-time insights into the user's emotional state, which can also alert an emergency contact if it detects potential suicidal risk.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages