Giter Club home page Giter Club logo

detecting-depression-with-a-flask-application's Introduction

Detecting Depression with a Flask Application

The mental health of young adults and teenagers proves to be vitalfor having a flourishing life. Neglecting the issue of mental health can lead toanxiety, stress, and depression. These problems need to be addressed in theearly stages to ensure better mental health for young adults. This paper pro-vides a comprehensive study by leveraging natural language processing anddeep learning techniques to detect depression by examining the relationshipbetween language usage and the psychological characteristics of the commu-nicator. A private dataset DAIC-WOZ has been used to predict the levelsof depression. It includes audio, video, and textual information from 189 in-terviews. This paper focuses on the textual analysis of detecting depressionfrom transcripts of the interviews conducted by an animated virtual inter-viewer. Due to the disadvantages faced by the context independent nature ofGloVe embeddings, the proposed approach uses transfer learning techniquessuch as ELMo, ULMFit, and BERT for predicting depression severity fromtranscripts. Furthermore, a Python Web application has been deployed toidentify negative sentiments and depression severity from sentences inputtedfrom the user. The proposed approach uses an ensemble learning methodfor the application to provide better predictions for classifying the texts intolevels of depression. Hence, the inferences made in this paper can be extrap-olated to other all demographics around the world to help detect depressionin textual data as the algorithms and techniques used are all-encompassing.

Check this article for more detailed explanations

Model Achitecture

Flask is a web framework for the programming language python, whichmeans it offers features to create web applications, including handling HTTPrequests and creating templates. The Python Flask framework has beendeployed to identify emotions and recognize the level of depression from auser input sentence. According to Figure 11, the pre-processed tokenizedwords are converted to word embeddings using the pretrained GloVe wordembeddings. The word embeddings are trained with each model to producepredictions which is then followed by ensemble averaging method to producebetter predictions. The ensemble predictions are then written into the Flaskserver and the predictions are outputted based on the user’s input.

Flask Application Architecture

Flask Application Screenshots

Level-0 No Symptoms

level1

Level-1 Mild Symptoms

level1

Level-2 Moderate Symptoms

level2

Level-4 Severe Symptoms

level4 level4

detecting-depression-with-a-flask-application's People

Contributors

srijha09 avatar

Stargazers

 avatar

Watchers

 avatar  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.