Добавил:
Sekretar
kiopkiopkiop18@yandex.ru
t.me/Prokururor I Вовсе не секретарь, но почту проверяю
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Ординатура / Хирургия / Библиотека им академика М.И. Перельмана / Книга_6027_Библиотеки_им_академика_М_И_Перельмана.pdf
X
- •Preface
- •Acknowledgments
- •About This Book
- •Contents
- •List of Figures
- •List of Tables
- •Editor and Contributors
- •1.3 EEG and Other Neuroscience Methods
- •1.4 The Future of EEG
- •1.1 EEG Technology: Past to Present
- •1.2 What Do We Know About the EEG Signal?
- •1.5 Conclusions
- •References
- •2.1 Physiological Origins of the EEG
- •2.2 Signals of the EEG
- •2.3 Concluding Summary
- •References
- •3.1 Introduction
- •3.2 General Organization
- •3.3 Finding Your Way Around: Brain Atlases
- •3.3.2 Talairach Atlas and MNI Coordinates
- •3.3.4 Accessing and Using Atlases
- •3.4 Putting into All Together
- •3.5 Conclusion
- •References
- •4.1 Introduction
- •4.2 Overview of the Peripheral Nervous System
- •4.3 Basic Anatomical Unit of the PNS: Ganglia and Nerves
- •4.4 Anatomy of Somatic Nervous System
- •4.4.1 Receptors
- •4.4.1.1 Vision
- •4.4.1.2 Audition
- •4.4.1.3 Vestibular System and Balance
- •4.4.1.4 General Sensory Modalities
- •4.4.2 Somatic Sensory System
- •4.5 Anatomy of the Autonomic Nervous System
- •4.5.1 Sympathetic Nervous System
- •4.5.2 Parasympathetic Nervous System
- •4.6 Cranial Nerves
- •4.7 Function of the PNS and CNS as a Unit
- •4.8 Concluding Remarks
- •References
- •5.1 Introduction
- •5.2 Head Anatomy and Signal Propagation
- •5.3.1 The Eyes and Ocular Potentials
- •5.3.2 Facial Muscles and EMG
- •5.3.3 Sweat Glands and Skin Potentials
- •5.3.4 Blood Vessels and Heartbeat
- •5.4 Conclusion
- •References
- •6.1 Introduction
- •6.2.1 What Is a Brain State?
- •6.2.2 Brain States Measured with EEG
- •6.3 Examples of Brain States
- •6.3.1 Awake State Sleep State
- •6.3.2 Consciousness States: Presence Loss (Anesthesia)
- •6.4 Pathological Brain States
- •6.4.1 Traumatic Brain Injury
- •6.4.2 ADHD
- •6.5 Framework of Brain States
- •6.6 Concluding Summary
- •References
- •7.1 Introduction
- •7.3 Identifying Task Processes Within a Trial Segment
- •7.3.2 Cross-Trial Comparability and Flexible Time-Locking
- •7.4 What Does Activity Look Like on the Timeline?
- •7.5 Conclusion
- •References
- •8.1 Introduction
- •8.2 Setting a Research Question
- •8.3 Setting a Hypothesis
- •8.3.2 Testing the Hypothesis
- •8.4 Design of the Study
- •8.4.1 Contextualization of the Hypothesis
- •8.4.1.1 Experimental Paradigm
- •8.4.1.2 EEG Index
- •8.4.1.3 Group/Sample
- •8.4.2 Implementation of the Study
- •8.4.2.1 Paradigm/Task Implementation
- •8.4.2.2 Measurement Precision
- •8.4.2.3 Experimental Protocol
- •8.4.2.4 Pilot Testing
- •8.5 Concluding Summary
- •References
- •9.1 Introduction
- •9.2 Why Is Statistics Needed in EEG Research?
- •9.3 When Is Statistics Applied During EEG Data Analysis?
- •9.3.1 Raw EEG Data
- •9.3.2 Individual-Level (First-Level) Analysis
- •9.3.3 Group-Level (Second-Level) Analysis
- •9.3.3.1 Statistical Hypotheses
- •9.3.4 Application of Statistical Inference
- •9.3.5 Interpretation and Inference
- •9.4.1 Hypotheses (Upper Plane of Fig. 9.2)
- •9.4.2 Population and Sample Data (Bottom Plane of Fig. 9.2)
- •9.4.3 Sample Statistic (Middle Plane of Fig. 9.2)
- •9.5 Conclusion
- •References
- •10.1.1 Why Pilot Testing Matters
- •10.2 How to Prepare and Run the Pilot Testing
- •10.2.1.1 Signal Quality
- •10.2.1.2 Task Parameters
- •10.2.1.3 Instructions
- •10.2.1.4 Participant Experience
- •10.2.1.5 Equipment Setup
- •10.2.1.6 Procedures
- •10.2.1.7 Questionnaires
- •10.1 What Pilot Testing Is
- •10.3 Concluding Summary
- •References
- •11.1 Introduction
- •11.2 Lab Management
- •11.2.1 Admin and Organisation
- •11.2.2 Hardware and Software Maintenance
- •11.2.3 Lab Logbook
- •11.3 Keep Your Own Lab Notebook
- •11.4.1 Pre-measurement
- •11.4.2 Measurement
- •11.4.3 Post Measurement
- •11.5 Conclusion
- •References
- •12.1 Introduction
- •12.2 Components of the System
- •12.2.1 Detecting the Signal: EEG Electrode Technology
- •12.2.1.1 Passive Electrode Plus Gel
- •12.2.1.2 Active Electrodes Plus Gel
- •12.2.1.3 Passive Electrode and Saline Soaked Sponges
- •12.2.1.4 Dry Electrodes
- •12.2.1.5 Electrode Positions
- •12.2.2 Detecting the Signal: Sensors for Other Measures
- •12.2.2.1 Bipolar Peripheral Electrophysiology
- •12.2.2.2 Peripheral Physiological Sensors
- •12.2.2.3 GSR
- •12.2.2.4 Respiration
- •12.2.2.5 Photoplethysmography (PPG)
- •12.3 Conclusion
- •References
- •13.1 Purpose and Features
- •13.2 Before Starting Your Study
- •13.2.1 General Parameters
- •13.2.2 Special Applications
- •13.2.3 Real-Time Processing
- •13.3 During a Measurement Session
- •13.4 Troubleshooting
- •13.5 Conclusion
- •References
- •14.1 Introduction
- •14.2 Importance of Triggers
- •14.3 Advantages of Triggers
- •14.4 Disadvantages of Triggers
- •14.5 Alternatives to Triggers
- •14.6 Good Practice for Using Triggers
- •14.7.1 Setup
- •14.7.2 Analysis
- •14.7.3 Interpretation
- •14.8 Conclusion
- •References
- •15.1 Introduction
- •15.2 The Idea of Signal-to-Noise Ratio (SNR)
- •15.3 Sources of Artifact
- •15.4 Common Physiological Artifacts
- •15.4.1 Eye Artifacts
- •15.4.2 ECG Artifacts
- •15.4.4 Other Physiological Artifacts
- •15.5 Common Technical Artifacts
- •15.5.1 Technical Artifacts
- •15.5.2 Electrode Artifacts
- •15.5.3 Gel-Related Artifacts
- •15.5.4 Movement Artifacts
- •15.5.5 Body/Head Movements
- •15.5.6 Cable Movement Artifacts
- •15.6 Artifacts in Advanced Applications and Multi-modal Recordings
- •15.6.1 EEG and Functional MRI
- •15.6.2 EEG and Non-invasive Brain Stimulation
- •15.7 Optimizing the EEG Recording Quality
- •15.7.1 Focus on the Cap Preparation
- •15.7.2 Optimize the Recording Environment
- •15.7.3 During the Recording
- •15.7.4 Post Recordings
- •15.8 Conclusion
- •References
- •16.1 Introduction
- •16.2 Lab Infrastructure
- •16.2.1 Signal Quality
- •16.2.2 Control Over the Experimental Environment
- •16.2.4 Safety
- •16.3 Position of the Equipment and Accessories
- •16.4 Lab Procedures
- •16.5.1 Mobile Setups
- •16.5.2 Electrode Types
- •16.5.2.1 Passive Sponge-Based Electrodes
- •16.5.2.3 Dry Electrodes
- •16.5.3 Special Populations
- •16.5.3.1 Children
- •16.6 Concluding Summary
- •References
- •17.1 Introduction
- •17.2 Common Preprocessing Steps: Data Transformation
- •17.2.1 Inspecting Data
- •17.2.2 Changing the Sampling Frequency
- •17.2.3 Re-referencing
- •17.2.4 Interpolating Channels or Data Portions
- •17.2.5 Segmenting Data
- •17.3 Common Preprocessing Steps: Artifact Handling
- •17.3.1 Filtering
- •17.3.2 Attenuating Artifacts
- •17.3.2.1 Independent Component Analysis (ICA)
- •17.3.2.2 Regression Techniques
- •17.3.2.3 Template Subtraction Methods
- •17.3.3 Rejecting Artifacts
- •17.5 Tools for Processing and Analyzing EEG
- •17.6 Concluding Remarks
- •References
- •18.1 Introduction
- •18.2 Characterizing an Oscillatory Process
- •18.2.1 Fundamental Characteristics of an Oscillatory Process
- •18.2.2 From Time to Frequency and Back
- •18.3 Foundation for Spectral Analysis: The Dot Product
- •18.4 Fourier Analysis
- •18.4.1 From Vectors to Sinusoids: The Fourier Connection
- •18.4.2 The Fourier Family
- •18.4.3 Discrete Fourier Transform
- •18.4.4 Power Spectrum
- •Further Readings
- •References
- •19.1 Introduction
- •19.2 How to Get from EEG to ERPs
- •19.2.1 How to Process Your ERP Data
- •19.2.1.1 Pre-processing
- •19.2.1.2 Trial Selection
- •19.2.1.3 Baseline Correction
- •19.2.1.4 Averaging
- •19.2.2 Interpreting ERPs
- •19.2.3 Group Analysis
- •19.2.4 Single-Trial Analysis
- •19.3 Characteristics of the ERP and Its Components
- •19.4 Commonly Investigated ERP Components
- •19.4.1 Early Sensory Components
- •19.4.2 Long-Latency Sensory Components
- •19.4.3 Later Cognitive Components
- •19.4.4 ERP Components in Multimodal Recording Scenarios
- •19.5 Extraction of ERP Features
- •19.6 Conclusion
- •References
- •20.1 Introduction
- •20.2 Fundamentals of EEG Source Imaging
- •20.3 Forward Problem
- •20.4 Source Estimation
- •20.5 Statistical Inference in the Source Space
- •20.6 Source Connectivity
- •20.7 Conclusion
- •References
- •21.1 Introduction
- •21.2 Raw Data Access
- •21.2.1 How to Get Raw Data
- •21.2.2 How to Work with Raw Data Online
- •21.2.3 What Factors to Consider for Online Processing
- •21.3 Designing an Online Processing Experiment, an Example
- •21.4 Conclusion
- •References
- •22.1 Introduction
- •22.1.2 Chapter Overview
- •22.2.2 Exactly What the SME Means
- •22.2.5 Why the Scoring Method Matters
- •22.2.8 Other Potential Uses of the SME
- •22.4 Metrics of Reliability
- •22.5 Final Thoughts
- •References
- •23.1 Cognitive Neuroscience
- •23.1.1 Neuropsychology and EEG
- •23.1.2 Mental Chronometry and EEG
- •23.2 Research on the EEG Signals
- •23.3 Conclusions
- •References
- •24.1 Introduction
- •24.2.1 Clinical Research
- •24.2.2 EEG in Research for Clinical Applications
- •24.2.3 EEG as a Biomarker
- •24.3 Examples of Clinical Applications of EEG
- •24.3.1 Epilepsy
- •24.3.2 Sleep and Sleep Disorders
- •24.3.3 Anesthesia
- •24.4.2 Brain-Computer Interfaces and Movement Disorders
- •24.5 Future of EEG in Clinical Applications
- •24.6 Conclusion
- •References
- •25.1 Introduction
- •25.1.1 Why Connect Brains and Computers?
- •25.1.2 What Is a BCI?
- •25.1.3 Types of BCIs: Active, Reactive, Passive
- •25.1.4 BCIs in Neuroscience and HCI
- •25.2 Signals and Sensors
- •25.2.1 Neural Signals for BCIs
- •25.2.2 Wearable EEG and Form Factors
- •25.3 The BCI Pipeline: From Raw Signals to Decisions
- •25.3.1 Overview
- •25.3.2 Experimental Design and Labeling
- •25.3.3 Preprocessing and Artifacts
- •25.3.4 Feature Extraction
- •25.4 BCI Types Illustrated
- •25.4.1 Motor Imagery as an Active BCI Paradigm
- •25.4.2 P300 and SSVEPs as Reactive BCI Paradigms
- •25.4.3 Workload, Error, and Other Passive BCI Paradigms
- •25.5.1 Mental State Assessment as a First Stage
- •25.5.2 Open- and Closed-Loop Adaptation
- •25.6 Practical Challenges
- •25.6.1 Mobility, Artifacts, and Non-stationarity
- •25.6.2 Cross-User and Cross-Session Generalization
- •25.6.3 Evaluation in Real Settings
- •25.6.4 Ethics, Privacy, and Neurorights
- •25.7 Conclusions and Outlook
- •25.7.1 Key Takeaways
- •25.7.2 Future Trajectories
- •References
- •26.1 Focal Epilepsy
- •26.2 EEG Manifestations of Focal Epilepsy
- •26.2.1 Ictal EEG Patterns
- •26.2.2 Interictal EEG Patterns
- •26.3 Localization of Ictal and Interictal EEG Events
- •26.4 Intracranial EEG in Presurgical Planning
- •26.5 AI in EEG Interpretation
- •26.6 Conclusion
- •References
- •27.1 Introduction
- •27.2 Neonatal EEG Applications
- •27.2.2 Somatosensory States Monitoring in Neonates
- •27.3 Paediatric EEG Applications
- •27.3.1 Sleep Monitoring in Children and Adolescents
- •27.4 Future Directions and Conclusion
- •References
- •28.1 What Is Sleep?
- •28.1.1 Stages of Sleep
- •28.1.2 How Sleep Changes with Age
- •28.2 Measuring Human Sleep
- •28.2.1 The Various Forms of Sleep
- •28.2.2 Unihemispheric Sleep
- •28.3.1 NREM Sleep and Learning
- •28.3.2 REM Sleep and Learning
- •28.4.1 Active Brain Networks During Sleep
- •28.4.2 Measuring the Balance of Excitation and Inhibition in the Human Brain
- •28.4.3 The Cerebrospinal Fluid Dynamics in Human Sleep
- •28.5 Conclusions
- •References
- •29.1 What Is Mobile EEG?
- •29.2 Range of mEEG Systems
- •29.3 Technical Considerations
- •29.4 Validation
- •29.5 Application
- •29.6 Mild Cognitive Impairment
- •29.7 mEEG and Health and Exercise
- •29.8 mEEG in Sports
- •29.9 Conclusions
- •References
- •30.1 Introduction
- •30.2 General Framework and System Overview
- •30.3 Spectrum of Studies
- •30.4 MoBI+ Framework
- •30.5 Processing Multimodal MoBI Data
- •30.6 Challenges and Limitations
- •30.7 Conclusion
- •Appendix
- •List: Traveling with MoBI Equipment
- •References
- •31.1 Introduction
- •31.2 Types of Electric Brain Stimulation
- •31.3 Online Effects
- •31.3.1 Conventional Artifact Removal Strategies
- •31.3.1.1 Transcranial Direct Current Stimulation (tDCS)
- •31.3.1.2 Transcranial Random Noise Stimulation (tRNS)
- •31.3.1.3 Transcranial Alternating Current Stimulation (tACS)
- •31.3.3 Innovative Approaches to Minimize Artifacts
- •31.3.3.1 Non-Sinusoidal Waveforms
- •31.3.3.2 Amplitude-Modulated tACS (AM-tACS)
- •31.3.3.3 Transcranial Temporal Interference Stimulation (tTIS)
- •31.3.3.4 Summary of Advantages and Limitations
- •31.4.1 Spectral Power
- •31.4.2 Phase Locking/Phase Coherence
- •31.4.3 ERPs
- •31.4.4 Further Measures
- •31.5.1 Rationale
- •31.5.2 Procedure
- •31.6 Closed-Loop Systems
- •31.7 Technical Requirements
- •31.8 Conclusion
- •References
- •32.1 Introduction
- •32.2.1 Equipment

13 Software for Recording EEG and Peripheral Physiology 159
13.2.2 Special Applications
Some applications require specific recording parameters. For example, the highamplitude artifacts seen in EEG-fMRI and EEG-TMS require a large measurement
range. Very small signals such as an auditory brain stem response require a very high
sampling rate in comparison to regular EEG. Covering all special applications is
beyond the scope of this chapter. The important message is to be aware of any
specific conditions and what can be done to accommodate these conditions and
maximise your data quality. Manufacturer guidelines and literature in your field of
study are a good place to start.
13.2.3 Real-Time Processing
Some applications require real-time processing. For example, in closed-loop brain
stimulation EEG signal features are used to trigger a stimulation device such as
transcranial magnetic stimulation (TMS). In Brain Computer Interface (BCI) applications, immediate feedback is provided to the participant based on an EEG feature.
Some sleep recording software can perform real-time sleep scoring and requires
access to the real-time data. This typically requires a connection between the
recording software and another client (e.g. remote data access). Input from an
institution’s IT department might be necessary, e.g. if permissions are restricted.
Therefore, it is best practice to set up and test the real-time processing pipeline
during the pilot testing phase.
13.3 During a Measurement Session
It’s tempting to just press record and assume that everything is running as expected.
However, it is essential to perform some initial checks before starting the recording
and to monitor the signal during recording. It’s important to pay attention to detail
and to be consistent across measurements.
Impedance Check In Chap.
Physiology, the role of impedance at the electrode scalp interface was covered.
Researchers should establish a target impedance range for a study, this will depend
on the electrode type and the application. Impedance at all recording electrodes
should be checked prior to starting a measurement. The options available will
depend on the software but you should be aware of the scale that you are using
and whether you can switch between scales. Some systems might offer an LED
impedance indication system on the electrodes, in which case it’s crucial to know
what levels are set for the light colours. Chapter
Acqu
isition, provides some tips and tricks for achieving your target impedance with
different amplifier and electrode configurations.
12, Hardware for Recording EEG and Peripheral
16, Practical Aspects of EEG Data

160 T. Warbrick and D. Kadlec
Monitoring the Data The display should be set up to optimally view the signal.
Use a scale that is meaningful and will allow you to assess signa l quality or to spot
any problems. For high-density recordings, e.g. 256 channels, it’s not practical to
view all channels at once, but rather to view fewer channels in subsets. For signals
with different amplitudes or temporal properties, the scaling should be adjusted to
view each signal optimally. For example, the galvanic skin response (GSR) is much
slower than EEG and requires a different temporal scale for optimal viewing. If
display filters are available, it is important to know whether this is enabled and how
/disable this feature. Furthermore, it might be useful to view data in a different
to en
montage, for example re-referenced. This functionality isn’t available in all software,
but if available it should be configured before the recording is started.
Triggers and Markers Triggers should be verified before the recording, especially
shared labs where settings might change between recordings. In addition to trial
in
markers, it might be possible to add on-the-fly annotations to the data to indicate
noteworthy events, e.g. excessive movement or interruptions.
Save the Data! Make sure that the data are being recorded. For example, some
progra
ms require you to save a data file at the end of recording, others start saving to
disk automatically once you start. Note that your software might have a monitoring
mode that allows you to view the data but it is not yet recording, it’s important to
switch from monitoring to saving. This sounds obvious, but it’s not an uncommon
error.
13.4 Troubleshooting
It’s important to be prepared for potential problems when recording EEG data. While
specific problems will differ across software programmes, there are some typical
issues that can be addressed with standard troubleshooting strategies. Below we list a
few common problems and where to start troubleshooting them.
License Issues It can be
restrictions. Researchers should know where to find the license information: license
number, expiry date, how to activate it, and how to renew it. This information will
also be needed if you need to contact the software support service. It is good practice
to check the software expiry date during pilot testing to ensure that it won’t expire
during the study.
Communication
failure to establish communication between the hardware and software. System or
software manuals from the manufacturer are a good place to start for troubleshooting
advice. Communication problems will most likely be solved during pilot testing;
nonetheless, it’s good to know where to start troubleshooting if problems occur
during measurements.
Between the Hardware and Software A common problem is the
frustrating if your software won’t open due to licensing

