https://github.com/cty20010831/psyc_42350_final_project
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.5%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: cty20010831
- Language: TeX
- Default Branch: main
- Size: 912 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
PSYC 42350 Final Project
This repository contains the code, analysis scripts, and results for a final project in the University of Chicago’s PSYC 42350 course. The project investigates how narrative content modulates neural synchrony using simultaneous EEG-fMRI data from an open-access dataset published by Telesford et al. (2023). Two main analytical approaches—inter-subject correlation (ISC) and representational similarity analysis (RSA)—were applied to examine whether coherent narratives evoke stronger neural alignment than non-narrative stimuli.
Data
I used an open-access dataset from Telesford et al. (2023), which includes EEG and fMRI recordings of participants viewing both narrative (e.g., Despicable Me) and non-narrative (e.g., Inscapes) video clips.
- Data Portal
- Direct Download Links
Research Questions
- ISC: Do coherent narratives evoke stronger inter-subject correlation in fMRI compared to non-narrative stimuli?
- Cross-Modal RSA: Does cross-modal EEG–fMRI representational similarity differ between narrative and non-narrative conditions, and can these multimodal signals classify whether a segment is narrative vs. non-narrative?
Methods
Dataset Preprocessing:
- 22 healthy adults (ages 23–51) with no history of psychiatric/neurological illness.
- EEG recorded at ~5000 Hz, fMRI at 3T with TR=2.1 s.
- Preprocessing (motion correction, MNI alignment, etc.) done with the Connectome Computation System (CCS).
- 22 healthy adults (ages 23–51) with no history of psychiatric/neurological illness.
Segmentation & Analyses:
- Segmentation: Both EEG and fMRI time series were segmented into 10-second windows, creating averaged neural patterns per segment.
- ISC: Only fMRI data were used, correlating each subject’s voxel-wise time course with the mean of all other subjects. ISC maps were aggregated within the 17 Yeo networks.
- RSA: Constructed representational dissimilarity matrices (RDMs) for EEG and fMRI (using 1 – Pearson correlation) and computed cross-modal alignment.
- Classification: A linear SVM was used to classify narrative vs. non-narrative segments based on RSA features.
- Segmentation: Both EEG and fMRI time series were segmented into 10-second windows, creating averaged neural patterns per segment.
Results
ISC (fMRI):
- Narratives induced significantly higher inter-subject correlation across 16 of the 17 Yeo networks, particularly in high-level cortical networks such as the Control/Frontoparietal and Default Mode networks.
- A repeated-measures ANOVA confirmed a robust effect of network on the ISC difference (Narrative minus Non-Narrative).
- Narratives induced significantly higher inter-subject correlation across 16 of the 17 Yeo networks, particularly in high-level cortical networks such as the Control/Frontoparietal and Default Mode networks.
Cross-Modal RSA (EEG–fMRI):
- Group-level RSA showed a slight positive trend for narratives (r = 0.003) vs. non-narratives (r = –0.009), but the difference was not statistically significant (paired t-test p = 0.148).
- Classification accuracy using RSA features was 52.8%, only marginally above chance.
- Group-level RSA showed a slight positive trend for narratives (r = 0.003) vs. non-narratives (r = –0.009), but the difference was not statistically significant (paired t-test p = 0.148).
These findings indicate that while narratives strongly synchronize brain activity across individuals in fMRI, the cross-modal representational alignment (EEG vs. fMRI) remains modest under current analytic parameters.
Virtual Environment
To replicate this analysis, you can use the provided requirements.txt in a Python 3.11 environment:
```bash
Create the virtual environment:
python3.11 -m venv venv
Activate the virtual environment:
source venv/bin/activate
Install required packages:
python3 -m pip install -r requirements.txt
Owner
- Login: cty20010831
- Kind: user
- Repositories: 1
- Profile: https://github.com/cty20010831
GitHub Events
Total
- Delete event: 2
- Push event: 4
- Create event: 4
Last Year
- Delete event: 2
- Push event: 4
- Create event: 4
Dependencies
- h5py >=3.9.0
- matplotlib >=3.7.0
- mne >=1.6.0
- nibabel >=5.1.0
- nilearn >=0.10.0
- numpy >=1.25.0
- pandas >=2.1.0
- pybids >=0.16.4
- scikit-learn >=1.3.0
- scipy >=1.11.0
- seaborn >=0.13.0
- statsmodels >=0.14.0