Skip to content

Commit

Permalink
Merge pull request #1 from AkshayM21/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
aakritil authored Feb 20, 2024
2 parents 1fc8967 + 6164e8c commit 332c3fe
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SafeSip: Excessive alcohol consumption management with deep learning and motion sensors
# SafeSip: Alcohol black out warning and blood alcohol detector with deep learning and motion sensors

Excessive alcohol consumption can have severe health consequences. SafeSip uses machine learning to warn users when their consumption has reached unsafe levels, with no need for user input.
Excessive alcohol consumption can jeopardize personal safety. SafeSip uses machine learning to warn users when their consumption has reached unsafe levels, based on accelerometer movement data.

<img src="https://github.com/aakritil/treehacks/assets/63487762/f23c82db-b458-42cc-bde5-f556f5964147" width="500" height="350" alt="Landing Pages">

Expand All @@ -9,27 +9,30 @@ Excessive alcohol consumption can have severe health consequences. SafeSip uses
<img src="https://github.com/aakritil/treehacks/assets/63487762/e4d859fa-d9a2-4663-a26b-a978ddd32fa8" width="160" height="350" alt="Schedule Page">



View our DevPost [here!](https://devpost.com/software/safesip-umodkf)

## Inspiration

As college students, we are witness to a lot of drinking. While fine in moderation, excessive alcohol consumption has serious consequences. We want to help our peers strike a good balance between fun and safety. That’s why we’ve created SafeSip, a low-commitment, easy-to-use tool to ensure safe drinking.
College students are uniquely vulnerable to the dangers of excessive alcohol consumption. Blacking out substantially raises the risk of [sexual assault, injury, and legal consequences](https://onlinelibrary.wiley.com/doi/10.1111/acer.15157), especially for younger students. That’s why we’ve created SafeSip, the first low-commitment, easy-to-use app to ensure safe drinking. SafeSip intelligently notifies users if they are likely to black out, based on their movements, giving users the tools they need to stay safe _before_ tragedy strikes.

## What it does

By analyzing users’ gait from smartphone accelerometer data, SafeSip provides an accurate estimate of a user’s intoxication level and warns them to stop alcohol consumption before serious consequences begin.

Existing solutions require significant user input, such as manually entering every drink. Yet, as users drink more, they become increasingly careless, either forgetting or choosing not to track drinks, rendering these solutions ineffective. With SafeSip, users only have to press a button to indicate that they have started drinking, and our technology takes care of the rest. SafeSip extends existing research in the field, using machine learning methods to infer transdermal alcohol content (TAC) from accelerometer data. This is something entirely novel: while existing literature has suggested the possibility of doing so, SafeSip is the first working implementation.
Existing solutions require significant user input, such as [manually entering every drink](https://apps.apple.com/us/app/drinkcontrol-alcohol-tracker/id456207840). Yet, as users drink more, they become increasingly careless, either forgetting or choosing not to track drinks, rendering these solutions ineffective. With SafeSip, users only have to press a button to indicate that they have started drinking, and our technology takes care of the rest. SafeSip extends existing research in the field, using machine learning methods to infer transdermal alcohol content (TAC) from accelerometer data. This is something entirely novel: while [existing literature](https://ceur-ws.org/Vol-2429/paper6.pdf) has suggested the possibility of doing so, **SafeSip is the first working implementation**.

By accurately estimating a user’s TAC, SafeSip is able to preempt and stop excessive alcohol consumption, preventing students from blacking out. Studies show that people [are not aware of the amount they consume while drinking](https://onlinelibrary.wiley.com/doi/pdf/10.1111/dar.13215?casa_token=QKxCYOE25RMAAAAA:IJIrYo8mXYe747S0-qIYAMbekNd7x3GUks8OXxxKCQy9GIoGL_lJ-WMtkUVNS18NQF4k1qaTlOT-uA), and informing them can prevent blackouts.

Further, SafeSip has in-app tools to track historical alcohol consumption and provide safe-drinking education. With SafeSip, users can ensure that they have a safe and enjoyable drinking experience. SafeSip also prioritizes friends-and-family support, spurring conversations that [disrupt perceived support for blackout drinking](https://pubmed.ncbi.nlm.nih.gov/32224219/).

By accurately estimating a user’s TAC, SafeSip is able to preempt and stop excessive alcohol consumption, preventing unfortunate consequences like blackouts. Further, SafeSip has in-app tools to track historical alcohol consumption and provide safe-drinking education. With SafeSip, users can ensure that they have a safe and enjoyable drinking experience.

## How we built it

SafeSip is built with an array of different technologies. The native iOS app itself is built in Swift, collecting and streaming movement data using Apple’s Core Motion framework. Our app is connected to the Firebase backend, which handles authentication and storage. A neural network built with PyTorch and hosted on Google Cloud Compute performs the TAC prediction.
SafeSip is built with an array of different technologies. The native iOS app itself is built in Swift, collecting and streaming movement data using Apple’s Core Motion framework. Our app is connected to the Firebase backend, which handles authentication and storage. A neural network built with PyTorch and hosted on Google Cloud Compute performs the novel TAC prediction.

## Challenges we ran into

Data Wrangling: The dataset we used to train our model was quite unruly. Values were in different formats, timestamps didn’t match up, and data was everywhere. Wrangling and getting everything into a usable format took considerable thought and troubleshooting.
Data Wrangling: The dataset we used to train our model was quite unruly. Values were in different formats, timestamps didn’t match up, and data was everywhere. Wrangling and getting everything into a usable format took considerable thought and troubleshooting, requiring us to return to first principles.

New to iOS: This was our first time ever building an iOS app. We’re proud to have gone from knowing nothing about Swift to having a working App in 36 hours.

Expand All @@ -47,10 +50,14 @@ Swift: We’re new to Swift, and we had a lot of fun learning this new tech.

Hackathons: We learned how to navigate and manage hackathons.

Production-grade ML: We improved on impractical laboratory techniques to create a practical tool that balances speed and performance.

## What's next for SafeSip

More Features: We think there’s a lot more room for new features in SafeSip. A few ideas we had were pass-out detection, which would call an emergency contact once you passed out, or alcoholism alerts, which would alert you if you were drinking too frequently or heavily. We’re excited by our technology, and think there’s a lot of room for us to make drinking safer.
More Features: We think there’s a lot more room for new features in SafeSip. A few ideas we had were pass-out detection, which would call an emergency contact once you passed out, using [physiological factors](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3093974/) to distinguish it from sleep. We also thought of alcoholism alerts, which would alert you if you were drinking too frequently or heavily, based on [CDC guidelines](https://www.cdc.gov/alcohol/faqs.htm). We’re excited by our technology, and think there’s a lot of room for us to make drinking safer.

Apple Watch Integration: By integrating with an Apple Watch, we could pull more biometric data, allowing us to better estimate TAC, and make more accurate black-out predictions.
Apple Watch Integration: By integrating with an Apple Watch, we could pull more biometric data, such as heart rate and temperature, allowing us to better estimate TAC, and make more accurate black-out predictions.

Broader Integration with Different Wearable Devices: We plan to generalize to other brands of wearable devices leveraging platforms like TerraAPI so that we can provide our services to a broader range of users.

CarPlay integration: we could potentially use SafeSip to integrate with CarPlay, ensuring that heavily intoxicated users do not drive. This could be paired with [easy access to an Uber/Lyft](https://www.uber.com/us/en/u/reasons-to-ride/) to ensure user safety.

0 comments on commit 332c3fe

Please sign in to comment.