Inspiration

More than 22 million Americans suffer from Obstructive Sleep Apnea (OSA), which is a condition that is most often treated by Continuous Positive Airway Pressure (CPAP) therapy. This CPAP therapy is typically facilitated by a compact CPAP machine used during sleep. Most patients who consistently use their CPAP machines experience better sleep, more alertness during the day, and a reduction in apnea events.

However despite the incredible success and benefits of CPAP therapy, many users have poor adherence to CPAP usage guidelines. They may not use their CPAP for long enough each night or fail to clean it properly and frequently. One proposed way to encourage sleep apnea patients to develop good habits with their CPAP machines is through gamification, which is what this program aims to do.

What it does

The program works by rewarding users for completing CPAP usage requirements, such as cleaning machine components or wearing the CPAP mask for more than 4 hours in a night. When a user marks one of these tasks as completed, they are awarded a chance to play Treasure Hunt.

How I built it

I built SleepAppnea using Python on VS code. I started by building the treasure hunt game and then integrating it into a program for the more serious sleep apnea good habit tracker.

Challenges I ran into

I have never done a hackathon before and I don't think I quite had a good understanding of how little time I had/ how to use it most effectively. I really wanted to make a GUI for this and have a bunch more features but I quickly had to scale down my project.

Accomplishments that I'm proud of

This was my first solo project! I'm really proud of how it turned out given the time and experience I had. I am especially proud of my use of OOP in the Treasure Hunt game because OOP is something I have struggled to wrap my head around ever since I first learned it.

What I learned

Hackathons are CRAZY. I There are a lot of features I wanted to implement in this project, but I ran out of time. I even ran out of time to do some of the debugging haha. I'm really glad

What's next for SleepAPPnea

Where to start... after debugging and completing what I already have, I would like to learn how to better permanently store values like the number of games earned so that it doesn't reset every time the program is opened. I would also like to use matplotlib to implement some sleep analytics and maybe a mood tracker! There are a lot of possibilities!

Eventually as I learn more, I would love to create a UI for this app

Built With

Share this project:

Updates