## Inspiration

Having struggled with depression in the past, we wanted to build a tool that could help people in that situation detect it early and give them the tools they need to get healthy again.

## What it does

Our Chrome extension uses Lexalytics' Semantria API to detect when our users have a bad day, and bombard them with cuteness when they do. Additionally, we can detect the early signs of depression and direct our users to our website that features a variety of ressources to help them.

## How we built it

We used a Chrome extension to track messages and web searches from a user, which would send data to Semantria API for lexical analysis. The returned sentiment value would be recorded and pooled over the course of the day/week/month to detect a person's negativity.

## Challenges we ran into

Having never worked with PyMongo before, connecting with and figuring out the queries for MongoDB was challenging. We had a hard time figuring out the logic behind compressing and filtering the raw data to predict a person's mood. We also had challenges integrating the Semantria API, and in the end we were only able to successfully install in on one of our computers. Luckily, that was enough for us to integrate it with our server and build the project successfully!

## Accomplishments that we're proud of

This was the first time for all of us building a Chrome extension and using Python/Flask as a back-end, so we're proud to have built something that actually runs smoothly!

## What we learned

We learned just how powerful the Semantria API actually is when it comes to sentiment analysis, giving us a sentiment score precise to the hundredth of a unit. We also learned a lot about building a Python back-end and connecting it to a Mongo database.

## What's next for LemonAid

Given the ressources, we plan on adding additional metrics to help detect the early symptoms of depression, such as tracking time spent on social media or the amount of Facebook conversations our users engage in, both of which are directly correlated to depression. We would also like to use these tools with the Semantria API to help detect other mental illnesses such as bipolar and anxiety disorder.
# Mental-Health-Tracker

## Mental & Emotional Health Diary

This project was made because we all know how much of a pressing issue that mental health and depression can have not only on ourselves, but thousands of other students. Our goal was to make something where someone could have the chance to accurately assess and track their own mental health using the tools that Google has made available to access. We wanted the person to be able to openly express their feelings towards the diary for their own personal benefit. Along the way, we learned about using Google's Natural Language processor, developing using Android Studio, as well as deploying an app using Google's App Engine with a `node.js` framework. Those last two parts turned out to be the greatest challenges. Android Studio was a challenge as one of our developers had not used Java for a long time, nor had he ever developed using `.xml`. He was pushed to learn a lot about the program in a limited amount of time. The greatest challenge, however, was deploying the app using Google App Engine. This tool is extremely useful, and was made to seem that it would be easy to use, but we struggled to implement it using `node.js`. Issues arose with errors involving `favicon.ico` and `index.js`. It took us hours to resolve this issue and we were very discouraged, but we pushed though. After all, we had everything else - we knew we could push through this.

The end product involves and app in which the user signs in using their google account. It opens to the home page, where the user is prompted to answer four question relating to their mental health for the day, and then rate themselves on a scale of 1-10 in terms of their happiness for the day. After this is finished, the user is given their mental health score, along with an encouraging message tagged with a cute picture. After this, the user has the option to view a graph of their mental health and happiness statistics to see how they progressed over the past week, or else a calendar option to see their happiness scores and specific answers for any day of the year.

Overall, we are very happy with how this turned out. We even have ideas for how we could do more, as we know there is always room to improve!
## Inspiration

Helping people with eating disorders. ( Approximately 1/10 people suffer from one at some point in their lives!)

## What it does

We wanted to help people be more consistent with their eating habits and gamify their nutritional goals.
In our app, the user is responsible for taking care of their pet. The pet has a bar that decreases when the user misses meals, making the pet sad or hungry.
The user needs to upload an image to confirm that they have eaten an adequate meal on time.

## How we built it

We used React to create a frontend and express to set up a backend server. The client makes a request whenever an image is submitted and the API is used to determine whether or not the image contains food.

## Challenges we ran into

API was not compatible with ES6 so we had to move to React and use Node.js.
Implementing LogMeal API.
Several front end visual issues.
Countdown issues regarding time and resets.

## Accomplishments that we're proud of

Interactive and appealing frontend, with smooth transitions.
Group members quickly learned JS, html, CSS as needed for the project.
Completion of a viable project within the given time.
Having fun at workshops (Cup Stacking Champions that can also handle HOT WINGS).

## What we learned

How to use react.
Why ES6 doesn't work with certain API's.
How to implement an API that uses AI recognition.
How to smooth out transitions in CSS.
How to bring a web app from conception to completion as a team.
Mentors are homies <3

## What's next for HTN Food

Accessories through the coins system (in-game shop)
Implementation for ppl trying to lose weight rather than eat more
Analyze nutritional value
Pet customization (animal and name)