Giter Club home page Giter Club logo

depression-detector's Introduction

Depression-detector

Abstract

The past decade has witnessed rapid development in microblogging applications and the huge amount of information generated by them. This has led to a considerable amount of research focused on sentiment analysis applications. However, much of the research up to now do not concern with mental illness detection since it can be a complex task. The main aim of this study was to explore different approaches of machine learning to detect depression through Arabic tweets. Part of the aim of this research was to develop a website for depression detection. We have experimented with two approaches in this study: traditional machine learning and deep learning. There are six classifiers used in this study. We have built our dataset of 1058 tweets using Twitter API. The dataset was classified into depressed and not depressed tweets with the help of psychologists. We have experimented three well-known machine learning classifiers, namely support vector machine (SVM) and the variations of Naïve Bayes (NB), i.e. Bernoulli Naïve Bayes (BNB) and complement Naïve Bayes (CNB). For the feature extraction, we have used count vector, term frequencyinverse document frequency (TF-IDF), and N-gram (i.e. bigram, trigram). For the deep learning approach, we have experimented with two main classifiers, namely convolutional neural network (CNN) and recurrent neural network (RNN). The RNN algorithms are long short-term memory (LSTM) and bidirectional long short-term memory (BiLSTM). We have experimented with an ensemble model, combining the CNN and LSTM models. Since the neural networks cannot deal with tweets directly, we used one of the word embedding techniques called Word2vec for the vector representation. The results showed that BNB is the best out of the seven classifiers that we have experimented with, with an accuracy of 89.15%. Thus, BNB has been integrated into our depression detection website.

Functional requirements

Functional requirements provide a general idea about what the system should be able to do. The following describes the system's behavior from input to get the result:

  1. The user writes the Twitter account username.
  2. The user asks the system to detect whether he is depressed or not.
  3. The system fetches all tweets for the given username.
  4. The tweets will be analyzed based on our chosen model.
  5. The system displays the result (the depression percentage).

depression-detector's People

Contributors

alhuri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.