13 Software for Recording EEG and Peripheral Physiology 161
Unexpected Interruptions Avoid using the same computer for recording the data
and for other aspects of the study, such as your stimulation paradigm. This will
prevent data overflow problems (Windows), screen freezes, and other interruptions.
It’s also important to make sure that the recording computer won’t go into
sleep mode.
Maintenance Software should be kept up to date. Regularly check for updates and
patche
s from the manufacturer. When updating the software, consider whether an
update will have an impact on ongoing studies. It’s good practice to record all data in
a study with the same version of the recording software.
Support Remember that most commercial software comes with a support service.
contacting a support team it is helpful to provide the version number of the
When
software, your license information, and a thorough description of the problem,
including error messages (screenshots are helpful). If you are using OSS there is
often a forum, sometimes moderated by the developers, that can be a useful place to
start.
13.5 Conclusion
This chapter has introduced the key features of EEG recording software and the
parameters you need to consider when setting up your recording environment. It is
important to understand how software choices in fluence the data, and we recommend that you spend some time setting up your recording software. It is also helpful
to pilot test your choices before beginning data acquisition for your study. We have
also outlined good practice for monitoring data quality durin g a measurement and
provided troubleshooting tips for common software-related probl ems. We recommend familiarising yourself with these during the pilot testing phase of your study.
References
Gorgolewski, K. J., Auer, T., Calhoun, V. D., Craddock, R. C., Das, S., Duff, E. P., Flandin, G.,
Ghosh, S. S., Glatard, T., Halchenko, Y. O., Handwerker, D. A., Hanke, M., Keator, D., Li, X.,
Michael, Z., Maumet, C., Nichols, B. N., Nichols, T. E., Pellman, J., Poline, J. B., Rokem, A.,
Schaefer, G., Sochat, V., Triplett, W., Turner, J. A., Varoquaux, G., & Poldrack, R. A. (2016).
The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments. Scientific Data, 3, 160044.
Pernet, C.
R., Appelhoff, S., Gorgolewski, K. J., Flandin, G., Phillips, C., Delorme, A., &
Oostenveld, R. (2019). EEG-BIDS, an extension to the brain imaging data structure for
electroencephalography. Scientific Data, 6, 103.

