Project

# Title Team Members TA Documents Sponsor
28 Real-time EEG Drowsiness Detection Device
Nikhil Talwalkar
Senturran Elangovan
Zhuoer Zhang design_document1.pdf
proposal1.pdf
**Real-time EEG Drowsiness Detection Device**

Team members:

- Nikhil Talwalkar (nikhilt4)
- Senturran Elangovan (se10)

**Problem**

Many people unintentionally doze off while studying, working, or in situations that demand constant focus—such as driving or monitoring critical systems. Current consumer sleep trackers, such as smartwatches, are primarily designed to analyze and record sleep patterns after the fact. They cannot provide real-time interventions to prevent drowsiness-related lapses. In high-risk scenarios like long-distance or nighttime driving, even a few seconds of microsleep can result in serious accidents. Therefore, there is a need for a portable, proactive system that can detect drowsiness in real time and alert users before loss of focus occurs.

**Solution**

Our project proposes an implementation of a real-time drowsiness detection device. The system uses a lightweight EEG headband to continuously monitor the user's brain activity. By analyzing frequency changes in EEG signals associated with early stages of drowsiness, the device can detect when the user is at risk of falling asleep. When drowsiness is detected, the system triggers an audible or tactile alarm to immediately alert the user, helping prevent microsleep-related accidents or lapses in attention.

Compared to computer vision–based systems, which rely on slower external cues such as eyelid closure, yawning, or head movement, and which often perform poorly in nighttime conditions, our device provides earlier and more reliable detection by directly monitoring EEG signals.

To ensure usability and a practical aesthetic, the electrodes will be put into a cap-style wearable that requires so special alignment or positioning by the user. The device will be powered by a lithium polymer battery with a projected life of 8 to 10 hours.

In terms of performance, most false positives and false negatives arise from interference in EEG signals, such as when eyes are closed during meditation or half-open. Since these states are not relevant to driving scenarios, they will still trigger an alert. We expect a 1–2% false positive rate during normal focus and a less than 10% false negative rate when the user is drowsy.


**Subsystems:**

**Subsystem 1: EEG Headband Hardware**

- Lightweight, dry electrodes attached to Fp1, Fp2, and Fpz regions of the head, wired neatly into a cap-style wearable to capture brain activity.

- Ideally dry, reusable, Ag electrodes, restricted to the budget. If allowed, higher end electrodes can be integrated for future modifications.

**Subsystem 2: Signal Processing Unit**

- Analog noise filtering using Butterworth filter, aiming for a bandpass between 0.5 to 30 Hz.

- Includes a CMRR operational amplifier to amplify the signal from 10^{-3} range to 1.

- Analog to digital signal converter to allow signal to be filtered digitally for flexibility and data collection. f_{s} around 250Hz for good signal.

**Subsystem 3: Detection Algorithm**

- Software running locally to identify characteristic frequency changes in EEG that correspond to drowsiness

- Using open libraries such as MNE, YASA and others for the EEG signal processing

- ML (RFA, Naive Bayes) algorithms to determine if user is at the brink of stage 1 sleep

**Subsystem 4: Alert Mechanism**

- Audible (buzzer) or tactile (vibration motor) alerts to immediately notify the user when drowsiness is detected.

**Subsystem 5: Power System**

- Lithium-polymer battery providing 8–12 hours of continuous operation for portability and reliability

- Power electronic circuit to ensure battery doesn't overcharge or over-discharge, and maintain limited current draw, and if possible (time constraints) temperature monitoring.

- Exploring 'AAA' battery alternatives if integratabtle and doesn't make the device look too chunky.


**Criterion of Success:**

EEG acquisition – the EEG captures reliable and accurate brain signals. Can be checked by blinking, which will induce a relatively significant voltage spike in the EEG signal.

Real-time sleep detection – the control system can detect when the user feels has micro-sleeps or is drowsy. Feeding open-source data or sleep and drowsiness into the system, and check if there is any outputs.

Prompt alerting – the buzzer triggers the alerting noise at a timely manner, with acceptable detection-to-alert latency. Measuring the time delay from the input and the output signal, to ensure the latency is acceptable.

Safety and comfort – the device is wearable for long hours and safe. Since user-based, allow randomly-selected volunteers to wear for a day and tell if there's any discomfort. Quantize it by using a numbering survey. TA can be included too, if they volunteer.

**Resources:**

https://github.com/SuperBruceJia/EEG-DL

https://github.com/lcsig/Sleep-Stages-Classification-by-EEG-Signals

https://www.sciencedirect.com/science/article/pii/S2090447922002064

Bohao Li, et al 2021, J. Phys.: Conf. Ser. 1907 012045

Assistive Chessboard

Robert Kaufman, Rushi Patel, William Sun

Assistive Chessboard

Featured Project

Problem: It can be difficult for a new player to learn chess, especially if they have no one to play with. They would have to resort to online guides which can be distracting when playing with a real board. If they have no one to play with, they would again have to resort to online games which just don't have the same feel as real boards.

Proposal: We plan to create an assistive chess board. The board will have the following features:

-The board will be able to suggest a move by lighting up the square of the move-to space and square under the piece to move.

-The board will light up valid moves when a piece is picked up and flash the placed square if it is invalid.

-We will include a chess clock for timed play with stop buttons for players to signal the end of their turn.

-The player(s) will be able to select different standard time set-ups and preferences for the help displayed by the board.

Implementation Details: The board lights will be an RGB LED under each square of the board. Each chess piece will have a magnetic base which can be detected by a magnetic field sensor under each square. Each piece will have a different strength magnet inside it to ID which piece is what (ie. 6 different magnet sizes for the 6 different types of pieces). Black and white pieces will be distinguished by the polarity of the magnets. The strength and polarity will be read by the same magnetic field sensor under each square. The lights will have different colors for the different piece that it is representing as well as for different signals (ie. An invalid move will flash red).

The chess clock will consist of a 7-segment display in the form of (h:mm:ss) and there will be 2 stop buttons, one for each side, to signal when a player’s turn is over. A third button will be featured near the clock to act as a reset button. The combination of the two stop switches and reset button will be used to select the time mode for the clock. Each side of the board will also have a two toggle-able buttons or switches to control whether move help or suggested moves should be enabled on that side of the board. The state of the decision will be shown by a lit or unlit LED light near the relevant switch.

Project Videos