Добавил:
kiopkiopkiop18@yandex.ru t.me/Prokururor I Вовсе не секретарь, но почту проверяю Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Ординатура / Хирургия / Библиотека им академика М.И. Перельмана / Книга_6027_Библиотеки_им_академика_М_И_Перельмана.pdf
Скачиваний:
0
Добавлен:
31.08.2026
Размер:
29 Мб
Скачать
222 Y. F. Low and R. Martinez-Cancino
. MNE-Python: An open-source softwar e package for processing MEG and EEG
data in Python. It includes tools for preprocessing, source localization, and
statistical analysis, making it a versatile choice for researchers comfortable with
Python. . OpenVibe: An open-source software platform designed for brain-computer
inter­face (BCI) applications, which includes functionalities for processing and ana­lyzing EEG signals.
. BESA: A commercial software that is particularly well-suited for source analysis
and connect
ivity analysis of EEG and MEG data.

17.6 Concluding Remarks

We have explored several common preprocessing steps and shed light on the essential considerations for developing an effective preprocessing pipeline. To conclude, it is crucial to underscore that preprocessing techniques are not magical solutions capable of transforming poor-quality data into high-quality data. Rather, they serve to rene and enhance already good data, facilitating more accurate and meaningful analysis. It is important to remember that the foundation of any success­ful EEG analysis lies in the quality of the raw signalthere is simply no substitute for a clean, well-recorded signal. Therefore, while preprocessing is an indispensable step, it should always be complemented by rigorous data acquisition practices to ensure the best possible outcomes.

References

Allen, P. J., Josephs, O., & Turner, R. (2000). A method for removing imaging artifact from
continuous EEG recorded during functional MRI. NeuroImage, 12(2), 230–239. https://doi.org/
10.1006/nimg.2000.0599
Arad, E., Bartsch, R. P., Kantelhardt, J. W., & Plotnik, M. (2018). Performance-based approach for
movement artifact removal from electroencephalographic data recorded during locomotion. PLoS One, 13(5), e0197153. https://doi.org/10.1371/journal.pone.0197153
Artoni, F., Menicucci, D., Delorme, A., Makeig, S., & Micera, S. (2014). RELICA: A method for
estimating the
org/10.1016/j.neuroimage.2014.09.010
Bailey, N. W., Biabani, M., Hill, A. T., Miljevic, A., Rogasch, N. C., McQueen, B., Murphy, O. W.,
& Fitzgerald, cleaning EEG dataPart 1: Algorithm and application to oscillations. Clinical Neurophysiol- ogy, 149, 178–201. https://doi.org/10.1016/j.clinph.2023.01.017
Bailey, N. W.,
& Fitzgerald, P. B. (2023b). RELAX part 2: A fully automated EEG data cleaning algorithm that is applicable to event-related-potentials. Clinical Neurophysiology, 149, 202–222.
org/10.1016/j.clinph.2023.01.018
reliability of independent components. NeuroImage, 103, 391–400. https://doi.
P. B. (2023a). Introducing RELAX: An automated pre-processing pipeline for
Hill, A. T., Biabani, M., Murphy, O. W., Rogasch, N. C., McQueen, B., Miljevic, A.,
https://doi.
17 EEG Preprocessing and Artifact Handling 223
Bigdely-Shamlo, N., Mullen, T., Kothe, C., Su, K. M., & Robbins, K. A. (2015). The PREP
pipeline: Standardized Neuroinformatics, 9, 16.
Cohen, M. X. (2014). 6.5
Theory and practice (pp. 65–66). The MIT Press.
0023
Das, R. K., Martin, A., Zurales, T., Dowling, D., & Khan, A. (2023). A survey on EEG data analysis
software. The
de Cheveigné, A. (2023). Is EEG is better left alone? bioRxiv, 2023.2006.2019.545602. https://doi.
org/10.1101/2023.06.19.545602
de Cheveigne, A., & Nelken, I. (2019). Filters: When, why, and how (not) to use them. Neuron,
102(2),
Debener, S., Thorne, J., Schneider, T. R., & Viola, F. C. (2010). 3.1 Using ICA for the analysis of
multi-channel EEG Oxford University Press.
Delorme, A. (2023). EEG is better left alone. Scientic Reports, 13(1), 2372. https://doi.org/10.
1038/s41598-023-27528-0
Delorme, A., & Makeig, S. (2004). EEGLAB: An open source toolbox for analysis of single-trial
EEG dynami 134(1), 9–21.
Delorme, A., Palmer, J., Onton, J., Oostenveld, R., & Makeig, S. (2012). Independent EEG sources
are dipolar.
Dimigen, O. (2020). Optimizing the ICA-based removal of ocular EEG artifacts from free viewing
experiments. NeuroImage,
Frølich, L., & Dowding, I. (2018). Removal of muscular artifacts in EEG signals: A comparison of
linear decomposition
017-0074-6
Gabard-Durnam, L. J., Mendez Leal, A. S., Wilkinson, C. L., & Levin, A. R. (2018). The Harvard
automated processing software for developmental and high-artifact data. Frontiers in Neuroscience, 12.
org/10.3389/fnins.2018.00097
Gil Ávila, C., Bott, F. S., Tiemann, L., Hohn, V. D., May, E. S., Nickel, M. M., Zebhauser, P. T.,
Gross, J., biomarker discovery in clinical neuroscience. Scientic Data, 10(1), 613.
1038/s41597-023-02525-0
Gorjan, D., Gramann, K., De Pauw, K., & Marusic, U. (2022). Removal of movement-induced EEG
artifacts: Current
https://doi.org/10.1088/1741-2552/ac542c
Gratton, G., Coles, M. G. H., & Donchin, E. (1983). A new method for off-line removal of ocular
artifact. Electroencephalogro
doi.org/10.1016/0013-4694(83)90135-9
Hernandez-Pavon, J. C., Veniero, D., Bergmann, T. O., Belardinelli, P., Bortoletto, M., Casarotto,
S., Casula J., Miniussi, C., Mutanen, T. P., Rocchi, L., Rogasch, N. C., Sha (2023). TMS combined with EEG: Recommendations and open issues for data collection and analysis. Brain Stimulation, 16(2), 567–593.
Herrmann, C. S., Rach, S.,
related potentials: A brief tutorial. Brain Topography, 27(4), 438–450. https://doi.org/10.1007/
s10548-013-0327-5
Hill, A. T.,
pre-processing pipeline for developmental EEG recordings. Human Brain Mapping, 45(14), e70034.
Sciences, 5(2), 23. https://www.mdpi.com/2413-4155/5/2/23
280–293.
cs including independent component analysis. Journal of Neuroscience Methods,
https://doi.org/10.1016/j.jneumeth.2003.10.009
PLoS One, 7(2), e30135.
& Ploner, M. (2023). DISCOVER-EEG: An open, fully automated EEG pipeline for
state of the art and guidelines. Journal of Neural Engineering, 19(1), 011004.
, E. P., Farzan, F., Fecchio, M., Julkunen, P., Kallioniemi, E., Lioumis, P., Metsomaa,
Enticott, P. G., Fitzgerald, P. B., & Bailey, N. W. (2024). RELAX-Jr: An automated
https://doi.org/10.1002/hbm.70034
preprocessing for large-scale EEG analysis. Frontiers in
https://doi.org/10.3389/fninf.2015.00016
How many electrodes you will need. In Analyzing neural time series data:
https://doi.org/10.1016/j.neuron.2019.02.039
data. In Simultaneous EEG and fMRI: Recording, analysis, and application.
https://doi.org/10.1093/acprof:oso/9780195372731.003.0008
https://doi.org/10.1371/journal.pone.0030135
207, 116117.
methods. Brain Informatics, 5(1), 13–22.
pipeline for electroencephalography (HAPPE): Standardized processing
graphy and Clinical Neurophysiology, 55(4), 468–484. https://
Vosskuhl, J., & Strüber, D. (2014). Time–frequency analysis of event-
https://doi.org/10.1016/j.neuroimage.2019.116117
https://doi.org/10.7551/mitpress/9609.003.
https://doi.org/10.1007/s40708-
https://doi.
https://doi.org/10.
, M. M., Siebner, H. R., et al.
https://doi.org/10.1016/j.brs.2023.02.009
224 Y. F. Low and R. Martinez-Cancino
Hoffmann, S. (2009). Independent component analysis of ocular artifacts. https://hss-opus.ub.ruhr-
uni-bochum.de/opus4/frontdoor/index/index/docId/2223
Hu, S., Lai, Y., Valdes-Sosa, P. A., Bringas-Vega, M. L., & Yao,
montage and electrodes setup affect the measured scalp EEG potentials? Journal of Neural Engineering, 15(2), 026013.
Hyvärinen, A., & Oja, E. (2000). Independent component analysis: Algorithms and applications.
Jiang, X., Bian, G.-B., & Tian, Z. (2019). Removal of artifacts from EEG signals: A review.
Keil, A., Debener, S., Gratton, G., Junghofer, M., Kappenman, E. S., Luck, S. J., Luu, P., Miller,
Klug, M., & Gramann, K. (2020). Identifying key factors for improving ICA-based decomposition
Klug, M., Berg, T., & Gramann, K. (2024). Optimizing EEG ICA decomposition with data cleaning
Larsen, B. A., & Versace, F. (2024). EEG might be better left alone, but ERPs must be attended to:
Leutheuser, H., Gabsteiger, F., Hebenstreit, F., Reis, P., Lochmann, M., & Eskoer, B.
Lopez-Calderon, J., & Luck, S. J. (2014). ERPLAB: an open-source toolbox for the analysis of
Luck, S. J. (2014a). Apendix: Linear operations, nonlinear operations, and the order of processing
Luck, S. J. (2014b). Basic principles of ERP recording. In An introduction to the event-related
Luck, S. J. (2014c). An introduction to the event-related potential technique. MIT Press. Makeig, S., & Onton, J. (2011). ERP features and EEG dynamics: An ICA perspective. In The
Makeig, S., Bell, A. J., Jung, T.-P., & Sejnowski, T. J. (1996). Independent component analysis of
Mognon, A., Jovicich, J., Bruzzone, L., & Buiatti, M. (2011). ADJUST: An automatic EEG artifact
Monachino, A. D., Lopez, K. L., Pierce, L. J., & Gabard-Durnam, L. J. (2022). The HAPPE plus
Nunez, P. L., & Srinivasan, R. (2006). Electric elds of the brain: The neurophysics of EEG.
Oostenveld, R. (n.d.). High-density
Networks, 13(4), 411–430.
Neural
Sensors, 19
G. studies using electroencephalography and magnetoencephalography. Psychophysiology, 51(1), 1–21.
of
https://doi.org/10.1111/ejn.14992
stationary and mobile experiments. Scientic Reports, 14(1), 14119.
in
s41598-024-64919-3
Optimizing physiology, 205, 112441.
Comparison of the AMICA and the InfoMax algorithm for the reduction of electromyogenic artifacts in EEG data. 2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Osaka, Japan, 2013, pp. 6804-6807. https://doi.org/
10.1109/EMBC.2013.6611119
event-related potentials. Frontiers in Human Neuroscience, 8, 213.
fnhum.2014.00213
steps.
potential
Oxford
org/10.1093/oxfordhb/9780195374148.013.0035
electroencephalographic data. Advances in neural information processing systems 8: Proceedings of the 1995 conference (Vol. 8, pp. 145–151). The MIT Press.
detector based on the joint use of spatial and temporal features. Psychophysiology, 48(2), 229–240. https://doi.org/10.1111/j.1469-8986.2010.01061.x
Event-Related potential analyses. Developmental Cognitive Neuroscience, 57, 101140.
1016/j.dcn.2022.101140
Oxford
robertoostenveld.nl/electrode/#oostenveld2001
(5), 987. https://www.mdpi.com/1424-8220/19/5/987
A., & Yee, C. M. (2014). Committee report: Publication guidelines and recommendations for
https://doi.org/10.1111/psyp.12147
EEG data in mobile and stationary experiments. The European Journal of Neuroscience.
the late positive potential preprocessing pipeline. International Journal of Psycho-
In An introduction to the event-related potential technique (pp. 341–350). MIT Press.
technique (pp. 147– 183). MIT Press.
handbook of event-related potential components. Oxford University Press. https://doi.
(HAPPE+ER) software: A standardized preprocessing pipeline for event-related
University Press.
https://doi.org/10.1088/1741-2552/aaa13f
https://doi.org/10.1016/S0893-6080(00)00026-5
https://doi.org/10.1016/j.ijpsycho.2024.112441
In D. S. Touretzky, M. C. Mozer, & M. E. Hasselmo (Eds.),
https://dl.acm.org/doi/10.5555/2998828.2998849
EEG electrode placement. Robert Oostenvelds blog. https://
D. (2018). How do reference
https://doi.org/10.1038/
(2013).
https://doi.org/10.3389/
https://doi.org/10.
17 EEG Preprocessing and Artifact Handling 225
Palmer, J., Kreutz-Delgado, K., & Makeig, S. (2010). AMICA: An adaptive mixture of independent
component analyzers
Roach, B. J., & Mathalon, D. H. (2008). Event-related EEG time-frequency analysis: An overview
of measures nia Bulletin, 34(5), 907–926.
Ronca, V., Capotorto, R., Di Flumeri, G., Giorgi, A., Vozzi, A., Germano, D., Virgilio, V. D.,
Borghini, G., Optimizing EEG signal integrity: A comprehensive guide to ocular artifact correction. Bioen- gineering, 11(10), 1018.
Stergiadis, C., Kostaridou, V.-D., & Klados, M. A. (2022). Which BSS method separates better the
EEG signals? Control, 72, 103292.
Tsuchimoto, S., Shibusawa, S., Iwama, S., Hayashi, M., Okuyama, K., Mizuguchi, N., Kato, K., &
Ushiba, J. enhances EEG signal-to-noise ratios in intrinsic sensorimotor activity. Journal of Neuroscience Methods, 353, 109089.
van der Meer, J. N., Pampel, A., Van Someren, E. J. W., Ramautar, J. R., van der Werf, Y. D.,
Gomez-Herrero, G., Carbon-wire loop based artifact correction outperforms post-processing EEG/fMRI correc­tionsA validation of a real-time simultaneous EEG/fMRI correction method. NeuroImage, 125, 880–894.
Warbrick, T. (2022). Simultaneous EEG-fMRI: What have we learned and what does the
future hold?
Widmann, A., Schroger, E., & Maess, B. (2015). Digital lter design for electrophysiological
data
1016/j.jneumeth.2014.08.002
Winkler, I., Debener, S., Müller, K. R., & Tangermann, M. (2015, August 25–29). On the inuence
of high-pass international conference of the IEEE Engineering in Medicine and Biology Society (EMBC).
Yao, D., Qin, Y., Hu, S., Dong, L., Bringas Vega, M. L., & Valdes Sosa, P. A. (2019). Which
reference should
doi.org/10.1007/s10548-019-00707-x
Zhang, G., Garrett, D. R., & Luck, S. J. (2024a). Optimal lters for ERP research I: A general
approach for
Zhang, G., Garrett, D. R., & Luck, S. J. (2024b). Optimal lters for ERP research II: Recommended
settings for
psyp.14530
Zhang, G., Garrett,
effectiveness of artifact correction and rejection in event-related potential research. Psychophys- iology, 61(5), e14511. https://doi.org/10.1111/psyp.14511
and an analysis of early gamma band phase locking in schizophrenia. Schizophre-
(2021). Use of common average reference and large-Laplacian spatial-lters
Sensors, 22(6), 2262.
A practical approach. Journal of Neuroscience Methods, 250, 34– 46.
seven common ERP components. Psychophysiology, 61. https://doi.org/10.1111/
with shared components.
https://doi.org/10.1093/schbul/sbn093
Cartocci, G., Rossi, D., Inguscio, B. M. S., Babiloni, F., & Aricò, P. (2024).
https://www.mdpi.com/2306-5354/11/10/1018
A comparison of ve different algorithms. Biomedical Signal Processing and
https://doi.org/10.1016/j.bspc.2021.103292
https://doi.org/10.1016/j.jneumeth.2021.109089
Lepsien, J., Hellrung, L., Hinrichs, H., Moller, H. E., & Walter, M. (2016).
https://doi.org/10.1016/j.neuroimage.2015.10.064
https://doi.org/10.3390/s22062262
ltering on ICA-based artifact reduction in EEG-ERP. In 2015 37th annual
we use for EEG and ERP practice? Brain Topography, 32(4), 530–549.
selecting lter settings. Psychophysiology, 61. https://doi.org/10.1111/psyp.14531
D. R., Simmons, A. M., Kiat, J. E., & Luck, S. J. (2024c). Evaluating the
https://sccn.ucsd.edu/~jason/amica_a.pdf
https://doi.org/10.
https://
Chapter 18
Introduction to EEG Oscillations and Spectral Analysis
Ramon Martinez-Cancino and Yin Fen Low
Abstract Oscillatory brain activity reects the dynam
processes. Understanding these oscillations requires methods beyon d the time domain to reveal their frequency-domain information. This chapter introduces spectral analysis as the foundation for studying EEG oscillations. Beginning with the mathematical description of oscillatory processes, we build intuition around the core concepts of amplitude, frequency, and phase. We then show how the dot product provides the mathematical, geometric, and intuitive basis for Fourier anal­ysis. The discrete Fourier transform (DFT) is presented as a practical tool for decomposing EEG time series into the frequency domain, enabling precise charac­terization of oscillatory activity. Finally, we discuss the limitations of Fourier analysis and outline ways to address them. Rather than thoroughly presenting advanced methods in frequency analysis, this chapter aims to equip readers with the conceptual and analytical framework needed to begin studying EEG time series from a frequency-domain perspective.
Keywords Brain oscillations · Neural rhythms · Spectral analysis · Fourier
is · Dot product · Discrete Fourier transform · Power spectrum · Signal
analys processing
ic coordination of neural

