Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 3.65 KB

README.md

File metadata and controls

85 lines (53 loc) · 3.65 KB

Streamlit-with-Snowflake

MentalMuse : AI FOR MENTAL HEALTH

By Samuel Waweru


TABLE OF CONTENT

  • About the Project
  • Technology Used
  • Importance
  • Prerequisites
  • License
  • How to Contribute to the Project

About the Project

github1

This is an AI powered app that uses NLP to assess the mental state of a user an then uses data stored in Snowflake database i.e Location of Psychologists and Psychiatrists within their county. it utilizes Snowflake snowpark python ,to connect the streamlit app with the database and nlp-bert-base-multilingual-uncased-sentiment algorithm to determine the polarity of the user.

How does it work ;

Once the user has accessed the MentalMuse app , he/she answers questions in a questionnaire. Each question carries its own weight, depending on the relevance of the question in determining the mental state of the individual. Once the polarity of the answer they have given is predicted , it is then multiplied by the weight. This technique improves the accuracy of the prediction i.e. degree of their mental state.

image image

The percentage stress level is output and then queried into the database and the solution based on it is given. Awesome , Right 😉! The app also asks the location of the user and then from the database gets the address location of a psychaitrist/psychologists near them.

image


Technology Used

  • STREAMLIT

I have utilized this framework to run MentalMuse. It was fun using it 😄 It is very easy to use.

image

  • Snowflake

I have utilized this cloud platform to create my database and tables containing the Psychologist Office Location , Reviews and the advise they offer dapending on the level of depression and stress generated.

image image

  • Natural Language Processing

For this part , I have utilzed the bert-base-multilingual-uncased-sentiment to carry out the classification of the users input. It is finetuned for sentiment analysis on feedback in six languages: English, Dutch, German, French, Spanish and Italian. It predicts the sentiment of the the input as a number of stars (between 1 and 5).

1 - Very Negative

5- very Positive


Importance

The importance of MentalMuse is to help people get advice on how to tackle their mental health issues which are on the rise because of many reasons. According to the World health Organization , one in every 4 people suffer from Mental Health illness. Prevention and early intervention are key to promoting mental health and preventing the development of mental health conditions.


Prerequisites

From the requirement.txt;

  • streamlit
  • transformers==4.12.5
  • torch==1.10.0
  • bs4==0.0.1
  • snowflake-snowpark-python
  • Python 3.8

License

License: MIT