162 T. Warbrick and D. Kadlec
Poldrack, R. A., Gorgolewski, K. J., & Varoquaux, G. (2019). Computational and informatic
advances
Science, 2, 119–138.
Weiergräber, M., Papazoglou, A.,
and related pitfalls in EEG analysis. Journal of Neuroscience Methods, 268, 53– 55.
Westner, B. U. (2024). Cycling on the freeway: The perilous state of open source neuroscience
software. 2403.19394. Available: https://arxiv.org/abs/2403.19394.
for reproducible data analysis in neuroimaging. Annual Review of Biomedical Data
Broich, K., & Müller, R. (2016). Sampling rate, signal bandwidth

Chapter 14
Triggers
Alex Kreilinger and Paulo Rodrigo Bazán
Abstract In this chapter, we will cover the importance of triggers and how they can
be used
different common ways to generate and record triggers, along with suggestions for
alternative approaches if triggers are not an option. Finally, we will demonstrate
strategies that are considered good practice.
Keywords Synchronization · Triggers · Events · Markers
14.1 Introduction
Triggers are one way to synchronize external events with EEG recordings. They are
necessary to allow the analysis of time-locked signals. To maximize the quality of
the results it is vital that the triggers are recorded with the EEG data as precisely as
possible.
understand the difference between events, markers, and triggers (Fig. 14.1):
to add contextual information to data recordings. We will also demonstrate
First, some clarification of the terminology used around triggering is needed to
. Event: describes something that is happening which is relevant in the context of
the record
ing. For example, an event could be a behavior from the participant,
such as a motor response (e.g., a button press). Or the appearance of a stimulus in
an experimental paradigm, e.g., visual, acoustic, or tactile.
. Marker: describes such an event in
the software. It is the information about what
and when and is provided either directly in the recording, or in an additional
supporting file. For example, a marker file may contain a matrix of types and
corresponding time stamps. This information is particularly important for EEG
data analysis.
A. Kreilinger (*) · P. R. Bazán
Brain Products GmbH, Gilching, Germany
e-mail:
alex.kreilinger@brainproducts.com; paulo-rodrigo.bazan@brainproducts.com
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026
T. Warbrick
https://doi.org/10.1007/978-3-032-20450-9_14
(ed.), The EEG Handbook,
163

