===== Electroencephalography (EEG) ===== Goal: //How to measure the brain activity using scalp recordings?// ==== Prepare for the lab ==== * Chapter 3 on Electroencephalography in: John T. Cacioppo, Louis G. Tassinary, Gary G. Berntson - [[https://doi.org/10.1017/CBO9780511546396|Handbook of Psychophysiology]] (Cambridge University Press, 2007). Most important parts: * Physiological basis of the EEG (pp. 57-59) * Normative EEG activity (pp. 59-61) * Data acquisition and signal analysis (pp. 61-65) * Quantitative analyses: Spectral analyses, Time-frequency analyses (pp. 65-67) * Emily S. Kappenman, Steven J. Luck - [[https://doi.org/10.1093/oxfordhb/9780195374148.013.0014|ERP Components: The Ups and Downs of Brainwave Recordings]] (The Oxford Handbook of Event-Related Potential Components, 2012) (read up to "ERP Peaks ≠ ERP Components", including this section; i.e., up to page 12) ==== Materials ==== - Q&A Session: - What is actually measured during an EEG measurement? Are we directly reading the subject's thoughts? - Are you familiar with the purpose of the 10-20 system? - What are the event-related potentials (ERPs)? - Compare the typical EEG bands (delta, theta, alpha, beta, gamma, mu) - What kind of artifacts are most commonly observed in the EEG signal? - Measurement time: - Follow the [[lab_devices|Devices 101]] lab to connect the biosignalsplux with the PC - Use the {{https://krzysztof.kutt.pl/didactics/psaw/EEG_Datasheet.pdf|EEG Datasheet}} and {{https://krzysztof.kutt.pl/didactics/psaw/EEG_User_Manual.pdf|EEG User Manual}} to properly record the EEG signal - **Tasks:** - The EEG signal is very sensitive to distortions -- especially eye-related interference. Check: * what kind of disturbances are caused by eye blinking? * if there is a difference between the signal recorded with the eyes open and with the eyes closed (here you may need to plot the power spectrum to see the differences)? * what kind of disturbances are caused by moving the head? - We can break down the EEG signal into different component frequencies (alpha, beta, gamma, delta) - some of which are associated with rest and others with activity. Record about 3 minutes of signal when you are relaxed and about 3 minutes of signal during intense activity (e.g., playing chess online; it is important to move as little as possible) and see if you can see the differences! * Note: here we need to do a frequency analysis - it is introduced in the advanced part of the notebook + it is also placed in the [[https://github.com/biosignalsplux/biosignalsnotebooks/blob/master/biosignalsnotebooks_notebooks/Categories/Extract/eeg_extract_alphaband.ipynb|eeg_extract_alphaband]] notebook from biosignalsplux - **At the end of class:** - clean the equipment with disinfectant wipes - throw away the disposable electrodes (or keep them as souvenirs ;-) ) - pack all items in bags - make sure all items are in the case: * biosignalsplux hub * bluetooth dongle * 4 sensors (each has a sticker with the name on it) * reference electrode (single, no stickers) * power supply - give the case to the teacher - Practice session: - Today's lab is placed in one Jupyter Notebook: [[https://colab.research.google.com/drive/1dVJ-tMlnGRljVXamtmCBYDPkbpKESsQd?usp=sharing|Electroencephalography (EEG)]] - //Note: Loading your own signal into mne.tools can be a bit tricky. Therefore, if you want to perform simple analyses on your own signal recorded with biosignalsplux, do the [[https://github.com/biosignalsplux/biosignalsnotebooks/blob/master/biosignalsnotebooks_notebooks/Categories/Extract/eeg_extract_alphaband.ipynb|eeg_extract_alphaband]] notebook from biosignalsplux **instead of** the regular notebook// - Advanced practice session: - If you want to tackle additional topics, do the optional Advanced section in the notebook. It will give you the opportunity to perform the basic frequency analysis of the EEG signal (and deal with the magic alpha, beta and theta waves!). ==== Learn more! ==== === Brain imaging and Neurotech === * T.J. Sejnowski, P.S. Churchland & J.A. Movshon - 2014 - [[https://www.nature.com/articles/nn.3839|Putting big data to good use in neuroscience]] -- nice comparison of methods' temporal and spatial resolution * [[https://neurotechx.com/|NeurotechX]] community (incl. rich discussions on dedicated Slack) * [[https://neurotechmicrocreds.com/courses/|Neurotech Microcredential Program (courses online)]] === EEG === * Chapter 3 on Electroencephalography and Chapter 4 on Event-Related Brain Potentials in: John T. Cacioppo, Louis G. Tassinary, Gary G. Berntson - [[https://doi.org/10.1017/9781107415782|Handbook of Psychophysiology]] (Cambridge University Press, 2016) -- great handbook if you want to know more about all the physiology behind analysed signals (3rd edition available online via EBSCO) * Steven J. Luck - [[https://mitpress.mit.edu/books/introduction-event-related-potential-technique-second-edition|An Introduction to the Event-Related Potential Technique]] (Bradford Book, 2014) -- the best handbook on EEG signal analysis * [[https://doi.org/10.1111/psyp.12147|Publication guidelines and recommendations for studies using electroencephalography and magnetoencephalography]] -- How to perform EEG/MEG studies properly and how to describe them in the publications (to facilitate studies replication) * [[https://doi.org/10.3389/fnins.2018.00530|A Reproducible MEG/EEG Group Study With the MNE Software: Recommendations, Quality Assessments, and Good Practices]] * [[https://doi.org/10.1111/1469-8986.3720163|Removing electroencephalographic artifacts by blind source separation]] -- how to clean the EEG data properly? one of the most cited papers in Psychophysiology journal * [[https://eegedu.com/|EEGEdu]] -- live EEG tutorial for Muse Headset (or mock data, if you don't have the device) === BCI === * [[https://link.springer.com/article/10.1007/s11571-021-09676-z|Review of brain encoding and decoding mechanisms for EEG-based brain–computer interface]] -- nice review of Brain-Computer Interfaces' methods * [[http://learn.neurotechedu.com/lessons/|BCI 101 and Neuroscience 101]] -- open courses developed by NeuroTechX === Tools === * **[[https://mne.tools/|mne.tools]]** (the best Python package for brain-related data analysis) * [[https://neurokit2.readthedocs.io/en/latest/|NeuroKit2]] (toolbox for BVP, ECG, EDA, EEG, EMG, EOG, Respiration; it has a __physiological signal generator__) * [[https://biosppy.readthedocs.io/en/stable/|BioSPPy]] (toolbox for BVP, ECG, EDA, EEG, EMG, Respiration) === biosignalsplux === {{section>lab_devices#biosignalsplux&noheader&nofooter}}