Code Monkey home page Code Monkey logo

depression_detection's Introduction

Depression_Detection

A deep learning project used to predict the level of depression faced by users based on their responses to a questionnaire. Work is currently being done to incorporate a more passive approach, wherein the user's involvement in the depression detection would be minimal, and more effective in practise. We plan to make this a widely available mobile application, developed on Flutter that can address a wide range of design issues such as privacy, reliability and efficiency.

Data

The data used for this project was obtained from the DAIC-WOZ interviews conducted by the University of Southern California. http://dcapswoz.ict.usc.edu/

Our project mainly focuses on analyzing the textual transcripts offered by the database. These transcripts contain the interactions between the participants and a virtual agent called "Ellie". This agent is controlled by an interviewer outside of the room under consideration. The questionnaire asked by the interviewers is based on the Patient Health Questionnaire (PHQ) list of questions, and are asked fairly dynamically, and change according to the responses of the user.

Baselines

DL4DED: Deep Learning for Depressive Episode Detection on Mobile Devices by Afef Mdhaffar et al.
Approach: On device ML audio processing using CNN (spectrograms) and LSTM multimodal architecture.
Accuracy: 52%
Power Consumption: 5 mAh*
Privacy: ensured, no user data transmitted to servers

*depending on the phone specifications
https://link.springer.com/chapter/10.1007/978-3-030-32785-9_10

Preprocessing

  1. The answers provided by participants are subjected to removal of stopwords and optionally stemming/lemmatization, and converted into a list of words.
  2. Tokenization of words is done, after collecting the entire vocabulary of all words used in the answers.
  3. The list of words thus obtained is split into several lists by using a sliding window of size 10.
  4. For lists (after windowing) that have lower than 10 words, the corresponding tokens list is padded with zeros.
  5. We use GloVe embeddings for our model, specifically the embeddings characterized by 6 billion tokens, 400k vocabulary of words and 100 dimensional vectors. A 2-D array is formed that stores the vectors for every word in the answers vocabulary (after removing stopwords).

Model Architecture

Hyperparameters

Window Size: 10
Epochs: 30, with Early Stopping Criterion - monitoring on Validation Loss
Batch Size: 64
Optimizer: Adam
Loss: Categorical Cross Entropy

Results

Validation Accuracy goes upto 98%:

Validation Accuracy goes upto 98%\

Categorical Crossentropy Loss Curve:

Categorical Crossentropy Loss Curve

depression_detection's People

Contributors

prahlad-k avatar

Stargazers

Samarjit Karmakar avatar

Watchers

James Cloos avatar  avatar Raouf Nechmi 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.