18.1 Introduction

As you may have discovered in earlier chapters, electroencephalography (EEG) is a powerful tool for looking into the brain through its electrical activity. One of the most distinctive features of EEG activity is its rhythmic natur e – an attribute that extends beyond the human brain. In the 1870s, physician Richard Caton rst noted the presence of rhythmic electrical activity in the brains of animals (Caton, few
decades later, Hans Berger observed similar phenomena in humans (Berger,
1875). A
R. Martinez-Cancino (*) · Y. F. Low Brain Products GmbH, Gilching, Germany e-mail:
ramon.martinez@brainproducts.com; yinfen.low@brainproducts.com
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026 T.
Warbrick (ed.), The EEG Handbook,
https://doi.org/10.1007/978-3-032-20450-9_18
227
228 R. Martinez-Cancino and Y. F. Low
1929). Over time, researchers realized that these neural rhythmsare not random
uctuations but reect structured patterns of neural activity. Many theories propose that these oscillations help organize and synchronize neural activity across various spatial and temporal scales (Varela et al.,
2001; Ward, 2003; Buzsaki & Draguhn,
2004). Such oscillatory coordination has been linked to processes ranging from
ion and cognition to consciousness (Ward,
percept
2003; Buzsaki & Draguhn, 2004).
Although a fascinating topic, this chapter does not deal with the historical origins or biophysical mechanisms responsible for these rhythmic patterns. Instead, its goal is to provide a theoretical base for interpreting the information they convey. Rhythms have been our term of choice thus far, but moving forward, we will intentionally use the term oscillations to emphasize the cyclic, repetitive nature of brain electrical activity. Although brain rhythms and brain oscillations are often used interchange­ably in neuroscience, a gradual conceptual evolution – fueled in part by interdisci­plinary collaboration and the advent of rened analytical techniques – has prompted a shift toward the more precise term oscillat ions.
This chapter explores the foundations of oscillation analysis: spectral analysis. This
approach becomes more intuitive when we consider the brains electrical signals to be inherently oscillatory. Given the strongly oscillatory nature of EEG recordings, they have been characterized by the speed of these oscillations since their early days. For instance, in his rst observation of human EEG, Hans Berger described what we know today as Alpha and Beta waves, which have frequency ranges of 7–12 Hz and 12–30 Hz, respectively. Since that initial observation, rhythmic activity in EEG has been widely reported and studied due to its ability to characterize both normal and pathological brain states.
It is worth noting that embracing this o scillation-centric perspective is not just a
cal convenience. As Cohen (2014) points out, focusing on EEG oscillations
techni means
acknowledging that it captures a dynamic, multidimensional domain of brain activity. In this view, traditional event-related potentials (ERPs) represent only a fraction of the information available in the EEG signal (Cohen, oscillat
ion-based frequency analyses can reveal additional dimensions of brain
2014). Conversely,
dynamics that a purely time-domain approach might overlook (Herrmann et al.,
2014). This premise fundamentally shapes the content of the pages ahead.
In the
rst part of the chapter, we introduce a mathematical description to characterize oscillatory processes using a simple experimental setup. We discuss the concepts of frequency, phase, and amplitude. Next, we build the intuition that will allow us to justify the use of Fourier analysis, a key tool for frequency-domain analysis of brain oscillations. Following, we introduce the dot product as a founda­tion for Fourier analysis. We then present the Discrete Fourier Transform (DFT) as a practical implementation of this analysis. Throughout the chapter, the aim is to equip you with the conceptual outlook and intuition needed to understand the spectral analysis of EEG oscillations and unlock the rich information they contain in their frequency domain. Finally, we present some of the DFTs limitations and suggest alternative approaches. A list of further readings is also provided at the end of the chapter to complement the discussions.
18 Introduction to EEG Oscillations and Spectral Analysis 229

