Skip to content

The Suicidal Ideation Detection project uses machine learning and NLP to analyze text data and identify suicidal thoughts, while also detecting sarcasm for more accurate results. It aims to enhance mental health monitoring and support through automated detection.

License

Notifications You must be signed in to change notification settings

Prachit99/Suicidal-Ideation-Detection-using-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suicidal Ideation Detection

Overview

The Suicidal Ideation Detection project is designed to identify and assess suicidal thoughts from social media posts. Utilizing advanced natural language processing (NLP) techniques, this project leverages a fine-tuned LSTM model based on BERT from TensorFlow Hub to analyze text data. The model achieves an impressive 97% accuracy and performs well on false negatives, ensuring reliable detection.

Background

Suicidal ideation is a critical issue that can be identified through social media activity. This project aims to create a safer online environment by detecting signs of suicidal thoughts in social media posts. Data is collected from Reddit, Twitter, and Tumblr using their respective APIs and is annotated by our team. The backend functionality is showcased using Django, with potential to expand the system as an API or integrate it into a Chrome extension. This model could also be adopted by social media platforms to enhance user safety.

Features

  • High Accuracy Detection: Leveraging an LSTM-based model fine-tuned with BERT for precise suicidal ideation detection.
  • Data Collection: Utilizes Reddit, Twitter, and Tumblr APIs for comprehensive social media data.
  • Backend Implementation: Showcased through a Django application, with potential to expose as an API or integrate into other platforms.
  • Future Integration: Possibility to develop a Chrome extension or integrate into social media platforms for enhanced safety.

How to Run

  1. Clone the Repository:
git clone https://github.com/yourusername/suicidal-ideation-detection.git
cd suicidal-ideation-detection
  1. Create and Activate a Virtual Environment:
python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install Dependencies:
pip install -r requirements.txt
  1. Run Migrations:
python manage.py migrate
  1. Start the Django Development Server:
python manage.py runserver
  1. Access the Application: Open your web browser and navigate to Localhost to view the Django application.

Usage

  • Backend Functionality: The model processes social media posts to identify potential suicidal ideation.
  • API Exposure: Future developments may include exposing the functionality as an API for integration.
  • Chrome Extension: Plans to create a Chrome extension for real-time analysis of social media posts.

Contributing

Contributions to this project are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Contributors


Prachit Mhalgi

Riddhi Doshi


Athmika Hebbar


Aditi Bhagwat

About

The Suicidal Ideation Detection project uses machine learning and NLP to analyze text data and identify suicidal thoughts, while also detecting sarcasm for more accurate results. It aims to enhance mental health monitoring and support through automated detection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •