Brain Computer Interface EEG Signal Processing 1st Edition PDF
Brain Computer Interface EEG Signal Processing 1st Edition PDF
Visit the link below to download the full version of this book:
https://medidownload.com/product/brain-computer-interface-eeg-signal-processing-
1st-edition/
Chapter 1 Introduction..................................................................................... 1
Chapter 4 Software and Hardware for EEG for Capturing and Analysis... 59
Appendix.......................................................................................................... 187
Index................................................................................................................. 211
v
Preface
Brain computer interface, popularly known as BCI, is an emerging field of
research, finding its use in many societal and medical applications. BCI
comprises of four distinct steps: (1) neuro-imaging for acquisition of the
digital data from the brain, (2) processing of the neuro-image data for
isolating various characteristic features of the brain, (3) classification and
mapping of the features to understand the intended motif and actions, and
(4) interfacing the action to the device or computer to perform the intended
actions. There is more than one method to perform each of these steps. Also,
there is directed research to innovate and optimize these methods to make these
steps efficient and autonomous in achieving BCI.
In this book, we choose electroencephalography (EEG) as the neuro-imaging
technique for performing the data acquisition for BCI. In the rest of the steps the
algorithms, computing techniques, visualization, and interpretation of features
extracted from EEG were discussed. Therefore, this is the name of the book Brain
Computer Interface: EEG Signal Processing. EEG has many spatio-temporal
variations and has different ways to acquire an EEG signal. Matching computing
techniques and interpretation methods are being researched upon so as to make use
of these spatio-temporal variations. The features extracted from EEG are exploited
in actuation of devices and computers so as to realize the BCI. Another aspect of
neuro-imaging signature of the brain is observed to be fairly similar when a subject
performs a similar task but differs in the level for different activities.
We believe that EEG signals, if processed using the right methodology, will
help in determining the cognitive behavior of a subject. One aspect of the
cognitive behavior is intelligence. As mentioned earlier, the EEG signals are the
signature of the brain activity of different regions of the subject.
This book gives a basic introduction to various neuro-imaging techniques,
with a special emphasis to EEG and its advantages. Further, the basic
classification criteria for different components present in EEG are discussed. It
gives varying perspectives as how to understand the scope of processing the EEG
signal and its association with popular applications.
The signal processing methods that are useful in processing and identifying
EEG artifacts to detect the blinks, saccadic movements, and fixes in the EEG
data are discussed. Classification of EEG signals for detection of target or non-
target objects was determined based on the presence of P300 signal while
acquiring the EEG while the subject is exposed to a corresponding scenario or
probe. The saccadic movement fixes and the blinks determine the focus and way
in which the subject scan through the scene or the scenario placed in his/her
view.
In a recent development, EEG has proven to bring out new insights related to
the activity of the brain in a non-invasive manner. It is used in different
applications to measure the intended effect of any activity that the subject
vii
viii Preface
performs or any stimuli that is given to the subject. With the help of artificial
intelligence, analysis of EEG has reached a new level as it allows us to perform
intractable operations that were otherwise not possible using classical
techniques. In the area of neuro-marketing, it has given a deeper insight so as
to how consumers react to certain products. In the medical field, prior prediction
of seizures in epileptic patients is progressing rapidly. In military applications,
the EEG is used to measure the responsiveness of the candidate under
examinations. The most popular area of application of EEG is brain controlled
interface (BCI), where devices are being controlled with the help of the brain
signals.
In this book, we have discussed selected signal processing methods to extract
the blink, saccade, and fix artifacts from the EEG signal obtained from different
subjects.
Further, this book discusses and proposes a design to build a low-cost yet
robust EEG acquisition system that has all the elements from acquisition of the
EEG to its processing and visualization. The students will benefit immensely to
build and experiment with such a system ab-initio. Some of the interesting
applications derived by processing the EEG and electrooculography (EOG)
signal were discussed to make the reading more interesting.
Processing and analyzing the P300 signal using odd-ball experiments makes
this book more interesting. The basis of EEG being the key elements of BCI
(brain computer interface) is discussed. Further, how to detect and classify
abnormal EEG signals such as epileptic seizure is discussed for students perusing
research in the field of IoMT (Internet of medical things).
For a quick benefit to the students and research community, we append some
of the MATLAB® codes illustrating how to process, analyze, and visualize the
EEG signal and the artifacts present in EEG. A quick run of these MATLAB®
codes will help the reader to consolidate some of the key concepts explained in
this book.
Narayan Panigrahi and Saraju P. Mohanty
ix
x Authors
He is widely credited as the designer for the first digital watermarking chip in
2004 and first for the low-power digital watermarking chip in 2006. He is a
recipient of 12 best paper awards, Fulbright Specialist Award in 2020, IEEE
Consumer Technology Society Outstanding Service Award in 2020, the IEEE-
CS-TCVLSI Distinguished Leadership Award in 2018, and the PROSE Award
for Best Textbook in Physical Sciences and Mathematics category in 2016. He
has delivered ten keynotes and served on nine panels at various international
conferences. He has been serving on the editorial board of several peer-reviewed
international journals. He has mentored two post-doctoral researchers, and
supervised 12 PhD dissertations, 26 M.S. theses, and ten undergraduate projects.
1 Introduction
OVERVIEW
Electroencephalography, or EEG, is one of the best and oldest non-invasive
neuro-scanning methods. The EEG is also the most preferred one of the foremost
choices for doctors and surgeons for diagnosis of neuro- or brain-related ail-
ments. With the advent of modern computing algorithms, the traditional EEG is
under metamorphosis. Many novel systems are being devised using EEG and
computing methods innovating different systems. Some of the prominent ap-
plications of EEG are brain computer interface (BCI), neuro-marketing, gaming,
and pre-detection and diagnosis of seizures are widely used. This chapter in-
troduces the EEG to the first-time reader of this book with a general definition of
EEG. It analyzes the systemic and functional perspective of a human brain.
Further, it gives a survey of prominent neuro-scanning systems comparing and
contrasting these systems with EEG. The normal characteristic of the EEG signal
acquired from the human brain is discussed and analyzed. Based on the signal
characteristic, the physical interpretation of the state of the subject is classified.
To motivate the first-time reader of this book, some popular medical and com-
mercial applications are also discussed in this chapter. Some of the basic
questions regarding EEG are answered in this introductory chapter, including
“What is an EEG?” and “Why is an EEG performed?”
DOI: 10.1201/9781003241386-1 1
2 Brain Computer Interface
The brain consists of trillions (approx ~218 for a healthy adult) of cells, half
of which are neurons and the other half of which help and facilitate conducting
the signal among neurons and the rest are controlling the activity of neurons. The
neurons are densely interconnected via synapses, which act as gateways of in-
hibitory or excitatory activities of the brain.
1. Cerebrum is the largest part of the brain and is composed of right and
left hemispheres. It performs all cognitive functions like interpreting
touch, vision and hearing, as well as speech, reasoning, emotions,
learning, and fine control of movement. Also it retains the experiences
in the form of memory.
Human Brain
FIGURE 1.1 Hierarchical view of the functional parts and sub-parts of the brain.
Introduction 3
FIGURE 1.2 (a) The cerebrum is divided into four lobes: frontal, parietal, occipital, and
temporal (b) The cortex contains neurons (grey matter), which are interconnected to other
brain areas by axons (white matter). The cortex has a folded appearance. A fold is called a
gyrus and the valley between is a sulcus.
Further, the cerebrum is divided into two halves: the left cerebrum and right
cerebrum are often loosely referred as the right brain and left brain or the right
and left hemispheres (Figure 1.2(b)). They are joined by a bundle of fibers called
the corpus callosum that transmits messages from one side to the other. Each
hemisphere controls the opposite side of the body. If a stroke occurs on the right
side of the brain, the left arm or leg may be weak or will be paralyzed.
Not all functions of the hemispheres are shared. In general, the left hemi-
sphere controls speech, comprehension, arithmetic, and writing. The right
hemisphere controls creativity, spatial ability, artistic, and musical skills.
Generally, the left hemisphere is dominant in hand use and the right hemisphere
controls use language in about 92% of people.
areas that serve very specific functions. It’s important to understand that each lobe
of the brain does not function alone. There are very complex relationships between
the lobes of the brain and between the right and left hemispheres.
a. Frontal Lobe
• Personality, behavior, emotions
• Judgment, planning, problem solving
• Speech: speaking and writing (Broca’s area)
• Body movement (motor strip)
• Intelligence, concentration, self awareness
b. Parietal Lobe
• Interprets language, words
• Sense of touch, pain, temperature (sensory strip)
• Interprets signals from vision, hearing, motor, sensory, and memory
• Spatial and visual perception
c. Occipital Lobe
• Interprets vision (color, light, movement)
d. Temporal Lobe
• Understanding language (Wernicke’s area)
• Memory
• Hearing
• Sequencing and organization
• Broca’s area: lies in the left frontal lobe (Figure 1.2(a)). If this area is
damaged, one may have difficulty moving the tongue or facial muscles to
produce the sounds of speech. The person can still read and understand
spoken language, but has difficulty in speaking and writing (i.e., forming
letters and words, doesn’t write within lines) – called Broca’s aphasia.
• Wernicke’s area: lies in the left temporal lobe (Figure 1.2(a)). Damage
to this area causes Wernicke’s aphasia. The individual may speak in long
sentences that have no meaning, add unnecessary words, and even create
new words. They can make speech sounds; however, they have difficulty
understanding speech and are therefore unaware of their mistakes.
• Cortex: is the surface of the cerebrum. It has a folded appearance with
hills and valleys. The cortex contains 16 billion neurons (the cerebellum
has 70 billion = 86 billion total) that are arranged in specific layers. The
nerve cell bodies color the cortex grey-brown, giving it its name – gray
matter (Figure 1.2(b)). Beneath the cortex are long nerve fibers (axons)
that connect brain areas to each other, called white matter.
The folding of the cortex increases the brain’s surface area, allowing
more neurons to fit inside the skull and enabling higher functions. Each
fold is called a gyrus, and each groove between the folds is called a
sulcus (Figure 1.2(b)). There are names for the folds and grooves that
help define specific brain regions.
• Thalamus: Ref Figure 1.3(a), serves as a relay station for almost all
information that comes and goes to the cortex. It plays a role in pain
sensation, attention, alertness, and memory.
• Pituitary gland: Ref Figure 1.3(a), lies in a small pocket of bone at the
skull base called the sella turcica. The pituitary gland is connected to the
hypothalamus of the brain by the pituitary stalk. Known as the “master
gland,” it controls other endocrine glands in the body. It secretes hor-
mones that control sexual development, promote bone and muscle
growth, and respond to stress.
• Hypothalamus: Ref Figure 1.3(a), is located in the floor of the third
ventricle and is the master control of the autonomic system. It plays a
role in controlling behaviors such as hunger, thirst, sleep, and sexual
6 Brain Computer Interface
FIGURE 1.3 (a) Coronal cross-section showing the basal ganglia. (b) CSF is produced
inside the ventricles deep within the brain. CSF fluid circulates inside the brain and spinal
cord and then outside to the subarachnoid space.
1.4.3 MEMORY
Memory is a complex process that includes three phases viz. encoding (deciding
what information is important), storing, and recalling. Different areas of the brain
are involved in different types of memory functions. Your brain has to pay at-
tention and rehearse in order to port and move an event from short-term memory
to long-term memory, which is called encoding.
reading, to memorize the sentence you have just read, so that the next
one makes sense.
• Long-term memory is processed in the hippocampus of the temporal
lobe and is activated when you want to memorize something for a
longer time. This memory has unlimited content and duration capacity.
It contains personal memories as well as facts and figures.
• Skill memory is processed in the cerebellum, which relays information
to the basal ganglia. It stores automatic learned memories like tying a
shoe, playing an instrument, or riding a bike.
switch is turned on, a lightbulb will beam. A neuron that is excited will transmit
its energy to neurons within its vicinity.
Neurons transmit their energy, or “talk,” to each other across a tiny gap called
a synapse (Figure 1.4). A neuron has many arms called dendrites, which act like
antennae picking up messages from other nerve cells. These messages are passed
to the cell body, which determines if the message should be passed along.
Important messages are passed to the end of the axon where sacs containing
neurotransmitters open into the synapse. The neurotransmitter molecules cross
the synapse and fit into special receptors on the receiving nerve cell, which
stimulate that cell to pass on the message.
• Glia cells: Glia (Greek word meaning “glue”) are the cells of the brain
that provide neurons with nourishment, protection, and structural sup-
port. There are about 10 to 50 times more glia than nerve cells and are
the most common type of cells involved in brain tumors.
FIGURE 1.4 Nerve cells consist of a cell body, dendrites, and axon. Neurons com-
municate with each other by exchanging neurotransmitters across a tiny gap called a
synapse.
Introduction 9
Microglia are the brain’s immune cells, protecting it from invaders and
cleaning up debris. They also prune synapses.