Neural Dynamics of Social Cognition: A Single-trial Computational Analysis of Learning under Uncertainty
This repository contains Matlab code for reproducing the results in:
Charlton, C. E., & Hauke, D. J., et al. (2025). Neural Dynamics of Social Cognition: A Single-trial Computational Analysis of Learning under Uncertainty.
Supervision: Daniel J. Hauke, Andreea O. Diaconescu
Contributors: Vladimir Litvak, Michelle Wobmann, Christina Andreou, Renate de Bock, Stefan Borgwardt, Volker Roth
We acquired EEG data from 43 control participants during an advice-taking task. This data was modeled to explore the computational mechanisms that govern social cognition and learning under uncertainty.
This repository utilizes submodules. If you're cloning the repository, make sure to get the associated submodules as well.
The current submodules include:
- SPM12
- Clone this repository along with its submodules using the following command:
git clone --recurse-submodules https://github.com/colleenc11/compi_ioio.git
If you've already cloned the repository without its submodules, initialize and fetch them with:
git submodule update --init --recursive
- Open Matlab and navigate to the
COMPI_IOIO/codedirectory. - Initialize your environment by running
compi_setup_pathsscript.
The models were implemented in Matlab (version: 2023a; https://mathworks.com) using the HGF toolbox (version: 6.0). This toolbox is part of the open-source TAPAS (Frässle et al., 2021) software collection, available here.
Steps to run the pipeline:
- Open Matlab and navigate to the
COMPI_IOIO/codedirectory. - From within this directory, run the 'compi_master_eeg' script.
- To configure analysis options, navigate to the
code/configs/optionsdirectory and modify thecompi_ioio_optionsfile.
The repository also contains the following external, freely available Matlab tools:
- the function
notBoxPlotby Rob Campbell, available here. - the
TNUEEG toolboxfor preprocessing, aligning with the methods presented in the study by Weber et al., 2022.