The multiplex dynamic functional connectivity network (mdFCN) analysis pipeline for objectively uncovering latent network structures from cortical activity. The material in this repository is provided to supplement the following paper: Al-Sa'd, M., Vanhatalo, S. and Tokariev, A., "Multiplex dynamic networks in the newborn brain disclose latent links with neurobehavioral phenotypes", Human Brain Mapping, (2024), https://doi.org/10.1002/hbm.26610.
The MATLAB scripts, functions, and data listed in this repository are used to produce results, and supporting figures illustrated in the paper.
The developed mdFCN package contains the following demo scripts within its directory:
- This demo script generates the study overview in Fig. 1. Note that the neonate’s raw EEG and neurocognitive scores are not supplied, and the code uses random numbers as example.
- This demo script generates the correlation analysis results in Fig. 4. Note that the neonate’s raw EEG and neurocognitive scores are not supplied, and the code uses random numbers as example.
- This demo script generates the multiplexity analysis results in Fig. 5.
- This demo script generates the mdFCN verification results in Fig. 6.
The developed mdFCN package contains the following main scripts within its directory:
- This main script calculates the static and dynamic functional connectivity (FC) of each neonate's cortical signals. Note that the neonate’s raw EEG and neurocognitive scores are not supplied.
- The FCs of the HC group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/ERoEGI1JET1JriyvItu7sDcBh27eTqihky6cY1BSY-PHrQ?e=Wz7VSR
- The FCs of the AED group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EfRENcju9JJLoxtC2hAUGZgBSQisD_WXuGcDV6TGwoqXog?e=mpN7JP
- This main script generates masks for the missing scores in each clinical group and each sleep state. Note that the neonate’s raw EEG and neurocognitive scores are not supplied.
- This main script extracts latent networks from mdFCNs by NMF and selects the best model order.
- The extracted networks of the HC group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/Ebvj0IVn-T9LpqhKZITmhgMBcbUeCiCyrbBnfCdNT7hEew?e=WhuMmG
- The extracted networks of the AED group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EVNFKvv3ReFBoXlRzluCa0sBBroVECsYYfgXp0Fa5B8ljg?e=5gROTH
- This main script decomposes the latent networks by CPD and selects the best model order.
- The decomposed networks of the HC group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EdGmhXzNFu5Ki1B7HwD6pDIB6pWJmikLaL6fxgy-wkoYew?e=oghBjF
- The decomposed networks of the AED group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EU-vQTmDt39NrjGiEUb9dFAB0HBZMf1Wv1PJnm8XwBKwJg?e=JpeXZx
- This main script reconstructs the decomposed networks and generates null distributions for all other reconstruction configurations. Note that the neonate’s raw EEG and neurocognitive scores are not supplied.
- The reconstructed networks of the HC group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EZiSNevWKkNMmmKeDIY0ZP8BkLcsyqL-T0xk7jYoaoeTrQ?e=sDgIki
- The reconstructed networks of the AED group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/Eagqz-gZb1RPjHlC0zkgsucBA8a2SCw7yuW1vI6eBumRCg?e=793hGn
- This main script verifies the mdFCN analysis pipeline. Note that the neonate’s raw EEG and neurocognitive scores are not supplied.
- The verified results for the HC group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EdK61BuuZu5IuE-isHp6CoIBMLHjTWWHWGtNQm54GFSj4Q?e=viBYhX
- The verified results for the AED group can be downloaded from: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EbIlt5pdq_dInE1ucgMtF4sBu5g6toR07_a_3ZYAyv-LGA?e=PF6kYW
The developed mdFCN package is comprised of the following MATLAB functions that are in specific folders within the Functions directory:
- compute_parcel_signals.m: It runs the preprocessing stage in Fig. 1.
- iir_filters.m: It generates bandpass filters via cascaded zero-phase low-pass and high-pass infinite impulse response filters.
- parcel_seg.m: It segments the parcel signals temporal course.
- phase_lag_index.m: It computes the phase-lag index (PLI) measures of connectivity.
- static_pli_measures.m: It computes the static PLI measures of connectivity for different frequency bands.
- dynamic_pli_measures.m: It computes the dynamic PLI measures of connectivity for different frequency bands.
- You need to request and download The non-negative matrix factorization toolbox for biological data mining from: https://sites.google.com/site/nmftool/home/source-code
- nmfnnls_mod.m: It is a modified version of nmfnnls.m in NMF\nmfv1_4.
- You need to request and download Tensorlab | A Matlab package for tensor computations from: https://www.tensorlab.net/
- cpd_network_time_avg.m: It averages the mdFCN temporal variations.
- cpd_positive_als.m: It is a modified version of cpd_als.m in CPD\tensorlab_2016-03-28.
- multiplex_measures.m: It calculates various measures of structural multiplexity.
- corr_density.m: It calculates the density of significant positive/negative correlations.
- make_FDR.m: It applies multiple comparisons correction using the Benjamini–Hochberg procedure.
- partialcorr_score_tensor.m: It calculates correlation using Spearman's rank coefficient with the infants' conceptional age acting as a covariate.
- tensor_correct_median.m: It standardizes the connectivity patterns of every subject by removing their median and setting their median absolute deviation to one.
- plot3d_atlas.m: It plots the brain atlas and the cortical regions in 3D.
- plot_mult_signals.m: It plots multichannel signals at different frequencies.
- plot_signals.m: It plots multichannel signals.
- violinPlot.m: It is a modified code for generating violin plots for visualizing multiple distributions. The original code is developed by Jonas Dorn (jonas.dorn@gmail.com).
- fold_upper_matrix.m: It matricizes the vectorized connectivity values into a square matrix.
- unfold_upper_matrix.m: It vectorizes the upper triangle of a square matrix.
- fold_connectivity.m: It folds the connectivity values back to their square form with a supplied fidelity matrix.
- order_selection.m: It selects a model order using an entropy-based technique to avoid under and over-fitting problems.
The developed mdFCN package contains various atlas and head models used for the cortical source reconstruction task and for plotting.
The developed mdFCN package contains the following data that are in specific folders within Results\HC or Results\AED directories:
- This folder holds the output of the main script Main_1_FC.m; the FC for each neonate in the HC and AED groups. Alternatively, the FCs can be downloaded from
- HC: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/ERoEGI1JET1JriyvItu7sDcBh27eTqihky6cY1BSY-PHrQ?e=Wz7VSR
- AED: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EfRENcju9JJLoxtC2hAUGZgBSQisD_WXuGcDV6TGwoqXog?e=mpN7JP,
- This folder contains the output of the main script Main_3_extraction.m; the extracted latent networks for short and long-term scores, for the five frequency bands, and for the different model orders. Alternatively, the extracted latent networks can be downloaded from
- HC: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/Ebvj0IVn-T9LpqhKZITmhgMBcbUeCiCyrbBnfCdNT7hEew?e=WhuMmG
- AED: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EVNFKvv3ReFBoXlRzluCa0sBBroVECsYYfgXp0Fa5B8ljg?e=5gROTH
- This folder contains the output of the main script Main_4_decomposition.m; the decomposed latent networks for short and long-term scores and for the different model orders. Alternatively, the decomposed latent networks can be downloaded from
- HC: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EdGmhXzNFu5Ki1B7HwD6pDIB6pWJmikLaL6fxgy-wkoYew?e=oghBjF
- AED: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EU-vQTmDt39NrjGiEUb9dFAB0HBZMf1Wv1PJnm8XwBKwJg?e=JpeXZx
- This folder holds the output of the main script Main_5_reconstruction.m; the reconstructed networks for short and long-term scores along with their correlations to the scores and null distributions. Alternatively, the reconstructed networks can be downloaded from
- HC: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EZiSNevWKkNMmmKeDIY0ZP8BkLcsyqL-T0xk7jYoaoeTrQ?e=sDgIki
- AED: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/Eagqz-gZb1RPjHlC0zkgsucBA8a2SCw7yuW1vI6eBumRCg?e=793hGn
- This folder contains the output of the main script Main_6_system_verification.m; the mdFCN verification results. Alternatively, the verification results can be downloaded from
- HC: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EdK61BuuZu5IuE-isHp6CoIBMLHjTWWHWGtNQm54GFSj4Q?e=viBYhX
- AED: https://helsinkifi-my.sharepoint.com/:u:/g/personal/almohamm_ad_helsinki_fi/EbIlt5pdq_dInE1ucgMtF4sBu5g6toR07_a_3ZYAyv-LGA?e=PF6kYW