Skip to content

This repository contains the code and documentation for the Brainhack School project on exploring the structure-function coupling and segregation analysis in video-watching electroencephalography (EEG) data. The project aims to investigate how the electrophysiological activity during video-watching is related to the underlying anatomical structure

License

Notifications You must be signed in to change notification settings

brainhack-school2023/subramani_Romy_project

Repository files navigation

type date title names github_repo website tags summary image
project
2023-06-09
Investigating Structure-Function Coupling and Segregation Patterns during Video-Watching: Unveiling Dynamics of Electrophysiological Activity and Functional Connectivity
Venkatesh Subramani
Romy Beauté
eeg
dmri
Inter-Subject Correlation
Segregation
This study investigated the Structure-Function coupling of weakly correlated electrophysiological activity during video-watching. While defining Weak Inter-Subject Correlation (ISC) based on correlation alone proved challenging, exploring Segregation analysis revealed higher segregation within the Visual network during periods of Significant ISC, highlighting the potential of this approach to capture distinct dynamics in brain connectivity during video-watching.
paradigms_BHS.jpg

Project definition

Background

Study 1

Numerous studies have extensively investigated how individuals respond to naturalistic stimuli, particularly video-watching. These studies, conducted by researchers such as Uri Hasson et al. (2004), Sonkusare et al. (2019), have provided valuable insights into the neural mechanisms underlying the processing of such stimuli. Additionally, investigations into the synchronization of brain activity among individuals during independent viewing, as explored by Uri Hasson et al. (2004) and Dmochowski et al. (2012), have revealed the remarkable coordination and shared neural responses that occur during these experiences. Furthermore, previous research has focused on quantifying the strength of the relationship between the brain's structure and its functional activity during resting-state conditions. Study by Preti M G and Van de Ville D. (2019) has shed light on this structure-function coupling, highlighting how the underlying anatomical organization influences brain function at rest. A recent study conducted by Samara et al. (2023) has compared the macro-scale cortical organization of the brain during video-watching with resting-state conditions, providing valuable insights into the similarities and differences in brain organization and functional connectivity between these two states. Collectively, these studies have significantly advanced our understanding of how the brain responds to naturalistic stimuli, the synchronization of brain activity during independent viewing, the relationship between brain structure and function during rest, and the cortical organization during video-watching and resting-state conditions.

The gap in the existing research is the exploration of how the electrophysiological activity during video-watching depends on the underlying anatomical structure.

The cortex has been observed to exhibit stereotypical responsiveness to complex naturalistic stimuli and display links to individual variability [Uri Hasson et al., 2004], referred to as Strong Inter-subject Correlation (ISC) and Weak ISC.

image info Red markers indicate the significant ISC tested against bootstraping. Strong ISC has been already studied as part of the PhD work of Venkatesh. Weak ISC is investigated in the framework of BHS and they are defined based on criterion such as the period in which ISC is identified to be low

The objective of our study is two folds: To examine the Structure-Function coupling of the electrophysiological activity during video-watching, particularly focusing on periods of weak inter-subject correlation (ISC). To compare the Structure-Function coupling observed during Strong ISC and Weak ISC periods, shedding light on the differences in cortical organization and functional connectivity between these states.

Study 2

Results supported by from the Study 1 points in the direction that Structure-Function coupling during Strong and Weak ISC does not vary, prompting to design and analyse the Inter-Subject Synchrony during video-watching from a different lens.

Graph Theory has emerged as a powerful tool for modeling the brain as interconnected networks, enabling the examination of functional relevance and brain organization through various measures (Sporns, 2022). The networked brain exhibits both segregation, characterized by specialized processing within specific networks, and integration, involving distributed information processing across multiple networks (Bassett and Bullmore, 2007). This highlights the dynamic interplay between specialized and distributed processing in the brain. Segregation, a measure derived from Graph Theory and emphasized by Wig (2017), quantifies the interaction level between a given network and other networks, providing insights into communication and information exchange (Wig, 2017). By leveraging Graph Theory measures such as segregation, valuable insights into the functional connectivity and information processing dynamics of the brain can be gained.

