Affiliation:
1. Department of Psychology The Ohio State University Columbus Ohio USA
2. Peking‐Tsinghua Center of Life Sciences Peking University Beijing China
3. Department of Psychology Sun Yat‐Sen University Guangzhou Guangdong China
4. Neuracle Technology (Changzhou) Co., Ltd Changzhou Jiangsu China
Abstract
AbstractThis easy‐to‐follow handbook offers a straightforward guide to electroencephalogram (EEG) analysis using Python, aimed at all EEG researchers in cognitive neuroscience and related fields. It spans from single‐subject data preprocessing to advanced multisubject analyses. This handbook contains four chapters: Preprocessing Single‐Subject Data, Basic Python Data Operations, Multiple‐Subject Analysis, and Advanced EEG Analysis. The Preprocessing Single‐Subject Data chapter provides a standardized procedure for single‐subject EEG data preprocessing, primarily using the MNE‐Python package. The Basic Python Data Operations chapter introduces essential Python operations for EEG data handling, including data reading, storage, and statistical analysis. The Multiple‐Subject Analysis chapter guides readers on performing event‐related potential and time‐frequency analyses and visualizing outcomes through examples from a face perception task dataset. The Advanced EEG Analysis chapter explores three advanced analysis methodologies, Classification‐based decoding, Representational Similarity Analysis, and Inverted Encoding Model, through practical examples from a visual working memory task dataset using NeuroRA and other powerful packages. We designed our handbook for easy comprehension to be an essential tool for anyone delving into EEG data analysis with Python (GitHub website: https://github.com/ZitongLu1996/Python‐EEG‐Handbook; For Chinese version: https://github.com/ZitongLu1996/Python‐EEG‐Handbook‐CN).