Git Product home page Git Product logo

streamlit-with-snowflake's Introduction

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


streamlit-with-snowflake's People

Contributors

samkamau81 avatar

Stargazers

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