SlideShare a Scribd company logo
+
Application of Open Source EEG
to Control PWM Wave
Advisor: Coach Zohdy
Student: Suraj Bhamra
+
Before We Begin…
Engineering Student Medical Student
2
+
Personal Bio
 Born in Windsor, Canada (don’t
take it against me!)
 Owner of Negative and Print
Print Shop in Detroit, MI
 Hobbies include lifting weights,
working on cars and
motorcycles
 Two Truths, One Lie
 I’ve driven an Abrams Tank
 I’ve never been to Africa
 I once was pulled over doing
160+ mph
3
+
Professional Bio
 Oakland University BSEE 2011
 Met Coach in 2009!
 Oakland University MSEE 2013
 Oakland University PhD 201X
 US Army TACOM Intern (2009-
2011)
 US Army TACOM Electrical
Engineer (2011-Present)
 Network integration
 Radio communications
 Prototype Engine Testing
Academic Professional
4
+
Presentation Agenda
 Problem Statement
 EEG Background
 Approach
 Theory
 Anatomy
 Types of Brain Waves
 Fourier Transform
 MEMS Mode Frequencies
 Application
 MEMS Sensor Design
 Implementation
 Headset
 Data traffic
 Present Issues
 Future Work
 Conclusions
 Demo
5
+
Problem Statement
Why EEG? Why the brain?
6
+
Problem Statement (cont’d)
Very Little is Still Understood about the Brain
 BRAIN (Brain Research through Advanced Innovative
Neurotechnologies) Initiative introduced by White House in April 2013
 100 billion neurons and 100 trillion connections in the brain
 Find underlying causes (and cures) for Alzheimer’s disease, Parkinson’s
disease, autism, epilepsy, schizophrenia, depression, etc
Open Source is the Way of the Future!
 More people experimenting with EEG = more awareness = more
discovery
 Current EEG technology is very expensive and heavily restricted
 Use commercially available technology to better understand EEG
and it’s scientific benefits
7
+
Problem Statement (cont’d)
 Electrical impulses generated by nerve firings in the brain can
be measured by electrodes placed on the scalp
 The EEG gives us a coarse view of neural activity
 EEG activity is very small signal with amplitudes in the μV
(microvolts)
 Main frequencies of interest range from 4Hz to 30Hz
 Electrical activity picked up by electrodes, fed through signal
processor and displayed
How do EEGs work?
8
+
Problem Statement
How do EEGs work?
Electrode placement is key
9
+
Problem Statement (cont’d)
 Use commercial off the shelf (COTS) items to create an open
source EEG
 Record brain activity using this open source EEG
 Use brain activity to trigger a PWM wave
 Use this PWM wave to actuate a servo
 Use the servo to actuate a prosthetic hand (flexion and
extension)
My Solution to Current Challenges
10
+
Theory
The foundation of research.
11
+
Anatomical Introduction
Brain Activity
 EEG (Encephalography) data
 Brain wave classification
 Parsing and grouping of desired
and undesired signals (signal to
noise ratio)
Physical Interface
 Physical makeup of skin
 Layers of skin and their growth
characteristics
 Electrode-skin interface
 Renewal of skin and
interference of signal chain
Med School Members Don’t Criticize Me Too Much!
12
+
Anatomical Introduction
 Three primary layers of skin
 Epidermis (outermost) layer
has three sub layers (stratum
germinativum, stratum
granulosum, and stratum
corneum)
 Cells originate in deepest
layer of epidermis, the
stratum germiativum
Human Skin Composition
13
+
Anatomical Introduction
 New skin cells move outward
to the stratum corneum
 As they move outward they
lose their nuclear material
 Below the epidermis is the
Dermis and Subcutaneous
layer
Human Skin Composition cont’d
14
+
Anatomical Introduction
Lobes of the Brain
15
+
Types of Brain Waves
Alpha
 Rhythmic in nature
 Frequencies ranges from
~8Hz to ~13Hz
 Amplitude ranges from 20μV
to 200μV
 Occur in an awake but
relaxed state
 Prominent in the occipital
and parietal lobes of the
brain
 Sensitive to external stimuli
 Usually measured with eyes
closed
 Visual stimuli causes
replacement with
asynchronous waves of
higher frequencies but lower
amplitudes
16
+
Types of Brain Waves
Beta
 Amplitude ranges from 5μV to 10μV
 Generally associated with intense
mental activity
 Relaxed but alert
 More intense mental tasks (reading,
math, etc)
 Problem solving, mild anxiety
 High anxiety, OCD
 Attentive to external stimuli (such
as focus)
 Strong presence in frontal lobe
 Several types of beta brain waves
 Beta I (13Hz to 15Hz)
 Beta II (16Hz to 18Hz)
 Beta III (19Hz to 26Hz)
 Beta IV (27Hz to 32Hz)
17
+
Types of Brain Waves
Theta and Delta
 Frequencies range from 4Hz
to 7Hz
 Occur in parietal and
temporal lobe
 Prominent in transition to
sleep from alpha relaxation
 Also found when waking up
from deep sleep
 Known as “stage 1 sleep”
 Frequencies smaller than
3.5Hz
 “Slowest” waves with
highest amplitude
 Commonly found during
sleep
 Emitted from cortex
 High delta may be result of
head injuries, strokes,
tumors, etc
18
+
Traditional Instrumentation of Brain
Non-Invasive Electrodes
 Easier to instrument patient
 More susceptible to motion
artifacts
 Sensitive to about 10mV
 Arranged in network on patients
scalp
 Time consuming to set up
electrode array
Invasive electrodes
 More difficult to instrument
patient
 Less susceptible to motion
artifacts
 Sensitive to about 100μV
 “Needle” inserted directly into
scalp
 Requires surgery to install and
remove
19
+
Importance of Frequency Domain
 The main advantage of frequency domain analysis is being
able to visualize the periodicities of the signal.
 This helps understand the physical nature of the signals.
 The signals used in this project are time based and being
