Giter VIP home page Giter VIP logo

mdnunez / encodingn200 Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 4.0 4.59 MB

Python and JAGS code and data associated with publication, "The latency of a visual evoked potential tracks the onset of decision making" (2019)

Home Page: https://www.sciencedirect.com/science/article/pii/S1053811919303386

License: GNU General Public License v3.0

Python 69.41% MATLAB 26.16% Shell 0.17% R 4.25%
decision-making evidence-accumulation jags hddm eeg-signals erp

encodingn200's Introduction

Citation

Nunez, M. D., Gosai, A., Vandekerckhove, J., & Srinivasan, R. (2019). The latency of a visual evoked potential tracks the onset of decision making. NeuroImage. doi: 10.1016/j.neuroimage.2019.04.052

Elsevier source

Preprint

Email Michael if you cannot find a copy of the paper.

encodingN200

(Repository version 0.6.0)

EEG measures of neural processing reflect visual encoding time (encodingN200) before evidence accumulation during human decision making

Authors: Michael D. Nunez, Aishwarya Gosai, Joachim Vandekerckhove, and Ramesh Srinivasan from the Cognitive Sciences Department at the University of California, Irvine

Significance

Encoding of a sensory stimulus is believed to be the first step in perceptual decision making. In this study, we report evidence that visual evoked potentials (EPs) around 200 ms after stimulus presentation track the time of visual figure-ground segregation before the onset of evidence accumulation during decision making. These EP latencies vary across individuals, are modulated by external visual noise, and increase response time by x milliseconds when they increase by x milliseconds. Hierarchical Bayesian model-fitting was also used to relate these EPs to a specific cognitive parameter that tracks time related to visual encoding in a decision-making model of response time. This work adds to the growing literature that suggests that EEG signals can track the component cognitive processes of decision making.

Hypothesis

In this study, we directly tested the hypothesis that N200 latencies (EEG stimulus-locked negative peaks occurring between 150 and 275 milliseconds in human subjects) reflect visual processing time that occurs before evidence accumulation during quick decision making.

Prerequisites

MATLAB

MATLAB Repository: artscreenEEG

R (for figures)

Python 2 and Scientific Python libraries

Note that the Python scripts in this repository were written in Python 2.7 (before Python 2 was mostly replaced by Python 3 for scientific analysis). You may want to create a local environment to run Python 2.7. For example:

conda create -y -n N200 python=2.7
conda activate N200

For these next 3 install steps in Ubuntu, see directions here.

MCMC Sampling Program: JAGS

Program: JAGS Wiener module

Python Repository: pyjags, can use pip:

pip install pyjags

Warning: Install pyjags on Python 2.7 may be difficult.

Downloading

The repository can be cloned with git clone https://github.com/mdnunez/encodingN200.git

The repository can also be may download via the <>Code -> Download zip button above.

License

encodingN200 is licensed under the GNU General Public License v3.0 and written by Michael D. Nunez, Aishwarya Gosai, Joachim Vandekerckhove, and Ramesh Srinivasan from the Cognitive Sciences Department at the University of California, Irvine.

Minor updates were made by Michael D. Nunez at the University of Amsterdam, Psychological Methods in 2023.

Further Reading

Lui, K. K., Nunez, M. D., Cassidy, J. M., Vandekerckhove, J., Cramer, S. C., & Srinivasan, R. (2020). Timing of readiness potentials reflect a decision-making process in the human brain. Computational Brain & Behavior.

Nunez, M. D., Vandekerckhove, J., & Srinivasan, R. (2017). How attention influences perceptual decision making: Single-trial EEG correlates of drift-diffusion model parameters. Journal of Mathematical Psychology, 76, 117-130.

Nunez, M. D., Srinivasan, R., & Vandekerckhove, J. (2015). Individual differences in attention influence perceptual decision making. Frontiers in Psychology, 8.

Posterior samples

Posterior samples for Models 1 and 2 from the paper can be found on here.

encodingn200's People

Contributors

mdnunez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.