Inspiration

Right after AP exams, Xieshi did not realized how tired he was and drove on the freeway to his research lab. He nearly fell asleep on the wheel, resulting in him not realizing a slowdown ahead and almost rear-ending another car. Many others share similar experiences, despite wider adoption of attention tracker technologies in expensive cars.

What it does

SomniWatch is a wearable device that detects when its user is in danger of falling asleep using infrared temperature sensors, accelerometers, and heart rate sensors. Research has found that heart rate decreases by 10%, and temperature at extremities increase by up to 1 degree C during the process of falling asleep. These tiredness signals, combined with motion detection for nodding off (microsleeping) allows us to alert the user in a timely and accurate manner.

How we built it

There are two parts to the design, one for biosensors and the other for motion. We implemented the biosensors corcuit on the breadboard, then we then had our very tired members strap the accelerometer to their head and start nodding off. We used that data to train a classifier model using Edge Impulse. Finally, we uploaded the classifier library to the microcontroller. Both circuits are eventually powered by a power bank.

Challenges we ran into

We ran into significant challenges collecting sufficient data for our ML models, and it was difficult to adjust the sensitivity for motion such that it minimizes false positives while still detecting microsleeps.

Accomplishments that we're proud of

We are happy that we could finish a project incorporating both software and hardware. Seeing that our research into heart rate and skin temperature turn out exactly the way we expect and learning how to integrate the different components together felt rewarding.

What we learned

We learned how to develop apps with Swift, use Edge-Impulse to train a classifier model, and use accelerometers for collecting data. We learned how to collaborate with team members with different areas of expertise.

What's next for SomniWatch

We plan on improving the algorithm further and explore the potential of turning the prototype into a commercial product

Built With

Share this project:

Updates