Domain - getsanity.tech
Inspiration 🤖
About one person in 5,000–15,000 dies by suicide every year. Mental health is often neglected by the people and is not taken seriously by society as well. Amidst all the awareness about keeping your mind healthy, we tend to forget how important it is to keep our minds healthy. This is a simple initiative to spread awareness, educate people about their mental health conditions, and gives insight to people about their mental status.
What it does 😎
GetSanity is a web app that informs users about their Mental Health status by asking a simple question. If the user's mental health is POSITIVE, we will render a playlist to keep their mood up. If the user's mood is NEGATIVE, a survey form will be displayed to get detailed insights about the user. And then their exact disorder will be displayed.
How we built it 🧑💻
We built the backend using Flask, and the frontend using ReactJS, TailwindCSS, Material UI and Auth0
We implemented the Auth0 authentication system to sign in the user. We have used Komprehend AI's Emotional Analysis API that processes the initial answer by the user and returns the output from
POSITIVE, NEGATIVE, OR NEUTRALto the React frontendWe have made a KNN model which after the survey, predicts the user's Disorder as Anxiety, Loneliness, Depressed, Normal, or Stress.
We also used NewsApi and ParallelDots API to help build our application
Challenges we ran into 🔨
- It took a lot of time to figure out how to integrate the React frontend with the Flask backend
- We also had to dig up the docs for Tailwind CSS, Material UI and Auth0 for implementing them in the app
- Since the KNN model was built in a Jupyter notebook, we had to import the model into our web app, and to make it work in real-time was quite a challenge.
- We also were working with Auth0 for the first time and we were glad to have implemented its functionality in the app
Accomplishments that we're proud of 🥳
We are really proud that we delivered a fully functional web app with multiple features in a small amount of time.
- Integrating Flask with React backend is something we are really proud of as it took a lot of reading blogs and debugging.
- We are proud of having a fully functioning ML model running asynchronously with a React app and calling APIs as well
- We were a team of two so, we had to stay up full nights to complete this project and we are glad to have completed the project that we thought of at the start
What we learned 🙌
- We learned how to integrate Flask with React, make and process API calls, and implement Auth0 authentication.
- We also learned how to integrate an ML model into a React website
- It was our first time building ML models as well so that took up a lot of our time during the hackathon
What's next for GetSanity 👀
Due to time constraints, we were unable to add some features to the app and make up for a better UI experience. We also added a Chat with Marvin bot which uses OpenAI to talk to users and cheer them up if they are feeling sad. We would want to work on that feature of the app as well!
Built With
- api
- auth0
- flask
- material-ui
- react
- scikit-learn
- tailwind


Log in or sign up for Devpost to join the conversation.