Skip to content

abcsds/NPLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neurophysiology and Information processing in Humans lab

In this repository you can find the necessary files to execute and analyse the NPIPH exercise on online EEG processing for the WS2022 at the TUGraz. The experiment focuses on Event Related Potentials (ERPs) and Quantitative Electroencephalography (qEEG).

The experiment's main components are two:

  • The cognitive experiment paradigm (para).
  • The analysis scenario (src).

Setup

To setup the presentation environment install Python 3.8 or above or above, and install the required libraries with the following command:

pip install -r requirements.txt

This will install Psychopy and some other useful tools.

Install OpenVIBE from 3.4.0 from http://openvibe.inria.fr/

Paradigm

Contained in para/main.psyexp. The file of the experimental paradigm was designed using Psychopy. It uses pylsl to connect to the Lab streamer protocol. To run the experiment you can open the .psyexp fle with Psychopy, or you can run the generated main.py file by executing it with Python (python main.py from a command line). The result of this measuring should be stored as an XDF file, through the LSL LabRecorder software.

Analysis

The data is processed online with OpenVIBE. To visualize the processing open the scenario under src/OVScenario.xml with the OpenVIBE Designer.

Input data

The current experiment was created to use images from the Nencki Affective Picture System (NAPS) dataset[1]. The images used for this experiment have two categories: Animals (Target) and Landscapes (Non-Target).

[1] Marchewka A., Żurawski Ł., Jednoróg K., Grabowska A. (2014) The Nencki Affective Picture System (NAPS): introduction to a novel, standardized, wide-range, high-quality, realistic picture database. Behavior Research Methods, 46(2), 596–610. doi:10.3758/s13428-013-0379-1

Project Folder structure

  • doc: Documentation for this research project.
  • img: Figures, images, and plots that help document the experiment.
  • settings: Configuration files for recording software.
  • para: The Psychopy paradigm folder.
  • data: A folder for the Psychopy logs.
  • lists: The trial lists for the paradigm.
  • res: A folder for the resources of the paradigm.
  • main.psyexp: The RSVP paradigm programmed for Psychopy.
  • raw: This folder contains the XDF files required for analysis.
  • scr: Scripts for processing and analysis.

Raw Data

Raw data is stored in the ov format, under the raw directory. You can open this data with the OpenVIBE generic stream reader box.

Modifying the experiment

We encourage you to explore the experiment, data, and code provided, and modify it to accommodate your needs. This code is provided with a very relaxed open-source license.