Professional Documents
Culture Documents
Bci - Unit 1 Notes
Bci - Unit 1 Notes
Brain-Computer Interface (BCI): A device that utilizes brain activity for direct control of
physical or virtual objects without using muscular activity or body movements.
Some Applications of BCI
✦ Improved communication and control for paralyzed and locked-in patients (e.g. stroke,
ALS, spinal injury patients)
✦ Applications in health and safety
E.g. Early detection, diagnosis, and treatment of symptoms
E.g. Alertness monitoring in critical occupations (e.g. night drivers, pilots, railway
“engineers”)
✦ Computer-aided education and learning
E.g. Brain-activity based presentation of material?
✦ Augmented cognition (brain-body actuated control)
E.g. Air Force research using hybrid brain-body interfaces for speeding up responses during
flight
✦ Entertainment and Security
E.g. Video games, TV/web browsing for patients,
E.g. Better lie detection devices and “brain fingerprinting
✦BCIs in Sci-Fi Fictions
Ex : Donovan’s Brain, 1953, Johnny Mnemonic, 1995 , The Matrix, 1999
BCI is simply a hardware and software communications system that enables humans to
interact with their surroundings by directly acquiring and analyzing neural signals between
the brain and the computer
A Brain Computer Interface (BCI – also called Brain Machine Interface) represents a non-
muscular channel for sending messages, “mental commands”, to an automated system such
as a robot, prosthesis or a cursor on a computer screen. (ie) BCI connects the brain with a
computer system.
Diagram of holiday greeting that Herbert Jasper sent to Hans Berger in 1938.
Unlike the conventional systems which are controlled by computer, the BCI is controlled by
human brain signal. Basically, BCIs are of active types which are controlled by means of
endogenous tasks such as motor imagery and mental arithmetic operations, and reactive types
that are controlled using external stimulation like auditory, visual and haptic.
BCI introduces a direct communication channel between the brain and the external world,
providing a special communication and control channel for people with disabilities, but also a
new control channel for those without disabilities.
The system does actually not use normal output pathways of the central nervous system, as
nerves or muscles do, but relies only on the identification and interpretation of the
physiological activity patterns in different areas of the brain.
At present, BCI have been proposed as a tool for diagnosing, treating and following up many
other neurophysiological and neuropsychological disorders
The various applications developed require different areas for signal recording and different
signal quality is needed; hence several recording methods are suitable for use:
1. EEG (ElectroEncephaloGraphy) :
2. fMRI (functional Magnetic Resonance Imaging)
3. MEG (MagnetoEncephaloGraphy)
4. PET (Positron Emission Tomography)
5. Optical Imaging
6. ECoG (ElectroCorticoGraphy)
Semi Invasive
The electrodes are placed on the exposed surface of the brain electrocorticography (ECoG)
It is called semi invasive but it still requires a craniotomy to implant the electrodes. For this
reason it is used only when surgery is necessary for medical reasons (epilepsy for example).
First, the block performs a pre-processing in order to reject artefacts and increase the signal
to noise ratio (SNR). It is also used to ensure that the extracted features are not contaminated
by
1. EMG (electromyography - electrical activity produced by skeletal muscles),
2. EOG (electrooculography - measurement of eye movements) or some other non-CNS
(central nervous system) artefacts.
2. Signal processing: Raw signals are preprocessed after acquisition (e.g., by band pass filtering) and
techniques for artifact reduction and feature extraction are used.
3. Pattern recognition and machine learning: This stage generates a control signal based on patterns in
the input, typically using machine- learning techniques.
The features extraction block identifies the parameters from the pre-processed signals thus
discriminating between different classes of commands. Some typical features used in
developed applications are the root mean square amplitude and power density in certain area
of the spectrum. The system can associate the recorded signal with a feature by using a
special classifier.
After the class feature is identified, the system can associate it with a command for the
application. Typical classifiers for BCI applications are:
1. Linear Support Vector Machine (LSVM),
2. Gaussian Support Vector Machine (GSVM),
3. Neural Network (NN),
4. Fisher Linear Discriminant (FLD) and
5. Kernel Fisher Discriminant (KFD).
The signal processing block processes all the recorded data and transforms the signals in
commands for the application.
The system must process all the data very fast in order to provide a real-time operation.
In order to produce a command, the user must execute a specific activity. Thus the
system can associate the produced signals with the generated command.
4. Sensory feedback: The control signal from the BCI causes a change in the environment. (e.g.,
movement of a prosthetic arm or a wheelchair, change in the grip of a prosthetic hand). Some of these
changes can be seen, heard, or felt by the user but in general, one can use sensors in the Environment such
as tactile sensors, force sensors, cameras, and microphones, and use the information from these sensors to
provide direct feedback to the brain via stimulation.
Figure 1.1. Basic components of a brain- computer interface (BCI)
5. Signal processing for stimulation: Before stimulating a particular brain region, it is important to
synthesize an activity pattern for stimulation that mimics the type of activity normally seen in the brain
region and that will have the desired effect. This requires a good understanding of the brain area being
stimulated and the use of signal processing (and potentially machine learning) to home in on the right
stimulation patterns.
6. Brain stimulation: The stimulation pattern received from the signal processing component is used in
conjunction with invasive or noninvasive stimulation techniques to stimulate the brain.
1.5.1 Microelectrodes
Electrodes with tip sufficiently small to penetrate a single cell in order to obtain potential
from within the cell are called as microelectrode. The size of the microelectrode must be
small with respect to the cell dimensions to avoid cellular injury and cell damage thereby
changing the cell’s behavior.
A microelectrode is simply a very fine wire or other electrical conductor used to make
contact with brain tissue.
A typical electrode is made of tungsten or platinum-iridium alloy and is insulated except
at the tip, which measures around 1μm in diameter (a neuron’s cell body diameter is in
the range of tens of μm).
In addition to small in size, the electrode used for measuring intracellular potential must
also be strong enough so that it can penetrate the cell membrane and remain mechanically
stable.
Microelectrodes have tip diameters ranging from approximately 0.05 to 10μm.
Microelectrodes are of two types-
1. Metal Microelectrode and
2. Micropipet Microelectrode
1. Metal Microelectrode:
• Metal microelectrodes are formed by electrolytic ally etching the tip of fine tungsten or
stainless steel wire or platinum iridium alloy to the desired size. Then the wire is coated
with an insulating material almost to the tip.
• Some electrolytic processing like chloriding the tip is also carried out to reduce the tip
impedance. The electrode-electrolyte interface takes place where the metal tip contacts the
electrolyte either inside or outside the cell.
• The etched metal needle is then supported in a larger metallic shaft that can be insulated.
This shaft serves as a mechanical support for the microelectrode and lead wire is
connected to it.
• The microelectrode and the supporting shaft are insulated by a thin film of polymeric
material or varnish. Only the extreme tip of the electrode remains uninsulated.
Metal Microelectrode
Figure: Position of Electrode
2. Micropipet Microelectrode
Non-metallic microelectrode is called micropipette
Consists of a glass micropipet with diameter of tip about 1micrometre.
The micropipet is filled with an electrolyte usually 3 M KCI which is compatible with the
cellular fluid.
In intracellular recordings neuroscientists, use a glass micropipette electrode filled with a
weak electrolyte solution similar in composition to intracellular fluid.
EEG
Computer representation
Subject head Analog to on computer
with 10-20 Digital
electrode Converters
system (ADC) CRO
Oscilloscope
Limitations of MEG
1. More expensive than EEG systems
2. Bulky
3. Not portable
4. Require a magnetically shielded room to prevent interference from external magnetic
signals,
1.7.2 MicroECoG
• The relatively large size of ECoG electrodes is being addressed by researchers using
microECoG electrodes.
• These microelectrodes are only a fraction of a millimeter in diameter and spaced only 2–3
mm apart in a grid.
• This opens up the possibility of decoding fine movements, such as the movements of
individual fingers, or even speech, without actually penetrating the brain.
The point is that without using unmeasured Vn and R, it is possible to reset the reference
potential.
For bipolar derivation: Let A and B be the potentials at electrodes A and B, respectively.
By definition, the bipolar derivation EEG A−B = A − B amounts to EEGA − EEGB, because
the EEGs at A and B in the monopolar derivation are given as
EEGA = A – R and EEGB = B − R, respectively.
1.9.2 Channel selection
Multichannel EEG is generally used in BMIs where by performing EEG channel
selection
(1) Improves BMI performance by removing irrelevant channels and
(2) Enhances user convenience from the use of lesser channels
1.9.3 Spectral filtering
Appropriate spectral filters, such as band-pass or low-pass filters, can enhance the
accuracy and robustness of BMI by reducing the influence of activities that are lying
outside of the frequency regions of interest
For example, band-pass filters can reduce the negative effects of the power line noise,
EMG, EOG, and other brain activities lying outside the desired frequency band.
Recent electroencephalograph is configured to acquire data at a sampling frequency
exceeding 1,000 Hz. Indeed, since the required bandwidth is from 1 Hz up to 50 Hz or
less, a high sampling rate such as 1,000 Hz is not necessary.
A filter widely used in preprocessing of EEG is a Butterworth filter, which has an infinite
impulse response (IIR). Since an IIR filtering can bring phase distortion, zero phase
filtering should be implemented
1.9.4 Spatial filtering
Various simple spatial filters are used in order to isolate the relevant spatial information
embedded in the signals. This is achieved by selecting or weighting the contributions
from the different electrodes.
Two simple and popular spatial filters are the common average reference (CAR) and the
surface Laplacian filters.
These two filters make it possible to reduce the background activity.
The CAR filter subtracts the average value of all the electrodes from the electrode of
interest, while the Laplacian filter subtracts the average of the surrounding channels from
the channel of interest.
The most popular spatial filtering algorithm, which is increasingly used for preprocessing
in BMI and has proved to be very efficient, is the common spatial pattern (CSP)
algorithm This algorithm is based on the decomposition of the EEG signals into spatial
patterns.
These patterns are selected in order to maximize the differences between the classes
involved once the data have been projected onto these patterns.
Determining these patterns is performed using a joint diagonalization of the covariance
matrices of the EEG signals from each class.
1.9.4 Other preprocessing algorithms
Preprocessing algorithms - common spatial pattern (CSP) algorithm, stationary
subspace analysis
Spectro-spatial filters - Moving average filtering, subsampling or baseline correction.
1.10 Artifacts removal or Artifact Reduction Techniques
Eye movements, eye blinks, eyebrow movements, talking, chewing, and head movements
can all cause large artifacts in the EEG signal.
Subjects are therefore typically instructed to avoid all movement, and powerful artifact
removal algorithms are used to exclude or filter out portions of the EEG signal corrupted
by muscle artifacts.
Additional noise sources include changing electrode impedance and varying
psychological states of the user due to boredom, distraction, stress, or frustration
(e.g., caused by BCI mistranslation).
Artifacts in BCIs are any undesirable signals that originate from outside the brain.
In EEG BCIs, one often encounters 50/60Hz power- line noise and artifacts originating
from within the subject’s body.
Artifacts originating from within the subject’s body may include:
(1) Rhythmic artifacts due to respiration and heartbeat
(2) Signal distortion or attenuation due to skin conductance changes
(3) Eye movement and eye blink artifacts which appear as high- amplitude deflections in
brain signals such as EEG with frequencies in the range 3 – 4Hz
(4) muscle artifacts caused by movements of the head, face, jaw, tongue, neck, and other
parts of the body; EMG artifacts tend to occur maximally in the 30Hz or higher
frequency range.
A true brain- computer interface should possess the ability to eliminate or reduce such
artifacts so that the signals being used to control a device originate solely from the brain.
• Artifacts that originate from outside the body such as 50/60Hz power- line noise can
often be reduced by using a Faraday cage, a physical enclosure made of conducting
material, to block external electrical interference.
• When this is not possible, one can remove such noise in software using filtering
techniques
1.10.1 Thresholding
The simplest method for automatic artifact rejection is thresholding
If the magnitude or some other characteristic of a recorded EOG or EMG signal exceeds
a pre- determined threshold, the brain signals recorded during that epoch are deemed to
be contaminated and rejected.
A similar thresholding technique can be applied directly to brain signals
The subject is made to make various kinds of eye or body movements to calibrate the
threshold.
Limitation
A major drawback of the thresholding method is that not all artifact- contaminated data
may be rejected by this method
The goal of such artifact removal methods is to identify and excise artifacts from data
while preserving neurological phenomena useful for BCI
1.10.2 Band- Stop and Notch Filtering
Band- stop filtering is a useful artifact reduction technique that attenuates the components
of a signal in a specific frequency band and passes the rest of the components of the
signal.
Can be performed by first transforming the signal to the frequency domain (e.g., using
FFT), filtering out the desired frequency band, and using the inverse FFT to transform
back to the time domain.
A commonly used band- stop filter is a notch filter set to the 59–61 Hz band (in the
United States) for filtering out the 60 Hz power- line noise artifact.
Another band- stop filter set to a low frequency band (e.g., 1–4 Hz) is sometimes used in
EEG recordings to reduce EOG artifacts.
Low- pass filtering is sometimes used to exclude EMG artifacts.
Limitation
However, filtering approaches work only when the brain signal of interest does not fall
within the frequency range of artifacts.
For example, low- pass filtering may remove EMG artifacts, but if the BCI utilizes high-
frequency components of the brain signal, such filtering may eliminate these useful
components as well.
A simple way of modeling the effect of artifacts on a recorded brain signal is to assume
that the effect is additive.
For example, if EEGi(t) is the EEG signal recorded from electrode i at time t, then a
model could be
Limitation
• Applying linear modeling for removing EMG artifacts is more difficult because EMG
artifacts arise from multiple muscle groups, and an additive model with a single EMG(t)
signal as for EOG may not be appropriate
Limitation
However, the assumption that artifacts are uncorrelated with the brain signal may not
be appropriate in certain cases, and PCA may be unable to separate these artifacts
from the true brain signals.
1.10.5 Independent Component Analysis (ICA)
ICA overcomes some of the shortcomings of PCA by seeking statistical independence
rather than decorrelation.
ICA decomposes brain signals (e.g., EEG) from a set of electrodes into a set of
“components” that are as statistically independent
By visually inspecting the components or automatic detection using a learned model
for artifacts, one can often identify components due to EOG, EMG, or other artifacts
1.10.6 Independent Component Analysis (ICA)
ICA overcomes some of the shortcomings of PCA by seeking statistical independence
rather than decorrelation.
ICA decomposes brain signals (e.g., EEG) from a set of electrodes into a set of
“components” that are as statistically independent
By visually inspecting the components or automatic detection using a learned model
for artifacts, one can often identify components due to EOG, EMG, or other artifacts
1.10.5 Artifact reduction using ICA.
(A) Five seconds of EEG data
(B) Output of ICA when applied to
the data in (A).