18.2 Character izing an Oscillatory Process

18.2.1 Fundamental Characteristics of an Oscillatory Process

Until now, we have been talking about frequency and oscillation without a proper introduction. We will address these concepts now. Let us consider a mass – the bob – suspended by a string from a xed point, free to swing in a vertical plane. This setup is known as a pendulum (see Fig. 18.1a). The bobs position at any given time can be describ
ed by its coordinates along the x and y axes. However, let us focus on its
motion along the x-axis.
From this perspective, as the pendulum swings, the projection (imagine its
shadow
) of the bob onto the x-axis traces a line between travels from one extreme to the other with variable speed: it moves fastest at the midpoint and slows to zero at the extremes, precisely at the instant it reverses direction. We can model the bobs position at time t, denoted x(t), with the following sine-wave expression (Eq. 18.1):
Let us break this expression into smaller elements:
A and +A. The mass
ðx tð Þ¼ A sin 2πft þ θðÞ 18: 1Þ
. A represents . sin is the sine function, which takes as
the maximum displacement of the motion around the midpoint.
its argument 2πft + θ.
. π (pi) is a fundamental constant approximately equal to 3.14159 , that is, the ratio
of a circles circumference to its diameter (Wikipedia, 2025). In angle measure­ment,
π radians is equal to 180 degrees.
. f is the frequency, indicating how many
full swings the bob makes in a unit
of time.
Fig. 18.1 Pendulum motion and corresponding sinusoidal oscillation. (a) Pendulum oscillating in a vertical plane, with its bobs displacement on the x-axis restricted to the range A to A. (b) A sinusoidal function describes the pendulums movement along the x-axis within this range
230 R. Martinez-Cancino and Y. F. Low
. θ is the phase (or phase angle offset), specifying where in its cycle the motion
starts at t 0.
Figure 18.1b shows the waveform generated by this function, and this is the
position
¼
of the bob over time. We have four important concepts to highlight here:
. Oscillation: Repetitive or cyclic variation in a system stat
pendulum example, a full swing of the bob – from one extreme to the other and back – exemplies an oscillation. This periodic motion can be described mathe­matically using sine or cosine functions.
. Amplitude: The maximum displacement from the mid
value, A, gives us an immediate idea of the sizeor strengthof the oscillation. This magnitude is related to the power or energy in each frequency – or frequency band – through the squared ampl itude of the oscillation.
. Frequency: Indicates how many full oscillations
in hertz (Hz), where 1 Hz equals one complete cycle per second. In our pendulum example, the frequency f captures the speed at which the pendulum swings back and forth.
. Phase: Species the starting
in the cycle the pendulum begins its motion. A non-zero phase implies the bob may already be going through a swing when we start observing it.
point of the oscillation at t ¼ 0. It determines where
occur in a unit of time, measured
e over time. In our
point of the oscillation. This