image info Segregation quantifies how much does a given network talk to other networks, e.g., Does Visual Yeo-Krienen network talk to other networks such as Default-Mode Network, Frontoparietal, Dorsal Attention ?

Objective: Could there be a marker distinguishable in the specific periods of the video that Segregation highlight ? We look into the Segregation of Visual network during the entire period of the video investigating whether this network possesses clear pattern of segregation/integration during specific segments of the video.

Tools

  • Python, Scipy, Nilearn, Pandas, Matplotlib, mne_connectivity

Data

  • Video-watching EEG (N = 25) from Healthy Brain Network - HBN
  • Structural Connectome of N = 56 subjects from Human Connectome Project - HCP constructed by Preti M G and Van de Ville D., 2019
  • Pre-processed and source-localized EEG signal

Deliverables

Results

Progress overview

In this study, we embarked on an investigation of the Structure-Function coupling of weakly correlated electrophysiological activity during video-watching, focusing on periods of weak inter-subject correlation (ISC). However, our attempt to define Weak ISC based solely on correlation encountered challenges, with no significant differences in the structure-function coupling observed between Strong and Weak ISC periods. This highlighted the intricacy of relying solely on correlation for such definitions.

Motivated by the work of Betzel et al. (2020), we transitioned to an alternative approach using Segregation analysis to identify distinctive patterns during specific video segments. To accomplish this, we computed Functional connectivity by leveraging a dynamic window based on phase coherence among all pairs of HCP-MMP ROIs (Glasser et al., 2016). Notably, we focused on assessing the level of Segregation within the Visual Yeo-Krienen network.

Subsequently, we compared Segregation between periods characterized by Significant ISC (red markers) and non-Significant ISC (null ISC). Excitingly, we observed higher segregation within the Visual network during Significant ISC periods (t(168) = 1.97; p < 0.048; permutation-corrected).

This transition from investigating Structure-Function coupling based on correlation alone to exploring Segregation as an alternative approach allowed us to uncover meaningful patterns during video-watching. Our findings emphasize the complexity of defining ISC periods and highlight the potential of Segregation analysis to capture distinct dynamics in the brain's functional connectivity during video-watching.

Tools we learned during this project

  • Meta-project: We are delighted to have made the best use of BHS. We learned to visualize all the layers in the project starting from conception to implementation to interpretation. We observed that we are a human-variant of backpropagation algorithm tweaking the previous layers in answering an interesting research question.
  • Git and Github: We unlearned and relearned Git version control as part of the BHS training modules and applied the knowledge during this project

Results

Deliverable 1: Report

Current report in a markdown file

Deliverable 2: Structure-Function coupling between Strong ISC and Weak ISC periods

We employed a Graph Signal Processing (GSP) measure, introduced by Preti M G and Van de Ville D [Preti M G, Van de Ville D., 2019], to quantify the relationship between structure and function. Specifically, we examined the strength of decoupling between weakly correlated electrophysiological activity and the underlying anatomical structure. Comparing the patterns observed during Strong and Weak ISC periods, we found no significant differences in the regions of interest (ROIs) (paired t-test on the ROIs with FDR-correction).

image info Uncorrected test statistics by comparing Strong and Weak ISC periods for the alpha band. The test statistics is thresholded at alpha = 0.05

image info FDR-corrected spatial map for the alpha band

Visual inspection of the uncorrected test statistics map revealed localized differences across the brain in the alpha band. However, the FDR-corrected spatial map demonstrated that no regions reached statistical significance. This observation suggests that the lack of significant differences between Strong and Weak ISC periods may be attributed to their close similarity. These findings underscore the complexity involved in defining Weak ISC periods and highlight the challenges associated with studying their distinct characteristics.

Deliverable 3: Segregation analysis during video

