Skip to content

islamborghini/CalHacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caffeine Intake Recommender

image

Inspiration

The members are part of a working/studying community that tends to rely on caffeine to improve their performance and focus. Over the years, this community has been expanding, as the idea of drinking a coffee or energetic drink becomes a trending activity, fostering new types of beverages in the market and coffee shops. While caffeine benefits one's performance, people tend to overestimate the advantages and neglect caffeine's side effects. If consumed in the wrong amount or at the wrong time, caffeine can negatively affect productivity, causing fatigue, headaches, excessive anxiety, or poor sleep quality. Many community members have experienced these side effects without understanding the underlying cause, leading to frustration as they assumed caffeine would enhance their performance. Therefore, the team created the Caffeine Intake Advisor to help people consume caffeine effectively and healthily. Zepp's Smart Watch also contributes to the ideation process by collecting relevant biological data such as sleep quality and stress levels. The team is confident that the product will positively impact people's well-being.

What It Does

The Caffeine Intake Advisor app interacts directly with the user by asking about their caffeine beverage or food preference and their goal duration for the productive session. Based on the user's past biological responses to specific amounts of caffeine, real-time health metrics, and the time of day, the app recommends the optimal amount of caffeine.

Backend Process

To recommend the appropriate amount of caffeine, the app needs to know the user’s regular caffeine intake and their caffeine sensitivity. This data is collected and analyzed through the following steps:

  1. Initial Questionnaire: When the user creates an account, they answer questions about:

    • Serving size: Amount of caffeinated drinks and food consumed per day
    • Time: The usual time period when caffeine is consumed
    • Variability: Whether the serving size varies daily or is consistent
    • Duration of habit: How long the person has had this habit
  2. 5-Day Monitoring: The app monitors the user’s caffeine sensitivity based on real-time data:

    • Sleep patterns: Sleep and wake-up times, and the impact of caffeine intake on sleep
    • Stress level and heart rate: Baseline measurements and post-caffeine consumption measurements
  3. Recommendation: After determining the user’s regular caffeine intake and sensitivity, the app recommends the optimal caffeine amount using the formula:

    Caffeine Amount (mg) = Regular Caffeine Intake x Caffeine Sensitivity Factor x Study Duration x Time Gap Factor

How We Built It

We used Intel data to train an algorithm and MindsDB to connect the machine learning algorithm with our software. The process can be categorized into several components:

Research

We researched key factors affecting caffeine intake and performance, compiled data on caffeinated beverages and foods, and developed a table specifying caffeine amounts in different units.

UI/UX Design

We designed wireframes for the smartwatch, focusing on an easy and smooth user experience. We used Figma to visualize the UI/UX aspects and ensure intuitive navigation.

Algorithm Training

We used MindsDB pre-trained models to predict caffeine intake based on existing datasets and real-time user data. The algorithm derives the caffeine amount using the formula mentioned above.

Development

We implemented backend code in JavaScript, integrated with Zepp OS API and AutoGUI for smartwatch compatibility.

Challenges

We faced challenges in identifying key app features to maximize social impact within time and resource constraints. Limited access to real user datasets required extensive research and hypothesis testing.

Accomplishments

We successfully integrated software with hardware and developed a realistic solution despite initial constraints. We created approximate user datasets through research and applied insights to generate the necessary data.

What We Learned

We improved our ability to connect front-end and back-end components, enhanced critical thinking for effective data utilization, and honed problem-solving and communication skills.

What's Next

We aim to make the app more personalized by adding questionnaire features for individual factors such as age, medications, pregnancy, menstrual cycles, and caffeine preferences. We plan to integrate the app with other health and fitness apps, and add caffeine intake tracking features for AI assistants like Siri and Alexa.

Built With

JavaScript, MindsDB, Zepp OS, Figma

More Info:

Devpost

About

Calhacks 10.0 Winner Project - Watch-based Caffeine Intake Recommender

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors