Skip to content

Code for the project "Empirically identifying and computationally modelling the brain-behavior relationship for human scene categorization" by Karapetian et al. (2023)

License

Notifications You must be signed in to change notification settings

Agnessa14/Perceptual-decision-making

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Brain-behaviour relationship in scene categorization

This code was used for the project "Empirically identifying and computationally modelling the brain-behavior relationship for human scene categorization" by Karapetian et al. (2023). The code was written in Matlab 2021a, Python 3.6 and Tensorflow 2.7.

To clone this repository, use

git clone https://github.com/Agnessa14/Perceptual-decision-making.git

1. Preprocessing of EEG data

This script relies on functions from the Fieldtrip toolbox.

The output is a Matlab structure timelock.mat which is used in subsequent analyses.

2. Decoding (MVPA)

Decoding and distance-to-hyperplane analyses were performed with the SVM from the libsvm toolbox:.

1. Scene decoding

2. Category decoding

3. Searchlight analysis

4. Multidimensional scaling (MDS)

3. Distance-to-hyperplane analysis

1. Obtain the subject-level distances to the natural/man-made hyperplane

2. Correlate distances and reaction times

3. Searchlight analysis

4. Modelling with RCNN

1. Fine-tuning RCNN

import urllib
_, msg = urllib.request.urlretrieve(
    'https://osf.io/4fdky/download', 'model_02.11_2_weights.h5')
print(msg)

2. Feature and RT extraction

3. Representational similarity analysis (RSA) with EEG

1. EEG representational dissimilarity matrix (RDM) construction

2. RCNN RDM construction

3. Correlation between RDMs

4. Correlation between RTs

5. Distance-to-hyperplane analysis between EEG and RCNN RTs

5. Statistics examples

About

Code for the project "Empirically identifying and computationally modelling the brain-behavior relationship for human scene categorization" by Karapetian et al. (2023)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published