You are on page 1of 28

EEG BASED DROWSY

DRIVING ALERT SYSTEM


Frank Elechi & Jesse Schmitz
Introduction
Project Objectives

 To utilize user’s electroencephalogram (EEG) signal


to determine level of alertness, then notify him/her
when they are becoming drowsy.
 Provide reliable logged data.
Current Technologies
Electroencephalogram (EEG) Background

 Discovered by professor of
psychiatry, Hans Berger, in 1924
(Freeman & Quiroga, 2013)
 EEG measures electrical activity
of the brain caused by firing of
neurons
 EEG can be measured using
electrodes placed on the scalp
 Electrode locations standardized
by the 10-20 point system

Freeman, Walter J., and Rodrigo Quian Quiroga. www.biomedresearches.com


(2013). Imaging Brain Function with EEG: Advanced
Temporal and Spatial Analysis of Electroencephalographic
Signals. Springer.
Electroencephalogram (EEG) Background

 Fluctuations in EEG signals occur in several different frequency


bands
 The activity in each frequency band corresponds to different
mental states such as relaxation, mental calculation, and attention
(Freeman & Quiroga, 2013)
 Delta Waves -> Less than 3Hz (Deep sleep)
 Theta Waves -> 3.5 Hz – 7.5Hz (Seen during sleep)
 Alpha Waves -> 8 Hz – 13 Hz (Relaxation, Closed Eyes)
 Beta Waves -> Greater than 13Hz (Mental Calculation, Focus)
(Sucholeiki, 2014)

Freeman, Walter J., and Rodrigo Quian Quiroga. (2013). Imaging Brain Function with EEG:
Advanced Temporal and Spatial Analysis of Electroencephalographic Signals. Springer.
Sucholeiki, Roy. (2014). Normal EEG Waveforms. Medscape. Retrieved from
http://emedicine.medscape.com/article/1139332-overview#a1 on October 22, 2015
Methodology

 Obtain Research Ethics Board approval for recording


EEG data
 Design analog board to detect EEG signals
 First on breadboard
 PCB to reduce noise

 EEG data collected using analog board and


oscilloscope in order to establish project feasibility
 Program signal processing on Zedboard (FPGA)
 Design Arduino based Brain Computer Interface (BCI)
 Test system using PC
Analog Board - Block Design

To
FPGA

http://openeeg.sourceforge.net/
used for reference when
designing analog board
Analog Board - Challenges

 Low signal to noise ratio


 60 Hz noise from mains
hum
 Flexing muscles

 Inexperience in
designing PCB
 Power and ground paths
smaller then they could
be
 Noise present in Power
and Ground pins
Analog Board – Dealing with Noise

 Right Leg Driver circuit


 Feed common signal back to body
 8.25dB – 60 Hz Noise before RLD included
 -32.1dB – 60 Hz Noise after RLD included
 Approximately 40dB attenuation

 Switched Capacitor Low Pass Filter


 8th order filter
 EEG signal all below 60 Hz
 Filter out anything 30 Hz and above
 Alpha waves @ -20dB, 60Hz noise @ -53dB
Brain Computer Interface
Brain Computer Interface
Brain Computer Interface
Brain Computer Interface
Brain Computer Interface

Challenges
 Working with Parts
without Datasheet eg
SD card
 Scheduling: Not
creating enough time
for unforeseen
circumstances
 Working with custom
PCB board
Zedboard – Block Design
Zedboard – Algorithm

Initialize ADC Sample 1024 Copy time


+ FFT data points data to FFT
@ 1kHz

Print FFT
Run FFT results through
UART
Zedboard - Challenges

 Time constraints
 Analog board design,
assembly and testing took
much longer than expected
 Working with unfamiliar
board
 Very powerful board
 Overkill for this project
 Used because interested in
further research
 Many advantages when
using FPGA in a multi-
channel system zedboard.org
Testing Plan – Analog Board

 Use oscilloscope to measure frequency domain of EEG


signal
 Data recorded at three points on the head
 F7+F8 (Temples)
 C3+P3 (Top of head)
 O1+O2 (Back of head)
 Data recorded for three different states
 Eyes Open, Relaxed
 Eyes Closed, Relaxed
 Eyes Open, Focused
 10 trials at each point + state combination
Results – F7+F8

-20
F7 + F8 Magnitude vs Frequency
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

-25

-30
MAGNITUDE (DB)

-35

-40

-45
Eyes Open, Relaxed Eyes Closed Relaxed Eyes Open Focused

-50
FREQUENCY (HZ)
Results – C3+P3

C3 + P3 Magnitude vs Frequency

-15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
-20

-25

-30
MAGNITUDE (DB)

-35

-40

-45

-50

-55
Eyes Open, Relaxed Eyes Closed Relaxed Eyes Open Focused
-60
FREQUENCY (HZ)
Results – O1+O2

O1 + O2 Magnitude vs Frequency
-5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

-10

-15

-20

-25
MAGNITUDE (DB)

-30

-35

-40

-45

-50
Eyes Open, Relaxed Eyes Closed, Relaxed Eyes Open, Focused
-55
FREQUENCY (HZ)
Testing Plan-BCI

 Create and test individual modules


 Integrate modules into larger system
 Use values from EEG simulation in code directly
BCI Result
EEG Based Drowsy Driving

Alert System Results - Zedboard

Captured EEG Data from Zedboard


500

450

400

350

300
VOLTAGE (MV)

250

200

150

100

50

0
0 100 200 300 400 500 600 700 800 900 1000
TIME (MS)
Budget
Conclusion

 Data collected shows feasibility of concept


 Continued work on the project would result in a fully
operational system
Questions ?

You might also like