Eeg Circuit Design: NSF Project
Eeg Circuit Design: NSF Project
Eeg Circuit Design: NSF Project
NSF Project
Electrode circuit
EEG sensing Interference
Chopper stabilized LNA (a) core topology and (b) complete topology
Sum
Chan 1 Ref DRL Gnd AM Mod
XFMR
To PC
Nyquist Theorem
The highest frequency which can
the Nyquist frequency, so the result of sampling is nothing like the input:aliasing.
For practical purposes the
sampling rate should be 10 higher than the highest frequency in the signal.
recording. If one electrode is silent, it is called monopolar recording. The reference sites: ear lobe, mastoid, nose.
reduces shared artifacts. Electrodes should be placed on the sites with the strongest gradients of the potentials under training.
artifacts can be detected by visual inspection. Eye blinks can be excluded from data analysis. EMG should be taken into account during
EEG recorded at Cz
EEG recorded at T5
checks 2) acquisition parameters must be checked daily and keep the same 3) the same procedures must be employed in all individuals 4) all artifacts must be eliminated or taken into account prior to spectral analysis.
EMG Artifact
EMG artifact starts as low as 12 Hz and ranges
to 300 Hz. Most of the spectrum lies between 30-150 Hz. Sites F3, F4, T3, T4, P3, P4 can pick up EMG the massester and temporalis muscles. Posterior electrodes can pick up EMG from occipitalis, trapezius and supraspinal muscles. To avoid this type of artifact one can relax or position the head properly or change slightly the position of electrode. Fz, Cz, Pz can give a relatively pure EEG signal.
EKG artifact
ECG artifacts occur from the electrodes that pick
up activity from underlying pulsating blood vessels in the scalp. EKG artifact gets more prevalent with aging.
grounding of the equipment (both computer and amplifies). It could be also eliminated by a so called notch filter which selectively removes 50 (60 for the US) Hz activity from the signal. This noise could be attenuated by obtaining good contact of electrodes with the scalp. The electrode impedance less than 10 kOhms is desirable.
Reviewing EEG
EEG is characterized by: 1) voltage 2) frequency (is used for BF) 3) spatial location (is used for BF) 4) inter-hemispheric symmetries 5) reactivity (reaction to state change) 6) character of waveform occurrence (random,
from the peak of the wave to the trough of the wave. Varies from 10 mcV to 100 mcV with average around 20-50 mcV.
certain frequency range of EEG. Term monorhythmic means that a particular portion of EEG shows a rhythmic component in a singular frequency. Term polyrhythmic means that several rhythmic frequencies are present in EEG. The presence of large-amplitude delta-activity may indicate infarct or other lesion.
of EEG may pick up artifacts, such as eye movements and muscle activity, and therefore should be evaluated with caution. Despite the use of artifact rejection algorithms, the failure to accurately distinguish true physiological rhythmicity from the artifacts is a serious shortcoming of current software systems and requires the expert assessment.
out from the background activity. It is called a spike if it has the duration less than 70 msec. It is called a sharp wave if it has the duration between 70 and 200 msec. The presence of large amplitude spikes and waves may indicate the presence of epilepsy.
condition.
condition
EEG spectrums
Three conditions (EC, R, M)
are compared to Eyes Opened condition. Two peaks (in theta and alpha band) with different scalp distribution are observed. Reading and math produce big (but different) changes in alpha band and small changes in theta and beta bands. Note that alpha activities are different for all four conditions both in distribution and
idling rhythm Irregular theta working activity Reading and math produce alpha rhythms that are different in frequency and location.
short-lasting quasistationary epochs corresponding to what Lehmann et al. (1987) have called brain functional micro-states. EEG reflects the changes in the state of neuronal networks rather than specific aspects of information processing.
Normal distribution
When many independent
random factors act in an additive manner to create variability, data will follow a bell-shaped distribution called the Gaussian distribution. This distribution is also called a Normal distribution.
Although no data follows
that mathematical ideal, many kinds of data follow a distribution that is approximately Gaussian
parameter in the population with some brain dysfunction, then this parameter must has a different, not Gaussian distribution. There are statistical tests that measure this difference.
merely taking a percentage of the normal population who have the most evidence of inattention and continuous activity and labeling them as having a disease. In fact, it is unclear whether the signs of ADHD represent a bimodal distribution in the population or one end of a continuum of characteristics. This is not unique to ADHD as other medical diagnoses, such as essential hypertension and hyperlipidemia, are continuous in the general population, yet the utility of diagnosis and treatment have been proven. Nevertheless, related problems of diagnosis include differentiating this entity from other behavioral problems and determining the appropriate boundary between the normal population and those with ADHD.
patients complains (the issue of organicity) 2) to identify the weakness of electrophysiological organization of the brain (the issue of neurotherapy design) 3) to evaluate the efficacy of treatment ( the issue of treatment evaluation) Thatcher, 1999
often used in NDB, because of simplicity and relative uniformity of recording conditions. 2) Active tasks depend of many uncontrolled factors, such as intensity of stimuli, the subjects involvement, the distance from stimuli, etc. There are no standards for active conditions.
What is an EEG?
l l
EEG stands for electroencephalogram EEG signals are created by measuring the difference in electrical currents across neuron membranes Electrodes attached to the body pick up these signals There can be a only a few electrodes or many attached to the head
37
EEG signals
l
Many naturally occurring signals in the human body effect EEG signals Frequency Analysis helps to separate the different signals
38
4 to 8 Hz 8 to 13 Hz above 13 Hz
Electrode placement
l
40
Related Research
l
Creating a Brain Computer Interface (BCI) has been a goal for researchers since computers were first introduced BCIs could help patients with motor disabilities use computers or mobility platforms What is necessary: Amplification Filtering Classification Control
41
Large programs researching BCIs: Wadsworth Center in Albany Graz University of Technology in Austria Problems facing the programs: Data transfer rate Efficiency Differences between test subjects Learning curve for new users
42
43
Amplifier Board
l l
Built in previous semester Based on Thomas Colluras design, founder of Brainmaster Two stage amplifier
l l
7805 voltage regulator power supply Can use 9V battery or 6V-35V DC power supply
44
Amplifier Schematic
45
Amplifier Design
Stage 1 Gain of 50 Common Mode Rejection Ratio Provides noise reduction and signal centering Stage 2 Gain of 390 Capacitors stabilize power supply
l l
l l
46
Capacitors:
l
l
l l l
(2) 1K 1/4W 5%
(3) 130K 1/4W 5% (2) 200K 1/4W 5% (2) 10M 1/4W 5%
l l
(1) 0.47uF 400V polypropylene (P474J) (3) 0.1uF 400V polypropylene (P104J) (2) 0.001uF 400V polypropylene (P103J) (1) 10uF 6.3VDC Tantalum
l
l
Integrated Circuits:
l l l
(3) OP-90 amplifiers (1) 620AN amplifier (1) LM7805C voltage regulator
Other:
l
Analog-Digital Converter
l l l
Current board is a Keithley DAS-1701ST Installed in borrowed computer Must be moved but face PCI interface problem
48
Keithley KPCI-1307
l l l l l l l
100k samples/sec 16 single ended or 8 differential inputs AutoZero capability filters out drift 32 digital I/O
3 clock/timer
drivers included VHDL program or DriverLINX software options Price : $680
49
VHDL Implementation
l
Download code to Flex10k20 chip on Altera board Board receives signals from the KPCI-1307 and controls mechanical devices
50
DriverLINX Implementation
l
Create DLLs for data acquisition and signal routing Interface can be programmed in C C++ Visual Basic Active X
51
EEG Amplifier Order parts Assembly Testing Data Acquisition Board Order board Installation of board Installation of drivers and software
52
Resistors: (1) 10K 1/4W 5% (2) 1K 1/4W 5% (3) 130K 1/4W 5% (2) 200K 1/4W 5% (2) 10M 1/4W 5% (2) 200K 1/4W 5% (1) 51K 1/4W 5%
Capacitors: (1) 0.47uF polypropylene (P474J) [$1.62] (3) 0.1uF polypropylene (P104J) [$0.74]
Integrated Circuits: (3) OP-90 amplifiers [$2.35] (DIP package was not available when placing orders so SOIC package was substituted with the use of an 8-pin SOIC to DIP adapter. Price reflects cost of DIP package, as this should be
Other: (1) Set of 3 conductor signal leads [$14.40] (3) Disposable electrodes for each testing session [$0.24]
53
KPCI-3107 16 analog single-ended or 8 analog differential. 32 digital outputs PCI interface CAB-1284CC-2 STP-36
l l
54
Real-time data acquisition (with test panels) Analog/Digital I/O programming uses C++, VB, and Active X Real-time Triggering via driver
allows user to specify trigger voltage and action to take after device is triggered.
55
The test panel allowed for verification that the acquisition board was functioning correctly
Eyebrow and eye blinks were recorded and graphed using the A/D board.
56
T wo B l i n k s
57
58
Build a low-noise case for STP-36 break-out boards. Calibrate gain for the EEG Amp input signal into an analog differential input channel. Research and learn how to use programming knowledge into a DriverLINX program. Program driver for KPCI-3107 board to output needed digital signal.
59
Classification (Detection)
Signal Acquisition
Application Interface
Feedback
The electrode position of 16 channels placed as shown in Fig. of frontal area (F3 and F4), central area (C3, Cz and C4), parietal area(P3, Pz and P4)
T4
T3
C3
C4
The grounding electrode and referencing electrode are placed at forehead and right ear lobe respectively.
EEG signal are digitized at 1024 samples/sec, resolution 16bit/sample. Signal were analog bandpass filtered between 1.5 and 100 Hz.
FPGA Architeture
FPGA-
Field-programmable gate-array
Designers Choice
PALs (programmable array logic) PLAs (programmable logic array) Architecture not scalable; Power consumption and delays play an important role in extending the architecture to complex designs Implementation of larger designs leads to same difficulty as that of discrete components
Designers Choice
Quest
Two dimensional array of customizable logic block placed in an interconnect array Like PLDs programmable at users site Like MPGAs, implements thousands of gates of logic in a single device
Employs logic and interconnect structure capable of implementing multi-level logic Scalable in proportion with logic removing many of the size limitations of PLD derived two level architecture
Based on the principle of functional completeness FPGA: Functionally complete elements (Logic Blocks) placed in an interconnect framework Interconnection framework comprises of wire segments and switches; Provide a means to interconnect logic blocks Circuits are partitioned to logic block size, mapped and routed
Basic
building block
Understand and define design requirements Design description Behavioural simulation (Source code interpretation) Synthesis Functional or Gate level simulation Implementation Fitting Place and Route Timing or Post layout simulation Programming, Test and Debug
Field Programmability
Field programmability is achieved through switches (Transistors controlled by memory elements or fuses) Switches control the following aspects
Distributed memory elements controlling the switches and configuration of logic blocks are together called Configuration Memory
Vary from vendor to vendor. All share the common property: Configurable in one of the two positions ON or OFF Can be classified into three categories:
Desired properties:
Minimum area consumption Low on resistance; High off resistance Low parasitic capacitance to the attached wire Reliability in volume production
Due to Moores law, many ASIC market requirements now met by FPGAs
- Eg. Virtex II Pro has 4 processors, 10 Mb memory, IO
FPGAs (or programmable logic) is the fastest growing segment of the semiconductor industry!!
Cost FPGA Cost Advantage FPGA FPGA Cost Advantage Cost Advantage ASIC Cost ASICAdvantage Cost Advantage Production Volume
Taxonomy of FPGAs
FPGA
SRAM Programmed
Island
Cellular
IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS, VOL. 4, NO. 2, APRIL 2010
FPGA-Based
low-cost eld-programmable gate-array (FPGA)-based braincomputer interface (BCI) multi-media control system
Low cost Small size Flexible Real-time control
a light-emitting diode stimulation panel instead of cathode ray tube or liquidcrystal display
Brainwave-acquisition circuit
SSVEP acquisition
System Schema
Block diagram
Simulation panel
Contact-less Capacitively coupled sensor Without any need for gel Electronic readout circuit
CIRCUIT DESIGN
CIRCUIT DESIGN
A. B. C. D. E.
Capacitive Sensor Instrumentation Amplier Notch FiltersSecond Amplication Stage PCB Layout
CIRCUIT DESIGN
Describes the single electronic stage for the conditioning of the analog acquired signal.
CIRCUIT DESIGN
Power supply Acquisition and signal conditioning Processing and transmission of digital data to PC.
CIRCIUT DESIGN
EEG Machine
By The All-American Boys Featuring SloMo
Motaz Alturayef Shawn Arni Adam Bierman Jon Ohman
Summer/ Averager
A/D Converter
High-Pass Filter
Processor
Electrode Input 2
Preamplifier
Amplifier
Low-Pass Filter
Physiology of Neurofeedback
Brain waves divided into distinct frequency bands:
Delta: 0-3 Hz, Associated with slow wave sleep Theta: 4-7 Hz, Associated with drowsiness or arousal Alpha: 8-13 Hz, Associated with relaxed concentration or contentment Beta: 14-30 Hz, Associated with intense concentration, high levels of thought activity
Physiology Continued
Synchronization of Brain waves is possible
External stimuli used to synchronize brain wave frequencies
Our project will use both audio and video stimuli to synchronize waves
Design Aspects
Low signal levels require very low noise devices Battery powering could introduce too much signal noise unless properly shielded Two channels sufficient to measure frequency content
Differential voltage measurements Fifth electrode along scalp midline to create unbiased ground
Risks
Too much noise in system
Will distort signal and render it useless Can use commercial electrodes, conductive paste Filters should assist in removing noise, also use shielding techniques for battery and twisted pairs for wires
Memory Options
Two types
RAM (Volitile) ROM (Non-Volitile)
SD Card Flash
Easy to load
Spansion Memory
8 MBIT Storage 3.0V Supply No Bus Contention Memory controller in Altera FPGA
Controller allows access to program and read data from memory Controller will also transfer data to audio/video controller for output
Output Flow
Risks
Not enough room in Flash for both audio and video signals
Can revert to SD Card where more space is available
PC : (Matlab or LabView)
Analyze the brainwave for frequency content and find the dominant frequency. Two Approaches of doing this: 1. Signal as a whole and do Power Spectral Density (PSD) analysis. 2.Divide the signal into 4 frequency bands then do PSD.
Risks
Not being able to debug the code with real brainwave signals. Synchronising the PC output with the whole system.
I/O needs Readily available 32-bit Nios II embedded processor & SOPC Builder configuration & integration Quartus II - Scalable environment
DE2 Risks
Risks
Too much reliance on built-in features Input data usable? (ADC conversion) Potential usage of development boards many options may spread team too thin
Processor Testing
Input Signals
User Input on LEDs Verify Electrode/ADC sample and store, as audio output Check DF result and store using 7-segment displays/LEDs Show difference between UI and DF on LED/7 segment
Processor Testing
Output Signal
Stored Electrode/ADC signal to PC, output as audio on PC
Wait State
Between samples illuminate LED
Budget
PCBs (3) 100 DAQ 150 Electrode Tips & Wires 50 Serial Cable 10 Serial Port & Controller 20 A2D Port & Controller 25 Onboard Memory 10 Audio Port, Controller & Headphones 70 Video Port, Controller & Monitor 300 SD Card, Card Slot & Controller 80 FPGA 100 USB Blaster Controller 40 Power 20 Misc 50 Total $ 1,025
Topics[9]
Exp. design and ERPs SPM for EEG-MEG 2D interpolation 1st level analysis 2nd level analysis Time as another dimension Time-frequency analysis Conclusion
114
Event-Related Potentials (ERP) & Event-Related Fields (ERF) ERP/F Quantification Approaches
Peaks, latency, area-under-curve
Connectivity
115
Stimulus/Event Onset
116
Averaging
117
Reflects reliable changes in potential that are strongly timelocked to stimulus onset (i.e. are synchronous over trials)
118
sensor
+ + +
119
IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS, VOL. 4, NO. 4, AUGUST 2010
A preamplier, A band-pass lter An analog-to-digital converter (ADC) Designed to amplify and lter the EEG signal
The gain of the EEG amplier and acquisition unit was set to about 5040 times with the frequency band of 0.1100 Hz.
DESIGN CONSIDERATIONS
A. Effects of Interference B. Amplifier requirements
System design
System design
A. Amplifier design B. Filter Stages C. Driven right leg circuit D. Power Supply design E. Construction of the system
SAMPLING CIRCUIT
A. Signal Condition
Circuit
Ciucuit
Performances
1) Amplifier gain is variable with 5000, 10000,
20000, or 30000.
2) Common mode rejection ratio is 102dB. 3) Pass-band frequency is with 0.12Hz-35.4Hz. 4) Input impedance is 113M.
References
[1] http://en.wikipedia.org/wiki/EEG [2] Design of a Compact Amplifier and Signal Conditioning Module for Wireless EEG Monitoring, Ashwin K. Whitchurch Member, IEEE, Jose K. Abraham [3] Novel Hydrogel-Based Preparation-Free EEG Electrode, Nicolas Alexander Alba, Robert J. Sclabassi, Mingui Sun, IEEE TRANSACTIONS ON NEURAL SYSTEMS AND REHABILITATION ENGINEERING, VOL. 18, NO. 4, AUGUST 2010 [4] Design Of An Electronic Device For Brain Computer Interface Applications, . Palumbo,P. Vizza,P. Veltri, MeMeA 2009 - International Workshop on Medical Measurements and Applications [5] Design and Evaluation of a Capacitively Coupled Sensor Readout Circuit, toward Contact-less ECG and EEG, Daniel Sard, Andrzej Cichockiand Atila Alvandpour, 2010 IEEE [6] Design of Portable Multi-Channel EEG Signal Acquisition System , Lin ZHU, Haifeng CHEN, Xu ZHANG, IEEE
References
[7] Design and Implementation of a Wireless Multi-Channel EEG Recording, R. Dilmaghani, M. Ghavami, K. Cumar, A Dualeh, S. Gomes Da Sousa, R. Salleh Mohd, CSNDSP 2010 [8] Development of a Low-Cost FPGA-Based SSVEP BCI Multimedia Control System, Kuo-Kai Shyu, Member, IEEE, Po-Lei Lee, Ming-Huan Lee, Student Member, IEEE, IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS, VOL. 4, NO. 2, APRIL 2010 [9] Joseph Brooks (ICN)Maria Joao (FIL) Methods for Dummies 2007Wellcome Department For Neuroimaging [10] A Micro-Power EEG Acquisition SoC With Integrated Feature Extraction Processor for a Chronic Seizure Detection System, Naveen Verma, Ali Shoeb, Jose Bohorquez, IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL. 45, NO. 4, APRIL 2010 [11]Design of a Compact Amplifier and Signal Conditioning Module for Wireless EEG Monitoring, Ashwin K. Whitchurch (a), Member, IEEE, Jose K.Abraham (a), Senior Member, IEEE, Meghana A. Lonkar , 2007 IEEE Region 5 Technical Conference, April 20-21, Fayetteville, AR [12]Design on Sampling Circuit of EEG Signal Based on AT89C2051 Single-chip, Xiao-dong Zhang,Zhen-hai Zhang, 2009 Fourth International Conference on Innovative Computing, Information and Control