164 A. Kreilinger and P. R. Bazán
Fig. 14.1 Events, markers, and triggers in a visual paradigm. In this case, a visual cue appearing on
the screen is the event. The stimulus presentation computer sends a trigger to the EEG amplifier at
the same time. The trigger gets recorded together with the EEG data. The triggers are represented as
markers in the recorded file
. Trigger: is the hardware embodiment of an event, represented by an electric or
optical signal. Usually, these triggers are sampled and recorded directly with the
EEG to provide optimal timing precision.
14.2 Importance of Triggers
EEG has a very high temporal resolution (Chap. 2, What is EEG). Therefore, to
properly analyze EEG signals in relation to a task or stimulus, the time of the task or
stimulus needs to be recorded with high precision. In this context, having triggers is a
reliable form of relating and synchronizing events to EEG data. Triggers are also
helpful for multimodal data acquisition, as they can be used to synchronize the data
acquired from different devices. For example, the EEG system can mirror or forward
the triggers it receives from a stimulation source to another device, such as a
functional near-infrared spectroscopy (fNIRS) system. This also works the other
way around: for example, an eye-tracking system can send triggers to the EEG
amplifier. This will then generate common markers in the multimodal recording
which can be used to merge the data or analyze it together. Another option is to
replicate triggers with a y-cable or a one-to-many trigger replicator.
The required p
desired analysis. For example, if the analysis focuses on brain activity sustained over
several seconds, it is likely that a smaller precision is good enough. In contrast, for
event-related potential (ERP) analysis, where an average of trials will be generated in
a time-locked window of a few hundred milliseconds, even variations of a few
recision for triggers will depend on the research questions and

