Global search metaheuristics for neural mass model calibration.
6 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 7 matches · 4 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Methods for model calibration ↔ NMMSO_example.m, lines 3 to 63 · score 0.71 · niching migratory multi, genetic algorithm, swarm optimiser, Rit model, Jansen, simulated · block
oscr:b:59951BZ7KY7BV-O· Report a mismatch - [2] § Methods › Methods for model calibration ↔ Related_scripts/NMMSO_normalised_exit_early.m, the whole file · a weak match · score 0.69 · multi modal, swarm optimisation, multi swarm, particle, population, locations · block
oscr:b:GPEPFR8GCWY4K-F· Report a mismatch - [3] § Methods › Methods for model calibration ↔ Related_scripts/NMMSO_normalised_iterative.m, lines 1 to 85 · score 0.67 · multi modal, swarm optimisation, multi swarm, particle, locations, space · block
oscr:b:68NTMXEMV6QA1-J· Report a mismatch - [4] § Methods › Methods for model calibration ↔ Related_scripts/NMMSO_normalised_exit_early.m, the whole file · a weak match · score 0.60 · niching migratory multi, swarm optimiser, hypercube, space, NMMSO, algorithms · block
oscr:b:GPEPFR8GCWY4K-F· Report a mismatch - [5] § Methods › Methods for model calibration ↔ ABC_example.jl, lines 167 to 203 · score 0.59 · ABC SMC, schedule, distance, particles, tolerance, PSD · block
oscr:b:HSCCBDEM1K23Q-6· Report a mismatch - [6] § Methods › Objective function and tolerance threshold ↔ Related_scripts/Fitness_TF.m, the whole file · a weak match · score 0.51 · squared error, model PSD, sum · block
oscr:b:AGAQARMEWDQ9F-C· Report a mismatch - [7] § Methods › Objective function and tolerance threshold ↔ Related_scripts/Fitness_TF_inverted.m, the whole file · a weak match · score 0.51 · squared error, model PSD, sum · block
oscr:b:YYNFTKYCPBQ1F-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 · 120 lines · 4.8 KB · MIT · 2 matches
- function [X,Y,mode_loc_before,mode_y_before,evaluations_before,nmmso_state, ...
- mode_loc_after,mode_y_after,evaluations_after] = NMMSO_normalised_exit_early( ...
- swarm_size, problem_func,problem_function_params, max_evaluations, ...
- mn,mx,max_evol,tol_val,fitness_threshold)
- % Implementation of the Niching Migratory Multi-Swarm Optimser, described
- % in:
- % "Running Up Those Hills: Multi-Modal Search with the Niching Migratory
- % Multi-Swarm Optimiser"
- % by Jonathan E. Fieldsend
- % published in Proceedings of the IEEE Congress on Evolutionary Computation,
- % pages 2593-2600, 2014
- % Please reference this paper if you undertake work utilising this code.
- % Implementation (c) by Jonathan Fieldsend, University of Exeter, 2014
- %
- % Thanks to Zhan Dawei for identifying the error in the tol_val check
- %
- % Assumes function maximisation
- %
- % REQUIRED ARGUMENTS
- %
- % swarm_size = maximum number of elements (particles) per swarm
- % problem_func = string containing name of function to be optimised
- % problem_funcion_params = meta-parameters needed by problem function
- % (distinct from optimisation (design) parameters
- % max_evaluations = maximum number of evaluations to be taken through the
- % problem function
- % mn = minimum design parameter values (a vector with param_num elements)
- % mx = maximum design parameter values (a vector with param_num elements)
- %
- % OPTIONAL ARGUMENTS
- %
- % max_evols = maximum number of swarms to update in a generation. If not
- % provided this is set at 100
- % tol_val = tolerance value for merging automatically (default 10^-6)
- %
- % OUTPUTS
- %
- % Due to the algorithm design (dynamic populations) the final generation
- % may exceed the alloted maximum number of evaluations. As such the final
- % peak estimate state and the penultimate peak estimate state are returned
- % (with the corresponding evaluation number tracked). Apart from X and Y,
- % other data stored are in the normalised range
- %
- %
- % X = mode locations (in original range),note that at least one is likely
- % to be very poor due to the new swarm spawning at the end of each
- % generation, and that these will be a combination of both global and
- % local mode estimate
- % Y = mode values;
- % mode_loc_before = design space location of penultimate mode estimates (swarm
- % gbests), note that at least one is likely to be very poor due to the
- % new swarm spawning at the end of each generation, and that these will
- % be a combination of both global and local mode estimate
- % mode_y_before = function evalutions corresponding to the mode estimates
- % evaluations_before = number of problem function evaluations at end of
- % penultimate generation
- % mode_loc_after = design space location of mode estimates at end
- % mode_y_after = function evalutions corresponding to the mode estimates
- % evaluations_after = number of problem function evaluationsat end
- %
- % nmmso_state = structure holding the state of the swarms. Unless you want
- % to pick apart the details of how the algorithm searchs the space, then
- % the only two elements you will probably be interested in are X and Y
- % which are preallocated matrices to hold all normalised locations visited
- % (therefore nmmso_state.X(1:evaluations,:) will hold all the design
- % space locations visited by the optimiser thus far. The final version is
- % returned (can be quite large)
- %
- % NOTE: all locations are normalised to the unit hypercube using the box
- % constraints in mx and mn -- you will want to rescale back woth mn and mx
- % to get the original decision vectors. X and Y hold mode estimated
- % locations in original ranges
- %
- %
- if exist('max_evol','var')==0
- display('default max_eval used, set at 100');
- max_evol=100;
- end
- if max_evol<=0
- display('Max_eval cannot be negative or zero, default max_eval used, set at 100');
- max_evol=100;
- end
- if exist('tol_val','var') ==0
- tol_val = 10^-6;
- end
- % at start no evaluations used, and NMMSO state is empty
- mode_loc_after=[];
- mode_y_after=[];
- evaluations_after=[];
- nmmso_state=[];
- evaluations_after=0;
- % exit algorithm either when max_evaluations has been reached or when we have a mode with a value less than the desired threshold.
- fit_val_best = 100;
- while ((evaluations_after < max_evaluations)&&(fit_val_best>=fitness_threshold))
- mode_loc_before=mode_loc_after;
- mode_y_before=mode_y_after;
- evaluations_before=evaluations_after;
- [mode_loc_after,mode_y_after,evaluations_after,nmmso_state] = NMMSO_normalised_iterative( ...
- swarm_size, problem_func,problem_function_params, max_evaluations, ...
- mn,mx,evaluations_after,nmmso_state,max_evol,tol_val);
- fit_val_best = min(100-mode_y_after);
- end
- [n,~] = size(mode_loc_after);
- X = mode_loc_after.*repmat(mx-mn,n,1)+repmat(mn,n,1);
- Y = mode_y_after;
NMMSO_normalised_exit_early.m at commit a8e4edb, under MIT · 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, Institute of Psychiatry, Psychology, and Neuroscience, King’s College London, London, United Kingdom
- Department of Computer Science, University of Exeter, Exeter, United Kingdom
Abstract
Neural mass models (NMMs) are often used to help understand the circuitry that underpins observed brain dynamics in basic and clinical research. A key step is to fuse models with data so that model parameter values can be inferred for a given data set—a process called model fitting or model calibration. This can shed light on putative physiological mechanisms underlying the observed signals. Calibration is notoriously challenging in biology since models are often non-identifiable, high-dimensional, and nonlinear. Established methods such as dynamic causal modelling (DCM) circumvent some of these issues, for example, by incorporating prior information and employing fast local search methods in the space of feasible parameter values (“parameter space”). However, it is pertinent to better understand the potential limitations of these methods so that we can increase our confidence in the use of models to interpret brain activity, and to develop new approaches as required. Here, we use tools from dynamical systems theory to illustrate some of the complexities of model calibration in an archetypal NMM. We use this information to motivate the use of calibration methods that work across large regions of parameter space, rather than focusing on informative priors or localised search methods. We subsequently evaluate the performance of approximate Bayesian computation (ABC) and evolutionary search metaheuristics (ESMs) for mapping feasible sets of parameters for which an NMM can recreate electroencephalographic recordings during an eyes-closed resting state. Our results demonstrate the superiority of ESMs in terms of computational efficiency and accuracy. Furthermore, we elucidate potential reasons why ESMs are able to perform better than ABC, that is, that they are less susceptible to biases induced by the complexity of underlying cost landscapes. These results highlight the importance of incorporating ESMs in future efforts to model brain dynamics.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
domdunstan/Global_NMM_parameter_inference
a8e4edb0114e47ab359c07037b0314e19d8dca16, 13 January 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
12 files
- ABC_example.jl, Julia, 205 lines, 1 match
- GA_example.m, MATLAB, 119 lines
- NMMSO_example.m, MATLAB, 105 lines, 1 match
- Related_scripts/
Algorithm_termination.m , MATLAB, 11 lines - Related_scripts/
Calculate_JR_TF.m , MATLAB, 105 lines - Related_scripts/
Fitness_TF.m , MATLAB, 46 lines, 1 match - Related_scripts/
Fitness_TF_inverted.m , MATLAB, 51 lines, 1 match - Related_scripts/
NMMSO_normalised_exit_ea , MATLAB, 120 lines, 2 matchesrly.m - Related_scripts/
NMMSO_normalised_iterati , MATLAB, 688 lines, 1 matchve.m - Related_scripts/
lhsdesign_scale.m , MATLAB, 6 lines - LICENSE, License, 21 lines
- README.md, Text, 19 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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 10 scripts, each with its path and the digest of its content;
- 7 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
Datasets cited
Data and Code Availability
Code supporting the findings is publicly available and maintained as a GitHub repository (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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 4 authors, 6 keywords, 2 funders, 57 references.
Cite
This paper
Dunstan, D. M., Richardson, M. P., Fieldsend, J. E., & Goodfellow, M. (2026). Global search metaheuristics for neural mass model calibration. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1249. https://
BibTeX
@article{dunstan2026glob
author = {Dunstan, Dominic M. and Richardson, Mark P. and Fieldsend, Jonathan E. and Goodfellow, Marc},
title = {{Global search metaheuristics for neural mass model calibration}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = jun,
volume = {4},
pages = {IMAG.a.1249},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {42266203},
pmcid = {PMC13245216}
}
RIS
TY - JOUR
AU - Dunstan, Dominic M.
AU - Richardson, Mark P.
AU - Fieldsend, Jonathan E.
AU - Goodfellow, Marc
TI - Global search metaheuristics for neural mass model calibration
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1249
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Global search metaheuristics for neural mass model calibration",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Dunstan",
"given": "Dominic M."
},
{
"family": "Richardson",
"given": "Mark P."
},
{
"family": "Fieldsend",
"given": "Jonathan E."
},
{
"family": "Goodfellow",
"given": "Marc"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1249",
"DOI": "10.1162/
"PMID": "42266203",
"PMCID": "PMC13245216",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
5
]
]
}
}
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: Optimization Toolbox, Statistics and Machine Learning Toolbox, OSF f2vya, computational, EEG, 17 references, 3 authors
- [2] doi:10.1162/imag.a.1250 [code]
- Dynamics-informed priors (DIP) for neural mass modelling.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: Optimization Toolbox, Statistics and Machine Learning Toolbox, EEG, 6 references, 2 authors
- [4] doi:10.1371/journal.pcbi.1012926 [code]
- A comprehensive investigation of intracortical and corticothalamic models of the alpha rhythm.Journal: PLoS computational biologyIn common: computational, EEG, 12 references
- [5] doi:10.1371/journal.pcbi.1014222 [code]
- Neural population models for EEG: From Canonical models to alternative model structures.Journal: PLoS computational biologyIn common: DifferentialEquations.jl, Distributions.jl, Plots.jl, computational, EEG, 7 references
- [6] doi:10.1371/journal.pcbi.1010915 [code]
- Global dynamics of neural mass models.Journal: PLoS computational biologyIn common: computational, 7 references
- [7] 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: Statistics and Machine Learning Toolbox, none (in silico), EEG, 6 references
- [8] doi:10.1371/journal.pcbi.1014022 [code]
- Emergence of multifrequency activity in a laminar neural mass model.Journal: PLoS computational biologyIn common: DifferentialEquations.jl, 5 references
- [9] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: DifferentialEquations.jl, Distributions.jl, Plots.jl, 2 other tools
- [10] doi:10.1007/s42452-024-05624-8 [code]
- Modelling cortical network dynamics.Journal: SN applied sciencesIn common: Optimization Toolbox, none (in silico), 5 references
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: 1 repository of the authors' code, each at its verified commit and with its license, 10 scripts, and 7 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:b43c722cce95bc12…
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.1249)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1162/imag.a.1249.svg
:target: https://openscicode.org/badge/doi/10.1162/imag.a.1249
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/imag.a.1249"><img src="https://openscicode.org/badge/doi/10.1162/imag.a.1249.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".
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.