18.2.2 From Time to Frequency and Back

Consider now three sinusoids with different amplitudes and frequencies (Fig. 18.2a). When added together, they produce a more complex waveform that still contains all the original frequency components (Fig. 18.2b). This complex signal in the time
n can also be represented in the frequency domain by nding the signals
domai components distribution of amplitudes over frequencies (Fig.
conveys critical information on the power contribution to a signal from its
tation individual frequency components, and it is important to characterize the signal in this domain.
A neat theoretical demonstration, you might say – but not exactly how things play
out
in real-world scenarios. In practice, we are usually presented with the opposite challenge: Given a complex signal like the EEG, how can we identify and quantify its underlying frequency components? This task is the core of spectral or frequency analysis and is made possible by well-established signal processing methods like the Fourier analysis.
18.2c). This represen-
18 Introduction to EEG Oscillations and Spectral Analysis 231
Fig. 18.2 Composite of sinusoids at 5, 10, and 15 Hz and corresponding frequency representation (a). Sinusoids at three different frequencies: 5, 10, and 15 Hz. (b) Composite signal obtained by summing the three sinusoids in panel a. (c) Power spectrum of the composite signal shown in panel
b, showing peaks at the corresponding frequencies

18.3 Foundation for Spectral Analysis: The Dot Product