14 Triggers 165
milliseconds can significantly affect the results. In these cases, millisecond precision
is required, and high precision triggers are especially important.
The precision is affected by latency and jitter:
. Latency: is related to the delays between the actual onset of the event and the
trigger being
recommended to check these delays, as latency can be adjusted during the
analysis, if it is known and constant. However, for near real-time applications,
latency needs to be very short, such as in transcranial magnetic stimulation
(TMS)-EEG, brain-computer interface (BCI), or neurofeedback.
. Jitter: is the variation in the delays from trial to trial. These delays are more
problematic
precision level that we want to assure in our experiment.
received or the marker being generated in the EEG recording. It is
because they are variable. Therefore, we need to reduce them to the
Figure 14.2 demonstrates the effects of
ERP.
jitter and latency on the waveform of an
14.3 Advantages of Triggers
While aligning the timing between EEG signals and events may seem straightforward, it is not guaranteed in every setup. There are many factors that can disrupt this
alignment, but by encoding the event wi th a hardware trigger, the exact time of the
event is recorded precisely when it really happens. This is because the hardware
input directly synchronizes the trigger signal with the EEG signal. This means that
potential delays caused by separate processing pipelines of markers and EEG data
can be avoided. For example, different stimulus presentation software tools could
otherwise have a negative effect on precision. There are also differences in how fast
data can be read from the amplifier to the PC, tablet, or smartphone. Therefore, the
main advantage of the triggers is the high precision due to the simultaneous sampling
together with EEG signals. Additionally, in some cases triggers can be generated
directly from the stimulus or participant response, reducing the need for additional
programming when compared to software solutions.
As an examp
aim of an experiment is to record the brain’s response to a visual stimulus, or to a
variety of visual stimuli. These stimuli can be created in a software environment and
consist of pictures that appear and disappear at specific moments. Now, to analyze
the ERP associated with these visual stimuli, it is important that the synchronization
between event and signal is precise. We can guarantee this if every individual visual
stimulus is accompanied by a corresponding trigger input that gets sampled simultaneously with the EEG. Ideally, the visual stimulus can be used itself for creating
the trigger input. This can be done by recording the visual stimulus via a photo
sensor and sending a trigger as soon as a certain threshold is exceeded. This way, the
true appearance of the stimulus can be verified directly in the recording. Otherwise,
one can never be sure that a stimulus happens when it is supposed to. For example, a
le, a common scenario is the presentation of a visual stimulus. The

166 A. Kreilinger and P. R. Bazán
Fig. 14.2 Effects of jitter and latency on an ERP confidence interval. A stable latency changes
the time of the ERPs' appearance in relation to the event (in this case at t ¼ 0 ms). Increasingly high
jitter directly affects the waveform. The higher the jitter, the more of the original waveform is
getting lost. The four examples demonstrate the effects of latency and jitter, simulated with
normally distributed delays based on mean latency
jitter: the original and simulated ERPs overlap perfectly. (b) Here, the mean latency is zero, but the
jitter has a high standard deviation of 50 ms. The waveform of the ERP is noticeably different. (c)
Constant, jitter-free latency: the ERP is preserved but shifted on the time axis. The amplitude can
also be affected if baseline correction is used. (d) High latency and high jitter significantly distort
the original waveform and timing information of the ERP
jitter in milliseconds. (a) No latency and no
visual stimulus might be delayed because of an additional screen refresh cycle that
was not accounted for, or an acoustic stimulus might require some additional time to
load the sound into a buffer. Not accounting for these possibilities can easily lead to
jitter and latency issues in the order of tens of milliseconds, which will have an
impact on the ERP analysis. At the end of this chapter, we will provide more details
on how to set up an experiment to verify the timing accordi
ngly.
If possible, connecting triggers to the EEG recording hardware is a great way to
make sure that important external events are synchronized with the other recorded
signals without any potential interference.

