Inspiration

A common cliche when it comes to hackathons is the frequency of competitors pulling an "all-nighter." Familiar to every college student, the act of depriving oneself of sleep has become very normalized. Our group even joked about drinking RedBull and working all night to create the best project, which funnily enough, did happen. Given that the theme of the hackathon was to solve a real-world problem, we thought it would be interesting to tackle this idea of sleep problems and how we can improve current technology.

What it does

Our program measures data collected from a phone's accelerometer and feeds it into a calculus-based Python program that outputs a constant stream of data to an HTML/JavaScript/CSS script, displaying sleep data over time and the overall "sleep score" of the participant. In addition to this simple data, we also use a Fast Fourier Transformation to record any significant patterns that researchers can then use to diagnose a patient with possible sleep disorders.

How we built it

We used phyphox, an open-source application made for Android and iOS, to record accelerometer data from one's phone. We then built the subsequent algorithms and functions in Python while making our website in HTML/JavaScript/CSS.

Challenges we ran into

The mathematics behind the Fast Fourier Transformation is quite complex. Formally defined by the infinite sum of sine and cosine functions whose frequencies and amplitudes are dependent on the original function, the calculations of these frequencies and amplitudes were time-consuming.

Accomplishments that we're proud of

We were able to apply higher-level calculus concepts to a real-life situation without the stimulus from a specific prompt.

What we learned

We learned the importance of time management and playing to our strengths. Each one of us specializes in a different area of programming, being front end, data analysis, or back end. Splitting up the work and letting one of us sleep while the other two worked allowed us to quickly complete the project.

What's next for DREAMS

Further refinement of sleep quality score with self-polls from participants of the DREAMS program. After such refinement, there is the possibility of publishing the application on the Play Store and App Store such that we can begin to help other people.

Share this project:

Updates