Dynamics-informed priors (DIP) for neural mass modelling.
3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 4 matches
- [1] § Methods › Datasets ↔ plot_spectra_params.m, lines 229 to 268 · score 0.68 · power spectral densities, frequency bins, resolution, post LTG, lamotrigine, levetiracetam · block
oscr:b:GQJ2KSNYNXPTA-T· Report a mismatch - [2] § Methods › Datasets ↔ Spectra/final_spectra_gen.m, lines 3 to 83 · score 0.66 · post treatment, pre treatment, segmented, drug, baseline, 45 Hz · block
oscr:b:GP93P24237TCS-8· Report a mismatch - [3] § Methods › Parameter estimation ↔ Simulations/Cost_lansdcapes/R1_De/DIP_DCM_25_fixed_params/spm_nlsi_GN.m, lines 1 to 60 · score 0.65 · variational Laplace, free energy, generative models, Gaussian, inversion, log · block
oscr:b:WFFRCXN1GKXR7-B· Report a mismatch - [4] § Methods › Parameter estimation ↔ Simulations/Cost_lansdcapes/R1_De/DIP_DCM_25_fixed_params/spm_nlsi_GN.m, lines 1 to 60 · score 0.60 · free energy, generative models, Gaussian, covariance, variational, Bayesian · block
oscr:b:WFFRCXN1GKXR7-B· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 613 lines · 19 KB · GPL-3.0 · 2 matches
- function [Ep,Cp,Eh,F,L,dFdp,dFdpp] = spm_nlsi_GN(M,U,Y)
- % Bayesian inversion of nonlinear models - Gauss-Newton/Variational Laplace
- % FORMAT [Ep,Cp,Eh,F] = spm_nlsi_GN(M,U,Y)
- %
- % [Dynamic] MIMO models
- %__________________________________________________________________________
- %
- % M.IS - function name f(P,M,U) - generative model
- % This function specifies the nonlinear model:
- % y = Y.y = IS(P,M,U) + X0*P0 + e
- % where e ~ N(0,C). For dynamic systems this would be an integration
- % scheme (e.g. spm_int). spm_int expects the following:
- %
- % M.f - f(x,u,P,M)
- % M.g - g(x,u,P,M)
- % M.h - h(x,u,P,M)
- % x - state variables
- % u - inputs or causes
- % P - free parameters
- % M - fixed functional forms and parameters in M
- %
- % M.FS - function name f(y,M) - feature selection
- % This [optional] function performs feature selection assuming the
- % generalized model y = FS(y,M) = FS(IS(P,M,U),M) + X0*P0 + e
- %
- % M.P - starting estimates for model parameters [optional]
- %
- % M.pE - prior expectation - E{P} of model parameters
- % M.pC - prior covariance - Cov{P} of model parameters
- %
- % M.hE - prior expectation - E{h} of log-precision parameters
- % M.hC - prior covariance - Cov{h} of log-precision parameters
- %
- % U.u - inputs (or just U)
- % U.dt - sampling interval
- %
- % Y.y - outputs (samples x observations x ...)
- % Y.dt - sampling interval for outputs
- % Y.X0 - confounds or null space (over size(y,1) samples or all vec(y))
- % Y.Q - q error precision components (over size(y,1) samples or all vec(y))
- %
- %
- % Parameter estimates
- %--------------------------------------------------------------------------
- % Ep - (p x 1) conditional expectation E{P|y}
- % Cp - (p x p) conditional covariance Cov{P|y}
- % Eh - (q x 1) conditional log-precisions E{h|y}
- %
- % log evidence
- %--------------------------------------------------------------------------
- % F - [-ve] free energy F = log evidence = p(y|f,g,pE,pC) = p(y|m)
- %
- %__________________________________________________________________________
- % Returns the moments of the posterior p.d.f. of the parameters of a
- % nonlinear model specified by IS(P,M,U) under Gaussian assumptions.
- % Usually, IS is an integrator of a dynamic MIMO input-state-output model
- %
- % dx/dt = f(x,u,P)
- % y = g(x,u,P) + X0*P0 + e
- %
- % A static nonlinear observation model with fixed input or causes u
- % obtains when x = []. i.e.
- %
- % y = g([],u,P) + X0*P0e + e
- %
- % but static nonlinear models are specified more simply using
- %
- % y = IS(P,M,U) + X0*P0 + e
- %
- % Priors on the free parameters P are specified in terms of expectation pE
- % and covariance pC. The E-Step uses a Fisher-Scoring scheme and a Laplace
- % approximation to estimate the conditional expectation and covariance of P
- % If the free-energy starts to increase, an abbreviated descent is
- % invoked. The M-Step estimates the precision components of e, in terms
- % of log-precisions. Although these two steps can be thought of in
- % terms of E and N steps they are in fact variational steps of a full
- % variational Laplace scheme that accommodates conditional uncertainty
- % over both parameters and log precisions (c.f. hyperparameters with hyper
- % priors)
- %
- % An optional feature selection can be specified with parameters M.FS.
- %
- % For generic aspects of the scheme see:
- %
- % Friston K, Mattout J, Trujillo-Barreto N, Ashburner J, Penny W.
- % Variational free energy and the Laplace approximation.
- % NeuroImage. 2007 Jan 1;34(1):220-34.
- %
- % This scheme handels complex data along the lines originally described in:
- %
- % Sehpard RJ, Lordan BP, and Grant EH.
- % Least squares analysis of complex data with applications to permittivity
- % measurements.
- % J. Phys. D. Appl. Phys 1970 3:1759-1764.
- %
- %__________________________________________________________________________
- % Copyright (C) 2001-2015 Wellcome Trust Centre for Neuroimaging
- % Karl Friston
- % $Id: spm_nlsi_GN.m 7279 2018-03-10 21:22:44Z karl $
- % options
- %--------------------------------------------------------------------------
- try, M.nograph; catch, M.nograph = 0; end
- try, M.noprint; catch, M.noprint = 0; end
- try, M.Nmax; catch, M.Nmax = 128; end
- % figure (unless disabled)
- %--------------------------------------------------------------------------
- if ~M.nograph
- Fsi = spm_figure('GetWin','SI');
- end
- % check integrator
- %--------------------------------------------------------------------------
- try
- M.IS;
- catch
- M.IS = 'spm_int';
- end
- % composition of feature selection and prediction (usually an integrator)
- %--------------------------------------------------------------------------
- try
- y = Y.y;
- catch
- y = Y;
- end
- try
- % try FS(y,M)
- %----------------------------------------------------------------------
- try
- y = feval(M.FS,y,M);
- IS = inline([M.FS '(' M.IS '(P,M,U),M)'],'P','M','U');
- % try FS(y)
- %------------------------------------------------------------------
- catch
- y = feval(M.FS,y);
- IS = inline([M.FS '(' M.IS '(P,M,U))'],'P','M','U');
- end
- catch
- % otherwise FS(y) = y
- %----------------------------------------------------------------------
- try
- IS = inline([M.IS '(P,M,U)'],'P','M','U');
- catch
- IS = M.IS;
- end
- end
- % converted to function handle
- %--------------------------------------------------------------------------
- IS = spm_funcheck(IS);
- % paramter update eqation
- %--------------------------------------------------------------------------
- if isfield(M,'f'), M.f = spm_funcheck(M.f); end
- if isfield(M,'g'), M.g = spm_funcheck(M.g); end
- if isfield(M,'h'), M.h = spm_funcheck(M.h); end
- % size of data (samples x response component x response component ...)
- %--------------------------------------------------------------------------
- if iscell(y)
- ns = size(y{1},1);
- else
- ns = size(y,1);
- end
- ny = length(spm_vec(y)); % total number of response variables
- nr = ny/ns; % number response components
- M.ns = ns; % number of samples M.ns
- % initial states
- %--------------------------------------------------------------------------
- try
- M.x;
- catch
- if ~isfield(M,'n'), M.n = 0; end
- M.x = sparse(M.n,1);
- end
- % input
- %--------------------------------------------------------------------------
- try
- U;
- catch
- U = [];
- end
- % initial parameters
- %--------------------------------------------------------------------------
- try
- spm_vec(M.P) - spm_vec(M.pE);
- fprintf('\nParameter initialisation successful\n')
- catch
- M.P = M.pE;
- end
- % time-step
- %--------------------------------------------------------------------------
- try
- dt = Y.dt;
- catch
- dt = 1;
- end
- % precision components Q
- %--------------------------------------------------------------------------
- try
- Q = Y.Q;
- if isnumeric(Q), Q = {Q}; end
- catch
- Q = spm_Ce(ns*ones(1,nr));
- end
- nh = length(Q); % number of precision components
- nq = ny/length(Q{1}); % for compact Kronecker form of M-step
- % prior moments (assume uninformative priors if not specifed)
- %--------------------------------------------------------------------------
- pE = M.pE;
- try
- pC = M.pC;
- catch
- np = spm_length(M.pE);
- pC = speye(np,np)*exp(16);
- end
- % confounds (if specified)
- %--------------------------------------------------------------------------
- try
- nb = size(Y.X0,1); % number of bins
- nx = ny/nb; % number of blocks
- dfdu = kron(speye(nx,nx),Y.X0);
- catch
- dfdu = sparse(ny,0);
- end
- if isempty(dfdu), dfdu = sparse(ny,0); end
- % hyperpriors - expectation (and initialize hyperparameters)
- %--------------------------------------------------------------------------
- try
- hE = M.hE;
- if length(hE) ~= nh
- hE = hE + sparse(nh,1);
- end
- catch
- hE = sparse(nh,1) - log(var(spm_vec(y))) + 4;
- end
- h = hE;
- % hyperpriors - covariance
- %--------------------------------------------------------------------------
- try
- ihC = spm_inv(M.hC);
- if length(ihC) ~= nh
- ihC = ihC*speye(nh,nh);
- end
- catch
- ihC = speye(nh,nh)*exp(4);
- end
- % unpack covariance
- %--------------------------------------------------------------------------
- if isstruct(pC);
- pC = spm_diag(spm_vec(pC));
- end
- % dimension reduction of parameter space
- %--------------------------------------------------------------------------
- V = spm_svd(pC,0);
- nu = size(dfdu,2); % number of parameters (confounds)
- np = size(V,2); % number of parameters (effective)
- ip = (1:np)';
- iu = (1:nu)' + np;
- % second-order moments (in reduced space)
- %--------------------------------------------------------------------------
- pC = V'*pC*V;
- uC = speye(nu,nu)/1e-8;
- ipC = inv(spm_cat(spm_diag({pC,uC})));
- % initialize conditional density
- %--------------------------------------------------------------------------
- Eu = spm_pinv(dfdu)*spm_vec(y);
- p = [V'*(spm_vec(M.P) - spm_vec(M.pE)); Eu];
- Ep = spm_unvec(spm_vec(pE) + V*p(ip),pE);
- % EM
- %==========================================================================
- criterion = [0 0 0 0];
- C.F = -Inf; % free energy
- v = -4; % log ascent rate
- dFdh = zeros(nh,1);
- dFdhh = zeros(nh,nh);
- for k = 1:M.Nmax
- % time
- %----------------------------------------------------------------------
- tStart = tic;
- % E-Step: prediction f, and gradients; dfdp
- %======================================================================
- try
- % gradients
- %------------------------------------------------------------------
- [dfdp,f] = spm_diff(IS,Ep,M,U,1,{V});
- dfdp = reshape(spm_vec(dfdp),ny,np);
- % check for stability
- %------------------------------------------------------------------
- normdfdp = norm(dfdp,'inf');
- revert = isnan(normdfdp) || normdfdp > exp(32);
- catch
- revert = true;
- end
- if revert && k > 1
- for i = 1:4
- % reset expansion point and increase regularization
- %--------------------------------------------------------------
- v = min(v - 2,-4);
- % E-Step: update
- %--------------------------------------------------------------
- p = C.p + spm_dx(dFdpp,dFdp,{v});
- Ep = spm_unvec(spm_vec(pE) + V*p(ip),pE);
- % try again
- %--------------------------------------------------------------
- try
- [dfdp,f] = spm_diff(IS,Ep,M,U,1,{V});
- dfdp = reshape(spm_vec(dfdp),ny,np);
- % check for stability
- %----------------------------------------------------------
- normdfdp = norm(dfdp,'inf');
- revert = isnan(normdfdp) || normdfdp > exp(32);
- catch
- revert = true;
- end
- % break
- %--------------------------------------------------------------
- if ~revert, break, end
- end
- end
- % convergence failure
- %----------------------------------------------------------------------
- if revert
- error('SPM:spm_nlsi_GN','Convergence failure.');
- end
- % prediction error and full gradients
- %----------------------------------------------------------------------
- e = spm_vec(y) - spm_vec(f) - dfdu*p(iu);
- J = -[dfdp dfdu];
- % M-step: Fisher scoring scheme to find h = max{F(p,h)}
- %======================================================================
- for m = 1:8
- % precision and conditional covariance
- %------------------------------------------------------------------
- iS = sparse(0);
- for i = 1:nh
- iS = iS + Q{i}*(exp(-32) + exp(h(i)));
- end
- S = spm_inv(iS);
- iS = kron(speye(nq),iS);
- Pp = real(J'*iS*J);
- Cp = spm_inv(Pp + ipC);
- % precision operators for M-Step
- %------------------------------------------------------------------
- for i = 1:nh
- P{i} = Q{i}*exp(h(i));
- PS{i} = P{i}*S;
- P{i} = kron(speye(nq),P{i});
- JPJ{i} = real(J'*P{i}*J);
- end
- % derivatives: dLdh = dL/dh,...
- %------------------------------------------------------------------
- for i = 1:nh
- dFdh(i,1) = trace(PS{i})*nq/2 ...
- - real(e'*P{i}*e)/2 ...
- - spm_trace(Cp,JPJ{i})/2;
- for j = i:nh
- dFdhh(i,j) = - spm_trace(PS{i},PS{j})*nq/2;
- dFdhh(j,i) = dFdhh(i,j);
- end
- end
- % add hyperpriors
- %------------------------------------------------------------------
- d = h - hE;
- dFdh = dFdh - ihC*d;
- dFdhh = dFdhh - ihC;
- Ch = spm_inv(real(-dFdhh));
- % update ReML estimate
- %------------------------------------------------------------------
- dh = spm_dx(dFdhh,dFdh,{4});
- dh = min(max(dh,-1),1);
- h = h + dh;
- % convergence
- %------------------------------------------------------------------
- dF = dFdh'*dh;
- if dF < 1e-2, break, end
- end
- % E-Step with Levenberg-Marquardt regularization
- %======================================================================
- % objective function: F(p) = log evidence - divergence
- %----------------------------------------------------------------------
- L(1) = spm_logdet(iS)*nq/2 - real(e'*iS*e)/2 - ny*log(8*atan(1))/2; ...
- L(2) = spm_logdet(ipC*Cp)/2 - p'*ipC*p/2;
- L(3) = spm_logdet(ihC*Ch)/2 - d'*ihC*d/2;
- F = sum(L);
- % record increases and reference log-evidence for reporting
- %----------------------------------------------------------------------
- try
- F0;
- if ~M.noprint
- fprintf(' actual: %.3e (%.2f sec)\n',full(F - C.F),toc(tStart))
- end
- catch
- F0 = F;
- end
- % if F has increased, update gradients and curvatures for E-Step
- %----------------------------------------------------------------------
- if F > C.F || k < 3
- % accept current estimates
- %------------------------------------------------------------------
- C.p = p;
- C.h = h;
- C.F = F;
- C.L = L;
- C.Cp = Cp;
- % E-Step: Conditional update of gradients and curvature
- %------------------------------------------------------------------
- dFdp = -real(J'*iS*e) - ipC*p;
- dFdpp = -real(J'*iS*J) - ipC;
- % decrease regularization
- %------------------------------------------------------------------
- v = min(v + 1/2,4);
- str = 'EM:(+)';
- else
- % reset expansion point
- %------------------------------------------------------------------
- p = C.p;
- h = C.h;
- Cp = C.Cp;
- % and increase regularization
- %------------------------------------------------------------------
- v = min(v - 2,-4);
- str = 'EM:(-)';
- end
- % E-Step: update
- %======================================================================
- dp = spm_dx(dFdpp,dFdp,{v});
- p = p + dp;
- Ep = spm_unvec(spm_vec(pE) + V*p(ip),pE);
- % Graphics
- %======================================================================
- if exist('Fsi', 'var')
- spm_figure('Select', Fsi)
- % reshape prediction if necessary
- %------------------------------------------------------------------
- e = spm_vec(e);
- f = spm_vec(f);
- try
- e = reshape(e,ns,nr);
- f = reshape(f,ns,nr);
- end
- % subplot prediction
- %------------------------------------------------------------------
- x = (1:size(e,1))*dt;
- xLab = 'time (seconds)';
- try
- if length(M.Hz) == ns
- x = M.Hz;
- xLab = 'Frequency (Hz)';
- end
- end
- % plot real or complex predictions
- %------------------------------------------------------------------
- tstr = sprintf('%s: %i','prediction and response: E-Step',k);
- if isreal(spm_vec(y))
- subplot(2,1,1)
- plot(x,real(f)), hold on
- plot(x,real(f + e),':'), hold off
- xlabel(xLab)
- title(tstr,'FontSize',16)
- grid on
- else
- subplot(2,2,1)
- plot(x,real(f)), hold on
- plot(x,real(f + e),':'), hold off
- xlabel(xLab)
- ylabel('real')
- title(tstr,'FontSize',16)
- grid on
- subplot(2,2,2)
- plot(x,imag(f)), hold on
- plot(x,imag(f + e),':'), hold off
- xlabel(xLab)
- ylabel('imaginary')
- title(tstr,'FontSize',16)
- grid on
- end
- % subplot parameters
- %--------------------------------------------------------------
- subplot(2,1,2)
- bar(full(V*p(ip)))
- xlabel('parameter')
- tstr = 'conditional [minus prior] expectation';
- title(tstr,'FontSize',16)
- grid on
- drawnow
- end
- % convergence
- %----------------------------------------------------------------------
- dF = dFdp'*dp;
- if ~M.noprint
- fprintf('%-6s: %i %6s %-6.3e %6s %.3e ',str,k,'F:',full(C.F - F0),'dF predicted:',full(dF))
- end
- criterion = [(dF < 1e-1) criterion(1:end - 1)];
- if all(criterion)
- if ~M.noprint
- fprintf(' convergence\n')
- end
- break
- end
- % F_all(k)=C.F;
- % Ep_all(1,k) = Ep.R(1);
- % Ep_all(2,k) = Ep.R(2);
- % Ep_all(3,k) = Ep.T(1);
- % Ep_all(4,k) = Ep.T(2);
- % Ep_all(5,k) = Ep.G;
- % Ep_all(6,k) = Ep.H(1);
- % Ep_all(7,k) = Ep.H(2);
- % Ep_all(8,k) = Ep.H(3);
- % Ep_all(9,k) = Ep.H(4);
- % Ep_all(10,k) = Ep.H(5);
- % Ep_all(11,k) = Ep.A{1};
- % Ep_all(12,k) = Ep.A{2};
- % Ep_all(13,k) = Ep.A{3};
- % Ep_all(14,k) = Ep.D;
- % Ep_all(15,k) = Ep.I;
- end
- if exist('Fsi', 'var')
- spm_figure('Focus', Fsi)
- end
- % outputs
- %--------------------------------------------------------------------------
- Ep = spm_unvec(spm_vec(pE) + V*C.p(ip),pE);
- Cp = V*C.Cp(ip,ip)*V';
- Eh = C.h;
- F = C.F;
- L = C.L;
- % F_all=F_all;
- % Ep_all=Ep_all;
spm_nlsi_GN.m at commit f00781c, under GPL-3.0 · at the source
Overview
- Department of Mathematics and Statistics, University of Exeter, Exeter, United Kingdom
- Living Systems Institute, University of Exeter, Exeter, United Kingdom
- Department of Basic and Clinical Neuroscience, King’s College London, London, United Kingdom
- Department of Psychology, Faculty of Health & Life Sciences, University of Exeter, Exeter, United Kingdom
Abstract
Neural mass models (NMMs) are important mathematical tools for inferring hidden neural mechanisms that generate healthy and pathological brain activities. A critical step in the inference process is parameter estimation, which calibrates NMMs based on measured neuroimaging data. While parameter estimation can be conducted via various approaches, one of the most influential methods is dynamic causal modelling (DCM). DCM adopts a Bayesian inference approach that relies on, and is sensitive to, the specification of prior parameter distributions reflecting a priori hypotheses about the causes of data. However, most parameters of NMMs encode neuronal properties that are not directly measurable. For this reason, in the absence of sufficient empirical data and well-founded prior beliefs, inference becomes increasingly susceptible to bias. Therefore, it was imperative to establish a comprehensive strategy for mapping model parameters to data. This study proposes a computational extension of DCM, named DCM with dynamics-informed priors (DIP-DCM), which adopts a genetic algorithm (GA) to map parameter values to model dynamics. Optimal sub-regions of the parameter space were subsequently selected and translated into groups of parameter priors for DCM. DIP-DCM was compared with the “standard” DCM inference and to the standalone GA, using two independent neuroimaging datasets. Results indicated that DIP-DCM models were the best predictors of data and captured key mechanistic signatures of psychiatric disease and pharmacological interventions. Overall, DIP-DCM handled local minima and explored diverse parameter regimes following trajectories informed directly by model dynamics and data. This study suggests that DIP-DCM is an advantageous route to parameter estimation when information is limited, enabling a data-driven derivation of parameter priors in exploratory studies, across different biological contexts and datasets.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
AlessiaCaccamo/Figures_DIP_DCM_25
f00781c57bf551de87ebf5b17203045a259a276b, 18 March 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
62 files
- README.m, MATLAB, 18 lines
- Simulations/
Cost_lansdcapes/ , MATLAB, 32 linesR1_De/ DIP_DCM_25_fixed_params/ DIP_Pipeline.m - Simulations/
Cost_lansdcapes/ , MATLAB, 45 linesR1_De/ DIP_DCM_25_fixed_params/ DIP_plots_Pipeline.m - Simulations/
Cost_lansdcapes/ , MATLAB, 15 linesR1_De/ DIP_DCM_25_fixed_params/ MOGA_lfp_params.m - Simulations/
Cost_lansdcapes/ , MATLAB, 16 linesR1_De/ DIP_DCM_25_fixed_params/ MOGA_lfp_params_lhc.m - Simulations/
Cost_lansdcapes/ , MATLAB, 19 linesR1_De/ DIP_DCM_25_fixed_params/ create_plot_mg.m - Simulations/
Cost_lansdcapes/ , MATLAB, 20 linesR1_De/ DIP_DCM_25_fixed_params/ fitness_MOGA_spm_lfp.m - Simulations/
Cost_lansdcapes/ , MATLAB, 52 linesR1_De/ DIP_DCM_25_fixed_params/ generate_spectrum.m - Simulations/
Cost_lansdcapes/ , MATLAB, 6 linesR1_De/ DIP_DCM_25_fixed_params/ lhsdesign_scale_dom.m - Simulations/
Cost_lansdcapes/ , MATLAB, 10 linesR1_De/ DIP_DCM_25_fixed_params/ load_data.m - Simulations/
Cost_lansdcapes/ , MATLAB, 202 linesR1_De/ DIP_DCM_25_fixed_params/ plot_LFP_params.m - Simulations/
Cost_lansdcapes/ , MATLAB, 56 linesR1_De/ DIP_DCM_25_fixed_params/ plot_lfp_spectra.m - Simulations/
Cost_lansdcapes/ , MATLAB, 19 linesR1_De/ DIP_DCM_25_fixed_params/ plot_mg.m - Simulations/
Cost_lansdcapes/ , MATLAB, 66 linesR1_De/ DIP_DCM_25_fixed_params/ run_lfp_MOGA.m - Simulations/
Cost_lansdcapes/ , MATLAB, 333 linesR1_De/ DIP_DCM_25_fixed_params/ run_lfp_hybrid.m - Simulations/
Cost_lansdcapes/ , MATLAB, 29 linesR1_De/ DIP_DCM_25_fixed_params/ save_dcm_priors.m - Simulations/
Cost_lansdcapes/ , MATLAB, 6 linesR1_De/ DIP_DCM_25_fixed_params/ save_figures.m - Simulations/
Cost_lansdcapes/ , MATLAB, 23 linesR1_De/ DIP_DCM_25_fixed_params/ save_output.m - Simulations/
Cost_lansdcapes/ , MATLAB, 11 linesR1_De/ DIP_DCM_25_fixed_params/ set_paths.m - Simulations/
Cost_lansdcapes/ , MATLAB, 193 linesR1_De/ DIP_DCM_25_fixed_params/ spm_csd_mtf.m - Simulations/
Cost_lansdcapes/ , MATLAB, 613 lines, 2 matchesR1_De/ DIP_DCM_25_fixed_params/ spm_nlsi_GN.m - Simulations/
Cost_lansdcapes/ , MATLAB, 1,018 linesR1_De/ run_dcm.m - Simulations/
Cost_lansdcapes/ , MATLAB, 51 linesR1_De/ run_dip.m - Simulations/
Cost_lansdcapes/ , MATLAB, 32 linesR1_Di/ DIP_DCM_25_fixed_params/ DIP_Pipeline.m - Simulations/
Cost_lansdcapes/ , MATLAB, 45 linesR1_Di/ DIP_DCM_25_fixed_params/ DIP_plots_Pipeline.m - Simulations/
Cost_lansdcapes/ , MATLAB, 15 linesR1_Di/ DIP_DCM_25_fixed_params/ MOGA_lfp_params.m - Simulations/
Cost_lansdcapes/ , MATLAB, 15 linesR1_Di/ DIP_DCM_25_fixed_params/ MOGA_lfp_params_lhc.m - Simulations/
Cost_lansdcapes/ , MATLAB, 19 linesR1_Di/ DIP_DCM_25_fixed_params/ create_plot_mg.m - Simulations/
Cost_lansdcapes/ , MATLAB, 20 linesR1_Di/ DIP_DCM_25_fixed_params/ fitness_MOGA_spm_lfp.m - Simulations/
Cost_lansdcapes/ , MATLAB, 52 linesR1_Di/ DIP_DCM_25_fixed_params/ generate_spectrum.m - Simulations/
Cost_lansdcapes/ , MATLAB, 6 linesR1_Di/ DIP_DCM_25_fixed_params/ lhsdesign_scale_dom.m - Simulations/
Cost_lansdcapes/ , MATLAB, 10 linesR1_Di/ DIP_DCM_25_fixed_params/ load_data.m - Simulations/
Cost_lansdcapes/ , MATLAB, 202 linesR1_Di/ DIP_DCM_25_fixed_params/ plot_LFP_params.m - Simulations/
Cost_lansdcapes/ , MATLAB, 56 linesR1_Di/ DIP_DCM_25_fixed_params/ plot_lfp_spectra.m - Simulations/
Cost_lansdcapes/ , MATLAB, 19 linesR1_Di/ DIP_DCM_25_fixed_params/ plot_mg.m - Simulations/
Cost_lansdcapes/ , MATLAB, 66 linesR1_Di/ DIP_DCM_25_fixed_params/ run_lfp_MOGA.m - Simulations/
Cost_lansdcapes/ , MATLAB, 333 linesR1_Di/ DIP_DCM_25_fixed_params/ run_lfp_hybrid.m - Simulations/
Cost_lansdcapes/ , MATLAB, 29 linesR1_Di/ DIP_DCM_25_fixed_params/ save_dcm_priors.m - Simulations/
Cost_lansdcapes/ , MATLAB, 6 linesR1_Di/ DIP_DCM_25_fixed_params/ save_figures.m - Simulations/
Cost_lansdcapes/ , MATLAB, 23 linesR1_Di/ DIP_DCM_25_fixed_params/ save_output.m - Simulations/
Cost_lansdcapes/ , MATLAB, 11 linesR1_Di/ DIP_DCM_25_fixed_params/ set_paths.m - Simulations/
Cost_lansdcapes/ , MATLAB, 193 linesR1_Di/ DIP_DCM_25_fixed_params/ spm_csd_mtf.m - Simulations/
Cost_lansdcapes/ , MATLAB, 613 linesR1_Di/ DIP_DCM_25_fixed_params/ spm_nlsi_GN.m - Simulations/
Cost_lansdcapes/ , MATLAB, 1,021 linesR1_Di/ run_dcm.m - Simulations/
Cost_lansdcapes/ , MATLAB, 51 linesR1_Di/ run_dip.m - Simulations/
Cost_lansdcapes/ , MATLAB, 174 linescost_landscapes.m - Simulations/
Cost_lansdcapes/ , MATLAB, 193 linesparam_recovery.m - Spectra/
final_spectra_gen.m , MATLAB, 234 lines, 1 match - Violin.m, MATLAB, 713 lines
- effect_size/
plot_params_effects.m , MATLAB, 902 lines - multistart/
plot_LFP_params.m , MATLAB, 188 lines - plot_correlations.m, MATLAB, 692 lines
- plot_spectra_params.m, MATLAB, 899 lines, 1 match
- run_efficiency/
efficiency_plots.m , MATLAB, 339 lines - run_full_model_29_params
/ , MATLAB, 84 linesBMC_full_reduced.m - run_full_model_29_params
/ , MATLAB, 96 linesfull_model_comparison.m - run_plot_data_models/
plot_data_models.m , MATLAB, 339 lines - run_reduced_150_generati
ons/ , MATLAB, 620 linesplot_reduced_150_generat ions.m - run_validate_on_scz_stud
y2/ , MATLAB, 240 linesscz_ctl_dataset.m - violinplot.m, MATLAB, 193 lines
- LICENSE.txt, License, 674 lines
- README.md, Text, 23 lines
AlessiaCaccamo/DIP_DCM_25
a148b5d5de0891a1dbb200d322809b27f017bf24, 2 October 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
42 files
- DEMO/
DEMO.m , MATLAB, 17 lines - DEMO/
DIP_DCM_25/ , MATLAB, 33 linesDIP_Pipeline.m - DEMO/
DIP_DCM_25/ , MATLAB, 43 linesDIP_plots_Pipeline.m - DEMO/
DIP_DCM_25/ , MATLAB, 40 linesMOGA_lfp_params.m - DEMO/
DIP_DCM_25/ , MATLAB, 41 linesMOGA_lfp_params_lhc.m - DEMO/
DIP_DCM_25/ , MATLAB, 19 linescreate_plot_mg.m - DEMO/
DIP_DCM_25/ , MATLAB, 20 linesfitness_MOGA_spm_lfp.m - DEMO/
DIP_DCM_25/ , MATLAB, 50 linesgenerate_spectrum.m - DEMO/
DIP_DCM_25/ , MATLAB, 6 lineslhsdesign_scale_dom.m - DEMO/
DIP_DCM_25/ , MATLAB, 200 linesplot_LFP_params.m - DEMO/
DIP_DCM_25/ , MATLAB, 56 linesplot_lfp_spectra.m - DEMO/
DIP_DCM_25/ , MATLAB, 19 linesplot_mg.m - DEMO/
DIP_DCM_25/ , MATLAB, 66 linesrun_lfp_MOGA.m - DEMO/
DIP_DCM_25/ , MATLAB, 332 linesrun_lfp_hybrid.m - DEMO/
DIP_DCM_25/ , MATLAB, 29 linessave_dcm_priors.m - DEMO/
DIP_DCM_25/ , MATLAB, 6 linessave_figures.m - DEMO/
DIP_DCM_25/ , MATLAB, 23 linessave_output.m - DEMO/
DIP_DCM_25/ , MATLAB, 11 linesset_paths.m - DEMO/
DIP_DCM_25/ , MATLAB, 193 linesspm_csd_mtf.m - DEMO/
load_data.m , MATLAB, 9 lines - DEMO/
set_paths.m , MATLAB, 12 lines - DIP_Pipeline.m, MATLAB, 32 lines
- DIP_plots_Pipeline.m, MATLAB, 42 lines
- MOGA_lfp_params.m, MATLAB, 40 lines
- MOGA_lfp_params_lhc.m, MATLAB, 41 lines
- create_plot_mg.m, MATLAB, 19 lines
- fitness_MOGA_spm_lfp.m, MATLAB, 18 lines
- generate_spectrum.m, MATLAB, 50 lines
- lhsdesign_scale_dom.m, MATLAB, 6 lines
- load_data.m, MATLAB, 10 lines
- plot_LFP_params.m, MATLAB, 202 lines
- plot_lfp_spectra.m, MATLAB, 56 lines
- plot_mg.m, MATLAB, 19 lines
- run_lfp_MOGA.m, MATLAB, 66 lines
- run_lfp_hybrid.m, MATLAB, 332 lines
- save_dcm_priors.m, MATLAB, 29 lines
- save_figures.m, MATLAB, 6 lines
- save_output.m, MATLAB, 23 lines
- set_paths.m, MATLAB, 9 lines
- spm_csd_mtf.m, MATLAB, 193 lines
- LICENSE, License, 674 lines
- README.md, Text, 25 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 100 scripts, each with its path and the digest of its content;
- 4 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data and Code Availability
All analyses were conducted on data published previously by Biondi et al. (2022) and Shaw et al. (2020). Code used to generate figures including the database of parameter estimates can be found at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Authors: added Dominic M. Dunstan (0000-0003-1973-1404); Alexander D. Shaw (0000-0001-5741-7526); Marc Goodfellow (0000-0002-7282-7280); removed Dominic M. Dunstan; Alexander D. Shaw; Marc Goodfellow
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 5 authors, 6 keywords, 2 funders, 76 references.
Cite
This paper
Caccamo, A., Dunstan, D. M., Richardson, M. P., Shaw, A. D., & Goodfellow, M. (2026). Dynamics-informed priors (DIP) for neural mass modelling. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1250. https://
BibTeX
@article{caccamo2026dyna
author = {Caccamo, Alessia and Dunstan, Dominic M. and Richardson, Mark P. and Shaw, Alexander D. and Goodfellow, Marc},
title = {{Dynamics-informed priors (DIP) for neural mass modelling}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = may,
volume = {4},
pages = {IMAG.a.1250},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {42232074},
pmcid = {PMC13224311}
}
RIS
TY - JOUR
AU - Caccamo, Alessia
AU - Dunstan, Dominic M.
AU - Richardson, Mark P.
AU - Shaw, Alexander D.
AU - Goodfellow, Marc
TI - Dynamics-informed priors (DIP) for neural mass modelling
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1250
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Dynamics-informed priors (DIP) for neural mass modelling",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Caccamo",
"given": "Alessia"
},
{
"family": "Dunstan",
"given": "Dominic M."
},
{
"family": "Richardson",
"given": "Mark P."
},
{
"family": "Shaw",
"given": "Alexander D."
},
{
"family": "Goodfellow",
"given": "Marc"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1250",
"DOI": "10.1162/
"PMID": "42232074",
"PMCID": "PMC13224311",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
29
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1371/journal.pcbi.1010985 [code]
- Global nonlinear approach for mapping parameters of neural mass models.Journal: PLoS computational biologyIn common: Violinplot-Matlab, Optimization Toolbox, Statistics and Machine Learning Toolbox, epilepsy, EEG, 9 references, 3 authors
- [2] doi:10.1162/imag.a.1249 [code]
- Global search metaheuristics for neural mass model calibration.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Optimization Toolbox, Statistics and Machine Learning Toolbox, none (in silico), EEG, 9 references, 3 authors
- [3] doi:10.1111/epi.18293 [code]
- Neural mass modeling reveals that hyperexcitability underpins slow-wave sleep changes in children with epilepsy.Journal: EpilepsiaIn common: Violinplot-Matlab, Optimization Toolbox, Statistics and Machine Learning Toolbox, epilepsy, EEG, 2 references, 2 authors
- [4] doi:10.1186/s12868-024-00844-5 [code]
- Modulation of long-term potentiation following microdoses of LSD captured by thalamo-cortical modelling in a randomised, controlled trial.Journal: BMC neuroscienceIn common: Optimization Toolbox, SPM, Statistics and Machine Learning Toolbox, EEG, 2 references, author Alexander D. Shaw
- [5] doi:10.1093/brain/awac471 [code]
- Neurophysiological consequences of synapse loss in progressive supranuclear palsy.Journal: Brain : a journal of neurologyIn common: SPM, Statistics and Machine Learning Toolbox, 3 references, author Alexander D. Shaw
- [6] doi:10.1371/journal.pcbi.1012926 [code]
- A comprehensive investigation of intracortical and corticothalamic models of the alpha rhythm.Journal: PLoS computational biologyIn common: EEG, 7 references
- [7] doi:10.1002/hbm.26782 [code]
- Reliability of dynamic causal modelling of resting-state magnetoencephalography.Journal: Human brain mappingIn common: SPM, 7 references
- [8] doi:10.1371/journal.pcbi.1009988 [code]
- Dynamic causal modelling shows a prominent role of local inhibition in alpha power modulation in higher visual cortex.Journal: PLoS computational biologyIn common: SPM, Statistics and Machine Learning Toolbox, none (in silico), EEG, 5 references
- [9] doi:10.1113/jp288141 [code]
- Interictal discharges spread along local recurrent networks between tubers and surrounding cortex.Journal: The Journal of physiologyIn common: SPM, Statistics and Machine Learning Toolbox, epilepsy, EEG, 5 references
- [10] doi:10.1159/000530805
- Changes in Visual Long-Term Potentiation Show Preserved Cyclicity in Human Females Taking Combined Oral Contraceptives.Journal: NeuroendocrinologyIn common: EEG, 3 references, author Alexander D. Shaw
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 100 scripts, and 4 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:3c5a9be25c13888d…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1162/imag.a.1250)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1162/imag.a.1250.svg
:target: https://openscicode.org/badge/doi/10.1162/imag.a.1250
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/imag.a.1250"><img src="https://openscicode.org/badge/doi/10.1162/imag.a.1250.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
- AlessiaCaccamo/Figures_DIP_DCM_25: README.md on GitHub
- AlessiaCaccamo/DIP_DCM_25: README.md on GitHub
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
