Designing Eeg Experiments for Studying the Brain

Total Page:16

File Type:pdf, Size:1020Kb

Designing Eeg Experiments for Studying the Brain DESIGNING EEG EXPERIMENTS FOR STUDYING THE BRAIN https://www.elsevier.com/books-and-journals/book-companion/9780128111406 Designing EEG Experiments for Studying the Brain: Design Code and Example Datasets Aamir Saeed Malik and Hafeez Ullah Amin Resources available: Table of Contents: - Chapter Abstracts - Chapter Data - Glossary DESIGNING EEG EXPERIMENTS FOR STUDYING THE BRAIN Design Code and Example Datasets AAMIR SAEED MALIK HAFEEZ ULLAH AMIN Universiti Teknologi PETRONAS, Perak, Malaysia Academic Press is an imprint of Elsevier 125 London Wall, London EC2Y 5AS, United Kingdom 525 B Street, Suite 1800, San Diego, CA 92101-4495, United States 50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom Copyright © 2017 Elsevier Inc. All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or any information storage and retrieval system, without permission in writing from the publisher. Details on how to seek permission, further information about the Publisher’s permissions policies and our arrangements with organizations such as the Copyright Clearance Center and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/permissions. This book and the individual contributions contained in it are protected under copyright by the Publisher (other than as may be noted herein). Notices Knowledge and best practice in this field are constantly changing. As new research and experience broaden our understanding, changes in research methods, professional practices, or medical treatment may become necessary. Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any information, methods, compounds, or experiments described herein. In using such information or methods they should be mindful of their own safety and the safety of others, including parties for whom they have a professional responsibility. To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or operation of any methods, products, instructions, or ideas contained in the material herein. British Library Cataloguing-in-Publication Data A catalogue record for this book is available from the British Library Library of Congress Cataloging-in-Publication Data A catalog record for this book is available from the Library of Congress ISBN: 978-0-12-811140-6 For Information on all Academic Press publications visit our website at https://www.elsevier.com/books-and-journals Publisher: Mica Haley Acquisition Editor: Natalie Farra Editorial Project Manager: Kristi Anderson Production Project Manager: Kirsty Halterman and Karen East Designer: Alan Studholme Typeset by MPS Limited, Chennai, India LIST OF FIGURES Figure 1.1 EEG signal and corresponding bands 3 Figure 1.2 Example of visual stimulus in oddball task 14 Figure 1.3 Structure of oddball task in E-Prime software 15 Figure 1.4 Error message when E-Prime is not connected with 16 Net Station while Net Station package is added Figure 1.5 Triallist of oddball experiment 17 Figure 1.6 Objects of TrialProc 17 Figure 1.7 Stimulus property setting 18 Figure 2.1 Complete experiment flow for both stress and control 39 conditions. (A) Mental stress session. (B) Control session Figure 2.2 A model of the computer screen in the stress condition 41 Figure 3.1 BrainMaster Discovery amplifier 51 Figure 3.2 User interface of BrainMaster Discovery acquisition software 52 Figure 3.3 Data collection scheme 56 Figure 3.4 EEG data collection 57 Figure 3.5 Visual three-stimulus oddball task 57 Figure 4.1 A general scenario of epileptic seizure attack 64 Figure 4.2 Epileptic seizure categories 64 Figure 5.1 Experiment design 81 Figure 6.1 EEG recording flow diagram. (A) 3D active first group. 98 (B) 3D passive first group Figure 7.1 PASS user interface window 111 Figure 7.2 Experiment design 112 Figure 7.3 A sample of Raven’s Advanced Progressive Matrices (RAPM) 113 problem Figure 7.4 Sample of multiple choice question (MCQ) 114 Figure 7.5 Experimental design with session wise tasks 115 Figure 7.6 Design of E-Prime program for RAPM task 117 Figure 7.7 E-Prime recorded file in 3D recall task 118 Figure 8.1 Polygraphic Input Box (PIB) 128 Figure 8.2 Visual stimuli of oddball task (box represents the standard 130 stimulus and sphere represents the target stimulus) Figure 9.1 3D game interface 138 Figure 9.2 Interface of 2D game 140 Figure 10.1 Flow chart of the experiment 155 Figure 10.2 A view of the stimulus as seen by the participants 156 Figure 11.1 Emotiv EPOC 16 electrodes 168 Figure 11.2 Block diagram of experiment protocol 168 Figure 12.1 Experimental design. The first row indicates the driving with 177 distraction and second row indicates the driving without distraction Figure 13.1 NHTSA statistics on crashes caused by driver drowsiness 182 from 2005 to 2009 ix x List of Figures Figure 13.2 Experimental setup 187 Figure 13.3 Experimental protocol 187 Figure 14.1 Design of experimental task 1 197 Figure 14.2 Explanation of timeline of task 1. Total time for one trial = 198 3800 ms Intertrial interval (ITI) = 2000 ms, Total time for one level (50 trials) = 3800 × 50 + 2000 × 49 = almost 5 min, Total time for task 1 = 5 × 3 = 15 min (exclusive of breaks between levels) Figure 14.3 Design of experimental task 2 199 Figure 14.4 Explanation of timeline of task 2. Total time for one trial = 199 4800 ms Intertrial interval (ITI) = 2000 ms, Total time for one level (50 trials) = 4800 × 50 + 2000 × 49 = almost 6 min, Total time for task 2 = 6 × 3 = 18 min (exclusive of breaks between levels) LIST OF TABLES Table 1.1 Detail of EEG devices and manufacturers 20 Table 1.2 Stimulus presentation software 23 Table 2.1 Delaying response text and speed up texts to show on 41 the screen Table 2.2 A summary of stressful feedback messages 42 Table 2.3 EEG/ERP data description 44 Table 2.4 E-Prime files of EEG stimulus experiment for stress and 44 control conditions Table 3.1 Available clinical characteristics of SSRI responders and 55 nonresponders who participated in the study Table 3.2 Description of EEG data files and E-Prime file 59 Table 4.1 Description of Bonn datasets 70 Table 4.2 Description of CHB-MIT dataset 71 Table 4.3 Description of European Epileptic dataset 72 Table 5.1 Sample size calculation 79 Table 5.2 EEG data description 83 Table 6.1 Description of hardware (equipment) and software 92 Table 6.2 Description of video clips in order of presentation 97 Table 6.3 SSQ Scores distribution 99 Table 6.4 EEG data description 100 Table 6.5 SSQ and feedback questionnaire data 101 Table 7.1 Detail of first session tasks 116 Table 7.2 Detail of sessions 2, 3, and 4 tasks 116 Table 7.3 E-Prime experiment design files 119 Table 7.4 EEG data description of session 1 119 Table 7.5 EEG data description of sessions 2, 3, and 4 120 Table 8.1 Data files description 131 Table 9.1 Equipment and software description 141 Table 9.2 EEG data description 145 Table 10.1 EEG and ECG data description 157 Table 11.1 Description of hardware (equipment) and software 166 Table 11.2 EEG data description 169 Table 12.1 Description of hardware and software 174 Table 12.2 Example of logical problems in the cognitive task 176 Table 12.3 EEG data files with description 178 Table 13.1 Description of hardware and software 185 Table 13.2 EEG data description 189 Table 14.1 Equipment and software 194 Table 14.2 Details of EEG data 200 xi PREFACE This book is intended for those who are planning brain studies using electroencephalography (EEG) as well as those who want to explore new clinical and behavioral applications using EEG. Prior knowledge of brain functionality and neuromodalities is required for understanding the material provided in this book. This book is not about EEG or about the brain; there are already large numbers of books available on such topics. Therefore, the reader may wish to go through the basics of brain anatomy and physiology as well as the basics of EEG before studying this book. Also, there are many good resources available on the Internet to study the basics of the brain and EEG. This book is specifically beneficial for those who want to venture into this field by designing their own EEG experiments as well as those who are excited about neuroscience and want to explore various applications related to the brain. This book details experimental design for various brain-related applications like stress, epilepsy, etc., using EEG. The main aim of the book is to provide guidelines for designing an EEG experi- ment. As such, the first chapter provides details on how to design an EEG experiment as well as the various parameters that should be considered for a successful design. Chapter emphasis is on ethical issues, sample size computation, and data acquisition guidelines. An example of stimulus experiment design is also provided. Various types of EEG equipment and software are also discussed in Chapter 1, Designing an EEG Experiment. The remaining 13 chapters provide experiment design for a num- ber of applications including clinical as well as behavioral applications. In addition, experiment design codes and example datasets for one sub- ject are provided with each chapter.
Recommended publications
  • Exploring the Role of Language in Two Systems for Categorization Kayleigh Ryherd University of Connecticut - Storrs, [email protected]
    University of Connecticut OpenCommons@UConn Doctoral Dissertations University of Connecticut Graduate School 4-26-2019 Exploring the Role of Language in Two Systems for Categorization Kayleigh Ryherd University of Connecticut - Storrs, [email protected] Follow this and additional works at: https://opencommons.uconn.edu/dissertations Recommended Citation Ryherd, Kayleigh, "Exploring the Role of Language in Two Systems for Categorization" (2019). Doctoral Dissertations. 2163. https://opencommons.uconn.edu/dissertations/2163 Exploring the Role of Language in Two Systems for Categorization Kayleigh Ryherd, PhD University of Connecticut, 2019 Multiple theories of category learning converge on the idea that there are two systems for categorization, each designed to process different types of category structures. The associative system learns categories that have probabilistic boundaries and multiple overlapping features through iterative association of features and feedback. The hypothesis-testing system learns rule-based categories through explicit testing of hy- potheses about category boundaries. Prior research suggests that language resources are necessary for the hypothesis-testing system but not for the associative system. However, other research emphasizes the role of verbal labels in learning the probabilistic similarity-based categories best learned by the associative system. This suggests that language may be relevant for the associative system in a different way than it is relevant for the hypothesis-testing system. Thus, this study investigated the ways in which language plays a role in the two systems for category learning. In the first experiment, I tested whether language is related to an individual’s ability to switch between the associative and hypothesis-testing systems. I found that participants showed remarkable ability to switch between systems regardless of their language ability.
    [Show full text]
  • Predictive Decoding of Neural Data Yaroslav O
    New Jersey Institute of Technology Digital Commons @ NJIT Dissertations Theses and Dissertations Spring 2009 Predictive decoding of neural data Yaroslav O. Halchenko New Jersey Institute of Technology Follow this and additional works at: https://digitalcommons.njit.edu/dissertations Part of the Computer Sciences Commons Recommended Citation Halchenko, Yaroslav O., "Predictive decoding of neural data" (2009). Dissertations. 901. https://digitalcommons.njit.edu/dissertations/901 This Dissertation is brought to you for free and open access by the Theses and Dissertations at Digital Commons @ NJIT. It has been accepted for inclusion in Dissertations by an authorized administrator of Digital Commons @ NJIT. For more information, please contact [email protected]. Cprht Wrnn & trtn h prht l f th Untd Stt (tl , Untd Stt Cd vrn th n f phtp r thr rprdtn f prhtd trl. Undr rtn ndtn pfd n th l, lbrr nd rhv r thrzd t frnh phtp r thr rprdtn. On f th pfd ndtn tht th phtp r rprdtn nt t b “d fr n prp thr thn prvt td, hlrhp, r rrh. If , r rt fr, r ltr , phtp r rprdtn fr prp n x f “fr tht r b lbl fr prht nfrnnt, h ntttn rrv th rht t rf t pt pn rdr f, n t jdnt, flfllnt f th rdr ld nvlv vltn f prht l. l t: h thr rtn th prht hl th r Inttt f hnl rrv th rht t dtrbt th th r drttn rntn nt: If d nt h t prnt th p, thn lt “ fr: frt p t: lt p n th prnt dl rn h n tn lbrr h rvd f th prnl nfrtn nd ll ntr fr th pprvl p nd brphl th f th nd drttn n rdr t prtt th dntt f I rdt nd flt.
    [Show full text]
  • Psychology Software for Python Release 3.0.2
    PsychoPy - Psychology software for Python Release 3.0.2 Jonathan Peirce Jan 29, 2019 Contents 1 About PsychoPy 1 2 General issues 3 3 Installation 29 4 Manual install 31 5 Getting Started 35 6 Builder 43 7 Coder 75 8 Running studies online 95 9 Reference Manual (API) 103 10 Troubleshooting 325 11 Recipes (“How-to”s) 329 12 Frequently Asked Questions (FAQs) 341 13 Resources (e.g. for teaching) 343 14 For Developers 345 15 PsychoPy Experiment file format (.psyexp) 359 Python Module Index 363 i ii CHAPTER 1 About PsychoPy 1.1 Citing PsychoPy If you use this software, please cite one of the publications that describe it. • Peirce, J. W., & MacAskill, M. R. (2018). Building Experiments in PsychoPy. London: Sage. • Peirce J. W. (2009). Generating stimuli for neuroscience using PsychoPy. Frontiers in Neuroinformatics, 2 (10), 1-8. doi:10.3389/neuro.11.010.2008 • Peirce, J. W. (2007). PsychoPy - Psychophysics software in Python. Journal of Neuroscience Methods, 162 (1-2):8-13 doi:10.1016/j.jneumeth.2006.11.017 Citing these papers gives the reviewer/reader of your study information about how the system works and it attributes some credit for its original creation. Academic assessment (whether for promotion or even getting appointed to a job in the first place) prioritises publications over making useful tools for others. Citations provide a way for the developers to justify their continued involvement in the development of the package. 1 PsychoPy - Psychology software for Python, Release 3.0.2 2 Chapter 1. About PsychoPy CHAPTER 2 General issues These are issues that users should be aware of, whether they are using Builder or Coder views.
    [Show full text]
  • Travma Sonrası Stres Bozukluğu Tedavisinde Bilişsel Ve Davranışçı Yaklaşımlar 28
    Hasan Kalyoncu Üniversitesi Psikoloji Bölümü www.hku.edu.tr Havalimanı Yolu Üzeri 8.Km 27410 Şahinbey/GAZİANTEP +90 (342) 211 80 80 - [email protected] EDİTÖR Doç. Dr. Şaziye Senem BAŞGÜL YARDIMCI EDİTÖR Arş. Gör. Saadet YAPAN YAYIN KURULU Prof. Dr. Mehmet Hakan TÜRKÇAPAR Prof. Dr. Mücahit ÖZTÜRK Prof. Dr. Bengi SEMERCİ Prof. Dr. Osman Tolga ARICAK Doç. Dr. Şaziye Senem BAŞGÜL Doç. Dr. Hanna Nita SCHERLER Öğr. Gör. Mehmet DİNÇ Öğr. Gör. Ferhat Jak İÇÖZ Öğr. Gör. Mediha ÖMÜR Arş. Gör. Saadet YAPAN Arş. Gör. Mahmut YAY Arş. Gör. Feyza TOPÇU DANIŞMA KURULU Prof. Dr. Can TUNCER Doç. Dr. Zümra ÖZYEŞİL Yrd. Doç. Dr. Itır TARI CÖMERT Dr. Özge MERGEN Dr. Akif AVCU KAPAK TASARIM Uğur Servet KARALAR GRAFİK UYGULAMA Yakup BAYRAM 0342 211 80 80 psikoloji.hku.edu.tr [email protected] Havalimanı Yolu Üzeri 8. Km 27410 Şahinbey/GAZİANTEP Sonbahar ve ilkbahar sayıları olarak yılda iki kere çıkar. İÇİNDEKİLER Önsöz 4 Editörden 5 Bilimsel Bir Araştırmanın Yol Haritası 6 Psikoterapilere Varoluşçu Bir Bakış 10 Anne, Baba ve Çocuk Tarafından Algılanan Ebeveyn Kabul-Ret ve Kontrolünün Çocuğun Duygu Düzenleme Becerisi İle İlişkisi 13 Fabrika İşçilerinde Stres ve Depresyon Arasındaki İlişki 20 Travma Sonrası Stres Bozukluğu Tedavisinde Bilişsel ve Davranışçı Yaklaşımlar 28 Araştırmalar ve Olgu Değerlendirmelerinde Nöro-Psikolojik Testler ve Bilgisayar Programlarının Bütünleştirilmesi: Bir Gözden Geçirme 32 Tez Özetleri 35 ÖNSÖZ Değerli okurlarımız, Hasan Kalyoncu Üniversitesi Psikoloji Bölümü öğretim üyeleri ve öğ- rencilerinin girişimiyle yayınlanan Psikoloji Araştırmaları dergisinin yeni bir sayısıyla yeniden karşınızdayız. Yolculuğumuz dördüncü sayı- sına ulaştı. Psikoloji Araştırmaları dergisinin bu sayısında, klinik çalışmalar ve göz- den geçirme derleme yazıları yer alıyor.
    [Show full text]
  • A Glance at Psychophysics Software Programs
    Basic and Clinical Spring 2011, Volume 2, Number 3 A Glance at Psychophysics Software Programs Ali Yoonessi 1,2, Ahmad Yoonessi 3 1. School of Advanced Medical Technologies, Tehran University of Medical Sciences, Tehran, Iran. 2. Iranian National Center for Addiction Studies, Tehran University of Medical Sciences, Tehran, Iran. 2. McGill Vision Research, McGill University, Canada Article info: A B S T R A C T Received: 23 January 2011 First Revision: 14 February 2011 Accepted: 2 March 2011 Visual stimulation with precise control of stimulus has transformed the field of psychophysics since the introduction of personal computers. Luminance and chromatic features of stimulus, timing, and position of the stimulus are the main features that could be defined using programs written specifically for psychophysical experiments. In this manuscript, software used for the psychophysical experiments have been reviewed and evaluated for ease of use, license, popularity, and expandability. 1. Introduction and Psychopy4. Psychtoolbox is a toolbox written for Matlab, a commercially available software for signal ince the foundation of psychophysics by processing. Psychopy is an open-source platform-inde- Ibn-Haytham in the 4th century (Solar Hi- pendent program written under Python, a very popular jri, S.H.), scientists have been puzzled by programming tool. Visionegg is another open-source the complexity of visual experience1. His software for generating stimuli. Other programs include S method of controlled experiment made him Presentation, e-Prime, and Psykinematix. These pro- the pioneer of scientific methods 2. With development grams are commercial products and the prices vary up of personal computers in 1970s, vision scientists real- to more than 1000$.
    [Show full text]
  • Pyflies: a Domain-Specific Language for Designing Experiments In
    applied sciences Article PyFlies: A Domain-Specific Language for Designing Experiments in Psychology Igor Dejanovi´c 1,* , Mirjana Dejanovi´c 2,*, Jovana Vidakovi´c 3 and Siniša Nikoli´c 1 1 Faculty of Technical Sciences, University of Novi Sad, 21000 Novi Sad, Serbia; [email protected] 2 Faculty of Medicine, University of Priština-Kosovska Mitrovica, 38220 Kosovska Mitrovica, Serbia 3 Faculty of Sciences, University of Novi Sad, 21000 Novi Sad, Serbia; [email protected] * Correspondence: [email protected] (I.D.); [email protected] (M.D.); Tel.: +381-21-485-4562 (I.D.) Abstract: The majority of studies in psychology are nowadays performed using computers. In the past, access to good quality software was limited, but in the last two decades things have changed and today we have an array of good and easily accessible open-source software to choose from. However, experiment builders are either GUI-centric or based on general-purpose programming languages which require programming skills. In this paper, we investigate an approach based on domain-specific languages which enables a text-based experiment development using domain- specific concepts, enabling practitioners with limited or no programming skills to develop psychology tests. To investigate our approach, we created PyFlies, a domain-specific language for designing experiments in psychology, which we present in this paper. The language is tailored for the domain of psychological studies. The aim is to capture the essence of the experiment design in a concise and highly readable textual form. The editor for the language is built as an extension for Visual Studio Code, one of the most popular programming editors today.
    [Show full text]
  • A Proposal for a Data-Driven Approach to the Influence of Music
    METHODS published: 20 August 2021 doi: 10.3389/fcvm.2021.699145 A Proposal for a Data-Driven Approach to the Influence of Music on Heart Dynamics Ennio Idrobo-Ávila 1*, Humberto Loaiza-Correa 1, Flavio Muñoz-Bolaños 2, Leon van Noorden 3 and Rubiel Vargas-Cañas 4 1 Escuela de Ingeniería Eléctrica y Electrónica, PSI - Percepción y Sistemas Inteligentes, Universidad del Valle, Cali, Colombia, 2 Departamento de Ciencias Fisiológicas, CIFIEX - Ciencias Fisiológicas Experimentales, Universidad del Cauca, Popayán, Colombia, 3 Department of Art, Music, and Theatre Sciences, IPEM—Institute for Systematic Musicology, Ghent University, Ghent, Belgium, 4 Departamento de Física, SIDICO - Sistemas Dinámicos, Instrumentación y Control, Universidad del Cauca, Popayán, Colombia Electrocardiographic signals (ECG) and heart rate viability measurements (HRV) provide information in a range of specialist fields, extending to musical perception. The ECG signal records heart electrical activity, while HRV reflects the state or condition of the autonomic nervous system. HRV has been studied as a marker of diverse psychological and physical diseases including coronary heart disease, myocardial infarction, and stroke. HRV has also been used to observe the effects of medicines, the impact of exercise and the analysis of emotional responses and evaluation of effects of various quantifiable Edited by: elements of sound and music on the human body. Variations in blood pressure, levels of Xiang Xie, stress or anxiety, subjective sensations and even changes in emotions constitute multiple First Affiliated Hospital of Xinjiang aspects that may well-react or respond to musical stimuli. Although both ECG and Medical University, China HRV continue to feature extensively in research in health and perception, methodologies Reviewed by: Ming-Jie Wang, vary substantially.
    [Show full text]
  • Psychopy 1. Kafli „Building Experiments in Psychopy“ Einu Sinni Var
    7/4/2018 PsychoPy 1. kafli Kynning „Building Experiments in PsychoPy“ • Tökum fyrir kafla 1-9: 1. Introduction 2. Building your first experiment 3. Using images – a study into face perception 4. Timing and brief stimuli: Posner cueing 5. Creating dynamic stimuli (revealing text and moving stimuli) 6. Providing feedback: simple Code Components 7. Ratings: Measure the Big 5 personality constructs 8. Randomization, blocks and counterbalancing: a bilingual Stroop task 9. Using the mouse for input: creating a visual search task Einu sinni var... • Fyrst: Sálfræðitilraunir keyrðar á sérhæfðum vélbúnaði – Dæmi: Hraðsjá (tachistoscope) • Síðar: Forritarar útbúa tilraunir • Enn síðar: Forritunarmál notendavænni • Núna: Hægt að útbúa flóknar tilraunir án forritunarkunnáttu með sérhæfðum forritum – Dæmi: PsychoPy 1 7/4/2018 Önnur tilraunaforrit • Krefjast forritunarkunnáttu, fólk skrifar kóða (texta) sem segir tölvunni hvað á að gera: – Psychophysics Toolbox – Presentation • Krefjast ekki forritunarkunnáttu, nota myndrænt notendaviðmót, bjóða ekki auðveldlega upp á flóknar tilraunir – Eprime – PsyScope – OpenSesame PsychoPy • Ókeypis og opið (open source) • Keyrir á margs konar stýrikerfum • Öflugt og sveigjanlegt • Hefur tvenns konar notendaviðmót – Coder • Skrifa skipanir á textaformi (Python forritunarmál) – Builder • Grafískt notendaviðmót (graphical user interface, GUI) – Ræður einnig við litla kóðabúta (code components, textaskipanir) • Við fjöllum aðallega um Builder Stýrikerfi • PsychoPy keyrir á Windows, Mac og Linux • Hér kennt á Windows-útgáfuna
    [Show full text]
  • An Introduction to the Objective Psychophysics Toolbox (O Ptb)
    An introduction to the Objective Psychophysics Toolbox (o_ptb) 1* 1 1 Thomas Hartmann , Nathan Weisz 2 1Centre for Cognitive Neuroscience and Department of Psychology, Paris-Lodron Universität 3 Salzburg, Hellbrunnerstraße 34/II, 5020 Salzburg, Austria 4 Correspondence 5 Thomas Hartmann 6 [email protected] 7 Keywords: Open Source; Matlab; Psychophysics; EEG; MEG; fMRI; Reaction Time; Stimulus 8 Presentation 9 Abstract 10 The Psychophysics Toolbox (PTB) is one of the most popular toolboxes for the development of 11 experimental paradigms. It is a very powerful library, providing low-level, platform independent 12 access to the devices used in an experiment such as the graphics and the sound card. While this low- 13 level design results in a high degree of flexibility and power, writing paradigms that interface the 14 PTB directly might lead to code that is hard to read, maintain, reuse and debug. Running an 15 experiment in different facilities or organizations further requires it to work with various setups that 16 differ in the availability of specialized hardware for response collection, triggering and presentation 17 of auditory stimuli. The Objective Psychophysics Toolbox (o_ptb) provides an intuitive, unified and 18 clear interface, built on top of the PTB that enables researchers to write readable, clean and concise 19 code. In addition to presenting the architecture of the o_ptb, the results of a timing accuracy test are 20 presented. Exactly the same Matlab code was run on two different systems, one of those using the 21 VPixx system. Both systems showed sub-millisecond accuracy. 22 1 Introduction 23 Writing the source code for an experimental paradigm is one of the most crucial and critical steps of 24 a study.
    [Show full text]
  • Psychopy - Psychology Software for Python Release 1.90.2
    PsychoPy - Psychology software for Python Release 1.90.2 Jonathan Peirce Jun 01, 2018 CONTENTS 1 About PsychoPy 1 2 General issues 3 3 Installation 31 4 Manual install 33 5 Getting Started 37 6 Builder 43 7 Coder 73 8 Running studies online 93 9 Reference Manual (API) 101 10 Troubleshooting 267 11 Recipes (“How-to”s) 271 12 Frequently Asked Questions (FAQs) 283 13 Resources (e.g. for teaching) 285 14 For Developers 289 15 PsychoPy Experiment file format (.psyexp) 303 Python Module Index 307 Index 309 i ii CHAPTER ONE ABOUT PSYCHOPY 1.1 Citing PsychoPy If you use this software, please cite one of the papers that describe it. 1. Peirce, JW (2007) PsychoPy - Psychophysics software in Python. J Neurosci Methods, 162(1-2):8-13 2. Peirce JW (2009) Generating stimuli for neuroscience using PsychoPy. Front. Neuroinform. 2:10. doi:10.3389/neuro.11.010.2008 Citing these papers gives the reviewer/reader of your study information about how the system works, it also attributes some credit for its original creation, and it means provides a way to justify the continued development of the package. 1 PsychoPy - Psychology software for Python, Release 1.90.2 2 Chapter 1. About PsychoPy CHAPTER TWO GENERAL ISSUES These are issues that users should be aware of, whether they are using Builder or Coder views. 2.1 Monitor Center PsychoPy provides a simple and intuitive way for you to calibrate your monitor and provide other information about it and then import that information into your experiment. Information is inserted in the Monitor Center (Tools menu), which allows you to store information about multiple monitors and keep track of multiple calibrations for the same monitor.
    [Show full text]
  • An Open-Source Cross-Platform Graphical Experiment Builder for Psychtoolbox with Built-In Performance Optimization
    Version: September 25, 2021 PsyBuilder: an open-source cross-platform graphical experiment builder for Psychtoolbox with built-in performance optimization Zhicheng Lin1,3†, Zhe Yang1,2†, Chengzhi Feng1, Yang Zhang1* 1 Department of Psychology, Soochow University, Suzhou, Jiangsu, China 215000 2 School of Computer Science & Technology, Soochow University, Suzhou, Jiangsu, China 215000 3 Applied Psychology Program, The Chinese University of Hong Kong, Shenzhen, China 518172 † Joint first authors with equal contributions *Correspondence should be addressed to Dr. Yang Zhang at Department of Psychology, Soochow University, Suzhou, Jiangsu, 215123, China. E-mail: [email protected] Acknowledgments The study was supported by the National Natural Science Foundation of China (32171049, 32071045), the Natural Science Foundation of Jiangsu Province (BK20201411), Guangdong Basic and Applied Basic Research Foundation (2019A1515110574), and the City & University Strategy Soochow University Leading Research Team in the Humanities and Social Sciences. 1 Abstract Psychtoolbox is among the most popular open-source software packages for stimulus presentation and response collection. It provides flexibility and power in the choice of stimuli and responses, combined with precision in control and timing. However, Psychtoolbox requires coding in MATLAB (or its equivalent, such as Octave). Scripting is challenging to learn and can lead to timing inaccuracies unwittingly. It can also be time-consuming and error-prone even for experienced users. We have developed the first general-purpose graphical experiment builder for Psychtoolbox, called PsyBuilder, for both new and experienced users. The builder allows users to graphically implement sophisticated experimental tasks through intuitive drag-and-drop without the need to script. The output codes have built-in optimized timing precision and come with detailed comments to facilitate customization.
    [Show full text]
  • University of Groningen Opensesame Mathot, Sebastiaan; Schreij, Daniel
    University of Groningen OpenSesame Mathot, Sebastiaan; Schreij, Daniel; Theeuwes, Jan Published in: Behavior Research Methods DOI: 10.3758/s13428-011-0168-7 IMPORTANT NOTE: You are advised to consult the publisher's version (publisher's PDF) if you wish to cite from it. Please check the document version below. Document Version Publisher's PDF, also known as Version of record Publication date: 2012 Link to publication in University of Groningen/UMCG research database Citation for published version (APA): Mathot, S., Schreij, D., & Theeuwes, J. (2012). OpenSesame: An open-source, graphical experiment builder for the social sciences. Behavior Research Methods, 44(2), 314-324. https://doi.org/10.3758/s13428-011-0168-7 Copyright Other than for strictly personal use, it is not permitted to download or to forward/distribute the text or part of it without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license (like Creative Commons). The publication may also be distributed here under the terms of Article 25fa of the Dutch Copyright Act, indicated by the “Taverne” license. More information can be found on the University of Groningen website: https://www.rug.nl/library/open-access/self-archiving-pure/taverne- amendment. Take-down policy If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim. Downloaded from the University of Groningen/UMCG research database (Pure): http://www.rug.nl/research/portal. For technical reasons the number of authors shown on this cover page is limited to 10 maximum.
    [Show full text]