Increasing spectral DCM flexibility and speed by leveraging Julia's ModelingToolkit and automated differentiation

David Hofmann,Anthony G Chesebro,Chris Rackauckas,Lilianne Rivka Mujica-Parodi,Karl Friston,Alan Edelman,Helmut H Strey
DOI: https://doi.org/10.1101/2023.10.27.564407
2024-07-29
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.
Neuroscience
What problem does this paper attempt to address?