Leveraging Julia's automated differentiation and symbolic computation to increase spectral DCM flexibility and speed

bioRxiv [Preprint]. 2023 Nov 1:2023.10.27.564407. doi: 10.1101/2023.10.27.564407.

Abstract

Using neuroimaging and electrophysiological data to infer neural parameter estimations from theoretical circuits requires solving the inverse problem. Here, we provide a new Julia language package designed to i) compose complex dynamical models in a simple and modular way with ModelingToolkit.jl, ii) implement parameter fitting based on spectral dynamic causal modeling (sDCM) using the Laplace approximation, analogous to MATLAB implementation in SPM12, and iii) leverage Julia's unique strengths to increase accuracy and speed by employing Automatic Differentiation during the fitting procedure. To illustrate the utility of our flexible modular approach, we provide a method to improve correction for fMRI scanner field strengths (1.5T, 3T, 7T) when fitting models to real data.

Keywords: DCM; Julia; LFP; Neuroblox; SPM; causal; circuit; fMRI; model; neural; neuroimaging.

Publication types

  • Preprint