14 Triggers 167
14.4 Disadvantages of Triggers
Adding triggers to the setup typically requires additional accessories and cables that
can be cumbersome to connect, can make the setup more complicated, and require
more preparation time. In certain cases, it may be beneficial to have a very fast and
uncomplicated design to keep the recording time to a minimum. It could be that the
recording itself is already extensive or that the participants need to be kept motivated
to not lose their concentration. There are also recording setups that do not foresee the
inclusion of triggers, either by not allowing the physical connection or by not
needing triggers in the first place. For example, there are cases in which all the
relevant context is provided directly within the acquisition software itself, e.g., in
sleep EEG.
14.5 Alternatives to Triggers
As already mentioned, triggers may not always be the preferred method, and there
may even be circumstances where triggers are not necessary. A generalization is
difficult as this depends on the respective environment of the selected EEG amplifier,
the research question, and planned analysis. It might be the case that markers can be
created and stored directly within the acquisition software. The amplifier might also
be connected to a platform which creates context by means of a marker or an
auxiliary signal and saves it directly with the data (e.g., OpenViBE (Renard et al.,
2010)). In these cases, it is highly recommended to perform thorough testing during
the pilot phase to make sure signals and markers are properly synchronized
(Chap. 10, Pilot Testing).
A common alternative to triggers is to use Lab Streaming Layer (LSL) (Kothe
et al., 2025). LSL is a protocol that manages the synchronization of multiple signal
sources
sampling rate, but also with irregular streams where data points only appear occasionally, or at irregular intervals. Instead of triggers, one can create such an irregular
marker stream that is available in the network. Any LSL client can then connect to
the data and marker streams, allowing signals to be processed and/or saved together
with contextual information. A study using TMS-EEG to compare hardware triggers
and software markers via LSL is presented in Miziara et al. (
the time that passes between the samplin g of a data point and its availability in the
stream. Whereas an LSL marker can be sent to the network almost immediately, the
sample from the EEG amplifier is subje ct to delays due to several factors: communication on the driver level, transmission time via Bluetooth
some internal buffering. Many factors can add up to create a latency that is no longer
negligible, especially when dealing with time-critical ERPs.
in a shared local network. It works with regular streams that have a specific
2025).
One drawback of
combining such LSL marker stre ams and LSL da ta streams is
®
or WiFi, or potentially

168 A. Kreilinger and P. R. Bazán
14.6 Good Practice for Using Triggers
Once the decision to use triggers has been made, it is good practice to adhere to a few
principles that will ensure that no information is lost, and that the information is
presented in a clear and precise manner.
. All triggers must be encoded in a way that they do not overlap with other triggers
or result
experiment, triggers can be created by a computer that is running a stimulus
presentation software, such as Presentation
Berkeley, CA, www.neurobs.com), E-Prime
burgh, PA, https://support.pstnet.com/), PsychoPy (Peirce, et al., 2019),
MATLAB
MathWorks Inc. https://www.mathworks.com), or similar. These software tools
interact with a device that can translate the software commands to triggers. This
can be done via USB, serial, or parallel port, with the USB port connected to a
trigger device becoming more and more the standard. Regardless of how, the user
must ensure the device sends signals in a form at that fits to the requirements of the
EEG amplifier. For example, consider the possible ways that the trigger could be
sent via the interface. The corresponding command might require a string, an
integer, or it might even be necessary to encode the message as a binary or hex
code number: the following dummy code snippets all encode the number 42 but
might be interpreted differently: ‘send(‘42’)’, ‘ send(42)’, ‘send(‘00101010’)’, or
‘send(‘0x2A’)’. Therefore, users are advised to inform themselves about how the
triggers are sent and received. Users should also find out if trigger codes need to
be actively reset, or if the software tool already sends pulses with a pre-defined
length, after which this happens automatically. If such a reset does not happen,
sending another trigger value might have no effect because the lines’ values have
not changed. Worse, it could even be the case that sending different codes after
each other without a reset in between leads to completely wrong numbers at the
receiver, formed by the combination of codes. This will impact ERP analysis. If it
is necessary to send additional information in parallel, a viable option is to
separate the available bits into groups (Table
input consi
more likely division is using two groups of 4 bits, or one 7-bit group with the
option of a 1-bit trigger input that can be used as an on/off input.
. The pulse width
hand, it should not be too long because otherwise it can block sending subsequent
triggers. On the other hand, it should not be too short because very short pulses
can easily be missed if the onset and offset occur within a single sampling
interval. The minimum pulse width, therefore, should always be at least 2 sampling intervals long to be on the safe side. If the length of the pulse width cannot
be adjusted, losing triggers can be mitigated by either increasing the sampling rate
of the amplifier, or by using a hardware solution that extends the pulse durat ion to
an adequate length.
in misinterpretations at the receiver’s end. For example, in a typical EEG
®
(Neurobehavioral Systems, Inc.,
®
(Psychology Software Tools, Pitts-
®
(The MathWorks Inc. MATLAB, Natick, Massachusetts: The
14.1). If the EEG amplifier trigger
sts of 8 bits, the input can be divided into eight groups at maximum. A
of a sent trigger code needs to be carefully considered. On one
Соседние файлы в папке Библиотека им академика М.И. Перельмана