The dot product is a mathematical operation on two vectors – think of two equal­length sequences of numbers – that returns a single number. This operation is at the core of the Fourier transform.
Computing the dot product is relatively simple; given the vectors A ¼ [a
] and B ¼ [b1, b2, ..., bn] where n is the number of elements of the vectors, to
a
n
, a2, ...,
1
compute the dot product between A and B, defined as A B , you multiply each A vector element by their corresponding component of the vector B, and then sum up all the values from each product (E q.
n
A B ¼
i¼1
18.2).
aibi ¼ a1b1þ a2b2 þ þ anb
n
ð18:2Þ
The result of the dot product between two vectors can be interpreted in various
ways
depending on the context, although its denition remains consistent. For our signal processing application, a particularly useful perspective is its geometric interpretation. The dot product between the vectors A and B can also be dened by Eq.
18.3.
A B ¼ A
cos θ ð18: 3Þ
j Bj j
j
where θ is the angle between the vectors A and B, and | | represents the length of the vector. This relationship is depicted in Fig.
18.3a, where we have assumed that the
232 R. Martinez-Cancino and Y. F. Low
Fig. 18.3 Dot product between two vectors at different angles. Each panel illustrates the dot product between vectors A (red) and B (blue). The green vector represents the projection of A onto B, quantifying the component of A that lies in the direction of B. As the angle θ increases, the projection shortens and can become negative, as seen in panel c. (a) θ ¼ 30 (π/6) (b)
¼
θ 90 (π /2) (c) θ 150 (5π/6)
¼
vectors in question can be represented in a bi-dimensional space, e.g., A ¼ [2, 1], B ¼ [4, 0]. As the dimensions, or number of elements of the vectors grow, it may be
more complicated or even impossible to picture the graphical representation of the vectors, but essentially, the interpretation of the dot product will remain as in our 2D example. From this geometrical perspective, two common interpretations arise, associated with aligning and projecting one vector onto the
other. From the projec­tion perspective, the dot product is the length of the projection of A into the direction of B when the two vectors are placed so that their origins coincide (Weisstein,
is, how much of A lies alongthe direction of B. From the alignment
That
1999).
perspective, the dot product may act as an alignment score between these two vectors by indicating whether they point in similar directions or not. For example, see Fig.
18.3a, if θ < π /2 the cosθ > 0 and A B > 0, here the two vectors point mainly
in
the same direction, and the dot product is a score of how much. In Fig. 18.3b θ ¼ π /2 the cosθ ¼ 0 therefore A B ¼ 0, this indicates that these two vectors have ortho
gonal directions, like a perfect cross. The last case, in Fig.
when
θ > π/2 the cosθ < 0 and A B < 0 which indicates that these two vectors have
18.3c, shows the case
somehow opposite directions. It may already be obvious that, despite the interpre­tation followed, the dot product indicates how similar the vectors involved in the operation are.

18.4 Fourier Analysis

18.4.1 From Vectors to Sinusoids: The Fourier Connection

Nevertheless, why is there an insistence on discussing the dot product and its geometrical interpretation? This is because it creates a powerful intuition that goes beyond simple vectors. The same principle behind the dot product can be used to decompose complex signals into sinusoids using the Fourier analysis. Here is a hint: imagine a complex signal, a segment from an EEG recording, for example. This is equivalent to a large vector with dimension equal to the number of sample points. Then, imagine a pure sinusoid – a sinusoid with a single frequency. How would we