We computed functional connectome dynamically (1s of EEG) over a non-overlapping sliding window for the cortical activity in the alpha band. The regions of interest (ROIs) defined by the HCP-MMP parcellation [Glasser et al., 2016] were grouped, and Segregation analysis [Wig G S, 2017] was performed, with a specific emphasis on the Visual Yeo-Krienen network. To establish a noise floor, we generated surrogate Segregation measures by spatially permuting the EEG cortical signal (N = 100). We compared the observed Segregation values against the surrogate Segregation measures to identify instances where the observed Segregation exceeded the noise floor.

image info Relating Segregation time-series to the Strong ISC. First the ISC time-series (blue) is binarized i.e., set to 1 when it is Strong. Second, the Segregation is projected alongside (green). The yellow horizontal line distinguishes the level of Segregation (high or low)

Upon analyzing the time-series of Segregation in relation to the binarized Strong ISC (blue), we observed occasional alignment between the two, although not strictly consistent. To further explore this relationship, we categorized the Segregation into two groups.

image infoSegregation grouped to two groups

The analysis revealed a significant difference between the two groups (two-sample t-test; t(168) = 1.97; p < 0.048; corrections with 50000 permutations), indicating that the Visual Yeo-Krienen network exhibits greater segregation during periods of significant inter-subject correlation (ISC).

Overall, these findings demonstrate that the level of Segregation in the Visual network is influenced by the strength of ISC, providing insights into the functional dynamics of the brain during video-watching.

Deliverable 4: project gallery

The content is made ready for to be added to the project gallery of BHS 2023

Conclusion and acknowledgement

In this project, the researchers investigated the relationship between electrophysiological activity and underlying anatomical structure during video-watching. They initially focused on periods of weak inter-subject correlation (ISC) and attempted to define weak ISC based on correlation. However, they found no significant differences in the structure-function coupling between strong and weak ISC periods. They then shifted their approach and explored segregation analysis as an alternative method to identify distinct patterns during specific video segments. They computed functional connectivity using a dynamic window and assessed the level of segregation within the Visual Yeo-Krienen network. The results showed higher segregation within the Visual network during periods of significant ISC compared to null ISC. These findings highlight the complexity of defining ISC periods and demonstrate the potential of segregation analysis to capture unique dynamics in the brain's functional connectivity during video-watching.

This project was realized as part of the Brainhack School 2023. The authors would like to thank Austin Benn for the supervision. Nicolas Farrugia, and Giulia Lioi for the inputs along the way. Last but not the least, the authors would like to register a massive thanks and gratitude to Team Organizers of BHS 2023 for a smooth and wonderful Brainhack!

Logistics

Study 1

Generated_data (available on the OSF) handles all the intermediately generated files which are necessary for the subsequent analysis. Results : to store all the figures; src_data (on the OSF) : all the necessary source data files; src_scripts : scripts for the whole pipeline

src_scripts contains the scripts in a sequential order required for the analysis.

A quick description : 1_weak_ISC_definition.py : Will contain script related to defining periods of Weak ISC and the EEG data for those periods are sliced.

2_Baseline_correction.py : zscoring the EEG cortical activity

3a_SDI_computation_differenced.py : Structural-Decoupling Index (SDI) computed on the zscored EEG activity during Strong ISC. Both empirical and surrogate SDIs are computed

3b_SDI_computation_baseline.py : SDI computed for the (absolute) Baseline. Both empirical and surrogate SDIs are computed

4_SDI_statistics.py : 2-level-model for statistical comparison between empirical SDI and Surrogate SDI

5_SDI_spatial_maps.py : Visualization of the spatial maps

6_SDI_statistics_strong_weak_comparison.py : Statistical comparisons between SDIs computed for Weak and Strong ISC periods

Study 2

7_Segregation.py : Interactions between a given Yeo-Krienen network vs the rest of the network using a Graph Theory measure. Subsequent analysis on the interaction during certain segments of the video

Data are provided to be able to reproduce the results. Head on to the OSF link provided, download the source and generated data, and run these scripts.

About

This repository contains the code and documentation for the Brainhack School project on exploring the structure-function coupling and segregation analysis in video-watching electroencephalography (EEG) data. The project aims to investigate how the electrophysiological activity during video-watching is related to the underlying anatomical structure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages