In a few recent papers (Zamani Esfahlani et al 2020 and Faskowitz et al 2020), we proposed what we called ``edge time series'' as a way of obtaining framewise contributions to the correlation-based measures of functional connectivity (FC). The approach is simple. Suppose
The variable
The value of
When we first proposed this measure, we only had these ideas in mind; instantaneous co-fluctuations were a convenient way of decomposing a correlation into its framewise contributions (so we could, in principle, filter our correlations by retaining only specific kinds of frames) and returning a measure of time-varying connectivity. What we overlooked was the fact that each edge time series,
We felt that this was interesting (it put our purely ad hoc measure of co-fluctuation time series on stronger statistical ground), but also opened up our eyes to new possibile ways of using these time series. One possibility, and the one that we focus on in the accompanying preprint, is to fully embrace edge time series as an interaction term in a multi-linear model that also contains terms for activations of regions
Importantly, if
In our preprint, we use these models to explain time-varying behavior in zebrafish, worms, and humans and show that, in all cases, the interaction term -- time-varying connectivity -- exhibits non-trivial explanatory power.
This repository contains example code for fitting these types of models (really nothing more than multiple linear regression). It includes a data file, data.mat, that contains behavioral and parcel time series for one animal (zebrafish). The accompanying script, fit_models.m does just that -- it reads in the data and fits the above linear model for every pair of parcels.
The fit_models.m script is ``bare bones,'' in the sense that it provides a scalable and extendable skeleton for applying these types of models to other datasets.
If you use this code, please cite the preprint as:
Merritt, H., Mejia, A., & Betzel, R. (2024). The dual interpretation of edge time series: Time-varying connectivity versus statistical interaction. bioRxiv, 2024-08. link to preprint