able to visualize the periods of the functions helps in plotting
the waves in intuitive patterns
20
+
Fourier Transform in EEG
The Fourier transform describes a signal x(t) as a linear superposition of sines
and cosines characterized by their frequency f.
Where,
This is also known as the Continuous Fourier Transform (CFT) of the signal x(t)
and can be understood as the inner product of the signal x(t) with a parent
function.
(1)
(2)
21
+
Fourier Transform in EEG (cont’d)
This can now be written as
Where the inverse transform is given by (1). Since the mother
functions are orthogonal the Fourier Transform is unique.
For example we can consider an EEG signal consisting of N
discrete values sampled at a time Δt
Where xj is a measurement taken at time tj=to+jΔ
(3)
(4)
22
+
Fourier Transform in EEG (cont’d)
The Discrete Fourier Transform (DFT) of this signal is now defined as,
Where k = 0,…,N-1
Its inverse transform can now be written as,
(5)
(6)
23
+
Fourier Transform in EEG (cont’d)
Since we are considering real signals only, the following relationship is true
Therefore the discrete frequencies examined are given by (8) while the
resolution is given by (9)
Since the Fourier Transform gives N/2 independent complex coefficiants,
there are N values as in the original signal (nonredundant)
(7)
(8) (9)
24
+
What Does This Mean?
25
+
System Architecture Block Diagram
26
+
MEMS EEG Sensor (New)
 Flexible substrate can conform
to patients body contours
 Easily removable
 Will not cause skin ulceration
 Silver layer makes it
transparent for X-rays
 Hydrogels use as conductive
medium
 Easy install, high resolution
27
+
Natural Frequency and Mode Shape
 Insertion column displaced by shear force
 Releasing shear force causes beam to vibrate and displace from it’s
equilibrium state
 This results in a non-harmonic motion
 Certain initial displacements cause harmonic vibrations
 These initial deflections are mode shapes
 Corresponding frequencies are natural frequencies
 Dependent on material (Young’s Modulus, density) and dimensions of
cantilever beam
 MEMS be happy!
28
+
Clamped-Free Cantilever Beam
Equation of Newtonian motion is given by
¶2
u
dt2
+ k
¶4
u
dx4
= f (x,t) = 0 (10)
¶2
u
dt2
+
EI
rA
¶4
u
dx4
= f (x,t) = 0 (11)
29
+
Beam Boundary Conditions
Describe the initial boundary conditions.
u(0,t) = 0
ux (0,t) = 0
utt (0,t) = 0
uxxxx (0,t) = 0
u(0,t) = 0
uxx (0,t) = 0
(12)
(13)
(14)
Clamped
Free
Simply Supported
30
+
Equation Setup
u(x,t) = F(x)G(t)
(15)
(16)
From the boundary conditions on the previous page we get the following equations
Plugging in (16) into the motion equation ( 10 and 11)
(17)
31
+
Equation Setup Cont’d
Simplification of (8) results in
(18)
Combining like variables yields
(19)
Where –Β4 is a constant
b4
=
rAw2
EI
(20)
32
+
Equation Setup Cont’d
Breaking up equation (10) yields two differential equations
¢¢¢¢F + b4
F = 0
(21)
(22)
Equation (21) has the general solution
G(t) = Acosb2
ct + Bsinb2
ct
While equation (22) has the general solution
F(x) = Acosbx + Bsinbx +Ccoshbx + Dsinhbx
(23)
(24)
33
+
Equation Setup Cont’d
By our boundary conditions we see that
u(0,t) = ux (0,t) = 0
uxx (x,t) = uxxxx (x,t) = 0
(25)
Now using (25) and applying our boundary conditions we see
A + C = 0
B + D = 0
-Bsinbx - Acosbx + Dsinhbx + C coshbx = 0
-Bcosbx + Asinbx + Dcoshbx + Csinhbx = 0
(26)
Equation (26) can now be represented in matrix form
34
+
Equation Setup Cont’d
0 1 0 1
1 0 1 0
-sinbx -cosbx sinhbx coshbx
-cosbx sinbx coshbx sinhbx
é
ë
ê
ê
ê
ê
ù
û
ú
ú
ú
ú
B
A
D
C
é
ë
ê
ê
ê
ê
ù
û
ú
ú
ú
ú
= 0 (27)
-sinbx - sinhbx -cosbx - coshb
-cosbx - coshb sinbx - sinhb
é
ë
ê
ê
ù
û
ú
ú
(28)
Solving the determinate yields the following frequency equation and frequencies
cosbnx =
1
coshbnx
wn =
bnEI
rA
(29) (30)
35
+
Equation Setup Cont’d
The mode shapes can now be given by
Fn = An cosbnx + Bn sinbnx +Cn coshbnx + Dn sinhbnx (31)
Using the boundary condition information that C = -A and D = -B
-Bsinbx - Acosbx - Bsinhbx - Acoshbx
-B(sinbx + sinhbx) = A(cosbx + coshbx)
(32)
B = -A
cosbx + coshbx
sinbx + sinhbx
æ
èç
ö
ø÷
It is now obvious that
(33)
36
+
Equation Setup Cont’d
The final mode shape equation can now be written as
Fn = -An -
cosbnl + coshbnl
sinbnl + sinhbnl
æ
èç
ö
ø÷ sinbnx + cosbnx +
cosbnl + coshbnl
sinbnl + sinhbnl
æ
èç
ö
ø÷ sinhbnx - coshbnx
é
ë
ê
ù
û
ú (34)
The first 6 mode shapes were calculated to see the natural harmonics and resonant
frequencies in the platinum covered silicon insertion column!
37
+
Mode Shapes and
Natural Frequencies
Mode Shape Frequencies In HZ
Mode Shape 1: 3470884.361
Mode Shape 2: 21751660.994
Mode Shape 3: 60905280.627
Mode Shape 4: 119350041.902
Mode Shape 5: 197294170.950
Mode Shape 6: 294723328.582
Mode shapes determine silicon insertion columns will
not tear off Polyimide substrate!
+
Application
Applying Theory
39
+
System Architecture Block Diagram
40
+
Initial MEMS EEG Sensor Design
41
+
Initial MEMS EEG Sensor Design
 Polyimide substrate for flexibility
 Single crystal silicon columns coated with platinum for good
conductivity
 Crystalline silicon has predictable etch and growth properties
and is dimensionally stable to 1400 Celsius
 Silicon has favorable Youngs Modulus for strength
 Conductive material to transmit current (many options
explored)
 Gold strands placed in spikes to collect surface currents
42
+
Model Geometry
 500μm x 500μm x 12.7μm
substrate layer
 Thickness of substrate
determined on commercially
available polyimide from
DuPont
 12.7μm provided best
combination of flexibility and
strength
43
+
Model Geometry Cont’d
 4x4 array of insertion columns
inserted onto substrate
 Pierce epidermis to pick up
neural activity
 Radius of 10.3μm
 Height of 200μm
 Height subject to change due to
z-axis compression
(installation)
 Gold pads linked with gold fiber
44
+
Boundary Condition Selection
45
+
Model Mesh
 Free tetrahedral, brick, prism,
and pyramid-type mesh
explored
 Free tetrahedral is most
commonly used
 Smaller mesh yields more
accurate results but require
more computing resources
46
+
Von Mises Shear Stress
Analysis
 Shear stress tested (translational)
 Ensure sensor does not tear or deform under pressure
 1e-2 N/m2 stress applied perpendicular to column
 Damped using Rayleigh damping (linear combination of mass
and stiffness)
 3% critical damping
47
+
Von Mises Shear Stress
Analysis
48
+
Von Mises Shear Stress
Analysis
49
+
Compression Von Mises Stress
 Electrode pressed into
epidermis layer of skin
 Force is in the z-axis
 This force results in the
compression of insertion
columns
 Necessary to compute to test
compressional stability of
Silicon
50
+
Compression Von Mises Stress
51
+
Implementation
Putting Application into Action
52
+
System Architecture Block Diagram
53
+
Electrode and Headset
 Currently using NeuroSky ™ (TM) dry TGAM (ThinkGear ASIC
Module) based sensor
 Prorotype headset uses Gen I TGAM1 technology
 MindWave headset uses Gen II TGAM2 technology
 TGAT chip used in both headsets
 NeuroSky ™ (TM) eSense
 A/D
 Biomedical instrumentation amplifier
 Internal noise filter
 After understanding NeuroSky ™ (TM) data structure and
protocol we can design our own MEMS sensor
54
+
Headset Function
 NeuroSky ™ (TM) chip trasmits information as raw bytes
 Arduino microcontroller parses information from raw byte stream into ASCII
string CSV
 NeuroSky ™ (TM) bytes are in proprietary format and cannot be changed
(hence motivation for designing our own sensor)
 Serial monitor breaks down data into the following format
 Signal strength (unsigned one byte integer from 0 to 200)
 NeuroSky ™ (TM) “eSense”
 Attention and Relaxation from 1 to 100 (40-60 neutral)
 RAW Wave Values (16 Bit)
 Signed 16 bit integer ranging from -32768 to 32767
 Two bytes (first high order bit of the twos compliment value, second is low order bit)
 Relative EEG strengths (Delta, Theta, low-Alpha, high-Alpha, low-Beta, high-Beta, low-
Gamma, mid-Gamma.
Data Breakdown
55
+
System Architecture Block Diagram
56
+
Headset Function
Real Serial Information
57
+
System Architecture Block Diagram
58
+
Headset Function
 Open source plotting tool
Processing used to visualize
data
 Data is read through the COM
port (indexed through the
Processing sketch) and mapped
to a real time plotter
 Datalogging functionality to be
implemented in a further
software release
Graphing Software
59
+
System Architecture Block Diagram
60
+
Headset Function
 Script BrainPWM running on
Arduino
 Responsible for mapping
NeuroSky ™ (TM) “eSense” to
a PWM value at a certain
threshold
 Pin 13 used on Arduino at 9600
baud rate
 Initialized state of pin is LOW
 State transitions to HIGH when
eSense reaches indexed valie
PWM Control
61
+
Present Issues
What’s keeping us busy now?
62
+
Present Issues
 Headset is highly susceptible to motion artifacts
 Connection strength is heavily dependant on external
conditions (humidity, temperature, conditions of skin)
 60Hz frequency filtering (Notch) not adequate and headset
experiences noise in certain environments with overhead
power lines
 No robust electrical isolation
Headset Reliability
63
+
Present Issues
 NeuroSky ™ (TM) “black-box” values for attention and
relaxation
 We do not know the algorithms used for generation of these values
 Further simulation of MEMS sensor and studying gen I prototype will
allow us to come up with our own data scheme
 Reverse engineer NeuroSky ™ using MEMS technology
Data Values and Parsing
64
+
Future Work
Our Next Step
65
+
Future Work
 Concentrate on one specific part of architecture to study for
research
 Many options (MEMS sensor, filtering schemes, instrumentation
amplifiers, data structures, etc)
 Thus narrowing down area of interest
 Phase out prototype headset use and use research grade
NeuroSky ™ (TM) developer headset
 Further simulation of MEMS sensor
 Fabrication
 EMI/EMC
 Material science
 Continue working with Med School
Area of Interest
66
+
Future Work
Hardware/Software Focus Areas
• Developer headset
• Wireless transmission (XBee, Bluetooth, etc)
• OpenBCI headset/microcontroller
67
+
Conclusions
Current Outcomes
68
+
Conclusions
 Proof of concept demonstrated in operational environment
 Data structure parsing and coding complete
 Real time data visualizer adapted successfully
 Headset integration complete
 Prototype headset and servo to be delivered to OU Med School
for further testing (March/April 2016)
69
+
Conclusions
Linked to NeuroSky TM eSense (Concentration)
70
+
References
 Arduino Brain Library Errors
http://forum.arduino.cc/index.php?topic=90605.0
 ECE690 BioFeedback (co-Author Abdrahamane Traore)
 NeuroSky ™ EEG Brainwave Data
https://github.com/kitschpatrol/Brain
 Programmer Error Arduino
http://forum.arduino.cc/index.php?topic=28686.0
 MindFlex EEG Setup
http://service.mattel.com/instruction_sheets/P2639-0920G1.pdf
 Quantitative Electroencephalography
http://www.sciencedirect.com/science/article/pii/S0987705308000233
 Quantitative analysis of EEG signals Time frequency methods and Chaos theory
https://vis.caltech.edu/~rodri/papers/thesis.pdf
 EEG With Arduino
https://sites.google.com/site/chipstein/home-page/eeg-with-an-arduino
71
+
References (cont’d)
 Time Frequency Analysis of EEG Waveforms
http://www.timely-cost.eu/sites/default/files/ppts/2ndTrSc/Niko%20Busch%20-
%20Time%20frequency%20analysis%20of%20EEG%20data.pdf
 FFT of EEG Data
http://jama.jamanetwork.com/article.aspx?articleid=391249
 Time-Frequency Decomposition
http://sccn.ucsd.edu/eeglab/workshop06/handout TP_Jung_Workshop_Time_Frequency_Analysis.pdf
 Cassification of Electroencephalogram (EEG) Signal Based on Fourier Transform and Neural Network
http://ethesis.nitrkl.ac.in/4749/1/109EE0640.pdf
 Frequency Analysis of Healthy & Epileptic Seizure in EEG using Fast Fourier Transform
http://ijergs.org/files/documents/FREQUENCY-82.pdf
 Using Novel MEMS EEG Sensors in Detecting Drowsiness Application
https://www.cs.tau.ac.il/~nin/Courses/Seminar14a/Drowsiness.pdf
 ECE790 (co-author Darena and Mark)
72
+
Backup Slides
73
+
Arduino Code
74
+
Function Overview
75

More Related Content

What's hot

Neural network
Neural networkNeural network
Neural network
marada0033
 
Neural network
Neural networkNeural network
Neural network
Mahmoud Hussein
 
The Perceptron and its Learning Rule
The Perceptron and its Learning RuleThe Perceptron and its Learning Rule
The Perceptron and its Learning Rule
Noor Ul Hudda Memon
 
Nn ppt
Nn pptNn ppt
Nn ppt
Ruchi Sharma
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Mohammed Bennamoun
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
EdutechLearners
 
Lecture 9 Perceptron
Lecture 9 PerceptronLecture 9 Perceptron
Lecture 9 Perceptron
Marina Santini
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural NetworkPratik Aggarwal
 
14 Machine Learning Single Layer Perceptron
14 Machine Learning Single Layer Perceptron14 Machine Learning Single Layer Perceptron
14 Machine Learning Single Layer Perceptron
Andres Mendez-Vazquez
 
Lec10
Lec10Lec10
neural networks
 neural networks neural networks
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian LearningESCOM
 
Perceptron working
Perceptron workingPerceptron working
Perceptron working
Zarnigar Altaf
 
Digi ana total 2012
Digi ana total 2012Digi ana total 2012
Digi ana total 2012
masterslide
 
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Mohammed Bennamoun
 
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rulesJAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
hirokazutanaka
 
JAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
JAISTサマースクール2016「脳を知るための理論」講義03 Network DynamicsJAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
JAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
hirokazutanaka
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
abhishek upadhyay
 
Introduction to Neural networks (under graduate course) Lecture 2 of 9
Introduction to Neural networks (under graduate course) Lecture 2 of 9Introduction to Neural networks (under graduate course) Lecture 2 of 9
Introduction to Neural networks (under graduate course) Lecture 2 of 9
Randa Elanwar
 
Elect machine total_2012
Elect machine total_2012Elect machine total_2012
Elect machine total_2012masterslide
 

What's hot (20)

Neural network
Neural networkNeural network
Neural network
 
Neural network
Neural networkNeural network
Neural network
 
The Perceptron and its Learning Rule
The Perceptron and its Learning RuleThe Perceptron and its Learning Rule
The Perceptron and its Learning Rule
 
Nn ppt
Nn pptNn ppt
Nn ppt
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Lecture 9 Perceptron
Lecture 9 PerceptronLecture 9 Perceptron
Lecture 9 Perceptron
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
 
14 Machine Learning Single Layer Perceptron
14 Machine Learning Single Layer Perceptron14 Machine Learning Single Layer Perceptron
14 Machine Learning Single Layer Perceptron
 
Lec10
Lec10Lec10
Lec10
 
neural networks
 neural networks neural networks
neural networks
 
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian Learning
 
Perceptron working
Perceptron workingPerceptron working
Perceptron working
 
Digi ana total 2012
Digi ana total 2012Digi ana total 2012
Digi ana total 2012
 
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
 
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rulesJAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
JAISTサマースクール2016「脳を知るための理論」講義02 Synaptic Learning rules
 
JAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
JAISTサマースクール2016「脳を知るための理論」講義03 Network DynamicsJAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
JAISTサマースクール2016「脳を知るための理論」講義03 Network Dynamics
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
 
Introduction to Neural networks (under graduate course) Lecture 2 of 9
Introduction to Neural networks (under graduate course) Lecture 2 of 9Introduction to Neural networks (under graduate course) Lecture 2 of 9
Introduction to Neural networks (under graduate course) Lecture 2 of 9
 
Elect machine total_2012
Elect machine total_2012Elect machine total_2012
Elect machine total_2012
 

Similar to Eeg pres

02_signals.pdf
02_signals.pdf02_signals.pdf
02_signals.pdf
MituBaral2
 
My Presentation @Ryerson University
My Presentation @Ryerson UniversityMy Presentation @Ryerson University
My Presentation @Ryerson UniversityJagdish Bhatt
 
Ch1 EE412 Introduction to DSP and .ppt
Ch1 EE412  Introduction to DSP and  .pptCh1 EE412  Introduction to DSP and  .ppt
Ch1 EE412 Introduction to DSP and .ppt
ssuser3312b5
 
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron modelsJAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
hirokazutanaka
 
Neuronal self-organized criticality (II)
Neuronal self-organized criticality (II)Neuronal self-organized criticality (II)
Neuronal self-organized criticality (II)
Osame Kinouchi
 
Signals & systems
Signals & systems Signals & systems
Signals & systems
SathyaVigneshR
 
Lec-02.pdf
Lec-02.pdfLec-02.pdf
Lec-02.pdf
MuhammadLatifZia
 
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITIONECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
Sarang Joshi
 
Algorithm to Generate Wavelet Transform from an Orthogonal Transform
Algorithm to Generate Wavelet Transform from an Orthogonal TransformAlgorithm to Generate Wavelet Transform from an Orthogonal Transform
Algorithm to Generate Wavelet Transform from an Orthogonal Transform
CSCJournals
 
Petar Petrov MSc thesis defense
Petar Petrov MSc thesis defensePetar Petrov MSc thesis defense
Petar Petrov MSc thesis defense
Petar Petrov
 
Effective Field Theories in the Quest for BSM Physics
Effective Field Theories in the Quest for BSM PhysicsEffective Field Theories in the Quest for BSM Physics
Effective Field Theories in the Quest for BSM Physics
Raquel Gomez Ambrosio
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
Simranjit Singh
 
11.a novel neural network classifier for brain computer
11.a novel neural network classifier for brain computer11.a novel neural network classifier for brain computer
11.a novel neural network classifier for brain computerAlexander Decker
 
A novel neural network classifier for brain computer
A novel neural network classifier for brain computerA novel neural network classifier for brain computer
A novel neural network classifier for brain computer
Alexander Decker
 
Presentation ECMTB14
Presentation ECMTB14Presentation ECMTB14
Presentation ECMTB14
Fabian Froehlich
 
Using an oscilloscope
Using an oscilloscopeUsing an oscilloscope
Using an oscilloscope
Saumya Ranjan Behura
 
Dynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beamsDynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beams
University of Glasgow
 
A wavelet transform based application for seismic waves. Analysis of the perf...
A wavelet transform based application for seismic waves. Analysis of the perf...A wavelet transform based application for seismic waves. Analysis of the perf...
A wavelet transform based application for seismic waves. Analysis of the perf...Pedro Cerón Colás
 
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
Pedro Cerón Colás
 

Similar to Eeg pres (20)

02_signals.pdf
02_signals.pdf02_signals.pdf
02_signals.pdf
 
My Presentation @Ryerson University
My Presentation @Ryerson UniversityMy Presentation @Ryerson University
My Presentation @Ryerson University
 
Ch1 EE412 Introduction to DSP and .ppt
Ch1 EE412  Introduction to DSP and  .pptCh1 EE412  Introduction to DSP and  .ppt
Ch1 EE412 Introduction to DSP and .ppt
 
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron modelsJAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
JAISTサマースクール2016「脳を知るための理論」講義01 Single neuron models
 
Neuronal self-organized criticality (II)
Neuronal self-organized criticality (II)Neuronal self-organized criticality (II)
Neuronal self-organized criticality (II)
 
Signals & systems
Signals & systems Signals & systems
Signals & systems
 
Lec-02.pdf
Lec-02.pdfLec-02.pdf
Lec-02.pdf
 
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITIONECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
ECG SIGNAL DENOISING USING EMPIRICAL MODE DECOMPOSITION
 
Algorithm to Generate Wavelet Transform from an Orthogonal Transform
Algorithm to Generate Wavelet Transform from an Orthogonal TransformAlgorithm to Generate Wavelet Transform from an Orthogonal Transform
Algorithm to Generate Wavelet Transform from an Orthogonal Transform
 
Petar Petrov MSc thesis defense
Petar Petrov MSc thesis defensePetar Petrov MSc thesis defense
Petar Petrov MSc thesis defense
 
Effective Field Theories in the Quest for BSM Physics
Effective Field Theories in the Quest for BSM PhysicsEffective Field Theories in the Quest for BSM Physics
Effective Field Theories in the Quest for BSM Physics
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 
11.a novel neural network classifier for brain computer
11.a novel neural network classifier for brain computer11.a novel neural network classifier for brain computer
11.a novel neural network classifier for brain computer
 
A novel neural network classifier for brain computer
A novel neural network classifier for brain computerA novel neural network classifier for brain computer
A novel neural network classifier for brain computer
 
5fourierseries
5fourierseries5fourierseries
5fourierseries
 
Presentation ECMTB14
Presentation ECMTB14Presentation ECMTB14
Presentation ECMTB14
 
Using an oscilloscope
Using an oscilloscopeUsing an oscilloscope
Using an oscilloscope
 
Dynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beamsDynamic stiffness and eigenvalues of nonlocal nano beams
Dynamic stiffness and eigenvalues of nonlocal nano beams
 
A wavelet transform based application for seismic waves. Analysis of the perf...
A wavelet transform based application for seismic waves. Analysis of the perf...A wavelet transform based application for seismic waves. Analysis of the perf...
A wavelet transform based application for seismic waves. Analysis of the perf...
 
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
Presentation in the Franhoufer IIS about my thesis: A wavelet transform based...
 

Recently uploaded

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 

Recently uploaded (20)

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 

Eeg pres

  • 1. + Application of Open Source EEG to Control PWM Wave Advisor: Coach Zohdy Student: Suraj Bhamra
  • 2. + Before We Begin… Engineering Student Medical Student 2
  • 3. + Personal Bio  Born in Windsor, Canada (don’t take it against me!)  Owner of Negative and Print Print Shop in Detroit, MI  Hobbies include lifting weights, working on cars and motorcycles  Two Truths, One Lie  I’ve driven an Abrams Tank  I’ve never been to Africa  I once was pulled over doing 160+ mph 3
  • 4. + Professional Bio  Oakland University BSEE 2011  Met Coach in 2009!  Oakland University MSEE 2013  Oakland University PhD 201X  US Army TACOM Intern (2009- 2011)  US Army TACOM Electrical Engineer (2011-Present)  Network integration  Radio communications  Prototype Engine Testing Academic Professional 4
  • 5. + Presentation Agenda  Problem Statement  EEG Background  Approach  Theory  Anatomy  Types of Brain Waves  Fourier Transform  MEMS Mode Frequencies  Application  MEMS Sensor Design  Implementation  Headset  Data traffic  Present Issues  Future Work  Conclusions  Demo 5
  • 6. + Problem Statement Why EEG? Why the brain? 6
  • 7. + Problem Statement (cont’d) Very Little is Still Understood about the Brain  BRAIN (Brain Research through Advanced Innovative Neurotechnologies) Initiative introduced by White House in April 2013  100 billion neurons and 100 trillion connections in the brain  Find underlying causes (and cures) for Alzheimer’s disease, Parkinson’s disease, autism, epilepsy, schizophrenia, depression, etc Open Source is the Way of the Future!  More people experimenting with EEG = more awareness = more discovery  Current EEG technology is very expensive and heavily restricted  Use commercially available technology to better understand EEG and it’s scientific benefits 7
  • 8. + Problem Statement (cont’d)  Electrical impulses generated by nerve firings in the brain can be measured by electrodes placed on the scalp  The EEG gives us a coarse view of neural activity  EEG activity is very small signal with amplitudes in the μV (microvolts)  Main frequencies of interest range from 4Hz to 30Hz  Electrical activity picked up by electrodes, fed through signal processor and displayed How do EEGs work? 8
  • 9. + Problem Statement How do EEGs work? Electrode placement is key 9
  • 10. + Problem Statement (cont’d)  Use commercial off the shelf (COTS) items to create an open source EEG  Record brain activity using this open source EEG  Use brain activity to trigger a PWM wave  Use this PWM wave to actuate a servo  Use the servo to actuate a prosthetic hand (flexion and extension) My Solution to Current Challenges 10
  • 12. + Anatomical Introduction Brain Activity  EEG (Encephalography) data  Brain wave classification  Parsing and grouping of desired and undesired signals (signal to noise ratio) Physical Interface  Physical makeup of skin  Layers of skin and their growth characteristics  Electrode-skin interface  Renewal of skin and interference of signal chain Med School Members Don’t Criticize Me Too Much! 12
  • 13. + Anatomical Introduction  Three primary layers of skin  Epidermis (outermost) layer has three sub layers (stratum germinativum, stratum granulosum, and stratum corneum)  Cells originate in deepest layer of epidermis, the stratum germiativum Human Skin Composition 13
  • 14. + Anatomical Introduction  New skin cells move outward to the stratum corneum  As they move outward they lose their nuclear material  Below the epidermis is the Dermis and Subcutaneous layer Human Skin Composition cont’d 14
  • 16. + Types of Brain Waves Alpha  Rhythmic in nature  Frequencies ranges from ~8Hz to ~13Hz  Amplitude ranges from 20μV to 200μV  Occur in an awake but relaxed state  Prominent in the occipital and parietal lobes of the brain  Sensitive to external stimuli  Usually measured with eyes closed  Visual stimuli causes replacement with asynchronous waves of higher frequencies but lower amplitudes 16
  • 17. + Types of Brain Waves Beta  Amplitude ranges from 5μV to 10μV  Generally associated with intense mental activity  Relaxed but alert  More intense mental tasks (reading, math, etc)  Problem solving, mild anxiety  High anxiety, OCD  Attentive to external stimuli (such as focus)  Strong presence in frontal lobe  Several types of beta brain waves  Beta I (13Hz to 15Hz)  Beta II (16Hz to 18Hz)  Beta III (19Hz to 26Hz)  Beta IV (27Hz to 32Hz) 17
  • 18. + Types of Brain Waves Theta and Delta  Frequencies range from 4Hz to 7Hz  Occur in parietal and temporal lobe  Prominent in transition to sleep from alpha relaxation  Also found when waking up from deep sleep  Known as “stage 1 sleep”  Frequencies smaller than 3.5Hz  “Slowest” waves with highest amplitude  Commonly found during sleep  Emitted from cortex  High delta may be result of head injuries, strokes, tumors, etc 18
  • 19. + Traditional Instrumentation of Brain Non-Invasive Electrodes  Easier to instrument patient  More susceptible to motion artifacts  Sensitive to about 10mV  Arranged in network on patients scalp  Time consuming to set up electrode array Invasive electrodes  More difficult to instrument patient  Less susceptible to motion artifacts  Sensitive to about 100μV  “Needle” inserted directly into scalp  Requires surgery to install and remove 19
  • 20. + Importance of Frequency Domain  The main advantage of frequency domain analysis is being able to visualize the periodicities of the signal.  This helps understand the physical nature of the signals.  The signals used in this project are time based and being able to visualize the periods of the functions helps in plotting the waves in intuitive patterns 20
  • 21. + Fourier Transform in EEG The Fourier transform describes a signal x(t) as a linear superposition of sines and cosines characterized by their frequency f. Where, This is also known as the Continuous Fourier Transform (CFT) of the signal x(t) and can be understood as the inner product of the signal x(t) with a parent function. (1) (2) 21
  • 22. + Fourier Transform in EEG (cont’d) This can now be written as Where the inverse transform is given by (1). Since the mother functions are orthogonal the Fourier Transform is unique. For example we can consider an EEG signal consisting of N discrete values sampled at a time Δt Where xj is a measurement taken at time tj=to+jΔ (3) (4) 22
  • 23. + Fourier Transform in EEG (cont’d) The Discrete Fourier Transform (DFT) of this signal is now defined as, Where k = 0,…,N-1 Its inverse transform can now be written as, (5) (6) 23
  • 24. + Fourier Transform in EEG (cont’d) Since we are considering real signals only, the following relationship is true Therefore the discrete frequencies examined are given by (8) while the resolution is given by (9) Since the Fourier Transform gives N/2 independent complex coefficiants, there are N values as in the original signal (nonredundant) (7) (8) (9) 24
  • 25. + What Does This Mean? 25
  • 27. + MEMS EEG Sensor (New)  Flexible substrate can conform to patients body contours  Easily removable  Will not cause skin ulceration  Silver layer makes it transparent for X-rays  Hydrogels use as conductive medium  Easy install, high resolution 27
  • 28. + Natural Frequency and Mode Shape  Insertion column displaced by shear force  Releasing shear force causes beam to vibrate and displace from it’s equilibrium state  This results in a non-harmonic motion  Certain initial displacements cause harmonic vibrations  These initial deflections are mode shapes  Corresponding frequencies are natural frequencies  Dependent on material (Young’s Modulus, density) and dimensions of cantilever beam  MEMS be happy! 28
  • 29. + Clamped-Free Cantilever Beam Equation of Newtonian motion is given by ¶2 u dt2 + k ¶4 u dx4 = f (x,t) = 0 (10) ¶2 u dt2 + EI rA ¶4 u dx4 = f (x,t) = 0 (11) 29
  • 30. + Beam Boundary Conditions Describe the initial boundary conditions. u(0,t) = 0 ux (0,t) = 0 utt (0,t) = 0 uxxxx (0,t) = 0 u(0,t) = 0 uxx (0,t) = 0 (12) (13) (14) Clamped Free Simply Supported 30
  • 31. + Equation Setup u(x,t) = F(x)G(t) (15) (16) From the boundary conditions on the previous page we get the following equations Plugging in (16) into the motion equation ( 10 and 11) (17) 31
  • 32. + Equation Setup Cont’d Simplification of (8) results in (18) Combining like variables yields (19) Where –Β4 is a constant b4 = rAw2 EI (20) 32
  • 33. + Equation Setup Cont’d Breaking up equation (10) yields two differential equations ¢¢¢¢F + b4 F = 0 (21) (22) Equation (21) has the general solution G(t) = Acosb2 ct + Bsinb2 ct While equation (22) has the general solution F(x) = Acosbx + Bsinbx +Ccoshbx + Dsinhbx (23) (24) 33
  • 34. + Equation Setup Cont’d By our boundary conditions we see that u(0,t) = ux (0,t) = 0 uxx (x,t) = uxxxx (x,t) = 0 (25) Now using (25) and applying our boundary conditions we see A + C = 0 B + D = 0 -Bsinbx - Acosbx + Dsinhbx + C coshbx = 0 -Bcosbx + Asinbx + Dcoshbx + Csinhbx = 0 (26) Equation (26) can now be represented in matrix form 34
  • 35. + Equation Setup Cont’d 0 1 0 1 1 0 1 0 -sinbx -cosbx sinhbx coshbx -cosbx sinbx coshbx sinhbx é ë ê ê ê ê ù û ú ú ú ú B A D C é ë ê ê ê ê ù û ú ú ú ú = 0 (27) -sinbx - sinhbx -cosbx - coshb -cosbx - coshb sinbx - sinhb é ë ê ê ù û ú ú (28) Solving the determinate yields the following frequency equation and frequencies cosbnx = 1 coshbnx wn = bnEI rA (29) (30) 35
  • 36. + Equation Setup Cont’d The mode shapes can now be given by Fn = An cosbnx + Bn sinbnx +Cn coshbnx + Dn sinhbnx (31) Using the boundary condition information that C = -A and D = -B -Bsinbx - Acosbx - Bsinhbx - Acoshbx -B(sinbx + sinhbx) = A(cosbx + coshbx) (32) B = -A cosbx + coshbx sinbx + sinhbx æ èç ö ø÷ It is now obvious that (33) 36
  • 37. + Equation Setup Cont’d The final mode shape equation can now be written as Fn = -An - cosbnl + coshbnl sinbnl + sinhbnl æ èç ö ø÷ sinbnx + cosbnx + cosbnl + coshbnl sinbnl + sinhbnl æ èç ö ø÷ sinhbnx - coshbnx é ë ê ù û ú (34) The first 6 mode shapes were calculated to see the natural harmonics and resonant frequencies in the platinum covered silicon insertion column! 37
  • 38. + Mode Shapes and Natural Frequencies Mode Shape Frequencies In HZ Mode Shape 1: 3470884.361 Mode Shape 2: 21751660.994 Mode Shape 3: 60905280.627 Mode Shape 4: 119350041.902 Mode Shape 5: 197294170.950 Mode Shape 6: 294723328.582 Mode shapes determine silicon insertion columns will not tear off Polyimide substrate!
  • 41. + Initial MEMS EEG Sensor Design 41
  • 42. + Initial MEMS EEG Sensor Design  Polyimide substrate for flexibility  Single crystal silicon columns coated with platinum for good conductivity  Crystalline silicon has predictable etch and growth properties and is dimensionally stable to 1400 Celsius  Silicon has favorable Youngs Modulus for strength  Conductive material to transmit current (many options explored)  Gold strands placed in spikes to collect surface currents 42
  • 43. + Model Geometry  500μm x 500μm x 12.7μm substrate layer  Thickness of substrate determined on commercially available polyimide from DuPont  12.7μm provided best combination of flexibility and strength 43
  • 44. + Model Geometry Cont’d  4x4 array of insertion columns inserted onto substrate  Pierce epidermis to pick up neural activity  Radius of 10.3μm  Height of 200μm  Height subject to change due to z-axis compression (installation)  Gold pads linked with gold fiber 44
  • 46. + Model Mesh  Free tetrahedral, brick, prism, and pyramid-type mesh explored  Free tetrahedral is most commonly used  Smaller mesh yields more accurate results but require more computing resources 46
  • 47. + Von Mises Shear Stress Analysis  Shear stress tested (translational)  Ensure sensor does not tear or deform under pressure  1e-2 N/m2 stress applied perpendicular to column  Damped using Rayleigh damping (linear combination of mass and stiffness)  3% critical damping 47
  • 48. + Von Mises Shear Stress Analysis 48
  • 49. + Von Mises Shear Stress Analysis 49
  • 50. + Compression Von Mises Stress  Electrode pressed into epidermis layer of skin  Force is in the z-axis  This force results in the compression of insertion columns  Necessary to compute to test compressional stability of Silicon 50
  • 54. + Electrode and Headset  Currently using NeuroSky ™ (TM) dry TGAM (ThinkGear ASIC Module) based sensor  Prorotype headset uses Gen I TGAM1 technology  MindWave headset uses Gen II TGAM2 technology  TGAT chip used in both headsets  NeuroSky ™ (TM) eSense  A/D  Biomedical instrumentation amplifier  Internal noise filter  After understanding NeuroSky ™ (TM) data structure and protocol we can design our own MEMS sensor 54
  • 55. + Headset Function  NeuroSky ™ (TM) chip trasmits information as raw bytes  Arduino microcontroller parses information from raw byte stream into ASCII string CSV  NeuroSky ™ (TM) bytes are in proprietary format and cannot be changed (hence motivation for designing our own sensor)  Serial monitor breaks down data into the following format  Signal strength (unsigned one byte integer from 0 to 200)  NeuroSky ™ (TM) “eSense”  Attention and Relaxation from 1 to 100 (40-60 neutral)  RAW Wave Values (16 Bit)  Signed 16 bit integer ranging from -32768 to 32767  Two bytes (first high order bit of the twos compliment value, second is low order bit)  Relative EEG strengths (Delta, Theta, low-Alpha, high-Alpha, low-Beta, high-Beta, low- Gamma, mid-Gamma. Data Breakdown 55
  • 59. + Headset Function  Open source plotting tool Processing used to visualize data  Data is read through the COM port (indexed through the Processing sketch) and mapped to a real time plotter  Datalogging functionality to be implemented in a further software release Graphing Software 59
  • 61. + Headset Function  Script BrainPWM running on Arduino  Responsible for mapping NeuroSky ™ (TM) “eSense” to a PWM value at a certain threshold  Pin 13 used on Arduino at 9600 baud rate  Initialized state of pin is LOW  State transitions to HIGH when eSense reaches indexed valie PWM Control 61
  • 63. + Present Issues  Headset is highly susceptible to motion artifacts  Connection strength is heavily dependant on external conditions (humidity, temperature, conditions of skin)  60Hz frequency filtering (Notch) not adequate and headset experiences noise in certain environments with overhead power lines  No robust electrical isolation Headset Reliability 63
  • 64. + Present Issues  NeuroSky ™ (TM) “black-box” values for attention and relaxation  We do not know the algorithms used for generation of these values  Further simulation of MEMS sensor and studying gen I prototype will allow us to come up with our own data scheme  Reverse engineer NeuroSky ™ using MEMS technology Data Values and Parsing 64
  • 66. + Future Work  Concentrate on one specific part of architecture to study for research  Many options (MEMS sensor, filtering schemes, instrumentation amplifiers, data structures, etc)  Thus narrowing down area of interest  Phase out prototype headset use and use research grade NeuroSky ™ (TM) developer headset  Further simulation of MEMS sensor  Fabrication  EMI/EMC  Material science  Continue working with Med School Area of Interest 66
  • 67. + Future Work Hardware/Software Focus Areas • Developer headset • Wireless transmission (XBee, Bluetooth, etc) • OpenBCI headset/microcontroller 67
  • 69. + Conclusions  Proof of concept demonstrated in operational environment  Data structure parsing and coding complete  Real time data visualizer adapted successfully  Headset integration complete  Prototype headset and servo to be delivered to OU Med School for further testing (March/April 2016) 69
  • 70. + Conclusions Linked to NeuroSky TM eSense (Concentration) 70
  • 71. + References  Arduino Brain Library Errors http://forum.arduino.cc/index.php?topic=90605.0  ECE690 BioFeedback (co-Author Abdrahamane Traore)  NeuroSky ™ EEG Brainwave Data https://github.com/kitschpatrol/Brain  Programmer Error Arduino http://forum.arduino.cc/index.php?topic=28686.0  MindFlex EEG Setup http://service.mattel.com/instruction_sheets/P2639-0920G1.pdf  Quantitative Electroencephalography http://www.sciencedirect.com/science/article/pii/S0987705308000233  Quantitative analysis of EEG signals Time frequency methods and Chaos theory https://vis.caltech.edu/~rodri/papers/thesis.pdf  EEG With Arduino https://sites.google.com/site/chipstein/home-page/eeg-with-an-arduino 71
  • 72. + References (cont’d)  Time Frequency Analysis of EEG Waveforms http://www.timely-cost.eu/sites/default/files/ppts/2ndTrSc/Niko%20Busch%20- %20Time%20frequency%20analysis%20of%20EEG%20data.pdf  FFT of EEG Data http://jama.jamanetwork.com/article.aspx?articleid=391249  Time-Frequency Decomposition http://sccn.ucsd.edu/eeglab/workshop06/handout TP_Jung_Workshop_Time_Frequency_Analysis.pdf  Cassification of Electroencephalogram (EEG) Signal Based on Fourier Transform and Neural Network http://ethesis.nitrkl.ac.in/4749/1/109EE0640.pdf  Frequency Analysis of Healthy & Epileptic Seizure in EEG using Fast Fourier Transform http://ijergs.org/files/documents/FREQUENCY-82.pdf  Using Novel MEMS EEG Sensors in Detecting Drowsiness Application https://www.cs.tau.ac.il/~nin/Courses/Seminar14a/Drowsiness.pdf  ECE790 (co-author Darena and Mark) 72

Editor's Notes

  1. Describe our headset EEG probe
  2.  ALPHA BRAINWAVES are slower than beta and can represent a relaxed awareness in the mind.    This rhythm is seen when the brain sets itself to rest or reflect. Alpha rates are increased by closing the eyes and relaxing, yet are offset by opening one's eyes or any concentrated effort.    Alpha is usually best detected in the frontal regions of the head, on each side of the brain. Alpha is the major rhythm seen in normal relaxed adults and is typically regarded as the common relaxation mode beyond the age of 13. 
  Alpha brainwaves move towards deep relaxation, imagination and intuitive thinking, as they accompany: a relaxed mind after complex thinking into a mode of relaxation meditation and setting the mind's attention to itself, away from outside distractions recovery from stressful thoughts and emotional despair
  3. BETA BRAINWAVES are characteristic of an engaged mind, which is highly alert and well focused.    Beta activity is quick-connect, fast activity and tends to dominate the normal waking state of consciousness when-attention is directed towards the outside world.   Typically detected in the frontal lobes (where decisions are managed), Beta is usually seen on both sides of the brain in geometric distribution. It may be absent or reduced in areas of brain damage. It is generally regarded as a normal rhythm and tends to be the dominant rhythm in those who are alert, anxious or have their eyes open. 
  Beta brainwaves are engaged when the brain is aroused or processing activities, such as: involved conversations with others that command your full attention complex problem solving and assessment of situations public speaking, lectures or teaching information    
  4. THETA BRAINWAVES can indicate drowsiness, daydreaming, the first stage of sleep or 'indirect' imagination/thinking.   Theta activity is not often seen in awake adults (unless engaged in a meditative practice), but is perfectly normal in alert children up to 13 years and in most sleep.   A Theta state can be regarded as a gateway to hypnagogic states that lay between being awake and falling asleep. Often Theta entrainment can promote vivid flashes of mental imagery as one becomes receptive to brain/mind information beyond one’s typical conscious awareness. Theta has also been identified as a part of learning, memory and reductions in stress. 
  Theta brainwaves are often related to: accessing subconscious information that eludes the conscious mind hynagogic states like 'daydreaming' reductions in body rhythms, such as: heart rate and breathing. DELTA BRAINWAVES can reveal deep sleep or slow-wave 'background' thinking.    Much like bass sound, Delta tends to be the highest in amplitude and the slowest waves. Delta is often associated with deep sleep. Certain frequencies, in the delta range, have been shown to trigger the body's healing and growth mechanisms.   Interestingly, Delta is the dominant rhythm in infants up to one year, as well as stages 3 and 4 of dreamless sleep. 
  Delta brainwaves are often related to and indicate: the lowest brain frequencies, possibly indicating subconscious thoughts and information deep and refreshing sleep that allows the body and brain to rest and repair. extremely deep meditation and hyper-relaxed mind states
  5. For N=2 this is called the Nyquist frequency
  6. In the first frames of the animation, a function f is resolved into Fourier series: a linear combination of sines and cosines (in blue). The component frequencies of these sines and cosines spread across the frequency spectrum, are represented as peaks in the frequency domain (actually Dirac delta functions, shown in the last frames of the animation). The frequency domain representation of the function, , is the collection of these peaks at the frequencies that appear in this resolution of the function.
  7. Pic: f(x,t) – initial force u(x,t) – initial displacement Also called the “wave equation” Where E = YM rho = density I = area moment of inertia A = cross sectional area
  8. (3) Fixed at both ends (4) Free has no shear (5) Simply supported has no moment Since power 4 we need 4 boundary conditions Since motion equaton has power 4 we need 4 boundary conditions (Clamped and Free)
  9. 6). By seperation of variables F = displacement term G = velocity term 7). Dot = time derivative dash = spatial derivative
  10. 9) Where c^2 = EI/rho*A Rho is radius of curvature E is elastic modulus I is moment of intertia Omega is frew of vibration
  11. 19. For a nonzero solution the determinate must be zero r
  12. Signal strength (unsigned one byte integer from 0 to 200) NeuroSky ™ (TM) “eSense” Attention and Relaxation from 1 to 100 (40-60 neutral) RAW Wave Values (16 Bit) Signed 16 bit integer ranging from -32768 to 32767 Two bytes (first high order bit of the twos compliment value, second is low order bit) Relative EEG strengths (Delta, Theta, low-Alpha, high-Alpha, low-Beta, high-Beta, low-Gamma, mid-Gamma.