Obesity is one of the deadliest killers in society today. About 1.9 billion people over the age of 18 are overweight: 1/4 of the entire planet and 650 million people out of that 1.9 billion being obese. Obesity alone causes 2.8 million deaths every year. It is safe to say that obesity is one of the most common killers of today, and is overlooked heavily by people. We sought to facilitate weight loss and encourage healthy living by creating a product that encourages you to be mindful of your daily activity. During the lockdown, people are more sedentary than ever. LitFit aims to eliminate a sedentary lifestyle and encourages users to adopt a healthier lifestyle.

What it does

Our app has multiple features that all are geared toward adopting a healthier lifestyle, whether it be through increased exercise or better eating habits. Our app tracks your movements and exercise using Step tracker, which tracks your daily, weekly, and total steps. Total steps are then translated into Exercise points, which earn you achievements, giving the user a sense of accomplishment, motivating them to live even healthier and be more active. The Calorie Calculator utilizes a novel Machine Learning algorithm to detect the food calories as well as the type of food given an image, which is uploaded by the user. The Health tab tracks your pulse and oxygen percent saturation, as well as gives you tips on how to live a more active lifestyle: the three golden rules of LitFit. We also provide useful resources on quick workouts that the users can quickly jump. All of these features contribute to an amazing application that promotes healthy living.

How we built it

We build the front end entirely out of flutter, a multiplatform mobile application SDK.

The hardware base for this project is an M5StickC microcontroller. The M5StickC has an ESP32 as its base with an in-built 6 axis IMU sensor. The IMU takes the accelerometer and gyroscope reading which are then used to calculate the number of steps taken by a user. External hardware plugins were also used to gather surrounding data. These sensors provide us with ambient temperature (outside temperature), Ambient Humidity, Ambient air pressure, and heart rate (pulse). All the reading from the wearable device are then relayed to an open-source mobile app giving the user a real-time data with a user-friendly interface

The backend servers are implemented as APIs running on a virtual server and using MongoDB as the primary database.

Challenges we ran into

One challenge we ran into was uploading the image onto a server. James, the frontend designer, had trouble figuring out how to stream the data back from the output of the backend into the UI asynchronously, however, he figured it out after a few hours of trial and error.

M5StickC is a 2019 product, there is little to no online support for troubleshooting. Working with such new hardware and navigating through its library to get useful functionality out was a huge challenge.

Accomplishments that we're proud of

We are proud to actually accomplish what we set out to do in the beginning. Our initial goals were to build the ML algorithm for calorie detection and track steps, heart rate, and blood oxygen. However, we went above and beyond our initial goals through hard work and implemented further capabilities, such as the achievements page, login, additional resources, inspirational quotes, and more. Linking up the hardware with the software felt amazing because it seemed like everything was clicking into place.

What we learned

I learned a lot about how servers communicate with clients. I learned how to use HTTP get and post requests, as well as sending images to a server in a multipart server request. I also learned how to create a better and simple UI for a better UX. - James

What's next for Lit Fit

We hope to develop LitFit further to be more lightweight, as well as polish the Front-end and add more features. Some of the features are not fully functional, such as Login and achievements, but those features can be implemented with more time. We believe LitFit can actually be a revolutionary weight-loss miracle product and hope to pursue that goal of promoting a healthy lifestyle.

Share this project: